date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/13 | 1,102 | 3,958 | <issue_start>username_0: I can generate report when I run the same job via command line simply by following these steps:
```
% sudo su jenkins
% export ANSIBLE_CALLBACK_PLUGINS="/usr/lib/python2.7/site-packages/ara/plugins/callbacks"
% /bin/ansible-playbook -v -i /etc/ansible/my-inventory ./test-job.yaml`
```
Howeve... |
2018/03/13 | 1,160 | 1,679 | <issue_start>username_0: I would like to calculate the slopes of all the coordinates (x1, y1) and (x2, y2) in all its possible combinations without repeating any. Any way to do it automatically?
```
#parameters
x1 = 10.18182
x2 = 13.14286
y1= (0.30097,0.31036,0.3911,0.34255,0.198374,0.398574,0.377364,0.2428,0.319312,0... |
2018/03/13 | 1,089 | 3,170 | <issue_start>username_0: I am trying to replicate a trajectory plot of some longitudinal data with highlighting of random subject trajectories by adjusting the alpha value. I am 95% of the way there except I can't seem to get complete transparency of the line plots when alpha = 0 (it still appears grey). Any ideas? - t... |
2018/03/13 | 1,051 | 3,136 | <issue_start>username_0: I want to build a multiplication table without the use of console.log() in the function. I am currently experiencing difficulty splitting the values. The whole function must be in pure JS. Not intended for use on the DOM. I want the output printed on the terminal.
```
function multiplicationTa... |
2018/03/13 | 1,121 | 3,203 | <issue_start>username_0: I've been trying to figure this our for days, but I simply cannot seem to get it to work.
Let's say I have an XML file named `test.xml` like this:
```
A
AAA
B
BBB
C
CCC
```
From PHP, I use `SimpleXMLElement` to find the node with text `BBB`.
```
php
$xmlStr = file_get_contents('t... |
2018/03/13 | 1,098 | 3,209 | <issue_start>username_0: I have some trouble **retrieving the value assigned to my DIVs**. The DIVs contains answers to a survey. (I can't use other inputs such as select, radio button)
Below is the form:
```
YES
NO
```
Below is the function to retrieve the answers:
```
function submit_answers(e) {
OPTION1:... |
2018/03/13 | 682 | 2,488 | <issue_start>username_0: I'm a newbie in web development. In fact I knew nothing about it one week ago. Now I have a project on it assigned by senior colleagues.
The data is obtained using python, and the bridge from python to javascript is Flask, in `main.py`. In reality the `data` is much longer and returned by other... |
2018/03/13 | 3,069 | 10,437 | <issue_start>username_0: I am working on two large data sets, and my question is as follows.
Suppose I have two lists:
`list1 = [A,B,C,D]`
`list2 = [B,D,A,G]`
How can I efficiently find the matching index, using Python, other than O(n2) searching? The result should look like:
`matching_index(list1,list2) -> [(0,2)... |
2018/03/13 | 711 | 2,514 | <issue_start>username_0: This is working as well. But problem is when i didnt search anything there is no results are in there. i mean `projects?startdate=&enddate=&search=` there is no results are in there. I just dont get it. why
```
$search = $request->get('search');
$startdate = $request->input('startdate');
$end... |
2018/03/13 | 1,856 | 7,740 | <issue_start>username_0: I'm puzzled by the reason behind how the relationship between some DOM element's `property` and its corresponding `attributes` works.
Below is a graph from the book `jquery in action 2015 Bear Bibeault`, showing the relationship between `property` and `attribute` of DOM element.
[![enter im... |
2018/03/13 | 796 | 2,929 | <issue_start>username_0: I'm using Jest to run Selenium tests. I would like the login tests to happen before the rest of the webapp functionality tests. I'm able to run the files in sequence using `jest -i` but I can't find a way to control the order that the files get run in. I tried changing the filenames hoping it i... |
2018/03/13 | 1,530 | 6,031 | <issue_start>username_0: I want to step through a python-spark code while still using yarn. The way I current do it is to start pyspark shell, copy-paste and then execute the code line by line. I wonder whether there is a better way.
`pdb.set_trace()` would be a much more efficient option if it works. I tried it with... |
2018/03/13 | 687 | 2,377 | <issue_start>username_0: We are using Visual Studio Online and TFVC [not Git] for source control, When we commit our code we always check in the work item id or Bug number as part of checkin comment like following,
```
#1234 Fixed console error.
```
Is there a way we can automatically link these changesets to workit... |
2018/03/13 | 1,275 | 5,281 | <issue_start>username_0: I am trying to implement a database query with retry strategy on certain database exceptions. The code for retry strategy is not very relevant, so I did not include it. As you can see in the code below - I have written a retryCallable which takes the retry strategy and the Callable in `populate... |
2018/03/13 | 1,140 | 4,528 | <issue_start>username_0: How to wrap this example:
1. As business unit head
2. As partnership in a business and with number
4 of partnership venture
3. As per corporate sales
4. As business unit head
5. As partnership in a business and with number
10 of partnership venture
6. As per corporate sales
Expected output ... |
2018/03/13 | 799 | 2,690 | <issue_start>username_0: I customised the base path for my site like this:
```
Router::scope('/', function (RouteBuilder $routes) {
//$routes->connect('/', ['controller' => 'Pages', 'action' => 'display', 'home']);
//My custom base path
$routes->connect('/', ['controller' => 'Posts', 'action' => 'index', ... |
2018/03/13 | 485 | 1,535 | <issue_start>username_0: I want to make an html page contains multiple rectangle /boxes (with text) in hierarchy format. I tried to search a sample from the net but not successful. I I'm using visual studio 2012. by the way, I'm newbie in html. thank you in advance. below is a sample format.
[Sample](https://i.stack.... |
2018/03/13 | 1,014 | 3,858 | <issue_start>username_0: I am completely new to programming, and I am trying to write a very simple program in Java. I want the user to be given a prompt, be given two options for what to do, and then select one of the two choices by typing a specific word, which will then print out a specified message.
Code below:
... |
2018/03/13 | 336 | 1,323 | <issue_start>username_0: How can we view or get a diff file for an unpushed commit **by another person** (not by me) with the sha/commit ID. I see many answers for the commits made by myself [Viewing Unpushed Git Commits](https://stackoverflow.com/questions/2016901/viewing-unpushed-git-commits), but didn't see for some... |
2018/03/13 | 510 | 1,665 | <issue_start>username_0: In my project, I use easyUI dialog.
At frist, I defined dialog in oa.php page directly, just like:
```
```
But when assDlg dialog is closed with:
```
$('#assDlg').dialog('destroy');
```
And then I want to open this dialog with:
```
$('#assDlg').dialog('open');
```
It fails. It shows... |
2018/03/13 | 570 | 1,846 | <issue_start>username_0: That is it: how do I know whether the project is building by nightly or stable compiler? Something like this:
```
#[cfg(nightly_build)]
use std::ptr::Shared; // on nightly use system's version
#[cfg(not(nightly_build))]
use myshared::Shared; // on stable use my unoptimized Shared
```<issue_... |
2018/03/13 | 474 | 2,027 | <issue_start>username_0: I am trying to iterate an array of objects inside typescript but getting error :
```
ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'forEach' of undefined
TypeError: Cannot read property 'forEach' of undefined
```
Below is my code:
```
export class Data{
products: P... |
2018/03/13 | 1,003 | 3,121 | <issue_start>username_0: I have a list of full names which I am splitting into two variables currently like so:
```
first, last = full_name.split(" ")
```
which works only if `full_name` is two words when split, otherwise I get. Is there a concise way to account for a name with more parts to keep `first` as the firs... |
2018/03/13 | 1,208 | 4,443 | <issue_start>username_0: In my latest WinForms Project, the code behind for my Main form has started to become too large and difficult to read. In other posts that I have read through, I have seen suggestions that say to create another class that is a partial class of your main form, however, what really bugs me is tha... |
2018/03/13 | 1,072 | 3,833 | <issue_start>username_0: Is there a succinct structure or way of using ranges in Swift to classify any value of a range-compatible type (eg: Double) into discrete, user/programmer-defined categories?
eg: Someone might want to use temperatures in celsius to classify areas of earth.
* `..<-10` - Arctic
* `-10..<10` - C... |
2018/03/13 | 1,311 | 2,665 | <issue_start>username_0: Ok here's a quick reproducible example:
```
ppg2017 <- c(65,74,53,63)
team2017 <- c("Duke","UVA","UNC","Xavier")
year2017 <- c(2017,2017,2017,2017)
df.2017 <- data.frame(team2017,year2017,ppg2017)
names(df.2017) <- c("team", "year", "ppg")
ppg2016 <- c(68,61,82,71)
team2016 <- c("Duke","UVA"... |
2018/03/13 | 857 | 3,136 | <issue_start>username_0: There is a column with numbers like :
```
ex.
12876391
```
Desired to convert like
```
12,876,391
```
in whole column.
I cannot find the simple solution in many forum .
How can i achieve it ?<issue_comment>username_1: You can first select the column in the `Fields` pane, and then find th... |
2018/03/13 | 890 | 3,217 | <issue_start>username_0: I was really surprised by the following Python code
```
def f(x,l=[]):
for i in range(x):
l.append(i*i)
print(l)
f(2) #[0, 1]
f(3) #[0, 1, 0, 1, 4]
```
The question is why Python uses the same `l` list, when in function definition is always defined as `l=[]`<issue_comment>u... |
2018/03/13 | 990 | 3,554 | <issue_start>username_0: I have an enum looks like:
```
public enum Movies {
SCIFI_MOVIE("SCIFI_MOVIE", 1, "Scifi movie type"),
COMEDY_MOVIE("COMEDY_MOVIE", 2, "Comedy movie type");
private String type;
private int id;
private String name;
Movies(String type, int id, String name) {
this.type = type;
this.id ... |
2018/03/13 | 771 | 2,291 | <issue_start>username_0: I have a very simple array that has duplicate values. My array is like this:
```
$scope.type= ["Bar", "Pie", "Line", "Line", "Line", "Line", "Line", "Line", "map", "Line", "Bar", "Pie", "Pie", "Pie", "Pie", "Pie", "Pie", "Pie"]
```
in my ng-repeat, I have this condition
```
ng-repeat = typ... |
2018/03/13 | 905 | 2,883 | <issue_start>username_0: I am trying to find files with specific name and deleting them in c++ as this code works fine if i give direct desktop path to it L"path//" but as path of desktop is different due to different user and system so i what i am doing at the top is to get desktop path in string variable and assignin... |
2018/03/13 | 1,546 | 4,936 | <issue_start>username_0: Apologies up front, I'm an aspiring git guru, but not quite there yet...
I currently have 5 local commits that have not yet been pushed to my remote branch; the first 2 are prohibiting me from pushing because they have **trailing/Leading spaces errors** in some of the source files.
**When I t... |
2018/03/13 | 861 | 2,804 | <issue_start>username_0: So I tried playing around with multiple options to set values of multiple cells in Pandas using a list but not able to get the right results. Searched here and on Google with no luck.
Here is my sample df
```
df = pd.DataFrame({'PersonID':['AB-123', 'AB-123', 'AB-123', 'AB-123', 'AB-123'],
'Da... |
2018/03/13 | 927 | 3,189 | <issue_start>username_0: Basically, I want to put a logo on the status column that will show an image whenever the `stock====1` and vice versa. I know I will use an if else but I don't know how will I put it on the PHP echo. This is my table view.

View code:
``... |
2018/03/13 | 530 | 1,504 | <issue_start>username_0: MAC OSX creates some unwanted dot underscore files to store file information.
There are currently two files in a directory on my file system - `Test.php` and `._Test.php`.
I need to write a preg\_match to accept only first file and ignore the metadata file. For eg.
```
preg_match('/^(.+)\.p... |
2018/03/13 | 244 | 879 | <issue_start>username_0: Do we have any java libraries to convert 3 letter language code to its corresponding language with localization support?
Like,
ENG -> English
PS: I guess its a bad question. But, google was of not a good help. Hence, turning to you all. Probably, my search term was not accurate.<issue_commen... |
2018/03/13 | 497 | 1,682 | <issue_start>username_0: I am attempting to set up a Slick Carousel on a website. As a test I first tried creating one on a blank page using the code directly from the slick site <https://kenwheeler.github.io/slick/>. It seems that the javascript is not recognized even when updating the js links to http:. Here is the H... |
2018/03/13 | 343 | 1,497 | <issue_start>username_0: If I wanted to check if an application is already open or not, how can we check that with process exists action in utility VBO in Blueprism? It is asking for process name when I go with process exists action as input. I have given a process name where we can see it in the task manager but it is... |
2018/03/13 | 1,807 | 6,688 | <issue_start>username_0: I am looking at the [tutorial](http://scikit-learn.org/stable/auto_examples/ensemble/plot_partial_dependence.html) for partial dependence plots in Python. No equation is given in the tutorial or in the [documentation](http://scikit-learn.org/stable/modules/generated/sklearn.ensemble.partial_dep... |
2018/03/13 | 658 | 2,302 | <issue_start>username_0: I have this code:
```
set l [concat a b c "\r\n"]
puts "[llength $l]:$l"
```
I like to add "\r\n" as the last element of the list, but it seems it is removed:
```
>tclsh try.tcl
3:a b c
```
Any reason of that?<issue_comment>username_1: In Tcl, list elements are separated by spaces or newl... |
2018/03/13 | 772 | 2,834 | <issue_start>username_0: all.
I have been dabbling around with JavaScript but I stumbled upon a problem that I am not sure how to get around. What I want to do is create a list of links that have a small fixed pop up window with a message on it.
I made a list like this:
```
Untitled Document
- [google.com](#)
... |
2018/03/13 | 639 | 2,119 | <issue_start>username_0: I have an HTML page named Order that includes a drop-down:
```
Napoletana
Margherita
Sardiniana
<NAME>
Funghi
Patate Con Aglio
Romana
Gamberetti
Capri
La Mexicana
Pomodori Secchi
Proscuitto Con Pomodori
Siciliana
Palermo
Pesto
```
I want to get the name and value of the optio... |
2018/03/13 | 665 | 2,307 | <issue_start>username_0: I'm trying to run [Alloy](https://github.com/AlloyTools/org.alloytools.alloy/tree/pkriens/markdown) (prkiens/markdown branch) from IntelliJ IDEA so I can use the IDEA debugger. This project uses a *bnd* workspace, which I've never dealt with before.
I'm running on macOS (High Sierra).
I loade... |
2018/03/13 | 441 | 1,443 | <issue_start>username_0: I am facing issue like I have a datasheet which have a string value like 123459 which is a time and I have another column where I am adding in value as plus 5 seconds.
When I am adding value its add as 123464 instead of 123504.
Could anyone help me to resolve this?<issue_comment>username_1: Use... |
2018/03/13 | 1,217 | 2,132 | <issue_start>username_0: I was wondering if there might be a way to ***re-obtain (recover)*** the data for `jen` from the output of `lm` object in R *assuming we don't know what is the name of the person but only the role of `jen` as the predictor?*
In other words, how to re-obtain, predictor data from an `lm` object?... |
2018/03/13 | 2,202 | 6,895 | <issue_start>username_0: How can I add my own style with a class css in quilljs?
I have this following css class
```
.ql-editor spanblock {
background-color: #F8F8F8;
border: 1px solid #CCC;
line-height: 19px;
padding: 6px 10px;
border-radius: 3px;
margin: 15px 0;
}
```
and an event targeting... |
2018/03/13 | 1,985 | 6,333 | <issue_start>username_0: I'm getting an error related to using the same class but with different types int and char
```
template
int Infix::performOp(LinkedStack valueStack, LinkedStack operatorStack)
```
valueStack is the int, and operatorStack the char.
When I compile this is the note it attaches to the error.
... |
2018/03/13 | 1,384 | 5,118 | <issue_start>username_0: I'm trying get the nice design time experience that <NAME> talks about in some of his videos. This is a WPF application in VS2017 Community on a Win7 machine.
In a Window, a FRAME control binds to a URI. Source="{Binding FrameUri, Mode=TwoWay}" The program is working during runtime but during... |
2018/03/13 | 1,540 | 5,447 | <issue_start>username_0: I want to write a function that extracts elements from deep nested tuples and lists, say I have something like this
```
l = ('THIS', [('THAT', ['a', 'b']), 'c', ('THAT', ['d', 'e', 'f'])])
```
And I want a flat list without 'THIS' and 'THAT':
```
list = ['a', 'b', 'c', 'd', 'e', 'f']
```
... |
2018/03/13 | 515 | 2,089 | <issue_start>username_0: What is the best way to route users to different landing page based on user role? While
What I am doing now: in the login component, I have a if-else and navigate to relevant page. However I have the same logic in registration page, and in the "home" button of various pages.
Is there any bet... |
2018/03/13 | 1,654 | 6,296 | <issue_start>username_0: I am trying to implement PrimeNg AutoComplete control in my project.
I am referring this [PrimeNg](https://www.primefaces.org/primeng/#/autocomplete)
These are the steps I have followed.
**1. Added Module.**
```
import { AutoCompleteModule } from 'primeng/autocomplete';
```
**2. Imported... |
2018/03/13 | 1,548 | 5,906 | <issue_start>username_0: i am making a code where the system checks if you are an 'Admin' or a 'SuperAdmin'.
i cant seem to make it loop everything to check if 'SuperAdmin' is in the 'user\_type'
```
$sql = "SELECT * from users";
$result = mysqli_query($con,$sql);
while ($row2 = mysqli_fetch_array($result)) {
if ... |
2018/03/13 | 743 | 2,606 | <issue_start>username_0: This is an example from W3School.
```

```
[](https://i.stack.imgur.com/7gCM5.jpg)
I tried to modify the width from 100px to 300px. Then I found the image not only become wider, but also higher.
[![enter... |
2018/03/13 | 306 | 999 | <issue_start>username_0: I have problem with reseting my input values. I have search bar with filter functions. When i write some value it shows me list under it and i want to add function to this anchors, when i click some of them it routes me to another component and i want to clear the input value.
My code:
```
... |
2018/03/13 | 2,947 | 10,363 | <issue_start>username_0: How can I achieve accurate timing in Java? I know Thread.sleep() is inaccurate and leads to InterruptedExceptions. I'm trying to make a physics simulator and I want to have accurate code.
Here is my code so far:
```
public class FreeFall() {
public static void main(String[] args) {
... |
2018/03/13 | 2,957 | 10,589 | <issue_start>username_0: i would like to run the selenium server from the command prompt with out the internet connection. Every time when i run below command
webdriver-manager start will always needs internet connection to start the server because this commands is checking for new binaries .
But i would like to run... |
2018/03/13 | 366 | 1,459 | <issue_start>username_0: In Python, I can import a subset of a module, give it a short name and reference only the short name from the code. e.g.
```
import bigmodule.bigobject.somethingbig as cutie
```
Is there something similar in ruby so I don't have to type the long string?<issue_comment>username_1: There is no ... |
2018/03/13 | 547 | 1,743 | <issue_start>username_0: I am trying to make an app for the "car maintenance shop".
In MySQL table I have
1. ID
2. CAR\_PLATE
3. MAINTENANCE\_DATE (timestamp)
Every car that goes to the maintenance, must come again after every 6 months for a new check.
When the car arrives for the first time, the date will be timesta... |
2018/03/13 | 466 | 1,492 | <issue_start>username_0: Here's my typical git workflow using git in steps.
git fork to my own repo
`git clone [ur]` //from my own repo
`git checkout -b new-feature-abc`
`git add . && git commit -m 'done'`
`git push -u origin new-feature-abc` //to my own repo
then I do a PR to upstream, created new-feature-abc on... |
2018/03/13 | 846 | 2,481 | <issue_start>username_0: In Linux, I can generate a TCP/UDP packet with the following command.
```
echo "hello world" > /dev/tcp/127.0.0.1/1337
echo "hello world" > /dev/udp/127.0.0.1/31337
```
I've been searching a similar way to do it in Python, but it's not as simple as Linux.
1. <https://wiki.python.org/moin/Tc... |
2018/03/13 | 341 | 1,064 | <issue_start>username_0: I'm getting errors when trying to parse a string to json
here is my String
```
{"location": " Antoine Vallasois Ave, Vacoas-Phoenix, England", "stopover":true}
```
and here is my javascript function
```html
function fillWaypoints(location){
var ob =JSON.parse(location);
ArrayWaypoin... |
2018/03/13 | 461 | 1,612 | <issue_start>username_0: I'm working on a python exercise that requires getting the string return values of function. Here is the sample code that is related to the one I'm currently working on.
```
def main():
x = 'the quick'
y = 'brown fox'
return x, y
def function1(x, y):
if x == 'the quick' and y ... |
2018/03/13 | 1,587 | 6,372 | <issue_start>username_0: I have many codes like this:
>
> dispatch\_async(dispatch\_get\_global\_queue(0, 0), ^{});
>
>
>
`dispatch_async` will create a new thread when I call it one time.
When app run a while, I got many threads: number 50, 60, 70. It's not good.
How to reuse those threads. Like `tableview.dequ... |
2018/03/13 | 1,589 | 5,897 | <issue_start>username_0: I've got a program for taking input and storing it into structs. The structs are for contact details, Name, Address, and Phone numbers. My program works just fine, I can enter all my information into the program however when I try to `printf` the results the program crashes halfway through. I t... |
2018/03/13 | 650 | 2,115 | <issue_start>username_0: I have multiple images instead of importing each image in my content.js like this eg:
`import myimg1 from './myimg1.png'`
`import myimg2 from './myimg2.png'`
`import myimg3 from './myimg3.png'`
`import myimg4 from './myimg4.png'`
I have made images.js and then imported each image inside im... |
2018/03/13 | 494 | 1,777 | <issue_start>username_0: I was following a udemy course and my code was working fine before but all of a sudden it crapped out and stopped working and I started getting "The import org.openqa.selenium.WebDriver cannot be resolved" and "The import org.openqa.selenium.By cannot be resolved". Basically, anything importing... |
2018/03/13 | 301 | 1,025 | <issue_start>username_0: I'm running
```
php bin/console sylius:install
```
from the command line, but getting an exception:
[](https://i.stack.imgur.com/f8Uru.png)
Upon first getting this, I updated my php.ini date.timezone to America/... |
2018/03/13 | 748 | 1,619 | <issue_start>username_0: I have an array of hashes:
```
array = [
{:created_at => 1520913341, :event_id => '111', :album_id => '123'},
{:created_at => 1520740541, :event_id => '234', :album_id => '999'},
{:created_at => 1520654141, :event_id => '111', :album_id => '777'},
{:created_at => 1520394941, :event_id => '233'... |
2018/03/13 | 361 | 1,232 | <issue_start>username_0: I'm new to pantaho and please forgive me if I ask stupid question.
All I am trying to do is split my report in 2 sections and I could not figure out how.
For example, I have a query returning a 5 column table. Generally if I put those data into the pentaho report, it would be something like t... |
2018/03/13 | 474 | 1,525 | <issue_start>username_0: New to Hugo and css. Trying to change the fonts of the beautifulhugo theme based on these instruction:
See Chandra's Nov 17 post:
<https://discourse.gohugo.io/t/font-selection-in-theme/8803/8>
I have downloaded two fonts and placed them in static/fonts
Added the following to config.toml
```... |
2018/03/13 | 671 | 2,563 | <issue_start>username_0: I was following along in the [tutorial](https://github.com/Microsoft/TypeScript-React-Native-Starter) that Microsoft put out on how to convert your ReactNative project to TypeScript.
Everything worked great until I reached the point where I needed to include images in my project. Obviously `ts... |
2018/03/13 | 715 | 2,125 | <issue_start>username_0: Good day everyone!
I've been looking around the web on how to load more rows in the table on scroll down reached the bottom, but unfortunately, I only see divs tutorial. Can anyone please enlighten me how to execute this? or a sample code or tutorial?
It's like this, I will run a SELECT quer... |
2018/03/13 | 1,095 | 3,909 | <issue_start>username_0: This kotlin code:
```
fun badKotlin(text: String?): Boolean {
if (text == null) {
return true
}
var temp = text
if (false) {
temp = Arrays.deepToString(arrayOf(text))
}
return temp.isBlank() // <-- only safe (?.) or non null asserted (!!.) calls
}
``... |
2018/03/13 | 307 | 1,111 | <issue_start>username_0: I am beginner in Vue and i am facing this error on the chrome browser.
At runtime i see this error.
```
import Vue from 'vue';
```
Uncaught SyntaxError: Unexpected identifier on the top level
I use the latest version of vue, vue-cli and npm.<issue_comment>username_1: If you are using types... |
2018/03/13 | 549 | 1,699 | <issue_start>username_0: I have multiple date's for example(25-12-2017) i need them to be converted to milliseconds by javascript<issue_comment>username_1: One way is to use year, month and day as parameters on `new Date`
>
> new Date(year, month [, day [, hours [, minutes [, seconds [, milliseconds]]]]]);
>
>
>
... |
2018/03/13 | 426 | 1,023 | <issue_start>username_0: How to loop on a number using jQuery from `1` to `10`.
Let's say I have
```
var start=8;
var end=13;
```
Expected Output:
>
> 8 9 10 1 2 3
>
>
>
On reaching `10`, the output series restarts from `1`.<issue_comment>username_1: Try this
```
var start = 8, end = 13;
for(var i = start;... |
2018/03/13 | 622 | 1,857 | <issue_start>username_0: I have an array `barcodeList` that stores different barcode numbers. I want to make every single one of them into a different object with the `key` being the barcode numbers and having different properties. Then I want to put them all into one big object `foodItems`. How can I do this.
Also, I... |
2018/03/13 | 812 | 3,188 | <issue_start>username_0: I need to rename MySQL table and create a new MySQL table at the same time.
There is critical live table with large number of records. **master\_table** is always inserted records from scripts.
Need to backup the master table and create a another master table with same name at the same time... |
2018/03/13 | 1,220 | 4,913 | <issue_start>username_0: ```
List doSomething(String input){
if(input == null){
return Collections.emptyList();
}
List lst = getListfromSomewhereElse(input)
if(lst.isEmpty(){
return Collections.emptyList(); //Approach 1
// return lst; //Return same empty list
}
// do some more processing on lst
return lst;
}... |
2018/03/13 | 965 | 3,497 | <issue_start>username_0: When doing multi cursor selection, often you need to type a different value for each, you've to cancel selection even though all cursors are where you want them to be.
Is it possible to activate some sort of mode and press tab to automatically iterate through each one by one on every tab and t... |
2018/03/13 | 354 | 1,420 | <issue_start>username_0: I apologize if this seems like a newbie question, but I'm having some issues navigating through github. I understand the essentials of committing, pushing, peeling etc, but for some reason I can't figure out a few other essentials. If you could take a look at this link it's the GH repo I'm spea... |
2018/03/13 | 560 | 1,627 | <issue_start>username_0: I'm creating a job board, and to make it easy to navigate postings I'm hoping to group Jobs by on the day they were created. My current implementation works OK, but I'm wondering if there is a more performant way to approach this; something about adding two instance variables in the *new* metho... |
2018/03/13 | 690 | 2,542 | <issue_start>username_0: I am working on a bot to do some simple commands for my discord server and I haven't been able to figure out how to get the bot to mention people who aren't the author.
```
if message.content.startswith("+prank"):
user = client.get_user_info(id)
await client.send_message(messag... |
2018/03/13 | 511 | 1,991 | <issue_start>username_0: Given the changes in the logging that were done in <https://github.com/spring-projects/spring-security-oauth/issues/1271> and <https://github.com/spring-projects/spring-security-oauth/issues/1290>, I think it may be hard to please everyone with the logging that is present in the token endpoint.... |
2018/03/13 | 650 | 2,068 | <issue_start>username_0: I am working on a project which needs to get the data from other webpage:
<https://eth.ethfans.org/#/miner?0x2998850087633a4806191960c94ed535d97da598>
I am trying to use the function cRUL:
```
php
$url = "https://eth.ethfans.org/#/miner?0x2998850087633a4806191960c94ed535d97da598";
$ch = curl... |
2018/03/13 | 289 | 883 | <issue_start>username_0: This question might be dum. I am a beginner for typescript.
In file A, I want to call a function defined in file B. How do I do this?<issue_comment>username_1: You need to export the function in the file:
```
// File B
export function exampleFunction() {}
```
You can then import it in the o... |
2018/03/13 | 374 | 1,302 | <issue_start>username_0: I am using codeigniter file uploading class to upload files and images in my local folder.I am using the code below, it's working fine.
```
public function do_upload() {
$config['upload_path'] = './uploads/';
$config['allowed_types'] = 'gif|jpg|png|jpeg|pdf|txt|sql';
$config['... |
2018/03/13 | 496 | 1,651 | <issue_start>username_0: I saw this in the template:
```
{!! test() !!}
```
Please help to show me a document of this syntax.
I searched and I didn't know **Laravel** allow this syntax.<issue_comment>username_1: That's just [unescaped data](https://laravel.com/docs/5.6/blade#displaying-data):
>
> **Displaying Une... |
2018/03/13 | 447 | 1,659 | <issue_start>username_0: I have a table called `empSchedule`.
`empSchedule` consists of `name`, `task`, and `visibility`.
`visibility` is either 'public' or 'private'.
I'd like to select everything in the table whether `visibility` is 'public' or 'private'. However, if `visibility` is 'private', I'd like to make the v... |
2018/03/13 | 770 | 2,914 | <issue_start>username_0: How to query oracle CPU usage for last 1 hour as percentage (every 1 min)?<issue_comment>username_1: As this information is available in the EM it means it's available in the database. Check something like <https://dba.stackexchange.com/questions/140188/oracle-em-11g-query-to-find-out-cpu-utili... |
2018/03/13 | 1,007 | 3,656 | <issue_start>username_0: I have the following model. `Posts` and `Reactions`.
Now I want to get a list of all posts and how often and how someone reacted to that post, i.e.
```
id | reaction | count
---+----------+------
1 | like | 13
1 | dislike | 1
3 | like | 89
```
So far what I go is this:
```
SELE... |
2018/03/13 | 4,587 | 12,749 | <issue_start>username_0: I am working on a bootstrap project (3.37, cannot upgrade to 4). I have an odd # of columns (5 columns) with bootstrap panels in each column. I have them centered as I need them, however in the small breakpoint (between 768px and 991px) I would like to center align the 5th panel, as I do not li... |
2018/03/13 | 3,483 | 9,524 | <issue_start>username_0: [I got the icon like this](https://i.stack.imgur.com/pNJHa.png)
When the user hover over the icon, how can I change the blue color to a different one using HTML or CSS?
Updated: Here's the css code:
```
.timeline-centered .timeline-entry .timeline-entry-inner .timeline-icon {
background:... |
2018/03/13 | 1,104 | 4,036 | <issue_start>username_0: ```
php include('includes/config.php');
if(isset($_POST["submit"]))
{
$empid=$_POST["empid"];
$pass=$_POST["password"];
$query=mysqli_query($conn,"SELECT employee_id, fname,lname,empid,password, status, role FROM employee");
while($row=mysqli_fetch_array($query))
{
$db_eid=$ro... |
2018/03/13 | 886 | 4,327 | <issue_start>username_0: I have an object which contains a property with JsonConverter attribute. For data read and write, converter not working. The declared property is
```
[JsonConverter(typeof(EpochDateTimeConverter))]
public DateTime CreatedOn { get; set; }
```
The EpochDateTimeConverter is
```
public class E... |
2018/03/13 | 1,724 | 5,530 | <issue_start>username_0: Trying to create 1Mb(1048576Byte) file by writing in various chunk sizes and a different number of threads. When `int NUM_THREADS = 2` or `int NUM_THREADS = 1` then created file size is same as given i.e. 10MB .
However when I increase thread count to 4, The created file size is around 400MB;... |
2018/03/13 | 1,599 | 6,117 | <issue_start>username_0: I am trying to make a FAQ view controller, I know that there is pods called 'FAQView' to make this FAQ page, but I need to customize, so make it by myself. I want that my end result will be like this
[](https://i.stack.imgur.c... |
2018/03/13 | 807 | 3,587 | <issue_start>username_0: I am having an issue where my backgroundworker completes the work the first time I press the button that calls it but the second time I press the button an error is generated. The error is flagged on an integer not on a collection.
The error is "This type of CollectionView does not support ch... |
2018/03/13 | 804 | 3,192 | <issue_start>username_0: Recently, I came across a python script to download files directly from Kaggle : <https://ramhiser.com/2012/11/23/how-to-download-kaggle-data-with-python-and-requests-dot-py/>
I am trying to do something similar using WebClients in C#. I've came the following response in StackOverFlow : [C# do... |
2018/03/13 | 1,018 | 3,263 | <issue_start>username_0: Say, I have two sequences. One of them can be a numerator, the second one is a denominator. Both sequences may contain the same variables. What is the fastest algorithm to get rid of duplicated variables in numerator and denominator?
Example: initial sequences.
```
A * B * C * D * O * V
-----... |