date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/15
1,190
4,455
<issue_start>username_0: I have an error while i want to register in the app. I had a table registers which i deleted it. When i wanted to register, all data went to that table. Now i want them to go to users table and i have the following functions and model. But when i submit the info to be registered, this error pop...
2018/03/15
418
1,252
<issue_start>username_0: I have to insert an object `{"category" : "Vehicle"}` in the `rated` array below using Mongo shell commands. How can I do that? ``` { "rating": { "userid": 1234, "bookingid": 4567, "rated": [ { "_id": "5aaa356f6b992b2068a1b691", ...
2018/03/15
2,544
9,392
<issue_start>username_0: Scenario is, that I'm categorizing tweets into 6 different Polarities viz. Positive, Moderately Positive, Highly Positive, Negative, Moderately Negative and Highly Negative. Since, this procedure undergoes through steps of NLP (using NLTK) I need to go sentence / tweet by tweet. **The Proble...
2018/03/15
459
1,413
<issue_start>username_0: I have a container that will hold: - A div that has specific width (50px) and floats to the right. - A button before the above div, that will that the remaining width inside the container. ``` Retarded Button ``` CSS: ``` .responsive-button__container { width: 500px; border: 3px solid...
2018/03/15
559
2,136
<issue_start>username_0: When I'm trying to import a class from the parent folder, which is exported in an index-file, I'm getting this error: TypeError: Super expression must either be null or a function, not undefined When I'm importing it in other places, there is no problem. Import: `import { BaseComponent } fro...
2018/03/15
2,252
6,560
<issue_start>username_0: I'm writing a Restricted Boltzmann Machine in tensorflow and for the sake of understanding the algorithm, I want to print things on the way as I'm calculating them. I've made a simple attempt on the first part of the algorithm: ``` import tensorflow as tf import numpy as np X_train = np.genfr...
2018/03/15
710
1,954
<issue_start>username_0: I have an array as shown here ``` 25|12|3|53 ``` I want to break and store the values in the array on to variables as shown below. ``` $variable1 = 25 $variable2 = 12 ... ``` Any suggestions would be appreciated<issue_comment>username_1: Certainly that is possible: ``` php $input = [25...
2018/03/15
1,603
5,867
<issue_start>username_0: Consider the following simple (contrived) code example: ``` #include class Foo { std::size\_t size; char \*buf; public: Foo(std::size\_t s) { size = s; buf = new char[size]; for (int i = 0; i < size; i++) { buf[i] = 'a'; } } void hexprint() const { for (int i = 0; i < size; i++...
2018/03/15
573
1,832
<issue_start>username_0: I am trying to add `html -` tag as prefix and suffix to each element of list of strings. Here is the list of string : ``` IList lstUniversities = new List(); lstUniversities.Add("1Harward University, USA"); lstUniversities.Add("2Yale University, USA"); lstUniversities.Select(u => "- " + u ...
2018/03/15
669
2,372
<issue_start>username_0: I need to have URI of the default ringtone. I can have the default ringtone using this code ``` Uri uri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_RINGTONE); Ringtone rt = RingtoneManager.getRingtone(context,uri); ``` and in the rt (Ringtone), I can see th...
2018/03/15
380
1,481
<issue_start>username_0: Hello every one I am working with laravel and developing my first package and I need to add some css and javascript files with my package can any one answer me what is the right way to do this task.<issue_comment>username_1: You cannot directly add the assets from Your Laravel Package for that ...
2018/03/15
994
3,650
<issue_start>username_0: In a project of mine, I try to display Angular Components (like an Autocomplete Dropdown Search) in a table. Because of the requirements I have (like multi-selecting different cells with `ctrl`+click) I decided to give it a go with handsontable. I've used the [handsontable renderer](https://do...
2018/03/15
575
2,361
<issue_start>username_0: After clicking on a link it opens up PDF in a new tab in chrome. The PDF can contains more than one page. The PDF is inside an tag . What I want to achieve is by using either javascript or jQuery to be able to scroll the PDF in developer's tool console of chrome browser. When I click right on ...
2018/03/15
543
1,934
<issue_start>username_0: I'm having trouble installing one of my python scripts. It has the following structure: ``` myproject setup.py src myproject otherfolders main.py __init__.py ``` And my `setup.py`creates an entry point like this: ``` from setuptools import setup, find_packages set...
2018/03/15
2,269
8,176
<issue_start>username_0: My app using Altbeacon library for beacon scanning. my code working well to api level 24(android 7) but doesn't not working on oreo(8.0.0) at first, my gradle setting compileSdkVersion and targetSdkVersion is 26, i thought it was because of this. so, i reference this\*\*<https://developer.an...
2018/03/15
387
1,507
<issue_start>username_0: I found this error in my wordpress site Warning: require(/home/cjstech/public\_html/wp-admin/wp-blog-header.php): failed to open stream: No such file or directory in /home/cjstech/public\_html/wp-admin/index.php on line 17 I will gladly appreciate anyone who has some knowledge about how to fi...
2018/03/15
320
938
<issue_start>username_0: I want to update multiple values with if else shorthand, like this: ``` let a = 0; let b = 1; let bool = true; if(bool) { a = 4; b = 7; } ``` with shorthand like this: ``` bool ? a = 8, b = 10 : null ``` but `Unexpected token ,`<issue_comment>username_1: You can wrap them in the `()...
2018/03/15
751
2,579
<issue_start>username_0: For my simple application where I chose to write my own solution for blog comments, I'm doing these 3 steps: **1. Taking data from basic HTML form inputs** via POST, then escaping the strings like this: ``` $komentar = htmlspecialchars($_POST['komentar'], ENT_QUOTES, 'UTF-8'); ``` **2. Usin...
2018/03/15
2,266
7,790
<issue_start>username_0: I'm new to Angular and Angular Material, now I'm working as a support in some project. There's a grid with filters and one checkbox, which checks if user in grid is active, inactive, or not chosen. It would be simpler with only two options (active, inactive) but well, I have to make 3 states fo...
2018/03/15
2,317
8,095
<issue_start>username_0: I am developing a mail editor based in TinyMCE, in which the user should be able to insert "snippets"/"templates"/"placeholders" which should be treated as units, not text. For instance, when creating the email to participants for an event, one "template" should be **[EventName]** or **[Partici...
2018/03/15
400
1,278
<issue_start>username_0: I noticed that console.info() no longer shows an (i) icon to the left of the line. There is no difference between console.info() and console.log(). On 49.0.2623.112 (on XP) it looks like this: [![Output from console.info()](https://i.stack.imgur.com/acrcf.png)](https://i.stack.imgur.com/acrcf...
2018/03/15
1,040
2,840
<issue_start>username_0: From GeeksforGeeks I found this defination : > > Bubble Sort is the simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are in wrong order. > > > Example: > > > > ``` > > First Pass: > ( 5 1 4 2 8 ) –> ( 1 5 4 2 8 ), Here, algorithm compares the f...
2018/03/15
675
2,249
<issue_start>username_0: Say, if I want to change the color of an ng-repeat element when a certain condition is satisfied. I tried using element.css, but that changes the color of all the elements in ng-repeat. ``` ### {{ day }} ``` Here is my controller and directive : ``` var app = angular.module('exampleApp'...
2018/03/15
912
2,949
<issue_start>username_0: I am trying to use u-net with keras implementation, I am using the following repo <https://github.com/zhixuhao/unet> it works well, but my problem is a two-class segmentation problem, so I want to set the accuracy metric to jaccard, and also the loss function I tried to define the function: `...
2018/03/15
1,588
5,266
<issue_start>username_0: I try to make a level indicator which beeps quicker when the phone reach an horizontal position (using the accelerometer), the beep sound plays after a touch on the screen and stop if screen is touched again. So I made the following code, and the problem I have is that since I've add the "beep"...
2018/03/15
458
1,728
<issue_start>username_0: Jenkins SECURITY-248 states that I should "Disable the visualization of Injected Environment variables in the global configuration." I cannot find this setting in the Configuration. Any help will be appreciated.<issue_comment>username_1: Configure Global Security {buildhost}/configureSecurity/ ...
2018/03/15
1,390
4,954
<issue_start>username_0: I am new to React. I am building a component in Visual Studio 2017 where a user enters some text and, according to that, values are fetched from a database and shown in a `div`. Below is the class and interfaces I am using. ``` interface ISearchForm { suggestionList: ISuggestionList[]; se...
2018/03/15
635
2,245
<issue_start>username_0: This tutorial of Google Kubernetes Engine seems not to work. > > <https://cloud.google.com/kubernetes-engine/docs/tutorials/hello-app> > > > ``` $ gcloud beta container clusters create hello-cluster --num-nodes=3 WARNING: You invoked `gcloud beta`, but with current configuration Kubernete...
2018/03/15
1,236
4,012
<issue_start>username_0: We have a Node.js lib, recently we added a type definitions for it. But how could I test the type definition?<issue_comment>username_1: The tests in [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped) are files that are supposed to type-check correctly. So the test exercises ...
2018/03/15
618
2,358
<issue_start>username_0: I've been using NTLK classifiers to train datasets and classify single record. For training the records I use this function, ``` nltk.NaiveBayesClassifier.train(train_set) ``` For classifying a single record, ``` nltk.NaiveBayesClassifier.classify(record) ``` where, "record" is the varia...
2018/03/15
467
1,892
<issue_start>username_0: I have a Entity using a different database than the one in use by the default connection, so into entity's annotations i have put : ``` /** * MyClassName * * @ORM\Table(name="mytable", schema="`myschema`") * @ORM\Entity(repositoryClass="App\...\MyClassNameRepository...
2018/03/15
1,440
4,599
<issue_start>username_0: Array.fill() ------------ ``` Array(10).fill(0); ``` Array.Apply() ------------- ``` Array.apply(0, new Array(10)); ``` Both are doing similarly same. So what is the difference between them and which one is best for performance? I got a pretty much answer. But Update: ------- **Array.f...
2018/03/15
640
2,882
<issue_start>username_0: Okay, I know the question may sound stupid. I’m building an app where there are pages that publish posts and users can subscribe/unsubscribe to those pages. The goal here is to find a way to send notifications whenever a new post is published but only to the subscribed users. I though that I ...
2018/03/15
1,556
5,128
<issue_start>username_0: I am using the below logic to download 3 file from the array at once, once all 3 completed only the next 3 files will be picked up. ``` parallel=3 downLoad() { while (( "$#" )); do for (( i=0; i<$parallel; i++ )); do echo "down...
2018/03/15
1,419
4,573
<issue_start>username_0: Is there a simple program which demonstrates how queues work in Go. I just need something like add number 1 to 10 in queue and pull those from the queue in parallel using another thread.<issue_comment>username_1: A queue that is safe for concurrent use is basically a language construct: [channe...
2018/03/15
728
3,061
<issue_start>username_0: I just wrote this code to test something for a better understanding of reflection. This is the ReflectionTestMain class: ``` import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; public class ReflectionTestMain { public stati...
2018/03/15
863
2,673
<issue_start>username_0: I want to implement in python a simple model for optical propagation. The rule is that if I chain three elements *m0 -> m1-> m2* what I would get as system is: * tau = tau0 \* tau1 \* tau2 * B = B2 + B1\*tau2 + B0\*tau2\*tau1 (tau is transmission, B is background). I wanted to implement over...
2018/03/15
853
3,292
<issue_start>username_0: [![enter image description here](https://i.stack.imgur.com/OKBbF.png)](https://i.stack.imgur.com/OKBbF.png) I have problem with activity navigation. I have 3 activities. 1) `ActivityA` is list of Invoice 2) `ActivityB` is list of Items of Invoice (invoice detail) 3) `ActivityC` is product l...
2018/03/15
926
3,414
<issue_start>username_0: I have Services set up in Angular to fetch JSON data from REST webservices. Now I consume data from service in `OnInit` method and store in local made array. But when I access them it shows `undefined`. Services are working fine, checked that data is coming or not. Sorry for bad english, not na...
2018/03/15
408
1,726
<issue_start>username_0: I have been into alexa development and recently I have encountered a never before situation. While trying to enable testing on a new skill, I am getting the following error on the **test** tab : > > There was a failure enabling your skill, please try again. > > > I know that this might ha...
2018/03/15
285
1,031
<issue_start>username_0: I'm working with opencv in my last study's project. I have python 2.7 x86 and opencv 3.4 already installed. I developed my python project in windows 8 64 bit and I converted my application from .py to .exe through Pyinstaller and it's working fine . But when I move my application to the indust...
2018/03/15
474
1,310
<issue_start>username_0: Hopefully this is quite straight forward. I am trying to convert a column to int so I can sum on it. ``` SELECT (cast(RTRIM(pricing_prices)as int)) FROM returnxx where RMAid= '5' ``` **errors** > > Conversion failed when converting the nvarchar value > '9.8000000000000007' to data type in...
2018/03/15
574
1,594
<issue_start>username_0: Is it possible to use varName1[varName2] to retrieve a value from an array. In the example below, .el is a select box, thisVal might = 2 and thisName = 'B' which should result in the answer 'U' in fact I am getting undefined ``` var A = ['B','B','Z','Z'] var B = ['C','O','U','C2','C3','D'] va...
2018/03/15
520
1,434
<issue_start>username_0: I have an array $faecher to create an SELECT Field with options. My problem is that I want to pre-select an option which is saved in variable f\_name1. ``` php for ($i = 0; $i <= count($faecher); $i++) echo "<option" if ($faecher[$i] == f\_name1) echo 'selected="selected"'; "".$faecher[$i...
2018/03/15
442
1,370
<issue_start>username_0: what's the most efficient way to do this in CSS??? Basically it looks like this: {F}IRST {L}ETTER, where the letters in the braces are a little bigger than the other ones but they all the letters are uppercase. Any suggestions?<issue_comment>username_1: Use [font-variant](https://www.w3schools...
2018/03/15
1,228
3,821
<issue_start>username_0: I want to set different font sizes for iPhone 5, iPhone 6 Plus, iPhone 7 Plus and iPhone X using Xcode Storyboard. Can anyone offer any advice? [![Example is shown in the image where i was stuck.](https://i.stack.imgur.com/rqADm.png)](https://i.stack.imgur.com/rqADm.png)<issue_comment>usernam...
2018/03/15
343
1,268
<issue_start>username_0: I am using smartgit for accessing files from git. I tried PULL and FETCH option to update. But no change. I don't know what to do?<issue_comment>username_1: The problem of committing to the same branch (or branching from the same head) is that if there is a problem in one pull request, we canno...
2018/03/15
585
2,388
<issue_start>username_0: I've found [this amazing site](http://skilltemplates.com) to generate my first Alexa skill. I've uploaded the standard template they have and it passes all the checks. [![enter image description here](https://i.stack.imgur.com/D6V2L.png)](https://i.stack.imgur.com/D6V2L.png) **Please note t...
2018/03/15
294
1,149
<issue_start>username_0: I know that I can find the columns of any table in a microsoft sql server database using: ``` USE dbname; SELECT COLUMN_NAME AS 'ColumnName',TABLE_NAME AS 'TableName' FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME LIKE '%search-for%' ORDER BY TableName,ColumnName; ```...
2018/03/15
1,008
3,338
<issue_start>username_0: I have two ajax calls i.e. ``` var ajax1 = $.ajax({ url: Url1 }); var ajax2 = $.ajax({ url: Url2 }); $.when(ajax1, ajax2).then(function (response1, response2) { }); ``` We want to conditionally handle the failure cases for these API deferred requests: 1. If ajax1 is success and ajax2 is ...
2018/03/15
705
1,922
<issue_start>username_0: I want to add a closing bracket to the math expression within the string ``` var str = "solve this now Math.sqrt(345+6 is good but Math.sin(79 is better."; var patt1 = /\((d+)/g; var result = str.match(patt1); document.getElementById("demo").innerHTML = result; ``` The match patter display...
2018/03/15
833
1,955
<issue_start>username_0: I need to shape versions in a specific format. For instance: ``` V1=1.0.1 V2=4.0.1 V3=3.1.101 ... ``` Need to be pad with 0 as follow: ``` V1=001.000.001.000 V2=004.000.001.000 V3=003.001.101.000 ... ``` Any idea on how i can do that? EDIT: I succeed using printf as follow: ``` print...
2018/03/15
585
1,614
<issue_start>username_0: How does rolling update work in kubernetes internally. Is it one pod after another. will the update get stuck or takes time if one of the pod goes to error state during the update<issue_comment>username_1: Use negative lookahead assertion. ```js var str = "solve this now Math.sqrt(345+6 is goo...
2018/03/15
758
2,702
<issue_start>username_0: Xamarin App Deployment failing with error "apksigner.BAT" exited with code 2 . JDK version 1.8.162<issue_comment>username_1: Try downgrading the JDK to 1.8.131. i faced the problems with 1.8.161 and 1.8.162. If u are using JDK 9, then downgrade to JDK-8 Upvotes: 3 [selected_answer]<issue_com...
2018/03/15
391
1,177
<issue_start>username_0: I have table with the fields `Amount, Condition1, Condition2`. Example: ``` Amount Condition1 Condition2 ---------------------------------- 123 Yes Yes 234 No Yes 900 Yes No ``` I want to calculate the 20% of the amount based on condition: If both...
2018/03/15
203
668
<issue_start>username_0: How can I capitalize the first letter of a string using Angular or typescript?<issue_comment>username_1: ``` var str = 'santosh'; str = str ? str.charAt(0).toUpperCase() + str.substr(1).toLowerCase() : ''; ``` Upvotes: 2 <issue_comment>username_2: ``` let str:string = 'hello'; str = str[0].t...
2018/03/15
1,255
4,320
<issue_start>username_0: I try to receive token via POST json {"email":"<EMAIL>","password":"<PASSWORD>"}. In postman it works: [Postman request](https://i.stack.imgur.com/b6J3J.png). I try do the same in Android Studio. I create class Token: ``` public class Token { @SerializedName("token") @Expose ...
2018/03/15
615
2,291
<issue_start>username_0: I am using the SSIS package to read the data from the flat file and then push the data to the SQL Server db. But some of the incoming columns are containing the blank spaces and i would like to trim them. I am unable to understand how to perform this small task of column trimmming inside the ...
2018/03/15
588
2,344
<issue_start>username_0: I have a dynamically created form with all inputs. I am subscribing for changes, but when a control is changed I get the values from all the controls, so I don't really know which one is changed. Is it possible to get the changed value only from the changed control with the valueChanges functio...
2018/03/15
382
1,297
<issue_start>username_0: I have a : ```css select:invalid { color: red; } ``` ```html - please choose - A B ``` Unfortunately the disabled select is not marked red. Any idea? It's not the option I like to style, I like to style the select! ---------------------------------------------------------------...
2018/03/15
1,332
5,192
<issue_start>username_0: I'm writing a basic application to test the Interactive Queries feature of Kafka Streams. Here is the code: ``` public static void main(String[] args) { StreamsBuilder builder = new StreamsBuilder(); KeyValueBytesStoreSupplier waypointsStoreSupplier = Stores.persistentKeyValueStore("t...
2018/03/15
963
3,342
<issue_start>username_0: **My Original URL** > > <http://www.mcoh.co.in/blog-single?category=Blog&id=Janurary%202018%20Product%20training%20Scores> > > > **and Expecting in:** > > <http://www.mcoh.co.in/mcohBlog/Janurary%202018%20Product%20training%20Scores> > > > But Am receiving same url as original. ``...
2018/03/15
488
1,539
<issue_start>username_0: I have the following groovy dependency declared: ``` @GrabResolver(name='mymirror', root='http://myartifactory/public/') @Grab(group='groupid', module='artifactid', version='1.2.3') println //What should I write here to see: c:\Users....m2....artifactid.jar ``` How can I get the location of ...
2018/03/15
542
1,732
<issue_start>username_0: I have a R dataframe like this: ``` ID Event Out A 0 0 A 1 1 A 1 1 A 0 0 A 1 2 B 1 3 B 0 0 C 1 4 C 1 4 C 1 4 ``` I am trying to create the `out` field which is a sequential co...
2018/03/15
450
1,477
<issue_start>username_0: I would like to retrieve the names of people who didn't work on a project in PostgreSQL. I got a table named `employees` with their `names` and `ssn`. My second table is called `works_on` and includes `ssn` and `project_number` `ssn` here is a `foreign key` from `employees` Now I tried the ...
2018/03/15
1,194
3,611
<issue_start>username_0: Is there any package in Python that provides a dictionary for vectorized access with NumPy arrays? I am looking for something like this: ``` >>> vector_dict = VectorizedDict({1: "One", ... 2: "Two", ... 3: "Three"}, ... ...
2018/03/15
415
1,669
<issue_start>username_0: I have a cloud function that translates text using google translate api. It utilizes this piece of code: ``` const functions = require('firebase-functions'); function createTranslateUrl(lang, text) { return `https://www.googleapis.com/language/translate/v2?key=${functions.config().firebase....
2018/03/15
3,453
7,329
<issue_start>username_0: I have an unknown number `n` of variables that can range from 0 to 1 with some known step `s`, with the condition that they sum up to 1. I want to create a matrix of all combinations. For example, if `n=3` and `s=0.33333` then the grid will be (The order is not important): ``` 0.00, 0.00, 1.00...
2018/03/15
1,076
3,807
<issue_start>username_0: I just started using Jena Apache, on their introduction they explain how to write out the created model. As input I'm using a Turtle syntax file containing some data about some OWL ontologies, and I'm using the @base directive to use relative URI's on the syntax: ``` @base . ``` And then wr...
2018/03/15
377
1,288
<issue_start>username_0: Having issues with merging some IFs and VLOOKUPs most probably. Basically, workflow would look like below and I don't quite know how to type it into one formula. 1. Look for value from **Values to look for** in the table on the right hand side. 2. If found in the **list** text string, return t...
2018/03/15
482
1,526
<issue_start>username_0: I have two lists and I need to do a combination of strings from these lists, I have tried but I think it's not very efficient for larger lists. ``` data = ['keywords', 'testcases'] data_combination = ['data', 'index'] final_list = [] for val in data: for comb in range(len(data_combination)...
2018/03/15
705
2,090
<issue_start>username_0: I wrote a shell script that calls the ffmpeg tool but when I run it, it says No such file or directory yet it does! Here is my script: ``` #!/bin/bash MAIN_DIR="/media/sf_data/pipeline" FFMPEG_DIR="/media/sf_data/livraison_transcripts/ffmpeg-git-20180208-64bit-static" for file in MAIN_DIR/...
2018/03/15
543
1,940
<issue_start>username_0: The check() is called from the html, and the return value should be true/false. ``` ng-class="{'timeline-inverted: check(id)'}" ``` The `$scope.server.get()` get `result(r)` from the server script, and I need to return the `$scope.result` to the `check()` function. Here is my code in angula...
2018/03/15
1,376
2,752
<issue_start>username_0: FOR example here are two data files: file1: ``` target 1 6791340 10.9213 2 6934561 9.6791 3 6766224 9.5835 4 6753444 9.1097 5 6809077 8.7386 6 6818752 8.7172 ``` fil2: ``` 1 6766224 11.7845 2 6753444 9.6863 3 6809077 9.5252 4 6818752 9.3867 5 679...
2018/03/15
914
3,443
<issue_start>username_0: Hell I ma new in angular 5. I am create a login and auth service. But i cannot compile my code. Here is my code ``` // user.service.ts import { Injectable } from '@angular/core'; import { Http, Headers } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/oper...
2018/03/15
386
1,366
<issue_start>username_0: I have the following list from my configuration: ``` val markets = Configuration.getStringList("markets"); ``` To create a sequence out of it I write this code: ``` JavaConverters.asScalaIteratorConverter(markets.iterator()).asScala.toSeq ``` **I wish I could do it in a less verbose way**...
2018/03/15
392
1,282
<issue_start>username_0: I have been adding a bottom shadow to a `UIButton` this way: ``` class MyButton: UIButton { override func layoutSubviews() { super.layoutSubviews() self.layer.shadowOpacity = 0.33 self.layer.shadowRadius = 4.0 self.layer.shadowColor = UIColor.blue.cgColor ...
2018/03/15
283
899
<issue_start>username_0: Let's say I have DB Tables like that: ``` Continent -> Countries -> Cities -> Lakes ``` Now i want to include them ``` _db.Continents .Include(p => p.Countries) .ThenInclude(c => c.Cities) .Include(p => p.Countries) .ThenInclude(p => p.Lakes) ``` Is this th...
2018/03/15
444
1,622
<issue_start>username_0: I prepare to perform a simple project and I don’t know what I should use to accomplish this. I need to receive a data entered by a user (via a webpage) and store them somewhere. I need them to be able to search and returned on the user request. I’m a little old-fashioned so I assumed that shoul...
2018/03/15
1,072
3,936
<issue_start>username_0: There's quite good doc of using \*ngIf in Angular: <https://angular.io/api/common/NgIf> But, is that possible to have \*ngIf async variable and multiple checks on that? Something like: ``` ... ``` Of course, it's possible to use nested \*ngIf, like: ``` ... ``` but it'd be really nice ...
2018/03/15
646
2,106
<issue_start>username_0: I need a SQL/Oracle function that compares two numbers if number are even like( 22,10,4,12,6..) true if are odd number like(3,7,13,5...) false. ``` CREATE OR REPLACE FUNCTION is_even(num_in NUMBER) RETURN BOOLEAN IS BEGIN IF MOD(num_in, 2) = 0 THEN RETURN TRUE; END IF; EXCEPTION W...
2018/03/15
1,149
3,559
<issue_start>username_0: I have the output of a Markov transition table, which is a list of 59 lists each with 59 floats. I want to invert each of the non-0 floats, and then normalise the output so that again I have a list of probabilities which add up to 1. I have read the textbook on list comprehensions, and that s...
2018/03/15
1,173
3,656
<issue_start>username_0: I'm writing Appium tests that runs against both Android and ioS. When I try to find a MobileElement that's not visable, the timeout takes more than the specified time. If I use a By.id, the timeout is correct. Timeouts after 45 s ``` @AndroidFindBy(id = "ok_button") private MobileElement okBu...
2018/03/15
487
1,495
<issue_start>username_0: I'm using sequelize with postgres, Is there a way to perform a "not contains" statement with sequelize? something like: ``` [Op.not]: { [Op.contains]: ['value1','value2'] } ``` which produces: ``` SELECT * FROM Table WHERE NOT ArrayColumn @>ARRAY['value1','value2']::VARCHAR(255)[] ``...
2018/03/15
387
1,379
<issue_start>username_0: I am trying to POST to a google maps service. If you click on the URL you will see the JSON response that I am expecting to get ``` var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest; var xhr = new XMLHttpRequest() var url = "https://maps.googleapis.com/maps/api/directions/json?ori...
2018/03/15
497
1,390
<issue_start>username_0: I have a table like this ``` ID | UserID | Time | 3 9200 10/12/2016 2 9200 11/12/2016 1 9200 13/12/2016 4 1000 01/10/2017 5 1000 03/10/2017 ``` Now I want to select the minimum date for a user id i.e., ``` userID Time 9200 10/12/2016 1000 ...
2018/03/15
1,096
3,746
<issue_start>username_0: I have the following statement: ``` Customer.where(city_id: cities) ``` which results in the following SQL statement: ``` SELECT customers.* FROM customers WHERE customers.city_id IN (SELECT cities.id FROM cities... ``` Is this intended behavior? Is it documented somewhere? I will not use...
2018/03/15
509
1,573
<issue_start>username_0: I'm connecting with Java to neo4j using the GraphDatabase.driver and I have this log4j.properties file which suppresses the output of HBase and MongoDB but doesn't work with neo4j: ``` log4j.rootLogger=OFF, stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.Tar...
2018/03/15
1,489
4,331
<issue_start>username_0: my project has multiple domains and I would like to redirect 100 pages for 1 of these domain. Now I found [this post](https://stackoverflow.com/questions/10232722/htaccess-rewrite-based-on-hostname-or-domain-name) on how to set up conditions for 1 domain. ``` RewriteCond %{HTTP_HOST} ^www\....
2018/03/15
241
1,027
<issue_start>username_0: How can we schedule the orders to be exported into FTP for every 1 hour in the big commerce? I can export it manually but i need something to run automatically to export the orders data to FTP.Is it possible in BigCommerce? Thanks, Manoj<issue_comment>username_1: At this time you are not able ...
2018/03/15
429
1,768
<issue_start>username_0: I have created a memory allocation library that can't be collected by GC. (<https://github.com/10sa/Unmanaged-Memory>) The heap area allocated by this library is basically obtained by using the WinAPI GetProcessHeap() function. You can also create a heap area and assign it to it. However, the ...
2018/03/15
572
2,195
<issue_start>username_0: I have a question about calling MVC Controller and action method on button click. What I basically trying to achieve is pass some values as parameters to my action method. This is my button: ``` ``` I have my code wrapped up inside a document.ready function ``` $("#add").on("click", funct...
2018/03/15
1,019
4,053
<issue_start>username_0: I have created a form in Angular 2 with which users can edit a `SearchProfile` which they can select from a list. Initially everything works fine but when i select a different item from the list of `SearchProfile`s I receive the following exception: `There is no FormControl instance attached to...
2018/03/15
484
1,589
<issue_start>username_0: I have a gitlab repo: <http://gitlabPerso/gitlab/PROJECTS/my-project.git> And I would like to add it to my current composer.json project. However it keeps saying me: > > * The requested package project/MyProjectBundle could not be found in any version, there may be a typo in the package nam...
2018/03/15
375
1,346
<issue_start>username_0: I am trying to implement parallel running TestNG tests with selenium grid, where grid gets dynamic nodes attached. Based on the number of nodes in the grid I want to increase or decrease the number of threads in the TestNG. Is it possible if so How? I have tried following cases. ```java publ...
2018/03/15
463
1,609
<issue_start>username_0: I need to write huge files ( more than 1 million lines) and send the file to a different machine where I need to read it with a Java `BufferedReader`, one line at a time. I was using indetned Json format but it turned out to be not very handy, it requires too much coding and that consumes ...
2018/03/15
432
1,473
<issue_start>username_0: ``` router.post('/:token',(req,res)=>{ let language= req.query.l let name= req.query.n let param =[] if(req.path.length == 5){ param.push({ language=language },{ name=name }) ddp.person_connected(param,function(err,res){ if(err){ res.err=err }else{ res.sucess=true ...
2018/03/15
378
1,319
<issue_start>username_0: I have Solr 7.2.1 and in my managed-schema.xml file I have a field which represents date object of type "pDate". Now I need to index also the time of the day, but I saw I can't search for the time with "pDate" field type. If I query solr searching for `my_date_field:[2018-03-12T00:00:00.000Z T...
2018/03/15
1,113
3,642
<issue_start>username_0: I have `JavaScript` tree data like this. ```js const tree = { children:[ {id: 10, children: [{id: 34, children:[]}, {id: 35, children:[]}, {id: 36, children:[]}]}, {id: 10, children: [ {id: 34, children:[ {id: 345, ...
2018/03/15
930
3,273
<issue_start>username_0: hay.. i have function delete on my controller .. in client side when i am delete catagories is work.. but, when i check oh phpmyadmin. the categories still has not been deleted.. this is my categoriesController for delete.. ``` ......... public function destroy(Request $request,$id) ...