date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/19
460
1,552
<issue_start>username_0: It says I have invalid syntax at `Sum += 1`. If my code is incorrect what is a better way to go about counting how many even numbers are in a list? ``` def countEvens(listOfInts): ''' - Returns an integer value representing the number of even numbers that exist in listOfInts. -...
2018/03/19
1,723
6,855
<issue_start>username_0: I've got problem with renaming column and migrating changes to database. Migration: ``` protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.RenameColumn( name: "int", schema: "Gamgoo.More", table: "Rating", ...
2018/03/19
852
2,214
<issue_start>username_0: I have a pandas dataframe indexed by date and and ID. I would like to: 1. Identify the ID of additions and deletions between dates 2. Add the ID to another dataframe with the date of the addition/deletion. ``` date ID value 12/31/2010 13 -0.124409 9 0.555959 ...
2018/03/19
1,250
3,048
<issue_start>username_0: I must be missing something really obvious here. I can decode this sample bit of data using online tools like <http://asn1-playground.oss.com/>, but am having trouble with basic usage of Perl's Convert::ASN1. Any idea what I'm missing? ```perl use strict; use warnings; use Convert::ASN1; use f...
2018/03/19
1,228
4,189
<issue_start>username_0: In a *n-depth* `dict` where values are set in the deepest level of a hierarchy: ``` { "name": "root", "value": None, # expected value to be 80 "children": [ { "name": "a", "value": None, # expected value to be 30 "children": [ ...
2018/03/19
1,291
4,156
<issue_start>username_0: I have this assignment: a. concatenation: generate a report listing vendor name and location as ‘name (location)’ b. the list above contains trailing spaces in both fields; trim the spaces and display results. c. assign a name for the newly derived virtual column in the database d. as a reminde...
2018/03/19
622
2,232
<issue_start>username_0: I am creating a multi-step form using Bootstrap and jQuery. It has three sections and includes a progress bar to show the user's current status in the form process. The last two pages of the form work fine, however, the first section of the form (the email section) is not allowing the user to c...
2018/03/19
628
2,425
<issue_start>username_0: So this is probably an easy one, but I'm just not doing it right. My goal is to **send the user input from this textbox**: **Into this Div**: ``` ``` --- I'm trying to make it appear in real time, and so far I used this to try and do so, but it doesn't work: ``` document.getElementById("c...
2018/03/19
956
3,725
<issue_start>username_0: [IDR](https://www.aldeid.com/wiki/IDR-Interactive-Delphi-Reconstructor) is a good tool for decompiling Delphi applications, but hHow do I know the ID number of Windows messages assigned to message handlers? For example, from IDR decompiling, I see: ``` procedure sub_004D2398(var Msg: TMsg);dy...
2018/03/19
1,148
4,478
<issue_start>username_0: I found solutions telling me to use something like this (in system.web) to a make custom error page: ``` ``` and this (in system.webServer): ``` ``` I tried both of these methods and none of them seemed to work. I'm not sure if I have to delete things in in `system.web` and `system.webSer...
2018/03/19
2,077
4,770
<issue_start>username_0: I have the following working example in `Python` which takes a string, uses a dict comprehension and a regular expression on it and finally generates a dataframe from it: ``` import re, pandas as pd junk = """total=7871MB;free=5711MB;used=2159MB;shared=0MB;buffers=304MB;cached=1059MB; free=71...
2018/03/19
1,696
3,963
<issue_start>username_0: In R how to delete rows that have missing values for **all** variables?. I want to keep the rest of the rows that have records with some missing values. I have tried the code posted here previously and it is not working.<issue_comment>username_1: A purrr option: ```r library(purrr) 'total=787...
2018/03/19
594
1,409
<issue_start>username_0: I have a data frame with accumulated numbers having missing values: ``` data.frame(a=1:9, b=c(14,17,NA,20,25,29,NA,NA,41)) ``` I want to fill that gaps with **integers** as uniform/distributed as possible. For instance: * If we have 3 spaces between 5 and 10, we can have (6, 8, 9); * If we ...
2018/03/19
2,213
7,507
<issue_start>username_0: Firstly please excuse the amount of code Im going to dump. **Current Behaviour**: When you click on a li, the data-id is placed into or removed from an array and the table rows with the classes from the array are shown and all other table rows are hidden. The purpose, to filter out rows from ...
2018/03/19
1,845
7,256
<issue_start>username_0: I've been tasked with hosting our Python API docs for our customers to access. ReadTheDocs.com was recommended by a colleague. However, I've had some challenges with it: 1. The default approach is to give ReadTheDocs full access to our code repo, in which the documentation is just one sub-fold...
2018/03/19
1,676
6,592
<issue_start>username_0: I have a tableview of 10000 cell and each cell contains text and image url to show. I would like to scroll tableview very fast to the end of the tableview, and for each row send the async request to downloading the image, it means 10000 downloading thread request calls, but I need to only downl...
2018/03/19
1,698
6,664
<issue_start>username_0: we want data place holders in excel. We have input data in json format. How can we use aspose.cell to map the data to placeholder at runtime in the provided xlsx and generate excel output? is there way to define template similarly for pdf which can load data from json? The transformation rout...
2018/03/19
717
3,185
<issue_start>username_0: My question is strictly related to transactional emails and common best practices like using different email providers for transactional and marketing emails, relevant Subject, From and Reply-To addresses, etc. is assumed. **Would using multiple transactional email providers with a different a...
2018/03/19
904
3,699
<issue_start>username_0: We are running a WebApp with 3 instances. We would like to restart these instances at night individually. Im trying to find a Powershell or REST API solution to work along with a cron job but I'm only coming up with solutions to restart the entire WebApp. We are aware of the manual process to ...
2018/03/19
1,498
4,008
<issue_start>username_0: I have a class that has different member function signatures. Based upon some requirement (to optimize execution time specifically) I need to call one the above methods at a specific time. I have plan to create a structure of below type: ``` #include class A { public: void Show() {std::cou...
2018/03/19
659
1,669
<issue_start>username_0: I left a question for finding the column with the lowest value and here is the link [find the column with lowest value in r](https://stackoverflow.com/questions/49203020/find-the-column-with-lowest-value-in-r/49203047#49203047) This perfectly works for me. However, I have a similar but differe...
2018/03/19
264
831
<issue_start>username_0: How can I change `Nokogiri::XML('813').children` to return `813` (because it only returns `8`) Thanks !<issue_comment>username_1: Is it possible to wrap your XML like so? `813` The result of: `Nokogiri::XML('813').children` will then be: `813` Upvotes: 0 <issue_comment>username_2: [N...
2018/03/19
628
1,898
<issue_start>username_0: I am trying to connect mongodb and node.js for a project I'm working on. I have set up a database as follows: [click here to view the status of the database](https://i.stack.imgur.com/PxZZR.png) and I have a file called index.js in D:\node.JS. Here's the content of the file: ``` const MongoC...
2018/03/19
1,457
2,722
<issue_start>username_0: I have a data of 131 columns. The first column is my Y. I have 130 Xs. I want to have 130 linear regressions which are lm(y ~ x1), lm(y ~ x2), lm(y ~ x3 ) ....lm(y ~x130). Then get the p-value of every of these fit. How can I make it faster? for loop or apply?<issue_comment>username_1: If your ...
2018/03/19
1,843
4,053
<issue_start>username_0: I have a problem using the any function for strings in a if/else statement. Note that the print ("A") in the function is just an example. I need to perform a series of operation if the column contains certain values. Randomly generated data ``` level=c("Strongly Agree", "Agree", "Neither agr...
2018/03/19
961
4,464
<issue_start>username_0: This feels like it should be a simple thing, but I'm still pretty new to SpringBoot, and the whole Servlet ecosystem, so it's not readily apparent. I would love an interface similar to HandlerInterceptor that allows me to modify the request and response object once I'm done in a controller. Eve...
2018/03/19
543
1,946
<issue_start>username_0: I'm working with `Vuetify` and `Stylus` on this snipped of HTML ``` Language ``` Is there a `CSS`/`Stylus` way to edit `input-group__details` based on what the status of `input[readonly]` is? Something like: ``` if (.input-group > input has readonly) .input-group__details hei...
2018/03/19
1,517
5,100
<issue_start>username_0: I am working on using opencv to get the total number of people in a video stream. The problem is that my code only captures the number of people in frame without taking into account all of the frames in the stream. I thought about extracting all the faces detected from a video or webcam and the...
2018/03/19
473
1,439
<issue_start>username_0: How can i have my SVG image on the same line of my text in an inline-block container ? In the above example, I want my picture let at the right of my text, on the same line but browser automaticaly break line. ```css .container{ display: inline-block; background:orange; } ``` ```html ...
2018/03/19
577
2,078
<issue_start>username_0: I'm fairly new to php oop and I'm starting to get the hang of things. Though I have extended procedural experience, I've only recently started to build my own MVC framework, mainly for learning purposes. I got to the stage where I know how to route url's to controllers and models and render vie...
2018/03/19
1,082
3,929
<issue_start>username_0: I'm no back-end developer. So perspective is always appreciated. I have written a script which requests from an API and creates this huge JSON file I want to save in firebase, how can I accomplish this? And would it be possible to filter this json with python for example; when I add region=eu...
2018/03/19
687
1,936
<issue_start>username_0: I am trying to create a RegExp in oracle to match a string with the following criteria, Length 11 characters. The 2,5,8,9 characters are letters [A-Z ] except ( S,L, O,I,B and Z). The 1,4,7,10,11 characters are numeric [0-9]. 3rd and 6th will b either a number or a letter.<issue_comme...
2018/03/19
786
2,580
<issue_start>username_0: On many modern browsers (for example both Safari and Chrome on MacOS and iOS), it's possible to scroll past the actual html page to explore what lies beyond it (for example, on this very page, there's a white field below the dark footer on the bottom). I've been trying to figure out the general...
2018/03/19
791
2,231
<issue_start>username_0: I am wondering if it's possible to number format a BigInteger in Java by converting to 2 decimal places and adding a Suffix? E.g 1000 = 1.00k, 1000000000000 = 1.00t I am currently using the following code which is perfect for formatting longs... ``` public static String withSuffix (long cou...
2018/03/19
1,147
2,842
<issue_start>username_0: I am trying to get test token validation working for an Outlook office add-in. Decoded String: VNNAnf36IrkyUVZlihQJNdUUZlYFEfJOeldWBtd3IM= Encoded String: %3Cr%3E%3Ct%20aid%3D%22WA900006056%22%20pid%3D%22bd1fedd2-ff5f-4b8e-ac48-c2b47ee0ce91%22%20oid%3D%223DBFC30C-DBE9-419E-A5FB-1DB48BEDEC1B%2...
2018/03/19
531
1,833
<issue_start>username_0: I have the following object structure represented by c# classes: ``` [ { Title: "", Year: 1977, Categories: ["Action", "Adventure", "Fantasy"], Score: 96 } ] ``` This json is serialized to an `IEnumerable` object, where `Categories` is an `IList` objec...
2018/03/19
661
2,525
<issue_start>username_0: I am first time working with both windows service and MSMQ. I am trying to read messages from queue. When I start my windows service, i am receiving only first message and next message not able to read, service is still running. if I restart the service It is reading first message from the queu...
2018/03/19
435
1,945
<issue_start>username_0: Prior to using Facebook SDK we used to share via UIActivityViewController since Facebook does not allow for us to pre-fill information on the user sharing, our solution was to use information the user description of the Image being share `UIPasteboard.general.string`. So the app would switch to...
2018/03/19
1,011
3,472
<issue_start>username_0: I have a problem with my Flutter Layout. I have a simple container with a Margin right and left of 20.0 Inside this container i have another container. But this container does not fit to the parent container only on the left side. I dont know why this happens. Here is my Code: ``` @overri...
2018/03/19
955
3,225
<issue_start>username_0: I am using this code to read the file and add new data at the end of file. `$fh = fopen($myFile, 'a') or die("can't open file");` The problem is that this code works fine on local server but giving an error of `can't open file` on Amazon EC2 server. Also file i use the parameter `r` instead ...
2018/03/19
629
1,436
<issue_start>username_0: I was trying to deploy flask-ask alexa skill using Zappa. I followed the instructions on [Alexa Tutorial: Deploy Flask-Ask Skills to AWS Lambda with Zappa`](https://developer.amazon.com/blogs/post/8e8ad73a-99e9-4c0f-a7b3-60f92287b0bf/new-alexa-tutorial-deploy-flask-ask-skills-to-aws-lambda-wit...
2018/03/19
1,589
3,234
<issue_start>username_0: I've been trying to do this for a while and I've tried things I've found on forums but it's still not working and I feel like it's a really obvious error. Here's my code: ``` allnum=[] num=[] for i in range(100): allnum.append(random.randint(1,99)) num.append(allnum[:10]) print (allnum) p...
2018/03/19
869
3,300
<issue_start>username_0: I'm using a function called Get-ADdirectReports which recursively grabs all users who report to a specific manager (includes other managers and their team members if the manager is responsible for multiple teams). I'm trying to return all AD users and see if they recursively report to the defin...
2018/03/19
797
2,988
<issue_start>username_0: I have a set of coordinates X and Y for a line around a race track. I want to offset this line to give me an inner and outer set of track coordinates but i am not sure how to best do this. I want it to look like the track below. Thanks ![enter image description here](https://i.stack.imgur.com/...
2018/03/19
889
3,365
<issue_start>username_0: I have an array of strings that are also keys for endpoints in my Firebase Realtime Database. I would like to loop through this array and get the Firebase object for each one of the keys. I get no response with the code below Is there a way to dynamically subscribe to Firebase Observables? `...
2018/03/19
787
2,055
<issue_start>username_0: I have following array which contains strings; ``` let data = ["2018-1", "2018-5", "2018-11", "2018-2", "2018-10", "2018-12"]; ``` these strings are composed of number (year and month). Can you tell me why didn't work following function for sorting? I need sort this array from latest date t...
2018/03/19
1,053
3,893
<issue_start>username_0: How can I get javascript to **immediately** stop script execution and change to another page. Consider this: ``` function onload() { alert('before'); window.location.href = 'http://google.com'; alert('after redirect'); } Hello World! ``` The second alert message always fires.<issue_...
2018/03/19
1,161
4,325
<issue_start>username_0: I have a combo box field that is associated to a parent list on a new item form. When I customize the form with info path and add a query string web part, the field is not available. If I don't customize it and use the default new item form, it becomes available, but it does not set the value. ...
2018/03/19
1,080
3,994
<issue_start>username_0: I create a left nav bar button but I don't know how to store image from url into the button image. Below is my nav bar left button code ``` navigationItem.leftBarButtonItem = UIBarButtonItem(image: <#T##UIImage?#>, style: .plain, target: self, action: #selector(handleButtonPressed)) ``` ...
2018/03/19
1,061
3,924
<issue_start>username_0: I executed a script simulating 950 VU in 10 seconds, but Jmeter last 23 minutes in finish the test. I guess that Jmeter doesn't finish the test until it completes the number of threads of the test, and that depends on the server response time. Does it work like that or on what the finish t...
2018/03/19
871
3,682
<issue_start>username_0: I get this error when trying to compare password with `bcrypt` **Error:** `Error: data and hash arguments required` This is my code ``` //compare password bcrypt.compare(req.param('password'), user.encryptedPassword, function(err, valid) { if (err) return next(err); ...
2018/03/19
2,087
6,891
<issue_start>username_0: I am following the [Quick Start Guide for Yocto Project](https://www.yoctoproject.org/docs/2.4.2/yocto-project-qs/yocto-project-qs.html) on **Windows Subsystem for Linux**. I cloned all the necessary stuff: ``` sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \ bui...
2018/03/19
747
2,503
<issue_start>username_0: I installed 2 VS versions and trying to connect them to different TFS server, and Looks like there is not place to do this?? my existing VS12 was working with TFS1 server, and once I launched VS17 it recognized TFS1 and I could not find a place either FILE/SOURCE CONTROL on in Team Explorer Hom...
2018/03/19
809
3,280
<issue_start>username_0: I am adding MKAnnotationView in Apple map and make a tap event in the annotationView.But Mylocation marker is interacting the annotationView tap.How to overcome this problem.Hope you understand my problem.Thanks in advance. ``` func mapView(_ mapView: MKMapView, viewFor annotation: MKAnnotati...
2018/03/19
673
1,783
<issue_start>username_0: I'm getting the following error when I execute my tests. This was working previously. Not sure what I need to do in order to fix this error. ``` golang.org/x/crypto/ripemd160/ripemd160block.go:12:2: cannot find package "math/bits" in any of: /usr/local/Cellar/go@1.8/1.8.7/libexec/src/math/...
2018/03/19
1,529
3,785
<issue_start>username_0: I'm a real beginner with PHP, just had my first lesson. We have to create a program that prints Armstrong numbers (up to 10000). The output should look like this. ``` 0 ist eine Armstrong-Zahl: 0^1 = 0 […] 8 ist eine Armstrong-Zahl: 8^1 = 8 9 ist eine Armstrong-Zahl: 9^1 = 9 153 ist eine Arm...
2018/03/19
845
2,646
<issue_start>username_0: these are the settings wordpress theme: shopkeeper plugins: w3 total cache, woo commerce, instagram widget, SEO Yoast, Media file renamed, WP smush, slider revolution , my bag extension, WPBakery Page Builder, WooCommerce Stripe Gateway. I tried even disabling all the plugins I don't know ab...
2018/03/19
795
2,397
<issue_start>username_0: I am using a 64bit Windows OS and Code blocks version 17.12. Whenever I try to debug my code, I get the following message and debug does not start. ``` Active debugger config: GDB/CDB debugger:Default Building to ensure sources are up-to-date Selecting target: Debug Adding source dir: ...
2018/03/19
756
2,768
<issue_start>username_0: I am generating a random number in jquery and I want this value not to change per session. It means, the value should not renew every time the page is refreshed. ``` XX/p> ``` This is my current code: ``` var minMember = 10; var maxMember = 50; var randomNumber = randomNumberFromRang...
2018/03/19
925
3,317
<issue_start>username_0: Hi I am using learndash Wordpress plugin. I want to get the data related to a user tht how many courses he is enrolled in and how many has he completed. Is there a way to check this? does learndash provide any solution for this or should I query data myself? Any help is appreciated. Thanks in ...
2018/03/19
1,286
4,787
<issue_start>username_0: I have implemented ionic inapp browser in my app. I want to hide the top bar from it. I am trying using the below code but it does not seem to work. [![enter image description here](https://i.stack.imgur.com/nVaND.png)](https://i.stack.imgur.com/nVaND.png) **page.ts code** ``` openWebpage(...
2018/03/19
1,495
4,065
<issue_start>username_0: I have few string with numbers like this; and its around 3000 records. ``` Column ------------ Cell 233567-3455 Cell123-4567 Cell#123-7449 Local 456-0987 1 616 468-7796 1234567-5x2345 23...
2018/03/19
1,335
4,545
<issue_start>username_0: Trying to use custom font in WKWebView but no luck. ``` let htmlString = "\(Utils.aboutUsText)" webView.loadHTMLString(htmlString, baseURL: nil) ``` I can use HelveticaNeue-Bold and works great but not with the custom font above. ``` let htmlString = "\(Utils.aboutUsText)" webView.loadHTMLS...
2018/03/19
1,589
5,549
<issue_start>username_0: I was trying to load the assembly so I could connect to TFS from powershell but I'm getting an error when I try to Add-Type. The nuget package was successfully downloaded and the file exists for the assembly I want to add. My code is as follows ``` $sourceCodeDirectory = "C:\testing123"; Cl...
2018/03/19
1,096
4,294
<issue_start>username_0: I was Implementing the chat application, and I am using RecyclerView to deal with sender and receiver messages, all things are working except my Chat activity UI, when sender send the message then received message shown by scrolling down the activity, Its look like sender message is on one scre...
2018/03/19
423
1,563
<issue_start>username_0: I'm using C ++ 11. I'm wondering if there are any advantages to using `cin.getline ()` compared to `gets ()`. I need to fill a `char` array. Also, should I use `fgets` or `getline` for files?<issue_comment>username_1: > > I'm wondering if there are any advantages to using cin.getline () comp...
2018/03/19
1,478
5,444
<issue_start>username_0: Using `iText` we can easily change zoom level for links. There is even a piece of [code](https://developers.itextpdf.com/examples/actions-and-annotations/changing-zoom-factor-link-destination) that does this for `GoTo` destination type. For convienence, please find it below. ``` PdfReader read...
2018/03/19
581
2,363
<issue_start>username_0: I have a series of menu options which are all individual user controls on a windows form application. [![enter image description here](https://i.stack.imgur.com/S5y2c.jpg)](https://i.stack.imgur.com/S5y2c.jpg) How do I refresh the user control so that if for example I added a new person to m...
2018/03/19
435
1,520
<issue_start>username_0: I have a cvs file with one column and 300,000 individual text lines, which I would like to convert into a list of list. So that I get a list of 300,000 lists, with every sentence readable as a string. When I open the csv as a DataFrame and convert it into a series, every sentence is split into...
2018/03/19
1,533
3,846
<issue_start>username_0: I have this vector in a data frame of times in the format of hours:minutes that I want converted to categorical times of day: ``` time <- c("15:03", "08:01", "11:59", "23:47", "14:20") df$time <- format(strptime(df$time, tz = "" , format = "%H: %M"), format = "%H: %M") df <- data.f...
2018/03/19
951
3,664
<issue_start>username_0: I am currently trying to create my first **rest service with spring**, I wan't him to return **XML result (based on JAXB)**. on a very basic rest controller: ``` import org.springframework.web.bind.annotation.*; import java.util.ArrayList; import java.util.List; @RestController public class ...
2018/03/19
1,221
5,519
<issue_start>username_0: I got basic client-server chat application. Server side seems to work, when I connect with it via telnet, it receives the message and sends it back to all connected clients. I can't achieve the same using my own client tho. So from the beginning, `Server` class ``` public class Server { ...
2018/03/19
963
3,478
<issue_start>username_0: I have a service that contains a method that gets a list of employees: ``` export class EmployeeService { private employeesUrl = 'http://localhost:portnum/api/employees'; getEmployees(): Observable { return this.http.get(this.employeesUrl).catch(this.errorHandler); } } ``` In my...
2018/03/19
941
2,687
<issue_start>username_0: I am using bootstrap 4 and it is great but Is there any way I can add certain columns another class like resizable and maybe add min-width or max-width and they will be resizable within these limits. That would be so great. I’m not referring to any existing library specifically. I am just loo...
2018/03/19
576
1,931
<issue_start>username_0: Say I had this loop: ``` count = 0 for i in 0...9 { count += 1 } ``` and I want to delay it. Delay function: ``` // Delay function func delay(_ delay:Double, closure:@escaping ()->()) { DispatchQueue.main.asyncAfter( deadline: DispatchTime.now() + Double(Int64(delay * Double(NSEC_P...
2018/03/19
375
1,539
<issue_start>username_0: We have the requirement to synchronize the data in a table across multiple MySQL databases. One of the databases would be the source, and all others need to have the synchronized data for one of the tables. We have multiple databases used in microservice architecture, and they all need to have...
2018/03/19
812
3,044
<issue_start>username_0: I am trying to get the value and href link of the closest anchor tag based on a nearby button. As you can see, this is a list of anchor tags and buttons. so want to target that specific anchor tag when clicking on a button. I am logging to see the name and href, but coming as empty and undefine...
2018/03/19
1,581
6,684
<issue_start>username_0: this is the code: ``` public class MainActivity extends AppCompatActivity { ListView listView; ProgressBar progressBar; String HTTP_JSON_URL = "http://10.0.2.2/positivity/all_subjects.php"; EditText editText; List SubjectArrayList = new ArrayList(); ArrayAdapter a...
2018/03/19
990
3,106
<issue_start>username_0: I have a complex, large pandas dataframe with one column, X that can contain either one list or a list of lists. I'm curious if the solution can apply to any content though, so I give a mock example with one element of X being a string as well: ``` df1 = pd.DataFrame({ 'A': [1, 1, 3], ...
2018/03/19
1,370
4,040
<issue_start>username_0: I'm trying to perform multiple inserts from 1 sql query. To break down what I'm trying to do here is the DB structure: ``` links: - id // uuid_generate_v4() - hash permissions: - id // uuid_generate_v4() - name photos: - id // uuid_generate_v4() - url link_permissions: - link_...
2018/03/19
703
2,357
<issue_start>username_0: I am currently trying to test how to completely cover my Angular web page with an image background. I've looked into numerous examples online on how to get this to happen. This is what I've come up with in my .html and .css code: ``` ``` --- ``` html, body{ height: 100%; /*font-family: ...
2018/03/19
946
2,572
<issue_start>username_0: I have a table `MY_DATES (START_DATE DATE, END_DATE DATE)` with data like : ``` START_DATE END_DATE --------------------------- 18-DEC-17 07-JAN-18 27-JAN-18 06-FEB-18 08-MAR-18 18-MAR-18 ``` I need to generate dates for all the date ranges in my table in a si...
2018/03/19
263
992
<issue_start>username_0: I have been through similar topics here and went through documentation, but still have a problem with the following block of code: ```js var distanceToPump = 50; var mpg = 25; var fuelLeft = 2; var zeroFuel = (distanceToPump, mpg, fuelLeft) => { return ( mpg * fuelLeft ) == distanceToPu...
2018/03/19
912
2,565
<issue_start>username_0: I am trying to setup stunnel with REDIS in windows.After installing stunnel and redis, I have following configuration fro server and client mode : Client Machine Configuration: ``` [redis-stunnel] client = yes cert = stunnel.pem accept = 127.0.0.1:6379 connect = 172.30.12.28:6390 verifyChain ...
2018/03/19
875
2,855
<issue_start>username_0: I'm getting an error when trying to run a simple dashboard using Dash. I'm using Spyder with Python 3.4. I've `pip installed` `dash, dash_core_components, dash_html_compenents`.. My code: ``` import dash import dash_core_components as dcc import dash_html_components as html app = dash.Dash()...
2018/03/19
1,480
5,824
<issue_start>username_0: I'm trying to write a macro, which writes accesors for a class automatically for all slots. I came up with this ``` (defmacro defacc (class) (loop for name in (mapcar #'slot-definition-name (class-slots (class-of (make-instance `,class)))) do `(defun...
2018/03/19
418
1,412
<issue_start>username_0: I'm on a Mac (High Sierra 10.13.3). I switched from NPM to yarn a few weeks back. Recently, yarn has been giving me issues when attempting to global install various tools and libraries (webpack, etc) saying that "an incompatible module "node" was found. Expected version 6.11.0". I've tried usin...
2018/03/19
295
940
<issue_start>username_0: What are the advantages of saving file in .pkl format over .txt or .csv format in Python?<issue_comment>username_1: Updating your node.js to the newest version could resolve your issue. And if not try running this: ``` yarn add prettier --ignore-engines ``` Upvotes: 0 <issue_comment>username_...
2018/03/19
1,508
5,749
<issue_start>username_0: I am trying to build a small app in C# to retrieve suggested meeting times from the Microsoft Graph API. After authenticating, I call `graphClient.HttpProvider.SendAsync(t);` to hopefully get suggested meeting times. However, stepping through with breakpoints everything seems to go fine until t...
2018/03/19
333
1,290
<issue_start>username_0: I want to display a Tableau dashboard in a web form in a visual studio project that I have hosted on AWS. I have used C# to code. I don't even know where to get started with this!<issue_comment>username_1: Without more detail, it is difficult to determine what is going wrong here. That said, yo...
2018/03/19
385
1,447
<issue_start>username_0: my android studo 3.0.1 is not showing attributes of any widgets (e.g. textview, edittext, button, etc) I have saw the post here [same problem](https://stackoverflow.com/questions/41637499/android-studio-not-showing-properties) but file->invalidate and restart didn't solved my problem. Can som...
2018/03/19
1,757
4,934
<issue_start>username_0: I have several character vectors of genes containing names of the species in which they're found, and I made an UpSetR plot to show the number of species in common across genes. Now I'd like to do the opposite: Plotting the number of genes in common across species, yet I don't know how to do it...
2018/03/19
447
1,398
<issue_start>username_0: I am trying to display content depending on page id, however when I add nothing to the url, so just index.php I get an error saying that `$p` is not defined, how can I give this var a default value that's outside the switch case? ``` php $p = $_GET['p']; switch ($p) { case 1: $cont...
2018/03/19
2,507
7,048
<issue_start>username_0: I have a set of paired data, and I'm using ggplot2.boxplot (of the easyGgplot2 package) with added (jittered) individual data points: ``` ggplot2.boxplot(data=INdata,xName='condition',yName='vicarious_pain',groupName='condition',showLegend=FALSE, position="dodge", addDot=TRUE,dotSize=3,dot...
2018/03/19
827
1,942
<issue_start>username_0: I have dataframe like this: ``` import pandas as pd data = [{'id': 'Jones', 'tf': [(0, 0.5), (1,2.0)]}, {'id': 'Alpha', 'tf': [(1,2.0)]}, {'id': 'Blue', 'tf': [(2,0.1),(1,0.2)]}] df = pd.DataFrame(data) ``` ` I want to have dataframe in this form: ``` 'id', 'var', 'value' ...
2018/03/19
564
1,597
<issue_start>username_0: I have a file like this: ``` A_City,QQQQ B_State,QQQQ C_Country,QQQQ A_Cityt,YYYY B_State,YYYY C_Country,YYYY ``` I want to add one more column at end of the line on the same file with the first letter of each column. ``` A_City,QQQQ,AQ B_State,QQQQ,BQ C_Country,QQQQ,CQ A_Cityt,YYYY,AY B_St...
2018/03/19
551
2,016
<issue_start>username_0: In Elisp, I've encountered different APIs for modeling boolean values. I was under the impression that `t` and `nil` were the idiomatic ways of representing true and false respectively. However, I've also seen `1` and `-1` used to model the same thing. What confuses me is that I have come acr...
2018/03/19
519
1,530
<issue_start>username_0: I need to sort by `source` value size() descending: ``` def source = [(firstString): [3, 2, 1], (secondString): [3, 2, 1, 4], (thirdString): [3]] expected: [(secondString): [3, 2, 1, 4], (firstString): [3, 2, 1], (thirdString): [3]] ``` I've tried to sort doing this: ``` source.sort { -...
2018/03/19
1,824
6,252
<issue_start>username_0: I have created an API endpoint using the Django python framework that I host externally. I can access my endpoint from a browser (`mydomain.com/endpoint/`) and verify that there is no error. The same is true when I run my test django server on locally on my development machine (`localhost:8000/...
2018/03/19
795
2,863
<issue_start>username_0: I have the following model: ``` public class User { public Guid Id {get;set;} public string Username {get;set;} public string Address Useraddress {get;set;} } public class Address { public string Street {get;set;} public string Zipcode {get;set;} } ``` I want to save the...