date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/11
1,331
4,882
<issue_start>username_0: I am working on a React project implementing Conway's game of life that has the following code ``` for (let i = 0; i < this.rows; i++) { for (let j = 0; j < this.cols; j++) { let count = 0; if (i > 0) if (g1[i - 1][j]) count++; if (i...
2018/03/11
2,514
8,299
<issue_start>username_0: Using some code from NHTSA's API, my own and ideas from this site, wrapping it into a function, it is working just fine but would not run on my live server. On the live server, it was giving an error which I finally solved to the code using an array shortcut not supported by my live server's P...
2018/03/11
543
2,093
<issue_start>username_0: I am using Electron, and as you may know, all of Electron's calls run outside of Angular's `zone`. So you need to call `zone.run()` at some point when using Electron methods. A typical Electron call looks like this (Notice the `zone.run()`): ``` this.remote.dialog.showOpenDialog( ...
2018/03/11
785
2,100
<issue_start>username_0: I'm attempting to figure out the output from the python program below. The portion of the program that is most confusing to me is the print statement in main `print(c2.clown(c1.clown(2)))` what exactly is happening in this line? My prediction for the result of this program was as follows: > >...
2018/03/11
704
2,579
<issue_start>username_0: I have been trying to write the code for this program for a while now, but I just cannot figure it out. I am very confused. I would appreciate the help: --- Write a function that takes two strings. The second string should only be one character long. The function should return how many times ...
2018/03/11
1,050
3,608
<issue_start>username_0: I run both example on p.34 and p.37 using DrRacket debug mode step by step. And below are the stack windows results when processing `(cdr lat)` the first time of both examples. p.34, the failed example without `cons` ``` (define rember (lambda (a lat) (cond ((null? lat) '()) ...
2018/03/11
1,313
4,176
<issue_start>username_0: Probably a simple one: I have a `data.frame` such as this: ``` set.seed(1) df <- data.frame(name=c("A","A","B","C","B","A"),id=1:6,rep1=rnorm(6),rep2=rnorm(6),rep3=rnorm(6)) ``` In the `UI` part of the `R` `shiny` `server` I'd like to have a drop-down menu that lists `unique(df$name)`, and...
2018/03/11
1,014
3,342
<issue_start>username_0: I'm new to C programming and trying to write my own code to get an IP Address on Microsoft Windows. I've been reading about this, unfortunately all examples are meant for Linux and not Windows. **Reference** 1. [C code to get the IP address](https://stackoverflow.com/questions/1570511/c-code...
2018/03/11
758
2,438
<issue_start>username_0: How to fix this eslint error? I want to write below format. ``` const Hoge = styled.div` ... .class { color: ${props => props.a !== 'aaaaaa' && props.b !== 'bbbbbb' && '#ccc'}; } ` ``` But this format has eslint error. [![enter image description here](https://...
2018/03/11
520
1,883
<issue_start>username_0: I have a React Native project and I am trying to implement MapView. I have it nested in a View tag and for some reason unknown to me, it gives me the following error: "Expected corresponding JSX closing tag for ". Here's the code... ``` ```<issue_comment>username_1: I wanna point out this nee...
2018/03/11
772
2,751
<issue_start>username_0: I have been looking at the solution for this problem (below) for hours and cannot figure out how the recursion works. Can someone please explain in basic terms how it works. Since group is appended and then popped, isn't the popped list going to just always be equal to nothing []? ``` # Giv...
2018/03/11
730
1,352
<issue_start>username_0: I have a dataset: ``` > d <- seq.Date(as.Date("2017/01/01"), as.Date("2017/03/01"), by = "month") > df <- data.frame(x1 = d, x2 = rev(d), x3 = 1:3) > df x1 x2 x3 1 2017-01-01 2017-03-01 1 2 2017-02-01 2017-02-01 2 3 2017-03-01 2017-01-01 3 ``` I would like to create a ne...
2018/03/11
761
2,955
<issue_start>username_0: I am attempting to set up what I thought should be a simple layout with a `ConstraintLayout` I have a series of text entries, with labels whose size can change from language to language. There is a barrier to the right side of the labels so the text entries stay aligned even when the label leng...
2018/03/11
1,118
4,473
<issue_start>username_0: While the functional setState() is recommended when the current state is being used, the function still cannot be async. How could we develop a function that uses the state, calls a REST API and changes the state right after? This is the original function, that disregards the async behavior of...
2018/03/11
969
3,807
<issue_start>username_0: I'm completely lost on some homework. The assignment is to use a while loop and prompt the user to enter 5 numbers. My current code looks like the following: ``` $x = 1 do { Write-Host 'Enter 5 numbers' $x++ } while ($x -eq 5) ``` Seems like issue is somewhere in here `($x -eq "5")...
2018/03/11
582
2,341
<issue_start>username_0: I am trying to integrate the plugin, bUnwarpJ into an ImageJ macro I have been writing. The aim is to call this plugin, allow the user to define the parameters and run it. This plugin has an option to save the user defined parameters, i.e., "save landmarks". I would like this to be executed a...
2018/03/11
455
1,511
<issue_start>username_0: i have a long text which i need to be as clean as possible. I have collapsed multiple spaces in one space only. I have removed \n and \t. I stripped the resulting string. I then found characters like \u2003 and \u2019 What are these? How do I make sure that in my text I will have removed all s...
2018/03/11
816
1,922
<issue_start>username_0: I have one table named "Quarter\_revenue". Sample of the table structure is below ``` Year Quarter Revenue 2017 Q1 10000 2017 Q1 20000 2017 Q2 30000 2017 Q2 40000 2017 Q3 50000 2017 Q3 60000 2017 Q4 70000 2017 Q4 80000 2016 Q1 90000 2016 Q1 100000 20...
2018/03/11
491
2,227
<issue_start>username_0: Let us assume that, I have a Machine Learning model which uses the Tensorflow library and performs a function. And of course, the function requires input and provides some output. Which can be easily done on my terminal. Here comes the area where I need help, IO in the terminal is not what I ...
2018/03/11
478
1,584
<issue_start>username_0: How Do I create that Button? [![Button](https://i.stack.imgur.com/hjE9I.png)](https://i.stack.imgur.com/hjE9I.png) I tried the [wix ui lib](https://wix.github.io/react-native-ui-lib/docs/Button/), and I was able to get the border radius and shadow but I cannot set the **gradient** for the bac...
2018/03/11
837
2,380
<issue_start>username_0: I have no idea why this is not working, it says the p1\_move1 is not defined but it is at the top. ``` import random p1_move1 = '0' p1_move2 = '0' p1_move3 = '0' p1_move4 = '0' player1pokemonchoice = '1' player1pokemonhealth = 1000 cpupokemonhealth = 1000 if player1pokemonchoice == '1': p...
2018/03/11
625
2,001
<issue_start>username_0: Trying to write to a text file that has a list of names and serial numbers. each one will be on a separate line. if the name:::number is there already, it shouldn't write it, but it can't seem to find one that's already there, so it rewrites it. Here is my code: ``` $regfile = "REG/reglist.txt...
2018/03/11
369
1,326
<issue_start>username_0: My form array html mark up works perfectly, (shortened snapshot) ``` ``` now I know that we can define columns according to in-line `ngx-datatable` [doc](https://github.com/swimlane/ngx-datatable/blob/master/demo/basic/inline.component.ts). is it possible to bind those controls to `ngx-dat...
2018/03/11
243
769
<issue_start>username_0: I have 3 images that render by this code **\*ngFor** ``` ![user]() ``` which will render this [![enter image description here](https://i.stack.imgur.com/YPG5g.png)](https://i.stack.imgur.com/YPG5g.png) I want to at least place the arrows `>>` between those icons how would one do that in A...
2018/03/11
1,389
4,850
<issue_start>username_0: [Image of table](https://i.stack.imgur.com/MavT8.png) I am trying to fetch data from Random user API and create a table of users. I also want to add feature like sort by last name, pagination to show only 10 items per page and add a option button if user wants to see more than. 10 items on the...
2018/03/11
1,620
5,882
<issue_start>username_0: Similar questions I found were more based on what this does; I understand the assignment of a base class pointer to a derived class, e.g `Base* obj = new Derived()` to be that the right side gets upcasted to a Base\* type, but I would like to understand the mechanism for how this happens and ho...
2018/03/11
758
2,606
<issue_start>username_0: All, I am racking my brain trying to figure out how to intercept and encrypt database record ID from a JSON request using ColdFusion. Included below is my code, and my sorry attempt. Any help would be great. ``` SELECT \* From MYDATATABLE {"data": #serializeJSON(data)# } ``` I am try...
2018/03/11
344
1,249
<issue_start>username_0: I thought I had a really straight-forward code for opening a file, reading it, and tokenizing it into sentences. ``` import nltk text = open('1865-Lincoln.txt', 'r') tokens = nltk.sent_tokenize(text) print(tokens) ``` But I just keep getting the crazy long error that ends with ``` TypeErr...
2018/03/11
894
2,427
<issue_start>username_0: Is there any way I can retain the original index of my large dataframe after I perform a groupby? The reason I need to this is because I need to do an inner merge back to my original df (after my groupby) to regain those lost columns. And the index value is the only 'unique' column to perform t...
2018/03/11
1,408
3,911
<issue_start>username_0: Below is a simplified version of a very similar problem I'm facing. Consider the following types, and the function `f1`: ``` {-# LANGUAGE RankNTypes #-} newtype D t = D t deriving Functor newtype T t = T { getT :: t } f1 :: (forall t'. t' -> D t') -> T t -> D (T t) ``` Notice that `f1` ca...
2018/03/11
719
2,698
<issue_start>username_0: The following code fails to compile as expected: ``` #include class Enclosing { int x; class Nested { int y; }; void EnclosingFun(Nested \*n) { std::cout << n->y; // Compiler Error: y is private in Nested } }; ``` However, if I change EnclosingFun into a template member function, the c...
2018/03/11
979
3,621
<issue_start>username_0: Quoting only the important parts of the code. This is my `server.js` in the node backend server ``` //routes const userapi = require('./api/routes/user'); //models require('./api/models/userModel'); //use routes userapi(app); ``` on my `userapi` which is my routes I call my `userController`...
2018/03/11
886
3,476
<issue_start>username_0: Im having trouble updating rows in Google Sheets using VB.Net. This is my code: ``` Dim service = New SheetsService(New BaseClientService.Initializer() With {.HttpClientInitializer = credential, .ApplicationName = ApplicationName}) Dim spreadsheetId As String = "1mW-ndDolz_uECCMmAmKZ-...
2018/03/11
1,503
4,836
<issue_start>username_0: I'm looking to make a crontab that will search through a directory and all subdirectories and find all files with extension \*.mkv then move them to a different directory and create an empty file with the same name and extension in place of the original file. So it would look like this: > >...
2018/03/11
740
2,538
<issue_start>username_0: I searched for this question,and I found an idea using driver.switch\_to.window(),but it didn't work as expect: ``` from selenium import webdriver driver1=webdriver.Chrome("D:\Python\Files\chromedriver.exe") driver1.get('https://www.google.com') driver2=webdriver.Chrome("D:\Python\Files\chro...
2018/03/11
712
2,505
<issue_start>username_0: I have a problem - I need to answer question if given 2 nodes (A, B) is A ancestor of B. I know that the possible solution is to get the time when I enter the node and the time when I leave it. Based on this I can calculate relationship fast. How to get those 'timestamps' using DFS which can no...
2018/03/11
874
3,112
<issue_start>username_0: I'm trying to open run a few arguments using cmd.exe from ProcessStartInfo in C# but my folder navigation needs to include double quotes eg. "C:\this is\my\folder site" as you see the reason for using double quotes is because the folders have space on their name. this is my code ``` var ddd ...
2018/03/11
5,071
13,946
<issue_start>username_0: I am trying to generate a dataset that has these two items: (i) a student ID containing values (0001 to 2000) generated from random and (ii) a corresponding age to the student ID (18 to 30). These random values are held in their respective **array[1000]** as you can see in *Code* I am running ...
2018/03/11
587
1,999
<issue_start>username_0: I'm trying to make a button visible only when quantity of items on cart changes (just like on ebay shopping cart). I did it but it doesn't works as expected [link](https://www.w3schools.com/code/tryit.asp?filename=FP9Q97RYC3OF), someone knows an easier or different way to do it??<issue_comment>...
2018/03/11
199
610
<issue_start>username_0: I would like to express all integers apart from zero with a fixed number of digits. Until now, I have been using `(\\d{3})`. It works fine, except that it does not exclude `000`. How do I write this using a regex?<issue_comment>username_1: Try this RegEx: > > `((?!000)(\\d{3}))` > > > It...
2018/03/11
228
646
<issue_start>username_0: i have a table as emp, in which one column is hiredate. my hire date column has wrong dates in it. ex: 30-feb-2018, 31-apr-2018,31-jun-2018 etc. which means this dates are not exist in those months. how can i find out those wrong dates by sql query.<issue_comment>username_1: Try this RegEx: >...
2018/03/11
184
549
<issue_start>username_0: What is the difference between giving a 3dimension(x*y*z) input images to CNN from 4d input(number of training images*x*y\*z) in an image classification?<issue_comment>username_1: Try this RegEx: > > `((?!000)(\\d{3}))` > > > It will match every 3 numbers not being equal to `000`. Upvotes...
2018/03/11
326
1,155
<issue_start>username_0: I'm reviewing C-code which contains the line, ``` volatile uart_regs_t* const regs = (uart_regs_t*) cntl->addr ``` I'm not familiar with syntax that places a '\*' adjacent and to the right of a struct alias (`uart_regs_t`). Someone explain the pieces of this statement?<issue_comment>usernam...
2018/03/11
568
1,823
<issue_start>username_0: I would like to initialize a multidimensional list capable of storing an object for every minute since year 1950-2050. Something like: ``` minute = [None]*61 hour = [minute]*25 day = [hour] month = [day] data = [month]*100 ``` So you can do: ``` data[89][1][29][23][55] = 'It was a good min...
2018/03/11
427
1,327
<issue_start>username_0: I am stuck at this challenge on codewars where I have to return only numbers from an array as a new array and neglect all non-numbers. I was presented with something like this ['1', '2', \'a\', \'b\']. This is meant it return just [1, 2] I tried this. ``` function filter_list(l) { retu...
2018/03/11
966
2,705
<issue_start>username_0: Trying to do a simple query using ms graph API to get the user's `aboutMe` property: ``` string filter = @" startswith(displayName,'Bassie') "; var users = await graphClient.Users .Request() .Filter(filter) .Select("aboutMe") .GetAsync(); ``` But I just keep getting > ...
2018/03/11
406
1,324
<issue_start>username_0: I am using Webpack to output files into a dist folder. The directory structure is like so: `client/public/dist` inside which `bundle.js` and `styles.css` sit. My file-loader setup is: ``` { loader: 'file-loader', test: /\.(png|jpg|gif)$/, options: { name: '[path][name].[ext]' }...
2018/03/11
290
1,004
<issue_start>username_0: If I use the following code: ``` with open('examplefile.csv') as tst: for line in tst: x = line print(x) ``` I see 5 columns and numerous rows. How do I take one row at a time and set variables to each item in a row?<issue_comment>username_1: The for loop already takes ...
2018/03/11
503
1,707
<issue_start>username_0: I have code like this: ``` class Stack: CustomStringConvertible { fileprivate var array: [T] = [] func pop() -> T? { let popItem = self.array.popLast() print("POP ITEM : \(popItem)") return popItem } func push(item: T) { print("PUSH ITEM : \(item)") array.append(item) } var ...
2018/03/11
497
1,595
<issue_start>username_0: I have a type struct Course ``` struct Course { let title: String let subtitle: String let instructor: String let color: String init(title: String, subtitle: String, instructor: String, color: String) { self.title = title self.subtitle = subtitle self.instructor = instructor ...
2018/03/11
759
2,061
<issue_start>username_0: I want to search for a particular U.S. President by startYear, and I attempted to use filter in Swift 4. I could not get it to work. I am using the Codable protocol on purpose. ``` struct USPresidents: Codable { let FName: String let LName: String let startYear: Int let endYear...
2018/03/11
1,080
3,851
<issue_start>username_0: The commands `flutter devices` and `adb devices` are giving me the same error: ``` adb devices List of devices attached FA69H0308097 no permissions (user in plugdev group; are your udev rules wrong?); see [http://developer.android.com/tools/device.html] ``` `flutter doctor` detects my old...
2018/03/11
679
2,644
<issue_start>username_0: I'm attempting to use VSTS to build and deploy my .net core Web API Web App Service. It appears that previous versions of .net (including somewhat recent versions of .net core) created a zip file. The default configuration for an Azure App Service Deploy have the field **Package or Folder** se...
2018/03/11
1,136
3,438
<issue_start>username_0: I want to have a random bit mask that has some specified percent of `0`s. The function I devised is: ``` def create_mask(shape, rate): """ The idea is, you take a random permutations of numbers. You then mod then mod it by the [number of entries in the bitmask] / [percent of 0s you...
2018/03/11
748
2,928
<issue_start>username_0: Is there a better way to remove dups from the array list compared to the below code which does the work in O(n) when encountered with larger input. Any suggestions would be appreciated. Thank you. Note :- Can't use any extra space and should be solved in place. Input :- It will be a sorted a...
2018/03/11
364
1,137
<issue_start>username_0: Sorry for this naive question. I'm trying to make this code a bit shorter, since it seems cumbersome to write this entire line out. Are there any ways to shorten the if statement? ``` if data.char == "1" or "2" or "3" or "4" or "5" or "6" or "7" or "8" or "9": data.board[row][col] = int(da...
2018/03/11
309
778
<issue_start>username_0: Hi i was going to open multiple txt files in a directory. But i get error message of > > File "testTopic.py", line 9, in > > with open(path +i, 'r') as f: > > IOError: [Errno 2] No such file or directory: > 'C:\Users\Documents\FP\TM\Export28011986676\_10155756928931677.txt' > >...
2018/03/11
654
1,952
<issue_start>username_0: I am working on a simple python script; I have multiple Strings that look like this: ``` "Some show 14x01 - the one where they do thing 1" "Some show 14x21 - the one where they do thing 2" "Some show 10x11 - the one where they do thing 3" ``` I would like to replace and append characters s...
2018/03/11
475
1,602
<issue_start>username_0: I am trying to wrap my post/get/put/delete calls so that any time they are called, if they fail they will check for expired token, and try again if that is the reason for failure, otherwise just resolve the response/error. Trying to avoid duplicating code four times, but I'm unsure how to resol...
2018/03/11
498
1,506
<issue_start>username_0: I am working on a query to bring back a subset of data for our business analysts to review. I received one id to test my query against but there are so many use cases I need to pull N records for them to review. What I would like to do is return a sample size of records but guarantee the single...
2018/03/11
712
2,182
<issue_start>username_0: I have two lists. > > List all\_text - the first value is the key, the second meaning is a > set of words. > > > List keyword\_list - list of keywords I want to find in a set of words > all\_text. > > > My code shows all values from list all\_text. I want to get the following results...
2018/03/11
300
920
<issue_start>username_0: ``` model.add(Conv2D(8, (3, 3), activation='relu', padding='same', strides=2)) ``` We gave input as 400\*400 image and this is the first layer in network, what kind of output will it produce??<issue_comment>username_1: ``` if padding == 'same': output_length = input_length elif padding == '...
2018/03/11
2,047
6,567
<issue_start>username_0: I have a table with pagination and ext json but I am getting error while executing the table,Can anyone help me,below is the json and code has been given below,Same code need to modifed,Thanks in advance. I have a table with pagination and ext json but I am getting error while executing the tab...
2018/03/11
2,260
7,629
<issue_start>username_0: I'm trying to generate a pdf file from an HTML template using [Weasyprint](http://weasyprint.org) python package and I need to send it via email using. Here's what i have tried: ``` def send_pdf(request): minutes = int(request.user.tagging.count()) * 5 testhours = minutes / 60 hours = str(rou...
2018/03/11
944
2,874
<issue_start>username_0: The background is supposed to be a automatic slideshow of different images. However, when it transitions to the next image, there is a white flash/flick. Am I doing something wrong? I'm using keyframes in css ``` html,body{ animation-name: rainbowtext; animation-duration: 35s; animation-...
2018/03/11
251
1,129
<issue_start>username_0: I created a Simple Activity which contains a button. On clicking the button, a Toast message should appear. Also, I wrote a Service, which should be called when the app launches. So, I used the following code, `startService(new Intent(getApplicationContext(), MyService.class));` in the OnCrea...
2018/03/11
205
875
<issue_start>username_0: I have a form code php ``` Date > Input Data ``` I get some error when I click the submit button. The error is `Undefined index variable $date`. I want only admin users to be able to edit the fill. Why am I getting this error, and how can I fix it? Any help would be appreciated.<is...
2018/03/11
608
2,514
<issue_start>username_0: For example, there are 2 main nodes in my database (there can be more). The parent node is the user's authentication id and inside it there is some detail as you can see. I am trying to do that if any user login all other user's data populated on his activity but I really don't know how to star...
2018/03/11
700
2,424
<issue_start>username_0: I use iframes on most my projects. They embed things ranging from ads to sponsors to announcements. Allot of people have contacted me asking why the pages take so long to load, and I simply reply "technical issues". The actual pages content loads, it just stays loading. I also use some iframes ...
2018/03/11
464
1,524
<issue_start>username_0: I am unable to print the string after assigning every value of one string to another string. How to overcome this problem ``` #include using namespace std; int main() { int n, k; string s = "Nikhil", shiftedS; n = s.length(); cin >> k; for (int i = 0; i < n; i++) { int idx = (i + k...
2018/03/11
1,632
6,123
<issue_start>username_0: I'm creating a custom TickBar for a Slider. This CustomTickBar allows me to put different markers on the Slider. I'm gonna use the following model: ``` Interface IModel { string Id; } Class Model1 : IModel { string Id; string SomeProperty; } Class Model2 : IModel { string Id; ...
2018/03/11
1,674
4,493
<issue_start>username_0: I have following dataframe in r ``` Date hour_bucket qpmnt_name location Blk Cols 01-01-2017 0-1 501 1B12E3 1B 12 01-01-2017 1-1 501 1C13E3 1C 13 01-01-2017 1-2 501 1C14E3 1C 14 ...
2018/03/11
4,074
10,119
<issue_start>username_0: How do I make an inquiry from the Academic Articles list? using Python and Requests search for the name <NAME> site: <http://bibliotecadigital.fgv.br/ojs/index.php/abpt/search/search><issue_comment>username_1: Here are some steps you can try: 1. Visit the webpage with your browser and examin...
2018/03/11
4,522
11,593
<issue_start>username_0: my webpage displayed always the same name i need to display the name inside the modal that i clicked this my code : display the content(which is stored in mysql) if it's click the picture . ``` php $query = "SELECT * FROM pet where pet_cat = 'D' ORDER BY petid "; $result = mysqli_qu...
2018/03/11
1,872
5,291
<issue_start>username_0: I have pandas dataframe something like: ``` my_df = chr PI 2 5 2 5 2 5 2 6 2 6 2 8 2 8 2 8 2 8 2 8 3 5 3 5 3 5 3 5 3 9 3 9 3 9 3 9 3 9 3 9 3 9 3 7 3 7 3 4 ...... ...... ``` I want to convert i...
2018/03/11
1,287
4,127
<issue_start>username_0: I am trying to probe a page for if a particular element exists on the page as it will alter a condition in my process. I use a `.find_element_by_xpath` to find the element and it's works fine, but if that search is performed on a page that doesn't have the element I get an exception and process...
2018/03/11
880
2,873
<issue_start>username_0: ``` void shifttable(char p[]) { int i, j, m; m = strlen(p); for (i = 0; i < MAX; i++) t[i] = m; for (j = 0; j < m - 1; j++) t[p[j]] = m - 1 - j; } ``` I think, `t[p[j]]=m-1-j;` part, is indexed using a character. Can someone explain me how its actually working?...
2018/03/11
639
2,014
<issue_start>username_0: Here is the command output: ``` ab1.1 something ab2.1 something ab3.1 something ab4.1 something ``` I have below code to check existing entries. ``` list1 = [] for line in command_output.split("\n"): if line.stratswith("ab"): list1.append(line.split()[0]) ``` check...
2018/03/11
1,024
3,965
<issue_start>username_0: Problem Statement ----------------- I share URLs via Facebook and Whatsapp. These messaging apps tend to generate a "rich preview" in the form of a thumbnail for the link shared. Everything seems to work fine thus far But if I change the content which my link points to then the next time I sh...
2018/03/11
540
1,585
<issue_start>username_0: I've got an Excel file that looks like this: ``` Person1,Person2,Person3,Person4,Median GeneA 1,0,2,,1 GeneB 1,,2,1,1 GeneC 2,,,0,0 GeneD 0,1,1,2,1 GeneE 0,0,0,,0 ``` The 5th column is the median for each row. I would like to replace the missing data in each row with this median value....
2018/03/11
1,133
3,090
<issue_start>username_0: Excel is throwing an error with my formula: **`You have entered too many arguments for this function.`** > > IF(AND(J2="Ounces",K2<=5),VLOOKUP(D2,'Parcel Select oz Lightweight'!$A$2:$B$17,2,0),IF(AND(J2="Ounces",K2>5),VLOOKUP(D2,'First Class oz'!$A$2:$B$17,2,0)),IF(AND(J2="Pounds",K2<=5),I...
2018/03/11
658
2,688
<issue_start>username_0: Given two `java.time.Duration` instances, how does one calculate the whole number of times one Duration fits inside another? It seems obvious to use `first.toNanos() / second.toNanos()` but the Javadoc for this method introduced a tiny snag: > > If this duration is too large to fit in a long...
2018/03/11
2,462
8,950
<issue_start>username_0: I'm building a web app using Angular + Typescript. And I have ASP.NET Web API. One of the endpoints returns model with timespan property. I used string type just to show it but now I need to draw objects on canvas using that TimeSpan value and I can't find any useful information on that. The s...
2018/03/11
340
1,258
<issue_start>username_0: so I'm working on a project using reactjs(not native) and I'm having a css issue with react-bootstrap. When using the Navbar component with inverse and fluid styling to it I'm getting a small bottom border. It's not only for that as, it's when I'm using the PageHeader component as well. I've tr...
2018/03/11
1,067
3,299
<issue_start>username_0: I am trying to run my Heroku app locally and followed the instructions from [here](https://devcenter.heroku.com/articles/getting-started-with-python#run-the-app-locally). When I tried to run the following command: ``` python manage.py collectstatic ``` I've got this error: ``` Traceback (m...
2018/03/11
1,388
4,560
<issue_start>username_0: I am currently working on the arrayChange level of Code Fights Arcade. This is the objective: You are given an array of integers. On each move you are allowed to increase exactly one of its element by one. Find the minimal number of moves required to obtain a strictly increasing sequence ...
2018/03/11
683
2,431
<issue_start>username_0: Is `long == signed long` (`int`, `char`, etc)? Is this guaranteed by the specification or is there some obscure version or compiler that will blow up if I take this for granted.<issue_comment>username_1: Yes for all the types you list, other than `char`. `char` is signed or unsigned in an im...
2018/03/11
566
2,225
<issue_start>username_0: I am a beginner and just working on a problem. I have to raise an exception if an object is passed with a string argument, but the output of this program is blank. Could anyone help? ``` class RadiusInputError(Exception): pass class Circle: def __init__(self,radius): self.radi...
2018/03/11
1,057
3,675
<issue_start>username_0: I am getting this error in my IntelliJ program: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See <http://www.slf4j.org/codes.html#StaticLoggerBinder> for further details. Feature: Shout From research, it l...
2018/03/11
439
1,493
<issue_start>username_0: I'm following the tutorial [here](https://developer.mozilla.org/en-US/docs/Games/Tutorials/2D_breakout_game_Phaser/Scaling), and... I haven't gotten very far. My code is below, exactly as the example. ```js var game = new Phaser.Game(480, 320, Phaser.AUTO, null, {preload: preload, create: cr...
2018/03/11
976
4,074
<issue_start>username_0: I'm unable to verify whether object exists in mocked map and also unable to verify whether register() is called on that object. Below are the errors thrown in the test ``` Assert.assertNotNull(locationDataMonitor); //Throws assertionError Mockito.verify(locationDataMonitor, Mockito.times(1)).r...
2018/03/11
851
2,464
<issue_start>username_0: I am getting a JSON mixed array response from an API and I am trying to parse it efficiently but unable to do so ``` [{"Price":10,"Active":null,"Status":100,"Name":"ID"}] ``` I am unable to access the price, name property. I am trying a mix of `json_decode``json_encode`tried it using `fo...
2018/03/11
450
1,577
<issue_start>username_0: When I run ``` def classMaker(x): class y(object): x=x return y Y = classMaker("value") ``` I get the following error ``` Traceback (most recent call last): File "bug.py", line 6, in classMaker("value") File "bug.py", line 2, in classMaker class y(object): File "bug....
2018/03/11
634
2,206
<issue_start>username_0: ``` com.cardboardfish http-sms 1.0 ``` i have the jar and already tried through maven command to install but its getting failled > > mvn install:install-file -Dfile=cbfsms.jar > -DgroupId=com.cardboardfish > -DartifactId=http-sms -Dversion=1.0 -Dpackaging=jar > > > ``` [INFO] Sca...
2018/03/11
742
1,968
<issue_start>username_0: I'm new to SQL. I have a working query in SQL Server Express and it takes around 11 seconds to get the results. I want to improve query performance and I don't have any idea how to make the query faster. My testing database like ``` dt val1 --------- -------...
2018/03/11
1,289
3,497
<issue_start>username_0: Suppose my table structure as follows: ``` id | Word ---|----- 1 | a 2 | aa . | .. ``` I have a list of id's like this: > > (...,900, 1000, 2000, 3000, 4000,....) > > > I want to find the biggest id less than each id in the above list. My table id's is not necessarily consecutive an...
2018/03/11
1,085
3,177
<issue_start>username_0: I am trying to validate a text box using regular expression. I want to add alphabets, numbers and some special characters like "& - / . # , space". I have tried with this `/^[a-zA-Z0-9&-/.#,\s]*$/`. It is working fine except the \*. I want to prevent \* symbol.<issue_comment>username_...
2018/03/11
743
2,463
<issue_start>username_0: I tried this code and nothing is added or created. I didn't get any errors or bugs, it just add nothing.. Code: ``` private void simpleButton1_Click_1(object sender, EventArgs e) { SqlConnection connection = new SqlConnection(@"Data Source=USER-PC; Initial Catalog=StudentDB; Integrated S...
2018/03/11
650
2,142
<issue_start>username_0: I have this JavaScript code: ``` $(document).ready(function() { $(".deleteImage").on('click', function() { var idmess = $(this).data("id"); var token = $(this).data("token"); $.ajax({ url: '{{ url('admin/deletemulti') }}/'+encodeURI(idmess), type: 'DELETE', dataType: "JSON", data: { ...
2018/03/11
923
3,244
<issue_start>username_0: To get around aliasing and byte reinterpretation rules, I have a utility function called `T* landry_pod(void\*)` that pretends to copy bytes around and create new objects. It compiles down to nothing under optimization, as every compiler can see I put the bytes back where they started. ``` tem...