date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/14 | 722 | 2,592 | <issue_start>username_0: So for various reasons (such as its language-independence) I want to use tensorflow's [saved\_model](https://www.tensorflow.org/programmers_guide/saved_model#apis_to_build_and_load_a_savedmodel) API for saving/loading models. I can save everything (and restore it successfully) with a call to `b... |
2018/03/14 | 517 | 1,754 | <issue_start>username_0: I am new to unittest and still understanding how things work. If I have a list of dictionaries...eg:
```
mylist = [{"y": "xval", "v": "x1val"},
{"y": "yval", "v": "y1val"},
{"y": "zval", "v": "z1val"}]
```
What sort of assertion/test would I perform to validate that the ... |
2018/03/14 | 548 | 1,964 | <issue_start>username_0: Tried different variations but couldn't found one that would be aplicable for my requirements. I need regex for the following case:
`someString.someString.someString`
This pattern (`'someString.'`) can repeat any amount of time but the dot should not be at the end. More over, spaces and any s... |
2018/03/14 | 472 | 1,773 | <issue_start>username_0: I'm trying to code an app that can pick the color from a picture selected from a gallery. When coding one of the overrides, I got this message.
```
Incompatible types.
Required: java.lang.String[]
Found: java.lang.String
```
The code is as follows:
```
@Override
protected void onActivity... |
2018/03/14 | 1,092 | 3,250 | <issue_start>username_0: I would like to draw a rotated rectangle I've got the top left point and bottom right point, width and height of box. As well as the angle. But I can't seem work out how you draw the rotated rectangle using OpenCV in **Python**. Please note that I do not want to rotate the image.
Thanks<issue... |
2018/03/14 | 1,887 | 5,877 | <issue_start>username_0: The goal of the exercise is to calculate a complex number Z according to some formula and create an array of n such complex numbers. Here's the function that calculates Z
```
double complex convert(double R, int p)
{
double complex Z=0+0*I;
double complex A, B, C;
... |
2018/03/14 | 2,097 | 7,139 | <issue_start>username_0: I am trying to write a menu driven program in java language to calculate the cost of attendance for various types of students at this specific university. I am running into problems with my output, when I run my program none of my cases execute upon entering the according letter. If there are a... |
2018/03/14 | 656 | 2,385 | <issue_start>username_0: I'm trying to add subject to a teacher's workload. I have a validation before inserting the user input to my workload table, mostly for detecting schedule conflict.
Now, what I want is to retain the selected value of the user and display it again after the validation fails. So that the user do... |
2018/03/14 | 674 | 2,132 | <issue_start>username_0: I have a dataframe I'm working with that has a large number of columns, and I'm trying to format them as efficiently as possible. I have a bunch of columns that all end in .pct that need to be formatted as percentages, some that end in .cost that need to be formatted as currency, etc.
I know I... |
2018/03/14 | 3,232 | 10,683 | <issue_start>username_0: I'm trying to create an application using Qt3D that where I can create multiple view windows on the same scene. I started with the code from the Qt3DWindow and the [Simple C++ Example](https://doc.qt.io/qt-5.10/qt3d-simple-cpp-example.html) and started moving things around. What I figured is th... |
2018/03/14 | 596 | 2,329 | <issue_start>username_0: I have a Function invokes a command that starts a new ps session on a remote server. The invoke command has an Exit clause however this is not exiting?
```
Function CreateID{
Invoke-Command -Session $Script:sesh -ScriptBlock{
Set-Location c:\
Import-Module ActiveDirectory
Try
... |
2018/03/14 | 450 | 1,680 | <issue_start>username_0: I am hiding a `div` when user hover over one of the menu element. I am using this code for this purpose
```
jQuery("#menu-item-15").hover(function(){
jQuery(".bootom-menu").css("display", "none");
});
```
But i want to display `bootom-menu div` when user will not be hovering (un-hover) over... |
2018/03/14 | 1,476 | 3,702 | <issue_start>username_0: I'm trying to sort an array of objects by descending and beginning with number first, here's what I'm having:
```
var users = [
{ 'user': 'fred', 'a': 48 },
{ 'user': 'barney', 'a': 'b' },
{ 'user': 'fred', 'a': 40 },
{ 'user': 'barney', 'a': 'c' }
];
_.orderBy(users, 'a', 'desc');... |
2018/03/14 | 1,324 | 4,644 | <issue_start>username_0: I write desktop application that works with map,
and I want to react on pan and long press events.
It is possible to use `QGestureEvent` on Qt/Linux/X11 with ordinary mouse?
I took [Qt gesture example](http://doc.qt.io/qt-5/qtwidgets-gestures-imagegestures-example.html), it works on tablet,
bu... |
2018/03/14 | 170 | 734 | <issue_start>username_0: I am getting below error when i try to open solution in Visual Studio.
"Creation of the virtual directory <http://localhost://1111> failed with the error: Object reference not set to an instance of an object"
However, same project loads fine, inside other solution file. Not sure what I am mis... |
2018/03/14 | 162 | 703 | <issue_start>username_0: I have a 3D scene with an infinite horizontal plane (parallel to the xz coordinates) at a height H along the Y vertical axis.
I would like to know how to determine the intersection between the axis of my camera and this plane.
The camera is defined by a view-matrix and a projection-matrix.<is... |
2018/03/14 | 626 | 2,439 | <issue_start>username_0: I've got an angular page where I query a webservice and then do a bunch of processing on the data and end up with say 100 names. On the HTML page I'm just showing the number 100, but if I click on that I want to go to a **new page** where I display all 100 actual names. Obviously that's too muc... |
2018/03/14 | 900 | 2,155 | <issue_start>username_0: I have a list of lists called `my_list_of_lists`, from which I want to select a certain number of elements.
* from element 1 of `my_list_of_lists`, I want to select 1 element at random
* from element 2 of `my_list_of_lists`, I want to select 1 element at random
* from element 3 of `my_list_of... |
2018/03/14 | 1,587 | 4,040 | <issue_start>username_0: So I am trying to write a function which has a generic which extends a certain object thus constrains it. Next I would like to use this generic together with a definition of a parameter to generate a new "enhanced" parameter.
This is all good but as soon as I want to introduce a default value ... |
2018/03/14 | 875 | 2,625 | <issue_start>username_0: I have a text file with random words in it. i want to find out which words have maximum occurrence as a pair('hi,hello' OR 'Good,Bye').
Simple.txt
```
hi there. hello this a dummy file. hello world. you did good job. bye for now.
```
I have written this command to get the count for each wor... |
2018/03/14 | 1,071 | 3,014 | <issue_start>username_0: I am trying to left join two data sets based on a four digit code in each. One data set has the codes filled in to varying degrees (2,3, or all 4 digits) with trailing zeroes as needed.
The other data set has the codes completed to all four digits.
If the last two digits of CodeA are 00 the... |
2018/03/14 | 1,217 | 4,581 | <issue_start>username_0: I've created a function that attempts to return a `SubForm` data type. This function is used by various parent `Forms`.
The function looks like this:
```
Public Function mySubFrm(name As String, subformName As String) As SubForm
Dim frm As Form
Dim subFrm As SubForm
Set frm = Fo... |
2018/03/14 | 693 | 2,420 | <issue_start>username_0: I'm attempting to add parsing validation tests and wanted to check that the initial JSON I was sent could be turned into an object and that object in turn turned into JSON. In the end the validation would be that both dictionaries are equal. What I'm seeing however is that, while date parsing w... |
2018/03/14 | 365 | 1,336 | <issue_start>username_0: Is it possible to upload jar as a file into database ? I need to upload jars into mongodb. I don't know how to do that. I know about file upload with Spring Boot.
I know it is possible to upload zip in database. But not finding information about JAR/WAR files.<issue_comment>username_1: JAR and... |
2018/03/14 | 418 | 1,171 | <issue_start>username_0: I have a textfile that is ~ 10k lines long. There are always 216 lines describe a fact with a total of 17 values. I want to build a tensor that is 216 lines high, 13 columns wide and about 1000 layers deep. That would be the input.
The output would be one line high, 4 columns wide and also abo... |
2018/03/14 | 1,550 | 5,650 | <issue_start>username_0: I am developing REST API using nodeJS, express, mongoose etc with mongodb. I am uploading file and saving it to a folder using multer. Now I want to save the path of the file to a mongodb document.
However, I am saving data to mongodb using mongoose schema. First I created the model. When a po... |
2018/03/14 | 400 | 1,643 | <issue_start>username_0: How do I get otherImages to return the string in it so that I can replace a word within it when called from 'narrow' method?
```
def otherImages(self):
self.wfile.write(bytes("[](/narrow)", "utf8"))
... |
2018/03/14 | 527 | 2,418 | <issue_start>username_0: Is it possible to transfer virtual environment data from a local host to a docker image via the ADD command?
Rather than doing pip installs inside the container, I would rather the user have all of that done locally and simply transfer the virtual environment into the container. Granted all o... |
2018/03/14 | 546 | 2,287 | <issue_start>username_0: I was scratching my head when i was trying to find some sample code for designing an inline editing form input component in Angular 5. I ran accross the following lines:
```
public onChange: any = Function.prototype;
public onTouched: any = Function.prototype;
```
My question is: What do t... |
2018/03/14 | 4,299 | 14,987 | <issue_start>username_0: I would like to know why this query takes is slow (about 10 to 20 seconds), the three tables used have 500,000 records, this is the query:
```
SELECT *, 'rg_egresos' AS nombre_tabla
FROM rg_detallexml DE
INNER JOIN rg_egresos EG
INNER JOIN rg_emisor EM ON DE.idContador = EG.id... |
2018/03/14 | 1,790 | 5,687 | <issue_start>username_0: I'm trying to evaluate an equation randomly generated by the system where the two integers are stored in an array and the operator is in a separate string array. I want to compare the answer with the user's answer.
here is my code:
```
Integer[] array;
String[] operators = {"+", "-", "*", "/"}... |
2018/03/14 | 827 | 3,444 | <issue_start>username_0: I have a Java program in IntelliJ which has a pom.xml and uses Maven. The packages were downloaded and currently they are found by IntelliJ.
I'm a little confused though because the Maven repository is not part of the CLASSPATH as far as I can tell. So does IntelliJ just do a bit of magic wher... |
2018/03/14 | 868 | 2,221 | <issue_start>username_0: I have a `DataFrame` like this:
```
A B
----------
c d
e f
```
I'd like to introduce a third column, made up of a concatenation of `A`, `B` and the index, so that the `DataFrame` becomes:
```
A B C
---------------
c d cd0
e f ef1
```
I'd like to do that like s... |
2018/03/14 | 434 | 1,458 | <issue_start>username_0: I'd like to be able to run my detox tests and my Jest unit tests separately. For example, run detox tests with `detox build && detox test`, and my Jest unit tests with `npm test`.
After implementing detox (using mocha as the test runner), running `npm test` results in immediate error, and look... |
2018/03/14 | 1,655 | 6,304 | <issue_start>username_0: Can I require classes implementing an interface to have a certain static field or method and access/invoke that field or method through a generic type argument?
I have an interface, `Arithmetical`, which specifies several functions like `T plus(T o)` and `T times(T o)`. I have as well a `Vecto... |
2018/03/14 | 469 | 1,639 | <issue_start>username_0: I'm trying to perform a simple operation: take a file and put "> " at the front of every line. However, when I try to use Visual Studio Code to do it, the regular expression "^" doesn't match all the lines. In particular, it matches:
* blank lines
* lines starting with "-", "{" or " "
but not
... |
2018/03/14 | 893 | 2,772 | <issue_start>username_0: I am doing an assignment for Powershell and one of the functions is to say when the last boot was. I am printing date and 'time since', date works fine but I think there is too much code for displaying the 'time since'. I want the first value to not be zero. Like this:
>
> 1 Hour, 0 Minutes,... |
2018/03/14 | 388 | 1,244 | <issue_start>username_0: I have an object (in real code there is more values inside):
req.session.params = {valueA: a, valueB: b, result: result}
I would like to pass its pairs to res.render() along the others. For now I'm doing:
```
res.render('mainView.ejs', {
otherVal: x,
valueA: a,
value... |
2018/03/14 | 576 | 2,167 | <issue_start>username_0: I have a tableview definition in which I am attempting to invoke an UIAlertController popup. I installed a button in the prototype tableView cell, when the button is touched, an IBAction handles the event. The problem is that the compiler won't let me.
```
present(alertController, animated: t... |
2018/03/14 | 1,332 | 4,480 | <issue_start>username_0: So for some time now I am trying to make a proper shuffle script, using the youtube api, in order to play my youtube playlist.
I've found a lot of examples, but none of them seem to be working very well. Some do shuffle the list but not the first song being played, and some do the precise oppos... |
2018/03/14 | 662 | 2,550 | <issue_start>username_0: Whenever I make a code change in the Android Studio (version 3.0.1) I need to clean before I build in order for that change to take effect. Making a change and hitting the green arrow build/run button looks like it builds but the new changes are not incorporated unless the project is cleaned be... |
2018/03/14 | 757 | 2,679 | <issue_start>username_0: How do you call fat arrow function like below (stored in string) without using eval?
```
"g => { alert(g); }"
```
With using eval, the below code is working fine, but I want to avoid using eval.
```
eval("g => { alert(g); }")('hello')
```
I hope I could do something like below using "new... |
2018/03/14 | 744 | 2,758 | <issue_start>username_0: I am able to implement the filter on input field with the pipe. But I am not able to do so with checkbox filter.
Below is my code for input filter.
```
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'filter'
})
export class FilterPipe implements PipeTransform {
t... |
2018/03/14 | 1,083 | 3,562 | <issue_start>username_0: I have already read and tried a lot posts on SO, but no one has solved this issue.
I set to enviroment variables for JDK and JRE release. I have add the same values within both sections "user's variables for USER" and "system variables". The variables that I have added is: `JAVA_HOME->C:\PROGR... |
2018/03/14 | 1,175 | 4,250 | <issue_start>username_0: I'm a newbie in android world, when I try to get data from the database, I meet this error, bellow is my database access code
```
public static boolean Checkduplicate(String activity_name, String location, String date) {
SQLiteDatabase dtb = ActivityHandler.db;
String Query = "Select ... |
2018/03/14 | 174 | 724 | <issue_start>username_0: In Android Studio 3.0.1 I tried to go to Build > Select Build Variant but the option "Select Build Variant" was greyed out. How do I access this menu option?<issue_comment>username_1: I found that the "Select Build Variant" menu item became available as long as I wasn't viewing the project-leve... |
2018/03/14 | 1,827 | 5,879 | <issue_start>username_0: I'm wanting to write a function that will (hopefully) work in the raster calculator in the `raster` package. What I'm trying to do is regress each cell value against a vector of Time. There are multiple examples of this, but what I would like to do is for the method to try 1 type of regression ... |
2018/03/14 | 639 | 2,240 | <issue_start>username_0: so i keep getting this error on my live server but not on my local host, everything works normal on my localhost but when i deploy my website on online server it keep giving me this error
>
> file\_put\_contents(C:\appname\storage\framework\views/27f511f5644086daa68b2cf835bf49f5148aba43.php)... |
2018/03/14 | 1,253 | 4,047 | <issue_start>username_0: I am creating a data provider class that will hold data, perform transformations and make it available to other classes.
If the user creates and instance of this class and passes some data at instantiation, I would like to store it twice: once for all transformations and once as a copy of the ... |
2018/03/14 | 715 | 3,319 | <issue_start>username_0: I have a piece of code below which on the click of a button will promt the user to select a .csv file from their storeage. After this the file will populate the the datagridview with its contents.
```
public void button1_Click(object sender, EventArgs e)
{
string deli... |
2018/03/14 | 399 | 1,429 | <issue_start>username_0: In Ruby, you can do this:
```
prc = lambda{|x, y=42, *other|}
prc.parameters #=> [[:req, :x], [:opt, :y], [:rest, :other]]
```
In particular, I'm interested in being able to get the names of the parameters which are `x` and `y` in the above example.
In Crystal, I have the following situati... |
2018/03/14 | 2,582 | 8,029 | <issue_start>username_0: I try to build a solution stored in an external GIT-Repository on Visual Studio Online.
It has the following steps:
>
> 1: Git Restore - Works
>
>
> 2: NuGet Restore - Works
>
>
> 3: Build - Does NOT work
>
>
>
My first guess when looking at the logs is that MsBuild is not looking fo... |
2018/03/14 | 1,977 | 6,134 | <issue_start>username_0: I have this code which just Mnist tesorflow example and I would to do get the prediction for test data
```
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# Imports
import numpy as np
import tensorflow as tf
tf.logging.set_verbosit... |
2018/03/14 | 706 | 1,907 | <issue_start>username_0: I have a dataset that includes a column called BirthYear that includes lots of years in which people were born and I need to create a new column that prints "young" if their BirthYear is > 1993 and to print "old" if their BirthYear is < 1993. I've tried using the if function but I cant seem to ... |
2018/03/14 | 1,036 | 3,832 | <issue_start>username_0: This is my component:
```
import { Component, OnInit, ContentChildren, QueryList } from '@angular/core';
import { IconBoxComponent } from '../icon-box/icon-box.component';
@Component({
selector: 'app-three-icon-box',
templateUrl: './three-icon-box.component.html',
styleUrls: ['./three-i... |
2018/03/14 | 543 | 2,144 | <issue_start>username_0: I wrote react native application. The application is simple, more informational, it is used by Redux, Saga, several linked npm packages. The app runs in normal mode, not full-screen. The structure of the application was built on the basis of Ignite.
The problem is that on the phone (Samsung No... |
2018/03/14 | 511 | 1,573 | <issue_start>username_0: I am trying to access DB2 tables in a java project. I am able to access the tables when I manually added the jar files - `db2jcc4.jar` and `db2jcc_license_cisuz.jar`. No issues in accessing the tables.
But when I try to add these jar files through Maven, they won't add to the project.
```
c... |
2018/03/14 | 1,311 | 5,033 | <issue_start>username_0: Thanks firstly for bearing with me as a relative newcomer to the world of Python. I'm working on a simple set of code and have been racking my brain to understand where I am going wrong. I suspect it is a relatively simple thing to correct but all searches so far have been fruitless. If this ha... |
2018/03/14 | 2,009 | 6,732 | <issue_start>username_0: Scenario: I am getting the data of companies name, address, city and contact from a flat file imported into SQL Server.
I am trying to import this data into a platform that only accepts unique company names. Let's look at an example of the flat data:
```
CompanyName City Address ... |
2018/03/14 | 1,251 | 4,034 | <issue_start>username_0: Is there a way to print a dictionary into a text? I have a dictionary with 100+ keys and would like to print it into a tab delimited text file if possible. This seems so simple but I cannot figure it out--i.e. I am new VBA user.
```
'Defining text file variable
Dim FilePath As String
'Text fi... |
2018/03/14 | 639 | 1,962 | <issue_start>username_0: the data that I am ingesting in my R script are full of white spaces (the bane of my existance). Thus far I have been using trimws within my functions so that my joins return true results. I am wondering if it is possible trim the white space in all columns and all data frames that I have store... |
2018/03/14 | 1,067 | 3,423 | <issue_start>username_0: Edit: I have found a way to work with CompareTo to help with this problem, but for some reason I cannot get the count down to work.
It's a negative number that needs to get more negative to meet the requirements, but I am missing something here. When I execute the down section it closes the p... |
2018/03/14 | 840 | 2,593 | <issue_start>username_0: I am working for the first time with dask and trying to run predict() from a trained keras model.
If I dont use dask, the function works fine (i.e. pd.DataFrame() versus dd.DataFrame () ). With Dask the error is below. Is this not a common use case (aside from scoring a groupby perhaps)
```py... |
2018/03/14 | 428 | 1,117 | <issue_start>username_0: I been trying to filter the results for std away from the mean in the most efficient manner
DF
```
Cashier# Store Sales_ct Refunds_ct
001 001 100 10
002 001 200 9
003 001 900 8
004 002 200 10
005 002 400 9
006 002 2... |
2018/03/14 | 999 | 3,545 | <issue_start>username_0: I have some order data that is in JSON format that I would like to populate a custom object with. Looking at JSON.net documentation it appears I can use [LINQ to JSON](https://www.newtonsoft.com/json/help/html/DeserializeWithLinq.htm) to deserializec JSON to a .NET type. My question is can you ... |
2018/03/14 | 1,028 | 3,585 | <issue_start>username_0: So I have a SQL query that I would like to convert to LINQ.
Here is said query:
```
SELECT *
FROM DatabaseA.SchemaA.TableA ta
LEFT OUTER JOIN DatabaseA.SchemaA.TableB tb
ON tb.ShipId = ta.ShipId
INNER JOIN DatabaseA.SchemaA.TableC tc
ON tc.PostageId= tb.PostageId
WHERE tc.Post... |
2018/03/14 | 1,277 | 4,513 | <issue_start>username_0: I'm hoping this is a simple question, since I've never done shell scripting before. I'm trying to filter certain files out of a list of results. While the script executes and prints out a list of files, it's not filtering out the ones I don't want. Thanks for any help you can provide!
```
#!/b... |
2018/03/14 | 727 | 2,850 | <issue_start>username_0: Why python code dose not seem to want to run and i have tried everything on IDLE it says "RESTART" and then the file name and on PyCharm it said's "Process finished with exit code 0" so i have no idea what I've done wrong.
I would also like to add that if there is something stupid I've missed ... |
2018/03/14 | 1,671 | 5,828 | <issue_start>username_0: I am trying to receive sensor data from Arduino and write the readings into a file using Processing IDE (using serial communication / USB).
After doing a large amount of tests, I am pretty sure it's the Processing side unable to process the data. **Only the first few (< 100) "samples" are writ... |
2018/03/14 | 354 | 1,304 | <issue_start>username_0: When I try to run a functional test on Symfony 4, I get this:
```
The routing file "{__PATH__}config/routes/admin.yaml" contains unsupported keys for "admin_home": "controller". Expected one of: "resource", "type", "prefix", "path", "host", "schemes", "methods", "defaults", "requirements", "op... |
2018/03/14 | 2,251 | 8,490 | <issue_start>username_0: In a component, we use a ngrx selector to retrieve different parts of the state.
```
public isListLoading$ = this.store.select(fromStore.getLoading);
public users$ = this.store.select(fromStore.getUsers);
```
the `fromStore.method` is created using ngrx `createSelector` method. For example:
... |
2018/03/14 | 292 | 1,058 | <issue_start>username_0: When I run the command `rails new app-path -d postgresql --skip-test`, what does it call my app?
Or is it just the path I put it in?<issue_comment>username_1: If you run `rails new foo/bar/baz`, the new app will be created inside of `foo/bar/baz` and will be named after the last segment of the... |
2018/03/14 | 2,533 | 4,931 | <issue_start>username_0: I want to know if it is possible to rewrite `A` as a Ramda pipe where `D` waits on `C` without passing the result of `C` into `D`:
```
const A = async payload => {
const resultB = await B(payload);
const resultC = await C(resultB);
const resultD = await D(resultB);
return resul... |
2018/03/14 | 975 | 3,182 | <issue_start>username_0: is it possible to call a function using a variable as the name for a variable?
Example:
```
def my_method(foo="bar"):
print(foo)
var = "foo='baz'"
my_method(var)
>>> baz
```
Now, I can't figure out a way to do this kind of thing (substitute the value in a variable for a variable name). ... |
2018/03/14 | 305 | 1,119 | <issue_start>username_0: is there anyway to customize the search-bar element that NativeScript provides ?
and add some buttons in it.
am trying to get something like this (the search-bar in this app)
[](https://i.stack.imgur.com/ZlO0p.png)
I've been... |
2018/03/14 | 1,236 | 3,421 | <issue_start>username_0: I'm trying to delete comments from file but what's important I want to leave specific strings:
```
## Something
# START
# END
```
These has to stay with rest not commented lines and I want to remove rest with "d" - this is important. I don't want to use print negation or other tricks because... |
2018/03/14 | 540 | 1,520 | <issue_start>username_0: I have encountered this problem for multiple times. I want to export a summary data set that I made from **R** to table in Word. The best I can do for now is to first export the data to Excel, and then copy the table in Excel to word.
My sample data:
```
> sum_tab
col1 col2 col3
2 ... |
2018/03/14 | 1,900 | 5,269 | <issue_start>username_0: I am using a bootstrap mega menu and I have it styled and working as I need, however I need it to open for desktop devices on hover (instead of on click). I thought I would be able to easily do this with just css, but I cannot get it to work.
Any suggestions? I am open to using jQuery or jscri... |
2018/03/14 | 720 | 2,611 | <issue_start>username_0: I deployed an app successfully following [**this**](https://cloud.google.com/python/django/flexible-environment) link.
After deployment, I am having trouble connecting to Cloud SQL. In my IPython notebook, before I deploy my app, I can use the following statement to connect to my cloud instanc... |
2018/03/14 | 426 | 1,561 | <issue_start>username_0: I am currently using webpack 4 with react loadable to create chunks.
It actually chunks depends on the break point. However, vendor size remains same. React loadable is not supporting webpack 4 yet ? or I am missing some setup ?
css actually seems to splited into the chunk, though
```
{
o... |
2018/03/14 | 592 | 2,380 | <issue_start>username_0: I want to have multiple components associated to the root path in order to display one landing page view for anonymous users and an inbox for the authenticated users, without having to use manual navigation and path changes crutches.
I've tried to enable my scenario with a routing block like t... |
2018/03/14 | 10,616 | 23,954 | <issue_start>username_0: I am trying to do some analysis of teaching evaluations from multiple sessions with different teachers. Each student's evaluation is stores as a .csv file (although they are tab separated).
My usual approach of combining the csv files into a single data frame wont work because each file has a ... |
2018/03/14 | 1,579 | 4,867 | <issue_start>username_0: ```
mysql> select doc, term, item from relevanssi where doc = 26331;
+-------+------------------------+------+
| doc | term | item |
+-------+------------------------+------+
| 26331 | yes | 0 |
| 26331 | zero | 0 |
| 26331 | ??? ... |
2018/03/14 | 630 | 1,870 | <issue_start>username_0: This is the vbs file:
```
set w = CreateObject^("WScript.Shell"^)
W.Run chr^(34^) & "explore.bat" & chr^(34^), 0
echo set w= Nothing
```
(it will run a batch file, but hidden in the background)
I tried a suggestion from [this post](https://stackoverflow.com/a/19471152/9240845)... This is ... |
2018/03/14 | 599 | 2,013 | <issue_start>username_0: I am new to the web side of things and I am currently struggling with Razor Pages. Can someone explain the ways I can get a value from control in this case.
How can I extract the content of the selected and pass it to a variable to the code behind;
```html
@page
@model ViewToVM.Pages.IndexMo... |
2018/03/14 | 1,810 | 8,044 | <issue_start>username_0: So I'm trying to figure out the structure behind general use cases of a CQRS+ES architecture and one of the problems I'm having is how aggregates are represented in the event store. If we divide the events into streams, what exactly would a stream represent? In the context of a hypothetical inv... |
2018/03/14 | 602 | 2,543 | <issue_start>username_0: In `keras`, both `model.fit` and `model.predict` has a parameter of `batch_size`. My understanding is that batch size in model.fit is related to batch optimization, what's the physical meaning of `batch_size` in `model_predict`? Does it need to be equal to the one used by `model.fit`?<issue_com... |
2018/03/14 | 1,878 | 6,018 | <issue_start>username_0: I was working on a Codility problem:
>
> You are given two non-empty zero-indexed arrays A and B consisting of
> N integers. Arrays A and B represent N voracious fish in a river,
> ordered downstream along the flow of the river.
>
>
> The fish are numbered from 0 to N − 1. If P and Q are ... |
2018/03/14 | 239 | 887 | <issue_start>username_0: How I do add packages sources in my project?
In my Visual Studio, i go to tools -> options -> Nuget Package Manager -> Package Sources.
And add the package information that in this case is not in Nuget. Now in the App Center I did not find this information and with this my project does not co... |
2018/03/14 | 1,673 | 5,718 | <issue_start>username_0: In trying to access *RateCard* info in the *Government Cloud, Region usgovvirgia*, and working from example on github: <https://github.com/Azure-Samples/billing-dotnet-usage-api>.
GitHub Sample throws Unhandled exception: AADSTS65005 (see links below)
This error is mentioned there but in rew... |
2018/03/14 | 425 | 1,468 | <issue_start>username_0: i made a function to delete from more tables but it does not work?
```
//the 'id' is came through URL so why it does not work
$id = $_GET['id'];
del($id, "DELETE FROM `companies` WHERE id=$id");
function del($id, $query){
try {
$con->query($query);
mysqli_commit($con);
... |
2018/03/14 | 545 | 1,918 | <issue_start>username_0: Is it possible to create a contraint on a table and specify a value on one or more of the columns? Condsider this example:
```
mytable = Table('mytable', meta,
# per-column anonymous unique constraint
Column('col1', Integer,),
Column('col2', Integer),
Column('col3', ENUM('read... |
2018/03/14 | 1,760 | 6,618 | <issue_start>username_0: I'm trying to come up with an efficient solution to be able to query the entity list and order it correctly. I have created a singly linked list type structure in SQL DB schema. I am using GUID as my IDs but for simplicity, I'll use int here. I could solve this problem easily by having a SortOr... |
2018/03/14 | 783 | 2,593 | <issue_start>username_0: I am trying to make a function that looks at an image, and return the X pixel value.
When i run the code, it throws an error on the Int1=CInt(Xdim) line, saying "Type Mismatch (10080)"
If i hard-code the value i am testing into Xdim, it works fine.
```
Function ImgXDim(filename As String) ... |
2018/03/14 | 534 | 1,695 | <issue_start>username_0: When I try to use the zsh shell with iterm2, all colors set by zsh disappear. So git diffs, etc. Show as all one color. I have selected zsh as the shell successfully, but it seems to get overwritten. I have done `chsh -s /bin/zsh`.<issue_comment>username_1: First check if value can be converted... |
2018/03/14 | 1,904 | 7,194 | <issue_start>username_0: Just messing around with the language thinking of how I want to structure some UserDefaults that automatically generate keys based on the hierarchy. That got me wondering... Is it possible to simultaneously define, and instantiate a type, like this?
```
let myUserSettings = {
let formatti... |
2018/03/14 | 1,619 | 6,144 | <issue_start>username_0: Preface: I am relatively new to mobile app development.
My team and I are developing a Mobile app where one of the pieces of intended functionality is a shared calendar between multiple users. We are writing the application using Flutter, which implements the dart language.
The dart version ... |
2018/03/14 | 1,579 | 5,865 | <issue_start>username_0: I'm making an HttpClient get request, and returning the response to my component. I can't seem to do anything with the response.
Here is my component method calling the service:
```
onSubmit() {
this.userService.updateProfile(this.userForm.value)
.subscribe(response => {
cons... |
2018/03/14 | 446 | 1,606 | <issue_start>username_0: I want see some example of fade Animator in Vaadin, everytime I try animate some layout or component after button click nothing works, there is no documentation how to do it<issue_comment>username_1: The best way of doing animations is to use CSS. You can have the button click add a classname t... |
2018/03/14 | 768 | 3,468 | <issue_start>username_0: I am trying to build a GStreamer pipeline which interleaves images from multiple cameras into a single data flow which can be passed through a neural network and then split into separate branches for sinking. I am successfully using the `appsrc` plugin and the Basler Pylon 5 - USB 3.0 API to cr... |