date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/08
313
1,056
<issue_start>username_0: I am using `Asp.net MVC Web API` for my website. I added below lines in `web.config` to prevent `Cors` issue. It is working fine for `GET` method but showing an error for all other request methods. How do I solve this issue?<issue_comment>username_1: Try the following code or go through this...
2018/03/08
992
3,072
<issue_start>username_0: I have 2 SELECT statement in my PHP. Both the select statements fetch data from two different DB. The fetched data is saved in PDO Assoc Array. The problem is when I want to compare those two arrays to find that if the column 'id' exist in both arrays or not. If it exists then ignore it. If it'...
2018/03/08
671
2,626
<issue_start>username_0: I have a Laravel 5.5 app that uses view blades conventionally, nothing fancy. My blade is a long table of data and I split the group sections (item categories) into their own partials to manage the code better. However, I can't find a way to pass variable data from the partials back to the ma...
2018/03/08
1,753
3,502
<issue_start>username_0: I am trying to convert date information from a .csv file to date format in R, so that I create two week intervals with which to categorize data. However, when using as.Date, it is only working correctly on some of the dates, and leaving the rest as NA. I have tried editing the format of the dat...
2018/03/08
478
1,529
<issue_start>username_0: I am working on my project on a timetable app. I can get the date with: ``` import datetime now = datetime.datetime.now() print (now.day, "/", now.month, "/", now.year) ``` But I can't get the day of the week though. Can someone help me?<issue_comment>username_1: Try this: ``` import ti...
2018/03/08
625
1,657
<issue_start>username_0: [**PLUNKER**](https://plnkr.co/edit/edKXTcQ8EoiP49tYT90q?p=preview) I have a `ng-repeat`, and in the drop down there are the following values. ``` Up to 6 months From 13 to 24 months Higher than 24 months From 6 to 12 months ``` and I need to sort the values like the following ``` //follo...
2018/03/08
884
2,736
<issue_start>username_0: I have a "list" (emphasis on the quotes) of a list of dictionary items that I am trying to get the length of. The current format (JSON-like) of the item looks like this: ``` x = {"fullgame":"+2","firsthalf":"Ev","secondhalf":"-1"} {"fullgame":"-1.5","firsthalf":"Ev","secondhalf":""} {"fullgame...
2018/03/08
521
1,546
<issue_start>username_0: Hi I just use this api for getting user details but I can't get user name please help me ``` [[[FBSDKGraphRequest alloc] initWithGraphPath:@"me" parameters:[NSDictionary dictionaryWithObject:@"id,first_name,last_name,gender,email,picture.type(large),groups" forKey:@"fields"]] startWithComple...
2018/03/08
613
2,388
<issue_start>username_0: In my [`finis`](https://www.npmjs.com/package/finis) callback, I have: ``` finis((code, signal, error) => { await myprocess.stop() console.log(`finis(${code}, ${signal}, ${error})`) }) ``` However, I'm getting the error: ``` Can not use keyword 'await' outside an async function ``` S...
2018/03/08
493
1,804
<issue_start>username_0: I have a few `UITableViewController's` set up as child-views of `UINavigationController's` that are all part of a single `UITabBarController`. One of these `UITableViewController's` updates a tableViewController that is part of a different `UITableViewController` on a button press, which then s...
2018/03/08
1,108
4,506
<issue_start>username_0: This is homework, but a small portion... I'm trying to return the largest number in an array using `arr.MAX();` , but I keep on getting zero. After debugging, I can see that values are being stored (from the user) yet it still returns zero. The method in question is at the bottom. ``` Clas...
2018/03/08
1,015
3,931
<issue_start>username_0: Problem: I have many file types that I want to parse. Each one parses a file and returns a result (`List<>`) of objects. I want to have just one `IFileParser` interface and specify the parser type and return set at time of calling `Parse` I have an interface like this ``` public interface IFi...
2018/03/08
285
749
<issue_start>username_0: So i am trying to get the current Discord Webhooks's embedded Timestamp with the following format `YYYY-MM-DDTHH:MM:SS.MSSZ`(PHP) which will result in `2015-12-31T12:00:00.000Z` What I have done: `$timestamp = date('Y-m-d') . 'T' . date("H:i:s") . '.';` But really I couldn't complete that fo...
2018/03/08
436
1,230
<issue_start>username_0: There is a tuple which looks like: Tuple a = [(0,20),(3,40),(9,55)..] now I use a for loop to pull out each item from the tuple list, ``` for item1, item2 in (a): worksheet.write_number (row, col , float(item1)) worksheet.write_number (row, col + 1, float(item2)) ``` if i want to in...
2018/03/08
1,320
4,228
<issue_start>username_0: I am new to web development. I have a table with a simple structure. Here, I want to find a tr containing a `td` value `"abc"` and then add the class to that tr. I am able to add it to `td` but not to the tr . Please help. `var container = document.querySelector("[id^='taTextElement']").id`; ...
2018/03/08
566
1,855
<issue_start>username_0: This seems like really odd behavior in dplyr filtering, could someone tell me where I am erring or if the below occurs on your machine as well. Thank you in advance. When I try to filter a data frame using dplyr it works fine when using the original character string, but does not (at least on...
2018/03/08
535
1,949
<issue_start>username_0: I have a square 2d array of of size n, filled with numeric values. For each entry, I sum that entry's row and column, but subtract the original entry away. ``` while 1: new = np.copy(next) for i in xrange(n): for j in xrange(n): val = new[i][j] rowsum ...
2018/03/08
845
2,707
<issue_start>username_0: i am trying to define ordering on data types with Option[Any] but getting error as "method compare overrides nothing" below is code:- ``` implicit def ordering[Option[A]]: Ordering[Option[A]] = new Ordering[Option[A]] { override def compare[A](x: A, y: A)(implicit ord: Ordering[A]): Int ...
2018/03/08
1,976
5,967
<issue_start>username_0: I'm trying to make a encoder in python Here is the code so far. It works fine but i want to change each letter in the string to the corresponding number eg: a=1, b=2. so then it would end up as a number sentence. My aim is to have 2 programs, one for encoding and one for decoding ``` print "...
2018/03/08
939
3,860
<issue_start>username_0: I am very new to NetSuite and I don't know if this makes sense. I have a requirement to send a rest call when an Invoice is created in NetSuite. I saw that it is achievable using SuiteScript using nlapiRequestURL method. ``` define(['N/record'], function(record) { function afterSubmit...
2018/03/08
942
3,765
<issue_start>username_0: I am using [HighChart](https://github.com/highcharts/highcharts-ios) and there's 1 functionality to hide particular Column data when particular legend is clicked. I want to disable that legend click event but not working. for that I have tried below code. ``` plotoptions.column.events.legendI...
2018/03/08
1,294
4,536
<issue_start>username_0: Before running into main procedure here i am checking whether some specific columns are exists in the sheet1 or not, But the problem is in that raw data sheet columns like "Employee Name" & "Designation" are in that sheet, but when run the below code it is giving an message "Not Found" and it i...
2018/03/08
3,085
11,244
<issue_start>username_0: I have a `Widget` with `NetworkImage` (so far with hard-coded url). I would like to widget test this Widget, but I got 404 when I run widget test (url is 100% valid). How can I make `NetworkImages` load themselves or (which would be better) **ignore them** so that my tests won't fail beca...
2018/03/08
341
1,224
<issue_start>username_0: I'm New to Angular 2,working with json data, while processing with typescript, i get json data from the Object using `{{ data | json }}`,instead of JSON Variable i need to get the data in tag on my web page.Is there any solution available ? Ex: If the data is in the following format: ``` { t...
2018/03/08
441
1,836
<issue_start>username_0: Can you please help us to close the below issue I created an exe in which we are sending a sms text containing a url with encrypted id like http:// www.google.com/Test/Testdetails?InvoiceId=123455 The customer clicks on this link to download the pdf for the respective invoice id. The problem i...
2018/03/08
408
1,280
<issue_start>username_0: How can I get the results of my query below in one single result? As you can see in my example, I am getting multiple query results individually. The code is: ``` DECLARE @i int = 0 WHILE @i < 15 BEGIN SET @i = @i + 1 Select @i END ``` [![enter image description here](https://i.st...
2018/03/08
430
1,585
<issue_start>username_0: Im trying to run this sample in Oracle Integration Cloud. <https://docs.oracle.com/en/cloud/paas/integration-cloud/integrations-user/running-hello-world-sample.html> But im having this error in the audit trail. ``` Message processed successfully for Trigger helloWorld. Message processed succe...
2018/03/08
955
2,881
<issue_start>username_0: Few weeks ago, I asked a question how to output hash > > [Output hash in a table-like format](https://stackoverflow.com/questions/48678790/output-hash-in-a-table-like-format) > > > and thanks to the awesome community, I've got the response. ``` roster = students.map do |s| s.value...
2018/03/08
723
2,978
<issue_start>username_0: I have following method that reads and writes to a database. It checks if the user count is less than MAX\_USERS and then adds a new user. ``` addUser(User user){ //count number of users in the DB, SELECT count(*) from user_table count = ... if(count ``` The issue here is that if...
2018/03/08
594
2,371
<issue_start>username_0: I'm having a trouble with testing my in-app billing. (using Google Play In-app Billing Version 3 API) **Problem**: Refunded in-app purchases are still present in the purchase list, which is provided by `BillingClient.queryPurchases()`. When I tried refunding purchases in January, refunded...
2018/03/08
568
1,943
<issue_start>username_0: I am using the new **MicroMeter** metrics in **Spring Boot 2** version `2.0.0-RELEASE`. When publishing metrics over the `/actuator/metrics/{metric.name}` endpoint, i get the following: For a `DistributionSummary` : ``` "name": "sources.ingestion.rate", "measurements": [ { ...
2018/03/08
520
1,862
<issue_start>username_0: I have deleted all ionic default icon from resources/android folder and platform /android/res folder and managed to change the app launcher. [![enter image description here](https://i.stack.imgur.com/EdvTy.jpg)](https://i.stack.imgur.com/EdvTy.jpg) But the icon in split screen still uses the ...
2018/03/08
468
1,650
<issue_start>username_0: Is there a (clean, easy) way to set keyword args as other keyword args in a parameters list? Something like this: ``` class Foo(): def __init__(self, kwarg1='a', kwarg2=kwarg1, kwarg3=kwarg1): ``` I basically need all three to have the same default value without hard coding it in. That w...
2018/03/08
712
2,422
<issue_start>username_0: I have been staring at this for literally two hours trying to fix it. Any help would be appreciated. For some reason the table isn't being loaded when the button is clicked. Here's the relevant part of my head: ``` ``` This is my table: ``` Most Recent Transactions ---------------------...
2018/03/08
695
2,454
<issue_start>username_0: Using Python I'm loading JSON from a text file and converting it into a dictionary. I thought of two approaches and wanted to know which would be better. Originally I open the text file, load the JSON, and then close text file. ``` import json // Open file. Load as JSON. data_file = open(fil...
2018/03/08
685
2,630
<issue_start>username_0: > > An Internet gateway serves two purposes: to provide a target in your VPC route tables for Internet-routable traffic, and to perform network address translation (NAT) for instances that have been assigned public IPv4 addresses. > > > Source: <https://docs.aws.amazon.com/AmazonVPC/latest...
2018/03/08
626
2,321
<issue_start>username_0: I believe I am going crazy but maybe I am missing something. I am trying to enumerate all members of Enterprise Admins. When I look in DSA.MSC GUI tool, I see something like this with no nesting: ``` John Bill Jim Sue Mary Spiderman ``` When I perform an LDP.EXE, PowerShell, or ADSIEDIT quer...
2018/03/08
395
1,433
<issue_start>username_0: Is there a way (plugin, option, or tip and trick) to highlight html syntax in a js string? My document is .JS file, in which I use strings containing html code. Is it possible highlight html syntaxe inside these strings? [![enter image description here](https://i.stack.imgur.com/bkfyC.png)](h...
2018/03/08
1,180
4,571
<issue_start>username_0: **Problem:** I have Swing content that needs to be displayed using a JavaFX stage. The Swing content needs to be wrapped within a `ScrollPane` to preserve normal Swing sizing when the stage is resized. **Expected Behavior:** When the stage is first shown, it needs to be sized automatically to...
2018/03/08
447
1,453
<issue_start>username_0: This is the first question I am posting here... I am stuck with substracting an indexed value. I have given the code below... ``` Sub index() Dim var As Variant Dim var1 As Variant var = Application.WorksheetFunction.index(Worksheets("Stocks").Range("D:E"), _ Application.WorksheetFunctio...
2018/03/08
712
2,851
<issue_start>username_0: I am trying to propagate a string property in my windows to display a title. In my base class, I setup a public string property with default get/set. In my window that inherits the base class, i try to use the property as the Window's Title. This fails. However, when I pop up a message box, I...
2018/03/08
687
3,044
<issue_start>username_0: We need to pull data from Kafka and write into AWS s3. The Kafka is managed by separate department and we have access to only specific topic. Based on Kafka documentation it looks like Kafka Connect is easy solution for me because I don't have any custom message processing logic. Normally whe...
2018/03/08
1,624
4,144
<issue_start>username_0: I have a file named transfer.log that has a few Apache logs. I need to count how many GET requests each IP address has logged. I know how to access the file and loop through the lines in the file but I am having trouble with comparing the 6th field in each line with "GET". ``` #!/bin/bash ...
2018/03/08
601
2,344
<issue_start>username_0: I am trying to get a json response from an api and get the data successfully but when I call a action within another action using redux-thunk, my data is not available inside the reducer. **I need data in "data" property inside my reducer get in component**. Check the code below. This is my ac...
2018/03/08
1,383
3,919
<issue_start>username_0: I followed the wiki from angular-cli wiki for Server Side Rendering in Angular 5. Followed all the steps properly. I remember it worked last week. I did not made any changes to my system. But yesterday when I tried the same steps npm run build:ssr && npm run serve:ssr, I received the below er...
2018/03/08
390
1,381
<issue_start>username_0: I am uploading files that I need to attach to email via office365 API. What I need is the content of the file in a variable WITHOUT storing/saving the file, how can I do that? ``` foreach ($request->filesToUpload as $file) { $originalName = $file->getClientOriginalName();//working $c...
2018/03/08
1,472
4,440
<issue_start>username_0: Let's start with the `viridis` palette. In my opinion, colours are a bit just too bright for me, and for my purposes they look too artificial. therefore, I would like to apply some sort of transparency or similar to reduce saturation: ``` library(nord) library(scales) library(viridis) library(...
2018/03/08
664
2,532
<issue_start>username_0: When I try to sort an array, I got an exception like below: > > \*\*\* Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ valueForUndefinedKey:]: this class is not key value coding-compliant for the key levels.' > > > To sort the arrays I use the following line...
2018/03/08
278
916
<issue_start>username_0: I want to make rounded selected tab. I have successfully made a rounded tab layout by setting its drawable background,but I want rounded particular selected tab. Example screenshot ![just like same as in this image please see](https://i.stack.imgur.com/ZH9BX.png)<issue_comment>username_1: U...
2018/03/08
948
3,493
<issue_start>username_0: I am writing code for my e-commerce prototype website. I need to create a dynamic drop-down in one of pages in which it will receive drop-down values (like color here) from database and then I have to create drop-down using that. I have written following code so far for this. ``` //Json object...
2018/03/08
845
3,074
<issue_start>username_0: I am a newbie in Django and am currently building a site. I have downloaded [django-wiki ver 0.4a3](https://github.com/django-wiki/django-wiki/blob/master/docs/installation.rst) to have a wiki app for my site. Everything works fine, out-of-the-box. But instead of showing the root article as the...
2018/03/08
416
1,445
<issue_start>username_0: I'm a Web developer. I have one question about textarea default margin value. <http://jsfiddle.net/tTnCd/175/> This link is jsfiddler site. I make CSS by ```css textarea { position: absolute; } ``` ```html tyjyjyj ``` [enter image description here](https://i.stack.imgur.com/Boep...
2018/03/08
1,334
3,484
<issue_start>username_0: I want to add a box shadow to a button with a border radius but the shadow itself should lie below the button and within its width range. I was able to get the rounded border shadow but when trying to position it within the elements width range the border radius effect was lost and instead I g...
2018/03/08
710
1,964
<issue_start>username_0: I have the following regex: ``` r'(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-]{,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}' ``` When I apply this to a text string with, let's say, "this is www.website1.com and this is website2.com", I get: ``` ['www.website1.com'] ['website.com'] ``` How can i modify the rege...
2018/03/08
794
2,736
<issue_start>username_0: I am building a new django application and for some reason I am getting an error while i am trying access the models from the models.py file from the forms.py file. Here is the error: ``` File "/Users/omarjandali/Desktop/MySplit/mysplit/general/forms.py", line 13, in from models import \...
2018/03/08
676
2,137
<issue_start>username_0: When try to connect to SQL Server from Microsoft Server Management Studio, I got an error: 1225 occurred; few days ago, it was working fine, but now this error occurs: [![Screen Shot Error: 1225 in Microsoft Server Management Studio](https://i.stack.imgur.com/sPNz3.png)](https://i.stack.imgur....
2018/03/08
537
1,727
<issue_start>username_0: How to remove duplicate rows from a DataTable? I have a `Datatable1` & `Datatable2`. `Datatable1` has 5 rows and `Datatable2` has 1 row. When I called `$Datatable1.Merge($Datatable2)`, it is resulting in 7 rows instead of 6 rows. The duplicate row is from `Datatable2`. How can I remove this ...
2018/03/08
1,031
3,359
<issue_start>username_0: I'm attempting to use bazel to build tensorflow-serving from <https://github.com/tensorflow/serving> on CentOS 7.3. My gcc version is 4.8.5, bazel version is 0.10.1. I am sure that I followed the install introduction and I have set up all prerequisites requested. Every time I run the command : ...
2018/03/08
642
2,390
<issue_start>username_0: I have a case where I want to spin up a go subroutine that will fetch some data from a source periodically. If the call fails, it stores the error until the next call succeeds. Now there are several instances in the code where a instance would access this data pulled by the go subroutine. How c...
2018/03/08
649
2,114
<issue_start>username_0: I have an image with icons on it as shown in below image. ![Image](https://i.stack.imgur.com/Bw6Q9.jpg) The icons on the image are clickable and whenever i click on any of the icon it should be moved to center. How can i do this??? **index.php** ``` ![](images/Services.jpg) * [![](image...
2018/03/08
379
1,227
<issue_start>username_0: I am getting Time from an api in this format `"2018-03-07T11:19:54.686Z"` ..... How to convert this String data to mm-dd-yyyy date format in android. ``` SimpleDateFormat format = new SimpleDateFormat(" MM,dd,yy"); String date = format.format(Date.parse(data)); ``` I have tried using ...
2018/03/08
296
1,121
<issue_start>username_0: what is the difference between the using the okta-signin-widget and the okta-auth-js? May I say that the okta-auth-js gives all the functionalities for the authentication and that the widget use these functionalities + build the visual ?<issue_comment>username_1: The okta-signin-widget is buil...
2018/03/08
874
2,511
<issue_start>username_0: Apologize if this has already been asked and answered; did a quick search, but, not exactly sure how to word it/what exactly to search for. I have to web addresses pointing to one site/file(s). One ends in *.net* [domain.net] and the other ends in *.org* [domian.org]. Using PHP; I want to put...
2018/03/08
958
2,868
<issue_start>username_0: I have code that was formatted based on a wrap of 120 chars. I changed the setting to wrap it at 200 chars in IntelliJ CE. Running a reformat doesn't re-wrap the code as per 200 char limit. I am having to manually move the split lines up to a single line. Example of existing code : ``` final...
2018/03/08
1,190
4,432
<issue_start>username_0: ``` **chatclient.java** package com.examplechat; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import io.netty.bootstrap.Bootstrap; import io.netty.channel.Channel; import io.netty.channel.EventLoopGroup; import io.netty.channel.nio.NioEventLoopGr...
2018/03/08
861
2,618
<issue_start>username_0: Hope it can be silly question but as I'm new in react-native development, don't know how to get rid of this. I want to put annotations on MapView & it seems [this tutorial from react-community](https://github.com/react-community/react-native-maps) is the best way to do it. I followed the guid...
2018/03/08
293
982
<issue_start>username_0: I have this code: [erlang code](https://i.stack.imgur.com/nJG6d.png) run it: [output](https://i.stack.imgur.com/q3Mim.png) other nodes is : [other node](https://i.stack.imgur.com/OVYgf.png) why Zzh1 is pang? Ps. sorry I can not post pic...<issue_comment>username_1: In your printout, nodes(...
2018/03/08
292
1,016
<issue_start>username_0: the problem shows up for both MoltenVK Debug and Release targets. ``` /Users/nikyotis/Developer/MoltenVK/MoltenVKShaderConverter/MoltenVKSPIRVToMSLConverter/SPIRV-Tools/source/opt/instruction.cpp:513:10: Use of undeclared identifier 'spvInstructionBinaryToText' ``` 1. Maybe I should just add...
2018/03/08
332
1,218
<issue_start>username_0: I am trying to cluster some big data by using the k-prototypes algorithm. I am unable to use K-Means algorithm as I have both categorical and numeric data. Via k prototype clustering method I have been able to create clusters if I define what k value I want. How do I find the appropriate numb...
2018/03/08
762
2,827
<issue_start>username_0: i am required to do an app of calculating solar cell temperature and here below is my code i can't figure to how to correct the error . [the formula of calculating the cell temperature](https://i.stack.imgur.com/RScqD.png) ``` import android.os.PersistableBundle; import android.support.v7.app...
2018/03/08
307
1,007
<issue_start>username_0: I want some space between two buttons in my layout, but for some reason, my xml doesn't seem to work. ``` ``` The result looks like this: [![enter image description here](https://i.stack.imgur.com/lqSkq.png)](https://i.stack.imgur.com/lqSkq.png)<issue_comment>username_1: Most evaluation met...
2018/03/08
514
1,685
<issue_start>username_0: I have the following uri www.xyz.com - base uri I need to add userId to end of the uri as path parameter. As per swagger document the uri format is www.example.com/{userId} Parameter type = Path ,Value = userId(String) I could add body to the post request. However I am not able to add userI...
2018/03/08
511
1,327
<issue_start>username_0: I have a pandas dataframe, I want to add a value of a column(A) index 0 and a value from another column(B) index 1 and want to save the result in column A index 1. I have column B in a dataframe, I tried the below code but it is not working-- ``` A = [None] * len(df) A[0] = A["B"][0] df["A"] =...
2018/03/08
168
605
<issue_start>username_0: I am trying to reload page. But getting prompt message. ``` location.reload(); $window.location.reload(); ``` Is there a way to reload page without prompting a message?<issue_comment>username_1: You can use **window.location = window.location.href**; Upvotes: 2 <issue_comment>username_2: tr...
2018/03/08
563
1,916
<issue_start>username_0: I have the following style for a div which is positioned in the center of the page ``` Hi All... ``` CSS Code:<issue_comment>username_1: This is because your viewport (or the element's closest `relative` positioned parent) is shrinking vertically. If you don't want it to move, you'll have to...
2018/03/08
2,637
9,824
<issue_start>username_0: I have a keyspace in a `Cassandra` database. It contains a number of tables and these tables contain data. For TDD purpose, I need to create an exact copy of the keyspace. I guess it is a single line of code to execute in python. Any ideas?<issue_comment>username_1: If I understand correctly, y...
2018/03/08
672
2,439
<issue_start>username_0: In CS231n course about Convolution Neural Network, in [ConvNet note](http://cs231n.github.io/convolutional-networks/): > > * INPUT [32x32x3] will hold the raw pixel values of the image, in this case an image of width 32, height 32, and with three color channels R,G,B. > * CONV layer will comp...
2018/03/08
540
2,116
<issue_start>username_0: I have a table Test with 2 column Job\_name and Status contains below data, ``` Job_Name status ------------------------ a failed b completed c waiting d failed ``` I want output like below, ``` col1 col2 col3 col4 ------------...
2018/03/08
610
1,803
<issue_start>username_0: Hello I want get height from below div using Jquery, ``` ```<issue_comment>username_1: I think you are looking for this. ``` var z=$(".profile-tracker") console.log(z[0].style.height); console.log(z[0].style.width); ``` [![enter image description here](https://i.stack.imgur.com/mDUYQ.png)]...
2018/03/08
623
1,423
<issue_start>username_0: how can I convert a large dataframe of a column from object to int. Dataframe : ``` user 1101110110100 1111222555555 1112223365556 1113656560005 asaseee" tdyhhdy" dtype: object ``` expected: ``` user 1101110110100 1111222555555 1112223365556 1113656560005 dtype: int...
2018/03/08
732
2,337
<issue_start>username_0: I want to create and fill a `set` from the contents of a member variable of each entry of a `vector`. This is what I am doing: ``` struct S { int i; }; int main() { std::vector structPtrs; // code to fill the above vector // create set from the above vector std::set setInts; for (au...
2018/03/08
741
2,310
<issue_start>username_0: Here I am getting GMT Time as follow. ``` 1520489880 ``` Now I am getting This as ``` $myfinaldate = gmdate("d M H:i", $strtoDate); ``` So it will returns me `GMT time`. Now i want to convet it to IST(indian standard time). where I stuck when I try ``` //Set timezone to india date_defau...
2018/03/08
964
3,451
<issue_start>username_0: I created a multiple select list box using the select tag as shown in the code below in Angular 5. ```html I am Option 1 I am Option 2 I am Option 3 I am Option 4 I am Option 5 I am Option 6 I am Option 7 I am Option 8 I am Option 9 ``` Now, the problem is that I can drag ...
2018/03/08
1,338
4,797
<issue_start>username_0: E.g. we have 3 `csv` files `1.csv`, `2.csv`,`3.csv`. I want the output as `All.xls` containing the 3 `csv` files `1.csv`, `2.csv` and `3.csv` in their respective tab.<issue_comment>username_1: Yes the are multiple ways to do what you want. Perl, Python and Ruby have the appropriate modules. P...
2018/03/08
712
3,107
<issue_start>username_0: I'm a bit confused regarding the EventHubTrigger for Azure functions. I've got an IoT Hub, and am using its eventhub-compatible endpoint to trigger an Azure function that is going to process and store the received data. However, if my function fails (= throws an exception), that message (or m...
2018/03/08
1,291
5,004
<issue_start>username_0: I want to convert a json (shown below) into a java object. I have created java classes for the json objects without using any jackson annotations for now. ``` import com.fasterxml.jackson.databind.ObjectMapper; public class TestJunkie { private static final ObjectMapper objectMapper = ne...
2018/03/08
179
574
<issue_start>username_0: I was using Admin Lists Module in DNN 8 which got removed in DNN9. Is there any way to reinstall the module and get it working in DNN9?<issue_comment>username_1: I've never head of "Admin List" module. Do you mean "Form and List"? If so you can still download and install it yourself. <https:...
2018/03/08
1,028
3,931
<issue_start>username_0: I have a playlist class which contains a vector of song pointers. ``` class Playlist { public: Playlist(); Playlist(string); vector GetSongList() const; private: vector songs; string name; }; ``` The function `GetSongList()` is as follows: ``` vector Playlist::GetSongList() co...
2018/03/08
313
1,229
<issue_start>username_0: ``` ``` i have used datalist tag but problem is users are allowed to enter values other than option so how to restrict users to enter data other than options or should i use other than datalist<issue_comment>username_1: provides suggestions but [does not require that the user enter certain va...
2018/03/08
347
1,223
<issue_start>username_0: Am trying to input html code with line breaks into a Javascript String, but the line breaks are highlighted as errors, am using sublime text, any work arounds?, the line breaks make the html code more readable.<issue_comment>username_1: if you want to display a string with line breaks, then Ple...
2018/03/08
820
2,700
<issue_start>username_0: I am trying to make a program that after 4:00 am it says "good morning sir" and after 12:00 noon it says "good afternoon sir". (I'll add evening later i just want to get this nailed down first) I made an if statement to compare the times like this ``` DateTime t1 = DateTime.Now; DateTime t2 = ...
2018/03/08
394
1,174
<issue_start>username_0: short program to find the number of days in the month of February depending on whether it is a leap year or not without using control structure branching statements ``` #include #include int main() { char a; int b; printf("Press 1 for leap year else Press any character:"); scanf("%c",&a...
2018/03/08
1,432
4,807
<issue_start>username_0: Machine A connects to a remote machine B using `sshpass` and that remote machine B doesn't give `ssh` access to `root` directly so I connect to it through `user` and use `sudo` and I also have disabled password for the `user` when he does `sudo su`. When the commands are simple like `ls -lrt /s...
2018/03/08
910
3,039
<issue_start>username_0: I am getting below error, I have search lot around but haven't been able to find a good fix- Please anyone who was getting this kind of error and resolved. please help. ``` File "c:\python27\lib\runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) File "c:\pyth...
2018/03/08
696
2,481
<issue_start>username_0: Suppose I have submitted my app to appstore, It reviewed and got approved by apple team and ready to be released. But in the mean while bymistake my app's certificate got revoked. Will my app get released or not. Can anyone answer ?<issue_comment>username_1: I have encountered the similar issu...
2018/03/08
513
1,907
<issue_start>username_0: I'm working with a system that's integrated with Sabre SOAP API. From my perspective it's just sending a properly formatted XML (`Content-Type` header is set to `text/xml`) to an endpoint and in response I get another XML. It works, however occasionally (a fraction of requests we're sending) I ...
2018/03/08
1,264
4,673
<issue_start>username_0: I'm using XAML for UI design my app is working fine in less then Iphone X device.Only problem in Iphone X it's getting top and bottom Extra space. If I use below code for Iphone X Safe area enable, it's getting more space in bottom and top. `On().SetUseSafeArea(true);` I got SafeArea layout s...
2018/03/08
1,091
4,129
<issue_start>username_0: In my app I need to record the audio or video in less size and need to save it to the media and send into the server. What is the best approach to do this?Without using any thirdparty libraries.Please guide me.Thanks in advance.<issue_comment>username_1: The way I got the proper screen size to ...
2018/03/08
523
1,963
<issue_start>username_0: Using android studio, How can I make 2 buttons name (submit) and (next page) but make the (next page) button unclickable. Then make it clickable after the (submit) button was clicked.<issue_comment>username_1: Use this ``` Button submit, next; submit= (Button) findViewById(R.id.submit); next=...
2018/03/08
640
2,202
<issue_start>username_0: A sample text: `field1=value1` and `field2=[field2Value]` or `field3=field3Value` I would like to get those separately: * `field1=value1` * `and` * `field2=[field2Value]` * `or` * `field3=field3Value` Note that the text can't start/end with 'or' or 'and' for example these texts should fail ...