date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/16
2,033
3,676
<issue_start>username_0: This question is more to help me with constructing an efficient pipeline for my code. ### data ``` df <- data.frame(stringsAsFactors=FALSE, Date = c("2015-10-26", "2015-10-26", "2015-10-26", "2015-10-26", "2015-10-27", "2015-10-27", "2015-10-27"), ...
2018/03/16
1,257
6,190
<issue_start>username_0: I've inherited some code that interfaces with GP. While reviewing the code prior to debugging an issue I found a function that undoes updates to a set of tables. The code contains a number of SQL commands and I was wondering if I would get better performance from a single stored procedure with...
2018/03/16
897
3,620
<issue_start>username_0: ```php function post_like(){ global $wpdb; $c = $_POST['next']; echo $c; $d = get_the_ID(); $wpdb->insert('wp_likes', array( 'article_id' => $d, 'user_id' => '1' ) ); die(); } ``` and my ajax.js file: ```php function Cli...
2018/03/16
849
2,759
<issue_start>username_0: How can I create a template class that can understand if type `T` is hashable or not, and if it is then use `std::unodered_set` to collect elements of type T?. Otherwise, I want it to use `std::set`. This class have the same simple methods as above `sets` such as `insert(), find()` and so on. ...
2018/03/16
932
3,342
<issue_start>username_0: My situation is as follows: In C, I launch a `pthread` that eventually blocks waiting for input by calling a receive function. The data it expects to receive will be basically a response. Back on my original thread of execution I want to wait until the launched thread is ready to handle the r...
2018/03/16
1,030
3,458
<issue_start>username_0: I have the string ``` {"quests ": [{ "title ":"Phite Club", "status": "COMPLETED", "difficulty": 3, "members": True, "questPoints": 1, "userEligible": True },{ "title": "All Fired Up", "status": "COMPLETED", ...
2018/03/16
947
3,218
<issue_start>username_0: I couldn't wrap my head around this: ``` def expr(a): return ~(a ^ 0xFFFFFFFF), a ^ 0xFFFFFFFF, ~a, a print(expr(0xFFFFFFFF)) print(expr(1)) print(expr(0)) print(expr(-1)) ``` I understand `~a` means two's complement of `a`, but `a ^ 0xFFFFFFFF` also flips all the bits, but python wil...
2018/03/16
984
3,327
<issue_start>username_0: Can I get some help to fix it? I already did the code myself but I’m not sure how to fix this error. > > error: invalid operand to binary \* (have 'int' and 'int \*') > > > ``` #include void pay\_amount (int dollars, int \*twenties, int \*tens, int \*fives, int \*ones); int main(void) ...
2018/03/16
730
2,779
<issue_start>username_0: I'm trying to get CSS `width` property of a flexible element, but for some reason it doesn't work: Codepen: <https://codepen.io/anon/pen/pLEwdp?editors=1010> --- ### Code: ```html non-flex -------- current width is: {{flexibleAreaWidth}} --------------------------------------- non-fle...
2018/03/16
1,131
3,635
<issue_start>username_0: In an effort to learn OpenMP, I am running a simple C++ program with OpenMP to compute the value of pi, based on this video: <https://www.youtube.com/watch?v=OuzYICZUthM> Unfortunately, my program seems to be running faster with fewer threads, and I am not sure why. My laptop has 4 cores, so i...
2018/03/16
1,823
5,755
<issue_start>username_0: I have a SVG I am trying to animate with animejs. Basically its a selection path drawing. I managed to animate but the result is wrong. I want this: [![enter image description here](https://i.stack.imgur.com/5bp5L.gif)](https://i.stack.imgur.com/5bp5L.gif) ```js var lineDrawing = anime({...
2018/03/16
1,433
2,392
<issue_start>username_0: Sample Data: ``` id,action_datetime,value_id, 770940,03/15/2018 23:00:04,??, 801816,03/15/2018 22:45:49,??, ,,, id,start_datetime,end_datetime,value_id 801816,03/15/2018 21:30:07,03/15/2018 21:55:29,595774419 774137,03/15/2018 22:38:35,03/15/2018 23:05:24,595777227 801816,03/15/2018 22:54:57,0...
2018/03/17
449
1,686
<issue_start>username_0: I have a code igniter project folder. Everything works fine. But when i placed the project folder in another folder as a sub-folder, i get 404 Page Not Found for the Controller URLS i called. For instance the CI url is <http://localhost/library> Then i place it in another folder like : <http:/...
2018/03/17
567
1,964
<issue_start>username_0: Basically, everything *appears* to work fine and start up, but for some reason I can't call any of the commands. I've been looking around for easily an hour now and looking at examples/watching videos and I can't for the life of me figure out what is wrong. Code below: ``` import discord impor...
2018/03/17
703
3,089
<issue_start>username_0: Fairly generic question because I'm afraid I don't have the best Java academic/theoretical fundamentals: I work in a bank and we store/process lots of data. This takes the shape of account id, deal id, portfolio values, etc. The goal is to take a request from an API or as a library, query a D...
2018/03/17
611
2,153
<issue_start>username_0: Below is an excerpt of the html code: ``` Category1 "Text1 I want" Category2 "Text2 I want" ``` I know I can extract Text1 and Text2 by using: ``` find_element = browser.find_elements_by_xpath("//div[@class='Class2']") element = [x.text for x in find_element] text1 = element[0] text2 = elem...
2018/03/17
1,232
4,459
<issue_start>username_0: ``` import React from 'react'; import {FirstCustomComponent} from './somewhere'; import {SecondCustomComponent} from './somewhere-else'; const ThirdCustomComponent = ({componentTitle, apple, banana}) => ( componentTitle === 'FirstCustomComponent' ? : ); export default ThirdCustom...
2018/03/17
1,516
5,099
<issue_start>username_0: I trying to use navbar component from Twitter Bootstrap 4 with nested sub menu, but the arrow in the menu item that has sub menu is not appear at all, i do not no why. here the arrow appears: [![here arrow appear](https://i.stack.imgur.com/J6xI4.jpg)](https://i.stack.imgur.com/J6xI4.jpg) but...
2018/03/17
1,277
4,565
<issue_start>username_0: I'm trying to create saved search of saved searches in order to see which saved search is sending which e-mail. Now once i have like 100 auto e-mails from saved searches in netsuite i would like to organize them. For example i would like to have all active saved search with results : 1. Searc...
2018/03/17
1,338
4,491
<issue_start>username_0: For example having this: ``` Col1 | Col2 | NUMBER1 Fruit | Pear | 2 Fruit | Pear | 3 Fruit | Pear | 4 Fruit | Kiwi | 7 Fruit | Kiwi | 9 Car | Honda| 4 Car | Honda| 5 ``` A fourth column would have the smallest number for each row that matches the first two columns: ``` Col1 | Col2 | NUM...
2018/03/17
1,208
4,356
<issue_start>username_0: I want to share HTML being a file and not in text form. First, would I need to generate a saved file on the phone to send later? ``` Intent sharingIntent = new Intent(Intent.ACTION_SEND); sharingIntent.setType("text/html"); sharingIntent.putExtra(android.content.Intent...
2018/03/17
338
1,143
<issue_start>username_0: I have a string: ``` '<NAME>' ``` How can I get the first letter of each word in the string? For example, the first letter of each word in the above string would be: ``` P i g ```<issue_comment>username_1: How about you just slice the string when printing (or assign a new variable) and rem...
2018/03/17
1,491
5,302
<issue_start>username_0: I just installed **Genymotion**, when I started and tried to register via Genymotion app this error appeared: > > Network Error > > > [![under login form](https://i.stack.imgur.com/r8y1R.png)](https://i.stack.imgur.com/r8y1R.png) Seems like Genymotion can't figure out a way to connect to...
2018/03/17
812
2,840
<issue_start>username_0: i hope you can give me a hand with this one, I'm trying to put a div within a div but one keeps pulling the other down. i'll paste some images: This is what i'm trying to acomplish... [enter image description here](https://i.stack.imgur.com/ABQZC.jpg) And this is what I get... [enter image d...
2018/03/17
544
2,096
<issue_start>username_0: I suppose this should be straightforward, but I'm stuck to get that "cpsc" value. I tried to google this, and almost all of the search results told me to use ".value". But this particular class "control term" doesn't seem to work, and only returned "undefined". ```html ``` My code: document...
2018/03/17
623
2,299
<issue_start>username_0: I have a class: ``` const helper = function(val){ console.log(this.a); console.log(this.b); this.bar(); }; export class Foo { public b = '45' private a = 15; bar(){ } myMethod(){ return helper.apply(this,arguments); } } ``` the problem is, in the helper function, it ...
2018/03/17
615
2,041
<issue_start>username_0: When I want to deploy my Django App on Heroku, I met an error as below: `DisallowedHost at / Invalid HTTP_HOST header: 'ecommerceyy.herokuapp.com'. You may need to add 'ecommerceyy.herokuapp.com' to ALLOWED_HOSTS.` However, I have code in production.py like: ``` DEBUG = False ALLOWED_HOSTS ...
2018/03/17
428
1,929
<issue_start>username_0: I'm trying to create a shell using C that can take multiple commands separated by a semicolon(;). Currently I'm trying to use strtok to separate the commands but I don't think I'm using it correctly. I'll post all the info I can without posting the entire code. Is strtok being used correctly? ...
2018/03/17
659
2,274
<issue_start>username_0: I have the following code running on Xcode Playground. However, even though I specify that the label is centered at the center of the view, it doesn't appear there. ``` import UIKit import PlaygroundSupport class TestViewController: UIViewController { override func viewDidLoad() { ...
2018/03/17
529
1,943
<issue_start>username_0: I want to create a blob storage trigger that takes any files put into blob storage (a fast process) and transfers them to Data Lake storage (NOT to another Blob Storage location). Can this be done? Can it be done using JavaScript, or does it require C#? Does sample code exist showing how to ...
2018/03/17
749
2,560
<issue_start>username_0: The code below is supposed to create a directory for the country (two letter code) if it doesn't exist and a directory based on the age group if it doesn't exist however whenever someone uploads an image it comes in as a broken image and isn't shown unless I precreate the directories. I checked...
2018/03/17
562
1,968
<issue_start>username_0: ``` import json import requests import sys exampleURL = 'https://apps.runescape.com/runemetrics/quests?user=Marebelle' questName = 'All Fired Up' response = requests.get(exampleURL) if response.status_code==200: questData = response.content.decode('utf-8') ``` how can I search for ques...
2018/03/17
545
2,147
<issue_start>username_0: Assume RDS A has the following tables: table1, table2, table3; And RDS B has the above tables and then more: table1, table2, table3, table4, table5. Can I do a one-way copy from RDS A to RDS B? That is, the data in the three tables (table1, table2, table3) in RDS A is copied to the correspon...
2018/03/17
682
1,943
<issue_start>username_0: I'd like to know how to default a nested defaultdict to a list `[0,0,0]`. For example, I'd like to make this hierarchical defaultdict. ``` dic01 = {'year2017': {'jul_to_sep_temperature':[25, 20, 17], 'oct_to_dec_temperature':[10, 8, 7]}, 'year2018': {'jan_to_m...
2018/03/17
1,315
3,358
<issue_start>username_0: I want to format the float numbers in my Python app according to the current locale. The [Format Specification Mini-Language](https://docs.python.org/3/library/string.html#formatspec) states that one of the "available presentation types for floating point and decimal values" is: > > 'n' Numbe...
2018/03/17
605
2,158
<issue_start>username_0: When I typed in my answer i got this: ``` The given method does not accept the given parameter types. no suitable method found for min(int,int,int) Math.min(species, Q13, shadow); ^ method Math.min(double,double) is not applicable (actual and formal argument lists differ ...
2018/03/17
1,540
5,503
<issue_start>username_0: am trying to Fetch the movies data from Mysql DB and show it to Recycler view but when i run the app nothing shows here is code i am using Retrofite Library but i can't parse the Data to the Recycler view i've made Adapter and Model Class normally like the Json > > MainActivity.class...
2018/03/17
567
2,029
<issue_start>username_0: I'm using Redux-Saga to return data to state. I'd like to take that state and set it to a Field value within Redux-Form. I would think I could use something like ``` dispatch(change('form', 'field', 'value')); ``` The complication is handling this after the saga returns the value. Thus pre...
2018/03/17
1,780
5,270
<issue_start>username_0: I have a table where users get to set a reaction/vote to a given event and I want to be able to create a summary view to see which reaction was voted on most times, divided by group per event. The sample data is as follows: ``` DECLARE @voteTable AS TABLE ( id INT IDENTITY(1,...
2018/03/17
1,769
6,142
<issue_start>username_0: I'm trying to declare a function template that should accept and return a non-const reference when passed an lvalue, but return an RVO-compatible local copy when passed an rvalue: ``` ? StringReplace(? str, ? from, ? to); ``` I want template to generate the following signatures: 1. for non...
2018/03/17
1,784
6,088
<issue_start>username_0: I am trying to build a project that has compileSdkVersion 25 and targetSdkVersion 25 but I need to change both to 23 so after changing compileSdkVersion 23 and targetSdkVersion 23 I am getting an error > > Error:resource > android:style/TextAppearance.Material.Widget.Button.Borderless.Color...
2018/03/17
656
2,105
<issue_start>username_0: I am trying to make a single page poetry page that flips between poems by replacing the content inside of the elements. The problem that I have is with replacing the image link because Javascript marks the double slash "//" as comment so it makes the link break. Is there a way to set any variab...
2018/03/17
461
1,255
<issue_start>username_0: Im trying to create a list of a sliding window from a pandas dataframe but instead of giving me the specific values it only returns the header. Why is this happening and what can I do to get around this? ``` import pandas as pd batch_size = 3 data = pd.DataFrame([1,2,3,4,5,6,7,8,9]) def proc...
2018/03/17
2,709
9,050
<issue_start>username_0: Wikipedia says: > > 32-bit CPU and ALU architectures are those that are based on registers, address buses, or data buses of that size. > > > So each memory address refers to 32-bits. But what does that really mean, exactly? In Intel X86-32 assembly, which is agreed to be 32-bit, there ar...
2018/03/17
259
933
<issue_start>username_0: I don't have much knowledge about xml file. I am trying to execute the TestNG through xml file.. Its shows following error before adding the suggested line at top of the program.. eroor: [TestNGContentHandler] [WARN] It is strongly recommended to add "" at the top of your file, otherwise Test...
2018/03/17
1,314
4,733
<issue_start>username_0: I have the route below to show a specific post details page: "<http://proj.test/>{slug}" for example "<http://proj.test/test-post>" if the name of the post introduced was "test post". The issue is that, can exist posts with the same name, so the url like "<http://proj.test/test-post>" will not...
2018/03/17
627
1,779
<issue_start>username_0: The oplog has a field called ts, which looks like this: ``` {"ts":"6533707677506207745","t":2,"h":"-7325657776689654694", ...} ``` I want to query the oplog, like so: ``` db.oplog.rs.find({ts:{$gt:x}}); ``` how can I generate a Timestamp, that represents now? How about 30 seconds before n...
2018/03/17
494
1,912
<issue_start>username_0: I have this Function ``` [FunctionName("json")] public static JsonResult json ( [HttpTrigger(AuthorizationLevel.Anonymous, new string[] { "POST", "GET", "DELETE", "PATCH", "PUT" })] HttpRequest req, TraceWriter log ) { return new JsonResult(new { Nome = ...
2018/03/17
356
1,474
<issue_start>username_0: I am working on a Xamarin.Forms PCL app. I am trying to make it so users can comment on posts which displays as the post then scrolling down shows comments with a docked entry at the bottom of the page at all times I tried ``` ``` but when I click the entry it is covered by the keyboard, i...
2018/03/17
2,044
6,932
<issue_start>username_0: I've been racking my brain for two days trying to figure out why the program is behaving this way. For a class project, I'm trying to write a program that parses an address and outputs it a certain way. Before I actually get to the output portion of the program, I just wanted to make sure my Bi...
2018/03/17
1,506
5,794
<issue_start>username_0: I'm desperately looking for help with an issue I'm having. So I've been following [this](https://www.youtube.com/watch?v=Lg4PVqRRO2Q) tutorial series, which are absolutely great, but in comparison to using a `Bottom Navigation` like he is in the video, I'm using a `Navigation Drawer' with fragm...
2018/03/17
3,048
9,133
<issue_start>username_0: I am trying to follow [this](https://spark.apache.org/docs/latest/running-on-kubernetes.html) but I am encountering an error. In particular, when I run: ``` spark-submit.cmd --master k8s://https://192.168.1.40:8443 --deploy-mode cluster --name spark-pi --class org.apache.spark.examples.SparkP...
2018/03/17
1,239
3,940
<issue_start>username_0: So, I have this single page that consists of a few sections. Users can go to these sections by scrolling themselves or clicking in the navbar (a href with anchor). Due to the Bootstrap 4 navbar being fixed to the top, the content gets placed under it. Is there a way I could offset anchors by -5...
2018/03/17
2,923
11,401
<issue_start>username_0: I've made a `ListView` in Flutter, but now I have some `ListTiles` in this `ListView` that can be selected. Upon selection, I want the background color to change to a color of my choice. I don't know how to do that. In [the docs](https://docs.flutter.io/flutter/material/ListTileTheme/style.html...
2018/03/17
1,062
3,741
<issue_start>username_0: I'm trying to make a `.request()` call using Alamofire 4 and Swift 4. Here's the code I'm using: ``` static func getPlaceData(url: String, parameters: [String: String]) { Alamofire.request(url, method: .get, parameters: parameters, encoding: JSONEncoding.default, headers: headers).response...
2018/03/17
1,038
3,805
<issue_start>username_0: I have a function that creates an array of Observables (batchOfRequests) from an array of items (myItemsArray). Each myItem pushes one Observable (http request) with two parameters from properties of myItem (propertyOne, propertyTwo, etc.) I then use Observable.concat to make the requests for e...
2018/03/17
710
2,883
<issue_start>username_0: I have a main function that calls this function: ``` private void splashScreen() throws MalformedURLException { JWindow window = new JWindow(); ImageIcon image = new ImageIcon(new URL("https://i.imgur.com/Wt9kOSU.png")); JLabel imageLabel = new JLabel(image); window.add(imageL...
2018/03/17
838
2,485
<issue_start>username_0: I am in the process of making a rock, paper, scissors shoot game in tkinter currently, and am trying to write a function that determines who wins. 1 = rock, 2 = paper, 3 = scissors. The script is not printing anything except when comp == 2 and choice == 1. ``` def Winning(): if (((comp ==...
2018/03/17
753
2,515
<issue_start>username_0: I've pieced together a small program designed to build random names. It is not finished, however it is currently repeating the same name if I attempt to re-run the program. Program is built on Ubuntu Linux, C++ running the emacs text editor. Here is the full code below, I am still fairly new ...
2018/03/17
1,751
3,780
<issue_start>username_0: I've found code that should work, I am trying to organize data in descending order, however, when I put in this code, I only get the first one in descending order, not both. I want both in descending order, how can I do that? Here is my code. The overall goal of this is to make sure that Number...
2018/03/17
878
3,162
<issue_start>username_0: so I have to write a function join(a,b,c,d) that takes up to 4 strings, and joins them together with a comma. The function should still work when given less than 4 strings, including printing out just one string with no commas attached when given only one string as an argument. However, I can o...
2018/03/17
390
1,206
<issue_start>username_0: Please I NEED some one to run this code and send me the output, because i am unable to run it package squarematrix; public class SquareMatrix { ``` public static void main(String[] args) { int[][] m = { {10, 12, 11}, // {1, 2, 3}, { 9, 8, 31}, ...
2018/03/17
1,155
4,001
<issue_start>username_0: I have tried searching for solutions to this question but still haven't found it. The HTML is executing fine but the Javascript is not executing. I have included it in the index.html file and tried an external .js file. Still can't get my javascript to execute. Also having issues with CSS not e...
2018/03/17
891
3,212
<issue_start>username_0: I'm defining the Vue.js instance like this in `app.js`: ``` const vm = new Vue({ el: '#app', data: { page: 'welcome' } }); ``` and using Laravel's default webpack script: ``` mix.js('resources/assets/js/app.js', 'public/js') .sass('resources/assets/sass/app.scss', 'pub...
2018/03/17
524
1,434
<issue_start>username_0: I would like to transform a long data set with repeated observations: ``` obs code 1 A 2 B 4 G 2 D 1 H 3 K ``` Into a "shorter" data set with a comma separated, summary column: ``` obs code 1 A,H 2 B,D 3 K 4 G ``` I tried something like: ``` df <- data.fram...
2018/03/17
360
1,155
<issue_start>username_0: I'm using large titles, in the main view I have a scrollView and a view behind the scrollView that is a background image. When I do this, large titles doesn't work (are always big while you scroll) because the scrollView is not the first element inside the main view. If I change the order, the ...
2018/03/17
1,067
3,840
<issue_start>username_0: I'm creating a chain of responsibility pipeline using `System.Func` where each function in the pipeline holds a reference to the next. When building the pipeline, I'm unable to pass the inner function by reference as it throws a StackOverflowException due to the reassignment of the pipeline fu...
2018/03/17
1,491
4,843
<issue_start>username_0: I have a string and want to check if it can be used as a valid variable without getting a syntax error. For example ``` def variableName(string): #if string is valid variable name: #return True #else: #return False input >>> variableName("validVariable") output >>> Tru...
2018/03/17
307
1,217
<issue_start>username_0: The strangest thing happened. My froala rich text fields (Rails app) stopped working afer I committed some other work. The symptoms were the following: * In Firefox, I could not enter spaces, only letters would appear as I typed * In Chrome, spaces showed, but I could not create new lines * N...
2018/03/17
1,301
3,875
<issue_start>username_0: So I am new to front-end web development and I am struggling mightily trying to arrange 3 tags in a container . Here is the code i have currently: index.html ``` ![](https://i.pinimg.com/originals/28/3c/b3/283cb30bbe0b896cfd7bcd8748438504.jpg) ![](https://imagesvc.timeincapp.com/v3/fan/ima...
2018/03/17
638
2,125
<issue_start>username_0: I have a program which is trying to set values in ImageData represented as a [Uint8ClampedArray](https://kotlinlang.org/api/latest/jvm/stdlib/org.khronos.webgl/-uint8-clamped-array/index.html) in a Kotlin program. According to [the specification for the set method](https://kotlinlang.org/api/la...
2018/03/17
553
2,101
<issue_start>username_0: I have a service.ts file passing a Observables in between my Angular Components and I have the result of a click event on one Component being passed to the component below. My problem is that I can `console.log` the object that I *want* to store in my `selectedContact` variable (see below), bu...
2018/03/17
359
1,293
<issue_start>username_0: I am attempting to make a Batch program that copies all files from a flashdrive onto my desktop, then change all Batch files to Text files. I know of the long way to do this... ``` ren "%userprofile%\Desktop\Batch\*.bat" "*.txt" ren "%userprofile%\Desktop\Batch\Format-Transfer\*.bat" "*.txt" r...
2018/03/17
858
3,277
<issue_start>username_0: My project is: when people click a or `-` among a list of section, test, and practice etc. Each click will render a presentational component. My question is whether there is a solution to simplify my code as below. ``` createSection = () => { this.setState({ sectionVisilibity: !this.st...
2018/03/17
277
652
<issue_start>username_0: Consider below table : ``` IP Address 192.168.1.9 192.168.1.4 192.168.1.4 192.168.1.3 192.168.1.9 ``` I want to write a sql query such that I get following data : ``` IP Address Count 192.168.1.3 1 192.168.1.4 2 192.168.1.4 2 192.168.1.9 3 19...
2018/03/17
1,635
5,710
<issue_start>username_0: I would like to include the versions.html in the sidebar and could not succeed. I tried to add versions.html in \*\* for sidebars, this had no effect: ``` html_sidebars = { '**': ['versions.html'] } ``` Also how to declare the different versions in `conf.py`. I have looked at [sphinxco...
2018/03/17
1,298
3,978
<issue_start>username_0: I'm looking to sort a table according to two different columns. This is what I have: ``` | EAN | album_id | photo | |-----|----------|-----------| | 111 | 123 | 64.jpg | | 111 | 123 | 65.jpg | | 222 | 123 | 64.jpg | | 222 | 123 | 65.jpg | ``` This is the ...
2018/03/17
1,484
3,872
<issue_start>username_0: Let's say currently i have a list with: ``` L = [[1,'JAYCE'],[2,'AMIE'],[3,'JACK'],[4,'STEVE'],[5,'JAYCE']] ``` and i have another list which contains the names sorted in order: ``` sortedNames = ['AMIE','JACK','JAYCE','JAYCE','STEVE'] ``` The output I want to get is, based on the sorted ...
2018/03/17
683
2,639
<issue_start>username_0: I'm trying to deploy a simple Spring Boot application. `application.properties` contains the following: ``` spring.datasource.name=MyDS spring.datasource.username=user spring.datasource.driver-class-name=com.mysql.jdbc.Driver spring.datasource.xa.data-source-class-name=com.mysql.jdbc.jdbc2.opt...
2018/03/17
628
1,994
<issue_start>username_0: Everytime i try to run a npm command i get a wierd error. This happened after i ran ***npm config set prefix /usr/local*** whilst trying to install react and after that i wasnt able to run a single npm command without this error. If anyone has any idea of what this means or how to fix it please...
2018/03/17
784
2,578
<issue_start>username_0: I've know versions of this question has been discussed, and I think this is unique. Why does a delay of 0, still causes the below behavior. ``` for(var i = 0; i <3; i ++) { console.log(i, 'started'); setTimeout(()=> { console.log(i); },0) console.log(i, 'done'); } console.log('lo...
2018/03/17
644
2,244
<issue_start>username_0: I am getting ``` Uncaught RangeError: Maximum call stack size exceeded at eval (index.js?4bd6:38) at Object.dispatch (applyMiddleware.js?6ce6:35) at dispatchChildActions (index.js?4bd6:33) at eval (index.js?4bd6:39) at Object.dispatch (applyMiddleware.js?6ce6:35) at di...
2018/03/17
566
2,157
<issue_start>username_0: Am retrieving a distance using distance calculator script using Google Maps etc... Then calculating a fare cost based on that distance, but the output from that script displays dynamically from Google as x,y miles in the distance field using `document.getElementById("distance_road").value = di...
2018/03/17
264
1,030
<issue_start>username_0: I want to know how to setup my **info@\*\*\*\*\*.com** account and send email from this in my c# web API application. I configured some code like this: ``` SmtpClient client = new SmtpClient(); client.Host = "173.***.**.**"; client.Port = 25; client.DeliveryMethod = SmtpDelive...
2018/03/17
239
1,009
<issue_start>username_0: I'm new and currently learning ASP.NET, I'm building the main page of my website, but based on the image attached, I don't understand why the "Order Now" button is not align in the center even though I have already set it text-align to center in css. Also the "bounceInUp" animation imported fro...
2018/03/17
487
1,880
<issue_start>username_0: I've developed an Excel add-in using the Excel-DNA library. I'd like to create a guided product tour for when the user first installs the plugin. I'm looking for the traditional product tour workflow where the window is dimmed, and the plugin features are highlighted with textual description an...
2018/03/17
398
1,471
<issue_start>username_0: I am getting a very small issue in setting up my screen views equally on all iPhone screen sizes. Attached is the screenshot of the same. I want to keep the spacing (X) equal b/w view's top-view1-view2-bottom on all iPhone devices. What will be the best approach to do so ?? I tried to use view...
2018/03/17
472
1,560
<issue_start>username_0: my input file looks like this : S New York 25 76 49 i want to read them where S is a character and New York is either a string or a cstring and the other 3 are integers. My problem is reading in New York i cant use getline since the 3 integers come after it and not in a new line. What can i d...
2018/03/17
1,716
5,282
<issue_start>username_0: I have a code where it would give a dot for every 3 digit numbers lke snippet below ```js function convertToRupiah(angka) { var rupiah = ''; var angkarev = angka.toString().split('').reverse().join(''); for(var i = 0; i < angkarev.length; i++) if(i%3 == 0) ru...
2018/03/17
2,183
7,086
<issue_start>username_0: So I have a multilayered problem. I am trying to I am trying to just print out 'input was jack' if the raw\_input was 'jack' and also subtract 'tries' by 1, and then run the function again and print out amount of 'tries' at the end of both the first 'if' statement and the 'else' statement, and ...
2018/03/17
495
1,583
<issue_start>username_0: Can you help me with this problem? I have an `input-group` within *bootstrap 4*. In my `input-group` I have 2 inputs, first with prepend and second with append. It's wrapped in a `col-12` `div` in a `form-group` and I need to set the `width` of the first input and second to some specific (but ...
2018/03/17
723
2,938
<issue_start>username_0: I am a beginner in web development. I know that the `index.php` file provides the foundation of a website. With some template design, we can re-use the headers and footers for many of the pages of the site. For the content, suppose I have the following: ``` php include 'content.php';? ``` Ho...
2018/03/17
726
2,832
<issue_start>username_0: I need help with my programming exercise and I need to go from one HTML file to another but it is not working for me. ` ``` function userSubmit(){ var choice, output; choice = document.getElementById('colourMenu'); if (choice === 'file:///Users/missminimegs/Documents/pinkpulldown.html')...
2018/03/17
1,093
4,032
<issue_start>username_0: I want to change a global variable in the top ajax form and use it in the bottom ajax form. This is not working when I do like this: ``` var xGlobalTitle; //global variable that I want to use $.ajax({ type: 'GET', url: '/Home/postInformationofConferenceTitle', dataType: "JSON", ...
2018/03/17
241
1,028
<issue_start>username_0: Can we we trigger an azure function only when certain document with field values inserted into Cosmos DB ? E.G an employee document with country "USA" field value trigger azure function. I couldn't figure this one out as its always triggering the function whenever there is an item added / modif...
2018/03/17
476
1,558
<issue_start>username_0: I'm trying to convert the code below into a function, but keep getting errors. Can anyone help with the steps I need to take in order to refactor this code into a funtion? ``` n1 = int(input('Enter First Number')) n2 = int(input('Enter Second Number')) n3 = int(input('Enter Third Number')) ...
2018/03/17
589
2,088
<issue_start>username_0: In a controller I am using two validation like this: ``` public function update(Request $request){ if( $request->hasFile('img1') ){ $request->validate( [ 'img1'=>'image' ] ); } if( $request->hasFile('img2') ){ $request->validate( [ ...
2018/03/17
542
1,802
<issue_start>username_0: I am looking to find the total number of players by counting the unique screen names. # Dependencies import pandas as pd ``` # Save path to data set in a variable df = "purchase_data.json" # Use Pandas to read data data_file_pd = pd.read_json(df) data_file_pd.head() ``` ![enter image des...
2018/03/17
994
3,825
<issue_start>username_0: I try like this : ``` php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class ChangePasswordRequest extends FormRequest { ... public function rules() { return [ 'old_password' = '<PASSWORD>|confirmed', 'passwor...
2018/03/17
1,358
5,494
<issue_start>username_0: Suppose i have a structure like this: ``` items: { id1: { likes: 123 }, id2: { likes: 456 }, id3: { sourceId: 'id1', likes: 123 }, id4: { sourceId: 'id1', likes: 123 } [,...] } ``` where any item can either be a source item or an item that references...