date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/08 | 643 | 2,242 | <issue_start>username_0: I'm looping over the below output from a difflib compare of two configuration files:-
```
[server]
+ # web-host-name = www.myhost.com
+ https-port = 1080
+ network-interface = 0.0.0.0
[process-root-filter]
[validate-headers]
[interfaces]
[header-names]
[oauth]
[tfim-cluster:oauth-cluster]
[se... |
2018/03/08 | 1,380 | 5,573 | <issue_start>username_0: When I run the following pester test I expect it to catch the expected error but it doesn't. But when I run the test with a different function with a different throw statement it works.
Pester Test:
```
Describe "Remove-GenericCredential Function Tests" {
$InternetOrNetworkAddress = 'https... |
2018/03/08 | 962 | 3,722 | <issue_start>username_0: I have a Dataframe full of french words, endings and new endings. I want to create a 4th column with the alternative to the word as such:
```
word |ending|new ending|what i want|
--------------------------------------
placer |cer |ceras |placeras |
placer |cer |cerait |placerait... |
2018/03/08 | 642 | 2,625 | <issue_start>username_0: I'm trying to create a method that counts the properties of a given class.
I want to pass in the class name as a string perhaps and then can turn the string into a reference of the given class. I have **literally hundreds** of classes (generated by [Thrift](https://thrift.apache.org/)) that cou... |
2018/03/08 | 543 | 2,234 | <issue_start>username_0: We need to preserve a particular version of the pages for a certain amount of time, lets say for an year.
If we use the Version Manager and provide the '`Max Version Age`' and '`Max Number Versions`', it will preserve the latest x number of versions for that amount of time.
Is there a way to ... |
2018/03/08 | 283 | 1,031 | <issue_start>username_0: I've tried for quite a while, reading the python-telegram-bot wrapper API[python-telegram-bot wrapper](https://github.com/python-telegram-bot/python-telegram-bot), telegram bot API, code snippets etc, but my lack of understanding(My programming knowledge is selective google copy-pastes) does no... |
2018/03/08 | 303 | 982 | <issue_start>username_0: When looking for an alternative for the cool feature in ITerm(mac) which shows the branch we are on:
[](https://i.stack.imgur.com/S03CR.png)
I [**found out**](https://gist.github.com/githubteacher/e75edf29d76571f8cc6c) that:
... |
2018/03/08 | 1,311 | 4,705 | <issue_start>username_0: I have Outlook 2016 on my computer at work and the "Run a Script" rule has been disabled. I'm aware of the changes that should be made in the `regedit` file, but I need admin access to do so. My IT team is located across the country from me, so I've been waiting for two weeks for them to change... |
2018/03/08 | 429 | 1,365 | <issue_start>username_0: I have a data frame with factors and characters. I want to change the columns with the column prefix "ID\_" to be changed from factors to characters.
I tried the below, but it changes the whole data frame to characters, I just want to change the colnames with "ID\_". I don't know how many "ID\... |
2018/03/08 | 535 | 2,319 | <issue_start>username_0: We have 20 release definitions that need to be deployed together for a deployment to an environment.
Is there a way to link the release definitions and manually trigger a "global" release to deploy all 20 release definitions to a specific environment?
At this moment we manually start each r... |
2018/03/08 | 687 | 2,921 | <issue_start>username_0: I have a need to execute end-user-composed, complex AQL filter expressions against collections with highly variable document structures. These filter expressions may contain range tests that cross zero, such as "doc.x < 10", but in these cases, documents that do not have the field 'x' defined w... |
2018/03/08 | 682 | 2,955 | <issue_start>username_0: I am trying to use the third-party class library called WebKit .NET to make a web browser. For some reason, there is an error:
>
> Severity Code Description Project File Line Suppression State
> Warning There was a mismatch between the processor architecture of the project being built "MSIL"... |
2018/03/08 | 1,565 | 5,445 | <issue_start>username_0: I am trying to create a program that will allow a game reviewer to input what categories the game falls under, it should then print the appropriate category with a checkbox, and the other categories with a blank box.
I have managed to write a for loop that prints out the correct category with ... |
2018/03/08 | 533 | 1,817 | <issue_start>username_0: I'm guessing it's an import error somehow, but I can't seem to figure out how, expect is up to date and I can't get it too run without it saying
>
> libarary TypeError: expect(...).toInclude is not a function
>
>
>
```
var request = require("supertest");
var {app} = require("./../server.j... |
2018/03/08 | 267 | 822 | <issue_start>username_0: Is there a command, similar to
`/opt/solr/bin/solr version` that will tell you whether Solr is running in SolrCloud or Standalone mode?
I am running Solr 7.2.1 on Centos7<issue_comment>username_1: why not something simple like:
```
curl http://localhost:8983/solr/zookeeper?detail=true&path=%... |
2018/03/08 | 1,016 | 3,604 | <issue_start>username_0: I created the component `NotFound` and it works fine when I go to a page that doesn't exist. But the same page it's appearing in all my pages, not only the one that doesn't exist. This is the component:
```
import React from 'react'
const NotFound = () =>
### 404 page not found
We are sor... |
2018/03/08 | 863 | 2,293 | <issue_start>username_0: Given two data tables (`tbl_A` and `tbl_B`), I would like to select all the rows in the `tbl_A` which have matching rows in `tbl_B`, and **I would like the code to be expressive**. If the `%in%` operator were defined for data.tables, something like this would be be ideal:
```
subset <- tbl_A[... |
2018/03/08 | 333 | 1,225 | <issue_start>username_0: How can I remove the padding within the canvas element when using chart.js? *(See red area in the image below)*
I already set the [Padding](http://www.chartjs.org/docs/latest/configuration/layout.html#padding) Option to 0, but that doesn't seem to effect the spacing on the left and right insid... |
2018/03/08 | 1,150 | 3,367 | <issue_start>username_0: I've got a table with place references and x and y coordinates in a given coordinate reference system. I want to turn that into a simple features data frame. How can I create that?
I thought it might be:
```
data_frame(place = "London",
lat = 51.5074, lon = 0.1278,
eps... |
2018/03/08 | 798 | 1,905 | <issue_start>username_0: Let's say I have an input textFile.txt containing:
```
0.3340 0.2333 0.1029 .0349 .2302 [ blah blah ]
0.2223 0.2343 0.2394 .4395 .7943 [ blah2 blah2 ]
```
and there is variable amount of whitespace between the numbers.
and I want to output:
```
0.334,0.2333,0.1029,.03... |
2018/03/08 | 943 | 2,615 | <issue_start>username_0: I'm doing a basic program of implementing Drools and the program runs on an application configuration but when I try to run the JAR, I face an error.
The error I get on the terminal:
```
`Suhita-MacBookPro:Drool-CreditScore-Sample sgoswami$ spark-submit --class main.scala.suhita.Sample --... |
2018/03/08 | 822 | 2,395 | <issue_start>username_0: I have these data below:
```
FName | Lname | Notes | Flag
----- ----- ----- ----
John Smith <NAME> didn't know 1
Bill Jones <NAME> knows 0
```
I need to create and populate a variable (Flag) which looks at the Notes column, searc... |
2018/03/08 | 1,076 | 4,188 | <issue_start>username_0: I'm struggling with something that looks like a piece of cake, but I still can't manage to find a solution.
I'm implementing a firebase authentication process, with reactjs and [firebaseUI web react](https://github.com/firebase/firebaseui-web-react). Everything is just fine, except the fact th... |
2018/03/08 | 2,232 | 9,211 | <issue_start>username_0: In ZF3 you would normally attach your event listener for the `MvcEvent`'s in your module's Module.php like so:
```
php
namespace MyModule;
class Module
{
public function onBootstrap(MvcEvent $event)
{
$eventManager = $event-getApplication()->getEventManager();
$event... |
2018/03/08 | 637 | 1,667 | <issue_start>username_0: I have no idea where to start with this, but what I am trying to do is create a new value based on the number of times another value is represented in another column.
For example
```
# Existing Data
key newcol
a ?
a ?
a ?
b ?
b ?
c ?
c ?
c ?
```
Would like the output to look... |
2018/03/08 | 2,020 | 7,576 | <issue_start>username_0: Given the following table definition:
```
CREATE TABLE [dbo].[ConsolidatedRecords]
(
[SessionKey] UNIQUEIDENTIFIER NOT NULL PRIMARY KEY CLUSTERED
, [EntityID] UNIQUEIDENTIFIER NOT NULL FOREIGN KEY REFERENCES [dbo]. [EntityList] ( EntityID )
, [EntityName] NVARCHAR(128) ... |
2018/03/08 | 740 | 3,061 | <issue_start>username_0: I'm trying to detect a long press in Android. `GestureDetector` is deprecated, so I was trying to use `Handler`s. But `handler` isn't recognizing `postDelayed` or `removeCallbacks`. It `Cannot resolve method` for either.
```
final Handler handler = new Handler() {
@Override
... |
2018/03/08 | 563 | 1,337 | <issue_start>username_0: How to prevent Xcode from displaying colors inline
```
let colors:[UIColor] = [
#colorLiteral(red: 0.1019607857, green: 0.2784313858, blue: 0.400000006, alpha: 1),
#colorLiteral(red: 0.1019607857, green: 0.2784313858, blue: 0.400000006, alpha: 1),
#colorLiteral(red: 0.1019607857, ... |
2018/03/08 | 720 | 1,874 | <issue_start>username_0: I have multiple rows with a parent ID that associates related rows. I want to select the email address where Status = 'active', for the parent ID, and if there's multiple rows with that condition, I want to pick the most recently modified (createDate).
Basically I have two+ records, parent ID... |
2018/03/08 | 554 | 2,274 | <issue_start>username_0: I have a splash screen Activity appear for 10 second while waiting this time the Activity check if tables are created and all data are loaded form server
if not it creates tables and load data to DB. every thing is OK but the problem is when loading data take more than 10 seconds the Splash Ac... |
2018/03/08 | 1,149 | 4,347 | <issue_start>username_0: ```
~$ conda update conda
Solving environment: done
## Package Plan ##
environment location: /home/david/anaconda3
added / updated specs:
- conda
The following packages will be UPDATED:
conda: 4.4.10-py36_0 --> 4.4.11-py36_0
Proceed ([y]/n)? y
Preparing transaction: done
Ver... |
2018/03/08 | 272 | 1,102 | <issue_start>username_0: I'm trying to integrate web3 (using truffle) in a cloud functions module and I keep getting this error:
```
Error: Invalid JSON RPC response: ""
```
Here is part of the implementation:
```
admin.initializeApp(functions.config().firebase);
const db = admin.database();
const provider = new ... |
2018/03/08 | 857 | 3,266 | <issue_start>username_0: I am making a `std::vector` of callback `std::function`s, and I'm having a little trouble understanding the captures. They seem to be going out of scope when I try to use them if I capture by reference. If I capture by value, everything works.
The code that uses these callback functions expect... |
2018/03/08 | 306 | 1,230 | <issue_start>username_0: I have login activity where username is read from `editText` field. How can I make such an functionality to suggest usernames that have been already logged in from the same device?<issue_comment>username_1: Use an `AutoCompleteTextView` instead of normal `EditText`
Save previous usernames in a... |
2018/03/08 | 1,290 | 3,491 | <issue_start>username_0: Ok, I tried to sum all the numbers inside `for` cycle in `result[i].quantity` (and yes, it's numbers, not strings) via `+=` or `dataset.quantity = 0 + Number(result[i].quantity);` but console.log returns me: `NaN` or last iteration like `6135` instead of `36726`.
So what am I doing wrong in th... |
2018/03/08 | 1,197 | 3,337 | <issue_start>username_0: I've got a strange bug that I'm not sure how to fix. I'm working with code that loads SVGs an `![]()` elements. It is supposed to be two triangles using Bootstrap columns that overlap another image. The problem is where the two triangles touch. I'm getting a faint white or black line from - wha... |
2018/03/08 | 1,547 | 6,096 | <issue_start>username_0: So it seems from a few SO questions I've seen that this is a problem among other users. Recently one of our head dev's left and I inherited a lot of his projects. One of which, is a website that *what seems like* lives on an app engine from google cloud platforms. From the [App Engine documenta... |
2018/03/08 | 832 | 2,316 | <issue_start>username_0: I have a problem with extracting **I-want-ya** text from:
```
[\* Group](#h_group123 "Group")
I-want-ya
```
The soulution up to the point:
```
browser = robobrowser.RoboBrowser(parser='html.parser')
browser.open(url)
browser = browser.parsed
soup = BeautifulSoup(str(browser), 'html.parse... |
2018/03/08 | 969 | 2,858 | <issue_start>username_0: I am accessing an API with different product images. These images are not always the same dimensions unfortunately. I want to display them in a 250x250 div.
So sometimes the image is portrait and the image should be scaled on based on the height (not filling the full 250px width). Sometimes i... |
2018/03/08 | 614 | 1,597 | <issue_start>username_0: I need to replace part of a value from a json output. I could easily do this using `sed -i` however it would also replace other parts of the file I don't want it to, unless I'm missing something. The output is
```
{
"LastModified": "2018-03-07T17:24:33.000Z",
"Key": "pending/archive/f7ab16... |
2018/03/08 | 666 | 2,024 | <issue_start>username_0: I'm trying get name of the day of the week like "Wednesday" 2 years and 30 days later from now.
i am stuck here, and i already tried :
```
var ts=(new Date()).getDay();
console.log(new Date(ts));
```
thanks for your help.<issue_comment>username_1: You could do something like this:
```js
va... |
2018/03/08 | 749 | 2,793 | <issue_start>username_0: I've been trying to create a simple directive in Angular 5 but hit walls. I recently discovered that adding my code inside a `setTimeout` function makes it work as I expect. In this case I expect the form to appear populated with "`yolo`"
I don't completely understand why. I understand that it... |
2018/03/08 | 707 | 2,310 | <issue_start>username_0: What is the best way have 3 style types based on props?
Like Bootstrap, aiming to have a default, small, and medium size.
Here I have default and small, but how do I account for a large size too?
```
const Button = styled.button`
background: teal;
border-radius: 8px;
color: white;
... |
2018/03/08 | 848 | 2,619 | <issue_start>username_0: I have a .csv file, let's say, 1000 rows and 1200 columns.
How to extract the data from desired column, *let's say 67*, to another column, *let's say 890*.
And at the same time from a row, *let's say 9*, to another row, *let's say 789*, then export the data as new csv file with C++?
I am stil... |
2018/03/08 | 704 | 2,370 | <issue_start>username_0: How do you get the substring after a word if you there are two different words? I want the substring after the word 'is' and 'isn't'. Suppose I have the columns as below. How do I just grab the substring after 'is' and 'isn't' in a single query? What I have creates another column and has null v... |
2018/03/08 | 818 | 2,579 | <issue_start>username_0: Let's say `foo.c` is staged and `bar.c` has been modified but is not staged. Is there a way to get every non-staged file, which in this case is `bar.c`, reset back to HEAD without `foo.c` getting out of stage ?
I know that commiting won't write bar's changes in history I would just like to avo... |
2018/03/08 | 860 | 3,064 | <issue_start>username_0: I'm kind of stuck on a problem, I’m trying to import a text file from my local computer to JavaScript and populate HTML dropdown's according to the text file. I have spent a lot of time looking at similar questions on stack overflow and i haven't found the solution to the problem yet. Here is a... |
2018/03/08 | 512 | 1,895 | <issue_start>username_0: We want to build a bundle product. For example we have SKU: AAA for $100 and SKU: BBB for $100. We want to create a product page where if you "add to cart" then SKU: AAA and SKU: BBB get added to cart with price of $150
Is this possible with Shopify? We can't use default discount code function... |
2018/03/08 | 930 | 3,468 | <issue_start>username_0: What i'm trying to achieve is to have this structure type:
```
let chartDataSets: Array = new Array();
chartDataSets = [
{
backgroundColor: "#29b6f6",
borderColor: "#0086c3",
pointHoverBorderColor: "#0086c3",
pointHoverBackgroundColor: "#73e8ff",
pointRadius: 3.5,
fill: false
},
{
ba... |
2018/03/08 | 772 | 2,633 | <issue_start>username_0: I need to insert roughly 8 million rows into a postgreSQL database from a local file with JSON objects. The code below which inserts one row at a time works, but it's awfully slow.
The JSON file is too big to store in memory (even with `--max-old-space-size=8192`), which is I why turned to str... |
2018/03/08 | 510 | 1,825 | <issue_start>username_0: I have this little problem: In my Realtime I Have a Child "User" which contains all the different users, every user has a bunch of attributes user (email, phone, name...) I Set it into the Firebase using the push function
```
ref.Child("User").push().setvalue(user)
```
so my problem is how... |
2018/03/08 | 4,749 | 18,942 | <issue_start>username_0: EDIT: I found the problem. It is in the third component code I posted. I am trying to call goToBook and selectBook. So when a user clicks on a book to within the project, it will go to history and pass the user to the route. If the user goes directly to a route, I want to call goToBook directly... |
2018/03/08 | 489 | 1,730 | <issue_start>username_0: I'm using Angular 5.2 with Auth0 for authentication. The login is done on a hosted login page by Auth0. That page redirects to my callback page myapp.com/login-callback in my Angular app.
Auth0 hands over some tokens via the hash in the url. So it redirects to
>
> myapp.com/login-callback#... |
2018/03/08 | 297 | 1,153 | <issue_start>username_0: When trying to find the number of times a word is repeated in a dataset... for example if one column has East Northeast and West, and I am trying to find how many Northeasts there are?<issue_comment>username_1: Well Angular by default encodes your URL with encodeURIComponent(), but you can over... |
2018/03/08 | 1,257 | 4,242 | <issue_start>username_0: Startup scripts are not behaving the way that I expected them to.
I have a `.sh` file in a storage bucket and have included a `startup-script-url` meta tag with the value `gs://bucket-name/start-script.sh`
```
[[0;32m OK [0m] Started Google Compute Engine Accounts Daemon.
Starting... |
2018/03/08 | 2,158 | 8,516 | <issue_start>username_0: Why in C++ (MSVS), datatypes with all caps are defined (and most of them are same)?
1. These are exactly the same. Why all caps versions are defined?
`double` and `typedef double DOUBLE`
`char` and `typedef char CHAR`
2. `bool` and `BOOL` (`typedef int BOOL`), here both all small and all cap... |
2018/03/08 | 644 | 2,350 | <issue_start>username_0: Pandoc allows you to include metadata at the beginning of a Markdown document using a header like
```
---
title: The Song That Never Ends
subtitle: It Goes On and On My Friends
author: <NAME>
lang: en_US
---
```
Is there any way to convey this information to Pandoc when the input format is *... |
2018/03/08 | 319 | 1,027 | <issue_start>username_0: I have a list (mylist) of 110 items.
```
length(mylist)
#[1] 110
```
The elements within the lists are descriptions.
I'm trying sum the elements of the entire list (basically counting the words in each description).
This provides a total for the first element.
```
length(mylist[[1]])
#... |
2018/03/08 | 355 | 1,214 | <issue_start>username_0: I wonder how I can make a ListView of ArrayList of SeekBar
(which i can 'add' more SeekBars to the list on button click )
I am a beginner so I've been trying for hours. that is the best I could do but I don't know whether I can even do something with that :
```
ArrayList seekbarlist=new Ar... |
2018/03/08 | 746 | 2,930 | <issue_start>username_0: Basically, I am creating a `ScriptableObject Skill` and I want to restrict it to only certain character types. However, I can't quite figure out how to go about doing it. I want to avoid having a single enum for all the classes unless it is unavoidable. I will try and show you what I mean below... |
2018/03/08 | 1,321 | 3,897 | <issue_start>username_0: I'm trying to optimize my code and save time. My current solution works, but is redundant and not maintainable when I apply similar functions to multiple dataframes.
How do I automate the creation of new column based on conditions of another column?
**Some data:**
```
import pandas as pd
df... |
2018/03/08 | 316 | 1,165 | <issue_start>username_0: Throughout my script I create a fairly long list that then I need to insert into my database. I want to know if there's a way to direct create a SQL statement with the contents of the array instead of overdoing something like:
```
cursor.execute(
'''INSERT INTO
my_... |
2018/03/08 | 1,058 | 3,723 | <issue_start>username_0: So my problem is about getting reversed String but only words which are longer or equals 5 characters.
So if we pass ("Hey fellow warriors") to the method we should get "H<NAME>" in return. And my code gives me some weird results which are = "sroirraw fellow warriors ".
Here is my code, pleas... |
2018/03/08 | 758 | 2,440 | <issue_start>username_0: I have a Matlab(R2017b) script that is at path:
*path1: C:\ComputeCode\Scr1.m*
and a script like:
*path2: C:\ComputeCode\OtherFiles\Scr2.m*
Scr1.m has a code which does bunch of stuff like below:
```
%..... Scri.m.....%
..open files and do some processing...
cd(path2)
.. ex... |
2018/03/08 | 723 | 2,377 | <issue_start>username_0: I have a function which uses web3.js to create a new account and return the account address. Here is my service
```
@Injectable()
export class ContractsService {
private web3: any;
public acc_no: any;
public createAccount(): any {
this.web3.personal.newAccount('abc123', function ... |
2018/03/08 | 472 | 1,144 | <issue_start>username_0: I have a list
```
A= [1,2,3,3,4,4,5,6,4,7]
```
I want to only keep one `3` and `4` if they are next to another identical one.
Thus A should become
```
A= [1,2,3,4,5,6,4,7]
```
I tried to use `set`
```
set[A]
{1, 2, 3, 4, 5, 6, 7}
```
But it removed the last `4` that I want to keep... |
2018/03/08 | 1,071 | 2,176 | <issue_start>username_0: I have a dataset example, where I want to use lapply (or any other members of apply family) to paste two variables together, where specific condition applies.
Dataframe example:
```
df <- data.frame(v1=c('8','5','8','8','5','8'),
v2=c('20:05:20','19:20','15:37:35','12:04:21','12:45','13:08:2... |
2018/03/08 | 820 | 2,807 | <issue_start>username_0: I have got a dataframe that contains a text and result
```
Text Result
0 some text... True
1 another one... False
```
And I have got a function that does a feature extraction from text - returns dict with about 1000 keys that are words and T/F values depending if th... |
2018/03/08 | 766 | 2,587 | <issue_start>username_0: I am putting an angular portion into my MVC app. As such, I have added a tag to my layout view to find the Angular source code, and this is working great.
My issue arises in trying to add a 3rd party module to my project. I added it through the package.json with no problem, and added the modul... |
2018/03/08 | 468 | 1,527 | <issue_start>username_0: I recently updated to Bootstrap 4.0.0, I'm running Rails 5.1.5 and I installed BS as specified in the README in their github.
Furthermore it's been added to package.json for yarn.
In gemfile : gem 'bootstrap', '~> 4.0' gem 'jquery-rails'
In package.json : "bootstrap": "^4.0.0", "popper.js": ... |
2018/03/08 | 5,830 | 18,762 | <issue_start>username_0: So I am fooling around with pixel manipulation in canvas. Right now I have code that allows you to draw to canvas. Then, when you have something drawn, there is a button you can press to manipulate the pixels, translating them either one tile to the right or one tile to the left, alternating ev... |
2018/03/08 | 1,167 | 2,379 | <issue_start>username_0: Say I have the following dataframes; one with data on 1 minute intervals, and the another with daily data intervals.
```
>>> df_1 = pd.DataFrame({'A':[1,2,3],
'B':[4,5,6],
'C':[7,8,9]},
index=pd.to_datetime(['2017-01-01 00:01:00', '2017-01-01... |
2018/03/08 | 492 | 1,745 | <issue_start>username_0: I have a List of A , To execute filtering I need to map A to B. But once the filtering logic is done I still need A for further operations, So My question is would it be at all possible to achieve this? One approach I can think of is storing both A and B into a third type, so I have both availa... |
2018/03/08 | 843 | 2,673 | <issue_start>username_0: I am trying to find the results of this query:
```
SELECT *
FROM Table1
WHERE ColumnX in (SELECT DISTINCT ColumnX FROM Table2
UNION
SELECT DISTINCT ColumnY FROM Table2)
```
That also filters the results by DateAddedToMarket, a column in Table1 usi... |
2018/03/08 | 833 | 3,363 | <issue_start>username_0: I have an iOS app with a `UITableView`, I have noticed that the cell background colour flashes white when the user selects the `Delete` button.
In the `editActionsForRowAtIndexPath` method, I have created two cell buttons: `Edit` and `Delete`. The first button's style is set to `UITableViewRow... |
2018/03/08 | 332 | 960 | <issue_start>username_0: I've got a table in Teradata that stores a date in an 8 character INT field in the following form "YYYYMMDD", so for today it would store "20180308". If I try to CAST it as a date like this:
`CAST(date_field AS DATE FORMAT 'YYYY-MM-DD')`
It transforms the date to some future date in the year ... |
2018/03/08 | 680 | 2,754 | <issue_start>username_0: I am trying to determine what I need to do with respect to the combination of APNS endpoint (e.g., development or production), Xcode, and Apple Push certificates in order to test push notifications while in development. I feel like I've tried every possible combination, but I must be missing so... |
2018/03/08 | 441 | 1,676 | <issue_start>username_0: I am trying to get an existing docker app running on Windows 10.
**Problem 1:** When I install the docker toolbox, the Docker Quickstart Terminal is missing
**Problem 2:** When I run docker build, I get this error ERROR: Windows named pipe error: The system cannot find the file specified. (co... |
2018/03/08 | 636 | 2,492 | <issue_start>username_0: Is there an option to switch user in HUE?
In my organization, infrastructure team setup usecase id, which has all HDFS file system access and only usecase id can submit yarn jobs. Individual user can sudo
to usecase id `sudo su - xyz`. There are no password for usecase id.
I am able to logi... |
2018/03/08 | 1,387 | 4,925 | <issue_start>username_0: For quick debugging purposes, I'm trying to print out the SparseTensor I've just initialized.
The built-in print function just says it's a SparseTensor object, and tf.Print() gives an error. The error statement does print the contents of the object, but not in a way that shows the actual entri... |
2018/03/08 | 1,726 | 7,378 | <issue_start>username_0: I am trying to deploy my first Azure worker role and I have been running into this error when Run() method is called during service start up.
>
> An unhandled exception of type 'System.StackOverflowException' occurred in Unknown Module.
>
>
>
I've tried to remote debug my code and the er... |
2018/03/08 | 874 | 2,968 | <issue_start>username_0: On my screen, I want the user to be able to tap the screen in order to display a component. Once that component is displayed, I want it to disappear after 4 seconds. That works fine. Also, I want the user to be able to tap the new component to hide it as well. So it hides either by timer or by... |
2018/03/08 | 641 | 2,541 | <issue_start>username_0: I'm looking for a tutorial to create a register form using Apostrophe.
I've searched on Google and Stack, but didn't find anything interesting.
Could anybody show me the way please (where to start, and what to achieve) ?
Thank you !
Fabien<issue_comment>username_1: Here's a good example of b... |
2018/03/08 | 2,471 | 7,261 | <issue_start>username_0: This is a question about performance. I can convert from uppercase to lowercase and vice versa by using this code:
From lowercase to uppercase:
```
// Uppercase letters.
class UpperCase {
public static void main(String args[]) {
char ch;
for (int i = 0; i < 10; i++) {
ch ... |
2018/03/08 | 747 | 2,724 | <issue_start>username_0: I'm trying to use a sidebar with a form to get user input. The code is bound to a Google Sheets file.
Code.gs:
```
function onOpen() {
SpreadsheetApp.getUi()
.createMenu('Custom Menu')
.addItem('Show sidebar', 'showSidebar')
.addToUi();
}
function showSidebar() {
var ... |
2018/03/08 | 717 | 2,732 | <issue_start>username_0: I have a bit of code that looks something like this:
```
class MyClass
{
void doSomething(std::string& stringvar) {
// Does something
}}
class AnotherClass
{ /* Some data structure */ }
```
And then in the main, the programmer calls
```
MyClass* Class1;
std::string myString = "something... |
2018/03/08 | 435 | 1,720 | <issue_start>username_0: I’m using Ember Data to interact with a REST API that has a rate limit.
Any suggestions for how to go about throttling Ember Data requests to X requests per second?<issue_comment>username_1: After some effort, I managed to get [promise-throttle](https://github.com/JMPerez/promise-throttle) to ... |
2018/03/08 | 787 | 2,621 | <issue_start>username_0: Below is the stored procedure used for REBUILD\_INDEX of DB tables, It was executing fine before but when I checked now it is showing below error,
>
> Msg 102, Level 15, State 1, Line 3
>
> Incorrect syntax near 'Activity'.
>
>
> Msg 319, Level 15, State 1, Line 3
>
> Incorrect synt... |
2018/03/08 | 790 | 1,952 | <issue_start>username_0: Suppose i have the following two arrays with means and standard deviations:
```
mu = np.array([2000, 3000, 5000, 1000])
sigma = np.array([250, 152, 397, 180])
```
Then:
```
a = np.random.normal(mu, sigma)
In [1]: a
Out[1]: array([1715.6903716 , 3028.54168667, 4731.34048645, 933.18903575])
... |
2018/03/08 | 528 | 2,378 | <issue_start>username_0: I have a VerticalLayout wrapping a Label and a FormLayout. The VerticalLayout aligns its components centered per default. The Label is aligned centered as expected. The FormLayout not.
When I look at the component tree in the debug view the FormLayout has a width, spanning over the whole width... |
2018/03/08 | 484 | 1,678 | <issue_start>username_0: I was doing everything without success :( I still get error if I try to change mysql root password
What I have done till now:
1)
```
service mysql stop
```
2)
```
mysqld_safe --skip-grant-tables &
```
3)
```
mysql -u root
```
4)
```
update user SET PASSWORD=PASSWORD("") WHERE USER='r... |
2018/03/08 | 753 | 2,632 | <issue_start>username_0: I keep getting undefined method for 'Comments' it looks everything is fine but no luck here is the code involved
Models
------
```
class Post < ApplicationRecord
validates :user_id, presence: true
belongs_to :user
has_many :comments, dependent: :destroy
validates :image, presence: tru... |
2018/03/08 | 783 | 2,166 | <issue_start>username_0: Im trying to run this cron
```
49 15 * * * ruby /Users/nikosalt/Desktop/playing/twilio_send_text.rb
```
on my ruby script twilio\_send\_text.rb which looks like this:
```
require 'rubygems'
require 'twilio-ruby'
account_sid = 'AC5179a0c973e8a059da8676877887f65'
auth_token = '<PASSWORD>'
c... |
2018/03/08 | 188 | 674 | <issue_start>username_0: Normally it is possible in jupyter or iPython notebooks to show lines number for a cell, however I don't see where in Google Colaboratory (Colab).<issue_comment>username_1: Holding `Ctrl` and pressing `M``L` (one by one) switches on/off line numbers in the cells containing code.
Upvotes: 3 <iss... |
2018/03/08 | 671 | 2,722 | <issue_start>username_0: I am implementing a simple game in which the user tries to guess a randomly selected card. They select their guess from a two-component picker (in FirstViewController), and in the next screen (SecondViewController) they can check if they are correct. I am stuck right now trying to pass the gues... |
2018/03/08 | 761 | 3,168 | <issue_start>username_0: One time I was playing around with Resouce system in Unity I discovered this:
Say if you only load but do not Instantiate the prefab:
```
GameObject testObj = Resource.Load("testPrefab");
```
And you have a script called "`TestScript`", and you add this script to `testObj`
```
testObj.AddC... |
2018/03/08 | 938 | 3,243 | <issue_start>username_0: I have array type object in javascript, i want to check if field property exist if does not remove it from object array
for example the array that i have is
```
var array = [{ 0:Common_Text_Area__c:"test 1"
Evaluation__c:"a0W2F000000xB6sUAE"
Id:"a0u2F000000ocv0QAA"
Name:"ER-003346"
R... |
2018/03/08 | 1,028 | 4,187 | <issue_start>username_0: I'm using typeorm v 0.1.14.
typeorm seems to be generating the same alias name for two different columns in a Many-to-One join. It doesn't matter if I use eager loading in the `@ManyToOne` decorator (which loads the child using `.find()` method on the repository, e.g.) or if I use the query bu... |
2018/03/08 | 414 | 1,569 | <issue_start>username_0: I have a page with multiple divs, i want to change the background-color property based on the odd and even rule, the first two divs are not included in the count so i want it to start from section four which should be odd because it's the first one but it's not working it always stays even, her... |
2018/03/08 | 858 | 3,057 | <issue_start>username_0: Currently learning python through "Python Programming: An Intro to CS" and everything has been crystal clear up until splitting a string into a list. Overall I get the gist of `str.split()` but just found something a bit quirky.
The book has the following example:
```
>>> myString = "Hello, s... |