date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/21 | 655 | 2,219 | <issue_start>username_0: As the title states, I'm having difficulties connecting my Mosquitto MQTT client (written in C) to my Azure IoT-hub. I've managed to connect to many different platforms before (e.g. Amazon EC2, ThingsBoard, TheThings.io, SierraWireless, ...), so I know my client is pretty solid.
The difficulty... |
2018/03/21 | 516 | 1,661 | <issue_start>username_0: I am useing Font Awesome 5. Some icons are not showing in Chrome. For example "fa-facebook-f". When I change the icon class to fa-facebook it works. Is there a way to fix it?
Here is what i see in chrome.
[](https://i.stack.im... |
2018/03/21 | 414 | 1,633 | <issue_start>username_0: I have a project with angular 5 and bootstrap 4. I'm trying to use the BS4 framework but that requires jquery.
1. Is it ok to use jquery in angular project ?
2. Can we use bootstrap from <https://getbootstrap.com/> with latest jquery.
3. What is the difference with <https://valor-software.com/... |
2018/03/21 | 1,716 | 5,728 | <issue_start>username_0: For a WooCommerce webshop we send out a lot of payment links through email. Before getting to the payment page customers are obligated to login first. We would like the customer to be able to complete payment without logging in as often they don't know their password because of different compan... |
2018/03/21 | 905 | 3,010 | <issue_start>username_0: I need to exclude NULL values from an array with a foreach but it doesn't work actually:
```
foreach ($node->field_fichier_joint as $key => $fichier) {
//Ne pas afficher les champs vides du tableau
if ($fichier !== NULL):
print 'debug de $fichier'.$fichier;
... |
2018/03/21 | 551 | 2,137 | <issue_start>username_0: I was working on injecting of groovy scripts dynamically in Java. So before executing those scripts, I want to get sure of that they do not have potential bugs using [SpotBugs](https://github.com/spotbugs/spotbugs) (static code analyzer).
Here is the Psuedo-Code:
>
> Here it should return the... |
2018/03/21 | 500 | 1,783 | <issue_start>username_0: I have a rails project whose API's are used by two different but related apps.
One app (Parent) is made using Unity, while other one (Child) is with native (iOS & Android).
In case of error response.
Unity app requires 2xx series status code,in case of any other status code they read it as su... |
2018/03/21 | 2,253 | 9,065 | <issue_start>username_0: I am executing below code snippet
```
System.out.println(List.of(1, 2).getClass());
System.out.println(List.of(1, 2, 3).getClass());
```
output of this code is;
```
class java.util.ImmutableCollections$List2
class java.util.ImmutableCollections$ListN
```
I am expecting `java.util.Immu... |
2018/03/21 | 774 | 2,507 | <issue_start>username_0: i have this Code in my .htaccess file:
```
#Rewrite everything to https
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [R=301,QSA,NC,L]
RewriteCond... |
2018/03/21 | 554 | 1,799 | <issue_start>username_0: I'm using xxHash to create hashes from elements id. I just don't want to show real id on website. I created script to test is there option to get same hashes:
```
const _ = require('lodash');
const XXH = require('xxhashjs');
let hashes = []
let uniq_hashes = []
for(let i = 0; i < 1000000; i+... |
2018/03/21 | 411 | 1,149 | <issue_start>username_0: I have a table as below
```
Id | PriceCardId | Days
1 | 1 | 2
2 | 1 | 4
3 | 1 | 5
4 | 1 | 6
5 | 1 | 3
6 | 2 | 5
7 | 2 | 3
8 | 3 | 6
```
How to write SQL query to get all PriceCardId has Day contain
```
... |
2018/03/21 | 324 | 1,045 | <issue_start>username_0: In Moodle, I can see the following roles - Student and Manager. I have created 2 managers and 5 students. Is there a way to assign 3 students to 1 manager so that whenever these 2 students send any requests for approval, it will be shown only to their respective Manager?<issue_comment>username_... |
2018/03/21 | 607 | 2,113 | <issue_start>username_0: I'm battling to understand how to resolve the warning:
>
> `key` is not a prop. Trying to access it will result in `undefined`
> being returned. If you need to access the same value within the child
> component, you should pass it as a different prop.
>
>
>
I have added 'i' in my map fu... |
2018/03/21 | 539 | 1,879 | <issue_start>username_0: I have a table which has 3 columns StudentID, Score and ClassNumber.
What I need now is to select top 5 students of each Class (according to their Score result).
For example if there are 20 students in Class1, 40 students in Class2 and students in Class3, I need to select 15 top score students... |
2018/03/21 | 583 | 2,427 | <issue_start>username_0: I have a piece of code that can be called both within and outside a HTTP request, but wants to access information in the HttpServletRequest if it is available. My first attempt was the following:
```
@Inject
private Instance httpReq;
void doSomethingIfInRequest(){
if (httpReq.isUnsatisfied()... |
2018/03/21 | 719 | 2,060 | <issue_start>username_0: Let's say we have:
```
var array1 = [{ id: 1 }, { id: 4}, { id: 3 }]
var array2 = [{ id: 1 }, { id: 2}]
```
I know you can concat the two arrays like this (without having duplicates):
```
Array.from(new Set(array1.concat(array2)))
```
Now, how to create a new array with **only** the obj... |
2018/03/21 | 1,845 | 6,860 | <issue_start>username_0: I am implementing Passport Facebook Authentication by linking the Facebook Authentication API route to a button using href like:
```
[Facebook Login](auth/facebook)
```
When I click on the button, it redirects to the Facebook Authentication page. But on the page, an error message is display... |
2018/03/21 | 1,894 | 6,856 | <issue_start>username_0: i am having four fields as shown in code. i want to sum the `night_firsthotel`,`night_secondhotel`,`night_thirdhotel` and assign result to `total_night`.
How would i do this?
```
= $form-field($model, 'nights_firsthotel')->dropDownList(range(1, 10)); ?>
= $form-field($model, 'nights_secondhot... |
2018/03/21 | 1,595 | 5,895 | <issue_start>username_0: **Tools**
* MSBuild v14
* Visual Studio 2013
* Jenkins v2.111 running on Windows Server 2012
* Git (bare repo on local file server)
* Windows Batch
**My goal**
Build a c# Visual Studio project using MSBuild that pulls back the major and minor version numbers from the projects AssemblyInfo.cs... |
2018/03/21 | 445 | 1,598 | <issue_start>username_0: I tried forcing "Full Screen" in my styles like this:
```
true
true
```
I tried from my activity:
```
getWindow().addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
```
I even tried this, which makes the inte... |
2018/03/21 | 298 | 1,077 | <issue_start>username_0: I would like to display an online image in an image view with the use of Intent Service.
```
public class IntentServiceClass extends IntentService {
public IntentServiceClass() {
super("IntentServiceClass");
}
@Override
protected void onHandleIntent( Intent intent) {
if (intent != n... |
2018/03/21 | 750 | 2,835 | <issue_start>username_0: I have two applications A and B which call the same dll (C), in this (C) I have a UC (E) which use another UC (D) as a Popup where is an objectlistview,
When i use E in A everything is ok.
When I use E in B, when E call D I have a BrightIdeasSoftware.MungerException
(see image below) it tel... |
2018/03/21 | 753 | 2,770 | <issue_start>username_0: I have a list of numpy arrays. My list contains 5000 numpy arrays and each one has the size (1x1000). I want to construct a numpy array of size 5000x1000. I am trying to do something like:
```
db_array = np.asarray(db_list) # my db_list has 5000 samples of 1x1000 size
```
The result was a ma... |
2018/03/21 | 931 | 3,578 | <issue_start>username_0: How do we load additional jar at runtime along with boot jar.
**Primary jar**: `Main`.jar
**Additional jar**: `Support`.jar
`Main` project is a gradle boot project.
`Support` project is NOT a gradle project but is given compile time dependencies to the required jars.
Contents of Support pr... |
2018/03/21 | 544 | 1,941 | <issue_start>username_0: I have 2 classes. `Son` inherits from `Dad`. (Note code has been simplified)
```
@interface Dad : NSObject
@interface Son : Dad
```
**Dad Class**
```
- (void)setupSession
{
dadSession = [NSURLSession config:config delegate:self delegateQueue:mainQueue];
// PROBLEM: self == Son, ... |
2018/03/21 | 1,054 | 3,494 | <issue_start>username_0: I am trying to use the currency pipe in angular to display a whole number price, I don't need it to add .00 to my number, the thing is, its not formatting it according to my instructions.
here is my HTML:
```
##### {{billingInfo.amount | currency:billingInfo.currencyCode:'1.0-0'}... |
2018/03/21 | 2,432 | 9,179 | <issue_start>username_0: I am a newbie in F# and have been following guides to try to make a piece of code work but it hasn't.
I create types of single and coop sports through inheritance.
Then I use pattern matching to know the type and, if it is a coop sport, get also the number of players. Then rank each accordin... |
2018/03/21 | 1,090 | 3,761 | <issue_start>username_0: I want to add multiline text message with proper line breaks that are provided by me.
```
this.sampleStringErrorMsg = 'The sample is not valid:\n' +
'- The key and key value are required in the sample.\n ' +
'- The delimiter must be entered when the sample contains se... |
2018/03/21 | 1,354 | 4,744 | <issue_start>username_0: I'm trying to identify user similarities by comparing the keywords used in their profile (from a website). For example, `Alice = pizza, music, movies`, `Bob = cooking, guitar, movie` and `Eve = knitting, running, gym`. Ideally, `Alice` and `Bob` are the most similar. I put down some simple code... |
2018/03/21 | 1,672 | 4,646 | <issue_start>username_0: In my application I am in need to set different background color to table row based on similar td value which is dynamic data. I tried to achieve this but I was unable to group the table row with different background color. I have attached the expected result screen-cap along with the fiddle li... |
2018/03/21 | 1,027 | 3,305 | <issue_start>username_0: I need to access all elements of a list, but only ever 10 elements at most in one go. For this I thought about a nested loop like this:
```
for (int i = 0; i < 50 / 10; i++) {
for (int k = 0; k < 10; k++) {
paramList.addParam(xyz)
}
sendRequest(paramList);
}
```
With this... |
2018/03/21 | 844 | 2,771 | <issue_start>username_0: I want to fire some action when there was NO drag event between mouse pressed and released events. In other words - when user kept his mouse cursor still while clicking.
The question is specificly about rective way achive it. Really would appreciate RxJava2 solution (I'm using it with RxJavaFx)... |
2018/03/21 | 325 | 1,300 | <issue_start>username_0: I am able to connect, pass the data to MQ , but not able to retrieve data from MQ. On some base level analysis I found out that the only difference between successful messages and unsuccessful one is the 'Handle State' column;
[ But I also need to printout each c file`s content. For example, assuming that there are "practice.c" and "practice\_1.c" files in test folder,
```
test/practic... |
2018/03/21 | 861 | 2,806 | <issue_start>username_0: I got a situation like this:
```js
var orders = [
{ID: "sampleID1", order: "string describing the first order"},
{ID: "sampleID2", order: "string describing the second order"}
];
const bill = document.querySelector("#ordersListed");
for(var x in orders) {
bill.innerHTML += orders[x... |
2018/03/21 | 993 | 3,265 | <issue_start>username_0: I've been trying to do a renamer program in c# for 2 different paths and I keep getting error "Path includes invalid characters" I have no clue how to fix it, I've tried adding @ and deleting \ and keeping only one . But still didn't figure out how to fix it. Would love any help.
This is what ... |
2018/03/21 | 791 | 3,029 | <issue_start>username_0: What is the simplest way to perform a git pull request via CLI. I am tired of going to Bitbucket the whole time to create a pull request manually. Which is quite simple indeed:
1. Pull requests tab
2. Create pull request
3. Select source and destiny branches (edit comments, reviewers, etc)
4. ... |
2018/03/21 | 977 | 2,407 | <issue_start>username_0: Given is a dataframe with the vectors x1 and y1:
```
x1 <- c(1,1,2,2,3,4)
y1 <- c(0,0,1,1,2,2)
df1 <- data.frame(x1,y1)
```
Also, I have a dataframe with the different values from the vector y1 and a corresponding probability:
```
y <- c(0,1,2)
p <- c(0.1,0.6,0.9)
df2 <- data.frame(y,p)
``... |
2018/03/21 | 481 | 1,524 | <issue_start>username_0: I'm making sparklines next to bar charts but trying to get the positioning right.
The bars are set out with d3.scaleBand().paddingInner(0.1)
I'm translating the line paths by y.bandwidth() which gets me close (see below).
It looks like it needs to add a bit more for the padding. How much is ... |
2018/03/21 | 657 | 2,574 | <issue_start>username_0: A simple example to illustrate the problem:
1 - Here, does the program exits after the future is completed ?
```
def main(args: Array[String]): Unit = {
val future: Future[Unit] = myFunction()
}
```
2 - If not, should I had an `Await` to guarantee that the future terminates?
```
def ma... |
2018/03/21 | 929 | 3,416 | <issue_start>username_0: I have dataset that consist of hundreds of column, and thousands of row
```
In [119]:
df.columns
Out[119]:
Index(['column 1', 'column2',
...
'column 100'],
dtype='object', name='var_name')
```
Usually I did `value_counts()` for every single column to see the distribution.... |
2018/03/21 | 634 | 2,158 | <issue_start>username_0: `if ! /usr/bin/getent passwd sgate>/dev/null; then
%define bindir /home/sgate/elasticsearch
elif ! /usr/bin/getent passwd rgate>/dev/null; then
%define bindir /home/rgate/elasticsearch
fi`
RPM build errors:
```
File must begin with "/": if
File must begin with "/": !
Two files on one ... |
2018/03/21 | 1,208 | 3,672 | <issue_start>username_0: This is data collected from a survey where there was a radio button to select from 1 of 5 choices. What is stored in the column is a simple 1 as a flag to say it was selected.
I am wanting to end up with a single column with the column headers as the values. Someone suggested using the IDXMAX ... |
2018/03/21 | 1,116 | 3,599 | <issue_start>username_0: I am currently, going through this [great article on Y-combinator](https://mvanier.livejournal.com/2897.html) by [<NAME>](http://users.cms.caltech.edu/~mvanier/). Along the explanation the following line is dropped:
>
> It turns out that any let expression can be converted into an equivalent ... |
2018/03/21 | 1,040 | 3,563 | <issue_start>username_0: I have managed to display a marker on the map in the current position and everytime I'm moving the camera is following me. I get the device current location every 1000 milliseconds like this:
```
LocationRequest locationRequest = new LocationRequest();
locationRequest.setInterval(1000);
locati... |
2018/03/21 | 1,835 | 6,103 | <issue_start>username_0: I have a checkbox list which consists of 13 different values, and i am trying to use jquery to disable all of them when 9, 10, and 11 are selected.
So when 9 is checked, all are disabled except 10 and 11. When 10 is selected all is disabled except 9 and 11. when 11 is selected all is disabled ... |
2018/03/21 | 702 | 1,974 | <issue_start>username_0: I'm trying to create three columns based on date in seconds format.
My `user.updated_at = 1521533490`
I would like to get year, month and day separately and put these formatted values to columns for example:
year -> 2018, month -> 11, day -> 23
Does someone know how can I do that in `pgSQL`... |
2018/03/21 | 894 | 2,851 | <issue_start>username_0: I consider using an owner draw menu in a Windows application that should have the same look as the standard menu. (Reason: the standard menu doesn't work well in some mixed DPI situations.)
Currently I have a problem providing the correct width during *WM\_MEASUREITEM*.
This is a screenshot o... |
2018/03/21 | 927 | 3,769 | <issue_start>username_0: I am using Spring Kafka 1.2.2.RELEASE. I have a Kafka Listener as consumer that listens to a topic and index the document in elastic.
My Auto commit offset property is set to true //default.
I was under the impression that in case there is an exception in the listener(elastic is down) the offs... |
2018/03/21 | 601 | 2,284 | <issue_start>username_0: Is it possible to use `removeClass` for `AJAX` loaded DIVs?
```
setInterval(function() {
$('.message').each(function() {
var message_id = $(this).data('id');
if ($(this).hasClass('message-not-read')) {
$.get('message-set-read.php?message-id=' + message_id, funct... |
2018/03/21 | 315 | 1,334 | <issue_start>username_0: Is it possible to sync / mirror two SharePoint librarys on two different sites?
So when a new document is added, modified or deleted, that the other library automatically updates this document?<issue_comment>username_1: There's no out of the box options to sync two libraries. There are several... |
2018/03/21 | 380 | 1,497 | <issue_start>username_0: I am working on the following scenario.
I click on an element in the main web page and it opens a dialog box. It is an iframe and i use `diver.switchTo().frame(1);` to access that frame. I am able to perform the required activites in that frame. Clicking on OK button in that frame will close i... |
2018/03/21 | 535 | 1,552 | <issue_start>username_0: This is the error I get when I try to install gapps (obtained from [here](https://www.mediafire.com/file/qmd7z9x5ndsb54k/gapps-kk-20140105-signed.zip), following [these instructions](http://www.alteridem.net/2017/02/02/installing-google-play-gapps-visual-studio-android-emulators/)).
[ {
const a = 1;
const b = 2;
return callsAnotherFunction(`foo: ${a + b} $`);
}
```
Now I would like to have it in another function as well but with `bar` instead of `foo`.
```
myMethod2() {
const a ... |
2018/03/21 | 609 | 1,753 | <issue_start>username_0: I am trying to access the previous values or the stochastic of the chart in MQL5. But I only know how to calculate for the current.
What I am trying to do is:
```
int stochastic_output = iStochastic(_Symbol,PERIOD_M1,5,3,3,MODE_SMA,STO_LOWHIGH);
```
But I don't know how I can get the va... |
2018/03/21 | 845 | 2,611 | <issue_start>username_0: When I am using new Date, I am getting something like as follows:
```
Wed Mar 21 2018 16:14:50 GMT+0530 (India Standard Time)
```
but what I want is `xxxxxxxxxxxxxxxx`/(`21032018041217PM`) formatted time string
Here(`21032018041217PM`) is 21 is `date, 03-month, 2018-year, 04-time, 12-minute... |
2018/03/21 | 530 | 1,695 | <issue_start>username_0: I would like to get all records in a relationship where its not null
so my table are
```
tbl_truck
id, name
tbl_checks
id
truck_id //foreign key from tbl_truck table id
```
So in my query i have
```
$query = TblTrucksModel::find()
->leftJoin('tbl_checks','tbl_trucks.id... |
2018/03/21 | 873 | 3,236 | <issue_start>username_0: If I have something like:
```python
model = Model(inputs = input, outputs = [y1,y2])
l1 = 0.5
l2 = 0.3
model.compile(loss = [loss1,loss2], loss_weights = [l1,l2], ...)
```
what does Keras do with the losses to obtain the final loss?
Is it something like:
```python
final_loss = l1*loss1 + l... |
2018/03/21 | 618 | 1,901 | <issue_start>username_0: I'm writing an expression in a Transact SQL query to find the per-record minimum of two datetimes a,b where a cannot be null but b can be null (in which case return a).
I have the following, which I think is correct, and might even be efficient, but is certainly ugly.
Can we do better?
```
c... |
2018/03/21 | 486 | 1,626 | <issue_start>username_0: Is it safe to rely on default deleter using `std::unique_ptr`?
I want to use it like this:
```
uint8_t* binaryData = new uint8_t[binaryDataSize];
std::unique_ptr binPtr(binaryData);
```
So the default deleter in `std::unique_ptr` looks like this:
```
template
typename enable\_if::value>::t... |
2018/03/21 | 1,472 | 5,396 | <issue_start>username_0: I'm creating a form whereby the user can upload a picture and send it to the server along with the information in the form. Everything was working fine locally but when I uploaded the code to the server I started getting errors. I changed all the codes concerning the path but its still giving m... |
2018/03/21 | 739 | 2,028 | <issue_start>username_0: Let's say this is the query:
```
db.movies.aggregate([
{$match: {languages: "English", cast:{$exists:true}}},
{$unwind: "$cast"},
{$group: {_id: "$cast", numFilms:{$sum: 1}, average:{$avg: "$imdb.rating"}
}},
{$sort: {numFilms:-1}},
{$limit: 1}
])
```
And I get the output:... |
2018/03/21 | 762 | 1,965 | <issue_start>username_0: I have two little file that contain :
`f = 'employé numero 1'` at line 1 etc...
`f2 = 'a'` at line 1 etc...
I want to write in f3 to have at the first line : 'employé numero 1 a' etc
here is my code. After execute, no error msg but f3 is still empty :
```
f = open(r'c:\temp\merge1.txt','w... |
2018/03/21 | 1,003 | 3,594 | <issue_start>username_0: I am using MySQL DB. I have two tables -
1. Product\_Data (it has some columns including PK productDataId)
2. Product\_Data\_Link(it has 5 columns Id(PK), productDataId(FK), LinkTypeId, IsActive, ProductDataLinkUrl)
I am running this query in one service call for multiple products. Is there a... |
2018/03/21 | 793 | 2,553 | <issue_start>username_0: I am trying to format the data labels that appear when I hover over part of a chart I have created using Plotly. The label is currently showing like [this](https://i.stack.imgur.com/6jKpE.png). I would like for the label to only show profit.
My code for creating the plot is:
```
output$monthl... |
2018/03/21 | 734 | 2,304 | <issue_start>username_0: I have a column as below:
```
A
0 Australia
1 New Zealand
2 New Jersey,America
3 Hyderabad,India
```
I want to split it in two columns where there is ',' separator such as:
```
A B
0 Australia NaN
1 New Zealand NaN
2 New Je... |
2018/03/21 | 531 | 1,853 | <issue_start>username_0: I have a scenario where in I need to login only once per entire duration of the run and execute later requests n number of times. Brief explanation: Threads will be 1000 and duration will be 1 hour. We need to iterate the login request only once per the run (per 1000 users).But post login reues... |
2018/03/21 | 856 | 3,024 | <issue_start>username_0: I want to execute VBA code, where the code itself is built from a string at runtime
I already found out how to do this via this existing SO answer:
[How to run a string as a command in VBA](https://stackoverflow.com/questions/43216390/how-to-run-a-string-as-a-command-in-vba)
For ease of refer... |
2018/03/21 | 551 | 1,887 | <issue_start>username_0: I have a problem with bash command output.
I want to save result of command to array and cut first part into [0] and seccond into [1]
```
result=$(findId PATTERN | tr -s " " | cut -d " " -f 1)
```
Output of findID is:
```
id errorcode nameOfProgramRunned
```
example:
```
12345 "compilat... |
2018/03/21 | 791 | 2,469 | <issue_start>username_0: I use ssd\_mobilenet\_v1\_coco model with OpenCV for object detection.
```
cvNet = cv.dnn.readNetFromTensorflow('frozen_inference_graph.pb', 'graph.pbtxt')
```
When using original graph.pbtxt it is OK.
But when i create pbtxt file using tf\_text\_graph\_ssd
<https://github.com/opencv/opencv... |
2018/03/21 | 1,500 | 3,556 | <issue_start>username_0: I have a dataframe like this:
```
Setting q02_id c_school c_home c_work c_transport c_leisure Country
Rural 11900006 0 5 3 1 1 Vietnam
Rural 11900031 10 5 0 0 0 China
Rural 11900033 0 3 0 ... |
2018/03/21 | 1,426 | 3,307 | <issue_start>username_0: I csv data file in below format:
```
1:
101
102
2:
103
104
105
3:
106
107
```
I want result as below in R
```
Value id
101 1
102 1
103 2
104 2
105 2
106 3
107 3
```
I did using for loop but it takes lot of time. Origin... |
2018/03/21 | 666 | 1,948 | <issue_start>username_0: I have this enum :
```
object PhsIndType extends Enumeration{
type PhsIndType = Value
val A : Value = Value(1)
val R : Value= Value(2)
val O : Value = Value(3)
val E : Value = Value(4)
}
```
And i'm trying to load it into a map for easier use :
```
val map = PhsIndType.value... |
2018/03/21 | 991 | 2,483 | <issue_start>username_0: I have a dataframe that contains some `NaN`-values in a `t`-column. The values in the `t`-column belong to a certain `id` and should be the same per `id`:
```
df = pd.DataFrame({"t" : [4, 4, 1, 1, float('nan'), 2, 2, 2, float('nan'), 10],
"id": [1, 1, 2, 2, 3, 3, 3 , 3... |
2018/03/21 | 1,374 | 5,767 | <issue_start>username_0: In the activity\_main.xml I have a button that opens a AlertDialog with two textedit fields (dialog\_login.xml); but when I click on the "login" button, I try to store the textedit content in a string and I receive the following output:
"attempt to invoke virtual method on a null object referen... |
2018/03/21 | 877 | 3,472 | <issue_start>username_0: I'm using Firebase + Ionic in a project. my problem comes when loging out. I am subscribed to several `onSnapshot` events in some collections. I expect all subscriptions to be dismissed whenever the a user is logged out, but it is not like that, so whenever I logged out I receive several errors... |
2018/03/21 | 621 | 2,001 | <issue_start>username_0: As I am trying to compare these doubles, it won't seem to be working correctly
Here it goes: (This is exactly my problem)
```
#include
#include
int main () {
int i\_wagen;
double dd[20];
dd[0]=0.;
dd[1]=0.;
double abstand= 15.;
double K\_spiel=0.015;
double s\_rel\_0= K\_spiel;
int... |
2018/03/21 | 1,341 | 3,585 | <issue_start>username_0: I want my section background look like as shown in the image at the end, how can i do that using css?
```css
.bg{
width: 400px;
height: 200px;
padding: 20px;
text-align: center;
border: 1px solid #000;
background: red;
color: #fff;
display: flex;
}
.bg p{
text-alig... |
2018/03/21 | 541 | 1,732 | <issue_start>username_0: I have a function defined like...
```
def create_button(content)
title = content.dig(0, 'text')
url = content.dig(0, 'url')
return nil if title.nil? || url.nil?
return Button.new(
title,
url
)
end
```
Or something...
Anyway, I was wondering if it would be possible to smo... |
2018/03/21 | 640 | 2,098 | <issue_start>username_0: I'm trying to validate the all the components of the form using
`'formName'.valid` in Type Script.
I want to validate the "home form's all the fields" .In here I create the input field and validate using the validator.
If the form is valid "Home Form is valid" alert should be popped up,if no... |
2018/03/21 | 1,471 | 5,311 | <issue_start>username_0: In Explorer sequence `Shift+F10 -> open command window here` opens cmd in current directory.
Is there any way to do the same via shortcuts to launch cmd with administration rights?<issue_comment>username_1: 1. Simply open cmd prompt from start as Run as Administrator,
2. Copy the path where y... |
2018/03/21 | 429 | 1,647 | <issue_start>username_0: How can I remove a row by using Truncate in SQL instead of delete by using WHERE condition?
Truncate only use to remove the table or row? if can remove the row by truncate, let me know anyone<issue_comment>username_1: You can't. Only `DELETE` statements can have a `WHERE` condition on them, `TR... |
2018/03/21 | 919 | 3,187 | <issue_start>username_0: I am currently, going through [this article](https://mvanier.livejournal.com/2897.html) on Y-combinator by [<NAME>](http://users.cms.caltech.edu/~mvanier/).
Along the way of Y-combinator derivation, this code:
```
(define (part-factorial self)
(lambda (n)
(if (= n 0)
1
(* n... |
2018/03/21 | 473 | 1,820 | <issue_start>username_0: I want to display the status of a user.If the user will be online then I have to show green icon on the user profile.If a user will be offline then I have to show grey icon and it might be possible that user will be logged in but not active in that case I have to display orange icon(for the idl... |
2018/03/21 | 1,448 | 5,565 | <issue_start>username_0: This is my Custom List Adapter Class :
```
class MyAdapter extends ArrayAdapter {
private int resourceId;
String name="";
String phone;
private ArrayList sites = null;
private Context context;
private static class ViewHolder{
TextView RideDetails;
EditText mEdit;
}
public MyAdapter... |
2018/03/21 | 596 | 2,235 | <issue_start>username_0: I've been trying to pull values from an enum and store them as a String in an array. However, depending on a variable, the values have to be unique, i.e. the same value can't be used twice.
I've used the following code to pull values:
```
public enum Colour
{
ROOD, GEEL, GROEN, BLAUW, PA... |
2018/03/21 | 602 | 1,986 | <issue_start>username_0: When I was going to install my new codeigniter project. I got the error
>
> Fatal error: session\_start(): Failed to initialize storage module: user (path:
> C:\xampp\tmp) in C:\xampp\htdocs\Tetavendor\system\libraries\Session\Session.php
> on line 140
>
>
>
And I've found the similar... |
2018/03/21 | 603 | 2,624 | <issue_start>username_0: Refer to [Why are Azure Resource Groups associated with a specific region?](https://stackoverflow.com/questions/32406410/why-are-azure-resource-groups-associated-with-a-specific-region)
Say that I have a Resource Group A that has been deployed to the Australia South East Region.
In Resource G... |
2018/03/21 | 2,008 | 5,942 | <issue_start>username_0: I have an array with objects that looks like this:
```
[{
id: 34,
users: [{
name: 'Lisa',
age: 23
}, {
name: 'Steven',
age: 24
}]
} ,{
id: 35,
users: [{
name: 'John',
age: 23,
}, {
name: 'Steven',
age: ... |
2018/03/21 | 1,630 | 4,521 | <issue_start>username_0: I have space **peoples**:
1. id
2. name
3. age
with two indexes:
```
peoples = box.schema.space.create('peoples', {engine = 'memtx', field_count = 3, if_not_exists = true})
peoples:create_index('primary', {type = 'TREE', unique = true, parts = {1, 'unsigned'}, if_not_exists = true})
peoples:... |
2018/03/21 | 702 | 1,897 | <issue_start>username_0: Even after having a proper route set in my `web.php`, I am getting the `404 not found` error in my Laravel application in `local` mode.
[](https://i.stack.imgur.com/QGxJT.png)
All the pages are working correctly except this o... |
2018/03/21 | 578 | 2,106 | <issue_start>username_0: I have worked with template driven forms before and I am slightly confused how the reactive forms work to store the data to my database. Initially I would just use **[(ngModel)]="user.date"**. How do I store the data now on submit? I have built one as follows:
```
this.formGroup = this._formBu... |
2018/03/21 | 465 | 1,697 | <issue_start>username_0: I want to update Django User table, and add another field into it. This is how I do.
```
class User(AbstractUser):
platform = models.CharField(max_length=10)
USERNAME_FIELD = 'email'
```
Now, since there's a field `USERNAME_FIELD` which takes a unique field. However, I want that `use... |
2018/03/21 | 889 | 3,628 | <issue_start>username_0: As title says, I'm using since yesterday **Kotlin**. I want to populate a **RecyclerView** with data from **Firebase**.
I tried something, I built an Adapter and tried to populate the **RecyclerView**, my data is going to Firebasebase but not showing in the **RecyclerView** and I get no errors... |
2018/03/21 | 1,041 | 2,500 | <issue_start>username_0: here is my issue:
I have a big array that I want to split into an array of arrays. These subarrays must be of lengths given by a second array.
Example
```
x=[*1..10]
y=[1,4,2,3]
```
I am seeking `output=[[1],[2,3,4,5],[6,7],[8,9,10]]`
Is there a rubyistic trick to do this?
Thanks for y... |
2018/03/21 | 718 | 3,238 | <issue_start>username_0: So i have this `function` that checks if my `File` is still in use (in order to wait before try to copy and delete it):
```
private static bool IsFileLocked(FileInfo file)
{
FileStream stream = null;
try
{
using (stream = file.Open(FileMode.Open, Fi... |
2018/03/21 | 456 | 1,615 | <issue_start>username_0: I want to display numbers from 1 to 100 but have some sort of delay in the display of the numbers. Currently it just displays the last number in the for loop is there a way to do this that is not too advanced.
```
1
```
Here is the Javascript Code
```
for(var i = 1; i <= 100; i++){
... |
2018/03/21 | 524 | 1,126 | <issue_start>username_0: ```
Error:Execution failed for task ':app:mergeDebugResources'.
> C:\Users\vipin\Desktop\working\chatbot-watson-android\app\src\main\res\values\config.xml: Error: The resource name must start with a letter.
```
I am not able to find the bug. My gradle version is 3.0.1.
My `config.xml` file i... |
2018/03/21 | 811 | 2,517 | <issue_start>username_0: I have tabs like these:
```html
* [Home](#pills-home)
* [Profile](#pills-profile)
* [Contact](#pills-contact)
...
...
...
```
But instead of having them on the left, I'd like them in the center.
I tried `text-align: center;` and even setting `margin-left: 0` and `margin-right: 0` but n... |
2018/03/21 | 1,650 | 4,239 | <issue_start>username_0: i have updated the package.json in my Angular Project,using command ncu -u after update getting below error when i run **ng serve**
**ERROR in ./node\_modules/@angular/core/esm5/core.js
Module not found: TypeError: dep.isEqualResource is not a function**
tried uninstalling node modules and re... |