date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/15 | 654 | 2,154 | <issue_start>username_0: I have multiple tables named like so MOM2016, MOM2017, MOM2018.
When i run query in phpmyadmin
```
SHOW TABLES LIKE 'MOM%'
```
it returns 3 items as expected.
BUT!!!! When i run in php, my code seem to give me only 1 item in the array (first one only MOM2016).
```
$sql = "SHOW TABLES LIKE... |
2018/03/15 | 508 | 1,709 | <issue_start>username_0: Question is quite simple, how do I print a deque, but from behind. Example: I have a deque with elements {5,4,3,2,1}. I want to print that deque, but starting from the last element, so I should have someting like 1 2 3 4 5 on my screen.
Usual `for(int i(deque.size()); i > 0; i--)` loop obvious... |
2018/03/15 | 1,516 | 6,067 | <issue_start>username_0: I'm wondering if is it possible to make the "property name" dynamic in the filter expressions
Consider scenario
```
List GetPerson(int countryID, int stateID, int cityID, int zip)
{
//List of person can be filtered based on below line of code
List filteredPersons= persons.FindAll(rule => rul... |
2018/03/15 | 1,715 | 6,904 | <issue_start>username_0: I'm having issues with a triple nested IF statement.
I have a form which has a question with two radio buttons, this question is not always visible. I want to capture the selection made, but as default the radio buttons aren't selected and are still visible in the source code but use CSS displ... |
2018/03/15 | 1,242 | 4,052 | <issue_start>username_0: I'm trying to implement basic ajax. I've been following [this tutorial](https://pippinsplugins.com/using-ajax-your-plugin-wordpress-admin/). My JS fires when I click the button but I get a `400` from the ajax url: `POST http://localhost:8080/wp-admin/admin-ajax.php 400 (Bad Request)`
As far as... |
2018/03/15 | 2,152 | 5,423 | <issue_start>username_0: I'm new to Python and I'm working on a project for a Data Science class I'm taking. I have a big csv file (around 190 million lines, approx. 7GB of data) and I need, first, to do some data preparation.
Full disclaimer: data here is from this [Kaggle competition](https://www.kaggle.com/c/talkin... |
2018/03/15 | 708 | 2,685 | <issue_start>username_0: The simple animation example show in the Windows UWP docs under the section of Visual Layer and sub-section of Time animation is not working...
[](https://i.stack.imgur.com/PsXIC.png)
Above is the code example shown in the d... |
2018/03/15 | 1,559 | 4,988 | <issue_start>username_0: When I try to decode JSON I get the error:
>
> (Error: typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [sweetyanime.Video.(CodingKeys in \_D1045E05CDE474AEBA8BDCAF57455DC3).video, sweetyanime.iD.(CodingKeys in \_D1045E05CDE474AEBA8BDCAF57455DC3).ID, sweetyanime.other.(Codin... |
2018/03/15 | 3,500 | 9,579 | <issue_start>username_0: I have a simple GUI made with `PyQt5` with two `QWidgets` and two pushbuttons. Each pushbutton generates a bar chart. This part works perfectly but when the size of the window changes, the left bar chart overwrites the one on the right side (i.e. I have the same bar chart twice). How can I prev... |
2018/03/15 | 969 | 3,578 | <issue_start>username_0: I have 3 different tables I need to pull data from. What needs to happen is we pull posts from the posts table where the user who made the post is set as a public user, or if set as private, users they grant access to can view their posts.
Here are the tables:
```
user: id, username, name, pa... |
2018/03/15 | 426 | 1,322 | <issue_start>username_0: I am looking for a solution to find an unused number in the table. The most of the solutions I came across so far is creating a temporary table with all the numbers and used left join to find the unused number. In my case, I have no opportunity to create a temporary table.
The number range wit... |
2018/03/15 | 739 | 2,472 | <issue_start>username_0: How would I go about checking if the Windows operating system is 32 or 64 bit during runtime? I would like to compile the application once for 32-bit, but have it be used for both versions, so using macros is out of the question.
From what I can tell, I'm supposed to use [QSysInfo](http://doc.... |
2018/03/15 | 660 | 2,140 | <issue_start>username_0: I have all menu on one canvas. How can I check which scene I am using now? I try this code, but it always shows that index of the scene is 0.
```
Scene currentScene = SceneManager.GetActiveScene ();
string sceneName = currentScene.name;
int buildIndex = currentScene.buildIndex;
```<issue... |
2018/03/15 | 350 | 846 | <issue_start>username_0: I want to count the number of numbers (not digits) in a string that are separated by spaces.
```
tst1 = "69 21 -"
tst2 = "69 24 7"
## ATTEMPT:
grep('([0-9])', tst1, perl = TRUE) ## EXPECT 2
grep('([0-9])', tst2, perl = TRUE) ## EXPECT 3
```<issue_comment>username_1: You could use the `str_... |
2018/03/15 | 977 | 3,540 | <issue_start>username_0: I am using the sharp library to create dynamic JPEG license plate images.
Basically, I have a PNG that is a vanity license plate with no numbers. Then I create an svg in code like so
```
const svg = new Buffer(
`
<![CDATA[
@font-face {
font-family: LicensePlate;
src: url('Lic... |
2018/03/15 | 375 | 1,444 | <issue_start>username_0: I got a lot of entities, 160 to be specific. I need to override `toString` method in all of them.
My question is: Is there some shortcut on Intellij or some external tool where I can auto generate `toString` method in all of those entities?<issue_comment>username_1: In Intellij i supposed it ca... |
2018/03/15 | 733 | 2,797 | <issue_start>username_0: After updating MassTransit packages to the latest version (4.1.0.1426-develop) I experience problems with registering more then 26 queues. For example, code below crushes with error
>
> [20:51:06 ERR] RabbitMQ Connect Failed: Broker unreachable:
> guest@localhost:5672/test
>
>
>
```
stat... |
2018/03/15 | 1,147 | 3,206 | <issue_start>username_0: My ultimate goal is to get an array of Ints extracted from a String inputted in a textfield. For this I created a function whose parameter is a String. I use a for-loop to get all the characters from the textfield into an array. Then I loop through the array and append only the numbers (if they... |
2018/03/15 | 710 | 2,300 | <issue_start>username_0: How to use opencv to perfectly extract the digits text from the below image? The color of the text are dynamic.
[](https://i.stack.imgur.com/IinvD.png)
[](htt... |
2018/03/15 | 532 | 2,121 | <issue_start>username_0: ```
compile 'com.squareup.picasso:picasso:2.5.2'
```
This the dependency of picasso that i downloaded, After downloading it i use it in the project
```
Picasso.with(context)
.load(R.drawable.user)
.centerCrop()
.resize(avatarSize, avatarSize)
.... |
2018/03/15 | 264 | 893 | <issue_start>username_0: the code below replaces numbers with the token NUMB:
`raw_corpus.loc[:,'constructed_recipe']=raw_corpus['constructed_recipe'].str.replace('\d+','NUMB')`
It works fine if the numbers have a space before and a space after, but creates a problem if the numbers are included in another string.
H... |
2018/03/15 | 1,362 | 4,231 | <issue_start>username_0: How would you store an ordered list of N items in Google Firestore?
For example, a todo list. I had a couple of ideas but neither seem that smart.
You could put a 'position' key on the item but that would require updating all of the items' position value when one changes.
You could store t... |
2018/03/15 | 963 | 3,451 | <issue_start>username_0: I'm a Java programmer forced to do some C++. What a nightmare! I'm trying to send a POST request to a web service like this:
```
#include
#include
#include
static TCHAR hdrs[] = \_T("Content-Type: application/x-www-form-urlencoded");
static TCHAR frmdata[] = \_T("id=01&message=test\_mess... |
2018/03/15 | 3,078 | 8,074 | <issue_start>username_0: Hi I am relatively new in R / `ggplot2` and I would like to ask for some advice on how to create a plot that looks like this:
[](https://i.stack.imgur.com/h7ln7.jpg)
Explanation: A diverging bar plot showing biological funct... |
2018/03/15 | 800 | 3,414 | <issue_start>username_0: hi guys messing with the youtube api for android. ive got it all set up and working. im using my firebase database to send all relavent info to my app in the form of a list. all works great the list shows, the video plays from the list. and goes in to full screen ok.. but if i want to click ano... |
2018/03/15 | 1,021 | 3,638 | <issue_start>username_0: I'm trying to build a Rails API with the following JSON structure:
```
{ team: "team_name",
players: players: [
{
name: "player_one",
contracts: [
{
start_date: '7/1/2017',
seasons: [
{
year: 2017,
salary: 10... |
2018/03/15 | 3,338 | 11,675 | <issue_start>username_0: I am writing a script that does a Copy-S3Object from S3 using Powershell, however, I need to check the bucket before for a .ready file. The bucket has a folder /test/\*.ready. I know how to check my local for a file, but can't figure out how to check the S3:
```
Initialize-AWSDefaultConfig... |
2018/03/15 | 1,235 | 3,467 | <issue_start>username_0: I have a table containing:
```
table = [[1,'THEINCREDIBLES'],[2,'IRONMAN']]
```
and I want to convert the words in each list in table into its numeric representation (ASCII).
I've tried:
```
movie = 'THEINCREDIBLES'
h = 0
for c in movie:
h = h + ord(c)
print(h)
```
and it works but i... |
2018/03/15 | 507 | 1,754 | <issue_start>username_0: I can upload my images while i'm working on local but when I moved my site to host it doesn't upload images while get names of them in database,
my `filesystems.php`
```
'default' => env('FILESYSTEM_DRIVER', 'local'),
disks' => [
'local' => [
'driver' => 'local',
... |
2018/03/15 | 1,574 | 6,797 | <issue_start>username_0: I am trying to call an API asynchronously using Spring's Async and using the ThreadPoolTaskExecutor in my Thread Config which goes:
```
@Configuration
@EnableAsync
public class ThreadConfig extends AsyncConfigurerSupport {
@Value("${core.pool.size}")
private int corePoolSize;
@Value("${max.... |
2018/03/15 | 977 | 3,096 | <issue_start>username_0: I'm having some trouble counting the number of occurrences of a key, while also keeping several values.
Usually I will just do:
```
val a = file1.map(x => (x, 1)).reduceByKey(_ + _)
```
which gives the number of occurrences for each key.
However, I also want to keep the values for each occ... |
2018/03/15 | 709 | 2,464 | <issue_start>username_0: I'm wondering if it is possible to add a custom rule or modify an existing rule - as mentioned in <https://docs.sonarqube.org/display/DEV/Adding+Coding+Rules> - to our SonarCloud instance.
We've setup SonarCloud on a couple of private projects and I want to - for instance - modify rule 'php:S1... |
2018/03/15 | 857 | 2,432 | <issue_start>username_0: Given a ndarray of size `(n, 3)` with `n` around 1000, how to multiply together all elements for each row, fast? The (inelegant) second solution below runs in about 0.3 millisecond, can it be improved?
```
# dummy data
n = 999
a = np.random.uniform(low=0, high=10, size=n).reshape(n/3,3)
# two... |
2018/03/15 | 2,576 | 8,315 | <issue_start>username_0: I have an Intel NUC (I5) and Raspberry-Pi Model-B . I tried to create a kubernetes cluster by making the Intel-NUC as master node and Raspberry-Pi as worker node.When I try the above set up, I see that the worker node crashing all the time . Here's the output . This happens only with the above ... |
2018/03/15 | 598 | 2,154 | <issue_start>username_0: I'm using a function to create multiple buttons for my game.
```
func createButton() {
let button = UIButton()
button.setTitle("", for: .normal)
button.frame = CGRect(x:15, y: 50, width: 200, height:100)
button.backgroundColor = UIColor.red
self.view.addSubview(button)
... |
2018/03/15 | 2,186 | 7,880 | <issue_start>username_0: During my project, I am confronted with C program.
1. As shown below, `htmp` is a struct pointer. We first allocate a memory for it. But why should we allocate a memory for its element `word` again?
2. If it's essential to allocate memory for each element of a struct, why not allocate memory ... |
2018/03/15 | 431 | 1,485 | <issue_start>username_0: We are starting to use the MySQL json datatype. Is there any recommended best practices when storing default values as `NULL` or `{}` for the JSON datatype? What are the PROs and CONs for each?<issue_comment>username_1: This would depend upon your business use-case.
* `null` is usually meant ... |
2018/03/15 | 486 | 1,744 | <issue_start>username_0: I'm banging my head against a wall here. Just started learning SQL, I have three tables like this:
Table CD (num, producer, band\_name, cd\_name)
Table BandSingers (band\_name, singer\_id)
Table Singer (id, name)
I'm trying to figure out how to get the name of the singer that shows up on th... |
2018/03/15 | 812 | 2,888 | <issue_start>username_0: I'm testing some prototype application. We have json data with nested fields. I'm trying to pull some field using following json and code:
```
Feed: {name: "test",[Record: {id: 1 AllColumns: {ColA: "1",ColB: "2"}}...]}
Dataset completeRecord = sparkSession.read().json(inputPath);
final Datase... |
2018/03/15 | 514 | 1,902 | <issue_start>username_0: I've got a list of Person objects like this:
```
list.add(new Person("John", 20)); //person is just name and age
list.add(new Person("Maria", 21));
list.add(new Person("John", 40));
list.add(new Person("Carl", 10));
```
The resulting list must have no persons with the same name, regardless o... |
2018/03/15 | 681 | 2,007 | <issue_start>username_0: I have this kind of strings in a table:
* AM-65-800
* AM-75/86-650
* D-27-600
What I'm trying to do is to get only the middle part, for example:
* 65
* 75/86
* 27
Basically the substring after and before the '-' Char
I tried this (from an example in here):
```
SELECT SUBSTRING(Product.Na... |
2018/03/15 | 614 | 1,701 | <issue_start>username_0: I have two anchor tags within a single div. I want to apply the padding style only if the div has one anchor tag. For example the set 2, shouldn't show padding
```css
.email a {
padding-top:10px;
display: block;
} // for set 1
//I need to remove padding for a tag when div having two a... |
2018/03/15 | 1,095 | 3,359 | <issue_start>username_0: I have a UIButton that I am placing on a different UIView than the one it is declared in but I want the Target Selector to be in the UIView I declared the button in. The init\_button function is getting called because the button is being placed on the view. Here is what I have:
```
import Fou... |
2018/03/15 | 1,629 | 5,825 | <issue_start>username_0: I'm trying to use the Python library *Pygmo2* (<https://esa.github.io/pagmo2/index.html>) to parallelize an optimization problem.
To my understanding, parallelization can be achieved with an *archipelago* of *islands* (in this case, *mp\_island*).
As a minimal working example, one of the tuto... |
2018/03/15 | 1,275 | 4,858 | <issue_start>username_0: I am writing a program to calculate a gpa. the only thing that doesn't work is when I try to write code to prevent the gpa from going over 4 or under 0. here is my whole class. I think the problem may be somewhere in my gpa full property. in my program class where I call the functions I have co... |
2018/03/15 | 1,251 | 4,811 | <issue_start>username_0: I have just added SQLite to my asp.net webApi project, and am having trouble working out how get the path to the App\_Data folder to pass to `DbContextOptionsBuilderUseSqlite`
I have the following in the `web.config` I have a link to an external a config file with the conenction string...
```... |
2018/03/15 | 595 | 1,825 | <issue_start>username_0: I want to find the max number among the first and second elements of each array inside the array of arrays separately:
```js
function largestOfElements(mainArray) {
return mainArray.map(function(subArray) {
return subArray.reduce(function(previousLargestNumber, currentLargestNumber) {
... |
2018/03/15 | 1,891 | 4,375 | <issue_start>username_0: Using python/numpy, I can create the 3D array (note the matrix exponential function) I want like so
```
import numpy as np
from scipy.linalg import expm
a = np.arange(3)
B = np.ones((2,2))
C = np.zeros((2,2,3))
for i in range(3):
C[:,:,i] = expm(a[i]*B)
```
which yields for C, the 3D a... |
2018/03/15 | 1,664 | 3,922 | <issue_start>username_0: How to iterate over all property values for a node in Cypher? I can iterate over keys by doing:
```
"WHERE any (key in keys(n) where key ='xxx')"
```
Is there a similar way to do this for property value?
I need to test each key value to see whether the key value equals a variable. If matchi... |
2018/03/15 | 400 | 1,679 | <issue_start>username_0: I have a main-page.componenent.ts like so...
```
```
and then inside my app-page component I have another nested component like so..
```
```
so basically my app looks like this
```
// where the function is
// where the button is
```
now I have a button in my nested-component and I... |
2018/03/15 | 732 | 2,533 | <issue_start>username_0: I'm trying to load images dynamically within a single file component, but I'm getting an error that the module cannot be found. I think I'm trying to do the same thing as [this SO post](https://stackoverflow.com/questions/40491506/vue-js-dynamic-images-not-working), but I'm not sure what I'm do... |
2018/03/15 | 577 | 1,986 | <issue_start>username_0: I have a dataset in google sheets where the "name" field looks like this:
```
Stephen & <NAME>
```
I am trying to figure out the Regular expression to find the space between "<NAME>" so I can split it into Name and Last Name. That way Stephen & Sally remain in the name field and Fitzpatrick ... |
2018/03/15 | 560 | 1,946 | <issue_start>username_0: I think i have a grasp of the generator functions, don't know if i would really use them but i found something that <NAME> said that is particularly interesting. In this video ( <https://www.youtube.com/watch?v=DxnYQRuLX7Q> ) at 26:00 he says that generators can be replicated using a factory ty... |
2018/03/15 | 566 | 1,947 | <issue_start>username_0: I have a dataframe with column 'code' which I have sorted based on frequency.
In order to see what each code means, there is also a column 'note'.
For each counting/grouping of the 'code' column, I display the first note that is attached to the first 'code'
```
df.groupby('code')['note'].agg([... |
2018/03/15 | 647 | 2,031 | <issue_start>username_0: How to pass a value to other page with URL Rewriting.
I have 2 pages. 1 is index.php and 2 is videoplayer.php.
inside index.php. there's
```

[Ghost In The Shell (2017)](http://127.0.0.1/Ghost-In-The-Shell-2017/)
```
How can i pass the value anchor when i cli... |
2018/03/15 | 500 | 1,550 | <issue_start>username_0: I defined a two-dimensional array as follows:
```
predict_result = np.zeros((69,1000))
```
In the loop, I was trying to inject a predicted one-dimensional array into it.
```
for ij in range(0,1000):
# # some code to generate Ypredict
predict_result[:,ij]=Ypredict
```
`Ypredict` ... |
2018/03/15 | 559 | 1,787 | <issue_start>username_0: So I think\* RVM may be keeping my Ruby version back artificially. I am getting all sorts of errors in Rails. So I checked the Ruby version I was using. Said it was back a few versions.. so I tried updating to 2.5.0. System said 2.5.0 was already installed? So I checked ruby -v, and got 2.3.3
... |
2018/03/15 | 1,019 | 3,432 | <issue_start>username_0: This code is supposed to print out a "barcode" from a given zip code. The problem is that it is only printing out **none** after it is done. No visible errors to me. Could you take a look?
```
def printDigit(d , x):
if x <= 5:
if d[x] == 0:
return "||:::" + printDigit(d... |
2018/03/15 | 1,312 | 4,525 | <issue_start>username_0: I have made a program in c# that reads and removes duplicate. It works fine with 0-5000 values but when I tried it with 100,000 values it takes too long or NOT-RESPONDING. Any suggestions on how to fix it? Below is my algorithm.
```
try
{
DataTable dtExcel = new DataTable();
dtExcel = ReadExce... |
2018/03/15 | 1,209 | 3,773 | <issue_start>username_0: I am trying to check if 2 consecutive values in a string are characters (minus 5 operators I pre-determined). I tried doing this:
```
test = "abcdefghijklmnop"
bad = "abfj"
for i in test:
if i in bad and i+1 in bad:
print("it works")
```
with no luck. Is there anyway to get the... |
2018/03/15 | 421 | 1,255 | <issue_start>username_0: I have a table who have creation date like:
```
SELECT [CreationDate] FROM Store.Order
```
So each register have one datetime like:
```
2018-03-14 00:00:00.000
2017-04-14 00:00:00.000
2017-06-14 00:00:00.000
```
I want to know how to `COUNT` only register of Date equals to current mont... |
2018/03/15 | 1,008 | 4,253 | <issue_start>username_0: I have a cloud function that is triggered by a Firestore database write. It does an async operation (fetch data from some 3rd party API's) that may take a long time, might not. When it's finished, it writes the result to a 'search result' field.
There's a possible race condition where the res... |
2018/03/15 | 2,658 | 9,167 | <issue_start>username_0: I used Gmail API with curl.(
[Users.messages: send](https://developers.google.com/gmail/api/v1/reference/users/messages/send))
But I recieve Error 400 recipient address required.
**Command**
```
curl -X POST -H "Authorization: Bearer *****" -H "Content-Type:message/rfc822" -d "{'raw':'Encode... |
2018/03/15 | 2,114 | 6,991 | <issue_start>username_0: Question:
Write a program named SortWords that includes a method that accepts any number of words and sorts them in alphabetical order. Demonstrate that the program works correctly when the method is called with one, two, five, or ten words.
What I have thus far:
```
private void button1_Clic... |
2018/03/15 | 1,926 | 6,468 | <issue_start>username_0: I am deleting a model in a many to one relation. Youll notice in the delete method I am exposing the parent model. This is for permissions which I will write later.
The code is not deleting the objects.
As in method runs and my javascript removes the object. But If I reload the page, I get t... |
2018/03/15 | 814 | 3,167 | <issue_start>username_0: Say I have a simple Windows 10 UWP app
```xml
>
```
The large number of ListView items causes it to overflow and scroll, as expected:
[](https://i.stack.imgur.com/Hcru8.png)
However, if I need to add another control as a... |
2018/03/15 | 1,686 | 5,281 | <issue_start>username_0: I have to plot several curves with very high xtick density, say 1000 date strings. To prevent these tick labels overlapping each other I manually set them to be 60 dates apart. Code below:
```
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
ts_index = pd.period_range(st... |
2018/03/15 | 1,410 | 4,537 | <issue_start>username_0: I have some javascript code that fires a click event when the user scrolls up or down past a specific element (`.closemenu`). I'm using this to automatically open and close a header menu when the user scrolls the page.
The problem I have is that this is firing too many times and causing laggi... |
2018/03/15 | 447 | 1,377 | <issue_start>username_0: How can you check if two DOM nodes are siblings without jquery?
```
```
`a` and `c` are siblings but `a` and `d` are not.
`a` and `a` are not siblings.<issue_comment>username_1: Just check their `.parentElement` property.
```
let isSibling = el1 !== el2 && el1.parentElement === el2.parentEl... |
2018/03/15 | 1,246 | 4,424 | <issue_start>username_0: I'm currently working on a random grid generation base for game map and I'm kinda stuck at how do I call an instantiated object based on their in game coordinates (not Vector3).
This is my hex generation script:
```
public HexCell cellPrefab;
HexCell[] cells;
void CreateCell (int x, int z, i... |
2018/03/15 | 935 | 3,502 | <issue_start>username_0: So I have a button in Android.
When this button is pressed it runs an ASYNC task and then displays results of this task on the screen. However the code to display the results is running before the async task completes. is there a solution to this?
```
size = 0;
... |
2018/03/15 | 805 | 2,701 | <issue_start>username_0: I'm using [the Clap crate](https://crates.io/crates/clap) for parsing command line parameters. I've defined a subcommand `ls` that should list files. Clap also defines a `help` subcommand that displays information about the application and its usage.
If no command is provided, nothing gets dis... |
2018/03/15 | 1,024 | 2,951 | <issue_start>username_0: I am trying to create a navigation menu with 6 items, 3 on the left, 3 on the right with the logo (the logo to be both vertically and horizontally centered)
The problem I am having is the logo looks centered, but not vertically. Also the navigation items are too far apart from the logo and the... |
2018/03/15 | 737 | 2,196 | <issue_start>username_0: I have a PySpark dataframe with about a billion rows. I want to average over every 2000 values, like average of rows with indeces 0-1999, average of rows with indeces 2000-3999, and so on. How do I do this? Alternatively, I could also average 10 values for every 2000, like average of rows with ... |
2018/03/15 | 328 | 1,137 | <issue_start>username_0: I am using the following steps to duplicate all branches to the new-repository.
```
git clone --bare https://github.com/exampleuser/old-repository.git
# Make a bare clone of the repository
cd old-repository.git
git push --mirror https://github.com/exampleuser/new-repository.git
# Mirror-push... |
2018/03/15 | 1,226 | 4,450 | <issue_start>username_0: I saw this good article to introduce [async/await](https://developers.google.com/web/fundamentals/primers/async-functions) from Google.
However, I couldn't understand why these code run in parallel
```
async function parallel() {
const wait1 = wait(500);
const wait2 = wait(500);
await ... |
2018/03/15 | 1,040 | 3,781 | <issue_start>username_0: So basically I am trying to write a program which accepts an array of integers and then outputs the Max Min and **smallest** Mode and how many times it occurs.
I have been able to find both max and min and mode, but instead of the smallest mode my code outputs the one that occurs first. And i ... |
2018/03/15 | 630 | 2,486 | <issue_start>username_0: I noticed that in Visual Studio Code there is a menu item called *"Start Without Debugging"* under the *"Debug"* menu. When I have a PHP file open, I expected this to run the PHP file through the PHP executable and give me the output. Instead, when I click on *"Start Without Debugging"*, the Us... |
2018/03/15 | 406 | 1,470 | <issue_start>username_0: Typescript get failed to find exported component,May be exported module not appropriatly imported into other component.
It show an error message while call **AddToArray** method:
>
> Cannot read property 'push' of undefined
>
>
>
**PageOne.ts**
```
var const array = new Array(5);
expor... |
2018/03/15 | 532 | 1,660 | <issue_start>username_0: When I run Capistrano task with dry run it tells me that rbenv Ruby version can't be found. I assume with dry run it should use local environment. But when I run the commands locally I can easily find below mentioned directory and Ruby is installed.
```
> ./bin/bundle exec cap --dry-run develo... |
2018/03/15 | 274 | 1,003 | <issue_start>username_0: I want to ask the logic to implement the timer clock like the following format: "**00:01 -> 00:02 -> 00:03 -> 00:04 ... -> 00:59 -> 01:00**". It increases every second after that auto update the `TextView`. Any suggestions?<issue_comment>username_1: In fact, I do not understand why you use the ... |
2018/03/15 | 696 | 2,459 | <issue_start>username_0: I have a customer wanting kit components to be highlighted or specially formatted on a Picking Ticket with an advanced PDF.
I can format the parent with no problem, but the customer wants the components to display in a different background colour. (custom column field indicating a Kit item, th... |
2018/03/15 | 902 | 3,356 | <issue_start>username_0: I'm building Asp.Net Core 2.x web api integrated with Swagger. To access the swagger, I had to append /swagger to the url, eg. <https://mywebapi.azurewebsites.net/swagger/>
How can I redirect <https://mywebapi.azurewebsites.net/> to <https://mywebapi.azurewebsites.net/swagger/> ?<issue_comment... |
2018/03/15 | 329 | 1,169 | <issue_start>username_0: How to disable right clicking mathjax in shiny? For example, see
<https://shiny.rstudio.com/gallery/mathjax.html>
Ideally, I would like users not to be abe to interact with the mathjax text at all.<issue_comment>username_1: You can turn off the MathJax contextual menu by adding
```
MathJax.... |
2018/03/15 | 691 | 2,294 | <issue_start>username_0: I have my own local HTML file open in my browser. When I click a certain button, the class to the button changes to "selected." What I want to do is have Python take the current updated HTML of the file in the browser and overwrite it as the original HTML file. The goal here is to save the chan... |
2018/03/15 | 969 | 2,156 | <issue_start>username_0: this my collection data collection
```
{
"_id" : "001-000001",
"employeeId" : "001-001",
"paidAmount" : 30,
"paidDate" : ISODate("2017-08-23T14:36:14.410+07:00")
},
{
"_id" : "001-000004",
"employeeId" : "001-001",
"paidAmount" : 10,
"paidDate" : ISODate("2017-08-23T06:45:29.497+07:00... |
2018/03/15 | 1,907 | 5,572 | <issue_start>username_0: I'm having an issue customizing the CSS of some button widgets that came with a WordPress theme I'm running. I grabbed a quick screen capture video of what's happening because it's hard to describe.
Video Link: <https://drive.google.com/open?id=1mYvOtAjz-0QnJYV3_nGYXnFoRpsRdVo_>
The CSS I hav... |
2018/03/15 | 2,074 | 5,959 | <issue_start>username_0: I have this code:
```
#include
#include
using namespace std;
void copyString(char \*input, int offset, int length, bool invert, char \*output, int output\_offset)
{
char \*cp = new char[length+1];
for (int i = 0; i < length + 1; i++)
{
cp[i] = input[offset + i];
}
if (invert)
{
for (int i... |
2018/03/15 | 491 | 1,889 | <issue_start>username_0: We are designing a system for conducting a survey in which it askes user a about 72 questions (Multiple Choice questions)
And when the user submits this will be posted to php page which will save the answer in a MySQL table.
Its works fine and perfectly well when we doing the test with a small... |
2018/03/15 | 1,016 | 3,215 | <issue_start>username_0: I made 2D arrray which prints some random elements.
Now i need a method which calculates the sum of that elements but just elements below the main diagonal.
Here is my code...
```
class Init {
public static void main(String[] args) {
int n = 0;
int m = 0;
int ar... |
2018/03/15 | 515 | 2,017 | <issue_start>username_0: I'm reading an article which says all Exceptions cause Ruby to crash.
<http://blog.honeybadger.io/a-beginner-s-guide-to-exceptions-in-ruby/>
I've got some DB schema constraints:
```
create_table :options_sets do |t|
t.boolean :shared, :null => false
end
```
So when I create a new option... |
2018/03/15 | 872 | 3,472 | <issue_start>username_0: I have a situation to do sliding count over large scale of messages using `State` and `TimeService`. The sliding size is one and the window size is larger than 10 hours. The problem I meet is the checkpointing takes a lot of time. In order to improve the performance we use the incremental check... |
2018/03/15 | 1,252 | 3,499 | <issue_start>username_0: I have 3 divs. One of them is functioning as a wrapper for the other two.
Let's call them div1 and div2. Div1 has a fixed width. The width of the wrapper is variable but never less then the width of div1.
Now, how do I make div2 always have the width (width of wrapper - width of div1)?
Here i... |
2018/03/15 | 499 | 1,980 | <issue_start>username_0: I want to store a non-critical non-confidential piece of information in the user's session in a Ruby on Rails app. The user model is set up with Devise. How do I do this? Various guides give conflicting and incomplete information about it. `session[:foo]`? `user_session[:foo]`? Do I need to set... |
2018/03/15 | 2,087 | 8,597 | <issue_start>username_0: I was reading the documentation on the Auth0 site regarding [Refresh Tokens and SPA](https://auth0.com/docs/api-auth/which-oauth-flow-to-use#is-the-client-a-native-app-or-a-spa-), and they state that [SPA's should not use Refresh Tokens](https://auth0.com/docs/tokens/refresh-token/current) as t... |
2018/03/15 | 2,021 | 7,916 | <issue_start>username_0: ```
Traceback (most recent call last):
File "Final_3.py", line 42, in
np.savetxt("table.csv", output\_arr, fmt='%s' , delimiter=",")
File "/usr/local/lib/python2.7/dist-packages/numpy/lib/npyio.py", line 1381, in savetxt
fh.write(v)
File "/usr/local/lib/python2.7/dist-packages/numpy/lib/... |
2018/03/15 | 721 | 2,844 | <issue_start>username_0: I want create a View the same Image.
[](https://i.stack.imgur.com/FB0Qy.png)
Touch value on View:
[](https://i.stack.imgur.com/Es28f.png)
I using the solution... |
2018/03/15 | 484 | 1,736 | <issue_start>username_0: Does anyone know how to load current date data dynamically into a date in PHP ?
In example: the year, to automatically update.
I'm trying the following without success.
```
$nowDate = date('d/m/Y');
$cYear = date('Y');
$dateBegin = DateTime::createFromFormat('d/m/Y', '01/01/'.$cYe... |
2018/03/15 | 1,181 | 4,231 | <issue_start>username_0: I am trying to create a REST server using hyper. For robust error handling, I would prefer to have the service return a future with a custom error type that wraps hyper, Diesel, and other errors. Unfortunately, `hyper::Response` seems to hard-code a stream with error type `hyper::error::Error`,... |
2018/03/15 | 669 | 2,367 | <issue_start>username_0: I have this java **method** which returns an **ArrayList**, but I want to return an **Array of Strings**. The method reads the file words.txt (contains all words with a word on each line), and I want to store those words into an Array of Strings.
Heres the code I already have:
```
public stat... |