date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/02/24 | 1,354 | 2,095 | <issue_start>username_0: I am a django beginner trying to set up django newest version 2.0.2 in my virtual environment. I am running python 2.7 on my mac, currently using django 1.01.It wouldn't allow me to update any other versions.When I do pip install django==2.0
```
Collecting django==2.0
Could not find a versio... |
2018/02/24 | 3,048 | 10,683 | <issue_start>username_0: for a couple of days I'm now stuck with trying to get my webRTC client to work and I can't figure out what I'm doing wrong.
I'm trying to create multi peer webrtc client and am testing both sides with Chrome.
When the callee receives the call and create the Answer, I get the following error:
`... |
2018/02/24 | 1,917 | 6,427 | <issue_start>username_0: Trying to follow this guide : <https://kivy.org/docs/guide/lang.html#accessing-widgets-defined-inside-kv-lang-in-your-python-code>
I am attempting to access a widget using an id definition. This works well inside the root widget but it doesn't seem to work outside of it.
As an example here's... |
2018/02/24 | 500 | 1,870 | <issue_start>username_0: I'm just using git for the first time as an occasional committer on a project I'm only involved in at a high level.
I pulled master for the first time this week and am finding that I really wish there was a way to see a summary of how the app has changed since I last worked on it. Can I look u... |
2018/02/24 | 1,027 | 3,884 | <issue_start>username_0: My goal is to open a modal in angular when I press a button. I decided to use ng-bootstrap for this. I went to their website and decided to copy paste the default modal code into my application.
The button is showing and when I click it, the screen moves a little bit, but there is no modal to... |
2018/02/24 | 141 | 385 | <issue_start>username_0: Here is a for loop in C. How do I represent the `i=i*2` condition in MATLAB?
```
for(i=2; i
```<issue_comment>username_1: You can use this vector:
```
powers = 1:(ceil(log2(n))-1);
range = 2.^powers
for idx = range
% statements
end
```
Upvotes: 3 [selected_answer]<issue_comment>userna... |
2018/02/24 | 301 | 911 | <issue_start>username_0: My question is simple, but I do not find the solution. I need to post a body like this :
- key : username value : moi
- key : paswd value : root
-...
It work with postman, but when I try with angular 5 I do not have the response :
```
readonly ROOT_URL = 'localhost:8080/auth/';
getToken() {
... |
2018/02/24 | 491 | 1,600 | <issue_start>username_0: if I want to use input as Variables name in OOP and Classes
how should i do it:
```
class animal:
def __init__(self,name,age):
self.name = name
self.age = age
def display_age(self):
print("{} Age: {}".format(self.name,self.age))
def create():
name = input(... |
2018/02/24 | 1,389 | 5,730 | <issue_start>username_0: I have created a custom class called **HTMLElement**.
```
class HTMLElement
{
private $name;
private $value;
function __construct($name,$value) {
$this->name = $name;
$this->value = $value;
}
public function getName(){
return $this->name;
}
public function setName($name){
$t... |
2018/02/24 | 220 | 787 | <issue_start>username_0: I have the following Constraint Layout:
```
`xml version="1.0" encoding="utf-8"?
`
```
It has the following output:
[](https://i.stack.imgur.com/JQLci.png)
Now what I want is that the headline text view should only b... |
2018/02/24 | 768 | 2,943 | <issue_start>username_0: Assume I have two classes (or more). One as a database entity, one as a json constrains. Because database entity set the property as a foreign key so that property is an object. But in the json case, the property is just a string type.
```
interface A {
title: string
catalogue: string
... |
2018/02/24 | 704 | 1,863 | <issue_start>username_0: I'm trying to insert space between numeric characters and alphabet character so I can convert numeric character to words like :
```
Input :
subject101
street45
Output :
subject 101
street 45
```
I tried this one
```
re.sub('[a-z][\d]|[\d][a-z]',' ','subject101')
```
... |
2018/02/24 | 895 | 2,994 | <issue_start>username_0: The purpose of the code below is
1. Scan the Location of the bot
2. Scan the state of the location, whether it is dirty or clean
3. Do this continuously until the bot get 3 times "no" state continuously
The issue is:
counter value increment just once, `counter = 1`, and then never increment. ... |
2018/02/24 | 943 | 3,296 | <issue_start>username_0: How to make the custom query for popup view, I made changes in ViewList as mentioned above but it doesn't affect on the list which came in popup view list.
My requirement is to pass product type when I open this from invoice module.
In invoice, we have a product line and service line, and fro... |
2018/02/24 | 279 | 1,156 | <issue_start>username_0: I want to build a simple website with 4 pages and only language that i know is c#.
That's why i will use asp.net framework on visualstudio.
I Designed whole my webpages on photoshop however i can't use div tags, it seems complicated to me. I know, most of you know divs perfectly however i can... |
2018/02/24 | 585 | 1,862 | <issue_start>username_0: I'm using a Magento Shop Version 1.5.1.
For invoice payment the extension Mxperts Invoice is installed: <https://github.com/sreichel/magento-Mxperts-Invoice/tree/master/app/code/local/Mxperts/Invoice>
Right now in the admin form the the invoice: System - Konfiguration (Configuration) - Zahlun... |
2018/02/24 | 900 | 3,376 | <issue_start>username_0: I'm initializing an `AVPlayerItem`, and it takes a parameter `automaticallyLoadedAssetKeys`, which indicates which `AVAsset` keys need to be loaded before it is flagged as "ready to play".
I've seen examples of people passing in the `duration` property as one of these keys.
But then over in t... |
2018/02/24 | 937 | 3,246 | <issue_start>username_0: If I have
```
printf("%f\n", 3);
```
I get
```
3.000000
```
And if I have:
```
printf("%f\n", 3.0);
```
I get the same answer.
But here's the thing, 3 and 3.0 should be completely different, bit wise.
3.0 should be something like `01000000010000000000000000000000` (but double prec... |
2018/02/24 | 815 | 3,401 | <issue_start>username_0: I wrote a program that receives message from firebase until program is running, messages are receive by "FirebaseMessagingService" and notification is not generated by Android and the management of the message is not done by the program that I wrote.
```
[Service]
[IntentFilter(new[] { "com.go... |
2018/02/24 | 710 | 2,264 | <issue_start>username_0: I have two columns and I want get sum of this two.
```
POINTS BONUS_POINTS
-----------------------
5 -1
4 0.4
7 -0.5
```
But it's problem, that one column is of type integer and another is of type double. `BONUS_POINTS` can be negative on positive.
I wa... |
2018/02/24 | 1,536 | 5,673 | <issue_start>username_0: i am trying to retrieve specific row in a json request through WebResponse method but is currently not working out. I am converting a wav files audio to text. It works good and converts it well but i am getting output rows: RecognitionStatus, Duration, Display, Offset. The only row i want outpu... |
2018/02/24 | 429 | 1,336 | <issue_start>username_0: I have a mysql table that has a numeric column that refers to a day of the week in a pattern.
1 = Monday through to 7 = Sunday.
If the pattern is greater than a week, the numbers continue to increase so 13 would be a Saturday as would 20.
Can anyone help construct a query that finds all numb... |
2018/02/24 | 388 | 1,173 | <issue_start>username_0: I'm trying setting up a mailto: link with a body bigger than one line.
I tried \n to start a new line but it shows up in mail body as characters and doesn't start a new line:<issue_comment>username_1: You can use `MOD` to make the number representing weekday circle around back to 1 after hitti... |
2018/02/24 | 378 | 962 | <issue_start>username_0: I have a 3d Tensor with `[batch_size,x,y]` and a vector `[batch_size]`.
I want to scalar multiply the i-th matrix `[x,y]` with the i-th entry of the given vector.
Is there a build in function in Tensorflow or do i have to use the `tf.while_loop`?<issue_comment>username_1: I don't if there is ... |
2018/02/24 | 553 | 1,539 | <issue_start>username_0: I have a text with five 'XX' scattered at different places. I'd like to
replace the first instance of XX by 1., the second instance by 2. and
so, until replacing the fifth instance by 5. I tried to use the
following code without success:
```
Selection.Find.ClearFormatting
Selection.Find.Replac... |
2018/02/24 | 1,046 | 4,003 | <issue_start>username_0: A little background on my intent:
The purpose of the first function, GetFileNames, is to read through directories in a main folder that contains digital information on a number of facilities, and return the list of files with their BaseName.
The second function, SplitFileNames, takes the out... |
2018/02/24 | 3,560 | 13,778 | <issue_start>username_0: I'm trying to modify an open source code in android studio, but I keep getting Error:(134, 0) Could not get unknown property 'release' for SigningConfig container of type org.gradle.api.internal.FactoryNamedDomainObjectContainer. Does anyone know what's wrong with the code?
The code in the buil... |
2018/02/24 | 1,040 | 4,116 | <issue_start>username_0: I'm attempting to restore a list of checkboxes's 'ischecked' state however the boxes are never checked for some reason.
I'm sure I'm overlooking something small.
Any suggestions are appreciated.
Source:
-------
```
@Override
protected void onCreate(Bundle savedInstanceState) {
... |
2018/02/24 | 1,824 | 7,324 | <issue_start>username_0: I have a Word Document that includes as text the complete filepaths to multiple images (e.g. C:\Users\Name\Documents\Test Logos\alphatest.png). I am trying to create a macro to replace each text filepath with the image it refers to as inline shapes. The script also resizes the images. I am havi... |
2018/02/24 | 676 | 2,744 | <issue_start>username_0: I'm working on getting data to go from one textbox to another using javascript. Im new to Javascript and im getting a document undefined or null error.
```
function doit() {
window.document.form1.txtbox1.value= window.document.form2.txtbox2.value;
}
Enter your name:
Results:
```<iss... |
2018/02/24 | 1,623 | 5,992 | <issue_start>username_0: I am trying to use `map()` and display json data but it throws error see screenshot below.I am mapping each JSON object ans displaying it out using `showslots()` function.
data.js:
```
const data = {
"template_type": "slot_picker",
"selection_color": "#000000",
"second... |
2018/02/24 | 962 | 3,159 | <issue_start>username_0: I am currently trying to load a pickled file from S3 into AWS lambda and store it to a list (the pickle is a list).
Here is my code:
```
import pickle
import boto3
s3 = boto3.resource('s3')
with open('oldscreenurls.pkl', 'rb') as data:
old_list = s3.Bucket("pythonpickles").download_fileo... |
2018/02/24 | 1,097 | 3,214 | <issue_start>username_0: ```
void *buffer[10];
int size = backtrace(buffer, 10);
char cmd[1024];
sprintf(cmd, "addr2line -f -p -e a.out %p %p %p %p %p %p %p %p %p %p",
buffer[0],
buffer[1],
buffer[2],
buffer[3],
buffer[4],
buffer[5],
buffer[6],
buffer[7],
buffer[8],
buffer[9],
);... |
2018/02/24 | 387 | 948 | <issue_start>username_0: I'm creating an excel sheet which takes a sum of variables based on value of A,B,C and the number along with it 10A,20B, or 9C So,
```
10A = 10, 20B = 40, 9C = 27
```
to put it in simple terms
`A=1, B=2, C=3`
```
10A = 10(1); 20B = 20(2); 9C = 9(3);
```
Is that possible to do in Excel ... |
2018/02/24 | 1,744 | 5,048 | <issue_start>username_0: I'm trying to publish my private module to a new setup nexus OSS 3.8.0-02 (running in sonatype/nexus3 docker container), and hit an error with `errno: -4048`.
My npm version is in: node v8.9.4 and npm v5.6.0
I have already try to add my base64 encoded username and password in .npmrc which und... |
2018/02/24 | 498 | 1,862 | <issue_start>username_0: I use `QWebEngineView` to convert Markdown to HTML and render the math formula via MathJax. All the content are inside a . Then I use `document.getElementById("placeholder").innerHTML` to get the HTML content, which contains the converted Markdown content and rendered MathJax output. At last, I... |
2018/02/24 | 1,073 | 3,175 | <issue_start>username_0: The question is pretty straight, how could I generate :
```
std::tuple
```
If I know the type :
```
struct Foo { float a; int b; double c; };
```
And how could I retrieve the data, in both convertion?<issue_comment>username_1: You can do it manually. For example:
```
#include
#include
... |
2018/02/24 | 285 | 1,098 | <issue_start>username_0: when i use the code
session.currentFrame?.rawFeaturePoints?.points.count
to get the point cloud data from the depth camera on the front of iPhone X,but,it turns out to be nil
Does anyone knows what I am missing?
I don’t know how to do it. Please advice.<issue_comment>username_1: The ARPointClou... |
2018/02/24 | 513 | 1,491 | <issue_start>username_0: So I want to split a string by space unless that part of the string is in exclamation marks.
Sample:
```
ABC DEF !GHI JKL MNO! PQR
```
Would become:
```
["ABC", "DEF", "GHI JKL MNO", "PQR"]
```
Currently, this is my regex (I checked it with regex101.com and it worked)
```
[^\s]*![^!]* with [Jest](https://facebook.github.io/jest/docs/en/cli.html) testing framework to test only changed files from last commit as described in [this blog](https://benmccormick.org/2017/02/26/running-jest-tests-before-each-git-commit/).... |
2018/02/24 | 912 | 2,699 | <issue_start>username_0: How can I write a piped output that went through `jq` to a file in shell
Example:
```
curl api.example.com | jq > call.txt
```
won't work. Neither does
```
(curl api.example.com | jq) > call.txt
```
Help!
Edit: So doing `curl api.example.com > call.txt` works just fine. So it has to do ... |
2018/02/24 | 1,016 | 3,025 | <issue_start>username_0: I am trying to get the following mysql query in laravel.
```
SELECT * FROM (SELECT `tb`.owner_id,`tb`.property_id, `tb`.tenant_id FROM
`tbl_booking` tb join`tbl_ticket` tt WHERE `tb`.tenant_id = `tt`.tenant_id and
request_status = '4') AS T where T.tenant_id = 25 limit 1;
```
I have been ... |
2018/02/24 | 372 | 1,372 | <issue_start>username_0: I guess am not testing it the right way, but still I was wondering how to make sure a method call is triggered in an after\_action.
Having the followings :
```
class AbcdController < ApplicationController
after_action :handle_after, only: [:receive]
def receive
…… do some stu... |
2018/02/24 | 341 | 1,164 | <issue_start>username_0: I'm currently trying to get a list to show how many 'devices' are exceeding capacity, basically look at a cell, recognise the site name, look across to `exceeded capacity?` cell, see if = Yes then +1 to the count for that site?
I have done a Pivot table to count how many = 'yes' but because th... |
2018/02/24 | 572 | 1,898 | <issue_start>username_0: In Angular we can dynamically set css properties, like this:
```
.theme-color { color: {{color}}; }
.theme-background-color { background-color: {{color}}; }
.theme-border-color { border-color: {{color}}; }
```
In Vue, we can modify :class=... but that limits us to predefined class options, ... |
2018/02/24 | 2,487 | 7,374 | <issue_start>username_0: I want to be able to parse period of time (days, hours, minutes) + optional string so the input looks like this: `(white\_spaces)`. As i know regex is the right tool for such things so i came up with such expression:
```
Pattern.compile("((?\\d+)d)?((?\\d+)h)?((?\\d+)m)?\\s+?(?.+)?");
```
B... |
2018/02/24 | 391 | 1,273 | <issue_start>username_0: Mysql database totally has 4 schemas, and I just want to generate a specified schema named 'booking'. But it always generate all tables for all schemas. So I need your help. Below is my generatorConfig.xml.
```
xml version="1.0" encoding="UTF-8"?
```<issue_comment>username_1: 1. Make your tab... |
2018/02/24 | 820 | 2,937 | <issue_start>username_0: I have a QScrollArea with an included widget to select something. After the selection, the widget in the scroll area should switch to another widget. The user can also return and get the selection widget again to select something else.
But I always run into errors. It seems this is the problem... |
2018/02/24 | 1,581 | 5,631 | <issue_start>username_0: Having two applications **auth** and **store** and authenticating using IdentityServer4 and both are behind NGINX.
The store application successfully authenticates but after coming back from the auth application we get 502 Bad Gateway from NGINX.
Any idea what is going wrong here?
Auth app l... |
2018/02/24 | 2,992 | 10,248 | <issue_start>username_0: absolute beginner here having an absolute nightmare deploying a tiny website to Heroku. I have worked through numerous issues to get to this point, but I now seem to have hit another wall. I have raised this as a support ticket with Heroku, but unless it is an issue on their side I doubt whethe... |
2018/02/24 | 682 | 2,434 | <issue_start>username_0: I'm using `mat-menu` from angular/material:
```
Menu
Item 1
Item 2
```
In the Page Object `po.ts`, I'm searching for the first button:
```
getMenuButton() {
return element(by.buttonText('Menu'));
}
getItem1Button() {
return element(by.id('item1'));
}
```
In the .spec files, I'... |
2018/02/24 | 1,044 | 2,534 | <issue_start>username_0: Using: Python3.6, Pandas 0.22
Looking for any tips or documentation that would steer me in the right direction..
I have a DataFrame which calculates averages for snowfall based on month and location. The file has two years, 2016 and 2017. I am trying to understand if the code I have written i... |
2018/02/24 | 810 | 2,188 | <issue_start>username_0: I want to authenticate an Amazon Web Services user each time they use my app. I am developing the app using the AWS SDK for asp.net that will use the AWS-CLI to interact with the AWS API.
I know that a user with an AWS account can setup IAM credentials, is there some way I can use this?
The ... |
2018/02/24 | 1,015 | 2,947 | <issue_start>username_0: I was trying to understand the solution to this problem. The question is to see if any three numbers in an array return a certain value. This answer is what I found online.
```
public bool numberequal(int sum, int[] array)
{
int i, k, j;
bool answer = false;
for (i = 0; i < array.... |
2018/02/24 | 1,042 | 3,013 | <issue_start>username_0: I have a an array of a number of N paths to retrieve data from a different location in firebase database.
`searchPaths = ['locations/date1/imageID', 'locations/date2/imageID2', locations/date3/imageID3, ...]`
now, I want to loop through each search path and pull a value from it to save an arr... |
2018/02/24 | 1,072 | 4,280 | <issue_start>username_0: I have tried to program minimax nim game with Python. I am almost done with the codes. However, I could not solve a problem, which is so tricky. I could not reach 'best movement' of the algorithm. I started with (5, Max) position and the algorithm output should be (4, Min). My algorithm solves ... |
2018/02/24 | 812 | 3,481 | <issue_start>username_0: everything good ?
Today I need your help to solve a token authentication problem (jwt) in my SPA AngularJS application (I use NodeJS in the backend).
When I log in, the credentials are validated in the backend and if I succeed I get a token that is stored in localstorage.
But when I start ma... |
2018/02/24 | 2,072 | 6,457 | <issue_start>username_0: I created a program that generates random terrain and then displays it, using pygame. But my terrain generation is random, and thus very bad and i started to look up for noise.
The noise package doesn't work for me it gives this error:
```
Command "c:\users\intel\appdata\local\programs\python\... |
2018/02/24 | 1,568 | 3,888 | <issue_start>username_0: I had a exercise to sort an array from left to right
on the left side there will be odd numbers and on the right side even numbers.
The Function Gets an (Array) and its size (n) and need to run on O(N).
in the last Comparison "4" to "-3" it's supposed to get in the first if but it doesnt for ... |
2018/02/24 | 1,554 | 3,597 | <issue_start>username_0: I have a table like below:
```
CREATE TABLE TestT (Id INT, Dates DATE)
INSERT TestT VALUES
(1,'2018-01-01'),
(2,'2018-01-01'),
(3,'2018-01-01'),
(4,'2018-01-01'),
(1,'2018-02-01'),
(3,'2018-02-01'),
(4,'2018-02-01'),
(1,'2018-03-01'),
(2,'2018-03-01'),
(4,'2018-03-01')
```
---
I need outpu... |
2018/02/24 | 1,074 | 3,886 | <issue_start>username_0: In Visual Studio for Mac, if I wrote something like this:
```
public class Foo {
public int[,] Property1 { get; }
}
```
Put the cursor on the empty line there, and press Command + I to generate a constructor:
[](https... |
2018/02/24 | 668 | 2,518 | <issue_start>username_0: The top of text in `UILabel`(s) (on a table view cell) seems to depend on the number of lines and truncation.
[](https://i.stack.imgur.com/CtsIe.png)
As you can see in the image, the top of the label (who's background I colou... |
2018/02/24 | 850 | 3,305 | <issue_start>username_0: I use Excel 2007 and have created the function below to eliminate some characters from a string.
```
Public Function CleanString(sUser As String) As String
Dim lStringSize As Long, lCounter As Long
Dim iCode As Integer
Dim sChar As String
Application.Volatile
On Error GoTo ErrorHandler
lStri... |
2018/02/24 | 174 | 714 | <issue_start>username_0: In Meshlab, I have two meshed surfaces that are the two components of one object. I can glue them by hand in the way I want. Yet I cannot see the way to save the result in one file to be used hereafter.<issue_comment>username_1: You likely need to run "Matrix: Freeze Current Matrix" to apply th... |
2018/02/24 | 284 | 807 | <issue_start>username_0: I have this awk code ($1,2,3 are int numbers.)
```
awk '{
if($1 > $2 && $1 > $3) {print $1}
if($1 < $2 $$ $2 > $3) {print $2}
if($3 > $1 && $3 > $2) {print $3}}' /var/lab/lab2/awk/preke
```
How can I go about fixing it that if one of the statements is true, it would print out ... |
2018/02/24 | 588 | 1,834 | <issue_start>username_0: Let's say we have:
```
{ "_id": 1, "name": "Dev", final: false }
{ "_id": 2, "name": "Eliot", "reportsTo" : "Dev", final: false }
{ "_id": 3, "name": "Ron", "reportsTo" : "Eliot", final: false }
{ "_id": 4, "name": "Andrew", "reportsTo" : "Eliot", final: false }
{ "_id": 5, "name": "Asya", "re... |
2018/02/24 | 1,008 | 3,217 | <issue_start>username_0: im trying to download a file using vba but get "Run-time error '404': Write to file failed." when saving to file
```
Dim myURL As String
myURL = "http://example.com/file.exe"
Dim WinHttpReq As Object
Set WinHttpReq = CreateObject("Microsoft.XMLHTTP")
WinHttpReq.Open "GET", myURL, False
WinHt... |
2018/02/24 | 900 | 2,996 | <issue_start>username_0: Could someone please help me how to do this?
When I click a link, it will be directed to a new page containing the contents related to the value of the link. Like for example, after clicking the title of an article, it will be directed to a new page containing its content. So the value of the l... |
2018/02/24 | 411 | 1,514 | <issue_start>username_0: I have this simple slideshow set up and it all works fine if I remove the parameters and add the class and speed manually.
If I use parameters to set the class and speed, it fails. With the first image getting the current class applied and then the dom seems to go crazy.
‘undefined’ pops up a... |
2018/02/24 | 678 | 2,305 | <issue_start>username_0: I have a non activerecord rails model:
```
class Document
attr_accessor :a, :b
include ActiveModel::Model
def find(id)
initialize_parameters(id)
end
def save
...
end
def update
...
end
private
def initialize_parameters(id)
@a = 1
@b = 2
end
end
`... |
2018/02/24 | 864 | 2,385 | <issue_start>username_0: I am writing a generic function which takes dataframe and column name and return the clean dataframe without outliers in R
```
cooks_dist <- function(dataframe,column){
dataframe <- dataframe %>% select_if(dataframe,is.numeric)
mod <- lm(column ~ ., data=dataframe)
cooksd <- cooks.dista... |
2018/02/24 | 390 | 1,516 | <issue_start>username_0: ```
private void UserForm_Load(object sender, EventArgs e)
{
if (txtUsername.Text != "" || txtPassword.Text != "" || txtID.Text != "" || txtFirstName.Text != "" || txtMiddleName.Text != "" || txtLastName.Text != "" || txtDep.Text != "")
{
btnNext.Enabled = true;
}
else
... |
2018/02/24 | 1,865 | 6,751 | <issue_start>username_0: Hi please help me to find out how trully responsive game can be created with Phaser3.
Respnsiveness is critical because game (representation layer of Blockly workspace) should be able to be exapanded to larger portion on screen and shrinked back many times during the session.
The question is ... |
2018/02/24 | 777 | 3,048 | <issue_start>username_0: When I call function `$translator->trans($key)`, the doc states that the first parameter is the id. To me it seems that the id should relate to the id attribute inside the .xlf file. In reality, it relates to the source element of the .xlf file.
Method call inside controller:
```
$translator-... |
2018/02/24 | 720 | 2,805 | <issue_start>username_0: I have a table which has multiple columns that have an ID, and I need to get information from one column wherever it matches.
```
tblA
colA | colB | colC | colD
1 5 6 7
2 5 5 8
3 7 8 9
4 8 8 9
```
Is there a way that I can Sel... |
2018/02/24 | 1,514 | 5,455 | <issue_start>username_0: I'm writing an app, and I am wondering whether I should compile it in 32-bit mode or 64-bit mode. The program doesn't use any 64-bit types and doesn't access over 4 gigabytes of memory (and I don't plan on it ever accessing that much memory). The only advantage that I can see in using 64-bit mo... |
2018/02/24 | 1,629 | 5,892 | <issue_start>username_0: The code that I have currently pastes the data in Column A of worksheet "Projects" into the next blank row on worksheet "Assignment". I would like it to paste into the first blank cell on worksheet "Assignment" instead.
```
Option Explicit
Sub CopyPasteX()
'Declare variables
Dim projN... |
2018/02/24 | 886 | 2,903 | <issue_start>username_0: Is that possible to check if the variable array contains exactly the numbers `1,0,0,1`?
For example,
```
var array = [1,0,0,1];
if (array === 1001) alert("success");
```<issue_comment>username_1: You can just `join` the array to check
>
> The `join()` method joins all elements of an array... |
2018/02/24 | 656 | 2,316 | <issue_start>username_0: I have this code sample with a method which returns the sum of array values. But instead of the sum, I'm getting 0.
This is my code sample
```
class Calculation {
int answer;
public int SumOfArrays(int data[], int size) {
answer = 0;
for (int i = data[0]; i < size; i... |
2018/02/24 | 577 | 1,951 | <issue_start>username_0: I am using Semantic UI lib for react
<https://react.semantic-ui.com/introduction>.
and create-react-app boilerplate
<https://github.com/facebook/create-react-app>.
My app requires RTL support especially for the Step component.
while researching for a solution i found that semantic ui have a c... |
2018/02/24 | 1,049 | 2,490 | <issue_start>username_0: I have a long file which is structured like below:
* every line should start with `500`
* there are lines not starting with `500` (Line 2, Line 4, basically every even line)
What I want to do:
* The lines not starting with `500` should be merged with not even line above (so Line 2 with Line ... |
2018/02/24 | 984 | 2,697 | <issue_start>username_0: Consider we have a string (which is MySQL Error message) as following:
>
> Data truncated for column 'sam\_office\_balance' at row 1
>
>
>
Now I need the part in single quotes as:
>
> Sam Office Balance
>
>
>
```
$errorMessage = "Data truncated for column 'sam_office_balance' at row... |
2018/02/24 | 518 | 2,054 | <issue_start>username_0: I have an angular component that contains a NgModal popup.
I am subscribing to the ngrx store in the component.
The component's ngOnDestroy is never called because a new route is never called.
The user add's new Users via the modal popup.
The subscription(select) to the store for the 'us... |
2018/02/24 | 1,010 | 3,290 | <issue_start>username_0: ```
...
for (int i = 1; i != 9; ++i)
std::cout << i << std::endl;
...
```
The header of a for loop statement consists of three parts: an init-satement, a condition and an expression. In the case above, the init-statement is `int i = 1;`
Seems it is illegal to include a statement with a comm... |
2018/02/24 | 1,397 | 5,093 | <issue_start>username_0: I want to automatically start/stop our app engine services by running a bash script.
I know it's easy to run `gcloud app versions start/stop`, but I don't want to manually check the version number. I want to dynamically pass the version that is serving 100% traffic to gcloud and tell it to st... |
2018/02/24 | 1,114 | 1,846 | <issue_start>username_0: I have a dataframe named a whose column names are x1,y1,x2,y2,x3,y3. And how can I reshape it to a dataframe with column names as x,y without using loop, using tidyr::gather and tidyr::spread is preferred.
i.e.
```
a<-structure(list(X1 = c(0L, 1L, 2L, 3L, 4L, 5L, 6L, 0L, 0L, 0L),
Y1 = c(1L,... |
2018/02/24 | 629 | 2,672 | <issue_start>username_0: I'm not be able to access the Database, means Its not giving me any response while I writing into the database. I don't have any Type of authentication just for temporary I use firebase but it's not allowing me to read and write into the database.
Is it compulsory to have the authentication to... |
2018/02/24 | 578 | 2,279 | <issue_start>username_0: I'm having a hard time even coming up with a title for this.
If I'm editing the code for a regulator old blog post (content.php) and add
```
php the_category(', ') ?
```
I get a clickable list of all the categories that post belong to.
I have a custom post type called research and a cust... |
2018/02/24 | 455 | 1,851 | <issue_start>username_0: My question is that what is the best way to upload data to the server. The twist is that when the device is offline then it stores the data anywhere and when the device will online then auto get the data and upload to the server...<issue_comment>username_1: You need to set
```
Read == true
Wr... |
2018/02/24 | 722 | 2,820 | <issue_start>username_0: Can someone assist me with a VBA code that does the following?
Given query "Query1" and Table "Table1" in an Access DB
I would like to create a command button to loop through Query1, lookup and match a field.
```
Lookup [Query1].[number]=[Table1].[number]
set [Table1].[le... |
2018/02/24 | 889 | 3,226 | <issue_start>username_0: I'm working with React 16.2.0, TypeScript 2.7.1, and *any* is not allowed as a type.
The main component:
```
// index.js
import * as React from 'react'
import Page from './page'
import i18n from '../i18n'
import PageContent from '../components/pageContent'
import withMoreInfo from '../hoc/w... |
2018/02/24 | 649 | 2,305 | <issue_start>username_0: I'm trying to read a file in binary format into a `std::vector`
```
std::ifstream fStream(fName, std::ios::binary);
std::vector file\_content((std::istreambuf\_iterator(fStream)),
std::istreambuf\_iterator());
```
but I'm getting this error (which to me looks like `istreambuf_iterator`... |
2018/02/24 | 620 | 2,088 | <issue_start>username_0: I have a simple block that is suppose to move left 200px with translateX. It will move left with position left. I can't seem to move the block with translateX or translateY. CSS values for Transform translate will work. Reason to use translate is the performance compared to position. I commente... |
2018/02/24 | 602 | 2,358 | <issue_start>username_0: I need to find a document, check some condition on its fields and perform an action or another depending on the outcome of a condition. This is inside a request handling so I must return different things in the response depending on the outcomes.
I have a solution done with findOneAndUpdate an... |
2018/02/24 | 584 | 2,015 | <issue_start>username_0: I made a SUDOKU solver. When is solve a number it should be written to the screen but it's happen only when the solver is done. Why only then the screen is refreshing when it is done?
ii is the number, jj is the row, ll is the column
```
private void MainForm_Load(object sender, EventArgs e)
... |
2018/02/24 | 473 | 1,575 | <issue_start>username_0: I downloaded oracle db (Express Edition) and am able to establish a connection to it with my sql developer
Here is my application.properties-file:
```
spring.datasource.url=jdbc:oracle:thin:@localhost:1521:xe
spring.datasource.data-username=sys
spring.datasource.data-password=<PASSWORD>
sprin... |
2018/02/24 | 362 | 1,311 | <issue_start>username_0: I'm trying to make a website with some fun features that require a working `TextChanged` event with textboxes. Here's what I tried to do:
Textbox html code
C# embedded code
```
protected void Page_Load(object sender, EventArgs e)
{
TextBox1.TextChanged += TextBox1_TextChanged;
}
protect... |
2018/02/24 | 476 | 1,765 | <issue_start>username_0: I am a total JavaScript amateur. I want to create a section where people can switch between 2 audios with a video running along with it. I want to show a before and after version of the audio.
Basically, the video should run with the "before" version of the audio initially. Then there should b... |
2018/02/24 | 444 | 1,540 | <issue_start>username_0: I would like to do something like create two Futures, use whichever returns first in one code path and send the "slow" Future down a different code path.
A use case is, e.g. I have the option to call one of two external endpoints which are "variable speed" and "old reliable". Data from either ... |