date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/02
1,693
6,445
<issue_start>username_0: I build an Electron application using electron-forge's react-typescript template, meaning it uses electron-prebuilt-compile, which according to [the only documentation I can find](https://github.com/electron-userland/electron-compile) is supposed to just work. The index.html contains typescrip...
2018/03/02
314
1,368
<issue_start>username_0: I have several end points that have the same request Mapping : ``` @RequestMapping("/api/client/personal") @RequestMapping("/api/client/finance") @RequestMapping("/api/client/contacts") @RequestMapping("/api/client/job") ``` I want to find a way to have a root controller with `@RequestMappi...
2018/03/02
789
3,086
<issue_start>username_0: I have a Java class file that looks like following: ``` public class ToBeMapped { String value1; int value 2; } ``` Then I have a JSON file, named "test.json", looks like following: ``` { "value1": "hellow world", "value2": 12345 } ``` Then I try to map the JSON file to ...
2018/03/02
782
2,850
<issue_start>username_0: I have an `object` tag place in the html like this: ``` ``` The viewing experience is OK on my desktop, but I can't scroll the pdf on my mobile device. How can I add this functionality? I've tried with CSS and overflows but I guess I'm missing something. **EDIT** I've tried embedding a pdf ...
2018/03/02
1,096
3,323
<issue_start>username_0: Trying convert old SOAP message created by EWS to modern Graph API , Previously I succeed to create a message with specific dates due to sending MimeConent which already includes with dates Example: ``` xml version="1.0" encoding="UTF-8"? <EMAIL> //here MimeContent that has the ...
2018/03/02
745
2,184
<issue_start>username_0: Can I see what are the available GPUs with `mxnet`? Is there something similar for *TensorFlow*'s ``` tf.test.gpu_device_name() ``` in `mxnet`?<issue_comment>username_1: The definitive way to check if your GPU is being utilized is by using [`nvidia-smi`](http://developer.download.nvidia.com...
2018/03/02
627
1,863
<issue_start>username_0: I'm looking a way to get all records where the `word` column consists entirely of a single letter repeated 2 or more times Example: In a table I have something like this: ``` id word 1 house 2 dog 3 aaaa 4 eee 5 aaaaaa 6 car 7 aa 8 hook 9 arrow 10 oooooo 11 feel 12 tooth...
2018/03/02
299
1,017
<issue_start>username_0: I just set up my Wordpress domain to have an SSL certificate. It's working fine within the site, but if I'm coming from anywhere outside of my own website with anything other than https:// at the beginning, I just wind up on my homepage. For example, if I enter mysite.ca/about I am taken to my...
2018/03/02
982
4,043
<issue_start>username_0: I read MPI standard and found a section with MPI\_Put and MPI\_Get operations. However, it is not clear for me what benefits gives RMA that lays in the foundation of those functions. When it is better to use such functions instead of asynchronous MPI\_Isend, MPI\_Irecv? What is a general purpos...
2018/03/02
409
1,601
<issue_start>username_0: In Kotlin `open` is the same as not `final` in Java for classes and methods. What does `open` give me in the following class for the field marked as `open`? ``` @MappedSuperclass abstract class BaseEntity() : Persistable { open var id: Long? = null } ``` **updated** this is not duplicate o...
2018/03/02
1,401
5,100
<issue_start>username_0: So, a pattern I use very often while working on my UWP app is to use a `SemaphoreSlim` instance to avoid race conditions (I prefer not to use `lock` as it needs an additional target object, and it doesn't lock asynchronously). A typical snippet would look like this: ``` private readonly Semap...
2018/03/02
543
1,535
<issue_start>username_0: I'm try to reduce the dependency on packages and finds solutions to some statistical questions on mean, median, mode and weighted mean. So basically I have two arrays, let us call them A and B with N elements. What will be the weighted mean of elements in B. Here I do not want to use def weig...
2018/03/02
1,356
5,508
<issue_start>username_0: I am creating a set of API's for the first time. Here's one of the methods: ``` // GET: api/Doors/0 /// /// Get a list of all doors for a given organization. /// /// The Organization ID for which all doors should be retreived. /// [Route("{organizationSys:int}")] p...
2018/03/02
1,111
4,521
<issue_start>username_0: My problem is when i want to call a function in an event click into two id, the errors is **TypeError: e is undefined** code here: ``` function slide(e) { e.preventDefault(); $("#wrapper").toggleClass("toggled"); }; $("#menu-toggle").click(slide()); $("#menu").slide(); ```<issue_comm...
2018/03/02
1,968
7,062
<issue_start>username_0: I have four tables in a filtered-value schema and I am having trouble figuring out how to extend the existing view query to include an additional column based on the filter results. One table holds default item records, I call these ItemKeys in the example below. This table also holds a defaul...
2018/03/02
638
1,796
<issue_start>username_0: i have below file is my crontab, ``` 00 * * * * /home/@@@@/ulimit_nofile_status_20480.sh >> /export/####/$$$$$/ulimit_nofile_status.txt 00 * * * * /home/@@@@/ulimit_nproc_status_20480.sh >> /export/####/%%%%/ulimit_nproc_status.txt ``` i want to change the file name (ulimit\_nofile\_status...
2018/03/02
489
1,570
<issue_start>username_0: [![enter image description here](https://i.stack.imgur.com/C9I6l.png)](https://i.stack.imgur.com/C9I6l.png) (1 screenshot - ImageView visibility is visible, 2 screenshot - gone) When using `ImageView` with `CardView` we can say that shadow isn't visible at all (especially on the smartphone di...
2018/03/02
541
1,847
<issue_start>username_0: I have created a function as follows: ``` //function for first name field function name ($fname) { //validate to see if field is empty if (empty($fname)) { return (false); } $welcome_string = ' Welcome ' . $fname . '. We\'re glad you\'re here!...
2018/03/02
1,018
3,239
<issue_start>username_0: I'm trying to get all the comment votes from my database table which belongs to the comments in the `$comments` variable (referred to as item\_id in the comment\_votes table) and is > 0. But, I only get one of the vote row's (the last one) when running the script below. Based on the database ta...
2018/03/02
754
2,266
<issue_start>username_0: I'm running a program which creates product labels based on csv data. The function which I am struggling with takes a data structure which consists of a number combination(width of a wooden plank) and a string (name of product). Possible combinations I search for are as follows: 5 MAPLE PEPPER...
2018/03/02
672
1,877
<issue_start>username_0: I'm trying to convert a table of this format to a dictionary and having more trouble than I should. The table is of this format: ``` | | | | | | | | | --- | --- | --- | --- | --- | --- | --- | | A | B | C | D | E | F | G | | A value | B value | C value | D value | E value | F Value | ...
2018/03/02
1,872
6,140
<issue_start>username_0: While writing `re.compile`, i used `r` prefix many times (`re.compile(r'(xyx)`). However, I have seen (`re.compile(f'(xyx)`) for the first time and I am not sure what is it doing. The output does not make any sense to me either. Can someone please explain what this `f` is doing here? ``` impo...
2018/03/02
545
2,084
<issue_start>username_0: As an exercise I'm converting some old code to functional streams. I don't know much about streams. It seems like it should be simple to convert this code, but I haven't had much luck. The method starts at a given integer, passes it to isPrime, which returns true if it's prime. and then hands o...
2018/03/02
197
820
<issue_start>username_0: I'm having a hard time debugging my Firefox extension (popup). Whenever I click on the debug pane, the popup closes and all the information in the debug pane is gone. This happens when trying to inspect the network requests, copy something from the console, or look at the element styles in the ...
2018/03/02
439
1,562
<issue_start>username_0: First of all I would like to tell that I started to learn web programming a month ago and I think that the problem I am facing have an easy solution, but I could found it here. I dont know if its because its really simple that everybody knows or because I didnt found the right keywords to found...
2018/03/02
1,271
2,408
<issue_start>username_0: I'm working in Python 2.7.13 I have this simple code : ``` import math a = [1,3,9,10,11,56,99,100,101,106,555,998,999,1000,1001,1102,9999,10000,10001,10002] for i in a: print "%d : log : %f / floor : %f / int : %d" %(i, math.log(i,10), math.floor(math.log(i,10)), int(math.log(i,10))) `...
2018/03/02
432
1,104
<issue_start>username_0: I am using laravel web framework on centos 7 server and nginx web server, I installed php71w-gd and still getting this error when i want to upload a file ``` Intervention \ Image \ Exception \ NotSupportedException GD Library extension not available with this PHP installation. ``` you may ne...
2018/03/02
378
997
<issue_start>username_0: I am relatively new to android and I am working on an app which requires me to open google assistant from my own application. I do not intend to add conversations and my sole purpose is to mimic the "Home Button Long Press" which opens up Google Assistant. Any way I can do that? Thanks!<issue_c...
2018/03/02
548
1,415
<issue_start>username_0: I have a file that looks like this: ``` Level,Member HIGH,John HIGH,John HIGH,Paul HIGH,George REG,George REG,George REG,George REG,John REG,Paul REG,Paul REG,Ringo ``` If I want to append a count of the occurrence of data in the second column, this works great: ``` awk 'BEGIN{ FS=OFS="," }...
2018/03/02
454
1,256
<issue_start>username_0: I have a dataset with 450,000 columns and 450 rows - all numeric values. I load the dataset into a NumPy array with the `np.genfromtxt()` function: ``` # The skip_header skips over the column names, which is the first row in the file train = np.genfromtxt('train_data.csv', delimiter=',', skip_...
2018/03/02
830
2,122
<issue_start>username_0: QUESTION: I have a folder of paired-end files and I need to organize these files into subdirectories. Example of my files: ``` SampleName1_S1_L001_R1_001.fastq.gz SampleName1_S1_L001_R2_001.fastq.gz SampleName2_S2_L001_R1_001.fastq.gz SampleName2_S2_L001_R2_001.fastq.gz ... ``` I want the ...
2018/03/02
686
2,162
<issue_start>username_0: I can't convert a string passed throug command line to a function to float. I'll explain better. I have this function who takes two arguments, the second one is a float ``` def function(): first_param = sys.argv[1] second_param = float(sys.argv[2]) ``` Then I have this other functio...
2018/03/02
1,192
2,963
<issue_start>username_0: I have a dataframe in the following format (numeric columns with the first row corresponding to some name; data can be missing)- ``` col1.name | col2.name | col3.name | ... 132 | 12.1 | NA | ... 12.4 | NA | 14.6 | ... 13 ...
2018/03/02
771
2,930
<issue_start>username_0: I want to create a directory to store Vim's swap files in my `.vimrc`. I've found a few ways to do it, e.g.: ``` call mkdir($HOME . "/.vim/swap", "p", 0700) silent! call system('install -dm 700 ~/.vim/swap') ``` Which way is better and why?<issue_comment>username_1: The former: ``` call mkd...
2018/03/02
505
1,750
<issue_start>username_0: I have read the documentation on the [official website](https://material.io/components/android/catalog/chip/). But I was unable to implement Chip in my project following the documentation. Android Studio can't find and import **Chip** class as well as **Chip** view. I have also noticed that on...
2018/03/02
593
2,030
<issue_start>username_0: I'm creating an Addin for Excel using VB.NET and the [Excel-DNA Library](https://github.com/Excel-DNA). Functions created on my Addin project works perfectly when called as formulas on Worksheets. But I would also like them to be available when writing VBA code. So, let's say I have a function...
2018/03/02
1,019
3,051
<issue_start>username_0: first thing I run this command to install the `create-react-app` ``` npm install -g create-react-app ``` when It finishes everything and then I run the `create-react-app name` command it gives a weird error ``` C:\Users\<NAME>\Desktop>create-react-app swag-shop-web Creating a new React app...
2018/03/02
572
2,034
<issue_start>username_0: I am using Python tkinter to get a filepath. However, I don't know how the browsefunc to do with button. Basically, I would like user to click Browse button, then the user choose the file. Then the filepath can be saved to a variable that I can use latter on. Any help would appreciate. ``` imp...
2018/03/02
228
957
<issue_start>username_0: I was wondering if there is an easy way to use Google's Material Design Lite (<https://getmdl.io>) with a React native application. The problem is: React Native styles the application using JavaScript and style names are written using camel casing instead of the regular web style kebab case.<is...
2018/03/02
1,783
6,939
<issue_start>username_0: So I'm experimenting with ngrx & ngrx/effects by building the following sandbox: <https://stackblitz.com/edit/ngrx-vanilla> Quick intro: * it has a root store in app/store * it has lazy loading of two modules in app/features * it has singleton services in app/commons Three pages: * action ...
2018/03/02
1,119
4,100
<issue_start>username_0: edit: including codepen: <https://codepen.io/hugerobots/pen/YeMWbY?editors=1010> Following is a pretty simple exercise in mapping database items to output into a per child database item. The error after rendering (everything works until I implement the `map` below). > > Uncaught TypeError:...
2018/03/02
2,035
6,725
<issue_start>username_0: I am having some linker errors that I can't for the life of me sort out. I simply have a .h file and a .cc file that will not compile into an executable I won't post all my code except the makefile here: ``` # Compiler variables CCFLAGS = -Wall # Rule to link object code files to create execu...
2018/03/02
1,107
3,698
<issue_start>username_0: Let's say I have two modules: **a.py** ``` value = 3 def x() return value ``` **b.py** ``` from a import x value = 4 ``` My goal is to use the functionality of `a.x` in `b`, but change the value returned by the function. Specifically, `value` will be looked up with `a` as the source ...
2018/03/02
3,634
11,971
<issue_start>username_0: I'm currently working on a simple server/client application using C++ in Visual Studio to send a message from one computer to another via an Ethernet/LAN cable connection. I am using code for both client and server that I found online. When I run the programs on the same computer, I can receiv...
2018/03/02
1,136
3,257
<issue_start>username_0: I'm trying to get the last two of the link "Get started" and "Hire me" to right at the end of the navigation. I've attach a photo and also my code. I'm using SASS for styling I have Been try and error with this issue for 4 days.I managed to put it the way I wanted it using display flex, it wor...
2018/03/02
633
2,416
<issue_start>username_0: Rails migrations allow you to specify a max length for a string column with the limit attribute. Is there a corresponding attribute for minimum length or can it only be done through validations on the model?<issue_comment>username_1: Yes, it's posible. Like [Rails Guides](http://edgeguides.ruby...
2018/03/02
1,152
3,079
<issue_start>username_0: I'm trying to split a log line which looks like this: ``` 15:10:10,408 INFO Raw Message: 8=FIXT.1.1|9=317|35=D|49=verifix| ``` into something like this: ``` 15:10:10 408 INFO NioProcessor-11 FIXT.1.1 317 D verifix ``` each information in split. I have tried to split it with the split f...
2018/03/02
951
3,044
<issue_start>username_0: I have this dataset ``` DATA Problem3; INPUT name $ Smoke_Tobacco $ Drink_Alcohol $ Take_Illegal_Drugs $ Drink_Soda $; DATALINES; Tom yes no no yes Harry Yes Yes Yes No Jim No No No Yes Bob Yes No No Yes Andy No Yes No Yes Cody yes no no no Ed Yes no no yes ...
2018/03/02
681
2,420
<issue_start>username_0: I am developing my own eclipse editor and need to switch between different contexts for key binding. Currently I am doing the context activation/deactivation manually upon part activation. This page <https://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fworkbe...
2018/03/02
755
2,659
<issue_start>username_0: I have a select list: ``` United States Germany ``` And some json ``` [ { "selection":"US", "foo": "lorem" }, { "selection":"US", "foo": "lorem lorem" }, { "selection":"DE", "foo": "ipsum" }, { "selection...
2018/03/02
2,066
8,420
<issue_start>username_0: I have a task to get "StackOverflowError" in java without using -Xss and recursion. I really don't have ideas... Only some nonsense like generating huge java class at runtime, compile it and invoke...<issue_comment>username_1: Java stores primitive types on the stack. Objects created in local s...
2018/03/02
436
1,589
<issue_start>username_0: I am trying to build a javascript function that will update an input field every second with a new number. This is essentially what I'm hoping my function can do, and hopefully someone can give me a pointer about what I'm doing wrong. ``` var myVar = setInterval(function(){ getNumber() }, 10...
2018/03/02
1,468
5,701
<issue_start>username_0: I did a little bit of research to know if private instance fields and methods are inherited by a subclass from its superclass. Actually, I red on different forums contradictory answers but the most convincing one was that, like the java documentation tells, private fields and methods are never...
2018/03/02
668
2,698
<issue_start>username_0: I am developing a website with slightly different CSS code for desktop and mobile. On mobile I use `vw` units for responsive font-sizes, which is preferred over media queries as mobile screen sizes change every other year and a different approach would require me to update the media queries as ...
2018/03/02
513
1,777
<issue_start>username_0: I tried to use ``` sqlDr.GetValue(a).ToString() ``` to display a DATE column from my database which looks like this..(the Date Submitted column) [![enter image description here](https://i.stack.imgur.com/YfF3o.png)](https://i.stack.imgur.com/YfF3o.png) But the problem is , when i display...
2018/03/02
204
684
<issue_start>username_0: I am using Lumen 5.5 and using the following code chunk under app/providers/appServiceProvider.php in boot method. \URL::forceSchema('https'); It was compatible with the earlier version of Lumen 5.2 Is there any way to sort this out without using mod\_rewrite and middleware approaches.<issue...
2018/03/02
673
2,258
<issue_start>username_0: While going through a [flower classification tutorial](https://cloud.google.com/ml-engine/docs/flowers-tutorial), I ran into a python issue. Trying to run the trainer preprocess script with the command ``` python trainer/preprocess.py \ --input_dict "$DICT_FILE" \ --input_path "gs://c...
2018/03/02
4,757
14,244
<issue_start>username_0: I am not sure what I'm missing now, when I try draggin on view where list is to appear I kinda shows the recycler view present but there is no data on it. I don't get any errors but no remote data is populated on view. I have a main activity that hosts a fragment whose contents are dynamically ...
2018/03/02
2,336
6,538
<issue_start>username_0: I want to create a customized docker image and be able to use kubernetes to pull my customized docker image from private docker registry. Here are my setups: Environment: docker registry ip:10.179.143.115 kubernetes master ip: 10.179.143.113 1. generate a certificate: > > > ``` > curl -O h...
2018/03/02
1,557
4,926
<issue_start>username_0: As a follow up question of [Docker run cannot find executable "uwsgi"](https://stackoverflow.com/questions/49073975/docker-run-cannot-find-executable-uwsgi) : I have successfully executed `docker build` and `docker run` with the Dockerfile as: ``` FROM python:2-onbuild # Set the working dir...
2018/03/02
745
2,192
<issue_start>username_0: I want to convert an array with some operations into an object of key and value. Here is my attempt: ``` const config = [ 'key1=value1', 'key2=value2' ]; const configObject = config.map(c => { var key = c.split('=')[0]; var value = c.split('=')[1]; return {key:value} }) console.log('c...
2018/03/02
2,146
4,188
<issue_start>username_0: I'd like to generate cumulative sums with a reset if the "current" sum exceeds some threshold, using dplyr. In the below, I want to cumsum over 'a'. ``` library(dplyr) library(tibble) tib <- tibble( t = c(1,2,3,4,5,6), a = c(2,3,1,2,2,3) ) # what I want ## thresh = 5 # A tibble: 6 x 4 # ...
2018/03/02
951
3,211
<issue_start>username_0: I have trouble with making an "add role" command in discord.py. I don't know what is wrong; it just doesn't work. ``` @client.command() @commands.has_role("Admin") async def addrole(ctx): user = ctx.message.author role = discord.utils.get(user.server.roles, name="Test") await clien...
2018/03/02
452
1,675
<issue_start>username_0: I want, per button click, to increase the variable `hey`. However, it doesn't increase. What's going wrong? ```js var hey = 0 function hi() { hey = ++hey } document.write(window.hey) ``` ```html HI ```<issue_comment>username_1: Currently, you only output the value once upon load. ...
2018/03/02
1,053
3,593
<issue_start>username_0: I have the following code to compare numbers and increment a variable if true or false ``` failcheck1: mov eax, val1 add ebx, 4 cmp eax, 40 jl failinc1 mov eax, passes inc eax mov passes, eax jmp f...
2018/03/02
1,544
4,295
<issue_start>username_0: ``` Name1 Col1 Col2 Col3 Name2 Col4 Col5 Col6 Col7 John A A A Alex B B B 1 Alex B B B John A A A 0 ``` Looking at the data frame above, I would like to select the data based on th...
2018/03/02
255
788
<issue_start>username_0: Bash scripting: I need to compare the output of `wc -l` with a variable--to match greater than or equal to that variable. The following code doesn't work but shows what I am trying to do. ``` #!/bin/bash minimum_finds=1 found=$(locate this_is_the_file_i_want.txt|wc -l) if [[ $found >= $minimu...
2018/03/02
184
646
<issue_start>username_0: I don't know the name of this window, and can't remove it. What it is called and how to remove it? [![enter image description here](https://i.stack.imgur.com/n2Ww8.png)](https://i.stack.imgur.com/n2Ww8.png)<issue_comment>username_1: Those list the hidden/non-visual `Component` objects. Called ...
2018/03/02
5,466
21,660
<issue_start>username_0: While I am a long time user of Stackoverflow, this is my first question. I am working to deploy SSIS Projects via Powershell. I am a Senior .NET Developer not a DBA. I have very little familiarity with SSIS package deployment. I have worked through several blog / tutorials to gain the unde...
2018/03/02
1,571
5,604
<issue_start>username_0: I keep getting the following error message when I try to run this statement. I'm running it inside of an OLE DB command in SSIS. > > Incorrect syntax near ')' > > > Obviously this is an easy to read error message but I don't know why I'm getting it. I've checked the T-SQL documentation an...
2018/03/02
1,862
6,692
<issue_start>username_0: I have a problem with generating multiple one-to-many relationship for a model using factories in Laravel. The factories seem to only be generating one ClubFixture per Club, when they should be generating 5 ClubFixtures per Club. **Models** **Club** ``` php namespace App; use Illuminate\Da...
2018/03/02
2,283
4,981
<issue_start>username_0: Using the function below it is more convenient to create an array of random integers. ``` def generate_random_strings(x, i, j): return np.random.randint(0, 2, size=[x, i, j]).astype(np.float32) print (generate_random_strings(3, 5, 4)) [[[0. 0. 0. 0.] [0. 1. 1. 0.] [0. 1. 1. 0.] [0. 0. 0...
2018/03/02
800
2,570
<issue_start>username_0: When I do the following: ``` git add * git commit -m "msg" git push origin develop ``` I get the following errors: ``` Counting objects: 25, done. Delta compression using up to 4 threads. Compressing objects: 100% (24/24), done. Writing objects: 100% (25/25), 46.43 MiB | 2.49 MiB/s, done. T...
2018/03/02
630
2,077
<issue_start>username_0: I get the dreaded `java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex` error. The stack trace shows the root cause as: ``` Caused by: com.android.dex.DexException: Multiple dex files define Landroid/support/v7/recyc...
2018/03/02
2,972
11,562
<issue_start>username_0: I would like to save this kind of `arrays` with `Core Data`: ``` let crypto1 = Cryptos(name: "Bitcoin", code: "bitcoin", symbol: "BTC", placeholder: "BTC Amount", amount: "0.0") let crypto2 = Cryptos(name: "<NAME>", code: "bitcoinCash", symbol: "BCH", placeholder: "BCH Amount", amount: "0.0") ...
2018/03/02
597
2,144
<issue_start>username_0: I have a `Meteor.method()` that server side returns a promise from `oracledb`. Client side I have: ``` Meteor.call('myMethod', (error, result) => { result.then() // err -> no .then() method?, }); ``` So what is `result`? It does not have a `.then()` method, so it is not a promise?<issue_c...
2018/03/02
840
2,384
<issue_start>username_0: I am trying to get the column names which have cell values less than .2, without repeating a combination of columns. I tried this to iterate over the column names without success: ``` pvals2=pd.DataFrame({'col1': [1, .2,.7], 'col2': [.2, 1,.01], 'col3...
2018/03/02
789
3,096
<issue_start>username_0: I have found code for this but have only found code that specifies excel files not one that allows me to open any document. Basically I have a button on a work sheet that needs to open a file explorer when clicked on. Once it has been clicked on it needs to direct the user to a specific file pa...
2018/03/02
483
1,685
<issue_start>username_0: I'm trying to save text file as UTF-8 by using Laravel's Storage facade. Unfortunately couldn't find a way and it saves as us-ascii. How can I save as UTF-8? Currently I'm using following code to save file; Storage::disk('public')->put('files/test.txt", $fileData);<issue_comment>username_1: Y...
2018/03/02
532
2,181
<issue_start>username_0: Recently purchased a SSL certificate but it looks like the website won't load the site CSS. This is the link, <https://www.rentpayment.com/> By viewing the Console error message, this seems to be the issue: ``` ``` Obviously changing the http to https would solve the problem, however, this ...
2018/03/02
685
2,649
<issue_start>username_0: I am trying to install mariadb columnstore api (java wrapper of cpp version) on RHEL 7 and it has dependency on pythong34. The following command can not find the package. ``` sudo yum install python34 or to search sudo yum search python34 ``` Other server already have the package installed a...
2018/03/02
504
1,870
<issue_start>username_0: I have both a text input and a dropdown that allows additions (both use the Form.xxx version). For both of these, I would like to add an x icon on the right, that when clicked, will either call a handler or will clear the input's value. Is this possible in semantic-ui-react? Thank you<issue_c...
2018/03/02
548
1,264
<issue_start>username_0: I have a dataframe: ``` pd.DataFrame([[1,2,3],[111,222,333]], columns=['A', 'B', 'C']) A B C 0 1 2 3 1 111 222 333 2 11 22 33 ``` I need to convert each row in A and C to dict. I should be able to get this: ``` {'1':'3', '111':'333', '11':'33'} ``` So fa...
2018/03/02
1,115
3,149
<issue_start>username_0: In a Java method that receives a java.util.UUID Object, I would like to display this object as a string in the .NET/C# format (CSUUID). Currently I am only able to display it in the Java format (JUUID) : ``` static String GetStringFromUuid (java.util.UUID myUuid){ return myUuid.toString()...
2018/03/02
867
2,461
<issue_start>username_0: ``` public class WC { private ArrayList note; public WC() { note = new ArrayList(); } public static void main(String[] args) { Scanner input = new Scanner(System.in); WC w1 = new WC(); w1.note.add(input.next()); } } ``` but it won't scan more than one word what should I do?<i...
2018/03/02
2,233
8,619
<issue_start>username_0: I've been trying to work with an API that only accepts raw text or base64 encoded values in a JSON object. The content I'm POSTing is data from an XML file. So I used Powershell's `Get-Content` cmdlet (without `-Raw`) to retrieve the data from the .xml and then base64 encode it and sent it to t...
2018/03/02
879
3,217
<issue_start>username_0: Experts, It seems that yelp recently changed their REST API to limit the amount of requests you can make per second. I've tried using setTimeout and various sleep functions with no success. I believe it has to do with setTimeout although. I only get a few responses back and a slew of TOO\_Many...
2018/03/02
561
2,028
<issue_start>username_0: Working on updating the Dashboard in TFS for a new sprint. I have a chart which shows a "Chart for Work Items" widget with a "Stacked area" chart of all the stories which is stacked by "state". Then, I have the stories plotted using "Aggregation" and "sum" along with "Effort". This worked in th...
2018/03/02
384
1,510
<issue_start>username_0: I am still in early stages of my programming and I was thinking about creating something which does API calls after every x seconds and update my website with new content. My intial goal is to populate a table with the content obtained from API using FOR loop (.ejs page). Now, I want to upd...
2018/03/02
1,337
4,673
<issue_start>username_0: Is there a way to write the following function in Haskell: ``` get_nth_element :: Int->(???)->(???) get_nth_element n tpl = ... ``` I'm interested in a solution for tuples, not lists, for which the solution is trivial. The reason being that tuples can aggregate different types, of course. ...
2018/03/02
442
1,682
<issue_start>username_0: Today we have an app in applestore with a version labeled as 7.6.2 and internal build number as 1.0.0. We are using mobilefirst 7.1 to develop. Problem is that now we have a new app, that is 7.6.2.1, but we would like to know if is possible continue to use 7.6.2 app from applestore onto 7.6.2.1...
2018/03/02
1,023
3,470
<issue_start>username_0: I would like to filter sms per phone number and date the SMS was sent using REST API, however the output of the following code is not available outside of client.messages.each() block. Please advise how I can use the latest sms code sent to the filtered number: ``` const filterOpts = { to: '...
2018/03/02
1,080
4,134
<issue_start>username_0: I'm having issues adding a project interpreter to PyCharm from a new Anaconda environment. I have Anaconda2 installed with one Python 2.7 environment (C:\Anaconda2\python.exe) that I've been using on Pycharm without issue for several months. I am attempting to add a second Python 3.6 interpre...
2018/03/02
1,359
4,630
<issue_start>username_0: How can I force `build.rs` to run again without cleaning my whole project? I checked `cargo build --help` but I couldn't find anything related to `build.rs`.<issue_comment>username_1: If you print ``` "cargo:rerun-if-changed=" ``` the build will be triggered every time the file has changed....
2018/03/02
340
1,215
<issue_start>username_0: I'm trying to write a query in Query Manager that I intend to put on a recurrence. Right now, I have a field that is using the DATEADD sql code and it works well for my needs. The problem is, this is a new hire report and I want it to look back 7 days every time it's run. I would think the co...
2018/03/02
550
1,887
<issue_start>username_0: I want to save my images with using save\_image() function in media model.. Here is my media model; ``` class Media extends Model { public function save_image($file) { $realname = str_slug(pathinfo($file->getClientOriginalName(), PATHINFO_FILENAME)); $extension = $file->ge...
2018/03/02
2,349
7,020
<issue_start>username_0: There seems to be no easy answer in stackoverflow for this problem. I simply want to get the difference between two Calendar instances and display in HH:mm:ss.SSS So far, I have ``` SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); ...
2018/03/02
541
1,827
<issue_start>username_0: How do I ignore missing keys in a `pd.DataFrame.from_dict` comprehension iteration? @jezrael kindly answered my problem on making a df with dictionary values here: <https://stackoverflow.com/a/49072184/9242601> But I encountered a `Key Error: 'fees'` error because not all "Customers" have a ...
2018/03/02
1,301
5,923
<issue_start>username_0: I have this code that I try to convert the method reference ("String::length") into equivalent lambda expression. ``` Stream s = Stream.of("hello", "<NAME>", "welcome", "z"); List list = s.sorted((a, b) -> Comparator.comparingInt(String::length).compare(a, b)).collect(toList()); // List l...
2018/03/02
1,087
3,836
<issue_start>username_0: We all know dependency injection makes packages decoupled. But I'm a little confused about best practices of dependency injection in go. Lets assume package User needs to access Config package. We can pass a Config object to User methods. In this way I can change the Config package functi...