date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/03
407
1,391
<issue_start>username_0: Seemed simple, but not so far. Tried lots of things. Best I've got: ``` echo "low quality not gonna apologize" | jq -r 'gsub("[\\s+]"; " "; "g")' parse error: Invalid numeric literal at line 1, column 4 ``` Goal is to have 1 space replace any occurrence of multiple whitespace of any ki...
2018/03/03
1,675
5,022
<issue_start>username_0: I'm learning on how to use Antlr4 to parse COBOL source codes. Currently, I'm following the steps, exactly as demonstrated by <NAME> in his Youtube [video](https://www.youtube.com/watch?v=O0D0Lc5syGA). Basically, I've downloaded `antlr-4.7.1-complete.jar` and placed it in `C:\Javalib`. Yes, I'...
2018/03/03
502
1,753
<issue_start>username_0: This works… ``` const { prop1:val1, prop2:val2 ) = req.query val1 = val1.toLowerCase() ``` --- Though, I'm more inclined to do something like ``` const { prop1.toLowerCase():val1, prop2:val2 } = req.query ``` or ``` const { prop1:val1.toLowerCase(), prop2:val2 } = req.query ``` neithe...
2018/03/03
510
1,346
<issue_start>username_0: can someone please translate this if statement into the common form? I cant understand what it means.. ``` //str[i++] = (rem > 9) ? (rem - 10) + 'a' : rem + '0'; ``` taken from this code: ``` while (num != 0) { int rem = num % base; str[i++] = (rem > 9)? (rem-10) + 'a' :...
2018/03/03
284
959
<issue_start>username_0: I have a page where I list the richest users on my game. ``` $topCredits = User::orderBy('credits', 'DESC')->limit($limit)->get(); ``` the limit is currently set to 5 and sometimes doesn't show a user if they aren't that rich. I need a way of still showing the user their position (IE: 1st, ...
2018/03/03
434
1,679
<issue_start>username_0: I have a system where there can be "posts", "comments" to the posts, and "comments" to other comments. Think of it as a very simplified facebook comment system. To back the data, I chose to use one table for both posts and comments, as their structure is pretty much the same: ID (of comment o...
2018/03/03
363
1,395
<issue_start>username_0: To be clear, I need to search the table in database, specifically field called `tags` which is defined as text. Into the database, I am entering those 'tags' as a string and then I am exploding / dividing this string of 'tags' by `explode()` method into array in `php`. But for search of multipl...
2018/03/03
1,024
3,451
<issue_start>username_0: Unfortunately, I'm working with some less-than-savoury data structures in Java and I have the task of removing what I'm calling "vertical duplicates" in a multi-value map (`Map>`) in which all values (`List`) are of the same size Here's an example of what I mean: ``` { // Column : 1 2 ...
2018/03/03
950
3,038
<issue_start>username_0: I am solving a question on LeetCode: > > Given a matrix consists of 0 and 1, find the distance of the nearest 0 for each cell. The distance between two adjacent cells is 1 *(important point)*. > > > > If input: > > > ``` [[0,0,0], [0,1,0], [1,1,1]] ``` > > then output: > > ...
2018/03/03
868
3,487
<issue_start>username_0: I have tried to get this to work and have been unsuccessful, I have tried 18 different ways all produced the same result. I have double checked and triple check everything. NOTHING HAS WORKED! I have validation done server side as a fall back if jquery does not work. the validation part works f...
2018/03/03
813
2,675
<issue_start>username_0: I have some fields on my site, and they are the same, but each one of then should update some jquery variable with it's value. ``` ``` I need that depending on the data-atribute, they run the same function, but update the variable pointed in the atribute. Example: ``` for = "0"; int = "0";...
2018/03/03
277
1,095
<issue_start>username_0: I want to instantly call a phone number using javascript code. So far i have used window.open('tel: '), but the user still has to press the call button. Is there a way to bypass this security mesure, and as soon as the user presses the button, the call is made, without the need to confirm it?<i...
2018/03/03
1,722
5,294
<issue_start>username_0: In Woocommerce, I Would like co create add to cart link on a simple page of WordPress website *(not product page)*. So I have tried this code *(Where 123 is the product ID)*: ``` [Buy](http://example.com/cart/?add-to-cart=123) ``` I have enabled AJAX add to cart on archives pages Woocommer...
2018/03/03
706
2,456
<issue_start>username_0: I want to get input from user, multiply it by 1.3 for example and output to window instantly, like as user types function is executing and displaying in it in HTML instantly. How do it do it? Here my code ```js function calc() { amount = document.getElementById("amount").value; ...
2018/03/03
974
3,142
<issue_start>username_0: I'm working on creating a custom header. I'm not sure how to properly perfectly inline my elements in my header. For example, these elements should be where the red arrows are pointing: [![enter image description here](https://i.stack.imgur.com/HMBkU.png)](https://i.stack.imgur.com/HMBkU.png) ...
2018/03/03
872
3,028
<issue_start>username_0: I cloned a project which is built on laravel 4.2. Currently my Xampp has a version 7.0.13.1 and has php version of 7.1. When i type `php artisan migrate`, it gives an error `[PDOException] SQLSTATE[HY000] [2002] No such file or directory` which means my artisan is not connected to my mysql ru...
2018/03/03
851
2,850
<issue_start>username_0: I have this button ```css .btn-feedback { padding: 5px 10px !important; } .btn-feedback { text-align: left; margin-bottom: 0; line-height: 1.45857; white-space: nowrap; vertical-align: middle; cursor: pointer; background-image: none; border-width: 1px; border-s...
2018/03/03
598
1,795
<issue_start>username_0: I know struct in C is a collection of data, but I'm not sure if I can manipulate it in the following way:- Say hypothetically I have something like the following: ``` typedef struct { char id[IDSIZE]; name name; int score; } record; ``` If I wanted to record data, can I simply...
2018/03/03
763
2,328
<issue_start>username_0: How can I update a column in a table to follow a specific pattern ? Currently my DesiredResultAfterUpdate is empty and I want to set it so that it would be 1,2,3 for IDs 1,2,3. Then it would be 1,2,3 for the next set of IDs, (IDs4,5,6 and 7,8,9 and so on)? ``` ID DesiredResultAfterUpdate Name ...
2018/03/03
519
2,052
<issue_start>username_0: I've started flutter app development. My question is, how can I remove the slow load banner in the flutter app. I've used the `Material` widget (not MaterialApp) where it doesn't contain that `debugShowCheckedModeBanner` property. Is there any possible way to get rid of that banner on my device...
2018/03/03
968
3,861
<issue_start>username_0: I'm working on a Webpack plugin that basically looks for a `css` assets inside the chunks, when it founds such asset, applies on it some `postCSS` plugin that returns 2 outputs, the one should continue to be extracted using `Extract-Text-Plugin` and the other output should become a **new module...
2018/03/03
1,195
4,400
<issue_start>username_0: I have created one stored procedure in Mysql and I am trying to call that stored procedure using J2EE/ Hibernate. While executing stored procedure its showing me error. > > Hibernate: call getUserData(?,?) > Mar 04, 2018 12:06:18 AM org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExcepti...
2018/03/03
920
3,412
<issue_start>username_0: I am trying to connect to Amazon Neptune instance by sending a HTTP Post request using Neptune END Point via Fiddler. But ending up in timeout error. Can Neptune instance be connected to via HTTP request using fiddler/Postman?<issue_comment>username_1: Yes, AWS Neptune end point can be connecte...
2018/03/03
1,118
4,133
<issue_start>username_0: My code in Javascript: ``` function saveChanges() { var formData = { ProjectId: $('#rz-project').val(), ArticleId: $('#rz-article').val() }; if (formData.ProjectId != null && formData.ArticleId != null) { $.ajax({ url: baseUrl + 'Time/EditReport', type: "post", ...
2018/03/03
1,000
3,771
<issue_start>username_0: Seems like after installing [WSO2 Enterprise Integrator](https://wso2.com/integration), by default when someone navigates to <http://serverip:port/services/> all the deployed services (including those secured with a security policy) and their available operations are being listed. each service ...
2018/03/03
860
2,554
<issue_start>username_0: I have a MySQL table for data containing earnings for taxi / uber rides with the following fields: ``` id ride_date ride_earnings ride_tips ``` I am trying to get a list of the most "profitable" dates, I can do: ``` SELECT DATE(ride_date) as d, SUM(ride_earnings+ride_tips) as total, COUNT(...
2018/03/03
420
1,415
<issue_start>username_0: I don't know how to separate strings recovered with the function text() of jquery. ``` var gamesOfResults = $('.game').text() + "/"; console.log(gamesOfResults); ``` For each result i want to add a seperator like "/" to split this string in an array. At the moment i have this in my c...
2018/03/03
451
1,570
<issue_start>username_0: I would like to trigger the display of a date input's date-picker from an external button. ``` display date ``` For instance if I had the above code, how would I show the date-picker (the box which appears and allows you to pick a date) by clicking the button? I do not want to use jQuery or...
2018/03/03
517
2,342
<issue_start>username_0: I am trying to create a new audience in Firebase analytics which includes "new" users, for example users that have been using the app less than two weeks. I have tried to create an audience based on "first\_open\_date" being ">" or "greater than" but when I get to the date field, it has to be ...
2018/03/03
519
2,175
<issue_start>username_0: I have a custom command that I create call PUSH I want to run `PUSH #1 #2 #3 #4` I want to dynamically access all my arguments, I seem to have a hard time. How do I correctly do it? I want to access `#1 #2 #3 #4` I know I can not use $1, $2, $3, or $4. I've tried `PUSH a b c | ech...
2018/03/03
738
3,287
<issue_start>username_0: My program does not have any Syntax errors but logic. The output should show if it is correct or incorrect for each question, and show how many the quiz taker gets correct and how many incorrect at the end of the quiz. ``` import java.util.Scanner; public class SubtractionQuiz { public sta...
2018/03/03
706
2,910
<issue_start>username_0: Let´s say you have the following DataFrame: ``` DF <- as.data.frame(cbind(c("Aa1","aB1","aA1"),c("A","B","A"),c("D","F","G"))) colnames(DF)[1] <- "State1" colnames(DF)[2] <- "StringToBeReplaced" colnames(DF)[3] <- "StringToTakeItsPlace" ``` which should yield ``` State1 StringToBeReplaced...
2018/03/03
1,986
6,954
<issue_start>username_0: I updated my website (development version) to wagtail 2.0 and all RichTextField attributes of my pages are totally uneditable, with Draftail.js. I added the following lines, in my settings.py: ``` WAGTAILADMIN_RICH_TEXT_EDITORS = { 'default': { 'WIDGET': 'wagtail.admin.rich_text.Ha...
2018/03/03
261
837
<issue_start>username_0: I want add to stage a label with specified font size. ``` val label = Label("label", Skin(Gdx.files.internal("uiskin.json"))) label.height = 20f stage.addActor(label) ``` Changing label.height does not works, label is shown with some default size. So the question is how to set label font siz...
2018/03/03
817
2,865
<issue_start>username_0: I want to get images from server into my Android app. My first steps are: I have this JSON string array from [server](https://augmentedandroidapp.000webhostapp.com/) `{"results":"[{\"url\":\"https:\\\/\\\/augmentedandroidapp.000webhostapp.com\\\/images\\\/kamara1.jpg\"},{\"url\":\"https:\\\/...
2018/03/03
697
2,735
<issue_start>username_0: I have a database table `roles` with 96 predefined data rows, but when I start the server (that is running on Tomcat 8.5.28) it empties that table. I was wondering why it would do that? **RoleController** ``` @RestController public class RoleController { private final Logger logger = Lo...
2018/03/03
964
3,449
<issue_start>username_0: I a struggling to save the chosen information from my selection box. I get the message: > > "SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`clientpad_notes`.`notebooks`, CONSTRAINT `notebooks_contact_id_foreign` FOREIGN...
2018/03/03
1,293
4,113
<issue_start>username_0: I am trying to run use kibana console with my local elasticsearch (container) In the [ElasticSearch documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html) I see ``` docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elas...
2018/03/03
1,234
4,020
<issue_start>username_0: I have branched both the node red git repo and the node red docker image and am trying to modify the settings.js file to enable Projects Functionality. The settings file that ends up in the Docker Container does not seem to be my modified one. My aim is to use the Docker image in a Cloud Foundr...
2018/03/03
344
1,331
<issue_start>username_0: I have my `ORDER BY` clause as following: ``` ... ORDER BY CASE WHEN boolean_column is true THEN text_column END ASC, CASE WHEN boolean_column is false THEN text_column END DESC ``` Is it somehow possible to replace the second `CASE` in an `ELSE`? It feels odd to have two condition...
2018/03/03
389
1,380
<issue_start>username_0: In the code below i try to assign a value to lineDash. If I use [10,5] it works like a charm. But it does not work using a array variable name. What is wrong? ``` $dash = [10,5]; "MultiLineString": [new ol.style.Style({ stroke: new ol.style.Stroke({ color: "'.$a_Colour.'", wi...
2018/03/03
489
1,774
<issue_start>username_0: For a node application I have a list of uploaded files shown with Ractive which works great so far. One of the fields I use is the Filetype (in my Data stored as extension e.g. `FileType: pptx`). In my ractive Template I'd like to show a corresponding Image to the type of File uploaded for vi...
2018/03/03
348
1,247
<issue_start>username_0: Im retrieving images from thee google places API on my PHP server by using the following lines of code ``` $response = file_get_contents($url); ``` I'm also writing this file onto a folder on the server like so: (The file returned is a binary file, not an image file) ``` file_put_co...
2018/03/03
818
2,588
<issue_start>username_0: I have the following dictionary: ``` let dict = ["key1": "v1", "key2": "v1", "key3": "v2"] ``` I want to swap the values for keys so that the result to be: ``` result = ["v1": ["key1", "key2"], "v2": ["key3"]] ``` How can I do this without using `for` loops (i.e. in a functional way)?<iss...
2018/03/03
1,055
3,475
<issue_start>username_0: I am trying to grasp the concept. I have never worked with `ArrayList`s before (just arrays). What I have is: ``` ArrayList> movies = new ArrayList>(); ``` What this will look like or the way I picture it is: ``` [[Ratatouille, A Bug's Life], [Tangled, Zootopia, Finding Dory], [<NAME>]] ...
2018/03/03
617
2,165
<issue_start>username_0: So, I'm trying to make a program that can encrypt and decrypt vigenere ciphers in python 3. I'm doing this for practice, but I'm really struggling with the creation of a cipher matrix. If you're unfamiliar with vigenere ciphers, [here's a helpful photo of what I want.](https://i.stack.imgur.c...
2018/03/03
361
908
<issue_start>username_0: I have a series of decimal numbers (marathon race split times): 64.90, etc., and I want to convert it into HH:MM:SS format using R so that I can us the result to do time math. The answer I am looking for is: 1:04:54. chron doesn't seem to be doing what I'm expecting it to do. > > chron::time...
2018/03/03
1,134
3,424
<issue_start>username_0: I'm having a difficulty, a user click and it's not a background code, and clicking again has to go back to the previous one. This is happening, but doing all this again does not go, it's as if a jquery executes only once. The even paragraphs have their color and the odd paragraphs have their c...
2018/03/03
2,763
9,091
<issue_start>username_0: I am trying to use Spark for processing JSON data with variable structure(nested JSON). Input JSON data could be very large with more than 1000 of keys per row and one batch could be more than 20 GB. Entire batch has been generated from 30 data sources and 'key2' of each JSON can be used to id...
2018/03/03
344
1,248
<issue_start>username_0: Every time I try to create a new environment with anaconda in the Windows Command Prompt I get this error: ``` File "", line 1 conda create -n 11 python=3.6 ^ SyntaxError: invalid syntax ``` I use this command to create the environment: ``` conda create -n 11 python=3.6 ``` [Screensho...
2018/03/03
683
3,007
<issue_start>username_0: I am attempting to use OAuth 1 with the Twitter API using OAuthSwift. I have completed all of the setup steps while building successfully throughout, but on the last step I am getting an error. When I implement the following code, I get an error saying "The operations cannot be completed. (OAut...
2018/03/03
1,838
6,491
<issue_start>username_0: I'm trying to add a camera view to my widget using [this plugin](https://pub.dartlang.org/packages/image_picker), but I haven't been able to find any code examples on setting up a camera view or taking a picture. I only see an example on retrieving images stored on the device. Any help is appre...
2018/03/03
496
1,812
<issue_start>username_0: I have parent class: ``` public abstract class ParentClass { public ParentClass ParentMethod() { ... } } ``` Also I have two childs: ``` public class ChildA : ParentClass { public ChildA ChildAMethod1() { ... return this; } public ChildA ChildAMethod2...
2018/03/03
190
705
<issue_start>username_0: If I knit my document, I get the pdf output in the RStudio: View PDF window, which usually pops up or refreshes on command. Is it possible for this viewer to be located inside RStudio, in the bottom right pane, for example?<issue_comment>username_1: In my opinion, you just have to change on t...
2018/03/03
857
2,936
<issue_start>username_0: I was wondering which of `shuffle()` and `choice()` was more efficient. For example, I have a N element list `long_list` and need a random item from the list, is it quicker to do: ``` shuffle(long_list) return long_list[0] ``` or ``` return choice(long_list) ```<issue_comment>username_1: ...
2018/03/03
675
2,035
<issue_start>username_0: This is my DataFrame: ``` d = {'col1': ['sku 1.1', 'sku 1.2', 'sku 1.3'], 'col2': ['9.876.543,21', 654, '321,01']} df = pd.DataFrame(data=d) df col1 col2 0 sku 1.1 9.876.543,21 1 sku 1.2 654 2 sku 1.3 321,01 ``` Data in col2 are numbers in local f...
2018/03/03
468
1,805
<issue_start>username_0: I have a module like this: ``` module.exports = class Edge { constructor(vertex1, vertex2) { this.vertex1 = vertex1; this.vertex2 = vertex2; } } ``` I want to import it into some NodeJS files and some front-end files in Chrome. I know Chrome now supports ES6 modules, ...
2018/03/03
548
1,970
<issue_start>username_0: I have a `class A` which needs a new method if one of its arguments is set up to `true`. **Class A** ``` Class A{ private $is_new_method; public function __construct( $is_new_method = false, $new_method_name = "" ){ $this->is_new_method = $is_new_method; if( $this-...
2018/03/03
524
1,744
<issue_start>username_0: I am having trouble figuring out why `.cssRules` and `.rules` won't work in my simplistic color generator project. I have a element to link my external CSS file: ```html ``` And a `</code> element to link my external JS file before the <code></html></code> element:</p> <pre class="lang-htm...
2018/03/03
1,889
5,095
<issue_start>username_0: This regular expression validates timestamps e.g. 2018-02-12 00:55:22: ``` [0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1]) (2[0-3]|[01][0-9]):[0-5][0-9]:[0-5][0-9] ``` However, the timestamp should be validated step by step: ``` 201 => true 201a => false 2018- => true 20189 => false ``...
2018/03/03
937
3,332
<issue_start>username_0: In my component shoppingCart.vue file I'm calling a simple method: ``` saveCart : _.debounce(() => { console.log('hi'); }, 2000), ``` But I get the Error: Uncaught ReferenceError: \_ is not defined. Now gets the fun part. If I change the function for example to: ``` sav...
2018/03/03
539
1,623
<issue_start>username_0: I have 2 querys in Laravel like this ``` $topRespects = UserStats::with('user')->orderBy('Respect', 'DESC')->get(); $topReferrals = User::orderBy('user_referrals', 'DESC')->get(); ``` For example, this loop with show the content 10 times. ``` @foreach ($topReferrals->take(10) as $user) @en...
2018/03/03
540
2,142
<issue_start>username_0: i'm trying to authenticate on a .net api with Oauth token and i get the following error when i'm accessing the /auth route: > > A network-related or instance-specific error occurred while > establishing a connection to SQL Server. The server was not found or > was not accessible. Verify tha...
2018/03/03
471
1,805
<issue_start>username_0: **\* EDITED \*** **REF:** Calling a JavaScript function that returns a Boolean [on hold] ``` function booleanFunction() { if (something) return true; else return false; } ``` My original question was "When calling a Boolean Function, is it correct to say?": ``` if (booleanFunction) ...
2018/03/03
1,727
5,306
<issue_start>username_0: I am trying to read in files that contain sales data (name, location and amount). Each file is for a different person but can contain multiple entries. When I read them from disk, I get something like this: Step 1: ``` Array ( [0] => sue [1] => salem [2] => 30 ...
2018/03/03
820
3,185
<issue_start>username_0: Is there a way to eliminate all the "if" statements from this class and still maintain the exact same functionality ? So far I managed to simplify the code by creating the 2 extra functions: isNameValid and isPhoneValid, but I need a way to get rid of **all** the "if" statements. ``` public ...
2018/03/03
866
3,401
<issue_start>username_0: I want to protect most of my bash script with `set -e`, in order to fail early and loudly when an error is detected during the script's processing. However, I still want to be able to run some commands that are actually expected to fail, such as using `grep` to evaluate the presence/absence of ...
2018/03/03
725
2,605
<issue_start>username_0: given this example: ``` var obj = { 'a': 1, 'b': 2 }; ``` will be `a:1, b:2` as excected. But what if I have: ``` var b = 'myProperty'; var obj = { 'a': 1, b: 2 }; ``` I wanted to have `a: 1, myProperty: 2` but I still got `a: 1, b: 2`! How to fix it?<issue_comment>usernam...
2018/03/03
879
3,449
<issue_start>username_0: Im trying to make a script to fade off the volume of a html5 video. So I found a code to make it and I make some changes to fit my needs, getting something like this. ```js var videoMute = $('#myVideo').get(0); var heightVideo = parseInt( $("#contents-main").css("marginTop") ); $(docume...
2018/03/03
1,257
4,501
<issue_start>username_0: Does anyone know how to load a tsv file with embeddings generated from StarSpace into Gensim? Gensim documentation seems to use Word2Vec a lot and I couldn't find a pertinent answer. Thanks, Amulya<issue_comment>username_1: I've not been able to directly load the StarSpace embedding files usi...
2018/03/03
1,270
4,260
<issue_start>username_0: When I input a duration of `2.75` this function returns `'and 0 minute(s)'` when I need `'and 45 minute(s)'` returned. The problem is in the `else` `if` part. ``` void duration_time_min(double duration) { int duration_min; if (duration < 1) { duration_min = duration * 60; // decimal...
2018/03/03
960
3,207
<issue_start>username_0: I am trying to import mnist dataset using keras code in Macbook. but it is giving the error below. ```python # Loading the data from keras.datasets import mnist (x_train, y_train), (x_test, y_test) = mnist.load_data() ``` The error I am getting: ```python During handling of the above exce...
2018/03/03
436
1,599
<issue_start>username_0: How can I return a collection of documents from firestore database. For example, I have a collection named countries in cloud firestore, and I want to fetch all the country names and ids as json , like this ``` [ { "countryId" : 1, "countryName" : "Any" }, { ...
2018/03/03
472
1,741
<issue_start>username_0: I searched on Google for the past 2 hours and been using all kind of codes, even tried XML php (which turned out to be slow). I still haven't found a solution! **Here's what I want:** I need to search through this JSON file <https://s2.coinmarketcap.com/generated/search/quick_search.json> with...
2018/03/03
567
1,560
<issue_start>username_0: Consider the following code: ``` import numpy as np index_info = np.matrix([[1, 1], [1, 2]]) value = np.matrix([[0.5, 0.5]]) initial = np.zeros((3, 3)) ``` How can I produce a matrix, final, which has the structure of `initial` with the elements specified by `value` at the locations specif...
2018/03/03
3,118
4,690
<issue_start>username_0: I have the following data: ``` datetime price 2017-10-02 08:03:00 12877 2017-10-02 08:04:00 12877.5 2017-10-02 08:05:00 12879 2017-10-02 08:06:00 12875.5 2017-10-02 08:07:00 12875.5 2017-10-02 08:08:00 12878 2017-10-02 08:09:00 12878 2017-10-02 08:10:00 12878 2017-10-02 08:11:00 12881 2017-...
2018/03/03
345
1,115
<issue_start>username_0: I am trying to use model validation in ASP.NET WEBAPI Core. Below mentioned is the code from my model. ``` [Range(typeof(decimal), "1.0", "90.1")] public decimal price{ get; set; } ``` My understanding is, if I pass any value which is not in between 1.0 - 90.1, the `ModelState.Valid` should ...
2018/03/03
533
1,902
<issue_start>username_0: I'm really new to Docker and would like to create a container that has all my Ruby on Rails website and its dependencies in it. I read TONS of documentations and how-to's to do it but I keep struggling. Since I use Rubymine, there is a built-in tool that allows you to Dockerize the current pro...
2018/03/03
289
860
<issue_start>username_0: This is an html part I'd like to parse: ``` **0x61496a395F549XzxzxZ** ``` How can I replace this part: ``` 0x61496a395F549XzxzxZ ``` to ``` 8472875 ``` Thanks in advance.<issue_comment>username_1: You need to explicitly install node / npm in your container before running npm install. A...
2018/03/03
889
3,053
<issue_start>username_0: I have the following code, what I'm trying to do is change the color the the menubar to be the same as my window. I have tried what you see below, adding to `bg="#20232A"` to `menubar` but this seems to have no affect.. My Question: The below image is the window (albeit a snippet of the windo...
2018/03/03
702
2,347
<issue_start>username_0: I have checkbox entries that I am appending to a list by their html name, like so: ``` Choose no more than three categories: Asian Asian Fusion ``` I have many other checkboxes as well. I then implode this list by doing: ``` $sanentry=implode(',',$_REQUEST["boxsize"]); `...
2018/03/03
627
2,193
<issue_start>username_0: I am using Spark Structured streaming; My DataFrame has the following schema ``` root |-- data: struct (nullable = true) | |-- zoneId: string (nullable = true) | |-- deviceId: string (nullable = true) | |-- timeSinceLast: long (nullable = true) |-- date: date (nullable = tr...
2018/03/03
371
1,469
<issue_start>username_0: I'm using Streaming Analytics to retrieve JSON messages being placed on an IoTHub. I need to be able to retrieve, and store, in a SQL Server table, the raw JSON string. I can't seem to find a way to do this. Is it possible?<issue_comment>username_1: No, unless you wrap the json as string in ano...
2018/03/03
1,070
2,468
<issue_start>username_0: I've got a file that has a ton of text in it. Some of it looks like this: ``` X-DSPAM-Processed: Fri Jan 4 18:10:48 2008 X-DSPAM-Confidence: 0.6178 X-DSPAM-Probability: 0.0000 Details: http://source.sakaiproject.org/viewsvn/?view=rev&rev=39771 Author: <EMAIL> Date: 2008-01-04 18:08:50 -0500...
2018/03/03
893
2,617
<issue_start>username_0: so as i'm out of ideas I've turned to geniuses on this site. What I want to be able to do is to have two separate csv files. One of which has a bunch of store names on it, and the other to have black listed stores. I'd like to be able to run a python script that reads the 'black listed' sheet...
2018/03/03
722
1,969
<issue_start>username_0: I am attempting to connect my Ionic mobile app to AWS backend and keep getting the same error. Cannot find module "../aws-exports" I've checked the node-modules folder and this is missing, but I have no idea what I should put here to fix this error. The same code is in a lot of files in...
2018/03/03
968
3,308
<issue_start>username_0: I'm trying to add elements to a stack in another file but I am encountering an error. Here is the class I'm importing: ``` class Empty(Exception): """Error attempting to access an element from an empty container.""" pass class Stack_PlistLR: def __init__ (self): """Cr...
2018/03/03
8,631
31,518
<issue_start>username_0: **SOLVED:** My solution: I delete dataSource() method from DatabaseConfig.java. Then, the application was started successfully :) I've just updated my **Spring Boot** project from **1.5.x** to **2.0.0**. Before the update, this application works properly but after the update, I'm getting some ...
2018/03/03
459
1,261
<issue_start>username_0: I am attempting to place all the characters of a string into its own index in an array and also am trying to replace `" "` (spaces) with 0's. The error I'm getting is that is says ?wrong number of arguments (given 0, expected 1) but I'm not sure how to make `include(' ')` work. Here is my c...
2018/03/03
1,096
3,187
<issue_start>username_0: I am having trouble finishing this problem. Any hints to a possible solution will be appreciated. Given a `Double` value `v` and a list of `Double` values `xs`, `calcList` returns a list of `Double`s according to the following rules: 1. For each value `x` in `xs`, if `x` is not positive, ther...
2018/03/03
889
3,101
<issue_start>username_0: There are various answers for very similar questions around SO that all show what I *expect* my deployment to look like, however mine does not. * I am running Minikube 0.25, with Kubernetes 1.9 on Windows 10. * I have successfully created a node, a replication controller, and a single pod temp...
2018/03/03
530
1,681
<issue_start>username_0: In a controller I set the value: ``` ViewBag.incremento = 5; ``` I have the following View: ``` @model IEnumerable @{ ViewBag.Title = "Índice"; Layout = "~/Views/Shared/\_Layout.cshtml"; } Índice ------ @Html.ActionLink("Criar novo planejamento de compra", "Create") @using (Html.BeginF...
2018/03/03
1,265
4,294
<issue_start>username_0: I was trying to separate a "generic" map from the event manager implementation, because I need to use it somewhere else. But I ran into something quite unusual for me. So it seems like I'm trying to generate two times (at least) the `GetValue` function. ``` #include #include #include #inclu...
2018/03/03
1,241
4,231
<issue_start>username_0: I was starting to learn Windows programing few years ago, and I always used only "native" environment for my needs. I mean, I write code only using Winapi, not DirectX\Draw\2D\etc for graphics, not any external libraries for music or something else, just only Winapi. I'm working on the next evo...
2018/03/03
804
2,902
<issue_start>username_0: as the title said, i'm looking for a way to send an AT command to a remote xbee and read the response. my code is in python and i'm using digi-xbee library. another question: my goal of using AT command is to get the node ID of that remote xbee device when this last one send me a message, i do...
2018/03/03
1,169
4,461
<issue_start>username_0: Im new to docker and trying to learn it. Im following this tutorial: <https://docs.docker.com/get-started/part2/#apppy> So I installed Docker on Windows. Created 3 files, app.py, Dockefile and requirements.txt My docker file looks like this ``` # Use an official Python runtime as a parent im...
2018/03/03
2,329
8,166
<issue_start>username_0: I'm currently learning how to build apps using the Flutter SDK and Android Studio. My problem is that I need to add a Divider widget between the 'Administrative' text and the rest of the Card but as you can see in the screenshot below, the divider isn't showing up. I've tried changing the size ...
2018/03/03
558
1,865
<issue_start>username_0: I'm trying to use vuejs in my fresh laravel setup. I run the follwing commands in my command line ``` npm install npm run dev ``` This commands runs without any errors. When I import the default VUE componet located under `~/ressources/assets/components/ExampleComponent.vue` in my template n...
2018/03/03
675
2,899
<issue_start>username_0: I want to use method `newWorkStealingPool()` to get thread and run them continuously every 1 `sec`. Using the following sample code : ``` ScheduledExecutorService executor = Executors.newScheduledThreadPool(1); Runnable task = () -> System.out.println("Scheduling: " + System.currentTi...
2018/03/03
919
3,349
<issue_start>username_0: The button attached to NSStatusItem is not sending calls to its target selector. I'm not sure what exactly I am doing wrong. I believe its something to do with the button.action line. ``` let statusItem = NSStatusBar.system.statusItem(withLength:NSStatusItem.squareLength) let popover = NSPopo...