date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/12
622
2,127
<issue_start>username_0: I'm trying to code a console-based farm simulator game. My classes are: **Board.java** ``` public class Board { Spot[][] board = new Spot[50][50]; Values free = new Values(1000,'_'); Plant plant = new Plant(10,'@'); public Board() { for(int i = 0; i < MAX_SIZE; ++i) ...
2018/03/12
428
1,448
<issue_start>username_0: Can someone tell me how I can add value to database? My code looks like this: ``` if(isset($_GET['gold']))// { $gold = $_GET['gold']; mysqli_query($db_handle, "UPDATE serverplayers SET Gold='$gold' WHERE Unique_Id = '$unique_id'"); } } mysqli_close($d...
2018/03/12
565
2,060
<issue_start>username_0: I have 2 modules in 2 different apps *that are not in relationship of any kind*: ``` class Table(models.Model): name = models.CharField(max_length=32, unique=True) columns = JSONField() class Company(models.Model): name = models.CharField(max_length=32, unique=True) ``` I need t...
2018/03/12
1,908
5,432
<issue_start>username_0: I've been trying to update container PATH env variable value using `docker commit --change ...` flag but I must be lacking understanding of some part involved as I'm unable to get desired result. **Given:** ``` $ docker run -it centos:6 /bin/bash [root@3b459018aa84 /]# echo $PATH /usr/local/s...
2018/03/12
526
1,897
<issue_start>username_0: I noticed that some applications based on Qt have a button with a context menu in their title bar, I would like to achieve a similar effect in my application, can someone tell me how to achieve it? The image shows one of those applications with the button clicked showing the context menu Button...
2018/03/12
641
2,100
<issue_start>username_0: I'm having two tables `T1` and `T2`. ``` T1 --------- (Name,Value) T2 --------- (Name,Value) ``` I'm trying to make a select on `T1` based on `Name` and if it doesn't exist then select the row from `T2` ``` var T1Row = db.T1.AsNoTracking().Where(s => s.Name == "text1").FirstOrDefault(); if...
2018/03/12
777
2,388
<issue_start>username_0: I have a table I"m just iterating dates of 50 years. Using the values of weekofyear("date") -> week\_no\_in\_this\_year. I would like to create a column using (week\_no\_in\_this\_year), it should be unique for a week. name it as -> week\_id which should be concatination of Year+two\_digit\...
2018/03/12
337
1,350
<issue_start>username_0: I a display of a list of books. The books have points where the book with the highest number of points is to appear on top sorted in descending. Below is the structure of the book table ``` books.php id | name | points | active 1 | xyz | 5 | true 2 | foo | 4 | true 3 | doo | 6 ...
2018/03/12
876
2,522
<issue_start>username_0: I am writing a Python script. I have two variables with some default values. I want to pass one argument and set them to special values. Can I do it directly using `argparse`? My current code: ``` import argparse ap = argparse.ArgumentParser() ap.add_argument('-s', help="set special values",...
2018/03/12
885
2,439
<issue_start>username_0: I am trying to take a random number from a list that goes from 0 to 9999. When I get that number, I want to compare it to a 4 digit number. Then, if it doesn't work, I want to **REMOVE** that random number from the list of 0 to 9999 e.g. it picks 9999 randomly and it compares to 3129 so it dele...
2018/03/12
895
2,602
<issue_start>username_0: My repo has 3 commits. I want to squash to one. I ran `git rebase -i HEAD~3` and got this error: ``` fatal: Needed a single revision invalid upstream HEAD~3 ``` I was able to run `git rebase -i HEAD~2` and then `git push origin +master` and now I have 2 commits. But why couldn't I do `git ...
2018/03/12
956
3,713
<issue_start>username_0: I have a problem when trying to use font awesome icons on WordPress website. No metter what icon I use I see only blinking circle with question mark. Never had issue like this before. [Screenshot with icons I have](https://i.stack.imgur.com/L5wiF.png)<issue_comment>username_1: Everything was a...
2018/03/12
1,027
3,985
<issue_start>username_0: (Java beginer) I've one stupid doubt. Here is the code ``` XPathFactory xpathFactory = XPathFactory.newInstance(); ``` XPathFactory is absrtact class, How object is getting created ? Any connection here ? ``` XPath xpath = xpathFactory.newXPath(); ``` XPath is an interface, so when xpa...
2018/03/12
2,006
5,148
<issue_start>username_0: I'm trying to create a double layered navbar, with the top layer having company info like phone, email, social links, etc. The second layer is the main navbar, which is supposed to be sticky and transparent. But right now, it's pushing the next div (first) down and creating this blank space ...
2018/03/12
2,003
7,513
<issue_start>username_0: I am using AES to encrypt files. The problem first came when i tried to encrypt a large file. So i did some reading online and figured that i need to use a buffer and only encrypt bytes of data at a time. I divided my plaintext into chunks of 8192 bytes of data and then applied the encryption...
2018/03/12
992
4,161
<issue_start>username_0: Following MVVM architecture, we have a view with 2 `DataGrids` whose data are related and view-model having `ObservableCollection`. Model have boolean property, based on which is one of the grid enabled/disabled. Everything works well and when I change the selected `Model`, the grid becames un...
2018/03/12
2,042
7,993
<issue_start>username_0: I'm trying to implement a linked list like this: ``` typedef struct SLnode { void* item; void* next; } SLnode; typedef struct DLnode { void* item; void* next; struct DLnode* prev; } DLnode; typedef struct LinkedList { void* head; /*SLnode if doubly_linked is false, ot...
2018/03/12
1,946
7,493
<issue_start>username_0: I have the following calculation going into a master workbook. ``` =SUM('[Budget Our Boys 2017-2018.xlsm]MONTHLY CASH FLOW'!$D$5, '[Closer Than Ever.xlsm]MONTHLY CASH FLOW'!$D$5, '[Birds.xlsm]MONTHLY CASH FLOW'!$D$5, '[Poppets.xlsm]MONTHLY CASH FLOW'!$D$5) ``` The calculation is for the...
2018/03/12
521
2,096
<issue_start>username_0: i need your help please. i want an object to rotate in Y axis (space.self) toward the player position. i have already tried this code, it works but i think there is a bug in it because the object keep changing position slowly. ``` public Transform _Playertrs; public float RotationSpeed = 10f...
2018/03/12
485
1,821
<issue_start>username_0: I have two Validators in my Extension. In both extensions i have same functions e.g. `isTagInside()`. I don't want to have this functions two times, if i change the 1. isTagInside(), i have to change the 2. isTagInside() too. It feels like bad practice here and repeating code. ;) --- My Con...
2018/03/12
880
2,250
<issue_start>username_0: **Query 1: Redundant to\_date usage:** ``` SELECT 1 FROM dual WHERE '22-APR-2018'>add_months(to_date( (to_date('28-02-2018' ,'dd-mm-yyyy') ) ,'dd-mm-yyyy'),60); ``` -- **Query 2: Single to\_date usage:** ``` SELECT 1 FROM dual where '22-APR-2018'>ADD_MONTHS(TO_DATE('28-02-2018' ,'dd-mm-y...
2018/03/12
307
1,177
<issue_start>username_0: I am trying to compile TypeScript & NodeJS an getting this error any help? tsc --version => Version 2.7.2 ``` error TS5023: Unknown compiler option 'lib'. error TS5023: Unknown compiler option 'strict'. error TS5023: Unknown compiler option 'esModuleInterop'. The terminal process terminated w...
2018/03/12
285
944
<issue_start>username_0: I have a div with absolute position. It is located **10px from the left**. I would like to transition it to a new location **10px from the right** on hover. Is it possible? I would like to "cancel" the 'left' attribute on hover and include a new 'right' attribute instead: ``` div { position...
2018/03/12
2,163
7,796
<issue_start>username_0: I have a basic django rest API. I want to separate some of my settings for dev and prod just for organizational purposes. I'm also just learning about separating environments. I've read a few things, but I can't seem to get it working the way I want it to. The hierarchy looks like this: ``` -...
2018/03/12
2,092
7,560
<issue_start>username_0: I'm trying to use dupFinder to scan for duplications in a .NET codebase. I have certain files and folders that I want to exclude from the scan but I'm struggling to get it working. The command I'm running is: ``` dupfinder.exe --show-text --output="dupReport.xml" --exclude="Some.Folder.*;*Res...
2018/03/12
640
2,253
<issue_start>username_0: I have a relatively simple query that returns a user profile, together with 2 counts related to that user (stream events & inventory); ``` SELECT u.*, r.regionName, COUNT(i.fmid) AS invcount, COUNT(s.fmid) AS streamcount FROM fm_users u JOIN fm_regions r ON u.region=r.regionid LEFT OUTER JOIN ...
2018/03/12
300
1,275
<issue_start>username_0: i created node.js script which takes query string from URL and store some variables in the database after inserting the data I need to close the window or current tab using node.js<issue_comment>username_1: The HTML page that is being served to the client by your NodeJS server can be closed by ...
2018/03/12
332
1,351
<issue_start>username_0: How does someone replace `@timestamp` field in a Logstash pipeline without converting DateTime to a string and then doing a date filter on that column? ```ruby mutate { convert => ["datetime", "string"] } date { match => ["datetime", "ISO8601"] } ```<issue_comment>username_1: The HTML pag...
2018/03/12
1,737
6,434
<issue_start>username_0: I have a `list` module implementing a foward list, like the following (minimal working example): ``` #include #include #include #include struct list\_cell { void\* payload; struct list\_cell\* next; }; struct list { struct list\_cell\* head; int length; }; typedef bool(\*matcher\_t)...
2018/03/12
1,005
3,196
<issue_start>username_0: I wrote a function to print a given `vector`. ``` template void print\_vector(std::string text, std::vector &vect){ std::cout << ">>>>>>>>>> " << text << " <<<<<<<<<<" << std::endl; for(T &t: vect){ std::cout << t << ", "; } std::cout << std::endl << "--------------------" << std::endl; ...
2018/03/12
362
1,474
<issue_start>username_0: Here is a sample Rx chain using RxBindings: ``` RxView.clicks(refreshIcon) .flatMap { Observable.error(IllegalArgumentException()) } .subscribe( { Timber.d("onNext")}, { error -> Timber.d("onError") }) .addTo(disposables) ``` After clicking my refresh icon once, this chain will n...
2018/03/12
1,407
4,506
<issue_start>username_0: I'm trying to generate pdf using laravel-dompdf library. I had downloaded the package through composer. ``` composer require barryvdh/laravel-dompdf ``` I had updated my config >> app.php ``` 'providers' => [ .... Barryvdh\DomPDF\ServiceProvider::class, ], 'aliases' => [ .... ...
2018/03/12
269
889
<issue_start>username_0: I have a website and wcf service, database is mongodb. I got error while trying to upload a class has filestream property (bigger than 4mb). All fine when i try to upload smaller sizes. How can i increase upload limit ? > > The remote server returned an unexpected response: (413) Request En...
2018/03/12
259
818
<issue_start>username_0: I want to replace all values in a deedle Frame / Series; Example, I want to replace all -1 by 0. I could not find a way to do it. in F#, there seem to be a mapValue function, but can't find equivalent in C#<issue_comment>username_1: nevermind, found a snippet that does the job: ``` void clea...
2018/03/12
569
2,224
<issue_start>username_0: I'm developing a POC over IBM HyperLedger Blockchain. I have a business network developed and deployed in IBM Cloud. I can generate a working local API REST, but cannot make it work on cloud, on the deployed IP. I'm following this guide: <https://ibm-blockchain.github.io/interacting/> You jus...
2018/03/12
993
3,390
<issue_start>username_0: I have been trying to bring back an old app of mine, that I wrote a while back using eclipse. I imported to android-studio and I it complains about colliding versions: > > All com.android.support libraries must use the exact same version > specification (mixing versions can lead to runtime c...
2018/03/12
425
1,669
<issue_start>username_0: so I am trying to remove array in if statement inside foreach loop... ``` php foreach ($politics as $tag = $key):?> php if (!empty($_SERVER['HTTP_CLIENT_IP'])) { $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORW...
2018/03/12
809
2,631
<issue_start>username_0: I am using nodejs and webpack4, i am trying to link main.js file to index.html.I tried all the possible solutions on the web none of them seems to work for me..I am a newbie suggestions are welcome please let me know what i am doing wrong. Here is the Error log what i am seeing: --- ``` GET ...
2018/03/12
988
3,309
<issue_start>username_0: I want to use some Ionic Native plugins, but I can't quite test them. Here is code: ``` // app.component.ts import { Component } from '@angular/core'; import { Platform } from 'ionic-angular'; import { StatusBar } from '@ionic-native/status-bar'; import { SplashScreen } from '@ionic-native/sp...
2018/03/12
232
934
<issue_start>username_0: I have a `CardView` that changes function once clicked. To confirm this change, I have a `TextView` within the `CardView` that changes from Start to Stop. I thought I could change the BG color from green to red by the same way I change the text, but it is not working. Does anybody know how I c...
2018/03/12
399
1,557
<issue_start>username_0: I m trying to copy and decompress .tar file from FTP to Azure Data Lake Store. .tar file contains HTML files. In the copy activity, on a dataset, i select Compression type GZipDeflate, but I wonder what file format do I need to use? Is it supported to do such I thing without custom activity?<is...
2018/03/12
395
1,544
<issue_start>username_0: I am trying to read an excel file with multiple sheets into matlab. All the sheets have the same headings and I want the data from each sheet to be merged together so that I can plot selected columns. I am new to matlab so any sample codes will be extremely helpful. Thank you T<issue_comment>u...
2018/03/12
542
2,120
<issue_start>username_0: As soon as I added a resource to my project, all code references containing "Properties.Resources" were marked as an error, telling me that "The type or namespace name 'Resources' does not exist in the namespace 'MyProject.Properties' (CS0234). The only thing I did was navigating to the prope...
2018/03/12
919
3,206
<issue_start>username_0: I'm trying to display an Excel file that was created last week, between Monday-Friday. For instance, if it's Monday, I would like to look for files between last Monday and Friday. If it's Friday of the same week, I want to query the same time frame. I know the following code will give me yeste...
2018/03/12
1,207
3,714
<issue_start>username_0: I have a table with following format: ``` ID ID1 ID2 DATE 1 1 1 2018-03-01 2 1 1 2018-03-02 3 1 1 2018-03-05 4 1 1 2018-03-06 5 1 1 2018-03-07 6 2 2 2018-03-05 7 2 2 2018-03-05 8 ...
2018/03/12
1,501
5,023
<issue_start>username_0: I'm trying to cancel an interval (`interval_timer`) after emptying a queue but not sure what is the right strategy. ``` let mut some_vars = vec![1, 2, 3, 4, 5, 6, 7, 8]; let interval_timer = tokio_timer::Timer::default(); let timer = interval_timer .interval(Duration::from_millis(1000)) ...
2018/03/12
304
1,460
<issue_start>username_0: I am developing an application and I have a very complex query, to simplify the querying process I decided to use an sql view, to store the query data so that I can easily query the complex query's data from the view. The function works and it displays the data that I want. What I really like t...
2018/03/12
777
3,135
<issue_start>username_0: The flow I have in mind in this: 1. Export a sas7bdat from SAS 2. Import that file in python with `pd.read_sas` and do some stuff on in 3. Export the pandas dataframe to sas7bdat (or some other SAS binary fileformat). I thought that `pd.to_sas` would exist, but it doesn't 4. Open th...
2018/03/12
844
3,339
<issue_start>username_0: I have response array with picture and some text. I show it on the site using \*ngFor: ``` ![]({{post.better_featured_image.source_url}}) {{ post.title.rendered }} ------------------------- ``` Sometimes when loading a site, pictures are not displayed on the page, then I in DevTools for t...
2018/03/12
350
1,254
<issue_start>username_0: I'm trying to deploy a app to kubernetes cluster through jenkins using `Kubernetes Continuous Deploy` plugin. I copied the config `.yml` file into jenkins machine and gave the path in the build step and I'm getting a error: > > "No matching configuration files found" > > > screenshots of...
2018/03/12
2,269
8,554
<issue_start>username_0: I have a scenario at which i have to parse CSV files from different sources, the parsing code is very simple and straightforward. ``` String csvFile = "/Users/csv/country.csv"; String line = ""; String cvsSplitBy = ","; try (BufferedReader br = new BufferedRead...
2018/03/12
2,562
10,060
<issue_start>username_0: Using C# and SQL Server, I'm trying to show the Name of a specific ID from a different table into a separate listbox, **using this code:** ``` Con.Open(); cmd2.CommandText = "select Name from [Client Table] where [Client Table].ClientID in (select [Outlet table].C...
2018/03/12
2,857
10,888
<issue_start>username_0: Consider a collection of `users`. Each document in the collection has `name` and `email` as fields. ``` { "users": { "uid1": { "name": "<NAME>", "email": "<EMAIL>" }, "uid2": { ... }, "uid3": { ... } } } ``` Consider now that with this working Cloud Firestore ...
2018/03/12
736
2,454
<issue_start>username_0: Hello I am trying to set the QWebEngine URL to an index.html file that is placed in the working directory. I am trying to use the file by setting the URL to `./index.html` but it cant seem to find the file. Here is where my files are placed * content (Work directory) + main.cpp + content....
2018/03/12
1,052
3,462
<issue_start>username_0: i am trying below code for countdown to on exact date and time. I mean, i wants to make a under contractions website countdown date (include exact time). but date are not count downing. js code just showed me wrong count and not downing second, min, hours, day. This js code has problem, but i d...
2018/03/12
960
3,125
<issue_start>username_0: I have a chat application that I am working on IONIC 3.19.0 and ANGULAR 5.0.3. But I am stuck on the implementation of "is typing" function in my friends list. So, I want to make sure, when a friend is writing, that the "is typing" can be placed just that one. But the opposite here at home, w...
2018/03/12
698
2,255
<issue_start>username_0: In PLSQL block of statement, what is the meaning of number of error block in oracle like- ``` n_err_block := 100; n\_err\_block := 200; n\_err\_block := 300; ```<issue_comment>username_1: I made some modifications to your code. I added a `displayTime()` function that handles the time displ...
2018/03/12
343
1,424
<issue_start>username_0: In Swift, we can define a protocol that can be conformed by a `class` or `struct` based on condition: ``` protocol AlertPresentable { func presentAlert(message: String) } extension AlertPresentable where Self : UIViewController { func presentAlert(message: String) { let alert = UIAle...
2018/03/12
2,797
8,659
<issue_start>username_0: I have an issue to create an `Azure Function` with `Queue Trigger` in .NET core 2.0. What I want ----------- In a `microservice` architecture, when a new message is created in a queue for creating a user, a service has to receive this message and creates a user in a database based on the info...
2018/03/12
694
2,693
<issue_start>username_0: This might be a simple question but I have tried a few things and they're not working. I have a large data frame with date/time formats in. An example of my data frame is: ``` Index FixTime1 FixTime2 1 2017-05-06 10:11:03 NA 2 NA ...
2018/03/12
772
2,900
<issue_start>username_0: I have a component that contains router-links to the same route, but with a different parameter. When navigating to those links, the url changes but the data isn't updating. I have *beforeRouteUpdate* defined, but it is never called. ``` import Vue from 'vue'; import { Component } from 'vue-pr...
2018/03/12
314
1,055
<issue_start>username_0: I'm trying to create a post with multiple cathegories in text. The problem is that when I execute my code. All the data of the post passes correctly except the category which stays empty. ```html php $categoryID = array("lens","promo"); $new_post = array( 'post_title' = 'title123', '...
2018/03/12
263
875
<issue_start>username_0: I have the following **route** in routes/web.php ``` Route::get('search/{model}/{lang}/{id}', ['as'=>'tag','uses'=>'SearchController@tag']); ``` In the **view** I have a foreach with the tags: ``` - [{{$tag\_lang->name}}]({{ route('tag', ['model'=>'new', 'lang'=>$lang, $tag->id]) }}) ``` ...
2018/03/12
291
1,016
<issue_start>username_0: I want to update values in my Entity using PATCH method, but when I try to do that, doctrine create new record in table, but do not update. For example I want to update name attribute, so I send this JSON array (in url I send id of the record: api.test/item/{id}): ``` { "name": "newname" } ...
2018/03/12
895
2,846
<issue_start>username_0: I want to store options to arbitrary commands as strings in bash so that I can do e.g. ``` presets_A='-A' presets_B='-A -l -F' ls $presets_A ls $presets_B ``` The first one works, the socond gives `ls: invalid option -- ' '`. The same happens when I try to store the entire command in a stri...
2018/03/12
775
2,466
<issue_start>username_0: I am automating an application where it is necessary to for the application to have 1200x600 pixel size of the browser. I am using a code like below to maximize(I don't want to use `dirver.manage().maximize()` code it has some problem with application). Here the below is my code ``` Dimension ...
2018/03/12
721
2,234
<issue_start>username_0: I am using SAS on OS390. I have an INFILE1, some treatment, then another INFILE2, other treatment. I want to use variables from INFILE1 to compare with INFILE2. examples: ``` INFILE1.DATE1 > INFLE2.DATE2 THEN OUTPUT; ``` My issue is that DATE1 is always empty no matter what. I've tried......
2018/03/12
224
783
<issue_start>username_0: This code not work in my index.html ``` app.run(function($cordovaSplashscreen) { setTimeout(function() { $cordovaSplashscreen.hide() }, 100) }) ```<issue_comment>username_1: Add this below line to your `config.xml` file in your project's `root` directory. ...
2018/03/12
232
785
<issue_start>username_0: I've used this glob pattern for preprocessors in karma config. However, It's not working with gulp.src. What am I doing wrong here? ``` './app/(modules|shared)/**/!(*spec|*mock).js', ```<issue_comment>username_1: Add this below line to your `config.xml` file in your project's `root` directory...
2018/03/12
511
1,663
<issue_start>username_0: I have 10 different variables in 10 different tables with the VARNAME and MISSING PERCENT. Out of these 10, lets say 5 do not have the "MISSING PERCENT" and I want to include these observation with 0% Missing. For now, it eliminates this observation in the final output. ``` data Final_Output_...
2018/03/12
823
3,072
<issue_start>username_0: I've been trying to copy the `innerContent` of a to my clipboard without success: ### HTML ``` ``` ### JavaScript *Function Call* ``` document.addEventListener('DOMContentLoaded', function () { document.getElementById('copy').addEventListener('click', copy_password); }); ``` *F...
2018/03/12
563
2,042
<issue_start>username_0: In my php script, When I am executing query on certain PDO mysql connection, on checking mysql logs, I am not able to see the connection getting closed. Php Code: ``` ?php $db = new PDO('mysql:host=HOST;dbname=DB',USER,PASSWORD); $db->exec("SHOW TABLES"); $db = null; ?> ``` Mysql logs: ```...
2018/03/12
333
1,099
<issue_start>username_0: I'm working on an angular5 app. In that app, I need to go down to the current page based on data. `ScrollToTop` is working fine, I want to go down to the current page. Is there any way like scrollTop in angular5.<issue_comment>username_1: You can make it using `animate` and `scrollTop` from jQu...
2018/03/12
762
2,014
<issue_start>username_0: Condition: If there is a digit at the beginning of the line, get one letter from the end of the line. Pattern scheme: ``` (?(IF)THEN) ``` Implementation: <http://sandbox.onlinephpfunctions.com/code/b2ea5d6112e546de704528add3c6f3f5f20a0af4> ``` $a = '645 sdfjh'; preg_match("/(?(^[0-9])[a-z]...
2018/03/12
537
1,869
<issue_start>username_0: There are multiple divs on a page. What I want to do is get an attribute when a div is clicked. It is very easy in jquery but I am using Reactjs. Here is my code. It works but every time when I click on div attribute of the last element in is returned. Following is my code and the codepen URL. ...
2018/03/12
502
2,147
<issue_start>username_0: When reading < Java Concurrency in Practice >, there's an example saying that the following code snippet will lead to `this` pointer escape in the constructor method. But I'm not sure what exactly does it mean, since I couldn't see any `this` reference in the source code of `ThisEscape` constru...
2018/03/12
818
2,255
<issue_start>username_0: I have a 2d array defined as `double mat[6][6]`. To let gcc vectorize the for I need to use a single loop. I have the following loop: ``` double* p = &mat[0][0]; for (int i = 0; i < 36; i++) sum += p[i] + 48; ``` I have the warning from gcc saying: array subscript is above array bounds....
2018/03/12
1,123
3,646
<issue_start>username_0: I am trying to detect bubbles on an OMR sheet which looks something like this: [![Raw image](https://i.stack.imgur.com/4ha8x.jpg)](https://i.stack.imgur.com/4ha8x.jpg) My code for edge detection and contour display is referenced from [here](https://www.pyimagesearch.com/2016/10/03/bubble-shee...
2018/03/12
2,310
9,150
<issue_start>username_0: I have a spinner contains three options "ALL","PAYMENTS" and "EXPENSES". These will show 3 listviews. "ALL" option will show the mixture of both "PAYMENT" and "EXPENSES". My problem is I want to add `setOnItemClickListener` for both of the lists. Please refer the screenshot. I will pass certa...
2018/03/12
1,409
5,343
<issue_start>username_0: Heyo, I have a following function ``` async function fnIsOnScreenOnce(img, desc,iCounter,client,repeatDelay=0) { await timeout(repeatDelay); let screenshot= await client.screenshot() let buf = new Buffer(screenshot.value, 'base64'); let img1 = cv.imdecode(buf) let result = img1.ma...
2018/03/12
631
2,570
<issue_start>username_0: With things like neural networks (NNs) in keras it is very clear how to use word embeddings within the training of the NN, you can simply do something like ``` embeddings = ... model = Sequential(Embedding(...), layer1, layer2,...) ``` But I'm unsure of...
2018/03/12
1,538
4,595
<issue_start>username_0: I currently have a test that adds an entry to the table below, generating a random location name and value. I'm now trying to click on the edit icon within the table. [![Table](https://i.stack.imgur.com/BLReL.jpg)](https://i.stack.imgur.com/BLReL.jpg) I can find the correct location name cel...
2018/03/12
1,221
3,440
<issue_start>username_0: I'm looking to the aggregation below - ideally in a single step. Aggregated columns need to be computed with different filters and I thought of two ways to achieve this (please see functions `f1` and `f2`). I thought that defining an index (as in `f2`) would speed up the process but it did exac...
2018/03/12
692
2,787
<issue_start>username_0: This should really be a basic question, but I can't find the answer anywhere. I've got a website that I'm hosting as an Azure Web App. I've created an App Registration and I've associated the Web App with the App. Now, I'm prompted to log on before being allowed to view the web site. So far so...
2018/03/12
197
697
<issue_start>username_0: I’m trying to display an URL image on my page using img src, but the image doesn’t appear even though the URL passed to img src is valid. Here’s the message I see when using Element Inspector in my browser: [![enter image description here](https://i.stack.imgur.com/xP94S.png)](https://i.stack....
2018/03/12
1,320
4,251
<issue_start>username_0: I would like to use Vlookup function with If statement. My issue is if any rows in K columns equal to "Hatalı" then vlookup has to be begin according to the below parameters. For below code it gaves me compile error says "Next witout For" but I can not handle it. I will be glad if anyone can h...
2018/03/12
1,225
4,112
<issue_start>username_0: my current process is as follows: ### Current process I add the i18n attributes to the template. Then I execute `ng xi18n`. This creates the messages.xlf file. As soon as the process is finished, you have to copy messages.xlf and change the file extension to `*.fr.xlf`. In the renamed file yo...
2018/03/12
1,857
5,749
<issue_start>username_0: I'm cloning a repository that uses Kivy rapid prototyping as its interface. It was last updated a year ago and the original developer is not responding to issues - I thought I would ask here. The program makes use of the `MapSource` Library and it imports it like this: `#:import MapSource map...
2018/03/12
1,480
5,413
<issue_start>username_0: I'm very new to Python (and coding in general) and I need help parallising the code below. I looked around and found some packages (eg. Multiprocessing & JobLib) which could be useful. However, I have trouble using it in my example. My code makes an outputfile, and updates it doing the loop(s)...
2018/03/12
505
1,685
<issue_start>username_0: [enter image description here](https://i.stack.imgur.com/jEZBE.png)How to change the status bar icon color for splash screen (LaunchScreenTheme) in android ? I tried the below code but it's not working . ``` #FFFFFF <item name="android:windowActionBarOverlay">false</item> <item name="andr...
2018/03/12
928
2,954
<issue_start>username_0: I have a working script which adds a background color and saves it local storage. I would like to convert this into addClass. I don't know any JS. The issue I came to when changing .css to .addClass is it doesn't remove the previous selected background color. Getting body class="c-wit c-rood c-...
2018/03/12
462
1,703
<issue_start>username_0: I'm having a problem with Auth. I'm just learning about Laravel, I'm doing login. I don't know how to fix it it says: > > Method Illuminate\Auth\SessionGuard::users does not exist. > > > this is my code in login function ``` public function getlogin(Request $request){ $this->validate(...
2018/03/12
1,211
4,927
<issue_start>username_0: Today I'm facing a strange behavior which I couldn't figure out why. Imagine we have a final variable in a typical class in Java. We can initialize it instantly or in class constructor like this: ``` public class MyClass { private final int foo; public MyClass() { foo = 0; ...
2018/03/12
770
2,672
<issue_start>username_0: I am using **babel-preset-env version - 1.6.1** for my react app, i am getting a error on IE :- *Object doesn't support property or method 'assign'* [![enter image description here](https://i.stack.imgur.com/TmBJo.png)](https://i.stack.imgur.com/TmBJo.png) this is my **.babelrc** :- ``` { "pr...
2018/03/12
2,007
4,679
<issue_start>username_0: I have the following dataset. Note that these are fictitious values: ``` Farm CO2Fert CO2Manure CO2Feed CO2Housing CO2Fuel CO2Other Best 2.187635996 0.670289261 0.773605214 2.415801361 1.180859203 2.876050311 Worst 4.240789564 0.503797793 1.884548328 5.114791701 3.411847194 5.150085...
2018/03/12
3,738
12,851
<issue_start>username_0: I am very new to Spring framework and i had some problem to create a simple SOAP client with Spring. Like a good newbie, i have used the Spring tutorial to make my SOAP client. You can find it here -> <https://spring.io/guides/gs/consuming-web-service/> The test with the web service given in ...
2018/03/12
491
1,803
<issue_start>username_0: How can I expire a session in Rails after a user closes the **browser OR after 30 minutes?** Whichever comes first? I have tried in `session_store.rb` setting `expire_after: nil || 30.minutes` but doesn't work. Rails 3.2<issue_comment>username_1: You can configure the application's session i...
2018/03/12
700
2,472
<issue_start>username_0: I produce a dynamic library (`libfoo.so`) requires `libcrypto.so`. Which works fine in the build platform (I build it in Ubuntu 16.04). However when I move the same library to Debian Stretch 9.3, it start to complaining missing `libcrypto.so.1.0.0`. The openssl package is install in Debian Stre...
2018/03/12
1,717
5,939
<issue_start>username_0: I trying to create preg\_match function with a pattern to validate the future string with unlimit occurence. This is my function like this: ``` if(! preg_match_all("#^\([a-zA-Z0-9_-]+\)$#", $arg, $matches, PREG_OFFSET_CAPTURE)){ var_dump($matches); throw new \Exception('The simple patt...
2018/03/12
837
3,308
<issue_start>username_0: **I am building a React app which has several stages of user interaction to navigate. Working on a stage which is later in the process requires a lot of interaction to get back to the same point when the page is reloaded for changes to the JS.** Webpack supports HMR which only replaces the mod...