date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/01
631
2,000
<issue_start>username_0: I get a request from WP Rest Api in Angular **service.ts** ``` get(): Observable{ return this.http.get('mysite.com/posts?categories=4&per\_page=2')); } ``` **app-component.ts** ``` ngOnInit() { this.RestApi.get() .subscribe( e => { console.log(e); console.log('headers: ...
2018/03/02
2,774
10,691
<issue_start>username_0: Can someone explain me, with some code snippets, how we can recover the result of onActivityResult inside an Adapter? I've read some about interfaces, but i couldn't be able trying implementing this.Thanks in advance! Example: Inside the adapter i have a ViewHolder, inside which is an ImageVie...
2018/03/02
506
2,007
<issue_start>username_0: I am attempting to implement a basic filter in my React app. I have two props that are managed by Redux. They look something like the following: ``` const mapStateToProps = state => { return { groceries: getSortedGrocers(state.groceries), searchFilter: state.searchFilter ...
2018/03/02
611
2,104
<issue_start>username_0: I am trying to extract the four corner elements of a NumPy 2D array: ``` import numpy as np data = np.arange(16).reshape((4, -1)) #array([[ 0, 1, 2, 3], # [ 4, 5, 6, 7], # [ 8, 9, 10, 11], # [12, 13, 14, 15]]) ``` The expected output is either `[[0,3],[12,15]]` or `[...
2018/03/02
360
1,578
<issue_start>username_0: On my homepage I have a background image and I want to overlay that background image with an image gallery (4 images) placed in the center. I have attached a [screen shot](https://i.stack.imgur.com/Lho3p.jpg) to give people an idea. Thanks<issue_comment>username_1: Here are two possibilities. ...
2018/03/02
410
1,319
<issue_start>username_0: The problem I have is that when I set a: ``` .banner-division2 h2:hover { -webkit-transition: 0.6 ease; transition: 1s ease; -webkit-transform: scale(1.2); transform: scale(1.2); color: #00C8BD; } ``` It will only transition for the first part of the hover. In other words...
2018/03/02
969
3,792
<issue_start>username_0: My app can change locale using url request. ``` Route::get('/setLocale/{locale}', function (Request $request, $locale) { session()->put('locale', $locale); App::setLocale($locale); return redirect('/'); })->name('setLocale'); ``` And that locale string would be stored in session....
2018/03/02
1,260
4,655
<issue_start>username_0: I've been trying to make a simple wxWidgets program with just a button with a picture on it. I've been able to make the button with the image on it easily enough, but my problem arises when including it. So far, I've only been able to fetch the image during run-time (the image has to be in th...
2018/03/02
678
2,054
<issue_start>username_0: I have this entity: ``` @Entity public class TDInvestment { @Id private String tdName; @Id private LocalDate readingDate; //more attributes } ``` Knowing I have a unique entity identified by `String tdName` and `LocalDate readingDate`, how can I select all latest entities(using ...
2018/03/02
1,582
5,164
<issue_start>username_0: I am fiddling with F# and using the FSI REPL I noticed that there was a huge efficiency discrepancy between two slightly different implementations of my beginner's naive Sieve of Eratosthenes implementation. The first with an extra if: ``` let rec sieve max current pList = match current wi...
2018/03/02
1,136
3,872
<issue_start>username_0: Having trouble loading a large text file; I'll post the code below. The file is ~65 GB and is separated using a "|". I have 10 of them. The process I'll describe below has worked for 9 files but the last file is giving me trouble. Note that about half of the other 9 files are larger than this -...
2018/03/02
461
1,416
<issue_start>username_0: I want to know what all the existing values of a field are. In SQL that would be something like: ``` SELECT DISTINCT foo FROM bar ``` How might I do this with salesforce's SOQL?<issue_comment>username_1: Use `Group by` ``` SELECT foo FROM bar GROUP BY foo ``` eg: ``` SELECT Status FROM ...
2018/03/02
489
1,648
<issue_start>username_0: I am expecting this code to print "Hello world" - "Hello " when the memory is deallocated and "world" in `main`. However "Hello" never gets printed, meaning that my deallocator doesn't get called. What's the proper way to implement it? ``` #include #include class MyAllocator : public std::a...
2018/03/02
911
3,138
<issue_start>username_0: The following code defines two enums ``` class Insect: BEE = 0x00 WASP = 0x01 BUMBLEBEE = 0x02 class Breakfast: HAM = 0x00 EGGS = 0x01 PANCAKES = 0x02 b = Insect.WASP if b == Breakfast.EGGS: print("ok") ``` As the condition illustrates, one is left open to make ...
2018/03/02
714
1,936
<issue_start>username_0: I have a jagged array: ``` int[][] loadData a1 o1 | 3 1 5 4 3 3 1 o2 | 1 4 1 2 2 1 0 o3 | 4 4 5 4 4 3 1 o4 | 2 3 4 4 5 4 1 o5 | 3 3 5 2 5 5 1 o6 | 3 3 3 1 5 2 0 o7 | 2 5 3 5 1 2 1 o8 | 4 5 4 4 4 1 0 // this is my jagged array without o1 and a1 I use them for example ``` I wan...
2018/03/02
836
2,998
<issue_start>username_0: I'm using `image` tag in SVG to include website screen captures in mockups for my personal website. I've no problem when I'm visiting my website using Chrome, but using Firefox or Safari, I'm getting some issues. It works like this: I define a SVG `mask`, the `image` use that mask to be in the...
2018/03/02
383
1,220
<issue_start>username_0: I need to check if a string contains a set of characters, and they need to appear the correct number of times. ``` string1 = "somestring" string2 = "thestrings" characters = "egimnorsst" # Note that there are two 's' characters here does_string_contain(string1, characters) # True does_string_c...
2018/03/02
644
2,512
<issue_start>username_0: I have a method using throws, inside is two if/else statements, the if statement tests a condition and then throws an exception if it fails, the problem is of course is that if the first if/else block fails my second never gets executed, is there an alternative way to approach this problem? **...
2018/03/02
692
2,176
<issue_start>username_0: I am trying to make a program to randomize entries for an event. I have the program working well enough for entering the entries but I'm stuck at randomizing it. I have 2 lists, let's call one Head and the other one Heel. I have the lists as follows: * Head: `[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]`...
2018/03/02
1,319
5,097
<issue_start>username_0: I'd like to be able to query all details from our automation script launch points, such as (but not limited to) conditions, event types, and save settings. The problem is, these are non-persistent fields and I'm not sure where to get the information from. We have Object, Attribute, Action, and ...
2018/03/02
511
2,036
<issue_start>username_0: I want to define custom functions on Firebase using firebase-tools. Is there a way to get userId from [firebase-functions](https://firebase.google.com/docs/reference/functions/functions.auth)? Say on this code sample, is it possible to get the user who sent the request? ``` const functions ...
2018/03/02
400
1,326
<issue_start>username_0: Is it possible to generate a mini core dump for debugging purpose without crashing the process. Let's say if a function receives an unexpected value, just printing logs and returning gracefully might not be sufficient to debug the issue. On the other hand, if i can get a screenshot of memory an...
2018/03/02
1,371
5,556
<issue_start>username_0: I've got an embarrassingly simple question here. I'm a smalltalk newbie (I attempt to dabble with it every 5 years or so), and I've got Pharo 6.1 running. How do I go about finding the official standard library documentation? Especially for the compiler class? Things like the compile and evalua...
2018/03/02
351
1,115
<issue_start>username_0: I need to add an array of images in FormData, but only the first image is passing. I know the problem is in the JS code because when I send the form direct to the php page, it works fine. JavaScript ``` var url = $(this).attr('action'); var data = new FormData(); $.each($("input[type='file'...
2018/03/02
515
1,926
<issue_start>username_0: I'm struggling to do a check against a store variable/property in the route beforeEach guard.. I cannot seem to figure out how to access the store's properties.. **My code :** ``` import Vue from 'vue' import Router from 'vue-router' import store from "@/components/store.js" ... other import...
2018/03/02
416
1,636
<issue_start>username_0: I have a simple UILabel, nothing special about it, in a UIView inside a UIScrollView. I can link it up to my ViewController.swift file just fine, and it doesn't crash on opening, but whenever I try to use the outlet, it produces a nil. I've been looking around for a solution and it seems as tho...
2018/03/02
1,694
6,319
<issue_start>username_0: I'm building an interactive browser and editor for larger-than-memory datasets which will be later processed with Pandas. Thus, I'll need to have indexes on several columns that the dataset will be interactively sorted or filtered on (database indexes, not Pandas indexing), and I'd like the dat...
2018/03/02
447
1,259
<issue_start>username_0: I have a dictionary that looks like this: ``` d = { 'hello': 'world{x}', 'foo': 'bar{x}' } ``` What's the pythonic way of running `format` on all values in the dictionary? For example with `x = 'TEST'` the end result should be: ``` { 'hello': 'worldTEST', 'foo': 'barTEST' } ``` NB...
2018/03/02
646
2,731
<issue_start>username_0: my goal is to get a message from an other client over a server and work on with that message. Server and other client are in visual basic and if i try to communicate between two vb clients everything is fine, but i need the client in c# for my Unityproject. My Problem is that there are still e...
2018/03/02
878
2,768
<issue_start>username_0: I have to copy around 25 files from one machine to other machine. Each file size is around 15 GB. I have 1GB link and both of these machines are very powerful box. They have around 40 CPUS. Now to copy all those files, it takes 50 minutes for me. Below is my script which I am running on a box ...
2018/03/02
1,470
4,123
<issue_start>username_0: I configured my web app to use an MDC this way: ``` MDC.put("cliente", "TEST"); org.slf4j.MDC.put("cliente2", "TEST2"); ``` Into the **javax.ws.rs.core.Application** startup class ``` import org.jboss.logging.MDC; @ApplicationPath("/api") public class ApplicationResource extends Ap...
2018/03/02
2,863
9,448
<issue_start>username_0: I've been searching around looking for some solutions but haven't really found much. I'd like something really simple along the lines of the image below. Has anyone ever used one in a project? Any advice or any API's I could use? Thanks. [![enter image description here](https://i.stack.imgur.c...
2018/03/02
1,115
4,414
<issue_start>username_0: Been migrating over some legacy code and I came across this. ``` @Getter @Setter public class CollectedData { SkillResponse skills; TrendingResponse storyMatch; Map slotData; Map slotDataSecondSource; Boolean hasSlots; Boolean hasSlotsSecondSource; KnowledgeRequest request; } ...
2018/03/02
766
3,006
<issue_start>username_0: In my pipeline I have deleteDir() following by git clone. My repo is bit big and have a problem when I rerun the Jenkins pipeline, because deleteDir() is not waiting till the directory has been deleted completely resulting git clone failure. Here is my pippeline ``` node{ stage ("Clean"){...
2018/03/02
996
2,899
<issue_start>username_0: I have to write a regex condition in which A token only contains letters (i.e. `a-z` or `A-Z`), `"-"` (hyphen), or `"(underscore) "` . Moreover, a token cannot starts or ends with `"-"` or `"_"` . I tried but i am not able to get that ``` text = "this is a breath-taking ambitious movie; test t...
2018/03/02
682
2,373
<issue_start>username_0: What is the most used way to create a Sqlite query in Python? 1. ``` query = 'insert into events (date, title, col3, col4, int5, int6) values("%s", "%s", "%s", "%s", %s, %s)' % (date, title, col3, col4, int5, int6) print query c.execute(query) ``` Problem: it won't work for example if `...
2018/03/02
503
1,751
<issue_start>username_0: I have the code here: ``` double n = 1234.56789; System.out.printf("n=%8.2e", n); ``` Which prints out `n=1.23e+03` I have read a few formatting manuals for printf, and I can't seem to grasp why that is the result. Can somebody give me the run down?<issue_comment>username_1: To avoid forma...
2018/03/02
1,074
3,771
<issue_start>username_0: I am wondering if there is a fancy way to find the index of, the first character in string a that does not match the character in the same position of string b, aside from using brute force. Here is the brute force attempt: ``` bool OnlyDiffersByCarotsAndSpaces(string a, string b) { if( a...
2018/03/02
1,188
3,862
<issue_start>username_0: I am trying to get a specific attribute from a json object. This is my code. ``` require 'json' def print_f(json) json.map do |person| puts "\n#{person['name'] }, \n #{person['lastname']}" end.join end a = '{"JSON": {"name": "Fernando", "lastname": "Soto"}}' obj = JSON.parse...
2018/03/02
1,332
5,117
<issue_start>username_0: I need to move data from Azure CosmosDB (previously known as DocumentDB) into Azure SQL database. I am using the "Copy Data" resource where I have setup the source and the destination as well as the mapping. The schedule has been setup for once every hour. The issues : 1. I am noticing that...
2018/03/02
1,153
2,383
<issue_start>username_0: I want to split the following format to unique lines **Input:** ``` 17:79412041:C:T,CGGATGTCAT 17:79412059:C:G,T 17:79412138:G:A,C 17:79412192:C:G,T,A ``` **Desired output** ``` 17:79412041:C:T 17:79412041:C:CGGATGTCAT 17:79412059:C:G 17:79412059:C:T 17:79412138:G:A 17:79412138:G:C 17:7941...
2018/03/02
283
802
<issue_start>username_0: I want to make a for loop that looks like this: ``` for x in range(0, 1, 0.1): print(x) ``` obviously it throws this error: > > Traceback (most recent call last): > File "", line 1, in > for i in range(0, 1, 0.1): > TypeError: 'float' object cannot be interpreted as an integer > ...
2018/03/02
328
1,302
<issue_start>username_0: I want to show an alert after the user has scrolled 200px downwards. Single time, no more. ``` $(window).scroll(function(){if($(this).scrollTop()>200){ alert("SQL code executed"); } ``` Using this code, the alert appears anyti...
2018/03/02
619
2,238
<issue_start>username_0: I'm trying to make two loops in the same program but it only stays on the first loop and it doesn't go to the second loop... I'm trying to make the program write the temperature in a text file without overwriting itself... There's my program: ``` GPIO.setwarnings(False) GPIO.setmode(GPIO.BOARD...
2018/03/02
258
1,033
<issue_start>username_0: The title of the question tells what I need to achieve. Is there a way to **connect two open CMD windows** so that I can input commands to one CMD window and display the corresponding output in the other CMD window.<issue_comment>username_1: Have a boolean variable that you reference. Once it's...
2018/03/02
385
1,538
<issue_start>username_0: I have a report I made using SQL Server Reporting Services (SSRS) and I would like to export the results in .CSV format. Currently, I only have PDF, Excel and TIFF file as the options. How do I export it to a .csv format? I would like to add a subscription to it and using 'Windows File Share'...
2018/03/02
690
2,717
<issue_start>username_0: I am working on a research project that uses a NavMeshAgent. I currently have a very simple scene where an agent is spawn at the start, walks through an "entrance" trigger collider, an "exit" trigger collider, then ultimately collides with a "destroyer" trigger collider with a script that ends ...
2018/03/02
1,156
3,460
<issue_start>username_0: I'm new to Eclipse. Despite its best efforts I got it to compile and run a Hello World program. I am now trying to bring in a simple program I wrote that worked on MS Visual Studio 2010. A user in reddit learnprogramming said I was missing a quotation mark in my make file, but I am using auto...
2018/03/02
1,998
6,798
<issue_start>username_0: I posted the same [question](https://community.st.com/thread/45633-stm32-hal-library-warning-with-c14) in the STM32 community forum as well, but didn't receive an answer. I am using stm32 HAL library in a project with C++14 enabled. It issues me the following warning which I can't get rid of. ...
2018/03/02
877
2,661
<issue_start>username_0: I want to rasterize a line using [Bresenham's algorihm](http://en.wikipedia.org/wiki/Bresenham's_line_algorithm). My interpolated vertices shouldn't consist of diagonal steps. I did some search on StackOverflow and [this topic](https://stackoverflow.com/questions/4381269/line-rasterisation-cove...
2018/03/02
504
1,632
<issue_start>username_0: Does anyone have a shell script or know of a way to ping a selenium hub to see if Nodes are available. Like a way to use [wait-for](https://github.com/eficode/wait-for/blob/master/README.md) or [wait-for-it](https://github.com/vishnubob/wait-for-it) or another way to check the Selenium Hub for ...
2018/03/02
449
1,502
<issue_start>username_0: Below is a bare-bones version of what I'm doing: ``` (eduction (map inc) (concat [1 2] [3 4])) ; -> (2 3 4 5) ``` Is there a way to get the same eduction, without having to pay the cost of `concat`, which creates an intermediate lazy seq? The following would perhaps already be a bit less wa...
2018/03/02
1,468
4,491
<issue_start>username_0: I have the following situation in a database I am designing... ``` **Value Table** +-------+------------+-----------+------------+---------+-------+--------+ | id | use_col | col_1 | col_2 | col_3 | … etc | Lookup | +-------+------------+-----------+------------+---------+----...
2018/03/02
626
2,100
<issue_start>username_0: I've got the following class: ``` class Foo { $bar1 = 'a'; $bar2 = 'b' public function Update($updateInfo) { $this->$updateInfo['property'] = $updateInfo[$updateInfo['property']]; } } ``` In my code, I've created a Foo object: ``` $objFoo = new Foo(); ``` Now,...
2018/03/02
5,224
21,285
<issue_start>username_0: We process huge files (sometimes 50 GB each file). The application reads this one file and based on the business logic, it will write multiple output files (4-6). The records in the file are of variable length and each field in a record is a delimiter separated. Going by the understanding tha...
2018/03/02
4,421
16,989
<issue_start>username_0: 1. My first js file content: ``` (function(){ var html = '111' var app = document.getElementById('app'); setTimeout(function(){ app.innerHTML = html; },10) })() ``` 2. My secondjs file content: ``` var app = document.getElementById('app'); app.addEventListener('cl...
2018/03/02
334
1,244
<issue_start>username_0: I'm using intel realsense SDK2.10.0 with D410 depth module to build a project. But faced with an immediate problem that I can't run even the hello world example they give us. With no problem is building the project, there is always internal error as: Unhandled exception at 0x00007FFB60434008 i...
2018/03/02
514
1,816
<issue_start>username_0: I am trying to use Microsoft Excel to format a large set of data. The data is all in decimal format and the results are paired so that we have 2 values per record. The first value is a Mass in grams, and the second value is the Uncertainty of that mass also in grams. For example: SampleName ...
2018/03/02
613
2,044
<issue_start>username_0: ```python from keras.models import load_model import h5py # sq_model.save_weights('sq_model_weights.h5') # res_model.save_weights('res_model_weights.h5') # model.save('my_model.h5') # dense_model.save_weights('dense_model_v3_weights.h5') sq_model.load_weights('sq_model_weights.h5') res_model...
2018/03/02
467
1,287
<issue_start>username_0: I have a csv file that has multiople lines, which uses "|" as delimiter as the following shows. `MAIN|02/21/2018|7695154880|082.21|00021 MAIN|02/21/2018|7695154880|000.21|00210` I would like to remove the leading zeros of forth and fifth sections so the following shows desired result. Is the...
2018/03/02
603
2,075
<issue_start>username_0: Im currently taking a PL/SQL class and learning about explicit cursors. Im working on an assignment right now and am having issues with the following problem. 'In this assignment use an explicit cursor to display the below table. If there is a ‘Y’ in the V\_ORDER of the VENDOR table then print...
2018/03/02
688
2,760
<issue_start>username_0: I know a class can't have a member of the same class, e.g. ``` class Sample { int a = 0; Sample s; // error, object would need infinite size }; ``` But how come having a pointer is okay? ``` class Sample { // this compiles, but isn't it essentially the same // as above? ...
2018/03/02
795
3,201
<issue_start>username_0: ``` password = "<PASSWORD>" guess = " " count = 0 while count != 3 and guess != password: guess = input("Please enter your 4 digit pin: ") count = count + 1 if guess == password: menu() elif count == 3: print("Number of tries maxed.") countdown...
2018/03/02
1,831
5,687
<issue_start>username_0: for example is the string is "abbacdeffel" and the pattern being "xyyx" replaced with "1234" so it would result from "abbacdeffel" to "1234cd1234l" I have tried to think this out but I couldnt come up with anything. At first I thought maybe dictionary could help but still nothing came to mind...
2018/03/02
9,316
20,461
<issue_start>username_0: I'm developing a .Net MVC application that was working and I decided to move it to another location. I thought that was only necessary to create a new Azure Web App to my desired location and redeploy it. Now I'm having this compilation problem in Azure, something related to .Net, Roslyn and B...
2018/03/02
1,251
2,851
<issue_start>username_0: I want to add some columns for group features(std, mean...), the code below works but the dataset is really big and the performance is bad. Is there any good idea to improve the code? Thanks ``` import pandas as pd df = pd.DataFrame([[1,2,1], [1,2,2], [1,3,3], [1,3,4],[2,8,9], [2,11,11]], col...
2018/03/02
1,046
2,446
<issue_start>username_0: I would like to ask if a INSERT query be so fast that it skipped a row and the resultset of SELECT statement after didn't get any returned value. I am using percona xtradbcluster with proxysql. TIA<issue_comment>username_1: Here is one way: ``` s = df.groupby('A')['C'].mean() df['mean'] = d...
2018/03/02
1,144
2,911
<issue_start>username_0: I have just started learning swift, I don't know much so I'm sorry if I don't understand things. I am creating a contacts app. In the AddViewController (this is the add contact page), I have 4 UIPickerView's. I would like to save the selected values. Once the contact is created I can click into...
2018/03/02
300
1,062
<issue_start>username_0: `Esc` does not work for my dialog in non-modal mode, event going to underlying window. Only adding ``` setWindowModality(Qt::WindowModal); ``` to the dialog on creation makes the `Esc` key work and calls the `reject()` slot. Is it normal or possible to `Esc` in/from non-modal dialog?<issue_...
2018/03/02
472
1,727
<issue_start>username_0: We are unable to return a list of add-on products for our Windows Store app. We have an app in the Windows Store with 3 subscription add-ons.The add-ons are marked as Hidden as we don't want them visible in the store, only through our app. We are developing a new version of our app which targ...
2018/03/02
412
1,473
<issue_start>username_0: How can I disable the a `href` if an element with an `onclick` function is fired within the element? I tried `event.preventDefault();`, but it doesn't seem to do anything. How can I solve this? ```js $(function() { $(".inside > .fa").click(function(event) { event.preventDefault();...
2018/03/02
770
2,206
<issue_start>username_0: I have a LineString defined by two points, so essentially a straight line segment, and I wanted to project a point on to it. I am aware of `.project` and `.interpolate`. However when the point is "outside" the segment, I don't want the closest point on the segment, but I want to extend the segm...
2018/03/02
502
1,623
<issue_start>username_0: I have a controller that sets up several variables like this... ``` $data["pageTitle"] = "My Profile"; $data["userData"] = $this->user_model->getUserData($user_id); $data["userTool"] = $this->api->getUserTool($user_id); ``` In the view I know I can access each as a separate variable... ``` ...
2018/03/02
607
1,591
<issue_start>username_0: I want to transform my dataframe to a dictionary where the key will be an id column. I want to get all the corresponding second column values that has the respective id into a list. Example data: ``` s1 = pd.Series(['A','A','B'],name = 's1') s2 = pd.Series(['1','2','2'],name = 's2') df = pd....
2018/03/02
502
1,556
<issue_start>username_0: In my project, I am in trouble in SQL for selecting. I have a table A which has num ,name and stat fields. ``` select * from A; ``` The part of results are: ``` num name stat 1 flank fin 2 lilei fin 3 John fin 1 flank undo 1 John fin 2 flank fin ``` Now I wan...
2018/03/02
640
2,589
<issue_start>username_0: I need to create an app with multiple locales. And each route is prefixed with the locale. For example, `xxx.com/en/home`, `xxx.com/fr/home`. The thing is, I need to dynamically bind the locale string to route prefix. Since users can change locale, the locale string is stored in session. And I...
2018/03/02
717
2,477
<issue_start>username_0: I'm building a Hacker News-style page, and I'm trying to get a list of posts from the database to display on the page, including data as to whether or not the current user has voted on a particular post. I'm trying to query a list of `posts` (from the `posts` table), and I want to perform a jo...
2018/03/02
1,364
4,190
<issue_start>username_0: I have two Arrays , One contains the index number of correct answer `correctAnswers` And `userAnswers` contain the index number of answer selected by the user **How Can I check if Both of them have a same value on the index , If yes then add +1 to the `Total`** ``` this.state = { ...
2018/03/02
1,187
3,681
<issue_start>username_0: As title, I want to disable `Anonymous Authentication` for my ASP.NET Boilerplate web site (MVC) in IIS Server and use `Form Authentication` instead. Is it possible to do this because if I disable `Anonymous Authentication`, my website cause an error "HTTP Error 404.15 - Not Found" > > Update...
2018/03/02
1,158
3,623
<issue_start>username_0: The problem: In my remote repo, I have folder names in capital letter while on my local machine, I have lowercase folder names. `git status` says that everything is up to date. I've tried to delete my remote branch and make a push from the local. But everything stayed the same.<issue_comment...
2018/03/02
518
1,870
<issue_start>username_0: I have an issue with creating lists in C#. It says that the type or namespace "file<>" could not be found. I am using System.Collections.Generic and creating the list "correct" as far as I know. I have basically nothing yet besides the list (worked with array earlier but it didn't meet the req...
2018/03/02
928
3,277
<issue_start>username_0: This part of my program allows user to choose numbers from 1 to 5 and provide the sum of all numbers chosen. I want to disable the radio buttons when the sum reaches 30. How can I do that? ``` total_choices = [("1"), ("2"), ("3"), ("4"), ...
2018/03/02
664
2,013
<issue_start>username_0: This works fine for most browsers because of bootstrap responsiveness. But I am checking on older browsers and found this. [![enter image description here](https://i.stack.imgur.com/e7qDT.png)](https://i.stack.imgur.com/e7qDT.png) It appears that the wide element is pushing out body. Okay, bu...
2018/03/02
208
760
<issue_start>username_0: I was thinking of having some double arrows that allow year scrolling similar to the month scrolling ones. Other ideas on how to reach the main goals are more than welcome. GitHub link: <https://github.com/Hacker0x01/react-datepicker><issue_comment>username_1: do you want something like this. ...
2018/03/02
435
1,061
<issue_start>username_0: In a Jenkins job config's *Build Triggers* section, it is possible to add multiple cron expressions separated on each line in the *Schedule* textarea e.g: ``` 13 20 * * 0,1,2,3,4,5,6 13 8 * * 0,1,2,3,4,5,6 ``` <https://stackoverflow.com/a/44209349/1291886> How would one do this using the j...
2018/03/02
279
1,087
<issue_start>username_0: been battling with this error for awhile, can't seem to figure it out. I have read over several other similar errors other people have had - seems to be pretty common but everyone has had a different solution. ` ``` import React, { Component } from 'react'; import Track from '../Track/Track'...
2018/03/02
187
694
<issue_start>username_0: I am trying to click a button to change the input field focus. I am using v-bind:autofocus, and simply changing the values of box1 and box2. <http://jsfiddle.net/vjvMp/2275/><issue_comment>username_1: It looks like tracks is undefined, meaning there is no property called "tracks". Make sure y...
2018/03/02
604
1,776
<issue_start>username_0: I am scraping a value using BeautifulSoup, however the output gives me two values because it is twice on the page, how do I choose one of them? This is my code: ``` url = 'URL' r = requests.get(url,headers=headers) soup = BeautifulSoup(r.content, "html.parser") data = soup.find_all("input", {'...
2018/03/02
417
1,327
<issue_start>username_0: I wrote this code with bash for send Messages with telegram bot, now i need send the Message with a custom URL. This is my actual code: ``` sendTelegram() { curl -s \ -X POST \ https://api.telegram.org/bot$apiToken/sendMessage \ -d text="$download" \ -...
2018/03/02
462
1,390
<issue_start>username_0: I'm trying to extract an image URl using python/lxml and the `xpath()` command, but am having trouble isolating the url itself. Here is the HTML surrounding the `img` `src` that I want: ``` ![](https://photos.zillowstatic.com/p_h/IS2fordnekys6d1000000000.jpg) ``` Specifically, I want to is...
2018/03/02
733
2,323
<issue_start>username_0: I am wondering without creating a function, how can I filter out numbers from a list with both numbers and strings: ``` val a = sc.parallelize(List(“cat”,“horse”,4.0,3.5,2,“dog”)) ``` I believe my question indeed is looking for how to use regex in Scala to find out matched pattern ----Updat...
2018/03/02
598
2,041
<issue_start>username_0: I would like to create a function in jquery which simulates `onMouseOver` event of a specific element on the page. And then call it with a html button like this ```html onclick="myFunction()" ``` I've been searching for a solution now for a while and just couldn't figure it out. Do anyone hav...
2018/03/02
829
2,618
<issue_start>username_0: How can I go about making a drawn layer in Open Layers show on a map made from Bing map tiles? I have it working with the drawing layer showing but upon completion of drawing, the drawing goes away. I believe my syntax must be incorrect as I can generate the simply version of open maps with dr...
2018/03/02
1,613
5,574
<issue_start>username_0: I'm trying out Prisma and React Native right now. Currently I'm trying to upload images to my db with the package \_apollo-upload-client (<https://github.com/jaydenseric/apollo-upload-client>). But it's not going so well. Currently I can select an image with the `ImagePicker` from Expo. And t...
2018/03/02
846
3,371
<issue_start>username_0: I have a ComboBox in an excel userform that has two Columns the first is hidden and contains the staff employee number the second column contains the staff name. I generate an email from a userform with which I include the staff name ``` Me.cbName.Column(1) ``` which works perfectly, excep...
2018/03/02
831
3,055
<issue_start>username_0: We have 5 different types of nodes in database. Largest one has ~290k, the smallest is only ~3k. Each node type has an id field and they are all indexed. I am using `py2neo` to build relationship, but it is very slow (~ 2 relationships inserted per second) I used `pandas` read from a relation...
2018/03/02
211
729
<issue_start>username_0: So I'm trying to remove display until a var is met, but it isn't working properly, any help? ``` function test() { var x = document.getElementById('trash_01'); if (trashcan = 0) { x.style.display = "none"; } } ```<issue_comment>username_1: You put `trashcan = 0` instead of ...
2018/03/02
470
1,446
<issue_start>username_0: ``` list1 = [1,2,3,4] ``` If I have `list1` as shown above, the index of the last value is `3`, but is there a way that if I say `list1[4]`, it would become `list1[0]`?<issue_comment>username_1: You can you modulo math like: ### Code: ``` list1 = [1, 2, 3, 4] print(list1[4 % len(list1)]) `...
2018/03/02
875
3,499
<issue_start>username_0: I can publish a Azure function from Visual Studio without an error. This funtion is set to run every 4 seconds `("*/4 * * * * *")` but it is not running at all. Even if I try to run it manually it do not run and show the following error: > > Status: 404 Not Found > > The resource you ar...
2018/03/02
491
2,269
<issue_start>username_0: This question will be useful to many. Can we collate a list of challenges in enabling Practical-Scale Quantum Computing? <NAME><issue_comment>username_1: The challenges are dependent on the physical architecture. Pick a physical implementation and look for which of the DiVincenzo's criterias...