date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/09 | 581 | 1,877 | <issue_start>username_0: I have in my test module:
```
import pytest
from src.model_code.central import AgentBasic
class AgentBasicTestee(AgentBasic):
pass
@pytest.fixture()
def agentBasic():
return AgentBasicTestee()
@pytest.mark.parametrize('alpha, beta, delta, expected', [
(2, 1, 1, pytest.approx(1))... |
2018/03/09 | 924 | 3,178 | <issue_start>username_0: I have the requirement to poll the database every x seconds and pull out records that need to be processed. I will start a thread for each of these rows. The next time I poll the threads may not have completed yet. I don't want to start another thread for the same ID as it is still processing. ... |
2018/03/09 | 1,098 | 3,516 | <issue_start>username_0: I want to place an image next to some text inside a div but the image was pushed into the next div below and won't move up no matter how much I increase the margin or padding. I want the center of the image to be where the tip of the arrow is in the picture:
[Here's where the image is and wher... |
2018/03/09 | 245 | 889 | <issue_start>username_0: How can I detect if a table has no entries using Room Persistence Library? I can't find any information on how to tackle this issue.<issue_comment>username_1: Create a `SELECT count(*) FROM ...` query that returns an int or a `SELECT * FROM ...` query that returns an array and check the size of... |
2018/03/09 | 1,004 | 2,592 | <issue_start>username_0: I have a text that is unarranged say as an example
```
randstr='''
Hello Abou al Reeem
HAbibi abou lbeess
dkhlak 3amak l khil wen
Li aslan 7adan be3rif shi 3an l bazz ?
Sara7a wala 7adan by3rif 3an l ken3an
Grave is 22 and Tony is 15
Rami is 44 and Aya is 40
'''
```
where as you can see th... |
2018/03/09 | 523 | 1,376 | <issue_start>username_0: The latest version of beam-sdks-java-core is 2.3.0. However, if my pipeline code uses beam-sdks-java-core 2.2.0, then would my pipeline use 2.2.0 or 2.3.0 while running in Dataflow?<issue_comment>username_1: You don't need regular expressions here at all. Split on two newlines, and then success... |
2018/03/09 | 386 | 1,328 | <issue_start>username_0: I'm trying to highlight cells B3:D9 if the difference between D8 & D9 is more than or equal to 10,000.
I set up a true/false formula rule `=ABS($D8-$D9) >=10000` that applies to cells `=$B$3:$D$9`. When it's true, the range of cells should be highlighted and when it's false, it should go back ... |
2018/03/09 | 1,284 | 3,633 | <issue_start>username_0: I'm new to PHP and trying to understand an existing code and modify it for a new requirement. This PHP code is called from 3rd party RESTful service using JSON. Here is the part of the code.
```
$json = json_decode(utf8_encode(file_get_contents("php://input")),TRUE);
// I have to check if th... |
2018/03/09 | 1,219 | 3,988 | <issue_start>username_0: I am writing a node.js application using TypeScript and Mongoose. I am using the TypeScript model approach and continue to receive "cannot read property CasterConstructor' of undefined" when I call the create method to create a new subdocument. An example of the code is outlined below:
```
sea... |
2018/03/09 | 2,237 | 8,417 | <issue_start>username_0: If I make changes to my angular app the chunk names will change on build and the old version will be removed from the dist folder. Once deployed, if a user is currently on the site, and then navigates to another part of the site, I get a "loading chunk failed" error because the old file is no l... |
2018/03/09 | 2,455 | 8,876 | <issue_start>username_0: I intermittently get an error when adding an entry to an array. Any help would be appreciated. My code is:
```
protected ArrayList getSpeedDatesList(){
int idx = getCurrentIndex();
speedDatesList = null;
speedDatesList = new ArrayList(width);
for(int i=0; i= (width - 1)){
idx = 0;
}
}
... |
2018/03/09 | 404 | 1,621 | <issue_start>username_0: According to docs the constraints instance property is
>
> The constraints held by the view.
>
>
>
```
var constraints: [NSLayoutConstraint] { get }
```
but when I created them with
```
SampleView.rightAnchor.constraint(equalTo: right ,constant: rightConstant).isActive = true
```
... |
2018/03/09 | 418 | 1,601 | <issue_start>username_0: Hi, I have two data frames. Both with two columns, identifier and weight.
What I would like is, for each "key" so A and B, if the second column have opposite signs accross the two dataframes (so one is positive and one is negative, then create a new column with the lowest absolute value).
``... |
2018/03/09 | 596 | 1,843 | <issue_start>username_0: I am fairly new to sql so please bare that in mind, I am looking to sum the total of two 'centers' for a specific column..
Here is my sql query;
```
select center, sum(convert(float,vol_ipm)) as Vol_Ipm
from example_Test
where daterange = '2016-11-01'
group by center
```
The results are dis... |
2018/03/09 | 881 | 3,024 | <issue_start>username_0: OS : Ubuntu 16.04
Python 2.7
```
pip list | grep gev
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
gevent (1.3a2)
```
Just t... |
2018/03/09 | 1,300 | 3,214 | <issue_start>username_0: In the following dataframe, I want to find out what is the *last value* in each row, and also the *column name* that contains the last value.
df
```
ID c1 c4 c3 c2 c8 c7
1 1 2 2 1 NaN NaN
2 1 2 1 NaN NaN NaN
3 1 1 NaN NaN 2 1
`... |
2018/03/09 | 779 | 2,790 | <issue_start>username_0: I have been using neo4j on my local machine for a while and it seemed to work well, but suddenly for one specific query I am getting this error message (all other queries are working fine):
WebSocket connection failure. Due to security constraints in your web browser, the reason for the failur... |
2018/03/09 | 746 | 2,376 | <issue_start>username_0: I have got a `.` (dot) separated string, from which I want to create nested JSON object. The length of the string is not fixed. For example,
```
var string = 'a.b.c.d';
```
Then my JSON object should be as following:
```
a: {
b: {
c:{
d: {
//Some pr... |
2018/03/09 | 675 | 2,548 | <issue_start>username_0: I have the following code for a Cell item in ListView:
```
Widget build(BuildContext context) {
return new Container(
height: 120.0,
padding: new EdgeInsets.only(left: 8.0, top: 4.0, right: 8.0, bottom: 4.0),
child: new Row(
mainAxisAlignment: MainAxisAlignment.st... |
2018/03/09 | 1,161 | 4,654 | <issue_start>username_0: I have a button that, when clicked, should save in the database that the user has drunk water. I just wanted to check whether NullBooleanField would be the correct way to define this.
A broader question that if answered would be useful to the community is a list of optimal circumstances under ... |
2018/03/09 | 1,199 | 4,745 | <issue_start>username_0: I am working on a download feature for my GUI that will allow the end user to be able to input a 5 digit job number and download only those files from the FTP site. In doing this, I have been able to get a list of the directory, but I have not been able to use that list to get the files. Any he... |
2018/03/09 | 970 | 2,962 | <issue_start>username_0: My case is similar to connect Google.com by python 'telnetlib'
With python Anaconda 2.7.10 shell I have the blow script that works well:
```
HOST ="www.google.com"
tn=telnetlib.Telnet(HOST,"80")
tn.write("GET /index.html HTTP/1.1\nHost:"+HOST+"\n\n")
l=tn.read_all()
print(l)
```
which give... |
2018/03/09 | 594 | 2,188 | <issue_start>username_0: I'd like to distribute prebuilt binaries for a native Node.js add-on for Electron.
Presumably Node ABI changes between major bumps so I wonder if running `node-pre-gyp` with the right version of Node.js is gonna cut it or do I have to run `electron-rebuild` and publish rebuilt binaries?
A lit... |
2018/03/09 | 810 | 3,226 | <issue_start>username_0: I am performing a capacity test in my local network using an Apache Server on an Ubuntu Virtual Machine, running JMeter on a physical Ubuntu machine.
Increasing the request rate I can easily observe the maximum throughput and describe how it saturates starting from a given request rate, I see ... |
2018/03/09 | 782 | 2,880 | <issue_start>username_0: I’m developing a Xamarin app that uses Azure AD B2C and I’m having some trouble.
Even though I have LinkedIn, Google, Microsoft, Facebook, and Twitter setup as Identity Providers, the only thing I am ever prompted for is my Microsoft account. I don’t see any of the other buttons when my app in... |
2018/03/09 | 833 | 2,718 | <issue_start>username_0: I work with a data set of customers purchase baskets. Here is a sample of it:
```
basket item quant
1 1 B 1
2 1 A 2
3 1 C 1
4 2 A 1
5 2 C 1
6 3 A 2
7 4 B 1
8 4 C 1
```
Here is the code for repro... |
2018/03/09 | 726 | 2,742 | <issue_start>username_0: In Kentico 10, I've created a custom table for an employee directory, with columns for name, job title, department, etc.
Now I want to display a list of all departments. So I've added a custom table repeater web part to my page, set its data source to my custom table, and assigned a transforma... |
2018/03/09 | 886 | 2,944 | <issue_start>username_0: How can I style a component to lay out subcomponents in a grid?
I've been trying to do it multiple ways:
Method 1:
=========
1. Import custom CSS Stylesheet - in the parent component, I'm importing the stylesheet with: `import './style.css'` (not the actual file, but it get's the point acros... |
2018/03/09 | 460 | 1,595 | <issue_start>username_0: I am attempting to produce a transformation matrix based on the first column of a csv file. There are 59 possible states, which are integers in a list.
At the moment my output is simply a long list of '0.000s' - in the correct size as far as I can tell (59\*59), but without the weights that it... |
2018/03/09 | 847 | 2,879 | <issue_start>username_0: I'm currently trying to write an Apps Script function that sends an email when its Google Sheet is edited. My current problem is that the function only sends one column of data and I need it send both the date and amount of inventory. This is what I currently have, I'm thinking that maybe I nee... |
2018/03/09 | 1,732 | 6,252 | <issue_start>username_0: I have 'about' controller using Navigation Bar below status bar. For some reason I have to set the background color of View to be the same color of Navigation bar, otherwise, the background of status bar will be white. This trick works fine on other device, but not on iPhoneX's landscape view. ... |
2018/03/09 | 1,787 | 5,950 | <issue_start>username_0: Here is a sample function called `index()` that I use to return an index of headers from a Markdown file. As you can see, with only 3 levels of headers, its quickly getting out of hand.
I tried a variety recursion ideas, but ultimately failed at all attempts to compile in `create-react-app`.
... |
2018/03/09 | 725 | 2,361 | <issue_start>username_0: I need to generate report like pivot table in codeigniter. It is working in mysql PHPmyadmin but when I use in codeigniter it shows sql syntax error.
```
Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syn... |
2018/03/09 | 301 | 1,340 | <issue_start>username_0: I have two classes that have the same class name and use the same package name. However, the two class files are located in different directories. One other thing that is different between the two is that each class has methods in it that do not appear in the other. In essence, I want to split ... |
2018/03/09 | 416 | 1,836 | <issue_start>username_0: I need to give users access to edit specific Azure Logic App workflows. I find I can support this with the Logic App Contributor role. At times, I have workflows that contain an XML Validation action. I do want users to be able to edit business rules before and after that action, and even confi... |
2018/03/09 | 1,825 | 7,530 | <issue_start>username_0: I wanted to write an `AndroidTest` for an App which involves writing to external storage but somehow I am not able to make it work. (Testing on several devices like Pixel2, Lg G6, Huawai P8)
So I simplified everything just to test if writing to external storage is possible at all. I experiment... |
2018/03/09 | 1,094 | 4,408 | <issue_start>username_0: I've just installed XAMMP 7.2.2 on Vista, but am unable to start Apache. Each and every time, I get the following error message :
« Apache 2 is starting ...
htttpd.exe : Syntax error on line 532 of C:/xampp/apache/conf/httpd.conf : Syntax error on line 17 of C:/xampp/apache/conf/extra/httpd-xa... |
2018/03/09 | 447 | 1,273 | <issue_start>username_0: I want to write a shell script so as to recursively list all different subdirectories which contain NEW subdirectory (NEW is a fixed name).
```
Dir1/Subdir1/Subsub1/NEW/1.jpg
Dir1/Subdir1/Subsub1/NEW/2.jpg
Dir1/Subdir1/Subsub2/NEW/3.jpg
Dir1/Subdir1/Subsub2/NEW/4.jpg
Dir1/Subdir2/Subsub3/NEW/5... |
2018/03/09 | 1,673 | 6,002 | <issue_start>username_0: I know that overriding properties of an interface in an extended interface, modifying their types, is forbidden.
I'm looking for an alternative solution that would allow me to not copy the contents of the first interface (it's pretty big).
Here is below my first naive approach. Given that bas... |
2018/03/09 | 185 | 705 | <issue_start>username_0: Why does the following code output 0 instead of 40?
```
#include
int main()
{
int volume;
int length = 5;
int width = 8;
volume = length \* width;
printf("%f", volume);
return 0;
}
```<issue_comment>username_1: The variable "volume" is Integer , you need in the printf function to ch... |
2018/03/09 | 1,301 | 4,494 | <issue_start>username_0: I am new to Cmake and I am trying to create a CMakeLists.txt to build my project. I can build my project from command line using g++ compiler but when it comes to Cmake I am confused.
The directory structure is like this :
```
Project_folder
|--> Source
|--> main.cpp
|--> fil... |
2018/03/09 | 1,722 | 6,054 | <issue_start>username_0: I am parsing some data from Json and saved into the coredata,after fetching core data showing into the tableview working fine, tableview is show all the value in repeatedly how can avoid the repeated values I tried many ways but not find way
Json format
```
{
"contacts": [
{
... |
2018/03/09 | 626 | 1,948 | <issue_start>username_0: I have an array of values, for example:
```
let values = [1, 2, 3, 4, 5];
```
And I have another array, containing objects, for example:
```
let objects = [{name: 'Dennis', value: 2}, {name: 'Charlie', value: 4}];
```
I would like to produce an array that only contains values that aren't ... |
2018/03/09 | 713 | 2,504 | <issue_start>username_0: I am wondering if there is a way to change the styling of an element when using 'this' in js es6. I have the following code below:
```js
const mobileSubItems = document.querySelectorAll(".mobile-menu-overlay__item");
openSubMenu = (e) => {
console.log(this);
}
for (var i = 0; i < mobile... |
2018/03/09 | 765 | 2,642 | <issue_start>username_0: My problem is simple, I have a component surrounding a component and when I click the Select, the tooltip shows over the MenuItems like so:
Normal behavour:
[](https://i.stack.imgur.com/VOVmf.png)
Not so normal behaviour:
[![... |
2018/03/09 | 294 | 1,150 | <issue_start>username_0: I'm trying to write a function to check whether a table exists or not in BigQuery. The following code always returns true. Where is the problem?
Thanks!
```
private static boolean checkTableExist() {
try {
BigQueryOptions.Builder optionsBuilder = BigQueryOptions.newBuilder();
... |
2018/03/09 | 1,011 | 3,953 | <issue_start>username_0: A collection of images are showing in GridView using Xamarin Android with Mvvm Cross, but the problem is there are two button which rotates clock and anti clock direction with 90 degrees for each click all cells(or images) should be rotate within the GridView.
How can I achieve it?
Here is my v... |
2018/03/09 | 413 | 1,453 | <issue_start>username_0: I've been working on a "learning project" which involves several short single-parameter functions, where the parameter might be either a numeric type or a list of numerics. E.g.,
```
def magnitude_of(v):
try:
return math.sqrt(sum([vi**2 for vi in v]))
except:
return abs... |
2018/03/09 | 483 | 1,695 | <issue_start>username_0: I am searching for an algorithm (using OpenCV C or C++) which does this:
[](https://i.stack.imgur.com/EmWIY.png)
Given the boundary image, I want to find the local curvature at all points and color map it, which is what is d... |
2018/03/09 | 1,089 | 3,315 | <issue_start>username_0: I have a seemingly simple problem that I can't seem to solve. Imagine an `order` table with a shipping value for that order. And imagine an `item` table that point to the order, and have a price:
**Order**
```
|id |created |shipping|
|---|----------|--------|
|101|2018-01-01|10 |
|... |
2018/03/09 | 1,246 | 4,489 | <issue_start>username_0: I am converting from Eclipse CDT. The preprocessor macro feature is a must when navigating through C/C++ code with preprocessor defines (whether explicitly specified in Makefile or included through an external auto-generated header file). Without this, navigating the Linux source would be impos... |
2018/03/09 | 1,137 | 5,026 | <issue_start>username_0: I have a little problem. I cant open `AlertDialog` by clicking on `RecyclerView` item.. Here is my `AlertDialog` code:
```
public class LoginDialog extends AppCompatDialogFragment {
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
AlertDialog.Builder builder ... |
2018/03/09 | 1,444 | 4,861 | <issue_start>username_0: I have an iOS app that uses `sqlite3` and I'm facing issues with multi-threading crashing the app with the `illegal multi-threaded access to database connection` message. Of course, it's because I'm using multi-threading; the problem is, my sqlite3 instance is configured to use multi-thread:
`... |
2018/03/09 | 1,099 | 3,859 | <issue_start>username_0: How to configure the spray-json parsing on parsing options?
Similarly as [Jackson Parsing Features](https://github.com/FasterXML/jackson-core/wiki/JsonParser-Features).
For example, I am parsing a json that has a field that my case class has not, and it is breaking:
```
spray.json.Deseriali... |
2018/03/09 | 649 | 2,119 | <issue_start>username_0: I have 2 tables.
First table:
```
create table abc
(
AId INT IDENTITY(1,1),
Name NVARCHAR(50),
EMP NVARCHAR(50)
CONSTRAINT PK_abc PRIMARY KEY (AId, Name)
)
```
And second table as:
```
create table def
(
AId INT,
Comment NVARCHAR(50)
constraint FK_aid FOREIG... |
2018/03/09 | 895 | 3,728 | <issue_start>username_0: This code isn't working: Help! It is only displaying as "no answers left", not anything else and that is displaying that I have only 0 attempts left. I am new to Javascript and need some support, I think the "for" loop isn't working. I can only try out this code once, then the page crashes.
``... |
2018/03/09 | 649 | 2,384 | <issue_start>username_0: Is it possible to remove the divider line between two widgets that were added to the status bar using `.addPermanentWidget()`? I suspect that it is possible, but I haven't really found any literature on how to proceed.
```
import sys
from PyQt5.QtWidgets import QApplication, QMainWindow, QStat... |
2018/03/09 | 1,065 | 3,356 | <issue_start>username_0: Does Draw.IO support foreign key relationships?
Tested it with a lot of different SQL samples [(w3schools sql foreignkey)](https://www.w3schools.com/sql/sql_foreignkey.asp) but none worked.<issue_comment>username_1: Due to budget issues i was only able to implement it to work with MySQL and SQL... |
2018/03/09 | 1,108 | 3,472 | <issue_start>username_0: Table:
[Table](https://i.stack.imgur.com/a5hOz.png)
Help me in. I'm suck in SubQuery. I wanna get the latest Name from every category group
Output:
[Output](https://i.stack.imgur.com/WGUGT.png)
I already search some reference in google and still didn't understand. Hopefully this time I can ... |
2018/03/09 | 820 | 2,199 | <issue_start>username_0: I’m trying to run kong on docker\kubernetes and I tried a bunch of images (0.13, 0.11, 0.11,2, some of the alpine images) and all of them share the same feature. if I run `kong` inside of those nothing happens. doing `echo $?` returns 132. i tried running `/usr/local/bin/kong` but the result is... |
2018/03/09 | 1,495 | 4,197 | <issue_start>username_0: I am working on a springboot, maven multi-module ecommerce app. The directory structure is as follows
```
eshop
│
├── eshop-core
│ └── pom.xml <--- eshop-core POM
├── eshop-admin
│ ├── EShopAdminApplication.java
| └── pom.xml <--- eshop-admin POM
├── eshop-site
│ ├── EShopSiteApplic... |
2018/03/09 | 863 | 2,379 | <issue_start>username_0: We have upgraded Npgsql from 2.2.5 to 3.2.7.
We have a database column of type hstore.
In 2.2.5
this column used to be converted by a XPO valueconverter
from a string that came from the database
to a List < Tuple< object, object>> that we wanted in a XPO class.
Before 3.2.7 something has ... |
2018/03/09 | 953 | 2,722 | <issue_start>username_0: I'm using a For loop to create 100 datasets according to some specifications. My end goal is to have 1 dataset containing each iterated dataset (i.e., dataset 1 through 100).
My current solution is inelegant. I export each individual data frame (called Dataset) to a csv then merge them outsid... |
2018/03/09 | 755 | 3,324 | <issue_start>username_0: I know that actors inside Service Fabric are single-threaded. But suppose I start a new thread inside an actor method, what will happen then? Will an actor be deactivated even though the spawned thread is still executing?
According to the [documentation](https://learn.microsoft.com/en-us/azure... |
2018/03/09 | 1,893 | 6,018 | <issue_start>username_0: We have a dataset where users (distinct) have facilities (multiple) which contain accounts (multiple) which have holdings (multiple).
I came across duplication cases where for example:
`user_ID='A'` has `facility_ID='1'` with `account_ID in ('A','B)` and `facility_ID='2'` with `account_ID in (... |
2018/03/09 | 2,283 | 7,933 | <issue_start>username_0: I have started to solve the [99 problems in Haskell](https://wiki.haskell.org/99_questions/1_to_10), and for the second question, it is given the following solution:
```
myButLast' :: [a] -> a
myButLast' = last . init
```
and if we give the empty list to this function, we get and error, howe... |
2018/03/09 | 6,159 | 22,789 | <issue_start>username_0: I am working with Android Studio 3.1 Canary 6 and I am getting this error when I build my project. I search this error and many users get this with different reasons, but I did not find something similar to my problem.
In my searches I understand this error is caused by errors in our code, lik... |
2018/03/09 | 1,771 | 6,114 | <issue_start>username_0: Java noob here. I am trying to build a simple point of sale checkout application. I have a simple item database in mysql shown in the pic below.
[](https://i.stack.imgur.com/3cr60.jpg)
I have an Item class built as below with... |
2018/03/09 | 557 | 1,891 | <issue_start>username_0: I have a dataframe that looks at how a form has been filled out. Here's an example:
```
ID Name Postcode Street Employer Salary
1 John NaN Craven Road NaN NaN
2 Sue TD2 NAN NaN 15000
3 Jimmy MW6 Blake Street Bank ... |
2018/03/09 | 889 | 3,254 | <issue_start>username_0: I have a router outlet in the AppComponent which loads child components fine. One of the child component has multiple child components and I want to load all child components into the parent router-outlet like below
```
AppComponent (This loads all child including products)
Customers (compo... |
2018/03/09 | 893 | 3,192 | <issue_start>username_0: I'm struggle with making this work and understand how I can call specific button by pressing Enter in Javascript.
As Example I have
```js
$(document).ready(function () {
$('#myText').keyup(function () {
alert(e.keyCode);
});
$('#myButton').button().click(function () ... |
2018/03/09 | 258 | 756 | <issue_start>username_0: I have a data set which has the date in absolute numbers after the first case's occurrence, such as:
```
date v1 v2
1 a b
1 a f
2 a b
3 a D
4 d b
3 c b
```
As `date = 1` corresponds with a set date, say `1999-10-15`, I would like to translate that into readable... |
2018/03/09 | 204 | 684 | <issue_start>username_0: How can I easily add bootstrap 4 to angular 5 with components? I am new in angular 5 and also in Bootstrap 4. I get an answer to this question but I am confused because to worry about my project efficiency.
Please guide or refer me someone best article.
Thank you.<issue_comment>username_1: Th... |
2018/03/09 | 252 | 799 | <issue_start>username_0: I'm currently taking a crash course in the basics of the Linux terminal and one of the tasks is to replace punctuation in a text file using 'awk' and 'tr' commands. I have tried searching around for solutions but nothing is working for me, any help?<issue_comment>username_1: Using `tr` (as <NAM... |
2018/03/09 | 583 | 2,205 | <issue_start>username_0: 1st year coding student and have a project in my visual basics class.
Create a simple calculator that will multiply, divide, subtract and add. Thing is we are not allowed to use any decision structures or loops, only sequential style coding structure.
I am struggling with storing, passing, a... |
2018/03/09 | 742 | 2,934 | <issue_start>username_0: I'm trying to write a program that can validate user's input before going to the next section, but i'm currently stuck with this. Whenever i enter a negative value first, it will bypass the condition or crashes.
If i input "A" , it will show "Please enter a valid number"
If i input "-1", it w... |
2018/03/09 | 488 | 1,946 | <issue_start>username_0: when fitting with rpart, it returns the "where" vector which tells which leave each record in the training dataset is on the tree. Is there a function which return something similar to this "where" vector for a test dataset?<issue_comment>username_1: You're not setting `isNumber` to `False` if ... |
2018/03/09 | 486 | 1,752 | <issue_start>username_0: I'm trying to add top padding to a text field, but could not find anything useful, all solution were about left and right padding which I already know about. To make things clear, I want to make it like the image below.
Note: I used label for "Description" and I have put it within the text fie... |
2018/03/09 | 344 | 1,097 | <issue_start>username_0: So whenever I download data from my mysql database, and convert to a JSON array via PHP then display it, I get duplicated values.
I do understand why this is so, but is there any way to remove the numeric duplicates?:/
```
{"id":"1","0":"1","userId":"23","1":"23","message":"HELLO","2":HELLO"}... |
2018/03/09 | 600 | 2,055 | <issue_start>username_0: Is there some way I can pass a nested path from the controller to then be used in the template?
I want the type binding in the template to pass off what is at the path of **change.Property.PropertyName**
Controller
```
private _columns = [
{ field: 'Name', title: 'Type', displayType: 'Pr... |
2018/03/09 | 425 | 1,441 | <issue_start>username_0: I would like to apply validation data in Excel 2013 in the following case:
I have in A13 the sum of the values in A1:A12.
I would like to apply in the cells A1:A12 data validation such that A13<500.
I have tried to do it in the classic way, but I have the following problem: if, at the moment, A... |
2018/03/09 | 3,701 | 8,619 | <issue_start>username_0: I'm struggling to figure out conda virtual environments on windows. All I want is to be able to have different versions of h2o installed at the same time because of their insane decision to not allow you to be able to load files saved in even the most minor different version.
I created a virtu... |
2018/03/09 | 254 | 863 | <issue_start>username_0: How do I create a discord command for my bot that will mention someone?
For ex:
Sample input: `+mention Gamer222`
Sample output: `@Gamer222#6478`
I have tried multiple things like:
```
if(command === "mention") {
const sayMessage = args.join(" ");
message.channel.send(`${sayMessage}`... |
2018/03/09 | 768 | 2,940 | <issue_start>username_0: I have custom `Collection View Cell` and .swift and .xib file for it. In the .xib file I have `textField` which I have to take the data from in `Collection ViewController` and act accordingly but I am not sure how because the .xib file has the custom class of the `Collection View Cell` and I **... |
2018/03/09 | 292 | 1,093 | <issue_start>username_0: I have a Magento 2 theme I'm using for the design, and have a child theme created that I'm working off of. I am trying to modify the breadcrumbs html so I can extend some additional classes to it. I can't find any breadcrumbs.phtml file in the parent theme, but I did find it in the vendor/magen... |
2018/03/09 | 330 | 1,256 | <issue_start>username_0: I have an issue which I don't quite know how to approach.
I need to extend the Sitecore Insert link functionality: when I insert a link to a Sitecore Item, a certain icon, based on some logic (I've already created the logic for another user story(\*)), needs to appear in the front of the link... |
2018/03/09 | 317 | 1,198 | <issue_start>username_0: Need to build a version of grpc with just static libs. Without plugin support and not building shared libraries. I cant seem to find a way. I'm also using a custom version of SSL and system zlib and have set the required
```
cmake .. -DCMAKE_BUILD_TYPE=Release -DgRPC_ZLIB_PROVIDER=package -Dg... |
2018/03/09 | 451 | 1,622 | <issue_start>username_0: I want to run a simple 'Hello World' PHP script to start understanding how Heroku functions in general. So I have created a git repository at Github with a simple 'Hello World' php script and an empty README file. Therefore the source code in the php file is:
```
php
echo 'Hello World';
?
`... |
2018/03/09 | 243 | 925 | <issue_start>username_0: Got this weird error while trying to use laravel for the first time, look it up but couldn't find anything, could someone please help?
<issue_comment>username_1: The problem is already fixed: <https://github.com/laravel/framework... |
2018/03/09 | 1,330 | 4,708 | <issue_start>username_0: I have a newbie question on powershell (v4).
Given the following code,
* when I do $t = $i in the loop it takes 0.5s
* when I do $t = DoNothing($i) in the loop it takes 11.5s
* when I do $t = DoNothing $i in the loop it takes 11.5s
If I change content of function DoNothing to do something, t... |
2018/03/09 | 873 | 3,415 | <issue_start>username_0: Is there any way or neat documentation where I could see what are all the steps or stages when we run a git command.
For example, when we do a git pull. I believe
* git fetch is run
* then git pull
But that's something I devised from logs. Is there any way I could actually see what is run as... |
2018/03/09 | 1,024 | 3,827 | <issue_start>username_0: The compiler is showing error Kotlin: Variable `result` must be initialized.
Here is the code.
```
fun main(args: Array) {
print("Enter two numbers: ")
// nextDouble() reads the next double from the keyboard
var first= readLine()!!.toDouble()
var second = readLine()!!.toInt()
print("En... |
2018/03/09 | 1,042 | 3,742 | <issue_start>username_0: I have to match strings in python 2.7 which are of the format -
{2 digit day of the month} {the exact words de or del} {4 digit year}
and replace this entire substring of the string with only
{2 digit day of the month} {4 digit year} and remove the word de/del.
I know about word boundarie... |
2018/03/09 | 1,022 | 3,677 | <issue_start>username_0: I need to write an algorithm that gives you any number n in base 3 in R. So far I wrote that :
```
vector <- c(10, 100, 1000, 10000)
ternary <- function(n) { while (n != 0) {
{q<- n%/%3}
{r <- n%%3}
{return(r)}
q<- n }
sapply(vector, ternary)}
```
I thought that by applying s... |
2018/03/09 | 688 | 2,876 | <issue_start>username_0: I am trying to use a custom attribute on a Entity class generated automatically by the Entity Framework.
The problem is how to add an property attribute on an existing field?
Here the point where I am right now:
```
// the custom attribute class
public class MyCustomAttribute : Attribute
{
... |
2018/03/09 | 698 | 2,980 | <issue_start>username_0: I have given toolbar for each fragment in my app.
Following is code in the fragment to set toolbar. `setToolbar` is a method in `Activity` which is called from fragment using the interface.
```
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onV... |
2018/03/09 | 1,872 | 6,261 | <issue_start>username_0: Can you recommend a JS library that actually **provides** edge swipe functionality when working with bare-bones HTML & CSS?
I've searched all over and haven't found a source of truth for that problem.
I've seen lots and lots of libraries enabling swipe gestures but not edge swipe.
My last att... |
2018/03/09 | 875 | 2,546 | <issue_start>username_0: I'm having some difficulties understanding how to iterate through a list in Haskell. I've been trying to work with mapM but for some reason I keep on coming up with parsing errors. I know that this can be done recursively, but the code within the iteration/for loop is only a small part of the w... |
2018/03/09 | 765 | 2,575 | <issue_start>username_0: I am allocating memory as follows. Also trying to update it in another function.
```
int main() {
int* ptr = (int*)malloc(sizeof(int)*3);
ptr[0] = 0;
ptr[1] = 1;
ptr[2] = 2;
modifyArr(&ptr, 2);
}
void modifyArr(int** arr, int arrLen)
{
printf("Before modified\n");
printArray... |
2018/03/09 | 174 | 729 | <issue_start>username_0: When I'm double clicking on the uiautomatorviewer.bat file the command prompt opening and immediately closing itself.
Any help would be appreciated<issue_comment>username_1: I'm assuming you are not set the environment variable path, Please check if it is not please follow the instruction: <ht... |