date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/05 | 1,018 | 3,507 | <issue_start>username_0: So I am trying to implement this definition:-
```
def validate(validationPredicates: List[A => Try[Boolean]]): Try[Boolean] = ???
```
And the way its supposed to work is the follows:-
1. Accept a list of predicates (with different args for each predicate, so A is technically wrong).
2. Run... |
2018/03/05 | 4,187 | 9,871 | <issue_start>username_0: I have a room query:
```
@Query("SELECT * FROM classes WHERE _id IN(:values) ORDER BY date DESC")
fun getClassesByIds(values: List): Maybe>
```
---
```
compositeDisposable.add(viewModel.getClassesById(classesTaken)
.subscribeOn(Schedulers.io())
.obser... |
2018/03/05 | 1,088 | 3,597 | <issue_start>username_0: With Android Studio's Android Emulator I'm seeing a problem displaying a complex WebGL-enabled graphics web page in a Java WebView widget ([PixiJS demos appear blank in WebView on Android emulator](https://stackoverflow.com/questions/49285000/pixijs-demos-appear-blank-in-webview-on-android-emul... |
2018/03/05 | 930 | 2,867 | <issue_start>username_0: I'm excited to use d3 to help me process some data but I'm having some trouble loading my data.
My .csv looks like this:
```
id,name,city,latitude,longitude,dpcapacity,online_date
456,2112 <NAME>,Chicago,41.991178,-87.683593,15,2/10/2015 14:04:42
```
My .js looks like this:
```
d3.queue()
... |
2018/03/05 | 743 | 2,581 | <issue_start>username_0: I'm using Angular material datatable with array as datasource. I would update my table every data change using renderRows() method as mentionned in the doc.
I have my **ts file**
```
import { Component, OnInit } from '@angular/core';
import { MatTableDataSource } from '@angular/material';
im... |
2018/03/05 | 482 | 1,589 | <issue_start>username_0: I have 2 string, both split by (" ") and both around 40 different sub strings, first one called dick is the would-be keys, and the other one called dicv is the would-be values, how can I fill a dictionary with those?
I tried this:
```
Dim dicty As New Dictionary(Of String, String)
Fo... |
2018/03/05 | 896 | 3,390 | <issue_start>username_0: I'm trying to get a user from mysql table with a username instead of id in ASP.Net Core, the default column in GET method is id. I tried to change it to username, but the column is unknown.
In my table, username, password and email are in TEXT type, id in INT type.
My changed code is:
```
//... |
2018/03/05 | 886 | 3,674 | <issue_start>username_0: I am new to react and the react router. What I try to achieve is doing an AJAX call and after that I would like to go to another component/page. I am used to Vue and with Vue you got something like `this.$router.push('/page')`. So I tried to find something similiear but I am still not sure if i... |
2018/03/05 | 1,914 | 7,136 | <issue_start>username_0: I know there are a few other questions in the same category, but nothing has solved my problem.
I am using ClusterManager to cluster Markers using Google Maps API guide (<https://developers.google.com/maps/documentation/android-api/utility/marker-clustering>).
Problem: I am using addItem() ... |
2018/03/05 | 554 | 1,743 | <issue_start>username_0: Given table:
```
ID ANOTHERID ONE TWO THREE
X1 B1 15 15 -
X1 B2 10 - -
X2 B1 - 20 -
```
This query:
```
SELECT SUM (ONE + TWO + THREE) FROM (TABLE)
GROUP BY ID, ANOTHERID
```
I also tried
```
select... |
2018/03/05 | 1,386 | 4,623 | <issue_start>username_0: I have been struggling trying to convert hexadecimal to binary.
I was assigned to write a piece of code that calculates the output of a full-adder
circuit. Part of the assignment is determining the base in which the numbers are being entered by the user. I have been testing whether my code was ... |
2018/03/05 | 1,274 | 4,110 | <issue_start>username_0: I'm trying to build a neural network using some layers from a pretrained ResNet50 ( the one included in keras.applications )
To do it, I'm using the get\_layer method of the model. like this.
```
input = Input( (224, 224 , 3) )
resnet = ResNet50(weights='imagenet', pooling=max, include_top =... |
2018/03/05 | 881 | 2,974 | <issue_start>username_0: I'm having a strange problem with the Pandas .isin() method. I'm doing a project in which I need to identify bad passwords by length, common word/password lists, etc (don't worry, this is from a public source). One of the ways is to see if someone is using part of their name as a password. I'm ... |
2018/03/05 | 695 | 2,383 | <issue_start>username_0: Alright. In the code below I am trying to take a (multi-line) .txt file, stored in my\_heightmap, and turn it into a list, which I then reformat as an array (such that heightarray is separately holding every value in each row of what will become a two-dimensional, text-based heightmap.) I'm get... |
2018/03/05 | 749 | 2,882 | <issue_start>username_0: I want to upload images insinde the TinyMCE editor. I found instructions for that [in the docs](https://www.tinymce.com/docs/get-started/upload-images/).
These are my Javascript settings:
```
tinymce.init({
selector: '#about',
images_upload_url: '/home/profile/about/... |
2018/03/05 | 417 | 1,039 | <issue_start>username_0: I have my string formatted as: 20170814 and wanted to convert to date by as.Date function but keep producing me 'NA".
This is my function:
```
a<-"20170814"
as.Date(a,"%y-%m/%d")
```
Can you please give me some help
Thanks<issue_comment>username_1: You want to use
```
as.Date(a, "%Y%m%d")
#... |
2018/03/05 | 508 | 1,869 | <issue_start>username_0: Very similar to this question: [Check date between two other dates spring data jpa](https://stackoverflow.com/questions/39784344/check-date-between-two-other-dates-spring-data-jpa)
However, I am attempting to do this with MongoDB and `java.time.LocalDateTime`.
I have tried:
* `findAllByMeta... |
2018/03/05 | 678 | 2,693 | <issue_start>username_0: I have two app directories in my django project named "visit" and "main". After Loging the user in through visit app, how do I change the app directory to another main i;e how to display templates from another app (excuse my english) ?
visit/views.py :
```
from django.shortcuts import render
... |
2018/03/05 | 1,446 | 5,351 | <issue_start>username_0: Using webpack 3 and react, I can import a file like this:
```
import(`src/Main.sass`).then(...do something)
```
I have a loader for the imported files that changes the module content based on a query string, and I can successfully import a file like this:
```
import(`src/Main.sass?theme=the... |
2018/03/05 | 702 | 2,216 | <issue_start>username_0: In Google colaboratory, when trying to use opencv haar-cascade classifiers and loading the classifier data, the library uses a path to determine where the classifier data is.
How can this path be specified in a colaboratory notebook, since typically files are loaded from google drive or upload... |
2018/03/05 | 510 | 1,559 | <issue_start>username_0: Lets say I have a class
```
class Car
{
public:
...
friend operator<(const Car&car1, const Car&car2){
return car1.getYear() < car2.getYear()
}
private:
int year;
double price;
string brand;
};
```
How can I overload the same operator if I want to compare the Car based on the pric... |
2018/03/05 | 909 | 2,325 | <issue_start>username_0: Hi I am a beginner python user and I need some help. I am trying to filter one dataframe against another.
Df1
```
date emp# sku transaction#
2017-01-01 10 200 399
2017-01-01 10 201 399
2017-01-01 10 202 399 ... |
2018/03/05 | 1,545 | 4,883 | <issue_start>username_0: I am using following data set as an example:
```
Age Gender CarType Group Education
1 46 Male Sedan 1 BS
2 37 Male SUV 1 MS
3 47 Female Sedan 2 PhD
4 20 Male SUV 2 ... |
2018/03/05 | 456 | 1,626 | <issue_start>username_0: I recently update the laster version [vue-cli 3](https://github.com/vuejs/vue-cli)
After creating a project and run it,
it will show the message
* You may use special comments to disable some warnings.
* Use `//eslint-disable-next-line` to ignore the next line.
* Use `/* eslint-disable */` t... |
2018/03/05 | 587 | 2,089 | <issue_start>username_0: I have an issue and I cant seem to figure it out, basically I'm trying to use a ternary if statement in a `[src]` attribute in angular
```
![]()
```
basically what Im trying to do here is if `asset.fields.authorHeadImage` is null or `asset.fields.authorHeadImage` is undefined show this prede... |
2018/03/05 | 323 | 1,027 | <issue_start>username_0: I have done everything possible to prevent scrolling in my PhoneGap (Cordova) app, but I just cannot prevent it. Here's what I've tried:
**`config.xml`**
```
```
**`index.html`**
```
...
html, body {
margin: 0px;
padding: 0px;
overflow: hidden;
}
```
**`index.js`**
```
function r... |
2018/03/05 | 309 | 1,054 | <issue_start>username_0: I built a regression model using my training dataset, and I want to use this model to get predicted values in my testing dataset. Therefore, I can compare the predicted values with the actual values in the testing dataset and find the differences between them. However, I don't know how to plug ... |
2018/03/05 | 375 | 1,298 | <issue_start>username_0: I am trying to import some data from a csv. However, for some reason I have some line breaks at the beginning of some of my data. I am using this code to import:
```
import csv
def opencsv():
with open('static/urls.csv', encoding="utf-8-sig", newline='') as csvfile:
lines = csv.r... |
2018/03/05 | 1,070 | 4,338 | <issue_start>username_0: I am parsing a flat binary file that contains files and (their) directories concatenated together in a special format (with headers, indexes, etc). While parsing I want to create a python FileAndDirectory Object for each of them. My code for the FileAndDirectory Object is as follows:
```
class... |
2018/03/05 | 1,010 | 2,657 | <issue_start>username_0: I has found a scripts from **pmav99**. Big thanks to him.
```
import socket
import psutil
def get_ip_addresses(family):
for interface, snics in psutil.net_if_addrs().items():
for snic in snics:
if snic.family == family:
yield (interface, snic.address, s... |
2018/03/05 | 760 | 2,809 | <issue_start>username_0: The HTML link to download:
```
@Html.DisplayFor(model => model.BlobName)
Generated HTML link: http://localhost:50325/DebitMemos/DownloadFile/76
```
The corresponding controller:
```
public async Task DownloadFile(int id)
{
var debitMemo = await \_context.DebitMemo
.SingleOrDefaultAsync(... |
2018/03/05 | 1,014 | 2,052 | <issue_start>username_0: I want to adjust val column so that there will not be any negative values.
Ajusting rule is,
* replace negative value with half of previous row
* do this for each hier ( group\_by(hier) )
* if more than one negative values consecutive, divide previous adjusted value to 2
```
xdat <- data.fr... |
2018/03/05 | 1,039 | 3,871 | <issue_start>username_0: As of right now, I am working on developing a simple clicker game for fun. I would like to be able to run an auto-clicker that automatically adds X clicks to your total w/ say a 1 second delay in-between each time. My problem is that if I try to delay, and/or not and run an auto-clicker, it wil... |
2018/03/05 | 1,066 | 3,919 | <issue_start>username_0: Summary: Does an absolutely positioned element care about its siblings under any circumstance (Whether the siblings are relative, absolute, static) ?
My understanding was that absolute positioning ignores siblings.
```css
.absoluteBox {
position: absolute;
width: 100%;
height: 100%;... |
2018/03/05 | 586 | 1,972 | <issue_start>username_0: I have a problem with MySQL. I have created Database called 'BucketList', and then I have tried to create table called 'tbl\_user', it looks like that:
```
CREATE TABLE `BucketList`.`tbl_user` (
`user_id` BIGINT NULL AUTO_INCREMENT,
`user_name` VARCHAR(45) NULL,
`user_username` VARCHAR(4... |
2018/03/05 | 1,747 | 5,685 | <issue_start>username_0: My question is an extension to [another question](https://stackoverflow.com/questions/11346111/sort-dictionary-of-dictionaries-on-multiple-child-dictionary-values) where the OP has a dictionary, the one below, and wants to sort main keys based on the sub-dictionary keys
```
myDict = {
'SER... |
2018/03/05 | 730 | 2,291 | <issue_start>username_0: I am trying to convert a standard Youtube URL to an Embed URL with the following function:
```
php
$url = 'https://www.youtube.com/watch?v=oVT78QcRQtU';
function getYoutubeEmbedUrl($url)
{
$shortUrlRegex = '/youtu.be\/([a-zA-Z0-9_]+)\??/i';
$longUrlRegex = '/youtube.com\/((?:embed)|(... |
2018/03/05 | 632 | 2,259 | <issue_start>username_0: How do I implement a retry count of 5 times, 10 seconds apart when sending a `POST` request using the `requests` package.
I have found plenty of examples for `GET` requests, just not `post`.
This is what I am working with at the moment, sometimes I get a 503 error. I just need to implement a r... |
2018/03/05 | 547 | 2,253 | <issue_start>username_0: I want the user to be able to login with phone and password.
If the user enters the app first time, he es registered by validating his phonenumber, thats the current state at firebase. But I dont want to always send a sms code to the user every time he wants to login.
Now in the next step of ... |
2018/03/05 | 2,554 | 8,777 | <issue_start>username_0: I have a website that will mainly be used for large screen monitors on the desktop. Within the page I will have various content sections, but I also want to have a mobile app area within a div that will display to the user how items in a mobile app might look differently on different mobile pho... |
2018/03/06 | 692 | 2,459 | <issue_start>username_0: Im a total noob and I'm just beginning to learn about APIs. I'm trying to use the Yelp API and I cant seem to access it.
According to the documentation, I'm supposed to: "Put the API Key in the request header as "Authorization: Bearer "
I'm not familiar with Authorizations and Not sure if I'm ... |
2018/03/06 | 840 | 3,051 | <issue_start>username_0: I am learning PowerShell and I am having difficulties with my homework. My goal is to get a listing of all files in current directory, save it to a variable. Then use a foreach loop to move each file to different folders based on the file name, using file tags to search for the file names.
Fil... |
2018/03/06 | 928 | 3,383 | <issue_start>username_0: I want to use the reselect with redux-form to get the value from redux. the problem is I don't know how to combine the getFormValues with reselect. it seems that I cannot access the state in the createSelector. so that I cannot come up a way to use the redux-form's selector in the reselect.
Fo... |
2018/03/06 | 1,721 | 6,154 | <issue_start>username_0: Implement the GuessNumber game. In this game, the computer
- Think of a random number in the range 0-50. (Hint: use the random module.)
- Repeatedly prompt the user to guess the mystery number.
- If the guess is correct, congratulate the user for winning. If the guess is incorrect, let the u... |
2018/03/06 | 1,589 | 5,455 | <issue_start>username_0: ```
#include
#include
#include
#define MAX40 40
/\* run this program using the console pauser or add your own getch, system("pause") or input loop \*/
Int40 \*parseString(char \*str)
{
Int40 \*p;
char \*ptr;
int i, len, value, ptrValue;
printf("%s\n", str);
for(i = 0; i < 40; i++)
{... |
2018/03/06 | 1,577 | 5,400 | <issue_start>username_0: I'm an absolute beginner at python.
```
import math
def bulma(x, y, z, t):
return math.sqrt((x ** 2) + (y ** 2) - (2 * x * y * z))
def bulucu():
x = float(input("İlk kenarı giriniz."))
y = float(input("İkinci kenarı giriniz."))
t = float(input("Aralarındaki açıyı radyan cins... |
2018/03/06 | 1,556 | 6,486 | <issue_start>username_0: I have a Node API that returns data in a JSON format and sends it to a React Component `App` that stores it in its state (`nearbyShops`) to pass it afterwards to the `NearbyShop` component props. The thing is I don't get the content displayed even though I used `componentDidMount`.
`App.js`:
... |
2018/03/06 | 917 | 3,840 | <issue_start>username_0: New to Chef, bare wi/ me. Building my cookbook.<issue_comment>username_1: The problem likely stems from the fact that `setState` does not return a promise - it requires a callback if you wish to use the update state values after update.
So when you attempt to get the nearby locations, you will... |
2018/03/06 | 854 | 3,604 | <issue_start>username_0: in my program I have MainActivity and many fragments..
I try the following code to return from fragment to MainActivity by
`onBackpressed()` method
```
override fun onBackPressed() {
if(drawer_layout.isDrawerOpen(GravityCompat.START)) {
drawer_layout.closeDrawer(GravityCompat.STA... |
2018/03/06 | 262 | 878 | <issue_start>username_0: I have a Grafana dashboard, with an InfluxDB data source.
I want to set up a custom Alias. However, my tags are supposed to be *human readable* therefore have spaces in them...
Like this, the tags just render to `undefined`... Any thoughts?
[:
''' keeps track of company employees'''
raise_amount = 1.04
def __init__(self, first, last, pay):
self.first = first
self.last = last
self.pay = ... |
2018/03/06 | 6,118 | 23,162 | <issue_start>username_0: I'm trying to understand some internal details of file writing operation done through managed code in C#. Let's say I write below piece of code to write some content into a log file:
```
using System.IO;
public void Log(string logMessage, LogLevel logLevel)
{
if (Directory.Exists(LogFileDi... |
2018/03/06 | 1,383 | 4,597 | <issue_start>username_0: First time posting so apologies in advance if my formatting is off.
Here's my issue:
I've created a Pandas dataframe which contains multiple rows of text:
```
d = {'keywords' :['cheap shoes', 'luxury shoes', 'cheap hiking shoes']}
keywords = pd.DataFrame(d,columns=['keywords'])
In [7]: keywo... |
2018/03/06 | 2,273 | 6,843 | <issue_start>username_0: I have a file which contains the data as follows
```
[{"col1":"col1","col2":1}
,{"col1":"col11","col2":11}
,{"col1":"col111","col2":2}
]
```
I am trying to load the table in Hive.
I am using following Hive serde
```
CREATE EXTERNAL TABLE my_table (
my_array ARRAY>
)ROW FORMAT SERDE '... |
2018/03/06 | 354 | 1,136 | <issue_start>username_0: ```
pack = IP(dst=target)/ICMP()
resp = sr1(pack, timeout=2)
if resp == None:
self.output_console ("no response")
elif IP in resp:
if resp.getlayer(IP).ttl <= 64:
self.output_console("*"*20)
os = 'This Pc is using Linux'
else:
os1 = "This Pc is using Windows"
self.output_console... |
2018/03/06 | 291 | 1,076 | <issue_start>username_0: I have a requirement where-in I have to read the JSON file which exists in AEM DAM. So, I have created a query to read the JSON file in inputStream. With the below line of code, i could get the JSON file in Input Stream. Now, I need to know If there is any standard library to read the input str... |
2018/03/06 | 934 | 3,482 | <issue_start>username_0: ```
let colors = ['blue','red','orange','purple','gray','yellow']
let randomColors = [];
```
I would like push 3 random colors from the the colors array into randomColors.
I dont want any of the colors to be repeated.
Seems simple, but ive spent a few hours not being able to make it not repe... |
2018/03/06 | 1,383 | 5,030 | <issue_start>username_0: Been working on a project and was sure HMR was working, any of my .js files if I would update them webpack would compile and the module would be replaced all hot like.
I was working on a .vue file and webpack would recompile, but there was no super fresh HMR.
Hoping someone can take a look an... |
2018/03/06 | 999 | 3,786 | <issue_start>username_0: I want to create an app where there will be several videos teaching html and css, so any user can watch any video if authenticated.
For each user the url of these videos should be associated with the user session, preventing the user from sending the video url to others to (free) access.
When... |
2018/03/06 | 345 | 1,419 | <issue_start>username_0: I am trying to call SOAP1.2 service using wsHttpBinding. The service accepts rejects the default *Soap12WSAddressing10* message version. It only accepts *SOAP12*.
One suggestion I could get from the Internet search was to create the TextMessageEncodingElement in a custom binding.
How can it b... |
2018/03/06 | 942 | 2,526 | <issue_start>username_0: SQL Server 2016 Enterprise - Let's say I run a query on our main table to bring back all records from ID's 1 through 5. I would get something like this:
```
ID Status BatchID
1 Active 493fd8bc
1 Active 493fd8bc
1 Active 493fd8bc
1 Active 493fd8bc
1 Active 493fd8bc
2 Active ... |
2018/03/06 | 462 | 1,685 | <issue_start>username_0: I am trying to write a unit test. My unit test file is test\_file . My main code is in a file(main\_file.py) which has a class defined and several methods.
All my files are in same dir, so my tree structure looks like :
```html
├── main_file.py
├── __init__.py
├── test_file.py
```
In my mai... |
2018/03/06 | 889 | 2,189 | <issue_start>username_0: I have 2 pandas DataFrames that I am manipulating in Python, and I would like to combine them based on a certain column (col\_1):
```
#df1
col_1 col_2
0 3 7
1 4 8
2 5 5
#df2
col_1 col_3
0 4 78
1 ... |
2018/03/06 | 1,895 | 6,859 | <issue_start>username_0: ```
fseek(f, 0, SEEK_END);
size = ftell(f);
```
If ftell(f) tells us the current file position, the size here should be the offset from the end of the file to the beginning. Why is the size not ftell(f)+1? Should not ftell(f) only give us the position of the end of the file?<issue_commen... |
2018/03/06 | 609 | 1,980 | <issue_start>username_0: I'm trying to create a window using GLFW on Ubuntu. I downloaded GLFW through an `apt-get` command and added it in `Build Options -> Linker Settings`. However, when I try compiling the program it gives me an error saying
`ld cannot find -lGLFW`
I've searched the internet and I couldn't find ... |
2018/03/06 | 655 | 2,217 | <issue_start>username_0: I'm trying to display the SQL query result in a label but it's not showing. The user picks a value from the dropdown list and the label should populate the result. a This is my code:
```
protected void drpEmployeeName_SelectedIndexChanged(object sender, EventArgs e)
{
String connString = C... |
2018/03/06 | 993 | 3,124 | <issue_start>username_0: Im aware there are similar questions like so.. [domSanitizer](https://stackoverflow.com/questions/37076867/in-rc-1-some-styles-cant-be-added-using-binding-syntax/37076868#37076868) and [WARNING: sanitizing unsafe style value url](https://stackoverflow.com/questions/38593515/warning-sanitizing-u... |
2018/03/06 | 865 | 3,177 | <issue_start>username_0: Does `axios-mock-adapter` only work on requests made with `axios`?
I have written a component that POSTs to an API (using vanilla XHR, not axios). I'm testing it in Storybook and want to intercept those POST requests since the endpoint doesn't exist yet:
```
import React from "react"
import {... |
2018/03/06 | 793 | 2,911 | <issue_start>username_0: I have the next problem. We have the lastest LTS versions from Sonarqube and Jenkins. Both are connect and run without problem.
Now we want to change Sonarqube host. For example:
Before:
<http://our-url:9000/sonar>
Now:
<http://our-url:9000>
We clone the server to test if all works fine or ... |
2018/03/06 | 714 | 2,688 | <issue_start>username_0: I'm working on scenario, Jenkins is my CI tools and Maven is my build tool, ere I will be configuring the Jenkins pipeline through Jenkins file, but after the build steps are done, I want to deploy and install the artifacts (i.e .Jar files or some other) using chef(cookbooks-recipies) on the no... |
2018/03/06 | 2,244 | 7,002 | <issue_start>username_0: I was trying to get the green triangle to rotate about its center and orient itself towards the mouse position. I was able to accomplish this, and you can view the full code and result here:
<https://codepen.io/Carpetfizz/project/editor/DQbEVe>
Consider the following lines of code:
```
r =... |
2018/03/06 | 633 | 1,577 | <issue_start>username_0: Trying to make a loop in java that goes like this
```
1
2
3
4
5
1000
1010
1020
1030
1040
```
Right now my code is
```
for(int j = 1; j <=5; j += 1){
for(int i = 1000; i <=1040; i += 10){
System.out.println(+ j );
System.out.println(+ i );
}
}
```
And this is ... |
2018/03/06 | 581 | 1,536 | <issue_start>username_0: how to perform temp table in oracle from below script?
I tried using`select * into #temp` but it does not work. Please assist since i am new in oracle.
```
select * into temp from
(SELECT
CASE WHEN Aaddress = '16' THEN 'A'
ELSE 'OTHERS'
END AS PRODUCT
FROM NAME
WHERE name.INACTIVE_CODE IN (... |
2018/03/06 | 449 | 1,580 | <issue_start>username_0: I am trying to match part of a url <http://www.mywebsite.com/get-stuff> in cypress and haven't been able to figure out how to code a regex match.
I tried:
cy.contains('http.\*get-stuff')
and don't find a match for
[do some things](http://www.mywebsite.com/get-stuff)<issue_comment>username_1: ... |
2018/03/06 | 420 | 1,478 | <issue_start>username_0: For example:
```
terraform init -from-module github.com/someone/some_repo@some_branch
```
or
```
terraform init -from-module github.com/someone/some_repo@
```<issue_comment>username_1: If you are trying to see if some content on your website has the text `http://www.mywebsite.com/get-st... |
2018/03/06 | 1,272 | 4,209 | <issue_start>username_0: I'm trying to see if this can be accomplished in plain and pure JavaScript.
Lets say I have a string :
```
var ourstring = "Blah TEST ('1') TEST('2') Blah BLah TEST ( '1' ) TEST( '2' )";
```
Please pay attention to how different `TEST('1')` is written inside the string.
How can we detect... |
2018/03/06 | 414 | 1,515 | <issue_start>username_0: Can anyone tell me how to comment JSX code in VSC?
I looked at the articles listed at the bottom, none of them seem to give a concrete solution, and the ticket appeared to have been closed, claiming that the commenting/uncommenting function has been properly resolved on VSC. However, I am stil... |
2018/03/06 | 312 | 1,065 | <issue_start>username_0: I am working with data in R and have a string related question.
If I have a vector (say books),
```
books <- c('123 Book1 331','51 Book2','Book3 69','Book4')
```
I want to split strings that start with numbers and keep the rest, else leave it as it is.
I would like to extract info in a way ... |
2018/03/06 | 959 | 3,497 | <issue_start>username_0: I am currently trying to change the `src` and `height` of an `iframe` using a button on the same page using functions but I have not been able to find anything about the topic. Can someone help, please?
Here is my HTML code:
```
function myFunction() {
document.getElementById("para").inn... |
2018/03/06 | 856 | 2,667 | <issue_start>username_0: I have the snippet below inside my ksh script. Is there a way that I can have a return code whether the sftp executed successfully and copied the files from source to target destination?
```
echo "sftp start" >> /test/logfile.log
sftp user@server <> /test/logfile.log
cd /tgt/files
lcd /src/fil... |
2018/03/06 | 322 | 1,294 | <issue_start>username_0: how do I print a stream of text alphabetically by dynamically reading it in C#.
ex like: "automatically" as "aaacillmottuy"
for small strings we all know .sort() function will work. but what if we have very big stream of text and no unlimited memory
what am thinking is. read the stream of ch... |
2018/03/06 | 3,965 | 15,705 | <issue_start>username_0: I am building a simple app that creates chord sheet objects that hold a root and all the notes in the major and minor triads for that root. It can also return the inversions. Later, I will work with flat notes and add more complicated chords to the base class (there is a chord notebook class th... |
2018/03/06 | 950 | 3,605 | <issue_start>username_0: I have a `ListView` named `sandwichToppings` which displays various sandwich toppings and allows the user to select multiple. In my controller code, I must capture the selected toppings by their index in the `ListView`, and send those indices back using an array.
The code which causes me to st... |
2018/03/06 | 1,081 | 3,751 | <issue_start>username_0: I have a Timed Function App in Azure that is scheduled to run at 22:00 daily. However, it appears to run at 21:59 and also at 22:00, consistently every day. It also appears to run at random when I am logged into the Azure portal checking the logs.
Here's an example of the timestamps of the dup... |
2018/03/06 | 755 | 3,247 | <issue_start>username_0: I have an app with a PageViewController and I want to make my own custom PageViewController indicator. Everything is all set up. The only thing I need to do now is to figure out how to tell when the view controller's view has changed and what view it is currently on.
I have linked to [this dem... |
2018/03/06 | 202 | 754 | <issue_start>username_0: I'm using Liquibase to let my database schema evolve. I want to add a FULLTEXT index to my MariaDB or Mysql database.
As per [MariaDB website](https://mariadb.com/kb/en/library/full-text-index-overview/) you can either create a FULLTEXT index with `create table`, `alter table` or `create index`... |
2018/03/06 | 739 | 1,858 | <issue_start>username_0: I have a bus\_pings table:
```
CREATE TABLE bus_pings(
id int(12) unsigned NOT NULL AUTO_INCREMENT,
ping_time DATETIME(3),
line INT(10),
speed DECIMAL(3,2),
PRIMARY KEY (id)
);
```
**I want to get the average speed grouped by date and with separated columns for each disti... |
2018/03/06 | 383 | 863 | <issue_start>username_0: I'm trying to get xor result:
```
SELECT '12e627593dbc2307' ^ '12d2552c66ddc94b';
```
Or when I have table with hex inside `hash` column:
```
SELECT hash ^ '12d2552c66ddc94b';
```
But MySQL says - 0.
How can I get correct result? What to do if I have hex inside VARCHAR (string)?<issue_co... |
2018/03/06 | 382 | 1,013 | <issue_start>username_0: I am use select into creating a macro array
```
proc sql;
select numValue into:num_value separated by ' ' from tableA;
quit;
%put %scan(num_value,1);
```
however,the value in macro num\_value did not arrange their numeric values from its original order(from small to large).
so how could ... |
2018/03/06 | 352 | 774 | <issue_start>username_0: I have arrays:
>
> * Array 1: **["L", "S"]**
> * Array 2: **["Red", "Blue"]**
>
>
>
how to merge them =
**["L", "Red"], ["L", "Blue"], ["S", "Red"], ["S", "Blue"]**
?
Please help me, thanks!<issue_comment>username_1: Solution:
```
SELECT CONV('12e627593dbc2307', 16, 10) ^ 0x12d2552c66dd... |
2018/03/06 | 459 | 1,542 | <issue_start>username_0: I'm trying to have a card shown on top of a card in React Native and set `zIndex = 1` for the top card and `zIndex = 0` for the bottom card and placed them in a view like below:
```
{this.props.subscribed ? (
) : (null)}
{this.\_renderTextItems()}
```
However, there's no overlap between... |
2018/03/06 | 721 | 2,394 | <issue_start>username_0: I have the following:
```
var movie;
var myMovies = ['Bones', 'Psych', 'Big Bang Theory', 'Mad Men',
'Breaking Bad', 'Modern Family', 'Game of Thrones', 'Dexter','Bones', 'Psych', 'Big Bang Theory', 'Mad Men',
'Breaking Bad', 'Modern Family', 'Game of Thrones', 'Dexter','Bones', 'Psych', 'B... |
2018/03/06 | 1,016 | 3,977 | <issue_start>username_0: I'm trying to connect to a third-party SOAP service via a c# app. The following code works when running the app on a Windows machine:
```
var ws = new MyWebServiceClient();
ws.ClientCredentials.Windows.ClientCredential = new System.Net.NetworkCredential("myusername", "mypassword", "mydomain");... |
2018/03/06 | 641 | 2,339 | <issue_start>username_0: Today I have this:
```
std::vector foos = GetFoos();
if (foos.empty())
{
foos.push\_back(Foo());
}
```
I'd love to write something like:
```
std::vector foos = GetFoos() || {Foo()};
```
Is there something handy like that, perhaps in Boost?<issue_comment>username_1: .Net Core SOAP client ... |
2018/03/06 | 630 | 1,869 | <issue_start>username_0: I am new to Pyspark and nothing seems to be working out. Please rescue.
I want to read a parquet file with Pyspark. I wrote the following codes.
```
from pyspark.sql import SQLContext
sqlContext = SQLContext(sc)
sqlContext.read.parquet("my_file.parquet")
```
I got the following error
>
>... |
2018/03/06 | 1,853 | 5,351 | <issue_start>username_0: I asked a question similar last night, but my professor gave some clarification on how she wants the question answered, and it's thrown me for a loop.
I've got a csv file with 3 columns. I'm saving them as a dictionary, but I'm trying to find a way to read the `year` and the `title_field` and ... |
2018/03/06 | 585 | 1,553 | <issue_start>username_0: I have two arrays that need to be combined into a single array by adding the together the values from each array.
```
a = [1, 2, 3, 4, 5]
b = [1, 2, 3, 4, 5]
x = np.sum(a, b)
```
the result I want is:
```
x = [2, 4, 6, 8, 10]
```
then to be able to calculate the average of each value to ... |
2018/03/06 | 432 | 1,841 | <issue_start>username_0: I have a function within the component and at the same time I am using [DataTables](https://datatables.net/) button to trigger display a modal. Here's the snippet:
```
constructor(props) {
super(props);
this.state = {
error: null,
isLoaded: false,
tabl... |
2018/03/06 | 1,051 | 4,081 | <issue_start>username_0: The python built-ins `open`, and `file` work with context managers in a way that I don't quite understand.
It is to my understanding that `open` will create a `file`. `file` implements the context-manager methods `__enter__` and `__exit__`. I would initially expect `__enter__` to implement the... |
2018/03/06 | 944 | 2,607 | <issue_start>username_0: I need to construct a string from Unicode values found in a `.csv` file. I have used Python to extract the integer values and I need to rebuild the string in VB.NET to check for the presence of the string with a file parser.
I've tried using both the `Chr` and `ChrW` functions but both give me ... |