date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/22 | 890 | 2,439 | <issue_start>username_0: I am trying to integrate over a multivariate distribution in python. To test it, I built this toy example with a bivariate normal distribution. I use `nquad()` in order to extend it to more than two variables later on. Here is the code:
```
import numpy as np
from scipy import integrate
from s... |
2018/03/22 | 353 | 1,199 | <issue_start>username_0: I have below columns in book\_history table. Every new book taken will have entry in this table with a new auto increment id, current date, student id and book id.
```
Id, RecordCreatdOn, StudentId, BookId
```
I want to get students (studentId) who have last taken any book before '2017-12-31... |
2018/03/22 | 849 | 3,099 | <issue_start>username_0: I am pretty new to AWS Dynamodb. I am using python's boto3 to fetch all items of a particular attribute (say, Attribute name is 'Name') from the dynamodb table.
Although there are other attributes too in the table like 'Email', 'Profession'. I need to fetch or get all items only of the attrib... |
2018/03/22 | 1,689 | 4,902 | <issue_start>username_0: ```
let receipts_array =["Anna 0.4","Peter 0.25","Anna 0.5","Peter 0.5","Peter 0.33"]; //
```
how can I split this array so I can have for example the first index to be just Anna and second 0.4, because i need to sum the numbers and then see who won
**output is just Peter**<issue_comment>use... |
2018/03/22 | 388 | 1,530 | <issue_start>username_0: We are an ESP provider. We send messages for our clients in HTML format.
This week one of our clients complained that zero values ( 0 ) started being stripped from the email content by Outlook 2016.
This case is only relevant when 0 is located in
```
0 |
```
or in
```
0 |
```
In thi... |
2018/03/22 | 700 | 1,847 | <issue_start>username_0: I'm creating a dataframe containing the number of incidents of a certain kind in each state in each year from 2000 to 2010 (pretend that they are gun incidents):
```
states <- c('Texas', 'Texas', 'Arizona', 'California', 'California')
incidents <- c(1, 1, 2, 1, 4)
years <- c(2000, 2008, 2004, ... |
2018/03/22 | 591 | 1,999 | <issue_start>username_0: I am studying economics and we just started learning with R in RStudio and we got homework, I am really bad at this, I have almost all other tasks done but I have no idea b idea how to do this (sorry if it is pretty simple)
We got some data and we should estimate this regression function (inste... |
2018/03/22 | 502 | 1,911 | <issue_start>username_0: I'm working on a project with Web API 2 and I'm trying to find the best way to save the user configuration in memory.
Each user has a particular configuration (timezone, location, language, its company information, and many more information), so I'm trying to implement a way to query this info... |
2018/03/22 | 1,238 | 4,354 | <issue_start>username_0: I have setup a dockerized cluster of Kafka Connect which is running in distributed mode.
I am trying to setup a Kafka JDBC Source Connector to move data between Microsoft SQL Server and Kafka.
Below is the output of the response of my `connector-plugins` api
```
[
{
class: "io.conflue... |
2018/03/22 | 138 | 567 | <issue_start>username_0: I have an action bar set up and it works great. I'd like to have it so that it is hidden until the user does something like pull down from the top of the screen, and then show it.
I can't find any resources which discuss doing this.<issue_comment>username_1: You can toggle its visiblity using ... |
2018/03/22 | 336 | 1,228 | <issue_start>username_0: I'm using Rails 5.1 with Minitest and Searchkick gem and in my system tests I need to have the data indexed in ElasticSearch to make sure the tests pass.
If I add a breakpoint and inspect
```
class ActiveSupport::TestCase
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabet... |
2018/03/22 | 542 | 1,862 | <issue_start>username_0: ```
import glob2
from datetime import datetime
filenames = glob2.glob("*.txt")
with open(datetime.now().strftime("%Y-%m-%d-%H-%M-%S-%f")+".txt", 'w') as file:
for filename in filenames:
with open(filename, "r") as f:
file.write(f.read() + "\n")
```
I was workin... |
2018/03/22 | 706 | 2,578 | <issue_start>username_0: I am using TeamCity as CI tool. I want to exclude all the Entity Framework generated models. I've been trying different syntax and options for a while and nothing seems to do the trick.
I read the documentation, read all the question on the topic I could find, but still nothing seems to work f... |
2018/03/22 | 840 | 2,937 | <issue_start>username_0: How do I clear, or edit an input box with `ngModelChange`?
I have a pluncker:
<https://embed.plnkr.co/oc1Q7lkEkXNxSag6Kcss/>
My angular calls are in `template-driven-form.ts`
This is my HTML:
```
(ngModelChange) Example:
========================
Number:
```
This the angular code:
`... |
2018/03/22 | 461 | 1,269 | <issue_start>username_0: I tried this solution to my list and I can't get what I want after sorting.
I got list:
```
m_2_mdot_3_a_1.dat ro= 303112.12
m_1_mdot_2_a_0.dat ro= 300.10
m_2_mdot_1_a_3.dat ro= 221.33
m_3_mdot_1_a_1.dat ro= 22021.87
```
I used `sort -k 2 -n >name.txt`
I would like to get li... |
2018/03/22 | 1,002 | 3,280 | <issue_start>username_0: First, a little of scenario. I have a tkinter window with a single button on it. This button is white until I hover over it, in which case it turns orange. My question is: How can I make the transition between the white and orange smooth,
like a fade-in and fade-out. My code so far:
```
from ... |
2018/03/22 | 607 | 1,687 | <issue_start>username_0: 2d array, how to accept white space in input? in 1d array i think the right code is `cin.getline(array,5)`but in 2d array i cant figure it out what is right parameter.
here is my code
```
#include
void display();
char array[2][5];
using namespace std;
int main(){
for (int x = 0; x < 2; ++x... |
2018/03/22 | 586 | 1,564 | <issue_start>username_0: When subsetting a matrix or DF, it is possible to reference row columns, such as `df1[1:5, 3:10]`, or `df3[2:4, ]`.
**Is there any way to do this with a raster? That is, can I clip just rows 500:700, for example from a raster object?**
I have tried using `rasterFromCells()`, but it doesn't g... |
2018/03/22 | 415 | 1,220 | <issue_start>username_0: What formula can I use to get a count of emoji and characters in a single cell?
For example, In cells, A1,A2 and A3:
```
✋️
??
```
Total Count of characters in each cell(**Desired Output**):
```
3
5
5
```<issue_comment>username_1: For the given emojis, This will work well:
```
=LEN(R... |
2018/03/22 | 904 | 3,526 | <issue_start>username_0: In Access I have five related tables that I'm trying to get information from, but I'm not sure how to write this query. I'm not even really sure how to start. I have:
```
tblEmployee tblCourseCatelog tblSessions tblInstructorDeliverables
----------- ---------------- ----------- ---... |
2018/03/22 | 665 | 2,008 | <issue_start>username_0: When this query returns me the "Center" register, there is a word at all the fields with the same name that i don't want to display. I could make it via PHP but I need to use it on the db.
Basics I know, but i haven't done sql for a long time
```
SELECT
o.id_order,
o.reference AS Ref,
c.first... |
2018/03/22 | 220 | 808 | <issue_start>username_0: I have a Bash script to build my Jekyll sites using different config files depending on environment variables, etc. Is it possible to specify a Bash script as build command in Netlify?
So far, my efforts have resulted in
```
3:57:24 PM: Executing user command: /opt/repo/build.sh
3:57:24 PM: /... |
2018/03/22 | 1,350 | 4,920 | <issue_start>username_0: I have `ListView`, where I have `ImageView`. I need to get the image from url and show in `ImageView`, but that's not working, the image is not visible. In that `ListView` I have a `TextView` and `CheckBox` too, but you not need it because that works. I'm using `Glide`. So what's the problem?
... |
2018/03/22 | 1,014 | 3,749 | <issue_start>username_0: I send a JSON object from my mangoDB to the html page in this way:
```
router.get('/index', function (req, res, next) {
GenoverseInstance.find({name: req.query.name}, function (err, instance) {
if (err) {
res.send(err);
throw err;
} else if (instance... |
2018/03/22 | 3,815 | 11,710 | <issue_start>username_0: I'm a novice programmer learning C++ through a tutorial and I want to know how I can take a string, take its first letter, compare it to the first letters of 2 other strings and then sort them alphabetically. I don't want code written for me. I want to understand how to do this because other so... |
2018/03/22 | 3,660 | 11,576 | <issue_start>username_0: I'm currently facing a problem that I'm not able to resovle yet, but I hope I can do it with your help.
I currently developp an application with gstreamer to playback different kind of files : video and photo (avi and jpg respectively). The user has to have the possibility to switch between th... |
2018/03/22 | 1,742 | 5,144 | <issue_start>username_0: I would like to get the feature names of a data set after it has been transformed by SKLearn OneHotEncoder.
In [active\_features\_ attribute in OneHotEncoder](https://stackoverflow.com/a/33596950) one can see a very good explanation how the attributes `n_values_`, `feature_indices_` and `activ... |
2018/03/22 | 1,489 | 4,582 | <issue_start>username_0: I have three branches Master, Branch1 and Branch2,
I am currently working on Branch2. I have done some local changes but I want to commit these changes to a new branch (Branch3).
After doing some research I see that I should create a new command using **"git checkout -b [name\_of\_your\_new\... |
2018/03/22 | 907 | 2,382 | <issue_start>username_0: I have these columns:
```
text.NANA text.22 text.32
1 Female RNDM_MXN95.tif No NA
12 Male RNDM_QOS38.tif No NA
13 Female RNDM_WQW90.tif No NA
14 Male RNDM_BKD94.tif No NA
15 Male RNDM_LGD67.tif No NA
16 Femal... |
2018/03/22 | 334 | 1,100 | <issue_start>username_0: In React - I have an input mask that turns a user input into: (###) ###-####
Unfortunately, that data can't go to the DB in that format, so I need to strip the mask so it saves as ##########. I'm trying to form a RegEx string to accomplish this in a string.replace to no avail.
I've tried a fe... |
2018/03/22 | 238 | 738 | <issue_start>username_0: I have to match all `-` inside the following pattern
```
"word-word": #expected result find one -
"word-word" #expected result no - find because the : is missing in the end pattern
"word-word-word": #expected result find two -
"word-word #expected result no - f... |
2018/03/22 | 506 | 1,154 | <issue_start>username_0: For the subset argument i want to specify the first n-1 columns. How'll I do that?
For example: in the following dataset
```
0 1 2 3 4 5 6
0 0 12 1 99 23 2 75
1 0 12 1 99 23 2 66
2 5 12 1 99 23 2 66
```
I want the result to be 1st and 3 rd row only:
```
... |
2018/03/22 | 415 | 1,082 | <issue_start>username_0: I need to import an Audit Command Language(ACL) table created in another project. The tables are saved out to .FIL (ex. FY12P12.FIL) files. When I use the GUI to import the table the resulting data is a jumbled mess.
I tried using this command:
```
IMPORT LAYOUT "\\mypath\FY12P12" to FY12P12_... |
2018/03/22 | 750 | 2,461 | <issue_start>username_0: I have a sql query where I should have something like
```
select * from transactionDetails
WHERE OrderID in (400376, 400379)
AND
IF TransactionDate <> ProcessingDate
TransactionId in (2,3,9,14,15)
ELSE
TransactionId in (2,3,9)
```
But this gives me a error at IF and ... |
2018/03/22 | 1,574 | 5,822 | <issue_start>username_0: I have the following config that works fine for loading a bunch of files into BigQuery:
```
config= {
'configuration'=> {
'load'=> {
'sourceUris'=> 'gs://my_bucket/my_files_*',
'schema'=> {
'fields'=> fields_array
},
'schemaUpdateOptions' => [{ 'ALLOW_FIEL... |
2018/03/22 | 410 | 1,682 | <issue_start>username_0: How do you handle blank values for SSAS Tabular?.
Now i am using ssas model 1400. In SSas Multidimensional, we had "unkown member". Can i have something similar using ssas Tabular?.<issue_comment>username_1: In SSAS Multidimensional you could control whether the unknown member was visible, hid... |
2018/03/22 | 1,106 | 2,114 | <issue_start>username_0: I have a data frame with the intercepts and slopes for six lines. There are other questions that address this (i.e., this [question](https://stackoverflow.com/questions/45287549/does-geom-abline-plot-data-multiple-times)), but when I follow the same approach, it doesn't seem to work.
When I tr... |
2018/03/22 | 614 | 1,956 | <issue_start>username_0: how to count the number of rows with data based on the filter applied?
All I can find is methods like `xlUp, xlDown` which I cant apply to this as it will give me last row as opposed the number of rows with filtered data.
example
```
1 animal age
2 dog 10
3 cat 15
```
I appl... |
2018/03/22 | 1,503 | 5,701 | <issue_start>username_0: Consider the following method `count` that maps type level natural numbers to value level ones:
```
{-# LANGUAGE
DataKinds
, KindSignatures
, PolyKinds
, FlexibleInstances
, FlexibleContexts
, ScopedTypeVariables
#-}
module Nat where
data Nat = Z | S Nat
data Proxy (a :: k) ... |
2018/03/22 | 500 | 1,838 | <issue_start>username_0: Is it possible to write Strings to a file in utf-32 format? For example: the RandomAccessFile class only offers the writeUTF() Method, which writes the String in a modifed UTF-8 format.
Lets say my task is to write every existing unicode character into a file :).<issue_comment>username_1: You s... |
2018/03/22 | 434 | 1,682 | <issue_start>username_0: I'm also using webpack to transpile and bundle onto public.
What are the pros and cons of keeping image assets in public vs non-public.
Which project structure is better for a react app?
```
public/
-images/
--favicon.ico
--(other-image-files...)
-index.html
-bundle.js
src/
-com... |
2018/03/22 | 676 | 2,529 | <issue_start>username_0: This statement needs to output the # of days absent + '.00'. Currently the statement works to return a value of 500 if the student was absent 5 days. I need the output be formatted like 5.00. My issue is that every time I add the decimal '.00' to this statement I get:
>
> Conversion failed w... |
2018/03/22 | 591 | 1,814 | <issue_start>username_0: I have a directory with several types of files.
How can I count the number of files in a directory with 2 types of extensions (.txt and .csv)?
In my search I found how to count with only one certain extension<issue_comment>username_1: Assume `path` is the path to your folder. Then
```
import o... |
2018/03/22 | 714 | 2,375 | <issue_start>username_0: I want to display a textView in popup Window when I click a View , but the calculation needs time, so I make the calculation in AsyncTask, but how to show the popup Window immediately after the AsyncTask process is finished?
```
public void onClick(View widget) {
MyAsyncTask asyncTask... |
2018/03/22 | 888 | 3,187 | <issue_start>username_0: I have problem with gson.
In object model I add SeriableName
Proguard:
```
# For using GSON @Expose annotation
-keepattributes *Annotation*
# Gson specific classes
-dontwarn sun.misc.**
-keep class com.google.gson.stream.** { *; }
-keepattributes EnclosingMethod
# Application classes that w... |
2018/03/22 | 508 | 1,436 | <issue_start>username_0: I have data of json as sample
```
[{"Food":"Orange T1","Total":3},
{"Food":"Blue T2","Total":1},
{"Food":"Green T3","Total":1},
{"Food":"White T4","Total":4}]
```
and i want to convert to array object as
```
[['Orange T1', 3], ['Blue T2', 1], ['Green T3', 1],['White T4', 4]]
```
How I do... |
2018/03/22 | 484 | 1,507 | <issue_start>username_0: I need to show an image at the bottom of a web page after rows of data (dynamic) have been displayed.
See diagram
[](https://i.stack.imgur.com/r5D4P.png)
I have the following html code;
```
// rows of data. could be between 1 and 10 rows.
![... |
2018/03/22 | 1,892 | 4,824 | <issue_start>username_0: I try:
```
ffmpeg -re -i ./2898654.mp4 -b:a:0 32k -b:a:1 64k -b:v:0 1000k -b:v:1 3000k \
-map 0:a -map 0:a -map 0:v -map 0:v -f hls \
-var_stream_map "a:0,agroup:aud_low a:1,agroup:aud_high v:0,agroup:aud_low v:1,agroup:aud_high" \
-master_pl_name master.m3u8 \
./out_%v.m3u8
```
err... |
2018/03/22 | 1,246 | 3,541 | <issue_start>username_0: I am trying to work with an if statement and check if the row values are NaN or not. It turns out to be more difficult that I thought
here is an example:
```
df = pd.DataFrame({'key': ['A', 'B', 'C', 'A', 'B', 'C'],
'data1': range(6),
'data2': ['A1', 'B1'... |
2018/03/22 | 894 | 3,340 | <issue_start>username_0: I've noticed that, in addition to initialization, I'm able to assign initializer lists to STL containers such as std::array and std::vector. For example:
```
#include
#include
#include
using namespace std;
int main()
{
array arr;
vector vec(4);
arr = {{1, 2, 3, 4}};
vec = {4, 3, 2, 1}... |
2018/03/22 | 916 | 2,601 | <issue_start>username_0: Below query example shows the actual result of what I want my query to fetch. I was wondering if there was any better/efficient way of writing it:
```
with x as
(select 'A' institution, 100 value_x, 40 value_y from dual union all
select 'B' institution, 200 value_x, 70 value_y from dual union ... |
2018/03/22 | 560 | 1,657 | <issue_start>username_0: I am using jmeter 3.3 and groovy and have a IF CONDITION which filters according to the response code.
here is what I am doing and it works:
```
${__jexl3(${code} != 000)}
```
Now I want to add an AND logic to this condition or an OR logic
for instance doing this:
```
${__jexl3(${code}... |
2018/03/22 | 2,980 | 9,868 | <issue_start>username_0: I'm currently learning Spark and I came across a problem that says give two text file find the books with a text review of more than 100 words and filter the results to only show the category of horror.
Here is an example of my two text files.
**BookInformation.data:**
Within this data fil... |
2018/03/22 | 1,564 | 5,666 | <issue_start>username_0: Hi I'm reviewing one sample in react redux and in action file I'm seeing this function
```
function login(email, password) {
return dispatch => {
dispatch(request({ email }));
userService.login(email, password)
.then(
data => {
... |
2018/03/22 | 1,919 | 5,998 | <issue_start>username_0: I have two dataframes, and I want to do a lookup much like a Vlookup in excel.
```
df_orig.head()
A
0 3
1 4
2 6
3 7
4 8
df_new
Combined Length Group_name
0 [8, 9, 112, 114, 134, 135] 6 Group 1
1 [15, 16, 17, 18, 19, 20] 6 ... |
2018/03/22 | 1,787 | 6,462 | <issue_start>username_0: I'm trying to write a program that checks if a circle contains another circle, if a certain point is inside a circle, or the one I'm having trouble with, if a circle overlaps with another circle.
```
import javafx.scene.shape.Circle;
public class Problem10_11 {
public static void main(Stri... |
2018/03/22 | 4,944 | 14,415 | <issue_start>username_0: How do I initialize weights and biases of a network (via e.g. He or Xavier initialization)?<issue_comment>username_1: Single layer
============
To initialize the weights of a single layer, use a function from [`torch.nn.init`](https://pytorch.org/docs/master/nn.init.html). For instance:
```
c... |
2018/03/22 | 1,114 | 4,066 | <issue_start>username_0: I have a WordPress site and there is Contact form 7 plugin and I want to add attr to submit button to disable double submission.
Now I have this code to prevent double submission
```
$(document).on('click', '.wpcf7-submit', function(e){
if( $('.ajax-loader').hasClass('is-active') )... |
2018/03/22 | 618 | 1,832 | <issue_start>username_0: I've downloaded the last Unity (2018.1) and changed the scripting runtime version to 4.x.
But I can't find which System.Data.dll I should include in my project (I need it for my System.Data.SQLite library).
If I check in Unity's folders There are a lot of folders in MonoBleedingEdge/lib/mono... |
2018/03/22 | 240 | 943 | <issue_start>username_0: I got this layout in my app:
```
```
Now my Problem is, that the textfield between the plus and the minus button is dynamically set. So sometimes it is empty and sometimes there is content in it. Same goes for the price on the right side. Sometimes it is a longer string sometimes shorter. No... |
2018/03/22 | 926 | 3,406 | <issue_start>username_0: I am using swagger hub to [create this API](https://app.swaggerhub.com/apis/PHP-Point-Of-Sale/PHP-Point-Of-Sale/1.0); but it doesn't support multi files in the UI so I am unsure if I am doing this right
My goal is to have the following
```
item:{Json describe the item}
images[] = images for i... |
2018/03/22 | 674 | 2,429 | <issue_start>username_0: I am testing an application in browser and I need to check if the website is using `jquery` or `angularJs` or `angular`
For `jQuery` I can check for `$` function and for `angularJs` I can check for `window.angular` function. But is there anything similar for `angular 2/4/5` to check if its a `... |
2018/03/22 | 1,371 | 4,198 | <issue_start>username_0: After learning how to setup a environment with html, js, ajax, php and mysql I'm able to insert single instances into a table.
I'm trying to get it working with multiple entries into the table for quite a while now. I was reading several documentation pages and recommendations on here but coul... |
2018/03/22 | 931 | 2,492 | <issue_start>username_0: I'm trying to deploy a locally written OpenFaaS function to Minishift. My YAML file is:
```
provider:
name: faas
gateway: http://gateway-openfaas.10.10.80.33.nip.io
functions:
test:
lang: python
handler: ./test
image: 172.30.1.1:5000/test
```
172.30.1.1:5000 is the result of ca... |
2018/03/22 | 493 | 1,742 | <issue_start>username_0: I am using Hibernate 5.2.14 through Spring Boot 2.0 with MySQL 5.7.20.
I am letting Hibernate generate my Schema (`ddl-auto=update`, I am aware to only use this during development phase) and I am unable to make Hibernate generate a `TIMESTAMP` column in the Schema. Things I have tried (in Kotli... |
2018/03/22 | 1,381 | 3,756 | <issue_start>username_0: I have a pandas data frame counted and grouped by specific columns.
```
import pandas as pd
df = pd.DataFrame({'x':list('aaabbbbbccccc'),'y':list('2225555577777'), 'z':list('1312223224432')})
#
df.groupby(['x','y','z'])['z'].count()
# or
df.groupby(['x','y','z'])['z'].agg(['count'])
# or
df.gr... |
2018/03/22 | 1,384 | 4,081 | <issue_start>username_0: [enter image description here](https://i.stack.imgur.com/pCoKR.png)
I have two tables :
1. UserInfo
2. Skill
and the join table between them called `UserSkill` as you can see at the
right part of the diagram.
I want to know whoever knows or is skillful in Java, what else he is skillful at.... |
2018/03/22 | 469 | 2,144 | <issue_start>username_0: I've got a stateful service running in a Service Fabric cluster that I now know fails to honor a cancellation token passed into it. My fault.
I'm ready to release the fix, but during the upgrade process, I'm expecting the service replica on the faulty primary node to get stuck since it won't h... |
2018/03/22 | 990 | 3,296 | <issue_start>username_0: I have an array:
```
["apple", "banana", "animal", "car", "angel"]
```
I want to push elements that start with `"a"` into separate arrays. I want to return:
```
["apple"], ["animal"], ["angel"]
```
I have only been able to make it work if I push them into an empty array that I pre-created... |
2018/03/22 | 586 | 2,499 | <issue_start>username_0: I'm creating periodic snapshots of my EBS volume using a Scheduled Cron expression rule (thanks, [<NAME>](https://stackoverflow.com/users/628267/john-c)).
My data is all *binary,* and I suspect that the automatic compression AWS performs on my data - will actually *enlarge* the resulting snaps... |
2018/03/22 | 1,131 | 3,887 | <issue_start>username_0: I have a procedure, that in theory, should be skipping whitespace using a look\_ahead loop. Problem is, it's not working, if there's any whitespace in the input file, it is adding it to the array of records. I think my logic is correct, but could use another pair of eyes to let me know what I'm... |
2018/03/22 | 937 | 3,220 | <issue_start>username_0: i want to get all the users with there Iteration in a project.
Lets say Project 'Precient' has 9 distinct users with 20 iteration so i want distinct users with all the Iteration in the project `WIQL C#`.it's related to the Question.
[WIQL query to get all the team and the users in a Project?](h... |
2018/03/22 | 723 | 2,541 | <issue_start>username_0: The title sums it up pretty much.
I want to do it via the console using the `bundler. There are several changes on the way rails has handled things such as the frontend. More details over [here](https://naildrivin5.com/blog/2016/05/17/announcing-rails-6-an-imagined-roadmap.html).
Will I hav... |
2018/03/22 | 682 | 2,755 | <issue_start>username_0: I've made a function that calls on the FireBase database and will return a MutableList. However, when I try to make it return on a specific line, it says it requires a Unit instead of the MutableList.
```
fun firebaseCollect(key: String): MutableList {
var ref = FirebaseDatabase.getInstance(... |
2018/03/22 | 665 | 2,274 | <issue_start>username_0: I know a similar question has been asked/answered several times. But please do read on ..
I am trying to create a Class from a string value as described in "[Convert string to Python Class Object](https://stackoverflow.com/questions/1176136/convert-string-to-python-class-object)" in Python 3.... |
2018/03/22 | 515 | 1,813 | <issue_start>username_0: I go to a View, submit data via POST, but the redirect cannot find the Controller method. What am I doing wrong here? After submitting the form I get:
```
404 error: cannot find page. URL is: http://localhost:52008/InternalController/UpdateCardFormPost
```
Snippet from InternalController.cs... |
2018/03/22 | 2,181 | 6,856 | <issue_start>username_0: I've got a batch file that I use to restore databases. These are `.bak` files created by other people outside our department, and the database names are predictably unpredictable, as they are usually named for our various customers.
```
SET servername=XXXXXX
SET mssqldir=C:\Program Files\Micro... |
2018/03/22 | 1,152 | 3,828 | <issue_start>username_0: I want to create an array that has incremental random steps, I've used this simple code.
```
t_inici=(0:10*rand:100);
```
The problem is that the random number keeps unchangable between steps. Is there any simple way to change the seed of the random number within each step?<issue_comment>use... |
2018/03/22 | 1,140 | 4,577 | <issue_start>username_0: I've tried using MassTransit to publish a message to a topic named `events` in an Azure Service Bus. I have problems configuring MassTransit to use my predefined topic `events`, instead it creates a new topic named by the namespace/classname for the message type. So I wonder how to specify whic... |
2018/03/22 | 1,248 | 3,997 | <issue_start>username_0: I want to retrieve different categories from a news website. I am using BeautifulSoup to get title of articles from right side. How can I loop to various categories available on the left side of the website? I just started learning this kind of code so much behind understanding how it works. An... |
2018/03/22 | 1,014 | 3,811 | <issue_start>username_0: Given the following:
```
interface Component {}
interface Composite {
getChildren(): component[];
}
class StackSegment implements Component {}
class Stack implements Composite {
getChildren(): StackSegment[] {
return new Array();
}
}
```
Why does the following cause a compiler error?
... |
2018/03/22 | 1,277 | 4,442 | <issue_start>username_0: I've read this question [Load data from txt with pandas](https://stackoverflow.com/questions/21546739/load-data-from-txt-with-pandas). However, my data format is a little bit different. Here is the example of the data:
```
product/productId: B003AI2VGA
review/userId: A141HP4LYPWMSR
review/prof... |
2018/03/22 | 831 | 3,051 | <issue_start>username_0: I have a search bar that passes data to the server. I am taking the sentence sent and breaking it into individual words.
I am then comparing a column against each word in the sentence.
```
$term = filter_var($input['term'], FILTER_SANITIZE_STRING);
$terms = explode(" ", $term);
$size = sizeof... |
2018/03/22 | 1,990 | 5,149 | <issue_start>username_0: Let's say I have a tibble.
```
library(tidyverse)
tib <- as.tibble(list(record = c(1:10),
gender = as.factor(sample(c("M", "F"), 10, replace = TRUE)),
like_product = as.factor(sample(1:5, 10, replace = TRUE)))
tib
# A tibble: 10 x 3
record... |
2018/03/22 | 774 | 2,245 | <issue_start>username_0: Same configuration is working with window 10. but when i tried same configuration run with ubuntu, its showing an error.
[error message while running with jenkins](https://i.stack.imgur.com/HpkVi.png)<issue_comment>username_1: An alternative to `model.matrix` is using the package `recipes`. Th... |
2018/03/22 | 789 | 2,815 | <issue_start>username_0: I want to link glfw and glew to my project for graphics programming.
Adding glfw was pretty straight forward, I followed the instructions on their website. Creating a window with glfw worked perfectly.
However, I can't see what's wrong with my CMakeLists.txt for adding GLEW. The program gives... |
2018/03/22 | 509 | 1,937 | <issue_start>username_0: We would like to work with the datagrid but we have an issue with the buttons in all our site.
Once Clarity is installed it is not possible anymore to make small square buttons.
In a kind of way the minimum width of every buttons seems to be overidden by something in your system.
Is there a wa... |
2018/03/22 | 409 | 1,155 | <issue_start>username_0: Hi I'm am creating 3 webApi's a GateWay and I'm using docker in visualStudio0217 (.netCore).
The projects compile fine and I see the images were created.
[](https://i.stack.imgur.com/GSvWZ.png)
But whe I try to go to the Url'... |
2018/03/22 | 564 | 2,084 | <issue_start>username_0: I want to add a product short description by default whenever is the new product is being created. All the products will have the same short description, so there is no point keep copying and pasting it. So it should just be there when I click on the add a new product.
I would appreciate any h... |
2018/03/22 | 988 | 4,034 | <issue_start>username_0: Back in Xcode 9, there was a build option called "Clean Build Folder..." (`⌥``⇧``⌘``K`), which deleted all files in the build folder, only leaving the folder behind with no contents. Since then, this behavior was removed, the menu item's title changed to "Clean Build Folder", and now behaving l... |
2018/03/22 | 2,026 | 7,028 | <issue_start>username_0: I am trying to read a txt file that is nested within a parent zip file. The folder structure is like below:
**Parent Zip File:** `ParentFile.zip`
**Contents:** `ParentFolder/Subfolder1/Subfolder2/File1.zip`
`File1.zip` contains `File1.txt` which I am trying to read in memory. I checked the d... |
2018/03/22 | 384 | 1,379 | <issue_start>username_0: I'm not sure but after setting a value in struct I'm getting nil when trying to read the variable:
```
struct MainStruct : Decodable{
var array : [InternalArray]?
}
struct InternalArray : Decodable{
var firstName : String?
var lastName : String?
var Number : Int?
}
var testin... |
2018/03/22 | 564 | 1,876 | <issue_start>username_0: I have some terrible data that I need to turn into something that means something. I realise this isn't the best way to show I haven't used StackOverflow in ages and I am not sure on syntax.
I have tried to write some queries but really I am not sure where to start on this sort of query so any... |
2018/03/22 | 1,106 | 3,744 | <issue_start>username_0: [View Grades Page Example](https://i.stack.imgur.com/5NeRx.jpg)
So as the title suggests, I have a problem with PHP and AJAX giving me repeating rows. I just want to display the total no. of units and the gpa but for every subject there is, it adds an extra row
AJAX:
```
$.ajax({
tradit... |
2018/03/22 | 962 | 3,412 | <issue_start>username_0: What type of event should I set the `setEndpointState` method of this component to. I tried setting it to `React.FormEvent` but then I get a type error in the setState function saying that I am missing props `name`, `hostname` and `description`. Is the type of the event wrong or is there a way ... |
2018/03/22 | 1,336 | 6,215 | <issue_start>username_0: I have a g suites account and applications associated with my e-mails. I was looking at the Laravel mail functions but I do not see any option to log in to gmail smtp with xoauth auth type.
I was using PHPMailer with codeigniter and I had to use clientId, clientSecret and refreshToken to send ... |
2018/03/22 | 499 | 1,694 | <issue_start>username_0: I'm switching from Jquery AJAX to react-dropzone & Axios, I'd like to upload a file to my Django server, I have no issue posting a blob url of the image on the server but I want to get it under `request.FILES` but I am getting an empty queryset.
```
request.FILES : <!--- empty
request.POST : ... |
2018/03/22 | 1,187 | 3,734 | <issue_start>username_0: The problem is that each time I click on the button in my app, then whenever one of my `EditText` or both are empty, the app will crash.
The idea is that I will write the calories in the `EditText` called caloriesIn and it will put out an `int` in the `caloriesOut` which is a textfield.
The s... |
2018/03/22 | 1,054 | 2,975 | <issue_start>username_0: I have the following square DataFrame:
```
In [104]: d
Out[104]:
a b c d e
a inf 5.909091 8.636364 7.272727 4.454545
b 7.222222 inf 8.666667 7.666667 1.777778
c 15.833333 13.000000 inf 9.166667 14.666667
d... |
2018/03/22 | 472 | 1,290 | <issue_start>username_0: My PC is running Ubuntu 17.10 and has GTK+ 3.22.
When compiled from this environment the binaries cannot be run under Ubuntu 16.04 since the only GTK+ 3.18 is compatible with Ubuntu 16.04. How do I compile for a lower GTK runtime level?<issue_comment>username_1: Here is my solution, which I'm ... |