date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/28
780
2,962
<issue_start>username_0: Im currently making a program that generates a random number and then calculates the amount of 20 dollar, 1 dollars, quarters, pennys etc it would take to make that number. This is what im using to calculate the double, with `randomValue` being the random double. ``` double rangeMin = 1; doubl...
2018/02/28
504
1,554
<issue_start>username_0: Probably because I'm a SUPER newbie, but I haven't found anything that quite matches what I'm looking for. I have two lists, and am searching for a While loop that will show many how many times each variable of list F shows up in list N. I'm having trouble even approaching this or framing it in...
2018/02/28
1,346
3,087
<issue_start>username_0: I have some DataFrames with matching columns, but different indices (MultiIndex, same levels, different values). ``` cols = ['foo', 'bar', 'baz'] df0 = pd.DataFrame(np.random.rand(3,3), columns=cols, index=['a', 'c', 'd']) df1 = pd.DataFrame(np.random.rand(3,3), columns=cols, index=['a', 'b', ...
2018/02/28
694
2,571
<issue_start>username_0: This feels like a no brainer but somehow I'm stuck. The view won't allow me to scroll it. It's as if the height of the fragment inflated in the `ViewPager` doesn't get calculated. Searching SO suggest I need to write my own `ViewPager` and override `onMeasure()`, but I can't believe I would hav...
2018/02/28
1,037
4,067
<issue_start>username_0: So I have created a simple TCP/IP server which is running in the background and I intend to only use it over LAN so I don't need to port forward. However I still need to know the IP in which the server is running from so I can connect from another computer on the LAN. Additionally I don't want ...
2018/02/28
701
2,441
<issue_start>username_0: Trying to putout the cheapest and the most expensive product. but its not working like i hoped its putting out 3.99 for min and max its putting out 1.89. I'm stumped I've tried min and max I've tried to google but I'm not coming up with anything. ``` This part is the products.txt 767,POP,...
2018/02/28
564
1,952
<issue_start>username_0: i have two arrays filled with random int values.What i want to do is put the elements that are in one of the arrays but not in the other on a third array.How can i do this? ``` int[] array1 = new int[10]; int[] array2 = new int[10]; for(int j=0;j ``` can anybody help me to continue the code ...
2018/02/28
562
2,070
<issue_start>username_0: I am just testing the combination of SQLite database and asp classic to write a demo app. But, while doing so I am getting following error: ``` Microsoft OLE DB Provider for ODBC Drivers error '80004005' connect failed /DBTest/test.asp, line 3 ``` Here is the code: ``` Set objConn = Crea...
2018/02/28
357
1,332
<issue_start>username_0: I have a string `"25% off"`, i want to extract only value `25` from this, how can i extract it in swift, previously i had done with objective c but in swift hoe can we do that? I have tried this code but failed, ``` let discount = UserDefaults.standard.string(forKey: "discount") print(dis...
2018/02/28
351
1,277
<issue_start>username_0: I need to share my project with some colleagues, and I want to create a SQL Server user for them, so that user should not be able to drop database, I need him only to read and write to SQL Server tables, so I'm wondering are these settings ok: [![enter image description here](https://i.stack.i...
2018/02/28
2,206
9,145
<issue_start>username_0: I have 2 TextBox controllers in my UserControl let's call them TextBox1 and TextBox2. In my old code I update the TextBox1 background when the TextBox2 TextChanged event is fired. Using an event handler in the xaml.cs, and that was easy and straightforward. ``` private void textBox_TextC...
2018/02/28
1,105
5,294
<issue_start>username_0: I have a TextInputLayout for password. I have added passwordToggleEnabled=true to toggle the password visibility. I need to capture the event when user toggles password visibility. How can I do this. ``` ```<issue_comment>username_1: In the source of the `TextInputLayout` the type of the vie...
2018/02/28
765
3,122
<issue_start>username_0: For context, I am brand new in C++, I program in Java. So I am very bad with C++ syntax and would require dumbed down answers. I cannot seem to understand why I am getting this error. I checked multiple answers but they are all for primitive variables. I am using objects, which I am guessing ...
2018/02/28
176
687
<issue_start>username_0: I have the following HTML ``` I love mixing my background of art and design with web development and design. In my spare time I love playing sports and board games. About ``` Is there something wrong with this? I am trying to make it split down the page but it won't seem to split. The pa...
2018/02/28
314
1,159
<issue_start>username_0: I want to test the JSON response from a Rails controller GET action using only a browser. If the url to the resource is `http://localhost:3000/models/action`, how do I tell rails to return the response as JSON?<issue_comment>username_1: This is pretty simple once you figure out how to do it. ...
2018/02/28
770
2,417
<issue_start>username_0: On any other linux distro, I can create a file with a shebang and run shell scripts like so: ``` $ chmod +x test.sh $ ./test.sh Johnny hello Johnny ``` But on Google Cloud Platform Container-Optimized OS, I get `-bash: ./test.sh: Permission denied` If I prefix with `sh` e.g. `sh test.sh Joh...
2018/02/28
301
1,013
<issue_start>username_0: When I am focusing on link a elements then the only font size is not changing bt I want to change the font size whenever I focus on link a elements of html code... CSS: ``` a:focus { outline-color: ; background-color: aqua; font-size: 27px; } ``` HTML: ``` * home * h * m ```<issue_c...
2018/02/28
7,289
21,228
<issue_start>username_0: I've noticed that installing Pandas and Numpy (it's dependency) in a Docker container using the base OS Alpine vs. CentOS or Debian takes much longer. I created a little test below to demonstrate the time difference. Aside from the few seconds Alpine takes to update and download the build depen...
2018/02/28
501
1,833
<issue_start>username_0: I was wondering if DynamoDBMapper can be used to query DAX? I couldn't find any mention of the use of DynamoDBMapper and DAX in the developer guide. It seems like I can pass in the DAX client when constructing an instance of DynamoDBMapper, but since I don't have a provision of DAX, I can't re...
2018/02/28
1,102
2,866
<issue_start>username_0: I've a SQLITE table with more than 2.570.000 records and I've to select data using this query ... ``` select * from table_1 where City = 'Roma' and dist <= 0 ``` ... and this is the result .... ``` pgid City ptid osm_id name dist 471...
2018/02/28
425
1,564
<issue_start>username_0: I am trying to test if a method throws a specific exception with it's message like this : ``` @DataProvider(name = "correctPairs") public Object[][] expectedResultsTest() { return new Object[][] { { null, new NullPointerException("Class cannot be null") }, }; } @Test(dataProvider = "correct...
2018/02/28
290
1,073
<issue_start>username_0: I am getting this when trying to start my nginx service > > unknown directive "lua\_package\_path" > > > Can someone please help me understand what it is looking for? I have both lua-resty-openidc and lua-resty-hmac installed but I just don't know what to point this to.<issue_comment>user...
2018/02/28
1,169
3,696
<issue_start>username_0: I have an image backup that I restore to the MS SQL server 2016. I have an entity that declares its id like that: ``` @Id @GeneratedValue(strategy = GenerationType.AUTO) @XmlID @XmlElement @XmlJavaTypeAdapter(IntToStringXmlAdapter.class) private Integer id; ``` when I save the entity I recei...
2018/02/28
1,936
7,618
<issue_start>username_0: I'm developing an API backend using the Django Rest Framework. I had initially developed it using Session Authentication, unaware that it could not be used for sending to a mobile application. I encountered trouble with respect to CSRF protection while trying user login in Postman. Now, since ...
2018/02/28
1,264
4,057
<issue_start>username_0: I have an array: ``` $cards = [ [ "from" => "Barcelona", "to" => "Gerona Airport", ], [ "from" => "Stockholm", "to" => "New York JFK", ], [ "from" => "Gerona Airport", "to" => "Stockholm", ], ...
2018/02/28
1,431
4,735
<issue_start>username_0: I'm trying to make a program that evaluates a mathematic equation that's written one character or value per line at a time. The user will enter alternating numbers and operators, line by line, terminating with a ‘.’. That means I'm not trying to evaluate from a single string (and assume input w...
2018/02/28
637
1,964
<issue_start>username_0: I have defined a function that takes in a list like this ``` arr = ['C','D','E','I','M'] ``` I have another function that produces a similar kind of list, the function is: ``` def tree_count(arr): feat = ['2','2','2','2','0'] feat_2 = [] dictionary = dict(zip(arr, feat)) ...
2018/02/28
655
2,183
<issue_start>username_0: I am trying to make a simple program that plays some narration, and has a sound effect on a trigger. Being new to python, I am just building up functions in layers. Getting music to work was easy, as it should be, but I cannot get sound to work. I have read of a few people with similar issues...
2018/02/28
823
3,022
<issue_start>username_0: So I am doing a nodejs tutorial and it asks me to use modules to filter all the files in a directory. And I'm supposed to use the idiomatic approach to handle errors. Below is my modules.js and my main program.js, however, the program said that ``` Your additional module file [module.js] does...
2018/02/28
769
2,387
<issue_start>username_0: I have a data frame: ``` MS_NR SS_NR DATE HOUR VALUE 1 13095010 68 1/01/2014 0:00:00 9,8 2 13095010 68 1/01/2014 1:00:00 8,0 3 13095010 68 1/01/2014 2:00:00 NA 4 13095010 68 1/01/2014 3:00:00 7,5 5 13095010 68 1/01/2014 4:00:00 7,0 6 13095010 68 ...
2018/02/28
413
1,582
<issue_start>username_0: I understand how to print the values of upper level things such as the value of "email" or the value of "name" but how would I **safely** unwrap the dictionary to print a deeper nested value such as the value of "url"? [![enter image description here](https://i.stack.imgur.com/VF5Eg.png)](http...
2018/02/28
1,655
4,196
<issue_start>username_0: I have this column of months in my data table that show the consecutive intervals of months. ``` > data[,"PromoInterval"] PromoInterval 1: Jan,Apr,Jul,Oct 2: Jan,Apr,Jul,Oct 3: Jan,Apr,Jul,Oct 4: Jan,Apr,Jul,Oct 5: Jan,Apr,Jul,Oct --- 3243...
2018/02/28
654
2,404
<issue_start>username_0: I have one VARCHAR(name with firstname and surname for example: <NAME>) in `mysql` database. I want sort by surname(alphabetically). Can I add something like 'ORDER BY SECOND WORD' to SQL request ? Thank you<issue_comment>username_1: Sure. One method would be: ``` order by substring_index(...
2018/02/28
4,536
11,443
<issue_start>username_0: Note: I asked this question before but it was closed as a duplicate, however, I, along with several others believe it was unduely closed, I explain why in an edit in my original [post](https://stackoverflow.com/questions/47493154/interpolating-a-line-between-two-other-lines-in-python). So I wou...
2018/02/28
729
2,514
<issue_start>username_0: I am working on a site which has a list of products. Each product has a corresponding image. I am binding the image url to the source attribute like below. ``` ![]() ``` If the image is not found, I want to show a default image. I do as below in cshtml razor syntax (for reference only) ```...
2018/02/28
599
2,214
<issue_start>username_0: Is the ngrx store persistent? In other words can we close the browser reopen it, and retrieve state that was added to the [ngrx store](https://github.com/ngrx/platform)?<issue_comment>username_1: The [nrxg/store](https://github.com/ngrx/platform) is in memory only. To manage state via the brows...
2018/02/28
925
3,120
<issue_start>username_0: I have the following route defined in my web.php ``` Route::delete('/contributions/contribution/destroy', 'ContributionController@destroy'); ``` In my blade file I have a button that when clicked displays a sweetalert to confirm deletion. This works correctly, but when the user presses the d...
2018/02/28
520
1,892
<issue_start>username_0: I have a problem, the information displays in console but when I try to display the information in the table, the columns show but doesn't see the object. I don't know why! Here's my Typescript: **table.ts** ``` constructor(public studentAtentionService: StudentAtentionService) { } atenti...
2018/02/28
885
2,986
<issue_start>username_0: I am attempting to use PhpMailer to send an email of an MP3 to a user. When I try to send an email to the user I get a message saying: SMTP ERROR: Failed to connect to server: No route to host (65) . I have read this might be the result of gmail not agreeing with a different server but I don't ...
2018/02/28
351
1,328
<issue_start>username_0: just a quick one. I have 3 Font Awesome icons that i'm using for contact buttons on my page. These are aligned vertically and centered within a container div. I also have text next to each icon, which results in both icon and text being centered on the page. What i'm after is to center the icon...
2018/02/28
1,566
4,152
<issue_start>username_0: I would like to merge two files containing JSON. They each contain an array of JSON objects. registration.json ``` [ { "name": "User1", "registration": "2009-04-18T21:55:40Z" }, { "name": "User2", "registration": "2010-11-17T15:09:43Z" } ] ``` useredits.json ``` [ { "name": "Us...
2018/02/28
908
2,826
<issue_start>username_0: input looks like below and i want the output to be the first interface where status = [up] : in this example below the output should be Ethernet1/48 ``` Last bundled member is Ethernet1/48 Ports: Ethernet1/45 [active ] [down] Ethernet1/46 [active ] [down] Ethernet1/47...
2018/02/28
1,050
3,668
<issue_start>username_0: I have a lerna repo for a project under development. It has several packages that depend on each other. To make development easier, none of the packages are published and they depend on the latest version of each other. *Directory tree* ``` foo/ packages/ core/ package.json er...
2018/02/28
558
1,781
<issue_start>username_0: Suppose I have a file myfile.txt, with the following contents: ``` 1234 5678 start stuff stop 9871 ``` I would like to get the data between the header 'start' and the footer 'stop' but **not** including these borders (so in this case, my result would just be the line 'stuff'). Using awk and ...
2018/02/28
639
1,783
<issue_start>username_0: I'm migrating an Oracle database to PostgreSQL, to transfer the tables I had no problem, however I'm having trouble transcribing a function for it to run in Postgres, below the function found in Oracle: ``` create or replace FUNCTION "FN_HOUR_MINUTE" (P_HOUR IN NUMBER) RETURN NUMBER IS --...
2018/02/28
436
1,502
<issue_start>username_0: ``` import java.util.Stack; Stack stack = new Stack(); void setup(){ stack.push('1'); println(stack); } ``` IDE says: "the function push(String) does not exist"<issue_comment>username_1: String in java are double quotes `"string"` instead of `'string'`. Moreover I found that for m...
2018/02/28
2,235
6,406
<issue_start>username_0: I am getting the below error all of a sudden. The app was running fine till morning. Since then I have been getting this. I tried loading older commits from Git, however I am getting the same issue now. I can see that there's a duplicate entry of some class, but it is not very clear where. I ha...
2018/02/28
878
3,054
<issue_start>username_0: I'm supposed to flip a coin 100 times, and find out the longest streak of heads, then output it, but so far, it's only giving me how many heads there are in total. I've tried a bunch of things but can't find a solution. ``` public class LongestStreak extends ConsoleProgram { public static ...
2018/02/28
772
2,674
<issue_start>username_0: I have a bit of an unusual question, but I'm stuck and thought someone here may know. I basically want to create a membership overview/comparison as included and was wondering how one would build it most efficiently/best, especialyl the part highlighted in red. [![enter image description here...
2018/02/28
435
1,853
<issue_start>username_0: I'm trying to make my first service. The sample code I got has the ServiceConnection created as a inner class in the activity that creates the service. I would like ServiceConnection to be outside the activity class that creates the service so other actites can crat the service and use the sa...
2018/02/28
1,719
5,376
<issue_start>username_0: I need to find the number of distinct vowels. I came up with the code below but it can't make distinction between same vowels: ``` public static int count_Vowels(String str) { str = str.toLowerCase(); int count = 0; for (int i = 0; i < str.length(); i++) { if (str.charAt(i)...
2018/02/28
527
1,817
<issue_start>username_0: I am trying to do a simple VBA step counter that sums up a column until the column adds up to a positive number. Essentially these are cash flows that calculate when the cash becomes break even. I am simply trying to add the cells starting from Z13 until the Total becomes a positive number(the ...
2018/02/28
1,117
3,694
<issue_start>username_0: I am new to vba and running into a problem. My code works so far when I click the command button for the first time. It gets data from one sheet and pastes it into the "TEST" sheet, sorts it from A-Z, and then merges the similar cells in column A. However, when I click the button again, the dat...
2018/02/28
749
2,849
<issue_start>username_0: Let's say some of my Rails colleagues would prefer to develop the app inside their own native local development environment they've setup all by themselves to match their needs, and some of my colleagues would prefer to develop the app run from inside a Docker container that comes along with al...
2018/02/28
1,554
5,199
<issue_start>username_0: Apologies for incorrect lingo, I am still new to this. I want to make a class initialiser that, using a conditional, will decide whether or not the instance of said class will collapse into a simple integer. Simplified Unworking Example: ``` class A(object): def __init__(self,a,b): ...
2018/02/28
799
2,011
<issue_start>username_0: I am in the process of reformatting a few data frames and was wondering if there is a more efficient way to add named columns to data frames, rather than the below: ``` colnames(df) <- c("c1", "c2) ``` to rename the current columns and: ``` df$c3 <- "" ``` to create a new column. Is ther...
2018/02/28
1,034
2,623
<issue_start>username_0: I am working on graph theory using adjacency matrix, I want to split the edges between multiple nodes for instance I have the following initial adjacency matrix : ``` a= [ 0 2 3; 2 0 1; 3 1 0] ``` From that matrix its clear that we have 3 nodes, Now I want to split the ...
2018/02/28
1,341
5,032
<issue_start>username_0: I'm making a project for school where users are quizzed on subjects and their results are saved into a report (CSV file called 'reportForFergusTwo') for the 'customer' (Fergus). The report shows the average score a certain quiz, the high score, and the username of the person who achieved it. An...
2018/02/28
539
1,342
<issue_start>username_0: ``` import pandas as pd df = pd.DataFrame({ 'item':['a','b','c','d','e','f','g','h','i','k'], 'counter':[1,2,3,1,2,3,1,2,3,1] }) ``` Given this structure, what is the best way to auto-generate `df['counter']` as a repeating range of integers, cycling through 1, 2, and 3 unti...
2018/02/28
1,670
6,573
<issue_start>username_0: I've been reading through documentation for some time. I can see examples for the JavaScript and Go SDK that show how to load the config file by setting the `AWS_SDK_LOAD_CONFIG` environment variable to a truthy value. The documentation is [here](https://github.com/aws/aws-sdk-js/blob/master/CH...
2018/02/28
621
2,090
<issue_start>username_0: I'm using QMF from IBM DB2 and I have a simple query ``` SELECT * FROM COUNTRYTABLE ``` Instead of giving names like US, Germany, I get a result like 123, 456, because we're using Country codes. There's not a single table where you would get the name "Germany", so I cannot join to be able ...
2018/02/28
1,056
2,191
<issue_start>username_0: Let's say I have a bookings table: ``` id|booking_ref|start_datetime |end_datetime ------------------------------------------------------- 01|ABC |2018-01-01 09:30:00 |2018-01-01 10:00:00 02|DEF |2018-01-01 11:00:00 |2018-01-01 12:00:00 03|GHI |2018-01-01 13:00:00 |20...
2018/02/28
500
1,515
<issue_start>username_0: Currently I am trying to show all of the contents stored in \_G. Reading and writing tables in \_G is quite easy. Does anyone know how to do the same with the type function? My goal is to return a string containing a function stored in the \_G table. Cheers and thanks Max<issue_comment>user...
2018/02/28
739
2,797
<issue_start>username_0: I want to use a module that I recently npm installed. I want to use it from within a jsx file but I don't know how to 'import' it if you will. There are no examples doing this in the documentation for this module and I assume it is just common knowledge on how to use it - knowledge I can't find...
2018/02/28
647
2,509
<issue_start>username_0: My WebView should display a web page that has a cookie authentication. The page expects a session-id cookie acquired on login. To authenticate I send the login request to the website using fetch(). When the login is successful I can see that proper cookies are received. On success, I'm startin...
2018/02/28
393
1,371
<issue_start>username_0: I have a file like this where `key[x]` is a number and it can be any number followed by some values and they can also be a number. In my file I have lot of entries. ``` key1:value1,value2 key2:value1,value2,value3,value4 key3:value1,value2,value3 ``` I want to make a new file in which all ke...
2018/02/28
464
1,495
<issue_start>username_0: I have this simple C program on MacOS: ``` #include #include #include #include int main(int argc, char \*argv[]) { pid\_t pid = atoi(argv[1]); printf("pid = %jd\n", (intmax\_t) pid); return ptrace(PT\_ATTACHEXC, pid, 0, 0); } ``` when I compile with gcc / cc, I get this error: > > ...
2018/02/28
806
1,729
<issue_start>username_0: While perform an iterative calculation of 4 steps, I get an error saying > > Error in eps[[i]] = rnorm(100, 0, sigma) : > more elements supplied than there are to replace > > > The code is: ``` f <- list() residual <- list() eps <- list() err <-list() y<- list() for(i in 1:4){ eps[[i]...
2018/02/28
1,330
4,557
<issue_start>username_0: I'm working on a booking model where items can be rented for an arbitrary period of time and each item has a maximum capacity of bookings per day (which is basically the quantity of an item). Obviously, I want to check whether an item is available for booking or if the maximum capacity has alre...
2018/02/28
760
2,553
<issue_start>username_0: I did the following on my Raspberry Pi: ``` cd ~ wget -O opencv.zip https://github.com/Itseez/opencv/archive/3.1.0.zip wget -O opencv_contrib.zip https://github.com/Itseez/opencv_contrib/archive/3.1.0.zip cd ~/opencv-3.1.0/ mkdir build cd build cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTAL...
2018/02/28
853
3,789
<issue_start>username_0: I'm working on an implementation of `ICommunicationClient` and accompanying stuff for HTTP protocol communication which should be compatible with SF reverse proxy. The most subtle part for me is retry policy. According to Azure docs for 404 errors reverse proxy relies on X-Service-Fabric header...
2018/02/28
805
2,753
<issue_start>username_0: I have a huge data set. Here is an example: ``` Ac.1<-rnorm(100, 0, 1) At.2<-rnorm(100, 0, 1) Ae.3<-rnorm(100, 0, 1) Ba.1<-rnorm(100, 0, 1) Bc.2<-rnorm(100, 0, 1) Be.3<-rnorm(100, 0, 1) Cb.1<-rnorm(100, 0, 1) Cy.2<-rnorm(100, 0, 1) Cc.3<-rnorm(100, 0, 1) ``` The current data set looks like:...
2018/02/28
545
2,413
<issue_start>username_0: I'm about to launch my new Cloud application which needs to run on multiple EC2 instances. How should I decide which EC2 instances I need to deploy? How much it depends on the workload? Thanks<issue_comment>username_1: In your given scenario, when your Client encounters a 404, the `X-Service-Fa...
2018/02/28
1,164
4,827
<issue_start>username_0: I have a custom exception (which is further extended in may other custom exceptions). My project requires log all the customExceptions (and all of its decendents) that occurs. I have a logger that can log customException (and anything else). One of the way of doing so is explicitly log the exce...
2018/02/28
444
1,522
<issue_start>username_0: I know how to create a TFS pull request [using the web interface](https://learn.microsoft.com/en-us/vsts/git/pull-requests#create-a-new-pull-request). However that is very inconvenient. From the command line already I am doing this ``` git checkout -b mybranch git add git commit -m "my change...
2018/02/28
352
1,120
<issue_start>username_0: im creating a program similar to Notepad++ but I have run in to a problem, when I save a file it puts all text in one line, like this: > > Test Line 1Test Line 2Test Line 3 > > > Instead of: > > Test Line 1 > > > Test Line 2 > > > Test Line 3 > > > Here is the code I use to save...
2018/02/28
1,886
6,394
<issue_start>username_0: I have a game engine built with SFML and I was attempting to create a loading screen which is updated while assets are loaded. In this case it is one big XML file. I wanted to use a thread as this process took about ten seconds to complete and therefore the application would be stuck until it ...
2018/02/28
1,230
4,394
<issue_start>username_0: This is now bugging me a lot. I want to get to an activity from a Fragment without disturbing the reusability of the fragment. That mean I cant directly start an Intent from within the fragment to a the activity the fragment is currently attached to. Here is the code under question ``` //Thi...
2018/02/28
2,261
6,576
<issue_start>username_0: I am trying to calibrate a fisheye lens following these instructions <https://medium.com/@kennethjiang/calibrate-fisheye-lens-using-opencv-333b05afa0b0> where you can find the full code I'm using for the calibration part. I arrive at this point where: ``` N_OK = len(objpoints) K = np.zeros(...
2018/02/28
1,638
4,641
<issue_start>username_0: Is it possible in CSS to change img src when div element is hovered? ``` [![](/1978944/cover_small.jpg)](/template-1978944/editor) ``` I tried ``` a.template-image[href^="/template-1978944"] div.green:hover ~ img { content: url(/1978943/cover_small.jpg);" } a.template-image[href^="/templa...
2018/02/28
627
2,337
<issue_start>username_0: I'd have hundreds of observations and I'd like to remove the ones that contain the string "english basement". I can't seem to find the right syntax to do so. I can only figure out how to keep observations with the that string. For instance, I used the code below to get only observations contain...
2018/02/28
826
2,886
<issue_start>username_0: This question is just out of curiosity, but I've noticed that iterating over a HashMap using keyset seems to always go in sorted order. Obviously insertion order is never preserved with HashMaps, but sorted key order seems a bit strange to me. Using this example: ``` import java.util.HashMap; ...
2018/02/28
668
2,512
<issue_start>username_0: Currently I have a lambda function that is receiving a Google access token. However, in order to receive a cognito ID, AWS Cognito only accepts an ID token, rather than an access token. Is there anyway I can exchange a Google access token for an ID token? If not, how can I get a cognito identi...
2018/02/28
846
3,319
<issue_start>username_0: A store has customers. Each customer logs into the store using their userID and password. I want to create an Alloy function (`fun`) that, when passed credentials (userID and password), returns the customer possessing those credentials: ``` fun customerWithTheseCredentials[userID: UserID, pas...
2018/02/28
631
2,288
<issue_start>username_0: I'm building a field that starts fading out once the user types on it `v-on:keydown`, but if he keeps on typing the fades resets keeping the `opacity: 1`. However, the behaviour is different than expected. The more the users type the faster the fade starts happening, ignoring the `setTimeout`...
2018/02/28
271
1,084
<issue_start>username_0: I am trying to form a new table that contains unique user\_id's from existing one. Is it possible to add **auto\_increment** primary key in U-SQL like we can add in MySQL?<issue_comment>username_1: This is not currently possible. Upvotes: -1 <issue_comment>username_2: To elaborate on David's an...
2018/02/28
1,356
4,231
<issue_start>username_0: I am not able to restore a database backup (db.bak). Given the following Transact-SQL: ``` 1> RESTORE DATABASE db 2> FROM DISK = '/var/opt/mssql/db.bak' ; 3> GO ``` Results in: ``` Msg 5133, Level 16, State 1, Server mbü-lubuntu, Line 1 Directory lookup for the file "D:\Program Files\Micro...
2018/02/28
313
1,046
<issue_start>username_0: I want to insert a single value on SQL table with R using odbc library To do it, I create the conection, and when it is done, then, I try to insert the data on it, using this comand: ``` odbc::dbSendQuery(con,"INSERT INTO Datos_Moldeo (Referencia) VALUES ('UNASjkjkjk');") ``` But this retur...
2018/02/28
965
3,284
<issue_start>username_0: I'm having a problem with line 20 and I'm hoping someone can point me in the right direction as to what I'm doing wrong. All I'm trying to do is display a a display of Celsius along with their respective Fahrenheit temperatures. Celsius increments from 0-100 and Fahrenheit from 32 - 212. This i...
2018/02/28
1,091
4,299
<issue_start>username_0: I am setting a JLabel for the error messages in my program, so initially the label is empty `label.setText("")`, but when there is an error it should change to something like `label.setText("Error, you have entered invalid data...")`. If I use `setSize(x,y)` on the label, it forces other compo...
2018/02/28
1,139
4,513
<issue_start>username_0: I have 2 columns from 2 different tables - say columnA and columnB, which I am matching with each other. However, if they do not match then I want to remove last one char from columnB and again match with columnA. If it still won't match then reduce one more char at the end from columnB and try...
2018/02/28
2,943
10,220
<issue_start>username_0: I think there must be a bug with the 27.1.0 v7 support lib, [just released](https://developer.android.com/topic/libraries/support-library/revisions.html). After updating my project to use it (from 26.1.0), I keep getting this compilation error: > > **Task :app:transformDexArchiveWithDexMerger...
2018/02/28
1,892
5,985
<issue_start>username_0: Is it possible to turn an `SRT` file, which is used for subtitles in videos **into a dataset**? When imported into Excel, the `SRT` file format looks like this: ``` 1 00:00:03,000 --> 00:00:04,000 OVERLAPS PURE COINCIDENCE THAT ... ``` This pattern continues as time in the "video"/transcri...
2018/02/28
331
1,087
<issue_start>username_0: By checking the source you can see: ``` /** * Bind an event handler to the "submit" JavaScript event, or trigger that event on an element. * * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/submit/} * @since 1.0 * @deprecated 3...
2018/02/28
799
2,058
<issue_start>username_0: I'm facing an issue with a basic substitution. I have two arrays, one of them contains numbers and NaN, and the other one numbers that are supposed to replace the NaN, obviously ordered as I wish. As an example: `x1 = [NaN, 2, 3, 4, 5, NaN, 7, 8, NaN, 10]` and `fill = [1, 6, 9]` and I want to o...
2018/02/28
1,676
5,427
<issue_start>username_0: I am getting this error only on Android SDK < 5.0. So 4.0, 4.2, 4.3 ect. Anything running Android 5.0+ works flawlessly. Any ideas? Crashes on launch. Following this guide for setup -> <https://developer.android.com/topic/libraries/architecture/adding-components.html> App.java ``` public vo...
2018/02/28
1,356
4,697
<issue_start>username_0: I have a body of text like so: > > Lorem Ipsum %final\_walk\_through\_date% is simply dummy text of the > printing and typesetting industry. %buyer\_full\_name% Lorem Ipsum has > been the industry's standard dummy text ever since the 1500s, when an > unknown printer took a galley of type ...
2018/02/28
747
1,967
<issue_start>username_0: I am trying to retrieve image from XMLRPC. I do: ```py record = api.execute_kw(db, uid, pwd, 'product.template', 'read', [[id]], {'fields': ['id', 'name', 'image']}) sub_record = dict((k, record[0][k]) for k in ('id', 'name', 'image')) print sub_record['image'] ``` If I print the image usin...
2018/02/28
879
3,349
<issue_start>username_0: I have a script that has an array of terms. I'd like to create variables based on each term. I'm attempting to count how many times each term is chosen by the user and log a number associated with the term (also from user input). My history with jQuery leads me to want to do something like th...
2018/02/28
801
2,848
<issue_start>username_0: I have numbered my lists layer1, layer2 ... I want to use a variable (playery) as the number in the lists name when calling it, so if playery was equal to 4, the list addressed would be layer4 ``` layer1 = [".", ".", ".", ".", "."] layer2 = [".", ".", ".", ".", "."] layer3 = [".", ".", "■", "....