date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/19 | 420 | 1,472 | <issue_start>username_0: I was hoping to experiment with cl-async to run a series of external programs with a large combinations of command line arguments. However, I can't figure out how to read the stdout of the processes launched with `as:spawn`.
I would typically use uiop which makes it easy to capture the process... |
2018/03/19 | 1,846 | 7,564 | <issue_start>username_0: I have an AWS step-function/state-machine of Lambda functions written primarily in Javascript (although one is in Java) and I'd like to manage the error processing better.
I have no problem with having an error condition being *caught* and then forwarded to another state in the flow. So for i... |
2018/03/19 | 1,708 | 5,280 | <issue_start>username_0: I know this is something that I probably learned when I first started, but don't remember how its done because I have never used it. I have an array that I am looping through and am not getting the desired results. I am trying to get the output to go like this..
One Two Three Four
Five Six ... |
2018/03/19 | 468 | 1,697 | <issue_start>username_0: I know that you can specify data types when reading excels using `pd.read_excel` (as outlined [here](https://stackoverflow.com/questions/32591466/python-pandas-how-to-specify-data-types-when-reading-an-excel-file)). Can you do the same using `pd.ExcelFile`?
I have the following code:
```
if ... |
2018/03/19 | 1,320 | 4,318 | <issue_start>username_0: I am combining two questions here because they are related to each other.
Question 1: I am trying to use glob to open all the files in a folder but it is giving me "Syntax Error". I am using Python 3.xx. Has the syntax changed for Python 3.xx?
Error Message:
```
File "multiple_files.py", li... |
2018/03/19 | 1,314 | 3,940 | <issue_start>username_0: How can I find file with highest alphabet character in the file's extension?
Example of files my application creates:
```
$ find . -name 'L_*.[J-Z]'
L_58420.K
L_58420.J
L_58420.M
L_46657.J
L_58420.N
L_58420.P
L_46657.N
L_58420.Q
L_46657.K
L_58420.O
L_46657.O
L_46657.L
L_46657.M
L_58420.L
```
... |
2018/03/19 | 1,297 | 4,325 | <issue_start>username_0: I would like to retrieve reviews for a clinic in New York via the Yelp API. However, the API only seems to only return the first three reviews.
**My code**
```
# Finding reviews for a particular clinic
import http.client
import json
import urllib.parse
api_key= 'MY API KEY'
API_HOST = 'http... |
2018/03/19 | 1,013 | 4,026 | <issue_start>username_0: My code currently looks like like:
```
foreach(var request in requestsList){
foreach(var myVar in request.anotherList){
if(myVar.hasPermissions()) {
//do something
}
}
}
```
`requestsList` is a `List` of `Request`s.
`myVar.hasPermissions()` requires a connect... |
2018/03/19 | 1,817 | 6,553 | <issue_start>username_0: Setup:
Reservations can be assigned multiple Resources. A reservation-resource combo can have multiple SetUps.
I tried to set up the model like this:
```
class SetUp < ApplicationRecord
has_many :reservation_resource_set_ups, dependent: :destroy
has_many :reservations, through: :reservat... |
2018/03/19 | 432 | 1,319 | <issue_start>username_0: I have list as follows:
```
readonly List carMake = new List
{
"Toyota",
"Honda",
"Audi",
"Tesla"
};
```
I have a string at runtime which is as follows:
```
string strOutput = "Project1:Toyota:Corolla";
```
Now, I will like to use strOutput and carMake to make sure the string as c... |
2018/03/19 | 1,404 | 3,661 | <issue_start>username_0: I have multiple (type) inputs put inside a list `x` and I'm doing the `test train split` using:
```
x = [some_matrix, scalar_value, something_else, ...]
x0_train, x0_test, x1_train, x1_test, ... , y_train, y_test =
train_test_split(x[0],x[1],... , y, test_size=0.2, random_state=np.random, ... |
2018/03/19 | 1,121 | 3,566 | <issue_start>username_0: I want to move an IMG via an arrow key using jQuery. I do not know how to use a method on a document. I do not know whether or not to use parentheses at the end of the method in the switch statement.
```
function moveIMG(event) {
var x = event.keyCode;
switch(x) {
case 37:
doLeft;
break... |
2018/03/19 | 473 | 1,601 | <issue_start>username_0: I'm hosting my first shiny app from [www.shinyapps.io](http://www.shinyapps.io). My r script uses a glm I created locally that I have stored as a .RDS file.
How can I read this file into my application directly using a free file host such as dropbox or google drive? (or another better alternat... |
2018/03/19 | 282 | 1,088 | <issue_start>username_0: Im adding flash message on form submit.
After successful submission im redirecting to route, then displaying the message via base twig template.
But when user goes to another location on the site and then clicks "back" button in the browser message is appearing again.
Is this normal behavior ... |
2018/03/19 | 1,517 | 6,193 | <issue_start>username_0: How do you protect, sanitize applications that take raw JSON bodies and typically output JSON responses and don't use Spring Boot. I only saw one good example that might work and used JsonComponent. If we don't use jsoncomponent, how to filter out a request to remove bad cross site scripting ta... |
2018/03/19 | 999 | 3,100 | <issue_start>username_0: I've been using the Measurement object to convert from mostly lengths. But I have a strange issue. If I convert from miles to feet I get almost the right answer.
```
import Foundation
let heightFeet = Measurement(value: 6, unit: UnitLength.feet) // 6.0ft
let heightInches = heightFeet.convert... |
2018/03/19 | 622 | 1,841 | <issue_start>username_0: I have this check in my script:
```
[[ $KEY == contact@(s|_groups) ]] && CONFIG[$KEY]="$VALUE"
```
It is writing lines that contain contact\* from one file to an array. How can I add another check that will skip the xi\* values in that line and write it in the array?
I tried something like:... |
2018/03/19 | 917 | 2,835 | <issue_start>username_0: I'm trying ES6 template literals for multiline strings. The following one works well:
```js
var customer = { name: "Foo" }
var card = { amount: 7, product: "Bar", unitprice: 42 }
var message = `Hello ${customer.name},
want to buy ${card.amount} ${card.product} for
a total of ${card.amount ... |
2018/03/19 | 601 | 2,449 | <issue_start>username_0: If label `title` contains value from `stadiumName`, then `numberOfRowsInSection` function will return a value `first!.count`.
If label `title` contains value from `countryName`, then `numberOfRowsInSection` function will return a value of `3`.
```
func tableView(_ tableView: UITableView, num... |
2018/03/19 | 728 | 2,616 | <issue_start>username_0: I'm triying to create my first lambda function in Java.
I want to start with a little example, reading a S3 Input Event.
It's my code:
```
package com.amazonaws.lambda.alfreddo;
import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.RequestHandler... |
2018/03/19 | 674 | 2,360 | <issue_start>username_0: So for a school project I have to create some playing field and afterwards it has to be checked.
My thought was to add a grid in python, just a simple list
```
grid = ([[' ',' ',' ',' ',' ',' '],
[' ',' ',' ',' ',' ',' '],
[' ',' ',' ',' ',' ',' '],
[' ',' ',' ',' '... |
2018/03/19 | 453 | 1,701 | <issue_start>username_0: I need to be able to edit content in a mat-chip.
The process is pretty straightforward in HTML:
```html
Editable content
```
[StackBlitz demo](https://stackblitz.com/edit/angular-vyx47b)
You can properly edit the content, however you can't delete it with [DELETE] or [BACKSPACE]. However yo... |
2018/03/19 | 644 | 2,565 | <issue_start>username_0: Recently I came accross a class containing a private unique pointer member variable. In the constructer it was initialized with make\_unique and in the destructer it was cleared with reset. I know that make\_unique performs a heap allocation. Is there any reason for this overhead ? Why not use ... |
2018/03/19 | 860 | 3,211 | <issue_start>username_0: I trying to get base64 string (using'@ionic-native/base64') of an image file uri from ('@ionic-native/image-picker'), but after running this code image seems to be broken. Any suggestions?
My html:
```
![]()
```
Picker options:
```
this.pickerOptions = {
maximumImagesCount: 1,
... |
2018/03/19 | 722 | 2,093 | <issue_start>username_0: We have an invoice # format the is very strict and must match a certain format. We do this manually and I often get multiple variations so was trying to create data validation to control the entry of the invoice number.
Here’s the format:
YYYYMMDD-RNN
1. The invoice number is exactly 12 char... |
2018/03/19 | 1,625 | 5,032 | <issue_start>username_0: We've started to learn about stored procedures in class the other week, professor already gave a big assignment that is very complicated, and at this point I'm very confused. I'm not even sure what exactly am I trying to accomplish here.
I need to create a procedure for the following select st... |
2018/03/19 | 948 | 3,354 | <issue_start>username_0: I build react native app and I use with scrollView for header with list of text horizontal.
The issue is that the height of the scroll view takes half size of the screen. Even after declared it as a style, it still stays as it is.
screen with the scrollView
```js
{this.props.ExtendedNavigat... |
2018/03/19 | 573 | 2,192 | <issue_start>username_0: I have written a Python script that I need to share with folks who may or may not have Python installed on their machine. As a dirty hack I figured I could copy my local Python3.6 install into the same folder as the script I made, and then create a .bat file that runs python from the copied Pyt... |
2018/03/19 | 631 | 2,147 | <issue_start>username_0: I have a pyspark data frame that looks like this:
```
df.show()
+---+
|dim|
+---+
|1x1|
|0x0|
|1x0|
+---+
```
The data type in `dim` is `str`. Now I want to separate `dim` into 2 column, and have something like this:
```
df.show()
+---+----+----+
|dim|dim1|dim2|
+---+----+----+
|1x1| 1| ... |
2018/03/19 | 746 | 2,631 | <issue_start>username_0: the problem seems to be with the compiler I'm using though I'm fairly new to programming so I'm not sure how to mess with that(I'm using VSCode on Mac OSX)
This is my header:
```
#ifndef STICKMAN_H
#define STICKMAN_H
class Stickman{
public:
Stickman();
};
#endif
```
This is my source file:... |
2018/03/19 | 1,559 | 4,587 | <issue_start>username_0: I was trying to plot some predicted vs. actual data, something that resembles the following:
```
# Some random data
x <- seq(1: 10)
y_pred <- runif(10, min = -10, max = 10)
y_obs <- y_pred + rnorm(10)
# Faking a CI
Lo.95 <- y_pred - 1.96
Hi.95 <- y_pred + 1.96
my_df <- data.frame(x, y_pred, y_... |
2018/03/19 | 1,282 | 3,856 | <issue_start>username_0: I have an existing collection of variables a\_0,...,a\_45 where a\_i represents the amount of stuff I have on day i. I'd like to create a new collection of variables b\_0,...,b\_45 to represent the incremental change in stuff I have on day i (i.e. b\_k=a\_k-a\_(k-1) ). My approach:
```
data te... |
2018/03/19 | 574 | 2,292 | <issue_start>username_0: I have an S3 location with the below directory structure with a Hive table created on top of it:
```
s3:///
/
```
Let's say I have a Spark program which writes data into above table location spanning multiple partitions using the below line of code:
```
Df.write.partitionBy("orderdate").pa... |
2018/03/19 | 4,087 | 14,401 | <issue_start>username_0: Problem
-------
On a brand new react native project (created with `create-react-native-app`), the gradle build fails.
Output
------
### --debug
`$ cd android/
$ ./gradlew build --debug`
gives this output (truncated to the error point)
```
16:17:09.777 [DEBUG] [com.android.build.gradle.int... |
2018/03/19 | 809 | 3,024 | <issue_start>username_0: I know this has been ask3d before but I have tried several of the posts but still cannot get it to work. I am being forced to use strict mode for url redirects and no matter what I put for the domain nothing works.
```
php
if(!session_id()){
session_start();
}
// Include the autoloader pr... |
2018/03/19 | 692 | 2,324 | <issue_start>username_0: I am trying to install Tabula for Python, as it seems it is the way of extracting tables from PDFs. However I am unable to install it.
I am using Anaconda and have followed the step on Tabula's Anaconda page (<https://anaconda.org/auto/tabula>) to attempt to install it:
```
conda install -c a... |
2018/03/19 | 495 | 1,645 | <issue_start>username_0: Below is the my ansible tasks which will fetch domain name and which will register the output to item value so that i can use the variable across my playbook.
```
- name: Fetching the domain name
shell: dnsdomainname | cut -d "." -f 1
register: domain_name
- debug:
msg: "DC detected... |
2018/03/19 | 429 | 1,444 | <issue_start>username_0: Does anyone know if there is a way to have any webpage on our website to be defaulted to scale at 50% when someone tries printing from the browser? Or do I need to go in and create @print styles for printing?
Everything looks perfect at 50% but for some reason scaled at 100% looks like the br... |
2018/03/19 | 808 | 2,475 | <issue_start>username_0: I have this bash script that runs calculus operations for me. It starts off with "read"...
How can I make Script A enter a value into Script B, read the output and dismiss Script B again?
Example:
```
#ScriptA.sh
a=12
b=4
[open Script B, enter $a and $b and read the result]
echo "The result... |
2018/03/19 | 752 | 2,335 | <issue_start>username_0: I have datasets which measure voltage values in certain column.
I'm looking for elegant way to extract the rows that is deviated from mean value. There are couple of group in "volt\_id" and I'd like to have each group create their own mean/std and use them to decide which rows are deviated from... |
2018/03/19 | 1,120 | 4,973 | <issue_start>username_0: I know this has been asked 100 times already but none of the solutions seem to be working for me.
Want to read the database of "user\_preferences" for the user that is signed in (userID) and read the gender/age/weight/height values and store them in the variables shown below. currently returns... |
2018/03/19 | 746 | 2,867 | <issue_start>username_0: I am trying to write a function to search for a specific date, entered as a parameter, in a range of cells in an adjacent worksheet. On finding the date, the function should return a string, "found: " and the cell reference.
All seems to be working well enough, but the function returns 'nothi... |
2018/03/19 | 1,758 | 5,505 | <issue_start>username_0: Whenever I try to insert values in form it gives error...
>
> com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'regno' in 'field list'com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'regno' in 'field list'
> at sun.reflect.NativeConstructorA... |
2018/03/19 | 508 | 1,522 | <issue_start>username_0: I would like, from a pair of lists, say:
```
a = ['str1', 'str2', 'str3', 'str4', 'str5']
b = [var1, var2, var3, var4, var5]
```
to be able to create multiple dictionaries, with arbitrarily selected pairs of elements from a (as keyword) and b (as value). I have found in a comment on an answe... |
2018/03/19 | 529 | 1,818 | <issue_start>username_0: I need to make a page in SuiteCRM (v7.9 -- based loosely on Sugar 6.5 CE) that has a list of objects (of a custom module), with checkboxes in front of each one. So far, so good: that's a standard ListView.
The catch is that only *some* records should be in the list (filtering on whether there ... |
2018/03/19 | 422 | 1,352 | <issue_start>username_0: I have a sequelize model that uses mysql functions to create guid such as:
```
guid: {
type: DataTypes.STRING.BINARY,
defaultValue: sequelize.fn('UuidToBin', sequelize.fn('uuid')),
primaryKey: true
},
inProcess: DataTypes.BOOLEAN,
...
```
I successfully create new records includ... |
2018/03/19 | 1,226 | 3,854 | <issue_start>username_0: Earlier I was pointed out how to achieve a certain layout I wanted to have for my page. However, this messes with my image height. As far as I understand, `height: auto;` should set the height to right proportion when a certain `width` is set.
Here's my code:
```
.floatingImage {
widt... |
2018/03/19 | 460 | 1,646 | <issue_start>username_0: Is there any other than `HyperOpt` that can support multiprocessing for a hyper-parameter search? I know that `HyperOpt` can be configured to use `MongoDB` but it seems like it is easy to get it wrong and spend a week in the weeds, is there anything that is more popular and effective?<issue_com... |
2018/03/19 | 2,515 | 9,044 | <issue_start>username_0: In a project that is an Activity Model, Presenter and Model, the Activity Theme and Presenter and Presenter Model. When I do @Inject in Presenter to instantiate the Model it is never instantiated.
Do you need a dependency "cascade"?
>
> FATAL EXCEPTION: main Process: fipedaggerrxjava, PID: 2... |
2018/03/19 | 450 | 1,809 | <issue_start>username_0: I'm developing a new Angular based application, with a login form based on email and password.
It have a form for these fields, defined by the following lines:
```
let formConfig = {
email: ['', [Validators.required, Validators.email]],
password: ['', [Validators.required]],
};
this.form... |
2018/03/19 | 1,522 | 5,473 | <issue_start>username_0: I'm trying to find the longest palindrome. I have two pointers starting at the first letter of the string. For each letter in the outer loop, I go through all the other letters in the inner loop and use the substring which is the difference between the starting letter(outer loop) and the ending... |
2018/03/19 | 866 | 3,264 | <issue_start>username_0: I was hoping to use InheritedWidget at the root level of my Flutter application to ensure that an authenticated user's details are available to all child widgets. Essentially making the Scaffold the child of the IW like this:
```
@override
Widget build(BuildContext context) {
return new Authen... |
2018/03/19 | 276 | 1,099 | <issue_start>username_0: I have a kubernetes cluster and I am using traefik ingress controller to route traffic to deployments inside the kubenetes cluster.
I am able to use `ingress.kubernetes.io/rewrite-target` annotation to change the incoming request path to the one expected by the backend.
For example : `/star` i... |
2018/03/19 | 799 | 2,967 | <issue_start>username_0: I'm trying to use WinAppDriver, Appium & C# to do some UI automation on an ancient Delphi 5 application. It fires up the app, there's a little splash screen then a windows modal box for logging in. The usernames already filled out, so just type out the password and press the OK button.
```
va... |
2018/03/19 | 611 | 2,347 | <issue_start>username_0: Is there a way to create traffic policies through CloudFormation or Terraform in AWS?
I find resource for creating hosted zones and record sets, but I want to create a traffic policy to route my traffic 50% and 50% in different regions.<issue_comment>username_1: The [AWS CloudFormation Resourc... |
2018/03/19 | 1,239 | 4,291 | <issue_start>username_0: I have django 1.11.5 app with celery 4.1.0 and I recived all the time:
```
kombu.exceptions.EncodeError: is not JSON serializable
```
my settings.py:
```
CELERY_BROKER_URL = 'amqp://localhost'
CELERY_RESULT_BACKEND = 'amqp://localhost'
CELERY_ACCEPT_CONTENT = ['application/json']
CELERY_RE... |
2018/03/19 | 513 | 1,773 | <issue_start>username_0: I need to replace a backslash with something else and wrote this code to test the basic concept. Works fine:
```
test_string = str('19631 location android location you enter an area enable quick action honeywell singl\dzone thermostat environment control and monitoring')
print(test_string)
te... |
2018/03/19 | 321 | 1,017 | <issue_start>username_0: I have this array of tuplets containing strings and a url
```
var notifications:[(body: String, header: String, icon: URL)] = []
```
Now, I want to append a tuplet with an empty URL
I tried
```
notifications.append((body: "some text, header: "some more text", icon: nil))
```
but that is ... |
2018/03/19 | 1,258 | 4,039 | <issue_start>username_0: I am not an expert when it comes to using Excel and Excel functions so any help would be greatly appreciated. I have 2 different data sets which have different time intervals which I would like to show on the same graph. A sample from the 2 data sets is the following: (A1:B14 is the first data ... |
2018/03/19 | 1,294 | 3,921 | <issue_start>username_0: I have a problem related to different types of variables at the input type.
My program is simple. I type the temperature in Celsius, program prints Celsius and Fahrenheit temperature value and then loops itself asking for next value in Celsius. If you type "-99999" it will stop.
I wanted to cha... |
2018/03/19 | 2,653 | 9,066 | <issue_start>username_0: I already got how can i copy specific column from another workbook but now i also need to filter a specific column. I have tried this code but i encounter an error "Subscript out of range".
I need to filter Column C that contains "Mary" and copy its corresponding data.
This is the sample of m... |
2018/03/19 | 728 | 2,745 | <issue_start>username_0: I am trying to set location in componentDidMount. I am guessing `this` is not being passed in to the internal function.
See my example:
```js
import React, { Component } from 'react';
import GoogleMapReact from 'google-map-react';
const map = {
width: '100%',
height: '100vh'
};
co... |
2018/03/19 | 813 | 3,052 | <issue_start>username_0: I am super new to using Node.js, NPM and all these modern tools for better productivity and workflow.
So here are the details:
```
Node version - v8.10.0
Gulp CLI version - 2.0.1
Gulp Local version - 3.9.1
NPM version - 5.6.0
Windows 7
Node.js installed in D:/ProgramFiles
```
I've tr... |
2018/03/19 | 664 | 2,569 | <issue_start>username_0: I have a lot of arguments for my script. And along with the argparser, I want users to also have the option to specify those arguments via a config file.
```
parser.add_argument('-a','--config_file_name' ...required=False)
parser.add_argument('-b' ...required=True)
parser.add_argument('-c' ...... |
2018/03/19 | 555 | 2,416 | <issue_start>username_0: I would like to know if there is a way to obtain a reference to a view inside a DataTemplate in a ListView in Xamarin.Forms.
Supposing I have this xaml:
```
```
I would like to be able to grab a reference to the StackLayout named "ProductStackLayout" in every row of the ListView. I need to d... |
2018/03/19 | 310 | 1,115 | <issue_start>username_0: I am trying to set the selected value of a drop down in Angular 5.
HTML:
```
{{state.name}}
State is required
```
TypeScript:
```
stateFormControl = new FormControl('', [
Validators.required
]);
this.vendorForm.controls["state"].setValue(this.state);
```
Even when I set the defa... |
2018/03/19 | 2,044 | 7,484 | <issue_start>username_0: What is the best practice for reducing the size of JPEG images in a PDF file, newly created using [iText](https://itextpdf.com)? (My objective is a trade-off between image quality and file size.)
The images are created as follows:
```
Image image = new Image(ImageDataFactory.create(imagePath)... |
2018/03/19 | 544 | 1,956 | <issue_start>username_0: Q1. **How do I display a table in AngularDart**? I just can't seem to find any examples of this on the Internet for some reason.
I'm not familiar with either JS or Dart and I'm not sure if they're compatible or not (interchangeable).
At this point any table at all will do but eventually the o... |
2018/03/19 | 325 | 1,203 | <issue_start>username_0: I am having trouble initializing a List of monobehavior objects inside a non-monobehavior class. I was wondering if this is something that cant be done or if my problem is elsewhere. Thanks.<issue_comment>username_1: Ok I think I got it. So soon after posting. If I change the table to be like t... |
2018/03/19 | 416 | 1,385 | <issue_start>username_0: I have a progress bar:
[](https://i.stack.imgur.com/JCxwH.png)
For some reasons, I can seem to move the value of to the center.
```
.progressBar {
border: black solid 1px;
text-align: center;
}
#progressBarText {
text-align: center;
... |
2018/03/19 | 754 | 2,712 | <issue_start>username_0: Can you please explain how to make the code say something else like "Wrong" when an integer is entered instead of a string
eg:
```
name = ("Enter you name: ")
if name == int:
print("Wrong")
```
I tried to use the code i used above but the program just skipped it.<issue_comment>username_1... |
2018/03/19 | 663 | 1,936 | <issue_start>username_0: I want to align the description text of `mat-expansion-panel` component to the right
I have tried using align-text to right but nothing is changing
Here's my HTML
```
Cycle ingénieur en informatique
2014-2017
....
```
CSS :
```
mat-panel-description {
text-align: right;
}
```
H... |
2018/03/19 | 1,150 | 2,856 | <issue_start>username_0: I have a numpy array:
```
>>> n1 = np.array([1, 1, 2, 1, 4, 5, 3, 8, 2, 9, 9])
```
From this, I can get the number of elements from the beginning up to the highest value before the next lower number begins begins like this:
```
>>> wherediff = np.where(n1[1:]-n1[:-1] < 0)
>>> wherediff = wh... |
2018/03/19 | 1,338 | 4,679 | <issue_start>username_0: I am getting undefined is not an object evaluating \_this.props.navigation. Here is my code.
>
> I want to use the in multiple screens so I have to
> extract it out and call it in any I need it in.
>
>
>
I have tried <https://github.com/react-navigation/react-navigation/issues/2198#issue... |
2018/03/19 | 845 | 3,238 | <issue_start>username_0: Im developing an android APP which has a Broadcast-Receiver based on SMS incoming message.
I want to track every message from specific senderNumber, and do some stuff with that SMS, for example, retrieve some data from every message.
The messsage body I want to analyse is this:
>
> "Usted h... |
2018/03/19 | 589 | 2,075 | <issue_start>username_0: I'm trying to use a basic on click to expand so when the user clicks on the title it shows more details but for some reason it isn't working.
Here is the page in question:
<http://eftposnz.wpengine.com/integrated-eftpos/pos-vendors/>
I'm not sure if the issue is with the code itself or if I'... |
2018/03/19 | 602 | 2,430 | <issue_start>username_0: Imagine this scenario - My javascript based web application, which allows users to buy an insurance policy, is accessed by users across the globe. In this application, accurate age calculation is of prime importance as the insurance premiums are calculated based on the age. The age should be ca... |
2018/03/19 | 805 | 1,524 | <issue_start>username_0: Here is the following test dataframe
```
In [32]: frame = pd.DataFrame(np.random.randn(4, 3)*1000000, columns=list('bde'), index=['Utah', 'Ohio', 'Texas', 'Oregon'])
In [33]: frame
Out[33]:
b d e
Utah 1.582808e+05 -351731.845560 -5.832029e+04
Oh... |
2018/03/19 | 3,999 | 5,343 | <issue_start>username_0: I am generating a pandas dataframe with some data (some are numpy arrays) and saving the data with the pandas.to\_csv function.
However, when reading the csv file to a dataframe again with pandas.read\_csv I notice that pandas added line breaks within the numpy array like so (see last output)... |
2018/03/19 | 922 | 3,735 | <issue_start>username_0: I have set the delegate in the viewDidLoad() method and also checked the IB to see if the delegate shows up when using (control + drag) and it does infact show as being hooked up. I deleted it as well and added a new SearchBar entirely in IB and hooked it back up. Nothing seems to do the trick.... |
2018/03/19 | 1,454 | 5,375 | <issue_start>username_0: I am using wiremock to mock github api to do some testing of my service.
The service calls github api. For the tests I am setting endpoint property to
```
github.api.endpoint=http://localhost:8087
```
This host and port are the same as wiremock server `@AutoConfigureWireMock(port = 8087)` s... |
2018/03/19 | 1,410 | 4,963 | <issue_start>username_0: I am storing datetime in a stringified JSON object in Redis cache like so:
```
"{\"email\":\"<EMAIL>\", \"expiry\": \"2018-03-19T23:00:03.0658822+00:00\"}"
```
In C#, when I query this data from Redis and convert it to string, it loses its timezone value and gets automatically stripped off o... |
2018/03/19 | 1,385 | 5,018 | <issue_start>username_0: The split method for strings only takes a parameter for the delimiter, but how do I easily split by every (or every other, etc) letter? This method works to split by every letter, but seems clumsy for a simple task.
```
a=' '.join(string.ascii_lowercase).split()
```
I suppose a function coul... |
2018/03/19 | 1,404 | 4,966 | <issue_start>username_0: I have a list of strings and stringOutput as example:
```
readonly List carMake = new List
{
"Toyota",
"Honda",
"Audi",
"Tesla"
};
string myFunction()
{
// do some processing...
string stringOutput = CallGetLatestRecord();
// the above returns "a:toyota:c"
//Call another function af... |
2018/03/19 | 887 | 3,289 | <issue_start>username_0: I'm working on the following practice problem from [GeeksForGeeks](https://www.geeksforgeeks.org/add-two-numbers-without-using-arithmetic-operators/):
>
> Write a function Add() that returns sum of two integers. The function should not use any of the arithmetic operators (+, ++, –, -, .. etc)... |
2018/03/19 | 5,229 | 10,132 | <issue_start>username_0: I am trying to fit empirical CDF plot to two Gaussian cdf as it seems that it has two peaks, but it does not work. I fit the curve with **leastsq** from **scipy.optimize** and **erf** function from **scipy.special**. The fitting only gives constant line at a value of 2. I am not sure in which p... |
2018/03/19 | 543 | 1,593 | <issue_start>username_0: I am trying to make my `h1` be inline within my box like [this](https://i.stack.imgur.com/04Xa8.png). Currently my H1 text is stacked on top of each other [and looks like this](https://i.stack.imgur.com/LWBtx.png). I want this to be inline rather than stacked on top of one and other, I have tri... |
2018/03/19 | 1,197 | 4,264 | <issue_start>username_0: I have large datasets from 2 sources, one is a huge csv file and the other coming from a database query. I am writing a validation script to compare the data from both sources and log/print the differences. One thing I think is worth mentioning is that the data from the two sources is not in th... |
2018/03/19 | 755 | 2,992 | <issue_start>username_0: I'm using Anaconda 5.1 and Python 3.6 on a Windows 10 machine.
I'm having quite a few problems ; I tried to add some useful tools such as lightGBM, tensorflow, keras, bokeh,... to my conda environment but once I've used
`conda install -c conda-forge packagename`
on all of these, I end up hav... |
2018/03/19 | 354 | 997 | <issue_start>username_0: help! I dont have any knowledge about regex but I need to use it in my sql query (amazon redshift). I have list like this: [1245,2324,4433] and I would like to get first number (1245). How can I do that?
regards<issue_comment>username_1: ```
select (regexp_matches('[1245,2324,4433]', '\d+'))[1... |
2018/03/19 | 1,028 | 3,341 | <issue_start>username_0: So I am working on code in a class, and I have a problem where my teacher wants me to: *"Write a Python function that will take a list of numbers as a parameter(list can be a mixed list), and returns a new list comprised of the integer values(truncated in the case of a float), of the original l... |
2018/03/19 | 1,053 | 2,856 | <issue_start>username_0: I'm trying to `scale()` only numeric columns IF a `data.frame` contains a mix of numeric and non-numeric columns of data. (Initially, I am wondering if there could be an `if` statement showing if a `data.frame` contains non-numeric data?)
Note that I want to keep the original `data.frame` var... |
2018/03/19 | 890 | 3,039 | <issue_start>username_0: We have an Oracle database with the following charset settings
>
> SELECT parameter, value FROM nls\_database\_parameters WHERE parameter like 'NLS%CHARACTERSET'
>
>
>
```
NLS_NCHAR_CHARACTERSET: AL16UTF16
NLS_CHARACTERSET: WE8ISO8859P15
```
In this database we have a table with a `CLOB... |
2018/03/19 | 788 | 3,049 | <issue_start>username_0: I have code in one folder, and want to import code in an adjacent folder like this:
```
I am trying to import a python file in innerLayer2, into a file in innerLayer1
outerLayer:
innerLayer1
main.py
innerLayer2
functions.py
`... |
2018/03/19 | 549 | 1,983 | <issue_start>username_0: So I am trying to get the user input(value) of this select option button. Everything I look at online dosen't really tell me how to get this button value so I can use it and manipulate it, please help
<issue_comment>username_1: The easiest way is:
Move ... |
2018/03/19 | 2,391 | 5,267 | <issue_start>username_0: This is not a "vlookup-and-fill-down" question.
My source data is excellent at delivering all the data I need, just not in in a usable form. Recent changes in volume mean manually adjusted fixes are no longer feasible.
I have an inventory table and a services table. The inventory report doe... |
2018/03/20 | 446 | 1,633 | <issue_start>username_0: similar question has been asked before however I am not sure if the proposed solutions can be applied in my case. I have generated consumerKey and consumerSecret as per the woocommerce api documentation. I have confirmed that I can get the results using these keys by calling the below url in th... |
2018/03/20 | 550 | 1,488 | <issue_start>username_0: So I have this piece from html
```
XS
10 x 10 cm
5 300 Ft
```
And I want to get that '5 300' out of it.
My code to get that:
```
print(item.find('label',{'for':'productX'}).find('span', attrs={'class': 'p'}).find('span'))
```
but it only prints out this:
```
```
I hope somebody ... |
2018/03/20 | 731 | 2,359 | <issue_start>username_0: As the title says, I need to access each `child` element of the map function of all children, `React.Children.map(this.props.children, (child)...`
I need this because I want to conditionally render certain props, and also prevent rendering based on certain conditions depending on which child i... |
2018/03/20 | 447 | 1,595 | <issue_start>username_0: I'm trying to move the order review section to the top of Woocommerce checkout page and this is working:
```
remove_action( 'woocommerce_checkout_order_review', 'woocommerce_order_review', 10 );
add_action( 'woocommerce_before_checkout_form', 'woocommerce_order_review', 20 );
```
But when... |