date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/07 | 501 | 1,531 | <issue_start>username_0: In `iex`, terms are coloured nicely. Can I take advantage of this in my own programs? Is there something like `IO.color_inspect`?<issue_comment>username_1: Both `IO.inspect` and `inspect` allow you to pass `syntax_colors` option where you can specify the color you want for each type of term as ... |
2018/03/07 | 357 | 1,103 | <issue_start>username_0: When a numpy string array returned from a function invoked by `tf.py_func` would have fixed string length with trailing '\x00' characters instead of "natural" variable string length without padding.
Here is an example:
```
import tensorflow as tf
import numpy as np
def main():
def foo(x... |
2018/03/07 | 622 | 2,336 | <issue_start>username_0: I have a TableHead Component with multiple columns. One of them is a so that you can filter the content of the table (the value is one of 4 statuses in my case). I want to add an ellipsis at the end of the options' string if it's longer than it's container.
My problem is that material-ui's st... |
2018/03/07 | 700 | 2,990 | <issue_start>username_0: Sorry if the title is useless, having trouble thinking of what to call the issue. I'm looking for a way to structure my Doctrine Entities. I'm trying to write a D&D Character Sheet program for me and my friends, what I'm struggling with currently is known Languages.
Characters have known langu... |
2018/03/07 | 631 | 2,405 | <issue_start>username_0: Say if I have this query
```
SELECT TableA.Id, TableA.Number, TableA.Name, TableA.HOl, TableB.Contact, TableC.activity
FROM TableA
left JOIN TableB on TableA.Id = TableB.TableA_Id
left join TableC on TableB.userid = TableC.userid
where TableA.hol = 50
order By TableA.Id
```
Is it better to... |
2018/03/07 | 816 | 2,861 | <issue_start>username_0: I am using angular4.
How would I modify the following code, when moving from `@angular/http` `Http` to `HttpClient` (<https://angular.io/guide/http>) ?
```
let observable: Observable =
this.http.get(uri)
.map((response: Response) => response.json().\_embedded['users'])
.catch(this.handleErr... |
2018/03/07 | 903 | 3,433 | <issue_start>username_0: I was recently making a Javascript color converter (Up for [Code Review](https://codereview.stackexchange.com/questions/188915/html-javascript-hex-to-rgb-and-rgb-to-hex-color-converter)) in which I have two functions that are called when the input is changed (The `change` event). So to implemen... |
2018/03/07 | 449 | 1,671 | <issue_start>username_0: I am seeing strange behavior when trying to store the output of an SSH check to see if I have SSH access to an account. I tried the following:
```
ssh <EMAIL> > temp.txt
```
and I expect a string message telling me if permission was denied or not to be saved to `temp.txt`. But the output goe... |
2018/03/07 | 1,163 | 3,808 | <issue_start>username_0: I am calling an api that returns the following object to tell me that daylight savings time begins on March 11th for a given timezone:
```
{
dayOfWeek: "Sunday",
month: 3,
timeOfDay: "0001-01-01T02:00:00.000Z",
week: 2
}
```
where week:2 reprsents the 2nd week of March in this case.
... |
2018/03/07 | 523 | 1,944 | <issue_start>username_0: I have the following code in reactjs:
How can I access any component like jquery using ID or there is some other solution?
Progressbar.jsx
```
class Progressbar extends Component {
constructor() {
super();
this.state = { percentage: 0 };
}
progress(percentage) {
this.setSta... |
2018/03/07 | 1,833 | 5,384 | <issue_start>username_0: So the Fibonacci number for log (N) — without matrices.
-------------------------------------------------------
```
Ni // i-th Fibonacci number
= Ni-1 + Ni-2 // by definition
= (Ni-2 + Ni-3) + Ni-2 // unwrap Ni-1
= 2*Ni-2 + Ni-3 // reduce the equation
= 2*(Ni-3 + Ni... |
2018/03/07 | 691 | 2,036 | <issue_start>username_0: Hi guys I'm trying to figure out how to make the text-decoration-line shorter so it dosen't go all the way, i want it to look like this :
[](https://i.stack.imgur.com/ZiOP3.png)
```css
#about h1 {
font-weight: 600;
... |
2018/03/07 | 909 | 2,287 | <issue_start>username_0: I have the following XML document:
```
13
4672
1518626787
4922
9717
25
1
1480166791
25
3761041
21
1
1467581153
100
16650345
```
I am trying to create a program using PHP that returns the "scarcity" of a certain "badgeid" (that is always unique).
So my question is: How do I... |
2018/03/07 | 980 | 2,598 | <issue_start>username_0: I am trying to create a skewed footer with HTML/CSS. Here is what I have:
```css
body {
margin: 0;
display: flex;
flex-direction: column;
min-height: 100vh;
}
header {
background: red;
height: 50px;
}
main {
flex: 1;
margin-bottom: 50px;
}
footer {
backgroun... |
2018/03/07 | 1,957 | 6,401 | <issue_start>username_0: I'm trying to insert nested json from a URL into mySQL.
I've tried a few foreach as per other questions/answers on here but can't seem to get it to work. I've given it a go with a for loop and it is inserting however it is only inserting 1 record, which is the final one.
There are 3 first-lev... |
2018/03/07 | 968 | 2,231 | <issue_start>username_0: I am trying to minimize a function, `S.residuum` , in R with some constraints
```
S.residuum<- function(w, stdv, corr) {
intermed<-0
for (i in 1:length(stdvv)) {
intermed =intermed+residuum(w,stdvv,corr.mat,i)
}
return(intermed)
}
```
where `w` is a vector with the length 6.
The ... |
2018/03/07 | 539 | 1,374 | <issue_start>username_0: Tell me, I have Eloquent models:
```
- countries;
- regions;
- cities;
- schools;
- users;
```
Relations:
```
Countries -> hasMany -> Regions
Regions -> hasMany -> Cities
Cities -> hasMany -> Schools
Schools <-> hasManyToMany <-> Users (through table)
```
How do I get all users ... |
2018/03/07 | 556 | 1,458 | <issue_start>username_0: I have a problem with changing values into a string.
I have three values, e.g. a, aa, aaa
```c#
StringBuilder builders = new StringBuilder(string);
builders.Replace("a", "ab");
builders.Replace("aa", "bab");
builders.Replace("aaa", "bba");
string new_string = builders.ToString();
```
How t... |
2018/03/07 | 590 | 1,462 | <issue_start>username_0: I have few lists which have a year at their first index, followed by a name and number e.g
```
list 1 ['2017', '<NAME>', 'Miley 4',..]
list 2 ['2016', '<NAME>', 'Stephanie 6'...]
```
I wish to make a dataframe (of all these lists concatenated) that has 3 columns of name, number and year
`... |
2018/03/07 | 598 | 2,092 | <issue_start>username_0: I'm using an ajax call through javascript and returning json.
[](https://i.stack.imgur.com/JrycI.png)
I'm accessing the data using bracket notation because the object name had spaces, so I couldn't use dot notation.
This is ... |
2018/03/07 | 737 | 2,926 | <issue_start>username_0: I have a Function App in azure and when I hit the URL of the function app it says "Function host is not running."
I am not sure where I have to check and what needs to be changed.
I tried restart but still no luck.<issue_comment>username_1: This usually means that there is some bad configuratio... |
2018/03/07 | 729 | 2,501 | <issue_start>username_0: I am trying to parse json data from a site that shows values of crypto currency. I am trying to parse it using python. I am a little lost on how to show the output.
API: `https://min-api.cryptocompare.com/data/price?fsym=XMR&tsyms=USD`
```
# code starts below
import requests
# Set the reque... |
2018/03/07 | 611 | 2,150 | <issue_start>username_0: I have some JSON keys that contain non-alphanumeric characters e.g. `"my-key="`
I need to map this key to a field `my_key` in my Django model.
The traditional way to do this is to add a custom field to the `ModelSerializer` where you specify the `source`:
```
class MyModelSerializer(serializ... |
2018/03/07 | 1,343 | 4,425 | <issue_start>username_0: I have an issue where I'm working in a rather large CSS code base that makes frequent use of overriding previously defined classes/selectors. As such, it is very sensitive to the order in which they are defined.
**Here is a sample of how I need it to work**
```css
.grid {
padding:25px;
... |
2018/03/07 | 593 | 1,732 | <issue_start>username_0: I see that there is a Timestamp object but it doesn't seem to work.
Using Python 3.6
```
$ pip install protobuf3
```
In python:
```
from google.protobuf.timestamp_pb2 import Timestamp
timestamp = Timestamp()
timestamp.GetCurrentTime()
```
Nothing is returned. What am I doing wrong?<issue... |
2018/03/07 | 1,270 | 4,533 | <issue_start>username_0: I have loaded some data from a file into three arrays of type Unbounded\_String, which I'll call Days, Months, and Seasons.
Each of these arrays has a corresponding Integer which has recorded the number of items in the array, viz. Days\_Total, Months\_Total, and Seasons\_Total.
I'd like to it... |
2018/03/07 | 1,355 | 5,321 | <issue_start>username_0: I'm new to flutter development, and find it a bit frustrating in iOS when you have a navigation drawer and when you swipe to open it, it'll perform a `Navigation.of(context).pop()`. I would like to disable this "swipe to pop" behavior in iOS. I have been perusing the documentation, but without ... |
2018/03/07 | 1,072 | 3,523 | <issue_start>username_0: I am encountering In place operation error when I am trying to index a leaf variable to update gradients with customized Shrink function. I cannot work around it. Any help is highly appreciated!
```python
import torch.nn as nn
import torch
import numpy as np
from torch.autograd import Variable... |
2018/03/07 | 772 | 2,694 | <issue_start>username_0: I have a list
```
List list;
```
And I want to convert this to a map of `Map>`
I tried
```
Map> map = list
.stream()
.collect(Collectors.toMap(item -> item, Collections.emptyList()));
```
But Java is not happy with the `item->item`:
```
no instance(s) of type variable(s) T exists so t... |
2018/03/07 | 1,213 | 5,034 | <issue_start>username_0: I need to remove child from Firebase after **onClick** from RecyclerView Adapter.
I have something like this:
```
public void onBindViewHolder(final ViewHolder holder, final int position) {
holder.fromTextView.setText(my_data.get(position).getFromName());
holder.fromTextView.setOnClickLi... |
2018/03/07 | 1,043 | 3,578 | <issue_start>username_0: Hi my code works My goal is to loop through each element in the table and and click the element so i can go to the next page basically I want to do this
```
1 click element form drop down
2 //code some stuff
3 Go back
4 click next element from drop down
5 code some stuff and etc
```
My co... |
2018/03/07 | 1,241 | 5,224 | <issue_start>username_0: I am trying to learn some java and I started with some assignments from codefights, and I just wanted to ask whether my coding technique is good or not ? for example is it okay to use break in for loops and multiple return statements ?
```
boolean almostIncreasingSequence(int[] sequence)
... |
2018/03/07 | 1,095 | 4,113 | <issue_start>username_0: My data looks something like this:
```
dat <- data.frame(Model = rep(c("OM", "EM-1", "EM-2", "EM-3"), each = 3),
Run = rep(c(1,2,3), time=4),
Value = c(2,10,5,20,26,7,8,15,33,11,31,7))
```
Where I have values from multiple models across several runs, in this case ... |
2018/03/07 | 2,122 | 7,475 | <issue_start>username_0: Is there a way to have an infinite loop using **PageView** in Flutter? For example if my PageView has 5 pages, after swiping to page 5, I would be able to swipe again in the same direction to get to Page 1.<issue_comment>username_1: By default, `PageView.builder` is infinite in flutter. Unless ... |
2018/03/07 | 2,392 | 8,250 | <issue_start>username_0: I have an image i am using as a background and i have a navigation bar that displays over the image. When i add a p tag it also displays over image. I am using position absolute to keep the navigation at top of page but the p tag also displays over the image instead of below.
I have tried rem... |
2018/03/07 | 3,312 | 10,477 | <issue_start>username_0: Error when running :
>
> php artisan migrate:reset
>
>
>
in the root of my Laravel site:
```
1 PDOException::("SQLSTATE[HY000] [2002] No connection could be made because
the target machine actively refused it.
")
C:\Users\jarro\Documents\Sites\homestead\vendor\laravel\framewor... |
2018/03/07 | 586 | 2,151 | <issue_start>username_0: I'm a bit confused on memcached and PHP when used with SQL queries.
Practically every guide I've come across does something resembling this:
```
$querykey = "KEY" . md5($query);
$result = $mem->get($querykey);
```
What I don't understand, is why they all seem to store a hashed version of th... |
2018/03/07 | 951 | 3,379 | <issue_start>username_0: I have a big problem in insertion of photo (blob) into database with php. I can't execute query. It returns false. This is my code
```
public function addPhoto()
{
$ret = false;
$img_blob = '';
$img_titre ='';
$description = "hhhhh";
$selogon = '';
$ret= is_uploa... |
2018/03/07 | 751 | 2,513 | <issue_start>username_0: ```
public observableA = (id: string): Observable>=>{
}
public observableB = (id: string): Observable>=>{
observableA(metroId).map((x)=>{
return new myClass(
x.FacilityName,
x.ID)
};
}
export class myClass{
ID: string;
Name: string;
constructor(id: string, name: string){this.ID=id;th... |
2018/03/07 | 1,036 | 2,594 | <issue_start>username_0: If I have a row which consists of say:
```
0 NA 0 NA 0 NA NA
0 1 0 0 0 1 0
0 NA 1 0 0 0 0
```
I want to get rid of only the first row and not the second or third ones, which have at least one non-zero character. How would I do this?
I've checked for subsettin... |
2018/03/07 | 792 | 3,171 | <issue_start>username_0: i have a dataset (df) with 10000 tweet with 2 observations (body and label); The first 4000 tweets are labelled(positive or negative) and i want to use it as training set to predict the label of the rest of the tweets ,testing, according to the text body.
I want to use Random Forest algorithm i... |
2018/03/07 | 280 | 1,031 | <issue_start>username_0: [](https://i.stack.imgur.com/QrpmC.png)
I keep getting this error in visual studios. There are currently no documentation that I can find that solves this error. Im using Pythong 3.7. Also, I get this same error when I try to ... |
2018/03/07 | 469 | 1,464 | <issue_start>username_0: I am converting date format but instead getting error. I know that the question is repeated the solution was not helping:
Below is my code and the date field I am converting is in format:
"2014-05-13T23:58:30.457"
```
val format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS",Locale.US)
val... |
2018/03/07 | 2,582 | 6,073 | <issue_start>username_0: Can anyone tell me why the base64 image code linked in [here](http://fanbeauties.com/base64String.txt) is invalid? Some kind of issue with the syntax I believe?
My file looks like this:
```none
/9j/4AAQSkZJR..........39b/lRk5HGVz8
```
I have truncated it (the "...") since the entirety of th... |
2018/03/07 | 1,501 | 5,384 | <issue_start>username_0: My current project consists of a mongo server, a rabbitmq server and a dotnet core service. It is structured as follows:
```
.
├── project1.docker-compose.yml #multiple docker-compose files for all projects
├── .dockerignore
├── Util/
| └── some common code across all projects
└── Project1/ ... |
2018/03/07 | 522 | 1,782 | <issue_start>username_0: Let's say we have a function `classes_init`. It takes in lists or other types of information which it uses to initialize many instances of different types of classes, such as:
```
["spam", 24]
["eggs", 10]
["bacon", 20]
...
```
Index 0 of those lists indicates what type of class it is suppos... |
2018/03/07 | 1,638 | 5,424 | <issue_start>username_0: I am looking for a way to create new arrays in a loop. Not the values, but the array variables. So far, it looks like it's impossible or complicated, or maybe I just haven't found the right way to do it.
For example, I have a dynamic amount of values I need to append to arrays.
Let's say it... |
2018/03/07 | 318 | 1,115 | <issue_start>username_0: IntelliJ keep suggesting to replace `.length == X` with `.lengthCompare(X) == 0`. Why is that better? Don't quite get it, since the suggested changes are more verbose.
[](https://i.stack.imgur.com/I6h7N.png)<issue_comment>use... |
2018/03/07 | 332 | 1,166 | <issue_start>username_0: My need is to find how to code a page, when I click on a text/link/photo/etc., to open a page over current one like is open a photo on Facebook.
What I really want to do, you find in link below and go on "Client area" and click one of that 3 photos. That is want I want to do.
<https://www.wix... |
2018/03/07 | 1,545 | 5,537 | <issue_start>username_0: My ultimate goal is [here](https://stackoverflow.com/questions/46574803/google-sheets-script-to-fix-predictable-error), but because I've gotten no replies, I'm starting to learn things from scratch (probably for the best anyway). Basically, I want a script that will identify errors and fix them... |
2018/03/07 | 544 | 2,205 | <issue_start>username_0: As mentioned in the title, some standard Swift protocols get away with declaring optional requirements without the use of @objc. For example:
```
public protocol UIScrollViewDelegate : NSObjectProtocol {
@available(iOS 2.0, *)
optional public func scrollViewDidScroll(_ scrollView: UIS... |
2018/03/07 | 853 | 3,318 | <issue_start>username_0: I am working on a large project and need to fix some accessibility issues.
These is a section which has been generated by <https://www.atbar.org/> in a JS format I am not familiar with. The user clicks buttons to change font size, background colour and other html elements to assist them with r... |
2018/03/07 | 1,030 | 3,381 | <issue_start>username_0: Just quick info I'm a beginner in python and django.
Here is an issue:
I'm trying to create simple blog app with django, I've created all whats needed and I'm able to render one of my main pages however when I try to access posts page(to be able to view current posts) I receive the following ... |
2018/03/07 | 550 | 2,037 | <issue_start>username_0: I have a need to strip out whitespace markup from a string of HTML. By "markup" I mean any empty HTML elements that contain entities or characters that would render as whitespace in a web browser. For example
```
Test
okay
```
...should become
```
Test okay
```
The point is to... |
2018/03/07 | 942 | 2,824 | <issue_start>username_0: Is there a way to use `ggplot2` to create divergent stacked bar charts like the one on the right-hand side of the image below?
[](https://i.stack.imgur.com/TDoQf.jpg)
### Data for reproducible example
```
library(ggplot2)
li... |
2018/03/07 | 945 | 2,973 | <issue_start>username_0: I need to use -lncursesw to print out unicode characters otherwise it wouldn't work however after compiling it with this, the window for user input shows up but when I type characters to it, it doesn't show but still able to type. I honestly don't know how to make this work, I have set the loca... |
2018/03/07 | 627 | 2,691 | <issue_start>username_0: Following error occures
```
Caused by: org.hibernate.tool.schema.spi.SchemaManagementException:Export identifier [order_signal] encountered more than once
```
I have the following classes:
tradingbot.persistence.model.order.TransactionComponent
---------------------------------------------... |
2018/03/07 | 679 | 2,282 | <issue_start>username_0: According to [this announcement](https://android-developers.googleblog.com/2017/12/quick-boot-top-features-in-android.html) I should be able to see Android images that include the Play Store. But, I cannot.
What am I doing wrong?
These are my recommended images. None of them include the Play... |
2018/03/07 | 933 | 3,518 | <issue_start>username_0: I'm using TensorFlow for a multi-target regression problem. Specifically, in a fully convolutional residual network for pixel-wise labeling with the input being an image and the label a mask. In my case I am using brain MR as images and the labels are mask of the tumors.
I have accomplish a fa... |
2018/03/07 | 720 | 2,199 | <issue_start>username_0: This is my question:
I have to write a function that accepts 2 integer values as parameters and returns the sum of all the integers between the two values, including the first and last values. The parameters may be in any order (i.e. the second parameter may be smaller than the first).
This is... |
2018/03/07 | 736 | 2,745 | <issue_start>username_0: I am just learning C# and I need to read text from a file into an array, but ignore lines beginning with certain special characters. I am using ReadAllLines to read in the text.
What I am doing :
```
string file = openFileDialog1.FileName;
file_txtbx.Text = file;
try {
test = File.ReadAl... |
2018/03/07 | 2,128 | 7,129 | <issue_start>username_0: The program i am trying to write is trying to demonstrate how IPC works on Linux, but i keep getting a core dump error. It compiles fine and will run up until the last output statement in the parent process.
My code is as follows:
```
#include
#include
#include
#include
#include
#inclu... |
2018/03/07 | 1,660 | 5,373 | <issue_start>username_0: C noob here. I had some code working fine when it was all in `main()` but when I started factoring it out it died. I know this is simple, that I'm missing some key element and I'll only have to be shown this once (I promise!). So here goes:
in types.h:
```
typedef struct {
char *orig_str; /... |
2018/03/07 | 632 | 2,386 | <issue_start>username_0: I'm having trouble importing a variable from my `config/__init__.py` file.
My directory looks like:
```
.
├── src
│ ├── config
│ │ ├── __init__.py
│ │ ├── base_config.py
│ │ ├── log_config.py
│ │ └── output_config.py
│ ├── script.py
```
In `__init__.py` I have `from conf... |
2018/03/07 | 602 | 1,989 | <issue_start>username_0: ```
id n_tickets
0 1586391 2
1 640 2
2 640 1
3 1181593 2
4 964842 1
5 780 1
6 780 1
```
I have the above data frame. As you can see that in id column 640 and 780 have occurred two times. I want... |
2018/03/07 | 312 | 1,274 | <issue_start>username_0: Copied wordpress from localhost to server.
All links works but the home url is not working.
If I want to go to www.example.org, the website/wordpress will go to www.example.org/example (wordpress adds the domainname??)
I changed site and home url in phpmyadmin to <http://www.example.org>
But ... |
2018/03/07 | 692 | 2,596 | <issue_start>username_0: I'm running into an issue where I can access locally declared variables in the component controller instantiating the mat-autocomplete. The problem I'm facing is the local variables are stuck in this scope and I can't update them.
Any ideas or thoughts on updating the mat-autocomplete scope v... |
2018/03/07 | 806 | 2,793 | <issue_start>username_0: I have been reading and trying these two configurations for `npm cors`
<https://www.npmjs.com/package/cors>
```
var express = require('express')
var cors = require('cors')
var app = express()
var whitelist = ['http://example1.com', 'http://example2.com']
var corsOptions = {
origin: funct... |
2018/03/07 | 695 | 1,860 | <issue_start>username_0: I have a dataframe x with column names that have a similar prefix (age\_1, age\_2, age\_3,...,age\_n). I want to delete columns with prefix 'age\_' that are all NA. In the example below it will be age\_2 and age\_4. But in my dataset it might go up to age\_100. Is there a way to do this?
Samp... |
2018/03/07 | 1,088 | 4,232 | <issue_start>username_0: Can someone please explain to me in layman's terms what's going on with this snippet of code? I understand it's a function used to get the first character then discard the remaining input but I am confused with the last while loop. When I googled it I found very complicated explanations which w... |
2018/03/07 | 440 | 1,796 | <issue_start>username_0: Is there any way to turn off more users from signing up on Firebase after I've signed up specific users? For instance, if I only want 10 particular users to be signed up and no more, is there a way to turn off future signups?<issue_comment>username_1: After some digging, even though this method... |
2018/03/07 | 716 | 2,876 | <issue_start>username_0: Whenever I enter, update or delete something in a view, a message will appear informing me that this operation has been successful, but it only exits when I go to a new page. I would like to know how to insert a button so that this message adds up. I am currently sending the department\_control... |
2018/03/07 | 700 | 2,534 | <issue_start>username_0: So I have a Wardrobe table with records of people who owns colored shirts. Like so,
```
================================
| People | Shirt |
================================
| Peter | red |
| Peter | green |
| Peter | blue |
| Peter ... |
2018/03/07 | 566 | 1,809 | <issue_start>username_0: I want to show a list of contacts, grouped by "type" column in the db table. I am able to show all of the contacts, but how do I show the title for each 'type' above each group? Should I use groupby or distinct?
**Desired output:**
Type 1 (as h2)
contact info
contact info
contact info ... |
2018/03/07 | 845 | 2,954 | <issue_start>username_0: I have a problem to solve.
I have a table **Occupations**with **Name** and **Occupation**.
My task is to:
1.Query an alphabetically ordered list of all names in OCCUPATIONS, immediately followed by the first letter of each profession as a parenthetical (i.e.: enclosed in parentheses). For exa... |
2018/03/07 | 626 | 1,923 | <issue_start>username_0: this one is driving me to drink so I would love some help.
I've got a table with:
```
act_Address, act_OrderID, act_Date
```
I'm trying to get the first act\_Date for each address we shipped to.
Here's what I've tried but it's been running now for well over an hour so I'm thinking this isn... |
2018/03/07 | 731 | 2,575 | <issue_start>username_0: We had a request to add Haitian Creole resx files to our app from a customer. We got the translations and I went to plug them in, but I immediately found there's scant browser support for **ht** as a language/locale code. Chrome wouldn't let you enter it anywhere. IE 11 let you enter it as a cu... |
2018/03/07 | 619 | 1,815 | <issue_start>username_0: Hi I have queries to display 2 results:
```
SELECT TOP (100) PERCENT CONVERT(varchar, GETDATE(), 103) AS Date,
'Sales Orders' AS Type, COUNT(SalesOrderID) AS Qty,
ISNULL(ROUND(SUM(SubTotal), 2),0) AS [Total Ex GST]
FROM dbo.SalesOrder
WHERE (DateCreated > CONVERT(int, GETDATE... |
2018/03/07 | 518 | 1,567 | <issue_start>username_0: The following code works:
```
switch("A", "A" = "a", "B" = "b", "C" = "c", "OTHER")
```
But this code doesn't:
```
switch("A", "" = "BLANK", "A" = "a", "B" = "b", "C" = "c", "OTHER")
```
It fails with the error:
```
Error: attempt to use zero-length variable name
```
Is there a reason ... |
2018/03/07 | 653 | 1,791 | <issue_start>username_0: I have data in the following format:
```
ID Var1
1 a
1 a
1 b
1 b
2 c
2 c
2 c
```
I'd like to convert it (restructure it) to the following format in SPSS:
```
ID Var1_1 Var1_2 Var1_3 Total_Count
1 n(a)=2 n(b)=2 n( c )=0 4
2 n(a)=0 n(b)=0 n( c )=3 3
```<i... |
2018/03/07 | 708 | 2,144 | <issue_start>username_0: How can I check if the user X is in the same group as Y?
I'm making a chat application where I need to know if the user X is already opened a chat group with user Y. Because if so then do not create new group.
```
userId | chatGroup
---------|---------------------
X | bananas
Y ... |
2018/03/07 | 714 | 2,393 | <issue_start>username_0: I have a test table below that represents a table on a much grander scale with more rows and columns
```
Date key ID Sample Name Business
test test test test test
test test test test test
test test test test test
test test test t... |
2018/03/07 | 574 | 1,678 | <issue_start>username_0: My website cannot go live!
```
The following is my web server setup.
1. Rogers modem – Hitron CODA-4582
2. Port Forwarding
Application Name Public Private Protocol Local IP Address
HTTP 80 – 80 800 – 800 TCP 192.168.0.201
HTTPS ... |
2018/03/07 | 1,606 | 3,737 | <issue_start>username_0: I need to insert value into a column based on row index of a pandas dataframe.
```
import pandas as pd
df=pd.DataFrame(np.random.randint(0,100,size=(11, 4)), columns=list('ABCD'))
df['ticker']='na'
df
```
[Sample DataFrame](https://i.stack.imgur.com/VMwNq.png)
In the above sample dataframe, ... |
2018/03/07 | 1,273 | 4,919 | <issue_start>username_0: I am trying to delay a job in Laravel that is dispatched to a AWS SQS queue.
Standard jobs that are not delayed run fine on that queue but as soon as I delay something, it crashes. I first tried:
```
$awsgatewayjob = new \App\Jobs\DispatchAwsGatewayJob();
$this->dispatch($awsgatewayjob)->delay... |
2018/03/07 | 763 | 2,742 | <issue_start>username_0: I have a firend who gave me a very specific problem, he has a list of plain text words **(for purpose of writing i'll just call this list he has list.txt and i'll populate it will basic words)** and he wants to pull an audio only file of each word on this list from youtube. So i decided youtube... |
2018/03/07 | 1,060 | 3,468 | <issue_start>username_0: I have some code which works Ok with jodd 3.9.1 and I want to upgrade it to jodd version 4.1.4. but I have some errors:
Example:
```
@POST @Action
public String save(){
... some code for validation
if (!valid){
return VTOR_JSON; //Error
}
service.store(Object);
... |
2018/03/07 | 1,082 | 3,552 | <issue_start>username_0: Using the [Facebook API Graph Tool](https://developers.facebook.com/tools/explorer/1) and trying to retrieve a full size image that is larger than 720 it gets cropped to a square.
This is the image for use in the Facebook graph API tool using version v2.12:
```
127495184638742_166955060692754... |
2018/03/07 | 883 | 3,035 | <issue_start>username_0: Let's say change `Comparator.comparing` source code from
```
public static > Comparator comparing(
Function super T, ? extends U keyExtractor)
{
Objects.requireNonNull(keyExtractor);
return (Comparator & Serializable) (c1, c2) -> keyExtractor.apply(c1).compareTo(keyExtractor.apply(c2));
}
... |
2018/03/07 | 984 | 3,430 | <issue_start>username_0: for my coursework I have to take two lists of numbers, sort them and then combine them and output the new list in order, this works if the lists are already in order as they are typed but not if say a 9 is at the start of a first list so the trouble I'm having is sorting the list after it's com... |
2018/03/07 | 318 | 1,016 | <issue_start>username_0: I'm trying to make an `increment` method. This seemingly easy task has stumped me.
An example of what I want:
```
var x=5;
x.increment();
console.log(x); //6
```
What I tried to do:
```
Number.prototype.increment=function(){
this++; //gave me a parser error
};
```<issue_comment>usern... |
2018/03/07 | 758 | 1,987 | <issue_start>username_0: is there a regex to find a letter beween two numbers in a string by using Python ?
**For instance,** given a string like this one "**AAPL1809A170**" I would like to extract **A** only...again, given "**XOM1809C123**" I would like to extract C only...
To solve my problem I just tried this rege... |
2018/03/07 | 893 | 2,442 | <issue_start>username_0: I'm trying to implement a piece of C code like this:
```
if (test_num>0)
result = (test_num + offset) >> coeff;
else
result = -((offset - test_num) >> coeff);
```
in order to implement this, I did design as this:
```
assign abs_result = test_num > signed(0) ? result : -result;
alwa... |
2018/03/07 | 1,196 | 4,554 | <issue_start>username_0: Can someone explain the difference between
```html
```
and
```html
```
I don't know the meaning of `exact`.<issue_comment>username_1: In this example, nothing really. The `exact` param comes into play when you have multiple paths that have similar names:
For example, imagine we had a `Us... |
2018/03/07 | 294 | 1,019 | <issue_start>username_0: I have this code sample:
```
before('get all users', h => {
return getAllUsers().then(function (users) {
return h.supply.users = users;
});
});
```
I am looking for some shorthand, is this the best I can do?
```
before('get all users', h => {
return getAllUsers().then(... |
2018/03/07 | 343 | 947 | <issue_start>username_0: I am having an issue on excel 2010: I want to say
>
> IF (G3="a" AND G2>0) OR if (G3="b" AND G2>1) OR if (G3="c" AND G2>2) OR if (G3="d" AND G2>3) THEN "YES"
>
>
>
I have tried many attempts to code this. Any help?
Here is the code I am trying to fix:
```
=IF(OR(AND(G3="a",F3>=1)),(AND(... |
2018/03/07 | 553 | 2,191 | <issue_start>username_0: ```
-------------------------------------
Name of Student | class
-------------------------------------
S1 First
S11 First
S12 First
S13 First
S2 Sec... |
2018/03/07 | 2,411 | 6,637 | <issue_start>username_0: The context:
I have two models:
**gin.rb**
```
class Gin < ApplicationRecord
has_many :gins_botanical
has_many :botanicals, through: :gins_botanical
```
**botanical.rb**
```
class Botanical < ApplicationRecord
has_many :gins_botanical
has_many :gins, through: :gins_botanical
```
... |
2018/03/07 | 1,640 | 6,218 | <issue_start>username_0: I did read this article: [https://blog.phusion.nl/2015/01/20/docker-and-the-pid-1-zombie-reaping-problem/](https://blog.phusion.nl/2015/01/20/docker-and-the-pid-1-zombie-reaping-problem/ "click")
To set some context: Article is about problem with zombies in containers, it try to convince us th... |
2018/03/07 | 2,028 | 6,549 | <issue_start>username_0: Why are '\x90' and 0x90 different from each other. I understand that one is hexadecimal escape sequence and other is hexadecimal number . However if I convert them to decimal I get 144 , which should be the value for both '\x90' and 0x90 . Also, book says that '\x90' is negative value whereas 0... |