date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/09 | 350 | 1,225 | <issue_start>username_0: I have some forms with custom id's.
All of them has some of the hidden fields and one number and submit field. I would like to get the number field's value in a variable with this function
```
$(".formclass").click(function () {
console.log(this.id);
var id = this.id;
var value = $... |
2018/03/09 | 1,878 | 6,633 | <issue_start>username_0: I have written an application on `Android` which realises sending simply requests (using `Volley`) to the server. The server is stood up on the NodeMCU (ESP8266) microcontroller, written in `Lua`. The problem is, that after sending the request, application not always is able to print the respon... |
2018/03/09 | 1,384 | 4,811 | <issue_start>username_0: Is there a way to disassociate a file on a feature branch from its parent branch, in that changes to the file on the parent branch will no longer merge into the feature branch?
ie: `app/index.html [develop]` changes should no longer merge into `app/index.html [feature/redesign]` when merging `... |
2018/03/09 | 1,581 | 5,187 | <issue_start>username_0: I have a scenario where I need to show daily transactions and also total transaction for that month with date and other fields like type, product etc.
Once I have that, the main requirement is to get the daily percentage of total for that month, below is an example of it. 3 transaction on 1st j... |
2018/03/09 | 1,459 | 5,023 | <issue_start>username_0: I want to do a simple thing - to underline a text in TextView. The string is placed in strings.xml (because of translations):
```
UnderlineText
```
And then I put the text programmatically:
```
TextView txt1 = findViewById(R.id.autor);
txt1.setText(resources.getString(R.string.mytext));
... |
2018/03/09 | 1,297 | 5,710 | <issue_start>username_0: I am taking a picture with the iOS camera and trying to extract metadata from the image. This is my code:-
```
partial void BtnCamera_TouchUpInside(UIButton sender)
{
UIImagePickerController imagePicker = new UIImagePickerController();
imagePicker.PrefersStatusB... |
2018/03/09 | 664 | 1,833 | <issue_start>username_0: my problem goes like this:
Let's suppose i got 3 variables (i = 1, j = 2, k =3)
I want to do this: "a = 0.ijk" so a == 0.123
But those variables are under multiple for's so i'm saving their value on array..
I tried using sstream to convert them from string to int (123) then i would divide it ... |
2018/03/09 | 1,011 | 2,919 | <issue_start>username_0: I have an array:
```
[ 'Item 1', 'Item 2', 'Item 3' ]
```
I need the final result to be
```
{ 'Item 1':true, 'Item 2':true, 'Item 3':true }
```
Using ES6 I got kinda close with this:
```
let arr = [];
for (let m of crmData.modRequired) {
let i = m + ':true';
... |
2018/03/09 | 882 | 2,654 | <issue_start>username_0: Communication between agents in multi agent system MAS can be done directly with messages changing ( send and receive ), or indirectly throug a memory sharing so agents can write and read informations from the memory.
I have to implement the second communication type and i have no idea... :(
th... |
2018/03/09 | 905 | 2,740 | <issue_start>username_0: I am building a Google Actions integration and would like to automate some of the steps like creating and updating a Google Actions project. So far, the only way I see is to use the `gactions` CLI, as described in the [Google Actions Documentation](https://developers.google.com/actions/sdk/subm... |
2018/03/09 | 1,749 | 6,044 | <issue_start>username_0: The idea is to be able to store an object that is passed from the child activity into an array of objects and display it in a list view in the parent activity. I cannot think of how to implement this in the code I already have, but I know the logic of my code is wrong.
This is my main activit... |
2018/03/09 | 996 | 3,237 | <issue_start>username_0: I have this json file:
```
{
"spain" : "spanish.",
"usa" : "english",
"france" : "french",
"italy" : "italian",
...
}
```
Is there a fast way to convert that json file in this below?
```
[
{ "country": "spain", "language": "spanish." }
{ "country": "usa", "language": "english."... |
2018/03/09 | 1,129 | 3,431 | <issue_start>username_0: How can I store values in `map` which can be both `Type` and `[]Type`?
I tried this:
```
mymap := make(map[string]interface{})
mymap["string"] = "word"
mymap["vector"] = append(mymap["vector"].([]interface{}), "earth")
```
But I have an error:
```
panic: interface conversion: interface {} ... |
2018/03/09 | 1,239 | 4,264 | <issue_start>username_0: I've been working on a project for school, making a rock-paper-scissors game using functions. This is the code I have so far, but the program is having some problems. This is what the program is returning right now.
```
Rock, Paper, Scissors
~~~~~~~~~~~~~~~~~~~~~
Rock: 1
Paper: 2
Scissors:... |
2018/03/09 | 600 | 2,217 | <issue_start>username_0: I am stuck on a task. The exercise is based on the "while" loop.
This is what i need to get as output using a variable that changes the numbers and simply printing "Case" and "Notes".
```
Case 1 : 1 Note
Case 2 : 2 Notes
Case 3 : 4 Notes
Case 4 : 8 Notes
```
Here is my code:
```
function ... |
2018/03/09 | 854 | 3,110 | <issue_start>username_0: To allow multiple iterations on the resulting stream from a `CompletableFuture>` I am considering one of the following approaches:
1. Convert the resulting future to `CompletableFuture>` through: `teams.thenApply(st -> st.collect(toList()))`
2. Convert the resulting future to `Flux` with cache... |
2018/03/09 | 1,055 | 3,284 | <issue_start>username_0: I´m trying to create a Df to put together the time vol of the pairs. Thereby, I tried the code below. It is working, but, wondering a way more dynamically dealing with list append to DF. Any help will be appreciated.. Thanks in advance!
```
time = []
for i in (dfeuh,dfguh,dfuch,dfu... |
2018/03/09 | 260 | 1,041 | <issue_start>username_0: I am using Twilio for making voice calls. I would like to know, if there is a way to know when the call is unanswered or failed I need to send the same message as voicemail.<issue_comment>username_1: Twilio has [Answering Machine Detection](https://www.twilio.com/docs/api/voice/answering-machin... |
2018/03/09 | 780 | 2,794 | <issue_start>username_0: I have a file that uses ES6 syntax that causes the following error when I attempt to run Mocha:
```
import 'test';
^^^^^^
SyntaxError: Unexpected token import
at createScript (vm.js:74:10)
at Object.runInThisContext (vm.js:116:10)
at Module._compile (module.js:533:28)
at Modul... |
2018/03/09 | 627 | 2,089 | <issue_start>username_0: I tried to get a full list of all the files in a folder like this:
```
#include
#include
#include
using namespace std;
void main()
{
HANDLE dateiHandle;
WIN32\_FIND\_DATA wfindD;
dateiHandle = FindFirstFile(L"E:\\Roman\\PIC\\funpics\\\*", &wfindD);
do
{
cout << wfindD.cFileName << endl;
} ... |
2018/03/09 | 473 | 2,014 | <issue_start>username_0: I have a Grails 3 web application. After a client sends a request to my application, a long-running process starts, the process completion can take a few seconds or a few hours. I don't want to block the client to wait for the response. Therefore, I start a new thread for the process, but when ... |
2018/03/09 | 1,806 | 6,532 | <issue_start>username_0: I am currently completing a piece of coursework whereby I need to parse an XML file using android and display its data in a useful format on an android phone.
I have used XmlPullParser and have successfully parsed the file into a listView.
Here is the result: [
.option("host... |
2018/03/09 | 926 | 3,226 | <issue_start>username_0: I am new to VBA. I am trying to click on the "GO" search button after I logged in to a secured website.
I tried many ways to click on the button, but I got no luck.
Here is the inspect element.
```
Go
```
Here is what I have tried.
Method 1
```
Set HTMLDoc = HTMLDoc.class("button p... |
2018/03/09 | 566 | 2,552 | <issue_start>username_0: I have a PHP Socket Server that I can connect to via Telnet. Once connected, I am able to send messages in a certain format and they're saved in the database.
What happens is that when the PHP Socket receives a message, it opens a Database connection, executes the query, then closes the connec... |
2018/03/09 | 626 | 1,853 | <issue_start>username_0: How can I get the `content` section to wrap nicely to the right of the image using flexbox?
```css
.container {
display: flex;
align-items:center;
flex-wrap:wrap; /* we force a wrap so textarea is in the next line*/
}
.content {
flex-grow: 1;
}
textarea {
flex-basis: 100%;
... |
2018/03/09 | 620 | 2,622 | <issue_start>username_0: I'm using `xarray`'s `groupby` + reducer to perform spatial overlay/aggregation on spatial rasters. I'm wondering if there is a way to use a different reducer for certain data variables. In the code below for instance, I would like `categorical_variable` to be reduced with `first()` (or `mode` ... |
2018/03/09 | 495 | 1,919 | <issue_start>username_0: I am trying to add values to Internet Explorer's Registry key from an addon. My understanding is if `OpenKey()` doesn't find the Registry key, then it creates the key because of the `true` parameter I am using. But it's not being created, and the function returns false. Any idea what I'm doing ... |
2018/03/09 | 959 | 3,091 | <issue_start>username_0: **Background**:
I created a **sandbox** VM with VirtualBox on my macOS. It correctly spins up a VM (with CentOS7 running on it) on which I can access to.
**Inside this sandbox vm**, I want to spin up several vms in order to test Ansible Playbooks with Kitchen CI & Vagrant, thus I installed Vi... |
2018/03/09 | 1,232 | 3,542 | <issue_start>username_0: I am practising with generators and I wonder why the following code does not print 16 pairs but only 4.
```
def range_generator_function(my_range):
for i in my_range:
yield i
gen1=range_generator_function(range(1,5))
gen2=range_generator_function(range(1,5))
def pairs_generator_f... |
2018/03/09 | 521 | 1,516 | <issue_start>username_0: I have a function
```
extern "C" {
fn log_impl(ptr: *const u8);
}
fn log(s: &str) {
log_impl(s.as_bytes() as *const u8);
}
```
This gives me the following error:
```none
error[E0606]: casting `&[u8]` as `*const u8` is invalid
--> src/main.rs:6:14
|
6 | log_impl(s.as_bytes() ... |
2018/03/09 | 444 | 1,510 | <issue_start>username_0: I am new to Python and recently installed Python 3.6 on Windows 10. When I try to open IDLE, Python's IDE, I keep getting a message saying that it can not establish a subprocess. I have tried uninstalling and installing several times. I have seen several forums which say that there could be a .... |
2018/03/09 | 1,893 | 7,276 | <issue_start>username_0: I am able to pass a variable from the parents scope to an anonymous function as follows:
```
var f = function(myVar) {
alert(myVar);
}
f('hello');
```
I don't wish to do so, but instead allow the closure to directly access the parent's scope.
PHP allows me to do so as described by <http... |
2018/03/09 | 420 | 1,767 | <issue_start>username_0: I was reading [this](https://www.cs.northwestern.edu/academics/courses/311/html/space-complexity.html) website to learn about space complexity. It mentioned the following scenario:
A function is written in a language that is pass by value. So whenever an argument is passed, new memory is allo... |
2018/03/09 | 1,025 | 3,843 | <issue_start>username_0: this is test I created, how can I apply the button disable or enable to both inputs? As you can see the below code only works '.link\_address'. I set keyup since once dom is loaded, we still need to check for weather inputs are empty or not. what am I doing wrong here? I tried foreach that chec... |
2018/03/09 | 929 | 3,460 | <issue_start>username_0: I am trying to use VBA to click the button: **search job posting**
[button](https://i.stack.imgur.com/8KHuv.png)
The html code:
```
|
-or - [Search Job Postings](javascript:void(0)) |
```
I was attempting to do it by something like:
**IE... |
2018/03/09 | 1,385 | 4,549 | <issue_start>username_0: I am attempting to build a website to assist with recording times of events during ems calls. I have replicated our protocols and am using localstorage to record when and what event happens. When the incident is over, all the events that have been clicked are displayed on a report page where th... |
2018/03/09 | 258 | 865 | <issue_start>username_0: I am currently working on a Virtex 7 FPGA . I am trying to install the driver for the PCIe DMA driver for linux . But it is giving me the following error :
**error: implicit declaration of function ‘pci\_enable\_msix’ [-Werror=implicit-function-declaration]**
Can someone help me with this err... |
2018/03/09 | 938 | 3,441 | <issue_start>username_0: There is probably something obvious I'm missing. Is there *one* property that can change the color of all the text in a Flutter app?
The way I am doing it now is, in my MaterialApp:
```
theme: ThemeData(
textTheme: Theme.of(context).textTheme.copyWith(
body1:
Theme... |
2018/03/09 | 797 | 2,738 | <issue_start>username_0: Is there a way in Typescript to optionally require keys in different circumstances?
For example
```
interface IDog {
name: string;
weight: number;
}
class Retriever implements IDog {
name = "Dug";
weight = 70;
public updateAttribute(props: IDog) {
...
}
}
```
Let's say `up... |
2018/03/09 | 745 | 2,517 | <issue_start>username_0: I am willing to pass an array while routing, for example I have the following :
```
```
The above code works fine and shows the below URL :
```
http://example.com/users?userId=302932
```
However, I willing to have something like the following:
```
```
I would like to keep the same URL ... |
2018/03/09 | 1,383 | 5,070 | <issue_start>username_0: I really need your help, because I can't find a solution on my own since 2 hours. I tried many different approaches, but I just don't get how I can validate an attribute of a variable by using another attribute as a condition.
This was my last try:
```
class User < ApplicationRecord
validates... |
2018/03/09 | 1,524 | 5,173 | <issue_start>username_0: This is the code I have in a [very involved] spreadsheet someone made at work:
```
Sub ClearSheet()
'
' Macro5 Macro
'
'
Range("E9,E2:F7,C14:I39,Q41:Q55,N14:N39,N41:N55").Select
Range("Q14").Activate
Range("E9,E2:F7,C14:I39,C41:I55,Q41:Q55,N14:N39,N41:N55,L41:L55").Select
Range("Q41").Activat... |
2018/03/09 | 1,254 | 4,378 | <issue_start>username_0: I've been trying to do:
```
double x10 = 2.4;
String str = "The value of a variable is x10";
int c = 0;
while(c
```
Desired Output:
```
The value of a variable is 2.4
```
Problem:
```
The problem is that it doesn't seems to be comparing 10 in a String,
so that it can replace th... |
2018/03/09 | 1,146 | 4,140 | <issue_start>username_0: I have two players created from the Player class, they have their own army with attack 10 and defense 5.
When I enter `player1.attack ()` the first player attacks the second player's army, but I just don't understand how two children from one class can interact with each other.
Please give m... |
2018/03/09 | 433 | 1,522 | <issue_start>username_0: I have a task to get a piece of c# code to make my CPU go 100% consistently. I have tried infinite loops, big integer calculations, concatenation of numerous very long strings.... everything either goes to 100% for a few moments and then down to like 60% or doesn't go to 100% at all.
Is there... |
2018/03/09 | 1,697 | 5,960 | <issue_start>username_0: I am trying to add checkboxes in my bokeh plot so that I can hide or show different lines in my plot. I found some code from github and modified it to fulfil my purpose. Please have a look into the below code,
```
for data, name, color in zip([AAPL, IBM, MSFT, GOOG], ["AAPL", "IBM", "MSFT"... |
2018/03/09 | 698 | 2,411 | <issue_start>username_0: I am new to Android Java (and java). I am trying to modify a package I am using in my react-native app.
Currently when in landscape mode my `EditText` is getting cutoff like in screenshot below.
I was trying to modify this library, so I modified the `alertDialog.setView` call here - <https://... |
2018/03/09 | 725 | 2,210 | <issue_start>username_0: How can I add only the days of the month in an array removing Saturday and Sunday?
user goes set the month and year and with this month I get the days.
ex:
March 2018
1 2 5 6 7 8 9 12 13 14 15 16 19 20 21 22 23 26 27 28 29 30<issue_comment>username_1: Filter the array of dates based on the ... |
2018/03/09 | 1,022 | 3,253 | <issue_start>username_0: I am trying to create an array after I put a for loop through an if argument that is read from a csv file. In this code below, I print the results. Instead of printing the results, I would like to store them in an array. How do I do this?
```
with open('_Stocks.csv') as csv_file:
csv_read... |
2018/03/09 | 664 | 2,352 | <issue_start>username_0: Here's my code:
**HTML:**
```
**By checking this, you agree to our [Terms &
Conditions](terms.html) and [Privacy Policy](privacy.html)**
```
**JavaScript**
```
var checker = document.getElementById('checkme');
var sendbtn = document.getElementById('submit');
checker.onchange = function... |
2018/03/09 | 437 | 1,620 | <issue_start>username_0: I want to override env data
I overridethe mail service like this
```
config(['mail.host' => $emails_data->host]);
config(['mail.username' => $emails_data->username]);
config(['mail.password' => $emails_data->password]);
(new MailServiceProvider(app()))->register();
`... |
2018/03/09 | 1,258 | 4,660 | <issue_start>username_0: I've tried looking at sources to learn a little on a method of creating rows and cells, however I'm surely getting something wrong, the output puts all the data into the header. and doesnt generate rows.
Javscript:
```
function addRepairData() {
// Select the Table
var tbl = docu... |
2018/03/09 | 1,710 | 4,835 | <issue_start>username_0: I have a grouped dataframe `df1`, and in a variable `n0` I want to count those cases in each group `id` which don't have the treatment `d`. First some data:
**Data:**
```
set.seed(100)
n <- 1000
df1 <- data.frame(a=rbinom(n, 1, .5),
b=sample(20:40, n, replace = TRUE),
... |
2018/03/09 | 983 | 4,237 | <issue_start>username_0: I have this property:
```
[DisplayName("Conexión")]
[TypeConverter(typeof(Converters.DevicesTypeConverter))]
[Description("Conexión con el dispositivo a usar.")]
[Required]
public string Conexion { get; set; }
```
I need to get the type converter instance of it. I tried w... |
2018/03/10 | 947 | 2,495 | <issue_start>username_0: In my dataset, I have a few rows which contain characters.
I only need rows which contain all integers. What is the best possible way to do this? Below data set:
e.g I want to remove the rows 2nd and 3rd as they contain 051A, 04A, and 08B respectively.
```
1 2017 0 321 3 20 42 ... |
2018/03/10 | 1,927 | 8,604 | <issue_start>username_0: I have to create a menu tree from a JSON.
The JSON looks like this:
```
[
{
"For Home Products":[
"Menu Free Antivirus",
"Menu Premium",
"Menu Internet Security"
]
},
{
"For Business Products":[
{
... |
2018/03/10 | 1,960 | 6,628 | <issue_start>username_0: Or I guess binary in general. I'm obviously quite new to coding, so I'll appreciate any help here.
I just started learning about converting numbers into binary, specifically two's complement. The course presented the following code for converting:
```
num = 19
if num < 0:
isNeg = True
... |
2018/03/10 | 1,080 | 3,177 | <issue_start>username_0: I need help to create a query in Access to incrementally number groups of rows, grouped on a common date and keep the "group numbers" increment on the next date like showing in the Result column.
Date |ID |Result
----------------
2017/01/09 |809 | 1
2017/01/09 |810 | 1
2017/01/09 |826 | 1
... |
2018/03/10 | 3,091 | 7,878 | <issue_start>username_0: Working on an HTML project.
Having issues with making a JavaScript that will work for what I'm looking for:
When a button is clicked, I want the `::before` css to change
and the `::after` css to change as well.
And when the button is clicked again, revert the css back to normal.
Basically... |
2018/03/10 | 1,139 | 4,062 | <issue_start>username_0: Determine whether there exists a graph with a sequence of degrees of vertices (s = s1, s2...sn).
What is the best and most optimized algorithm for solving this problem.
```
Input:
the first line contains `t<100` - amount of sequnces.
the second line contains value `n <= 1000000`(leng... |
2018/03/10 | 1,423 | 3,883 | <issue_start>username_0: I have a table of pool league match results with both match\_begin\_time and match\_end\_time fields of type TIME.
I want to know how many records fall into various time duration intervals, i.e., < 1 Hour, 1 Hour to 1.5 Hours, etc.
I tried the following code to grab the 1st 2 intervals, but e... |
2018/03/10 | 1,011 | 3,440 | <issue_start>username_0: Why does this code print `"greater than 0"`?
```
int main()
{
unsigned int a = 5;
int b = -10;
(a + b) > 0 ? printf("greater than 0") : printf("less than 0");
}
```
If I do:
```
printf("%d\n", a + b);
```
...it prints:
```
-5
```<issue_comment>username_1: Your problem
===========... |
2018/03/10 | 768 | 3,062 | <issue_start>username_0: I created a custom layer, but not sure how can I use and train bias weights for this layer.
```
from keras import backend as K
from keras.engine.topology import Layer
import numpy as np
import tensorflow as tf
class MyLayer(Layer):
def __init__(self, output_dim, **kwargs):
self.o... |
2018/03/10 | 465 | 1,475 | <issue_start>username_0: Maybe there's a really easy solution but I dont see it because I been doing this all day and my brain is fried
How do I clean out the dupes from the source table to the Goal table?
[](https://i.stack.imgur.com/AtCg7.jpg)<issu... |
2018/03/10 | 368 | 1,359 | <issue_start>username_0: I have a Crystal report that needs to display the group count in the group header. To be clear when I say count I don't mean the count of the details but the count of the actual group.
For example, if the report groups on field A and the report ends up creating three groups lets say X, Y, and... |
2018/03/10 | 1,265 | 3,933 | <issue_start>username_0: I've been searching around for a while now, but I can't seem to find the answer to this small problem.
I have this code that is supposed to split the string after every three words:
```
import re
def splitTextToTriplet(Text):
x = re.split('^((?:\S+\s+){2}\S+).*',Text)
return x
print... |
2018/03/10 | 1,466 | 4,483 | <issue_start>username_0: I need some help with a query in mysql, I´ve been struggling for days with this and the more I research the more confused I get. Here is my query:
```
SELECT name, pax, agency, origin, destination, internal_notes,
departure_flight, departure_date, arrival_date, arrival_flight,
TI... |
2018/03/10 | 1,327 | 4,227 | <issue_start>username_0: I'm trying to build a reservation system where a customer can reserve a minibus. I've been able to get the all the data so a booking can be made.
I'm trying to avoid another user to reserve the minibus for the same day. I'm not to sure how to go about it as in new to ruby on rails.
In my re... |
2018/03/10 | 1,424 | 4,757 | <issue_start>username_0: How to send multiple file filed in email attachment.
in views file
```
```
in my controller
```
$config['upload_path'] = './uploads/';
$config['allowed_types'] = 'gif|jpg|png|txt';
$config['max_size'] = '100000';
$config['overwrite'] = TRUE;
$config['encrypt_name'] = TRUE;
$this->l... |
2018/03/10 | 1,535 | 5,185 | <issue_start>username_0: I'm a beginner to C++ and I'm having trouble reading blocks of data from an input file and displaying that data properly in an output file. The text inside the input file I need to use looks like this:
& Warehouse ÿÿÿÿ X¦a¤ Ãq¹B
The output should look something like this:
Id: (some integer)
... |
2018/03/10 | 273 | 1,058 | <issue_start>username_0: I want to force my Swift iOS app to display in "compatibility mode" on the iPhone X (I'm aware of the new guidelines). How can I do this while still using the iOS 11 SDK?<issue_comment>username_1: That's pretty easy to do actually:
In `application:didFinishLaunchingWithOptions:` do the followi... |
2018/03/10 | 524 | 2,012 | <issue_start>username_0: This discord bot keeps repeating what it just said concatenating two strings! Please help!
```
const Discord = require('discord.js');
const client = new Discord.Client();
const prefix = "*";
client.on('message', (message) => {
if (message.content == prefix + 'test') {
message.chan... |
2018/03/10 | 2,193 | 4,410 | <issue_start>username_0: Given a Numpy array of shape 6 x 10, how would you compute the shifted means of the diagonals? A matrix like this
```
[[0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
[0, 1, 2, ... |
2018/03/10 | 333 | 1,150 | <issue_start>username_0: When changing the color palette in R:
```
palette(c("red", "green", "blue"))
```
An empty window pops-up. Read the `help(palette)` but didn't find any mention there. Is there a way to suppress this behaviour and change the palette silently?<issue_comment>username_1: The `palette` function ne... |
2018/03/10 | 414 | 1,718 | <issue_start>username_0: I am moving from the world of storyboards to the one without. I was wondering how to implement the prepareForSegue method in this case. Because this method uses a segue identifier and the only way I know to provide a segue identifier is through the storyboard, I am not sure how to do this when ... |
2018/03/10 | 326 | 1,117 | <issue_start>username_0: How can I do this in SQL
```
select * from table where price_table like %(>=200)
```
if I have a (USD 250, IDR 2000) in the fields `price_table`?<issue_comment>username_1: I am guessing that you have a price field that is a string with the first 3 characters as the currency, followed by a sp... |
2018/03/10 | 466 | 1,603 | <issue_start>username_0: I am making a endless runner game using `SpriteKit`. When I run the game, the background is black, and I've tried 3 methods on how to change the background, but it still is black. The code for my scene is
```
if let view = self.view as! SKView? {
// Load the SKScene from 'GameScene.sks'
... |
2018/03/10 | 913 | 3,242 | <issue_start>username_0: I've pre-compiled my react-native bundle and uploaded it to my server (fake url):
>
> <http://my-bundle-server.com/index.android.bundle.js>
>
>
>
For iOS I can just create a view using that location and it works just fine:
```
jsCodeLocation = "http://my-bundle-server.com/index.android.... |
2018/03/10 | 2,632 | 7,390 | <issue_start>username_0: Step1:finish installing etcd and kubernetes with YUM in CentOS7 and shutdown firewall
Step2:modify related configuration item in /etc/sysconfig/docker
>
> OPTIONS='--selinux-enabled=false --insecure-registry gcr.io'
>
>
>
Step3:modify related configuration item in /etc/kubernetes/apiserv... |
2018/03/10 | 1,178 | 3,874 | <issue_start>username_0: I want to combine the following commands using AND operator:
```
grep("^ab", strings, value = TRUE)
grep("ab$", strings, value = TRUE)
```
Here is an example for OR operator
<http://r.789695.n4.nabble.com/grep-for-multiple-pattern-td4685244.html#a4685247>
Would you please advise?<issue_com... |
2018/03/10 | 1,481 | 4,722 | <issue_start>username_0: I have a large string array like:
```
var array = [["worker ", "department", "2", "6", "8", "3", "1", "12", ... , 14]
["1", "Duty/Not", "1", "0", "1", "0", "0", "1", ..., "0"]
["worker ", "department", "11", "10", "11", "3", ..., "7"]
["2", "Duty/Not", "0", ... |
2018/03/10 | 1,505 | 5,619 | <issue_start>username_0: **Summary**
I am using [swagger-codegen-js](https://github.com/wcandillon/swagger-js-codegen) to generate typescript files according to the swagger.json defined by an external api.
**packages used**
"swagger-js-codegen": "^1.12.0",
**Alleged Problem**
The return type on the method `listMovies... |
2018/03/10 | 715 | 2,260 | <issue_start>username_0: I'm trying to compare an array of times with the current local time. But comparing the numbers fails for some values. As far as I could detect, it is not always failing the same time string. Im really out of ideas what the reason could be.
```
function lastPassedTimeIndex() {
const d = new D... |
2018/03/10 | 1,405 | 5,371 | <issue_start>username_0: I'm trying to write simple http server, that will serve requests to API. This is a code:
```
type Config struct {
ListenPort int `json:"listenPort"`
Requests []struct {
Request string `json:"request"`
ResponceFile string `json:"responceFile"`
} `json:"request... |
2018/03/10 | 373 | 942 | <issue_start>username_0: I need a function that will be convert an int value to string with fixed length.
For example :
```
5 -> '000005', 5245 -> '005245' ..
```
If the number is bigger than 999999 it stays as it is:
```
2548562 -> '2548562'
```
Is there PHP function to do that, or do I need to create a custom... |
2018/03/10 | 363 | 984 | <issue_start>username_0: I am trying to scrape the option values with the following HTML;
```
SIZEXSSMLXL
```
I have tried following code with no success:
```
soup=BeautifulSoup(response.text, "html.parser")
product = soup.find('select',{'class':'PI__select PI__input js-select js-select-SIZE js-select-SIZE-static'... |
2018/03/10 | 1,497 | 5,559 | <issue_start>username_0: I am taking a hybrid class of "Algorithms, architecture, and assembly language" at my local community college. Although it's an intro class and mainly focuses on how computers turn code into binary, we have some assignments for C code. Some of the stuff we've never even gone over in class, and ... |
2018/03/10 | 825 | 2,013 | <issue_start>username_0: I have a table containing:
```
table = [[2, 1],[5, 2],[6, 4],[4, 5],[1, 3],[3, 6]]
```
and what I'm trying to do is to print the elements in the table for a set number of times, provided by the user.
For example,
```
userinput = 1
```
then it should just print one element from the table... |
2018/03/10 | 492 | 1,639 | <issue_start>username_0: Let's say I have a class:
```
class Fruit {
var fruitName: String
init(getFruit name: String) {
fruitName = name
}
}
```
Is there any difference between using the constructor, and using .init?
```
var apple = Fruit(getFruit: "apple")
var orange = Fruit.init(getFruit: ... |
2018/03/10 | 918 | 3,529 | <issue_start>username_0: Hello guys here is my firebase database:

I want to get list of all medicines with particular symptoms.
Here is my code i.e what i have done
```
public void initializeMedicineListener(String node,String type,String value){
... |
2018/03/10 | 1,510 | 5,987 | <issue_start>username_0: I am writing this program for my first intro to programming class so I am still pretty new to coding. This is what I have so far in my conversion class:
```
/**
* Write a description of class Conversion here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class ... |
2018/03/10 | 1,351 | 2,692 | <issue_start>username_0: I have a numpy datetime.
```
numpy.datetime64('2010-06-01T00:00:00.000000000')
```
How can I get something like:
```
numpy.datetime64('2010-06-01')
```
or
```
'2010-06-01'
```
Basically, I want to remove the hour and beyond timestamp.<issue_comment>username_1: I would recommend using `... |
2018/03/10 | 1,581 | 3,931 | <issue_start>username_0: I have a table called 'counts' which returns rows in the following form:
```
SELECT Name,
PassCount,
WarningCount,
FailCount
FROM counts
╔════════════════════════════════════════════╗
║ Name PassCount WarningCount FailCount ║
╠════════════════════════════════════════... |
2018/03/10 | 962 | 1,938 | <issue_start>username_0: I have the following dataframe:
```
Name,2014,2015,2016,2017,2018
Brad,100,200,342,532,65
Tom,54,2,523,121,200
Uma,200,221,225,229,250
```
What I am trying to do is to subtract each year from previous column to this:
```
Name,2014,2015,2016,2017,2018
Brad,0,100,142,190,-467
```
I want to ... |
2018/03/10 | 1,101 | 3,678 | <issue_start>username_0: I'm trying to use the Roboto font in my app and having tough time..
I did `npm install --save typeface-roboto` and added `import 'typeface-roboto'` to my React component. But still can't get my font to change.
I am trying to do like this :
```
const React = require('react')
import 'typeface... |
2018/03/10 | 386 | 1,296 | <issue_start>username_0: I have an extension method
```
public static class DbMigratorExtensions
{
public static IEnumerable DoCoolStuff(this DbMigrator dbMigrator, string[] first, string[] second)
{
// ...
}
}
```
and I'm trying to use it like
```
DbMigrator.DoCoolStuff
```
but I get the
>
>
> ```
>... |
2018/03/10 | 1,522 | 5,471 | <issue_start>username_0: I'm using Retrofit to comunicate with REST API on Android, but I getting an error NullPointerException like below. I try using postman, the API is work fine and I get the response.
>
> java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List ukmutilizer.project.com.ukm... |
2018/03/10 | 1,543 | 5,947 | <issue_start>username_0: I am trying to use [string similarity](https://www.npmjs.com/package/string-similarity) inside Google App Script, however it is not entirely clear to me how to get it working inside App Script, I get multiple errors, such as "require" is not defined, as another note, the module itself appears t... |
2018/03/10 | 1,364 | 6,483 | <issue_start>username_0: I am trying to do something simple. But i don't know why it doesn't work. I'm just want to change the `toolbar` title to match the fragment on tab changes. But somehow it will get the wrong value. Like when i choose A it will set the title B. And sometimes the title won't changes at all. How ca... |