date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/21
445
1,443
<issue_start>username_0: I'm having a weird problem, my domain is [aridod.com](http://aridod.com) which is working fine but if i add www before aridod.com I mean [www.aridod.com](http://www.aridod.com) that takes me to [domainnamesales.com](http://domainnamesales.com) which is completely weird. I don't know how it happ...
2018/03/21
1,064
3,722
<issue_start>username_0: My work is running Jenkins and Bitbucket Server (so instead of the bitbucket cloud, they host their own bitbucket version). I am used to having passing/failing builds on github and bitbucket cloud immediately reporting back on PRs and branches as to whether the build passed or failed. I want to...
2018/03/21
192
680
<issue_start>username_0: I am new to react. I have developed a page using react js. Now I want to do code coverage. Pls help me. Pls suggest which tool should I use for code Coverage for react code. Thanks<issue_comment>username_1: [Jest](https://facebook.github.io/jest/) is a probably the best tool, but not as easy ...
2018/03/21
475
1,789
<issue_start>username_0: I would like to include the same javascript file more than once on a page. This is because different variables are defined using the "data" attr to get different data. Here is an example of what i mean: ``` ``` The above obviously detects and displays the information from the script twice, ...
2018/03/21
1,225
4,513
<issue_start>username_0: I am trying to make class that sets the time using three integer variables for amount of hours, minutes, and seconds, and a fourth Boolean variable to set AM or PM. I am able to get the three integer variables to work correctly, but I don't know what I am doing wrong regarding the Boolean varia...
2018/03/21
397
1,702
<issue_start>username_0: I am writing an enterprise-scale application with Angular and ngrx. The intention is to use Flux and ngrx throughout. For reuse and separability we require (at least) two state stores that do not interact with each other. But we do need both stores to be active at the same time, and potentially...
2018/03/21
503
1,781
<issue_start>username_0: I have 197 levels relating to location, I want to simplify this by creating a new variable "INSIDE" which stores 1 when location is a building/home/etc and 0 when location is outside. I have tried grepl() but it gives an error ``` data$Inside<-ifelse(grepl(data$Premise.Description,pattern = c(...
2018/03/21
361
1,342
<issue_start>username_0: Here is my code where I try to build real-time html editor.In javascript I get the text from textarea which has id=pure then in document.body.onkeyup function I pass the value to the textarea that has id=compiled. It does not work at all. I wonder if the problem is about open-writeln-close or a...
2018/03/21
1,344
4,932
<issue_start>username_0: I want to create two-way communicate beetwen my Qt Apps. I want to use QProcess to do this. I'm calling sucesfully child app from root app and sending test data without any erro, but I can't recive any data in child app. I'll be gratefull for any help. I'm using Qt 4.7.1. Below my test code: *...
2018/03/21
493
1,803
<issue_start>username_0: I am working on application where I am recording video from Camera Intent. On my Samsung mobile `MediaStore.EXTRA_VIDEO_QUALITY` is working and even my allocated memory size also works but same application on my Google Pixel there `MediaStore.EXTRA_VIDEO_QUALITY` is not working and even allocat...
2018/03/21
1,440
5,761
<issue_start>username_0: I have two audio files in which a sentence is read (like singing a song) by two different people. So they have different lengths. They are just vocal, no instrument in it. A1: Audio File 1 A2: Audio File 2 Sample sentence : *"Lorem ipsum dolor sit amet, ..."* [![structure of sample au...
2018/03/21
878
2,922
<issue_start>username_0: I am a beginner exploring scala.The following is a Scala function. ``` def printArray[K](array:Array[K]) = array.mkString("Array(" , ", " , ")") val array2 = Array("a", 2, true) printArray(array2) ``` The output is Array(a, 2, true) **My doubts** Here we have given the array type as ...
2018/03/21
1,906
5,523
<issue_start>username_0: I am asking a kind of generalisation of this question: [Best way to extract elements from nested lists](https://stackoverflow.com/questions/27029300/best-way-to-extract-elements-from-nested-lists). It is also somehow related to these questions: [recursive function for extract elements from ...
2018/03/21
543
1,704
<issue_start>username_0: I am working on a large C++ project. I have a bunch of macros that are used in a subset of the project, but I don't want to export them everywhere, to avoid contaminating unrelated code. Right now, many of my files look like ``` #include // defines MACRO\_1, MACRO\_2, ... MACRO\_N // bla //...
2018/03/21
599
2,097
<issue_start>username_0: [![enter image description here](https://i.stack.imgur.com/jVZlc.png)](https://i.stack.imgur.com/jVZlc.png) ``` firebaseAuth = FirebaseAuth.getInstance(); mDatabase = FirebaseDatabase.getInstance(); mDb = mDatabase.getReference(); FirebaseUser user = firebaseAut...
2018/03/21
554
1,771
<issue_start>username_0: Problem: I'd like to be able to count the number of lines in a Google Document. For example, the script must return 6 for the following text. [![enter image description here](https://i.stack.imgur.com/zgg2m.png)](https://i.stack.imgur.com/zgg2m.png) There doesn't seem to be any reliable met...
2018/03/21
1,630
4,936
<issue_start>username_0: I get `Execution failed for task ':ChatAppGluonApp:applyRetrobuffer'.` trying to create an Android APK. I'm Using Eclipse Oxygen (4.7.3RC2) and Windows 7. The same error comes up with macOs 10.13.1 and Eclipse Oxygen (4.7.2). On both operating systems I'm using Android 26 with Build Tools 26.0....
2018/03/21
949
2,851
<issue_start>username_0: I am new to VBA,I have a string **I\_HEAD\_FOR** I wanted to extract the substring which is started and ended by special character '\_'(Underscore) in VBA. I need code snippet which can do above task,Could you please help me with it Here in this case The code should extract substring **HEAD** ...
2018/03/21
1,329
4,174
<issue_start>username_0: We are looking to return rows of a query as groups and displaying all entries of the group in the sort order. Randomly based on the `set_id`... and then in order by the `sort_id`. So, randomly it will show: > > Carl, > Phil, > Wendy, > Tina, > Rick, > Joe > > > or > > Tina, > Ri...
2018/03/21
2,204
7,549
<issue_start>username_0: In my client I receive via ZeroMQ a lot of input, which needs to be constantly updated. My server is written in python, but that should not matter. So this is what I do in my `MainActivity`: ``` public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bu...
2018/03/21
864
2,700
<issue_start>username_0: I have a SQLAlchemy model and a pandas dataframe with few records which are supposed to be loaded into table represented by that sqlalchemy model. But before loading I need to check if all rows in dataframe satisfy 'UniqueConstraint' My Model and dataframe are as follows: *Model:* ``` clas...
2018/03/21
382
1,542
<issue_start>username_0: I am working on a android project with my friend. He uses windows while I am an Ubuntu user. This is the process that i followed to collaborate with him. He created a new project and uploaded that project on Github. I forked his repository and cloned that repo on my Ubuntu. Then I opened Andro...
2018/03/21
957
3,003
<issue_start>username_0: I was wondering how the string of `HTTP_ACCEPT_LANGUAGE` is determined. if a user has the following string: `"HTTP_ACCEPT_LANGUAGE" => "en-US,en;q=0.9,he;q=0.8"` * how are these comma separated parameters determined (OS, browser, IP->geo?) * what do those params mean? SideQuestion: Is there a...
2018/03/21
926
2,896
<issue_start>username_0: This is the modal: ``` {% csrf\_token %} *place* #### Test *date\_range* {{ agresionForm.fecha }} Insertar Cancelar ``` I open it with: ``` $("#modalInsertAgression").show(); ``` It does not work on iPhone, when the modal appears the background keeps black and it lost the focu...
2018/03/21
405
1,400
<issue_start>username_0: We're looking for a way to increase the padding (or margins) for a `QListWidget` we are using in our application. We'd like to increase this for all four directions to give the text in our list some extra space I've looked at the documentation for both [`QListWidget`](http://doc.qt.io/qt-5/qli...
2018/03/21
338
1,127
<issue_start>username_0: I don't know how to configure npm-watch I don't understand how to use it from documentation (readme). In root project I have script folder with some .js files. After any changes in script folder I want call npm build, how to do this using npm-watch? How to set up npm-watch?<issue_comment>usern...
2018/03/21
993
3,761
<issue_start>username_0: I have a gridview in which I show the distance between the registered user's latitude & longitude (set in their profile) and the gridview line's latitude & longitude. I've created a helper class which gives me a function to return said distance My gridview for distance is this : ``` [ ...
2018/03/21
1,201
4,435
<issue_start>username_0: EDIT: I've done some research about this, but have not been able to find a solution! I'm reading a configuration from an XML file. The layout of the configuration is set for certain version. This version is in the first line of the XML, which is easy to extract. What I would like to know is, ...
2018/03/21
576
1,676
<issue_start>username_0: Sorry for the bad title, but I don't know how to describe it better. I have 3 tables 1.) contests ``` ID Title ---------- 1 Contest 1 2 Contest 2 3 Contest 3 ``` 2.) contest\_series ``` ID contest_id series_id ---------------------------- 1 1 3 2 1 ...
2018/03/21
522
1,975
<issue_start>username_0: Hey iam Databinding my slider to an attribute whit the values 1 and 0. On 1 the switch should be active, on 0 it shouldnt. I successfully Databinded some Input and Select Elements but at the Slider i run into following error: > > No value accessor for form control with unspecified name attrib...
2018/03/21
712
2,479
<issue_start>username_0: I have one route which should support 2 different URLs - `/settings/:code` and `/settings`: ``` { path: '/settings', alias: '/settings/:code', name: 'settings', component: settings }, ``` It is working correctly in my SPA when I go to URL `localhost:8080/settings` and `localh...
2018/03/21
413
1,562
<issue_start>username_0: I want to use double values and int values separately in one method as parameters of the method how can I achieve that? The method is multiplying two integer numbers and two double numbers in the same method. The output should be two lines one for the integer and the other for the double value<...
2018/03/21
681
2,419
<issue_start>username_0: I need to delete duplicates files and only keep the original (oldest file). I need it to work with directories and be able to set the path i.e. E:media/, The directories will have files that arent duplicates (i need to keep those) and files with duplicates (sometimes more than 1 duplicate). I ...
2018/03/21
706
2,744
<issue_start>username_0: I would like to be able to download a set of files from Drive on to my tablet (Nexus 7 2012 running Lineage OS) and then edit, compile and execute the relevant files. These files are all c++ related .cpp, .h and the main file. (BTW I am new to c++ and Termux). When I currently do this I can e...
2018/03/21
720
2,572
<issue_start>username_0: I have `Xamarin.Android project` and use `MVVMCross`. I need to add some underlining text in my `.axml` layout. I found some ways to do it but its don't work for me. I have this layout: ``` xml version="1.0" encoding="utf-8"? ``` 1. The string. ``` Underlined text ``` I can't use this w...
2018/03/21
718
2,466
<issue_start>username_0: I have a list of dict's... ``` categories = [{'summarycategory': {'amount':1233}}, {'hhCategory': {}}, {'information': {'mRoles': ['4456'], 'cRoles': None, 'emcRoles': ['spm/4456']}}] ``` I want to get valu...
2018/03/21
552
2,055
<issue_start>username_0: I have a lot of classes where each class contains a map with completely different search keys. Each map has 4 items on average => 4 search keys on average. Example: ``` class A { private final static Map properties; static { Map tmp = new HashMap<>(); tmp.put("NearestNeighbour", "INTER\_...
2018/03/21
379
1,359
<issue_start>username_0: The Delphi `TList.Sort()` method expects a callback function argument of type `function (Item1, Item2: Pointer): Integer;` for comparing the list items. I'd like to get rid of typecasting within the callback function and would like to define a callback function like this: ``` function MyTypeL...
2018/03/21
829
2,606
<issue_start>username_0: Here is the deal: i have a website that i want to extract some Href's, especifically the ones that have the text "LEIA ESTA EDIÇÃO", like in this HTML. ``` [LEIA ESTA EDIÇÃO](http://acervo.estadao.com.br/pagina/#!/20120824-43410-spo-1-pri-a1-not/busca/ministro+Minist%C3%A9rio "LEIA ESTA EDIÇÃO...
2018/03/21
1,188
2,828
<issue_start>username_0: I am trying to graph the result of multiple runs of a function. The function returns an object that has lists of different lengths. ``` library(ldbounds) reas1.lin = bounds(t = c(.5,.75,1),iuse = c(3,3),alpha = c(0.025,0.025)) ``` the result looks like this: ``` $bounds.type [1] 2 $spendi...
2018/03/21
573
2,551
<issue_start>username_0: I'm trying to figure out how the Fingerprint AIO / touchId login would work with our API authentication. After the user logs in and enables touchId, do we need to generate an access token with long expiry for future fingerprint logins? Looking through some sample implementations of the feat...
2018/03/21
985
3,799
<issue_start>username_0: I am a newbie with HSM. I would like to use HSM in one of my product to store key database. I have following questions: 1) Does all HSM support HTTPS(SSL)? 2) Do we have userspace on HSM where we can run our own programs? 3) Any standard API to access HSM through HTPPS? NOTE: The user c...
2018/03/21
1,333
3,231
<issue_start>username_0: VB2010: I have text that consists of blocks of text that start with day and time DD HHMM and end only at the next day/time. Here is my sample text: ``` 18 2131 Z50000 ZZ-AAA PR PR AGM TPS P773QQ 1500 DCA 22FEB ...
2018/03/21
722
2,709
<issue_start>username_0: I'm trying to come up with the best way to use jQuery to delete all the rows except for the one selected. I've done some searching and I've seen several posts about deleting all records or all records except the first or last row but nothing on deleting all but the one selected. The scenario ...
2018/03/21
600
1,975
<issue_start>username_0: I tried to write a query, but unfortunately I didn't succeed. I want to know how many packages delivered over a given period by a person. So I want to know how many packages were delivered by John (user\_id = 1) between 01-02-18 and 28-02-18. John drives another car (another plate\_id) every...
2018/03/21
357
1,041
<issue_start>username_0: I need to remove all `item[0]` if `a` is `== '1'`: ``` a = [['1','2','3'], ['2','4','9']] for item in a: if item[0] == '1': del item ```<issue_comment>username_1: Use `filter`: ``` new_a = list(filter(lambda item: item[0] != '1', a)) ``` The list is just so its compatible regar...
2018/03/21
890
3,153
<issue_start>username_0: I'm trying to build a very basic chrome extension with reactjs. However, I'm getting the following error: > > Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval'". Either the 'unsafe-inline' keyword, a hash ('s...
2018/03/21
2,920
8,884
<issue_start>username_0: I am trying to automate a test using SVG Nodes. I need to click on a particular node. I click on the element in Firefox, click F12 to get the console up, & type console.dir($0) to see the details. This is what the element looks like: ``` text ​ __data__: Object { height: 0, depth: 1, x: 0, … ...
2018/03/21
1,405
4,186
<issue_start>username_0: So I've got these two arrays: ``` resultList: { date: string, amount: number }[] = []; dateList: { date: string, amounts: { amount: number }[] }[] = []; ``` One of them has all results, which I want to sort by dates hence the second array. This is the code I'm using to try to achieve this: ...
2018/03/21
1,134
3,094
<issue_start>username_0: I want to merge a `List[List[Double]]` based on the values of the elements in the inner Lists. Here's what I have so far: ``` // inner Lists are (timestamp, ID, measurement) val data = List(List(60, 0, 3.4), List(60, 1, 2.5), List(120, 0, 1.1), List(180, 0, 5.6), List(180, 1,...
2018/03/21
454
1,781
<issue_start>username_0: I am a beginner and learning WPF Application. I have a simple project and in that I want to read DB Configuration string from App.Config File. But I am not able to do so. Below is my attempt: **APP.Config File:** ``` xml version="1.0" encoding="utf-8" ? ``` **CS Code:** ``` public stat...
2018/03/21
849
2,352
<issue_start>username_0: So in this project I'm working on I'm currently trying to do a reset-password function which generates a URL which is then given to the user with a secret attached to it to be validated in the backend. The problem is that the secret needs to be stored in the db (postgresql) in a bytea format. ...
2018/03/21
948
2,773
<issue_start>username_0: I try to add the containing of a csv file to a new list. It's a list of different types of people with caracteristics like the function, a matricule, the last name, the firstname and a sex. So I managed to read the file but I don't really know how to process to add the containing of the file to...
2018/03/21
433
1,154
<issue_start>username_0: I have the following dataframe: ``` 'A' 'B' 'Dict' a f {'k1': 'v1', 'k2': 'v2'} b h {} c g {'k3': 'v3'} … … … ``` And I would like the following: ``` 'A' 'B' 'Keys' a f k1 a f k2 c g k3 … … … ``` That is, getting the keys of a di...
2018/03/21
995
3,543
<issue_start>username_0: I have a problem with lazy loading and webpack. There is a video of <NAME> showing how easy it is with webpack 4 to create a lazy loaded bundle ([Here](https://www.youtube.com/watch?v=hQBAQh5AFwA)). But when I try to do it with typescript I run into some problems. ``` index.ts export const s...
2018/03/21
1,174
3,177
<issue_start>username_0: I have data that looks like this: ``` DATE TIME_M EX BID ASK SYM_ROOT SYM_SUFFIX 0 20180312 9:30:00.052465558 V 41.67 43.77 TRIP NaN 1 20180312 9:30:00.207724531 B 41.66 43.61 TRIP NaN 2 20180312 9:30:00.208090941 K 40.80 44.76 ...
2018/03/21
313
1,293
<issue_start>username_0: I am trying to execute some statements within Try block. I am calling an API and performing some operations. There is one specific operation which is resulting in RuntimeError which is puked while running the program, although I am catching it with an exception. How do I go about avoiding the e...
2018/03/21
386
1,439
<issue_start>username_0: I have a list of strings which is returned from a query in List A. I am trying to use String Utils.join to combine the values in the list to a string separated by comma and in quotes. But it is not working as expected. Values in abcList - [abc, cde, fgh] ``` abcList.addAll(jdbcTemplate.query...
2018/03/21
403
1,589
<issue_start>username_0: I have this function to toggle a dark mode on and of with a single button. It checks if the dark.css stylesheet is already added to the site, if yes it removes it. If there isn't a dark.css it loads it and appends it to the head. Now I want to store this information in the localStorage so the ...
2018/03/21
631
2,529
<issue_start>username_0: I need to address the following issue As a client I connect to a server, the server sends blocks of data in the following form: > > [4 bytes][msg - block of bytes the size of int(previous 4 bytes)] > > > When using `twisted` I need to make `dataReceived(self, data)` to be called with the...
2018/03/21
777
3,154
<issue_start>username_0: I have to create a code for an observable and an observer. Each observer has its own "update" method as you already know. In my observable code, i used the "notifyObservers" method. Its parameter is a string array containing infos about my projects ( command number, name of the hamburger, name...
2018/03/21
647
2,456
<issue_start>username_0: Having this timestamp: `1519347000`, I want to convert it into date format inside interpolation like this: ``` {{$ctrl.myTimestamp | date:'MMM d y, hh:mm'}} ``` The resulted values is **Jan 18 1970, 04:02** which is obviously wrong, the correct one should be in this case **February 23, 2018 ...
2018/03/21
729
2,936
<issue_start>username_0: I would like to write a simple test for a controller, which accepts a json body. But as soon I add the `parse.json` BodyParser to the Action my Tests cannot be compiled anymore. The Setup is basically the plain play-scala-seed project. Error: ``` [error] ... could not find implicit value for...
2018/03/21
894
3,074
<issue_start>username_0: I've implemented a quicksort in C++ after reading the Wikipedia article on it. Just trying to refresh my memory from school in prep for interviews for a job change. Here is my implementation ``` #include size\_t partition(std::vector & inputs, size\_t leftIndex, size\_t rightIndex) { int p...
2018/03/21
1,070
3,725
<issue_start>username_0: I'm walking through the tutorials for setting up auth0 as an API gateway authorizer for AWS listed here: <https://auth0.com/docs/integrations/aws-api-gateway/custom-authorizers> I am using the recommended authorizer from here: <https://github.com/auth0-samples/jwt-rsa-aws-custom-authorizer> ...
2018/03/21
532
1,689
<issue_start>username_0: I have the following code and I made sure its extension and name are correct. However, I still get the error outputted as seen below. I did see another person asked a similar question here on Stack Overflow, and read the answer but it did not help me. [Failed to load a .bin.gz pre trained wo...
2018/03/21
772
2,868
<issue_start>username_0: I have recently started to convert my react native app and running on Expo so i could test this on my actual android device. I am getting this error above. I have since then running my app using the Expo XDE. I am also running on a windows machine. The full error message is: ![enter image des...
2018/03/21
821
3,037
<issue_start>username_0: Generally, a list comprehension follows a following pattern: ``` my_list = [record for record in records_set] ``` It could be extended to, for example, the following expression, if record is a dictionary: ``` my_list = [(record['attribute_a'],record['attribute_b']) for record in records_set...
2018/03/21
820
3,188
<issue_start>username_0: I'm trying to pass some cmd commands using system() and I would like to be able to "communicate" with cmd, say I code in `system("dir")` in my mainwindow.cpp under my clicked function this is what it looks like for example ``` void MainWindow::on_pushButton_login_clicked() { std::string pl...
2018/03/21
770
2,602
<issue_start>username_0: I have created an exe using cx\_Freeze. The build was successful. Then when I was clicking on the exe, I got:- ``` no module named 'queue' ``` So, i researched and added this line:- ``` from multiprocessing import Queue ``` Now i'm getting:- ``` no module named 'chardet'. ``` Th...
2018/03/21
250
841
<issue_start>username_0: Please tell me what was wrong with this line and any suggestions: ``` ALTER TABLE iv_customer_token CHANGE customer_id customer_id INT(10) NOT NULL UNSIGNED; ``` Error: > > ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server vers...
2018/03/21
676
2,347
<issue_start>username_0: I have the following problem: I have a class B that extends class A. The class A has a method M that has a first parameter p1 (required) and a second parameter p2 (optional). p2 has a default value V. B overwrite the method M, so it's signature is the same as A's M. I am really worried about ...
2018/03/21
524
1,685
<issue_start>username_0: can somone explain me how this code works ``` php function append($initial) { $result=func_get_arg(0); foreach(func_get_arg()as $key=value){ if($key>=1) { $result .=' '.$value; } } return $result; echo append('Alex,'James','Garrett'); ?> ...
2018/03/21
486
1,780
<issue_start>username_0: Try to write string in file in new line, although i added "\n" to the end of string but could not success code as below:- ``` Timer t = new Timer(); t.scheduleAtFixedRate(new TimerTask() { @Override public void run() { ...
2018/03/21
857
2,782
<issue_start>username_0: I am new to python and pandas and I am struggling to figure out how to pull out the 10 counties with the most water used for irrigation in 2014. ``` %matplotlib inline import csv import pandas as pd import numpy as np import matplotlib.pyplot as plt data = pd.read_csv('info.csv') #reads csv ...
2018/03/21
665
2,450
<issue_start>username_0: In my program, I am reading a resource file for a unit test. I use file path as: ``` \\\path\\\to\\\file ``` On my machine(Windows) this runs fine. But on server(Unix), this fails, and I have to change it to: `/path/to/file` But Java is supposed to be platform independent. So isn't this beh...
2018/03/21
807
2,919
<issue_start>username_0: I have some designs I'm following for an iOS project. The font used is Avenir with relatively tight line spacing. Some of these labels will have dynamic text, so I can't just make the label's size larger since the size should be determined by the content. By default line spacing for a UILabe...
2018/03/21
319
1,104
<issue_start>username_0: `blue` should be blue without adding ids to elements, without using JavaScript and without knowing the parent `#id`s, as they can change at a future date, while allowing JavaScript to set style attributes that apply correctly. ```css custom-tag { color: blue; /* * the above should ...
2018/03/21
3,741
10,147
<issue_start>username_0: I'm trying to calculate the total point scored per player per question. For each question, I'm retrieving the data in the following format. ``` [ { "_id":"5ab24e5e49e0f20a06d73ab7", "player":"Kareltje", "answers": [ { "_id":"5ab227cf07818240934b11a5", "...
2018/03/21
1,036
3,805
<issue_start>username_0: In Vue there's the '`updated`' lifecycle method, which is appropriate for doing things to my markup after the data is in. In my case, I'm manually nudging SVG text to align to something after its dimensions change due to new text being input. Well, it seems like I want to use the '`watch`' blo...
2018/03/21
1,052
3,819
<issue_start>username_0: Imagine I have a component that applies certain values to the `class` attribute of its host element, based on certain run-time conditions. For example, take this TextBox component, which applies class values based on the state of readonly and disabled inputs passed in to it: ``` class TextBox...
2018/03/21
883
2,848
<issue_start>username_0: I have this assignment for my C class. She gave us pseudo code for the selection sort. There's some other requisites, but those I don't need help with. I followed her code, and even looked online for sample code. And mine follows the same concept but it never works. When I print the "sorted" ar...
2018/03/21
891
2,924
<issue_start>username_0: So I am trying to make an array of every word in a text and the array should be like `[word, startIndex, endIndex]`. I am going to use this to replace words after, after checking the word-type and find a synonym for it to replace it with. But the problem I am facing is splitting each word and s...
2018/03/21
1,065
4,331
<issue_start>username_0: Hello Internet Hive Mind! I need to query AWS Athena with nifi, however I need to change the staging directory (the S3 bucket & folder where the results will be saved) for each query sent. But the s3\_staging\_dir property has to be set on the DBCPConnectionPool Controller Service. How can I ...
2018/03/21
1,287
4,900
<issue_start>username_0: I'm kind of new on purescript and I was experimenting with effects and particular async effects. One of the things I love the most about FP and strict compilers like the one purescript has is that it enforces you to handle all possible results, in particular when you define that something can ...
2018/03/21
750
2,814
<issue_start>username_0: I want that if user click the purchase button but typed a word that does not belong to the list of the combobox it will give a message Invalid Customer. I have tried: ``` else if (comboBox1.Text != comboBox1.Items) MessageBox.Show("Invalid customer.", "Information", MessageBo...
2018/03/21
1,075
3,444
<issue_start>username_0: This is really two questions. I have a list of age intervals. For each interval there is a corresponding value. The intervals and values are organized in a list of tuples `age_value_intervals` (see the comments in the code). I also have a separate list of distinct ages, `ages`, for which I wo...
2018/03/21
884
2,823
<issue_start>username_0: I have a list of a custom object that I want to change it's value by passing it to a function: My code below: ``` func UpdateButtonPressed(_Url : String,referenceArray: inout Array) { var \_itemList = [Item]() var result:String! = "" let url = URL(string:\_Url) var request = URLRequest(ur...
2018/03/21
1,129
2,696
<issue_start>username_0: I am strugling a lot finding a tidy way of doing the following. I have a Pandas DataFrame that looks like that: ``` data = {'Ids': [1, 2, 3, 1, 2, 3, 1, 2, 3], 'Value': [32, 56, 87, 12, 45, 78, 14, 21, 56]} df=pd.DataFrame(data) Out[2]: Ids Value 0 1 32 1 2 56 2 3 ...
2018/03/21
833
2,050
<issue_start>username_0: There is an existing train\_labels, which has the following attributes ``` ('labels_train shape ', (3000,)) ('type of labels_train ', ) ``` and another array is Y, which has the following attributes ``` ('Y ', (3000,1)) ('type of Y ', ) ``` How to assign `Y` to `labels_train`, or how to m...
2018/03/21
475
1,505
<issue_start>username_0: I have a little doubt about "Mappings section" of the aws cloudformation syntax: Example: -------- ``` ... Mappings: accounts: 56565d644801:true 986958470041:true 090960219037:true 05166767667:false functions: MyFunction: handler: src/MyFunction/func.lambda_handler ...
2018/03/21
1,397
4,933
<issue_start>username_0: I'm having problems with persisting a one-to-many, many-to-one bi-directional relationship to my database and I can't figure out what I'm doing wrong exactly. Hope that someone can help me further. I have 2 entities in my database declared as follows: ``` class Lot { @OneToMany(targetEnti...
2018/03/21
519
1,498
<issue_start>username_0: I'm trying to get an API call and save it as a dataframe. problem is that I need the data from the 'result' column. Didn't succeed to do that. I'm basically just trying to save the API call as a csv file in order to work with it. P.S when I do this with a "JSON to CSV converter" from the web...
2018/03/21
323
1,228
<issue_start>username_0: I have A activity that consists a list of countries. When I clicked on one country it open B activity that consists a list of images. and when I clicked on one of them it open activity C. **A(OnClick)-->OpenB-->B(OnClick)-->OpenC** and when i press back arrow on app bar it should back to B a...
2018/03/21
227
1,014
<issue_start>username_0: I have a custom object location contain id and name only. Is there any trick to create multi picklist from this object?<issue_comment>username_1: You can create a multi-select picklist just like any other field: Salesforce Classic -> Setup -> Create -> Objects -> MyObject -> Fields and Relatio...
2018/03/21
943
3,423
<issue_start>username_0: I know that this question has been asked previously in this link [Facebook OAuth "The domain of this URL isn't included in the app's domain"](https://stackoverflow.com/questions/37063685/facebook-oauth-the-domain-of-this-url-isnt-included-in-the-apps-domain) , but the solution is not working fo...
2018/03/21
860
3,228
<issue_start>username_0: I'm trying to access all repositories that have more than 5000 stars on Github. I've written this scraper to work with Node.js (it's running on a Cloud9 environment): ``` var request = require('request'); var fs = require('fs'); var options = { url: 'https://api.github.com/repositories',...
2018/03/21
451
1,689
<issue_start>username_0: I have written the following code: ``` Private Sub Worksheet_SelectionChange(ByVal Target As Range) Dim myValue As Variant If Range("B22") = "Yes" Then myValue = InputBox("InsertInitialDetach") Range("C22").Value = myValue End If End Sub ``` This code is meant to do the f...
2018/03/21
1,153
3,691
<issue_start>username_0: I'm using a `std::string` to interface with a C-library that requires a `char*` and a length field: ``` std::string buffer(MAX_BUFFER_SIZE, '\0'); TheCLibraryFunction(&buffer[0], buffer.size()); ``` However, the `size()` of the string is the actual size, not the size of the string containing...
2018/03/21
2,630
7,237
<issue_start>username_0: In VS Code I usually open files that have no extension just `filename` . I know I can change the language syntax with *Change Language Mode --> Language that I want* but I don't want to do this manually every time I open such a file. Can I make a default to this language every time I open a fil...