date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/22 | 441 | 1,851 | <issue_start>username_0: For my Website, I have a set background-color of the body, for example
```
body {
background-color: #FFFFFF;
}
```
I also have a button defined in the .html-File (Let's say it has the ID "button1"), and I want the Background-Color of the body to change (to for example #000000;) when the butt... |
2018/03/22 | 1,059 | 3,580 | <issue_start>username_0: I am running a **MySQL** database.
I have the following script:
```
DROP TABLE IF EXISTS `org_apiinteg_assets`;
DROP TABLE IF EXISTS `assessmentinstances`;
CREATE TABLE `org_apiinteg_assets` (
`id` varchar(20) NOT NULL default '0',
`instance_id` varchar(20) default NULL,
PRIMARY KEY (... |
2018/03/22 | 838 | 2,912 | <issue_start>username_0: I thought this would be pretty straightforward, but I have about 80 databases in the server I am looking at, each database has 5-500 tables.
I am wondering how i can search for a TABLE NAME across everything. I tried a basic
```
SELECT
*
FROM sys.tables
```
but I only get 6 results.<issue... |
2018/03/22 | 657 | 2,415 | <issue_start>username_0: I am trying to access a data storage of the azure stack. The following instructions work:
```
BlobClient = StorageAccount.CreateCloudBlobClient();
CloudBlobContainer myContainer = BlobClient.GetContainerReference("mycontainer");
```
But it crashes, when creating the Blob via `myContainer.Cre... |
2018/03/22 | 1,183 | 3,895 | <issue_start>username_0: Last time I build successfully but after adding the number of pages I am unable to build, I did search for that error a lot but nothing works for me.For example, **added and removed the platform**, **ionic cordova clean** , **ionic cordova build** etc…
Following Error facing by running-- **ion... |
2018/03/22 | 520 | 1,885 | <issue_start>username_0: Below I have a migration for the "test" model which uses it's own primary key, a String instead of an Integer.
```
class CreateTest < ActiveRecord::Migration[5.1]
def change
create_table :test, id: false do |t|
t.string :id, primary_key: true
t... |
2018/03/22 | 306 | 1,046 | <issue_start>username_0: I would like to add to all elements with class `.double-text` attribute `data-content` with element's content value.
I tried something like that
```
$(function(){
$('.text-double').attr("data-content", $(this).text());
});
```
But, obviously, it doesn't work.
Can someone help me, pleas... |
2018/03/22 | 598 | 1,993 | <issue_start>username_0: Basically in cells B42 and B43 I have more than 255 characters and my code breaks and gives RUN type error mismatch 13.
when I am running the following line:
```
CopyTranspose wb.Sheets("Apple").Range("B17:B46"), shtDest.Cells(pasteRow, "R")
```
I get an mismatch error in here:
```
Sub... |
2018/03/22 | 589 | 2,053 | <issue_start>username_0: I'm trying to write an SQL statement that would indicate what kind of commission is being given. I'm stuck on the last part that shows what percentage is given because SQL won't convert a char value to money.
I'm new to this so my conversion attempt may be entirely bogus.
```
CASE
WHEN Ve... |
2018/03/22 | 2,029 | 7,279 | <issue_start>username_0: I recently tried to add a launch(splash) screen to my app, But an error is occurring all the time i try to run the app by the emulator.
this is the error log:
```
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.aidin.workbook, PID: 29714
java.lang.RuntimeExcept... |
2018/03/22 | 518 | 1,699 | <issue_start>username_0: Super new to CSS and need some help! I want to hover over some text, and have my image show up in s specific spot on my page and not pop-up around the text. I tried changing the location of the photo, but no matter what I try, it stays in the same place, hovering around the text. Your help woul... |
2018/03/22 | 478 | 1,985 | <issue_start>username_0: I understand that the minimum part size for uploading to an S3 bucket is 5MB
Is there any way to have this changed on a per-bucket basis?
The reason I'm asking is there is a list of raw objects in S3 which we want to combine in the single object in S3.
Using PUT part/copy we are able to "glu... |
2018/03/22 | 807 | 2,838 | <issue_start>username_0: I'm writing some code size analysis tool for my C program, using the output `ELF` file.
I'm using `readelf -debug-dump=info` to generate `Dwarf format file`.
I've noticed that My compiler is adding as a part of the optimization new consts, that are not in Dwarf file, to the `.rodata` section.... |
2018/03/22 | 1,027 | 4,419 | <issue_start>username_0: How can I set the response header for each call in my application made with Spring Boot?
I would like to try to use a filter to intercept all the calls and be able to set the response header.
I followed the guide [Disable browser caching HTML5](https://stackoverflow.com/questions/49401531/disab... |
2018/03/22 | 1,087 | 4,640 | <issue_start>username_0: I am using maven assembly plugin to zip my web application dist folder.
I use this `descriptorRef` file:
```
webapp-build
zip
false
dist
.
\*\*/\*
```
and I use it as a dependency in a parent pom like this:
```
maven-assembly-plugin
3.1.0
com.company
build-tools
1.0.0-SNAP... |
2018/03/22 | 1,798 | 7,402 | <issue_start>username_0: I have written a function in a component to handle when errors are returned from a Rest Service and determine what error message should be shown to the user, the method takes an error object (this is custom data with a specific structure from the rest service) as an argument, drills sown to fin... |
2018/03/22 | 812 | 2,586 | <issue_start>username_0: I have a problem, for school we continue working on a project another group started last semester.
The first table: testresult4values
[](https://i.stack.imgur.com/hIcBC.png)
The next table: event
[. It consists of 4 fields. id (with PK and NOT NULL) and field1, field2, and field3 (which have do not have NOT NULL).
The only data populated in the table are the 1 and 2 in the id field. (I'll include a screenshot below) Now I want to populate the rest of tho... |
2018/03/22 | 847 | 3,177 | <issue_start>username_0: I'm trying to read a basic txt file that contains prices in euros. My program is supposed to loop through these prices and then create a new file with the other prices. Now, the problem is that java says it cannot find the first file.
It is in the exact same package like this:
[
After searching in the select box:
[](https://i.stack.imgur.com/Yy3IN.png)
After typing a text that is not in the dropdown and enter is pressed. I want t... |
2018/03/22 | 491 | 1,443 | <issue_start>username_0: I have a data frame that has about 25 columns and I want to rename the fields names for each column to a set name will the column number. For example column 4 will be called Col4, column 5 will be called Col5..etc.
I could write my R code so that:
```
colnames(df)[1]<-'Col1'
colna... |
2018/03/22 | 470 | 1,274 | <issue_start>username_0: I´m trying to sum up some vectors within a function. Depending on my input, some of the vectors might be created or not. For example, I have vectors A, B, C and D:
```
A <- c(1,1,1,0)
B <- c(1,0,1,1)
C <- c(0,0,0,1)
```
in this case, D doesn't exist.
I need to write a code that sums up the... |
2018/03/22 | 825 | 1,985 | <issue_start>username_0: ```
var count = 0;
arrA = ["6", "2", "21", "8", "4", "12"];
arrB = ["8", "2", "12", "2", "5", "11"];
```
I want to compare each element
only if if `arrA[i] > arrB[i]`, then count add 1
How to implement this in javascript?<issue_comment>username_1: Use a simple for loop:
```
for(let i = 0; i... |
2018/03/22 | 802 | 2,922 | <issue_start>username_0: I'm using [StripeAPI](https://stripe.com/docs/api "StripeAPI") in PHP and I don't know how can I stop a customer subscription at a specific date.
I know there is an option for cancel subscription immediatly :
```
$subscription = \Stripe\Subscription::retrieve('sub_49ty4767H20z6a');
$subscript... |
2018/03/22 | 437 | 1,153 | <issue_start>username_0: I have a list that I want to break into three separate lists created from the first, second, and third positions in the list. It would look something like this:
input:
```
X = ['GCA','GCC','GCT','GCG']
```
output:
```
C1 = ['G', 'G', 'G', 'G']
C2 = ['C', 'C', 'C', 'C']
C3 = ['A', 'C', 'T',... |
2018/03/22 | 615 | 2,230 | <issue_start>username_0: Currently trying to figure out how to make face crops from bounding boxes (from detect-faces response) and use those crops to search an existing collection using the SearchFacesByImage API
This is mentioned on the SearchFacesByImage documentation.
>
> You can also call the DetectFaces operat... |
2018/03/22 | 1,089 | 3,551 | <issue_start>username_0: How can I make python mmap assignment atomic? Nothing about atomic is said here: <https://docs.python.org/3.0/library/mmap.html>
```
huge_list1 = [888 for _ in range(100000000)]
huge_list2 = [9999 for _ in huge_list1]
b1 = struct.pack("100000000I", *huge_list1)
b2 = struct.pack("100000000I", *... |
2018/03/22 | 954 | 3,425 | <issue_start>username_0: I try to get Mattermost working with Docker for Windows. As mentioned [here](https://docs.mattermost.com/install/docker-local-machine.html#mac-os-x-and-windows-10) I executed the following command:
`docker run --name mattermost-preview -d --publish 8065:8065 mattermost/mattermost-preview`
Aft... |
2018/03/22 | 916 | 3,208 | <issue_start>username_0: I would like to validate the list of numbers are in the range or not.
if the list of numbers are smaller than 33 and bigger than 38, I want those numbers to be returned with their order.
```
i<-c(33,34,35,36,37,38,80,100)
for (i in 1:length(i)) {
if ( 33 < i & i < 38 ) {
next
}
prin... |
2018/03/22 | 851 | 3,176 | <issue_start>username_0: I need a command to check all folder and files owner/ group permissions on linux server.
I have several websites and crons running the server. The idea is to get all files / folder in any website folder or crons having a owner apache. Which will list out the files and folder names whose owner... |
2018/03/22 | 848 | 2,575 | <issue_start>username_0: I'm trying to recursively find a sum of perfect squares in a dynamically allocated list. For some reason, my function keeps overlooking the first element.
\*A is the pointer to the first element of the array. n is the number of elements, meaning they are in range from 0 to n-1. When n is less... |
2018/03/22 | 5,624 | 17,178 | <issue_start>username_0: I have a Powershell scripts that creates 12 unique check boxes. Later in the script, it creates an email and enter information. I am trying to get the email to include the value of the boxes that are checked, and not the others. The variable name for each box is $CB1 up through $CB12.
```
Team... |
2018/03/22 | 1,294 | 3,816 | <issue_start>username_0: I find it impossible to do a subtraction between an immutable array reference and a mutable one using the [ndarray crate](https://crates.io/crates/ndarray):
```
#[macro_use]
extern crate ndarray;
use ndarray::Array1;
fn main() {
let a: &Array1 = &array![3.0, 2.0, 1.0];
let b: &mut Array... |
2018/03/22 | 1,201 | 3,610 | <issue_start>username_0: There is a problem in the page permalink in wordpress when i add page name it's permalink has to show like ["www.example.com/page-name](http://www.example.com/page-name)" instead of this it shows like
[www.example.com/page-name-2](http://www.example.com/page-name) or -3 when i try to change it... |
2018/03/22 | 1,791 | 5,453 | <issue_start>username_0: This is about Eclipse Jee Oxygen (eclipse.buildId = 4.7.3.M20180301-0715).
Until this morning everything was running fine, then Eclipse update poped-up.
I decided to take the update and after restarting Eclipse I tried to debug a plugin project I'm working on. When I clicked `Debug as > Eclip... |
2018/03/22 | 1,240 | 3,679 | <issue_start>username_0: I need to set a rectangle border around an `ImageView` on Android.
I do not know exact ratio of the image, so set height and width to `wrap_content`. The `ImageView` is limited by top and bottom views.
How to draw the border exactly around the image? Not full ImageView?
Currently it gives the... |
2018/03/22 | 586 | 2,275 | <issue_start>username_0: I am new to Jenkins pipeline scripting. I am developing a Jenkins pipeline in which the Jenkins code is as follows. The logic looks like this:
```
node{
a=xyz
b=abc
//defined some global variables
stage('verify'){
verify("${a}","${b}")
abc("${a}","${b}")
echo "changed valu... |
2018/03/22 | 654 | 1,483 | <issue_start>username_0: I have this file:
```
this is line 1 192.168.1.1
this is line 2 192.168.1.2
this is line 3 192.168.1.2
this is line 4 192.168.1.1
this is line 5 192.168.1.2
```
I would like to get, in a bash script, all lines (with tabs) which contains, for example, the pattern "192.168.1.1". By this way, I... |
2018/03/22 | 802 | 2,409 | <issue_start>username_0: i'm having a serious issue here. I have a function that pads a user's input with zeros. For example if i enter 88 it will normalize it to:
00000088. My function is this:
```
export default length => (value) => {
const noLeadingZeros = value.toString().replace(/(0+)/, '');
if (noLeadingZero... |
2018/03/22 | 787 | 2,533 | <issue_start>username_0: I am running into an issue where when I am attempting to override a function it is telling me that there is no method in the superclass. The subclass is in an XCTest. When I subclass in the regular project it works perfectly but the XCTest does not work for some reason Below is the Code
**Supe... |
2018/03/22 | 664 | 2,051 | <issue_start>username_0: I've made a simple PHP based exam for my students.
The results are recorded as "q1", "q2", "q3", "q4" and "q5" in the database.
Correct answers are recorded as "yes" and incorrect answers as "no".
There are 5 questions and I want the total score to be 100.
All the functions work as I'd like... |
2018/03/22 | 958 | 3,260 | <issue_start>username_0: I essentially have the same situation as a lot of other people.
Through extensive searching within Google I was able to come up with several different methods in which people claim their method works. I have yet to get any to work correctly yet. I don't yet know enough about jQuery to fully un... |
2018/03/22 | 634 | 2,685 | <issue_start>username_0: The fictitious situation is the following: I have a mobile application that has been published to the store for about a year now (both for iOS and Android). I’m preparing a new version of the application. Some of the api’s in the back end are obsolete or deprecated.
The problem is that users o... |
2018/03/22 | 1,065 | 3,300 | <issue_start>username_0: When building a python gensim word2vec [model](https://rare-technologies.com/word2vec-tutorial/), is there a way to see a doc-to-word matrix?
With input of `sentences = [['first', 'sentence'], ['second', 'sentence']]` I'd see something like\*:
```
first second sentence
doc0 1 ... |
2018/03/22 | 768 | 2,594 | <issue_start>username_0: I am looking at visualising neo4j graph data in Tableau but Tableau requires the coordinates to be included in the data before it can plot the nodes in a graph.
By coordinates I just mean an x & y value so that I can plot nodes and edges on a 2d graph. There aren't any geographic/address requi... |
2018/03/22 | 542 | 1,789 | <issue_start>username_0: I have a server which requires ID und Password has to be encoded in Base64. Meaning instead of `Username` you have to encode it into Base64 first and give the encoded String in.
And then in my Java Client i have an `javax.mail.Authenticator`. I manually encoded ID and Password into base64, sav... |
2018/03/22 | 720 | 2,389 | <issue_start>username_0: I have a problem when I try to change the options of my select and its value at the same time. If I use `v-model`, it works properly but if I use `v-bind:value` + `v-on:change`, it will not work.
Here is a js fiddle that will illustrate the problem : <https://jsfiddle.net/2vcer6dz/18/>
The fi... |
2018/03/22 | 448 | 1,688 | <issue_start>username_0: I need to collect different informations about weblogic servers in a production environnnement . I am currently using the restful management services api to collect a lot informations like health and status .
But this api can't give me informations like threadstuck.
My Question is What is the ... |
2018/03/22 | 754 | 2,245 | <issue_start>username_0: I have a python dataframe which has a filename column that looks like this:
```
Filename
/var/www/html/projects/Bundesliga/Match1/STAR_SPORTS_2-20170924-200043-210917-00001.jpg
/var/www/html/projects/Bundesliga/Match1/STAR_SPORTS_2-20170924-200043-210917-00001.jpg
```
From the Filename colum... |
2018/03/22 | 1,722 | 5,283 | <issue_start>username_0: Is it possible to debug `find_library` from CMake?
What I want is a list of considered paths. My use case is a call like
```
find_library (FOO_LIBRARY
NAMES foo foo.so.0)
```
and there is `/lib64/libfoo.so.0` on my system. However CMake does not find it. I checked that `FIND_L... |
2018/03/22 | 868 | 2,982 | <issue_start>username_0: I have a PHP application that needs to remotely connect to a HEROKU app's postgresql database and run database queries (preferably using pg\_query, though PDO is ok too). I am stuck trying to 1.) obtain live db credentials using the Heroku DATABASE\_URL (as they recommend), and 2) generate any ... |
2018/03/22 | 979 | 2,573 | <issue_start>username_0: How do I desugar
```
λ: [[b|(a,b)<-[(1,"A"),(2,"B")], mod x 2 == 0]|x <- [1..10]]
[[],["A","B"],[],["A","B"],[],["A","B"],[],["A","B"],[],["A","B"]]
```
I have tried
```
do
x <- [1..10]
do
(a,b) <- [(1,"A"),(2,"B")]
guard $ mod x 2 == 0
return b
```
but this seems to aut... |
2018/03/22 | 339 | 1,227 | <issue_start>username_0: I have a `Postgres` database. I want to find the minimum value of a column called `calendarid`, which is of type integer and the format `yyyymmdd`, from a certain table. I am able to do so via the following code.
```
get_history_startdate <- function(src) {
get_required_table(src) %>% # Thi... |
2018/03/22 | 429 | 1,521 | <issue_start>username_0: I want to replace parts of file paths in a configuration file using sed in Cygwin. The file paths are in form of `\\\\some\\constant\\path\\2018-03-20_2030.1\\Release\\base\\some_dll.dll` (yes, double backslashes in the file) and the beginning part containing date should be replaced.
For match... |
2018/03/22 | 819 | 3,146 | <issue_start>username_0: I am having difficulties in finding a solution for opening a stored procedure straight to MSQL management studio for modifying in a new SQLQuery from my `C#` application (winform).
Here is my code:
```
Process openSQL = new Process();
openSQL.StartInfo.FileName = "Ssms.exe";
openSQL.StartInf... |
2018/03/22 | 141 | 622 | <issue_start>username_0: I want my react native app to detect when Google Maps app is open to show some travel tip. Is it possible?<issue_comment>username_1: You can not detect if another app is launched for security reasons. Installed apps can´t listen another apps because they are "sandboxed".
You can only interact ... |
2018/03/22 | 1,822 | 6,648 | <issue_start>username_0: I'm trying to share values between my `before` and `beforeEach` hooks using aliases. It currently works if my value is a string but when the value is an object, the alias is only defined in the first test, every test after that `this.user` is undefined in my `beforeEach` hook. How can I share a... |
2018/03/22 | 347 | 1,339 | <issue_start>username_0: If I try to run `rails server` or `rails console` and there are uninstalled dependencies or pending migrations, I will get an error message informing me about this.
Is there any similar Rails command that can be run for doing this check, without booting server or console?<issue_comment>usernam... |
2018/03/22 | 961 | 3,425 | <issue_start>username_0: I have a Bootstrap page that is dynamically created using PHP, and on the page there are 25+ forms that are used to edit records.
The form submits to the server using jQuery Ajax script which works as expected on the first form, but when the second form is edited and submitted it submits form... |
2018/03/22 | 687 | 2,421 | <issue_start>username_0: How to get count of rows in database by id?
`SELECT count(*) FROM members;`
Without performance issues. What are ways to write this query using entityManager?
I am using `php version 5.6` and `symfony 3`<issue_comment>username_1: You can give id to forms and use
```
$('#formid').submit();
``... |
2018/03/22 | 1,485 | 5,240 | <issue_start>username_0: I'm curious if there's a better way or approach to writing the following code.
```
private buildQueryParams(filterData: BaseFilterModel | RegistrationFilterModel): HttpParams {
let params = new HttpParams();
if (filterData) {
if (filterData.regionId) {
params = param... |
2018/03/22 | 522 | 1,888 | <issue_start>username_0: I have this AuthorizationHelpers and I'm using on RSpec.
```
module AuthorizationHelpers
def assign_role!(user, role, post)
Role.where(user: user, post: post).delete_all
Role.create!(user: user, role: role, post: post)
end
end
RSpec.configure do |c|
c.include AuthorizationHelper... |
2018/03/22 | 432 | 1,474 | <issue_start>username_0: I have a vector of strings that look like this:
```
a - bc/def_g - A/mn/us/ww
opq - rs/ts_uf - BC/wx/yza
Abc - so/dhie7u - XYZ/En/xy/jkq - QWNE
```
I'd like to get the text after 2nd dash (-) but before first flash (/), i.e. the result should look like
```
A
BC
XYZ
```
What is the best w... |
2018/03/22 | 786 | 2,487 | <issue_start>username_0: ```
Flux.just("a", "b")
.flatMap(s -> s.equals("a") ? Mono.error(new RuntimeException() : Flux.just(s + "1", s + "2"))
.onErrorResume(throwable -> Mono.empty())
.subscribe(System.out::println);
```
Hello!
Here I made a flux of two elements and then expose by flatMap f... |
2018/03/22 | 909 | 2,735 | <issue_start>username_0: I just started learning C++, and I'm trying to use nesting loops to output an American flag. I'm very close but I cant seem to fix this logical error in my code, and was hoping someone can point it out because I've been searching for hours and its driving me crazy. The issue lies within the las... |
2018/03/22 | 1,661 | 4,955 | <issue_start>username_0: I'm trying to get a JSON from a server to use it in a Python code. For test purposes, I did `POST` by `curl`:
```
$ curl -u trial:trial -H "Content-Type: application/json"
-X POST -d '{"BP_TSM":"22"}' http://some-host --trace-ascii -
```
My Java code seems to correctly handle creating JSON a... |
2018/03/22 | 930 | 3,233 | <issue_start>username_0: Why do I get
```
Error: StaticInjectorError(AppServerModule)[NgModuleFactoryLoader -> InjectionToken MODULE_MAP]:
StaticInjectorError(Platform: core)[NgModuleFactoryLoader -> InjectionToken MODULE_MAP]:
NullInjectorError: No provider for InjectionToken MODULE_MAP!
```
when trying ... |
2018/03/22 | 670 | 2,479 | <issue_start>username_0: While I wasn't that concerned about it in the beginning, I noticed that my page size is about **9 MB** (+/- 200 images). I want to somehow decrease this by only loading the image when the user hovers over the specific , so that only *that* image is loaded (which should decrease the page size dr... |
2018/03/22 | 539 | 2,014 | <issue_start>username_0: How can I get `modules/bx/motif` only on the following through pipeline?
```
$ find . | grep denied
find: `modules/bx/motif': Permission denied
```<issue_comment>username_1: Well if you have around 200 images in your directory, when a client requests the webpage it is going to have to downlo... |
2018/03/22 | 1,665 | 5,229 | <issue_start>username_0: Not too sure where I've gone wrong here, expecting to factorialize 5 (1\*2\*3\*4\*5 = 120) by turning 5 into a string of [1,2,3,4,5] and then using reduce to multiply the string all together. When I run the code, it just gives me [1,2,3,4,5]...
```
var arr = [];
function factorialize(num) {
... |
2018/03/22 | 756 | 3,520 | <issue_start>username_0: I'm trying to import an excel file to SQL server via visual Studio. How do I make it read the data starting from the second row and not the first row of the excel file? My code works perfectly as it is, but I want it to start reading the data from the 2nd row. Here is my code:
```
using System... |
2018/03/22 | 671 | 1,863 | <issue_start>username_0: Would create a list of items and align icon at the right.
```
* {{ group.name }} (ID {{group.code}} )

```
In CSS:
```
.list-item {
width: 300px;
display : inline-block;
}
.trash-icon {
float: right;
}
.trash-icon::after {
clear: both;
}
``... |
2018/03/22 | 737 | 2,384 | <issue_start>username_0: I want to say that I am not an expert, it´s my first Wordpress project and I want to dig in. Therefore I tried to word only with Plugins and few coding.
I don´t know but since today my site has a failure and I don´t understand:
```
Fatal error: Uncaught ArgumentCountError: Too few arguments t... |
2018/03/22 | 302 | 1,127 | <issue_start>username_0: I am using JSS in my React project and I encountered strange issue, which I find hard to solve. Basically I write media query and it is triggered when I shrink my desktop browser. Though while using device toolbar, it does not seem to work. I am trying to hide span when device "width" is smalle... |
2018/03/22 | 2,400 | 5,684 | <issue_start>username_0: In Julia (0.6.2), push! occasionally overwrites all previous elements with the last element pushed. Here is a piece of code where it appeared; in the end, `out` consists of identical entries.
```
using Distributions
l = [(0, 10, 1, [1.1; 2.2], [1/3; 2/3], 4)];
out = Array{Float64}[ ]; # output... |
2018/03/22 | 831 | 2,764 | <issue_start>username_0: I am using matter.js for physics and p5.js for rendering things. I was trying to simply create boxes when you click in the canvas and then when the boxes reaches the end of the canvas it collide with a ground but ground won't detect the collision with the box. i am assuming the problem is that ... |
2018/03/22 | 637 | 2,448 | <issue_start>username_0: I'm using a reactive content page base but how do I access something from a base viewmodel? Do I have to use the object of the actual base viewmodel?
I've tried something like this but intellisense is barking at me for obvious reasons. How do I access the a command I added to my base veiwmodel... |
2018/03/22 | 835 | 3,034 | <issue_start>username_0: When trying to fetch data from my get route, if I return just the response, the data gets fetched. But when I use mongoose methods i.e. mongoose.methods.summary = function() {...}.
Here is the code (this code goes to the catch block and always returns an error):
```
router.get('/callsheets', ... |
2018/03/22 | 522 | 1,935 | <issue_start>username_0: To import my crm data into Google analytics (GA), I linked the UserID of my users with ClientID in GA.
For this, I used the following code from GA documentation:
```
ga('set', 'userId', '432432');
```
Over time, the format of the User IDs on my website has changed - instead of the numbers,... |
2018/03/22 | 294 | 937 | <issue_start>username_0: Is there a way to open an excel file without knowing the full path name?
For example:
`TEST_03222018.csv` is the file name located in `C:\test\folder`
the known part of the string\path is
```
C:\test\folder\TEST_03
```
is there a way to open this csv sheet without the rest of the path (pr... |
2018/03/22 | 680 | 2,580 | <issue_start>username_0: if you have a method like this in java 8, is it correct to wrap the argument in an Optional? What is the best practice when the argument can be null?
Worth to mention that argument "c" is coming from a source that I cannot change to Optional from there.
```
public String isSomething(c) {
... |
2018/03/22 | 598 | 1,436 | <issue_start>username_0: I have a this specific nested list :
```
paths = [['s', 'a', 'b', 't'], ['s', 'c', 'd', 't'], ['s', 'c', 'e']
```
and i want to take tuples of 2 in each nested list , for example i want as output this:
```
['s', 'a'] , ['a', 'b'] ,['b', 't'] , ['s', 'c'] ,...
```
and so on.
Any idea ho... |
2018/03/22 | 1,249 | 4,543 | <issue_start>username_0: Suppose I have the following component:
```
import { mapState } from 'vuex';
import externalDependency from '...';
export default {
name: 'Foo',
computed: {
...mapState(['bar'])
},
watch: {
bar () {
externalDependency.doThing(this.bar);
}
}
}
```
When testing, I w... |
2018/03/22 | 479 | 2,200 | <issue_start>username_0: My company needs me to create a tool to read and send messages over a controller area network(CANBUS). I've been successful in creating one in an Ubuntu virtual environment.
1. Can I use my Linux program in windows? (Written in python)
2. If I have to recreate it for windows, what would be th... |
2018/03/22 | 931 | 2,835 | <issue_start>username_0: I currently have this code that get information from an API and uses gathered information and write it to a JSON file.
```
var xp;
fs.readFile('./xp.json', 'utf8', (err, data ) => {
if (err) throw err;
xp = JSON.parse(data);
});
console.log(m['id'] + " " + m['channel_id'] + " " + m['u... |
2018/03/22 | 487 | 1,794 | <issue_start>username_0: I have a format designed in Excel, kind-of an Invoice and I enter the particular cells....... and then, through a Macro function, (I assigned one to a box shape) add those entered cells onto another Workbook called as 'Database'.. Only then would I like to print. Possibly even warn with 'msg' i... |
2018/03/22 | 672 | 2,216 | <issue_start>username_0: I'm new to Json and i'm trying to parse the following example coming from one supplier:
```
{
"Nodes": [ "ID1", "ID2", "ID3", "IDxx" ],
"Results": {
"ID1": {
"ID2": {
"value1": "example1",
"value2": "exempleHexa"
},
"ID3": {
"value1": "example2... |
2018/03/22 | 491 | 1,732 | <issue_start>username_0: Docker command is unable to find my configuration file
I have a **pm2** Docker image for launching nodeJS process in production. The image can be found here: <https://hub.docker.com/r/keymetrics/pm2/~/dockerfile/>
Docker launch the command `pm2-runtime start pm2.json` and fails as it can't fi... |
2018/03/22 | 1,102 | 2,738 | <issue_start>username_0: I would like to add up the upper part diagonals of a matrix starting from the middle, with increment in column until (1,n), n being the last column and save each sum of every diagonal. My code only add the middle diagonal, how can I loop through the matrix to get the sum of the diagonals
```
A... |
2018/03/22 | 2,092 | 8,799 | <issue_start>username_0: In my application, I have objects with several `SpEL` expressions that usually contains signatures of methods with `boolean` return type to invoke and logical operators. Before these objects are cached, I check the consistency of the expression by simply executing the parsed expression. When an... |
2018/03/22 | 1,530 | 4,792 | <issue_start>username_0: Does my `$to` variable have to equals something in this situation or will my functions fill that in automatically.
```
php
if (isset($_POST["MainCB"])) {
$to = "<EMAIL>";
}
if (isset($_POST["ITCB"])) {
$to = "<EMAIL>";
}
if (isset($_POST["CateCB"])) {
$to = "<EMAIL>";
}
if (isset(... |
2018/03/22 | 876 | 3,511 | <issue_start>username_0: I have been diving into JavaScript recently, and after spending several months on it I am still confused about some of the internals.
Specifically, I was trying to wrap my head around the so-called [Standard Built-In Objects](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Gl... |
2018/03/22 | 394 | 1,584 | <issue_start>username_0: [Azure Data Factory IF condition Image](https://i.stack.imgur.com/4W8Yf.png)
What I'm trying to do is executing a stored produre, however it should only be executed if the two preceding "Pipelines" are successfully executed. *See Image URL above.*
I'm struggling with the correct expression in... |
2018/03/22 | 1,036 | 3,086 | <issue_start>username_0: How can I get a named list back from `purrr::map` the same way I could do it with `plyr::dlply`? I am providing a reprex here. As can be seen, plyr::ldply returns a named list while `purrr::map` doesn't. I also checked out a similar question from 2 years ago ([How to get list name and slice nam... |
2018/03/22 | 1,324 | 4,673 | <issue_start>username_0: I recently went for an interview and got a question on JAVASCRIPT which I could not answer, but i would really like to know the answer, but I do not know how to phrase it in google.
The question is:
```
var a = new A();
a(); // return 1
a(); // return 2
var b = new A();
b(); //return 1;
b()... |
2018/03/22 | 701 | 1,683 | <issue_start>username_0: I'm new to pandas. My df looks like this:
```
A A A B B B
a NaN NaN 2 NaN NaN 5
b NaN 1 NaN 9 NaN NaN
c 3 NaN NaN 7 NaN
```
How can I get
```
A B
a 2 5
b 1 9
c 3 7
```
It looks like merge, join are for more than one dataframe. I have also tried
```
... |
2018/03/22 | 772 | 2,218 | <issue_start>username_0: As in the title, I'm struggling with what I thought being a trivial issue: disabling an option from an HTML Select tag list when I click on an aforethought radio button.
My code does work, but when a user hits the browser back-button, my function doesn't get called anymore, so the previously... |
2018/03/22 | 1,046 | 3,745 | <issue_start>username_0: I have the following function:-
```
uploadPhoto() {
var nativeElement: HTMLInputElement = this.fileInput.nativeElement;
this.photoService.upload(this.vehicleId, nativeElement.files[0])
.subscribe(x => console.log(x));
}
```
however on the nativeElement.files[0], I am getting... |
2018/03/22 | 284 | 1,034 | <issue_start>username_0: I'm running a [shell execute](http://ipython.readthedocs.io/en/stable/interactive/magics.html#magic-sx) command in a notebook (Google Collaboratory), and such command prompts me to give a yes/no answer. How can I respond to this prompt shell message within the notebook?<issue_comment>username_1... |
2018/03/22 | 440 | 1,750 | <issue_start>username_0: I was handed an accounting spreadsheet to recreate because of some broken references. I'm not really versed in Excel and am having trouble finding where certain declarations are coming from within the Excel document. I'm sure this is extremely simple, yet I apparently can't figure it out... In ... |