date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/26
1,316
4,558
<issue_start>username_0: I am trying to write a simple program in Java using the Smartsheet API that goes through a fairly large sheet, and indents certain rows. Here is some code similar to what I'm using. ``` Smartsheet smartsheet = new SmartsheetBuilder().setAccessToken("[My Access Token]").build(); sheetId = 00000...
2018/02/26
1,525
6,768
<issue_start>username_0: I'm pretty new to coding Java. Below are codes for a program that is supposed to use several methods to ask for a string, reverse the string, test for palindrome and output the result of the test. I'm trying to debug my many errors. ``` public static String getReverse(String Original) { ...
2018/02/26
790
2,770
<issue_start>username_0: I'm trying to access the length of the array on which I'm using a reduce function inside that reduce, but I don't seem to be able to do it, does anyone have any idea if it is possible to access the array object inside any of the higher order functions? PS: I tried using `this` but to no succes...
2018/02/26
735
2,683
<issue_start>username_0: Can someone give a better xpath of this div element, or help explain why I cannot seem to select the desired div? This XPath does not work: ``` //div[starts-with(normalize-space(.),'Welcome to the Shipt Shopper') and @class='text'] ``` Even though it gets highlighted in chrome developer t...
2018/02/26
427
1,439
<issue_start>username_0: ``` import { Card } from 'antd'; const { Meta } = Card; ReactDOM.render( } > , mountNode); ``` From AntDesign's example, in the Card's Meta section, is there a way I would be able to add more description to the card like "price" or "author" and display it?<issue_comment>username_1: Unfo...
2018/02/26
709
2,139
<issue_start>username_0: I just want to successfully add it to my window, and it has been surprisingly difficult. I've tried ``` #include "windef.h" #include "winbase.h" #include "initguid.h" #include "ole2.h" #include "olectl.h" #include "shobjidl.h" #include "shlguid.h" #include "exdispid.h" #include #include "Ol...
2018/02/26
525
1,766
<issue_start>username_0: I was trying to display the frequent association rules with tag cloud in R. I have the association rules sorted in desc order and exported the results to a csv file with each rule in the first column. However, after I imported the csv file and tried to form a wordcloud, I got an error message...
2018/02/26
1,440
4,286
<issue_start>username_0: I want to impute the missing values for `df['box_office_revenue']` with the median specified by `df['release_date'] == x` and `df['genre'] == y` . Here is my median finder function below. ``` def find_median(df, year, genre, col_year, col_rev): median = df[(df[col_year] == year) & (df[col...
2018/02/26
815
3,424
<issue_start>username_0: I have the following code ``` //parent class class Parent { private Object data; Parent (Object data){ this.data=data; } method1(){} ... methodN(){} } //wrapper class class Wrapper extends Parent { Wrapper(Object object){ super(object) } class Son1{ //do something } class So...
2018/02/26
590
2,026
<issue_start>username_0: I'm messing around with dictionaries for the first time and something's coming up that's confusing me. Using two lists to create a new dictionary, the order of the list terms for the key part seems to be wrong. Here's my code: ``` list1 = ["a", "b", "c", "d"] list2 = [5,3,7,3] newDict = {list...
2018/02/26
493
2,215
<issue_start>username_0: I am using the C# SDK for Microsoft Azure to stop (deallocate) a virtual machine. I am trying to use either `Microsoft.Azure.Management.Compute.Fluent.IVirtualMachine.Deallocate` or `Microsoft.Azure.Management.Compute.IVirtualMachine.DeallocateWithHttpMessagesAsync`. Both seem to wait for the v...
2018/02/26
566
2,393
<issue_start>username_0: So we were presented with a problem where given a lexicon of positive and negative words in a txt format, we had to transfer that into a dictionary({}), and I was just wondering if there are better ways to do this other than copying all the words and positive and negative numbers into the list....
2018/02/26
326
1,088
<issue_start>username_0: Im trying to get a the event timestamp from big query (google analytics 360) but I cant seem to find the correct export field to get it. I have tried `hits.eventInfo.timestamp` and `hits.eventInfo.datetime` but none of them seem to work. My query is ``` SELECT hits.eventInfo.timestamp ...
2018/02/26
415
1,307
<issue_start>username_0: I am currently using the built in post-build event to move files to a temporary directory: ``` xcopy "$(ProjectDir)RequiredItems/*" "C:\Users\Jcras\Documents\temp" ``` However I would like to move these to the users Roaming AppData dynamically. I was unable to get the following code to work...
2018/02/26
1,602
4,877
<issue_start>username_0: I'm learning about pthreads and signals in an OS class, and I had a question: is the underlying signalling mechanism of `pthread_cond_signal` just a standard POSIX real-time signal that has been fit to the task of waking waiting threads? Or is it some other mechanism that happens to use the sam...
2018/02/26
1,458
4,308
<issue_start>username_0: I am trying to figure out how to tie all the questions together and get a correct final score 10/10 or 11/10 for getting the bonus question correct. I am sure I am overthinking it but I am genuinely stuck and will appreciate any help that I receive. I am a complete beginner at Java and trying...
2018/02/26
802
3,362
<issue_start>username_0: I looked around online at InputStreams and it seems that you can only define an InputStream with a pre-defined input that it will read from. What if I wanted an InputStream where we're not sure what the data looks like or how long it is but it's generated somewhere on the fly but when it's done...
2018/02/26
983
3,255
<issue_start>username_0: ` ``` void avgOfArray() { float avg = 0, *ptr = 0; ptr = (float*)malloc(5*sizeof(float)); printf("Enter 5 numbers: \n"); for(int x = 0; x < 5; x++) { ptr[x] = getchar(); while ((ptr[x] = getchar()) != EOF && ptr[x] != '\n'); } for (int y = 0; y < 5; y++...
2018/02/26
441
1,466
<issue_start>username_0: I am studying numerical analysis and I don't understand this: when adding lots of floating point numbers, the best way is to add up numbers from lowest to highest. Why is this more precise than adding up numbers from higher to lower?<issue_comment>username_1: When you add a small number and a b...
2018/02/26
1,326
4,814
<issue_start>username_0: So i'm brand new to JS and trying to build a program for internal operation at the company I work for. Below is the first bit of my code. I have a created a google form, and set a trigger so that when the submit button is clicked the below code will start. The trigger works and the first two fu...
2018/02/26
747
1,648
<issue_start>username_0: I'd like to add two series with multi-indexes of which one can contain NaN values. Just adding both (a + b) doesn't work because some index entries from `a` may not be present in `b` and vice versa. This is my current approach which fails for index `(b, 50)` as this value should be NaN. ``` I...
2018/02/26
859
2,195
<issue_start>username_0: How to list all **currently registered** environment IDs (as they are used for creating environments) in openai gym? A bit context: there are many plugins installed which have customary ids such as atari, super mario, doom etc. Not to be confused with game names for atari-py.<issue_comment>u...
2018/02/26
3,950
14,732
<issue_start>username_0: I am trying to use a Node.JS application to make and receive API requests. It does a get request to another server using Axios with data it receives from an API call it receives. The second snippet is when the script returns the data from the call in. It will actually take it and write to the c...
2018/02/26
1,556
4,456
<issue_start>username_0: I would like to have a grid layout with the first four elements with the width equal to 300px while keeping the other elements a different width value (200px to be exactly): Basically, I'm trying to solve this problem by declaring `grid-template-columns` two times, as in the code below: ```cs...
2018/02/26
829
3,456
<issue_start>username_0: I have situation where I need to increment a Thread local variable every 1 second for the thread that is currently executing. For example consider following code snippet ``` public class DemoApplication { public static final ThreadLocal threadTest = new ThreadLocal() { @Override protec...
2018/02/26
756
2,244
<issue_start>username_0: One column of my data frame is male\_female\_ratio. And I want to convert it to float with a self defined function but got a error message. This is my data looks like: ``` 0 NaN 1 33 : 67 2 37 : 63 3 42 : 58 4 45 : 55 5 46 : 54 6 46 : 54 7 5...
2018/02/26
683
1,937
<issue_start>username_0: I have two lists read from a file that look something along the lines of this: ``` list1 = [1, 2, 3, 4, 5] list2 = [6, 7, 8, 9, 0] ``` I then have a for loop that needs to call both of those lists: ``` res = [] for i in list1: for x in list2: if i + x * 2 == 10: res...
2018/02/26
365
1,244
<issue_start>username_0: Looking to automatically separate the images and text from my wordpress post `php the_content(); ?` so I can put them in two different locations. Not sure the best method to do this but have tried preg\_replace approach but cant seem to figure out the right input ``` php // get the content ...
2018/02/26
1,373
4,502
<issue_start>username_0: I have a simple ldr connected to my nodemcu and an mqtt sketch that sends an mqtt payload when a set threshold is exceeded. It works well, only problem being that it sends multiple mqtt payloads for as long as the threshold is exceeded. An example of this issue will be that when i put my palm o...
2018/02/26
849
3,133
<issue_start>username_0: I've looked through some previous questions and I think I've verified the 'basic' things (submit button of correct type, in the form, etc), but I still cannot get the submitHandler to fire. The form is being validated as desired, but on submit, it is not trigging the ajax call inside the submi...
2018/02/26
2,006
7,783
<issue_start>username_0: I have a C# project which writes data to a TSQL database. There are two update statements which run within a loop, eg.: ``` for (int i = 0; i < customersProducts.Count; i++) { CustomerProducts c = customersProducts[i]; // Update product dimensions for (int j = 0; j < c.Count; ...
2018/02/26
898
3,417
<issue_start>username_0: We have always been able to determine two categories in the URL to filter the results to show items that meet both of the categories in the URL For example: <http://www.shoezies.co.nz/product-category/sale+shoes/> This would show only products that are in the 'sale' category and the 'shoes' c...
2018/02/26
353
1,052
<issue_start>username_0: Suppose I have a dataframe ``` col1 col2 0 1 <NAME> 1 2 ML Engineer 2 3 Colorado ``` I want to append all values in col2 to a list and each row should become a string value in the list. ex ``` output = ['<NAME>', 'ML Engineer' , 'Colorado'] ``` The issue...
2018/02/26
859
3,029
<issue_start>username_0: Any idea why i get this error? this is the connect line ``` mongoose.connect("mongodb+srv://danielkmx:"+process.env.MONGO_ATLAS_PW+"@node-rest-shop-5xfup.mongodb.net/test", { useMongoClient:true }); ```<issue_comment>username_1: I had the same error, and it got resolved when I updated th...
2018/02/26
519
1,975
<issue_start>username_0: Im using Rubymine 7.1.5, Im super new to it, and was learning step by step, watching video tutorials, when I encountered that debugging in my program isn't working. This is screenshot of what it looks like to me: <http://prntscr.com/ij0mvr> The guy in tutorial didn't have this problem(tho vid...
2018/02/26
2,331
4,747
<issue_start>username_0: I have the following data frame: ```r dat <- structure(list(type = c("exon", "intron", "exon", "intron", "exon", "intron", "exon", "intron", "exon", "intron", "exon", "intron", "exon", "intron", "exon", "intron", "exon", "intron", "exon", "intron"), nfn = c("dy1_PLT4.x4_01", "dy1_PLT4.x4_...
2018/02/26
844
2,813
<issue_start>username_0: I have my terminal set to zsh, and in iTerm2 I can press `ctrl+e` to move my cursor to the end of the line, and `ctrl+a` to move to the beginning. In VSCode, this just prints out a literal `^E^A`. Is there a setting I need to allow terminal to respond to emacs style commands?<issue_comment>user...
2018/02/26
868
2,966
<issue_start>username_0: I am trying to write a function that will convert a dedicated word within a string into asterisks. Basically, I want to censor a word from a string (ex. change "Hello World" into "Hello \*\*\*\*\*" if I made "World" the dedicated word). I tried to write the following code, but the code will not...
2018/02/26
1,101
3,234
<issue_start>username_0: I have a circuit designed to debounce a switch. It samples the signal every 1 ms and counts for 8ms in a shift register. When the register has counted 8 1ms ticks of a high signal ,we assume the signal is clean and output sig\_clean goes high. For some reason, every tick of the 1KHz clock (the ...
2018/02/26
5,730
16,536
<issue_start>username_0: I'm trying to finish this project for school and I keep getting this error in the 'read' portion of my Parcelable code. This has eaten up many hours of my day and I've read countless StackOverflow pages with similar problems and none of those solutions worked for me. Here are things I've read...
2018/02/26
565
2,228
<issue_start>username_0: Need help on writing VBA code for selecting all in the pivot table and deselect 0 and blank for several pivot tables in the same sheet. Sometimes the pivot items might not have blank in some pivot tables. I used the recording function, however it does not seem to record the deselecting 0 and bl...
2018/02/26
653
2,478
<issue_start>username_0: I'm trying to use [particles.js](https://vincentgarreau.com/particles.js/) as a background on my webpage. All the examples I've seen have the particles as the background of the entire webpage (with no scrolling on the page). However, I only want the particles as the background of my page header...
2018/02/26
570
1,680
<issue_start>username_0: I have an array with subarrays and wish to sort numerically by the first item in the subarrays. Using sort() function: ``` arr = [[2,'text'],[5,'text'],[1,'text'],[3,'text'],[6,'text'],[4,'text'], [7,'text'],[9,'text'],[3,'text'],[1,'text'],[8,'text']]; arr.sort(function(a, b) { re...
2018/02/26
1,658
5,805
<issue_start>username_0: I have made 4 radio buttons for 1 question. I have made 2 buttons submit and clear input. When I submit the form after clicking on clear input it does not clear the checked buttons to unchecked how can I do that using `reset` function ? contactform.js: ``` import React, { Component } from 'r...
2018/02/26
1,712
5,684
<issue_start>username_0: am stuck at geting data from controller to angular service please check my code any body suggest me what to do thanks in advance pom.xml ``` com.fasterxml.jackson.core jackson-databind 2.7.4 com.fasterxml.jackson.core jackson-core 2.7.4 com.fasterxml.jackson....
2018/02/26
847
3,375
<issue_start>username_0: EDIT: Check the answer that I posted below. I created a proxy method that calls the other functions. I have a class that I would like to assign methods from different classes. What's the best way to do so? So far, I've tried this: ``` namespace LeagueProj.DataGrabber{ public class DataGr...
2018/02/26
655
2,506
<issue_start>username_0: I use the `git pull` command to update the code `git clone` by `my colleagues`, encountered the following problems: > > Permission denied (publickey). > > > fatal: Could not read from remote repository. > > > Please make sure you have the correct access rights > and the repository exists....
2018/02/26
1,220
4,369
<issue_start>username_0: I have a BackgroundWorker which is supposed to broadcast something to all online clients in 5 seconds interval: **DeactivationBackgroundWorker:** ``` public class DeactivationBackgroundWorker : PeriodicBackgroundWorkerBase, ISingletonDependency { private readonly IRepository \_hitchReques...
2018/02/26
1,907
5,689
<issue_start>username_0: I don't know if that's the proper title for my question. Please pardon me with that. The code that I've tried is not getting the exact output that I want. This is my code that I've tried: ``` curl -s --request GET \ http://10.10.5.242/api/v1/incidents \ -H "Content-Type: applicatio...
2018/02/26
4,521
14,269
<issue_start>username_0: I am currently working on Angular using its 3rd party library such as Angular CLI/Angular Universal following this link <https://github.com/angular/angular-cli/wiki/stories-universal-rendering> / and firebase hosting / and real-time database. And it working great on my local machine listening i...
2018/02/26
578
1,576
<issue_start>username_0: HTML: ``` ``` I am trying as : ``` console.log($(".input-group input:not(:empty)").length); ``` What I want to know how many input fields is empty wrapped by `.input-group` class. I can go through .each to do this. But I am searching for one line clean code. Any idea?<issue_comment>userna...
2018/02/26
603
1,683
<issue_start>username_0: Hi I'm trying to without succeed to use regular expression to select he string before the \r\ , ideally in majority of the times is a word follow by a coma. But as showed the \r\ and some other obstacles appear .Example below: ``` var Sao Paulo , Brazil \r\n Details Description .... Rio de...
2018/02/26
310
1,378
<issue_start>username_0: This is my first time asking a question here. I have a website I built using Underscores for a WordPress Theme. The Home Page is not displaying in Safari on my MacBook or on iPhones I've tested it on. It displays just fine in Chrome, Firefox and Opera. When I look at the inspector I don't see a...
2018/02/26
456
1,725
<issue_start>username_0: I'm fairly new to coding and Xcode. I used the code below to make a button toggle from an on/off image. When I run the app on the iPad, it starts in the off position which I want. When I press the button it goes to the on position which is what I want. But when I press the button again it doesn...
2018/02/26
957
3,293
<issue_start>username_0: I have a class which I need to find the minimum/maximum value for different variables in the data set. Right now I am doing it like this: ``` guard let maxValPerc = data.flatMap({$0.percent}).max() else {return} guard let minValProf = data.flatMap({$0.profitLoss}).min() else {return} guard let...
2018/02/26
1,218
4,516
<issue_start>username_0: I have a `customerService` where im trying to inject `httpClient`. Error is happening on the line where i commented `//error happens on this line`. Everything works until i try to inject httpClient into my service. Error message is : ``` `compiler.js:485 Uncaught Error: Can't resolve all par...
2018/02/26
623
2,110
<issue_start>username_0: I was going to Cracking the Coding Interview chapter 5 Bit manipulation and found way to clear bits from i through 0 in number num ``` int mask = ~(-1 >>> (31 - i)); return num & mask ``` Though the above works Can we make it simple like ``` int mask = (-1 << (i+1)); return num & mask; ``...
2018/02/26
592
2,370
<issue_start>username_0: i have a database "softDb" in my app and on new version i create new database "softDatabase". how to do copy table and data or only data from old database (softDb ) to new database softDatabase?<issue_comment>username_1: It's as simple as this, if you want to change the existing DB scheme, you...
2018/02/26
667
2,348
<issue_start>username_0: I'm curious both of this data function, is there any difference between this two. I usually saw is ``` data () { return { obj } } ``` And ES6 fat arrow (`=>`) which I typically used ``` data:()=>({ obj }) ```<issue_comment>username_1: No difference in your specific example, but ...
2018/02/26
1,018
3,364
<issue_start>username_0: I'm trying to have a remote form automatically submit when a select option is changed. Everything works when I remove `remote: true` from the form tag, except I don't want the page to reload each time. I am using Rails 5.1.4. **Code** ``` <%= form_for @foo, remote: true do |f| %> ... fi...
2018/02/26
1,742
5,585
<issue_start>username_0: I'm trying to wrap my head around how to accomplish this… I have an that's something like: ``` $contributors = array( [0] => array( [name] => 'John', [role] => 'author', ), [1] => array( [name] => 'Gail', [role] => 'author', ), [2] => array( [name] => 'Beth', [...
2018/02/26
1,751
5,006
<issue_start>username_0: I have to search all elements in a list and replace all occurrences of one element with another. What is the best way to do this? For example, suppose my list has the following elements: ``` data = ['<KEY>', '<KEY>', 'CommitTest.txt', '=>', 'text/CommitTest.txt...
2018/02/26
736
2,226
<issue_start>username_0: I have button in my table like: ``` @foreach($orders as $order) | //other td's... Pay! | @endforeach ``` And JavaScript like: ``` $('.pay-button').click(function (event) { $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); event.preventDefa...
2018/02/26
330
1,163
<issue_start>username_0: While CSS has `word-break` to better control display of long words, is it possible to do the reverse by preserving hyphenated words without been forcefully broken into 2 separate lines? [CodePen Demo](https://codepen.io/anon/pen/xYyENV) to better illustrate the scenario.<issue_comment>username...
2018/02/26
449
1,591
<issue_start>username_0: I'm trying debug servlet class in aem. But i got problem, breakpoint I check is not working. [![enter image description here](https://i.stack.imgur.com/ATgs0.png)](https://i.stack.imgur.com/ATgs0.png) Can you please help me in this case ? Thanks all!<issue_comment>username_1: Are you sure th...
2018/02/26
493
1,761
<issue_start>username_0: I believe the title says it all, I know that some of these commands can be found in places like /usr/bin but I'd like to know the details of all the folders than can be found in, or what the process of locating them is.<issue_comment>username_1: If you want to know where a specific command is b...
2018/02/26
539
1,656
<issue_start>username_0: I want to return the value of a key for one of the elements inside the object using a condition: ``` const raw = { item1: { name: 'sdfd1', otherStuff: { book:'sdfd11' } }, item2: { name: 'sdfd2', otherStuff: { book:'sdfd22' } }, item3: { name: 'sdfd3', otherStuff: { book:'sdfd33' } } }; ...
2018/02/26
390
1,196
<issue_start>username_0: I have a data frame with multiple columns, and I want to get some of them, and drop others, without copying a new dataframe I suppose it should be ``` df = df['col_a','col_b'] ``` but I'm not sure whether it copy a new one or not. Is there any better way to do this?<issue_comment>username_1...
2018/02/26
449
1,339
<issue_start>username_0: I have following data in MongoDB ``` { "typeId": 1, "virtualType": 1 }, { "typeId": 1, "virtualType": 1 }, { "typeId": 1, "virtualType": 6 }, { "typeId": 2, "virtualType": 6 }, { "typeId": 2, "virtualType": 2 } ``` Using Spring data I need distinct...
2018/02/26
540
1,615
<issue_start>username_0: Suppose there are two elements vertically placed together, like the following image: [Image of two divs](https://i.stack.imgur.com/qfILe.png) The condition is `div1`'s height is auto/dynamic, since it depends on its content. The question is how to set css style of `div2` to make sure the sum...
2018/02/26
446
1,747
<issue_start>username_0: Am somewhat new to using Amazon S3 for image storage and just wondering the easiest way to import about about 5,000 (currently publicly available) Image URLs into S3 so that the end result is hosting of the images on our S3 Account (and resulting New URLs of the same images). Am wondering if ...
2018/02/26
698
2,114
<issue_start>username_0: Im trying to compare 2 inputs with different class in rows but same classes in columns. i tried that `.each` but im having an error. On specifying the `amount_remaining` class **Uncaught TypeError: $('.amount\_remaining')[i].val** ```js var i = 0; $(document).on('click','#sub',function(){ ...
2018/02/26
2,652
7,918
<issue_start>username_0: **EDIT: I FIXED IT** Well I fixed it, I don't know how and what but all I did is I moved the init of var personTaskMonthly=[]; from ``` $http.get().then(function(data){ var personTaskMonthly=[];}) ``` to before the $http starts like this ``` var personTaskMonthly=[]; $http.get().then(fun...
2018/02/26
940
3,279
<issue_start>username_0: I have 2 buttons, one for Log In and 1 for Sign In. I have created 2 different modal boxes that contain the forms for Log In and Sign In. Unfortunately for some reason, as soon as I add the second modal box, the first one stops closing itself as soon I see click outside of it. I've created a co...
2018/02/26
597
2,048
<issue_start>username_0: I want to make dilated convolution on a feature. In tensorflow I found `tf.nn.convolution` and `tf.nn.conv2d`. But `tf.nn.conv2d` doesn't seem to support dilated convolution. So I tried using `tf.nn.convolution`. Do the 2 formulations below give the same result? `tf.nn.conv2d(x, w, strides...
2018/02/26
1,078
3,813
<issue_start>username_0: I want to display the car speed kph on the screen, but I only have 0kph and it is not working. Though I have this code. Any suggestions will be great thank you [![enter image description here](https://i.stack.imgur.com/FmosK.png)](https://i.stack.imgur.com/FmosK.png) ``` public Text text; pri...
2018/02/26
637
2,329
<issue_start>username_0: In one of my of my pages I have a few tables. These tables have the same structure but differ in colors and in the data displayed. An example table might look like this: ``` #### {{ table\_title }} {% for item in items %} #### {{ item.date }} #### {{ item.time }} #### {{ item.title ...
2018/02/26
859
3,375
<issue_start>username_0: I have a custom view, which I use for markup (draw lines and other figures on it). The view controller recognizes touches and gestures and passes info to the view so it can draw itself properly. Each figure has a label (`CATextLayer`) with some figure info on it (line length for example). I ad...
2018/02/26
603
2,318
<issue_start>username_0: Trying to automate in python the login to this website: <https://app.rotoql.com/tools/dk/nba/optimizer> You need to be authenticated to access the page. I decided to check the developer console to see if I can somehow auth into the page with python so I can webscrape it. Here is what it looke...
2018/02/26
959
3,707
<issue_start>username_0: After a button is clicked inside `RecipeListItem` component and function handleFavorites has stared I want my button to be ***DISABLED***. What is wrong with my logic? Because this code dosen't work... Child component: ``` import React, { Component } from 'react'; import { connect } from 'r...
2018/02/26
2,230
6,770
<issue_start>username_0: I'm currently studying c array and is confused about what can and can't be used to represent the size of the array during initialisation. Am I right to assume ``` #define SIZE 5 ``` and ``` const int SIZE = 5; ``` are fundamentally different to one another? They have their differe...
2018/02/26
2,264
7,164
<issue_start>username_0: Using Isomorphic framework for React and pusher to get websockets. I can't seem to access state when I am in the `componentDidMount()` function. ``` class TopbarNotification extends Component { state = { visible: false, notifications: [] }; constructor(props) { super(p...
2018/02/26
2,368
7,297
<issue_start>username_0: I know this sounds funny but I have a navigation bar made with flexbox that is fixed at the top of my page. It looks great but you can see the page content scroll right through it. I need the content to disappear and scroll under the nav-bar starting from the bottom of the navbar if that makes ...
2018/02/26
1,710
5,221
<issue_start>username_0: I'm working on a centos7 machine. In my home directory i have my .vimrc file If i had a .vimrc file in the directory aswell, what one would Vim use and why?<issue_comment>username_1: Try setting the background color of your header to black, and set its z-index to make sure it's above the scrol...
2018/02/26
2,865
9,415
<issue_start>username_0: I have payment getaway (code below) ``` public function orderspayonline(Request $request, $id){ error_log('masuk ke snap token dri ajax'); $midtrans = new Midtrans; $item = Order::findOrFail($id); $buyer = $item->buyer_name; $address = $item->address; $city...
2018/02/26
373
1,433
<issue_start>username_0: I have a vc++ project which has one warning, it is: > > warning MSB8004: Intermediate Directory does not end with a trailing slash. This build instance will add the slash as it is required to allow proper evaluation of the Intermediate Directory. > > > After refer other similar questions ...
2018/02/26
864
2,815
<issue_start>username_0: I have the following data: ``` var data = { "features": [ { "properties": { "route_id": 522, "name": "the Mekong", "tour_id": 538 } },{ "properties": { "route_id": 522, "name": "Cambodia & the Mekong", "tour_id": 545...
2018/02/26
521
1,939
<issue_start>username_0: I use the MongoDB in my Node.js project, when I run `node app.js` in my project there comes an issue like bellow: > > DeprecationWarning: `open()` is deprecated in mongoose >= 4.11.0,use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()` > > ...
2018/02/26
989
3,421
<issue_start>username_0: I create a XIB file and there are a NavigationController in the xib file, a UIViewController in the NavigationController. Then I drag a button into the UIViewController. I want to connect the button and the UIViewController but I can't. I can only drag a line from the button to the navigationCo...
2018/02/26
1,358
4,398
<issue_start>username_0: I need to print a set of random numbers in an array using an input between 0 and 50 to determine how many random ints to print. Everything seems to be working but the void functions don't seem to be executing, leaving the array with all 0 values. ``` #include #include #include #include in...
2018/02/26
394
1,154
<issue_start>username_0: I am trying to import 1 file Oracle with Imp method. There is error with date format given in the script with default value ``` DEFAULT 'Jan011753 12:00:00 AM' ``` Is there any way to change the Oracle date format during the import?<issue_comment>username_1: ``` ALTER SESSION SET NLS_DATE_...
2018/02/26
973
3,375
<issue_start>username_0: I have a workbook. I need to some rows from one workbook and save into another if some condition is met. i have a column in sheet2 of workbook1 which is either 'true' or 'false'. I need to copy all rows from sheet1 if a 'true' is obtained in sheet2 and need to copy it to another workbook (workb...
2018/02/26
7,463
22,783
<issue_start>username_0: I am working on a triangulation application where I can click inside a frame triangle in a window to subdivide it in 3 triangles and so on. Therefore, everytime I add a point, I add two triangles to a structure defined as the class Triangle (see Triangle.h and .cpp). For each object triangle, I...
2018/02/26
1,491
4,225
<issue_start>username_0: I'm trying to get a div that has a circular border to have a gradient. The div is also hollow on the inside to have text in. What I want (Designer Mock) [![enter image description here](https://i.stack.imgur.com/LVO37.png)](https://i.stack.imgur.com/LVO37.png) I've tried using the border-ima...
2018/02/26
1,554
4,228
<issue_start>username_0: I have simplified the data that I have to illustrate the problem. ``` x = [0, 1.5, 1.5, 2.0, 3.0, 3.0, 5.0] y = [10, 20, 30, 40, 50, 60, 70] ``` I expect to merge the duplicate x values and replace the y values for those duplicate entries with average. For the given data I would expect ...
2018/02/26
504
1,691
<issue_start>username_0: How can I iterate through and extract values from the following list, the code I am using below only gets the key values. ``` > [{'filename': , 'desc': > u'dfgdgfdfg'}, {'filename': 0x04014930>, 'desc': u'dfgdfgdfg'}, {'filename': object at 0x04014A90>, 'desc': u'fghfghfh'}] ``` Code: ```...
2018/02/26
876
3,130
<issue_start>username_0: This line works fine for my Windows program. When i run this same file on the Mac OS X, I get a blank page instead of my icon. Here is the windows line: ``` self.iconbitmap("Boss.ico") ``` I have searched relentlusly for an answer I want this icon to work on both platforms. `self` is the r...
2018/02/26
401
1,507
<issue_start>username_0: Is there is a way to have `guard` automatically return without needing to actually write it out every single time, e.g: ``` guard let url = self.webView.url else { return } guard let componentDict = URLComponents(string: url.absoluteString)?.dict else { return } guard let id = componentDict["v...
2018/02/26
912
3,611
<issue_start>username_0: I've made a local notification with swift4 every day every at 17.00. and I want the notification to not show up on holidays (Saturday, Sunday). How can I do that? Here is my code: ``` // schedule notification every day var dateComponents = DateComponents () dateComponents.hour...
2018/02/26
725
2,232
<issue_start>username_0: I want to select an `input` tag when it is followed by `span` : **HTML :** ``` ... ``` **CSS :** ``` input [followed span] { padding:5px; (set input padding, only when followed by span) } ```<issue_comment>username_1: This will return content in span tag but uh need to specify at wh...