date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/18
896
2,324
<issue_start>username_0: So I'm trying to Install Rails with this guide: <http://guides.rubyonrails.org/getting_started.html> And I keep getting this error (below). Any suggestion? I'm working on the cmd (windows 8). (c) 2013 Microsoft Corporation. All rights reserved. I'm typing: `ruby -v` And then I get: `ruby ...
2018/03/18
511
1,386
<issue_start>username_0: I have a nested list that contains both None elements and integers. It looks pretty much like this: ``` aList = [[None, 8.0, 1.0], [2.0, 3.0], [9.0], [5.0, None, 4.0]] ``` None elements don't follow any particular pattern and therefore can be found at any position inside the list. I'd like t...
2018/03/18
627
1,803
<issue_start>username_0: I was using following kind of wait/signal way to let threads inform each other. ``` std::condition_variable condBiz; std::mutex mutexBar; .. void Foo::wait() { std::unique_lock waitPoint(mutexBar); if (waitPoint.owns\_lock()) { condBiz.wait(waitPoint); } } void Foo::signal() { std::un...
2018/03/18
463
1,331
<issue_start>username_0: I have a csv file with traffic density data per road segment of a certain high way, measured in Annual average daily traffic (AADT). Now I want to visualize this data. Since I have the locations (lat and lon) of the road segments, my idea is to create lines between these points and give it a c...
2018/03/18
445
1,804
<issue_start>username_0: I was fallowing a [guide](https://cloud.google.com/tools/intellij/docs/create-flexible?hl=uk) of creating a new java project in IntellIJ IDEA and in the end I got empty folder src without any files or sub-folders in it. Does anybody know what did I do wrong? [![enter image description here](ht...
2018/03/18
564
2,289
<issue_start>username_0: I have a wordpress website where customers make an image with text and icons, once processed thru woocommerce and payed for that image name `12345.png` is saved as Customer\_product\_image ``` function add_order_item_meta($item_id, $values) { $key = 'customer_product_image'; // Define your...
2018/03/18
1,211
4,650
<issue_start>username_0: I am creating a web extension and need to dynamically change inner text to a link. Since it's a web extension, I can't make too many assumptions about where this text will be located. Furthermore, the changes need to be dynamically loaded (this is the main problem I have). For example, I need...
2018/03/18
498
2,080
<issue_start>username_0: Is there a way I can define a method, that is called in every case, when a getter for any property in a class is called? The class is a base class, and I want to implement various SubClasses of it, but each one should have in common that regardless of the property that should be accessed by it...
2018/03/18
697
2,225
<issue_start>username_0: I am creating a program for hypothetical venture capitalists in Tkinter to input their last year and second last year revenue amount their businesses earned. The program will sum up the amount, analyse it and assign points (ranging from 0 to 18). 18 is a full score, which means revenue is high....
2018/03/18
739
2,449
<issue_start>username_0: I am new to Jenkins, and stuck at replacing branch name in Jenkinsfile from Jenkins. I want to write a common Jenkinsfile, and in that I want to pick branch name from Jenkins. Below is the snippet from my Jenkinsfile > > checkout([$class: 'GitSCM', branches: [[name: '\*/master']], > > > ...
2018/03/18
1,548
5,343
<issue_start>username_0: **Updated**: Attached `pom.xml` and `application.property` and some more error / warning msgs. Hi I am very new to Spring Boot and just taking some classes on Udemy for it. While following through a class, I create a starter project via spring.io and added actuator and Hal browser dependenci...
2018/03/18
1,115
3,857
<issue_start>username_0: I'm new to react and redux, and I'm attempting to create new state, but it appears that I'm not updating the state properly. here's the code inside my case: ``` case SUBMIT_NOTE: console.log(payload.note); return{ ...state, notes: state.notes.push(payload.note)}; ``` `payload.note...
2018/03/18
749
3,270
<issue_start>username_0: I'm wondering about compressing relatively small strings, between 1 and 10kb, for storage on my server. The server and receiving client application will not be using my chosen compression during actual requests. The compression will only be used to conserve storage space on the server. In a ca...
2018/03/18
812
3,071
<issue_start>username_0: We are looking to move a specific directory from one git repository to another. I found [these instructions](http://gbayer.com/development/moving-files-from-one-git-repository-to-another-preserving-history/), which went well until the point of the pull from the remote branch; it appears that ha...
2018/03/18
751
2,691
<issue_start>username_0: I’m constantly failing to install Platform IO IDE for Visual Studio Code or Atom. I’m working on OSX with High Sierra. I have two users, both are Admins. The first user can install with VSC and Atom just fine. The second user always gets this error message: > > PIP: Error: spawn /Volumes/Mac...
2018/03/18
693
1,989
<issue_start>username_0: In R markdown I want to make the table with 2 rows and 8 columns. ``` \begin{table}[ht] \begin{tabular}{c|c|c|c|c|c|c|c} \hline variable & N & Mean & Std.Dev & SE Mean & 95% cI & T & P \\ Y & 25 & 92.5805 & ? & 0.4673 & (91.6160, ?) & ? & 0.002 \\ \hline \end{tabular} \end{table} ``` I enter...
2018/03/18
1,196
5,021
<issue_start>username_0: I have an SchoolActivity that has two buttons: -Primary (adds the PrimaryFragment) -Secondary (adds the SecondaryFragment) ``` xml version="1.0" encoding="utf-8"? ``` Both the fragments has content and footer area, which are themselves are fragments (PrimaryContentFragment, PrimaryFooterFrag...
2018/03/18
2,747
8,582
<issue_start>username_0: I have a wireframe shader that displays triangles such as on the left cube, and wanted to update it so that it would only display quads such as on the right cube. [![Triangles VS Quads](https://i.stack.imgur.com/vDJUZ.png)](https://i.stack.imgur.com/vDJUZ.png) Here's the code: ``` Shader "Cu...
2018/03/18
603
2,400
<issue_start>username_0: WebRTC requires too much processing power on server so doing it massively will be cost-prohibitive. For nearly all other platforms - both for Windows and Mac - Chrome, Safari desktop, even IE and Edge, and Android - there is a Media Source Extensions API (<https://en.wikipedia.org/wiki/Media_...
2018/03/18
1,115
3,753
<issue_start>username_0: I have an html table which should do two things: 1) Inside the tables i need to display some anchors 2) If clicked anywhere besides the anchor i want it to execute a certain javascript Here is what i have so far: ``` | | | | | --- | --- | --- | | [asdfasdf](goaway) | [asdfasdf](goaway) ...
2018/03/18
249
983
<issue_start>username_0: I `git reset --hard` and then made some new commits. When I try to push these new changes, I'm prompted to git pull to get the changes made after . I'm trying to just write over these changes git is prompting me to pull. This is a simple project so I just have the one master branch. What is th...
2018/03/18
2,910
6,653
<issue_start>username_0: I have an ebook text file named `Frankenstein.txt` and I would like to know how many times each letter used in the novel. **My Setup:** I imported the text file, like this inorder to get a vector of characters `character_array` ``` string <- readChar("Frankenstein.txt", filesize) character...
2018/03/18
1,834
6,460
<issue_start>username_0: I have a table inside a form, generated by a formset. In this case, my problem is to save all the items after one of them is modified, adding a new "virtual" column as the sum of other two (that is only generated when displaying the table, not saved). I tried different ways, but no one is work...
2018/03/18
727
2,624
<issue_start>username_0: I have a `var` result in `try/catch`. I want to use the result out of the `try/catch` block, but I can not declare before the `try` block because the `var` gets the type at runtime. Can I do it? ``` public long getConfigVal( int key, ref T sResult) { var myValue; try { myValue = (from el...
2018/03/18
652
2,455
<issue_start>username_0: I have function which answer for pushing items into array. On end function I assign empty string to $scope.newTask for clearing value inside **textarea**. But... Problem is that it not working, after execute function, value inside textarea still is. Could someone explain me why? **HTML** `...
2018/03/18
965
3,486
<issue_start>username_0: I've got a simple React App going on. My `index.js` file looks, of course, like this: ``` import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(, document.getElem...
2018/03/18
502
1,580
<issue_start>username_0: I'm following a tutorial on YouTube on how to customize my checkboxes (<https://youtu.be/ojWA8pdT-zY?t=5m58s>) for a form but my CSS classes won't get recognized. Not sure why. This is how I got it's referenced in HTML: ``` 1 ``` And this is how I got it in CSS: ``` .labeltext:before { ...
2018/03/18
1,426
5,088
<issue_start>username_0: ``` Exception in thread "main" java.lang.IllegalStateException : The path to the driver executable must be set by the webdriver.chrome.driver system property; for more information, see https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver. The latest version can be downloaded from http://chr...
2018/03/18
550
1,698
<issue_start>username_0: My id #kiwi doesn't seem to work. Could anyone explain me why it is not working? I've been searching for some help but couldn't find it. It doesn't even work when I try to class it too. ``` this is the title sucker #kiwi {background-color:green;} | Statistics | | --- | | Car model name | ...
2018/03/18
1,037
4,291
<issue_start>username_0: I have the following unit test: ``` let apiService = FreeApiService(httpClient: httpClient) apiService.connect() {(status, error) in XCTAssertTrue(status) XCTAssertNil(error) } ``` The actual function looks like this: ``` typealias freeConnectCompleteClosure = ( _ status: Bool, _ ...
2018/03/18
1,211
5,261
<issue_start>username_0: I'm making a game similar to 'who wants to be a millionaire?' and I have a 'Next' button which takes the player to the next question. However, since I am allowing up to four players to play, I want this 'Next' button to disable after a maximum of 3 clicks, (or less if there is one/two/three pla...
2018/03/18
1,425
4,796
<issue_start>username_0: I'm new to Ruby, please bear with me if this is a stupid question, or if I'm not following the best practice. I'm finding an object in the DB using `find()`, and expect it to throw `RecordNotFound` in case the object of the id does not exist, like this. ``` begin event = Event.find(even...
2018/03/18
879
2,653
<issue_start>username_0: I am not sure if the problem lies in my logic, or incorrect use of syntax :/ Gives the error "ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SET Answer = "Leap Year"; ELSE SET Answer ...
2018/03/18
929
2,958
<issue_start>username_0: I'm doing a C application that reads and parses data from a set of sensors and, according to the readings of the senors, it turns on or off actuators. For my application I will be using two threads, one to read and parse the data from the sensors and another one to act on the actuators. Obviou...
2018/03/18
1,094
3,680
<issue_start>username_0: I am using a nRF52832 chip attached to a DW1000 module. The issue is when requesting data from the DW1000, the first byte is missing. The chip is supposed to send 0xDECA0130 but instead I receive 0xCA0130FF. When I make the receive buffer larger, the missing 0xDE shows up (the transmission star...
2018/03/18
529
1,981
<issue_start>username_0: I have 2 classes in Java. One is a Car class that consists of 5 variables. Among them I have a List equipment variable. Another class contains the list of the Car class objects: List carlist. My task is: I have to sort the list of car object, using Streams in Java based on the amount of the eq...
2018/03/18
456
1,611
<issue_start>username_0: I was trying to use `scanf` but when I run the code the code goes on forever. And when I stop the code I get > > [Done] exited with code=1 in 28.291 second > > > My question is what am I doing wrong? Here is the code I was trying to execute. My editor is VS code 1.21.0. ``` #include #...
2018/03/18
313
1,238
<issue_start>username_0: My activity's current layout: ``` xml version="1.0" encoding="utf-8"? ``` So it is essentially just a toolbar and a FrameLayout (which is a container thats populated by Fragments). Because of this, every fragment ends up having this toolbar, which I only want in the `MainActivity`. How do I...
2018/03/18
4,282
14,025
<issue_start>username_0: I'm trying to create a horizontal timeline but I'm not sure the best way to go about arranging the events divs correctly. At the moment it looks like this: ``` • Entry 1 • Entry 2 • Entry 3 • Entry 4 ``` [![enter image description here](https://i.stack.imgur.com/yeN5b.png)](https://i.s...
2018/03/18
1,882
8,363
<issue_start>username_0: So i was playing around in java once again and while doing so, i ran into an interesting problem. I was trying to write my self a little registration service. If an object of a certain type is instantiated via its constructor it would retrieve an id from my registration service and is added to...
2018/03/18
776
3,023
<issue_start>username_0: I am rendering local web content on a `WKWebView` using a local server of `GCDWebServer`, but I have a cross-origin request due to cookies sitting in the backend. how could I configure a proxy that will solve this problem. NOTE: I have try'd to implement something on GitHub called `CorsProxy` ...
2018/03/18
282
985
<issue_start>username_0: How could I transform a number with commas like 123,245 to a number without commas like this 123245, I know that you could already put commas in number without them but how to do that in reverse? pure JAVASCRIPT please!<issue_comment>username_1: This may help [support CORS](https://github.com/...
2018/03/18
749
2,791
<issue_start>username_0: Suppose I had this layout below: ``` class Navigation extends React.Component { primaryFun() { console.log('funn') } secondaryFun() { this.primaryFun(); } } ``` I'd of expected this to then call primary but instead I get an undefined, Ok. So I thought I'd add a constructor to bind th...
2018/03/18
1,029
3,434
<issue_start>username_0: I got Twitter and Google login with Django all-auth. Having issues with Facebook now. Tried every single combination between localhost/127.0.0.1/etc (also went extreme routes by changing my hosts to local.domain.com - even got an SSL thing going as Facebook apparently blocks http access (since ...
2018/03/18
699
2,282
<issue_start>username_0: striving to make jquery and li working in this context: ``` ### Statistics * Stat 1 * Stat 2 ``` s ``` $(function() { $("#statLateralMenu li").click(function() { alert( "A" ); $("#statLateralMenu li").removeClass("selected"); $(this).addClass("selected");...
2018/03/18
1,601
6,137
<issue_start>username_0: My main objective is to conditionally render a "Create profile" button if the user does not have a profile in firebase, or an "Edit profile" button if the user has a profile. I am not having issues rendering the edit profile button. I am checking if the user has a profile by comparing the aut...
2018/03/18
836
2,390
<issue_start>username_0: I need the textarea to stretch across the width of the web page. Here's what the developer tools Source in Chromes gives. ``` Musak [Application name](/) * [Home](/) * [API](/Help) Musak ----- textarea { width: 800px; height: 100px; background-color: black; font-size: 1em; font-w...
2018/03/18
1,432
5,098
<issue_start>username_0: How to insert a new node(create with javascript) under the clicked node?. At the moment it crosses the original div, I do not want that it crosses, it should remain in its origin ```js let parent = document.getElementById("parent"); parent.addEventListener("click", function(event) { var...
2018/03/18
969
3,985
<issue_start>username_0: I created a custom control class which inherits from `Button`. The reason I did that is I need to create the same Button and I don't want to do everything every single time. Also, I want a DropDown list selector for the properties that I add, accessible from the Properties Grid in the For...
2018/03/18
533
1,487
<issue_start>username_0: i know that my question maybe down voted and amateur/basic but I'll take it gladly for the sake of learning. how do i fill my 2d array from numbers 1-9 using loop? no vectors pls, im still in the basic ty. ``` #include using namespace std; int main(){ int ar[3][3]= {0}; for(int i =1;i<=9;...
2018/03/18
1,476
5,224
<issue_start>username_0: I'm able to know whether a user has an active subscription for a given product: ``` $subscribed = WC_Subscriptions_Manager::user_has_subscription($userId, $productId, $status); ``` But I'm not managing to figure out how many subscriptions to this product that user has… *(Woocommerce Subscrip...
2018/03/18
664
2,536
<issue_start>username_0: I'm new to Jquery and i've been working on a checkout form. I've placed a check box " Shipping address different from billing address? " and upon checkbox checked the fields are set to empty using the following code. ``` $(document).on('change', '#ship_to_different_address', function() { ...
2018/03/18
869
3,027
<issue_start>username_0: I am unable to print a grid. This is what I am trying to do: 1. Take the grid size as an input from the user. 2. Dynamically create the grid based on the input. Below is a part of the code. ```js $(document).ready(function() { $("#grid-input").click(function() { $(".drawing-are...
2018/03/18
437
1,646
<issue_start>username_0: I'm saving part of my variables in MySQL fields instead of files How can I recover it of a part of new PHP file? And using a similar functions like **include()** but for variables. As an idea of theoretical code: ```html php $var = '$nom = "NOMBRE"; $cognom = "APELLIDO"; '; // somethi...
2018/03/18
2,135
6,220
<issue_start>username_0: I have the following program that I am compiling using Microsoft's Visual C++ command line compiler. ``` #include void foo(int, int); void main(void) { foo(5,4); } void foo(int a, int b) { printf("%u\n", sizeof(int)); printf("%u\n", &a); printf("%u\n", &b); } ``` When I print out t...
2018/03/18
2,161
6,471
<issue_start>username_0: **CODE:** ``` Lorem ipsum dolor sit amet, consectetur adipisicing elit. Deserunt rem odit quis quaerat. In dolorem praesentium velit ea esse consequuntur cum fugit sequi voluptas ut possimus voluptatibus deserunt nisi eveniet!Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolorem ...
2018/03/18
659
2,400
<issue_start>username_0: I'm still a beginner in reactJS (using nodeJS backend) and I have to create a website to manage my collections. I don't know if what I'm going to ask you is feasible, but it probably is. So I'm using a react component, react-photo-gallery. It's a component where you can use url links and it mi...
2018/03/18
1,050
3,032
<issue_start>username_0: I created a racetrack shaped curve in three.js with the following code: ``` var path = new THREE.Path(); path.moveTo(150,50); path.lineTo(150,150); path.quadraticCurveTo(150,175,100,175); path.quadraticCurveTo(50,175,50,150); path.lineTo(50,50); path.quadraticCurveTo(5...
2018/03/18
968
3,017
<issue_start>username_0: I want to check if a given point on a map (with its latitude and longitude) is inside a certain polygon. I have the vertex coords (in lat/long) of the polygon. I thought of creating a Polygon and check if point is inside, but it gives me that the point is always outside... Maybe the polygon do...
2018/03/18
643
1,857
<issue_start>username_0: I would like to calculate the correlation coefficient between two columns of a pandas data frame after making a column boolean in nature. The original `table` had two columns: a `Group` Column with one of two treatment groups, now boolean, and an `Age` Group. Those are the two columns I'm looki...
2018/03/18
415
1,502
<issue_start>username_0: I have a Fortran 95 code that I want to compile to a Python library using f2py. In a matter of fact I've already done it, and it works beautifully. Does the resulting .pyd (.so) depend on numpy after compilation? Could it be used without numpy installation and are they some other options to emb...
2018/03/18
1,190
4,610
<issue_start>username_0: This is my first time to use a List. I have a Class named Foods and I want to make a dynamic list out of it. I wrote the first line that you can see below and then there are a lot of methods that just popped out that I need to override. What should I write in each method? Or is this the right w...
2018/03/18
401
1,055
<issue_start>username_0: I am trying to filter my output to display only files created in "Jan" and "Feb". Is there a way to do this without using grep? Would need to be able to switch from "Jan" and "Feb" to "Jan" and "Mar" etc..<issue_comment>username_1: Try this : ``` find . -newermt "31 Dec 2017" -not -newermt "2...
2018/03/18
582
1,519
<issue_start>username_0: I have a data set in Excel similar to the following: ``` A B 1: 07:42:07 2 2: 07:42:08 3 3: 07:42:09 4 4: 07:42:10 5 5: 07:42:11 6 6: 07:42:12 7 7: 07:42:13 8 ``` Given a particular time, I would like to extract the value which is diagonal to the sp...
2018/03/18
968
3,673
<issue_start>username_0: We are trying to debug a crash that happens for some users, but can't figure out exactly what it is. In Google Play console, we see this: ``` java.lang.RuntimeException: at android.app.ActivityThread.handleReceiver (ActivityThread.java:3331) at android.app.ActivityThread.-wrap20 (Activi...
2018/03/18
563
2,067
<issue_start>username_0: In Shiny, we have `downloadButton()` and `fileInput()` buttons for downloading and uploading data respectively. However it happens that, with `downloadButton()` there is *download* icon, and however with `fileInput()` no icon is attached. In my Shiny app, I have both buttons. However since on...
2018/03/18
1,027
3,442
<issue_start>username_0: I will try to keep this as brief as possible as I tried to find an answer and I couldn't. I am trying to create a simple till system. I am using a CSV file to store the description, price and stock of the product. If the user logs in as a manager they will be able to change the stock of a parti...
2018/03/18
582
1,878
<issue_start>username_0: I am new to fedora and just creating process in fedora using c++ code. I want to make 2 process from the parent process. I am doing so in my code but the When process 2 is created and I check its parent id it differ from the original parent Id can some tell why this code is showing this behavio...
2018/03/18
1,320
3,918
<issue_start>username_0: I have to catch "hover" and after call JS function. I call it from html. But nothing happen. I tried also to use mouseover - also doesn't work from html. I have to catch "hover",but can't make event listener in JS file on "hover".I can put event listener on "mouseover" but it doesn't work corre...
2018/03/18
631
1,883
<issue_start>username_0: Im using str\_match in dyplr in R to extract a string from a column and put it into a new column. The full strings look like: ``` Chemical: (BETA-CYFLUTHRIN = 118831) ``` I just want 'BETA-CYFLUTHRIN' so I'm trying to use regex to get the value between ( and = but I've been getting ``` ...
2018/03/18
3,428
10,607
<issue_start>username_0: I have made a tic-tac-toe game , where i make 9 buttons and then mark the button `x` or `o` by turn and change the color for the mark. I also have a `checkIsWinner` function that checks the winning combinations. If the combination is a winner then i use a variable and check it true if there i...
2018/03/18
381
999
<issue_start>username_0: on condition that string may be is "password Rtt3<PASSWORD>6" (without "is"). ``` (?<=password\ is|password\ ).* ``` That regexp doesn't work, because always return "is Rtt3Ved36" (but i need "Rtt3Ved36"). How to keep order in OR condition?<issue_comment>username_1: You may use ``` password...
2018/03/18
389
1,181
<issue_start>username_0: In my code, if i click the `add_box` icon, it will add another input form below so that I could input more values, but this is the problem shown in this link <http://g.recordit.co/R0iifhd6Wd.gif> and this is my code ### Component.ts ```js instrumentsData = { particulars: '' } addParticula...
2018/03/18
1,118
3,866
<issue_start>username_0: I am writing a Sudoku generator/solver in Haskell as a learning exercise. My `solve` function takes in a `UArray` but returns a `State Int (UArray ...)` so that it can also return the maximum difficulty level that it found while solving. This is my function so far (still in the very experimen...
2018/03/18
923
2,743
<issue_start>username_0: I would like to share with you my thoughts about this code: ``` for (var i = 1, max = 5; i < max; i++) { let random = Math.random(); let expression = (random < 1 / (i + 1)); if (expression){ console.log('random is: ' + random + ' and the expression is: ' + expression + ', i...
2018/03/18
835
2,574
<issue_start>username_0: I have an array : ``` myData: [{ name: "", lastName: "", historicalData: [{ data1: '', data2: 0, }, { data1: '', data2: 30, } ] }, { name: "", lastName: "", historicalData: [{ data1: '', data2: 6, }, { data1: '', data2: 1, ...
2018/03/18
960
2,957
<issue_start>username_0: I am setting up a aws server for Django Server. I have successfully installed python3.5.1, pip and django. Following aws documentation i am running the following command : > > pip install awsebcli > > > I get this Error: ``` Collecting awsebcli Using cached awsebcli-3.12.4.tar.gz ...
2018/03/18
1,270
4,217
<issue_start>username_0: I have created an API using Go. It's working fine in postman but not when consumed using javascript. When I post request using javascript I'm getting an error saying that Access-Control-Allow-Origin is set to null. go API code: ``` package main import ( "fmt" "encoding/json" "git...
2018/03/18
615
2,425
<issue_start>username_0: I want to make a program which plans park positions for incoming aircrafts at airport in C#. To do that, I need to consider aircrafts' type (big plane or small), domestic or international, terminal 1, or 2 or 3... etc. I can use many if statements such as: --- ``` if(aircraft is terminal 1){ ...
2018/03/18
479
1,917
<issue_start>username_0: I just have a little question here. How can I make this arrow to back to previous activity? I mean, I know how to code it, but i can't find this arrow. Is it something, that is in e.g. android studio or is it something that i have to make by myself?[![enter image description here](https://i.sta...
2018/03/18
979
2,830
<issue_start>username_0: Can someone explain how Babel in React supports fat arrow functions as class properties? Using Babel [Try it out](https://babeljs.io/repl/#?babili=false&browsers=&build=&builtIns=false&code_lz=MYGwhgzhAECKCuBTCAXAlgewHbQN4Ch9poBbATwAUAnDAB2gF5oAKASkYD48jjorEU8KjgDkACUQgQGADTQA7hiogAJgEIRAbh4BfH...
2018/03/18
480
1,537
<issue_start>username_0: Are both methods alternative to each other or they have any specific role in while adding element in vector in the middle like performance wise?<issue_comment>username_1: `insertElementAt()` will add the new element to the vector preserving the previous elements. `set()` will overwrite the elem...
2018/03/18
567
1,868
<issue_start>username_0: The problem =========== Is it possible to send a POST request with `Content-Type: application/json` on AMP applications? More context ============ I have a form on my App and I need to perform a POST request on my API with `Content-type: application/json`. I've checked the [amp-form](https:/...
2018/03/18
488
1,446
<issue_start>username_0: I am trying to parse json response from an API. ``` response = requests.post('https://analysis.lastline.com/analysis/get_completed', files=files) my = response.json() print my ``` **Output:** ``` {u'data': {u'tasks': [], u'more_results_available': 0, u'after': u'2018-03-18 22:00:20', u'bef...
2018/03/18
1,651
6,686
<issue_start>username_0: When .NET first came out, I was one of many who complained about .NET's lack of deterministic finalization (class destructors being called on an unpredictable schedule). The compromise Microsoft came up with at the time was the `using` statement. Although not perfect, I think using `using` is ...
2018/03/18
1,436
5,453
<issue_start>username_0: I'm working on a project that calculates the derivative of the speed and the integral of the acceleration. my problem is that I have a lot of acceleration points and speed over time and I can not find the right program for that. example: * acceleration from 0 km / h to 40 km / h in 5 seconds...
2018/03/18
1,339
3,963
<issue_start>username_0: I have a mongodb db with 18625 collections. It has following keys: ``` "_id" : ObjectId("5aab14d2fc08b46adb79d99c"), "game_id" : NumberInt(4), "score_phrase" : "Great", "title" : "NHL 13", "url" : "/games/nhl-13/ps3-128181", "platform" : "PlayStation 3", "scor...
2018/03/18
1,240
4,745
<issue_start>username_0: I have a db with structure like in the image below: [![enter image description here](https://i.stack.imgur.com/7Hcm1.png)](https://i.stack.imgur.com/7Hcm1.png) Here, I need to have multiple brands, and also multiple sub brands under each brand. I tried with 'maps' before, but it was really mes...
2018/03/18
347
1,433
<issue_start>username_0: The following code ``` class A { public: A() {} // default constructor A(int i) {} // second constructor }; int main() { A obj({}); } ``` calls the second constructor. Probably the empty `initializer_list` is treated as one argument and is converted to `int`. But when you remove ...
2018/03/18
1,184
5,774
<issue_start>username_0: I'm trying to test a async Python function using pytest. My test is passing with a warning, when it *should* be failing. This is my test: ``` import asynctest import pytest from Foo.bar import posts @pytest.mark.asyncio async def test_get_post_exists(): returned_post = await posts.get_p...
2018/03/18
1,005
5,210
<issue_start>username_0: I would like to make a class which looks like a `String` to VBA. That is, if I make a function with a string argument, and pass this object instead, I won't get any errors. I thought `Implements String` would work, but apparently it's not even an option! Why is it not possible, and is there a...
2018/03/18
1,036
3,737
<issue_start>username_0: I am to do a presentation on SQL Injection, and what better way to do it than to make my own php queries and show them to the class. The problem is I have my DB and php code running flawlessly, but can't seem to find an exploit on my UPDATE query in an edit form I made. If anyone could take a l...
2018/03/18
2,264
6,591
<issue_start>username_0: I am attempting to use a corporate SQL Server as the backend for my Django project with Python 3.5.2. I have installed Django 2.0.3, pyodbc==4.0.22, django-pyodbc-azure 2.0.3, pypiwin32==219 (pip freeze below). I have also configured DATABASES in my site's settings.py (see below). When attempti...
2018/03/18
1,029
3,798
<issue_start>username_0: I am working on my first Django project. But I get following errors: **edit\_file template** ``` {% csrf\_token %} {{ form.errors }} {{ form.non\_field\_errors }} {% for hidden\_field in form.hidden\_fields %} {{ hidden\_field.errors }} {{ hidden\_field }} {% endfor %} File Name ...
2018/03/18
548
2,383
<issue_start>username_0: ``` new Thread(new Runnable(){ @Override public void run () { Intent firstServiceIntent=new Intent(getApplicationContext(),MyService.class); } }).start(); ``` I have to perform background location updates in the service. I've used Lo...
2018/03/18
1,225
4,738
<issue_start>username_0: I'm trying to create a stopwatch function within Google Sheets, and I'm having some trouble in getting `var diff` to show the difference in seconds:milleseconds between `var currentTime` and `var previousTiming`. For some reason, I'm only retrieving a 'NaN' value. The thought is that there wil...
2018/03/18
727
2,317
<issue_start>username_0: I'm using [jss](http://cssinjs.org/react-jss?v=v8.3.5) and [TransitionGroup](https://reactcommunity.org/react-transition-group/). How can I set the step-enter-active class in jss? css ``` .step-enter { opacity: 0; } .step-enter.step-enter-active { opacity: 1; transition-duration: 100ms; t...
2018/03/18
609
2,115
<issue_start>username_0: A problem occurred configuring project ':app': > > Failed to notify project evaluation listener. > > Could not initialize class com.android.sdklib.repository.AndroidSdkHandler > > > I am trying to build a project for class and have been getting this error while running the test. Wha...
2018/03/18
797
2,697
<issue_start>username_0: This seems like a simple question, but I can't find the solution on here. I have a data frame with over 900 columns. The precise number of columns can increase over time, but the first 10 are always the same and the last 10 are always the same. I'd like to move the last 10 columns to just aft...
2018/03/18
461
1,569
<issue_start>username_0: I can't figure out how to make visible the bottom part of the slider in this row where i used clip-path to make the background with angled top and bottom. I tried z-index, overflow and position:relative in combination with all elements but nothing helped: <http://sport.fusionidea.com/test-page...