date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/27
667
1,567
<issue_start>username_0: How can I check if two lists have same values at specific index, using slice? ``` L1 = ['X00013', 9654123, 4.1, 'No', 'No', 1.83, 3.8, 0.01, 90.01] L2 = ['X00014', 2021230, 1.23, 'Yes', 'No', 1.86, 3.65, 0.15, 0.00001] ``` I know how to check ``` if L1[3] == L2[3]: print("YES") ``` b...
2018/02/27
675
2,229
<issue_start>username_0: I am entirely new to Groovy scripting and need help. I tried the following script to count the number of lines that has a specific text occurrence. Error observed: ``` groovy.lang.MissingMethodException: No signature of method: java.io.File.eachline() is applicable for argument types: (Hema...
2018/02/27
872
2,715
<issue_start>username_0: When writing `Ltac` in Coq, one might be tempted to write ``` try match goal with |- context [?x && true] => rewrite andb_true_r end ``` instead of ``` try rewrite andb_true_r ``` to not call `rewrite` pointlessly – this inside the inner loop of a larger tactic, and we expect the rewrite...
2018/02/27
1,024
3,399
<issue_start>username_0: I have inherited a project and one thing that stuck out is that some of the tables record count need to be displayed as a statistic so the user. I would have just done `select Count(*) from Table1` and called it a day, but they seem to have it whenever something is inserted into that table ano...
2018/02/27
1,419
4,901
<issue_start>username_0: I am trying to toggle class in one of my react component. At the beginning of the stage the element will be represented image and a hidden (disable) description. Whenever the user hover the element I want to add the class display only to the element hovered and not all the child components. In ...
2018/02/27
524
1,557
<issue_start>username_0: I'm trying to make a simple form that asks for login details, but I want it to also be mobile friendly. It works great with desktops, but on mobiles it shifts a little bit to the right. I want the text to be exactly in the middle, like on pc. Pic of the site on mobile:[![enter image description...
2018/02/27
1,144
4,443
<issue_start>username_0: I am trying to build a parameterized Junit Test in order to test each occurrence of a LinkedHashMap within an ArrayList of LinkedHashMaps. This is because each LinkedHashMap represents a test case. The map is built/stored by a object within my TestSuite class, which utilizes the @BeforeClass a...
2018/02/27
707
2,692
<issue_start>username_0: <https://github.com/bvanalderweireldt/concurrent-unique-queue> I have tried to set up a Maven dependency within IntelliJ, but I am not sure how the contents of this repository should be built and imported into a Java project. Could someone with more experience please advise on how this is done...
2018/02/27
763
2,748
<issue_start>username_0: ``` for ($i=1; $i < 10; $i++) { $a = rand(1,6); $b = rand(1,6); if ($a != $b) { $mysqli->query("UPDATE `jpa` SET `war` = $b WHERE `id` = $a"); $mysqli->query("UPDATE `jpa` SET `war` = $a WHERE `id` = $b"); } } ``` It is necessary to compile a table of oppone...
2018/02/27
2,037
7,618
<issue_start>username_0: For a project I want to generate a tree structure which has x children and is n 'layers' deep. A layer can the best be described in the following figure: ``` 0 1 1 2 2 2 2 ``` The number on each row equals the layer number. I got ...
2018/02/27
1,291
4,512
<issue_start>username_0: I have the following config ``` ``` I read from orderPlaced which is a rabbit queue, then unmarshal the object to an OrderModel, then perform two process, where the second process changes the body object type from OrderModel to SalesOrder, but when marshaling the message I get an error > >...
2018/02/27
922
2,916
<issue_start>username_0: I have some code which appends yesterday's data to [large dataset], using proc append. After doing so it changes the value of the variable "latest\_date" in another dataset to yesterday's date, thus showing the maximum date value in [large dataset] without a time-consuming data step or proc sql...
2018/02/27
400
1,222
<issue_start>username_0: I have looked at this post: [Yarn error "no such option" with --dev flag](https://stackoverflow.com/questions/45430645/yarn-error-no-such-option-with-dev-flag) but it did not work for me. I did the `npm install --global yarn` and it did not work. ``` yarn version: 0.27 node version: 9.6.1 npm...
2018/02/27
898
3,676
<issue_start>username_0: I want my users to sign in with multiple accounts (Not linking multiple providers) like gmail, it allows you to use multiple signed in accounts at the same time you can check all inboxes for all accounts at the same time e.g. I am a User and I want to use two accounts <EMAIL> & <EMAIL> I wan...
2018/02/27
1,142
4,108
<issue_start>username_0: I am trying to get my connection string from Azure Keyvault in the application\_start event of my .Net web application. ``` protected void Application_Start(Object sender, EventArgs e) { var azureServiceTokenProvider = new AzureServiceTokenProvider(); var kvClie...
2018/02/27
869
2,956
<issue_start>username_0: I've looked it up, but couldn't get a real answer to that. So I want to know how to sum up 2 string numbers together. for example: `String a = "8"; String b = "1";` I want to sum both of them to "9". Is that possible? Thanks. edit - that is the code Im trying to use: ``` String num = Integ...
2018/02/27
444
1,593
<issue_start>username_0: I am new to rails and am stuck: I have a model for Articles, Topics and Links. On the page, where the whole article is displayed, I show in div-boxes all `@topics` and all `@links`, which are connected to this article (`@topics.each` ...). Sometimes there is/are no topic/topics or link/links co...
2018/02/27
1,367
4,150
<issue_start>username_0: I have the following code: ``` close all; star = imread('/Users/name/Desktop/folder/pics/OnTheBeach.png'); blrtype = fspecial('average',[3 3]); blurred = imfilter(star, blrtype); [rows,cols,planes] = size(star); R = star(:,:,1); G = star(:,:,2); B = star(:,:,3); starS = zeros(rows,cols); ind...
2018/02/27
620
2,259
<issue_start>username_0: ``` Temp = ReadLeaderboard(); int[] TrueLeaderboards = Temp.toArray(new int[Temp.size()]); ``` The ArrayList Temp reads the data correctly, but when i try cast it and store into a normal Array of integers it won't allow it?<issue_comment>username_1: You could use streams to accomplish...
2018/02/27
802
3,021
<issue_start>username_0: I'm in a particular case where I absolutely need to make sure that `document.querySelectorAll('.scroll-content')[0]`, `document.querySelectorAll('.scroll-content')[1]`, etc are defined before the user enters the app. In other words : **I need to preload my tabs**. **The current behavior of tab...
2018/02/27
753
2,800
<issue_start>username_0: I have an Angular 5 application and i have a candidate object which has a string[] property, specified in the interface it implements. The actual value of the property is being retrieved from the template, as an input string. This is the problem. The object needs to be saved into the database ...
2018/02/27
1,435
5,019
<issue_start>username_0: I'm attempting to set up system tests with Capybara and Selenium on an existing Rails 5.1 (Upgraded from Rails 4) app that already had capybara based feature tests. Here's what I've done so far. In the gem file under `group :development, :test`: ``` gem 'chromedriver-helper' gem 'selenium-...
2018/02/27
1,578
6,227
<issue_start>username_0: I'm reading about [Git LFS](https://git-lfs.github.com/) and see time and again that it works great for "large files" > > Git Large File Storage (LFS) replaces large files such as audio samples, videos[...] > > > > > Version large files—even those as large as a couple GB in size—with Git...
2018/02/27
453
1,539
<issue_start>username_0: I wrote a simple java program but it isn't giving any output. It just has to take array input and then print it but on running the program it doesn't produce any output and it is also consuming 60 MB of memory. ``` import java.util.*; public class TestClass { public static void main(String[] a...
2018/02/27
412
1,424
<issue_start>username_0: Suppose I have a repository with a `findAll()` method that returns an `Iterable` of `State`, where `State` is a class representing a US state that has two fields (with getter/setters): `name`, and `population`. I want to get the sum of the population fields for all `State`s in my Flux. I cr...
2018/02/27
562
1,861
<issue_start>username_0: I have decided to make my own Tool bar So i removed the regular ToolBar : ``` ``` then i include in main xml ``` ``` and in the code i set it up : ``` _CustomToolBar = (android.support.v7.widget.Toolbar) findViewById(R.id.custombar); setSupportActionBar(_CustomToolBar); android.suppo...
2018/02/27
750
2,845
<issue_start>username_0: I am coding on Python 2.7. I want a large list of words to have access to. Looking around, I have found that nltk has what I'm looking for. However, every time I try and install it I get a syntax error. I have tried doing the commands in the shell and in files. I have no true understanding of h...
2018/02/27
843
2,840
<issue_start>username_0: Usually when I develop application using docker container as my development test base I need in order to run manually composer, phpunit, npm, bower and various development scrips in it a shell via the following command: ``` docker exec -ti /bin/sh ``` But when the shell is spawned, is spawne...
2018/02/27
358
1,229
<issue_start>username_0: I am working on a React app which needs json-ld schema to be defined. I get the schema string through an API and need to add the appropriate script tag to my page. My schema string looks something like this: ``` [{"@context": "http://schema.org"}] ``` I expect this to be translated to: ```...
2018/02/27
853
2,185
<issue_start>username_0: I am trying to generate the SHA-1 hash of a string using the Web Crypto API. The code i am using to do this is pretty much the second example from the [MDN SubtleCrypto.digest() page](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest#Example "MDN SubtleCrypto.digest() page")...
2018/02/27
1,822
5,632
<issue_start>username_0: I currently have a raw data table in Excel that summarizes the status of Phases A, B, and C for a given Engagement. Some Engagements may not have data for all 3 phases. ``` Row| EngagementID | A_date | A_status | B_date | B_status | C_date | C_status 1 | 201 | 2/2 | Approved | ...
2018/02/27
431
1,471
<issue_start>username_0: I'd like my state machine to continue execution even in the event of some state error early on. Most of my lambda functions output the same thing they take as input, so I'd like to be able to just pass on the input that the lambda that encountered the error as output to the next state. I tried ...
2018/02/27
935
3,041
<issue_start>username_0: I have a JavaScript .each() function which check the value of my div tag and toggle a css class. I am just checking the value fetched from my db and giving the a particular color. ``` $(".c").each(function() { if ($(this).text() < 4) { $(".col").toggleClass("yellow"); } e...
2018/02/27
3,653
11,443
<issue_start>username_0: I have come across an issue with using the tkinter message box, when a user of my application presses the English flag and then goes to Log-out in the top right hand corner a message box appears but also another box appears with the window title 'tk', I have not made or called any such window s...
2018/02/27
476
1,424
<issue_start>username_0: ``` #include int main(int argc, char \*\*argv) { int c; FILE \*file; file = fopen(argv[1], "r"); if (file) { while ((c = getc(file)) != EOF) { if (c == 'a') { // loops through this part of the file without breaking the // the original c } } } } ``` Basically, this program has ...
2018/02/27
1,090
3,426
<issue_start>username_0: From [this thread](https://stackoverflow.com/questions/673153/html-table-with-fixed-headers/25902860#25902860), I picked up the [code here](https://jsfiddle.net/doctorDestructo/gfbk73bp/). I have copied it, but it does not work for me. The table looks like the example, but when I scroll the he...
2018/02/27
1,008
3,736
<issue_start>username_0: On my site, I have an option where users can add multiple guests to a booking and select a package they would like to buy them. When a package is selected the price automatically updates based on the value of a select option. For some reason - the first drop down (that is already on the page)...
2018/02/27
3,518
13,031
<issue_start>username_0: I'm new to Node.js and I'm trying to create a mail box using the Gmail API everything works fine except uploading an attachment in email. I found examples with Java, Python and C#, yet I can't find any documentation with node about it. Any tips would be very much appreciated. Here is my code:...
2018/02/27
3,385
12,396
<issue_start>username_0: I want to create three columns like I do with Bootstrap 3, but here I don't get three columns and I get three rows. ``` Left Center Right ``` Plunker: <https://plnkr.co/edit/6gRm3dsYxBjCdKR5V7Dy?p=info> What am I doing wrong? Edit I ------ Here is the wide of my screen: [![enter imag...
2018/02/27
3,345
12,304
<issue_start>username_0: ```js function palindrome(word) { var s = new Stack(); for (var i = 0; i < word.length; i++) { s.push(word[i]); } var rword = ""; while (s.length() > 0) { rword += s.pop(); } if (word == rword) { return true; } else { return false; } } console.l...
2018/02/27
3,531
13,052
<issue_start>username_0: I'm trying to use swift 4 to parse a local json file: ``` { "success": true, "lastId": null, "hasMore": false, "foundEndpoint": "https://endpoint", "error": null } ``` This is the function I'm using: ``` func loadLocalJSON() { if let path = Bundle.main.path(...
2018/02/27
862
3,412
<issue_start>username_0: I'm querying data from an Azure SQL database following the documentation on [Microsoft docs](https://learn.microsoft.com/en-us/azure/sql-database/sql-database-connect-query-nodejs) using NodeJS. Now that I have the data, I'm planning to visualize it using Plotly.js on a plain HTML. But, honest...
2018/02/27
1,677
5,599
<issue_start>username_0: I am attempting to load PubNub into my project with Require. But "PubNub" is returning as undefined when I try to initialize it. I have downloaded the current pubnub.4.20.1.js and have included it in the scripts folder of my project. Here is my Require code: ``` require.config({ paths: { ...
2018/02/27
344
1,293
<issue_start>username_0: For a few years we've been using some JavaScript to log events (in this case phone calls) from our website to Google Analytics. Recently, the code stopped working and I started to look into it. From what I can tell Google deprecated the library that drives the code. Is anyone else familiar with...
2018/02/27
386
1,356
<issue_start>username_0: I am trying to create a volume on an external drive . It works with the following command ``` docker run -t -i -v /mnt/mydrive:/var/ ubuntu ``` But with the above command, I am not able to provide a name to the volume. How can I create a named volume mounted to an external drive?<issue_comm...
2018/02/27
572
1,976
<issue_start>username_0: I'm playing around with `subprocess.Popen` for shell commands as it seems it has more flexbility with regards to piping compared to `subprocess.run` I'm starting off with some simple examples but I'm getting `FileNotFoundError:` I was told that `shell = True` is not necessary if I make the ar...
2018/02/27
881
3,356
<issue_start>username_0: Using Spring Boot 2.0.0.RC2. I've written a Configuration class: ``` @Configuration @ConditionalOnProperty("launchdarkly.sdkKey") public class LDClientConfiguration { @Bean public LDClientInterface ldClient(LDClientConfigurationProperties props) { return new LDClient(props.g...
2018/02/27
282
817
<issue_start>username_0: I've been using Materialize but hit a wall on this formatting. I can't seem to get it to center horizontally on the page. It just stays left justified no matter what change I make. ```html *star* 2016 *star* 2017 *star* 2018 ``` [View on JSFiddle](https://jsfiddle.net/wuz0rvh8/)<...
2018/02/27
483
1,809
<issue_start>username_0: I keep getting a "Warning: Variable passed to each() is not an array or object" error on a script I know is array. Basic code is: Array is built from an API call - ``` $results = $abc->request('thing', $params, 'GET'); ``` I've confirmed via `print_r` that `$results` is in fact an array - ...
2018/02/27
1,207
3,395
<issue_start>username_0: I have a CSV file like this one: ``` route|id|alias|longitude|latitude A|1|first|-33.51808226|-70.58256582 A|1|first|-33.52850414|-70.57645648 B|2|second|-33.51952529|-70.58043875 B|2|second|-33.53452223|-70.58343824 ``` Each route has an `id` and an `alias` that are always the same for the ...
2018/02/27
849
2,183
<issue_start>username_0: I have written a simple HTML page where, on a button click event, the selected value from a drop down is printed in a textbox. I have used javascript for this task. I don't know why it's not working, though the logic seems ok to me. Any help would be appreciated. ``` Sample | | | --- | | ...
2018/02/27
902
2,301
<issue_start>username_0: I have this : ``` foreach (var user in Model.Users){ | [user.UserName](#name) | } ``` and need send id (@user.id) to ``` @using (Html.BeginForm("ChangeName", "Person")) { @Html.LabelFor(Model => Model.Person.UserName, "Jméno", htmlAttributes: new { @class = "control-label align-center"...
2018/02/27
1,231
3,701
<issue_start>username_0: I am working on a program which states that: You are given a 2-D matrix with M rows and N columns.You are initially positioned at (0,0) which is the top-left cell in the array. You are allowed to move either right or downwards. The array is filled with 1’s and 0’s. A 1 indicates that you can m...
2018/02/27
2,451
9,033
<issue_start>username_0: I inherited this MySQL query as a bit of legacy code: ``` SELECT HardwareAddress, CONV(SUBSTRING(EventValue,3,2), 16, 10) AS 'Algorithm' FROM ( SELECT @prev := '') init JOIN ( SELECT HardwareAddress != @prev AS first, @prev := Hardware...
2018/02/27
2,400
8,405
<issue_start>username_0: ``` url_path='https://v3v10.vitechinc.com/solr/v_us_participant/select?indent=on&q=*:*&fq=id:1&wt=json' request = urllib2.Request(url_path) response = urllib2.urlopen(request) participant_data = response.read() participant_data_metadata = json.loads(participant_data)['response']['docs'] for in...
2018/02/27
650
1,833
<issue_start>username_0: I currently have 3 tables (diagnosis, encounters, and encounter diagnosis). [1 is the link to see the table outputs](https://i.stack.imgur.com/1Aa8V.png) I currently wrote a code that gives me everything I want, but I am looking for the first time a diagnosis occurred. [code and output](https...
2018/02/27
687
2,245
<issue_start>username_0: Okey so i already strugle for a while with following issue. Lets assume that user have a search input where he can put any information i.e name, surname, specialization or anything and then we test table to return all rows that contains anything from this string. Assuming that i have table lik...
2018/02/27
1,836
5,815
<issue_start>username_0: This is a pretty bizarre situation I have encountered. I have the following simple Python script: ``` from selenium import webdriver from selenium.webdriver.firefox.options import Options options = Options() options.add_argument("-headless") browser = webdriver.Firefox(firefox_options=options...
2018/02/27
1,146
4,591
<issue_start>username_0: I am currently working on a project with Django. I am trying to implement the ability of login and logout a user from the application using only python scripts in order to send post request from the client to the server. I am trying to logout a user from my application but it does not seems to ...
2018/02/27
555
2,161
<issue_start>username_0: I have an input text field in which the user can enter the name of a website. Is it possible for it to be hyperlinked so that once the field is saved, if the user clicks on it, it redirects to the website? I use Django for the backend and Javascript and html for the front end.<issue_comment>us...
2018/02/27
456
1,578
<issue_start>username_0: I'm cross-compiling ecasound, which goes well up to the point that all binaries get compiled, but fails during (at the end of?) the installation phase. The thing is, I don't see any error message or anything, so I'm left guessing here: ``` ecasound: installs files in /home/buildroot/buildroot...
2018/02/27
1,512
6,153
<issue_start>username_0: PHP 7 added support for [anonymous classes](http://php.net/manual/en/language.oop5.anonymous.php), however I can't seem to find any information regarding associated scoping issues. I know I can use the `use` keyword with callables/closures to access outer scoped variables (like `function() use ...
2018/02/27
925
2,697
<issue_start>username_0: I want to merge different files based on the conditions of the file names. For example, ``` Name1_Stuff1_A.csv Name1_Stuff1_B.csv Name1_Stuff2_A.csv Name1_Stuff2_B.csv Name1_Stuff3_A.csv Name1_Stuff3_B.csv ``` Merging: ``` Name1_Stuff1_A + Name1_Stuff2_A + Name1_Stuff3_A -> ...
2018/02/27
1,324
4,936
<issue_start>username_0: Basically I am trying to have an image display in the background of a container, but it isn't loading. I have tried various paths as it isn't entirely clear to me what the URL needs to be relative to: the `package.json`, the `webpack.config.js`, the React component, or the `login.scss` I am wor...
2018/02/27
927
3,007
<issue_start>username_0: I am stumped. If I remove an index that is not used by the query, then the query goes from 46 seconds down to 6 seconds. Here is the query: ``` SELECT TOP (10) [Extent1].[alarm_class_id] AS [alarm_class_id], [Extent2].[domain_id] AS [domain_id], [Extent3].[description] AS [description], [...
2018/02/27
532
1,805
<issue_start>username_0: I would like to replace in multiple dump files (\*.sql): ``` `this_pattern` varchar(255) ``` by ``` `this_pattern` varchar(100) ``` i.e. only when "this\_pattern" is present on the line. I tried simple with: ``` echo "varchar(255)" | sed -e 's/\(255\)/100/g' ``` but I don't know how t...
2018/02/27
2,079
6,255
<issue_start>username_0: I am working with a very messy sports dataset in R - currently I am trying to return a list of team names from a column in a dataframe that looks like this: ``` dput(my_df$Var.1[1:9]) c("Thursday, Mar 29, 2018", "Regular Season Wins\n\t\t\n Arizona Diamondbacks\n\t\t\t\n\t\t\t...
2018/02/27
673
2,456
<issue_start>username_0: I have multiple MSA on k8s on GKE. Each is on separate subdomain like: * msa1.example.com * msa2.example.com I have it in single ingress: ``` apiVersion: extensions/v1beta1 kind: Ingress metadata: name: main-ingress annotations: kubernetes.io/ingress.global-static-ip-name: lalala-ip-...
2018/02/27
866
3,321
<issue_start>username_0: I am using MongoJS to fetch data from mongo db in the following way: app.js: ``` var db = mongojs('db', ['events']); ``` And then: ``` app.get('/', function(req, res){ db.events.find(function(err,docs){ res.render('index', { title: 'Events', events: docs }...
2018/02/27
405
1,402
<issue_start>username_0: When I navigate to my deployed azure website, I get an error, ``` You do not have permission to view this directory or page. ``` **In my web.config** ``` ``` Full source code is [in my github](https://github.com/rberger247/EduSmart3). I followed [microsoft documentation](https://learn.mi...
2018/02/27
1,650
5,945
<issue_start>username_0: The task API feels sort of like a pit of failure, given how every possible thing I could do with it comes with more **DON'T** than **DO**. But I'm trying to use it more, and I'm confused about the entire issue of `async void`. My problem happens in a place where my application's used a local ...
2018/02/27
225
781
<issue_start>username_0: I want my website users to be able to print pages in either portrait or landscape mode. When printing from Google Chrome using Bootstrap 3.3.7, the Chrome print settings has a Layout option. Simply changing the css/js to 4.0.0, the Chrome print settings no longer has the Layout option. I suspe...
2018/02/27
522
1,771
<issue_start>username_0: I am trying to parse Strings containing decimals (that may or may not use scientific notation) into `BigDecimal`. `DecimalFormat.parse()` seems to work fine for numbers that do not use scientific notation, but `3.95e-06` is getting parsed as the double `3.95` (the exponent is being ignored). ...
2018/02/27
621
1,808
<issue_start>username_0: For example, I have a table A ``` id price sum 1 2 0 1 6 0 1 4 0 2 2 0 2 10 0 2 1 0 2 5 0 3 1 0 3 5 0 ``` What I want is like (the last row of `sum` should be the sum of `price` of a group) ``` id price sum 1 2 0 1 ...
2018/02/27
671
2,303
<issue_start>username_0: I needed to run `babel-plugin-transform-remove-console` for my dev build. What I did was: ``` npm i babel-plugin-transform-remove-console --save-dev ``` Then in `.babelrc` I changed it to this: ``` { "presets": ["react-native"], "plugins": ["transform-remove-console"] } ``` I also tri...
2018/02/27
516
1,264
<issue_start>username_0: I have a leaderboard style spreadsheet where for every task someone has achieved: - they get a point in one of the columns (column E, F, G, H, I , J, K, L), - that point is multiplied by the column value (row 2 - E2, F2, G2, H2, I2 , J2, K2, L2 value), - and the sum of all those, is eq...
2018/02/27
1,218
4,014
<issue_start>username_0: I am trying to check two lists say for example looks like this ``` list1 = {"br","je"}; list2 = {"banana", "bread", "jam", "brisket", "flakes", "jelly"}; ``` should return ``` {false, true, false, true, false, true} ``` Using LINQ is it possible to achieve the above output. I tried somet...
2018/02/27
2,199
7,936
<issue_start>username_0: I have looked up for the right tutorials and Q/A on stackoverflow for the last few days without finding the right guide, primarily because examples showing use case of LabelBinarizer or OneHotEncoder don't show how it's incorporated into pipeline, and vice versa. I have a dataset with 4 variab...
2018/02/27
758
2,298
<issue_start>username_0: I have table like this ``` PartID Quantity Date 12315 1 2017-01-24 51245 3 2017-01-26 12345 4 2017-02-20 12415 1 2017-02-25 ..... .. ........... ``` I need for the report result like: ``` Monthly Quantity January: 4 Monthly Quantity ...
2018/02/27
865
3,376
<issue_start>username_0: I'm creating something that has buttons, to show different info. I don't want to create a lot of buttons, but I don't know how to have the buttons show different information. ``` ``` if you click `btn1` from the main menu and click it again it will show info, but after clicking `btn2` from t...
2018/02/27
337
1,155
<issue_start>username_0: I wanted to get all the git config entries, so I glanced over the options and found `--get-all`, but it gave: ``` C:\>git config --global --get-all error: wrong number of arguments usage: git config [] ``` It doesn't seem to specify a number of arguments, it just says `[]`. And I don't know ...
2018/02/27
773
3,114
<issue_start>username_0: The first DIV works, but then when new DIV rows are added, they don't get triggered. I suspect this has to do with event handler not binding with dynamically added elements, but how should I fix this, Thanks!: ```js // This adds more Education input $(document).ready(function(){ ...
2018/02/27
1,617
6,946
<issue_start>username_0: I'm creating a test widget that shows random number by clicking its button. everything is inside `onUpdate` of my `Provider` independently, including the `pendingIntent`. it works fine but after rebooting the phone `views.setOnClickPendingIntent` is not working although `RemoteViews` is recreat...
2018/02/27
528
1,949
<issue_start>username_0: I face this error: `403: Not Authorized to access this resource/api` when I try to access a list of users from the Directory API. I've followed the steps found **[here](https://developers.google.com/admin-sdk/directory/v1/guides/delegation)**. * The domain on google admin console has the same ...
2018/02/27
190
784
<issue_start>username_0: Whats the difference between the following 2 things in ember.js? Is there a rule of thumb for when one is preferred over the other ? 1) `afterRender` run loop 2) `didInsertElement` hook<issue_comment>username_1: After delegation, you must authorize your service account by going to `Security...
2018/02/27
234
892
<issue_start>username_0: I'm trying find out how to round a cell that will have different results after calculation and I need to round the results to different values. The numbers and values are: * < 5 to the nearest 0.5 * > 5 and < 20 to the nearest 1 * > 20 and < 50 to the nearest 5 * > 50 to the nearest 10. Thank...
2018/02/27
1,079
3,097
<issue_start>username_0: An LTO build of a rather large shared library (many template instantiations) takes rather long (>10min). Now I know a few things about the library, and could specify some kind of "blacklist" in the form of object files that *do not need* to be analyzed together (because there are no calls among...
2018/02/27
555
2,130
<issue_start>username_0: I have my release app (from Google play ) installed on the device. When I am trying to install the app via run in Android studio , I get this error . I changed nothing ,It always worked, I always checked the release version before uploading the apk to Google play . I thought maybe uploading ...
2018/02/27
631
2,235
<issue_start>username_0: I'm trying to set the value of a paragraph tag with the class `rules`. It should switch between a, b, c, etc. every 4 seconds and repeat. For some reason, the function isn't running at all and there are no errors in the developer tools of chrome. Nothing changes when I call the function with i...
2018/02/27
273
944
<issue_start>username_0: i have list of maps and want to get all maps with id = 2. when i wrap the list in a holder object, all works correctly (kotlin code): ``` class Holder(val value : Any) val list = listOf(mapOf("id" to 2), mapOf("id" to 3)) val context = Holder(list) val xpath = "value[id = 2]" JXPathContext.new...
2018/02/27
589
2,232
<issue_start>username_0: is there any difference between coin, token and protocol? this is what i understood in ethereum perspective ethereum is a protocol , ERC20 is a token , ETH is a coin is it correct ?<issue_comment>username_1: > > is there any difference between coin, token and protocol? > > > Yes. ...
2018/02/27
540
1,941
<issue_start>username_0: I have experiance in iOS native development and I am now trying to build my first app on react-native. I am trying to setSate when I receive data from firebase database as bellow: ``` state = { remainingSeconds: 5, dataArray: [], }; componentDidMount() { // Get data from firebase this.getDat...
2018/02/27
454
1,671
<issue_start>username_0: I've just started C++ and I'm in a tough spot, vectors. My problem is: How do I put the even numbers from vector a into vector b in ascending order? For example: 7 4 2 9 5 -> 2 4 Also, if possible, I want the easiest algorithm to understand for now, nothing advanced. I only know bubble sort.<i...
2018/02/27
1,146
4,579
<issue_start>username_0: I'm attempting to have my php application call Google's Calendar API using the service to service authentication. I have administrative access over my Education G Suite, and have performed the following steps as indicated here: <https://developers.google.com/identity/protocols/OAuth2ServiceAcco...
2018/02/27
2,554
8,572
<issue_start>username_0: I am using react-slick to create a carousel in my project. I've read through the documents and tried different things but could not find a way to customize it exactly the way I need... Does anyone knows if there a way to have the nextArrow show on/in front of the image and not on its right? See...
2018/02/27
327
1,231
<issue_start>username_0: I'm trying to use Quill.js - Your Powerful Rich Text Editor for my project in laravel. But, since quill uses: ``` || ``` Instead of a regular old: ``` ``` `$post->body = $request->input('body')`; won't work. What do I use to save the information I get from a div with the id of #editor...
2018/02/27
1,212
4,340
<issue_start>username_0: I want to delete an AWS VPC which I don't know how it came into existence. When I try to delete it in AWS Console, it says: [![enter image description here](https://i.stack.imgur.com/fOWHO.png)](https://i.stack.imgur.com/fOWHO.png) > > We could not delete the following VPC (vpc-0a72ac71) Ne...
2018/02/27
916
3,211
<issue_start>username_0: I've been working on a Machine learning model for my college project lately that accepts health factors from the user and supplies it to a CNN and the CNN tells the user the onset of them having diabetes in coming years. I've already written a keras model and saved it as hdf5 format. I've check...
2018/02/27
2,307
5,645
<issue_start>username_0: I'm trying to take a list from an array, and split the strings to sort the list sequentially by the last series of 6 numbers (for instance '042126). To do this I would split by '.', use the second to the last split of the string [-2], and then sort matchfiles[1] with this substring. The files ...
2018/02/27
2,557
6,586
<issue_start>username_0: I have found this [question](https://stackoverflow.com/questions/47043693/celery-4-not-auto-discovering-tasks/49018128#49018128) and tried all recommendations as well as the accepted answer. Still no luck. Here is my `mysite/taskapp/celery.py`: ``` import os from celery import Celery from dja...