date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/06
272
1,108
<issue_start>username_0: We are using Robot Framework for Automation scripting and for performance testing in Jmeter. Just wanted to know anybody has done anything to reuse the RobotFramework script in JMeter for load testing. The main intention of this query is to avoid scripting twice for the same scenarios and to re...
2018/03/06
1,461
4,814
<issue_start>username_0: I came across an issue with C++ trying to read a text file filled with signed integer numbers in hexadecimal form and parsing them to vectors. I used the C++ stream to variable redirect (stream >> var), and it seems that negative numbers are not parsed correctly - the variable gets the value 0,...
2018/03/06
291
1,230
<issue_start>username_0: I was trying incremental sync to design incremental sync data between MySQL and Azure Sql referring [article](https://learn.microsoft.com/en-in/azure/data-factory/tutorial-incremental-copy-multiple-tables-portal#overview) and while designing pipeline for [new watermark](https://learn.microsoft....
2018/03/06
1,011
4,880
<issue_start>username_0: I recently switched from using embedded signing to "send by email" signing -- this is because I want DocuSign to manage the order of the signers and send them emails when each person has signed. However now my Connect subscription does not work any more i.e. I don't get any notification messa...
2018/03/06
652
2,358
<issue_start>username_0: I have a table ``` create table lastnum ( id int, num int ) ``` It has one row ``` Id num 1 101 ``` 2 users perform the same stored procedure at the same time - the stored procedure is ``` declare @num int set @num = (select num + 1 from lastnum where id = 1) update lastnum s...
2018/03/06
350
1,178
<issue_start>username_0: I would like to test my AWS Glue PySpark job with a small subset of the data available. How can this be achieved? My first try was to convert the Glue dynamic frame to a spark data frame, and use the take(n) method to limit the number of rows to be processed as follows: ``` datasource0 = glue...
2018/03/06
288
791
<issue_start>username_0: I'm trying to get the lat and lng props from this array, but when I log them to console I get this: *3 ƒ (){return a} f () {return b}* ``` steps_start_locations =[{"lat":45.2003571,"lng":12.122561899999937}, {"lat":45.200382,"lng":12.122545400000035}, ...
2018/03/06
616
2,283
<issue_start>username_0: This is my mixin ```js export default { created () { if (!this.$store.getters.isAuthenticated) { this.$router.replace('/start') } } } ``` This is my component: ```js import Auth from '../auth' export default { mixins: [Auth], computed: { orders () { return t...
2018/03/06
567
1,831
<issue_start>username_0: > > The problem only occurs if the field is called 'Authorization' > > > I'm trying to send a string through Swagger and I'm having problems with '/' and '='. If I remove these chars, the request works perfectly. What I'm trying to send is just a string header. ``` public void Apply(Ope...
2018/03/06
613
1,783
<issue_start>username_0: I'm having a problem not knowing how to use LINQ properly. I have a `List` of `Dictionaries(string, object)` like this: ``` [0] -> "field1":1500, "field2":"dog", "field3":"blue" [1] -> "field1":1700, "field2":"cat", "field3":"brown" [2] -> "field1":1500, "field2":"horse", "field3":"white" [3]...
2018/03/06
402
1,347
<issue_start>username_0: In my v-for i need to initialize some input field with some text WITHOUT binding it to the object. Currently i'm trying: ``` ``` but item.name is printed in the input instead of the item name. How to accomplish this?<issue_comment>username_1: You can have your input show value of `item.value...
2018/03/06
456
1,572
<issue_start>username_0: I ran into a big issue recently. When I upload a big (let's say about 300mb) file to S3, I set the part size to be 5mb. That way I know how to calculate the checksum for when my client application downloads the file again. When I rename the file using the S3 console, the part size changes. Tot...
2018/03/06
1,739
5,954
<issue_start>username_0: My problem is I am trying to add an edit function to my project. I have added in a `/edit` router to my classroom.js file and I go to edit the flag through the app and I get `POST /classroom/edit 404 398.484 ms - 1355` in my console log. In the browsers console log I get: ``` App.js:32 POST ht...
2018/03/06
670
1,936
<issue_start>username_0: i have data like this ``` id type 1. a 2. b 3. c 4. c 5. d 6. c 7. c ``` target ``` id type. group 1. a. 1 2. b. 2 3. c. 2 4. c. 2 5. d. 3 6. c. 3 7. c. ...
2018/03/06
801
2,558
<issue_start>username_0: I would like to know about a more efficient way than renewing sts role for a cross account role when it run on lambda. By definition those roles last for 1h per default, but so far i'm doing it this way: ``` def aws_session(role_arn, session_name): _ = boto3.client('sts') resp = _.assu...
2018/03/06
993
3,550
<issue_start>username_0: I'm loading parquet data into a dataframe via ``` spark.read.parquet('hdfs:///path/goes/here/...') ``` There are around 50k files in that path due to parquet partitioning. When I run that command, spark spawns off dozens of small jobs that as a whole take several minutes to complete. Here's...
2018/03/06
1,097
3,838
<issue_start>username_0: I have a Dockerfile with an ENTRYPOINT that uses an ENV variable. I can't get the ENTRYPOINT structured so the container can also accept additional command line arguments. Here is the relevant part of the Dockerfile: ``` ARG MODULE_NAME ENV MODULE_NAME=$MODULE_NAME ENTRYPOINT /usr/bin/python3 ...
2018/03/06
2,001
6,279
<issue_start>username_0: How do I set tables to 100% width of the actual container div width? Currently the long table expands the container div and the small table has just the width of the defined width of the div (400px in this case) and not 400px + x like the other table: Here is a [working fiddle](https://jsfid...
2018/03/06
1,468
4,008
<issue_start>username_0: now has JSON data as follows ``` {"Id":11,"data":[{"package":"com.browser1","activetime":60000},{"package":"com.browser6","activetime":1205000},{"package":"com.browser7","activetime":1205000}]} {"Id":12,"data":[{"package":"com.browser1","activetime":60000},{"package":"com.browser6","activetime...
2018/03/06
379
1,167
<issue_start>username_0: I have trouble for what I thought will be a simple task... I need to remove the duplicate value of my array for example there are 3 times 2018-02-20 13:48:44 and I only want 1 of those value. ``` MyTab = [#, #, #, #, #, #, #, #, #, #, #, #, #, #, #] ``` I already tried this but it does not ...
2018/03/06
614
2,201
<issue_start>username_0: I am trying to build an only numeric field with VueJS. It kind of works but something is wrong: 1. **PASS:** Enter 12 in the text field, the value in VueJS is 12, the visual is 12. 2. **FAILS:** Enter 12a in the text field, the value in VueJS is 12, the visual is 12a. (expected behaviour is 1...
2018/03/06
472
1,544
<issue_start>username_0: I am saving my global variable arrays to a file with this: ``` declare -p hashTable > $File declare -p testArray >> $File ``` I would like to load them back to global variables. I was using this: ``` source $File ``` That is fine when called from the global scope, but when it is within a...
2018/03/06
983
3,246
<issue_start>username_0: I need to count for number of days except holidays(Saturday and sunday). For example my start date is `07/02/2018` and end date is `15/02/2018` (in `dd/MM/yyyy` format). I need to count number of working days between them. Can some please help me out? This is my code: ``` SimpleDateFormat date...
2018/03/06
803
2,972
<issue_start>username_0: I'm trying to understand how map-reduce actually work. please read what i written below and tell me if there's any missing parts or incorrect things in here. Thank you. The data is first splitted into what is called input splits(which is a logical kind of group which we define the size of it ...
2018/03/06
515
1,605
<issue_start>username_0: I am creating a function that each time it is called 1px is subtracted to the width of an image. I can't figure it out... Something like this: ``` var leafCompress = function(){ .css("width" -1 + "px"); //This line is definitely wrong } ``` (The following code is working) Here I'm...
2018/03/06
1,324
4,705
<issue_start>username_0: I am trying to build a customized theme for WordPress using HTML and CSS. The issue I'm running into is that the Hero Image seems to always be above the fixed top nav bar - I've tried searching through similar posts but couldn't find any with this particular code set. As you scroll down, you wi...
2018/03/06
1,878
8,355
<issue_start>username_0: I am using serverless framework for the backend. How can I implement request validation? (do not want to write validation inside lambda functions).<issue_comment>username_1: To implement request validation using `serverless` you need to do a couple of things: Include your model/header definitio...
2018/03/06
2,065
9,030
<issue_start>username_0: I tried running a query with an inner join in Sequel Pro to get the most recent records/invoices using this: ``` SELECT tt.Hotel_Property, tt.Preferred_Hotel_Status FROM hotel_detail tt INNER JOIN (SELECT Hotel_Property, MAX(STR_TO_DATE (`Invoice_Date`, '%m/%d/%Y')) AS MaxDateTime FROM...
2018/03/06
965
2,697
<issue_start>username_0: I have a dataframe with patients, date, medications, and diagnosis. Each patient has a unique id ('pid'), and may or may not be treated with different drugs. What is best practice to select all patients that at some point have been treated with a certain drug? Since my dataset is so huge, for-...
2018/03/06
403
1,348
<issue_start>username_0: I can't find anywhere online what is default TTL in Redis. I know that I can set TTL for specific SET, but don't know what is default TTL. Can someone tell me what default time to live is in Redis?<issue_comment>username_1: There is no default TTL. By default, keys are set to live forever. Upv...
2018/03/06
1,393
4,376
<issue_start>username_0: I want to show and hide a series of `div`s based on time interval. Show div 1 after 4 seconds, show div 2 after a further 4 seconds and so on. The previous `div` being hidden, so it appears as if new information is replacing the previous and at time intervals. I have it working to a point, i...
2018/03/06
1,280
4,047
<issue_start>username_0: > > These are valid HTML which is not working in TinyMCE4 as per our expectation > > > ```html Test Test ``` Here is the link of my [fiddle](http://fiddle.tinymce.com/Pmgaab) . First HTML element is working fine but in second one strikethrough is not coming. Unable to undersatnd the rea...
2018/03/06
1,516
4,617
<issue_start>username_0: I want to make a query in order to get all children under `bookings` node that contain the the child key `TimeStampDateAndTime` and the value of the child is between 1519912278 and 1520689878. For some reason it returns null even though the value of the key TimeStampDateAndTime in the JSON obje...
2018/03/06
465
1,368
<issue_start>username_0: I need to calculate a few numbers. It works ok so far, BUT it looses the original decimal places (here: 50 cent). Any idea why this is happening? ```js $("select").on("change", function () { var sum1 = parseFloat($(this).val()) * parseFloat($(this).data("price")); var sum2 = parseFloat($...
2018/03/06
2,803
8,679
<issue_start>username_0: I'm trying to turn a ggplot into a plotly. The ggplot renders fine, but when I put it through ggplotly, suddenly the legend adds parenthesis and ",1" after the label. Here's a sample fake data: ``` sorted1<-data.frame(CommDate=c(as.Date("2017-09-12"), as.Date("2017-10-15")), CommName=c("Foo",...
2018/03/06
1,055
3,919
<issue_start>username_0: I have an app right now that stores data in a Room database using several entities. What I need is to take the contents of a table, convert the data into a CSV format, and then to send that format via email. I have the very last part buttoned down, as it simply involves sending the file through...
2018/03/06
2,737
8,640
<issue_start>username_0: I am using below function to get time in seconds after I apply TimeZone "Europe/Warsaw". I am getting date correctly, but as soon as I convert date in seconds, my output goes wrong. Server expects seconds in TimeZone "Europe/Warsaw". What's the best possible way to get out of this? ``` public...
2018/03/06
693
2,256
<issue_start>username_0: How can I use grep to find two terms / strings in one line? The output, or an entry in the log file, should only be made if the two terms / strings have been found. I have made the following attempts: ``` egrep -n --color '(string1.*string2)' debuglog.log ``` In this example, everythin...
2018/03/06
636
2,077
<issue_start>username_0: I need to create a field which can do a multiplication of severity and priority. I've found how to create a field, I know I must add a script to Description section. But the problem is that I can't figure out how to get these two fields for the operation. Probably it should be something like th...
2018/03/06
781
3,031
<issue_start>username_0: I was able to change the code below to output what I click to console. As you can see, the sendItem function does that for me. I am having a hard time accomplishing the following: 1. User types AP 2. autocomplete completes it to Apple 3. User clicks on APPLE 4. **Its corresponding value is se...
2018/03/06
2,361
8,818
<issue_start>username_0: I was making a mean-stack shopping app(Angular 5). I have made a manage product component with a list of all the products and a delete button. Delete button works but the product is listed in table till now as it was deleted from database. So, I was wondering is there any possible way to re-ren...
2018/03/06
1,342
4,829
<issue_start>username_0: The database is `Oracle 11g release2`. There is a Spring application making connection to the above database. All the mappings are correct. At runtime when submitting a form to update a record then I get the exception `invalid identifier : some_column`. Although the column is in the table when...
2018/03/06
3,723
12,167
<issue_start>username_0: I'm trying to pack my object to 64 bytes (homegrown properties), and I need to save getter and setter member functions. I really like std::function but is way big: `sizeof(std::function)` gives 40 bytes (VS2017, x64). I'm trying to figure out is there any thin version of `std::function` 16 b...
2018/03/06
453
1,578
<issue_start>username_0: This is the HTML code: ``` Like Post ``` I want a jquery code to remove the div that has class like-post and append the new content to the position of the removed div. Let's say that the new content is: ``` Like Post ``` The problem that if i use something like `.html()` method the final...
2018/03/06
510
1,651
<issue_start>username_0: Ok so I have a dataframe d that looks a bit like this A B C D E F G F H 0 1 1 1 1 1 0 1 3 1 0 1 0 1 0 1 2 2 A is my response variable. Now I could just run a bunch of Lm regressions like so. lm.b <- glm(A~B,data=d, family=binomial(link='logit') summary(lm.b) confint(lm.b) And repeat f...
2018/03/06
541
1,833
<issue_start>username_0: I have a userform that askes to which month the data input is applicable. I have used a combibox with jan, feb, mar etc as possible answers. Now I want to use these answers to refer to a sheet index number Jan is `sheets(2)`, feb = `sheets(3)` etc. How do I do this? ``` Private Sub Userform_In...
2018/03/06
1,123
3,314
<issue_start>username_0: Okay this is just something me and my coworker are playing with. We know PHP has it's own PI function but this came forth out of a theory and curiosity. So we were wondering if and how PHP was able to calculate `pi`. Formule of `pi` = `π= 4/1 - 4/3 + 4/5 - 4/7 + 4/9...` Here is what we did...
2018/03/06
1,150
3,044
<issue_start>username_0: I have the following table on an Excel sheet : ``` AN_DATE PORT_RET PORT_MKTVALUE 1-Jul-15 0.04% 749,708,691.20 2-Jul-15 0.10% 750,456,134.73 3-Jul-15 -0.01% 750,387,777.34 6-Jul-15 -0.13% 749,424,519.97 7-Jul-15 -0.04% 749,093,484.64...
2018/03/06
325
1,197
<issue_start>username_0: hello i have this problem where i need to append a href tag with materialize modal inside it so this is the code ``` [Add an item](#modalcreatechecklistitem) ``` i have no problem when i just put it in my html however, when i tried to append using jquery ``` $("#ajaxChecklist").append("[Add...
2018/03/06
203
722
<issue_start>username_0: I am trying to send a json response back to the application with a status code. This what I tired but didn't work. ``` if (validation.fails()) { console.log(validation.messages()) return response.json(validation.messages(),false,401) // or return response.json(validation.messages...
2018/03/06
983
3,363
<issue_start>username_0: I would to use SVG as background and to be able to change is color via a css way. So after searching, I found this thread but I'm not sure about where to place the svg url in my mixin. [SVG as a background-image in MIXIN setting color via a SASS variable](https://stackoverflow.com/questions/43...
2018/03/06
757
2,706
<issue_start>username_0: I've got this API call to marvel and I am exporting it and saving as a state in React. ``` avengers.map((avenger, index) => { const url = ` http://gateway.marvel.com/v1/public/characters/${avenger}?ts=${ts}&apikey=${publicKey}&hash=${hash} ` fetchMarvelData(url, index) }) let fetch...
2018/03/06
859
3,609
<issue_start>username_0: A ViewController counts its instances: ``` class ViewController: UIViewController { static var instances: Int = 0 override func viewDidLoad() { ViewController.instances = ViewController.instances + 1 super.viewDidLoad() } deinit { ViewController.instan...
2018/03/06
357
1,311
<issue_start>username_0: Good day, I just want to know how do you print out the value you entered on the text field via alert box, I'm new to jquery and I don't have any idea what am I doing. Any help would be appreciated. Thank you ``` Name: $(document).ready(function(){ $('form').submi...
2018/03/06
1,237
5,548
<issue_start>username_0: I have problem with ICommand interface. My button doesn't work properly. I want to enable it when name and id are filled. It seems that name and id not have a value. At least I think that. I have tried create new object of MainWindow and refer to field text but it didnt't work XAML ``` ``` ...
2018/03/06
473
1,716
<issue_start>username_0: I'm trying to implement a Angular 2 Form with Form Builder. This is my component.html ``` ![Logo](assets/logo.png) Entrar ``` And this is my component.ts ``` ... constructor( private router: Router, private authenticationService: AuthService, public fb: FormBuilder) { ...
2018/03/06
1,533
4,436
<issue_start>username_0: The problem in this question resembles [SSH failed when building RancherOS with Packer](https://stackoverflow.com/questions/38606092/ssh-failed-when-building-rancheros-with-packer?noredirect=1#comment85259001_38606092) However, the behavior of my Packer is different. I get ``` ==> virtualbox...
2018/03/06
1,007
2,843
<issue_start>username_0: I have proved that the storing and retrieving of a serialized object from the cell of a pandas dataframe is failing after it is stored and loaded again from csv: ``` a = df['cookie'].iloc[0] print (type(a)) >> ``` then ``` df.to_csv('file2.csv') df2 = pd.read_csv('file2.csv') b = df2['cook...
2018/03/06
1,348
2,834
<issue_start>username_0: I need to order duplicates as (First visit, Second visit, Third visit... as categories in another variable). So I can then manage to have them ordered in variables. For example: ``` ids<-c("a", "a", "b", "c", "c", "c") Dates<-c("2012-06-09", "2012-05-17", "2012-07-13", "2012-08-25", "2013-04-1...
2018/03/06
2,834
10,008
<issue_start>username_0: I am wondering if someone may be able to shed some light on a more streamline way of doing the below? Basically when the Spin button changes it will jump to the label and update what lines are visible the code works just fine but I was wondering if there is a less bulky way of coding this into...
2018/03/06
1,065
2,898
<issue_start>username_0: We have succesfully used Endpoints V1 for couple of years in our app. Now when trying to migrate to Endpoints V2 it suddenly brakes by just simply not finding the EndpointsServlet and just returns 404 always. * I am able to browse the api with <https://apis-explorer.appspot.com/apis-explorer/>...
2018/03/06
845
2,502
<issue_start>username_0: I am implementing a function that takes two dates that are of type `(int * int * int)`: the first part is the year, the second part is the month and the third part is the day. It should return `true` if the first date is older than the second. I want to test the function and I'm having problem...
2018/03/06
485
1,633
<issue_start>username_0: I am trying to convert a Dataset to a List of Object. Here is what I have tried: ``` List FundPerformanceRecordList = ds.Tables[0].AsEnumerable() .Select(x => new FundPerformanceRecord { FundCode = x.Field("FUND\_CODE"), OneMonth = x.Field("ROR1MTH"), ThreeMonth = x.Field("ROR3MTH") ...
2018/03/06
866
2,631
<issue_start>username_0: I am creating a quote. My tables look something like this: ``` quote: PK:id name FK:client_id FK:user_id created_at quoteSkus: PK:id FK:quote_id FK:sku_id price sku: PK:id name created_at ``` My relationships look like this: **Quote.php** ```...
2018/03/06
447
1,409
<issue_start>username_0: Does `Visual Studio 2015` have a message compiler (<https://msdn.microsoft.com/en-us/library/windows/desktop/aa385638(v=vs.85).aspx>)? I ask because I couldn't find any information on that. I searched for `mc.exe` in the install directory `C:\Program Files (x86)\Microsoft Visual Studio 14.0`, ...
2018/03/06
1,617
7,047
<issue_start>username_0: suppose you have moduleA and moduleB. ModuleA defines an interface (for instance for a Service) and ModuleB has a concrete class that implements the interface (provides the service). Now if the interface has a default method and you invoke it on the class in moduleB (from another module) is th...
2018/03/06
3,074
11,614
<issue_start>username_0: I am conducting Principal Component Analysis in Spark Scala. My output only display the principal component score vectors. But (1) how can I get displayed the principal component loadings and (2) select the variables that contribute to the most extent to the 1st and 2nd components(i.e., have ...
2018/03/06
988
3,341
<issue_start>username_0: When I pass bytes variable to the method `Shell.sh_one` from `Core_extended` there is a strange error: ``` Error: This expression has type bytes but an expression was expected of type ('a, unit, bytes, bytes option) Core.Std.format4 = ('a, unit, bytes, bytes, bytes, bytes option) ...
2018/03/06
1,450
4,289
<issue_start>username_0: I am trying get an Amazon AMI and add multiple partitions to the EBS volume then generate a new AMI, where I should be able to spin up new EC2 instances using this newly generated AMI. I am attempting this via HashiCorps Packer Tool. This is the output I expect: ``` [root@ip-xx-xx-xx-xx ~]# l...
2018/03/06
770
2,248
<issue_start>username_0: I am struggling with a text file that I have to read in. In this file, there are two types of line: * `133 0102764447 44 11 54 0.4 0 0.89 0 0 8 0 0 7 Attribute_Name='xyz' Type='string' 02452387764447 884` * `134 0102256447 44 1 57 0.4 0 0.81 0 0 8 0 0 1 864` What I want to do here is to text...
2018/03/06
620
2,038
<issue_start>username_0: i have a domain example.com and created a wildcard subdomain to point it to the DOC root I want it so anyone can use `name.example.com` and then have it add their affiliate ID to the end `name.example.com/a/5` I have created the following .htaccess code ``` RewriteCond %{HTTP_HOST} ^name\.e...
2018/03/06
1,030
3,394
<issue_start>username_0: Reading the [this](https://stackoverflow.com/questions/44404817/how-to-use-dataset-to-groupby) post I wonder how can we group the a Dataset but with multiple columns. Like: ``` val test = Seq(("New York", "Jack", "jdhj"), ("Los Angeles", "Tom", "ff"), ("Chicago", "David", "ff"), (...
2018/03/06
926
3,225
<issue_start>username_0: I'm comparing 2 XML using XMLUnit 2.xx both of them have the same structure except for the root node name : ``` something something else yet another thing something something else yet another thing ``` I'm searching for a way to say to the diffBuilder that `expectedValue == value` or...
2018/03/06
833
3,208
<issue_start>username_0: In my code base, I have a bunch of objects that all adhere to the same interface, which consists of something like this: ``` class MyTestClass def self.perform(foo, bar) new(foo, bar).perform end def initialize(foo, bar) @foo = foo @bar = bar end def perform # DO SO...
2018/03/06
339
1,134
<issue_start>username_0: I want to open a new tab in the current session of the Selenium WebDriver using Python. I found [this link](https://stackoverflow.com/questions/12139173/how-to-open-a-new-tab-in-the-same-browser-by-using-selenium-webdriver-with-java) for Java but could not convert it to Python. Can you help?<is...
2018/03/06
402
1,335
<issue_start>username_0: I use `VirtualBox 5.2.6` on `Windows 10`. There is an `Ubuntu` virtual machine, from which I would like to access to host's clipboard and files. I tried to use > > Machine>Settings >> General>Advanced>Shared Clipboard > > > I also tried > > Devices>Shared Clipboard>Bidirectional > > ...
2018/03/06
339
1,358
<issue_start>username_0: Doing research for my team. I see how to add a fingerprint in Android Emulator and sent a good event. ``` adb -e emu finger touch ``` What if I want to test a BAD fingerprint? Thanks<issue_comment>username_1: While ADB is useful for a lot of things, I use the Fingerprint menu in the emula...
2018/03/06
544
1,678
<issue_start>username_0: I have array, created from json: ``` var array = [{"name":"name1","group":"group1","id":"123", ...}, {"name":"name2","group":"group2","id":"456", ...}, {"name":"name3","group":"group1","id":"789", ...}]; ``` After I get another array: ``` var array1 = [{"name":"name1","group":"group1","id":...
2018/03/06
534
1,772
<issue_start>username_0: Sorry if the title wasn't very clear for what my question is. My problem is that I am trying to reconcile a few different files in excel, but due to some rounding errors the values sometimes come out as really small values like .0001. My current number format that I've put together that I li...
2018/03/06
429
1,888
<issue_start>username_0: I have a bunch of notifications in my iOS app which can be placed in groups: * Group 1: "Events" -> 2 kind of notifications * Group 2: "Promotions" -> 3 kind of notifications ..... In my setting screen I have a switch for each notification group. I want to enable disable the group of notifica...
2018/03/06
552
2,126
<issue_start>username_0: I am having trouble making my environments switch between development and staging. It stays at staging no matter what the environment variable is. Here is my launchsettings.json ``` { "iisSettings": { "windowsAuthentication": false, "anonymousAuthentication": true, "iis": { ...
2018/03/06
1,200
3,073
<issue_start>username_0: I am currently working on the response from the [Microsoft Emotion API](https://learn.microsoft.com/en-us/azure/cognitive-services/emotion/quickstarts/php). In the API, `HTTP/Request2.php` is used and I successfully get the HTTP response message by using `getBody()` in HTTP\_Request2\_Response[...
2018/03/06
1,197
5,060
<issue_start>username_0: I am trying to delete an image and some data from firebase and remove these from my recyclerview. I have successfully managed to accomplish this and it's deleting the image allright, but it's not instantly deleting the image in the interface. I have to leave the activity and return in order t...
2018/03/06
944
3,329
<issue_start>username_0: I'm trying to make a message appear only if I click on the button and it sends the email, but before I click the button the message is already there. I called the PHP script with a submit button that has an action form on the same page, and this is the PHP script that I called: ``` if(isset...
2018/03/06
1,218
3,449
<issue_start>username_0: I have an array of objects that I'd like to filter to create a new array based on whether or not the value of any key matches any value in another array. ``` const array1 = [{name: 'pink', id: 13}, {name: 'orange', id: 17}, {name: 'red, id: 64}, {name: 'purple', id: 47}, {name: 'yellow', id: 2...
2018/03/06
860
3,184
<issue_start>username_0: I'm wanting to do a very quick and dirty "seed" of my database with a load of blog posts... I'm happy working with Mongo cursors etc, but can't seem to find a valid lifecycle method to "plonk" this code into... This is all for a proof of concept, so it doesn't need to be perfect! Could someone...
2018/03/06
876
3,156
<issue_start>username_0: I am trying to unlock user account using spring ldap and getting the error message `""Malformed 'LockoutTime' attribute value" exception`. My code looks like below ``` public boolean unlockAccount(Name dn) { ModificationItem item = new ModificationItem(DirContext.REPLACE_ATTRIBUTE, n...
2018/03/06
266
984
<issue_start>username_0: How can i check in script if mouseUp but not on this gameObject? ``` void OnMouseUp() ``` Only works when mouse is on gameObject, is there other function for opposite?<issue_comment>username_1: [Input.GetMouseButtonUp(0)](https://docs.unity3d.com/ScriptReference/Input.GetMouseButtonUp.html) ...
2018/03/06
1,696
5,240
<issue_start>username_0: I want to create a javascript function to flip 1's to 0's in a natural number and I'm out of Ideas to achieve this, Actually, I had a couple of URL's, and I replaced all 0's from a query parameter with 1's and now I no longer know the original parameter value, because there were few 1's in t...
2018/03/06
896
3,730
<issue_start>username_0: I'm still pretty new on React development, but I've already work on 3 big project using React+Redux and I see a pattern that I dislike a lot: ``` componentWillReceiveProps(nextProps) { if (nextProps.params.type === TYPE_NEW_USER) { this.modalUsername = this.props.showPopup( < NewUser...
2018/03/06
533
1,735
<issue_start>username_0: I have following BasicQuery ``` BasicQuery query2 = new BasicQuery("{status:{$in:['APPROVED','NEW','OPEN']}},{siteId:1,_id:0}"); ``` Where BasicQuery is a class from SpringData mongoDb org.springframework.data.mongodb.core.query.BasicQuery. While doing the debug the above query get compiled...
2018/03/06
700
2,412
<issue_start>username_0: Cant seem to find what I am looking for and maybe it doesn't exist yet? I have the sublime text keymap extension installed, but that along with VS Code / Emmet seem to be missing one of my all time favorite sublime shortcuts... **Select all inside tags / Expand selection outwards** `ctrl`+`,`...
2018/03/06
1,173
4,099
<issue_start>username_0: Following [JEP 286: Local-Variable Type Inference](http://openjdk.java.net/jeps/286) description I am wondering, what the reason is for introducing such a restriction, as: > > > ``` > Main.java:199: error: cannot infer type for local variable k > > var k = { 1 , 2 }; > ^ > (...
2018/03/06
1,288
4,816
<issue_start>username_0: Hi I am trying to read a file as an argument from the main class and accessing the argument in another class in Spring boot. The main class looks like this ``` public class DemorestApplication extends SpringBootServletInitializer { public static void main(String[] args) throws IOException { ...
2018/03/06
1,095
3,989
<issue_start>username_0: ``` import subprocess name = raw_input("Enter the name of the file: ") subprocess.Popen(["find", "-name", "*.spec", "|", "grep", name, "|", "xargs", "rm"], cwd="/opt/blusapphire/app/master/dist", stdout=subprocess.PIPE) ``` I have written the above code in python file. My aim is to delete a...
2018/03/06
1,378
5,407
<issue_start>username_0: I have a simple problem. I have a scheduled thread that keeps on performs some actions on a list based on some conditions. Now the problem is when the user enters '2' as his choice the scheduled thread has to wait and when the work is done then again the scheduled thread has to start it's proce...
2018/03/06
293
1,043
<issue_start>username_0: I am using create-react-app and running react-scripts build on a my project, but I'm having an issue with the build output. I need the build output to go in a subdirectory of the build folder like shown here ``` Build -- Player ``` And I need the Urls for the generated for the JS and CSS fi...
2018/03/06
1,074
3,997
<issue_start>username_0: I have a problem with [this script example](https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtReference/management/uploads/uploadData). There is a code snippet: ``` daily_upload = analytics.management().uploads().uploadData( accountId='123456', webPropertyId='UA-123456-1...
2018/03/06
1,128
4,140
<issue_start>username_0: i have a sample csv file with me which contains some random numbers which are not sorted. i want to sort the data from the csv file and i have to write the sorted data into a new csv file. the problem is if i have a data like ``` 3, 65, 20, 21, 19, 34, 8, 0, 22 ``` python is sorting based o...
2018/03/06
711
2,531
<issue_start>username_0: I have a very simple sample of data/labels, the problem I'm having is that the decision tree generated (pdf) is repeating the class name: ``` from sklearn import tree from sklearn.externals.six import StringIO import pydotplus features_names = ['weight', 'texture'] features = [[140, 1], [13...