date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/08 | 359 | 1,351 | <issue_start>username_0: I am trying out `unstated` (<https://github.com/jamiebuilds/unstated>) and like its simplicity but am experiencing unexpected behavior. At the top level I have:
```
{myDataStore => (
)}
```
Then way down my component tree, I access the store again using something like this:
```
{myDat... |
2018/03/08 | 501 | 1,612 | <issue_start>username_0: In integer-based data type like tinybit, smallbit, bigint, int, uint...
sometimes arithmetic overflow could be found when result is out of range of that data type.
The expression I used, 'cyclic arithmetic operation', that means,
**(-1)** 2 -> 1 -> 0 -> 255 -> 254 ... (tinybit)
or
**(+2)** 655... |
2018/03/08 | 463 | 1,568 | <issue_start>username_0: We have a c# WPF app and we use a 3rd party SDK with a native C++ DLL, we call the methods with DllImport attributes.
Unfortunately code is not that great and that C++ DLL crashes our C# app.
Is there an elegant and efficient way to isolate the calls to the C++ DLL so their exceptions don't c... |
2018/03/08 | 635 | 2,466 | <issue_start>username_0: I want to be able to make a function `GetInput()` which takes a class as a parameter, and returns whatever is input. The function definition would look like this:
```
GetInput(class type) {
if (type == string) {
string stringInput;
cin >> stringInput;
return stringI... |
2018/03/08 | 353 | 1,038 | <issue_start>username_0: I'm using the following to find whether a text exist in the sentence and printing out that text:
Example:
```
import re
lst = ['text1','text2','text3']
sent = 'This is a test to find text1 and text3'
my_regex =re.search(r'\b(text1)\b', sent)
print(my_regex.group())
text1
```
Question:
... |
2018/03/08 | 2,235 | 6,292 | <issue_start>username_0: I am trying to name a Dynamic Range in Worksheet HDaER.
The range should be from `.Cells(3, 2)` to `HDaERCloseLR` (Last Row) and `HDaERCloseLR` (Last Column) of the populated area.
So far I have this:
```
1 Dim HDaER As Worksheet
2 Dim HDaERCloseLR As Integer
3 Dim ... |
2018/03/08 | 1,853 | 5,308 | <issue_start>username_0: FYI: I am using Intellij's 'Run/Debug Configurations' tool.
I would like to pass an empty string as a property to my app via the command line:
```
--spring.ldap.username=
```
I have tried:
```
--spring.ldap.username= # results in parse error
--spring.ldap.username=''
--spring.ldap.username... |
2018/03/08 | 874 | 3,066 | <issue_start>username_0: I have a custom taxonomy (expertise\_taxonomy) for a custom post type (case\_studies) and an archive template for it (taxonomy-expertise.php). My problem is that on a subcategory page I need to echo its parent category name at the top of the page and its permalink (think breadcrumb). I'm able t... |
2018/03/08 | 1,160 | 4,228 | <issue_start>username_0: While building an app using Android Studio with the Flutter SDK I decided to get the shared\_preferences plugin and play around with it. Soon after, I noticed that although the app was running fine on my Android device, it wouldn't build to run on Simulator. In an attempt to figure out a soluti... |
2018/03/08 | 1,091 | 4,235 | <issue_start>username_0: I have a VueJS 2 application in which I'm trying to load specific components depending on different flags in a config JSON file.
My file structure is as follows:
```
root
config.json
> src
>> client
>>> components
>>>> dashboard
>>>>> MenuBarBrand.vue
> product
>> product01
... |
2018/03/08 | 744 | 2,490 | <issue_start>username_0: I have a file containing data exported from DynamoDB, it has DynamoDB's "special JSON" format:
`{"key1": {"m":{"key2":{"s":"val2"},"key3":{"s":"val3"}}}}`
I need to parse this file and convert the data to DynamoDB item (com.amazonaws.services.dynamodbv2.document.Item) or normal JSON (I know h... |
2018/03/08 | 700 | 3,017 | <issue_start>username_0: I am trying to show a message when a user is typing and hide the message after a timeout period is reached, I am using this logic with `React Native` and `Gifted Chat`.
```
updateTyping() {
var TYPING_TIMER_LENGTH= 1000;
if (this.state.connected) {
if (!this... |
2018/03/08 | 2,127 | 7,763 | <issue_start>username_0: I am working on a large project and trying to land webpack 3 -> 4 update. This app has somewhere around 1,000 entry points, and about 10 of those are considered "global" or "core" and guaranteed to be on every page. These core bundles contain a mix of vendor and non-vendor code. I need to confi... |
2018/03/08 | 1,879 | 6,594 | <issue_start>username_0: I have a list that has the following structure:
```
input =
[['Business']
['Technology']
['Technology Business Sports']]
```
I'd like to split sentences into words and create the following structure:
```
result =
[['Business']
['Technology']
['Technology', 'Business', 'Sports']]
```
I... |
2018/03/08 | 2,019 | 6,869 | <issue_start>username_0: ```
{“timid”:”34567”, “version”:”1”,”binary_data”:”fsfdsfsdfasdfasdfsfasfdsa”,”seqNumber”:”101”}
{“timid”:”32567”, “version”:”1”,”binary_data”:”fsfsdfdsfdsfdsfsfsdfpipi”,”seqNumber”:”109”}
{“timid”:”36567”, “version”:”1”,”binary_data”:”fsfdsfsdfafsdfdsfsfasdfsfasfdsa”,”seqNumber”:”100”}
```
... |
2018/03/08 | 854 | 3,021 | <issue_start>username_0: I would like to write a function that sorts a given data.frame (which I'll refer to as dataSet) by any number of its columns, whose names are also passed into the function (in a vector which I will refer to as orderList). I know that to order by a single passed in string you can just use
```
s... |
2018/03/08 | 432 | 1,996 | <issue_start>username_0: I'm working on an application using Meteor and MongoDB where I'm attempting use nested callbacks to access a newly inserted document as seen below. However I keep getting an error where there is no matching document in the database even though I'm in the successful callback of the insert statem... |
2018/03/08 | 354 | 1,247 | <issue_start>username_0: I am new to react, but I am stuck with this error since last week.
somebody help me, please!
Cannot read property 'thisCompilation' of undefined
>
> npm ERR! code ELIFECYCLE
> npm ERR! errno 1
> npm ERR! althaqalyn@0.1.0 start: `react-scripts start`
> npm ERR! Exit status 1
> npm ERR!
> ... |
2018/03/08 | 1,863 | 5,561 | <issue_start>username_0: I've been trying to use QGraphicsItemGroup to get the bounding rectangle of a group of QGraphicsItem\*s. It appears to me that the bounding rectangle is correctly determined when I insert all of the items into the group; but if I then move items in the group, the bounding rectangle does not upd... |
2018/03/08 | 880 | 2,124 | <issue_start>username_0: Table design:
```
| PeriodStart | Person | Day1 | Day2 | Day3 | Day4 | Day5 | Day6 | Day7 |
-------------------------------------------------------------------------
| 01/01/2018 | 123 | 2 | 4 | 6 | 8 | 10 | 12 | 14 |
| 01/15/2018 | 246 | 1 | 3 | 5 | 7 | ... |
2018/03/08 | 297 | 1,066 | <issue_start>username_0: I'm stumped.
My project has it's original GitHub repository.
I will have to push the Android project to a second repository.
How to do push code to a second and separate GitHub repository in Android Studio?
I see hints that it's possible, but I don't know how to initiate to new repository.
... |
2018/03/08 | 333 | 1,223 | <issue_start>username_0: I have a page with some divs. My page is pretty dynamic where I am showing and hiding divs based on user input.
I want a footer to always appear at the bottom and to have the other divs above it appear in a scroll. Since my data is populated asynchronously, my view loads but then once the con... |
2018/03/08 | 2,312 | 7,405 | <issue_start>username_0: I have spent all night trying to debug this code and I have tried a number of things.
First the issue I am having is I am using a bootstrap Admin template and have included a Form wizard to step through sections of the form. I am using ASP.net and a Master Form (That hold the bootstrap menu a... |
2018/03/08 | 987 | 3,117 | <issue_start>username_0: ```
$result = AssetModel::biGetRecords($userId);
```
The result is array of objects.
like this
```
array(100) {
[0]=>
object(stdClass)#1120 (3) {
["id"]=>
int(1058064)
["asset_id"]=>
string(16) "12345"
["name"]=>
string(22) "David"
}
[1]=>
object(stdClass)#1116 (3) {
["id"]=>
int(1058088)
[... |
2018/03/08 | 752 | 2,593 | <issue_start>username_0: I'm new to code and i have a doubt that i did not find anywhere else. When i try to open a file .py using the Python Shell (double click on Windows) it closes. It's not a code problem because i've created a new file, added this line:
```
print("test")
```
and the same thing happended. The mo... |
2018/03/08 | 811 | 3,200 | <issue_start>username_0: I volunteer at a small local school that teaches data science and I'm trying to understand the procedure behind federated logins, but the Amazon documentation isn't helping and their forums don't seem interested.
We'd like for the students to be able to sign in to our AWS environment using eit... |
2018/03/08 | 350 | 1,329 | <issue_start>username_0: I am trying to collect count from two unrelated tables and represent them as a View, how do I put both values in different columns which I'll create on fly? I was trying something like this
```
CREATE VIEW entries AS
SELECT count(*)
FROM p as newEntries
UNION ALL
SELECT count(*)
... |
2018/03/08 | 1,462 | 4,949 | <issue_start>username_0: I'm using Django to build a website for a football club, which contains many blog articles. I'm trying to include a search bar, but I can't make it work. When submitting the search term, the following error is shown:
>
> DoesNotExist at /web/search/
>
> Articulo matching query does not ex... |
2018/03/08 | 605 | 2,151 | <issue_start>username_0: I have a website that has a form. In the form I have a textarea field. When this is filled and displayed in the manner below
eg . this is how it was written in the textarea box
```
The manager,
Abc limited,
private bag,
earth.
```
It displayed like this
```
The manager, Abc limited, pr... |
2018/03/08 | 733 | 2,297 | <issue_start>username_0: I have a full list of time stamps, named 'time'.
typeof(time) is character, time[1:5] is
```
c('20151122224357714','20151122225351332' , '20151122230112066', '20151122231644405', '20151122233024263')
```
I want to convert this UTC time format to U.S. CST time with the millisecond level.
M... |
2018/03/08 | 759 | 2,624 | <issue_start>username_0: I am working on a problem which takes a nums, row, column as parameters and returns a resultant matrix of size row x column.
```
def matrixReshape(self, nums, r, c):
"""
:type nums: List[List[int]]
:type r: int
:type c: int
:rtype: List[List[int]]
"""
count = 0
... |
2018/03/08 | 6,395 | 16,046 | <issue_start>username_0: How would you show the results from multiple selected options using `amp-selector`?
For example in the code below,
If you select both US & Europe, the list should show:
* US
* US
* US & Europe
* Europe
* Europe
* Australia & US & Europe
```html
MultiSelect
body{-webkit-animation:-amp-s... |
2018/03/08 | 782 | 3,039 | <issue_start>username_0: This is probably something that I should know but I don't quite understand the behavior of my component when I pass a function without parentheses. Here's my component code.
```
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-... |
2018/03/08 | 590 | 2,210 | <issue_start>username_0: In my program I am reading another python program and I want to find some special python keywords. When I find them I want to print out some code in front of that keyword found and after it.
This is my code:
```
if line.find("def") == True or line.find("if") == True or line.find("elif") == Tr... |
2018/03/08 | 697 | 2,145 | <issue_start>username_0: I am new to Flutter and I am trying to call my ASP.NET server web API.
From the logs on my server, everything goes fine but Android Studio throws an exception: "invalid header field name".
Here is the code in dart:
```
import 'package:http/http.dart' as http;
...
_getService() async {
St... |
2018/03/08 | 548 | 1,874 | <issue_start>username_0: So I have an input:
```
```
when you click on it, it shows a "dropdown" menu:
```
- 
{{x.name}}
{{x.type}}
```
Here is the TypeScript:
```
showDropDown = false;
toggleDropDown() {
this.showDropDown = !this.showDropDown;
console.log(... |
2018/03/08 | 1,213 | 4,291 | <issue_start>username_0: I'm trying to create a Reactjs project from scratch. I've heard that it's easier to use `create-react-app`. I have also been told that the `standard industry practise` is to use webpack to bootstrap your React projects.
I have created my webpack config file like below:
```
const path = requir... |
2018/03/08 | 245 | 981 | <issue_start>username_0: How do i want to get the package AID and applet AID from the cap file?
Currently i am using a tool PyApduTool to get the info of the cap file but right now im trying to create my own tool but got stuck on this step.
Glad if anyone can assists me on this.
Thanks<issue_comment>username_1: Down... |
2018/03/08 | 1,128 | 4,049 | <issue_start>username_0: I have a console application with have two threads as:
```
public static async void Thread1()
{
for (int i = 0; i < 100; i++)
{
Debug.WriteLine("Thread1 " + i);
await MyFunc();
}
}
public static async ... |
2018/03/08 | 1,286 | 4,355 | <issue_start>username_0: I was reading this Q/A [here](https://stackoverflow.com/questions/7804955/heterogeneous-containers-in-c) and as my question is similar but different I would like to know how to do the following:
Let's say I have a basic non template non inherited class called `Storage`.
```
class Storage {};
... |
2018/03/08 | 299 | 1,068 | <issue_start>username_0: How can I combine such a query here with two other queries, using a different reaction (`dislike`, `viewed`) so I can gather stats with one query?
```
SELECT COUNT(DISTINCT user_id) FROM reactions
WHERE post_id = $1 AND reaction 'like';
```<issue_comment>username_1: Use conditional aggre... |
2018/03/08 | 990 | 3,737 | <issue_start>username_0: This question has been asked before, but all of the popular questions are 5+ years old and I'm curious to know if anything has changed since then. If you have a function that's defined somehwere
```
const accessParentScope = () => parentVariable;
```
then is there any way to access a `parent... |
2018/03/08 | 729 | 2,638 | <issue_start>username_0: At the moment I have the following form:
```
| | | |
| --- | --- | --- |
| Manifest No.: | | \* |
| Carrier Origin: |
@foreach($origins as $origin)
{{ $origin->customer\_name }}
@endforeach
| \* |
| Origin Terminal: | Please SelectCINC-Cincinatti | \* |
| Date Unloaded: | | \* |
... |
2018/03/08 | 1,007 | 3,894 | <issue_start>username_0: I am new to web developing and I am trying node.js with express.
I have the following directory structure:
**First App**
----**node\_modules**
----**public**
--------**scripts**
------------*additems.js*
----**views**
--------*home.ejs*
----*app.js*
with bold is a folde... |
2018/03/08 | 583 | 1,847 | <issue_start>username_0: I'm having a little trouble with my program. I already wrote my user validation and I can print all odd numbers up to what the user inputed. My problem is trying to get 10 integers on every line. Obviously, I tried the i % 10 == 0 technique and as you know odd number can't have a remainder of z... |
2018/03/08 | 1,592 | 5,047 | <issue_start>username_0: While answering the question [Vectorize calculation of a Pandas Dataframe](https://stackoverflow.com/questions/49162819/vectorize-calculation-of-a-pandas-dataframe/49163208?noredirect=1#comment85333650_49163208), I noticed an interesting issue regarding performance.
I was under the impression ... |
2018/03/08 | 1,372 | 4,306 | <issue_start>username_0: I have CodeBuild project that works fine.
Trying to use it in CodePipeline and it failure with empty Repository and Submitter.
[](https://i.stack.imgur.com/9Jp0x.png)
Failure logs are simple as:
```
01:34:... |
2018/03/08 | 1,536 | 4,486 | <issue_start>username_0: I want to merge 6 datasets that have an ID variable. I want to have one data set with ID values common to all datasets.
I know this is an easy fix, but I haven;t come across a help topic
ex.
```
id month sbp dpb
D1 3 40 40
D1 4 10 10
D1 3 20 20
D2 4 30 20
D3 5 1... |
2018/03/08 | 864 | 4,175 | <issue_start>username_0: I keep getting an error: Function `roll` could not be resolved. I'm not sure it is because of the scope and if it is, how do I fix it?
```
#include
#include
using namespace std;
int main() {
roll();
}
int playerSum = 0;
int dice [5];
void roll(){
for(int i =0;i<6;i++){
int randNum = r... |
2018/03/08 | 2,472 | 7,305 | <issue_start>username_0: I have this in my `views.py`:
```
def profile(request):
parsedData = []
if request.method == 'POST':
username = request.POST.get('user')
req = requests.get('https://api.github.com/users/' + username + '/repos')
jsonList = []
jsonList.append(req.json())
... |
2018/03/08 | 860 | 2,772 | <issue_start>username_0: I'm trying to grid a label inside its parent frame but it instead shows up at the bottom of the window, nowhere that I can think is even related to where I told it to go.
Here is my code:
```
class Window:
def __init__(self, root):
#configure the window as root
self.root = root
#c... |
2018/03/08 | 187 | 706 | <issue_start>username_0: Is there a full list of the allowed url parameters for github pull requests?
I know `"w=1"` can be used to ignore white space changes in file diffs, and something like `"ts=4"` can be used to reset tab stop width.<issue_comment>username_1: You can look at this link for cool features of Git a... |
2018/03/08 | 1,327 | 5,338 | <issue_start>username_0: I use Android Studio and Unity development, the Library packaged into aar file, and then the aar file as a Unity plug-in. When I use Java, no problem, but when using Kotlin, it will throw an exception. Thanks!
Exception:
```
AndroidJavaException: java.lang.NoClassDefFoundError: Failed resolu... |
2018/03/08 | 426 | 1,391 | <issue_start>username_0: ```
function test() return 1, 2 end
function foo()
return test(), 3
end
```
Expected result: `1, 2, 3`
Actual result: `1, 3`
**LuaJIT 2.1.0**<issue_comment>username_1: ```
function foo()
local a, b = test()
return a, b, 3
end
```
If you don't know how many return values there are:
... |
2018/03/08 | 644 | 2,247 | <issue_start>username_0: Why is it that newline is not working in alert typescript? I've tried \\n, \r\n, \n but it doesn't work here are my codes that i wanted to put a newline,
```
else if(isVerified == true && localStorage.getItem("verified") == "false"){
this.alert.create({
title: "You are almost there! ... |
2018/03/08 | 1,201 | 4,641 | <issue_start>username_0: The first parameter is a `HashMap` representing the selling price of each item in our store . The second parameter is a `HashMap` representing our inventory at the start of the day (quantities of each item in the store). The third parameter is an `ArrayList>` representing all the orders that ha... |
2018/03/08 | 1,165 | 4,516 | <issue_start>username_0: I'm writing a script to delete all of my YouTube comments. Each line of this code works to delete one comment, but when I put it into a loop, I get an `Uncaught TypeError: Cannot read property 'click' of undefined` that doesn't come up when I run each line individually. I'm thinking if I can fi... |
2018/03/08 | 991 | 2,996 | <issue_start>username_0: While installation of snowflake connector on mac, I am getting below error:
```
0,>=0.1.10->boto3<1.7.0,>=1.4.4->snowflake-connector-python)
Installing collected packages: pyOpenSSL, future, pycryptodome, ijson, snowflake-connector-python
Found existing installation: pyOpenSSL 0.13.1
DE... |
2018/03/08 | 654 | 1,867 | <issue_start>username_0: I am trying to apply the linear-gradient property to html progress bar tag.
This is how the visual would look like
[](https://i.stack.imgur.com/FmxtI.png)
Here's the jsfiddle for progress tag
<https://jsfiddle.net/nick1111/3... |
2018/03/08 | 389 | 1,387 | <issue_start>username_0: After I install the config package, I can no longer use merge function on my dataframes. I am getting error message "merge in error, ..., unused arguments."<issue_comment>username_1: Looks like `config` has a `merge()` function which overrides the `base` function.
Type `base::merge()` to get t... |
2018/03/08 | 2,286 | 8,160 | <issue_start>username_0: I'm trying to improve our current GNU Make based build system. It is half non-recursive and half-recursive.
Following [1], it is non-recursive on the directory tree. While sources are organized across directories in logical modules, they're ultimately brought in to a single dependency graph.
... |
2018/03/08 | 382 | 1,284 | <issue_start>username_0: Basically this is what it looks like:
```
int abc = 10;
* this is a comment
```
so, I just want to find the `* this is a comment` so that I can remove it from the string. I have tried some examples although it doesn't seem to work. The idea is basically starts with `*` followed by any comb... |
2018/03/08 | 1,940 | 9,225 | <issue_start>username_0: I want to get the current iOS device orientation even if device's orientation is locked. (Just like iOS Camera app)
I want to detect Portrait, Landscape Left and Landscape Right at least.
UIDeviceOrientation and UIInterfaceOrientation do not seem to work when orientation is locked.
In this c... |
2018/03/08 | 502 | 2,078 | <issue_start>username_0: I have a function which executes a jQuery ajax request. After this function, the web page will be redirected to another url, but sometimes the web page redirects before executing the ajax request.
```
executeAjax();
doRedirect();
```<issue_comment>username_1: A benefit of Ajax is executing wi... |
2018/03/08 | 316 | 1,092 | <issue_start>username_0: So I wish to print out **"It's awesome"** *with the quotes*
Note not print out **It's awesome**
Thanks a lot<issue_comment>username_1: ```
>>> print("\"It's awesome\"")
"It's awesome"
```
Escape the quotes in the print statement
Upvotes: 1 <issue_comment>username_2: Escape your strings usin... |
2018/03/08 | 1,173 | 3,054 | <issue_start>username_0: A column has values of '00', '01', '02', '03', ...
I want to find out each Name's max value. But, if there is '00' exists then
max should be '00'. If isn't, max is max.
**Original**
*Name Value*
Tom | 00
Tom | 01
Tom | 02
Jane | 01
Jane | 02
Jane | 03
Jack | 00
Jack | ... |
2018/03/08 | 1,068 | 3,713 | <issue_start>username_0: I an array of objects like this:
```
var items=
[
{
name: 'blah',
country: 'Foos'
},
{
name: 'foo',
country: 'Foos'
},
{
name: 'bar',
country: 'Foos'
},
{
name: 'baz',
country: 'Foos'
}
];
```
I ... |
2018/03/08 | 1,121 | 3,914 | <issue_start>username_0: my program is to check whether the current time is intime(go to work) or outtime(off work)
so, using timer, execute check method every seconds.
current I get current time I use `Calendar.getInstance()`
but `Calendar.getInstance()` is it seems that there is a lot of memory leak than I though... |
2018/03/08 | 1,051 | 3,663 | <issue_start>username_0: I am thinking a way to transform a distorted rectangle back to normal but I have no idea how. I cannot find any information about it as well. Could anyone provide some information about how to do the trick only knowing the x, y position of the 4 junctions? Known the rectangle was 640 x 480 befo... |
2018/03/08 | 550 | 1,620 | <issue_start>username_0: What I wanted to do is to know the number of employees that have their mgr and have no mgr. The table is like this:
```
Emp Branch Mgr
EmpA Branch1 Mgr1
EmpB Branch2 Mgr2
EmpC Branch1 Mgr2
EmpD Branch1
EmpE Branch2 Mgr2
EmpF Branch1 Mgr2
```
And the outpu... |
2018/03/08 | 338 | 1,174 | <issue_start>username_0: I am trying to add a textbox through the extension to VSTS. I need to know How to add a textbox using an extension to a work item in VSTS?<issue_comment>username_1: Refer to the sample below to custom work item control: [vsts-extension-multivalue-control](https://github.com/Microsoft/vsts-exten... |
2018/03/08 | 483 | 1,636 | <issue_start>username_0: This solution seems rather inelegant:
```
fn parse_range(&self, string_value: &str) -> Vec {
let values: Vec = string\_value
.splitn(2, "-")
.map(|part| part.parse().ok().unwrap())
.collect();
{ values[0]..(values[1] + 1) }.collect()
}
```
* Since `splitn(2, "-")` returns exactly two r... |
2018/03/08 | 1,012 | 3,313 | <issue_start>username_0: I have a sentence mixed with Chinese, Korean and English words. I used the `len()` function in Python but it gave me the wrong answer. For example, we have the string
`a = '여보세요,我是Jason. Nice to meet you☺❤'`
The correct word number, excluding punctuations, is 13, but `len(a) = 32`
How to co... |
2018/03/08 | 1,171 | 3,791 | <issue_start>username_0: I'm attempting to create a page using bootstrap 3, where I want the max-width of the page to be 800px so that there will be white space on screens which are large enough. To do this, I wrap all the pages content in a main
My issue is that when assigning the max-width of 800px to the main div ... |
2018/03/08 | 392 | 1,280 | <issue_start>username_0: I am designing a simple LFSR with a variable polynomial for a randomizer. The lfsr length is being defined as a generic. I need to initialize the starting value constant as something other than zeros/ones. I've found the answer to this before, but I can't seem to find the answer again. Here is ... |
2018/03/08 | 267 | 785 | <issue_start>username_0: If I do this:
```
* {{ morevalue }}
{{ value }}
```
The span in v-else will also be looped ON THE SECOND V-FOR even though it doesn't have any v-for on it, why?
This is the Vue instance:
```
new Vue({
el: '#exercise',
data: {
testData: {
name: 'TESTOBJECT',
... |
2018/03/08 | 581 | 2,128 | <issue_start>username_0: I want to split a query string like:
```
"(first_name:zach AND last_name:woods) OR (first_name:thomas AND last_name:middleditch) OR (first_name:martin AND last_name:starr) OR "...
```
into substrings, each not greater than 5000 characters, and I want to split on the pattern `" OR "`.
Help w... |
2018/03/08 | 804 | 2,704 | <issue_start>username_0: ) How can i access the Soda object keys and values from this JSON string and get them to display in my innerHTML? What I have here displays the drinks but i need to also display the soda selection...thank you for your help!
```
var selection ='{"menu": {"slice of pizza": "2.00", "toppings": {... |
2018/03/08 | 880 | 3,209 | <issue_start>username_0: I just installed Laravel 5.5.\* using following composer commands:
```
composer create-project --prefer-dist laravel/laravel blog "5.5.*" --prefer-source
```
Here is my Laravel instalation folder:
```
╭─yusuf@yusuf-he ~/test-laravel/blog/vendor/laravel/framework ‹cf750b0›
╰─➤ ls ... |
2018/03/08 | 565 | 2,151 | <issue_start>username_0: I'm working on a project with 2 different access files.
I have an read-only query from one file and tried to copy it to the other file.
The newly pasted query's data became editable. Anyone know why?
Note:
* The query includes 3 tables and a many-to-one-to-many relationship
* The two access ... |
2018/03/08 | 202 | 666 | <issue_start>username_0: I want to create a RegEx to search in JavaScript, the string I type is "AO it", so I want some sentences like "hit AO ah", "it AO",. Will be showed, I don't know how to do, and I wish when I type some special like ' (', '@#',... so it not show result.
I try RegEx as '.\*it.*AO.*' but not match.... |
2018/03/08 | 4,669 | 17,137 | <issue_start>username_0: I have a `MaterialApp` Widget that sets the `theme` for all Widgets within the app. I'd like to change the `MaterialApp`s `theme` value at runtime from a child Widget that doesn't have any direct reference to its parent `MaterialApp`.
It seems like this should be possible because the `ThemeDat... |
2018/03/08 | 1,129 | 4,178 | <issue_start>username_0: I am on windows and want to run my multi-threaded python app that saves data to .csv in an async way. As reported [here](https://stackoverflow.com/questions/6774724/why-python-has-limit-for-count-of-file-handles), [here](https://stackoverflow.com/questions/36474264/python-2-7-on-windows-too-man... |
2018/03/08 | 737 | 2,877 | <issue_start>username_0: If an angular app has two modules: `AppModule` and `ProfileModule`, they can have their own routing configured.
In [this](https://angular.io/guide/router) guide, it says that the order of the routing configuration is important. For an example:
```
const appRoutes: Routes = [
{ path: 'crisis... |
2018/03/08 | 1,106 | 3,368 | <issue_start>username_0: i have a array and i need to do it randomly show the output by probability below are my code
```
var shirts = [
["images/fantastic-logo.png","12.65"],
["images/fantastic-word.png","10.00"],
["images/free-product.png","15.50"]
... |
2018/03/08 | 1,082 | 3,458 | <issue_start>username_0: I have Json that may have spaces in it which I'd like to trim. I created this case class to parse with Json.parse(...).as[PersonalInfo] but the issue is that it fails on the first failed read and also doesn't return a JsError. How would I define the JsError case while also preserving the errors... |
2018/03/08 | 1,350 | 3,026 | <issue_start>username_0: How can I go from this Pandas dataframe:
```
0 1
0 A11 A12
1 A21 A22
2 A31 A32
```
to this:
```
0 1 2
0 r1 c1 A11
1 r1 c2 A12
2 r2 c1 A21
3 r2 c2 A22
4 r3 c1 A31
5 r3 c2 A32
```
rX is the row number (+1) of the element from the previous dataframe
... |
2018/03/08 | 665 | 1,662 | <issue_start>username_0: I have a list containing some elements that looks like this:
```
data = ["1: 6987", "2: 5436", "7: 9086"]
```
Is it possible to tuple the elements where it would look like this:
```
tuple_data = [("1", 6987) , ("2", 5436), ("7", 9086)]
```<issue_comment>username_1: `map` and `split` can be... |
2018/03/08 | 1,022 | 3,769 | <issue_start>username_0: So I am trying to get the current UTC time in Java ( I'm using Java 7 with ThreeTenAbp ). I have tried the following calls and all of them return the time in UTC + 12 hours which is not the real UTC time as I have checked online through various source that provide current UTC time.
```
Instant... |
2018/03/08 | 976 | 3,667 | <issue_start>username_0: Not sure if this is exactly the same as [NotFoundError: Expect status [200] from Google Storage. But got status 404 while reading a file](https://stackoverflow.com/questions/48240489/notfounderror-expect-status-200-from-google-storage-but-got-status-404-while?rq=1) but I have the same problem a... |
2018/03/08 | 650 | 2,182 | <issue_start>username_0: Upon clicking a submit button, I would like to do some client side validation to ensure there are fewer than 5 commas in a text box with the class of submit-btn. I can use javascript, jquery and/or regex here.
What code should I place within this function?
```
$('.submit-btn').on("click", fun... |
2018/03/08 | 1,355 | 5,334 | <issue_start>username_0: I am trying to create a shopping cart in CodeIgniter, I tried the method mentioned in the documentation and it works perfectly. But when I try to use it in the templetes it did not works. In the documentation, the products are hard coded but I am fetching the products from a database and insert... |
2018/03/08 | 303 | 1,002 | <issue_start>username_0: CPLEX prints out [nice node logs](https://www.ibm.com/support/knowledgecenter/SSSA5P_12.8.0/ilog.odms.cplex.help/CPLEX/UsrMan/topics/discr_optim/mip/para/52_node_log.html "node logs"), how can I get them using docplex? I've tried changing content.solver.verbose and log\_output but I'm not getti... |
2018/03/08 | 808 | 2,808 | <issue_start>username_0: [](https://i.stack.imgur.com/AUVzf.png)
Suppose I have a video chatting app that records the username of two users and the length of the call, the table is data of all the calls.
A person can appear in both user1 and user2. F... |
2018/03/08 | 443 | 1,391 | <issue_start>username_0: I've created a simple class and named one of the methods `next` which is failing when called.
```
class Node():
def __init__(self, val):
self.val = val
self.next = 0
def next(self, obj):
self.next = obj
```
Execution code:
```
a = Node(1)
b = Node(2)
a.next(... |
2018/03/08 | 1,304 | 4,218 | <issue_start>username_0: I'm running a test program where I make a list of strings and try to find which strings have a certain suffix or prefix.
```
#include
#include
#include
using namespace std;
list beginWith(const string& pre, list test);
list endWith(const string& suf,list test);
int main(){
list testL... |
2018/03/08 | 1,098 | 3,899 | <issue_start>username_0: I have a formArray which consist of multiple form groups. I need to sort the array dynamically based on a boolean field present in each of the form group in the array.
The boolean field is a checkbox and at any given point of time only one checkbox can be checked (mimics radio button). So whe... |
2018/03/08 | 1,113 | 3,695 | <issue_start>username_0: I am having a hard time understanding this tutorial: <https://acm.wustl.edu/functional/state-monad.php>
I am creating my own function that reverses a list and returns a `State` with the lowest element and the reverse of the list. I am very new to Haskell as well. Here is my code:
```
myFunct ... |
2018/03/08 | 630 | 1,943 | <issue_start>username_0: I cannot seem to update npm with npm install:
```
$ npm -v
5.6.0
$ sudo npm install -g npm@latest
/usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
/usr/bin/npx -> /usr/lib/node_modules/npm/bin/npx-cli.js
+ npm@5.7.1
updated 1 package in 11.905s
$ npm -v
5.6.0
```<issue_comment>userna... |
2018/03/08 | 833 | 3,683 | <issue_start>username_0: I'm having a hard time understanding what an element is in Flutter. From the doc: "An instantiation of a Widget at a particular location in the tree".
. . . I guess now I have to ask, what is the tree.
At first, I thought the tree referred to the states of widgets, but StatelessWidget also has... |