date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/08 | 3,231 | 9,292 | <issue_start>username_0: I have an issue when compiling my code using [Boost for Android](https://github.com/moritz-wundke/Boost-for-Android) with Android Studio ndk.
I am using one of the libraries libboost\_filesystem-clang-mt-a32-1\_66.a from boost, however, it shows following error:
```
FAILURE: Build failed with ... |
2018/03/08 | 1,164 | 4,479 | <issue_start>username_0: When the for loop is run for the first time the program waits for the users input. But after the first time the two scanf lines seems to be skipped.
I've commented out the misc code:
```
#include
int n = 0;
struct student {
int age;
char name[20];
};
void enterStudents() {
printf("How ma... |
2018/03/08 | 2,364 | 8,178 | <issue_start>username_0: I have an assignment that wants me to write a program that reads a text file, then outputs a modified version of that file using a version of Ceasar cipher that shifts the characters of the file that the user calls based on the shift amount that they input. For example if my file reads "hi" and... |
2018/03/08 | 1,363 | 4,556 | <issue_start>username_0: I have implemented naive Bayes but I did it in static memory allocation.
I wanted to convert into dynamic but my small brain is not able to do that.
```
#define COLS 4 //including class label
#define BINS 100
#define CLASS_COL 0
#define CLASS 2
```
The idea is to fetch above value from a co... |
2018/03/08 | 798 | 2,407 | <issue_start>username_0: From a college suggestion and following [this answer](https://stackoverflow.com/questions/33732509/express-js-how-to-intercept-response-send-response-json)
I'm trying to monkey patch res.send but I get the following error:
```
TypeError: Cannot read property 'req' of undefined
```
This is m... |
2018/03/08 | 338 | 1,157 | <issue_start>username_0: I'm starting to use google colab I'm I want to load a set of images for processing from my laptop.
I have tried this:
[](https://i.stack.imgur.com/bJKF8.png)
But I get the error:
```
TypeError: embedded NUL character
```
... |
2018/03/08 | 5,734 | 20,388 | <issue_start>username_0: I am working on a cordova project that has been working fine for a while, and suddenly I started to get a very strange error whenever the build reaches ":app:processArm64DebugResources" when builing with the command "cordova run android --device".
I have tried removing and adding platforms, ru... |
2018/03/08 | 315 | 1,270 | <issue_start>username_0: I want to save a datetime value, but when I try to render the form, it does not display a date/time picker, just an empty field. If I only use a DateType class, it displays the picker, but not with a DateTimeType. Here's the form:
```
->add('datetimestart',
DateTimeType::class... |
2018/03/08 | 390 | 1,513 | <issue_start>username_0: Hello everyone,
To proceed with order product scenario I should log in, I am asking if I could use in my scenario a given step like :
```
Scenario: Order product
Given I log in
.
.
```
And in the steps defintion class I will call the login steps inside the given of order product:
```
... |
2018/03/08 | 698 | 2,037 | <issue_start>username_0: I would like to print out these results with my code:
```
{'name': 'asm0', 'size': '1024000'}
{'name': 'asm1', 'size': '1024000'}
{'name': 'asm2', 'size': '1024000'}
```
But it appears like this..
```
{'name': 'asm0', 'size': '1024000'}
{'name': 'asm01', 'size': '1024000'}
{'name': 'asm012'... |
2018/03/08 | 515 | 2,018 | <issue_start>username_0: In OWL, is there a way to state that an individual of a particular class must be related to another individual via a specific object property?
For example, I would like to state that:
```
forall(x) Object(x) -> exists(y) Shape(y) ^ hasShape(x, y)
```
i.e., "For all objects, there exists a s... |
2018/03/08 | 828 | 2,307 | <issue_start>username_0: I have a dataset containing some sports performance data. Below is a small example.
```
Player.Name Period.Name Average.Distance Total.HIR V6.Distance Date
Player 1 Quarter 1 2240.744 588.31 84.42 2/3/18
Player 2 Quarter 1 3008.554 833.94 10.50 ... |
2018/03/08 | 612 | 2,071 | <issue_start>username_0: I am quite at the beginning of jQuery and therefore going through some exercises...but I am stuck with this problem of having two buttons in the DOM each being supposed to do different stuff, of course. However I am not able to find a way to attribute different actions. Can someone help, please... |
2018/03/08 | 1,321 | 3,686 | <issue_start>username_0: I'm trying to convert a range of numbers to a another range (in an exponential way). I'm trying to do this in python. I don't have a background in mathematics (nor a formal education in computer science actually), so I'll do my best to explain my question in a clear manner.
Let's say I have t... |
2018/03/08 | 899 | 2,688 | <issue_start>username_0: I am trying to make the string **remove field** hide and show using one button and based on its current state. Initially, it will be hidden( using hidden HTML attribute) and on click of the button it should appear and click again it should disappear. what am I wrong in the code below?
```js
$(... |
2018/03/08 | 482 | 1,539 | <issue_start>username_0: i have the following array:
```
array(2)
{
[0]=>
array(358) {
["listing ID"]=>
string(0) "253321"
["buyername"]=>
string(0) "will"
["buyeraddress"]=>
string(0) "938 s st"
}
[1]=>
array(358) {
["listing ID"]=>
... |
2018/03/08 | 7,239 | 12,528 | <issue_start>username_0: How do I override the background image in the css depending on the weather condition (Container class). I am using wunderground API. I have retrieved the weather condition and is stored in the weather variable.
The problem is how do i dynamically change the background depending on the weather... |
2018/03/08 | 679 | 2,697 | <issue_start>username_0: I have a general question regarding the appropriateness of using Spark for a type of problem I frequently encounter in Python: performing the same task on the same set of data using different parameter settings using the `multiprocessing` package.
Consider the following toy example (note this ... |
2018/03/08 | 335 | 1,221 | <issue_start>username_0: I have following line in sudoers file,
```
pankaj.a.batra ALL=(ALL) NOPASSWD:ALL
```
i need a code that could comment out this string and make a new duplicate entry with the suffix i want to add, just after this line like this
```
#pankaj.a.batra ALL=(ALL) NOPASSWD:ALL
pankaj.a.ba... |
2018/03/08 | 553 | 2,023 | <issue_start>username_0: I have been teaching myself `OCaml` and having been trying to look through the `Pervasives` module and others modules to find a module that contains a function that is like C/C++ functions `isdigit` and `isalpha` in an attempt to clean up my code a little.
As one of my conditional statements f... |
2018/03/08 | 305 | 862 | <issue_start>username_0: I recently read the [following line of code](https://github.com/rust-lang/rust/blob/c90f68224b069f5bb2a80e30e2737e4bb17c1466/src/libstd/collections/hash/map.rs#L17):
```
use fmt::{self, Debug};
```
What does the `self` keyword in the above statement mean?<issue_comment>username_1: `self` h... |
2018/03/08 | 1,986 | 8,328 | <issue_start>username_0: I am making News App and getting following error in my code.
I am getting following error in my database
```
FATAL EXCEPTION: main
Process: com.edgar.yodgorbekkomilo.newsapp, PID: 1328
android.database.sqlite.SQLiteException: near “)”: syntax error (code 1): , while compiling: CREATE ... |
2018/03/08 | 614 | 2,021 | <issue_start>username_0: From a php script I'm returning 3 values : all are transitioning over without any difficulty.
```
if(data.code == 600){
var PNRRef = data.locator;
var Lname = data.lname;
```
What I am trying to do is use these two var values in my red... |
2018/03/08 | 649 | 2,313 | <issue_start>username_0: I have a question regarding Keycloak and obtaining an Access Token.
I have two separate applications set up as 2 different clients in keycloak.
Both are using the same LDAP (Active directory) server for authentication which is set up in keycloak as user federation.
A user is logged into appli... |
2018/03/08 | 2,242 | 7,869 | <issue_start>username_0: I'm trying to upgrade my Android app's support library dependency from 27.0.2 to 27.1.0.
When doing so and attempting to assemble the app, the compilation fails.
For kotlin databinding I'm using: `kapt "com.android.databinding:compiler:3.0.1"`
For kotlin I'm using: `implementation "org.jetbr... |
2018/03/08 | 934 | 2,441 | <issue_start>username_0: I have the following Data
```
A B Result
3 True 0
1 True 0
5 True 0
6 False 9
2 True 0
6 True 8
```
How can I get the sum of all true values before and after the false Values
as 3 + 1 + 5 = 9 and 2 + 6 = 8
How can i do that with Panda... |
2018/03/08 | 2,159 | 4,829 | <issue_start>username_0: I'm trying to sort through a large table, we'll call this Table1, using values from another table, we'll call this Table2, to filter the results. Unfortunately my query results are showing values that don't match my filter, values found in Table2.
This is the query I'm using:
```
SELECT Tabl... |
2018/03/08 | 11,575 | 13,836 | <issue_start>username_0: *How to find number of arrays in the following data it is showing type: void*
```
print type(image_mat['polygons'][0][0])
```
>
> output:
>
>
>
>
```
print image_mat['polygons'][0][0]
```
>
> Output:
> (array([], shape=(1, 0), dtype=float64), array([[814.0257732 ,
> 718.76804124]... |
2018/03/08 | 608 | 2,248 | <issue_start>username_0: I want to check the names of the labels in the page on which the macro is enabled and its children as well. Is this possible using a custom macro? I followed this tutorial:
<https://developer.atlassian.com/server/framework/atlassian-sdk/create-a-confluence-hello-world-macro/>
And looked at so... |
2018/03/08 | 698 | 1,993 | <issue_start>username_0: I have a date range calendar using react-day-picker. It works beautifully aside from me not being able to disable "all" future days from the selection. The api docs show that you can enter a single day or multiple days but not all future days?
```
day.getDay() === 0,
firstOfMonth: day ... |
2018/03/08 | 777 | 2,314 | <issue_start>username_0: I am running an MVC Web Application. One of the features of the app is to generate a PDF report. The PDF Report also shows a Map. However on generating the PDF, it gives an error message:-
```
"Could not Load File or Assembly Microsoft.ReportViewer.DataVisualization, Version = 11.0.0.0, Cultur... |
2018/03/08 | 889 | 2,597 | <issue_start>username_0: For my assignment, I was given a text file named 'measles.txt' which contains A LOT of information, but most importantly, I'm focused on the year for each line. My task is to make a program that reads 'measles.txt', prompts the user for the year, and outputs every line with that year into anoth... |
2018/03/08 | 483 | 1,676 | <issue_start>username_0: let's say I have a service that is sending a post request to my API, and as soon as the response has arrived, I'd like a custom function to be executed as part of the process.
```
public signin(){
return this.http.post(`${env.API\_URL}/user/signin`, { username: user.username, password: <PASS... |
2018/03/08 | 379 | 1,435 | <issue_start>username_0: So what I have is a smaller Pane inside a larger Pane, and what I want to do is enable/disable any handling of mouse events over that smaller pane. That would be done in theory by setting the mouse events of the smaller pane and all its children to *null*, and then restoring them later. But thi... |
2018/03/08 | 607 | 2,328 | <issue_start>username_0: I'm trying to create an animation by using for loop when I load into page by increasing it's width and position. My problem is that `Application.Current.MainWindow.Width` in the `Page_Loaded` for loop doesn't work. While it works perfectly when leaving the page. My Code:
```
private void Page_... |
2018/03/08 | 844 | 2,480 | <issue_start>username_0: I am using Visual Studio 2017. I just updated it and started to get this error on every project I have:
>
> C++ cannot open source file "sys/types.h"
>
> C++ cannot open source file "sys/stat.h"
>
>
>
Didn't find any similar questions so sorry if duplicated. The error is for this 2 li... |
2018/03/08 | 1,012 | 2,901 | <issue_start>username_0: I need to create a VBA script in excel that chanages an order number from having "CD" at the front to "CD" at the end so from "CD00001" to "00001CD"
Any help would be awesome. all of the order numbers are in Column B and start at row 5. please help.
What i have so far:
```
Private Sub OrderN... |
2018/03/08 | 1,015 | 3,120 | <issue_start>username_0: I am new to javascript and JQuery. We are customizing a third party application which was developed in Angular1 and We don't have any access to their source code but, we can run our custom scripts on top it. Here, I have to enable or disable a click event on div tag based on some condition. The... |
2018/03/08 | 953 | 2,661 | <issue_start>username_0: I do have comma separated data, like this:
```
"go,godown,goup,go,ago,agon,aerugos,gone,going,good,goof,goaway,nogo,go"
```
What would be the regular expression if **go** should match as complete word, not as part of any word. Like:
"**go**,godown,goup,**go**,ago,agon,aerugos,gone,going,goo... |
2018/03/08 | 476 | 2,047 | <issue_start>username_0: I can't seem to find good explanation of what would happen if several workers listen to the same AWS step function activity ARN?
I mainly interested in the mechanics as I am exploring how to introduce fault tolerance to the processes that listen to step function activities, meaning if one work... |
2018/03/08 | 1,188 | 4,253 | <issue_start>username_0: I'm working on creating a table of cells that will change color when each cell is clicked on.
I've created the table and have unique Ids for 'td' element - how do I return the Id of the cell that was clicked so that I can change its background color?
Is it possible to do this with pure JS?
... |
2018/03/08 | 1,070 | 3,802 | <issue_start>username_0: ok so suppose I have a function `myFunction`. Then in `main` i have a multi dimensional array of pointers. I want to pass a pointer to this array of pointers into `myFunction`. How would I do that? I know that If you want to pass an `int` to my function, one can write the function as
`myfunct... |
2018/03/08 | 810 | 2,795 | <issue_start>username_0: I came across the following in the model:
```
class Search < ActiveRecord::Base
#search different system user by dn
def self.gets(sys, dn)
sys.constantize.search(dn)
end
end
```
I can see the purpose is to pass in different model name as `sys` and search by `dn` in those specific m... |
2018/03/08 | 1,129 | 3,562 | <issue_start>username_0: I am trying to run the following code:
```
Headers=requests.get('https://coinmarketcap.com').headers
CookieDough=Headers['Set-Cookie']
Headers="""\"{
":authority":"coinmarketcap.com",
":method":"POST",
":path":"/login",
":scheme":"https",
"accept":"text/html,application/xhtml+xml,application/x... |
2018/03/08 | 1,039 | 4,544 | <issue_start>username_0: Because of issues reaching our normal endpoints hosted outside of China reliably when the user is behind the great firewall, we're looking for a way to reliably determine if the user is currently behind the great firewall and use a different set of endpoint urls hosted within China.
What we wo... |
2018/03/08 | 1,646 | 5,792 | <issue_start>username_0: Android 8 added 'ID attestation' (according to <https://source.android.com/security/keystore/attestation#id-attestation>).
Has anyone figured out how to use this feature? The closest I've found is `AttestationUtils.java` (<https://android.googlesource.com/platform/frameworks/base/+/master/keys... |
2018/03/08 | 1,315 | 4,772 | <issue_start>username_0: I inherited a php/Laravel app that was running on an Apache server that I don't have access to. My task is to get it running on another Apache server. I'm pretty good with php but relatively new to Laravel and very new to Apache configuration.
I have figured out how to get the Laravel app run... |
2018/03/08 | 1,885 | 6,299 | <issue_start>username_0: This program is supposed to accept values from the keyboard, and require that the user re-enter the value for the employee's id number. However it keeps outputting "Invalid variable" even if I enter a correct value. It needs to only output that if the value is already been entered. For example
... |
2018/03/08 | 748 | 2,916 | <issue_start>username_0: I am writing an OpenLayers 4 plugin, and would love to follow the approach of some existing OL plugin library. Is there a recommended/good quality example of an OpenLayers 4 plugin that I can model my code on? The code that lives outside of the main OL repository.
Thanks!<issue_comment>userna... |
2018/03/08 | 1,031 | 4,030 | <issue_start>username_0: I've been trying to send an image from my computer to this API but I only get the following error: `{"error":{"code":"InvalidImageSize","message":"Image size is too small."}}`
My code is the following.
I have a PostRequestClass with this method:
```
public void sendImageRequest(String imagePa... |
2018/03/08 | 583 | 1,916 | <issue_start>username_0: I'm trying to do a counting\_sort on negative numbers, the following code only seems to work on positive integers. Any pointers on how I can fix it to work on negative numbers?
```
def count_sort(l):
output = [0] * len(l)
low = min(l)
if low >= 0:
low = 0
high = max(l)
wo... |
2018/03/08 | 591 | 2,147 | <issue_start>username_0: I created a basic component such as:
```
export default (props) => (
{props.title && {props.title}}
{props.icon && }
);
```
I can then call it with for instance.
The problem is that passing `{...props}` to `TouchableOpacity` generate errors because it does not recognize title nor icon ... |
2018/03/08 | 2,881 | 8,747 | <issue_start>username_0: I can change the primary button color by changing the theme-color in bootstrap v4. But it affects all other components as well.
How to set the primary button colour without affecting the theme color?
I dont want to set brand-primary and achieve it.Any other alternatives?<issue_comment>username_... |
2018/03/08 | 2,923 | 8,904 | <issue_start>username_0: I have a tablayout within a viewpager and would like to listen for tab changes. Which listener should I use? The first seems to work fine but then what is the purpose of the second one?
The [docs](https://developer.android.com/reference/android/support/design/widget/TabLayout.html) say that th... |
2018/03/08 | 691 | 2,656 | <issue_start>username_0: I'm trying to use Quartz sheduker in my asp core 2.0 project.
I downloaded Quartz 3.0.4 using nuget and after that i added services.AddQuartz(new QuartezOptions {});
to ConfigureService function in Startup.cs
I also have the same problem with app.UseQuartz()
Thats, how Startup.cs is looking n... |
2018/03/08 | 1,490 | 5,057 | <issue_start>username_0: I am trying to calculate the following formula to return a numerical value from 0 - 100 (a grade) depending on the input from a user,
Grade = Exam Worth × Exam Score + (100% − Exam Worth) × Current Grade
and am using the following code to do so,
```
var total = ExamWorth * ExamScore + (... |
2018/03/08 | 717 | 1,969 | <issue_start>username_0: I need to understand the usage of operators in the following python code snippet. I'm not familiar with the usage of \* in the np.zeros() statement. It looks like the pointer dereferencing operator in c, but I'm guessing not.
Also, what is the usage of `==` in the assignment statement? This lo... |
2018/03/09 | 688 | 1,919 | <issue_start>username_0: I'm creating a page with two section where I load content `.load()` into `#container` by clicking on the titles.
```
[dogs]
[cats]
```
**My problem**
When the content loaded is too small, the page jumps down and up,
```
$("#dogs").trigger("click"); //initial
$("#cats").click(){functio... |
2018/03/09 | 1,076 | 3,313 | <issue_start>username_0: Given a bash array, how to convert it to a JSON array in order to output to a file with jq?
Additionnally: is there a way to keep the server\_nohup array unchanged instead of re-writing the whole json file each time?
```
newArray=(100 200 300)
jq -n --arg newArray $newArray '{
client_nohu... |
2018/03/09 | 1,066 | 3,366 | <issue_start>username_0: Reverse indexing in python with the `x[::-1]` format is very handy, but what is the logic of reversed indexing on *slices*? I understand that the idea is `[high:low:-stride]`, but I find the following example confusing. In particular, why is it not possible to slice so that the entire iterable ... |
2018/03/09 | 2,120 | 8,552 | <issue_start>username_0: just a disclaimer: I already checked most of Stack Overflow and couldn't find an answer on the website. I also asked some nice people on Reddit, but only fixed it halfway through.
So, I am trying the create a GUI application and I am new to the Java language (very, very new - so there is a big... |
2018/03/09 | 1,078 | 3,175 | <issue_start>username_0: I have a bytes type object like this:
```
b"{'one': 1, 'two': 2}"
```
I need to get the dictionary from that using python code. I am converting it into string and then converting into dictionary as follows.
```
string = dictn.decode("utf-8")
print(type(string))
>>
d = dict(toks.split(":")... |
2018/03/09 | 687 | 2,054 | <issue_start>username_0: [](https://i.stack.imgur.com/V5CVc.png)
There are four records in the above table; how can i get result which will have unique id and get the latest record sorted by creation time using Java 8 streams.
In this example; I want... |
2018/03/09 | 1,796 | 7,089 | <issue_start>username_0: Basic Setup
===========
I use `NSTask` to run a process that optimizes images. This process writes output data to `stdout`. I use the `readabilityHandler` property of `NSTask` to capture that data. Here is the abbreviated setup:
```
NSTask *task = [[NSTask alloc] init];
[task setArguments:arg... |
2018/03/09 | 666 | 1,785 | <issue_start>username_0: Parity doesn't seem to have any documentation on what it's console output means. At least none that I've found which admittedly doesn't mean a whole lot. Can anyone give me a breakdown of the meaning of the following line?
```
2018-03-09 00:05:12 UTC Syncing #4896969 61ee…bdad 2 blk/s 508... |
2018/03/09 | 711 | 2,016 | <issue_start>username_0: I have a text file which contains day of year as a column and a value associated to it.
something like this
```
day value
59 0.2
60 0.6
63 5.07
```
Here the day column represents the day in a year i.e, 59/365, 60/365, 63/365.
```
dataPoints.push({x: parseFloat(x1), y: parseFloat(y1)}... |
2018/03/09 | 690 | 1,973 | <issue_start>username_0: I am using flink-docker 1.4.0 and I have created a scala job to be run on Flink. The job uses typesafe config which looks similar to that :
```
servers = "localhost:9092"
servers = ${?KAFKA_SERVERS}
```
The problem is that it works perfectly, if I set the `KAFKA_SERVERS` in the docker-compo... |
2018/03/09 | 448 | 1,546 | <issue_start>username_0: Found the answer. It should be:
```
var currTab = tabs[0].id;
```
Original question:
I've recently started to learn about javascript and chrome extensions. I am trying to make it so that whenever the extension icon is clicked, it simply closes whichever tab is currently selected.
My code ... |
2018/03/09 | 1,967 | 5,151 | <issue_start>username_0: I am trying to scrape the data from this table::
<http://www.worldlifeexpectancy.com/cause-of-death/alzheimers-dementia/by-country/>
The element I'm trying to find is the name of the country, in this case Finland:
```
| |
| --- |
| Finland |
```
Here is the code I'm using:
```
res = reque... |
2018/03/09 | 1,423 | 3,992 | <issue_start>username_0: I have a table represented in the form of a list of list:
```
table = [[1, 9695],[2, 4755],[6,447]]
```
and another list containing the values of the second column of the table above where the numbers are in ascending order.
```
lst = [447,4755,9695]
```
I'm trying to print the values in ... |
2018/03/09 | 1,268 | 3,664 | <issue_start>username_0: I try to use jquery to initialize active class from navigation, but so far it works only if there's nothing else after the menu item in url.
For ex, if i go on users `site.com/users` the code works, but when i browse the controller and i give it parameters it disappears ex `site.com/users/para... |
2018/03/09 | 1,239 | 4,781 | <issue_start>username_0: I have the following in my application.properties in my springboot application (1.5.4.RELEASE)
```
my.prefix.one.id=id01
my.prefix.one.name=one
my.prefix.two.id=id02
my.prefix.two.name=two
```
And a class like the following
```
public class MyClass{
private String id;
private String name... |
2018/03/09 | 1,497 | 6,125 | <issue_start>username_0: I've been making a website, for a uni project, my code was pointed out as vulnerable, to SQL injections as I didn't use prepared statements. I'm in the process of rectifying that and I've ran into a wall, with the image upload. When I was just using standard MYSQLi queries, I understood the way... |
2018/03/09 | 1,215 | 4,801 | <issue_start>username_0: I have two tables for the library schema
```
Table Book(BookID(Primary Key & Identity), Name, Author, Available)
Table BookDetails(BookDetailsID(Primary key & Identity), BookID(Foreign key for BookID),AttributeID(Foreign Key for Attribute),AttributeValue)
Table BookAttributes(AttributeID,Name... |
2018/03/09 | 370 | 1,369 | <issue_start>username_0: I'm trying to use libxml2's function xmlNodeGetContent to acess content from an xml file, but for some reason content within self-closing tabs can't be read.
```
void parseRow (xmlDocPtr doc, xmlNodePtr cur) {
xmlChar *key;
cur = cur-> xmlChildrenNode;
while (cur != NULL) {
... |
2018/03/09 | 836 | 3,172 | <issue_start>username_0: I'm looking for a python function that gives the *morphological components* of an image. That is, will return a metric in which each pixel of image is replaced by an integer index representing the connected foreground image component in which the pixel lies. Something like this:
[
I made this query, but I keep getting:
>
> Incorrect syntax near the keyword 'ON'.
>
>
>
What's wrong with this ... |
2018/03/09 | 533 | 2,076 | <issue_start>username_0: I have a coverage plan which I want to add to a client. A new client should default to a provicial coverage plan, which has key 1.
Using Rails 5.0, I'm aware how to add a default value to a regular column, but how do I add a default value to a one-to-one association? Do I need to specify the o... |
2018/03/09 | 1,647 | 6,113 | <issue_start>username_0: It seems that webpack gets stuck on
**92% chunk asset optimization** for about 30+ seconds to show a simple js/css change. This is too long for anyone sane to sit and wait that much of their life to see something that should be rendered near instantly.
We're in development mode (so we need sou... |
2018/03/09 | 552 | 1,988 | <issue_start>username_0: Is there anyway to use 'go to definition' find one function definition in other file?
Two files are in the same folder/own the same parent folder.
I know the html holds all .js files, but I can't find any way in Google.<issue_comment>username_1: You need to create a [`jsconfig.json`](https://c... |
2018/03/09 | 872 | 3,087 | <issue_start>username_0: I have a newcomer to react/preact. I have a simple app that fetches weather forecast from an API and I want this data to be passed to a chart component (precharts). The problem I have is when this chart gets rendered, the data has not yet been fetched and I get type errors, because I am already... |
2018/03/09 | 1,037 | 3,598 | <issue_start>username_0: I'm creating a bookReads project (like goodreads) where you can keep tracks of your books. I have a table of books and every book is assigned a shelf. Every row has a dropdown which is used to change the shelf of the current book.
My problem is when I change the shelf of one book, it changes t... |
2018/03/09 | 2,439 | 5,582 | <issue_start>username_0: I have the following table:
```
Id Date Time Location leadHourDiff
3 2017-01-01 2017-01-01 13:00:00.000 Boston 2
15 2017-01-01 2017-01-01 13:00:00.000 Philly 1
16 2017-01-01 2017-01-01 15:00:00.000 Philly 1
```
and i would l... |
2018/03/09 | 7,246 | 20,322 | <issue_start>username_0: As a bit of background, I'm trying to implement the [Kaplan-Meier](https://en.wikipedia.org/wiki/Kaplan%E2%80%93Meier_estimator) in Spark. In particular, I assume I have a data frame/set with a `Double` column denoted as `Data` and an `Int` column named `censorFlag` (`0` value if censored, `1` ... |
2018/03/09 | 664 | 1,824 | <issue_start>username_0: i want to use laravel/homestead. i do all steps one by one according to below url
<https://medium.com/@eaimanshoshi/i-am-going-to-write-down-step-by-step-procedure-to-setup-homestead-for-laravel-5-2-17491a423aa>
but when i send this command -> 'vagrant up' i get these warnings and errors
C:/H... |
2018/03/09 | 1,448 | 4,876 | <issue_start>username_0: I'm new to Scala.
I'm trying to implement `TreeMap` using Binary Search Tree.
I found that I can print a non-empty `TreeMap` but the code won't compile if
I try to print `Empty()` (which is a case class defined by me)
The error message is:
>
> [error] test.scala:33:16: type mismatch;
>
> ... |
2018/03/09 | 511 | 2,047 | <issue_start>username_0: There is 2 models with relation many-to-many:
```
@Entity
public class Map {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@JsonIgnore
private long mapId;
@NotBlank
private String title;
@ManyToMany(cascade = CascadeType.ALL)
@JoinTable(name = "route_points",
... |
2018/03/09 | 1,431 | 4,895 | <issue_start>username_0: I am coding a slider puzzle, using a 2-D array of buttons where 1 button is blank at all times, and the remaining buttons can only move if they are next to the blank button. Would anyone be able to offer a way to check the surrounding buttons and determine if it borders on the blank one? (keepi... |
2018/03/09 | 449 | 1,577 | <issue_start>username_0: Here i have scenario where i have to display text 'Y' if file extension is 'pdf','xlsx' and 'docx' else 'N'
```
| Y
Y
Y
N |
```
with the above code im able to display 'N' for all the unsupported file extensions but along with for 'pdf' and 'docx'.
only 'xlsx' is working fine for 'N' with ... |
2018/03/09 | 388 | 1,321 | <issue_start>username_0: I'm trying to mark cells from a column then store the range into a variable. I would like to use the variable for another macro to calculate the average from the given range.
```
Sub UserRang()
Dim SelRange As Range
Set SelRange = Selection
Rng1 = SelRange.Address
MsgBox "You selected: " & R... |
2018/03/09 | 164 | 621 | <issue_start>username_0: In kinvey console I can open the app and click on the 3 dots and I can find app key and app secret but I can not find master secret so where I can find master secret ?<issue_comment>username_1: On Kinvey console, navigate to Setting-> Environment Settings-> API keys and you will find Master Sec... |
2018/03/09 | 2,063 | 5,403 | <issue_start>username_0: I'm excited because I got pretty far with some hints from a friend. I'm trying to create a dictionary of dictionaries using a loop. The csv I'm working with has dates from 2008-2014 and I'm using the dates as a key. The csv looks like this:
year,title\_field,value
```
2014,Total Housing Uni... |
2018/03/09 | 1,364 | 4,558 | <issue_start>username_0: I have two maps that use the same object as keys. I want to merge these two streams by key. When a key exists in both maps, I want the resulting map to run a formula. When a key exists in a single map I want the value to be 0.
```
Map map1;
Map map2;
result =
Stream.concat(map1.entrySet().s... |
2018/03/09 | 897 | 3,030 | <issue_start>username_0: I am trying to find out how can I send a signal to 3 child processes in the same exact fraction of a second. Can you explain to me exactly why it's either possible or not?
If it is possible, can you help me understand using some code in C with `kill()`?<issue_comment>username_1: ### TL;DR — No... |
2018/03/09 | 602 | 1,704 | <issue_start>username_0: Is there a simple endpoint for retrieving a users gpg public key?
For SSH keys, `github.com/.keys`, is there something similar for gpg keys?
Related: [What is the public URL for the Github public keys](https://stackoverflow.com/questions/16158158/what-is-the-public-url-for-the-github-public-k... |
2018/03/09 | 3,947 | 7,249 | <issue_start>username_0: I want to combine cell values with numeric and character data into the same cell.
Specifically, I'm trying to combine named columns with the 'SEM' columns, with a ± symbol in between, to eventually become a table I can publish with latex
```
# A tibble: 4 x 10
Variety n Probes Probes ... |
2018/03/09 | 671 | 2,410 | <issue_start>username_0: In the following code `threadCount` is one of 1,2,3,4 . But in the output, though the string part getting printed perfectly the num value getting missed randomly and it's getting appended after a few lines at times.
```
void *SPWork(void *t)
{
int* threadC = (int*)t;
int threadCount ... |
2018/03/09 | 1,163 | 4,673 | <issue_start>username_0: I am working with an mvc5 application in vs 2015.
I am getting errors whenever I attempt to access items from the database
>
> Login failed for user '{your\_username}'.
>
>
>
When I go azure portal "allow access to azure services" setting is on with my client Ip address listed.
I think my... |