date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/10 | 1,886 | 6,729 | <issue_start>username_0: What's the difference between the following code snippets:
1. ```
double a = 10.154430;
int b = a;
printf("%d", b); //prints 10 (WHY?)
```
2. ```
double a = 10.154430;
printf("%d", a); //prints garbage value as expected`
```
Now, in both cases, I'm not doing explicit type conversion but ca... |
2018/03/10 | 2,332 | 7,025 | <issue_start>username_0: Practically I know ways to reduce duplicate trought `distinct()`, or assign `List` to `Set`, but I have a little different issue.
How to solve smart way below problem in JAVA 8 using stream or may be `StreamEx` ?
Let's say we have a objects in List
`A, A, A, B, B, A, A, A, C, C, C, A, A, B, ... |
2018/03/10 | 328 | 1,261 | <issue_start>username_0: I am actually saving the `contentState` of my DraftJS editor as a string, using: `JSON.stringify(convertToRaw(editorState.getCurrentContent()))`
My question is: How to display it back, as a Post for example. I am thinking that I should still use DraftJS to display it back, since only DraftJS c... |
2018/03/10 | 698 | 2,614 | <issue_start>username_0: I am experiencing issue where mongodb does not respect imposed container memory limits and spills over into swap and slows to a crawl - the issue seems to be that mongo thinks all host memory is available to it. See <https://github.com/dockerfile/mongodb/issues/34>
My question is then - how do... |
2018/03/10 | 618 | 2,147 | <issue_start>username_0: maybe not a big deal, but I can't get this to work. I have a tab navigation, and I am taking the tab titles from strings.xml as an array:
```
String[] tbTitles= resources.getStringArray(R.array.tabname);
for (int i = 0; i < mAppSectionsPagerAdapter.getCount(); i++) {
actionBar.ad... |
2018/03/10 | 547 | 1,797 | <issue_start>username_0: EDIT - See the end of the question for one way to do it:
I have a mongo object with properties like:
`{ something: { name: "asdf", childThing: {} } }`
and
`{ something: { name: "jklh", childThing: {"type": "blah"} } }`
How can I write a query that will find the object `somethingElse` base... |
2018/03/10 | 304 | 1,055 | <issue_start>username_0: I'm on Mac and I'm trying to install Sass using the command in terminal, "sudo gem install sass". I then enter my password, and everything works fine until this pops up,
"ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/bin directory."
I... |
2018/03/10 | 1,395 | 4,073 | <issue_start>username_0: I can do the following using sapply, but I wanted if dplyr can do it as well, or if it's a problem outside the scope of dplyr.
I have three columns, one with dates (Date), one with date intervals (Intervals), and the third with numeric values (Values).
What I want to do is for each row:
1) ... |
2018/03/10 | 579 | 2,173 | <issue_start>username_0: I'm new to swift and Xcode so there may be a simple answer or better way to do this. I am trying to make rounded edges to my buttons in all size iOS devices and the best way that I have found so far is using this method:
```
override func viewDidLayoutSubviews() {
super.viewDidLayoutSu... |
2018/03/10 | 2,487 | 9,047 | <issue_start>username_0: How can I understand the output of the below code? The code's first four print statements are about the Capturing Groups in Regular Expression in Java and the rest of the code is about the `Pattern` `split` method. I referred a few documents to perceive the code's output (shown in the pic) but ... |
2018/03/10 | 352 | 1,228 | <issue_start>username_0: I need to implement dynamic height of textarea that expects a user to type comment. I have seen the interaction of textArea like this on WhatsApp.
The text area will be initially of 1 line height later on as the user enters the text it should increase. But the text area should not be increased... |
2018/03/10 | 698 | 2,453 | <issue_start>username_0: I'm trying to show a list of contacts for the logged in user. But obviously I'm doing something wrong.
I get a error on the contacts list page:
>
> Trying to get property 'name' of non-object
>
>
>
User.php
```
public function contacts()
{
return $this->belongsToMany(Contact... |
2018/03/10 | 347 | 1,438 | <issue_start>username_0: My app uses Firebase auth and database. Whenever a phone with a lower Google Play Services version uses the app... the functionality doesn't work and it doesn't tell the user that the version is too low and that they should update, but it does log to the logcat. So my question is: Do I display ... |
2018/03/10 | 365 | 1,027 | <issue_start>username_0: I have the following function:
```js
const test = (i, o) => {
if (i < 1)
return o
else
return Object.assign(o, test(i - 1, ({
value: i,
label: i
})))
}
console.log(test(5, ({})))
```
And i except it to print:
```
[
{ value: '1', label: '1' },
{ v... |
2018/03/10 | 292 | 1,056 | <issue_start>username_0: Can't open SSIS package made in SSDT 15.5.X /15.6.0.
Current version of VS is 15.6.1. It is stated that my solution is incompatible (please refer to the screenshot).
I tried creating new test SSIS packages, saving and opening them. However, this older one does not work.
Please help with this... |
2018/03/10 | 232 | 859 | <issue_start>username_0: Lets say for example I want to print result 3 numbers after the dot.
I can just use the following code:
```
printf("%.3f",result);
```
I want to use it using the variable "precision" instead of writing 3
```
printf("%.precisionf");
```
how do i do that correctly<issue_comment>user... |
2018/03/10 | 1,234 | 4,128 | <issue_start>username_0: Given a `DAG` having an `start_date`, which is run at a specific date, how is the `execution_date` of the corresponding `DAGRun` defined?
I have read the [documentation](https://airflow.apache.org/scheduler.html#backfill-and-catchup) but one example is confusing me:
```
"""
Code that goes alo... |
2018/03/10 | 900 | 3,007 | <issue_start>username_0: I try to present the result of a sum as a text instead of in an input field why is this not working with < span id="result">< /span> ? (without space)
I hope someone can help me
this is my working code only here is the answer in an input field:
```html
getal1 \*
Kies formaat
4
5
6... |
2018/03/10 | 973 | 3,592 | <issue_start>username_0: I'm getting this error while trying to define a local static variable.
>
> Initializer element is not constant.
>
>
>
I want to retain the first value of var inside this recursion. How to pass this?
Hope you also clarify the side effects of assigning arguments to the local static variable... |
2018/03/10 | 576 | 2,190 | <issue_start>username_0: I'm working on creating a Flutter application that works with LIFX. I'm trying to follow their instructions [here](https://lifx.readme.io/docs/list-lights), but I'm having issues adding a header to my HTTP GET request.
```
TestHttpGet() async {
var httpClient = new HttpClient();
var header... |
2018/03/10 | 648 | 2,192 | <issue_start>username_0: I have got a table with checkboxes. This is sort of permission table. I wanted to get the ID of the row with unchecked checkbox.
[](https://i.stack.imgur.com/tPlwj.png)
**Scenario:** If I uncheck **field3** from **Permissio... |
2018/03/10 | 362 | 1,247 | <issue_start>username_0: I have the most basic setup in AWS:
* a publicly accessible RDS instance (PostgreSQL 9.6.6 - same as my development one)
* a CodeBuild project
both in the default VPC.
My application is written in Laravel 5.5 and the `buildspec.yml` runs `./artisan migrate --force` at some point and CodeBui... |
2018/03/10 | 1,343 | 5,215 | <issue_start>username_0: A question came up here on SO asking "Why is this working" when a pointer became dangling. The answers were that it's UB, which means it may work or not.
I learned in a tutorial that:
```
#include
struct Foo
{
int member;
void function() { std::cout << "hello";}
};
int main()
{
Foo\* f... |
2018/03/10 | 524 | 1,990 | <issue_start>username_0: I'm creating a relatively simple grammar which parses and breaks down strings into sub-components. A simplified version of the grammer is shown below
```
stmt: location type ID;
location :
location_A
| location_B
| location_C
;
location_A : 'LOCATION TOKEN 1';
loca... |
2018/03/10 | 402 | 1,462 | <issue_start>username_0: I have installed `tensorflow (1.6.0)` in `Visual Studio 2017`, but I get the following error when I run the code:
>
> No module named `tensorflow`
>
>
>
Any help?<issue_comment>username_1: [Alternative labels](https://github.com/antlr/antlr4/blob/master/doc/parser-rules.md#alternative-lab... |
2018/03/10 | 313 | 1,202 | <issue_start>username_0: I get this error when I trying to connect to my tv with webOS TV CLI:
```
C:\webOS_TV_SDK\CLI>ares-install --device tv --list
ares-install ERR! uncaughtException InvalidAsn1Error: encoding too long
```
In the webOS IDE I get:
Please check the device "tv" authentication credentials.
Anyone k... |
2018/03/10 | 685 | 2,520 | <issue_start>username_0: I have a dataset with about 20k rows and 160 column. after some simple preprocess like near-zero variance and removing variables with a high amount of NAs, I kept only 56 column as features. now, I want to perform a training model on this data with random forest method. but after about an hour ... |
2018/03/10 | 649 | 2,276 | <issue_start>username_0: I have a table which is used to store total power consumption from 3 different floors. 3 new rows are added daily, with one record for each floor.
```
--------------------------------------------------
--FloorNumber--TotalDailyConsumption--DateStamp---
----------------------------------------... |
2018/03/10 | 1,675 | 4,872 | <issue_start>username_0: **I have a table in my Oracle 12c Database**
XML Schema creation:
```
BEGIN
-- Register the schema
DBMS_XMLSCHEMA.registerSchema('http://www.example.com/fvInteger_12.xsd',
'
',
TRUE, TRUE, FALSE);
END;
/
```
Created the table:
```
CREATE TABLE fv_xml_12_1000 (
id NUMBER,
fv X... |
2018/03/10 | 441 | 1,507 | <issue_start>username_0: I wanted to check input template parameters in my constexpr recursive function when I discovered that it is always failing due to evaluating entire variable range.
Example:
```
template
constexpr unsigned char test() {
static\_assert(t < 20, "param check");
return t < 10 ? t : test();
}
in... |
2018/03/10 | 408 | 1,403 | <issue_start>username_0: I was trying to implement the basic transposition cipher that basically reverses each word while maintaining its position in the string but when I give it the input "MEET ME TOMORROW" it outputs "TEEM OMOT EM" instead of "TEEM EM WORROMOT".
```
string transposition(string input)
{
string e... |
2018/03/10 | 833 | 2,745 | <issue_start>username_0: My `foreach` continuously echo's the first condition of my `if` statement and it's not making any sense to me.
If you look inside the `foreach` in the first snippet you'll see an `if` that checks if the `$field === id || image_id`. Every iteration of the `foreach` spits out the `Im and ID: $fi... |
2018/03/10 | 14,453 | 34,724 | <issue_start>username_0: I'm tinkering around with AVX-2 instructions and I'm looking for a fast way to count the number of leading zeros in a `__m256i` word (which has 256 bits).
So far, I have figured out the following way:
```
// Computes the number of leading zero bits.
// Here, avx_word is of type _m256i.
if (!... |
2018/03/10 | 821 | 2,888 | <issue_start>username_0: I'm building scala project using gradle 4.5, scala 2.11.11/2.12.4 with JDK 1.8.0\_162 and it was working fine until I upgrade to scala 2.11.12. With 2.11.12 I keep getting compile error
```
Static methods in interface require -target:jvm-1.8
```
I've been trying to search in google and add c... |
2018/03/10 | 570 | 2,096 | <issue_start>username_0: Hello Laravel Developer,
I am really stressed by keeping the logic model of my laravel projects equal, and you could help me out:
Here's the Context:
* I got 4 different laravel (v5.3) projects
* All projects are using a bunch of classes, that i call the 'logic model'
* All projects are impl... |
2018/03/10 | 601 | 2,098 | <issue_start>username_0: I am setting constraints in the SE View in the Story Board. For some reason the **height** of my view keeps getting **stretched** when i simulate in newer devices. I cannot understand what or why this is happening. I have tried:
-clip to bounds
-auto layout
-all content modes
-equal heights... |
2018/03/10 | 888 | 3,246 | <issue_start>username_0: [](https://i.stack.imgur.com/us5Wy.png)
[](https://i.stack.imgur.com/Z0jp5.jpg)
We checked other issues and documentation as well but couldn't find any soluti... |
2018/03/10 | 1,055 | 2,490 | <issue_start>username_0: I have a pandas dataframe of correlations. I'm searching through the dataframe to find correlations greater than the threshold `0.5` then return the column name and row name (both are strings) for those elements that match the condition.
Currently, I can transform the correlation matrix to val... |
2018/03/10 | 1,943 | 4,625 | <issue_start>username_0: I have function for which should sort 2D String array according to some feature index. Here is my 2D array of 4 elements (4 x 10).
```
String[][] testArr = {
{"192.168.1.101-67.212.184.66-2156-80-6","192.168.1.101","2156","172.16.58.3","80","6","13/06/2010 06:01:11","2328040","... |
2018/03/10 | 1,091 | 2,452 | <issue_start>username_0: I want static variables in derived classes, so I want to make some stuff in a base class. Base class would be virtual. Is it possible?
```
class Base {
public:
static const int x;
void f() {
return x;
}
virtual void g() = 0;
};
class Derived1 : virtual Base {
public:
... |
2018/03/10 | 1,058 | 2,420 | <issue_start>username_0: Is there a way to load the "text-container" div a few seconds after the image pops up. I know i should do it with javascript and I already tried this code
```
window.onload = function(){
var timer = setTimeout("showText()",7000)
}
function showText(){
document.getElementByClass("text-contai... |
2018/03/10 | 991 | 2,911 | <issue_start>username_0: I need split the binary like this:
```
Bin = <<"Hello my friend">>.
split_by_space(Bin).
```
and get:
```
[<<"Hello">>, <<"my">>, <<"friend">>]
```<issue_comment>username_1: you can simply use lexemes:
<http://erlang.org/doc/man/string.html>
>
> lexemes(String :: unicode:chardata(),
> ... |
2018/03/10 | 977 | 2,417 | <issue_start>username_0: Hello I want to make two counts at once, one incrementing from 0 and another decrementing from 100. The final result should look like this. on the left side it goes from O to 100 incrementing 5, from the right side it goes from 100 to 0 decrementing 7.
```
0 100
5 93
10 86
... |
2018/03/10 | 261 | 1,126 | <issue_start>username_0: We have integration with multiple vendors and sometime vendor add a new enum value in existing field. Qucikfix will reject the message if field value in not defined in data dictionary. Is it possible to ignore that field if value is not defined. I know there is field **ValidateUserDefinedFields... |
2018/03/10 | 566 | 2,154 | <issue_start>username_0: I am brand new into PeerJs and WebRTC. I have got a 1:1 NodeJS/PeerJS application working in my remote server and that works great. However now I want to explore extending this to a 1:N model where a host ID can have multiple peers connecting to them and each of the peers can receive every othe... |
2018/03/10 | 597 | 2,002 | <issue_start>username_0: Say we have a simple database with two tables:
(1) Users: with one field, user\_id
(2) Orders: with two fields: order\_id and user\_id.
What's the shortest query to return the list of all users with 10 or more orders? Notes:
(a) Shortest = "least number of characters".
(b) Please ... |
2018/03/10 | 936 | 3,165 | <issue_start>username_0: I'm using different Docker containers for API and front-end.
```
frontend:
image:
ports:
- "3000:3000"
api:
restart: always
build: ./
ports:
- "9002:9002"
```
On API side I have the endpoint for sending emails:
```
/emails/custom
```
On frontend side I'm trying to send a request... |
2018/03/10 | 443 | 1,619 | <issue_start>username_0: I've got two versions of an activity layout, one for landscape and a default (portrait) version. In the code below, after setContent, I want to do some condition code depending upon what layout was loaded. Eventually it might not just be as simple as looking at the orientation, there might be m... |
2018/03/10 | 260 | 671 | <issue_start>username_0: How would I convert a string such as
```
'1 bag 1 bag 1 bag'
```
to equal
```
'3 bags'
```<issue_comment>username_1: ```
var str = "1 bag 1 bag 1 bag"
alert(str.split('bag').length-1 + " bag");
```
if you know what word you look for
Upvotes: 1 <issue_comment>username_2: With regex `/(... |
2018/03/10 | 520 | 1,943 | <issue_start>username_0: I'm making a quiz system, and i'm working on displaying an average grade for the user.
So for example If I have table like this:
```
+-----------+-------------+-------------------+
|userid | user_score |number_of_questions|
+-----------+-------------+-------------------+
... |
2018/03/10 | 1,441 | 5,793 | <issue_start>username_0: I'm trying to build a line chart displaying temperature data on y axis and dates on x axis in an Angular 5 app using Chart.js. I have data from five cities and would like to plot all on one chart. Generating the chart goes well when using just one city's data, but expanding to include other cit... |
2018/03/10 | 670 | 2,383 | <issue_start>username_0: I am new to XCode/Swift and trying to storyboard my first Quizz app :)
I've read numerous threads of people who have faced the issue i'm facing, but I couldn't draw a parallel to my case. Would anyone know I could get this working ?
Here it goes (see the screenshot for more detail here)
[](https://i.stack.imgur.com/tNhGy.png)
End r... |
2018/03/10 | 635 | 2,530 | <issue_start>username_0: **Explanation**
I just started playing around with React Native and Firebase and I was wondering how to publish my app and the whole process. I understand so far that I have the opportunity to deploy my app to Firebase Hosting, and I did. But when I did, it created a HTML file named index.html... |
2018/03/10 | 802 | 3,229 | <issue_start>username_0: I am trying to get the http get response from async function.However within the function value is displaying but return values is undefined.
Even promise not undefined values
please find code below
```
'use strict';
const express = require('express');
var request = require('request');
... |
2018/03/10 | 811 | 2,795 | <issue_start>username_0: Someone asked a similar question with no response and I am not allowed to add to it.
[Tradingview Pine script save close price at time of strategy entry](https://stackoverflow.com/questions/48958139/tradingview-pine-script-save-close-price-at-time-of-strategy-entry)
I am trying to build a str... |
2018/03/10 | 669 | 2,306 | <issue_start>username_0: I am an IT admin and would like to find the warranty information of my apple devices easily. I found this Python code online and it is not working.
<https://github.com/pudquick/pyMacWarranty>
I have 100's of apple devices and I hope someone can help me write/fix python code to retrieve warran... |
2018/03/10 | 269 | 979 | <issue_start>username_0: I have the below piece of code. I want to create an object Model outside my main and then use it inside main method. However, VS keeps confusing my object initialization with a function declaration and doesnt allow me to use it. Is there a way to initialize it without the compiler confusing bet... |
2018/03/10 | 649 | 1,726 | <issue_start>username_0: Please help me to arrange div elements under each other such way they can look like a equalizer on this screenshots [Equalizer](https://i.stack.imgur.com/2Q3Gt.png), advice how to remove dots from the list. I already tried a common way to remove this dots using css property (list-style-type: no... |
2018/03/10 | 666 | 2,118 | <issue_start>username_0: I've been trying to get a simple Bubble Sort method in Java to work and I cannot see the problem why it is not working. I want the lowest element in the array to be the first and the highest the last. Here I gave the method the already sorted array with values `[1, 2, 3, 4]`.
The output is an... |
2018/03/10 | 585 | 2,002 | <issue_start>username_0: How to lock concurrent access to all struct fields internally? Let's say I have a struct:
```
type Data struct {
ID string
Size int
//... and more fields
}
```
That will be used in another struct:
```
type Project struct {
mu sync.Mutex
MetaData Data
//... and mor... |
2018/03/10 | 569 | 1,771 | <issue_start>username_0: I want to parse the command line arguments while attempting to call the program in the following manner:
```
python plot.py --w --Develop origin plot --+3.5
```
I have been using `sys.argv` to parse them using a `for` loop:
```
for arg in sys,argv:
print(arg)
```
Output:
```
plot.py... |
2018/03/10 | 561 | 1,814 | <issue_start>username_0: I'm developing a REST api using Spring Boot 2. I've added the SpringFox dependencies for Swagger2 and Swagger-UI in build.gradle file, like below:
```
compile group: 'io.springfox', name: 'springfox-swagger-ui', version: '2.4.0'
compile group: 'io.springfox', name: 'springfox-swagger2', versio... |
2018/03/10 | 874 | 3,376 | <issue_start>username_0: I have a service in an Angular 5 application that regularly polls an API to see how many notifications a user has:
```
public getRegularNotificationCountForUser(userid): Observable {
return Observable.interval(5000)
.switchMap(() => this.http.get(this.baseUrl + '/getNotificationCountForUser... |
2018/03/10 | 749 | 2,690 | <issue_start>username_0: My basic understanding is that JavaScript runs from top to bottom, returning to functions when they are called, but then proceeding to the next line of code after calling a function.
That makes sense when I look at this code as an example:
```
var a = 5;
var b = a;
a = 2;
console.log(b);
// M... |
2018/03/10 | 767 | 2,906 | <issue_start>username_0: I have a pageviewcontroller, which scrolls horizontally, displaying questions and answers.
The contentView for the pageviewcontroller is populated with a scrollview, and inside of this is some stack views, one of which has a textView, for user entry.
[` with nested arrays.
I want to delete the `{id: 111,name: "A"}` object only.
Here is my code:
```
var array = [{
id: 1,
list: [{
id: 123,
name: "Dartanan"
}, {
... |
2018/03/10 | 2,764 | 8,577 | <issue_start>username_0: I am doing a little game physics networking project right now, and I am trying to optimize the packets I am sending using this guide:
<https://gafferongames.com/post/snapshot_compression/>
In the "Optimize Quaternions" section it says:
>
> Don’t always drop the same component due to numeric... |
2018/03/10 | 1,478 | 5,491 | <issue_start>username_0: During runtime I am getting all records from the JSON object and in form-control I am getting the values. However, in form-array I am getting only the first of many records.
The error shown in the console:
>
> Cannot find form control at index 1 at FormArray.\_throwIfControlMissing
>
>
> ... |
2018/03/10 | 1,505 | 4,681 | <issue_start>username_0: Are the following 16 byte atomic operations correctly implemented? Are there any better alternatives?
```
typedef struct {
uintptr_t low;
uintptr_t high;
} uint128_atomic;
uint128_atomic load_relaxed(uint128_atomic const *atomic)
{
uint128_atomic ret;
asm volatile("xor %%eax, ... |
2018/03/10 | 1,918 | 7,870 | <issue_start>username_0: I am trying to make an AppleScript that toggles automatic rearranging of spaces. I am able to get the AppleScript to open system preferences and go into mission control settings, however i am not sure how to check the box which i want to change.
```applescript
tell application "System Preferen... |
2018/03/10 | 1,562 | 5,690 | <issue_start>username_0: I'm using PIL to resize an uploaded photo before saving. Note that I'm using formsets to upload the pictures. I'm using BytesIO to open the file. At the last step, I get the error - `'_io.BytesIO' object has no attribute 'name'`. Why is this?
```
def fsbo_create_listing(request):
PhotoFor... |
2018/03/10 | 1,287 | 4,137 | <issue_start>username_0: I am using Vuetify and Vuetify/Datatables for a website.
Now I want some `computed` properties on every row of the table.
To do that I would probably need to make a component of the element and add computed properties to that component. I tried but this did not work.
```
{{ THIS\_VALUE\_... |
2018/03/10 | 1,339 | 4,454 | <issue_start>username_0: In this code we're asking for minimal price for product of particular supplier but I' don't understand why we have to set an alias for the outer query.
**QUERY 1:** - Returns any records where UnitPrice is the smallest.
```
SELECT SupplierID
,ProductName
,UnitPrice
FROM Products
WHERE... |
2018/03/10 | 509 | 1,507 | <issue_start>username_0: This is my first programming practice. I have a python function like this:
```
sum = 0
def summation(a,b):
sum = a+b
return sum
```
and when I call function as
```
summation(3,4)
```
It does not return anything. Why?<issue_comment>username_1: ```
sum = 10 # this is... |
2018/03/10 | 366 | 1,270 | <issue_start>username_0: I wrote a Python script to read in a file and find a pattern and now I want to print the result with no duplicates. Thank you for the help.
This is what I have but it prints duplicate lines.
```
import re
session = open("edd.txt", "r")
regex = re.compile(r'policy \d+')
for line in session:
... |
2018/03/10 | 534 | 1,743 | <issue_start>username_0: [I run the script from localhost]
I'm trying to upload files using Laravel 5.4 to AWS S3 bucket but I get this error:
```
Error executing "PutObject" on "https://bucket_name.s3.amazonaws.com/1520719994357906.png"; AWS HTTP error: cURL error 60: SSL certificate problem: unable to get local iss... |
2018/03/10 | 582 | 2,099 | <issue_start>username_0: I have a problem, when I try to return a value from method this return as undefined, this is the method:
```
getBrandName(keyVehicle): any{
var nameBrand;
let response=this.db.getBrand(keyVehicle);
response.then((value)=>{
nameBrand= value.name;
})
return nameBrand;... |
2018/03/10 | 800 | 3,043 | <issue_start>username_0: I'm currently trying to come up with a way of getting information out of a long running task (few seconds to a minute long) that occurs after uploading a file in my app. I am using react/redux and am currently trying this:
```
export const longTask = (file) => (dispatch) => {
// setup file... |
2018/03/10 | 689 | 2,630 | <issue_start>username_0: I have about 300,000 transactions for each user in my DynamoDB database.
I would like to calculate the taxes based on those transactions in a serverless manner, if that is the cheapest way.
My thought process was that I should use AWS Step Functions to grab all of the transactions, store them... |
2018/03/10 | 696 | 2,659 | <issue_start>username_0: I'm trying to parse an array of items, using Sprache library for C# I have a working code that goes like this.
```
public static Parser Array =
from open in OpenBrackets.Named("open bracket")
from items in Literal.Or(Identifier).Or(Array).DelimitedBy(Comma).Optional()
from close in CloseBra... |
2018/03/10 | 517 | 1,961 | <issue_start>username_0: I have installed curl on Ubuntu 14.04 running PHP 5.6 with the following commands:
```
sudo apt-get install php5-curl
sudo service apache2 restart
```
It returns a successful message, but when I run:
```
php -m
```
the curl module is not listed, and phpinfo(); does not recognize it as ins... |
2018/03/10 | 414 | 1,741 | <issue_start>username_0: I do have a portal where you search for entries. I want to implement a function to save your email for a search to let the portal send you a notification if there are more entries matching my search. The search itself does have several parameters which might change in the future.
I only see tw... |
2018/03/10 | 955 | 3,341 | <issue_start>username_0: I'm getting something really weird when I execute my tests with `rails test`.
I'm trying to understand and create my first controller tests and I get something unexpected.
I get this error in the console:
```
F
Failure:
FeedbacksControllerTest#test_should_create_resource [/Users/Daniel/GitH... |
2018/03/10 | 378 | 1,458 | <issue_start>username_0: I run into a slightly problem. I have `Root` component which contains `Switch` and two `Route`. When the user loads the page I want to render the initial This route contains a component with a `Route` pointing to the gallery I want to show.
When the user clicks on the images the route changes ... |
2018/03/10 | 550 | 1,802 | <issue_start>username_0: I want to change letters in a string by moving the index by 2 steps:
a --> c, b--> d, c--> e, etc. However, when it gets to the final letters in alphabetical order, I don't know how to make: y --> a and z --> b since it goes out of index when you reach these two letters. Also, I'm sure there's ... |
2018/03/10 | 389 | 1,126 | <issue_start>username_0: I have a table with rows of records. I have ID "171485824993" as my data to look and need to get the text value "New, Jersey" and click on the text as its a link.
There will be more than 1 record similar to this and need to loop till I find the correct row that has the ID I am looking for.
`... |
2018/03/10 | 1,371 | 4,677 | <issue_start>username_0: This [playground project](https://play.rust-lang.org/?gist=1c57c05b8f306cbe2083858a8c2ebb18&version=stable) has a simplified version of the code I'm trying to compile.
```
use std::sync::{Arc, Mutex, MutexGuard};
pub trait Runnable {
fn run(&mut self) -> Option;
}
pub struct Value {}
i... |
2018/03/10 | 890 | 3,628 | <issue_start>username_0: I am a little bit newbie, and pointers still do troubles to me. I would like to change value of `int`, which I get from parameter (as a pointer) in function.
```
#include
bool function(int\* a){
a++;
printf("%d",\*a); //getting some big number, maybe address. If i did not use a++; I get ... |
2018/03/10 | 995 | 3,939 | <issue_start>username_0: I have comma-separated value I get from multi-select option which is the id of mysql rows. I want to display it but I'm getting 'Notice: Array to string conversion' error using explode. My database table has columns of 'id, url' .
below are my code:
```
$imageids = '1,2,3,4';
$id = explode(',... |
2018/03/10 | 900 | 2,742 | <issue_start>username_0: How to implement the template bellow ?
`std::result_of` does not work like that.
I would like to be able to change `std::vector` by something else externally
And I would like to keep `F` and `V` as first in my template
Preferable in C++17
Thanks
```
template >, typename T, typename Ts ...... |