date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/02/27 | 1,090 | 3,602 | <issue_start>username_0: Here is my schema
Suppliers(**sid** ,sname,address)
Cata(**sid,pid**,cost)
Parts(**pid**,pname,color)
bolded are primary keys
I am trying to write a query
"Find the pids of the most expensive parts"
I am using set difference here is my query however its returning all the pids in the catalog... |
2018/02/27 | 1,267 | 4,498 | <issue_start>username_0: Somewhere in my brainstem a voice whispers:
>
> In C++, an array does not need more memory than the number of elements
> need.
>
>
>
```
std::string str = "aabbcc";
std::array str\_array = {"aa", "bb", "cc"};
```
Accordingly, both should have the same size, because (unlike in Java),... |
2018/02/27 | 1,040 | 3,917 | <issue_start>username_0: I have installed SDK JDK and added them as external tools in Unity everything looks right on paper, but when I try building it fails.
I have avdmanager in the location it's looking for it, so I'm completely puzzled. Help please!
I get the following error in console:
```
CommandInvokationFail... |
2018/02/27 | 6,290 | 9,221 | <issue_start>username_0: I ran into a problem with the datetime x-axis in R. I would like to have the breaks to the 1st of every month. However, it only works until March - then, instead of showing 1st April, the plot shows "31st March" and only continues to show the last day of month (see photo below)
I've been search... |
2018/02/27 | 791 | 2,817 | <issue_start>username_0: I have been looking in the internet for the answer to this, but mostly people say to use data validation, which doesn't really solve my problem. What I'm trying to do is, lets say that I have ListBox1, which has 3 values (red, blue, green) and there's another listbox (ListBox2) where I want val... |
2018/02/27 | 315 | 1,097 | <issue_start>username_0: I have the cfoutput query with group attribute, all is good, but i want to convert that into nested JSON output , a kind of ul > li
but I am stuck with how I am trying to output it, Here is my try so far
```
```
which is yielding me incorrect results, because one ID can have 10 programs u... |
2018/02/27 | 397 | 1,357 | <issue_start>username_0: Angular 2 &
Ionic 3
**Project Structure (code below image)**
[](https://i.stack.imgur.com/0y7yy.png)
I defined a custom click method in the home.ts file that is supposed to be triggered by a button in the home.html file.
**home.html... |
2018/02/27 | 1,292 | 4,121 | <issue_start>username_0: I have a struct like this:
```
struct vertices{
char x[20];
char y[20];
char z[20];
};
```
and then in main I have an array of the struct vertices like this:
```
struct vertices vert[64];
```
plus an array of char in m... |
2018/02/27 | 1,998 | 7,236 | <issue_start>username_0: How would you structure a set of parameter value pairs if the parameter data types are different?
Suppose you have a large set of parameters that are bound in a larger software like this:
```
string name;
int counter;
//...
float temperature;
bool enableState;
```
To set the value of a para... |
2018/02/27 | 988 | 3,381 | <issue_start>username_0: I use **Ubuntu 16.04** and I'd like to know how I check the `vue.js` **version** used by my project.
How do I do that?<issue_comment>username_1: Let's summarize the solutions from @jonrsharpe, @JamesAMohler and @MartinCalvert for friends looking for a quick answer.
1. Run `npm list vue` (or `... |
2018/02/27 | 1,012 | 3,479 | <issue_start>username_0: After pod installing NearbyMessages and reinstall the app on the simulator or physical iOS device my app icon goes blank.
I am using swift 3.2 and XCode Version 9.2 (9C40b). I am using
NearbyMessages version 1.1.0.<issue_comment>username_1: Let's summarize the solutions from @jonrsharpe, @Ja... |
2018/02/27 | 926 | 2,941 | <issue_start>username_0: The code below gives me the list of sublists of a list. Code can still be improved to avoid the use of `append`, right?
```
(defun sublists (alist)
(labels ((aux (list p r)
(if (null list)
(append r (maplist #'identity p))
(aux (cdr list)
... |
2018/02/27 | 497 | 1,845 | <issue_start>username_0: I'm trying to handle multiple parameters in react router with the same name, i make an example to explain me better, i have a page in which I compare some items through the id of the item, so for example in a query string I have an array:
```
&resourceid[]=123&resourceid[]=456...
```
so in ... |
2018/02/27 | 631 | 2,244 | <issue_start>username_0: I want to delete an aws directory but when I try, it gives me this error:
[](https://i.stack.imgur.com/hQJIZ.png)
>
> An Error Has Occurred
>
>
> Cannot delete the directory because it still has
> authorized applications. ... |
2018/02/27 | 704 | 2,547 | <issue_start>username_0: I am using this CASE statement to show a total count of visits and average length of visit grouped by age groups:
```
CASE WHEN AgeCalcSort = 0 AND AgeCalcSort <= 1 then (
Count(VisitID),
AVG(DATEDIFF(dd,StartDate,EndDate ))
)
WHEN AgeCalcSort >= 2 AND AgeCalc... |
2018/02/27 | 1,409 | 3,801 | <issue_start>username_0: I am trying to write a regex to parse out seven match objects: four numbers and three operands:
Individual lines in the file look like this:
```
[ 9] -21 - ( 12) - ( -5) + ( -26) = ______
```
The number in brackets is the line number which will be ignored. I want the four integer values,... |
2018/02/27 | 464 | 1,739 | <issue_start>username_0: I'm trying to get all of my script's output to be on a single line, but the output won't always be the same length, so before I print the next line I "wipe" it by printing a line of white space.
Sometimes the output flickers now due to the white space overwriting it. What's the best way to bu... |
2018/02/27 | 709 | 2,697 | <issue_start>username_0: From the document : [Configurable token lifetimes in Azure Active Directory (Public Preview)](https://learn.microsoft.com/en-us/azure/active-directory/active-directory-configurable-token-lifetimes)
It mentioned for "confidential client", the refresh token is "**until-revoked**".
>
> Confiden... |
2018/02/27 | 924 | 3,230 | <issue_start>username_0: The page is currently `http://localhost:4200/foo`.
Case 1: If I press the browser's reload button or type the same url in the browser, the page redirects to `http://localhost:4200` (root path).
I'd like the page keeps in the same url (`http://localhost:4200/foo`).
Case 2: If I type `http://l... |
2018/02/27 | 839 | 3,025 | <issue_start>username_0: I'm getting the contents of a column which has contents stored as 3,2 then I'm using the explode function to separate them. The values separated are then used to query another table to bring names. Next I want to implode the results like burger, fries. But the results are not separated by the c... |
2018/02/27 | 1,435 | 5,704 | <issue_start>username_0: [](https://i.stack.imgur.com/lLalM.png)
[](https://i.stack.imgur.com/0gZSH.png)
The part of my storyboard looks like on first photo. On second photo I presen... |
2018/02/27 | 381 | 1,131 | <issue_start>username_0: I am trying to get the difference between two times in R.
For example, time difference between two times: "03:15" and "01:40" will be 1 hour 35 minutes.
I tried the following code in R:
```
difftime("03:15", "01:40", tz="", units = "secs")
```
But I am getting the following error:
```
E... |
2018/02/27 | 640 | 1,679 | <issue_start>username_0: ```
def equake_readf(fname):
datali = open('equakes50f.txt', 'r')
datali.readline()
li = [ ]
for line in datali:
line = line.split(",")
num = line[4]
print(num)
```
I have a function, equake\_readf, it opens a file with a list of info about earthquakes.... |
2018/02/27 | 2,027 | 7,336 | <issue_start>username_0: `Eclipse 4.4.2v2015024-1700`
I'm trying to launch a local Tomcat 7 server that's for an older project I haven't modified in a couple of years. I was able to get the server up and started this morning, then I made some code changes that required a newer version of a shared library, so I updated... |
2018/02/27 | 1,330 | 4,087 | <issue_start>username_0: I was trying to implement a simple ode to test whether boost.odeint is supporting the usage of boost.units. However my example is failing at compilation. Is it my code, or doesn't boost.odeint support boost.Units for dimensional analysis?
```
#include
#include
typedef boost::units::quantity s... |
2018/02/27 | 573 | 1,989 | <issue_start>username_0: I'm using Python with Beautiful Soup to scrap a list of 20 games from Steam (<http://store.steampowered.com/tags/en-us/RPG/>). But those games are separated not with `div`, but with an `a` tag instead. Therefore, I tried to do the following:
```
all_games=soup.find_all('a',{'class':'tab_item ... |
2018/02/27 | 3,652 | 10,612 | <issue_start>username_0: My ultimate goal is to accelerate the computation of a matrix-vector product in Python, potentially by using a CUDA-enabled GPU. The matrix A is about 15k x 15k and sparse (density ~ 0.05), and the vector x is 15k elements and dense, and I am computing Ax. I have to perform this computation man... |
2018/02/27 | 538 | 1,894 | <issue_start>username_0: I'm trying to implement a setInterval() method but I'm not sure exactly where to put it. Basically, I want this whole JavaScript script to run every minute or so. I think the code that I want to add is the one line I have added below, but I don't know exactly where to put it, and I don't know w... |
2018/02/27 | 509 | 1,873 | <issue_start>username_0: I have to coordinate 5 separate microservices e.g. A,B,C,D,E
I need to create a coordinator which might monitor a queue for new jobs for A. If A completes ok then a rest request should be sent to B then if everything is ok (happy path) then C is called all the way down to E.
However B,C etc m... |
2018/02/27 | 1,153 | 4,924 | <issue_start>username_0: I am using Spring Cloud SQS messaging for listening to a specified queue. Hence using @SqsListener annotation as below:
```
@SqsListener(value = "${QUEUE}", deletionPolicy = SqsMessageDeletionPolicy.ALWAYS )
public void receive(@Headers Map header, @Payload String message) {
try {
lo... |
2018/02/27 | 230 | 842 | <issue_start>username_0: I reinstalled java on my laptop with different version, and after that, my project can't run well in Intellij Idea. So I want to know how to change project's java version in Intellij Idea?<issue_comment>username_1: >
> File | Project Structure
>
>
>
Add your new SDKS, and chose right sdk f... |
2018/02/27 | 326 | 1,115 | <issue_start>username_0: I have a list which has different Boolean values.
```
x = [True, True, True, True, False, False, True, False]
```
i want to check that if there is any value in the list is "False" then I want a final output value to be "True". If there is no "False" or all "True" value then the final output... |
2018/02/27 | 570 | 2,151 | <issue_start>username_0: How do I convert a Flowable to a Single? Or if there's another way to make it stop emitting after the first response that is also of interest.
I've tried this but it doesn't seem to work:
```
disposables.add(
repository.getAllSomethings()
.subscribeOn(SchedulerProvider.ge... |
2018/02/27 | 652 | 1,616 | <issue_start>username_0: I have a dataframe like below. I need to replace the nan in column a with the corresponding value from column b in the same row.
```
df = pd.DataFrame({'a': [1,2,3,4,np.nan, np.nan, 5],
'b': [4,5,6,7,8,9,1]})
df['a'] =df.apply(lambda row: row['b'] if row['a'].isnull() else ... |
2018/02/27 | 2,066 | 7,061 | <issue_start>username_0: before **WooCommerce 3.0** came out my code had worked like a charm to save custom values from the cart into the order on checkout. But since then I'm not able to create custom meta for orders.
**Environment:** Wordpress 4.9.4 & WooCommerce 3.3.3
Hooks
-----
1. `add_action('woocommerce_check... |
2018/02/27 | 1,690 | 3,681 | <issue_start>username_0: I'm having trouble figuring out how to resample a pandas date-time indexed dataframe, but **require a minimum number of values** in order to give a value. I'd like to resample daily data to monthly, and require at least 90% of values to be present to yield a value.
With an input of daily data:... |
2018/02/27 | 292 | 837 | <issue_start>username_0: I have a data frame `x`. I want to get the pairwise combinations of all rows, like `(x[1,], x[2,)`, `(x[1,], x[3,])`, `(x[2,], x[3,])`. Here I take each row as an entirety. I tried functions like `combn`, but it gave me the combinations of all elements in all rows.<issue_comment>username_1: The... |
2018/02/27 | 1,509 | 4,429 | <issue_start>username_0: I have an issue with CSS.
I have a gradient, with more than one instruction to make it compatible with any browser.
```
background: no-repeat 20px center url("./img/pc.png"), -webkit-gradient(linear, left top, left bottom, from(#000000), to(#111111));
background: no-repeat 20px center url("./... |
2018/02/27 | 1,204 | 3,676 | <issue_start>username_0: I've gotten this error copying a tutorial line by line. Here it is:
```
endpoint = 'https:///maps.googleapi.com/maps/api/directions/json?'
origin = ('London').replace(' ', '+')
destination = ('Heathrow').replace(' ', '+')
nav_request = 'origin={} &destination={} &key={}' .format(origin,destina... |
2018/02/27 | 1,243 | 3,923 | <issue_start>username_0: I am trying to automate button presses for a desktop application on Windows 7 - 10. I have been able to do this using AutoHotKey and PowerShell. However, I have had the following issues:
1. The controls I am trying to click do not have text that I can use to
isolate the control
2. The ClassNN... |
2018/02/27 | 761 | 2,383 | <issue_start>username_0: I have the following dataset
```
data have;
input SUBJID VISIT$ PARAMN ABLF$ AVAL;
cards;
1 screen 1 . 151
1 random 1 YES .
1 visit1 1 . .
1 screen 2 . 65.5
1 random 2 YES 65
... |
2018/02/27 | 1,070 | 3,989 | <issue_start>username_0: I have a list of sorts stored in this format:
```
public class ReportSort
{
public ListSortDirection SortDirection { get; set; }
public string Member { get; set; }
}
```
And I need to turn it into a lambda expression of type `Action>`
So assuming I have the following collection of R... |
2018/02/27 | 695 | 2,304 | <issue_start>username_0: Any ideas why this DNS lookup program is throwing a "Segmentation fault: 11"?
I've found that it's to do with being out of allocated memory, but don't know where that's occurring.
Thanks.
```
#include
#include
#include
#include
#include
#include
#include
int main()
{
int sockfd;
s... |
2018/02/27 | 275 | 963 | <issue_start>username_0: How do I move muliple files with the same extension name to a different directory?<issue_comment>username_1: Try this:
```
string[] files = Directory.GetFiles("C:/YourPath/", "*.txt"); //THIS WILL ONLY MOVE TXT FILES
foreach (string s in files)
{
File.Move(s, Path.Combine("C:/YourOutputPat... |
2018/02/27 | 1,009 | 2,764 | <issue_start>username_0: So I have 5 radio buttons and 5 images. I want, when clicked, each button to show a specific image. However, when I check the radio button with something else, it adds another image instead of replacing it!
Here's the code
<https://jsfiddle.net/fcd8s9c8/5/>
Here's my JS code
```
$("#ekolosh... |
2018/02/27 | 753 | 1,923 | <issue_start>username_0: I have 2 arrays.
```
a = np.zeros(2)
b = np.ones(2)
```
I want to combine them so that its output is:
```
array([[0, 1],
[0, 1]])
```
If I had `a = np.zeros((2,1))` and `b = np.zeros((2,1))`, this can done with `np.hstack((a,b))` or `np.append(a,b,1)`. But I don't.
Any thoughts?<... |
2018/02/27 | 836 | 2,303 | <issue_start>username_0: I am trying to redefine method **toString** of *Error.prototype object*, I can't do it in Google Chrome Canary, but I can do it in Firefox.
You can try to do it by your own, here is the code:
```
Error.prototype.toString = () => 'booooka'
throw new Error('Message, that have never been shown')... |
2018/02/27 | 744 | 1,983 | <issue_start>username_0: I've got an array of elements like:
const arr = [
```
0: {name: aaaa, age:33, color: red}
1: {name: bbbb, age:22, color: blue}
2: {name: cccc, age:55, color: yellow}
```
]
And I would to do when i write a path like <http://localhost/aaaa> it would render this actual element of an array ... |
2018/02/27 | 714 | 2,018 | <issue_start>username_0: I have been working on an app that adds views programmatically to a linear layout.
The problem is if I add too many views it will go off the screen.
I would like to know how to check if a certain child has hit the end of the same view group so I could add it into another layout (a linear lay... |
2018/02/27 | 1,764 | 4,706 | <issue_start>username_0: EDIT: My data (for reproducible research) looks as follows. The dplyr will summarise the values for each win\_name category:
```
inv_name inv_province inv_town nip win_name value start duration year
CustomerA <NAME> 1111111111 CompX 233.50 2015-10-23 24 2017
Custom... |
2018/02/27 | 1,196 | 3,147 | <issue_start>username_0: I have 3 EditTexts - et1, et2, et3. I want to put the sum of them in another EditText, et33.
If the sum is 18, the background color of et33 will be green; if not, it will be red.
How can I do it? Here's what I have now:
```
int x = Integer.parseInt(et1.getText().toString());
int y = Integer.... |
2018/02/27 | 1,218 | 3,577 | <issue_start>username_0: Grails 3.2.5. Is see from my sql dump that the hasOne relationship does an eager fetch. This used to be the case back in prior versions of Grails, and the behavior could not be overridden. Is this still the case? What is the recommended model for a 1:1 relationship where we want a lazy fetch on... |
2018/02/27 | 623 | 2,412 | <issue_start>username_0: So currently I am working on developing a HTML page that displays a variety of content from around the web that I am planning on getting by using a web scraper. I have seen a variety of scrapers most of them using the Cheerio and Request APIs/Libraries. However all of these tutorials(such as:<h... |
2018/02/27 | 585 | 1,895 | <issue_start>username_0: this board helped me a few times in the past.
My challange: I want to get the difference between the values within one column.
The table looks like this:
```
id | channel_id | timestamp | value
4515| 7 |1519771680000 | 7777
4518| 8 |1519772160000 | 6666
4520| ... |
2018/02/27 | 935 | 3,368 | <issue_start>username_0: I have some code in a Excel VBA macro and it seems like its persisting values between sessions. The issue is with the BtnUpdate\_Click event, the message box doesnt trigger even if the file path in NewDataFilePath is invalid.
```
Public NewDataFilePath As String
Private Sub BtnFileBrowse_Cli... |
2018/02/27 | 890 | 3,756 | <issue_start>username_0: In my react native app I save the user information securely on the key chain, so that after they have logged in once, I save the information and then the next time the user comes, the information is already there and so the user won't need to log in.
The issue is that I do the check in compone... |
2018/02/27 | 645 | 1,963 | <issue_start>username_0: I'm having trouble centering my logo in the navbar. I've looked through other posts, but none of the solutions seem to work without messing something else. I don't understand why the logo won't center and I need the site to be responsive.
```
* [About Us](#)
* [Recruitment](#)
* [Events](ev... |
2018/02/27 | 515 | 1,744 | <issue_start>username_0: I have an app that accepts a Deeplink URL and opens a viewcontroller with variables from the link and it works well if the App is opened/run for the first time by the user using the Deeplink.
However, if the App is already open/or in the background and has that view controller open... it then ... |
2018/02/27 | 389 | 1,297 | <issue_start>username_0: I'm writing code that returns a list containing all strings of the given length over the alphabet alpha in no particular order. For example:
```
all_strings({0, 1}, 3))
```
should return
```
['000', '001', '010', '011', '100', '101', '110', '111']
```
The two functions:
```
def all_strin... |
2018/02/27 | 422 | 1,546 | <issue_start>username_0: I have the following routes methods in my controller:
```
getListaUsuarios() {
this.app.get("/api/usuario", (req, res) => {
this.usuario.getListaUsuarios().then((results) => {
return res.status(200).json(results);
}).catch((error) => {
return res.sta... |
2018/02/27 | 222 | 831 | <issue_start>username_0: I'm having trouble selecting and styling a navigation on my friends site. Screen shot:
[](https://i.stack.imgur.com/GsoNm.png)
Those red dots between the items? The list style type is none but they are still showing. Rather tha... |
2018/02/27 | 592 | 1,739 | <issue_start>username_0: If I have a Bootstrap 3 list-group of elements. I would like one of them split in half so that within the group it looks similar to a button group as shown in the snippet.
How can I do this?
```css
.container {
width: 75%;
}
```
```html
[Left Side](#)
[Right Side](#)
[Dapibus ac f... |
2018/02/27 | 875 | 2,447 | <issue_start>username_0: I have a dictionary of lists like this:
```
my_dict = {
'key_a': [1, 3, 4],
'key_b': [0, 2],
}
```
I want to create a reverse lookup dict like this:
```
reverse_dict = {
0: 'key_b',
1: 'key_a',
2: 'key_b',
3: 'key_a',
4: 'key_a',
}
```
I have a **working versio... |
2018/02/27 | 1,605 | 4,367 | <issue_start>username_0: Hi I have an json file that include a field of array named urlPhotos. I would like to have a list for urlPhotos om my html page using the echo method in PHP
my data in the json file has this structure
```
[{
"caseKey": "<KEY>",
"caseNumber": "177",
"companyName": "Bach",
"offi... |
2018/02/27 | 1,526 | 6,078 | <issue_start>username_0: package kebek;
```
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
impor... |
2018/02/27 | 1,705 | 6,301 | <issue_start>username_0: I have followed the instructions on the nodemailer site to the letter, but OAuth2 for google service accounts simply does not work for me.
Either I get ECONN timeouts when setting "host" to mail.google.com **or** some combination of "401, user/pwd not accepted, can not create access token" err... |
2018/02/27 | 1,292 | 4,845 | <issue_start>username_0: I am working on an express node app that posts to twitter when a user inputs an image into a form. I am saving the image locally before uploading, which works. After I encode the file to base64, I try to upload the base64-encoded file to Twitter using twit's media/upload feature. When I do this... |
2018/02/27 | 949 | 3,238 | <issue_start>username_0: I have
```
std::vector obs;
//fill obs...
std::vector obsA;
std::vector obsB;
for (MyObject &p: obs){
if (p.type == "A"){
obsA.push\_back(p);
}else{
obsB.push\_back(p);
}
}
```
where I am trying to create a 2 subsets of some vector of objects. I want the subsets to be pointers, so th... |
2018/02/27 | 533 | 1,698 | <issue_start>username_0: I want to group the number of messages by recipient user -> {'User 1': 5};{'User 2': 7}...
My model:
```
class Mensaje(models.Model):
remitente = models.ForeignKey('Usuario', on_delete=models.CASCADE, related_name='Remitente')
destinatario = models.ForeignKey('Usuario', on_delete=mode... |
2018/02/27 | 386 | 1,719 | <issue_start>username_0: Is there any way to make an AWS lambda receive an inbound TCP connection (for instance from another lambda)?
EDIT: I'm not asking whether it's possible to call a lambda from another.<issue_comment>username_1: No.
I am sure AWS pretty much locked it down for obvious reasons.
Besides each cont... |
2018/02/27 | 472 | 1,932 | <issue_start>username_0: I am writing a shell script. I have the file address in the following format:
```
/Users/hsn15051/downloads/RandomName1/RandomName2/SN/RandomNumber/Myimage.jpg
```
I want to use the SN parameter which is always fixed so as to split the file address and have the following two strings
```
/U... |
2018/02/27 | 525 | 2,227 | <issue_start>username_0: I am trying to secure my application using keycloak.
I use angular for my frontend and spring boot for my backend.
Using only http, everything works fine, the problem is, if I want to use HTTPS along side HTTP, I am having a problem with the backend throwing an error like:
```
o.k.a.Be... |
2018/02/27 | 569 | 2,078 | <issue_start>username_0: ```
int main() {
Population town;
int population;
int numBirths, numDeaths;
string city, intTest;
bool isValid = true;
do {
cout << "Enter name of city: ";
getline(cin, city);
for (int i = 0; i < city.length(); i++) {
if (!isalpha(cit... |
2018/02/27 | 2,704 | 9,139 | <issue_start>username_0: I am trying to connect to mysql database from docker image. However it's throwing errors.
following is the docker image I am using.
<https://hub.docker.com/_/mysql/>
And following is the command I have used to run the docker image.
```
docker run -p 3306:3306 --name mysql_80 -e MYSQL_ROOT... |
2018/02/27 | 1,306 | 5,371 | <issue_start>username_0: For a challenge, I need to create a button to toggle between Fahrenheit and Celsius which I did.
The issue is that it works to Fahrenheit and back to Celsius and then it stops. I want the user to toggle back and forth as much as they want and I cannot find a solution??
```
$("document").ready(... |
2018/02/27 | 1,193 | 4,181 | <issue_start>username_0: I'm attempting to calculate a total or other value based on a particular value in a FormArray.
I'm finding that when subscribing to `valueChanges` and attempting to pass the whole array to something like `reduce`, the "new value" isn't present on the parent FormGroup.
[Original Example on Sta... |
2018/02/27 | 3,231 | 12,652 | <issue_start>username_0: I am trying to integrate Google sign-in into my android app using Firebase, but I am running into issues. I am following the tutorial [here](https://firebase.google.com/docs/auth/android/google-signin?authuser=1), and I believe that I have followed it to the word. I added Firebase to my app, ad... |
2018/02/27 | 1,215 | 3,942 | <issue_start>username_0: I have many text files like these File1, File2, and File3. . . File100
Each file have the same header for example
```
>7:1234-5678
line 2
line 3
.
.
```
Each file corresponds to an individual, let's say
```
File1=Juan
File2=Pedro
File3=Carlos
```
What I want to do is add the name of eac... |
2018/02/27 | 1,225 | 4,348 | <issue_start>username_0: My app is a Tableview Controller with cells that contain a fictional character's name. When a cell is selected, a View Controller with specific details about the character is brought up. I want the user to be able to mark off each character that they already own.
I set up the following code t... |
2018/02/27 | 1,401 | 4,936 | <issue_start>username_0: I am using saveAsTextFile() to store the results of a Spark job in the folder dbfs:/FileStore/my\_result.
I can access to the different "part-xxxxx" files using the web browser, but I would like to automate the process of downloading all files to my local machine.
I have tried to use cURL, b... |
2018/02/27 | 1,684 | 6,086 | <issue_start>username_0: I've done a bunch of research and I can't quite seem to wrap my head around this.
I've built an app. The client was built with Vue-cli and runs on `port 8080` from a client folder, and the server from a separate server folder on `port 8081`. In essence, I have this:
```
client
- package.j... |
2018/02/27 | 680 | 2,247 | <issue_start>username_0: As stated [here](http://php.net/manual/en/function.http-build-query.php#122232) PHP's `http_build_query` function converts booleans to integers in the resulting string.
Is there a way that:
```
$a = ["teste1" => true, "teste2" => false];
echo http_build_query($a);
```
The result can be `tes... |
2018/02/27 | 1,900 | 4,652 | <issue_start>username_0: I have the following example `struct`:
```
struct Data {
internal long a;
internal long b;
internal void Deconstruct(out long aa, out long bb) {
aa = a; bb = b;
}
}
```
What if I want only to use the values of the struct an forget about the struct itself?
```
Data G... |
2018/02/27 | 1,874 | 5,649 | <issue_start>username_0: I'm using the ROOT libraries, and there is a ROOT forum, but I don't think this is a problem with ROOT specifically.
I have a 3 dimensional array of 2 dimensional Histograms all\_histos (histograms are objects in ROOT), and their size depends on some arrays that I want to be able to change in ... |
2018/02/27 | 578 | 1,933 | <issue_start>username_0: After browsing the section on components, props, and other similar areas on the React documentation, I can't seem to find if this is possible.
Trying to do something like this:
```
construct() {
super();
this.state = {
category: dog
};
}
render() {
return(
);
}
```
In this c... |
2018/02/27 | 1,115 | 3,681 | <issue_start>username_0: For our programming class we have to add two sparse matrices together by reading 2 input files. We are required to use structs to store the values from the matrices, and dynamically allocate the size for the size of the element. I understand the logic behind allocating memory for the size of th... |
2018/02/27 | 604 | 2,070 | <issue_start>username_0: I'm having a very strange error . Basically I'm trying to delete recyclerview items on LongClick but in some cases I'm getting `adapter position` as `-1`.
My Code:
```
@Override
public void onBindViewHolder(ViewHolder holder, int position) {
Message message = mMessages.get(position);
hol... |
2018/02/27 | 570 | 2,025 | <issue_start>username_0: I’m trying to make something where you can input numbers into an input (or would a contenteditable div be better?) and it does some calculations to them and sets the content of another div as the answer. How can I make it so that the other div will update whenever the number changes? I would pr... |
2018/02/27 | 673 | 2,408 | <issue_start>username_0: In my app I'm developing in android studio, I'm making a button to redirect from one activity to another but it does not give me anything even though I do not have any errors in the code.
```
package com.example.shreeganesha.splash;
@Override
protected void onCreate(Bundle savedInstanceState)... |
2018/02/27 | 469 | 1,471 | <issue_start>username_0: When I click on any of the buttons, it tells me showElement is not defined.I'm looking to create a reusable function called showElement which can be called whenever I want to show a div by passing an id of that div. What am I doing wrong? <https://jsfiddle.net/2taswyy6/20/>
This is my html:
`... |
2018/02/27 | 1,511 | 3,977 | <issue_start>username_0: I'm fitting a quadratic model to the diversity of bees along an elevational gradient. I'm supposing there will be a maximum somewhere along the gradient, thus my model should have a negative "a" coefficient. This is working for 3 genera, but with the fourth one (*Exaerete*) the "a" becomes posi... |
2018/02/27 | 1,530 | 5,438 | <issue_start>username_0: I'm trying to create a todo-list with React. I am able to display the list in the display area and also able to remove the items. But when I click on one checkbox, all the checkboxes are selected and the class is applied to all the list items. I'm not sure what is it that I am doing wrong.
I ... |
2018/02/28 | 486 | 1,628 | <issue_start>username_0: UPD: I have found this article: <http://www.developer-corner.com/blog/2007/07/19/datagridview-how-to-bind-nested-objects/> , but it is pretty old, posted in 2007.
I have C# win forms app and I want to show list of items in datagridView:
here is the List: `
```
public static List ItemsList { ... |
2018/02/28 | 745 | 2,434 | <issue_start>username_0: I own a WordPress based website and trying to write an Android app for it.
I already tried to check out WordPress's open source Android app, but couldn't figure it out.
I want to implement oAuth-2.0 login for the app. Does WordPress have build-in support for oAuth-2.0? How can I implement it on... |
2018/02/28 | 767 | 2,628 | <issue_start>username_0: We have an ASP.NET MVC application that is deployed on Azure. The application allows users to upload large Excel files (around 15 MB = 25K rows).
In the code we are processing the each record in parallel, performing validation on it and if everything looks good we are inserting/updating the r... |
2018/02/28 | 455 | 1,619 | <issue_start>username_0: If I write like this:
```
define('ROOT', $_SERVER["REQUEST_SCHEME"] . '://' . $_SERVER['HTTP_HOST'] . '/');
```
then when using the server-side function, for example, imagejpeg, an error occurs:
```
imagejpeg(http://mysite/files/users/imgs/original/man.jpg): failed to open stream: HTTP wrap... |
2018/02/28 | 606 | 1,701 | <issue_start>username_0: I have a within a within a grid, for example:
```css
.container {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 50px;
border-top: 1px solid rgba(0, 0, 0, 0.13);
}
.label {
align-self: center;
border-left: 1px solid rgba(0, 0, 0, 0.13);
padding-lef... |
2018/02/28 | 618 | 1,836 | <issue_start>username_0: Here's some code I found in a very old C library that's trying to eat whitespace from a file...
```
while(
(line_buf[++line_idx] != ' ') &&
(line_buf[ line_idx] != ' ') &&
(line_buf[ line_idx] != ',') &&
(line_buf[ line_idx] != '\0') )
{
```
[This great thread](http... |
2018/02/28 | 874 | 1,825 | <issue_start>username_0: I have a Json string:
```
{"spatialReference":{"wkid":102100},"geometryType":"esriGeometryPolygon","features":[{"geometry":{"rings":[[[-13945398.575078921,7313414.186040432],[-13945392.60343609,7313379.550512001],[-13945410.518364588,7313360.142672794],[-13945433.509189496,7313387.313647684],[... |
2018/02/28 | 826 | 2,653 | <issue_start>username_0: Let's say I have an array of objects:
```
[
{
category: 'Category A',
mainUnits: 5,
subUnits: 3
},
{
category: 'Category A',
mainUnits: 9,
subUnits, 12
},
{
category: 'Category B',
mainUnits: 4,
subUn... |