date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/18 | 876 | 3,434 | <issue_start>username_0: I am trying to deploy a helm chart which uses `PersistentVolumeClaim` and `StorageClass` to dynamically provision the required sotrage. This works as expected, but I can't find any configuration which allows a workflow like
```
helm delete xxx
# Make some changes and repackage chart
helm ins... |
2018/03/18 | 2,969 | 10,316 | <issue_start>username_0: In c code. I have an input file (called in) that is a mad-lib in the format, "I have really < adjective> eyes" (no spaces inside the <>) and I want to write a bool function that uses scanf to read every word and return true if the word begins with '<' (also called a token) How would I go about ... |
2018/03/18 | 3,232 | 11,200 | <issue_start>username_0: I was trying execute this PHP file that I have in XAMPP. I am trying to update the data to the database through a form, when I enter the info and give submit button the page just reloads or I get the message all fields are required though I fill up all. Give an it a check to the code. The data ... |
2018/03/18 | 458 | 1,381 | <issue_start>username_0: In SQLite, how to compare date without passing timestamp?
The date format is `2018-03-18 08:24:46.101655+00` and I want to compare against only date part as `2018-03-18`.
I have tried as where `mydate='2018-03-18'` but that didn't return any records.
Similarly, tried `Date(mydate)='2018-03-1... |
2018/03/18 | 955 | 2,849 | <issue_start>username_0: Yes: I know that we shouldn't be using global variables in Python but I'm trying to understand this behavior.
I have this file called bug.py :
```
x = 0
def foo():
global x
x = 100
if __name__ == '__main__':
foo()
print(x)
```
when I execute this as a file I get the expec... |
2018/03/18 | 1,059 | 3,814 | <issue_start>username_0: I'm trying to publish my own Android library to Bintray but when I uploaded from gradle successfully. I always get unexpected result from Bintray. It looks like this
[](https://i.stack.imgur.com/ROrTY.png)
And this is my buil... |
2018/03/18 | 472 | 1,618 | <issue_start>username_0: I'm trying to run a command on a bunch of files:
```
find . -name "*.ext" | xargs -0 cmd
```
The above works but it hangs because one of the folders stupidly has an ' in the file name (others have parens and other nonsense).
How do I safely send escaped output to my command? e.g.:
```
cmd ... |
2018/03/18 | 457 | 1,622 | <issue_start>username_0: I have set an operation hook on my sales table, but the operation not triggering when a new row insert in that table. My hook coke has given below. The database is MySQL.
```
module.exports = function (LiveSales) {
LiveSales.observe('after save', function (ctx, next) {
var socket = LiveS... |
2018/03/18 | 633 | 2,422 | <issue_start>username_0: I am trying to map a keyboard's key to touch a certain point on stage.
This is my current code but it doesn't crash or do anything.
```
InputEvent touch = new InputEvent();
touch.setType(InputEvent.Type.touchUp);
touch.setStageX(400);
touch.setStageY(200);
currentStage.getRoot().fire(touch); /... |
2018/03/18 | 770 | 2,362 | <issue_start>username_0: I'm given a decimal\_string e.g. 12.34, how would I get the values before and after the decimal point?
```
a = 12
b = 34
```
How do I get the values of `a` and `b`?<issue_comment>username_1: **Edit:** After reading comment "This seems to work but if decimal\_string is e.g. 0 or 1234 it gives... |
2018/03/18 | 963 | 2,968 | <issue_start>username_0: I have this function here and I am struggling to figure out how the output is derived from this. Any help would be appreciated. thank you!
```
class A:
def __init__(self, a: int, b: [str]):
self._foo = a
self._bar = b
def get_foo(self):
return self._foo
de... |
2018/03/18 | 1,715 | 4,660 | <issue_start>username_0: I am fairly new to SQL. My table is
```
id mark datetimes
------|-----|------------
1001 | 10 | 2011-12-20
1002 | 11 | 2012-01-10
1005 | 12 | 2012-01-10
1003 | 10 | 2012-01-10
1004 | 11 | 2018-10-10
1006 | 12 | 2018-10-19
100... |
2018/03/18 | 1,922 | 10,495 | <issue_start>username_0: I have created a custom notification for Downloading an mp3 file from a given URL. But I need to know how to add `pause` and `cancel` button to the custom notification I created.
Here is the partial code for custom Notification :
```
if (!downloadUrl.toString().isEmpty()) {
... |
2018/03/18 | 841 | 3,559 | <issue_start>username_0: One of the biggest issue we face now with parse-server is duplication. Although we have implemented a Parse cloud code to prevent such event through `beforeSave` and `afterSave` methods at the same time added external middleware to check for existing object before saving still we face duplicati... |
2018/03/18 | 682 | 2,235 | <issue_start>username_0: I have a search engine that does the following things:
Read an input value and encode it using js, then redirect.
```
//read and save into `query` var
window.location.href = "/search/" + encodeURIComponent(query);
```
So if user enters
>
> What is the meaning of & sign ?
>
>
>
The ul... |
2018/03/18 | 565 | 1,890 | <issue_start>username_0: I have a nodeJS loopback application running in a Docker Container.
When I monitor the logs there is no timestamp for the logs, resulting in obvious challenges.
Is there a way to enable timestamps for these logs?
Thanks
[](... |
2018/03/18 | 443 | 1,743 | <issue_start>username_0: Here's my s3 session:
```
img = request.FILES.get('image')
filename = random_string()
"""if filename exists in my s3 bucket:
create another random_string"""
session = boto3.Session(
aws_access_key_id=AWS_ACCESS_KEY_ID,
aws_secret_access_key=AWS_SECRET_ACCESS_KEY,
)
s3 = session.... |
2018/03/18 | 526 | 1,981 | <issue_start>username_0: I've followed the Phabricator [Configuration Guide](https://secure.phabricator.com/book/phabricator/article/configuration_guide/), and after installing all dependencies, I'm facing the following message:
```
Request parameter '__path__' is not set. Your rewrite rules are not configured correct... |
2018/03/18 | 306 | 1,199 | <issue_start>username_0: Is it possible to use git as a command line inside Visual Studio, like you would in **VS Code** or **Intellij**? Every online info on it suggests that I right-click the repos, then select open command line. However, that's opening the command line outside Visual Studio.
Thanks for helping<issu... |
2018/03/18 | 592 | 2,060 | <issue_start>username_0: According to [Retrieving a document](https://www.elastic.co/guide/en/elasticsearch/guide/current/get-doc.html) documentation
```
GET /website/blog/123/_source
```
would directly return the document stored inside the `_source` field.
I'm currently using Node JS's express framework. How shoul... |
2018/03/18 | 354 | 1,140 | <issue_start>username_0: HTML
```
id="fees-inp">
Admission Fees()
```
Javascript
```
$(".dep-adm-inp").hide();
```
the div is hidden when page loads but if the php variable is not empty then i want to show the div when.<issue_comment>username_1: `.hide()` method sets `display:none;` on your element.
You can ov... |
2018/03/18 | 599 | 2,340 | <issue_start>username_0: I have the following class:
**EmailNotification**
```
namespace App\Component\Notification\RealTimeNotification;
use Symfony\Bridge\Twig\TwigEngine;
use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface;
use App\Component\Notification\NotificationInterface;
class EmailNotification ... |
2018/03/18 | 1,220 | 2,646 | <issue_start>username_0: Given a list like this, where first column is the id and second is a string,
```
[ [2, ["00_01_02"]],
[1, ["00_03_04"]],
[3, ["00_03_04"]],
[6, ["00_03_04"]],
[4, ["01_02_03"]],
[5, ["01_02_03"]],
]
```
As you can see there are adjacent elements that are the same. For example,... |
2018/03/18 | 490 | 1,564 | <issue_start>username_0: I am trying to parse html string using a regular expression.
Full html is loaded in a string variable and i know the id of the element. How to get the name of that particular element
in the below example id is `field-options-Real-fc` and the expected result is `f4186d62184e277e2968ece68da25a... |
2018/03/18 | 423 | 1,409 | <issue_start>username_0: This algorithm is giving me trouble, I cannot find any sources online about dealing with the while loop that is also affected by the outer for loop. Is there a complicated process, or can you look from the loop that it is simply (outer loop = n , inner loop = %%%%) ? Any help is appreciated tha... |
2018/03/18 | 468 | 1,470 | <issue_start>username_0: I'm looking to obfuscate some text by making it completely illegible.
While this is very easy to do in handwriting, I need it to be done on a webpage in Verdana.
I was thinking that I could possibly make a Verdana-esque font that has the top and bottom halves of many letters switched, or I co... |
2018/03/18 | 1,093 | 4,242 | <issue_start>username_0: I already searched for answers but I couldn't find any answer that could solve my problem.
I have 2 tables: `phones` and `phone_types`. The first one has a foreign key associated with the phone\_types primary key. I want to show on view the name of phone\_type through phone object. Something l... |
2018/03/18 | 371 | 1,382 | <issue_start>username_0: I have a loading screen that takes about 15-30 seconds depending on the data that's loaded. It loads about 50 items and displays on the page:
`Loading item x`
It uses an observable/subscription for each data call made to the DB. Upon receiving the data, the subscription fires off and adds it... |
2018/03/18 | 554 | 2,138 | <issue_start>username_0: I've been attempting to reassign a particular vector element to a new value and received a error from the compiler, and I'm not sure I understand it. So I believed that you could reassign a single vector element in the same way you could reassign an array's element.
```
std::vector myVector[10... |
2018/03/18 | 365 | 1,359 | <issue_start>username_0: I'm getting this error on my site after I tried to convert to mysqli on line 26 (*$rs = mysqli\_query($link,MySQLi) or die(mysqli\_connect\_error());*)
My code is like this
//Get configuration control record from database
```
$MySQLi = "SELECT configValLong
FROM storeadmin ... |
2018/03/18 | 848 | 2,966 | <issue_start>username_0: I'd like to use Polly to do the following: Attempt a request with a very short timeout. If it fails, retry with a longer timeout.
I see that `Retry` can access `retryCount` like this:
```
Policy
.Handle()
.Retry(3, (exception, retryCount, context) =>
{
// do something
});
```
And I see th... |
2018/03/18 | 1,062 | 3,048 | <issue_start>username_0: I have a list containing ID's of students:
```
ID = [1,2,3]
```
and i have a table containing student names and their hobby:
```
student = [['Jack','Fishing'],['Alice','Reading'],['Mun','Football']]
```
I want to concatenate the ID to the first position of each sublist within the student ... |
2018/03/18 | 691 | 2,698 | <issue_start>username_0: Research a lot about this issue and found the same question, which doesn't solve my problem. so starting a new question.
[Xamarin Android: Android.Views.InflateException - Error when loading Layout](https://stackoverflow.com/questions/48460907/xamarin-android-android-views-inflateexception-erro... |
2018/03/18 | 410 | 1,434 | <issue_start>username_0: Why do I get `SyntaxError: missing ) after argument list` with the following code?:
```
$('#login-form').on('submit', function(event){
event.preventDefault();
console.log("form submitted!"); // sanity check
$('#table').load('http://127.0.0.1:8000/results',function(){
$('#g... |
2018/03/18 | 646 | 2,551 | <issue_start>username_0: For years, I understood that when tables are joined, one row from primary table is joined to a row in target table after applying conditions I.e the query results will <= rows in the primary table. But I have seen where one row in primary table can be joined multiple times of the conditions all... |
2018/03/18 | 359 | 1,322 | <issue_start>username_0: Assuming this is my pojo:
```
public class POJOFoo{}
public class POJOFoo2{}
```
Assuming this is my method and i want to either use the same method to
display POJOFoo and POJOFoo2.
```
public void Foo(Object pojofoo/pojofoo2) {
ObservableList observableDescriptions =
FXCollections.o... |
2018/03/18 | 511 | 1,972 | <issue_start>username_0: I'm building an OData v2 service with Olingo which partly gets data from an S/4 System through a custom Gateway OData service, partly from Cloud Platform Neo and combines both. To achieve this I use the SDK for service development included in the S/4 Cloud SDK (<https://help.sap.com/viewer/p/SD... |
2018/03/18 | 515 | 1,717 | <issue_start>username_0: How can I modify the script below to read the values in a column, but only read the values of the specified cells: L9, L10 ... L18, L19 .... L27, L28 .... (two by two jumping eight, to the end of the column L2000) and when find the value "1" in one of those cells, then replace the value that is... |
2018/03/18 | 615 | 2,088 | <issue_start>username_0: I'm want to learn .net core application development. I'm currently using `Visual Studio 2012`.
>
> Is there a way to develop a .net core application with Visual Studio 2012 or is it
> compulsory to use `Visual Studio 2017` for .net core development ?
>
>
><issue_comment>username_1: You can... |
2018/03/18 | 760 | 2,193 | <issue_start>username_0: Example of the nested dictionary with the keys to be removed.
```
{1: {'Email': '<EMAIL>',
'FirstName': 'John',
'Id': {'Value': 1},
'LastName': 'Doe',
'UserName': 'JohnDoe'},
2: {'Email': '<EMAIL>',
'FirstName': 'Jane',
'Id': {'Value': 2},
'LastName': 'Doe'... |
2018/03/18 | 740 | 2,223 | <issue_start>username_0: Let's say I have the following data.table.
```
dt = data.table(one=rep(2,4), two=rnorm(4))
dt
```
Now I have created a variable with a name of one column.
```
col_name = "one"
```
If I want to return that column as a data.table, I can do one of the following. The first option will return ... |
2018/03/18 | 822 | 3,176 | <issue_start>username_0: I am a newbie to `Jasmine` and a bit confused between above two functions. My sole purpose is to give a fake implementation to a spy function. But, If I put debugger in `callFake` the it is getting called but `and.stub`'s function is not getting called. Could anyone please explain what is the d... |
2018/03/18 | 291 | 1,034 | <issue_start>username_0: I created a question component. In that component I put some hard-coded questions. When I try to run the application, it shows text undefined.
Here is my component:
```
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-question-list',
templateUrl: './question-lis... |
2018/03/18 | 288 | 950 | <issue_start>username_0: I got this example from one website. And I am about to upgrade the security of my code. So May I have your opinion if this kinda code strong enough to prevent the injection?
```
$sql = sprintf(
"
INSERT INTO `members`
(`id`, `username`, `password`, `first_name`, `last_name`)
VA... |
2018/03/18 | 318 | 926 | <issue_start>username_0: How can I get the source, title, issn, author, ... from a json file: [JSON file](https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi?db=pubmed&id=29539636&retmode=json)
We tried with:
```
$new_pmid = $_POST['new_pmid'];
$api_json_url = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/e... |
2018/03/18 | 1,670 | 6,032 | <issue_start>username_0: Sorry for the extremely basic question, but I want to figure out how to use a switch statement with cases that check if it's a certain string.
For example if I have an AnimalType enum and then I have an animal struct:
```
enum AnimalType: String {
case Mammal = "Mammal"
case Reptile = "... |
2018/03/18 | 1,518 | 5,488 | <issue_start>username_0: This is what I want though can't find the proper syntax.
eg.
```
select * from campaign where campaign_display_start is minimum;
```<issue_comment>username_1: ```
enum Command: String {
case Mammal = "Mammal"
case Reptile = "Reptile"
case Fish = "Fish"
}
let command = Command(rawVal... |
2018/03/18 | 1,413 | 4,022 | <issue_start>username_0: `Checksum()`, `Binary_Checksum()` and `CHECKSUM_AVG()` functions are provided by SQL Server to build a hash index based on an expression or a column list.
This can be helpful in determining whether a row has changed or not. The mechanism can then be used to identify whether the record has be... |
2018/03/18 | 416 | 1,590 | <issue_start>username_0: Why do those "load" and "store" operators need an "align" attribute, and how does it work with memory alignment?
BTW, why do we need this operator since the underlying system will do memory aligning for us automatically?<issue_comment>username_1: The use of alignment is detailed in the spec:
... |
2018/03/18 | 441 | 1,602 | <issue_start>username_0: My problem can be reproduced as this:
```
struct MyClass {
template
MyClass(Ts&&..., int) {};
};
int main() {
MyClass mc{1, 2 }; // error: cannot convert from 'initializer list' to 'MyClass'
}
```
What's wrong with my code?<issue_comment>username_1: The use of alignment is detailed in... |
2018/03/18 | 955 | 2,590 | <issue_start>username_0: I have a stacked MultiRNNCell defined as below :
```
batch_size = 256
rnn_size = 512
keep_prob = 0.5
lstm_1 = tf.nn.rnn_cell.LSTMCell(rnn_size)
lstm_dropout_1 = tf.nn.rnn_cell.DropoutWrapper(lstm_1, output_keep_prob = keep_prob)
lstm_2 = tf.nn.rnn_cell.LSTMCell(rnn_size)
lstm_dropout_2 = tf.... |
2018/03/18 | 361 | 1,598 | <issue_start>username_0: I am currently learning spring data can anyone explain what the difference between them `@NamedQuery` vs `@NamedNativeQuery` and When to use them?
Can we use native SQL in `@NamedQuery`?<issue_comment>username_1: `@NamedNativeQuery` is for writing SQL query, while `@NamedQuery` is for writing H... |
2018/03/18 | 525 | 1,685 | <issue_start>username_0: I'm trying to do a roleReact bot. The stock emojis are working and I based some on the official document of `discord.js`, but when it comes to custom emoji reactions I keep getting the result
>
> client undefined
>
>
>
This is my code so far:
```
case "react":
// this works
message.reac... |
2018/03/18 | 533 | 1,636 | <issue_start>username_0: I have 2 data frames with uneven index:
[](https://i.stack.imgur.com/TLrdq.jpg)
[](https://i.stack.imgur.com/WcwuF.jpg)
I wanna combine these 2 data frames,... |
2018/03/18 | 2,584 | 8,818 | <issue_start>username_0: I can't figure out why my one item list "\_head->next" is not being set to null (nullptr). Could I be confusing my tail and head pointers? This is for a doubly linked list. Most other pointers work, but this error/bug throws a seg fault when walking through the list.
```
#pragma once
class dl... |
2018/03/18 | 699 | 2,010 | <issue_start>username_0: Suppose I have `L = [{'G'}, {'D'}, {'B','C'}]`.
I want to check if 'C' is in L.
I tried doing `{'C'} in L`, but it returns `False`.
How would I check if 'C' is in L?<issue_comment>username_1: You were matching a tuple with a string. What you have to do is -
1. Iterate the `list` of `set` ... |
2018/03/18 | 532 | 1,940 | <issue_start>username_0: I have this code :
```
class mydict():
def __init__(self, dict, **kwargv):
for key, item in dict.items():
print key, item
for key, item in kwargv.items():
print key, item
test_dic = {1:'I', 2:'love'}
dic = mydict(test_dic, 3='python')
```
If I put `mydict(test_dic, ... |
2018/03/18 | 490 | 1,613 | <issue_start>username_0: I have to take "-4, 2, -5, 0, 3" as input from the console in java and need to store in an array[]. Where array[0]=-4, array[1] = 2 and so on .
I am completely new to java need immediate help.<issue_comment>username_1: There is quite a bit to this, but assuming you have a way to read input, and... |
2018/03/18 | 807 | 2,417 | <issue_start>username_0: I have an object that looks like this:
```
{
"1": "Technology",
"2": "Startup",
"3": "IT",
}
```
and I need to convert it to an array of objects that would look like this:
```
[
{id: 1, name: "Technology"},
{id: 2, name: "Startup"},
{id: 3, name: "IT"}
]
```
What would be the ... |
2018/03/18 | 938 | 3,044 | <issue_start>username_0: ```
RadialGradient gradient1 = new RadialGradient(
0, // focusAngle
.1, // focusDistance
80, // centerX
45, // centerY
120, // radius
false, // proportional
CycleMethod.... |
2018/03/18 | 1,157 | 4,020 | <issue_start>username_0: When l try to use `git push`, an error reports:
>
> Fatal: fatal: unable to access '<https://github.com/xxx>': OpenSSL
> SSL\_connect: SSL\_ERROR\_SYSCALL in connection to github.com:443
>
>
>
My git version is 2.16.2 for windows
It worked well before this day, and reinstalling git see... |
2018/03/18 | 482 | 1,656 | <issue_start>username_0: I am making an API in which I need to check the token validity for a particular user and for that I am using DateTime function of php. I am saving a token and current time on login and I want token to be valid for 10 minutes, so when a user makes a request within first 10 minutes of its login I... |
2018/03/18 | 303 | 1,106 | <issue_start>username_0: I'm following this tutorial:
<https://medium.com/deep-learning-turkey/google-colab-free-gpu-tutorial-e113627b9f5d>
It shows content pulled via Google jupyter notebook into G Drive. The tutorial shows folders/files in the G Drive folders. Some of the files/folders I've pulled into G Drive show u... |
2018/03/18 | 740 | 2,362 | <issue_start>username_0: Given a list like this, where first column is the id and second is a string,
```
x = [ [1, ["cat","dog"]],
[2, ["dog", "mouse", "elephant"]],
[3, ["mouse", "giraffe"]] ]
```
I would like to know a way to efficiently group up all the distinct elements into another list.
My proble... |
2018/03/18 | 298 | 1,102 | <issue_start>username_0: ```
import numpy as np
def main():
try:
date, price, open = np.loadtxt('CARG.csv', delimiter=',',
unpack=True, dtype='str')
x = 0
for eachDate in date:
saveLine = eachDate + ',' + price[x] + '\n'
saveFi... |
2018/03/18 | 794 | 2,373 | <issue_start>username_0: I am working on a test docker-compose file to run a container with three mongod servers, which form a replica set (One is primary, one is secondary and one is arbiter).
My Dockerfile looks like :-
```
FROM mongo:3.6.2
MAINTAINER Shanty
RUN apt-get update && apt-get install -y netcat
COPY... |
2018/03/18 | 523 | 2,011 | <issue_start>username_0: I want to inverse the visibility of a view on a SurfaceView upon user click. A click makes the view visible on screen. The next click makes it invisible, and so on.
I already tried `view.setVisibility(Integer.reverse())` and `view.setVisibility(View.GONE ^ view.getVisibility())`, but none of... |
2018/03/18 | 510 | 1,561 | <issue_start>username_0: This code is not able to resolve `void K::func**(B&)**`.
```
struct K {
template void func(T &t);
};
struct B {
void ok();
};
// definition
template void K::func(T &t) { t->ok(); }
// getting: undefined reference to `void K::func**(B&)'
// nm says ' U void K::func**(B&)'
template <> vo... |
2018/03/18 | 888 | 3,705 | <issue_start>username_0: When I create Spring Boot Application it generates 2 classes:
```
@SpringBootApplication
public class App {
public static void main(String[] args) {
SpringApplication.run(App.class, args);
}
}
```
And the second on is test:
```
@RunWith(SpringRunner.class)
@SpringBootTest
p... |
2018/03/18 | 451 | 1,761 | <issue_start>username_0: Okay so let's assume, for simplicity's sake that my folder structure looks like this:
```
project
- index.html
- css
- style.css
- scss
- style.scss
- img
- image.jpg
```
I want to use my **image.jpg** as a background for a div. I am working from **style.s... |
2018/03/18 | 291 | 1,004 | <issue_start>username_0: ```
.
.
.
//etc
```
In My Activity,
```
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar_top);
TextView textView = (TextView) toolbar.findViewById(R.id.toolbar_title);
textView.setText("My Title");
setSupportActionBar(toolbar);
getSupportActionBar().setD... |
2018/03/18 | 470 | 1,632 | <issue_start>username_0: I was trying to implement a similar structure with an idea to have a common trait to work with different Input instances regardless of their InType.
```
trait AnyInput {
type InType
val obj : InType
}
abstract class Input[T](obj: T) extends AnyInput {
type InType = T
}
case class... |
2018/03/18 | 470 | 1,465 | <issue_start>username_0: For some reason I have a complex data in the **app.component.ts** file:
```
export class AppComponentimplements OnInit {
tests = {
'name': 'Bob',
'grade': '5th',
'score': [
['math', 'A', 'A+', 'A-'],
['english', 'B', 'B-', 'A'],
... |
2018/03/18 | 1,592 | 3,491 | <issue_start>username_0: I am very new to `pandas` and trying to get the row `index` for the any `value` higher than the `lprice`. Can someone give me a quick idea on what I am doing wrong?
Dataframe
```
StrikePrice
0 40.00
1 50.00
2 60.00
3 70.00
4 80.00
5 90.00
6 100.00
7 ... |
2018/03/18 | 1,300 | 2,981 | <issue_start>username_0: What is the purpose of empty return, step by step explanation is needed, when `printInorder(node.right)` is executed and node become null then where control will be transferred.
```
void printInorder(Node node)
{
if (node == null)
return;
pr... |
2018/03/18 | 1,435 | 5,065 | <issue_start>username_0: Looking to filter a pivot table to be within a date range. The date filter is at the top of the pivot, with the main table having 3 columns. I have a picture with actual examples but can't upload here.
If I enter a date range of 1st Feb. 2018 - 1st March 2018 the filter works perfectly.
If I e... |
2018/03/18 | 856 | 3,136 | <issue_start>username_0: (I want to automate a report download from Adwords. This report is not part of their API. So I thought of downloading it using browser automation.
I'm using Puppeteer for browser automation.
But the problem is my account is 2-factor authentication enabled (I can't disable is due to security po... |
2018/03/18 | 789 | 2,707 | <issue_start>username_0: My problem is i want to insert a value in a textbox but refer the element by their attribute value as you can see "text" but i am unable to insert a value in
```
HI
function z()
{
var age=document.getElementsByTagName("text").value;
if(age<=18)
{
alert("age is less Than and equal to ... |
2018/03/18 | 3,287 | 10,974 | <issue_start>username_0: I am developing a Flutter app, in which I need to show navigation to the user for a place. So, how can I open a map application from my Flutter app like we do using external intent in Android?
Or their is any flutter-plugin for it?<issue_comment>username_1: You can just use the [`url_launcher`... |
2018/03/18 | 1,420 | 4,593 | <issue_start>username_0: ```
//loping for objects
const users = [
{isPremium: false},
{isPremium: false},
{isPremium: false},
{isPremium: false},
{isPremium: false},
]
function setUsersToPremium(users) {
// users is an array of user objects.
// each user object has the property 'isPremium'
... |
2018/03/18 | 1,949 | 7,128 | <issue_start>username_0: I have been following a tutorial on how to build a full stack MEAN application and everything has been functioning fine up until this point (registration, login and authentication.)
I'm now trying to do a post request for the blog page and am receiving the following error:
```
```
Cannot PO... |
2018/03/18 | 1,470 | 5,764 | <issue_start>username_0: I have following:
```
it('invalid use', () => {
Matcher(1).case(1, () => {});
});
```
The `case` method is supposed to throw after some delay, how can I describe it for Mocha/Chai that's what I want - the test should pass (and must not pass when exception is not thrown)?
**Consider `case`... |
2018/03/18 | 180 | 709 | <issue_start>username_0: I have made my first commit in github last year and I want to commit another one. Should I replace that first commit or add a new commit. How to do it ?<issue_comment>username_1: Most people keep the first commit in GitHub. It's no big deal to change it, just a bit strange.
The idea is the sam... |
2018/03/18 | 480 | 1,774 | <issue_start>username_0: I was wondering how can I display the form errors under each field. Considering I have the log in form, if there is a problem with username, then the specific errors should be displayed under, otherwise if there is a problem with the password, the error should be displayed under the password fi... |
2018/03/18 | 515 | 2,308 | <issue_start>username_0: I've built a fairly complex graphical user interface for a data analysis pipeline that a neuroscience lab is using. I built it with Python in a Jupyter Notebook using `ipywidgets` and various interactive plotting libraries such as bokeh. It's basically just a GUI for an existing Python analysis... |
2018/03/18 | 533 | 1,736 | <issue_start>username_0: ```
public class Example1 {
public static void main(String[] args) {
System.out.println("h\tw");
System.out.println("h w");
System.out.println("hello\tworld");
System.out.println("hello world");
}
}
```
this gave me the output below
[output](https... |
2018/03/18 | 1,477 | 3,080 | <issue_start>username_0: I have a dataset in tibble in R like the one below:
```
# A tibble: 50,045 x 5
ref_key start_date end_date
1 123 2010-01-08 2010-01-13
2 123 2010-01-21 2010-01-23
3 123 2010-03-10 2010-04-14
```
I need to create another tibble that each row only store one date, like the one below:
... |
2018/03/18 | 1,556 | 3,707 | <issue_start>username_0: I have one error in gradle file for compile 'com.android.support:appcompat-v7:27.0.2'.
gradle version is 2.3.0
I searched a lot ,but could not solve this problem.
my error is:
>
> All com.android.support libraries must use the exact same version specification (mixing versions can lead to r... |
2018/03/18 | 2,378 | 9,602 | <issue_start>username_0: I've tried to create a class to connect to a mongoDB (and get a gridFS connection using (`gridfs-stream`). But with that I do get two problems:
1. I do get sometimes the mongo Error `server instance in invalid state connected`
2. It is impossible for me to mock this class out - using jestJS
S... |
2018/03/18 | 684 | 2,207 | <issue_start>username_0: How to delete duplicate data with the resulting data collection in the Excel program
**EXAMPLE :**
```
AAA 111
BBB 555
AAA 111
CCC 222
```
**TO**
```
AAA 222
BBB 555
CCC 222
```<issue_comment>username_1: **Excel 2007 and above**
Bring your data in column,... |
2018/03/18 | 814 | 2,591 | <issue_start>username_0: I was looking for ways to improve the performance of reading a big chunk of records without indexing(it's my understanding that it could cause issues with SAP support).
My query is simple it has to return all sales order that have invoices and all independent orders and invoices as there is n... |
2018/03/18 | 817 | 3,140 | <issue_start>username_0: I'm using coreos tectonic sandbox. My deployment.yaml file contains the container which should detect the docker daemon running on host via kubernetes.
The container uses docker daemon to identify docker events. For some reason docker daemon is not getting detected.
```
deployment.yaml
cont... |
2018/03/18 | 276 | 877 | <issue_start>username_0: I am looking for String which can have repetition of any alphabet preceding single alphabet (like abbb or cddd) from A to Z.
I am using `@"\b([a-zA-Z]{1})|([a-zA-Z]{1,})\b"`which is partially working. Not completely.I need to combine/merge these regex.
I would appreciate if anyone help me in t... |
2018/03/18 | 549 | 2,056 | <issue_start>username_0: I was doing practice on search algorithms for arrays.
I had come across with problem of finding missing and duplicate element by using XOR approach for a given array of elements containing integer from 1 to n.
[Find the missing and duplicate elements in an array in linear time and constant spa... |
2018/03/18 | 868 | 2,977 | <issue_start>username_0: I am running a spark job through oozie spark action. The spark job uses hivecontext to perform some requirement. The cluster is configured with kerberos. When I submit the job using spark-submit form console, it is running successfully. But when I run the job from oozie, ending up with the foll... |
2018/03/18 | 787 | 2,645 | <issue_start>username_0: I am using maven 3 and nexus for deploying our artifacts toa repository,
I saw that the non-unique option was deprecated in maven 3 so all SNAPSHOTS artifacts are being deployed with a timestamp and I am cool with that, the problem is that it looks like all artifacts are not under the version ... |
2018/03/18 | 216 | 705 | <issue_start>username_0: I'd like to pass arguments to a piped node script. However the first argument to `node` takes a file. How can I bypass this and maintain the pipe?
```
echo "console.log(process.argv)" | node xxyyxx
```
>
> Cannot find module .../xxyyxx
>
>
><issue_comment>username_1: For a pipe, you could... |
2018/03/18 | 2,479 | 5,534 | <issue_start>username_0: File\_a
```
1 MIR6859-1 2340 DDX11L1 3222
2 MIR6859-1 4860 WASH7P 7074
3 WASH7P 326 MIR1302-2 670
4 FAM138A 15 MIR1302-2 5730
8 LOC729737 7270 OR4F5 64205
9 LOC729737 3070 OR4F5 68405
10 LOC729737 88330 LOC100132287 94996
11 LOC100132287 86996 LOC729737 9... |
2018/03/18 | 124 | 466 | <issue_start>username_0: I want to use html onclik attribute inside tooltip/title. I allways got Uncaught SyntaxError even i use single or double quotes
Example:
```
'>
click me
```
Thanks in advance<issue_comment>username_1: ```
'>
```
Here is the error you forgot tu put the double quotes after onclick attri... |
2018/03/18 | 301 | 1,418 | <issue_start>username_0: Prior to java 8, I knew when to use Abstract classes and interfaces but after Java 8 introduced default and static methods can be provided in interface.
An interface and an abstract class are almost similar except that you can create constructor in the abstract class whereas you can't do this i... |