date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/05 | 764 | 3,112 | <issue_start>username_0: I have experienced a strange behavior that does not make any sense to me.
I have managed to save a value of temperature in sharedpreferences in a Java Class that is not an activity by doing this:
The method getContextOfApplication() is the one I am using in my Java.Class where i am putting th... |
2018/03/05 | 484 | 1,691 | <issue_start>username_0: ```
public class RemoveSpaceFromString {
public static void main(String args[])
{
Scanner s1=new Scanner(System.in);
String str="";
System.out.println("enter the string");
str=s1.nextLine();
int l=str.length();
char ch[]=str.toCharArray()... |
2018/03/05 | 633 | 2,106 | <issue_start>username_0: this is may problem.
I can load the audio\_binary like this
`audio_binary = tf.read_file(wav_file_path)`
but when I try to read the wav with this:
```
from tensorflow.contrib import ffmpeg
waveform = ffmpeg.decode_audio( audio_binary, file_format='wav', samples_per_second=16000, channel_count=... |
2018/03/05 | 487 | 1,669 | <issue_start>username_0: I have some code I'd like to quickly test. This code includes a line that needs to query a server and obtain a True/False answer:
```
result = server.queryServer(data)
```
Is there a way to override this function call so that it just calls a local function that always returns True (so that I... |
2018/03/05 | 1,017 | 3,680 | <issue_start>username_0: [Existentially quantified data constructors](https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/glasgow_exts.html#existentially-quantified-data-constructors) like
```
data Foo = forall a. MkFoo a (a -> Bool)
| Nil
```
can be easily translated to GADTs:
```
data Foo whe... |
2018/03/05 | 980 | 3,569 | <issue_start>username_0: I would like to know, if `$search` is not in the `$content`. The search string should not be in the h2 tag.
```
my $search="Hello World";
my $content="Hello WorldIs Hello World inside this tag?
-------------------------------
Thank you";
if ($content !~ /.\*?($search \<\/h2\>)/;) {}
-------... |
2018/03/05 | 916 | 3,547 | <issue_start>username_0: Whille creating some dummy data for a collection for a WPF/MVVM project, I produced the following wrong code, which compiles fine, but throws an exception at runtime.
There's a nested structure of data objects, which I wrongly instantiate with only the curly braces (looks like writing JavaScri... |
2018/03/05 | 2,104 | 6,784 | <issue_start>username_0: I'm trying to use data structures in C++ to organize properly some data I receive from a loop.
I created my structure and the data I want to get.
```
#include
#include
using namespace std;
#define NumOfProducts 5
struct Product{
int weight;
double price;
};
int data1 [5] = { 16, 2, 80... |
2018/03/05 | 811 | 2,607 | <issue_start>username_0: I have an html code:
```
**Price:**
USD UGS 6,000
per month
```
**Price:**
UGS 6,000
per month
That is displayed as `Price: USD UGS 6,000 per month`
I am wondering if its actually possible to remove UGS if the span `price_label price_label_before` if not empty. If empty, UGS should ... |
2018/03/05 | 505 | 1,839 | <issue_start>username_0: ```
exception Error of (string);;
let v = ref true;;
let e = Error("Fail");;
let h = ref false;;
while !h <> true do
let x = read_int();
let y = read_int();
try
let res = x / y in
Printf.printf "result = %d" res;
h := true;
with
Division_by_zero -> raise e
done;;
```
r... |
2018/03/05 | 429 | 1,617 | <issue_start>username_0: I have created a kubernetes cluster and deployed jenkins by following file
```
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: jenkins-ci
spec:
replicas: 1
template:
metadata:
labels:
run: jenkins-ci
spec:
containers:
- name: jenkins-ci
image: jenki... |
2018/03/05 | 776 | 2,936 | <issue_start>username_0: I'm trying to convert an existing snippet of code to some fancy Java 8 one-liner.
```
private static final Map FOO\_MAP = ...
public static Foo getForCode(final Integer code) {
if (code == null) {
return null;
}
final Foo foo = FOO\_MAP.get(code);
if (foo== null) {
throw new IllegalSt... |
2018/03/05 | 762 | 2,962 | <issue_start>username_0: I have to create a public method called `cancelPolicy(int polNum)` which removes the policy from the client's list with the given policy number, if found. It should return true if the policy was found, otherwise it should return false. When a policy is removed from the array, the empty location... |
2018/03/05 | 822 | 3,032 | <issue_start>username_0: Based on this video <https://www.youtube.com/watch?v=IVvJX4CoLUY> I have add the ***using System.Web; using System.Web.Http;*** but i still get the error state that apicontroller could no found, and so on, below picture is the error I face:
[;
curl_setopt($curl, CURLOPT_RETURNTRANSFER... |
2018/03/05 | 3,170 | 9,875 | <issue_start>username_0: Using sed and/or awk, I'd like to be able to delete a line only if it contains the string "foo" AND the lines before and after contain the strings "bar" and "baz" respectively.
So for this input:
```
blah
blah
foo
blah
bar
foo
baz
blah
```
we would delete the second foo but nothing else, le... |
2018/03/05 | 3,251 | 10,046 | <issue_start>username_0: I would like to be able to search for specific words in my Bokeh plot. Say that I have a very simple plot:
```
import numpy as np
from bokeh.plotting import figure, show, output_file
x = np.linspace(0, 4*np.pi, 100)
y = np.sin(x)
TOOLS = "pan,wheel_zoom,box_zoom,reset,save,box_select"
p1 = ... |
2018/03/05 | 791 | 2,304 | <issue_start>username_0: I am using TF-slim to train my own dataset. According to the tutorial, in the finetune\_inception\_v1\_on\_flowers.sh, I set the checkpoint path as ./inception\_resnet\_v2.ckpt, and get lots of new checkpoints in another file folder, and the latest files are model.ckpt-332331.data-00000-of-0000... |
2018/03/05 | 643 | 2,456 | <issue_start>username_0: how can i add result of multiple queries in a single array so it makes it easier to later output.
for example,
```
$newArray = array("mike", "john");
while ($newArray !== false){
$sql = "Select * from accounts where name = '$newArray'";
$result = mysqli_query($db_connection,$sql);
}... |
2018/03/05 | 1,341 | 5,937 | <issue_start>username_0: I won't show a received push notification from appearing top notifications menu my notification if it has for example key `update`. For now if I get notification with this key, all notifications are in the notification bar. I want to not present this notifications for user.
I'm using `WakefulB... |
2018/03/05 | 381 | 1,240 | <issue_start>username_0: I am new in working with linux. I am trying to analyse sequencing data using dropEst pipeline `https://github.com/hms-dbmi/dropEst#dropreport`. I want to run the `DropReport` and for that I need to install `dropEstR` package.
I tried by :
```
devtools::install_github('hms-dbmi/dropEst/dropest... |
2018/03/05 | 1,239 | 3,254 | <issue_start>username_0: I feel this should be easy in base R but I just can't figure it out.
I have a simple dataframe, let's say it looks like this
```
tbl <- read.table(text =
"Field1 Field2
100 200
150 180
200 160
280 250
300 300
300 250",
header = TRUE)
```
Now, what I want to do i... |
2018/03/05 | 1,568 | 6,356 | <issue_start>username_0: I am taking a CNN model that is pretrained, and then trying to implement a CNN-LSTM with parallel CNNs all with the same weights from the pretraining.
```python
# load in CNN
weightsfile = 'final_weights.h5'
modelfile = '2dcnn_model.json'
# load model from json
json_file = open(modelfile, 'r'... |
2018/03/05 | 364 | 1,533 | <issue_start>username_0: Is it possible to set two different django projects on the same IP address/server (Linode in this case)? For exmaple, django1\_project running on www.example.com and django2\_project on django2.example.com. This is preferable, but if this is not possible then how to make two djangos, i.e. one r... |
2018/03/05 | 975 | 3,216 | <issue_start>username_0: I'm trying to create a sequence value that I need to increment in an INSERT statement using SQL Server 2014. I have a variable that contains the max number + 1 that I'm trying to INSERT into a temp table but that number needs to be incremented for each record being inserted into the TEMP TABLE.... |
2018/03/05 | 943 | 3,814 | <issue_start>username_0: I want to get selected Employee data by Id so a modal will pop up and show data for this Id. The Id parses as a parameter but asmx service won't fire at last.
Here is client side code :
```
function getEmployeebyID(Id) {
$("#ModalTitle").html("Update Employee");
$("#MyModal").... |
2018/03/05 | 267 | 805 | <issue_start>username_0: I've this string in my HTML document :
```
An awesomephoto © goodjobstudio
```
In Jquery, I want to wrap into span this part of the string : `© goodjobstudio`
So I try this in Jquery :
```
str = $('.slider-for .gallery-item .wp-caption-text').text();
str.replace(/(©)+/gi, '$1');
```
Bu... |
2018/03/05 | 314 | 1,029 | <issue_start>username_0: I'm getting this error in Odoo:
```
ProgrammingError: relation "_unknown" does not exist LINE 1: SELECT "_unknown".id FROM "_unknown" ORDER BY "_unknown"."id...
```
**`hotel` class:**
```
class obj_ghotel(osv.osv):
_name = "obj.ghotel"
_description = "Objet ghotel"
... |
2018/03/05 | 643 | 2,366 | <issue_start>username_0: I am writing a code to open a text file through VBA, and match the value of mail\_id taken from excel in the notepad. I saw few sample codes for this, and have modified it according to my data and requirement, but when counting the number of lines of the code, it is displaying error number 52. ... |
2018/03/05 | 652 | 2,453 | <issue_start>username_0: I am trying to add an item in a bottom menu navigation bar according to a var got from an API.
I am able to delete an item from this navigation bar, like this :
```
if (restaurant.acceptsBookings == false) {
bottom_navigation_view.menu.removeItem(R.id.bottom_menu_book)
}
```
The problem... |
2018/03/05 | 1,582 | 6,423 | <issue_start>username_0: I have a class with a static non-primitive member. For example:
```
class SomeObject
{
... // something that will be destroyed in destructor,
// like an array pointer.
public:
SomeObject();
~SomeObject();
};
class MyClass
{
static SomeObject m_object;
public:
My... |
2018/03/05 | 536 | 1,868 | <issue_start>username_0: I'm writing some tests using JavaScript and Protractor.
Say, I want to find element with class="main-class", like in the following example:
```
...
Search Line
...
```
by text of this element's child - the child could have different attributes and values. The text is stored in the variab... |
2018/03/05 | 1,809 | 6,497 | <issue_start>username_0: I'm currently working on a quiz application with Laravel 5.6 and am having trouble with saving a new quiz record.
The two tables that are being inserted into are `quizzes` and `user_quizzes`. The `quizzes` table contains some basic quiz data such as:
* quiz\_name
* quiz\_description
* quiz\_p... |
2018/03/05 | 814 | 2,852 | <issue_start>username_0: I can't seem to find the documentation that discusses this, so I thought maybe someone on here could help. I want to write a javascript if/else function that triggers multiple events. My code is a little rough, but I think it should look like:
```js
function getFruit() {
var x = document.ge... |
2018/03/05 | 1,657 | 6,083 | <issue_start>username_0: I have listview in fragment populated from Activity with bundle , i have custom baseadapter and custom object with image and text , listview work fine with image and text , but when i do search with searchview i can get text and it's position and onclicklistener is ok without any problem, the i... |
2018/03/05 | 699 | 2,274 | <issue_start>username_0: I'm formatting a `String` from a `UITextField` with input type number :
Example : If I have '10000', I format '10000' to have '10 000' `String`.
**Problem** : Later I need access to the Int value of this String, but when casting, I got an exception because the `String` is not well formatted t... |
2018/03/05 | 1,008 | 3,903 | <issue_start>username_0: I create app with react and redux and I need to fetch data. Is there any way to reuse function getData() and reducer. My actions looks like this
```
importing constants
const getDataRequested = () => {
return {
type: GET_DATA_REQUESTED
};
}
const getDataDone = data => {
return {
... |
2018/03/05 | 663 | 2,282 | <issue_start>username_0: I'm trying to insert multiple rows into my database, and currently I do not know a way to insert them all at the same time or any other method which will help save time (sequentially it takes about ~30s for around 300 rows).
My 'rows' are are tuples in a list of tuples (converted into tuple o... |
2018/03/05 | 359 | 1,199 | <issue_start>username_0: I want to show the body text in another div in CKEditor. I used the following code.
```
$(document).ready(function(){
setInterval(function(){
$('#rerg').empty();
$("body#contentfsf").clone().appendTo("#rerg");
},1000);
});
```
and
```
config.bodyId = 'contentfsf';
```
Preview should be in... |
2018/03/05 | 807 | 2,848 | <issue_start>username_0: In Keras,
I'm trying to import `_obtain_input_shape` as follows:
```
from keras.applications.imagenet_utils import _obtain_input_shape
```
However, I get the following error:
>
> ImportError: cannot import name '\_obtain\_input\_shape'
>
>
>
The reason I'm trying to import \_obtain... |
2018/03/05 | 993 | 3,112 | <issue_start>username_0: let's assume there are two file sets A and B on azure data lake store.
```
/A/Year/
/A/Month/Day/Month/
/A/Year/Month/Day/A_Year_Month_Day_Hour
/B/Year/
/B/Month/Day/Month/
/B/Year/Month/Day/B_Year_Month_Day_Hour
```
I want to get some values (let's say DateCreated of A entity) and use thes... |
2018/03/05 | 909 | 3,243 | <issue_start>username_0: I am trying to implement a very trivial stack in **F#** using its built-in generic type. Coming from the imperative paradigm it can sometimes be hard to imagine how to *avoid* mutability.
What I have so far is a simple data structure with a **push** and **pop** operator:
```
type Stack<'a> =... |
2018/03/05 | 643 | 2,619 | <issue_start>username_0: I am developing a web application , and the idea is to use ASP.Net MVC. The various web pages will rely on the data fetched from the DB , like list of employees , list of products.
1. One way is we create a webAPI project , and expose the methods like GetEmployees(), and where ever on the vie... |
2018/03/05 | 624 | 2,401 | <issue_start>username_0: I am trying to get a integer value from `argv[1]`.
I want to know what happens if the user inputs a character so that I can avoid it. I tried '\0' and currently this doesn't work.
```
int main(int argc, char* argv[]){
int MAX_SIZE;
MAX_SIZE=atoi(argv[1]);
while(MAX_SIZE=='\0'){
pr... |
2018/03/05 | 363 | 1,447 | <issue_start>username_0: I am creating a function that will create a new table and insert informations about that table into other tables.
To create that table I am using the
```
CREATE TABLE IF NOT EXISTS
```
statement. Sadly it does not update the FOUND special variable in PostgreSQL nor can i find any other v... |
2018/03/05 | 1,384 | 4,505 | <issue_start>username_0: I followed all steps given in [fullcalendar & Angular 5](https://stackoverflow.com/questions/47950588/fullcalendar-angular-5) to set up FullCalendar with Angular 5 project (new project, nothing else added after `ng new`)
While trying to run `ng serve` command, I'm getting following errors (& m... |
2018/03/05 | 3,641 | 13,802 | <issue_start>username_0: I tackled down a very specific problem, whose solution seems to be something basic:
My (Spring) application's classloader hierarchy is something like this: `SystemClassLoader -> PlatformClassLoader -> AppClassLoader`
If I use Java `CompleteableFuture` to run threads. the `ContextClassLoader` ... |
2018/03/05 | 519 | 1,923 | <issue_start>username_0: I am writing a small application with Visual Studio Code and Python. My application has two files, `Main.py` and `MyCustomClass.py`. `Main.py` is the entry point to the application, `MyCustomClass.py` contains the logic code to solve some problems.
Currently, the debugger is set to run whateve... |
2018/03/05 | 1,560 | 5,413 | <issue_start>username_0: I have a raspberry pi cluster (one master , 3 nodes)
My basic image is : raspbian stretch lite
I already set up a basic kubernetes setup where a master can see all his nodes (kubectl get nodes) and they're all running.
I used a weave network plugin for the network communication
When everyth... |
2018/03/05 | 281 | 967 | <issue_start>username_0: How do I open a `.ipynb` file in the browser from the command line?
I've tried:
```
$ jupyter my_notebook.ipynb
```
But I get the cryptic:
```
Error executing Jupyter command 'my_notebook.ipynb': [Errno 2] No such file or directory
```
It's weird because that file exists (and is readabl... |
2018/03/05 | 521 | 1,523 | <issue_start>username_0: (can't make the sigma sign look good on the browser).
For an integer n, we will mark F\_n as the group of the Injective functions
`f:{1,2,3…,n}→{1,2,3…,n}`
For a given matrix A from order nXn with non-negative values we will mark:
```
P(A)=∑_(f∈F_n)▒〖A_(1,f(1))*A_(2,f(2)) 〗…*A_(1,f(1) )*A... |
2018/03/05 | 494 | 1,668 | <issue_start>username_0: I have three tables
**color**
```
date,id ,highlightedcolor
```
**shapes**
```
date,id,highlightedshapes
```
**height**
```
date,id, highlightedheight
```
All these tables has different number of rows but shares unique id
I need a query to select distinct date and corresponding... |
2018/03/05 | 395 | 1,247 | <issue_start>username_0: I have a code like below:
```
@using (Html.BeginForm("UpdateEmail", "Default"))
{
@Html.TextBox("emailAddress", "", new
{
@type = "email",
@required = "true",
@pattern = "[a-zA-Z0-9.-_]{1,}@[a-zA-Z.-]{2,}[.]{1}[a-zA-Z]{2,}"})
}
}
```
The problem... |
2018/03/05 | 664 | 2,002 | <issue_start>username_0: I have only just recently found out about a way of generating Pythagorean triples through [this video](https://www.youtube.com/watch?v=QJYmyhnaaek) explaining it, involving the use of Gaussian (complex) integers. I have so far managed to write a function returning a list of Pythagorean triples ... |
2018/03/05 | 584 | 2,006 | <issue_start>username_0: I have to change an update query in TSQL to include the following code:
```
(uh.FirstName != cu.FirstName or isnull(uh.FirstName,'|||') != isnull(cu.Firstname,'|||')
```
But to my mind that seems redundant and it would be better to just use the second part:
```
isnull(uh.FirstName,'|||') !=... |
2018/03/05 | 732 | 2,451 | <issue_start>username_0: I want to proxy https requests to a certain domain to another address:
```
server {
server_name site1;
listen 443;
ssl on;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_f... |
2018/03/05 | 420 | 1,642 | <issue_start>username_0: Im using an internal ELB right now. Its only accessible from inside my VPCs which is good.
But now I want to add a security group to allow an external network access to the ELB. I could use a proxy server but I suspect there is a better way.
Can I create a public ELB and use security group to... |
2018/03/05 | 1,597 | 5,162 | <issue_start>username_0: I want to get the current time in milliseconds. I'm using System.currentTimeMillis() but this returns the date as well as the time. I simply want "15:03" in milliseconds, not the date too.
Note that I want an integer and not a formatted string. If it was 08:30, this is the equivalent to 30600 ... |
2018/03/05 | 1,316 | 4,933 | <issue_start>username_0: Is there a way to access an internal counter or index property of list items in an XML view, while iterating over the items of a SAPUI5 List control? The use case could be to simply enumerate the items. Or in my case it would be to give a special treatment to the very first list item.
What I a... |
2018/03/05 | 1,833 | 7,111 | <issue_start>username_0: How to extend **Laravel 5.5/5.6 MySQL Blueprint** with custom method **$table->myMethod()** like pre-built method **$table->timestamps();**?
I have tried an example with SQLlite: [Extending Blueprint for SQLite in Laravel 5](https://stackoverflow.com/questions/32701195/extending-blueprint-for... |
2018/03/05 | 816 | 3,358 | <issue_start>username_0: Am I using setAttribute correctly? When I click reset after say clicking "blue" button, box has no color but it seems like it is still setting the height to 150px. What am i doing wrong here?
```js
document.getElementById("button1").addEventListener("click", function() {
document.getElement... |
2018/03/05 | 402 | 1,427 | <issue_start>username_0: I'm currently writing a groovy script that can extract characters based on the condition given, however I struggled extracting specific string after specific number of char. For example:
```
If (text = 'ABCDEF')
{
Return (start from C and print only CDE)
}
```
I already used substring but di... |
2018/03/05 | 642 | 2,340 | <issue_start>username_0: I want to use a Batch file to upload files from a folder on my computer.
When I call the FTP Script to do the upload:
```
FTP -v -i -s:ftp.txt
```
or
```
FTP -v -i -s:c:\path\to\file\ftp.txt
```
Neither of those works, and instead
```
Error opening script file: ftp.txt
```
is returned... |
2018/03/05 | 422 | 1,388 | <issue_start>username_0: How to make single record from the record-set at the bottom of the list.
```
0. Select All
1. Apple
2. Banana
3. Mango
```
I need to place "Select All" at the bottom as :
```
1. Apple
2. Banana
3. Mango
0. Select All
```
Based on Id, not value .<issue_comment>username_1: Please try like t... |
2018/03/05 | 1,254 | 4,158 | <issue_start>username_0: I have the following docker-compose.yml file
```
services:
containerA:
healthcheck:
test: "/build/docheck"
interval: "10s"
hostname: "containerA"
container_name: "containerA"
build:
dockerfile: "Dockerfile-5.6"
ports:
- "8081:8081"
version: "2.1"
``... |
2018/03/05 | 3,819 | 10,418 | <issue_start>username_0: I have a data set with ~4 million rows that I need to loop over. The data structure is there are repeated IDs that are dependent on each other but data is independent across IDs. For each ID, the [i+1] row is a dependent on [i]. Here is a reproducible example. I do realize that this example is ... |
2018/03/05 | 281 | 1,213 | <issue_start>username_0: I see that there are many similar functions between tensorflow and keras like argmax, boolean\_mask...I wonder why people have to use keras as backend along with tensorflow instead of using tensorflow alone.<issue_comment>username_1: Keras is not a backend, but it is a high-level API for buildi... |
2018/03/05 | 1,405 | 6,207 | <issue_start>username_0: I am trying to convert one monolithic application into micro service oriented architecture style. Back end I am using spring , spring boot frameworks for development. Front-end I am using angular 2. And also using PostgreSQL as database.
Here my confusion is that, when I am designing my datab... |
2018/03/05 | 1,285 | 5,332 | <issue_start>username_0: In my code CSS is no longer working, the CSS which I applied to the sections!
This image doesn't shrink, what am I missing out?
in website: 
In HTML Code is:
```

```
In CSS is:
```
.blockcontainer{
width: 10%;
display: b... |
2018/03/05 | 2,667 | 8,707 | <issue_start>username_0: I installed latest python 3.6.4 x64 version
and then installed tensorflow for cpu-only with pip3
```
C:\>pip3 install tensorflow
```
however when I tried to import tensorflow in python
it showed me the error below
I am sure that I have installed Microsoft Visual C++ 2015 Redistributable... |
2018/03/05 | 1,206 | 3,983 | <issue_start>username_0: I want to ask if it is possible to convert text files such as word document or text document to PDF using R ?
I thought of converting it to .rmd and then to PDF using this code
```
require(rmarkdown)
my_text <- readLines("C:/.../track.txt")
cat(my_text, sep=" \n", file = "my_text.Rmd")
render... |
2018/03/05 | 1,169 | 3,811 | <issue_start>username_0: Using AT TIME ZONE is there a way to get my UTC Time without the 00:00 AT The end without using a LEFT in my query.
im doing this:
```
SELECT GETDATE() AT TIME ZONE 'EASTERN standard time' at time zone 'UTC'
Answer: 2018-03-05 15:08:00.930 +00:00
```
and trying to see if there is a better ... |
2018/03/05 | 1,748 | 6,031 | <issue_start>username_0: Thinking about this and I'm wondering if it is possible (and if so, how to make such a decorator etc.) to have a classmethod, that IF called from an instance, can retrieve data on the instance? Perhaps some more clarity on how the staticmethod and classmethod decorators work would be helpful to... |
2018/03/05 | 401 | 1,664 | <issue_start>username_0: ```
import * as redis from 'redis'
import config from '../../config/config'
const client = redis.createClient(config.redis.port, host, config.redis.options);
client.on('ready', () => {
console.log('redis is ready.')
});
```
getting below error in typescript
[ts] Property 'on' does not exis... |
2018/03/05 | 500 | 1,711 | <issue_start>username_0: I need a nullable int and format it like in example, when value is not null. `ToString()` does not work with nulls. How to handle this best?
```
int? i = 5555;
string p = i.ToString("#,##0");
Console.WriteLine(p);
```<issue_comment>username_1: Just check for null.
```
int? i = 5555;
string ... |
2018/03/05 | 2,123 | 6,934 | <issue_start>username_0: As indicated in the official loadimpact/k6 documentation, we are able to execute a single k6 script as follows:
```
k6 run ../tests/http_get.js
```
How would I go about executing multiple script files in a single run? Specifically all scripts that reside in a given local directory. Something... |
2018/03/05 | 2,300 | 7,560 | <issue_start>username_0: I have a problem with some of my python code. I want it to open a file, with few lines of text, and add header + footer to each line in that file.
The problem is that 'create\_output()' function returns only the first line with additional content. If I switch 'return' to 'print' at the end of t... |
2018/03/05 | 507 | 1,321 | <issue_start>username_0: Example:
```
```
How to select all element which have class="MyElement" and omit one element from it using specific id
My guess:
```
var fltrdElmnts = $(".MyElement").filter(! $( "#Elmnt_2" ) );
fltrdElmnts.remove();
```
Expected result:
```
```<issue_comment>username_1: You can use `:... |
2018/03/05 | 385 | 1,666 | <issue_start>username_0: I previously asked a similar question with regards to cloud9, but I am now trying to do the same project in parallel on my windows 10 machine because I will not have internet access to use cloud9. I am trying to set up the configuration in preparation for following <NAME>'s learn-rails tutorial... |
2018/03/05 | 482 | 1,516 | <issue_start>username_0: I have code in dictionary form that I want to convert to pandas
```
df = pd.DataFrame(dict(a=[1.5,2.8,9.3],b=[3.2,3.3,3.9],c=[13.1,4.9,15.9],d=[1.1,1.9,2.9]))
```
This data is made up but in the real scenario I am using a function similar to this. **But how do I modify the if else for if x i... |
2018/03/05 | 309 | 1,164 | <issue_start>username_0: I have an Aurelia CLI app that uses the CLI in conjunction with Gulp to build. I was asked to enable a feature where we pass the name of the branch we're building and determine an environment from that. I was hoping to do this within my gulp tasks. I think I can achieve it through our Continuou... |
2018/03/05 | 1,172 | 3,566 | <issue_start>username_0: I'm new to web scraping, and I'm not sure why the following code is not working.
```
import urllib.request
source = urllib.request.urlopen('http://python.org/')
print(source)
```
Here is the error
```
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/... |
2018/03/05 | 311 | 1,196 | <issue_start>username_0: I have tree tables in a database: users (user\_id (auto increment), fname, lname), roles (role\_id, role\_desc) and users\_roles (user\_id, role\_id). What I'd like to do is to have a function create\_user\_with\_role. The function takes 3 arguments: first name, last name and role\_id. The func... |
2018/03/05 | 446 | 1,498 | <issue_start>username_0: I'm completely new to Python, I want to download a file by sending a request to the server. When I type it into my browser, I see the CSV file is downloaded, but when I try sending a get request it does not return anything. for example:
```
import urllib2
response = urllib2.urlopen('https://p... |
2018/03/05 | 421 | 1,269 | <issue_start>username_0: I have two data frames:
1. *Pre\_data\_inputs* with the size of (4760,2)
2. *Diff\_course\_Precourse* with size of (4760,1).
I want to merge these two data frames together with name *data\_inputs*. This new data frame should be (4760,3). I have this code so far:
```
data_inputs = pd.concat([... |
2018/03/05 | 354 | 1,109 | <issue_start>username_0: I have a rather simple problem but somehow I cannot solve it.
So I have a dataset with a column cycle with rows cycle1, cycle2, cycle3. I want to replace e.g. the word cycle1 with just the number 1. How to somehow separate the index i from the string cycle?
```
for (i in 1:3){
data$cycle[... |
2018/03/05 | 352 | 1,124 | <issue_start>username_0: I am using a Font Awesome icon in the modal of success. I want to make the icon bigger, the problem is the text is no longer vertically centered if I do that.
[](https://i.stack.imgur.com/CofEG.png)
```
**You have success... |
2018/03/05 | 1,704 | 5,243 | <issue_start>username_0: I'm trying to figure out how to iterate over an object that is using Symbol names to uniquely identify properties. For instance, if I have this object:
```
const bowl1 = {
'apple': { color: 'red', weight: 136.078 },
'banana': { color: 'yellow', weight: 183.151 },
'orange': { ... |
2018/03/05 | 718 | 1,803 | <issue_start>username_0: I am trying to get a regex to check for only numbers and commas so for example
This will go through
```
1
0,3,4
1,3
1,3,15,12
```
This will not go through
```
abc
1,,3,,4
1,3,
,1,1
```
My current regex is
```
/[0-9]*[,][0-9]*/
```
it doesnt seem to work as what i wanted
Can i get som... |
2018/03/05 | 773 | 2,823 | <issue_start>username_0: Created an update form, that basically is populated with information.
What I want is for the button to be disabled, until the info within the form is changed
The form group is using valuechanges to listen when info has been edited
But the form is always touched, even if I change using
```
... |
2018/03/05 | 308 | 1,004 | <issue_start>username_0: Hi I have a table where some of the place names have been stored in correctly
for example a place in the Netherlands is stored as OC A''dam Sloterdijk - two single quotes not a double quote and this needs to be set to OC A'dam Sloterdijk with a single quote
I have tried
`set StoreNm = Replace... |
2018/03/05 | 1,093 | 3,465 | <issue_start>username_0: I use Python 3.6 in an anaconda environment.
I installed GDBM with
```
conda install gdbm
```
The installation went well, however I can't use `dbm.gnu` from Python:
```
ModuleNotFoundError: No module named '_gdbm'
```
It seams that Python doesn't include the `_gdbm` module, even if GDBM ... |
2018/03/05 | 486 | 1,855 | <issue_start>username_0: I'm using `RedirectToAction` to redirect to a different view, however I'm using an application in a site in IIS so there is a prefix that has to go to the path.
When I do `RedirectToAction` it just redirects on the root.
I need it to respect the current path and redirect along those lines.
F... |
2018/03/05 | 354 | 1,442 | <issue_start>username_0: Based on my understanding, all the components in RedHat BRMS can be achieved by integrating various drools components. So, is it a bad idea to use drools in Production?<issue_comment>username_1: `RedirectToAction`, or any of the similar methods that let you generate a URL based on route informa... |
2018/03/05 | 522 | 1,799 | <issue_start>username_0: I suddenly got this error
```
Module not found: Error: Can't resolve '@angular/flex-layout' in '\src\app'
```
This error occurred After I have install @angular/cdk,
After this error I have again installed flex-layout using
```
npm install @angular/flex-layout
```
But now there is error ... |
2018/03/05 | 457 | 1,577 | <issue_start>username_0: Hmm, I screwed up...
I have a repo and did a git add . for the first time.
But then realised there are a lot of files that should not be there, so I wanted to reset and then fix the .gitignore en then redo.
after doing git reset --hard
all my files are gone.
Question, is there a way to "u... |
2018/03/05 | 1,020 | 3,449 | <issue_start>username_0: I'm struggling to get our PowerShell script for creating mailboxes, assigning licenses etc. to work with MFA.
If I use this script, only;
```
$modules = @(Get-ChildItem -Path "$($env:LOCALAPPDATA)\Apps\2.0" -Filter "Microsoft.Exchange.Management.ExoPowershellModule.manifest" -Recurse )
$modul... |
2018/03/05 | 686 | 2,292 | <issue_start>username_0: I'm writing a database for keeping information about words in Android application with Room. I've built two entities: Group and VocaNote. Between Group and VocaNote I use one-to-many relationship to keep array of VocaNote in separate groups.
**Group class**
```
@Entity(indices = {
@Index(... |
2018/03/05 | 1,072 | 4,127 | <issue_start>username_0: I am having an issue where I cannot seem to get my Identity Server logout to show the confirmation first. I downloaded the source code for IdentityServer4 from github and found the parameter in the Models folder: LogoutRequest.cs, ShowSignOutPrompt. There are no references to it in IdentityServ... |
2018/03/05 | 844 | 2,130 | <issue_start>username_0: I am horrible at Regular Expression's...and need a Regular Expression that limits before AND after the decimal.
TWO-BY-TWO EXAMPLE:
For instance...
* 22.22 ..should be good
* 22 ..should be good
* .22 ..should be good
* .2 ..should be good
* 222 ..should fail
I need this for a KEYPRESS ev... |