date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/09
1,036
3,600
<issue_start>username_0: I'm trying to understand the `List` [example](https://github.com/flutter/flutter/blob/master/examples/flutter_gallery/lib/demo/material/list_demo.dart) in [flutter\_gallery](https://github.com/flutter/flutter/tree/master/examples/flutter_gallery). My approach is to simplify the `` code by refac...
2018/03/09
180
678
<issue_start>username_0: I am trying to have it so that when the print windows closes that a div is cleared to have nothing in it. This is my code now ``` printReportAssets = function(){ var ReportAssets = document.getElementById("ReportAssets").innerHTML; $('.target').append(ReportAssets) window.print(); ...
2018/03/09
748
2,257
<issue_start>username_0: I am getting the following error when trying to run a docker container: ``` Error: Unable to access jarfile ``` My Dockerfile is like this: ``` FROM ubuntu:16.04 # Install Updates RUN apt-get update -y && \ apt-get upgrade -y && \ apt-get install -y software-properties-common && ...
2018/03/09
649
2,479
<issue_start>username_0: I'm new here on react native, And i was trying to align the back button to the left, But keeping the title on the center, But nothing works, This is the code. The TouchableOpacity is the back button, And the Text is the title, Each one have his own style. ```js import React, { Component } fro...
2018/03/09
503
2,114
<issue_start>username_0: We have an Angular app that calls a .net core restful api project. There is also a separate auth app (Identity Server4) that handles logins. This only happens on Safari, all other browsers work without issue. The exact error in Safari is `Origin https://my.site.com is not allowed by Access-C...
2018/03/09
798
2,347
<issue_start>username_0: I want to print the matched pattern using awk. Not the field, not the line. In vi, you can put the matched pattern in the substitution by surrounding it with parens and referencing it with curly braces and a number, like this: ``` :s/bufid=([0-9]*)/buffer id is {\0}/ ``` The part that match...
2018/03/09
709
2,346
<issue_start>username_0: I'm a longtime SAS user trying to get into Pandas. I'd like to set a column's value based on a variety of if conditions. I think I can do it using nested np.where commands but thought I'd check if there's a more elegant solution. For instance, if I set a left bound and right bound, and want to ...
2018/03/09
668
2,165
<issue_start>username_0: ``` data Tick = Tick { _price :: Int , _timestamp :: TimeOfDay } deriving (Eq, Ord) instance Num Tick where (-) (Tick a b) (Tick a' _) = Tick (a - a') b calcAxis :: High -> Low -> Int calcAxis (Just (Tick a _)) (Just (Tick b _)) = (fromIntegral (a - b)) / 2 ``` I understand dividing...
2018/03/09
550
1,891
<issue_start>username_0: Hi I'm currently having issues with reading in a file in android studio. The file I want to read in is just a simple text file called test. This is the path of the file C:\Users\John\Documents\MadLibs\app\src\main\res\raw\test.txt. Here's what I'm trying: ``` BufferedReader br = new BufferedRe...
2018/03/09
608
2,141
<issue_start>username_0: In javascript, I've created a class Group that creates an empty array named items and returns it. But I'm trying to create a static method from(){} that takes an iterable object and creates a new Group from that iterable obj. I'm trying this.items.push() but its not working how I'd expect it...
2018/03/09
1,074
3,571
<issue_start>username_0: I was studying `lambda` expressions and came across this question: ``` #include using std::cout; int main() { auto lam = [](int a){ cout<<"a"; }; decltype(lam) bb; // oop! deleted default constructor! bb(1); } ``` But the compiler complained as commented above. As far as I know, lambda ...
2018/03/09
1,336
3,399
<issue_start>username_0: I have a Pandas data frame with multiple columns whose types are either float64 or strings. I'm trying to use `to_csv` to write the data frame to an output file. However, it outputs big numbers with scientific notion. For example, if the number is 1344154454156.992676, it's saved in the file as...
2018/03/09
987
2,558
<issue_start>username_0: I'm trying to start learning ruby on rails and install sqlite3. I actually installed sqlite3 however it doesn't function well like you can see at the bottom. ``` ruby 2.5.0p0 (2017-12-25 revision 61468) [x64-mingw32] C:\Users\abc>sqlite3 --v 'sqlite3' is not recognized as an internal or exter...
2018/03/09
511
1,809
<issue_start>username_0: We have a site developed with Flask using Google App Engine. So we have naked domain mysite.com (which redirects to www.mysite.com) and subdomain www.mysite.com Now we want to add another subdomain user.mysite.com, so we added it to App Engine Custom domains and registrar without any issues. ...
2018/03/09
543
1,999
<issue_start>username_0: I've been compiling and running Delphi in a VM inside a Mac. I just got a separate PC (Win10), installed Delphi, and would like to compile and run Mac and OS X apps from the new install. So here's what I did: 1. Everything on the Mac was already setup and working properly. I'll spare the detai...
2018/03/09
463
1,805
<issue_start>username_0: first post! I am slowly working my way through Automate the Boring Stuff with Python and am just doing a bit of experimentation with the get() method and dictionaries (chapter 5). I have written a small piece of code to tell me the capital of the country that I type in or, if it's not in my dic...
2018/03/09
568
2,273
<issue_start>username_0: I have a program where a user inputs data, the data is turned into a list, and then the `main` function loops over the list until it has looped twice. Then the program should go back to `maininput`, so the user can input more data. However I can't get `maininput` to start before `main`, so `mai...
2018/03/09
277
1,043
<issue_start>username_0: I am trying to figure out an if statement that will allow me to check whatever the current (Math.floor(Math.random()\*5) gave me the same value as the previous attempt? I know I can get It to print it out but is there some way of getting the system to check?<issue_comment>username_1: You need t...
2018/03/09
1,345
5,237
<issue_start>username_0: I am trying to add a header and a footer to each page of a word document via a macro. I have tried a few different methods such as iterating through each shape on the page but in that case , the header and footer prints out multiple times on each page depending on how many shapes are in the do...
2018/03/09
819
2,959
<issue_start>username_0: I am trying to make a registration form which has a textbox for confirming your password. ```html label { display: inline-block; width: 100px; margin-bottom: 10px; } body { font-family: sans-serif; } Register Register -------- Username: Email Addres: Password...
2018/03/09
575
2,299
<issue_start>username_0: I am using an API that accesses read only data on a website like an exchange, for ticker/price. It works great but sometimes when I leave the app running there will be an exception thrown like "TaskCanceledException". How can I safely ignore these and continue executing the same function? Bec...
2018/03/09
404
1,403
<issue_start>username_0: I'm trying to load a JSON config file to protect my AWS keys ``` a.FileSystemCredentials is not a constructor at constructor.loadFromPath(aws - sdk.min.js: 46) ``` This error is preventing me from using `AWS.config.loadFromPath('../../s3.config.json');` It works fine when i use the unprotec...
2018/03/09
425
1,391
<issue_start>username_0: This program is designed to find the largest and the smallest number in the user input numbers then to print the range of the maximum and minimum number. ``` #include int main () { int n,max,min,i,j,k,l,m; printf("please enter the number of numbers you wish to evaluate \n"); scanf(" %d",&n); p...
2018/03/09
1,040
3,052
<issue_start>username_0: Here are two of the ways to write functions in Clojure: ``` (defn foo [a b] (+ a b)) (fn foo [a b] (+ a b)) ``` I can call them like so: In the case of 'defn' ``` (foo 1 2) ``` In the case of 'fn' ``` ((fn foo [a b] (+ a b)) 1 2) ``` 'fn' doesn't seem to insert its optional name into ...
2018/03/09
787
2,339
<issue_start>username_0: I am having a little trouble with this code I am writing. I am able to get it to compile in other places but when I try to compile on my machine, I am running into a segfault. Here is the error message I am receiving: ``` 0x0000000000400dc6 in readFile (keyFileDir=0x401014 "k1.txt", plainTex...
2018/03/09
299
1,118
<issue_start>username_0: I migrated an app to Angular and now it does not autocomplete the form upon returning page visits. Otherwise it works perfectly fine. My gut feeling is that it has to do with the \*ngIf template expressions and just the general non-static nature of Angular but I'm wondering if there's anything...
2018/03/09
996
3,485
<issue_start>username_0: I want to add multiple values in overlapped(same one, i mean) key by using .get() I already searched google with these kewords but they were kinda different problems. So, I'm just looking for new method to solve this. ''' dictionary = {} dictionary[key] = dictionary.get(key, {}) + {value} '...
2018/03/09
2,897
9,446
<issue_start>username_0: I have an `employee` table as follows: ``` +--------+----------+-----------+------------+----------+-----------------+---------+--------------------+--------------------+ | emp_id | fname | lname | start_date | end_date | superior_emp_id | dept_id | title | assigned_branch_...
2018/03/09
1,118
3,824
<issue_start>username_0: Trying to extract the `name` and `id` from a string with the following code: ``` Regex.Matches "id: 123456, name: <NAME>", @"^id: (?\d+), name: (?[a-z]+(\s[a-z]+)?)" ); ``` However, the number of groups and captures is 1, and there are no named captures. What am I missing? **Edit:**...
2018/03/09
1,042
3,457
<issue_start>username_0: How to sum using index value like mod, such an array ``` var arr = [ "Player ", "1", "Player ", "2", "Player ", "3", "Position", "In/Our", "Position", "In/Our", "Position", "In/Our", "2", "1", "11", "0", "10", "0", "6", "0", "10", "1", "5", "1", "8", "1", "11", "1", "11", "0", "...
2018/03/09
1,192
3,976
<issue_start>username_0: This is what i am facing currently. I am having difficulty to convert SAS Datetime to SQL Datetime. The display value in SAS Datetime is 28Mar2018:10:01:06 which is actually "28Mar2018:10:01:96"dt when doing Proc SQL. The display value is SQL Datetime is 2018-03-28 10:01:06.000 which is actua...
2018/03/09
1,103
3,646
<issue_start>username_0: I have an email `mailto` href link, and when I use a `&` character in the subject, this prevents any code rendering after this ampersand in the email subject line. i.e. `Oil & Gas`, just shows as `Oil`. Under normal conditions I would just change the `&` to the word `and`, but the subject line...
2018/03/09
405
1,578
<issue_start>username_0: I have a library defining `method()` that returns type `V*` and can return `nullptr`. What's the best way to wrap that method to turn the value into a `std::optional`? The naive way would be something like: ``` std::optional maybe\_value; V\* value = method(); if (value != nullptr) { maybe\_...
2018/03/09
861
2,930
<issue_start>username_0: software environment:Win10, Goland. go version : go1.9.1 windows/amd64. protoc --version: libprotoc 3.5.1 When i Executive Command. The results are as follows ``` protoc -I . --go_out=plugins=grpc: . proto/hello/hello.proto .: Permission denied ``` I tried to run as an administrator.And ...
2018/03/09
1,089
3,509
<issue_start>username_0: I've had this problem with a couple of programs now, and I can not figure out why this keeps happening. This is my code: ``` #include #include int main(void){ double x = 0; while(x <= 0){ printf("Enter a digit greater than 0.\n"); scanf("%lf", &x); } printf("%lf", &x); } ``` and ...
2018/03/09
1,666
5,361
<issue_start>username_0: I'm struggling to understand why my **`H1` does not show up**. It is covered by a `div`. The weird part is that the `H1`'s parent `div` is visible if I change `background` color to something else than `transparent`. Input tag inside the same `div` is always visible as well. Only `H1` is problem...
2018/03/09
648
2,439
<issue_start>username_0: Recently I had to import 48,000 records into Google App Engine. The stored 'tables' are 'ndb.model' types. Each of these records is checked against a couple of other 'tables' in the 'database' for integrity purposes and then written (.put()). To do this, I uploaded a .csv file into Google Clou...
2018/03/09
662
2,502
<issue_start>username_0: I am trying to make email as unique. I tried using 'unique' and 'dropDups', but it doesn't work. Any idea what I should use? ``` var custSchema = new Schema({ "username": String, "Password": String, "email": {["Type": String, "Value": { type : String, lowercase: true, uniq...
2018/03/09
990
3,487
<issue_start>username_0: I noticed that when cloning a repo from GitHub, a URL missing the `.git` extension at the end will still clone correctly. So for example, this command: ``` git clone https://github.com/kach/nearley ``` Will function the same as this address: ``` git clone https://github.com/kach/nearley.gi...
2018/03/09
1,888
6,368
<issue_start>username_0: Is there a way to add progress bar in pytube? I don't know how to use the following method: ``` pytube.Stream().on_progress(chunk, file_handler, bytes_remaining) ``` My code: ``` from pytube import YouTube # from pytube import Stream from general import append_to_file def downloader(video_...
2018/03/09
2,228
5,394
<issue_start>username_0: In the example df below, I'm trying to find a way to split the column headers ('1;2','4','5;6') based on the ';' that exists and duplicate the row values in these split columns. (My actual df comes from an imported csv file so generally I have around 50-80 column headers that need spliting) Be...
2018/03/09
1,357
3,294
<issue_start>username_0: If an Office 365 contact's email address is invalid (ex: `user@example?com`), how do I retrieve the the email address with Microsoft Graph? I've tried `/contacts` and `/contacts/{id}`. The first returns an empty `address`: ``` "emailAddresses": [ { "name": "name", "ad...
2018/03/09
1,240
2,984
<issue_start>username_0: I want to know whether google is planning to support any other platforms other than iOS and Android for Cross platform development using Flutter. Like React native windows for React native does flutter have framework that would support windows phone development?<issue_comment>username_1: Try ...
2018/03/09
4,835
17,485
<issue_start>username_0: I have this weird issue I cannot figure out, so I was hoping someone smarter than me could help! I have a site `https://example.com` (no subdomain) I have some code that sets a cookie, e.g. ``` var value="some value"; document.cookie="myCookie="+escape(value)+"; path=/; domain=example.com";...
2018/03/09
268
730
<issue_start>username_0: What format string argument of the `as.POSIXct()` function would allow me to coerce the following timestamp into POSIXct? ``` datetime <- "2018/02/08T23:58:33z" datetime <- as.POSIXct(datetime, format = "%Y/%m/%d %H:%M:%S", tz = "UTC) ``` Desired result ``` 2018-02-08 23:58:33 ```<issue_co...
2018/03/09
507
1,859
<issue_start>username_0: There is a simple Slider Effect below, but I have some question with it: > > it's work > > > ``` $(function () { var slideIndex = 1; SliderShow(slideIndex); function plusIndex(n) { SliderShow(slideIndex += n); } function SliderShow(n) { var Slider = $...
2018/03/09
500
1,856
<issue_start>username_0: example domain : mydomain.com ``` if(location.hostname.indexOf("mydomain") >= 0){ $("#load").css({display: "none"}); } ``` this is currently working to hide the div, but even on a different domain it is hiding the div, which i think may be caused by the iframe is still mydomain? I asked th...
2018/03/09
455
1,418
<issue_start>username_0: if I have: ``` string newMangerName = "RandomName"; string manager = "CN=<NAME>,OU=Test,OU=Users" ``` So the CN name value will be different for every manager, I want to replace the CN name value with newManger e.g ``` string newManager = manager.replace("afterCN=", replace(newManagerNa...
2018/03/09
429
1,334
<issue_start>username_0: I still have this error inspite of me adding compile 'com.google.android.gms:play-services-auth:11.8.0' compile "com.google.android.gms:play-services-gcm:11.8.0" to the build.gradle(app).Please help me resolve this problem.<issue_comment>username_1: You could use RegEx: ``` var src = "CN=<NA...
2018/03/09
717
2,154
<issue_start>username_0: I need a modal page with no full size (80% width, <60% height, centered) to select some items, like an alert control. How to implement the CSS for this case?<issue_comment>username_1: Initialize modal with `cssClass` ``` let modal = this.modalCtrl.create(CustomSelectPage, {data: data}, {cssCl...
2018/03/09
1,137
3,835
<issue_start>username_0: I am down to python2 and im kinda loving it and make me say 'i wish i was curious of it earlier' but i'm stuck in pagination of places in facebook sdk (and there is not enough documentation about that on website) I wrote a logic to iterate through pagination results but somewhere its broken ba...
2018/03/09
1,202
3,961
<issue_start>username_0: Sorry maybe my title is not so clear but i have no idea how to write it. I have a Tournament model that saves the results of matches like: ``` class Tournament(model.Model): team_1_score = models.PositiveSmallIntegerField(blank=True, default=0) team_2_score = models.PositiveSmallInteg...
2018/03/09
370
1,660
<issue_start>username_0: I have an android app that uses Firebase for the backend. In my database, I have a section called `USER_NOTIFICATIONS` which gets populated with some information when user's post gets liked. Now, in the app, should I have a `ChildEventListener` that gets triggered any time a notification happ...
2018/03/09
329
1,068
<issue_start>username_0: Working with: ``` "react-native": "0.51" ``` When I console.log in Remote JS Debugger, the source of the log is always: ``` console.js:35 ``` It ignores the actual line where the log was made from. This used to work as expected. Is there a way to make it work again? [![console.log](htt...
2018/03/09
3,235
10,176
<issue_start>username_0: Whenever I run my code I get a message: `Segmentation fault: 11` My question is why this message is popping up. I have done some research prior to this and have tried to fix it but I still have the same message pop up. Please review my code! To give some context to my code: The goal of this p...
2018/03/09
781
2,612
<issue_start>username_0: how can in replace only the first element founded in a list? I have this example: ``` replace(_,_,[],[]). replace('-', NewChar, ['-'|T], [NewChar|T2]):- replace('-', NewChar, T, T2). replace('-', NewChar, [H|T], [H|T2]):- H \= '-', replace('-', NewChar, T, T2). ``` And the result is: ```...
2018/03/09
1,284
2,843
<issue_start>username_0: I have x. x is minutes. I have a string start\_time like: 7:00 And I have a string end\_time like: 14:00 how can print a list of time with increase x minutes for each loop? I want print something like this: ``` if x = 30 7:00 - 7:30 7:30 - 8:00 ... 13:30 - 14:00 ``` I try do it with ma...
2018/03/09
1,413
3,540
<issue_start>username_0: I am trying to implement a simple solitaire game in which the goal is to shift rows and columns of varying colors until they form a specific pattern. I am trying to represent the configuration of my game board using a 2d list: ``` board = [['W', 'W', 'W', 'W'], ['W', 'W', 'W', 'W'], ...
2018/03/09
825
2,429
<issue_start>username_0: I have a bash variable which has the following content: ``` SSH exit status 255 for i-12hfhf578568tn i-12hdfghf578568tn is able to connect i-13456tg is not able to connect SSH exit status 255 for 1.2.3.4 ``` I want to search the string starting with `i-` and then extract only that instance ...
2018/03/09
1,008
3,518
<issue_start>username_0: I am having issue with my recursive function `getPath`, as it is returning an empty array, when it should be returning an array that looks something like this: ``` ['main', 'children', 'name'] ``` I am not sure if the logic pare is right, as that isn't what the question is about, the questio...
2018/03/09
1,552
5,717
<issue_start>username_0: TL;DR; Does anyone know if it's possible to use `console.log` in a Firebase/Google Cloud Function to log entries to Stack Driver using the `jsonPayload` property so my logs are searchable (currently anything I pass to console.log gets stringified into `textPayload`). --- I have a multi-modu...
2018/03/09
706
2,028
<issue_start>username_0: I'm having trouble trying to get the correct numbers to be in the correct position, my idea seems to be correct but the printing is incorrect. ``` static int plotTri1(int n, int i) { if (n > 0) { plotTri1(n - 1, n + i); i += n; for (; 0 < n; n--) { S...
2018/03/09
717
1,753
<issue_start>username_0: I have written below code and at the end I want to append two array in a single buffer. I want to save to text file. Here is my code : ``` t=0 while(t>=0 and t70000 and nav\_time[t]<86400: one\_time=nav\_time[t] # print one\_time if nav\_time[t]>=0 and nav\_time[t]<70000: sec\_time=nav\_ti...
2018/03/09
608
1,966
<issue_start>username_0: This is my attempt but the div wrapper doesn't center the content div. I have a div containing ang box shape with another div with texts. ``` .wrapper { position:absolute; left: 50%; } .content { width:90%; text-align:justify; left: -50%; display: inline-block; } .button { ...
2018/03/09
983
3,159
<issue_start>username_0: I am doing a hackerrank challenge called gridland metro and I have been toiling away at this for hours with no success. Basically I have looked at the editors solution and compared to my code and figured that the only substantial difference between our code is that the accepted solution does no...
2018/03/09
402
1,572
<issue_start>username_0: Not exactly sure how to pose this question, but using lazarus v1.8.2 I am attempting to define a generic type, using another generic type: ``` //initial interface IOtherInterface = interface function ExampleFunction : T; end; //some generic record TSomething = record Something : T; end...
2018/03/09
494
1,822
<issue_start>username_0: I am attempting to create a permissions structure for users in my application. I created a `permissions.rb` file in the `lib/` directory in my rails application. When I try to `include Permissions` in my `user` model I am getting this error. [![enter image description here](https://i.stack.i...
2018/03/09
580
1,709
<issue_start>username_0: This is my code: ``` float = 10.23444566 awk {printf("%.0f\n", $float)} ``` I am getting the answer as 0. I just want to get the value 10 out of it. i am using awk command .<issue_comment>username_1: Try this. ``` float=10.23444566; printf "%.0f" $float; ``` In shell scripting, the synt...
2018/03/09
546
1,720
<issue_start>username_0: I have tried some custom library for add & remove Calendar Event but i cant success . Google said Android not provide calendar with add event so we can use custom library. So how can i do ?<issue_comment>username_1: Try this. ``` float=10.23444566; printf "%.0f" $float; ``` In shell scriptin...
2018/03/09
592
1,965
<issue_start>username_0: The below code is to merge data from multiple workbooks to a single workbook. This macro works on my computer. I want to place this file on network location. I need help for How to make the code workablele on a network location which is not mapped. ``` Sub Mergemom() Dim wbk As Workbook Dim sh...
2018/03/09
1,028
3,029
<issue_start>username_0: What is this code equivalent to? ``` int sec, mins, hours, days; cin >> sec; sec -= (60 * 60 * 24) * (hours = sec / (60 * 60 * 24)); sec -= (60 * 60) * (days = sec / (60 * 60)); sec -= 60 * (mins = sec / 60); ``` This code was written by my friend to calculate how many days, hours, minute...
2018/03/09
3,168
8,715
<issue_start>username_0: I have to remove any number of `-,=` or spaces after the word `text:` in my text file but before the tweet begins. So far I have this as an idea. `text: ,|-|=|` This accounts for more than one space but also deletes all spaces in the entire text file. Here are a few lines of the text for an exa...
2018/03/09
1,692
4,984
<issue_start>username_0: I have a website that currently sends an email to users once they sign up using sendgrid. This works all and well, but I cannot figure out how to do this: When to user makes a reservation on my website(its kind of like open table), the reservation object is created. I then can go on Active A...
2018/03/09
134
551
<issue_start>username_0: I currently have JavaScript code that is capable of extracting the inner HTML from specific tags... I'd like to extrapolate this and change it such that it can target<issue_comment>username_1: ```js let testLangScripts = [].slice.call(document.getElementsByTagName('script')).filter(e => e.getAt...
2018/03/09
322
1,129
<issue_start>username_0: I am retrieving all values of a database in the form of two rows and need to multiply all values with a single constant. mysql query: ``` $book= "SELECT distinct names, values FROM table1 where address =?" mysqli_stmt_bind_param($stmm, "s", $usa); mysqli_stmt_execute($sttm); ...
2018/03/09
1,197
4,312
<issue_start>username_0: Looking for a way to explain something in Python to my students. If we start with number\_list = range(100), we can use a for loop such as... ``` for n in number_list: (do something) ``` If we have the same set up, but try to use a while loop, n comes back as undefined. How do I explain th...
2018/03/09
442
1,610
<issue_start>username_0: If I put mainCont as a class so it looks like this 'container container-fluid mainCont' the div takes up larger width than when mainCont is set as ID like in the below code. Why is this? My guess is something to do with some bootstrap styling still taking precedence? ```css body { width: 10...
2018/03/09
539
2,310
<issue_start>username_0: I have tried looking around but am unsure what category this falls under... I told a friend Id do a simple quiz app for them however I'm not sure how best to do it. I have a quiz where you select male or female. From there, there is either a man or women asking questions to the user, but only...
2018/03/09
344
840
<issue_start>username_0: I cannot understand why my output y is all 1's. Please help, I've been staring at this for hours. It works perfectly in another similar program where I choose equally spaced points. ``` function [t,y] = chebyshev(n) format long for k = 1:1:n r = ((2*k - 1)*pi)/2*n; t(k,1) = cos(r); e...
2018/03/09
385
1,249
<issue_start>username_0: I am trying to create a validator that is given the following method signature: ``` public void validateAllParameters( final Method method, final Object[] parameterValues) ``` If there is a violation, I would be throwing a ConstraintViolationException I can iterate through `paramete...
2018/03/09
303
883
<issue_start>username_0: I've downloaded an Example module `HelloWorld` from forum `Vtiger CRM` , import it in module designer and have modified it and export it. When i try to install my new module in file `Zip` i see the below message! and I using `Vtiger CRM` in my localhost `"Failed Invalid File provided for modu...
2018/03/09
485
1,623
<issue_start>username_0: I saved all the string names in a List to save all the prefab vehicles that the player owns. The string names are the prefab names. **How would I go by on spawning/ instantiating the prefab by name?** And to spawn the prefab on a specific location or on a game object? Thank you!<issue_co...
2018/03/09
619
1,805
<issue_start>username_0: I want to check if a specific value exists in a nested array. I have the following code, which only works with one dimensional arrays: ``` a = [['hello', 'hi', 'hey'], ['bye', 'seeya', 'goodbye']] def find_a_word(array, word) return "Found your word, #{word}" if array.index(word) end ``` ...
2018/03/09
1,778
5,031
<issue_start>username_0: Here's my data: ``` # Data: mydf <- data.frame( Species = rep(c("Ungulate","Ungulate","Elk","Elk","Rodent","Rodent","Deer","Deer"), times = 3), Space = rep(c("W", "C", "E"), each = 8), Age = rep(c("Adult", "Juvenile"), times = 12), value = c(0.03,0.17,0.02,0.23,0.33,0...
2018/03/09
1,435
4,568
<issue_start>username_0: I have a spring web service rest. I have two get : ``` // VIEW PRODUCT DETAILS @RequestMapping(value="/products/{prodId}", method=RequestMethod.GET) public @ResponseBody Product productView(@PathVariable("prodId") int prodId) { logger.info("======= in productView ...
2018/03/09
1,876
4,864
<issue_start>username_0: I able to get raw javascript raw data from a link to a list datatype but unable to convert it to Pandas Dataframe. ``` import re import request headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36'}...
2018/03/09
370
1,277
<issue_start>username_0: good day, i would like to ask question about retrieving selected data from ng options using string as comparator. in my controller i have this data ``` $scope.myList = [ { id: 0, name: "foo" }, { id: 1, name: "foo1" }, { id: 2, name: "foo2" } ]; ``` for my index.html ``` ``...
2018/03/09
260
1,135
<issue_start>username_0: In our Netty client, there are instances where we call: ``` channel.closeFuture().sync(); ``` and after it completes, we see more data coming into one of our handlers. We've written an Http2ConnectionHandler and that's the handler receiving data even after this close future completes. My qu...
2018/03/09
201
845
<issue_start>username_0: What am I doing wrong in the below emmet? The first tr does not terminate properly. I trying searching the net but couldn't find anything. thank you ``` table>tr>td*3+tr*3>td*3>{Sample Data $} ```<issue_comment>username_1: The `closeFuture()` is fired when the underlying channel (in HTTP/2 ca...
2018/03/09
605
1,785
<issue_start>username_0: I'm processing a file by line, so my shell script is this: ``` check_vm_connectivity() { $res=`cat temp.txt` # this is line 10 i=0 for line in "$res" do i=$i+1 if [[ $i -gt 3 ]] ; then continue fi echo "${line}" done } ``` The ...
2018/03/09
1,024
2,180
<issue_start>username_0: So I have the following string: ``` __cfduid=dc3c9f85f65d39a5947d5f4850618237f1520566503; expires=Sat, 09-Mar-19 03:35:03 GMT; path=/; domain=.coinmarketcap.com; HttpOnly, _version=a90f44e909c03fdad3caed1ec676a98472deb0f6; path=/, __session=NTgybXJTVFdKcjlrbG5JKsnaVm9V6SBhUWtxV0oxc3JZNTZUekRG...
2018/03/09
764
2,906
<issue_start>username_0: I am trying to post data to create a customer using Rotessa API. I am using curl command which I've found in Rotessa API reference. But I am getting errors in return response instead of JSON string. It would be very helpful if I get help on this. Thanks curl command: ``` curl -X POST -H 'Con...
2018/03/09
230
629
<issue_start>username_0: I got value - 20927, and its have to be in this format - 14d 12h 47m I tried do math by myself but didn't found any solutions.<issue_comment>username_1: You could use [moment.js](https://momentjs.com/docs/#/durations/hours/) ```js const duration = moment.duration(20927, 'minutes') const dura...
2018/03/09
431
1,465
<issue_start>username_0: I'm studying for a SAS certification exam, and I came across an unexplained behavior. Note the data step below: `data D;` `A+1;` `A+1;` `A+1;` `run;` Question 1: Why this step does not result in error? Question 2: Why a variable A is created, and its value is 3 and not missing?...
2018/03/09
1,519
5,421
<issue_start>username_0: Following this tutorial: <https://www.tensorflow.org/versions/r1.3/get_started/mnist/pros> I wanted to solve a classification problem with labeled images by myself. Since I'm not using the MNIST database, I spent days creating my own dataset inside tensorflow. It looks like this: ``` #variabl...
2018/03/09
675
2,637
<issue_start>username_0: I have a question, I have a Controller and I Have a form request to validate the update. I want to make conditions for example. If I update an "name" the form request allow change the name but if I didn't make change use the same and don't appear "unique rule" because sometimes I have to chan...
2018/03/09
505
1,851
<issue_start>username_0: Hi i wanted to change the value of hostname for new computer but things didn't work as i try to input the value and getting the value for the hostname. I try to restart the computer the result is still the same.. I am testing to see whether this script is capable of updating the hostname for pc...
2018/03/09
1,379
5,713
<issue_start>username_0: I am new in swift programing. I'm trying to learn plist file. I have a plist file which has data of Country, State and city. I want to iterate through the data of plist file. But I can't understand how to create an array or dictionary to store the data for country, state and City. Can you help ...
2018/03/09
250
854
<issue_start>username_0: I have below method in vuejs ``` methods: { show () { } } ``` In this `show()` method often I would like to pass parameter, often I would not like to pass parameter when I'll call it HTML. Like `show (obj)` and `show ()` How can I do that ? Thanks<issue_comment>username_1: ``` meth...
2018/03/09
502
1,511
<issue_start>username_0: Though the question seems very similar but I am stuck a this . Below is the sample of data. I want to add number of productView and Order where productView < Order. ``` productView order userId A 4.5 5.0 B 1.5 2.5 C 4.0 2...