date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/06 | 1,125 | 3,533 | <issue_start>username_0: I want to make a logic that if a child checkbox is checked, it checks the parent checkbox too. The input can parent, child and both:
```
```
This structure:
* 1
+ 2
+ 3
* 4
+ 5
- 6
- 7
will be look like this:
```
| | |
| --- | --- |
| |
.
.
|
| |
.
.
|
| |
.
.
... |
2018/03/06 | 1,836 | 6,798 | <issue_start>username_0: I've been trying a variety of setups for hot reloading and one that I've come across is the <https://github.com/glenjamin/ultimate-hot-reloading-example/>. Modifying this boilerplate code as a starting point, I've come across the following problem in my server code:
```
// server.js
import cho... |
2018/03/06 | 1,034 | 3,743 | <issue_start>username_0: I have an issue where I'm trying to find a distinct value from my main table where a text value from a different column in t2 doesn't exist. E.G.
```
SELECT t1.val, t2.desc
FROM t1
LEFT JOIN t2
On t1.val = t2.val
And t2.desc NOT LIKE 'some text'
```
The problem I'm ha... |
2018/03/06 | 956 | 3,434 | <issue_start>username_0: I have text file ($test\_filename) which has the following contents:
```
boy
girl
man
woman
child
```
I need to read this text file in PHP and store the content in a string in the following manner:
```
$output = (type, 'child', 'woman', 'man', 'girl', 'boy')
```
I am trying with the follo... |
2018/03/06 | 716 | 2,703 | <issue_start>username_0: I have two tables class\_tbl (id,class\_name) and student\_tbl(id,class\_id,student\_name).
I want to display all class in a table format and want to show number of students in each class.
How to do this in one mysql query?<issue_comment>username_1: Let's step back a bit and talk about middl... |
2018/03/06 | 775 | 2,903 | <issue_start>username_0: I wanted to know what is the best possible block-size and C (Constant) for adaptiveThresholding. Also, in my case **images keeps changing**
```
th1 = cv2.adaptiveThreshold(img, 255, cv2.ADAPTIVE_THRESH_MEAN_C,cv2.THRESH_BINARY, 11, 0)
```
as for now I am doing try and error which I don't thi... |
2018/03/06 | 790 | 2,842 | <issue_start>username_0: I try to implement in Go "Done" pattern for notify error to other channel:
Here is my code:
```
package main
import (
"fmt"
"time"
)
func parse(done <-chan interface{}, data []string) <-chan string {
stream := make(chan string)
go func() {
defer close(stream)
... |
2018/03/06 | 1,551 | 4,712 | <issue_start>username_0: I have an array of several Uint8Arrays.
Something similar to this:
`[Uint8Array(16384), Uint8Array(16384), Uint8Array(16384), Uint8Array(16384), Uint8Array(16384), Uint8Array(8868)]`
How do I merge/concatenate/join (not sure what the right term is) them to a single ArrayBuffer?
The key here ... |
2018/03/06 | 1,557 | 4,770 | <issue_start>username_0: I am trying to convert decimal fractions to binary in python. Can anyone help
```
def deci_to_bin(n):
c=n%2
print c
n=n/2
if n == 1:
print n
print n "conversaion of decimal to binary is given above see button to top"
else:
return deci_to_bin(n)
n=... |
2018/03/06 | 636 | 2,521 | <issue_start>username_0: I am creating a collection dynamically using C#(MongDB driver).
I found that collection gets created only if atleast one document is inserted into it. i am doing as below. Since i am calling CreatOne for every insert to create index, will it ReCreate index every time i insert new docs?
Is there... |
2018/03/06 | 1,153 | 4,559 | <issue_start>username_0: I'm trying to make app to load dynamically certain classes and then invoke startup method, but the problem is that one class cannot invoke method of another because of different `ClassLoader`, however as I googled already, I created both classloaders with parent. Here's my test class:
```
publ... |
2018/03/06 | 6,576 | 25,972 | <issue_start>username_0: Judging by these questions:
[Zend framework 2 loop through elements of element collection](https://stackoverflow.com/questions/31588206/zend-framework-2-loop-through-elements-of-element-collection)
[How to pass an argument to a Zend Form Collection instance & How to set custom Fieldset labels... |
2018/03/06 | 535 | 2,099 | <issue_start>username_0: I'm trying to get a multiple user views using Scheduler. This is the code I'm using:
```
$('#calendar').fullCalendar({
schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives',
defaultView: 'agendaDay',
events: [
// events go here
... |
2018/03/06 | 614 | 2,312 | <issue_start>username_0: I'm trying to find all musics my users are listening. I'v done it like this :
```
User.find().exec((err, users) => {
users.forEach((user, index) => {
Musics.count({ idReader: user._id }, (err, count) => {
result.push({ mail: user.mail, count: count });
if (... |
2018/03/06 | 441 | 1,245 | <issue_start>username_0: ```
int func3(int n){
if (n <= 1) return n;
return func3(n - 1) + func3(n - 1);}
```
My thinking is: in every recursion we have an addition operation. And we do this operation every time we divide the recursion into two. So I am not sure if I should call it `O(N2^N)` or `O(2^N)`. I think ... |
2018/03/06 | 396 | 1,140 | <issue_start>username_0: can anyone help me with it:
I have configured the facebook invite feature. I have a button on which I have written the code to open the facebook invite dialog. I have also uploaded the file to the server.
But when I click on the button to open the dialog.
I am getting these errors
The operation... |
2018/03/06 | 2,097 | 9,364 | <issue_start>username_0: I have Main Activity with Navigation drawer. In that I have edit button which open Edit Fragment. The user selected image from Camera or gallery should be displayed in ImageView.
Here the issue I am facing is I can select the image successfully and it also returns the image in onActivityResult... |
2018/03/06 | 320 | 1,175 | <issue_start>username_0: I'm having problems with jquery syntax finding the same element but written differently.
```
for (var i = 0; i < _max ; i++) {
var _carouselCell = "";
$('.main-carousel').append( _carouselCell );
$('#itm' + i).html('![]()');}
```
What's causing me problems ... |
2018/03/06 | 906 | 3,860 | <issue_start>username_0: In dockers, I had two containers `Mosquitto` abd `userInfo`
`userInfo` is a container which performs some logic and then send the result to mosquitto container. Mosquitto container then use this information to send it to IOT hub. To start these containers in Docker, I created a network and sta... |
2018/03/06 | 370 | 1,311 | <issue_start>username_0: I am using Material Textfield for my project,
```
@IBOutlet weak var cellTextField: MDCTextField!
func setUpCellUI() {
cellTextField.clearButton.isHidden = true
cellTextField.font = CSFont.fontWithName(.Medium, size: 17)
cellTextField.textColor = UIColor.contSyncTextLightColor()
... |
2018/03/06 | 678 | 2,334 | <issue_start>username_0: I have encountered a problem while I was using a loop like this,
```
//vector sides;
for (int i = 0; i < sides.size()-2; i++) {
if (sides[i] < sides[i+1] + sides[i+2]) {
...
}
}
```
The problem was that the [size()](http://www.cplusplus.com/reference/vector/vector/size/) method uses an un... |
2018/03/06 | 826 | 2,911 | <issue_start>username_0: I want to embed statistics in an rMarkdown/notebook depending on whether an if test is passed.
I haven't found a question that addresses this in SO, but apologies if I've overlooked it.
Based on [this link](https://stackoverflow.com/questions/25407102/conditionally-display-a-block-of-text-in... |
2018/03/06 | 747 | 2,561 | <issue_start>username_0: ```
public function getdata()
{
$ctrObj = new Country();
$result = $ctrObj->ctrydata($this->table);
if(mysqli_num_rows($result)>0){
while ($row = mysqli_fetch_array($result)) {
return $row;
}
}
}
```
```
$ctryObj = new CountryController();
$countri... |
2018/03/06 | 446 | 1,752 | <issue_start>username_0: The Microsoft docs for Entity Framework show that you can mark a property of a type as "Value generated on add or update". So in the situation where I want a `LastUpdated` column to be given the current date when a row is updated, I can mark that property like so:
[ with Node.js as backend. The challenge is, the chat-bot is to be housed on intranet network(i.e. it should work completely offline). What should be my approach to achieve this?
I have tried integration of Bot-kit fr... |
2018/03/06 | 736 | 2,483 | <issue_start>username_0: My function "getint" returns below values:
response: 0
id: 70402
type: 1
has value
int value: 15
I have stored the above value in String s and written below code to print the 'int value' data 15.
Code:
```
s= '''response: 0
id: 70402
type: 1
has value
int value: ... |
2018/03/06 | 962 | 3,420 | <issue_start>username_0: I want to Mock HTTP requests, meaning sending **real request** to **real server**, but ignore (not wait) and override the response with a dummy response,
JMeter have many tools which are close but not enough,
[DummySampler](https://jmeter-plugins.org/wiki/DummySampler/) plugin is close but n... |
2018/03/06 | 684 | 2,528 | <issue_start>username_0: When I update the cognito users' email attribute via the `updateAttribute` or `adminUpdateAttribute` API, `email_verified` will be set to false. So I'd like to set `email_verified` to true programitically.
My understanding is that it should use `GetUserAttributeVerificationCode` and `VerifyUse... |
2018/03/06 | 767 | 2,391 | <issue_start>username_0: I'm trying to select only the rows with highest COUNT() based on two fields.
First I have a query that gives me the values of how many times a specific ITEM-SUPPLIER combo has occurred in my table.
```
select itemid, ordersupplierid, COUNT(OrderSupplierId) AS SupCount from purchaseorderline
g... |
2018/03/06 | 800 | 3,034 | <issue_start>username_0: I am relative new with JS so can someone please help me with the below problem in React JavaScript and explain how to do the followings?
I wish to create a program which either list all the available DB records (credit card items) or add new items to DB (newly registered cards).
I have creat... |
2018/03/06 | 686 | 2,475 | <issue_start>username_0: I'd like to add particle system `rain` (template from X-Code) only to a geometry (Cube, Tube, Cylinder, etc.)
The particle system should only be visible in that geometry. What I have done so far:
```
let tube = SCNCylinder(radius: 0.5, height: 2)
tube.firstMaterial?.diffuse.contents = UIColor... |
2018/03/06 | 920 | 3,316 | <issue_start>username_0: I want to perform all the sqlite-operations insert, delete, update and query in a background task.
Do I have to create a class extending AsyncTask for each operation?
I mean at the end I have 4 classes for these 4 operations?
Thanks.<issue_comment>username_1: Have you tried **Room** libra... |
2018/03/06 | 413 | 1,689 | <issue_start>username_0: I want to call a method from another activity.
I'm trying to do this but it does not work:
```
(applicationContext as MainActivity).getAllGroupFromTheDatabaseToList()
```
Error:
```
java.lang.ClassCastException: android.app.Application cannot be cast to com.emoonadev.futurfit.MainActivity
... |
2018/03/06 | 1,095 | 3,869 | <issue_start>username_0: I Have A Problem to Fetch Data From Database in Codeigniter ..
its gives an Error
This is My View:-
```
| php echo $row-Country\_id;?> | php echo $row-country\_name;?> |
```
Model:-
```
//data is retrive from this query
$query = $this->db->get('country');
return $q... |
2018/03/06 | 459 | 1,709 | <issue_start>username_0: In Google AdWords there is a [simple solution](https://developers.google.com/adwords/api/docs/guides/remarketing) for importing in JSON like way users' data.
Is there is any ability to do it an Google Analytics?<issue_comment>username_1: Careful, [Google policies](https://support.google.com/an... |
2018/03/06 | 784 | 2,155 | <issue_start>username_0: There is such workflow of writing `json` objects to file :
```
for {
Step 1. create json object
Step 2. Save object to file
}
```
So I wrote such code
```
f, _ := os.Create("output.json")
defer f.Close()
a1 := A{Name:"John", Surname:"Black"}
a2 := A{Name:"Mary", Surname:"Brown"}
a1... |
2018/03/06 | 371 | 1,509 | <issue_start>username_0: I am new Azure functions, One of my task is to read data from Sql database and upload that data as a csv file in azure Blob storage using Azure functions and then using logicapps to retreive it. I am stuck with Sql to file to Azure Blob<issue_comment>username_1: I would start with the Azure Fun... |
2018/03/06 | 610 | 2,227 | <issue_start>username_0: Working with LINQ i found that when result of the LINQ expression has an interface type it means that it has a deferred execution. Am I right?
**For example:**
```
List numbers = new List() { 1, 2, 3, 4, 5 };
// Deferred execution because res1 has an IEnumerable type
var res1 = numbers.Where... |
2018/03/06 | 522 | 1,776 | <issue_start>username_0: I have the below program
```
#include
#include
typedef struct point{
int x;
int y;
}point;
point add(int a, int b){
int c;
point p1;
c= a+b;
p1.x =c;
p1.y =c;
return(p1);
}
int main()
{
int a=20,b=65;
point k;
k = add(a,b);
printf("k.x=%d,k.y=%d\n",k.x,k.y);
return 0;
}
``... |
2018/03/06 | 246 | 914 | <issue_start>username_0: Is it possible to get comments to be placed automatically at the end of a method with Android Studio?
```
return new MaterialApp(
); // MaterialApp
```<issue_comment>username_1: Closing labels are now supported in Android Studio 3.1 with the latest Dart and Flutter plugin
[](https://i.stack.imgur.com/DsPNW.png)
I want result
[](https://i.stack.imgur.com/k7KTQ.png)
help me!!!
Thanks so much<issu... |
2018/03/06 | 736 | 2,372 | <issue_start>username_0: I have trained my model using Keras for image classification using tensorflow, and here's the code where my model is trying to predict an input image.
```
import numpy as np
from keras.preprocessing import image
test_image = image.load_img('C:/Python/3.png', target_size = (64, 64))
test_image ... |
2018/03/06 | 614 | 1,872 | <issue_start>username_0: I have a few csv files that I need processing if the number of columns is 4 througout the file
file\_1 :
```
1,aa,bb,cc
2,dd,ee,ff
3,gg,hh,ii
```
file\_2 :
```
1,xx
2,yy
3,zz
4,xy
```
I'm using awk for this
```
for file in file_1 file_2 ... file_n
do
if [[ `awk -F"," 'NF==4' $file`... |
2018/03/06 | 615 | 2,028 | <issue_start>username_0: I am doing something unholy that requires me ro replace all occurrences of "return xxx;" in snippets of code with something else.
For instance
```
function(x, y)
{
if(x == 0) return "bye bye";
else
return x+y;
}
```
Would become
```
function(x,y)
{
if(x == 0) unholy("bye bye");
else
... |
2018/03/06 | 403 | 1,269 | <issue_start>username_0: How to get the index of an item from the nested array but don't know how deep is nested
for example
arr=[a,[b,[c],[d],e],f,[g],h]<issue_comment>username_1: Maybe I don't undustand question, but why you need regex? Something like this enough you.
```js
function(x, y) {
function unholy(a, b... |
2018/03/06 | 1,763 | 6,166 | <issue_start>username_0: i am try to create a one to many bidirectional mapping using spring boot and spring data jpa please look the below entity
>
> Employer Entity
>
>
>
```
@Entity
public class Employer
{
private Long id;
private String employerName;
private List employees;
@Id
@GeneratedValue(st... |
2018/03/06 | 1,279 | 3,976 | <issue_start>username_0: I have created a SAS Token from within the portal & all works fine, i can access Private blobs.
I am trying to create new SAS Tokens on the fly using this function:
```
function generateSasToken($uri, $sasKeyName, $sasKeyValue)
{
$targetUri = strtolower(rawurlencode(strtolower($uri))); ... |
2018/03/06 | 936 | 2,827 | <issue_start>username_0: On my Mac, I want to migrate some packages that require su rights to another node version.
I used homebrew to install nvm and now I need to execute sudo nvm or `--reinstall-packages` will fail.
```
me@MacBook:~$ sudo nvm
sudo: nvm: command not found
me@MacBook:~$ sudo node -v
v5.4.1
me@MacBo... |
2018/03/06 | 1,771 | 3,617 | <issue_start>username_0: I have a log file that includes different Mac address in different lines.
I can extract the lines that includes given Mac address and then I can trim the line to get only timestamp(such as 15:48:55) then I add this timestamps to an array.
What I want is;
How can I compare all adjacent eleme... |
2018/03/06 | 353 | 1,143 | <issue_start>username_0: Given a pair of integer values, I need to check if both are non-negative or both are negative.
The trivial way is:
```
def func(a, b):
return (a >= 0 and b >= 0) or (a < 0 and b < 0)
```
But I am looking for something "neater", which I believe to be possible, so I came up with this:
``... |
2018/03/06 | 421 | 1,399 | <issue_start>username_0: Here is a simple example of adding command in nodejs using commander:
```
'use strict';
const {Command} = require('commander');
const run = () => {
const program = new Command();
console.log('CMD');
program.command('cmd [opts...]')
.action((opts) => {
console... |
2018/03/06 | 380 | 1,651 | <issue_start>username_0: I am using BluePrism v6.1.0 and I am trying to identify elements from a launched application in Application Modeller. (I used the Windows application type in the modeler configuration)
From some tutorials I saw, the launch button changes to Identify button after the app is launched, however, m... |
2018/03/06 | 426 | 1,220 | <issue_start>username_0: I wasn't quite sure how to word this question. But if you imagine I have:
```
var contents = "5, 7, 1, 3, 4";
```
And I want to do a query:
```
SELECT id,name FROM db WHERE id in (contents);
```
I would get the following response **(a)**:
```
ID NAME
1 ONE
3 THREE
4 ... |
2018/03/06 | 299 | 937 | <issue_start>username_0: I have a small issue with youtube embed code:
In my controller,
`$scope.emedUrl = "https://www.youtube.com/embed/";`
Embed code is not working.<issue_comment>username_1: I changed code like this in my controller as said by @ username_2
`$scope.embedUrl = $sce.trustAsResourceUrl('https://www.... |
2018/03/06 | 375 | 1,504 | <issue_start>username_0: I have a simple question regarding file descriptors passage from processes into their threads. I'm almost sure but need to a confirmation, if the files descriptors are treated as normal integers and thus can be passed through an array of integers for example to the process thread through the **... |
2018/03/06 | 1,831 | 7,299 | <issue_start>username_0: I'm a bit stuck
I have a script that programmatically injects manifest, vendor and app into the page on load.
I need this script to be injected into the html during the build process, but it is not necessary during development.
Here is my prod config (the default, with some very minor changes... |
2018/03/06 | 232 | 816 | <issue_start>username_0: In `EditText` `android:nextFocusDown="@+id/fuelfrom"` will goes to next field when press done, similarly, how can I make a `AutoCompleteTextView` goes to next field when pressing `enter` key...<issue_comment>username_1: Use
```
android:singleLine="true"
```
it will show focus on next field... |
2018/03/06 | 509 | 2,126 | <issue_start>username_0: I am showing listing of the coupon/offers in the app. On clicking on same I am opening the particular merchant site in safari on the device and making redemption/purchase of the same coupon.
Can this lead to rejection please let me know.
Thanks in advance!!!<issue_comment>username_1: Actually... |
2018/03/06 | 360 | 1,258 | <issue_start>username_0: So basically I need to get a part of the postcode string, all before an empty space
my current query is
```
select postcode, left(postcode, length(postcode) - strpos(' ', postcode))
from postcodetable
```
But it just doesn't return the post code correctly, example:
1st column is `NW1 1AA`... |
2018/03/06 | 364 | 1,490 | <issue_start>username_0: I'm new to spring framework, my problem is to register spring component through the spring application context I tried it with many different ways but no luck yet.
```
@Configuration
@ComponentScan("com.example.app")
@EnableAutoConfiguration
public class ContextDataConfiguration
{
...
}
``... |
2018/03/06 | 1,576 | 3,539 | <issue_start>username_0: I have some period data that look like this:
```
PName DtFrom DtTo Amount
Period_1 2018-01-01 2018-01-10 100
Period_2 2018-01-03 2018-01-08 10
Period_3 2018-01-05 2018-01-12 1
```
I would like to get the following time series adding the amount... |
2018/03/06 | 1,335 | 3,341 | <issue_start>username_0: here is what I want to achieve:
I want to export the view of a ViewController into a size fittest to social media, let's say a square for Instagram.
I've tried to create a new instance of my UIViewController, embedded in a freeform UIViewController, but I've trouble forcing the size.
This wou... |
2018/03/06 | 1,404 | 6,393 | <issue_start>username_0: I have some data which I have fitted a normal distribution to using the scipy.stats.normal objects fit function like so:
```
import numpy as np ... |
2018/03/06 | 1,045 | 3,083 | <issue_start>username_0: I have a list of JsObject like:
```
[{
"a":"test1",
"b": 2,
"c": 5,
"errors": "Error example"
}]
```
I would like to get something like this `a:List[Option[String]], b: List[Option[Int]]` and so on. I need an option since not all the fields are alway present.
My code is:
```
jsO... |
2018/03/06 | 1,102 | 3,121 | <issue_start>username_0: Heyho,
I am a beginner in R and have a problem to which I couldn't find a solution so far. I would like to transform dummy variables back to categorical variables.
```
|dummy1| dummy2|dummy3|
|------| ------|------|
| 0 | 1 |0 |
| 1 | 0 |0 |
| 0 | 1 |0 |
| 0 ... |
2018/03/06 | 1,267 | 3,542 | <issue_start>username_0: I have a list of words, that I want to replace in a tbl\_df.
This is the data.
```
data<-tbl_df(c("05+12+TIP", "eintippen", "MyTipStar", "05TIP", "TIP","05+12+HERO", "einhero", "MyHEROStar", "05HERO", "HERO"))
```
This is the pattern I want to find.
```
pat<-c("TIP", "HERO", "good... |
2018/03/06 | 306 | 985 | <issue_start>username_0: I am dynamically creating rows in my table using JavaScript. I need to add `If` statement inside a `|` which I am creating dynamically. Inside my `|` I have an anchor tag . I need to add anchor tag only if it satisfies my `If` statement. Following is my code:
```
var IsAdmin = true;
var row;... |
2018/03/06 | 1,568 | 2,847 | <issue_start>username_0: I have the following data:
```
df <-
Session Volume StartTime EndTime
1 27,75 2016-01-22 17:00:33.707 2016-01-27 06:02:54.900
2 10,78 2016-01-22 14:31:22.127 2016-01-23 15:01:20.997
3 15,88 2016-01-27 ... |
2018/03/06 | 1,139 | 2,171 | <issue_start>username_0: I have an issue with the screen size. I would like to get the size of my screen from my Windows Form Program but when I do :
```
Rectangle bounds = Screen.AllScreens[0].Bounds;
```
>
> bounds.Width = 1536 instead 1920 (my resolution screen).
>
>
>
Could you help me please ?<issue_commen... |
2018/03/06 | 1,718 | 6,721 | <issue_start>username_0: I already searched on how to do a switch on the value instead of the enumeration key in C# but with no result, all the posts I've found says that we don't need to use the value, we can just use the key.
But in my case, I want to use the value because I made an enumeration with multiple keys s... |
2018/03/06 | 1,143 | 4,430 | <issue_start>username_0: **Details:**
I have a teacher dashboard where a teacher can create and share worksheets with other teachers. When any worksheet is shared with other teachers they can (but not necessary) provide feedback on that worksheet, which will be visible to the creator of worksheet.
Now I have a model ... |
2018/03/06 | 737 | 2,415 | <issue_start>username_0: I m getting an error and I searched on it for a couple of hours but the only thing I found was there could be a syntax error in the code but I wasn't able to find any even after a lot of searching. I m not that experienced in coding just started learning react-native so anything you could sugge... |
2018/03/06 | 414 | 1,668 | <issue_start>username_0: I would like to programmatically and dynamically insert a snippet (such as `$2`. Checking the docs it seems like the only way to use snippets is in completion item providers (returning a completion item with `kind: monaco.languages.CompletionItemKind.Snippet`). I've found also a `SnippetString`... |
2018/03/06 | 473 | 1,437 | <issue_start>username_0: I have been using [shields.io](http://shields.io) to build my GitHub badges in the README files, but only for badges such as license and version.
Now, **my goal** is to build dynamic badges on the number of watches of a specific repo, in a way that the number updates whenever a new person is w... |
2018/03/06 | 518 | 1,450 | <issue_start>username_0: I have the following string:
`https://example.com/get/ea34b8062cr2533eed0b4302e44d4090e26ae3c01bb1124292f3c970_1280.jpg`
I want just remove the character `s` from this part `https` and return the whole string again but without `s` character.
```
wxString imgURL = "https://example.com/get/ea3... |
2018/03/06 | 1,448 | 4,380 | <issue_start>username_0: I'm trying to use a component called "Vue-Chartjs" to create a `LineChart`.[
I'm passing some data from a MySql database to the '`chartData`' prop, defined in the **Chart.js** file.
But I'm getting this error. What I understood (I think), is that chartData doesn't get updated.
Does anyone kn... |
2018/03/06 | 581 | 2,121 | <issue_start>username_0: I want to reduce the width and height of both the JTextField and JScrollPane in a GridBagLayout, but seems like the width is only reducible to the length of the longest content from the JList, by setting the text field columns. I'm not sure if I need to adjust both or just one of the sizes of t... |
2018/03/06 | 324 | 1,223 | <issue_start>username_0: When running this code
```
def f(t):
time.sleep(t)
return t
with ThreadPoolExecutor(max_workers=300) as pool:
res = list(pool.map(f, [2, 10], timeout=1))
```
it does throw a `TimeoutError`, but only after 10 seconds (the max of the `time.sleep`s). If would expect the `TimeoutErr... |
2018/03/06 | 482 | 1,774 | <issue_start>username_0: Hi I'm currently searching for studies or tutorials where they used tensorflow API to do something (alarm, save video, print something, etc.) when a certain object is detected. I don't know if I'm bad at using google cause I can't seem to find what I want. Hope you guys can give me links regard... |
2018/03/06 | 1,417 | 3,497 | <issue_start>username_0: I need to calculate sum of past six rows for same day for given id.
Have a look at the sample data and result expected..
```
create table #t (id int, a datetime, dy varchar(10), t int);
insert into #t values
(1,'2017-01-03','Tuesday',7),
(1,'2017-01-10','Tuesday',5),
(1,'2017-01-17','Tuesda... |
2018/03/06 | 805 | 3,231 | <issue_start>username_0: I have an API that upon request fetches all objects (movies) from the database. Each object has several ratings, which are used to compute one main rating for the object. Each object is then pushed into an array. Before the JSON-response is sent, this array is sorted based on the main rating. T... |
2018/03/06 | 1,642 | 6,483 | <issue_start>username_0: Whether I am right or wrong about this I am not sure but SonarLint gives me countless warnings about the repeated use of certain strings.
As a result, I created a constants file purely for Strings in a module that is already accessed in every other module in the project.
My thought was if we ... |
2018/03/06 | 2,095 | 6,989 | <issue_start>username_0: THE ISSUE
---------
I'm not really a beginner, but this might be a beginner question. I'm trying to increment a count property of an ES6 JavaScript object. The two most successful (as in they give me wrong info, but no error) versions of this minimal code example either return "NaN" or "1" for... |
2018/03/06 | 1,480 | 5,477 | <issue_start>username_0: I need to take a backup at specific point in Github, as we are removing at least 50% of code now. What is the best way to handle this.
PS: We dont have plans to use the code we are removing even in future, but just wanted to keep it as backup.
Should I create a different branch or have a tag?... |
2018/03/06 | 535 | 1,459 | <issue_start>username_0: How can I export my tables in Excel from Julia?
my table is a matrix as bellow:
```
x y z e r t b
1 0 1 1 0 1 1
0 1 1 0 1 1 1
1 0 1 0 0 0 1
```
I want to write it in a excel sheet. Is there any way to do that?<issue_comment>username_1: Taking your table as (i.e. ignoring that it contains st... |
2018/03/06 | 961 | 3,286 | <issue_start>username_0: can someone help me?
I made a grid for my board. When I'm trying to get Point position of the square in the board, console returns only (0,0).
This is my point code:
```
public struct Point
{
public int X {get; set;}
public int Y {get; set;}
public Point(int x, int y){
t... |
2018/03/06 | 1,148 | 2,633 | <issue_start>username_0: I have a dataframe below, with the products purchased by users.
DataSet :
```
user age maritalstatus product
A Young married 111
B young married 222
C young Single 111
D old single 222
E old married 111
F teen married 222
G teen married 555
H adult single ... |
2018/03/06 | 498 | 1,656 | <issue_start>username_0: This is an excerpt of an implementation of a Stack class in C++:
**Stackdemo.hpp**
```
#include
using namespace std;
template
class Stack
{
private:
int top;
T \*arr;
public:
Stack(int size)
{
arr = new T[size];
top = 0;
}
void push(const T &x)
{
arr[top++] = x;
}
int siz... |
2018/03/06 | 4,058 | 16,142 | <issue_start>username_0: I'm currently having trouble (as the title states) appending text to a JTextArea from a separate class (or thread).
Here is my code, since I don't know what's causing the problem. (note that I'm using the Netbeans generated code for my GUI):
Chat Box GUI:
```
public class ChatBoxGUI extend... |
2018/03/06 | 540 | 2,063 | <issue_start>username_0: I'm working with angularjs and I have a table with rows and columns dynamically created with ng-repeat. Each cell has a directive that has ng-include. While the contents of the cell are processed, ng-repeat is terminated and the table is displayed with empty cells for a moment. I would like to ... |