date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/01
1,084
3,555
<issue_start>username_0: How to close `_ArrayDisplay()`'s window using AutoIt script itself? I tried `WinClose()`: ``` _ArrayDisplay($aarray,"sometitle") ; do some stuff Winclose("sometitle") Sleep(1000) _ArrayDisplay($barray,"anothertitle") ``` but fails (previous window doesn't get closed and next window doesn't...
2018/03/01
1,028
3,826
<issue_start>username_0: With the help of [installation guide](https://flutter.io/setup-macos/#update-your-path) and this solution: [How to create a new project in Flutter](https://stackoverflow.com/questions/49047411/flutter-how-to-create-a-new-project/49048596#49048596), I created a sample (default/demo) project in f...
2018/03/01
352
1,231
<issue_start>username_0: I created a webapp and I deployed it on tomcat. But instead of <http://ip:port> I need to put <http://ip:port/nameOfTheWarFile> to enter. is there a way to remove that name from the url and just use <http://ip:port>?<issue_comment>username_1: You will need to change the context path of your w...
2018/03/01
1,086
4,399
<issue_start>username_0: I'm working on a project which has more than one user type (SuperUser - SchoolAdmin - Teacher) And each role has privilige to see some elements. How do i hide elements depending on the logged user role using \*ngIf? This is the project [link](https://stackblitz.com/edit/angular-vduzzk) on St...
2018/03/01
469
1,156
<issue_start>username_0: I need to get rid of date formats in over 6000 lines of code. The format is always the same, but dates and times will vary including AM/PM. This is the pattern [10/6/17, 11:13:52 AM] So far I used ``` .+?(?=[0-9]) ``` which grabs numbers but now I am stuck. Can anyone help? Thanks!<issue...
2018/03/01
1,119
4,033
<issue_start>username_0: Consider I have a method to test, which * may have side-effects (like files created on the file system), and * may throw an exception. Some of the side effects can be observed (and tested) even when the exception is thrown. My sample test code is below: ``` final SoftAssertions softly = new ...
2018/03/01
1,085
2,558
<issue_start>username_0: I want to perform a simple calculation for multiple groups, where columns from seperate data frames are multiplied based on a unique identifier. This is the first data frame: ``` year1 <- c(rep(2016,3),rep(2017,3),rep(2018,3)) group <- rep(letters[1:3],3) prop <- c(0.3,0.6,0.1,0.4,0.3,0.3,0.2,...
2018/03/01
940
2,009
<issue_start>username_0: ``` a = [1, 2] b = [[5,6], [7,8]] c = list(zip(a, b)) print("c zipped:", c) i = 0 lenghta = len(a) c = [] while i < lengtha: temp_list = [a[i], b[i]] c.append(temp_list) i += 1 print("c: ", c) ``` output: ``` c zipped: [(1, [5, 6]), (2, [7, 8])] c: [[1, [5, 6]], [2, [7, 8]]] ``...
2018/03/01
421
1,364
<issue_start>username_0: I have been looking for this in N4713 for more than two hours to no avail.<issue_comment>username_1: I have a C++14 draft which says, at 7.1.6.1 [dcl.type.cv]: > > As described in 8.5, the definition of an object or subobject of > const-qualified type must specify an initializer or be subjec...
2018/03/01
700
2,849
<issue_start>username_0: I have multiple textboxes in my WindowsForm. Whenever I scan with Barcode Scanner, I should click the textbox first, then scan. However, I want the barcode scanner's value to be placed on a specific textbox whenever I scan. Is there a specific code or option for that?<issue_comment>username_1: ...
2018/03/01
715
2,374
<issue_start>username_0: I'm doing a simple library API with Node.js and express. To fetch a specific book with ISBN or books within a specific genre, I have the following functions: ``` /api/books/isbn router.get('/:isbn', function (req, res) { var isbn = req.params.isbn }) /api/books/query router.get('/:genre'...
2018/03/01
869
3,260
<issue_start>username_0: How would I make this type uppercase characters too? And symbols? For example, to make the robot type the string "TeSt!//123$" or anything else similar? ``` void sendKeys(Robot robot, String keys) { for (char c : keys.toCharArray()) { int keyCode = KeyEvent.getExtendedKeyCodeForCha...
2018/03/01
715
2,589
<issue_start>username_0: I am new to web design and am now facing the following problem: My navbar disappears after I click the burger icon (click trigger in the menu then click it again to hide it), and resize the window (I don't want it to hide). Here is the page: <https://www.ramezamr.com/navbar> How to recreate th...
2018/03/01
474
1,637
<issue_start>username_0: I am trying to retrieve a specific count based upon *two conditions*, namely if `'Fieldname'='Centrum'` has the `'FieldValue'='Reinier de Graaf, Delft'` *combined* with `'Fieldname'='Participate`' has the '`FieldValue'='Ja'`. Something like: ``` $database = JFactory::getDBO(); $database->se...
2018/03/01
428
1,430
<issue_start>username_0: We are using the concept of CYK table formation to produce these results on Prolog. Here are some sample outputs for product\_c(+Cell1, +Cell2, -Product): ``` ?- product_c(["A","B"],["C","D"],What). What = ["AC", "AD", "BC", "BD"]. ?- product_c(["A"],[],What). What = []. ``` I've tried usin...
2018/03/01
1,408
5,828
<issue_start>username_0: Actually I am fetching data from server and showing that on my `recyclerview` .But it was showing nothing . Even after a lot of question's reference my problem couldn't be solved but then I tried to use `setAdapter()` method after fetching data and now my problem is solved . But what I'm asking...
2018/03/01
682
2,528
<issue_start>username_0: Consider the following xaml code. ``` ``` And `bttn_Click` as follows, ``` private void bttn_Click(object sender, RoutedEventArgs e) { double randomNo = 10; Random random = new Random(); randomNo = random.Next(45,85); this.bttn.Height = randomNo; } ``` After I click the `B...
2018/03/01
640
2,440
<issue_start>username_0: Getting 415 error in rest assured. Same URI is working fine with Rest client in browser. From Rest client i am getting response code 200. ``` public static Response response; public static String jsonAsString; @BeforeClass public static void setupURL() { // here we setup the default URL a...
2018/03/01
509
1,952
<issue_start>username_0: ``` class ObjectDict(dict): """ allows object style access for dictionaries """ def __getattr__(self, name): if name in self: return self[name] else: raise AttributeError('No such attribute: %s' % name) def __setattr__(self, name, value): ...
2018/03/01
456
1,733
<issue_start>username_0: ``` [HttpGet] public ActionResult EmployeeView(int id) { Employee employee = new Employee(); using (HRMSEntities employeeContext = new HRMSEntities()) { employee = employeeContext.Employee.Where(x => x.Person_Id == id).FirstOrDefault(); } ...
2018/03/01
582
1,723
<issue_start>username_0: How do I execute some tasks in parallel in batch script and wait for them? ``` command1; # command3, command4 and command5 should execute in sequence say task1 # command6, command7 and command8 should execute in sequence say task2 # both task1 and task2 should run independently command3; com...
2018/03/01
505
1,464
<issue_start>username_0: Im struggling to understand something with this code: ``` int **p_p_tictactoe; p_p_tictactoe = new int*[ 3 ]; for ( int i = 0; i < 3; i++ ) { p_p_tictactoe[ i ] = new int[ 3 ]; } ``` on the line: `p_p_tictactoe[i] = new int [3];` The square brackets dereference p\_p\_tictactoe once so that w...
2018/03/01
656
1,814
<issue_start>username_0: ``` def save_data(): wb = openpyxl.Workbook() print(entryArray) for b in range(len(entryArray)): temp = entryArray[b] wb.cell(row=b+1, column=1).value = temp wb.save('/home/'+getpass.getuser()+'/Desktop/FileName.xlsx') ``` i get the error message ``` File "C...
2018/03/01
297
1,281
<issue_start>username_0: Im working on a large app, and I have divided it into separate `targets`. I also have a few `extensions`, that are used in many of these targets. I'm wondering if it's better to create separate `target` for this shared `extensions` and then import it in every `module` that uses it, or maybe hav...
2018/03/01
644
2,573
<issue_start>username_0: I have several "objects" all having the same fields, let's say : ``` public string Reference; public int Id; public Dictionary Members; ``` They will all be initialized once at launch so they might be `static` BUT I will have to read their fields this way : ``` Dictionary MyTypes; //all my ...
2018/03/01
249
847
<issue_start>username_0: I am just beginning HTML and I wanted to know how to use root directory in HTML? I have a `css` and `js` folder in the root directory and I linked it(using relative URL) for the index.html in that directory. But now I have a subdirectory called `foo` along with the `css` and `js` sub-directory...
2018/03/01
267
881
<issue_start>username_0: In my TCA I have relation n:1 SuperClass -> Code ``` 'super_class' => [ 'exclude' => true, 'label' => 'Super Class', 'config' => [ 'type' => 'select', 'renderType' => 'selectSingle', 'foreign_table' => 'tx_classification_item', ...
2018/03/01
831
3,257
<issue_start>username_0: I am running React 16.2.0 and I am using PropTypes 15.6.1. I am using ES6 syntax and Webpack. I am trying to make PropTypes throw a warning when I pass invalid props, but it doesn't work. This is the code: **SimpleMessage.js** ``` import React from "react" import PropTypes from "prop-types" ...
2018/03/01
322
1,267
<issue_start>username_0: I have seen both ``` export default class LoginScreen extends React.Component { constructor(props){ super(props); this.state = { loading: false, loggedIn: false, } } } ``` and ``` export default class LoginScreen extends React.Component { state = { loading:...
2018/03/01
1,306
5,042
<issue_start>username_0: I've not been able to have Symfony 4 work properly in a SPA setup. Specifically, while I navigate using React-router links everything works as it should. But if I try accessing any of the routes ( except home ) directly, Symfony intercepts it and, of course, throws an error for route not fou...
2018/03/01
1,042
3,239
<issue_start>username_0: I am using Microsoft Access database (Please don’t suggest me to use some other database since I donot have that choice in this particular situation). I have 02 tables as below. Table 1: Purchase Order ``` PO_No, Item_No, Order_Qty 01 a 10 01 b 5 ...
2018/03/01
677
2,565
<issue_start>username_0: I am actually looking for a better Scala construct when it comes to return different results from *Future* on different conditions. Lets say, inside a *Future*, I need to do certain validations before return a successful result. There are two ways to do so. **Way I:** ``` Future { if(!v...
2018/03/01
645
2,471
<issue_start>username_0: So i've implemented universal link in my app and when pressing on a button I open my second app with : > > UIApplication.shared.open(aUrl!) > > > also I'm getting the call in : > > func application(\_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler:...
2018/03/01
1,623
4,519
<issue_start>username_0: My JavaScript code is: ``` var photo = {"cover1":"arsenal.jpg", "cover2":"liverpool.jpg"}; var photoList = [ {"id":1, "name":"chelsea.jpg"}, {"id":2, "name":"mu.jpg"}, {"id":3, "name":"arsenal.jpg"}, {"id":4, "name":"city.jpg"}, {"id":5, "name":"liverpool.jpg"} ]; for (var i = 0; i <...
2018/03/01
1,516
4,277
<issue_start>username_0: I am stuck in Python. I need to create and parse a 3-level list. For example, a list inside a list inside a list. 2 levels are working for me but going to the third is so much confusion please help ``` l= [1,5,6,7,8,['a','b','c','d']] a= ['name 1','name 2',l] for i in a: if type(i) == typ...
2018/03/01
723
2,674
<issue_start>username_0: I am running my tests and noticed: ``` 18 passing (150ms) 1 pending ``` I haven't seen this before. Previously test either passed, or failed. Timeouts caused failures. I can see which test is failing because it's also blue. But it has a timeout on it. Here's a simplified version: ``` test(`...
2018/03/01
1,460
5,106
<issue_start>username_0: Hy guys, I just need a suggestion on how to plot in a proper way some data so that they could be self-explanatory. I have a matrix of counts that looks like this: > > > ``` > Condition1 Condition2 Condition3 ...... > > Patient1 30 4 ...
2018/03/01
1,337
4,491
<issue_start>username_0: because of strange color solutions in swift i needed to make customcolor class. And i dont know am i doing right. i have a class CustomColors() and usage: `color = CustomColors().black` and works perfectly but i want to make use like: `color = CustomColors(.Black)` i cant do like this: ``...
2018/03/01
622
2,315
<issue_start>username_0: I add jquery into my index.html But i don't know why i can't see the avatar\_url and the name of the incoming date I check - the date is valid ( remove the login name here ) How to see the image and the name ? what i did wrong ? ``` var Card = React.createClass({ getInitialState: func...
2018/03/01
363
1,177
<issue_start>username_0: Please see example screenshot - I cannot reproduce except on this site, it seems to be some conflict with the css but any ideas what? Normally, plotly moves the legend at the top if there is not enough horizontal space. However, this example shows that the legend overlaps the graph. Even if I...
2018/03/01
700
2,256
<issue_start>username_0: I am trying to use JPA OGM with MongoDB. I have added the latest version of Hibernate (5.3.0.CR1) to the WildFly 11 module folder: > > /usr/local/Cellar/wildfly-as/11.0.0.Final/libexec/modules/system/layers/base/org/hibernate/5.3.0.CR1 > > > I have added the Hibernate version to my persi...
2018/03/01
898
2,802
<issue_start>username_0: [![enter image description here](https://i.stack.imgur.com/Dxt9L.png)](https://i.stack.imgur.com/Dxt9L.png) i'm need add two vertical line on tabbar item. how i can make this? Thank. add next code: ``` var imageLeft: UIImageView? var imageRight: UIImageView? override func viewDidLoad() { ...
2018/03/01
701
2,118
<issue_start>username_0: I have these data ``` idhouse year 7 2016 2 2018 2 2017 3 2017 4 2015 14 2003 3 2018 5 2018 4 2017 4 2018 ``` I want to counting the number of houses belong to two years. I tried with mysql select but didn't work. How I should do i...
2018/03/01
8,069
34,252
<issue_start>username_0: I'm trying to understand how PCI segment(domain) is related to multiple Host Bridges? Some people say multiple PCI domains corresponds to multiple Host Bridges, but some say it means multiple Root Bridges under a single Host Bridge. I'm confused and I don't find much useful information in PCI...
2018/03/01
1,465
4,467
<issue_start>username_0: I'm currently using [draw2d](https://github.com/llgcode/draw2d) lib to render some image. I noticed the core algorithm and method are the same for building [SVG](https://github.com/llgcode/draw2d/tree/master/draw2dsvg), or [PNG](https://github.com/llgcode/draw2d/tree/master/draw2dimg) images. ...
2018/03/01
752
3,265
<issue_start>username_0: I configured for my AWS account the new AWS instance scheduler <https://aws.amazon.com/answers/infrastructure-management/instance-scheduler/> The problem seems that, tagging ec2-instances through a scaling group the ec2-instances are correctly stopped, but since my scaling group has Min number...
2018/03/01
989
3,163
<issue_start>username_0: ``` var json = [{ "city": "California", "name": "Joe", "age": 17 }, { "city": "California", "name": "Bob", "age": 17 }, { "city": "California", "name": "Bob", "age": 35 }, { "city": "Texas", "nam...
2018/03/01
830
3,269
<issue_start>username_0: I have the following C function: ``` void mySwap(void * p1, void * p2, int elementSize) { void * temp = (void*) malloc(elementSize); assert(temp != NULL); memcpy(temp, p1, elementSize); memcpy(p1, p2, elementSize); memcpy(p2, temp, elementSize); free(temp); } ``` that...
2018/03/01
3,492
5,943
<issue_start>username_0: I have a signal position indicator vector consisting out of -1s and 1s. In addition, I have volume data which I want to sum based on the value of Signal. The basic data table looks like this: ``` df <- cbind(Signal, Volume) head(df, 20) Signal Volume 2016-01-04 NA 37912403 ...
2018/03/01
555
1,879
<issue_start>username_0: For example my inquiry(question?) in SQL is: ``` SELECT * from COMPANY where imie="John",surname="Wattson",age=31; ``` I use `sqlite3_exec` where one of the arguments is `callback`. I don't know if this record is in my table, and would like to know it using `sqlite_exec`. What should I do?...
2018/03/01
589
2,169
<issue_start>username_0: I pass a route in laravel which is called by a function in JS and I have no control of it because it is external, this route is a post method since I need it to be that way but it generates me a `MethodNotAllowedHttpException` as I do to exclude certain routes of this validation. **Note:** I h...
2018/03/01
735
2,627
<issue_start>username_0: I am using bouncy castle `RsaPrivateCrtKeyParameter` to read RSA private key. I want to get some property to identify the RSA private key uniquely. privateKey = bytes of the RSA privatekey ``` using (Stream stream = new MemoryStream(privateKey)) { using (var reader = new StreamReader(str...
2018/03/01
1,650
5,209
<issue_start>username_0: I know there are a lot of answers about saving a php array as a .json file but none of them seem to solve my problem. Basically I have an array that is storing my data. first I check to see if a .json file has already been created. (each .json file is named using an $id variable) If there is ...
2018/03/01
411
1,482
<issue_start>username_0: We use `Attribute` in C# like: `[Required] string email;` how we can achieve this in **JavaScript** I used the following but this doesn't sends back ```js var c=function(){ Object.defineProperties(this,{ a:{ writable: true, enumerable: true, ...
2018/03/01
649
1,863
<issue_start>username_0: I want to add a extra class to the "td field" When it just has the letter 'A' or 'B'. Right now it adds the "big-a" and "big-b" class if the word has a or b letter inside the word. ``` $(".column-1").addClass(function() { var text = $(this).text(); if (~text.indexOf("A")) { return "big-a"...
2018/03/01
420
1,556
<issue_start>username_0: Is it possible to execute a ALTER INDEX prepared by doing a SELECT on sys tables in Oracle 12c. Please see below I am trying to find the unused indexes for which I have prepared the alter statements by select clause below - ``` SELECT 'alter index ' || owner || '.' || index_name || ' monitori...
2018/03/01
1,616
6,319
<issue_start>username_0: I am using Kotlin Android Extension to access view directly by their id. I have a progress bar which I access directly in fragment using id i.e progress\_bar ``` ``` In fragment, I am showing and hiding it with this code ``` progress_bar.visibility = if (visible) View.VISIBLE else View.GONE...
2018/03/01
2,472
8,591
<issue_start>username_0: I am trying to create an HTTP server using boost::beast but I noticed a delay of one second in response time. I used the advanced server example and synchronous client example to benchmark this behavior. Also tried to disable Nagle's algorithm but had no effect and doesn't seem to be an optimi...
2018/03/01
416
1,396
<issue_start>username_0: I Have one data set which contains some categorical variables and they have some missing(NA/Null). I Want to fill these NA/Nulls with Mode of that Column. I tired Following thing but This didn't work ``` MD=Data['Gender'].mode() Data['Gender'].fillna(value=MD,inplace=True) MD=Data['Married']....
2018/03/01
1,144
3,889
<issue_start>username_0: How to append an element at the end of a list in ReasonML (the equivalent of `Array.concat` in JavaScript)?<issue_comment>username_1: You can use `List.append` or the `@` operator which is shorthand for `List.append`. ``` let lstA = [ 1 ]; let lstB = lstA @ [ 2 ]; let lstC = List.append(lstB, ...
2018/03/01
418
1,342
<issue_start>username_0: DataTable contains two columns BillId and BillValues. BillValue can be any number(1 to 1000). I want to count total number of 5 bill, 10 bill and all other bills appearing on DataTable and add them to Dictionary. In this regards, please advise ``` BillId , BillValue 1 5 1 1...
2018/03/01
1,507
5,387
<issue_start>username_0: I want my users to enter their birth year. I don't want them to type the same in the form rather select the year from available options. I known that I can do something like this in my model if I needed to date instead of year: ``` class MyModel(models.Model): birthday = models.DateField(...
2018/03/01
665
2,856
<issue_start>username_0: Let's say I've got an application where my "administrators" are able to see the regular users passwords easily. They can even change it, if they need to. When a new user comes, the "admin" adds the user to the "system", and gives him the password he just typed. Then the user may change it. ...
2018/03/01
193
679
<issue_start>username_0: how can I hide the port when I ran my node application example <http://localhost:3000/application/login> What I need is to hide port 3000 so that it stays that way <http://localhost/application/login><issue_comment>username_1: You need to run the server on port 80, but to do this, you need ...
2018/03/01
439
1,841
<issue_start>username_0: I have changed my Core Data model a while back and found out after weeks that it causes a crash on older versions of the app. I get the error: ``` Error Domain=NSCocoaErrorDomain Code=134140 "Persistent store migration failed, missing mapping model." ``` My issue is that I don't remember ch...
2018/03/01
229
804
<issue_start>username_0: I have got a question. How to change `font-size` of `:root`, using javascript? I need to make a button to resize font in a whole website.<issue_comment>username_1: If you change the `document.body.style.fontSize` you are basically changing the `:root`. As long as the rest of your styles use `em...
2018/03/01
280
1,051
<issue_start>username_0: [![enter image description here](https://i.stack.imgur.com/dPZja.png)](https://i.stack.imgur.com/dPZja.png) This morning, I updated my divi Theme, and noticed that when I scroll, all of my content goes ON TOP of my header now (see Screenshot). Another issue that has appeared is all pages which...
2018/03/01
953
3,453
<issue_start>username_0: **ISSUE** While in VS, right-clicking on a file and selecting "Compare" will completely lock up Visual Studio. The same happens when right-clicking inside the text-area of a file and doing a Compare. The same happens regardless of file type... I've tried with .js .vb .cs .ascx .css Attempti...
2018/03/01
206
675
<issue_start>username_0: **uniform\_int\_distribution** uses the following **probability mass function**: ``` P(i|a,b) = 1/(b-a+1), a <= i <= b ``` How does one *read* the LHS of the equation,ie: `P(i|a,b)` ?<issue_comment>username_1: This means "P (the chance) of outcome i, depending on parameters a and b, is (1/b-...
2018/03/01
708
2,583
<issue_start>username_0: I found a really weird (for me) problem I have this global variable ARRAY ``` var A = [1,2,3,4] ``` then inside a function, I made local var and assign previous global var to it ``` function someFunc() { var X = A; } ``` I then made another local Var and assign it with the first lo...
2018/03/01
771
2,882
<issue_start>username_0: I have a question regarding the send\_keys function. How can I make the test wait for the entire content of send\_keys to be entered? I can not use time.sleep, so I tried: ``` WebDriverWait(self.browser, 5).until( expected_conditions.presence_of_element_located((By.ID, "name"))) qu...
2018/03/01
466
1,758
<issue_start>username_0: I know that numeric literals in Java are by default of the type int. So the 5 in the following example actually is an int as long as I don't write an 'L' behind it. So why can't I assign the result of a\*b back to an int variable, if 5 and 7 are both of the type int? ``` long a = 5; int b = 7...
2018/03/01
1,905
7,255
<issue_start>username_0: i know this link: <https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-file/#where-to-store-files> but i would like to save the file in Downloads directory. Is this possible to save the file in any path using Ionic? If so, please, share the example. Here's the code: ``` downlo...
2018/03/01
1,773
6,785
<issue_start>username_0: I am using Selenium Webdriver version 3.4 and chromedriver 2.35.528157. My test consists of entering a system through google, so when I click login through google it asks me to enter my email. When I enter my email and click next it asks for the screenshot attached, it does not get to enter pas...
2018/03/01
248
975
<issue_start>username_0: I have several jobs than will run in sequence. It is possible to create a dependency between them only for completion, but not that the prior job has to complete successfully? If a job fails this should remain red and go to the next job and continue running. It is mandatory that this jobs to r...
2018/03/01
2,256
8,184
<issue_start>username_0: I was trying to store values in linked list in c++ and printing them. But I don't know whether I am writing the proper code or not. When I create a new node-insert value-print this works but. But when i use temp at the last to print all the values is not working ``` #include using namespace s...
2018/03/01
3,916
9,275
<issue_start>username_0: I would like to add lines between "mean" in my boxplot. My code: ``` library(ggplot2) library(ggthemes) Gp=factor(c(rep("G1",80),rep("G2",80))) Fc=factor(c(rep(c(rep("FC1",40),rep("FC2",40)),2))) Z <-factor(c(rep(c(rep("50",20),rep("100",20)),4))) Y <- c(0.19 , 0.22 , 0.23 , 0.17 , 0.36 , 0....
2018/03/01
3,186
9,201
<issue_start>username_0: I have a web page and added media queries for that. It is working good for all the responsive but not working good for tablet(width: 768px). I am sharing the image below. ``` [Image][1] ``` **My html** ``` #### Emerging MarketsStrategy Market penetration or New Product Introduction ser...
2018/03/01
318
1,260
<issue_start>username_0: I have a React Native app which uses the Twilio Chat API to connect to a channel. I am using this repo: <https://github.com/twilio/TwilioChatJsReactNative> I am using `this.generalChannel.join()` to join my general channel. This works for any new user. I have the token generator running in th...
2018/03/01
426
1,600
<issue_start>username_0: I have a select element which looks like this: ```html Roboto Kalam Karma Montserrat ``` Now, for every one of them, I want to change the font family to what the actual inner html is, to give a preview of the font you're about to select. But putting styles directly on the option do...
2018/03/01
280
875
<issue_start>username_0: An example of the data frame I have is: ``` Index TimeDifference 1 2 3 20 4 5 67 ``` I want to delete all rows that are blank (these are blank and NOT na). Hence the following data frame I want is: ``` Index TimeDifference 3 20...
2018/03/01
893
3,841
<issue_start>username_0: I need to execute some code whenever my android application is launched, so that i can initialize my mainActivity menu. The menu should be initialized only when the app is started and should remember the menu item selected, for example when i return to the mainActivity from other childs Activie...
2018/03/01
785
3,110
<issue_start>username_0: As the title suggest, apart from the text in the center on the button I want to put text in any of the corners of the button. One possible way to do so is to use a background image. But I want to know, can it really be done? ``` import kivy from kivy.app import App from kivy.uix.gridlayout imp...
2018/03/01
776
3,201
<issue_start>username_0: I'm using C#, WinForms, I created a button on my form where I dynamically create a timer. I have another button where I need to check how many timers I created. I tried to cancel the timer in the form but it does not work, here is the code: ``` int i=0; private void button1_Click(object sende...
2018/03/01
437
1,393
<issue_start>username_0: If I paste in ``` https://exchange.nagios.org/components/com_mtree/attachment.php?link_id=3355&cf_id=24 ``` in my browser, then it downloads a file called `check_cups_printer.tar.gz`. If I ``` wget 'https://exchange.nagios.org/components/com_mtree/attachment.php?link_id=3355&cf_id=24' ```...
2018/03/01
620
2,119
<issue_start>username_0: guys. I'm trying to declare custom types in d.ts files and use it in jsdoc annotations in javascript files to have intellisense in VS Code. Example is the following: File types.d.ts ``` import { Request } from "express"; declare interface IRouter { request: Request, someProp: strin...
2018/03/01
1,471
5,569
<issue_start>username_0: I've heard that in x86 processors, bytes are stored in the memory in **little-endian** byte order. Meaning that the least significant byte gets stored first. I'm having trouble grasping the idea and its relationship with how bytes get stored in RAM. For example, ``` #include char string[6...
2018/03/01
643
2,643
<issue_start>username_0: I started writing tests for an existing application and encountered two problems. Here is service method I'm trying to cover: ``` function getClinic(id) { return $http .get("api/clinic/" + id) .then(function (resp) { return resp.data; ...
2018/03/01
1,409
4,017
<issue_start>username_0: I'm new to R and machine learning and I'm using data with 2 classes. I'm trying to do cross validationl, but when I try to make a confusion matrix of the model I get an error that all arguments must have the same length. I can't understand why what I've input doesn't have the same length. Any h...
2018/03/01
1,860
6,073
<issue_start>username_0: I've built a large program for a wheel-taping machine. I am having a problem with the timing of certain functions. At some points I have to wait on something like a pneumatic cilinder. It can occur at some points that a functions gets executed immediately instead of after the set interval. It...
2018/03/01
862
3,291
<issue_start>username_0: Following my anterior [question](https://stackoverflow.com/questions/48998580/changing-values-from-columns-according-to-datagridviewcomboboxcell) about changing values on column cells according a `comboboxcolumncells`, now I have the following problem. My event fires, but I get the following e...
2018/03/01
329
1,333
<issue_start>username_0: I want to have a component like button (or react-native-action-button precisely) to be shown in each screen using React Navigation. Does React Navigation has any option in inside Routes to implement it once and use everywhere? Note: I don't want to import Component in each .js class and use i...
2018/03/01
680
2,653
<issue_start>username_0: In this task I am not allowed to use auto-wiring so I am trying to create something similar to this: <https://www.tutorialspoint.com/spring/spring_java_based_configuration.htm> My code ``` @Configuration public class ApplicationConfig { @Bean public FoodService foodService() { ...
2018/03/01
959
3,657
<issue_start>username_0: **Is it possible to resign an .ipa file signed with a development certificate to an enterprise certificate?** Background: My client needs the .ipa file. He owns the enterprise certificates which he won't share with us. The idea is that I deliver the .ipa file with my own development certificat...
2018/03/01
396
1,356
<issue_start>username_0: I am trying to log to console something by disabling the no console rule in eslint like this: ``` // eslint-disable-next-line no-console console.log(props.hasSubmittedForm); ``` But, I get an error: > > Module build failed > > > unexpected token > > > For the dot the console.log. Why...
2018/03/01
914
3,508
<issue_start>username_0: I'm working with an odata api, and when I'm using postman to do a GET request, works perfect and I get the response as I was expecting. [![Postman Request](https://i.stack.imgur.com/uOQnt.png)](https://i.stack.imgur.com/uOQnt.png) But when I use a fetch request from my React app, the request t...
2018/03/01
784
2,105
<issue_start>username_0: My question is simple, I have three divs, which are visually horizontal, but I would like to leave them as same aspect, but vertically. I'm a beginner, I researched and tried to do it myself, but I could not. Follow the code: ```css .note-icon-bar { width: 20px; margin: 1px auto; ...
2018/03/01
1,008
2,821
<issue_start>username_0: Python 2.7 I am new to python and this is my first post for help. I am sending a post request to the web and having a json file returned. It looks like this: [json Example](https://i.stack.imgur.com/NzIQs.jpg) if i do: > > print data['result'] > > > I get all the items listed if i do...
2018/03/01
702
1,934
<issue_start>username_0: When writing to a large table, looping through children to get a `td` and changing `innerHTML` does not display a value. However, adding ``` console.log(table.children[Math.floor(id/3)].children[id % 3].innerHtml); ``` at the end of `displayChar()` returns [![console](https://i.stack.imgur....
2018/03/01
351
1,444
<issue_start>username_0: I'm new in Python and I'm not an English native speaker. Today I learned some functions in the itertools module. There is a function called islice. Does it stand for `infinitive slice`? As I understand it can be used to slice infinitive sequence of objects and is commonly used with `itertools.c...