date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/02/25 | 3,747 | 11,759 | <issue_start>username_0: I have a String in the following format:
```
[{"HostName":"taskmanager1","Rack":"/default-rack","State":"RUNNING","NodeId":"taskmanager1:45454","NodeHTTPAddress":"taskmanager1:8042","LastHealthUpdate":1519568501615,"HealthReport":"","NodeManagerVersion":"2.8.3","NumContainers":0,"UsedMemoryMB"... |
2018/02/25 | 2,500 | 8,217 | <issue_start>username_0: How do you create circular clipping mask for images which works in Xamarin Cross-Platform, and how do you implement it within a ListView? I don't want to use plugins. I found some examples but they all target Android Apps only and most of them are written in Java, not C#.<issue_comment>username... |
2018/02/25 | 659 | 2,590 | <issue_start>username_0: For Integer and some other numeric types, instances representing values in the range -128 to 127 are re-used when calling valueOf or autoboxing a primitive value.
But what about Float and Double? The [javadoc for valueOf](https://docs.oracle.com/javase/9/docs/api/java/lang/Float.html#valueOf-f... |
2018/02/25 | 414 | 1,059 | <issue_start>username_0: How do you sort a multidimensonal array with usort version\_compare?
I want to order this array with version\_compare based on the version value
```
array(
array('id' => 1, 'version' => '1.3'),
array('id' => 2, 'version' => '1.3.1'),
array('id' => 3, 'version' => '1.3.2'),
arr... |
2018/02/25 | 854 | 2,972 | <issue_start>username_0: In my code, I have two tables 1.`cv_products` 2.`cv_category`.
`cv_produucts` fields are -> `id`,`title`,`body`,`image`,`category`,`slug`.
`cv_category` fields are -> `id`,`name`.
I want when I enter the details page it gives me an error that the `name` is undefined though I've joined the... |
2018/02/25 | 1,597 | 5,624 | <issue_start>username_0: I'm trying to integrate Swagger UI for the Rest API which is served by Play Framework 2.5.x
I did the following:
1. Included the following dependencies in my build.sbt
>
>
> ```
> "io.swagger" %% "swagger-play2" % "1.5.3"
> "org.webjars" %% "webjars-play" % "2.5.0-4"
> "org.webjars" ... |
2018/02/25 | 323 | 1,225 | <issue_start>username_0: I'm a beginner developer in java. Anyone knows a code how to extract some files from jar archive? Let's say I'm making a installer. I want to extract some files from the jar of my application.<issue_comment>username_1: The jar is just a zip file that contains all the .class files. Open it with ... |
2018/02/25 | 2,027 | 5,803 | <issue_start>username_0: While installing bcrypt I'm getting this error in my windows machine, I'm using
* node v8.9.4
* npm v5.6.0
* bcrypt v1.0.3
>
> C:\Users\user\Desktop\mysql\_node\_api\register\_login\register\_login>npm
> install bcrypt --save > bcrypt@1.0.3 install
> C:\Users\user\Desktop\mysql\_node\_api\... |
2018/02/25 | 630 | 2,393 | <issue_start>username_0: I'm working on a game that shows different layouts (hardness, mechanism, style etc). To display those different layouts I use User controls, which are sent to the front if a button is clicked. I use `milline.BringToFront();` to send them to front. Visual Studio gave me an error that "name" does... |
2018/02/25 | 531 | 1,851 | <issue_start>username_0: I am writing an application in which I have a `Rest-API` which is `getAll()` method and I take date parameter also in this. But when I hit a `GET` request in **POSTMAN**, I see date coming as `1519561301000` instead of '`2018-02-25 20:10:29`' . Actual date is there in `Mysql DB`.
Is it a know... |
2018/02/25 | 441 | 1,791 | <issue_start>username_0: I have two constructors :
```
protected WordStore() {
this.bigMap = new HashMap<>();
}
protected WordStore(String file) throws IOException {
this.bigMap = new HashMap<>();
String line = "";
try (BufferedReader bufferedReader = new BufferedReader(new FileReader(file));)
{
... |
2018/02/25 | 465 | 1,532 | <issue_start>username_0: I running this code :
```
$id = 1;
$email = '<EMAIL>';
$user = DB::table('users')->where([
['id', '=', $id],
['email', '=', $email]
])->toSql();
dd($user);
```
But query builder print is :
```
select * from `users` where (`id` = ? and `email` = ?)
```
Why not print is:
```
select * ... |
2018/02/25 | 955 | 3,072 | <issue_start>username_0: I have trouble figuring out how to get the following to work:
My parent template
```
[link 1](#)
[link 2](#)
```
and my component `comp` template looks like the following:
```
*
```
currently all my anchors goes to that single `li` tag (which is expected)
but I would like to be able ... |
2018/02/25 | 417 | 1,677 | <issue_start>username_0: The following javascript code is for a "ping-pong" game I was asked to make:
```
var final_number = document.getElementById("input").value;
var current_number = 0;
var interval = setInterval(document.getElementById("submit").onclick = function() {
document.getElementById('number').innerHT... |
2018/02/25 | 951 | 3,461 | <issue_start>username_0: I wish to get the children of the children of my `gameObject`. I'm not talking about recursion, I just have a `Whole`, under which have many `Segment`s, and every segment has a couple of `Tile`s in them like so:
[](https://i.s... |
2018/02/25 | 350 | 1,223 | <issue_start>username_0: **kotlin/jvm jdk8 not support code**
```
var buffer = StringBuffer();
var arr = arrayOf("1","2","3","4");
arr.forEach {buffer::append}
```
[error info](https://i.stack.imgur.com/SO6IO.png)
**java jdk8 supported code,**
```
String[] b = new String[]{"c", "b"};
Arrays.stream(b).forEach(buff... |
2018/02/25 | 1,019 | 2,831 | <issue_start>username_0: I am trying to retrieve switch data via the Meraki API. Instructions and samples for the API's are here:
```
# https://dashboard.meraki.com/api_docs#return-a-switch-port
```
Sample Request
```
$ curl -L \
-H 'X-Cisco-Meraki-API-Key: ' \
-H 'Content-Type: application/json' \
-X GET 'https://... |
2018/02/25 | 822 | 2,648 | <issue_start>username_0: I am trying to make a small program to interact with my Lifx bulbs.
I have a class Bulb, where i have made a runnable:
```
public Runnable runnableToggle = new Runnable() {
@Override
public void run() {
try {
String url = "https://api.lifx.com/v1/lights/" + Bulb.thi... |
2018/02/25 | 1,276 | 3,655 | <issue_start>username_0: when I try to send this query in MySQL, it does not work.
**This is the query:**
```sql
INSERT INTO odds_table
(ID,
DataOra,
League,
TeamHome,
TeamAway,
SpreadNowHome,
SpreadNowAway,
OddsNowHome,
OddsNowAway,
SpreadOpenHome,
SpreadOpenAway,
OddsOpenHome,
OddsOpenAway,
TotalLineN... |
2018/02/25 | 793 | 2,511 | <issue_start>username_0: I have the following code which allows me to press a button and play and audio sample. It works in that respect, however, the notes overlap when I press a different button, but I would like the pressing of a button to stop the playing of the previous note(s) and play only the sound associated w... |
2018/02/25 | 905 | 3,044 | <issue_start>username_0: I have the following Component:
```
const StyledH3 = styled.h3`
direction: ${(props) => (props.isRTL ? 'rtl' : 'ltr')};
`;
const H3 = ({ children }) => (
{children}
);
export default H3;
```
And I want to extend it's styles, for example in a different file:
```
import { H3 } from 'co... |
2018/02/25 | 1,334 | 4,728 | <issue_start>username_0: I have two classes (or models rather) having some common properties. For instance:
```
public class Model1
{
public int Common1 { get; set; }
public int Common2 { get; set; }
public int Prop11 { get; set; }
public int Prop12 { get; set; }
}
public class Model2
{
public int... |
2018/02/25 | 676 | 2,445 | <issue_start>username_0: I followed this tutorial <https://www.tensorflow.org/tutorials/layers> and trained a model for recognizing hand written numbers from the MNIST set.
The following code works as expected and prints for each image in the set the probability and class
```
mnist = tf.contrib.learn.datasets.load_da... |
2018/02/25 | 466 | 1,557 | <issue_start>username_0: The package name of my app is very long:
```
app.running.com.voice.and.service.song.backup.audio.run.inthe.background
```
This is a B2B project and I can't reduce their package name now as it is already fixed.
>
>
> ```
> Error:failed writing to 'D:\Google_Play\Android Studio\IndWork\Soun... |
2018/02/25 | 979 | 3,120 | <issue_start>username_0: I am trying to scrape a JS enabled webpage, but I am not able to access the HTML code that is seen in my web browser. I am successfully logging into and navigating to the relevant url. However, getting the inner html is not working.
```
from selenium import webdriver
browser = webdriver.Chro... |
2018/02/25 | 448 | 1,612 | <issue_start>username_0: I am following a Flask tutorial where he is using " | safe " in jinja2 template. Why do we need this pipe symbol and safe?
without using safe it prints all html tags.
By using `| safe`, it shows proper formatting. Why does it work this way?
Below is the jinja2 code:
```
{% extends "layout.h... |
2018/02/25 | 1,532 | 3,892 | <issue_start>username_0: I'm trying to create a ***circle with CSS*** that has a ***gradient border*** but also a ***transparent inner*** so that it looks like this:
[](https://i.stack.imgur.com/wN1Mg.png)
There are solutions to create a gradient bor... |
2018/02/25 | 1,271 | 3,328 | <issue_start>username_0: I need to create a script that deletes instance groups from Google Cloud Platform.
This group can be in any zone.
When I run command:
```
gcloud compute instance-groups managed delete [instance-group-name]
```
(without zone or region)
I get prompted to choose a region or a zone.
Any help w... |
2018/02/25 | 499 | 1,518 | <issue_start>username_0: I have an array:
`var array = ['1,2,3']`
How do i remove the: ' from that array so i get the output `[1,2,3]`
I have tried doing the .replace replace("\''", "") but still get the same output.<issue_comment>username_1: You can use `map` on array and then `split` on value.
```js
var array = ... |
2018/02/25 | 545 | 1,893 | <issue_start>username_0: I am trying to connect to Keyckloak to get the 'access\_token' with angular. But I have this error :
Failed to load <http://localhost:8080/auth/realms/demo/protocol/openid-connect/token>: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<http://localhost:4... |
2018/02/25 | 621 | 1,694 | <issue_start>username_0: I just start learning python for few weeks and now have a problem with datetimes
I generate a list like this
```
datetime.date(1991, 11, 1),
datetime.date(1991, 12, 1),
datetime.date(1992, 1, 1),
...
datetime.date(2017, 10, 1),
datetime.date(2017, 11, 1),
datetime.date(2017, 12, 1)]
```
wh... |
2018/02/25 | 332 | 1,153 | <issue_start>username_0: I'm working with [svgpath](https://www.npmjs.com/package/svgpath) to manipulate svgs and,I need to change the coordonate system so that y becomes x and x becomes y. My question is there any way to do it. I tried to rotate around points 0 0 and translating by the figure by its height.<issue_comm... |
2018/02/25 | 1,376 | 3,775 | <issue_start>username_0: My git log looks like this:
```
commit b265eb43abd7704ed2560cca7c635dbd47b677b0
Date: Sun Feb 25 10:20:58 2018 -0500
added C3
commit 536d071bf99059ff8b519ae96ce6e97d92fbc7d7
Date: Sat Feb 24 20:50:15 2018 -0500
added B2
commit <PASSWORD>
Date: Sat Feb 24 11:07:58 2018 -0500
... |
2018/02/25 | 1,037 | 4,138 | <issue_start>username_0: ```
static void Main(string[] args)
{
int lengthCountdown;
print tell = new print();
timer counter = new timer();
Error invalidInput = new Error();
tell.tell("Hi i am John");
tell.tell("How long should the countdown last?");
try
{
lengthCountdown = int.Pa... |
2018/02/25 | 914 | 2,498 | <issue_start>username_0: ```
#include
using namespace std;
int main()
{
long int number;
int digits;
cout << "Enter Number: ";
cin >> number;
int counter[10] = { 0,0,0,0,0,0,0,0,0,0 };
while (number != 0) {
digits = number % 10;
counter[digits] = counter[digits] + 1;
number = number / 10;
}
for (int i = 0;... |
2018/02/25 | 738 | 2,075 | <issue_start>username_0: I am trying convert `list` data type into `float`. I have tried following code but its not working, `listf` still showing data type as list
```
for x in range(0,5):
timeVar.append((matchedLine4[x]).replace(stringToMatch4,'').rstrip())
listf=map(float,timeVar)
#list1 = [float(i) ... |
2018/02/25 | 742 | 2,974 | <issue_start>username_0: I want to know how can I send the context of an activity from `ClassA.java` to `MainAddingItems.java`.
I can pass the `MainActivity.class` as the argument but I am not able to pass the context.
Here is some of the code of `ClassA` calling the constructor of `MainAddingItems`
`new MainAddingI... |
2018/02/25 | 497 | 1,919 | <issue_start>username_0: My goal is to create an ArrayList that can be accessed from any activity in the application, so I created a class with static ArrayList<>:
```
public class CategoryArrayList {
public static String id;
public static List category\_spinner\_user = new ArrayList<>();
public static void a... |
2018/02/25 | 641 | 1,727 | <issue_start>username_0: I receive from a webpage the following pipe separated parameters
```
@RecepientID varchar(20)='1|2'
@LocationID varchar(20)='7|8|9|10'
@BranchID varchar(20)='1|5|9'
```
I need to add into columns all posible combinations as follows
```
RecipientID LocationID BranchID
... |
2018/02/25 | 797 | 2,583 | <issue_start>username_0: C++ has a handy algorithm std::adjacent\_difference which computes the differences between the next/previous of elements of the range.
The Racket implementation is straightforward:
```
(define (adjacent-difference f lst)
(if(null? (cdr lst))
'()
(cons (f (cadr lst)(car lst))
... |
2018/02/25 | 862 | 2,230 | <issue_start>username_0: Have these 2 Javascript arrays
```
// The player which has a "winning" combination (1, 5, 9)
player1Cells = [ 5, 9, 1, 6]
// Player which doesnt have a "winning" combination
player2Cells = [ 2, 1, 4, 8]
```
A player has a "winning" combination if 3 of their numbers match one of the arrays i... |
2018/02/25 | 2,146 | 7,997 | <issue_start>username_0: ```
DoSomething(Car car);
DoSomething(Bike bike);
public class Car : Vehicle {}
public class Bike : Vehicle {}
public abstract class Vehicle {}
void run(Vehicle vehicle) {
DoSomething(vehicle);
}
```
This feels like a simple problem but I'm having issues. DoSomething(Vehicle vehicle) do... |
2018/02/25 | 1,174 | 3,724 | <issue_start>username_0: I'm very new to JavaScript...
I've gotten both functions working separately
Here is a js fiddle where I've gotten the table cell to display its background color:
<http://jsfiddle.net/chulps/DCaQb/1321/>
```js
var colorX = '';
$('td').html(function() {
var x = $(this).css('backgroundColo... |
2018/02/25 | 713 | 2,753 | <issue_start>username_0: I have a scenario that i have one activity and 4 fragment , from one of the fragment i am passing the data using interface to the main activity , I am receiving the value or say object , now what i need to do , i have to pass the same object to all other fragment . but i don't wanna to use bund... |
2018/02/25 | 924 | 3,433 | <issue_start>username_0: I have a quite big `React.Component` with more than ten `bind(this)` calls in its constructor.
I don't think `.bind(this)` in a constructor gives any help to understand my code especially when reading the code inside of render().
So, I came up with the following idea, however, do not find how... |
2018/02/25 | 960 | 3,328 | <issue_start>username_0: ```
for(i=1;i=-1;i++)
if(i<5) break;
printf("%d\n",i);
```
i was asked to write the output of the following code, i could not understand as the second argument should have been a condition, but here it was an assignment,
```
output: -1
```
i cant understand how it is possible, so i tried t... |
2018/02/25 | 1,193 | 3,605 | <issue_start>username_0: I have the following data which shows the exact time and date when someone turns on and off their light in their room stored into 2 array lists:
1. 2015-11-09T10:04:22 1
2. 2015-11-09T11:45:14 0
3. 2015-11-09T11:45:32 1
4. 2015-11-09T15:13:56 0
5. 2015-11-10T10:17:17 1
6. 2015-11-10T11:20:04 ... |
2018/02/25 | 367 | 1,295 | <issue_start>username_0: I have /etc/init.d/stream proces with start/stop/restart options.
It's run ffmpeg with daemon options taken from /etc/default/stream DAEMON\_OPTIONS.
Start at background (-b) crate pid (/var/run/stream/stream.pid) etc.
How could I add timeout 60 seconds to be sure that stream will be forcebly ... |
2018/02/25 | 3,115 | 9,517 | <issue_start>username_0: Suppose that I have a linked list, the next function deletes struct node from the linked list
```
struct list **lpp;
for (lpp = &list *lpp != NULL; lpp = &(*lpp)->next)
{
if ((*lpp)->item == i)
{
*lpp = (*lpp)->next;
break;
}
}
```
please need explain about:
>
>... |
2018/02/25 | 2,525 | 7,810 | <issue_start>username_0: When running this code with `python myscript.py` from Windows console `cmd.exe` (i.e. *outside* of Sublime Text), it works:
```
# coding: utf8
import json
d = json.loads("""{"mykey": {"readme": "Café"}}""")
print d['mykey']['readme']
```
>
> Café
>
>
>
When running it inside Sublime Tex... |
2018/02/25 | 196 | 554 | <issue_start>username_0: How can I make this command run on files only?
```
du -h * | sort -h -r | head -n 5
```
Now I am using \* which runs on all files and directories but I want to change that.<issue_comment>username_1: you need to use the `find` utility to pinpoint only the files:
```
find . -type f -exec du -... |
2018/02/25 | 633 | 2,245 | <issue_start>username_0: Running the following text search directly on MongoDB results in no issues:
```
db.getCollection('schools').find({
$text:
{
$search: 'some query string',
$caseSensitive: false,
$diacriticSensitive: true
}
}, {score: {$meta: "textScore"}}).sort({score:{$meta:"textSco... |
2018/02/25 | 500 | 1,805 | <issue_start>username_0: I'm trying to establish a connection to my mySQL database through a jdbc connection. I'm using a localhost connection at port 3006.
```
try{
Connection myConn = DriverManager.getConnection("JDBC:mysql://localhost:3306/cupcakes", "kristoffer", "******");
Statement myStmt = myConn.createS... |
2018/02/25 | 562 | 1,989 | <issue_start>username_0: ```
public static void main(String[] args){
System.out.println(digitCount(2, 2));
System.out.println(digitCount(22, 2));
System.out.println(digitCount(222, 2));
System.out.println(digitCount(232, 2));
System.out.println(digitCount(278, 2));
System.out.println(digitCount(... |
2018/02/25 | 562 | 1,785 | <issue_start>username_0: I tried to write a program that can help me find trigonometric values of a given angle. Below is the program,
```
#include
#include
using namespace std;
void convert(char type);
int main()
{
char ch;
cout<<"Enter what angle value u want to calculate: 'c' for cos, 's' for sine and 't' ... |
2018/02/25 | 154 | 561 | <issue_start>username_0: **Problem**
I am expecting to showing two columns. But all the four fields are coming in 1 column.
```html
Update Profile
First Name
Last Name
City
State
```<issue_comment>username_1: This should work.
Adding a row div just before the two form fields you are expecting in the... |
2018/02/25 | 852 | 2,858 | <issue_start>username_0: File contains some string, like:
>
> abc 4 2
>
>
> def 1 1 1
>
>
> Gh 0
>
>
>
Have some LINQ function,
details of this function are not so important
```
IEnumerable> F() {
return File.ReadLines("input.txt")
.Select(a => a.Split(' ').Skip(1).Select(int.Parse).ToList())
.Where(a =>... |
2018/02/25 | 443 | 1,522 | <issue_start>username_0: How can I write and run SAS code from **linux** command line (eg, the terminal, from which all other programs can be executed)?
Eg, use a text editor to create a file like 'file.sas' then run in the command line
'sas file.sas'
Ie, can I run without using the sas command line and user interfa... |
2018/02/25 | 705 | 2,559 | <issue_start>username_0: I would like to put all these fancybox calls in a loop
```
var colors = [[
{src : 'http://example.net/red.jpg'},
{src : 'http://example.net/yellow.jpg'},
], [
{src : 'http://example.net/green.jpg',},
{src : 'http://example.net/black.jpg',},
]
];
... |
2018/02/25 | 435 | 1,639 | <issue_start>username_0: So I am trying to add a class to multiple divs of the same name, for some reason this code runs in the console but not when the page loads, any particular reason why?
Code below:
```
var reply = document.querySelector('#reply');
for(i = 0; i < reply.length; i++) {
reply[i].classList.add('da... |
2018/02/25 | 1,862 | 4,609 | <issue_start>username_0: I created a function called `getExpressionLevel` and the question asks me to use this function to replace the numbers with the statements below. So what do I need to use to achieve this?
Function for getExpressionLevel;
```
function(a) {
if (a<5) {
cat ("none")
}
if (a>... |
2018/02/25 | 302 | 1,107 | <issue_start>username_0: I have written a very simple index.html file where I have included scripts and also styles
```
Image Gallery
```
searchComponent.js:
```
function Search() {
}
Search.prototype.fnInitialiseSearchComponent = function() {
var header = document.createElement("div");
header.class ... |
2018/02/25 | 1,555 | 4,877 | <issue_start>username_0: I am facing an issue with simplexml\_load\_string function, this function was working before but today it stopped working.
Here is a sample of input xml :-
```
$response = 'xml version="1.0" encoding="UTF-8"?false111276L3720David Beckham Instinct Gift Set 30ml EDT + 150ml Shower Gel18.722016-... |
2018/02/25 | 433 | 1,424 | <issue_start>username_0: I have Selenium code running, if the test fail i want to see the entire process from start to finish (not using a screenshot), something know how can record the screen while selenium running.
```
from selenium import webdriver
driver = webdriver.Chrome()
# If test is fail i want to save vide... |
2018/02/25 | 761 | 2,277 | <issue_start>username_0: I have a proprietary bayer RAW image which I need to demosaic on Android to display the image. I am reading the file header byte by byte to retrieve the resolution info (imageWidth/imageHeight). After the header there is the pixel data from byte 2000 and following.
How can I demosaic this bayer... |
2018/02/25 | 673 | 1,519 | <issue_start>username_0: I would like to randomly select a number from two tables in excel, however when I use the RAND() OR RANDBETWEEN() function it does not work . The tables are as follows.
**Table One:**
**Year Cost**
1 £700,000.00
2 £717,500.00
3 £735,437.50
4 £753,823.44
5 £772,669.02
6 £791,985.75
... |
2018/02/25 | 426 | 1,376 | <issue_start>username_0: I have a scene and one object, I want to write a script which will create multiples that object with different `transform.position` The object is defined in the folder `_prefabs`.
This is what I have so far, but it isn't working.
```
void (int count)
{
while(count--)
{
var x ... |
2018/02/25 | 795 | 2,303 | <issue_start>username_0: If IF-statement in Verilog has invalid value in condition, only else branch is evaluated. (In simulation.)
For example below in module SimpleIfStatement2b if a = 1'bx: b=0'b1
I was searching in Vegilog-2005 standard for this behavior and and can not find it.
Is this behavior a part of standa... |
2018/02/25 | 845 | 2,575 | <issue_start>username_0: I've got these two lines in my crontab file:
```
0 * * * * /usr/bin/php /var/www/html/worker/confirmBets.php >> /var/www/html/worker/out.put
30 23 * * * mv /var/www/html/worker/out.put /var/www/html/worker/out.put-"$(date +"\%y-\%m-\%d")" >/dev/null 2>&1
```
While the second line works and r... |
2018/02/25 | 501 | 1,656 | <issue_start>username_0: While taking a screenshot from UI Automation Viewer, getting the error--
>
> Error obtaining UI hierarchy Reason: Unexpected error while obtaining
> UI hierarchy Details: java.lang.reflect.InvocationTargetException
>
>
>
Please note that Appium server is stopped (Application closed)<issu... |
2018/02/25 | 690 | 2,415 | <issue_start>username_0: I have a User model which uses Devise for authentication. My User model has additional attributes like city etc.
On my registration page i only require email and password on user creation. Then i redirect the user to the User edit page to fill up the additional fields.
Validation looks like t... |
2018/02/25 | 798 | 2,648 | <issue_start>username_0: I'm doing some manipulation on a CSV file using Python and the csv module. I take a CSV file, do some operations, and output an XML file. Very simplified, but the input data looks similar to this:
```
name,group
joe,staff
jane,student
bill,staff
barry,support
jack,student
```
I have a list a... |
2018/02/25 | 849 | 2,669 | <issue_start>username_0: I have a "," separated String array like this
```
a b c d,
f b h j,
l p o i,
```
I would like this to be converted to a Hashmap like
`HashMap>` such that second element in list (delimited by space becomes key and the 3rd element becomes value)
So,
This should become
```
b -> c,h
p -> o
```... |
2018/02/25 | 461 | 1,567 | <issue_start>username_0: 2 problems, it outputs `1 2 3 4 3 5`, instead of `1 2 3 4 5`, which I'm not sure why followed by success but does not print out the data from the SQL table
```
Statement st = null;
ResultSet rs = null;
try {
System.out.println("1");
Connection con = DriverManager.getConnection(url, use... |
2018/02/25 | 1,754 | 6,401 | <issue_start>username_0: I'm creating a simple container system, in which my objects (all children of a class called `GeneralWidget`) are grouped in some containers, which are in another set of containers, and so on until all is in one Global container.
I have a custom class, called `GeneralContainer`, in which I had t... |
2018/02/25 | 705 | 2,412 | <issue_start>username_0: I am trying to write a method that takes in a Fahrenheit temperature and returns the equivalent Celsius temperature. To do this, I have been tasked with writing a loop in the main that makes calls to a method and prints the conversions for Fahrenheit values: 0, 5, 10, 15, …, 100.
Here is what ... |
2018/02/25 | 332 | 1,250 | <issue_start>username_0: I am quite new to the world of Integration and IBM Integration Bus Toolkit. I am doing a small exercise with IBM Integration Bus Toolkit, whereby my small application picks up an .txt file in a specified directory and moving it into another one (I am using **Message Flow** to do it). I can even... |
2018/02/25 | 495 | 1,793 | <issue_start>username_0: I have installed nodemon by: sudo npm install -g nodemon. With MacOS Terminal, i can run nodemon command.
But in Integrated Terminal of Visual Studio Code, I can't run nodemon and I don't know why.
Maybe two terminals don't sync ?
Help me, please.<issue_comment>username_1: Shutdown VS Code and ... |
2018/02/25 | 915 | 3,185 | <issue_start>username_0: Good day guys in my application I want to change the normal `http://1192.168.127.12:8000/` that laravel uses to serve sites when one runs `php artisan serve` to `example.com` and this should have sub domains like `app1.example.com` and `app2.example.com`.
In the main time I have tried to creat... |
2018/02/25 | 789 | 3,003 | <issue_start>username_0: trying to find every match in a string and process it with a custom function and replace it in the string. When I set text = to the new string though, it never changes, and in the end remains the unchanged.
```
function submit () {
var searchTerm = document.querySelector('#search-term').v... |
2018/02/25 | 1,933 | 5,940 | <issue_start>username_0: I am trying to following this react router redux so I can redirect using the push('/') in my components or actions.
Tutorial: <https://github.com/ReactTraining/react-router/tree/master/packages/react-router-redux>
I am not sure what I missing but I am getting an error.
The error I am getting... |
2018/02/25 | 540 | 1,713 | <issue_start>username_0: I want to create a random diagonal matrix with size n such that each element in the diagonal entries has 50% chance of being -1 and 50% chance of being 1. Is there any advice for this?
```
import numpy as np
diagonal_entries = np.random.randint(low = -1, high = 1, size = n)
D = np.diag(diagona... |
2018/02/25 | 537 | 1,674 | <issue_start>username_0: Is there a way to parallelize the following negamax algorithm?
```
01 function negamax(node, depth, color)
02 if depth = 0 or node is a terminal node
03 return color * the heuristic value of node
04 bestValue := −∞
05 foreach child of node
06 v := −negamax(child, de... |
2018/02/25 | 569 | 1,798 | <issue_start>username_0: If I want to add active class to `routes` I'll use:
```
class="{{ Route::currentRouteNamed('products.index') ? 'active' : '' }}"
```
If I want use it in static links I'll use:
```
class="{{ Request::is('/blog') ? 'active' : ''}}"
```
But what If I want to use it on dynamic url's? like add... |
2018/02/25 | 188 | 637 | <issue_start>username_0: I would like to hide this:
<https://i.stack.imgur.com/3rrad.jpg>
What should I add in custom CSS?<issue_comment>username_1: `display: none;`
That will stop it from being shown
Upvotes: 0 <issue_comment>username_2: In your css file:
```
#banner-694641362 {
display: none;
}
```
*Tip:* You... |
2018/02/25 | 605 | 2,324 | <issue_start>username_0: I've read the TRAMP manual and dozens of forums across the web but I couldn't find an answer to this question. I am trying to set up a link in org-mode that transfers a file from a remote server to my local machine (or vice-versa).
According to the manual I have to write something like
`/scp:us... |
2018/02/25 | 697 | 2,326 | <issue_start>username_0: I follow mybatis official website to build my project step by step, but it always can not work well, so I hope you could give me a fully guide from beginning to the end, many thanks.<issue_comment>username_1: Step 1. Build a new spring boot project named booking.
-------------------------------... |
2018/02/25 | 909 | 2,981 | <issue_start>username_0: i am trying to use electrum rpc , it is giving me authentication error. i have tried user pass via Basic Authentication on Linux bash and via php but non of them works.
My php code was working fine before plectrum vulnerability upgrade. also i have tried curl on bash , but i get same error
``... |
2018/02/25 | 697 | 2,298 | <issue_start>username_0: I want to show a confirmation box in javascript when an user clicks on
```
XYZ
```
I have already tried `XYZ`
But it does not give the desired result.<issue_comment>username_1: Step 1. Build a new spring boot project named booking.
------------------------------------------------------
Thi... |
2018/02/25 | 937 | 3,143 | <issue_start>username_0: How to evaluate variables and encrypt data before sending in jmeter.
Here is my post data
```
{"client_id":"${VisitorID}","channel":"${Channel}","session":{"id":"${CurrentSessionID}","is_first_time_user":false,"page":{"name":"http://techgiant.in/application/clients.php","time_spend":12.893},"l... |
2018/02/25 | 576 | 2,382 | <issue_start>username_0: I have an app with two activties. One is `MainActivity`, where i call the `Intent` to the `SecondActivity`. Then, on the second sreen I create an Object, that I would like to return to `MainActivity`. I create an `Intent` from `SecondActivity` to `MainActivity` and put this object there. The qu... |
2018/02/25 | 517 | 1,925 | <issue_start>username_0: I have an implementation with the following content:
```
The theme is light
The theme is dark
```
I need a pure-css solution to show either the first of the second `div` based on the `class` of `body` ('theme-light' or 'theme-dark').
I don't have direct access to the `body` element, and ... |
2018/02/25 | 516 | 1,588 | <issue_start>username_0: I've tried to search around for some answers, but still haven't found any.
Basically what I'm trying to do is center my green box within my blue box.
The blue box is 100%, the green is 80%, and I figured I'd just give my green box a margin-left of 10%, but for some reason it doesn't seem to w... |
2018/02/25 | 771 | 2,240 | <issue_start>username_0: I have a list of numbers and I would like to remove every numbers that are different that the number I want to keep for eg that's the list:
```
01 54 88 <== remove
09 52 55 <== remove
08 55 67
00 66 22 <== remove
04 44 11 <== remove
04 52 74 <== remove
02 98 65 <== remove
05 55 33
```
... |
2018/02/25 | 688 | 2,137 | <issue_start>username_0: I am facing an error when I tried to run ROS commands from qtquick appliction using system function in c++. Where as when i run some other simple cpp file consisting
```
system("roscore")
```
it did work .
But when i ran same function in qt app,
I got the following error
```
sh: 1: rosco... |
2018/02/25 | 794 | 2,595 | <issue_start>username_0: I am facing below exception when trying to enter email in edit box of instagram website. Please help. Same issue when trying to locate element using "name","id" attribute.
>
> Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to locate element: //input[@name='email... |
2018/02/25 | 603 | 1,890 | <issue_start>username_0: I have been studying XSS recently and I found a case.the html code is like this
```
```
so I wonder if I can input something like `alert(1)` to make the onblur handler trigger the javascript..**is it possible?**<issue_comment>username_1: Try this:
```
Public Sub Keep55Rows()
Dim wb As Work... |
2018/02/25 | 1,056 | 3,272 | <issue_start>username_0: We are trying to use image mapping on a form input element while combining a mouse over (hover) on the image map.
We have a Javascript function to change the background and it works fine. And when we use an onclick function to replace the background image, this works fine too.
But as soon as ... |
2018/02/25 | 1,026 | 3,012 | <issue_start>username_0: Please ignore the random image that doesn't exist. My question is why is the blue "credits div" element on the same line as the "h2" elements. Usually when I add a new div, it goes straight to the bottom of the page. I have checked a bunch of times and the "credits div" is a sibling of the "bot... |
2018/02/25 | 1,145 | 3,352 | <issue_start>username_0: I have used the code [from this thread](https://stackoverflow.com/questions/38737209/change-my-custom-logo-link-wordpress), trying to change **the link of the logo** from my storefront theme:
```
add_filter( 'get_custom_logo', 'wecodeart_com' );
function wecodeart_com() {
$custom_logo_id = ge... |