date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/13
995
3,299
<issue_start>username_0: I am trying to run this code in Dev C++: ``` #include #include using namespace std; int main() { float sum =1; int num = -1; for(int i=1; i<=1000; i++) { num \*= i; sum += 1/(num); } cout< ``` Whenever I compile and run the code, I get the Windows error message that the pro...
2018/03/13
1,031
3,523
<issue_start>username_0: I am bring data in many `Table` so I want it to convert it to json while returning it. So I tried like below ``` public static string DataSetToJSON(DataSet dset) { JavaScriptSerializer jsSerializer = new JavaScriptSerializer(); List> parentRow = new List>(); Dictionary chi...
2018/03/13
962
3,451
<issue_start>username_0: I'm currently developing an appointment system for a university project using C# MVC. I would like to send automated emails through SendGrid which I'm using elsewhere in my project. My system and sql database are deployed on Azure, I've done some research and it has directed me towards sql sto...
2018/03/13
858
3,686
<issue_start>username_0: When I use Jackson polymorphic serialization, it generates a JSON object with an incorrect fully qualified class name. The code below serializes an XMLGregorianCalendar. The output is: ``` ["java.util.GregorianCalendar",-3600000] ``` I expected the following: ``` ["javax.xml.datatype.XMLGr...
2018/03/13
913
3,166
<issue_start>username_0: Is it possible to configure VSCode so that it displays unused import as grayed? I have VSCode 1.21.0, using Typescript 2.7.2 I found and tried several setups but none worked for me. Based on this [link](https://stackoverflow.com/questions/47539259/how-can-i-show-unused-imports-locals-in-green...
2018/03/13
506
1,851
<issue_start>username_0: Using developers.google.com we created api user and downloaded credentials as json file. Now On my macbook gspread authentication is working fine while using credentials.json. when moved same config to linux server on aws its giving 403 insufficient permission error. Pip and python version ar...
2018/03/13
395
1,218
<issue_start>username_0: I'm a beginner in node.js so please do excuse me if my question is foolish. As we know we can use ``` var regex = /[ !@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/g; regex.test(str); ``` to check whether a string contains special charecters or not .But what I'm asking is how to check for only a part...
2018/03/13
528
1,966
<issue_start>username_0: I have a protocol... ``` protocol MyProtocol {} ``` And some of my view controllers conform to this protocol... ``` class MyViewController: UIViewController, MyProtocol {} ``` And some of them don't... ``` class OtherViewController: UIViewController {} ``` Now... I have a function whic...
2018/03/13
589
2,285
<issue_start>username_0: While using the life-cycle methods in react-native, I have encountered the following warning messages in the console as well as in the emulator: > > Warning: componentWillReceiveProps is deprecated and will be removed in the next major version. Use static getDerivedStateFromProps instead. > ...
2018/03/13
522
1,800
<issue_start>username_0: I am plotting data which is polynomial but I would like to show it on a straight line so that it is clearer. I want the x-axis tick marks to show N^2 where N is the tick location. I also want the actual ticks on the graph to be evenly spaced even though the numbers aren't. I tried to change t...
2018/03/13
362
1,311
<issue_start>username_0: I want this login form to submit automatically when the page loads. I am using IP address for registration so do not want a login button. ``` ```<issue_comment>username_1: I think it does not affect your application, it's just annoying. Hide it by add below into `index.js`: ``` import { Ye...
2018/03/13
533
1,724
<issue_start>username_0: Hi I am trying to sort a list of dictionary. My goal to to sort dictionary on price basis. I am using python 3.6 . my initial dictionary is ``` basketContent = {'id': '1940', 'price': 10.8}, {'id': '1234', 'price': 130.5} ``` and i have to sort it. It must populate final dictionary as `{'id...
2018/03/13
958
3,386
<issue_start>username_0: Am a php novice and in need of some help. Basically I have a script that populates a drop down select bar using php. I want to retain the value the user selects in this drop down after submission, so the user does not have to select it again, here is the snippet of the script that I am trying t...
2018/03/13
665
2,471
<issue_start>username_0: ``` df1 <- data.frame(Sector=c("auto","auto","auto","industry","industry","industry"), Topic=c("1","2","3","3","5","5"), Frequency=c(1,2,5,2,3,2)) df1 df2 <- data.frame(Sector=c("auto","auto","auto"), Topic=c("1","2","3"), Frequency=c(1,2,5)) df2 ``` I have the dataframe 1 (df1)...
2018/03/13
3,000
8,727
<issue_start>username_0: I've just begun fiddling with the CSS Grid and I'm curious as to how to create a fixed header. Should I create a two row grid where row one is the header and row two is another grid for the content? Or is there an easier way to approach this? I've added height to the divs within the grid to e...
2018/03/13
955
2,761
<issue_start>username_0: Although there were multiple threads related to > > valgrind Address 0x421688c is 0 bytes after a block of size 4 alloc'd > > > kind of questions, but all were expressed with either strlen, or '\0' related issues and I understand them. I am having with linked list insertion dealing with i...
2018/03/13
462
1,812
<issue_start>username_0: this might be a stupid question but I was unable to find a solution, also no luck with search. My Node-Red flow gets triggered by a HTTP Input because I want to create a REST Webservice. It works fine so far but I wonder how to verify the content someone send to me. As I see right now, I can ...
2018/03/13
1,045
3,268
<issue_start>username_0: I wanted to see if anyone knew of a browser (or possibly even Java) tool where I can upload an image and it will make an effort to find different characters and crop them out to individual images. For example, in this image, I'd like for the tool to find three unique runic symbols and save the...
2018/03/13
778
2,102
<issue_start>username_0: From my xml, I can get this : ``` 2 ``` OR even this : ``` 2 ``` Which xpath expression can I use to get `"2"` instead of getting only "2" OR to get `"2"` instead of getting "2" ?<issue_comment>username_1: There's no libraries that'll do the cropping for your that I know of. One way o...
2018/03/13
753
2,742
<issue_start>username_0: Unable to pass quoted strings to the python script within a docker container. The quoted string is split as two independent items of the sys.argv vector. The expected behaviour of the python script is as follows. ``` check.py --coverage 'Hello World' --blabla something All Raw Arguments ['--c...
2018/03/13
1,458
6,162
<issue_start>username_0: In Spring Boot 1.5.x, I've had Security configured and in certain profiles (e.g. local), I've added `security.basic.enabled=false` line to the .properties file to disable all security for that profile. I'm trying to migrate to the new Spring Boot 2, where that configuration property is removed....
2018/03/13
1,463
6,138
<issue_start>username_0: I am trying to make the menu bar for my website flush against the top and side of the pages. Right now there is a slight gap at the top as well as on the left and right. I can't figure out what in my code is not allowing it to become flush. Here is what I have in my CSS. My Unorder list would b...
2018/03/13
619
2,008
<issue_start>username_0: I have a char pointer to a string taken in from a text file that I would like to split up line by line and store into an array. My code is here: ``` char * token; char * unsplitLines[lines]; const char * s = "\n"; int i = 0; while((token = strtok(rawFile, s)) != NULL) { printf("%s\n", tok...
2018/03/13
450
1,460
<issue_start>username_0: I have a route, for example `/posts/6`, I want at this route to make a button which will redirect me back to url path one level below, in that case, to `/posts/`. I didn't found a method of `Request` or `Route` class in BLADE, that will solve that issue.<issue_comment>username_1: you should try...
2018/03/13
686
2,895
<issue_start>username_0: I want to create two column layout with one vertical scrollbar which scrolls content synchronously. Each column in the page should have own horizontal scrollbar which is positioned at the bottom of the window (always visible). I created the demo <http://plnkr.co/edit/G0bz2zUrVvH7enYDGLiy?p=pr...
2018/03/13
723
2,746
<issue_start>username_0: I'm trying to add a simple functionality to my Grails project that similarily to youtube will allow users to like/unlike an article. There's a very primitive page to display articles with their likes and a controller that makes 'liking' possible. Alas, whenever this method is called, it tries t...
2018/03/13
548
1,626
<issue_start>username_0: I basically tried this: ``` #include int(&sort(int(&array)[]))[]; double(&sort(double(&array)[]))[]; char(&sort(char(&array)[]))[]; int main(){ int array[]{23, 44, 53, 65, 87, 1, 2, 0, 9}; sort(array); } int(&sort(int(&array)[]))[]{ std::cout<<"Function is entered, just for test"< ```...
2018/03/13
1,039
3,212
<issue_start>username_0: the results this returns includes if the result code has been done twice i.e. 1 record of data but PZ01 being used twice on the same record. I'm trying to only count it once. Each record has a unique ID which I don't want to show in this report. So I want this to run giving me the sum but from ...
2018/03/13
1,846
5,726
<issue_start>username_0: Any 3rd party Vue.js library that I try to add to my project, throws the following error: ``` Could not find a declaration file for module 'vue-xxx' ``` I have tried 'vue-treeselect', 'vue-select'*, 'vue-multiselect'* with more or less the same result (\* those libraries don't allow `import ...
2018/03/13
1,313
4,383
<issue_start>username_0: I have `orders` table and `order_histories` table. I need to sort `orders` by `order_histories.created_at` but only those `order_histories` that have `state_to = 'submitted'`. An `order` has multiple `order_histories` and may have none `submitted`. It may also have multiple `submitted` - in th...
2018/03/13
1,323
4,821
<issue_start>username_0: I've number of latitude and longitude in array. I want to display multiple markers in google map. I'm getting proble on that. Here's my code. ``` @IBOutlet weak var viewMap: UIView! let locationManager = CLLocationManager() var mapView = GMSMapView() var cameraPosition = GMSCameraPosition() f...
2018/03/13
674
2,604
<issue_start>username_0: They are 40 test cases, so i plan to execute single test by using Keywords(testcases name). I prepared csv with 40 test cases name and called using CSV data config. And in mention call the keywords in User defined variables. [![enter image description here](https://i.stack.imgur.com/yqKP9.png)...
2018/03/13
586
2,103
<issue_start>username_0: I am looking to understand how to succesfully target and toggle the class of a child element within a nested DIV when its parent a is hovered over. Markup is below: ``` [Uncategorized](Blah) ### [Hello world!](Blah) Welcome to WordPress. This is your first post. Edit or delete it, then...
2018/03/13
1,335
4,194
<issue_start>username_0: I have a problem, I was working on a code with python 3. the code is about getting news of a website onto my canvas. however I keep getting this error which says: > > AttributeError: 'NewsFeed' object has no attribute 'canvas'. > > > this is my code: ``` from tkinter import * import fee...
2018/03/13
710
2,009
<issue_start>username_0: I want to add a dot after 3 numbers like I have a input where the outcome comes with the id `price` ``` 100 = 100 1000 = 1.000 10000 = 10.000 1000000 = 100.000 1000000 = 1.000.000 ``` I need to do it without plugins<issue_comment>username_1: You could try this: ``` function getNumberWithC...
2018/03/13
394
1,421
<issue_start>username_0: I have a `mat-table` which is rendering around 10 rows at a time. The data source for this table comes from an API call as an array of objects. I want to add a `name` attribute to the `mat-cell` element inside it or to the `mat-row` element with the value as a string concatenated with the index...
2018/03/13
910
2,794
<issue_start>username_0: I am importing data into a pandas dataframe from Google BigQuery and I'd like to sort the results by date. My code is as follows: ``` import sys, getopt import pandas as pd from datetime import datetime # set your BigQuery service account private private key pkey ='#REMOVED#' destination_tabl...
2018/03/13
547
1,650
<issue_start>username_0: I'm trying to extracts these sequences into separate lists or arrays in Python from a file. My data looks like: ``` >gene_FST AGTGGGTAATG--TGATG...GAAATTTG >gene_FPY AGT-GG..ATGAAT---AAATGAAAT--G ``` I would like to have ``` seq1 = [AGTGGGTAATG--TGATG...GAAATTTG] seq2 = [AGT-GG..ATGAAT---A...
2018/03/13
659
2,095
<issue_start>username_0: Table 1 contains certain set of data's. I need to get the following result set form the Table 1 Table1 ``` Id Desc ParentId 1 Cloths 0 2 Mens 1 3 Womens 1 4 T-Shirt_M 2 5 Casual Shirts_M 2 6 T-Shirt_F 3 7 Education ...
2018/03/13
2,267
7,659
<issue_start>username_0: Suppose we have `x = ['a', 'b']`. What is happening under the hood for the statement: ``` x not in {None, False} ``` that raises the `unhashable type: 'list'` error? The workaround I found is to write this instead: ``` x != None and x!= False ``` but I am confused because, mathematical...
2018/03/13
339
1,285
<issue_start>username_0: I've set a recyclerview that works fine. I want to know when some element have the focus in the screen. My recyclerview display every item to fullscreen. Is possible to know, in the viewholder or in some place, what's the item that have the focus? My problem is that I have a countdown in every...
2018/03/13
291
1,018
<issue_start>username_0: I am new to jboss, what is the url and configuration settings you need to have to access Jboss's Manager/Admin portal<issue_comment>username_1: The url to access the JBoss Management Console is usually <http://your_host:9990>. Be careful that the console works only on localhost unless you edit ...
2018/03/13
532
1,426
<issue_start>username_0: I am using R and want to replace multiple values in data.frame starting with certain letters with one value. For example below is the sample values in my data frame like XYZ1, XYZ2, XYZ3, XYZ4.. etc then i want to replace all values which starts with "XYZ" to "ABC" Example df is the data fra...
2018/03/13
1,840
5,390
<issue_start>username_0: I wrote a kivy program which I want to export into a single .exe file through pyinstaller. I managed to export to multiple files (standard option) but when I add the --onefile option to pyinstaller the process get stuck on a line saying: ``` INFO: Building PKG (CArchive) out00-PKG.pkg ```...
2018/03/13
469
1,746
<issue_start>username_0: Suppose i have a method returning an array, if I want to make a copy of this array using a for loop to copy each element: ``` for(int i=0; i < array.length;i++) { copy[i] = someMethod()[i]; } ``` will this for loop redo someMethod every time we copy an element? Or does it perform the meth...
2018/03/13
385
1,400
<issue_start>username_0: I have to open a webview which loads a dynamic url based on certain parameters, I have to create the url based on different strings. What I'd like to do is the following: `String webPage = "www.webpage.com/" + "stringA/" + "stringB/"` -> where stringA and stringB are selected based on given ...
2018/03/13
703
2,307
<issue_start>username_0: I want to see all of the Task Scheduler jobs where the 'Actions' are not blank. I got the initial code from this link: [Task Scheduler in powershell script](https://serverfault.com/questions/604673/how-to-print-out-information-about-task-scheduler-in-powershell-script) For example, I don't w...
2018/03/13
525
2,027
<issue_start>username_0: I have an issue in my Angular5 application where it takes an additional click or any key press on keyboard to render my components. I have tried adding cd.detectChanges() and also tried using blur() method to remove focus on my search box (users enter some text and hit enter on inputbox and I a...
2018/03/13
665
2,241
<issue_start>username_0: First time using Multer - I built an app to parse a .csv file and count the # of occurences of each keyword and phrase in the file, but I made changes using node and express to parse the file AFTER it's been submitted via a form using express router and multer. I'm a bit confused as I am no l...
2018/03/13
935
3,100
<issue_start>username_0: I have the following table: **Employee (id int,name varchar,managerid int)** ``` ID NAME MANAGERID 1 A 2 2 B 4 3 C 4 4 D NULL ``` **Desired Output:** ``` ``` Now, I know this is nothing but **Depth First Search** so I've done foll...
2018/03/13
580
1,622
<issue_start>username_0: I face this peculiar situation: I am using `str` format to give my filenames a certain pattern. For example I am using a prefix and then a fixed-length number to create the filename. The problem occurred when I needed to also control the fixed-length number length: ``` prefix = 'action1' n = ...
2018/03/13
1,279
3,519
<issue_start>username_0: I am using `pip3` to install modules for my python project. My `requirements.txt` looks like this: ``` urllib3==1.22 cx_freeze==6.0b1 pytest==3.2.2 pytest-cov==2.5.1 pytest-dependency==0.2 ``` I clearly have `pytest` added to my requirements but when I run `pip3 install -r requirements.txt` ...
2018/03/13
881
3,873
<issue_start>username_0: When app goes in background (by pressing home button). When screen goes off, after 15-20 mins the background service stops on Android M (6.0) phone. Although it works fine on phone with Lollipop (5.0).<issue_comment>username_1: While an app is idle, there are limits to its use of background ser...
2018/03/13
622
2,071
<issue_start>username_0: I am passing multiple dates to my request, from groovy I returning something like this (dates vary): `[2018-06-11, 2018-06-13, 2018-06-11, 2018-06-14, 2018-06-11, 2018-06-14]` Before version 2.3.0 I was using the script below to access each element (this one gives 2018-06-11): ``` ${Groovy-Ch...
2018/03/13
666
2,319
<issue_start>username_0: From this [SO answer](https://stackoverflow.com/a/12784901/5450594), I've gathered you can't access a private field without setting `setAccessible(true)`. I could determine if a field is public or not with `isAccessible()`. However, how would I determine if it were public or private?<issue_comm...
2018/03/13
634
2,240
<issue_start>username_0: Is there a way to change any of the TextInputLayout's color to have a gradient. The answers I've seen so far allow the normal, activated, and highlighted colors to be changed to a single color through XML.<issue_comment>username_1: You got it wrong. You don't need reflection to access public fi...
2018/03/13
613
2,237
<issue_start>username_0: I have a collection in Mongo that contains documents that look like this: ``` { name: "Bob", destinations: [ { city: "Dallas", state: "Texas", isBusiness: "true", }, { city: "San Diego", state: "California"...
2018/03/13
367
1,347
<issue_start>username_0: I've used the same `cte` several times in one script without issues, but I just wanted to double-check. Let's say my script looks like this: ``` ;with cte as ( select provider, count(*) as 'rows_count' from table1 ) select *From cte ;with cte as ( select fname, count(*) as 'total...
2018/03/13
903
2,939
<issue_start>username_0: There is an example code in [this introduction](https://software.intel.com/en-us/articles/introduction-to-x64-assembly "Introduction to x64 Assembly By <NAME>"), like below: ``` ; Sample x64 Assembly Program ; <NAME> 2009 www.lomont.org extrn ExitProcess: PROC ; external functions in system ...
2018/03/13
976
3,499
<issue_start>username_0: I'm using the '[bson](https://www.npmjs.com/package/bson)' npm package in the browser for converting / serializing a JSON object to BSON. The documentation says that it returns a Node.js buffer. The documentation of Node.js says that a buffer is of type 'Uint8Array'. Now I want to send this Uin...
2018/03/13
677
1,797
<issue_start>username_0: Im new In PHP!. I have an array that contains dates and vlaues. How do i get all values of specific date?. EXp: I would like to get all values from year 2015. If someone Knows can guide me.<issue_comment>username_1: ``` php $array = array('2015-01-01' = "test1", '2013-02-04' =...
2018/03/13
1,230
4,952
<issue_start>username_0: I have faced some difficulties with Java parsing. I need somehow to get comments of class, fields, methods etc. via reflection. I have found [JavaParser](https://github.com/javaparser/javaparser) and it looks like it can elicit comments but I haven't got how to do it as all the examples just ...
2018/03/13
769
2,815
<issue_start>username_0: In JModelica I want to create models using components from multiple existing libraries. This means that it would be very useful to add the multiple libraries to the MODELICAPATH so components can be referenced without changing their existing paths. Something similar seems possible in [Dymola]...
2018/03/13
1,172
5,050
<issue_start>username_0: We are using AWS Cloud Trail to retrieve data (cloud trail events). We have used the gem 'aws-sdk-cloudtrail' (version 1.0). As per Cloud Trail we are able to retrieve maximum 50 results (latest once). To fetch the previous (older once ) results we use 'next-token' received in the previous resp...
2018/03/13
750
2,369
<issue_start>username_0: I am using `CountVectorizer()` in scikit-learn for vectorizing the feature sequence. I am receiving an error as below: ``` ValueError: np.nan is an invalid document, expected byte or unicode string. ``` I am using an example csv dataset with two columns `CONTENT` and `sentiment`. Here's my ...
2018/03/13
815
3,161
<issue_start>username_0: I am currently working on a project at my work which requires good understanding of Excel. For this project I have to design an Excel template and I am currently working on this. I have some knowledge of how to use Excel, but that does not contain coding in Excel by using VBA. I have found s...
2018/03/13
564
1,844
<issue_start>username_0: I have a simple dataset like this: ``` CREATE TABLE test (ts timestamp, email varchar, title varchar, hobby varchar); insert into test values ('2017-01-01', '<EMAIL>', 'blah', null), ('2017-01-02', '<EMAIL>', null, 'expected hobby'), ('2017-01-03', '<EMAIL>', 'expected title', null), ('2017-0...
2018/03/13
477
1,556
<issue_start>username_0: I would like to get lowest price of product based on last crawled dates by various resellers. My current function is very basic, it gets me lowest price from table without considering reseller ids and crawled timestamps. I've rough idea that we can `SELECT * FROM "custom_data_table"` and proce...
2018/03/13
1,029
3,600
<issue_start>username_0: I am using VGG16 with keras for transfer learning (I have 7 classes in my new model) and as such I want to use the build-in decode\_predictions method to output the predictions of my model. However, using the following code: ``` preds = model.predict(img) decode_predictions(preds, top=3)[0] ...
2018/03/13
420
1,478
<issue_start>username_0: I'm trying to write pure javascript function to replace the text "Passed" to "Completed". The HTML inside the div#prompt should remain in tact and is variable. Here is the HTML - ``` Passed [Take a survey](#) ``` I tried replacing text but that doesn't seem to be working ``` var text =...
2018/03/13
795
3,462
<issue_start>username_0: I have an android app that gets my location and displays a marker on it. It also tracks the device location locally and draws and marker on it, it also connects the markers with a poly line (This is just for accuracy testing). My question is that when I press the button Finish Journey how do ...
2018/03/13
571
2,455
<issue_start>username_0: How do I use Intent.ACTION\_TIME\_TICK correctly? I would like to create a receiver which checks the battery-level every minute. I use a Broadcast-receiver class witch is first started from main-Activity. Starting the broadcast receiver is not the problem. When the app is open everything works...
2018/03/13
384
1,368
<issue_start>username_0: I am using text analytics library "Spacy". I've installed spacy on Google Colab notebook without any issue. But for using it I need to download "en" model. Generally, that command should look like this: ``` python -m spacy download en ``` I tried few ways but I am not able to get it to ins...
2018/03/13
1,076
4,071
<issue_start>username_0: I'm attempting to utilize PowerShell's inheritance to create a class that inherits from an existing class and I am not seeing the expected behavior based on [various](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_classes?view=powershell-5.1#inheritanc...
2018/03/13
1,268
4,701
<issue_start>username_0: I am in the process of creating a section of a webpage where a user can upload a photo then manipulate the attributes of said picture, title, caption, etc. My questions comes as this: I have an edit picture function that I create a new caption file in by ``` //create new file $file = fopen($ne...
2018/03/13
305
1,313
<issue_start>username_0: What's the simplest way to syntax-check my VHDL in Vivado without running through a full synthesis? Sometimes I code many inter-related modules at once, and would like to quickly find naming errors, missing semi-colons, port omissions, etc. The advice I've read is to run synthesis, but that t...
2018/03/13
615
2,206
<issue_start>username_0: I began creating an extremely simple Flask application as I've done before and I'm getting a 404 error that's going completely over my head. My directory structure is as follows: ``` Site/ ----static/ --------css/ ------------css files --------img/ ------------image files ----templates/ ------...
2018/03/13
566
2,161
<issue_start>username_0: i use fullcalendar and want to send the year **of the selected view** (not the current view) to the page "ajax\_load\_projektkalender.php". The following try results in an error: ``` events: { url: 'ajax_load_projektkalender.php', type: 'POST', data: function() { // a function tha...
2018/03/13
712
2,458
<issue_start>username_0: I´m having some trouble with reading a file line-by-line, instead of reading the the file into memory. As of right now, I'm reading the file into memory, and it works perfect. However, If i try to read the file line-by-line, I only get zero when I type 'print(B)'. My question is, does anyone ha...
2018/03/13
505
1,635
<issue_start>username_0: I am trying to modify the css of the vuetify components for example change the `font-size` to `10px`, but it does not take my class into account Is there a solution for this ?<issue_comment>username_1: You could add this to your component: ``` Changing font export default { }; .change-...
2018/03/13
487
1,638
<issue_start>username_0: When the user logs in successfully I want it to output "hello" followed by the username. I have problems with outputting the name. Please be gentle since I am still learning. ``` php $_user = "true"; $name = ""; $_POST = ""; if ($_user == "true") { }else $name = $_POST["$name"]; { e...
2018/03/13
465
1,716
<issue_start>username_0: I need to be able to run the terraform plugin to do standard terraform tasks such as terraform plan and terraform apply which would require aws connectivity. i have installed the terrafom plugin but have no idea how to configure it<issue_comment>username_1: Terraform Plugin released in JetBrain...
2018/03/13
1,596
5,769
<issue_start>username_0: Description: Game has to be initiated, then a number of rounds (playRounds (3) must be placed) and, in a play mode call, players must be withdrawn hands and the winner of the round . After the rounds have ended, there must be a winner method that shows which player has won. A round ends when th...
2018/03/13
461
2,033
<issue_start>username_0: What is the difference between import a large csv file into SAS by code and using the import wizard (point and click)? Will the data imported in SAS be different?<issue_comment>username_1: The Import Data wizard is a code-writer, so it actually writes SAS code to perform the input. As such, it ...
2018/03/13
5,711
15,725
<issue_start>username_0: my programming team created an account activation function like in Michael Hartl's Rails tutorial. Now after a few weeks of coding the function stopped working. So that is the full function: ``` class AccountActivationsController < ApplicationController #Dieser Controller ist notwendig, um ei...
2018/03/13
746
2,366
<issue_start>username_0: I have this query : ``` select AlarmGroup,AgentName from v_Dashboard_Alarms; ``` when I execute it I have this list ``` AlarmGroup AgentName ========== ========== GroupName Thassos GroupName Thassos GroupName Thassos NULL Pythion NULL Met...
2018/03/13
682
2,051
<issue_start>username_0: Just trying to sum the series `1/(1 + 3n)` for a given `n`. I've used the code below and get an `"invalid syntax"` message, but I can't understand why as other examples seem to do the same. Returning a value rounded to two decimal places ``` def series_sum(n): ans = 0 for i in range(0,...
2018/03/13
714
1,866
<issue_start>username_0: I'm using FFMPEG library for generating video thumbnails every 5 sec with time codes using following command: ``` ffmpeg \ -i 20051210-w50s.flv \ -y \ -frames 1 \ -vf " \ select=not(mod(t\,5)), \ scale=320:-1, \ drawtext=fontfile=/usr/share/fonts/dejavu/DejaVuSans-Bold.ttf: \ ...
2018/03/13
478
1,744
<issue_start>username_0: I have created two seeder classes 'UsersTableSeeder" and "Conferences TableSeeder". When the command "`php artisan db:seed`" is executed it appears: Seeding: UsersTableSeeder But the ConferenceTableSeeder don't work. Do you know why can be? UsersTableSeeder: ``` class UsersTableSeeder exten...
2018/03/13
542
1,805
<issue_start>username_0: I have a nested list of something that I would like to transform by repeating each element a given number of times specified in another nested list (of identical structure). Example: ``` phrases = [ ['Happy birthday to you','Happy birthday dear Einstein'], ['Happy birthday to you'...
2018/03/13
969
3,394
<issue_start>username_0: I am a bit new to python and its concepts. For my current project i need to do certain api calls at x rate/y mins. Regarding this i came across the concept of decorator and a python library for the same. Its called [ratelimit](https://github.com/tomasbasham/ratelimit) and click [here](https://...
2018/03/13
729
2,606
<issue_start>username_0: I am trying to make a program that calculate the width or how many numbers a float contains. I need this to make good looking outputs in console. For example, the width of the following numbers are: ``` 4 (1) 23 (2) 0.3 (3 because the . has the width of one) 0.45 (4) 12.34 (5) 0...
2018/03/13
821
3,225
<issue_start>username_0: I have been working as a front-end developer in pure javascript for some time. I was used to the module pattern as you can see in the example below. Now I'm starting with TypeScript and it's impossible for me to get the same example pattern. The goal is to get a kind of namespace so as not to m...
2018/03/13
2,095
6,721
<issue_start>username_0: Is it possible in Pybind11 to use mpi4py on the Python side and then to hand over the communicator to the C++ side? If so, how would it work? If not, is it possible for example with Boost? And if so, how would it be done? I searched the web literally for hours but didn't find anything.<iss...
2018/03/13
1,262
4,156
<issue_start>username_0: Recently i integrated CSGO stats in my discord bot, but today i saw that for almost every player the API sends a different json data. Here 2 examples: <https://jsonblob.com/58688d30-26d0-11e8-b426-7b3214778399> <https://jsonblob.com/52ed0c3f-26d0-11e8-b426-43058df4a5a6> My question was how t...
2018/03/13
1,278
3,835
<issue_start>username_0: My question could be a little bit easy to answer but I've just started to learn clojure and I have no idea of how to do this. I have a JSON file that I have read and parsed. Now I have to get each element of this JSON and treat then according with the type. For example, I have the JSON: ``` {...
2018/03/13
516
1,388
<issue_start>username_0: My table: ``` id | request | subject | date 1 | 5 | 1 | 576677 2 | 2 | 3 | 576698 3 | 5 | 1 | 576999 4 | 2 | 3 | 586999 ``` Need to select unique records by two columns(request,subject) with showing last ...
2018/03/13
944
3,017
<issue_start>username_0: I'm trying to use `MIN()` aggregate function and fetch the minimum date from two columns and I was able to write the SQL query for this. But If one of the columns is having NULL values my query below is taking default date as '1900-01-01T00:00:00Z'. It should take the date from either Column1 o...
2018/03/13
1,159
4,524
<issue_start>username_0: Because `SqlCommand` implements `IDisposable`, I would normally approach an ADO query as follows. ``` using (SqlConnection connection = new SqlConnection(connectionString)) using (SqlCommand command = new SqlCommand(query, connection)) { // Execute command, etc. here } ``` However, what ...
2018/03/13
653
2,871
<issue_start>username_0: Having issues trying to order the some of my activities in my application. Have implemented some ideas that I have seen on SO, but to no avail. At the minute, my application is going `SplashScreen > MainActivty`. I want `SplashScreen > LoginActivity > MainActivity` Any indications on where I'...