date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/02 | 1,219 | 3,907 | <issue_start>username_0: I find people use
```
which(matrix==max(matrix, na.rm=FALSE))
```
to show both row and column index.
But my question is how do I extract row index and column index individually and then return these two values into another parameters?
like matrix=
```
[,1] [,2] [,3] [,4] [,5] [,6] ... |
2018/03/02 | 402 | 1,565 | <issue_start>username_0: Trying to use Microsoft.Extensions.Configuration.CommandLine. I figured this would be easy, in spite of the lack of documentation (that I could find). Anyway, consider this little program:
```
class Options
{
[Option('s', "srcSrvr",
Default = "PROD",
HelpText = "Source se... |
2018/03/02 | 1,137 | 4,275 | <issue_start>username_0: **Clarifying edit**: The keys in the dictionary are actual instances of `System.Type`. More specifically every value is stored with its type as the key.
In a specific part of my program the usage of `Dictionary` takes a large chunk of CPU time, as per Visual Studio 2017 performance profiler.
... |
2018/03/02 | 1,844 | 5,466 | <issue_start>username_0: The user chooses a number and then d3.js should display as many circles.
I have an array that is used to assigned color to the circles:
```
var color =["red","blue", "yellow", "orange",....., ]
```
● If the user choose 593, the first 500 circle should be red (`color[0]`) , the next 90 shou... |
2018/03/02 | 532 | 1,946 | <issue_start>username_0: `So I am just making something to test if I can make certain outputs based on inputs
Each time I try to enter an answer, nothing happens here
I used if elif statements with the in range() in them.
Nothing shows up when I type the answer
```
from random import randint
from termcolor import col... |
2018/03/02 | 645 | 2,263 | <issue_start>username_0: So I am trying to loop through the rows of a 2d array to check the if the row matches the property of a method. How can I use an if to just check the row? This is my code
```
public void recordWhiplashPoints(ConnectionToClient client, int vote){
int[][] votecount = new int[game.getPlayer... |
2018/03/02 | 571 | 1,920 | <issue_start>username_0: Just wondering if it is possible to kick off a series of different SSRS reports in a stored proc by report name instead of the guid.
For example, from within the body of the procedure:
exec {servername}.msdb.dbo.sp\_start\_job 'SSRS Report Name Here'
instead of:
exec {servername}.msdb.dbo.s... |
2018/03/02 | 660 | 2,236 | <issue_start>username_0: I have a sequence of calls where the final call requires a double pointer. It seems that I am always getting a null pointer in the end. I have simplified this down a lot to the following. The final call is a library call that returns a pointer.
This is the simplified mess. The `foo` in `MainCa... |
2018/03/02 | 2,744 | 12,087 | <issue_start>username_0: So I'm having issues trying to call shared preference values in any other activity than my login activity which is where i initially declared it.
I need to be able to call those values into a text edit window to identify chat clients. Ive had success storing a username and an email address and ... |
2018/03/02 | 415 | 1,343 | <issue_start>username_0: I have a table having 3 columns (id, amount, time). The table is arranged in ascending order based on id. I want to remove all consecutive rows that have same value in the amount column except the first one.
eg:
```
id: 12,15,16,17,19,22
amount: 555,546,546,53,53,500
time:
```
Answer:
```... |
2018/03/02 | 1,666 | 6,015 | <issue_start>username_0: For my code, I am trying to create a class with two functions that:
1. Display a cstring where each word is reversed
2. Display an entire cstring reversed
My two test sentences are `"Hi There"` and `"To Be"`, so the output is:
```
erehT iH
eB oT
iH erehT
oT eB
```
Here is my code:
```
#i... |
2018/03/02 | 1,780 | 4,675 | <issue_start>username_0: I have different raster bands and I need to get a proper image from these bands using OpenCV. How can it be done?<issue_comment>username_1: I don't feel like writing all the code and testing it like I ordinarily might so I'll just give you an outline of one way to do it.
Assume your images are... |
2018/03/02 | 770 | 2,408 | <issue_start>username_0: I'm creating a Discord bot with Discord.js that catches whenever someone swears in a message. I have an array that's full of common swear words, abbreviations, racial and sexual slurs, etc. that I want it to catch.
```
const SwearWords = ["a##","ba##ard","bi###","c#ck","c#nt","d#ck","f#ck","ga... |
2018/03/02 | 584 | 1,833 | <issue_start>username_0: I have this data frame:
```
import pandas as pd
import numpy as np
df = pd.DataFrame({ 'CITY' : np.random.choice(['PHOENIX','ATLANTA','CHICAGO', 'MIAMI', 'DENVER'], 1000),
'DAY': np.random.choice(['Monday','Tuesday','Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'],... |
2018/03/02 | 290 | 974 | <issue_start>username_0: Hi I've been going around in circles trying to get my Firestore data into a Python 2 dictionary.
```
doc_ref = db.collection('things1').document('ref1').collection('things2').document('ref2')
doc = doc_ref.get()
```
gets me a DocumentSnapshot - I was hoping to get a dict. What's the ... |
2018/03/02 | 597 | 2,142 | <issue_start>username_0: I have created a REST service (via APEX) which utilizes PL/SQL to build a result set. I loop through a large cursor and do a `sys.htp.print(my_data)` – (as an aside, is the `sys.htp.print` the best option here?). Basically, I am dumping a data string, a row at a time, to the http buffer...
My ... |
2018/03/02 | 402 | 1,622 | <issue_start>username_0: I'm using Karma/Jasmine to run many spec files. My tests make use of some global functions. Some tests mock up the global functions, which other tests depend on. Since the tests are being run asynchronously, some tests fail since the expected behaviour of the global functions is changed by othe... |
2018/03/02 | 1,291 | 4,679 | <issue_start>username_0: I'm still trying to get a hang of python 3 and I'm running into an issue where I can either run a .py file as a script or import it as a module, but not both.
Directory Structure
```
test/
__init__.py
test.py
subwayclock/
__init__.py
subwayclock.py
build/
gen/
... |
2018/03/02 | 561 | 2,063 | <issue_start>username_0: Using the following [issue on GitHub](https://github.com/apollographql/react-apollo/issues/1369) I am able to make one mutation work with **Typescript**. But I did not find a way to use 2 mutations in the same component.
There is only one `mutate()` function in `this.props`.
How must we typed... |
2018/03/02 | 548 | 1,876 | <issue_start>username_0: I have some difficulty to get this to work. I tried many different formulas and always end up with the same result.
Based from the same data (coordinates) I can calculate the distance. But not the bearing.
I run out of ideas and keywords to find a formula that will work.
Thank you all for help... |
2018/03/02 | 332 | 1,050 | <issue_start>username_0: I'm writing a script in Bash that looks something like this:
```
#!/usr/bin/env bash
# Stop the script if any commands fail
set -euo pipefail
# Start a server
yarn serve &
SERVER_PID=$!
# Run some cURL requests against the server
...
# Stop the server
kill $SERVER_PID
```
What I'd like t... |
2018/03/02 | 359 | 1,287 | <issue_start>username_0: I bumped into an odd problem. Suddenly the color of my status bar does not change color to the same as my navigationbar in my tabbarcontroller.
[](https://i.stack.imgur.com/cpYXf.png)
I've tried setting the color of the navig... |
2018/03/02 | 406 | 1,304 | <issue_start>username_0: I've got an array that could have 4 digits elements or less (from html select)
for example some possible variants of `myArray`:
```
myArray = ['1']
myArray = ['4']
myArray = ['2', '3']
myArray = ['1', '2', '3', '4']
etc...
```
now I've got an object that has possible variants of `myArray`... |
2018/03/02 | 242 | 824 | <issue_start>username_0: Here <https://learn.microsoft.com/en-us/azure/app-service/environment/create-ilb-ase#post-ilb-ase-creation-validation> it says you need to manage your own DNS for your ILB ASE v2 domain. Does it mean I can just use 'DNS Zone' from Azure, for example, or some third-part DNS provider? Is this cor... |
2018/03/02 | 698 | 2,538 | <issue_start>username_0: I am trying to use VeeValidate and the examples show the usage of ES6 import like this:
```
import { Validator } from 'vee-validate';
```
My understanding is that this works only with npm and not with CDN. I want to just write client-side js and not use node js. Do I have to look into someth... |
2018/03/02 | 394 | 1,668 | <issue_start>username_0: I'm implementing a polyphonic synth in Web Audio, with dynamic voice allocation.
Performance-wise, is it better to modify the graph (add oscillator node, filter node, etc.) for the new voice each time a key is pressed, or pre-create the entire graph for the maximum polyphony desired, and then ... |
2018/03/02 | 1,124 | 3,827 | <issue_start>username_0: In most browsers on my qwerty keyboard, `event.key` of shift + 2 is "@" from the keyup key event. However, Edge reports `event.key: "2"`. So I could just put down something like
```
if(event.key == "2" && event.shiftKey){
//code to execute when "@" key is down
}
```
which works great until... |
2018/03/02 | 485 | 1,869 | <issue_start>username_0: I have an enum with some strings case
```
public enum UserPermission: String, Decodable {
case userManagement = "USER_MANAGEMENT"
case contactManagement = "CONTACT_MANAGEMENT"
case userV2 = "USER_V2.1"
}
@objcMembers final public class MyModel: Object, Decodable {
public var ... |
2018/03/02 | 1,335 | 4,553 | <issue_start>username_0: So the following Windows function works to get the calculated columns:
```
USE MfgMetrics
SELECT
[Calc_ORDER_NUMBER_LAG] = LAG([ORDER NUMBER],1,0) OVER (Order By [ORDER NUMBER],[FileDate]),
[Calc_Order_Quantity_LAG] = LAG([Order_Quantity],1,0) OVER (Order By [ORDER NUMBER], [FileDate]),
[Cal... |
2018/03/02 | 640 | 1,927 | <issue_start>username_0: first of all, I have read through the following posts ([R: keep leading zero](https://stackoverflow.com/questions/27801195/r-keep-leading-zero), [and again](https://stackoverflow.com/questions/5812493/adding-leading-zeros-using-r), [and this one](https://stackoverflow.com/questions/24063793/how... |
2018/03/02 | 739 | 2,420 | <issue_start>username_0: I need help completing my program, I'm trying to find the highest and lowest yield but don't know how to write this code. This is my program so far
```
Cow = []
Yield = []
Total = []
Cows = int(input("How many cows are in the heard?"))
Day = 0
for i in range(14):
if i%2 == 1:... |
2018/03/02 | 3,027 | 7,817 | <issue_start>username_0: I'm using restangular 1.51 with angular 1.6. My html looks like this
```
```
and the angular code (based on the discussion [here](https://github.com/mgonto/restangular)):
```
let directive = {
..
link: (scope, element, attrs) => {
let inputElement = angular.element(element[0].qu... |
2018/03/02 | 436 | 1,266 | <issue_start>username_0: I want to remove certain element from `names`.
`names` is a list of characters. After I run the following loop:
```
for (i in 1:length(names)){
if((str_detect(names[[i]], " Organisation Name")) ||
(str_detect(names[[i]], "^ $")) || (str_detect(names[[i]], "^0$")) ||
(str_detect(names... |
2018/03/02 | 375 | 905 | <issue_start>username_0: Is anybody to know how to get result in this example in T-SQL:
```
id val1 val2
1. a b
1. c d
1. b a
1. d c
1. e f
2. k m
2. m p
2. m k
```
```
id val1 val2
1. a b
1. c d
1. e f
2. k m
2. m p
```
a b and b a group only in a b. The same for c d (d c) an... |
2018/03/02 | 542 | 1,887 | <issue_start>username_0: It may be that this question is sooo basic that I’m unable to find an answer via googling it. I’m very new to SQL. Using PostgreSQL 9.6.5 and pgAdmin4.
I have a table that contains a single row with many columns and associated values that is named `parameters`. This table has no primary key.
T... |
2018/03/02 | 2,638 | 8,709 | <issue_start>username_0: I have this code to generate a barcode:
```
func generateBarcode(from string: String) -> UIImage?
{
let data = string.data(using: String.Encoding.ascii)
if let filter = CIFilter(name: "CICode128BarcodeGenerator")
{
filter.setValue(data, forKey: "inputMessage")
let t... |
2018/03/02 | 1,914 | 7,684 | <issue_start>username_0: I try to figure out how to in best way finish an Activity from ViewModel. I found the one way to do this using LiveData object and emitting "signal".
I have a doubt that this solution has a overhead. So is it right solution or I should use more accurate?
So go to example: let's suppose that ... |
2018/03/02 | 490 | 1,790 | <issue_start>username_0: I'm seeing a strange javascript exception being triggered by a random user on an android device running chrome. My code contains no reference to anything named androidInterface, and so is not relevant to this question.
**User Agent String:**
>
> Mozilla/5.0 (Linux; Android 7.0; SM-G892A
> ... |
2018/03/02 | 824 | 3,391 | <issue_start>username_0: I am trying to write c# code, in which I am supposed to read a paragraph in a txt. file, and then split all the sentences. Then, I am supposed to print all the sentences into a new txt. file, and they still have to have all their periods, and have to be perfectly aligned. For example, if the pa... |
2018/03/02 | 607 | 2,379 | <issue_start>username_0: IntelliJ/Java is not recognizing a file that is clearly there. Here is my filesystem:
```
MODULE/resources/a.ttf
MODULE/resources/test.png
MODULE/src/test/Test.java
```
Here is the code I am using: <https://paste.ubuntu.com/p/pQxRXMF3wg/>
Which part of my code is incorrect, and how do I fix... |
2018/03/02 | 1,757 | 5,727 | <issue_start>username_0: I'm trying to clean up the output of
```
cscript 'C:\Program Files (x86)\Microsoft Office\Office16\ospp.vbs' /dstatus
```
I want to display only the license and the last 5 chars of the key such as
>
> Office16HomeBusinessR\_Retail3 edition , 7H67X
>
>
>
I've got pieces of it, but can'... |
2018/03/02 | 1,083 | 3,724 | <issue_start>username_0: I'm trying to change the size of the images that I have in my footer but everytime that I try to change the image size in my footer it always get the code from the profile image. What did I forget to do?
```

img {
width: 300px;
height: 300px;
display: block;
... |
2018/03/02 | 780 | 2,361 | <issue_start>username_0: I have this dictionary:
```
A = {"a": 1, "b":2}
```
And I want to write, instead of above initialization, a variable instead of `2` that is 4 times `a`'s value that updates if `a`'s value changes.
I cannot do this:
```
A={"a": 1, "b": 4*A["a"]}
```
How can I handle this?
‡: Here in my c... |
2018/03/02 | 3,175 | 8,863 | <issue_start>username_0: I'm trying to make an image slideshow that has a transition effect like [seen here](https://cdn.dribbble.com/users/501822/screenshots/3985479/comp_1.gif). I unfortunately only have this gif to go by and I have not been able to locate live web example. The slideshow should show 3 images at a tim... |
2018/03/02 | 1,374 | 4,806 | <issue_start>username_0: I am trying to emulate pagination in BigQuery by grabbing a certain row number using an offset. It looks like the time to retrieve results steadily degrades as the offset increases until it hits `ResourcesExceeded` error. Here are a few example queries:
[` command as:
```
> colsplit(crime$Date,"",names = c("Date","Time"))[1:5,]
Date Time
1 0 3/18/2015... |
2018/03/02 | 555 | 1,434 | <issue_start>username_0: I have a dataframe, and I am trying to get a Series of the form:
```
col1 col2 col3
col1 1.0 0.20 0.70
col2 0.2 1.00 0.01
col3 0.7 0.01 1.00
```
GOAL:
```
col1Xcol1 1.0
col1Xcol2 0.2
col1Xcol3 0.7
col2Xcol1 0.2
...
```
My code so far:
```
pvals2=pd.DataFrame({'col1':... |
2018/03/02 | 246 | 828 | <issue_start>username_0: 
I want to find the difference (the Profit & Loss) when I combine records with the same `CATEGORY` value (e.g. A's will be combined and C's will be combined).<issue_comment>username_1: I think you want conditional aggregation:
```
select category,
... |
2018/03/02 | 745 | 3,087 | <issue_start>username_0: I have been struggling to find out what way to best manage access and allowing our techs to access our customers subscriptions and Azure resources, without giving them explicit rights as contributors or the likes on each subscription.
Now I bumped into the Privilege Identity Management feature... |
2018/03/02 | 569 | 1,992 | <issue_start>username_0: **Simple cezar cipher encryption function**
Right now, encrypting the string "g " will result in "�". Meanwhile encrypting "g" returns the expected "G". Why could be the cause of the � symbol? If the input string is "g ", the expected outcome is: "G ".
snippet of code:
```
function encrypt(... |
2018/03/02 | 803 | 2,441 | <issue_start>username_0: ```
struct a
{
int x;
int y;
byte[] z;
}
var b = new a[] {{0, 0, {0, 0, 0}}, {1,1, {1,1,1}}};
```
I want to initialize an array of a struct each of which contains an array of bytes. I also tried:
```
var b = new a[] {{0, 0, new byte[] {0, 0, 0}}, {1,1, new byte[] {1,1,1}}};
```<issue_comme... |
2018/03/02 | 767 | 2,287 | <issue_start>username_0: I'm trying to use a value from a Combo Box with a list of names as criteria of an AutoFilter and then copy the results from my database (BASE\_ACOMPANHAMENTOS) to my results sheet (BUSCA). My Combo Box name is **busca\_lista** and this is what I've tried so far:
```
Private Sub OKBUSCA_Click()... |
2018/03/02 | 971 | 4,029 | <issue_start>username_0: I am building an application for work to copy files and folders, with a few more options but these are not being utilised during this issue.
The function in question iterates through each file in a directory, and then copies the file to an identical directory, in a new location (so it preserve... |
2018/03/02 | 712 | 2,447 | <issue_start>username_0: I'm trying to prevent Visual Studio 2015 from colorizing code blocks when at a breakpoint within a lambda expression.
(Screen shot below).
It's very distracting for me, and I would like to prevent this behavior, but can't figure out how to either A) prevent it altogether, or B) change the bac... |
2018/03/02 | 480 | 1,199 | <issue_start>username_0: I have two dataframes:
```
df1: contains all information
rowname a b c d
R1 1 2 0 1
R2 2 2 0 1
R3 0 2 0 0
R4 1 2 0 1
df2: contains a subset of the rows and columns:
rowname a b c
R1 1 2 0
R2 2 2 0
R4 1 2 0
```
I want to filte... |
2018/03/02 | 421 | 1,189 | <issue_start>username_0: I'm having trouble sorting by month/year format in R.
I have data in a `%m/%Y` format but in trying to use
```
df_prod<-df_prod[order(as.Date(df_prod$date,format="%m/%Y")),]
```
The data frame is not sorting. I'm getting a text-like ordering (01/2000,01/2001,01/2002)
Additional details:
I'm... |
2018/03/02 | 578 | 1,902 | <issue_start>username_0: I've been writing an engine and ran into a problem, I'm getting a read access violation in my code. I have no idea why, but it happens when I add `this->chunks.push_back(chunk);` into this block of code,
```
void c_world::generate_world()
{
this->chunks.resize(MAX_CHUNKS);
for (aut... |
2018/03/02 | 320 | 1,178 | <issue_start>username_0: When the RN app is run on an android physical devices and the adb is connected over USB how does the "Reload" on the app fetches the files saved on the development project directory. How does the App knows the ip address of the development machine ?<issue_comment>username_1: Others have said wh... |
2018/03/02 | 963 | 2,492 | <issue_start>username_0: I have a csv file containing user ids (some of which appear more than once) along with sign up date. Furthermore, I have some information about some paths contained in strings:
```
id1, 01-01-2015, 'place0-place01'
id1, 01-01-2015, 'place0-place01-place03'
id1, 01-01-2015, 'place1-place11-plac... |
2018/03/02 | 726 | 2,708 | <issue_start>username_0: The [documented](https://github.com/angular/angular-cli/wiki/stories-configure-hmr) approach to configuring HMR with an Angular 5 application does not work with hybrid Angular 5/1.x apps.
The core issue is that the `module.hot.accept` handler (defined in [@angularclass/hmr](https://github.com... |
2018/03/02 | 711 | 2,435 | <issue_start>username_0: Is there a way that we use the `distinct` & alias (`as`), to achieve the bulk collect query as below.
```
SELECT distinct OBJ_TEST ( EMP_ID as E1, EMP_NAME)
BULK COLLECT INTO LVOB_TEST
FROM TMP_EMP ;
```<issue_comment>username_1: You are very light on detail, but at a guess, you want:
```
... |
2018/03/02 | 1,099 | 3,526 | <issue_start>username_0: I have a *Base* class and a *Sub* class:
```
class Base{
public:
Base(){}
// ...
};
class Sub: public Base{
int param;
public:
Sub(){}
// ...
};
```
And also I have a function that requires a *vector* of *Base* like this:
```
void doSomeThing(vector vectorOfBases){
... |
2018/03/02 | 3,256 | 11,981 | <issue_start>username_0: Git philosophy question: are "ancestry" and "history" (a.k.a. chronology) distinct things?...
Behold, I have the following git repository:
```
A---B---C develop
/
D---E---F---G master
```
And I want master's head to contain exactly what develop has at its head:
```
A---B-... |
2018/03/02 | 606 | 2,144 | <issue_start>username_0: I have multiple 'sections' in the store.
Each section has an object\_id.
This is my sections reducer:
```
export default function () {
return [
{
object_id: 1,
title: "section_1"
},
{
object_id: 2,
title: "section_2"
},
{
object_id: 3,
... |
2018/03/02 | 1,807 | 7,021 | <issue_start>username_0: I want to write a function that checks if an object has at least one value containing a substring. Something like this (pseudo-code):
```
const userMatchesText = (text, user) => user.includes(text);
```
The full structure of my objects (
So, for a user like the following:
```
const user ... |
2018/03/02 | 1,329 | 3,938 | <issue_start>username_0: I have this simple search stored procedure in Oracle database and want to specify the values for my bind variables dynamically. For example if only employee no is specified, my sql will have only one bind variable but if both employee no and name are specified, my sql will have two bind variabl... |
2018/03/02 | 828 | 2,775 | <issue_start>username_0: I want to see if a date occurs within the last year, and if so, then increase a value by 1. So I tried the following, but it returns the following error:
>
> Msg 102, Level 15, State 1, Procedure IsComplete, Line 41 [Batch Start Line 7]
>
> Incorrect syntax near '@compliant'.
>
>
>
Co... |
2018/03/02 | 710 | 2,644 | <issue_start>username_0: Super frustrated with this one because I can get it working on a "Hello World" application but not my real application. Here's how I'm configured:
ConfigureServices:
```
services.AddLocalization(options => options.ResourcesPath = "Resources");
services.AddMvc(config =>
{
var policy = new... |
2018/03/02 | 335 | 1,349 | <issue_start>username_0: I want to calculate the number of clock cycles between a signal's high and low value. I have a signal SIG, it goes high and low multiple times during a simulation. I would like to calculate the average number of cycles when it's high/low.
Can someone please guide me how to achieve it.Let me k... |
2018/03/02 | 837 | 2,777 | <issue_start>username_0: 6 What is the most popular male and female names from your birth year?
======================================================================
The database is of BabyNames with attributes:
name, year, gender, place and count.
```
select sum(count)
from BabyName
where year='1989';
```
Retur... |
2018/03/02 | 1,105 | 3,639 | <issue_start>username_0: Here is my scenario, consider my table has cloumns `id` primary key and `clusterkey` cluster key. I want to delete one record falling under primary key and insert new record with same primary key but different cluster key. In this case, all the time it looks like insert is not happening due to ... |
2018/03/02 | 1,103 | 4,329 | <issue_start>username_0: I am trying to run a script with the firebase admin sdk that is looping through all my users with `listUsers()` and I am handling it like so:
```
admin.auth().listUsers(batch, nextPageToken)
.then(function(listUsersResult) {
// process successful results
})
.catch(function(... |
2018/03/02 | 1,692 | 5,105 | <issue_start>username_0: When reading the book 'Effective Python' by <NAME> I noticed that the author suggested that sometimes building a list using a generator function and calling list on the resulting iterator could lead to cleaner, more readable code.
So an example:
```
num_list = range(100)
def num_squared_iter... |
2018/03/02 | 1,314 | 5,131 | <issue_start>username_0: I'm developing a react native app and using React router native v4, and I'm trying to develop the animation part, as suggested by documentation, first I made sure that everything works without animations or transitions.
I've iterated the implementation and this is as far as I got by now:
my m... |
2018/03/02 | 1,247 | 4,228 | <issue_start>username_0: I'm trying to create variables Cap1 through Cap6. I'm not sure how to have read them as character data. My code is:
```
DATA Capture;
INFILE '/folders/myfolders/sasuser.v94/Capture.txt' DLM='09'x DSD MISSOVER FIRSTOBS=2;
INPUT Sex $ AgeGroup $ Weight Cap1 - Cap6 $;
RUN;
```
And my i... |
2018/03/02 | 914 | 3,544 | <issue_start>username_0: I have a `List()` and my `Email` object looks like this:
```
public class Email
{
public string EmailAddress { get; set; }
public bool IsPrimary { get; set; }
}
```
When I add a new email address that is set as primary, I want to set all the others as non-primary. I currently handle th... |
2018/03/02 | 658 | 1,895 | <issue_start>username_0: I'm trying to build a structure called PROCESS in C, this struct should contain the ID(id) and waiting time (wt) of the process.
```
typedef struct PROC{
int id;
int wt;
}PROCESS;
PROCESS *pt = NULL;
```
Now I want to make more then one instance of this struct like an array.
what I ... |
2018/03/02 | 324 | 1,336 | <issue_start>username_0: We want to give our users the ability to write small Java methods that we call when our library runs. These users don't have the JDK installed and wouldn't know how to do that. But they do have Java installed and are running our Java library.
Is there a way we can ship some minimal Java compil... |
2018/03/02 | 2,665 | 7,503 | <issue_start>username_0: I would like to build some functionality to move files between S3 and my local file system, but `pathlib` appears to combine repeated slashes, breaking my aws-cli functionality:
```
>>> from pathlib import Path
>>> str(Path('s3://loc'))
s3:/loc'
```
How can I manipulate S3 paths in this way... |
2018/03/02 | 1,037 | 4,074 | <issue_start>username_0: I have a UINavigationController that I am adding a UIViewController to. Inside my UIViewController I have a webview and also trying to set a UIActivityIndicatorView. However I can't seem to get the UIActivityIndicatorView to show up. Any help would be great!
```
class TestWebViewController: UI... |
2018/03/02 | 508 | 1,852 | <issue_start>username_0: I am using [Angular Universal Starter](https://github.com/angular/universal-starter) repo. In angular 4 universal for ssr we could debug browser and node part of application in dev mode(see console), but now I do not see way to debug node part. I tried to execute `ts-node server.ts` with some c... |
2018/03/02 | 909 | 3,173 | <issue_start>username_0: I am trying to set up Azure Key Vault for my application by following this tutorial: <https://blogs.technet.microsoft.com/kv/2015/06/02/azure-key-vault-step-by-step/>
In the Create and configure key vault section in the tutorial, Right after doing these two steps:
[![enter image description h... |
2018/03/02 | 742 | 2,692 | <issue_start>username_0: I have a spreadsheet where I first created a bound script file (via Tools->Script Editor). I then (at a later time) was exploring the File menu and hit Make A Copy. I now get a "Select a project to open" with the original "myAddOns" and "Copy of myAddOns" as the choices. I would like to remove ... |
2018/03/02 | 710 | 2,530 | <issue_start>username_0: I have a search form:
```
* Home
* About
* Contact
*
```
The Jquery:
```
var inputWidth = $('.search').width();
$('.results').css('width' , inputWidth);
```
The `div` with class `results` will be containing a results from Database , I want this div to be out of the navigation menu be... |
2018/03/02 | 389 | 1,608 | <issue_start>username_0: I'm trying to implement the new iOS 11 DeviceCheck API (<https://developer.apple.com/documentation/devicecheck>), but token generation always fails. I've tried on simulator and iPhone SE, with wifi and mobile data. Apple ID in settings is my normal, non-sandbox account.
This is an existing app... |
2018/03/02 | 444 | 1,345 | <issue_start>username_0: This code works fine, but is there a way to reduce the duplicate code with a loop?
I know it is very basic. I've used Python2.7
```
if List[3] == answer[3]:
self.score = int(self.score) + 1
self.questions = self.questions + 1
info = info + 1
self.update()
els... |
2018/03/02 | 401 | 1,422 | <issue_start>username_0: I'm developing a web extension in on-premises TFS 2017U3.
It uses the [ExtensionDataService](https://www.visualstudio.com/en-us/docs/integrate/extensions/reference/client/api/vss/sdk/services/extensiondata/extensiondataservice) to store data.
Normally, we're not supposed to manipulate tfs da... |
2018/03/02 | 368 | 1,482 | <issue_start>username_0: `KeyGenParameterSpec.Builder.setUserAuthenticationRequired(true)` signifies that a Key in the Android Key Store is only authorized when:
>
> The user is authenticated using a subset of their secure lock screen
> credentials (pattern/PIN/password, fingerprint).
>
>
>
If enabled, `UserNotA... |
2018/03/02 | 498 | 1,795 | <issue_start>username_0: I need to read in an avro file from local or gcs, via java.
I followed the example from docs from <https://beam.apache.org/documentation/sdks/javadoc/2.0.0/index.html?org/apache/beam/sdk/io/AvroIO.html>
```java
Pipeline p = ...;
// A Read from a GCS file (runs locally and using remote executi... |
2018/03/02 | 366 | 1,399 | <issue_start>username_0: Currently my directory is var/www/
but i have other projects in this directory .for example:
**var/www/wordpress/**
laravel tell me :
**Sorry, the page you are looking for could not be found.**
how can change laravel directory to var/www/cms ?
does work another project?
how can do that?<issu... |
2018/03/02 | 433 | 1,612 | <issue_start>username_0: I have a .net core console application named `ShowDate`.
```
using System;
namespace ShowDate
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(DateTime.Now);
}
}
}
```
After building I get `ShowDate.dll` rather than `Show... |
2018/03/02 | 616 | 1,411 | <issue_start>username_0: Instead of doing:
```
l_1 = range(0, 10056, 24)
l_2 = range(0, 10032, 24)
l_3 = range(0, 10008, 24)
...
l_419 = range(0, 0, 24)
l_together = list(l_1, l_2, ..., l_419)
```
How can I create a list of lists with diminishing sequences in a more Pythonic way?<issue_comment>username_1: ```
bigL =... |
2018/03/02 | 831 | 3,027 | <issue_start>username_0: I have 2 radio buttons, I'm using reactive forms and I have added the form controls within my component. The issue I am facing is that the name attribute has to be the same as the formControlName. When I set the name attribute as the same, I can only select 1 radio button -- can never unselect ... |
2018/03/02 | 1,101 | 3,351 | <issue_start>username_0: This program uses an array and three functions to read inputs, sum up the ones and tens place of inputted integers, and compute the average of input integers. Why can't I get more than one input that is a positive integer? The program runs after one input that is within the limits of integers t... |
2018/03/02 | 376 | 1,531 | <issue_start>username_0: I am using Angular Reactive Forms FormGroup and FormArray. I am trying to split out my form fields into child components but am having trouble passing the parent form controls to the child which I feel should simple. My parent FormGroup is title 'binsForm' and I am referencing the child compone... |
2018/03/02 | 345 | 1,209 | <issue_start>username_0: I am using C++11 and I met a problem that I cannot figure it out for several days.
Basically I have a header file like this:
```
#include
#include
namespace MyNamespace {
static double get\_wall\_time(){
struct timeval time;
if (gettimeofday(&time,NULL)){
return 0;
}
return (double)t... |
2018/03/02 | 534 | 1,855 | <issue_start>username_0: I have a Telegram Bot written in javascript ([node-telegram-bot-api](https://github.com/yagop/node-telegram-bot-api) + [SailsJs](https://sailsjs.com/)). I want to create a bot that answer private information, for example, my /todayTasks or /myAgenda. Can I block people from using my bot in priv... |
2018/03/02 | 380 | 1,396 | <issue_start>username_0: I'm new to WHM, cPanel, and CentOS.
I install WHM then create an account for domain `app.example.com` and user `peter`
I point the domain name to right IP address but when I run my website app.example.com I got HTTP ERROR 500
Via SSH I log into the server and I find my previous uploaded code ... |
2018/03/02 | 883 | 3,341 | <issue_start>username_0: I have one questions, which related to decorators. for example I wrote the next decorator, which handle the error, and then just output the error.
```
def handle_error(func):
def wrapper(*args, **kwargs):
try:
return func(*args, **kwargs)
except Exception as err... |
2018/03/02 | 999 | 3,647 | <issue_start>username_0: I am just starting to learn react (and I find it very confusing) and I am trying to get the following page to render:
```
import React, { Component } from "react";
import { connect } from "react-redux";
import Header from '../components/Header';
import { saveRepos } from "../actions/AppActions... |