date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/15
1,086
3,582
<issue_start>username_0: **TL;DR**: How to choose every bit of information of the response of a WP REST API custom endpoint? **LONG VERSION** If I want to build a custom endpoint with the WP REST API - sending specific post data from different post types - following the example in the [Handbook](https://developer.wor...
2018/03/15
670
2,140
<issue_start>username_0: I am looking to combine a single XML sheet with two "sections" of information, "Notes" and "Encounters". Each note has an *Extension ID* and each encounter also has an *Extension ID*. The data is setup like such: ``` Text Paragraph 1 Text Paragraph 2 123456 Text Paragraph 3 123456...
2018/03/15
771
3,221
<issue_start>username_0: The suggestion to encrypt log files as a means of protecting the personal data that might be contained in them is widespread. What I've not seen is a good reference implementation, which is surprising given how many companies will need this. In our particular case, we want to use public key e...
2018/03/15
791
3,294
<issue_start>username_0: Angular's [i18n](https://angular.io/guide/i18n) is great, and tools like [ng-packagr](https://www.npmjs.com/package/ng-packagr) makes component library packaging extremely easy, but can they be combined? What if i want to package and distribute a component library having translatable component...
2018/03/15
1,420
6,085
<issue_start>username_0: Sorry for my english. I have three projects: IdentityServer, Ensino.Mvc, Ensino.Api. The IdentityServer Project provides the main identity information and claims - claim Profile, claim Address, claim Sid... etc, from the IdentityServer4 library. The Ensino.Mvc Project gets this information in ...
2018/03/15
974
3,282
<issue_start>username_0: I have a JavaScript app I'm bundling with webpack. Per the docs, I'm using this command to start bundling: ``` npx webpack ``` Each time I get this output: ``` npx: installed 1 in 2.775s ``` I've verified that the webpack command exists in my `./node_modules/.bin` directory where npx is l...
2018/03/15
642
2,620
<issue_start>username_0: I read that an abstract class can still have a table. But I'm confused on how many entries it would have in its vtable. For example, if my abstract class was: ``` class Circle(){ virtual void draw() = 0; } ``` then how many entries would be in its vtable? Also, am I correct in saying tha...
2018/03/15
516
1,310
<issue_start>username_0: Let's say I have the following data. ``` df = pd.DataFrame({'group':list('aaaabbbb'), 'val':[1,3,3,np.NaN,5,6,6,2], 'id':[1,np.NaN,np.NaN,np.NaN,np.NaN,3,np.NaN,3]}) df ``` I want to drop columns where the percentage of NaN values is over 50%. I coul...
2018/03/15
585
1,953
<issue_start>username_0: I have a database with thousands of customers. They all have unique customer ID. From another different system I have received a list of customer ID's and I would like to know which of these ID's cannot be found in my database. My query currently is something like this ``` select ID from tab...
2018/03/15
409
2,045
<issue_start>username_0: What bearerOption.SaveToken property used for in the configuration of JwtAuthentication in aspnet core 2 ? ``` services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme) .AddJwtBearer(bearer => { bearer.TokenValidation...
2018/03/15
470
1,708
<issue_start>username_0: I am trying to create a program where one can input words, which are added to an array, until the same word is entered twice. Then the program breaks. Something like this: ``` public static void main(String[] args) { ArrayList words = new ArrayList(); Scanner reader = new Scanner(System....
2018/03/15
1,543
5,132
<issue_start>username_0: Lets say I have an list of strings with the following values: > > ["a","a","b","a","a","a","c","c"] > > > I want to execute a linq query that will group into 4 groups: > > Group 1: ["a","a"] Group 2: ["b"] Group 3: ["a","a","a"] Group 4: > ["c","c"] > > > Basically I want to creat...
2018/03/15
413
1,585
<issue_start>username_0: Im trying to access a class from code behind in javascript but I am getting the error saying it does'nt exist in this context. This has worked for me before this way. Here is my code: Code Behind: ``` public class ReviewData { public int NumberOfReviews { get; set; } public double Avg...
2018/03/15
695
2,834
<issue_start>username_0: I have the following architecture: ``` public interface IStatus { string StatusName {get;} } public class A: IStatus { public string StatusName {get {return "A Status";}} } public class B: IStatus { public string StatusName {get {return "B Status";}} } public class C: IStatus { ...
2018/03/15
4,390
14,572
<issue_start>username_0: Note: This is not an issue with Visual Studio, but rather with incompatible dll versions. The steps below replicate the problem since running in Visual Studio in debug mode breaks on exceptions being thrown. If you just run, the thrown exception is handled elsewhere and the program works fine. ...
2018/03/15
629
2,214
<issue_start>username_0: I’m trying to run/load sql file into mysql database using this golang statement but this is not working: ``` exec.Command("mysql", "-u", "{username}", "-p{db password}", "{db name}", "<", file abs path ) ``` But when i use following command in windows command prompt it’s working perfect. ``...
2018/03/15
684
2,653
<issue_start>username_0: my android studio started working with kotlin and not java after the last update. I have a university project that I need to deliver soon and we only learned coding with java, can anyone please help me find a way to return it to java thanks a lot<issue_comment>username_1: If I understand your...
2018/03/15
2,255
6,571
<issue_start>username_0: I have a simple view created in VS 2017. Here it is: ``` CREATE VIEW [dbo].[ApplicantStat] AS SELECT ISNULL(CONVERT(VARCHAR(50), NEWID()), '') AS ID, ISNULL(AVG(ApplicationTime), 0) AS 'AvgApplicationTime', ISNULL(AVG(ResponseTime), 0) AS 'AvgResponseTime', ISNULL(CAST(COUNT(CA...
2018/03/15
1,146
3,974
<issue_start>username_0: this is my project directory structure: [![enter image description here](https://i.stack.imgur.com/vAquG.png)](https://i.stack.imgur.com/vAquG.png) And this is my pom.xml: ``` 4.0.0 borsa borsa 1 UTF-8 UTF-8 aggiornamento maven-compiler-plugin 3.7.0 1.8 1.8 org.apache.maven.plu...
2018/03/15
1,033
2,852
<issue_start>username_0: My H1 is not centering as I increase the font, if I have a smaller size (30px) font my H1 positions correctly. **[I want my H1 to be in the center of my banner div and look like this.](https://i.stack.imgur.com/4LhkV.png)** Currently my H1 is too low from the center and text-align:center; is no...
2018/03/15
891
2,816
<issue_start>username_0: Let me show this by one example ``` Add ``` we have bind the class add\_main the function body execute on clicking the add button is as given below ``` $.ajax({ type: "POST", url : "url", dataType : 'json', data : { 'param1' : "param1value" }, beforeSend: function(jq...
2018/03/15
625
1,823
<issue_start>username_0: I have a document that contains a grid (Among others). One column in the grid has full hyperlinks leading to a ticketing system, i.e. <https://ticketsystem.internal.company.com/tickets/ticket1337> I want to enable users to click on the URL and open the ticket in a new browserwindow. How do I...
2018/03/15
1,054
2,826
<issue_start>username_0: Following is my code that I have used to convert Iterator[char] to Seq[String]. ``` val result = IOUtils.toByteArray(new FileInputStream (new File(fileDir))) val remove_comp = result.grouped(11).map{arr => arr.update(2, 32);arr}.flatMap{arr => arr.update(3, 32); arr} val convert_iter = remove_...
2018/03/15
1,361
3,384
<issue_start>username_0: I'm trying to import the following json in hive > > [{"time":1521115600,"latitude":44.3959,"longitude":26.1025,"altitude":53,"pm1":21.70905,"pm25":16.5,"pm10":14.60085,"gas1":0,"gas2":0.12,"gas3":0,"gas4":0,"temperature":null,"pressure":0,"humidity":0,"noise":0},{"time":1521115659,"latitude":...
2018/03/15
1,075
3,120
<issue_start>username_0: I've defined the following custom parser: ``` newtype St = St Int type TxsParser = ParsecT String St (State St) ``` Now to be able to run this parser, I have to use the [`runParserT`](https://hackage.haskell.org/package/parsec-3.1.13.0/docs/Text-Parsec.html#v:runParserT) function. ``` runPa...
2018/03/15
1,089
2,925
<issue_start>username_0: I try to set up a cron job to execute a python test program (rm a file from folder) but it doesn't work. I've tried different things : - Run programm with script sh - Run action directly with command in crontab When I launch test.sh from terminal, it works perfectly. When I launch rm file di...
2018/03/15
1,057
3,335
<issue_start>username_0: I have entries in a data table *TableofDates* comprising three fields; ProjectID (type = dbText), Start (type = dbDate) and Finish (type = dbDate): **TableofDates** ``` ProjectID Start Finish ABC 01/01/2018 09/09/2018 ``` I wish to present the following dataset with indi...
2018/03/15
2,102
7,284
<issue_start>username_0: I'm using the JAXB Unmarshaller to convert an XML string into a Java object structure (using Java 7; Java 8 is not an option at this time). I'm having a problem with lists of objects though. (I apologize in advance for all the code included.) This is the input XML string: ``` 900 AT00000000...
2018/03/15
1,098
4,300
<issue_start>username_0: When user fills out subscribe form or contact form and the form is not valid it redirects to the form view The forms are a partial form which are in the index page, possibly the issue but I'm not sure how to solve - it is a single page application with two actions, subscribe and contact. How...
2018/03/15
365
1,146
<issue_start>username_0: I define an array like this: ``` [{foo:0}, true === false && { foobar:1}, {bar:2}] ``` My expected result would be that the middle item is not added at all when the middle condition is not met: ``` [ { foo: 0 }, { bar: 2 } ] ``` in fact it adds false as an array item: ``` [ { foo: 0 }, f...
2018/03/15
698
2,371
<issue_start>username_0: I'm developing an android app with multiple flavors like so: ``` sourceSets { main { res.srcDirs += ["headend/ott/res"] } flavor1 { res.srcDirs += ["src/module1/res-splash"] } flavor2 { java.srcDirs += ["src/module1/java"] res.srcDirs += ["...
2018/03/15
1,088
4,266
<issue_start>username_0: I'm trying to configure a Zip task based on one of the property inside sub-projects, but the property is not yet accessible at the time of configuring the task. For instance, I want to exclude all my projects that has `toexclude = true` from my zip file. So, the `build.gradle` of the sub-projec...
2018/03/15
683
2,374
<issue_start>username_0: How do you convert a dotted keys into a javascript object and retain it's value? So I got this kind of response from an API and I need to parse it by key: value. ``` { "property": "personal_info.address.city", "description": "Missing field" }, { "property": "personal_info.address.countr...
2018/03/15
825
3,066
<issue_start>username_0: This is my root element, and in the data "booking" is a object with sitebooking. Sitebooking object can have array of objects with first name and last name. ``` var app = new Vue({ el: '#app', data: { booking: { sitebooking: [{ firstname: "", ...
2018/03/15
1,335
5,056
<issue_start>username_0: Say we have dataframes set as follows: ``` df1 = pd.DataFrame(np.random.randint(0, 2, (10, 2)), columns=['Cow', 'Sheep']) df2 = pd.DataFrame(np.random.randint(0, 2, (10, 5)), columns=['Hungry', 'Scared', 'Happy', 'Bored', 'Sad']) df3 = pd.DataFrame(np.random.randint(0, 2, (10, 2)), columns=['D...
2018/03/15
2,213
7,444
<issue_start>username_0: I am trying to crop an image before uploading it through an API. I am showing a modal ([`Dialog`](http://www.material-ui.com/#/components/dialog)) to do this, and using this library [react-image-crop](https://github.com/DominicTobias/react-image-crop) to achieve this. Here is the code snippet:...
2018/03/15
4,029
16,148
<issue_start>username_0: I have created a custom camera and have implemented below code to crop the taken image, I have shown guides in the preview layer so I want to crop the image which appears in that area. ``` func imageByCropToRect(rect:CGRect, scale:Bool) -> UIImage { var rect = rect var scaleFactor:...
2018/03/15
560
2,015
<issue_start>username_0: I'm using knex version 3.10.10, in my node app, connecting to MySQL DB. My configuration of knex in the app is using the pool option configuration. 1) Is there a need to EXPLICITLY return a connection to the pool after I fired a query? If yes - how 2) Is there a need to EXPLICITLY perform a c...
2018/03/15
752
3,178
<issue_start>username_0: I need that my beta testers have the beta app to let them test it but at the same time they must to have the production app to work in production. The problem is that seems if they become a beta tester only can get the beta app from the Google Play. There is a way to have both version in the s...
2018/03/15
728
3,038
<issue_start>username_0: > > I am playing around with hyperledger-sawtooth. I have installed the > sawtooth in ubuntu machine but identity transaction processor is not > installed with sawtooth. so how can i use **identity-tp** command > > ><issue_comment>username_1: The short answer is No, it can't be done. **U...
2018/03/15
2,842
10,917
<issue_start>username_0: I am trying to create an internal app to upload files to google cloud. I don't want each individual user or this app to log in so I'm using a service account. I login into the service account and everything is ok, but when I try to upload it gives me this error: ServiceException: 401 Anonymous ...
2018/03/15
1,224
4,516
<issue_start>username_0: What I'm trying to do here is to compare the performance of single-threading and multi-threading by doing a simple and repetitive operation. So I have two threads assigning this random number 0xde to this array each thread taking the first and second half of the array and single-thread does the...
2018/03/15
494
1,282
<issue_start>username_0: I am using HDInishgt Spark 2.1 and in my Jupyter notebook I would like to load multiple spark packages. ``` %%configure -f { "conf": {"spark.jars.packages": "com.databricks:spark-avro_2.11:3.2.0"}} ``` But when I try and do ``` %%configure -f { "conf": {"spark.jars.packages": "c...
2018/03/15
1,533
5,170
<issue_start>username_0: I'm currently working on Bootstrap4 in SCSS. I want to change the inner $grid-gutter-width on smartphone only. According to \_grid.scss `$grid-columns: 12 !default; $grid-gutter-width: 30px !default;` On the bootstrap site, it is sait that : > > Updated grid sizes, mixins, and variables. ...
2018/03/15
502
1,947
<issue_start>username_0: I'm new to Pub/Sub and Dataflow/Beam. I have done a task in Spark and Kafka, I want to do the same using Pub/Sub and Dataflow/Beam. From what I understood so far Kafka is similar to Pub/Sub and Spark is similar to Dataflow/Beam. The task is take a JSON file and write to a Pub/Sub topic. Then u...
2018/03/15
948
2,612
<issue_start>username_0: I'm finding I want to update a struct pretty often, then pipe the result to another function. The need to update my struct keeps breaking up my pipes. I find myself doing this a lot: ``` my_struct = %{my_struct | my_field_in_struct: a_new_value} |> my_funct1 my_struct = %{my_struct | my_fiel...
2018/03/15
1,302
4,851
<issue_start>username_0: I have a web app running in Tomcat correctly that I want to run on the new OpenLiberty server, the app is starting correctly inside OpenLiberty but at the moment of the database connection initiation is throwing the following exception: ``` [Default Executor-thread-15] 2018-03-15 15:02:30 ERRO...
2018/03/15
895
3,445
<issue_start>username_0: For example, the following error is not caught by a regular try/catch on request: ``` (node:6432) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 pipe listeners added. Use emitter.setMaxListeners() to increase limit Error: Exceeded maxRedirects. Probably stuck in a ...
2018/03/15
864
3,255
<issue_start>username_0: How to looping multi array using `foreach()`? Or how to define `$looping` on `for()`? I'm tired of using `AND` logic on `foreach()`. This is my code: ``` php $b=["a","b","c","d","5"]; $a=["1","3","4","5"]; foreach($a as $a && $b as $b) { echo $a.$b; } // AND logic Error $tipe=trim(fgets...
2018/03/15
822
3,154
<issue_start>username_0: I have an array which I would like to split into multiple arrays based on a key(K1 etc key) value (A,AA etc values). My example: ``` array = [{"K1":"A","K2":"B","k3":"AA"},{"K1":"A","K2":"B","k3":"BB"},{"K1":"A","K2":"B","k3":"BB"},{"K1":"A","K2":"B","k3":"CC"}] ``` Should return where value...
2018/03/15
836
2,586
<issue_start>username_0: I would like to replace the space characters inside XML file as for example: from: ``` Test User 1 ``` to: ``` Test\_User\_1 ``` Prefer using sed as this is the most feasible option at this moment. Appreciate for any suggestion or feedback. Thanks<issue_comment>username_1: Don't pa...
2018/03/15
520
1,391
<issue_start>username_0: I'm looking for a way to take a string like below: ``` let s = '@someone hello that was awesome +5. Rock on!'; ``` and strip out absolutely everything except for the first `+` or `-` and the immediate following number, using regex. The result would be: ``` +5 ``` Other examples: ``` let ...
2018/03/15
840
3,323
<issue_start>username_0: Using a route that needs props passed in to the components, I'm passing in a boolean that is observable from my store. When this value changes, components rendered by the route are not updated. ``` } /> ``` This component is Observable and injected with MyMobxStore. If I change that observ...
2018/03/15
430
1,706
<issue_start>username_0: I know there's DBPedia for Wikipedia, but does something like that exist for Wiktionary? I'd like to get something like <https://en.wiktionary.org/wiki/Category:en:Occupations> into JSON or similar format.<issue_comment>username_1: sounds like you are missing an observer wrapper for MyComponent...
2018/03/15
635
2,546
<issue_start>username_0: I have the following code for the dynamic addition of annotation to java class ``` private void decorateWithSpecificAnnotation(final Set> domainClasses) { final ClassPool cp = ClassPool.getDefault(); for (Class c : domainClasses) { try { final CtClass cc = cp.get(c.getName()); final Class...
2018/03/15
469
2,007
<issue_start>username_0: How can a react application be packaged and hosted without a server. The application is purely front end. Tried building the application `npm run build` but that created a build which would require a server to be hosted on.<issue_comment>username_1: You'll need a http server to host the site lo...
2018/03/15
645
1,993
<issue_start>username_0: I have 4 tables with the following structure: ``` **FiltersMain** FilterMain_ID FilterMain_Name_GR FilterMain_Name_EN **FiltersSub** FilterSub_ID FilterMain_ID FilterSub_Name_GR FilterSub_Name_EN **cm** cm_ID product_id Cat_Main_ID **Filtra** f_Id product_id FilterMain_ID FilterSub_ID ``` ...
2018/03/15
1,036
4,017
<issue_start>username_0: So I've come across some code that makes me uncomfortable, but I can't find a definitive answer as to whether it's actually problematic. We have a ASP.Net Web API that is primarily used by a message bus. There is a balancing process that needs to be started for several accounts. The balancing ...
2018/03/15
411
1,386
<issue_start>username_0: The following is the json that I am receiving: ``` { "total": 5, "responses": [{ "gender": "Female", "age": 66 }, { "gender": "Male", "age": 52 }] } ``` The following is the code I am using to receive and parse the json ``` // Declare a proxy to reference the hub. $.connecti...
2018/03/15
353
1,207
<issue_start>username_0: A few weeks ago my website was hacked. So I decided to delete and reconfigure the whole Wordpress website and increase the security. After some research, I found a plugin named Wordfence which can monitor and trace all actions on the website. When I have a look at the log of the plugin, I found...
2018/03/15
2,871
11,086
<issue_start>username_0: I'm using below code to populate my Main Activity with Fragment containing Listview. I'm following a tutorial from <http://wptrafficanalyzer.in/blog/android-itemclicklistener-for-a-listview-with-images-and-text/>. I would like to know, how to use intent to open a separate activity / Fragment w...
2018/03/15
775
2,411
<issue_start>username_0: I'm trying to copy the data from one sheet to the last row of another sheet. The reason why I am doing this is because I want to consolidate the data in a sheet which is already existing and my contain already a data. Below is my code so far which only copies again to the A2 of another shee...
2018/03/15
370
1,483
<issue_start>username_0: I'm on a project cross-platform where the client wants a website, an iOS application and an android app. I chose cordova to realise it. But I have one question, can I host my application like a classic website on a distant server ? Maxime<issue_comment>username_1: EDIT: the following is only ...
2018/03/15
492
2,028
<issue_start>username_0: How to show TeamController@index and ProductController@index both show list of team and product inside one view main.blade.php<issue_comment>username_1: You can't show results from two controllers like that. Create a view that includes both the view that TeamController@index and ProductControll...
2018/03/15
863
3,455
<issue_start>username_0: I'm developing an application where a user may parse some binary files. Once he clicks the "parse"-button, he first may select some files, which are parsed afterwards. While the application is processing the files, I'd like to display a modal dialog, which informs the user about the progress (Q...
2018/03/15
1,004
3,171
<issue_start>username_0: Can someone explain to me (or redirect to resources) why in this particular case the type tag is not "properly" generated: ``` class A(s: Seq[_]*) def toto[T: TypeTag](p: Seq[T]): Seq[T] = { println(typeTag[T].tpe) p } val data = Seq( ("a", "a") ) val x = data.map(_._1) new A( toto(x),...
2018/03/15
736
2,736
<issue_start>username_0: We are trying to update the framework of our program. We currently have it in version 4.5.2 and we want to update it to version 4.7.1 We have changed all the csproj of the solution, and when we compile in debug, the application compiles and works correctly. But when we do it in release, it fai...
2018/03/15
507
1,995
<issue_start>username_0: I am trying to create a list of sorted characters from a file, however there are quotation marks in the file, and they are messing up the order of my list, so I need to remove them prior to creating my list. I have tried countless approaches, but have been unsuccessful with all of them. Here is...
2018/03/15
1,101
4,072
<issue_start>username_0: I'm trying to use node-red-contrib-socketio package to emit a 'weather' event from Node-Red to a client based on input from Weather Underground. ![Emit Weather Event from Node-Red](https://i.stack.imgur.com/0XEmN.jpg) I'm using the following code in a node-red function to process the input fr...
2018/03/15
1,483
5,872
<issue_start>username_0: I have UICollectionView 2 rows 10+ cells. deselected by default. when I click it becomes selected but when I click again not deselect. ``` func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) { print(indexPath) let cell = collectionView.cellForI...
2018/03/15
722
2,551
<issue_start>username_0: Wondering if there's a way to make a text bubble show up when the user hovers over a metric in a Power BI report. I have tried using alt text, but that does not show up anywhere.<issue_comment>username_1: Currently, I don't think this is possible natively. There are some ideas related to this...
2018/03/15
363
1,351
<issue_start>username_0: I have two methods for mapping entity to domain. ``` RDomain entityToDomain(REntity rEntity) /* this method ignores some of the fields in the domain. */ RDomain entityToDomainLight(REntity rEntity) ``` I'm getting **Ambiguous mapping methods found for mapping collection** element when I try...
2018/03/15
322
1,135
<issue_start>username_0: So I'm creating a basic (my first project using python) game with python. there is a part where I put a random.choice. I want to refer back to the same random number that it picked so I wondered if it is possible to create a variable for that output. I've tried str = randomint(1,7) but that did...
2018/03/15
2,769
11,608
<issue_start>username_0: I am using ExoPlayer in my activity,What i want is to smoothly play video in portrait and landscape mode.For this purpose what I am doing is in `onpause` I save the currentPlayerPosition and seek player to that position in `onresume` but while rotating it face a jerk and video is stopped for a ...
2018/03/15
546
2,120
<issue_start>username_0: I upgraded `bokeh` library by executing the following command: `!pip install --user --upgrade bokeh` Tornado version 5 dependency was installed. After upgrading the library from the DSX Notebook the kernel stops responding after restart. I see "Slow Kernel connection" dialog. Opening anothe...
2018/03/15
962
2,525
<issue_start>username_0: I know there have been similar question to my title, but I cannot find a similar problem to the problem I have outlined below: I am trying to get the following 9 list comprehensions to be stored into one list, so that each of the list comprehensions is itself a list within a new list: ``` a =...
2018/03/15
353
1,269
<issue_start>username_0: I have encountered the usual Chrome "feature" of displaying "this type of file can harm your computer mac no keep option" when trying to download a file from a filehosting website. However, when the warning appears there is only ever a "discard" button and not one to "keep" the file as I have ...
2018/03/15
361
967
<issue_start>username_0: I will from a string with numbers and words ,than print it , separate every two Len with an x as start. I have this code: ``` d = "e345a46be5" for i in d: print "x", i[::2], ``` and i come, x 43c48eaff x 43c48eaff x ..... . I will xe3,x45,xa4,x6b,xe5<issue_comment>username_1: The third p...
2018/03/15
428
1,337
<issue_start>username_0: I am getting the error that my PostsController isn't initialized. Here is my routes.rb file: ``` Rails.application.routes.draw do root to: 'posts#index' scope module: 'blog' do get 'about' => 'pages#about', as: :about get 'contact' => 'pages#contact', as: :contact resources ...
2018/03/15
507
1,692
<issue_start>username_0: I'm trying to get logging information on the server side when a client tries to connect but fails using SSL. The obvious way to do this is to set the flag `-Djavax.net.debug=ssl`, but this won't work, because: 1. it's way too verbose 2. any of the modifiers (i.e. `-Djavax.net.debug=ssl:recor...
2018/03/15
330
1,198
<issue_start>username_0: JSON schema format which is getting in response and stored it in buttonschema ``` { "Name": "Test", "layoutSections": [ { "layoutColumns": [ { "layoutItems": [ { "name": "test"...
2018/03/15
443
1,440
<issue_start>username_0: i would like to identify a key of a dictionary, if a certain value is contained in the value, which itself can be a list. I tested the following code: ``` h={"Hi":[1,2],"du":3} for book, product in h.items(): if 1 in product: print(book) ``` and it gives me the error ...
2018/03/15
742
2,768
<issue_start>username_0: I'm trying to create a simple countdown button that displays a paragraph when it reaches 0. The countdown button works, but the paragraph isn't displayed at 0. My code is below. Any ideas what I might be doing wrong? Thanks! Also, I know it's not the cleanest or most efficient code but I'm jus...
2018/03/15
895
2,153
<issue_start>username_0: I've a data frame which have many columns with common prefix "\_B" e,g '\_B1', '\_B2',...'\_Bn'. So that I can grab the column names by: ``` allB <- c(grep( "_B" , names( my.df ),value = TRUE ) ) ``` I wish to select the rows for which each of these \_B\* columns passes a single condition li...
2018/03/15
606
1,970
<issue_start>username_0: I used the canvas tag to crop my image. as following my code: ``` autoCropImage(url){ var img = new Image(); const cropApp = this; let x = img.onload = function(){ var canvas = document.createElement('canvas'); var ctx = canvas.getContext('2d'); const center_X = img.width...
2018/03/15
609
2,102
<issue_start>username_0: For a text field, I would like to expose those that contain invalid characters. The list of invalid characters is unknown; I only know the list of accepted ones. For example for French language, the accepted list is `A-z, 1-9, [punc::], space, àéèçè, hyphen, etc.` The list of invalid charac...
2018/03/15
1,856
4,143
<issue_start>username_0: I'm running a simple bit of code to produce a plot similar to [this](https://i.stack.imgur.com/eTg1n.png). However the plot I am getting from my code is empty - I assume this is a fairly simple error in my code as I'm new to this. My code is: ``` import matplotlib.pyplot as plt import numpy as...
2018/03/15
1,342
2,906
<issue_start>username_0: I have a dataframe nf as follows : ``` StationID DateTime Channel Count 0 1 2017-10-01 00:00:00 1 1 1 1 2017-10-01 00:00:00 1 201 2 1 2017-10-01 00:00:00 1 8 3 1 2017-10-01 00:00:00 1 2 4 1 2017-10-01 00:00:00 1 0 5 1 2017-10-01 00:00:00 1 0 6 1 ...
2018/03/15
540
1,892
<issue_start>username_0: I have not seen this issue in my google searches. I am trying to install PyInstaller on my work Mac which I do not have administrative access. ``` $ pip install --user pyinstaller Collecting pyinstaller Requirement already satisfied: dis3 in ./Library/Python/2.7/lib/python/site-pac...
2018/03/15
2,693
8,690
<issue_start>username_0: I learned how to use Container Registry trigger for Google Cloud Functions deploy from the following tutorial. [Automatic serverless deployments with Cloud Source Repositories and Container Builder](https://cloudplatform.googleblog.com/2018/03/automatic-serverless-deployments-with-Cloud-Source...
2018/03/15
4,295
12,339
<issue_start>username_0: [enter image description here](https://i.stack.imgur.com/JDNb2.png) ``` sparkDF = sqlContext.read.format('com.databricks.spark.csv').options(header='true').load('PR_DATA_35.csv') ``` > > **ERROR\_** > ----------------------------------------------------------------------------------------...
2018/03/15
1,655
4,895
<issue_start>username_0: So I have a script that I'm writing as a pet project that seemed simpler than it turns out to be...I have a for loop that is meant to increment a certain amount of times based on user input but in the for loop, I have a destination statement for a goto earlier in the script. The issue is that w...
2018/03/15
1,952
5,157
<issue_start>username_0: I'm trying to repeat N times an array with a FOR loop, but I've been stuck in the last array that contains more elements. This is my code so far: ``` function data() { for ($i = 1 ; $i <= 50 ; $i++) { $magnitud = array('nombre' => 'medidor'); for ($j = 1 ; $j <= 5 ; $j++) {...
2018/03/15
1,231
3,665
<issue_start>username_0: I want to create a bit of code that saves a file out to a folder (PDF / DWG ) and moves all my files with a lower revision #5 than the current file being saved into a superseded folder. I cannot see how to set a condition for the revision number: I can't use a wildcard as that would cause issu...
2018/03/15
583
2,422
<issue_start>username_0: In my database, I have cities and states that (appear to be) are stored from user input. I am trying to get only distinct locations, so my query looks like this: ``` SELECT Distinct C.City, C.State FROM Customers C ``` The problem I ran into is that some cities have typos, so in my results t...
2018/03/15
448
1,390
<issue_start>username_0: I'm trying to learn Vue and encountered this problem. ```js Vue.component('alert', { props: ['type', 'bold', 'msg'], template: '**{{ bold }}** {{ msg }}' }); var componentProps=new Vue( { el: '#app', } ); ``` ```html ``` This is in the output in the inspector.As you can see...
2018/03/15
458
1,493
<issue_start>username_0: This is driving me nuts. When running any ant command (even `ant -version`), I always get the following error on Mac OSX: Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/tools/ant/launch/Launcher : Unsupported major.minor version 52.0 I removed and re-install...
2018/03/15
662
1,881
<issue_start>username_0: How can I make a progressive web app to be added to the app drawer, not restricted to only the home screen. this is my manifest file. An example is the twitter web app, it can be added to the home screen and app drawer too. I don't know if there is something I should add to this web manifest. ...
2018/03/15
394
1,606
<issue_start>username_0: I want to show toast on button `click`, and that button is in the fragment. I have tried methods to get context for the `toast`, but it is not showing on button click. **This is my code** ``` public class Bottom_Sheet_Fragment extends Fragment { Button addComment; public Bottom_Sheet_Fragme...
2018/03/15
1,581
6,179
<issue_start>username_0: I'm looking for a way to update only set properties in Dapper. i.e Update an Entity's property only if its not null. I'm solving the same problem with a rather crude approach as shown below but I believe there should be a cleaner dapper way of doing this. ``` public void UpdateCustomer(Custo...