date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/01
683
3,661
<issue_start>username_0: I am sorry that I look around but didn't find answer for this. I am new to ios development and want to create an app and include it in CarPlay to test it. I don't want the app to be public now, just for testing. So is there any developer version I can use? Thanks.<issue_comment>username_1: ``` ...
2018/03/01
535
1,840
<issue_start>username_0: So the problem is that I want to read multiple lines of a string and put them into an ArrayList as long as the user doesn't go to the next line without entering anything. Here is what the sample input looks like: ``` hello I am John ``` here is the code I tried but it didn't work. (The er...
2018/03/01
4,288
7,177
<issue_start>username_0: Trying to create / store `data.frames` using a nested for loop. I have some data on countries in a variable called `countries`, so `USA, UK, Germany etc.` which I have labeled them `1,2,3` respectively. I also have data on specific industries in a variable `industries` for example `textiles, ...
2018/03/01
704
2,440
<issue_start>username_0: I am looking for a simple way to constantly monitor a log file, and send me an email notification every time thhis log file has changed (new lines have been added to it). The system runs on a Raspberry Pi 2 (OS Raspbian /Debian Stretch) and the log monitors a GPIO python script running as daem...
2018/03/01
421
1,639
<issue_start>username_0: I was wondering if someone can help to center text on about page within body, without changing dynamic page height calculation. here is page: <https://protasov.by/contacts/> here is jade/pug code ``` section.container-fluid .row(style="padding-top:20px;").centered-form.center-bl...
2018/03/01
2,390
3,738
<issue_start>username_0: I created [this very complex regular expression(RegEx101)](https://regex101.com/r/5cBm5a/1/) for IPv4 and IPv6 ``` ((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-...
2018/03/01
2,384
9,093
<issue_start>username_0: For API/ABI compatibility across many toolchains with the same binary, it is [well](https://www.youtube.com/watch?v=k9PLRAnnEmE) [known](https://stackoverflow.com/a/21186451/201787) [that](https://stackoverflow.com/questions/45417707/glibcxx-use-cxx11-abi-gcc-4-8-and-abi-compatibility) STL cont...
2018/03/01
488
1,770
<issue_start>username_0: Has getAs(MimeType.PDF) or getAs('application/pdf') functionality been changed recently? A sample of my code: ``` var blSheet = DriveApp.getFileById('templateID').makeCopy(title, destFolder); var ss2 = SpreadsheetApp.open(blSheet); var sheet2 = ss2.getSheetByName('Sheet Name'); sheet2.getRang...
2018/03/01
2,497
7,984
<issue_start>username_0: I have a graph with multiple data points / lines. Currently, if you hover near a data point, it will display the label/value for that point. What I'd like is the following: when you hover anywhere on the chart, it will display the labels + values for all data points at that x-value simultaneou...
2018/03/01
8,324
32,246
<issue_start>username_0: I'm struggling to make codeception work with PhpStorm. I have setup CLI Interpreter: [![enter image description here](https://i.stack.imgur.com/KkyE6.png)](https://i.stack.imgur.com/KkyE6.png) [![enter image description here](https://i.stack.imgur.com/nKG2Q.png)](https://i.stack.imgur.com/n...
2018/03/01
1,122
3,392
<issue_start>username_0: Below is the table of animals on various floors. ID,FLOOR\_LEVEL,ANIMAL *[column names]* 01,A,CAT 02,A,DOG 03,B,DOG 04,B,CAT 05,B,CAT 06,C,CAT I want to label the types of animal(i.e cat will be labelled as 1, dog will be labelled as 2....) like shown below by creating a new c...
2018/03/01
1,194
3,850
<issue_start>username_0: Here is my situation: I have a form that is collecting a list of items in a `textarea` as a JSON Object. The form `textarea` looks like this: ```html [ {"id":"1","name":"apple"}, {"id":"2","name":"orange"}, {"id":"3","name":"banana"} ] ``` I need to be able to parse that string...
2018/03/01
1,099
3,703
<issue_start>username_0: Links is an icollection of identifiers and I want to delete an identifier but first I have to delete the entries in links however I get this error: > > System.Data.SqlClient.SqlException: New transaction is not allowed because there are other threads running in the session. > > > I'm not ...
2018/03/01
969
2,323
<issue_start>username_0: I need to find a number from a string value like: ``` tag:example.com,1999:blog-124938250235712450.post-092348192357990021 ``` I have used this method via JQuery: JavaScript & HTML Code: ```js var getId = 'tag:example.com,1999:blog-124938250235712450.post-092348192357990021', postID ...
2018/03/01
952
2,455
<issue_start>username_0: When I import scikit-learn before importing tensorflow I don't have any issues. Running this block of code produces an output of 1.7766212763101197e-12. ``` import numpy as np np.random.seed(123) import numpy.random as rand from sklearn.decomposition import PCA import tensorflow as tf X = ran...
2018/03/01
647
2,488
<issue_start>username_0: Suppose a person cloned a git repository and deleted the .git folder. Is there a way to recover which commit they were on? This isn't a duplicate of [Best way to restore .git folder](https://stackoverflow.com/q/24775326/1248889) or [Can deleted .git be restored?](https://stackoverflow.com/q/624...
2018/03/01
521
2,105
<issue_start>username_0: I'm trying to develop 404 and 500 error custom templates for my Django project. When I change DEBUG to False, Django always returns me: > > You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page. ...
2018/03/01
561
1,936
<issue_start>username_0: This is part of my index.php code, it prints the current users login $SESSION. But when the user clicks logout it gives an error message saying "Undefined index: username" on line x. What does this mean and how can I fix it? ``` php $dbname = 'lw17894'; # Change to your username $dbuser...
2018/03/01
1,474
3,820
<issue_start>username_0: I am trying to install pyarrow using pip in my alpine docker image, but pip is unable to find the package. I'm using the following Dockerfile: ``` FROM python:3.6-alpine3.7 RUN apk add --no-cache musl-dev linux-headers g++ RUN pip install pyarrow ``` output: ``` Sending build context to ...
2018/03/01
1,063
4,320
<issue_start>username_0: I'm trying to efficiently batch delete a lot of `NSManagedObject`s (without using an `NSBatchDeleteRequest`). I have been following the general procedure in [this answer](https://stackoverflow.com/a/12116402/5513562) (adapted to Swift), by batching an operation which requests objects, deletes, ...
2018/03/01
12,067
39,854
<issue_start>username_0: I have a div that displays content once a product is added to a shopping basket. Basically once someone adds something to cart a popup appears in the top right of the screen pointing at the basket icon. This works ok but I'm concerned about what happens if a customer adds a lot of products to t...
2018/03/01
1,229
5,272
<issue_start>username_0: I'm looking to do something whenever a user finishes making a selection —essentially, on the first `mouseup` event after every [`selectstart`](https://developer.mozilla.org/en-US/docs/Web/Events/selectstart) event, I think— on the page. I want to take that selection and wrap it in an element to...
2018/03/01
1,051
3,840
<issue_start>username_0: I am just starting with programming and I am playing around with this todo list. Now I want to add my todo items to local storage. But everytime I add a new item to the list I overwrite the one and only to do item. How do I solve this? Here is the code: ```js $(document).ready(function() { ...
2018/03/01
852
2,999
<issue_start>username_0: I have a table with 150 columns. Most of them are of type `nvarchar(100) null`, and some are `decimal(20,7) null` Example: ``` Create table myTable ( ID bigint (PK), Col1 Nvarchar(100) null, Col2 Nvarchar(100) null, Col3 Nvarchar(100) null, .... Col150 nvarchar(1...
2018/03/01
686
2,121
<issue_start>username_0: I wanted the page to detect if it was Thursday, and if it was display some text. I don't understand why this won't work. Is it because I can do = on a if than? Please explain, thank you! ``` var day; switch (new Date().getDay()) { case 0: day = "Sunday"; break; case 1: day = "Monday"; ...
2018/03/01
361
1,132
<issue_start>username_0: I am trying to extract a string between the two characters `@` and `:` for the string: ``` test23@server:/var/ ``` So, when I try to do something like, `@([^.]*):` or even `\@(\S+):` I get `@server:` I just want both `@` and `:` removed so I can get just the word `server`. Please help!<iss...
2018/03/01
1,606
4,560
<issue_start>username_0: This is a follow-up post from a previous question of mine: [Referring to arrays in a for-loop](https://stackoverflow.com/questions/49058472/referring-to-arrays-in-a-for-loop?noredirect=1#comment85123191_49058472). I would like to generalize the solution proposed there in order to be able to co...
2018/03/01
1,535
4,449
<issue_start>username_0: Basically I'm tasked with making a simple phonebook in R. I've made a large array which each entry following this pattern (FirstName LastName PhoneNumber, FirstName LastName PhoneNumber, etc.) I need to do a simple print of someones info, like say first name was John it would return me all in...
2018/03/01
252
777
<issue_start>username_0: I have a dataframe where i am trying to count the occurrence of each value. I plot it as horizontal bar but cant get it to be sorted. ``` df = pd.DataFrame(['A','A','A','B','B','C'],columns = ['letters']) df.value_counts() A 3 B 2 C 1 ``` [![enter image description here](https://i.stack.im...
2018/03/01
257
971
<issue_start>username_0: I created asp.net site. Everything goes well when I am browsing the site on my desktop. But when I open my site on my Iphone - Chrome browser, every request seems to start a new session. I am using the Session.SessionId as associate to shopping cart. But its useles when I get new session on eve...
2018/03/01
240
731
<issue_start>username_0: There's an int array: ``` int[] arr = new int[] {8, 9, 7, 6, 7, 8, 8, 9}; ``` How do I count the number of occurrences of each number and then sort it so the print of the numbers and their occurrences show in the ascending order? Like this: ``` 6(1) 7(2) 8(3) 9(2) ``` Without using any li...
2018/03/01
1,903
6,992
<issue_start>username_0: I am trying to make a woocommerce slider carousel. but the `meta_query`is not working only default slider is working. for example if i changed to `featured=yes` its not showing anything where i already set some featured product. Please help me to solve this issue. Woo-commerce Version is 3+. *...
2018/03/01
2,234
7,570
<issue_start>username_0: I am trying to write a program to compare two text files using UNIX API calls. Here are the contents of my two files: f1.txt ``` This is my sample. It contains text And for some reason The last few chars are duplicated? ``` f2.txt ``` This is another sample Sometimes instead of duplicating...
2018/03/01
142
552
<issue_start>username_0: I want the text in the textView **select able, copy able but not paste or writable.** I want to prevent user writing or pasting over the existing text. How can I do that? I have used the following code in the xml but it doesn't serve the purpose. ``` ```<issue_comment>username_1: Try this ...
2018/03/01
2,282
6,367
<issue_start>username_0: I have a videofile from a GoPro device and I simply work with it from a `VideoCapture` like this: ``` cap = cv2.VideoCapture(path) index = 0 start = time.time() while cap.isOpened(): ret, frame = cap.read() if not ret: break ...
2018/03/01
375
1,186
<issue_start>username_0: My code works fine in the local environment but not on the website. I dont understand what I'm missing here. Code: ``` jQuery(document).ready(function(){ 'use strict'; //============================== COUNTER-UP ========================= $('.counter').counterUp({ delay: 10, time...
2018/03/01
1,055
3,866
<issue_start>username_0: I'm moving most of my development processes into docker to ensure a parallel development environment between computers so there are no odd bugs or issues due to version mis-match, etc. All of this is going great, except that when running webpack-dev-server inside of docker, the build process i...
2018/03/01
1,491
4,542
<issue_start>username_0: I'm trying to align text to the right of an image but I can't seem to get it working, I've tried different methods of css but can't get it too work. Edit: Also, How would I adjust this if i were to put it at the top? If I mvoe it manually then the bottom row will mess up too. What it looks li...
2018/03/01
1,176
3,660
<issue_start>username_0: I have a vector with 10000+ entries, approximately 4000 of them are zeros. I want to add random values to those entries which are NOT zero. I know how to find out which indices are zero, but how can I make the addition?. For example consider this vector with only 10 indices ``` v <- c(0, 0.1, ...
2018/03/01
1,324
4,541
<issue_start>username_0: I am currently using a single table inheritence for one of my entities in doctrine. The header look like this: ``` /** * Flux * * @ORM\InheritanceType("SINGLE_TABLE") * @ORM\DiscriminatorColumn(name="type", type="string") * @ORM\DiscriminatorMap({"flux" = "Flux", "news" = "FluxNews", "mis...
2018/03/01
1,055
3,374
<issue_start>username_0: I have the following array of column names, I want to only display the day column names, so 7 - 13 ``` array:20 [▼ 0 => "id" 1 => "customer_id" 2 => "enrolment_id" 3 => "course_id" 4 => "delivery_mode" 5 => "course_cost" 6 => "location" 7 => "Monday" 8 => "Tuesday" 9 => "Wednesday" ...
2018/03/01
717
2,540
<issue_start>username_0: I have a Laravel 5.5 application and I have the following models. * Jobs * JobSheets * Users I have a relation on my Users model ``` public function jobs() { $this->hasMany('App\Job','user_id')->with('jobSheets'); } ``` I have a relation on my Jobs model ``` public function jobSheets() ...
2018/03/01
734
2,494
<issue_start>username_0: I'm a beginner to PHP and am currently working on re-coding a small site from Classic ASP (VB) to PHP, and I was wondering if there was a fairly direct 'translation' in taking this concept from one to the other language? I know that nested foreach loops would do the job, yet, I am curious if a...
2018/03/01
1,173
4,048
<issue_start>username_0: What's a good way to figure out the index of an element in a NodeList when you have the NodeList and a DOM element in the NodeList?<issue_comment>username_1: Convert it to an array: ``` var arr = Array.prototype.slice.call(nodeList); ``` Then use `indexOf` on it: ``` var index = arr.indexOf...
2018/03/01
1,306
4,604
<issue_start>username_0: I have planned to separate my application in two layers. One will be the API Rest layer, backed by Ruby and another the frontend, using EmberJS, both in Azure Cloud. For the API layer, it's fine, we going to use the Azure Web App, which is a container based with Ruby installed. But for the fr...
2018/03/01
592
1,926
<issue_start>username_0: I have 2 files containing multiple strings, `fileA.txt` and `fileB.txt`. > > fileA.txt: > > > ``` hello hi how ``` > > fileB.txt: > > > ``` hello how are you ``` I am trying to write a program that will see if a string exists in both files. If it does, print the string or multip...
2018/03/01
489
1,486
<issue_start>username_0: I'm trying to deploy an application using AWS OpsWorks with chef, I had have run the deploy in other times and had never failed but this time I got the next message in the log. I run the command bundle exec rake assets:precompile] in localhost and everything is alright, What can be? ``` [2018...
2018/03/01
360
1,129
<issue_start>username_0: ``` var mydata = JSON.parse(data); data = '[{"yer" : "Besiktas", "lat" : "41.044161", "lng" : "29.001056"},{"yer" : "Eminönü", "lat" : "41.017513", "lng" : "28.970939"},{"yer" : "Zeytinburnu", "lat" : "40.990828", "lng" : "28.895325"}]'; ``` The HTML page I wrote above contains a few lines ...
2018/03/01
522
2,103
<issue_start>username_0: Okay so I'm having a slight problem with scanner advancing an extra line. I have a file that has many lines containing integers each separated by one space. Somewhere in the file there is a line with no integers and just the word "done". When done is found we exit the loop and print out the lar...
2018/03/01
392
1,188
<issue_start>username_0: I have a dataframe with a lot of columns using the suffix '\_o'. Is there a way to drop all the columns that has '\_o' in the end of its label? In [this post](https://stackoverflow.com/questions/45844382/python-pandas-drop-columns-that-start-with-string) I've seen a way to drop the columns tha...
2018/03/01
635
2,410
<issue_start>username_0: I have a while stuck with this code and don't know what's wrong! this jQuery code function is for a single web page application of a Game. I need to change a table cell `background-color` by clicking on it but it doesn't work: ``` $("document").ready(function() { var y, x, cellColor; /...
2018/03/01
358
1,607
<issue_start>username_0: I'm using angular4 and have a component thats loaded dynamically. I'd like to implement the ChangeDetectionStrategy.OnPush strategy but it doesn't seem to work even though I know that the input objects are brand new. I know that normal change detection doesn't work with dynamically loaded compo...
2018/03/01
464
1,507
<issue_start>username_0: I have a array of various object, but I need turn this objects into unique object. Below I share my code. ``` $result = []; $idiomas = Idioma::all()->toArray(); foreach ($idiomas as $lang) { $result[] = [ $lang['palavra_chave'] => $lang[$id] ]; } return response()->json($resul...
2018/03/01
488
1,801
<issue_start>username_0: I have searched far and wide for an answer to this. In written English I'm trying to do the following: Query results where the column "WorkGroup" in the "Issues" class is equal to the column "WorkGroup" in the "Users" class. I tried countless things including; NotContainedIn, ObjectForKey, wh...
2018/03/01
994
3,586
<issue_start>username_0: I have an Ansible playbook (using ansible 1.9.3) that sets up and updates a bunch of servers. One of those steps is to install packages (using the 'apt' plugin). Until recently all of my servers have been uniform (same version of Ubuntu server). I'm introducing a newer Ubuntu server and some of...
2018/03/01
1,397
4,685
<issue_start>username_0: I am trying to connect to remote HDFS from Java program running in my desktop's Eclipse. I am able to connect. But get this Exception while trying to read data: Caused by: org.apache.hadoop.ipc.RpcException: RPC response exceeds maximum data Can some one please help with this? I have a very...
2018/03/01
551
1,476
<issue_start>username_0: I'm trying to figure out how to perform a successive XOR on a row in matlab, where each element is the result of XORing itself and the previous element, for example: If the row is ``` x = [1 0 1 1] ``` I would want the result to be: ``` x[0] = 1 x[1] = x[0]^x[1] = 1 x[2] = x[1]^x[2] = 0 x[...
2018/03/01
1,289
4,255
<issue_start>username_0: I have these lists: ``` array = ['I love school', 'I hate school', 'I hate bananas', 'today is friday', 'worldcup is great'] #finalArray is initially an empty list finalArray = [] ``` I want to save those indexes of "array" that contain the word "school" into "finalArray". Meaning that "...
2018/03/01
1,012
3,290
<issue_start>username_0: I'm trying to get my jest tests to run. I am getting the error `SyntaxError: Unexpected token export` at the line `export default configureStore`..specifically on the word 'export'. To me this suggests `redux-mock-store` is not being transpiled by Babel, so how can I force this with Jest? I'm u...
2018/03/01
1,289
4,225
<issue_start>username_0: I'm working on an Angular 5 project and want to provide PWA functionality with the @angular/service-worker package. I can't manage to cache and serve Google Maps API requests (e.g. tiles). The responses aren't cached when online, therefore also not served when offline. What I tried: * Adding...
2018/03/01
1,250
4,205
<issue_start>username_0: I've just started learning the language of C, and would love your help in cleaning up / simplifying my code if you know a better way to reach the following. I want a program to ask for a number, and if that is found then proceed to print and end, however if anything else is put in (e.g. a lett...
2018/03/01
1,190
5,090
<issue_start>username_0: I'm implementing a NTCIP agent using pysnmp with lots of tables containing SNMPv2 RowStatus columns. I need to allow clients to create new conceptual rows on existing agent tables, however there is no way to know the indices of such rows before their creation. Consequently, I can't create such...
2018/03/01
1,234
5,133
<issue_start>username_0: I got so frustrated because of this error message here and couldn't figure out what went wrong with such a simple code: ``` secret_word_list = list('trang') TypeError: 'tuple' object is not callable ``` `secret_word_list` is a new variable. where does the 'tuple' type come from? Also if I a...
2018/03/01
1,347
5,393
<issue_start>username_0: I have a data.frame that looks like this (df) ``` mean t value 0.004 3.12 0.021 3.41 . . . . -0.067 -3.60 ``` My actual data.frame has 90 columns (90 means and 90 t values) now i plotted the values from the first column (means) ...
2018/03/01
3,404
11,625
<issue_start>username_0: I'm currently working on a little side project yet having multiple issues. I'm reading a file within the folder where the project is that holds data for 10 users. Right now, I'm getting this error : ``` Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community ...
2018/03/01
1,444
5,048
<issue_start>username_0: I've been trying for a long time to make a button appear on a webpage and make the link that button goes to change depending on the radio button selected. However, so far nothing appears on my web page except for the radio buttons. This is my code so far: ```html if (document.getElementById...
2018/03/01
559
2,003
<issue_start>username_0: I like to check if given value of `Any.Type` conforms to a protocol in Swift. It seems that `@objc` based protocol can be checked by calling `class_conformsToProtocol()`, but I do not have a good idea how to check that with pure swift protocol. ``` // ObjC @objc protocol MyObjcProtocol { } c...
2018/03/01
707
2,532
<issue_start>username_0: I am currently running an stm (structural topic model) of a series of articles from the french newspaper *Le Monde*. The model is working just great, but I have a problem with the pre-processing of the text. I'm currently using the quanteda package and the tm package for doing things like remo...
2018/03/01
433
1,173
<issue_start>username_0: I have a condition where my string could look like: 1. test23@testbee:/var/bee/ or 2. testbee:/var/bee/test.html I need to extract three string here: test23 (if it is available) , testbee and test.html So, in Perl, ``` ($user, $sys, $file) = ($source =~ /(\S*?)\@?(\S+?):?[^:]*?([^\/]+)$...
2018/03/01
928
3,558
<issue_start>username_0: I am trying to override (monkey patch) the `it()` function of the Jasmine framework and in the process, I want to know if a function which is passed as the second argument to the `it()` function is of type `async` or not. I tried using the `instanceof Promise` because all `async` functions retu...
2018/03/01
1,887
6,506
<issue_start>username_0: I am trying to build a GUI in Rust using GTK, Cairo and Glade. I want to draw a playing field using `gtk::DrawingArea` but I do not know how to use it. I have this: ``` extern crate cairo; extern crate gtk; use gtk::*; fn main() { gtk::init().unwrap(); //init gtk before using it let...
2018/03/01
899
3,351
<issue_start>username_0: I have a `ListAPIView` that uses the `DjangoFilterBackend` to filter rooms based on url parameters. The code below does this just fine. Now, I would like to sort the results based on a score calculated from other attributes of the Room object, another url parameter, and possibly what we know ...
2018/03/01
398
1,405
<issue_start>username_0: I'm trying to create a 'Clear table range' button in Google Sheets for my time sheet so that I can quickly and easily reset it. The code reads: ``` var ss = SpreadsheetApp.getActiveSpreadsheet("Corey's Listing Sheet: 2018"); var sheet = ss.getSheets('Time Sheet')[0]; var range = sheet.getRa...
2018/03/01
2,015
6,664
<issue_start>username_0: I have this object: ``` { "_id" : ObjectId("5a8d83d5d5048f1c9ae877a8"), "websites" : [ "", "", "" ], "keys" : [ { "_id" : ObjectId("5a8d83d5d5048f1c9ae877af"), "name" : "Google", "value" : "" ...
2018/03/01
1,114
3,766
<issue_start>username_0: Why the derived class Derived\_from\_Private is illegal? i noticed the member function has an reference to Base, but why it cannot have an reference to Base class? ``` class Base { public: void pub_mem(); // public member protected: int prot_mem; // protected member private: char priv_me...
2018/03/01
530
1,752
<issue_start>username_0: I got a file with the following text: ``` with open("file1.txt", "w") as file1: file1.write("Thou blind fool, Love, what dost thou to mine eyes\n" "That they behold, and see not what they see\n" "They know what beauty is, see where it lies\n" ...
2018/03/01
558
2,102
<issue_start>username_0: I have a program that will write to a text file if recognition engine recognize any word in the keywords[]. However i want to check if the .txt file already contains (ts.Hours + ts.Minutes + ts.Seconds) , the current timespan already exists in the file. I do not want to write to it because i do...
2018/03/01
525
1,927
<issue_start>username_0: I am trying to check if a BST is valid or not. Following is my code. Input from HackerRank **1 2 3 4 5 6 7** My code is always returning **False** even when BST is valid. ``` /* Hidden stub code will pass a root argument to the function below. Complete the function to solve the challenge. Hin...
2018/03/01
443
1,641
<issue_start>username_0: I trying to model horse racing in a database and have been presented with two alternative ERDs. I'm no, expert on database design and was hoping someone could lay out for me the advantages/disadvantages of Alternative A vs Alternative B. Is it a case of one being preferable to another absolutel...
2018/03/01
1,193
4,643
<issue_start>username_0: **Brief Note:** In all of my code examples you will see things like `material.Widget` instead of just `Widget`. This is because I like to name my imports like this for example: ``` import 'package:flutter/material.dart' as material; ``` **My Question:** I am trying to make a ListView show...
2018/03/01
671
1,860
<issue_start>username_0: I have a solution to this question, but I'm curious if there might be a better way. I have a dict like this: ``` dict1 = { 'key1':[['value1','value2','value3'],['value4','value5','value6']], 'key2':[['value7','value8','value9'],['value10','value11','value12']], 'key3':[['value13','value14','va...
2018/03/01
556
1,633
<issue_start>username_0: I am trying to get the data from the both tables by joining on the common column. But it's giving me the duplicates. ``` ;WITH LocID AS ( SELECT 1 AS LocID, 1 AS CommonID UNION ALL SELECT 2 AS LocID, 1 AS CommonID ), LocAddress AS( SELECT 456 AS AddressID, 'A...
2018/03/01
687
1,859
<issue_start>username_0: I'm trying yo solve a simple matrix problem on python 3 using numpy with this code: ``` import numpy change_array = numpy.array(input().strip().split(' ')) change_array.shape = (3,3) print(change_array) ``` The output of this program with input: `1 2 3 4 5 6 7 8 9` is ``` [['1' '2' '3']...
2018/03/01
1,077
4,030
<issue_start>username_0: I'm currently going through the Flutter Firebase codelab [here](https://codelabs.developers.google.com/codelabs/flutter-firebase/#8). I've followed all the steps, but I'm getting two errors when trying to use the `itemBuilder` of the `FirebaseAnimatedList` widget. ### Error 1 Relates to `sor...
2018/03/01
2,302
6,751
<issue_start>username_0: **Background** * I was trying to install Jupyter Lab using `pip3 install jupyterlab`, and it threw the same error. * I did not figure it out. Found a workaround using `pip2 install jupyterlab` -- it worked, but clearly was a bandaid fix. * tried running `import pandas as pd` in the python3 not...
2018/03/01
2,585
5,361
<issue_start>username_0: I have the below `python` code: ``` import pandas as pd import numpy as np import openpyxl wb = openpyxl.load_workbook('MOA_Assignment.xlsx') PD = pd.DataFrame(wb['Purchase Exit Survey Data'].values) #drop unneeded rows and columns PD=PD.iloc[6:,1:] #sum columns into the 58th row PD[58]=PD.su...
2018/03/01
1,699
5,871
<issue_start>username_0: Is there a way to delete all AWS Log Groups that haven't had any writes to them in the past 30 days? Or conversely, get the list of log groups that haven't had anything written to them in the past 30 days?<issue_comment>username_1: I'm not aware of a simple way to do this, but you could use t...
2018/03/01
2,043
6,501
<issue_start>username_0: ``` System.out.print("What would you like to decode? "); String fileName1 = console.next(); System.out.print("Save the results as: "); resultFileName = console.next(); int token1; Scanner inFile1 = new Scanner(new File(fileName1)).useDelimiter("[" + "," ...
2018/03/01
436
1,646
<issue_start>username_0: We have a large collection of shell functions for various uses that are added to our .bash\_profiles and we use on a daily basis. We call the functions like regular binaries. I am trying to call these same shell functions from inside a Go app but it cannot find them as it's obviously running i...
2018/03/01
338
1,280
<issue_start>username_0: I have a lot of code that is based on open cv but there are many ways in which the Arm Compute library improves performance, so id like to integrate some arm compute library code into my project. Has anyone tried converting between the two corresponding Image structures? If so, what did you do?...
2018/03/01
1,481
5,464
<issue_start>username_0: I am working on inserting a CSV file into MongoDB. First I am converting my CSV into Json formatted array (Reference: <https://dzone.com/articles/how-to-convert-csv-to-json-in-java>) and then trying to upload it into MongoDB, but facing the below error(**readStartDocument can only be called whe...
2018/03/01
708
2,400
<issue_start>username_0: Self-taught and struggling a little bit to understand how callbacks work. My callback handling function cannot access individual elements of the array i.e: * "console.log(ResultsArray)" works * "console.log(ResultsArray[1])" returns "undefined" However, "ResultsArray[1]" works perfectly fine...
2018/03/01
661
2,529
<issue_start>username_0: How do I go about stopping 'Access granted' being printed when password is correctly input? Access granted get printed three times when 'swordfish' is entered ![enter link description here](https://pastebin.com/rL9pcuBh) ``` print ('The Database is password protected') # Says the Data base is...
2018/03/01
556
2,057
<issue_start>username_0: This is my personal GH Pages site. I have this set in my `/_config.yml`: ``` theme: jekyll-theme-cayman title: iBug @ GitHub description: The small personal site for iBug ``` Now it shows a big title *iBug @ GitHub* and a tagline on every page GH Pages generates. I want to set overrides fo...
2018/03/01
733
2,295
<issue_start>username_0: I'd like to know why my code does not show any results. I have a link in the `home.php` page, like this: ``` [Click here](../musica/'.$row['slug'].')` ``` and in the `musica.php` page, I access the slug with: ``` $slug = $_GET['slug']; ``` and my query looks like this: ``` select * from...
2018/03/01
644
2,289
<issue_start>username_0: Currently I have coupons that get applied automatically based on a functions.php script I made. I'm trying to remove the Coupon Field entirely from the Cart page but can't figure out how to. I tried the script mentioned elsewhere as shown below: ``` / hide coupon field on cart page functio...
2018/03/01
1,717
4,703
<issue_start>username_0: I have some data stored in an list of lists (a list of ~200,000 rows x 6 columns). I need to get the following subset of the data: For each unique set of values in columns [1,2,4], I need to find the row with the minimum value of column 0 and keep only that row. I have to do this in old numpy...
2018/03/01
827
2,833
<issue_start>username_0: I am looking out for developing a C# application which posts message to a ebMS3 platform using AS4. I am new to this area. Could anyone please help? Is there any third party libraries to do this easily? If not, how we post messages using AS4 from a c# solution.<issue_comment>username_1: Not sur...
2018/03/01
1,148
4,890
<issue_start>username_0: ``` class Book(): def __init__(self, listOfBooks): self.availableBooks = listOfBooks def displayAvailableBook(self): print() self.displayAvailableBook() class TextBooks(Book): def __init__(self,listOfBooks): super().__init__(listOfBooks) ...
2018/03/01
430
1,729
<issue_start>username_0: I have a site with a service worker with multiple caches, which have files used for different reasons. I'd to be able to clear (or delete) one particular cache from my program on demand, not from within the service worker itself. This is what I've tried: ``` async function clearCache(cacheName...