date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/13
435
1,265
<issue_start>username_0: I have a table where user\_id is related to the role a user has, so not necessarily 1:1 user to role, because he can have multiple roles. I am looking to only select the users which have role\_id = 2 and not any other role. Can you assist? ``` select user_id, role_id from users u join roles ...
2018/03/13
609
2,050
<issue_start>username_0: I have two View Controllers. In the first one, let's call it ViewControllerA, I have a Button. In the second view controller, let's call it ViewControllerB, I have a View. The Button in ViewControllerA performs a segue to ViewControllerB. Normally, the View in ViewControllerB has its isHidden p...
2018/03/13
882
2,295
<issue_start>username_0: ``` h=0.005; x = 0:h:40; y = zeros(1,length(x)); y(1) = 0; F_xy = ; for i=1:(length(x)-1) k_1 = F_xy(x(i),y(i)); ...
2018/03/13
910
2,812
<issue_start>username_0: My objective is to list the local hard disks on PCs and search for specific file on each of them. If found, output the path of the file to a text file that would be named "PCNAME.txt". My expectation is as below: ``` set filename="abc.exe" set uncpath="%userprofile%\desktop\" set fullpath=%unc...
2018/03/13
715
2,017
<issue_start>username_0: This question is based on the solution in [this thread](https://stackoverflow.com/questions/27864295/how-to-use-oauth2resttemplate/49266112#49266112).I implemented the top answer, but I am getting mixed results. ``` String stringObj = restTemplate.getForObject(http://server/rest/api/users?acce...
2018/03/13
489
1,844
<issue_start>username_0: So in my angular JS web app, I have a function that calls on a node in the firebase database called `orderedPlayers` and returns it as an array as follows: ``` $firebaseArray(orderedPlayers) .$loaded(function(loadedPlayers) { // function in here }); ``` When attempting to d...
2018/03/13
306
1,208
<issue_start>username_0: I need to know if `googletag.pubads().disableInitialLoad()` was called, in which case I'll load an ad using a `display` and a `refresh` calls, otherwise I'll load it using just `display`. My assumption is that if I always call `display` plus `refresh` I will get 2 ad requests unless `disableIni...
2018/03/13
1,621
6,673
<issue_start>username_0: I’m storing some data in a shared memory array used by several processes. At some point I want to grow the array. Assume there’s already a synchronisation mechanism between the processes Initially Process 1 will create the segment and process 2 will open it. Process 1 `shm_open() O_CREAT` ...
2018/03/13
951
2,990
<issue_start>username_0: I downloaded Code Igniter 3.1.7 and am hosting my website on IIS 8. However; I am currently at a stop due to an irritating problem which I have been trying to solve. My goal is to remove 'index.php' from url when trying to access a controller. > > Example: <http://localhost/welcome> instead ...
2018/03/13
951
2,975
<issue_start>username_0: Trying to replace a line with a multi-line file. I can easily do this with a single-line file or multi-line string (see below). ``` #!/bin/bash NEW_STRING="apple\nbanana\ncarrot" sed -i "3s/.*/$(echo "${NEW_STRING}")/" tmp.txt # Outputs... # line 1 # line 2 # apple # banana # carrot # line ...
2018/03/13
464
1,792
<issue_start>username_0: I'm trying to make a modules and for one of the commands I need it to remove a specified user. I need help with it finding the line the user is at. Then deleting the username. Here is the code. ``` def delete_usr(usr): file = open("Username.txt","r+") count = 0 userfound = False ...
2018/03/13
1,224
2,890
<issue_start>username_0: I am trying to iterate the rows in a dataframe (data) to check if one of the columns (data$ID) has similar difference (e.g., 3) between consecutive elements. If yes, keep the row, otherwise remove the row. The tricky part is I need to re-compare consecutive elements after certain row is removed...
2018/03/13
952
2,425
<issue_start>username_0: I want to get the file which is non-decoded h264 format to use in another client application. I know how to stream to disk using below command from the docs. **Example to encode video from /dev/video0:** `ffmpeg -f v4l2 -framerate 25 -video_size 640x480 -i /dev/video0 output.mp4` **High lev...
2018/03/13
2,056
4,206
<issue_start>username_0: I have an array of lat long coordinates and I am trying to use a KDTree and scipy's `query_ball_point` to return all data points within a 1 mile radius of a designated latitude and longitude. The problem is that `query_ball_point` is returning points that are outside of the specified 1 mile ra...
2018/03/13
1,032
4,287
<issue_start>username_0: After help from experts over at question *[Camel unit test with cametestsupport, template is always null](https://stackoverflow.com/questions/49118176/camel-unit-test-with-cametestsupport-template-is-always-null)*, I ended up with one more issue. Below is my test class - a simple test that tes...
2018/03/13
299
1,037
<issue_start>username_0: I'm trying to send email with Laravel using mailtrap for testing in a local homestead server. The firewall shows no rules blocking port 2525. Mail driver config: ``` MAIL_DRIVER=smtp MAIL_HOST=mailtrap.io MAIL_PORT=2525 MAIL_USERNAME=$USERNAME MAIL_PASSWORD=<PASSWORD> MAIL_ENCRYPTION=null `...
2018/03/13
312
1,039
<issue_start>username_0: Regex beginner here. I've been trying to tackle this rule for phone numbers to no avail and would appreciate some advice: 1. Minimum 6 characters 2. Maximum 20 characters 3. Must contain numbers 4. Can contain these symbols `()+-`. 5. Do not match if all the numbers included are the same (ie. ...
2018/03/13
548
1,702
<issue_start>username_0: I'm having trouble with getting my code to work (see below). The problem is the countifs function in the last section of the code. I feel that I have formatted it right but an error message is thrown up each time it gets to this part of the code. Error message is "Run-time error '438': Object d...
2018/03/13
810
2,667
<issue_start>username_0: I'm having some trouble with using the malloc/realloc command with arrays. I've created a small array with some integers in it, and tried to add one value to it by expanding the size with realloc and adding the value, but when I do that the 0 index's value is not preserved and is seen as garbag...
2018/03/13
4,925
17,699
<issue_start>username_0: I was given this query to run but it returned spool error. I was told to take the bolded where statement out and use it to create categoryG exclusions table and then add another new step to join that table with the rest of the table. I'm new to Teradata and got very lost. Hoping someone can hel...
2018/03/13
2,498
9,123
<issue_start>username_0: Been trying to resolve this issue for a few days now. I've done a ton of searching and tried several solutions - nothing has helped thus far. I have a Visual Studio 2017 project. It has been running and debugging fine for years now. Suddenly, the other day I can no longer debug the application...
2018/03/13
726
2,884
<issue_start>username_0: I need to create an object from its name in Node.js. How can I do it (without using eval)? For example, I've tried something like the code bellow, but it failed on `Person is unknown'. I guess it has something with the context (this). I tried the bind/call/apply functions, but with no avail. ...
2018/03/13
941
3,714
<issue_start>username_0: I have an PayPal IPN which is working good. If somebody buys a product on my homepage, he gets an email with the product key. So far so good. But now I have a problem. Sometimes the payment is onhold and not available directly. The problem was often, that people bought a product and charged bac...
2018/03/13
619
2,401
<issue_start>username_0: I'm wading through the documentation and finding lots of different things about inter-app communication and sending files around and starting apps from other apps, but I haven't found any screenshots or sample results in the documentation. I'm getting overwhelmed and I just want to know what is...
2018/03/13
757
2,354
<issue_start>username_0: What am I doing wrong here? ``` php $xml=simplexml_load_file("<dict ChannelID example ChannelDVRs id LIVE name example1111 description Live logoUrl http://www.example.com/logos/190x110/298.jpg logoUrlSD http://www.example.com/logos/190x110/298.jpg isVOD false StreamURL exam...
2018/03/13
1,201
3,878
<issue_start>username_0: I'm trying to scrape movie titles from [Tmdb](https://www.themoviedb.org/?language=en) but each title has a different selector. Is there a way for me to get them all in one go? For example: The css selector for [Birdman](https://www.themoviedb.org/movie/194662-birdman?language=en) is .7, [Sta...
2018/03/13
381
1,443
<issue_start>username_0: I am new to javaScript and is not able to understand why split function is behaving differently just by assigning it to a variable. For example, ``` var str = "This is text 1"; var ani = str.split(" "); console.log(ani[0]); ``` The above code gives the whole word "this" , whereas fo...
2018/03/13
1,206
4,302
<issue_start>username_0: I am trying to clone from a Gitlab server from my Macbook. When I clone, I get the following error: ``` manzanita-226-109:icarus homeuser$ git clone elm:dummy/dummy.git Cloning into 'dummy'... ssh_exchange_identification: read: Connection reset by peer fatal: Could not read from remote reposi...
2018/03/13
536
2,021
<issue_start>username_0: I've been searching around for how to do this an di think i broke my table I tried adding ``` dealership = models.ForeignKey('Employee', null=True) ``` To the field to the models.py, since I noticed thats where my other column fields were, and now the entire table is gone. After some mor...
2018/03/13
1,057
3,548
<issue_start>username_0: I'm trying to calculate the the percentage of items sent by royal mail from the delivery table. ``` (SELECT post_method FROM delivery_tbl WHERE post_method = 'RM') / SELECT post_method FROM delivery_tbl; ``` I get an error saying > > "SQL command not properly ended". > > > Any hel...
2018/03/13
1,214
4,849
<issue_start>username_0: I have the following image preview script that I am currently working with I found online which works fine in the form I have created. However, I would like to modify the script in the following (attempts have been made but no success) 1.I would like to be able to have the name of the file(s) ...
2018/03/13
607
2,075
<issue_start>username_0: I have a long list where each element is a list of length 2. The first element of each is a list is a string and the second element of each list is an integer corresponding to the string. I want to loop through the long "parent" list and delete any "child" lists where the integer is less than ...
2018/03/13
1,574
5,989
<issue_start>username_0: while building crud app in angular 5 I've come across with a question, how can I use the same form builder but change what form controls I get depending on what I want, adding or updating users thru form... Here's some simple code, I will try not to complicate things, since I have pretty big f...
2018/03/13
616
1,975
<issue_start>username_0: I am trying to post to Google Analytics under node with simple `http` request like this: ``` var http = require("http"); var post_options = ({ host: "www.google-analytics.com", path: "/collect", body: "ec=a&ea=bb&ev=1&cid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&v=1&tid=UA-123456789-0&...
2018/03/13
534
2,009
<issue_start>username_0: I have an app that ingests photos from SD cards. After they are copied the cards will be reformatted and put back in cameras and more photos will be stored on them. Currently, instead of using the PHP `copy()` function, I am doing the following (roughly): ``` $card = '/Volumes/SD_Card/DCIM/EO...
2018/03/13
878
3,977
<issue_start>username_0: I currently have a feature in my app that inserts an event into Google Calendar. However, the code for this feature is over 4 years old and today, when I tested this app, I saw that the event is not being inserted into Google Calendar. However, it is on the normal Android calendar, but when I a...
2018/03/13
176
728
<issue_start>username_0: Is it possible to add all content items of a specified content type to a list without having to do it one by one? (there are a lot of items!)<issue_comment>username_1: The first approach uses the `http` core module so it will make a `POST` request to `http://www.google-analytics.com/collect`. S...
2018/03/13
836
3,627
<issue_start>username_0: I started a project and I started to have a lot of web traffic, and at some point I felt insecure of how to scale the project to production in two issues: 1. How to perform updates without leaving my users without service? 2. How to correctly configure Node.js so that it consumes less memory? ...
2018/03/13
520
1,600
<issue_start>username_0: Say I have an array of objects called friends ``` let friends = [ {"name": "<NAME>", "type": "pending"}, {"name": "<NAME>", "type": "friends"}, {"name": "<NAME>", "type": "friends"}, {"name": "<NAME>", "type": "friends"}, {"name": "<NAME>", "type": "alien"} ] ``` how wo...
2018/03/13
1,523
5,071
<issue_start>username_0: I am trying to deploy a golang code on Heroku. My code needs a text file as input and I need to fetch this text file from S3 bucket. My go-code takes the filename as input, Can someone provide a code snippet for reading a file from S3 and storing its contents into a file? My GOlang code- ``` ...
2018/03/13
1,235
3,488
<issue_start>username_0: I have searched around and can not find much on this topic. I have a table, that gets logging information. As a result the column I am interested in contains multiple values that I need to search against. The column is formatted in a php URL style. i.e. ``` /test/test.aspx?DS_Vendor=55039&DS_...
2018/03/13
853
3,378
<issue_start>username_0: Using [AWS SAM Local](https://github.com/awslabs/aws-sam-local) I can test my serverless application locally, which is awesome. I can also [deploy to AWS](https://github.com/awslabs/aws-sam-local#package-and-deploy-to-lambda), which apparently takes the same flags as `aws cloudformation deploy...
2018/03/13
1,157
3,775
<issue_start>username_0: I am trying to open an Excel document that is located on a server. I wrote the following code but it always returns false for `UIApplication.shared.canOpenURL(url as URL)` I think I am missing some requirement for deep linking to Excel. Why is iOS not able to understand `ms-excel:ofe|u|` forma...
2018/03/13
529
1,869
<issue_start>username_0: I have a PHP/MySQL scenario where I want to display a list of events but also show all users assigned to an event. In MySQL I have an `events`, `eventusers` and `users` tables. I can `SELECT event_id, event_name FROM events` then loop through results in PHP and then `SELECT user_id FROM event...
2018/03/13
546
2,017
<issue_start>username_0: I'm trying to make this simple calculator calculate tax rates, but I'm obviously missing something, because I can't get it to work. ```js function millrate() { var assessment = document.getElementById("assessment"); var millrate = document.getElementById("millrate"); var taxes = asses...
2018/03/13
1,046
2,895
<issue_start>username_0: In my code I'm assuming that the 2D circle is a planet similar to Earth but blue. I want to plot the two vectors a\_h and a\_r perpendicular to each other on the edge of the blue circle but I'm not sure how to place the perpendicular vectors a\_h and a\_r on the top or bottom of the circle.[Wha...
2018/03/13
794
2,635
<issue_start>username_0: I try to display items from the following list : ``` const dataItems = [ {'key': '1','label': 'Informations Basiques', 'icon' : 'person', 'fields': [{'field':'Nom', 'value':'Piedigrossi'}, {'field':'Prénom', 'value':'Guillaume'}, {'field': 'Mail', 'value': '<EMAIL>'}]}, {'key': '2','label': 'T...
2018/03/13
716
2,687
<issue_start>username_0: Details ======= * Using Visual Studio 2017 * Built NuGet package with NuGet Package Explorer * Placed .nupkg file in local folder on disk * Added folder to Package Sources in Visual Studio * I attempt to install the package using the Visual Studio GUI (Tools > NuGet Package Manager > Manage Nu...
2018/03/13
2,901
9,308
<issue_start>username_0: I have written a custom function which must call `number_format()` to round my input number (float) to predetermined number of decimal places (the number of decimal places should cap at 5) and make modifications to the decimal character and the thousands delimiter. After the number is rounded ...
2018/03/13
810
3,123
<issue_start>username_0: Consider this layout: ``` xml version="1.0" encoding="utf-8"? ``` Because of the `height_max` constraint this leads to a TextView where the text fills the vertical space but there's a lot of horizontal padding inside of the TextView: [![autosized TextView](https://i.stack.imgur.com/B5H3B.pn...
2018/03/13
908
3,475
<issue_start>username_0: I'm spinning my wheels trying to run tests in intellij. I'm using the basic framework of a cucumber skeleton project as such. [![cucumber java](https://i.stack.imgur.com/PJ3RV.jpg)](https://i.stack.imgur.com/PJ3RV.jpg) I have also updated my POM file as such: ``` xml version="1.0" encodi...
2018/03/13
1,260
4,376
<issue_start>username_0: I have the following code in Node.js: ``` exports.getProfiles = async function(query, page, limit, val){ var options = { page, limit }; let clause = [ {$project:{name:{$concat:["$firstName"," ","$lastName"]}, ...
2018/03/13
1,294
3,892
<issue_start>username_0: This is my first time doing any sort of spatial data visualization in R, and I'm stuck on a particular issue. I would like to clip a spatial polygon (specified by a series of lat/long coordinates) according to a world map, such that any part of the polygon which overlaps with a map polygon is r...
2018/03/13
831
2,760
<issue_start>username_0: so I have a copy constructor of a class over here... ``` template LinkedStack::LinkedStack(const LinkedStack& aStack) { // Point to nodes in original chain Node\* origChainPtr = aStack.topPtr; if (origChainPtr == nullptr) topPtr = nullptr; // Original stack is empty else { // Copy first nod...
2018/03/13
465
1,440
<issue_start>username_0: Let's say I have the following table, which can contain 100M + rows. Table example ``` id user_id week content created ======================================================================== 1 100022312 1 2 102232123 1 ... 10...
2018/03/13
406
1,503
<issue_start>username_0: I have a list lets call it answers of numbers and am taking slices of that array and displaying there value. What I'd like to do is also note the position of what place I want in the array... ``` {{ item }} ``` I have tried: ``` {{ item }} {{ i }} ``` But `i` results in **0,1,2** inst...
2018/03/13
429
1,551
<issue_start>username_0: I have a Panda's Dataframe that I need to reindex into a specific fashion. There are several numbered indices, but the last one is a string. Without the inclusion of the string, the index goes in numerical order, 1-20 just fine. However, as soon as I include the string index, the order switch...
2018/03/13
372
1,168
<issue_start>username_0: ``` * [aaa](#tab-aaa) * [bbb](#tab-bbb) * [ccc](#tab-ccc) if ($('ul[role="abc"] li').hasClass('active')){ if($(this).find('a').attr('href') != '#tab-bbb') { //problem here alert ("bbb is active"); } } ``` From code above, see comment out `//problem here` there Supposedly code should be `...
2018/03/13
1,882
6,534
<issue_start>username_0: I am wondering how to can implement Particle-animation in the background of my Shiny app, as available in <https://vincentgarreau.com/particles.js/> Below is my Shiny code so far. **ui.R** ``` library(shiny) fluidPage( tagList(tags$head(includeCSS("CSS.css"), includeScript("particles.j...
2018/03/13
928
2,927
<issue_start>username_0: Is it possible to compare Integers in the compareTo() method in conjunction with Collections.sort() because when I run the following code it will not compile; the compiler says there is an error with **this** as it compares **this** to the other integer.*I am trying to sort the numbers in desce...
2018/03/13
382
1,488
<issue_start>username_0: So, I'm trying to validate an input field, where an input field cannot be empty. If someone doesn't enter any text into the input field and click 'start a new game' button it should display an alert message saying you need to enter a name. However, my code does not display the alert message f...
2018/03/13
528
1,841
<issue_start>username_0: I am writing a vending machine simulation in Python as school work and I am required to edit a specific line to keep a stock list up to date. Here is the code: ``` import csv with open('stock.csv','r') as STOCK_READ: #Counts the amount of items in the CSV file ITEM_COUNT = 0 reader =...
2018/03/13
353
1,284
<issue_start>username_0: I have this logic, ``` .switchMap((data: ISearchModalPayload | number ) => {..... } ``` where `data` is either an interface object or a number. How can I determine the data type before I carry on with my routine? I tried the following, from this [post](https://stackoverflow.com/a/541769/21...
2018/03/13
1,012
3,208
<issue_start>username_0: How can I set the width to my ngx bootstrap modal, I've tried but like It is fixed? Here's the html ``` × #### Are you sure? No Yes ``` How can I set the width of the modal for buttons to be placed just on the edge of the modal, with lets say 5 px of border margin? [modal bootstra...
2018/03/13
733
2,397
<issue_start>username_0: I've got 2 tables which have relationships using Eloquent of which I'm attempting to **filter** based on requests. ``` +----------+---------+ | Table 1 | +----------+---------+ | id | rl_id | +----------+---------+ | 39 | 2 | | 40 | 234 | | 41 | 3...
2018/03/13
932
3,365
<issue_start>username_0: I'm trying to set up a regional API gateway with a custom domain, and I'm hitting a problem involving SSL certificates. Here's what I've done: * Using ACM, created a certificate for vitalservices-3.docriot.com. * In API Gateway, created a regional custom domain name--vitalservices-3.docriot.co...
2018/03/13
5,671
19,359
<issue_start>username_0: I need to generate a very large text file. Each line has a simple format: ``` Seq_numnum\_val 12343234 759 ``` Let's assume I am going to generate a file with 100million lines. I tried 2 approaches and surprisingly they are giving very different time performance. 1. For loop over 100m. In ...
2018/03/13
687
2,099
<issue_start>username_0: I am seeking to create a table that will take an array with 3 items separated by commas and have them inserted in to a table. Currently my table either fails, or will present the items all grouped together. Under each heading I have one row each filled with "Madrid,Spain,3255944", "Santiago,Chi...
2018/03/13
994
3,530
<issue_start>username_0: I know I shouldn't be trying to reinvent the wheel, however I'm required to for this assignment. I'm struggling to get any output at all from my LinkedList, I believe my addFirst() method is not properly adding the node or my toString() method is not properly displaying the LinkedList. Any idea...
2018/03/13
697
2,514
<issue_start>username_0: I am setting up a NuGet package for my team to use for all of our projects, internally. It contains code for configuring the NLog logger for whichever project references the package. However, our custom NLog.config file is not showing up in the final build, but all of the other files included i...
2018/03/13
570
1,904
<issue_start>username_0: I am trying to compare a value (for example if D4 >= 10) and if this is true have it pull the data in the column. This is to pass information from one table to another in the same excel sheet. For some reason I cannot seem to do this for a whole range of cells without having a lot of empty spac...
2018/03/13
1,377
3,957
<issue_start>username_0: I have seen relevant questions on StackOverflow, but guess this one is different. The actual problem is: How to crate multiply relationship between existing nodes? I got this code: ``` session .run('MATCH(u:TEST { id: $id }) \n' + 'MATCH(m:TEST { id: 39}) \n' + 'CREATE(m...
2018/03/13
556
2,272
<issue_start>username_0: We are attempting to create a new document in word online using the office javascript library. The script is contained in a word add in. The documentation for the create method is at <https://dev.office.com/reference/add-ins/word/application>. Calling the createdocument followed by the open met...
2018/03/13
316
1,057
<issue_start>username_0: I have a code like this that gives undefined errors for "style" ``` $style = !$title && !$icon ? " style='display: none'" : ""; return "" . '' . $afterLabelHtml . '' . $title . '' . ''; ``` I have fixed the problem by changing the first line to: ``` if (isset($style)) {$style = !$title && !...
2018/03/13
235
815
<issue_start>username_0: i try to show last item first in my ChatView. Unfortunately the app:stackFromEnd = "true" function doesnt work and the view shows first items default. I did the following in my XML Layout: ``` ```<issue_comment>username_1: Your `return` should go **inside** of your conditional: ``` if (isset...
2018/03/13
1,028
3,706
<issue_start>username_0: In my code, I want to try fetching $\_POST or $\_GET variables, and unsetting them as soon as they were requested once. This function returns the method used, which is simple enough. Unfortunately I cannot simply return the $\_POST or $\_GET variables directly or by reference, because I wouldn...
2018/03/13
850
2,987
<issue_start>username_0: I know that size of an `int` differs from CPU to another * 2 bytes for 16-bit machines * 4 bytes for 32-bit machines Since we're talking to the **GPU** and not the **CPU**, We use `GLint` when passing **OpenGL** parameters, which is defined as ``` typedef int GLint ``` but there's `GLfixed...
2018/03/13
911
3,139
<issue_start>username_0: Following the [documentation](https://cloud.google.com/sql/docs/mysql/import-export/#csv_file_reqs), I am trying to import a local CSV onto a MySQL db hosted on GCP. I am using the following console command: ``` LOAD DATA LOCAL INFILE "C:/Users/user1/gcp/Feb_Pull.csv" INTO TABLE actuals CHARAC...
2018/03/13
698
2,569
<issue_start>username_0: In the process of attempting to package an electron project using electron-packager npm module, an error continues to show up upon running the .exe of the packaged product. this error is pointing at app/dist/packaged-app-win32-x64... and the error is displayed below: [![Error Window](https://i...
2018/03/13
1,061
3,258
<issue_start>username_0: The contents of table `@sales` is basically the most sold car brand per city. This is saying that *Toyota* was sold the most in *Houston* and *Chicago*, etc. The result of this query (which I *know* can be better) shows what brands were tied and the amount of times it tied. For example, *Chevy...
2018/03/13
764
2,859
<issue_start>username_0: I am trying to use the `decltype` keyword on an auto function: ``` struct Thing { static auto foo() { return 12; } using type_t = decltype(foo()); }; ``` And I get the following error (gcc 7.4): ``` :6:25: error: use of 'static auto Thing::foo()' before deduction of 'au...
2018/03/13
763
3,137
<issue_start>username_0: How is a 2D area layout in memory? Especially if its a staggered area. Given, to my understanding, that memory is contiguous going from Max down to 0, does the computer allocate each area in the area one after the other? If so, should one of the areas in the area need to be resized, does it shi...
2018/03/13
3,259
10,596
<issue_start>username_0: When creating an `HttpListener` object using ``` var server = new HttpListener(); server.Prefixes.Add("http://*:8080/"); server.Start(); ``` everything works fine. However, when I use ``` var server = new HttpListener(); server.Prefixes.Add("http://demindiro.com:8080/"); server.Start(); ``...
2018/03/13
567
1,986
<issue_start>username_0: Using Bulma CSS for a little help I made custom component to make me handle different kind of inputs with redux-form. I would like to setup a default value for a select input. ``` import React from 'react'; import { Field } from 'redux-form'; const DropDownItem = ({ spec }) => { const { na...
2018/03/13
983
3,996
<issue_start>username_0: I'm trying to layout a 4x4 grid, with text in the centre of each, and a filled background colour, and I can't get the background colour to expand to fill the whole grid square. This is the UI code: ``` body: new Column( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children:...
2018/03/13
789
3,198
<issue_start>username_0: In functional languages such as `Scheme` or `Lisp` there exist `for` and `for-all` loops. However `for` loops require mutation since it's not a new stack frame each iteration. Since mutation is not available in these languages explicitly how do these functional languages implement their respect...
2018/03/13
305
1,121
<issue_start>username_0: Is it possible to config flume sink to be my agent's file system. Do I have to sink to hdfs or hadoop? I am working with flume 1.6.0 and kafka 10.1.1 I will show you my flume config and flume command line args if you ask but maybe I'm doing something that is just not meant to be done. ...
2018/03/13
556
1,933
<issue_start>username_0: I'm having a problem with jQuery waiting for additional javascript to execute before updating the DOM. In the example code below, the h1 element isn't updated for >5 seconds after the SlowUpdate function is called. I'm using chrome, but observed the same issue in IE. I know it's not strictly re...
2018/03/13
678
1,928
<issue_start>username_0: I am currently looking for the fastest way to parse a string in Ruby. The string has the format: > > "#{String1}>#{String2}(#{Integer})", for example "Hello>World(25)" > > > and I am looking to retrieve the values of String1, String2, and Integer out of it. My current way of doing it is j...
2018/03/13
311
993
<issue_start>username_0: I want to customize my form submit button label from "submit" to "Edit" in some of pages , and "submit" to "Add" in some other pages, with twig and Symfony 3.4 as this : ``` {{ form(form) }} {{ form_widget(form.submit,{'label':'edit'}) }} ``` but this is not working for me :/ I see the docu...
2018/03/13
482
1,363
<issue_start>username_0: I created a regex for postal code (non us countries) to include two criterias .. * minimum 5 chars , max 10 chars * should have only alpha numneric with only one space/hyphen in the middle regex: ^([a-zA-Z0-9]{3,10}[ |-]{0,1}[a-zA-Z0-9]{0,7})(.{5,10})$ I'm not sure where this is going wrong,...
2018/03/13
588
1,653
<issue_start>username_0: I have a list in the following format: ``` s = "['abc', 'xxx', '3c2', '111112', 'x']" ``` How would I get the element "1" -- the item that comes after the `[` but before the `,`. So far I had: ``` re.search(r'[.+,',s) ``` But it is too 'greedy'. What would be the correct regex here?<issue...
2018/03/13
723
3,067
<issue_start>username_0: I have added a custom Service Provider to a Laravel app and the service provider runs well. However, Artisan gets an error now. When I remove the service provider the error goes away ( no errors when the Service Provider runs in normal mode ). In this case the error is related to the DB Drivers...
2018/03/13
580
2,187
<issue_start>username_0: Given ``` class someClass { constructor (str) { console.log('created', str); } static someStatic() { } } ``` we can do ``` const someBoundClass = someClass.bind(someClass, 'xxx'); const a = new someBoundClass(); // logs 'created xxx' console.log(someClass.someStatic) // logs som...
2018/03/13
610
2,305
<issue_start>username_0: I'm trying to change the background color of a div containing a radio button when the button is checked. This is the html ``` Test ``` I've tried it using jquery like this ``` $(".testing-container input").change(function() { if ($(this).is(":checked")) { $(this).parent()...
2018/03/13
813
3,214
<issue_start>username_0: When my iPhone is on my local WiFi Xcode sees my iPhone over the network. My Mac Pro development machine is running macOS Server with a VPN server. When I VPN into my Mac Pro from my iPhone my Mac can ping the iPhone over its VPN IP address [screenshot](https://i.stack.imgur.com/gP43n.png) (172...
2018/03/13
760
3,035
<issue_start>username_0: I am using dxl and I have two strings where string a is a new line separated collection of IDs and string b is a specific ID I am looking for in string a. Bad Case: string a = "ID12\nID2\nID3" string b = "ID1" matches(b,a) will incorrectly return true in this case when I want it to return f...
2018/03/13
2,619
8,557
<issue_start>username_0: I am very new to programming, I am doing freecodecamp twitch tv JSON API project, I managed to get the names in different divs but everytime I refresh it has a different order (I want order to be same every time), I tried everything can someone please explain what I need to do??? ```js funct...
2018/03/13
421
1,428
<issue_start>username_0: I'm querying a column in `hive`. This columns contains a `json` payload and is in this format: ``` {"aaa":"xxx", "status":"yes", "bbb":"xyx", "ccc":"yxy", "status":"no", "status":"maybe", "ddd":"zyz"} ``` I'm trying to extract all the status values that appear in different points of the pay...
2018/03/13
438
1,382
<issue_start>username_0: I'm working with PyZMQ 16.0.4 backed by ZeroMQ 4.1.6 and trying to get a better sense of the socket option **`INVERT_MATCHING`**. I've tried the following in a repl: ``` >>> import zmq >>> context = zmq.Context.instance() >>> pubsock = context.socket(zmq.PUB) >>> pubsock.INVERT_MATCHING = 1 ...