date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/18
1,572
5,183
<issue_start>username_0: Is it possible to use a stem part of multiple xpaths to create a program to randomly selects one? Say for example we are given these multiple xpaths: ``` //a[@href='/colour/red/yellow'] //a[@href='/colour/red/blue'] //a[@href='/colour/blue/ornage'] //a[@href='/colour/yellow/green'] ``` I...
2018/03/18
1,078
3,702
<issue_start>username_0: This code to append to a to-do list works in the editor in a Codecademy tutorial, but using the same code in CodePen, nothing happens when I type text into the form box and hit submit (whereas in Codecademy, the entered text is added below the form box). It's not just an issue with CodePen, eit...
2018/03/18
471
1,747
<issue_start>username_0: `godoc -html` generates documents for only one package. However, I want to ship the project with all documents for all packages, just like when I run `godoc -http`. With that, I could find all packages and navigate through them from the browser. Is it possible to generate HTML pages for all pa...
2018/03/18
1,622
5,373
<issue_start>username_0: I'm learning about Bash scripting, and need some help understanding regex's. I have a variable that is basically the html of a webpage (exported using wget): ``` currentURL = "https://www.example.com" currentPage=$(wget -q -O - $currentURL) ``` I want to get the id's of all linked photos in...
2018/03/18
444
1,579
<issue_start>username_0: I'm learning SQL, for an exercise I have to several things. I'm making a query to compare the most recent orderdate with the orderdate before. I want to use a correlated subquery for this. I have already made it using a Cross Apply and Window functions. At the moment I have this: ``` select ...
2018/03/18
2,693
5,050
<issue_start>username_0: I have a dataframe as show below: ``` index value 2003-01-01 00:00:00 14.5 2003-01-01 01:00:00 15.8 2003-01-01 02:00:00 0 2003-01-01 03:00:00 0 2003-01-01 04:00:00 13.6 2003-01-01 05:00:00 4.3 2003-01-01 06:00:00 13.7 2003-01-01 07:00:00 14.4 2003-01-01 08:00:00 ...
2018/03/18
1,926
3,857
<issue_start>username_0: I am a beginner at Python and I'm trying to use a `while loop` to sum up all of the squared `n` values in a given `n` value range. Code: ``` def problem2(n): x = 0 y = 0 while x < n: y = (n**2)+y x+=1 return y ``` For some reason, this equation returns the i...
2018/03/18
457
1,687
<issue_start>username_0: I'm trying to insert values into a struct so I can display them again later on. ``` typedef struct { char* displayname; char* name; } objectHolder; void registerObject(char* displayname, char* name) { objectHolder->displayname = displayname; objectHolder->name = name; cha...
2018/03/18
387
1,179
<issue_start>username_0: Currently, I am trying to get all the steam reviews from a particular game, using the method described in the Steamworks documentation: <https://partner.steamgames.com/doc/store/getreviews> However, when I try to get reviews for a game like Dota 2 for example using the method: <http://store.s...
2018/03/18
874
2,924
<issue_start>username_0: So i am using the Google maps API for my website and I want the markers text to be equal to the value of another html element. Anyone here knows how to update the value of the text property of a marker in the google maps API? Here is my code regarding the problem. ``` var map, marker; var in...
2018/03/18
2,596
9,072
<issue_start>username_0: I am trying to pass data through pojo class in cucumber but i am getting Null pointer Exception My feature file is as follows -: ``` Feature: Registeration in Mercuryflight site Background: Given I've a valid set of data and access pojo @Registrationpojo Scenario: Multiple user ...
2018/03/18
315
1,209
<issue_start>username_0: I need the bot to delete the message from the command author, and leave the bot message. Any help will be appreciated! thank you. I have already tried looking for a answer on google but nothing has worked<issue_comment>username_1: You can obtain the message that called the command by passing t...
2018/03/18
1,398
5,144
<issue_start>username_0: I am trying filter this array with .filter. ```js var objList = [ { "name": "Object0Name", "id": "Object0ID", "Object1List": [ { "id": "Object1id_A1", "name": "Object1Name_A1", "Object2List": [ { "id": 187, ...
2018/03/18
859
1,759
<issue_start>username_0: I have a data.frame which has two column. However, I need to convert the format of `psw` column in 5 digit integer from the current format. How can I automatically change 1 digit to 5 in `psw` column? How can I get this done in R easily? Thanks Here is reproducible data.frame ``` mydat <- dat...
2018/03/18
970
3,174
<issue_start>username_0: I am working with a third party device which has some implementation of Lua, and communicates in BACnet. The documentation is pretty janky, not providing any sort of help for any more advanced programming ideas. It's simply, "This is how you set variables...". So, I am trying to just figure it ...
2018/03/18
401
1,371
<issue_start>username_0: We have `parquet` data saved on a server and I am trying to use `SparkR` `sql()` function in the following ways ``` df <- sql("SELECT * FROM parquet.` SELECT \* FROM parquet.` ``` and ``` createOrReplaceTempView(df, "table") df2 <- sql("SELECT * FROM table") show(df2) # returns " SELECT \* ...
2018/03/18
711
2,155
<issue_start>username_0: I want to sort a list of strings alphabetically. Here is my code: `lis =list( input("list")) print (sorted (lis, key=str.lower))` input:`['constitute', 'Eflux', 'Intrigue', 'Sedge', 'Stem', 'Whim']` output:`[' ', ' ', ' ', ' ', ' ', "'", "'", "'", "'", "'", "'", "'", "'", "'", "'", "'", "'...
2018/03/18
780
2,648
<issue_start>username_0: ``` #include using namespace std; // prototype functions void DisplayResult(float MaxOrMin); float FindMinimum(float Array[5]); float FindMaximum(float Array[5]); //Global Variables float Array[5]; float MaxOrMin = 3; float FindMin; float FindMax; //Main Function int main() { cout << "...
2018/03/18
1,095
4,135
<issue_start>username_0: In my app I want to download images from url and show them in recyclerView. And basically everything is ok - when I download images, turn off wifi and mobile data - cached images are being displayed. Tried several times - it works perfectly. However ... after for example 3-4 hrs I tried again t...
2018/03/18
1,012
3,304
<issue_start>username_0: I'm reversing engineering a old flash game and on login process a POST request is send to server. ActionScript2: ``` req.username = inicial.login_mc.username_txt.text; req.password = inicial.login_mc.password_txt.text; xmlResponse = new LoadVars(); xmlResponse.onLoad = function() { xml =...
2018/03/18
1,183
3,493
<issue_start>username_0: I need help, this is my code. I've done what I need for the landing page, but can not make navigation bar stick to the top it is just hanging just above the middle of the screen. Don't know what to do with flex, or is in this example flex the problem, or what? I have tried position relative, a...
2018/03/18
1,799
4,588
<issue_start>username_0: I'm trying to create my own indicator for the (forex) metatrader4 platform (C++), but I'm stuck on a logical problem using `for` function. This is part of my code ``` for(int i = limit - 1; i >= 0; i--) { CCI_buffer[i] = iCCI(NULL,0,CCI_period,PRICE_WEIGHTED,i); } ``` This code will ret...
2018/03/18
839
2,977
<issue_start>username_0: I have an situation where I have a render function that passes some data to a scoped slot. As part of this data I'd like to include some VNodes constructed by the render function that could optionally be used by the scoped slot. Is there anyway when writing the scoped slot in a template to outp...
2018/03/18
344
1,068
<issue_start>username_0: To speed up some operations I transfered image to GPU memory. After some processing I have to crop some area: ``` image = cv2.UMat(image) ... crop = image[y1:y2,x1:x2] ``` The problem is that it is not possible to slice image inside GPU memory. Above code will raise error: "UMat object is no...
2018/03/18
548
1,888
<issue_start>username_0: I am trying to delete rows from one table. So this what i have done so far. I imported a .CSV file which created a temp table. I would like to delete the rows in my original table with matching with temp table. I tried the following code : ``` Delete From Table1 Where postid and userid in (S...
2018/03/18
4,263
15,709
<issue_start>username_0: Introduction ------------ I'm working on a project where a user is able to enter facts and rules in a special format but I'm having some trouble with checking if that format is correct and obtaining the information. When the program is launched the user can enter "commands" into a textarea an...
2018/03/18
1,399
3,562
<issue_start>username_0: How can I replace a NA value by the average of the previous non-NA and next non-NA values? For example, I want to replace the first NA value by -0.873, and the 4th/5th by the average of -0.497+53.200. Thanks! ``` t <- c(NA, -0.873, -0.497, NA, NA, 53.200, NA, NA, NA, 26.100) ``` ==========...
2018/03/18
1,138
4,520
<issue_start>username_0: When should I use Clojure's `core.async` library, what kind of applications need that kinda *async* thing? Clojure provides 4 basic mutable models like **refs**, **agents**, **atoms** and **thread locals/vars**. Can't these mutable references provide in any way what `core.async` provides with...
2018/03/18
1,114
3,594
<issue_start>username_0: I'm new to C++, and I've been searching all day to find a way to randomly select one of two distinct integers. Everything I've found so far works only for integers within a range (1-10, etc) rather than for (1 **or** 3). For ex. code I've been using elsewhere in the program (for a range of nu...
2018/03/18
850
3,086
<issue_start>username_0: I have a JavaScript that updates a html every couple of seconds based on the return value from an ajax call. I'd like to add a nice effect on the so that whenever the html inside changes, the background of the changes to some other color for a second and then change back. It is similar to...
2018/03/18
1,375
3,956
<issue_start>username_0: Attempting to get the body fixed conditions of planets, RA, DEC, PM, using the NASA example at. <ftp://naif.jpl.nasa.gov/pub/naif/toolkit_docs/FORTRAN/spicelib/tipbod.html> TIPBOD is used to transform a position in J2000 inertial coordinates to a state in bodyfixed coordinates. TIPM = TIPBOD...
2018/03/18
402
1,563
<issue_start>username_0: We have images table with following columns:- 1) imageId, 2) productId, 3)isApproved [flag 1/0]. One product can have multiple images. We have stored procedure that has to return all approved images of a particular productId + count of all images (approved/non-approved) of that productId. ``...
2018/03/18
1,025
4,074
<issue_start>username_0: I'm using the WooCommerce REST API to e.g. get all products with variations, but I encounter a fairly large problem regarding the number of fired requests. I need help optimizing the situation below. Situation: A webshop with 50 products and 5 variations for each product. 1. Get all master pr...
2018/03/18
144
370
<issue_start>username_0: **intput**: iprange1, iprange2 iprange3 iprange4 **output**: iprange1 iprange2 iprange3 iprange4 I have no clue how to do that.<issue_comment>username_1: ``` sed 's/,[[:space:]]*/\n/g' file ``` Upvotes: 3 [selected_answer]<issue_comment>username_2: replaces ", " with 2 empty rows. `...
2018/03/18
823
3,591
<issue_start>username_0: For some reason when receiving data from fire base real time database, no matter which account I log into or whatever the database will always return "points" as 0, even when the value store in the database is not zero. The Uid is definitely correct as I checked that.I do not understand why and...
2018/03/18
993
3,431
<issue_start>username_0: I have an Android App that converts text to voice. each word/string on the array is a button that when selected it converts to voice. I am looking to implement this in Flutter. ``` private TextToSpeech tts; ``` GridView grid; ``` String[] words = { "Flutter", "Dart", ...
2018/03/18
993
3,410
<issue_start>username_0: I'm having an issue with a selection box. When I select the option I can't get the value that I just selected. I read a lot of answers, but none of them seems to work for me. Here is my code. HTML: ``` Choose an option {{selectedType}} ``` Controller: ``` elements:[ { ...
2018/03/18
646
2,226
<issue_start>username_0: I try the instance query as below to convert a commas separated list into multiple records and I found the cte table 'tmp' can run on its own until all sub-strings were loaded in a new record. This example query is from this [thread](https://stackoverflow.com/questions/5493510/turning-a-comma-s...
2018/03/18
1,250
5,264
<issue_start>username_0: I have a data table in which rows are added based on data available on the internet. Each time I add a row, I also put a timestamp on the row. This has been working for a number of years, with hundreds of users with no errors occurring. I now wish to delete rows from the data table based on the...
2018/03/18
468
1,228
<issue_start>username_0: Hi i was just wondering if someone can explain to me how the following php code evaluates to 5 ``` php $a = 12 ^ 9; echo $a; ? ``` so I know the output will be 5, but can someone explain to me how this works?<issue_comment>username_1: As far as I understand the process, php con...
2018/03/18
997
3,101
<issue_start>username_0: I have 10 objects here, but I have to intiliaze 20 more, is there a shorter way to do it? ``` Gallina[] gallina=new Gallina[10]; gato[0]=new Gato(true, "Siames", "Fluffy", 10); gato[1]=new Gato(false, "Persa", "Fluffy", 11); gato[2]=new Gato(true, "<NAME>",...
2018/03/18
394
1,470
<issue_start>username_0: While in XML resources I can use a system reference style color like this (*just an example*): ``` android:textColor="?android:itemTextColor"> ``` I would like to know how to get that color in java programmatically, when I need to set that color like this (*unrelated another example*): ``` ...
2018/03/18
928
3,171
<issue_start>username_0: I want to check if string one in array contain the letters from words in string 2. Here's my example array: `(["Floor", "far"]);` function should return false because "a" is not in string "Floor" But for array like this: `(["Newbie", "web"]);` It should return true because all of letters ...
2018/03/18
1,233
4,205
<issue_start>username_0: I have this function to add clients on a .txt but now i wanna delete one who you puts. I want to go through the array to find the client entered in the "removeClient" function [The full code is here: https://pastebin.com/xaJ61THK](https://pastebin.com/xaJ61THK) The function to add clientes is:...
2018/03/18
664
2,346
<issue_start>username_0: I am trying to use this package here without using any bundlers(webpack/browserify). I have already downloaded this package to my project by running `npm install --save mtgsdk`. To use this package in Javascript, I would call `const mtg = require('mtgsdk')`. If I don't want to install/configure...
2018/03/18
1,340
5,131
<issue_start>username_0: I went back to programming my old program <https://github.com/JonkiPro/REST-Web-Services>. I've updated Spring Boot from version 15.6 to version 2.0.0. I have encountered many problems with compilation, but I can not deal with one. Well, during compilation, he throws me in the console ``` 2018...
2018/03/18
533
1,442
<issue_start>username_0: I have a Pandas Dataframe that looks as follows: ``` streak 0 1.0 1 2.0 2 0.0 3 1.0 4 2.0 5 0.0 6 0.0 ``` I want to delete every row after the first `0.0` in the `streak` column. The result should look like this: ``` streak 0 1.0 1 ...
2018/03/18
3,131
8,062
<issue_start>username_0: How do I configure Spring Boot Gradle plugin 2 to disable the Boot distribution in Gradle Script Kotlin. The distribution i want is a assembly bundle zip with all dependencies (and the jar) in the lib folder. I have enabled the Jar task and disabled the bootJar task. Current source of my bu...
2018/03/18
3,997
13,071
<issue_start>username_0: I'm back at you with another question from Ionic 3 & Angularfire2 ! I changed my pages to make them run on android with plugins and all the stuff needed to use native functiuns at their maximum. BUT ! When I try to, I face a strange issue... I have no problems when I am coding, I can u...
2018/03/18
825
3,492
<issue_start>username_0: What are the Android SDK platform packages for? Do I need to download corresponding platform for every API level I'm targeting?<issue_comment>username_1: When you set `android:minSdkVersion` it means that you want to use the benefits and development tools of that version (also the users below ...
2018/03/18
1,586
6,684
<issue_start>username_0: I am trying to simulate videocard (producer thread) and a monitor(consumer thread), to figure out what is going on in educational purposes. So here is the technical task description: Producer thread produces frames pixel data at 1000 fps. Consumer thread runs at 60 fps and every frame it must...
2018/03/18
761
3,113
<issue_start>username_0: In [this question](https://stackoverflow.com/questions/46841534/pair-a-bluetooth-device-in-android-studio), @nhoxbypass provides this method for the purpose of adding found Bluetooth devices to a list: ``` private BroadcastReceiver myReceiver = new BroadcastReceiver() { @Override ...
2018/03/18
1,125
2,410
<issue_start>username_0: ``` A B C 0 2002-01-13 15:00:00 120 1 2002-01-13 15:30:00 110 2 2002-01-13 16:00:00 130 3 2002-01-13 16:30:00 140 4 2002-01-14 15:00:00 180 5 2002-01-14 15:30:00 165 6 2002-01-14 16:00:00 150 7 2002-01-14 16:30:00 170 ``` I want to select one row...
2018/03/18
327
1,377
<issue_start>username_0: I've set up a `DataGridViewColumnCollection` as follows: ``` private DataGridViewColumnCollection columns; private void RemoveStaffFromList(object sender, EventArgs e) { columns = dataGridViewStaff.Columns; MessageBox.Show(columns.Count.ToString()); dataGridVie...
2018/03/18
5,499
21,743
<issue_start>username_0: I know many such questions have already been asked tried a lot then after posting the question. I`ll start from beginning: Few days ago I tried to sing in with my facebook user I get message from facebook: „URL isn't included in the app's domains!“ I solved it by adding URL in <https://develop...
2018/03/18
2,607
5,119
<issue_start>username_0: I installed `fiona` as follows: ``` conda install -c conda-forge fiona ``` It installed without any errors. When I try to import `fiona`, I get the following error: Traceback (most recent call last): ``` File "", line 1, in File "/home/name/anaconda3/lib/python3.6/site-packages/fiona/\...
2018/03/18
466
1,540
<issue_start>username_0: Upon compilation, I got this error: ERROR in node\_modules/angular-in-memory-web-api/http-backend.service.d.ts(2,75): error TS2307: Cannot find module '@angular/http'. node\_modules/angular-in-memory-web-api/http-in-memory-web-api.module.d.ts(2,28): error TS2307: Cannot find module '@angular...
2018/03/18
526
1,724
<issue_start>username_0: In C++, I've constructed a basic class such as this: ``` class MyList { protected: list> nodes; int size; ... } ``` However later on in MyList when I try to insert a value into my nodes list, such as: ``` MyOtherClass\* temp = new MyOtherClass(size); nodes.push\_back(temp); ``` I rec...
2018/03/18
584
2,019
<issue_start>username_0: In my Django/Python application I am passing multiple iterable objects from views.py to index.html. I am essentially trying to make a standard for loop in which you can get an item by its index. Once I am iterating through the first object, how can I get the respective index of another iterable...
2018/03/18
333
1,195
<issue_start>username_0: I just installed Xamarin (Visual Studio). But I have a problem: When I start a new Android project (Blank app) and I open the `Main.axml` there is this message: > > This project contains resources that were not compiled successfully, rendering might be affected > > > Maybe it's easy t...
2018/03/18
332
787
<issue_start>username_0: If I have `x = [1,2,3,4,5]` `y = [6,7,8,9,10]` how can I get a two dimensional array in the form of `combined = [[1,6],[2,7],[3,8],[4,9],[5,10]]`<issue_comment>username_1: A few options. Numpy should be your go-to tool for performant array operations. Sticking with your original input...
2018/03/18
655
2,129
<issue_start>username_0: I am currently having problems with a plugin. I want to give a player effects for 5 seconds and after the 5 seconds, it should be day. My problem is, that the day command is executing instantly, so it is day, before the effects are over. Can you help me, that the command for setting the time to...
2018/03/18
495
1,706
<issue_start>username_0: Is is it possible to select Data like this in SQL Server? ``` select * from table(object_id) ``` I would like so pass the object\_id as parameter to the select because I need to select from a global temptable which looks different and has a different name every time. The object\_id I get li...
2018/03/18
1,170
4,620
<issue_start>username_0: I came across the code which returned a list of "parse results" where always single result had only the exception value or successfuly parsed `T` object. ``` class SingleResult { Optional parseResult; Optional parseException; } ``` I refactored that "two purpose" class into separate classe...
2018/03/18
545
1,945
<issue_start>username_0: I'm trying to run a panel regression in Stata with both individual and time fixed effects. I have a lot of individuals and time periods in my sample so I don't want to print the results of all of them. But the documentation I've read online only shows how to run panel regression with one fixed ...
2018/03/18
720
2,455
<issue_start>username_0: I'm trying to get the interior colours of a range of cells in Excel using win32com/python. Looping through each cell is not an option as that takes 3 to 5 seconds to complete while the colours change every second. Using [Range.Value(11)](https://msdn.microsoft.com/en-us/vba/excel-vba/articles/...
2018/03/18
356
1,135
<issue_start>username_0: I want to display some informations from the following API: <https://api.coinmarketcap.com/v1/ticker/?limit=1> But if I want to display the 24h\_volume, my browser gaves me an syntax error back: "Uncaught SyntaxError: Invalid or unexpected token" ``` var bitcoinvolume24 = "$" + r[0].24h_volum...
2018/03/18
245
918
<issue_start>username_0: I come the to problem with creating database table over JPA. I have some atributes for creating database table together with two fields for Date. I need to make sure, that input for DateEnd must be bigger than input for DateStart ``` @Column(name="START") private LocalDate dateStart @Column(na...
2018/03/18
345
1,148
<issue_start>username_0: I'm trying to import to a Google Sheet the number of reviews and average rating of a certain venue on Google Maps. Taking as an example this page: ``` https://www.google.com/maps?cid=8807257593070771217 ``` From Chrome's inspector, the XPath for the average should be: `//*[@id='pane']/div...
2018/03/18
413
1,222
<issue_start>username_0: Is there a way to do an assignment to a formal parameter? Something like: ``` sub myfunc($n) { $n = $n + 5; return $n; } ``` Or, would I have to create a new variable and assign the value of $n to it?<issue_comment>username_1: You can use the `is copy` trait on parameters: ``` sub ...
2018/03/18
568
1,812
<issue_start>username_0: I am trying to create an average solver which can take a tuple and average the numbers. I want to use the except hook to give an error message and then continue from the beginning of the while loop. 'continue' does not work. ``` import sys z = 1 x = [] y = 1 i = 1 print('Welcome to the Averag...
2018/03/18
490
1,812
<issue_start>username_0: I want to do local senstivity analysis in Dymola to evaluate different parameters affecting the energy consumption in a building (for multi-familyhouse). Can anyone give me some suggestions, how to do it in Dymola (Modelica) software?<issue_comment>username_1: Did you take a look at the "Desig...
2018/03/18
2,545
8,834
<issue_start>username_0: [![enter image description here](https://i.stack.imgur.com/qjNrO.jpg)](https://i.stack.imgur.com/qjNrO.jpg) [![enter image description here](https://i.stack.imgur.com/Ee5AU.jpg)](https://i.stack.imgur.com/Ee5AU.jpg) [![enter image description here](https://i.stack.imgur.com/JwMi4.jpg)](https:...
2018/03/18
268
1,016
<issue_start>username_0: I stumbled upon a roadblock with the development of a Swift playground I'm developing. I want to add an image to my ARSCNScene (ARKit + SceneKit). Not as a background, but as an actual node with positions and all. Does anyone know whether this is possible? I couldn't find anything online. Thank...
2018/03/18
592
2,126
<issue_start>username_0: I've just installed AWS Command Line Interface on Windows 10 (64-bit). I ran 'aws configure' providing the two keys, a region value of us-east-1, and took the default json format. Then when I run 'aws s3 ls' I get the following error: Invalid endpoint: <https://s3..amazonaws.com> It's either ...
2018/03/18
1,109
4,246
<issue_start>username_0: Edit: Thanks for the helpful answers so far! I'm still struggling to print the input to the "right" div, though. What am I missing? Next to the input field, there is an option to select either "left" or "right". Depending on the selection, the input is to be printed eiether left or right on th...
2018/03/18
920
3,522
<issue_start>username_0: I am working on a site, currently in development, and I see that only on Chrome for Mac text with an Absolute position is breaking to two lines. This doesn't happen on Chrome for PC, or Safari. The development link is <http://boldoriginal.com/sites/lana/> and here is a screenshot for reference:...
2018/03/18
1,831
6,962
<issue_start>username_0: I have bootstrap 4 navbar component highly customed ,when I click navbar-toggle button at small screen it's not working however , in console it shows markup changes as if it's working , I tried to increase z-index , check display , check visibility but no thing works . here is a link to the pa...
2018/03/18
1,132
3,942
<issue_start>username_0: So, here I have some variables initialized like this. ``` var center = Vector2.Zero; // For sample purpose, the real one gain the value dynamically. var size = 1F; var sizeHalf = size / 2; // The `size` variable will be like readonly after initialization in my project. var angle = 30F; var a...
2018/03/18
3,604
12,284
<issue_start>username_0: I have created the app using Flutter create testapp. Now, I want to change the app name from "testapp" to "My Trips Tracker". How can I do that? I have tried changing from the `AndroidManifest.xml`, and it got changed, but is there a way that Flutter provides to do that?<issue_comment>username...
2018/03/18
913
3,072
<issue_start>username_0: I am learning about inheritance in Python and I was experimenting with superclasses and the `super()` function. Here is my code: ``` class Person: def __init__(self, name, age, weight): self.name = name self.age = age self.weight = weight def describe(self): ...
2018/03/18
3,667
13,528
<issue_start>username_0: <https://i.stack.imgur.com/pteDe.png> A: When the man page for open says: The flags specified are formed by or'ing the following values: ``` O_RDONLY open for reading only O_WRONLY open for writing only ... ``` it means we should use a logical or between ...
2018/03/18
829
3,054
<issue_start>username_0: I’m experimenting with XGBoost and am blocked by an error I can’t figure out. I have sklearn installed in the active environment and can verify it by training a sklearn RandomForestClassifier *in the same notebook*. When I try to train a XGBoost model I get the error `XGBoostError: sklearn need...
2018/03/18
1,928
6,560
<issue_start>username_0: I work with Nibs. I have two screens that will use the "same" `UIView` component with the same behavior. It's not the same component because in each screen i placed a `UIView` and made the same configuration, as show on the image. [![The two Screens](https://i.stack.imgur.com/LhN5O.png)](https...
2018/03/18
980
3,259
<issue_start>username_0: I have an array of objects ``` myArray= [{"FName":"", "LastName":"", "data" :[{ active:true, times: 50 },{ active: false, times:450 } ]}] myArray.map(x...
2018/03/18
2,322
7,365
<issue_start>username_0: I am trying to overcome an issue when trying to display new maps. The goal of this code is to have the dropdown menu selection overwrite the existing map in the Content pane as well as overwrite the information in the Legend on the tab container. When running the code, I am running into the fol...
2018/03/18
1,023
3,351
<issue_start>username_0: I'm new to R and I would like to know how to take a certain number of samples from a csv file made entirely of numbers in Excel. I managed to import the data to R and use each number as a row and then take random rows as samples but it seems impractical. The whole file is displayed as a column ...
2018/03/18
685
2,665
<issue_start>username_0: Consider the following React code: ``` class Todos extends React.Component { constructor(props) { super(props); this.state = { item: 'Test', }; } render() { return } } class TodoItem extends React.PureComponent { render() { return {this.props.item} } } function ...
2018/03/18
698
2,476
<issue_start>username_0: I am a python noob trying to parse through an XML API response using Elementtree. The response contains custom data from a form and I am having trouble trying to access some of the nested elements. Below is my code: ``` response = requests.get("https://crm.zoho.com/crm/private/xml/Deals/getCVR...
2018/03/18
877
3,045
<issue_start>username_0: Currently building Petrol-powered RC car controlled by a raspberry pi and 16ch adafruit servo controller Pi hat. Pretty novice query from a beginner but how can simple Python commands be carried out by a single key press. E.g. Holding the "w" key on a keyboard to run "pwm.setPWM(0, 0, servoMax)...
2018/03/18
708
2,612
<issue_start>username_0: I am new to Java. In my course, we must input an existing file using the Scanner object. ``` import java.io.*; import java.util.Scanner; public class InputFile { public static void main(String[] args) { Scanner inFile; public class InputFile { public static void main(String[] args) { S...
2018/03/18
636
2,199
<issue_start>username_0: Below is a representation of some malformed HTML that I get ``` ![](xyz)![](xyz)ABC EFG. HIJ. KLM NOP ``` How do I retrieve every thing within the first 'p' tag i.e. the entire ``` ![](xyz)![](xyz)ABC EFG. ``` I have tried ``` output = tree.xpath("//article/p") ``` When I tr...
2018/03/18
702
2,817
<issue_start>username_0: I have an MS Access database with a form based on a query with simplified data taken from a couple of tables. The primary Key (ItemNumber) in both the relevant tables is present in the query that the form is based on. I want to be able to use a button to move a record from the table Products t...
2018/03/18
727
2,915
<issue_start>username_0: I'm having some issues with a section of code I'm writing and was hoping someone may be able to help me see where I've gone wrong and explain why so I can better understand it. I'm being told that my doubly linked list is no longer linked in both directions but I'm failing to see where I've go...
2018/03/18
775
2,300
<issue_start>username_0: I tried to make Android Project I have ``` OS Windwows 10, Intellige IDEA 2017.2 JDK jdk1.8.0_161 Android API 27 Platform Gradle 4.6 Android SDK 25.5.2 ``` Installed packages [![enter image description here](https://i.stack.imgur.com/J5M9t.jpg)](https://i.stack.imgur.com/J5M9t.jpg) [![ent...
2018/03/18
2,416
7,336
<issue_start>username_0: I have attempted several methods of getting my slider menu to work using jQuery and at best could only get it to function once, and then I would have to refresh the page in order for it to work again. Now I've managed to outdo myself and it has ceased to work at all. I am sharing my code in the...
2018/03/18
730
2,727
<issue_start>username_0: I have a map of maps ``` siteId -> (AppName -> App) ``` I want to iterate all of the Apps in the inner map and create a new map of ``` (appId -> App) ``` I do it without stream ``` Map result = new HashMap<>(); siteIdToAppNameToAppMap.forEach((siteId, map) -> map.forEach((appName, ap...
2018/03/18
918
3,148
<issue_start>username_0: I have a `product` model with a `has_and_belongs_to_many` association with `tags`. I am trying to create a custom query to exclude certain products with a particular tag. With the code below I get the error `PG::UndefinedColumn: ERROR: column products.product_id does not exist...` If I remove `...
2018/03/18
713
2,394
<issue_start>username_0: I'm trying to make a cone-shaped button in React-Native. Something like this: [Sorry I can't display images yet, but one of these sections.](https://i.stack.imgur.com/beEi5.gif) I've played around with TouchableOpacity and custom styled views inside, but it seems like the only way of doing so...
2018/03/18
661
2,509
<issue_start>username_0: I can't get class\_exists to see my class file. More annoyingly, if I actually include the class file directly, it moans that I can't include it as the class already exists! Talk about a slap in the face. There's obviously a lot of parts to this so I'll just try to include the relevant bits :...