date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/06
1,616
5,310
<issue_start>username_0: What I want to achieve can be seen in the following tables: [![enter image description here](https://i.stack.imgur.com/FPapj.png)](https://i.stack.imgur.com/FPapj.png) So, the idea is to only fill column `lag_id` if column `Port` includes string `Lag`. If so, I shall split such string, keep t...
2018/03/06
1,118
4,593
<issue_start>username_0: in a C# tutorial about usage of MVVM with Xamarin.Forms I stumbled upon the following sequence inside a MVVM class: ``` public event PropertyChangedEventHandler PropertyChanged; void OnPropertyChanged(string PropertyName) { PropertyChanged.Invoke(this, new PropertyChangedEvent...
2018/03/06
2,301
6,425
<issue_start>username_0: ```css div { height: 41.4vmin; width: 30vmin; margin: 0.7vmin; border-radius: 1.3vmin; background-image: url("https://sun9-8.userapi.com/c840530/v840530203/60933/tkZK7aYQUjM.jpg"); background-size: contain; } @keyframes example { 0% {} 35% {background-imag...
2018/03/06
158
612
<issue_start>username_0: BouncingScrollPhysics by default bounce at the start and end of a ScrollView but I would like to over ride that. How can I accomplish that?<issue_comment>username_1: You can set `physics` on `CustomScrollView` to whatever fits your need this way : ``` new CustomScrollView( physics: new Clamp...
2018/03/06
710
2,062
<issue_start>username_0: [enter image description here](https://i.stack.imgur.com/v7jNS.jpg) I am looking for pairs in two columns in a csv. If it finds A-B and B-A include just A-B in the dictionary. I wrote the following script: ``` dataset = list(zip(col1,col2)) for a,b in dataset: if (a,b) and (b,a) in datase...
2018/03/06
751
2,635
<issue_start>username_0: In PyQt I can have QListWidget select an item programmatically using `QListWidget.setCurrentItem(item)`. And this, of course, will select an item for me inside my QListWidget. However, I'm wondering if there exists a method like `setCurrentItems([item1, item2, item3])` where if I give a list, ...
2018/03/06
472
1,683
<issue_start>username_0: On pressing `Enter` in TinyMCE4 a new paragraph is created. Is there any way to change the configuration of TinymCE4 so that `Enter` should work like `Shift`+`Enter`? On a press of the `Enter` key, I want a tag instead of a tag.<issue_comment>username_1: There is indeed an option for that m...
2018/03/06
415
1,566
<issue_start>username_0: Regarding Swift Package Manager, how do I use a local library package as a dependency of an executable package without a git repository? **SwiftPM claims it allows you to pass in a local path in the url field, but then complains that it can't clone the repository.** from Package.swift ``` ...
2018/03/06
1,533
4,543
<issue_start>username_0: I'm banging my head against the wall trying to figure out why this nested loop is miscounting the number of times an integer occurs in a list. I've set up a function to take two lines of input, `n` and `ar`, where `n` is the number of integers in `ar` and `ar` is the list of integers. My code i...
2018/03/06
732
2,479
<issue_start>username_0: I am writing some `SQL` queries in `AWS Athena`. I have 3 tables `search`, `retrieval` and `intent`. In `search` table I have 2 columns id and term i.e. ``` id term 1 abc 1 bcd 2 def 1 ghd ``` What I want...
2018/03/06
835
2,523
<issue_start>username_0: I have a pandas dataframe like this: [![enter image description here](https://i.stack.imgur.com/bbQm8.jpg)](https://i.stack.imgur.com/bbQm8.jpg) The values are string type. I would like to find out if each of these row contains the string `'63'`. So I first split each the strings at `','` by...
2018/03/06
992
3,557
<issue_start>username_0: I am building a cipher program but i can't figure out how to return an array of char[] my cipher method ``` char *cipherinput(int ciphercount){ int i=0; char *cipher[MAX_CIPHER_SIZE]; if(ciphercount>=2){ printf("Enter the Cipher!\n"); //loop through and add for(i=0;i ``` my main ...
2018/03/06
1,009
5,830
<issue_start>username_0: I wanted to print the power of 2 until certain numbers? like in here I wanted to print first 30 power of 2. Below my code! but I don't know the solution! ``` #include int main() { int i; //long pot = 1; for(i=0; i<=32; i=i\*2) { printf("%d ", i); } return 0; } ```<issue_comment...
2018/03/06
1,655
4,434
<issue_start>username_0: I am having trouble filling Pandas dataframes with values from lists of unequal lengths. `nx_lists_into_df` is a list of numpy arrays. I get the following error: > > ValueError: Length of values does not match length of index > > > The code is below: ``` # Column headers df_cols = ["f...
2018/03/06
854
2,184
<issue_start>username_0: I am trying to create a specific shape with specific color to keep it as a background. I successfully created gradient color that I want but I am struggling with getting shape right. Here is what I have done and what is am trying to achieve, My Work : ![enter image description here](https://...
2018/03/06
624
1,805
<issue_start>username_0: My data has respondents (10 in this example) that choose between n choices (3 in this example). ``` # original data df <- data_frame(RID = seq(1:10), choice = sample(1:3,10,replace = TRUE)) ``` I am trying to code this as a binary value, but in long (tidy) format using `dplyr`. My spidey se...
2018/03/06
647
2,403
<issue_start>username_0: I am returning project team member details. The tables involved are: ``` users projects members ``` (edited for brevity they look like this) ``` 'users' ('id', 'name', 'email', 'avatar', 'avatar_type', 'status') 'projects' ('id', 'name', 'descriptio...
2018/03/06
2,118
10,360
<issue_start>username_0: I get user's location by FusedLocationProviderClient.getLastLocation() but only when user has already turn on location. like: <https://i.stack.imgur.com/paQKO.png> If location is off,I get null. In app settings it shows that location permission is granted!! Help to get **not null** current l...
2018/03/06
587
2,752
<issue_start>username_0: I'm trying to read out the artifact versions that are in a Maven repository in order to update my version numbers (yes, this is the best way to do this given the restrictions we have). I can see in the metadata.xml file for the repository that it's got the version information in it, but I'd lik...
2018/03/06
695
2,853
<issue_start>username_0: I like to build the counting tool. I used to use the `COUNTIF` function in excel `=COUNTIF($L$2:$L$3850,"AAA")`. but, I am not sure there is similar function in python pandas. This is my dataframe ``` # 2015 2016 2017 # 0 AAA AA AA # 1 AA AA A # 2 AA ...
2018/03/06
692
3,064
<issue_start>username_0: I created a "Cross-Platform App (Xamarin.Forms)" app, and i immediately went and update the nuget packages (this is what i was told to do). Then i tried to built it, and not only I got several errors(see bellow) that were about the updated packages, I had code errors as well. I swear the God th...
2018/03/06
484
1,909
<issue_start>username_0: I have a React Native app that is using `Expo.Google.logInAsync` to login via Google. This returns an `accessToken` (expires after 1 hour) and a `refreshToken`. Im passing this `accessToken` to the Firebase Web SDK: ``` const cred = firebase.auth.GoogleAuthProvider.credential(null, accessToke...
2018/03/06
1,019
3,002
<issue_start>username_0: As per the title, Apache 2.4 seems to be appending '/' to the URL (according to `request.url`) and Flask's routes don't match with or without it. **(relevant) File structure** ``` /var/www/wsgi ... ├── dizmo │   └── __init__.py ├── foo.wsgi ├── hello1.wsgi └── __pycache__ └── adapter.cpyt...
2018/03/06
349
1,146
<issue_start>username_0: I have been trying to clean up my project workflow, and have been using the here package, but have am perplexed at some of the utility. I set up an Rstudio project in the folder ~\ProjFolder. Within this folder I added a Plots folder ~\ProjFolder\Plots. But when I try to use ggsave to save ...
2018/03/06
423
1,479
<issue_start>username_0: How do I set the status code to 429 and return a custom message from an API Gateway custom authorizer?<issue_comment>username_1: Am also searching for this solution. i got messages like custom message & status code from our custom authorizer is not enabled. refer here - <https://forums.aws.amaz...
2018/03/06
821
2,904
<issue_start>username_0: I am using ASP.Net Core on .Net Core, version: ``` > dotnet --info .NET Command Line Tools (2.1.4) Product Information: Version: 2.1.4 Commit SHA-1 hash: 5e8add2190 Runtime Environment: OS Name: Windows OS Version: 10.0.16299 OS Platform: Windows RID: win10-x64...
2018/03/06
419
1,542
<issue_start>username_0: I make this simple report with chart in BIRT: [![chart1](https://i.stack.imgur.com/QcnrR.png)](https://i.stack.imgur.com/QcnrR.png) but when I added grouping on Y axis, then bar became very tight and unevenly distributed. How can I make this bar bigger ? [![enter image description here](https:/...
2018/03/06
572
2,221
<issue_start>username_0: I have a list of items, for each item i wan to do an async job and then update the UI. I am using rxjav for doing async task. How can i loop through the list and do this. I tried with Observable.FromArray thought it didnt work ``` Observable.fromArray ```<issue_comment>username_1: You'll nee...
2018/03/06
471
1,792
<issue_start>username_0: Wordpress (or a plugin) keeps auto scrolling on the product pages... I don't know why. Is there any coding I can add to stop this annoying feature? Problem Example: <https://roverplusnine.com/product/RPN-9999-115-FD/> Thanks in advance for any help....<issue_comment>username_1: I had a simil...
2018/03/06
1,730
6,359
<issue_start>username_0: I have a table that has repeated `OrderId`s, but also having detail information in the row. I am using a `StringBuilder` to create the XML. How do I string build using a `for-each` loop to build XML. I don't want to repeat the header information, only loop through detail for how ever many row...
2018/03/06
655
2,257
<issue_start>username_0: I have the same issue as here: <https://seap.samsung.com/forum-topic/problem-arises-here-getsystemserviceenterprisedevicemanagerenterprisepolicyservice> I followed the instructions on the link above and “EnterpriseDeviceManager cannot be applied to given types” is displayed. Do I need to cha...
2018/03/06
313
1,117
<issue_start>username_0: I have an Arraylist named temp. There is some element within that arraylist. I want to reverse this Arraylist and store the value of this reverse list within another list. So, here is my code. ``` ArrayList Temp=new ArrayList<>(); ArrayList ReverseTemp=new ArrayList<>(); Temp.add(5); Temp.ad...
2018/03/06
852
3,013
<issue_start>username_0: I have a frontend application built with React and backend on nodejs. Both have a separate Docker image and therefore a separate deployment on k8s (gce). Each deployment has a corresponding k8s service, let's say `fe-serice` and `be-service`. I am trying to setup an Ingress so that both servi...
2018/03/06
1,083
3,765
<issue_start>username_0: I'm a longterm lurker first time questioner. I'm trying to teach myself Python and while I've researched my question I couldn't find an answer. My below code runs if I remove the first While loop but currently it doesn't seem to enter the second while loop. I think I might be channelling my inn...
2018/03/06
914
3,316
<issue_start>username_0: Im learning if statements. I wrote this code and ran it. It seems that lines 2 and 3 are ignored. When I enter a number lower than 45 it dosent prompt lines 2 and 3. I hope you understand what I mean. ``` price = input('How much did your taxi ride cost?:') if price < 45: print('Processing') ...
2018/03/06
962
3,627
<issue_start>username_0: all! I have built a WordPress website that has a contact form. I have added a javascript code to track form submission events. The problem is that the Google Analytics event is firing even when there are validation errors and the form is not submitted. Validation and submission are done by t...
2018/03/06
584
1,990
<issue_start>username_0: How can I get IntelliJ IDEA to recognize common Python modules? IntelliJ IDEA is complaining "unresolved reference" on everything despite that I have added my virtual environment as a "Python interpreter" and invalidated caches. These [(1)](https://stackoverflow.com/questions/20877106/using-int...
2018/03/06
866
2,798
<issue_start>username_0: I am trying to change the background for my play.erb page but I'm struggling to get the image (that is held locally) to show. The page works when using a placeholder image provided online. The error message I am getting is this. `127.0.0.1 - - [06/Mar/2018:21:55:49 +0000] "GET /images/map.jpg ...
2018/03/06
2,631
6,017
<issue_start>username_0: I have the following data and I am trying to construct a `for loop` across 3 stock symbols; ``` symbols <- c("HOG", "GE", "GOOG") ``` I have the following `ggplot`. I am trying to do two things. 1) Run a `ggplot` on all three of the symbols in `symbols` 2) Change the title of each `ggplot`...
2018/03/06
598
2,064
<issue_start>username_0: I know, it looks like a duplicate, but none of the other solutions out there work. I just switched from Android Studio to IntelliJ IDEA (So I don't need 3,000 different IDE's), and after setting it up, I created a new project just to test everything was good. The Gradle build starts off okay bu...
2018/03/06
1,219
4,057
<issue_start>username_0: I have some data points in an irregularly-spaced 2d grid which I'd like to interpolate onto a regular grid. For example, imagine the source data comes from a fisheye camera: [![](https://i.stack.imgur.com/epKHH.jpg)](https://i.stack.imgur.com/epKHH.jpg) (source: [starizona.com](https://stari...
2018/03/06
942
2,883
<issue_start>username_0: I am trying to subset a data frame in R... I would like to remove all rows where the value is >0 in all columns with the word 'Blank' in it. Ex input) df `ID OTU1 OTU2 Blank1 Blank2 1 5 0 0 2 2 3 3 0 0 3 0 9 5 0 4 2 0 0 0` Desired output `ID OTU1 OTU2 Blank1 Blank2 2 3 3 0 0 4 2 0 0 0` ...
2018/03/06
608
2,404
<issue_start>username_0: I am working with the Google Maps API and multiple markers. On a marker, there needs to be a click event to open an info window. I got that part working. I was wondering if there was a way to pass multiple variables and add the same event listener on all those markers? I currently have: ```js...
2018/03/06
911
3,242
<issue_start>username_0: I have a very specific issue that I'm hoping someone else has come across. It is only occurring on iPads with iOS 10.3.3. We have a ColdFusion website in IIS on Windows Server 2016 that refuses to load on any iPad with iOS 10.3.3. When you attempt to open the site in Safari it spins for about a...
2018/03/06
1,254
2,641
<issue_start>username_0: I have a dataset like this: ``` user_id time_location 13 (2018-02-02, 190) 12 (2018-06-02, 194) 13 (2018-06-02, 194) 16 (2018-02-02, 190) 17 (2018-02-02, 190) 11 (2018-05-02, 198) 19 (2018-02-0...
2018/03/06
604
2,047
<issue_start>username_0: I am working on a custom login page plugin, and the plugin works as expected. However, when I navigate to my home page, I get an error > > Notice: Object of class WP\_Post could not be converted to int in C:\MAMP\htdocs\wp-includes\general-template.php on line 1018 > > > After I comment o...
2018/03/06
1,381
5,100
<issue_start>username_0: I am building and international website using *Flask* framework that can handle two languages (for now): English and French, using *Flask-Babel* and I have data stored in SQL database using *SQLAlchemy* as a toolkit. Currently, my models have several duplicated attributes for each language: `...
2018/03/06
1,877
5,719
<issue_start>username_0: I am a casual Excel user, familiar with basic cell formulas and a few of the built-in functions, but have no idea how to approach this problem. I've been given a workbook with two sheets. The first sheet has over 10K rows of data across a bunch of columns. Columns D, G, and H are of interest. ...
2018/03/06
2,505
7,901
<issue_start>username_0: I have products as a CPT in Wordpress, and am trying to filter posts based on taxonomies with checkboxes. I have two taxonomies, brands and sizes. They are outputted like this in the index.php file: ``` php if( $brands = get\_terms( array( 'taxonomy' = 'brand' ) ) ) : foreach( $brands as ...
2018/03/06
2,388
7,912
<issue_start>username_0: I'm deploying using envoyer as usual. The one caveat is that during my local host development (and while i was switching git branches).. I faced this error: > > [ReflectionException] Class App\Http\Controllers\Admin\BatchUpdateStoresController does not exist > > > I solved it by clearing ...
2018/03/06
1,348
4,718
<issue_start>username_0: I'm interested in getting system information through Fortran - categories may include: 1. Operating system name 2. Operating system version 3. CPU architecture (32/64-bit) 4. Number of cores It's my understanding that you can get basic OS information through preprocessing directives, such as ...
2018/03/06
425
1,148
<issue_start>username_0: Is there a way to split a string but keep the split char(s), if you do this: `"A+B+C+D+E+F+G+H".Split(new char[] { '+' });` you get ``` A B C D E F G H ``` Is there a way to use split so it would keep the split char: ``` A +B +C +D +E +F +G +H ``` or if you were to have `+` in front of ...
2018/03/06
3,204
6,473
<issue_start>username_0: I Am using Javascript to fetch JSON in this format: ``` [{ "data": { "serialNumber": "12345678", "loopCount": 2, "temperature3": 22.74921781259558, "temperature2": 21.459065450414467, "temperature1": 25.60573959350586, "temperature7": 20.5602...
2018/03/06
950
2,356
<issue_start>username_0: I am trying to get a to and from date displayed on my website. But they are below each other and i want them side by side. I have used display:inline but it still hasn't worked. I also have a date picker on both input fields but it only works on one. Not sure why at all. And the date picker tha...
2018/03/06
335
1,320
<issue_start>username_0: How does the Uber Mobile SDK handle renewing access token? I don’t see there is explicit way that SDK provides for developer to renew access token manually but I’d like to do so. Essentially, what I’m trying to doing is that my mobile app handles SSO and pass the access token to my server, S...
2018/03/06
763
2,764
<issue_start>username_0: So in my Rails web application I have a section of code that prompts underage users to input a parent/guardian email when creating an account. In my database I would like to store this as the corresponding ID but naturally the user will want to enter an email. this part of my form looks like t...
2018/03/06
835
3,335
<issue_start>username_0: How would I create a thread that will execute after a delay of s seconds? I would like other processes to run while the thread is waiting. For example, I would like to create the thread, then print out several other strings, then after s seconds, the thread will run. What I don't need is the...
2018/03/06
946
3,295
<issue_start>username_0: I have a class annotated with Lombok's @Data, in a gradle project, using the Sonarqube and Jacoco plugins. The source code is available [here on github](https://github.com/andrewmaye/sonarqube-lombok) I have a locally running [sonarqube server](https://hub.docker.com/_/sonarqube/) running as ...
2018/03/06
892
2,091
<issue_start>username_0: ``` library(tidyverse) library(tigris) library(sf) santacruz <- tracts("CA", "Santa Cruz") coords_sf <- locations %>% st_as_sf(coords = c("Longitude", "Latitude"), crs=4269) ``` This should have the same CRS, but when I try ``` st_intersects(coords_sf, santacruz) ``` I get > > Error: ...
2018/03/06
626
2,022
<issue_start>username_0: I created a code that copies the data of an Access table and pastes it on an Excel spreadsheet, but I need the first row to be in a different format (with an extensible option menu like in Access). I mean, this is my first row: ![this](https://i.stack.imgur.com/i0PEX.jpg) And this is what I ...
2018/03/06
1,387
4,203
<issue_start>username_0: *I think this is a good quick demo of R's plumber library in general, but mainly I'm struggling to serve data in a csv format* I am working with R's plumber package to host an API endpoint for some sports data of mine. Currently I have some data that grabs win totals for MLB baseball teams tha...
2018/03/06
1,173
4,738
<issue_start>username_0: I am trying to design a Rails 5 application for a university. As a first step, I tried to design 'department' related models (units in general), such as faculties, vocational schools, institues, undergraduate programs, graduate programs etc. However I found the case a bit more complex than I ex...
2018/03/06
674
2,108
<issue_start>username_0: I'm trying to reverse the parts of a hierarchical name found in a dataframe so that I can work with the string for the reverse path. Here is what I did: ``` flip <- function(x) { # My attempted function str <- str_split(x,":",simplify=TRUE) paste(str[length(str):1], co...
2018/03/06
728
2,534
<issue_start>username_0: So, I have a Jmeter jmx file that, I execute by the command line and the result is automatically exported for a CSV file, I have an assertion of type View Result Tree where I defined the CSV. My problem is that if I execute with the GUI the Jmeter ask to override the CSV file that is the behavi...
2018/03/06
513
1,865
<issue_start>username_0: I have the following two files: <http://www.roostertooths.com/content/rvb/translations/test.html> <http://www.roostertooths.com/content/rvb/translations/test.php> They both have the following character encoding: ``` ``` The only difference between the two files is their file extension. Ho...
2018/03/06
663
2,179
<issue_start>username_0: Suppose I have a dataset: ``` Product DMA Home_sales A 1 5 A 2 12 A 3 13 B 1 5 B 2 12 B 3 13 ``` Is there a easy way/short cut to get to a data set where you have variables by product: ``` Product DMA Home_sales_A Home_sales...
2018/03/06
887
2,999
<issue_start>username_0: ``` SELECT SUM(`PR Requests`), CAR, Request_State FROM ( SELECT DISTINCT Po_Line_Amount AS `PR Requests`, Project_Code AS CAR, Request_State FROM Table1 WHERE NOT ( Request_State LIKE '%canceled%...
2018/03/06
1,037
3,280
<issue_start>username_0: I have the following piece of c++ code that opens a ZMQ-subscriber-socket and receives messages in an infinite loop. `listener.cc`: (Code should work, compile with: `g++ -lzmq listener.cc`) ``` #include #include class Listener { public: Listener() { std::cout << "constructor call" << std...
2018/03/06
550
1,760
<issue_start>username_0: After doing this, ``` char* example = (char*)malloc(10); ``` How can I change the 5th byte to 'a', so that `printf("%s", example);` would give me `" a "`?<issue_comment>username_1: The memory returned by `malloc` is unitialized. Besides setting the 5th byte to `'a'`, you need to set the othe...
2018/03/06
600
2,078
<issue_start>username_0: I have a newbie question. If we use React (or any other similar framework) in ASP.NET MVC we end up with very simple (single?) cshtml file which delegates UI rendering to React. So in that case, why bother with MVC? Shouldn't be a better idea to create WebAPI REST service, and a frontend client...
2018/03/06
856
2,286
<issue_start>username_0: I am pushing my docker image to AWS ECS. And, I am getting following error: file integrity checksum failed for "usr/lib/x86\_64-linux-gnu/libfftw3.so.3.4.4" Here is the full output: ``` The push refers to repository [myaddress.dkr.ecr.us-east-1.amazonaws.com/myrepositoryname] 3d4763f6944c: La...
2018/03/06
1,131
3,515
<issue_start>username_0: I have a question in vlc in python ``` import vlc sound = vlc.MediaPlayer('sound.mp3') sound.play() # i wanna wait until the sound ends then do some code without time.sleep() ```<issue_comment>username_1: You can use the get\_state method (see here: <https://www.olivieraubert.net/vlc/pyth...
2018/03/06
1,202
4,711
<issue_start>username_0: Numerous sources indicate that running a "bang" command such as `:! wc %` will display the results in Vim below the editor window. (For instance, [this tip sheet](https://www.linux.com/learn/vim-tips-working-external-commands) states that as the expected behavior.) Specifically, I'm following...
2018/03/06
595
2,082
<issue_start>username_0: With .Net Core 2.0 not supporting Report Viewer, is there any other alternative way of doing this? I found alanjuden's solution (<https://alanjuden.com/2016/11/10/mvc-net-core-report-viewer/>), but actually looking for official references. We have migrated our project from .Net Framework 4.5...
2018/03/06
592
1,942
<issue_start>username_0: I noticed Go creates a 16 byte internal representation of a 4 byte IPv4 Address when using: ``` // IPv4 returns the IP address (in 16-byte form) of the // IPv4 address a.b.c.d. func IPv4(a, b, c, d byte) IP { p := make(IP, IPv6len) copy(p, v4InV6Prefix) p[12] = a p[13] = b ...
2018/03/06
379
1,195
<issue_start>username_0: I'm trying to rearrange a string that contains a full name so that the second name is displayed before the first name. I've managed to split the string using the code below, however when I build it seems to be returning in array format ["second name", "first name"] rather than a string "secon...
2018/03/06
844
3,043
<issue_start>username_0: I installed **[Miniconda](https://conda.io/miniconda.html)** and I'm trying to use **[Jupyter Notebook](http://jupyter.readthedocs.io/en/latest/install.html)** with it but haven't been able to do so. After installing miniconda I ran the `jupyter notebook` command on my terminal and jupyter wasn...
2018/03/06
1,582
5,755
<issue_start>username_0: I am developing a main menu screen for a game I'm developing for Android using LibGDX. It requires three ImageTextButtons - Play, Settings, Log out. Each of these three buttons has a different image associated with it, however, when I run the application, each button has the same image - the lo...
2018/03/06
525
2,150
<issue_start>username_0: Scenario: User is running a macro-enabled Excel Workbook. User clicks a link on a UserForm that launches another macro-enabled Excel Workbook that also has user forms. The second Workbook is then closed using the following code: ``` Private Sub btnExit_Click() 'Check if other Excel files are ...
2018/03/06
7,454
24,535
<issue_start>username_0: When I am trying to convert the message output from Google Cloud Natural Language API to json using protobuf, the sentiment and magnitude fields end up with no value at all. If I don't use it and just print them they will have values. How can this be fixed? I tried it with both `json_results = ...
2018/03/06
675
2,201
<issue_start>username_0: If I have a instagram post is there anyway to get the facebook id for an instagram post? To be clear, if I were to look at <https://www.instagram.com/p/Bcqn51ynrd5/> I am able to find the instagram media-id by doing one of two things: * <https://api.instagram.com/oembed/?callback=&url=https://...
2018/03/06
774
2,494
<issue_start>username_0: In this program the user is supposed to enter a boy's name and a girl's name. The program is then supposed to output whether the two names were in the files or not. My program runs as of now, but no matter what name I enter it outputs that the name was not on the list. What do I need to do to f...
2018/03/06
1,669
5,765
<issue_start>username_0: I am trying to parse a big json file (hundreds of gigs) to extract information from its keys. For simplicity, consider the following example: ``` import random, string # To create a random key def random_string(length): return "".join(random.choice(string.lowercase) for i in range(le...
2018/03/06
1,444
5,613
<issue_start>username_0: I am using an F4 instance (because of memory needs) with automatic scheduling to do some background processing. It is run from a task queue. It takes 40s to 60s to complete each invocation. Because of the high memory needs, each instance should only handle one request at a time. The action tha...
2018/03/06
283
1,172
<issue_start>username_0: I’m building a React-Native social media app with a feature that allows you to find other users who are nearby. I know React Native has location services capabilities, but I’m not sure how I would implement this type of background location tracking. Anyone know?<issue_comment>username_1: I hope...
2018/03/06
1,296
4,465
<issue_start>username_0: I'm using **Debian 9 Stretch** and **Pycharm IDE** and trying to learn web-scramping; I installed the *Selenium* package simply by running: ``` pip install selenium ``` and the Firefox webdriver by running: ``` wget https://github.com/mozilla/geckodriver/releases/download/v0.19.1/geckodrive...
2018/03/06
797
2,916
<issue_start>username_0: I have the following code in my app to access `PeripheralManagerService`: ``` PeripheralManagerService service = new PeripheralManagerService(); Gpio ledGpio; try { ledGpio = service.openGpio("BCM6"); ledGpio.setDirection(Gpio.DIRECTION_OUT_INITIALLY_LOW); } catch (IOException e) { ...
2018/03/06
604
2,311
<issue_start>username_0: I'm struggling what the equivalent syntax is for changing the following code to the equivalent ES6 syntax. ``` export default class EventSessionItem extends Component { state = { isDetailsVisible: false, }; revealDetails = () => { this.setState({isDetailsVisible: t...
2018/03/06
639
2,460
<issue_start>username_0: currently I am creating an application using the Cordova engine plugin and angularJS library. I have created an app in both Android and iOS and everything seems okay in Android but for iOS, its a different story. <https://i.stack.imgur.com/SQKFE.png> Notice how on the select field (where it s...
2018/03/06
754
2,847
<issue_start>username_0: So i'm trying to implement google signIn for my app. I have my oAuth clients ID for the debug version, the release and everything. I also implemented Firebase. Well, everything works fine if i use DEFAULT\_SIGN\_IN in the Builder, but if i change that for DEFAULT\_GAMES\_SIGN\_IN, the intent d...
2018/03/06
396
1,658
<issue_start>username_0: I'm trying to create a contract that will dish out regular inflation to all holders of the token. Every x period, it needs to scan the addresses and calculate their inflation, minting new tokens and adding it to their total. What is the most cost efficient way to do this? Is it cheapest to ite...
2018/03/06
469
1,018
<issue_start>username_0: I have 5 files in a list. I need to create lists where each file is left out once. Example: ``` drive = [File_1, File_2, File_3 , File_4, File_5] new_list_1 = [File_1, File_2, File_3, File_4] # leaving out File_5 new_list_2 = [File_1, File_2, File_3, File_5] # leaving out File_4 new_list_3 =...
2018/03/06
508
2,040
<issue_start>username_0: I am testing an Electron/React app using Spectron, which uses the [WebdriverIO commands API](http://webdriver.io/api.html). I would like to test the attributes on some components, but I want to be sure I am testing them only after the component has reloaded. The normal WebDriverIO wait comman...
2018/03/06
471
1,632
<issue_start>username_0: I'm trying to set up a repo on our network drive at work. This repo will act as a remote that everyone else will push to/pull from, so I create a folder on the network drive where the repo will be: ``` cd path/to/remote mkdir ourGit cd ourGit git init --bare ``` On my local machine, I alread...
2018/03/06
1,369
4,994
<issue_start>username_0: For example, if I have the following 2D array: ``` 2 1 4 1 2 3 2 1 2 ``` and want to sort by each row, how I can I use the column values to have ascending order? In this case I am able to sort the first column in the array, getting ``` 1 2 3 2 1 4 2 1 2 ``` With this example,...
2018/03/06
1,015
3,753
<issue_start>username_0: I'm converting a project to Swift 3 and I'm getting this error below: ``` fileprivate class func moveAi() -> DataModel { let player = pathForPlayer(true) let i: Int let scope = GameModel.shared.scopeForPlayer(GameModel.shared.topPlayer.id, rival: GameModel.shared.dow...
2018/03/06
608
2,197
<issue_start>username_0: I am able to write to parquet format and partitioned by a column like so: ``` jobname = args['JOB_NAME'] #header is a spark DataFrame header.repartition(1).write.parquet('s3://bucket/aws-glue/{}/header/'.format(jobname), 'append', partitionBy='date') ``` But I am not able to do this with Glu...
2018/03/06
1,505
4,918
<issue_start>username_0: I'm using libudev in C/C++ with the hidraw subsystem to enumerate and communicate with custom HID devices - working well. My devices are assigned specific usb plugs and they are "hot swappable" - I need to know which plug is connected to each hidraw device. Is there a correspondence between the...
2018/03/06
2,037
6,954
<issue_start>username_0: I have a couple of child classes that I want to use but they both inherit a method from their parent that doesn't quite behave the way I need it to. ``` class ParentClass(): def __init__(self, value): self.value = value def annoying_funct(self): print("I don't do quite ...
2018/03/06
1,500
4,839
<issue_start>username_0: Is there an official complete table with all CSS properties and all possible values? I'm looking for all possibilities, including the latest "CSS4"/modules. I'm looking for the all encompassing version of <https://www.w3.org/TR/CSS21/propidx.html> (but that one only has CSS 2.1). This lists o...