date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/22
819
2,289
<issue_start>username_0: Trying to remove trailing zero of arrival\_time, the column data type is **Time** ``` SELECT * FROM TABLE ``` And I got this: `station_name | arrival_time --------------+-------------------- Wellington | 06:05:00.000000000` and I need the result to look like this: `station_name | arrival...
2018/03/22
492
1,789
<issue_start>username_0: How can you take an array and put it into a stack???? I have a card array with a deck of cards that gets shuffled then I need to change it to a stack and print the first number on top. Anyway anyone can help?<issue_comment>username_1: To convert array to an stack you need to first convert it to...
2018/03/22
530
2,005
<issue_start>username_0: I have a single product that is called on the homepage using the product shortcode `[product sku=""]`. The product has variations, with each variation having a different description. I'm having trouble having the variation descriptions come up as a user selects a different option from the drop...
2018/03/22
485
1,950
<issue_start>username_0: I'm trying to dramatically cut down on pricey DB queries for an app I'm building, and thought I should perhaps just return IDs of a child collection (then find the related object from my React state), rather than returning the children themselves. I suppose I'm asking, if I use *'pluck'* to j...
2018/03/22
648
2,460
<issue_start>username_0: I saw some example where the Kubernetes cluster is installed with ingress controller and then the ingress class is added with annotations and host as below. ``` apiVersion: extensions/v1beta1 kind: Ingress metadata: annotations: kubernetes.io/ingress.class: nginx spec: rules: - host:...
2018/03/22
1,069
3,947
<issue_start>username_0: I have lots of multiple if-else statements. For code optimization, I need to write one function for all if else logic. As of now my code structure is in below. input request is in JSONObject(org.json.simple.JSONObject), which have more than 10 values. ``` String s = (String) inputObj.get("t...
2018/03/22
893
3,140
<issue_start>username_0: This is the calendar which we are using in the application, this field is read only i have to select the date automatically, i cant be able to inspect the calendar as the code is disappearing automatically when we click on the calendar because of that i cant be able to write code in selenium ...
2018/03/22
1,383
5,407
<issue_start>username_0: I have a container running inside Kubernetes cluster (within POD) along side many other containers (in their own PODs) and my container is a common container. Now, I want to pull (copy) the files from other containers to my common container. I investigated for some options and found that kubect...
2018/03/22
577
2,421
<issue_start>username_0: I want to integrate GraphQL to my existing ASP.NET Framework (with Entity Framework 4) application which has an MSSQL Server as the backend. While browsing through the GraphQL libraries for .NET I found 2 libraries - **graphql-dotnet** and **graphql-net**, being suggested on the GraphQL websit...
2018/03/22
645
2,064
<issue_start>username_0: How can we make a span element as img element? More precisely how can we do this, ``` ``` I saw this concept in twitter message bar when we put emoji in textarea. Thank you for you time and concideration. Kindly have a look I would be greatful. Edit-1 This question is not about using backg...
2018/03/22
379
1,418
<issue_start>username_0: The `GetAll` returns an `IEnumerable` and, in this case, it's `null` ``` List notes = noteManager.GetAll(newTaskId).ToList(); ``` I'm getting an error like the following: > > System.ArgumentNullException: 'Value cannot be null. Parameter name: > source' > > > Is this to be expected? S...
2018/03/22
536
1,675
<issue_start>username_0: i need to add an hyphen after every 4 digit i enter, i am getting this in the console , how can i can achieve this to change in the input in angular 2 Code i used given below **.ts** ``` mychange(val){ var self = this; var chIbn = self.storeData.iban_no.split("-").join(""); if (chIbn.le...
2018/03/22
383
1,307
<issue_start>username_0: I disabled SMB1 on Windows Server 2008 R2 using the command: ``` sc.exe config lanmanworkstation depend= bowser/mrxsmb20/nsi sc.exe config mrxsmb10 start= disabled ``` When I checked again using the command : `Get-Service mrxsmb10` if SMB1 is disabled, then the Status showed "Running" Someo...
2018/03/22
836
3,036
<issue_start>username_0: I need to simplify these lines of code to less than 4 if's. Not sure how i can achieve that: ``` for response in response_json: for appliance in response['versanms.ApplianceStatusResult']['appliances']: temp_item = OrderedDict() if 'name' in appliance: ...
2018/03/22
557
1,781
<issue_start>username_0: Print respective index value from two arrays in " Javascript " and in "PHP" ``` var a = [ x , y , z] var b = [ p, q, r] ``` `then => values [x, p] , [ y, q]` please help me, Thanks you<issue_comment>username_1: Replace all of this: ``` if 'name' in appliance: temp_item['name'] = app...
2018/03/22
296
1,053
<issue_start>username_0: I'm running Window 10 64-bit. I have a Python project: ``` A:\code\projectFolder\project.py ``` For project.py, I want to import the following file: ``` A:\code\importThisFolder\importThisFile.py ``` On project.py, I've tried using without success: ``` import sys sys.path.insert(0,'A:\co...
2018/03/22
5,367
19,933
<issue_start>username_0: I am getting the below error code in my app mostly by android version 4.4 i am not able to find the error Hi I'm trying to build a Battery Alarm app, I'm keep getting a java.lang.RuntimeException error. I've read some topics on stackoverflow and their problems seems something wrong with their...
2018/03/22
234
984
<issue_start>username_0: What is standard project folder structure should I follow for making a component-based project in AngularJS 1.5?<issue_comment>username_1: You can have following type of basic folder structure and also refer to [git app starter](https://github.com/jofftiquez/angular-app-starter-pack) ``` /app ...
2018/03/22
2,043
6,889
<issue_start>username_0: When you write `int i; cin >> i;` and input `00325` or `325`, both of the inputs behave like `i = 325;`. But why? I think is is more natural if `i`'s value was set to `0` when you input `00325`, and the next `cin >>i;` gave rise to `i = 0;` and the next `cin >> i;` gave rise to `i = 325;`. I kn...
2018/03/22
962
3,858
<issue_start>username_0: While implementing a custom sidebar navigator , i'm getting double headers. I've tried `headerMode: 'none'` as well as `header:null` , but no use.Following is some portion of my code ``` this.openMenu} > this.props.navigation.navigate("CategoryDetail",{id:this.props.cat.term\_id})}> {t...
2018/03/22
760
3,133
<issue_start>username_0: I use the Python programming language extensively in my research and have a few publications that required the submission of my code base. I do mostly nearest-neighbours type data mining at the moment. I am starting to worry about writing the best possible code as others are beginning to use my...
2018/03/22
679
2,547
<issue_start>username_0: I'm currently using opencv framework(3.4.1) for object measuring, but I am not able to add `points[4]` to the contours. Please let me know how to add `points[4]` to the `boxContours` in the code below. I can pass `boxContours` to the `drawContours` only if I add points to the former. ``` cv::...
2018/03/22
1,256
3,738
<issue_start>username_0: I am building a scheduler that calculates the number of hours each person works for a week. The dataframe looks like this: ``` >df Shift Monday Tuesday Wednesday Thursday Friday Saturday Sunday 1 09-12 a c a c b b b 2 12-15 b d b ...
2018/03/22
1,126
3,620
<issue_start>username_0: on hover li div will come I got it. my question is by default first div is displayed.i want to show the first div. Can anyone suggest me? Help will be appreciated ```js $('#menu a').hover(function(e){ hideContentDivs(); var tmp_div = $(this).parent().index(); $('.main div').e...
2018/03/22
501
1,639
<issue_start>username_0: *Please note that the following code is a contrived example of accessing a struct via a void pointer and is otherwise meaningless*. My question is, is there an alternate way to cast a void pointer to a struct pointer inline (by using a (CAST\*) style syntax? E.G. can I avoid the line `S_TEST *t...
2018/03/22
383
1,356
<issue_start>username_0: I am using tab panes defined as ```html * [Personal Information](#personal) * [Contact](#contact) * [Parent/Guardian Information](#guardian) * [Educational Background](#education) * [Study Prospects](#recommendations) ``` It can be seen that i have selected Contact as First selected Tab, how...
2018/03/22
712
2,572
<issue_start>username_0: I'm getting data from a web page with websocket but I need to deploy it with socketIO to client. In my server.js client connects with socketio well but after that data(line1 line2) can't comes properly, always I need to restart server 2-3 times.Then it comes. Here is my declerations ``` var s...
2018/03/22
811
2,754
<issue_start>username_0: I'm trying to set up unit tests for my PyQt app, and I ran into an unexpected situation. Basically, the type of item returned from layout.itemAt() is different from the item that was added to the layout, and I'm curious why. Here's my example code: ``` from PyQt5 import QtWidgets class Main...
2018/03/22
1,889
7,194
<issue_start>username_0: Android Login problem. Php is perfectly returning the response in JSON format. But the android activity is not going to next activity. sometimes it is showing Bad network connection and sometimes it is showing passwords don't match error even though the right password here are my codes login....
2018/03/22
441
1,752
<issue_start>username_0: I'm trying to implement the google's paging library in my project. All things are already coded and network call is working in **loadInitial**() But it never goes in **loadAfter**(). As code structure is very complex I am not posting code directly here. **Here's the repository :** <https://g...
2018/03/22
1,422
5,572
<issue_start>username_0: I'm a complete beginner in android so please do excuse me if my question is foolish.Basically what I want to do is I want to detect text from occurance of **#** means for example if user is entering `abc #hello` then only `#hello` will be toasted in text change . So I tried to take reference fr...
2018/03/22
1,538
4,951
<issue_start>username_0: ``` 'products': [{ // List of productFieldObjects. 'name': 'Triblend Android T-Shirt', 'item_id': '12345', 'item_price': '15.00', 'brand': 'Google', 'category': 'Apparel', 'variant': 'Black', 'quantity': 1, 'something' : 'anc', 'something2' : 'xyz', ...
2018/03/22
2,708
9,121
<issue_start>username_0: I am trying to hit api using retrofit in kotlin This is my DoinBackGround Method ``` private fun doinBackground() { Utility.printMessage("in do in background.....") try { val hdr = HashMap() hdr.put("x-csrf-token", Utility.getToken(this.context!!)) val apiInterface = Api...
2018/03/22
425
1,261
<issue_start>username_0: I'm trying to **exclude everything except** [a-z] [A-Z] [0-9] and [~!#$]. ``` if( $("#name").val().test(/[^a-zA-Z0-9~!#$]/)) { alert("Disallowed character used."); return false; } ``` I thought test would return true if it finds a match and that because I included the caret symbol it...
2018/03/22
1,021
2,751
<issue_start>username_0: I want to install Gromacs, and I've followed the steps from this [site](https://bioinformaticsreview.com/20151126/how-to-install-gromacs-5-x-x-on-linux-ubuntu-14-04-lts/) until the part where it tells me to enter this command: > > sudo cmake .. -DGMX\_BUILD\_OWN\_FFTW=OFF -DREGRESSIONTEST\_DO...
2018/03/22
665
1,993
<issue_start>username_0: I came to scenario where I only want [0-9 or .] For that I used this regex: ``` [0-9.]$ ``` This regex accepts 0-9 and . (dot for decimal). But when I write something like this ``` 1,1 ``` It also accepts comma (,). How can I avoid this?<issue_comment>username_1: This regex may help you...
2018/03/22
833
3,148
<issue_start>username_0: I have a alertdialog box with the linkbutton and ok button. when the error is generated the message is displayed on alertdialog box. But when the new error is generated the new message is getting appended with the old message and link button is getting repeated too. I want to delete the old mes...
2018/03/22
739
3,042
<issue_start>username_0: So I have a call to a function which creates a DB collection to mongoose, then right after it I set some variables which are calls to the same collection. However, the promise is returning before the actual save is made to MongoDB and I'm getting the error on the variables : UnhandledPromiseRe...
2018/03/22
324
1,152
<issue_start>username_0: I have a e-commerce application. All delivered orders have a column "updated\_at". I can with this column calculate average delivery time total delivered orders? I have count all orders and column updated\_at. What I need do, that calculate average time? My code: ``` $deliveryTime = Order::...
2018/03/22
687
2,086
<issue_start>username_0: I want to show all records of examresult on basis of `category_id`. Every subject has 2 category IDs. How to show result when one `category_id` of examresult is not present in the result? I want to show `null` on some column and some value when the `category_id` exists. This image will gi...
2018/03/22
935
4,073
<issue_start>username_0: The first item in the navigation bar keep highlighting. When I click other item on the navigation bar, the content will change but the corresponding item will not be highlighted, just keep highlighting the first item. ``` bottomNavigationView.setOnNavigationItemSelectedListener(new Bo...
2018/03/22
780
2,710
<issue_start>username_0: In the below class error is in the init function where i load the class object I stored in the file to the vector Items. ``` class Item { std::string item_code; std::string item_name; std::string unit_name; unsigned int price_per_unit; double discount_rate; static std::vector Items; friend std...
2018/03/22
315
1,085
<issue_start>username_0: Here is my code, Actually when I click on function but not showing alert and not getting error in console. So please tell me how to do. HTML Code ``` - Home ``` app.js ``` app.controller('myController', function($scope){ $scope.homepage = function(){ alert('hi'); }}); ```<issue_comme...
2018/03/22
1,132
3,999
<issue_start>username_0: I've only started learning Javascript for a few hours, and am trying to use a function to add to a variable using JS within HTML (Sorry if I used the wrong terminology) and it doesn't seem to be changing the result. ``` TODO supply a title var userID = 1; var userRep = 0; function NumUp...
2018/03/22
395
1,492
<issue_start>username_0: I want to use Material-UI Next textfield `error` props [link](https://material-ui-next.com/api/text-field/#textfield), the props type is `boolean`. The previous version of Material-UI props name is `errorText` and the props type is `node` [link](http://www.material-ui.com/#/components/text-fiel...
2018/03/22
225
639
<issue_start>username_0: I am a newbie to scala I have a list of strings - `List[String] (“alpha”, “gamma”, “omega”, “zeta”, “beta”)` I want to count all the strings with length = 4 i.e I want to get output = 2.<issue_comment>username_1: You can do like this: ``` val data = List("alpha", "gamma", "omega", "zeta"...
2018/03/22
1,106
3,535
<issue_start>username_0: Mac running Docker Version 17.12.0-ce-mac55 (23011) here. I have a very bizarre situation with Docker that I absolutely cannot explain! * I have a Dockerized web service that runs perfectly fine outside of Docker, running off of port 9200 (so: `http://localhost:9200`) * I can also run several...
2018/03/22
732
2,363
<issue_start>username_0: I am using hibernate 4.0.1 in my Portlet application which deployed on Websphere application server, I am referring to datasource configured on the application server from the hibernate configuration, my question is should I use "connection.pool\_size" property OR "c3p0" to set the connection p...
2018/03/22
2,286
4,522
<issue_start>username_0: I am a beginner in Python and Deep Learning. It might be easy for most of you but how can I do it? How to convert the below objects into unique numerical values? ``` df['city'].unique() array(['LIMA', 'VACAVILLE', 'CINCINNATI', 'GLASGOW', 'BOWLING GREEN', 'LANCASTER', 'HOUSTON', 'SPRINGFI...
2018/03/22
1,213
3,967
<issue_start>username_0: I am running a web application(wagtail cms) on linux ubuntu. I am getting this error when I run python3 manage.py runserver 0.0.0.0:8000 Please see the error message on the console. ``` Performing system checks... System check identified no issues (0 silenced). March 22, 2018 - 15:27:33...
2018/03/22
737
2,246
<issue_start>username_0: I am only interested in n < 0 case, if n == -3 then I get, 0.001 as desired. but I reached here through trial and error. Can someone explain to me 'WHY' this works (for n < 0 case only)? ``` public static double power10(int n) { if(n == 0){ return 1; } else if (n > 10){ return 10...
2018/03/22
332
1,194
<issue_start>username_0: I want to run Apollo GraphQL server on Google Cloud Functions. It basically boils down to running an Express server with different routes I suppose. Is it possible and if yes then how? Do note that I don't wish to use any Firebase libraries for the same as highlighted here: 1) [Cloud Functions...
2018/03/22
300
1,198
<issue_start>username_0: What are my options for passing in additional inputs to ParDo transforms. In my case , I need to pass in about 5000 string objects to my ParDo. From what I understand, these are my options : a) Pass it as side-input : But I suppose , that passing such as a huge sideinput might deteriorate the...
2018/03/22
2,063
6,942
<issue_start>username_0: I have 2 columns; 1 for month and another 1 is year. Both column having random value. I want to combine both column into 1 single column. As example, in column B "Month" I have this 1-12 number representing month and at Column C "Year" like 8 which is 2008 or 10 for 2010. My objective is to c...
2018/03/22
620
2,474
<issue_start>username_0: So i am confused on laravel nested queries. I am trying to prepared a search function that filters the products that is in the `sales_agreement` table but also if the record has financing i want it to be filtered too. Below is my sample. (1) Table Products ``` id product_...
2018/03/22
882
3,838
<issue_start>username_0: I referred to [this question](https://stackoverflow.com/questions/35387227/get-device-token-with-react-native) to get a device token in order to send push notifications to my app. I created my app using `create-react-native-app`. Here is the code: ```js import React, { Component } from 'react'...
2018/03/22
645
2,146
<issue_start>username_0: I am having some strange behaviour where `this.props.children` is converting to an object when I spread the result of a `.map()` from the parent. **example:** ``` const items = [ { id: 1, name: "Name1" }, { id: 2, name: "Name2" } ].map((item) => { return ( ); }); render() { return...
2018/03/22
450
1,655
<issue_start>username_0: I've inserted multiple rows data from gridview to database at a time using stored procedure. Now I've to fetch and display that multiple rows data into GridView and inside GridView I need to call particular value from column to a particular label into GridView. How can I get that values dynam...
2018/03/22
360
1,443
<issue_start>username_0: I have requirement in our application, where we need show the date format as per the client OS date format.I have used the following code to do this. --- ``` function getFormatedDateTime(date) { var dateFormated = moment(date).toDate(); return dateFormated.toLocaleDateString(); }; ``` --- ...
2018/03/22
932
3,294
<issue_start>username_0: I want to have two, side-by-side ImageViews that spread to take up 50% of the screen each. Over each, I want to arrange an array of Buttons and TextViews. I am doing this in a single `ConstraintLayout`. When I set up the ImageViews by themselves, they lay out properly using these properties: ...
2018/03/22
672
2,563
<issue_start>username_0: Here I am overriding the `find()` method ``` class ActiveRecord extends BaseActiveRecord{ public static function find() { return parent::find() ->where(['=',static::tableName().'.company_id',Yii::$app->user->identity->company_id]) ->andWhere(['=',static::table...
2018/03/22
632
2,247
<issue_start>username_0: I've created a factory class which allows the user to call a method `Generate` and it populates a jagged array via some logic that generally I don't want the user to deal with. A lot of index's are null because of the type of grid layout that the factory generates. But I don't want the user t...
2018/03/22
573
1,733
<issue_start>username_0: I found this code from stackoverflow ... and wondering how can I move index position that I want. I tried to use for loop and [::1]. And by making, len(a)\*[0]...I couldn't make it. Is there any way to fix items on its position in list? Second, without using method below, is there another way...
2018/03/22
498
1,698
<issue_start>username_0: I am attempting to make a chat room for a class project (I have stumped my teacher and he has given me permission to use any sources at my disposal, including asking Stack Overflow which some teachers don't allow). Before the user gets to the chatroom itself I want to make sure the IP address t...
2018/03/22
1,339
4,590
<issue_start>username_0: I've checked my Hyper-V settings and PowerShell Module is enabled. I've also found this documented issue: <https://github.com/docker/machine/issues/4342> but it is not the same issue since I do not have VMware PowerCLI installed. The issue was closed with a push to the repo and is supposedly fi...
2018/03/22
1,144
3,952
<issue_start>username_0: I'm trying to send Custom ERC20 Token to Owner Wallet Address using transferFrom() function using Web3.js However all the transactions are failed. Which is the same problem occur on Remix IDE. Some answers on Stack Overflow say that the `approve()` is needed to call first before the `transfer...
2018/03/22
808
2,889
<issue_start>username_0: I'm currently having an issue with figuring out how I can access req.user so I can get the logged in users id and save it with the items that they save on the web page. That way when they load the web page they only get their items. The only place I know where I have access to req.user is in my...
2018/03/22
262
947
<issue_start>username_0: In an Excel sheet, I want to read the values from a column, pick a random value from it and display in another column. Is there any way to do that in java? Thank you.<issue_comment>username_1: You can define global variable and use it using middleware. app.js ``` // Global Vars app.use(funct...
2018/03/22
391
1,288
<issue_start>username_0: When I do ``` mix compile ``` I get messages like ``` warning: variable "test_val" is unused lib/myapp/mymodule.ex:46 ``` I'm just hacking on a side project and I don't care about these warnings for now. Is there a way to turn this off?<issue_comment>username_1: It doesn't look possible, ...
2018/03/22
1,369
5,598
<issue_start>username_0: I'm sure that most of you know that C does not specify which order operands to operators such as + will be evaluated. E.g. `x = exp1 + exp2` might be evaluated by first evaluating exp1, then exp2, then adding the results. However, it might evaluate exp2 first. How would I make a C assignment...
2018/03/22
1,834
6,558
<issue_start>username_0: I want to delay observable to return value until i get new\_token from my HTTP request in subscription. I am also using delay time but i could not able to success . > > Error: returning undefined value > > > Expected: new\_token returned from server > > > ``` refreshToken(): Observabl...
2018/03/22
1,577
5,272
<issue_start>username_0: I want to import 3 csv files using 3 buttons separately and merge them into one csv file and save it using a button click. This is my code: ``` from Tkinter import * from Tkinter import Tk from tkFileDialog import askopenfilename import pandas as pd from tkFileDialog import asksaveasfilen...
2018/03/22
545
2,352
<issue_start>username_0: While I am using the JSF and I am trying to find the ValueExpression with below code: ``` public static final ValueExpression createValueExpression( final FacesContext context, final ELContext elContext, final String ev, final Class classType) { return context.g...
2018/03/22
601
2,141
<issue_start>username_0: Despite clearly indicating in esignore that I want to ignore everything inside lib directory, vscode is saying 9 problems found in that minimized file. If I run eslint inside foldera in command line everything is fine using this [extension](https://marketplace.visualstudio.com/items?itemName...
2018/03/22
534
2,267
<issue_start>username_0: I am able to host the models developed in *SageMaker* by using the deploy functionality. Currently, I see that the different models that I have developed needs to deployed on different ML compute instances. Is there a way to deploy all models on the same instance, using separate instances seem...
2018/03/22
710
2,333
<issue_start>username_0: For example, if you wanted to accept say 2 input values it would be something like, ``` x = 0 y = 0 line = input() x, y = line.split(" ") x = int(x) y = int(y) print(x+y) ``` Doing it this way however, would mean that I must have 2 inputs at all times, that is separated by a white space. ...
2018/03/22
584
2,302
<issue_start>username_0: I have a question about requests.I make first request then I suppose first onSuccess method will be runnning but program make second request immediately.How can i handle it? `Context.getAlarmGroupById` is called 2 times immediately. my code: ``` function loadAll () { Context.ge...
2018/03/22
2,753
10,144
<issue_start>username_0: I have a long text like below: ``` $postText="It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content h...
2018/03/22
984
4,077
<issue_start>username_0: my script : ``` function getAllExperiences(){ return new Promise(function(resolve,reject){ var perPage = 10 var page = req.params.page || 1 var type = req.body.type; var sortAs = req.body.sortAs; Experiences .find({status:'live'}) ...
2018/03/22
536
1,923
<issue_start>username_0: I am building a tool which displays Skype persistent chat information along with participants information. For one of the requirement, I need to filter the tblComplianceParticipant table in a given date range. I tried many different approaches to convert [tblComplianceParticipant](https://tec...
2018/03/22
425
1,738
<issue_start>username_0: I wrote a clojurescript project. It is a reagent component. Now i want to use this component in other clojurescript project. That is what i do: I compiled my cljs project and then i put a result compiled file to js folder in other project. Further i require that file from index.html. At the end...
2018/03/22
2,533
4,891
<issue_start>username_0: I have Multimap. Example: ``` 00254=[00255, 2074E, 2074E, 2074E, 2074E, 2074E, 2074E, 00010, 00010, 00010, 0006, 0006, 0006, 00010, R01018, R01018, 0006, 0006, R01018, R01018, R01018, 12062, S2202962, S2202962, R01018, 12062, 20466, 12062, 20466, 22636, 20466, 20466, 22636, 22636, 22636, 22636...
2018/03/22
446
1,559
<issue_start>username_0: I am learning ionic and i want to align my 3 buttons in left,center and right. i.e. First button in left, second in center and third one in right. But I don't know how to do it? Here is My code. ``` Left Icon Right Icon ``` Can Anyone guide me with this? As I am a beginner and learning...
2018/03/22
190
724
<issue_start>username_0: I'm trying to replace the standard three dot overflow icon with a text button like "More Pizza", so that users will see the option easily. Any help is greatly appreciated.<issue_comment>username_1: `app:showAsAction="always"` will display the title of the menu on the toolbar Upvotes: 0 <issue_c...
2018/03/22
1,175
4,088
<issue_start>username_0: I've been using self-signed certificates in the intranet of my small office and after upgrading to iOS 11, the certificates does not work for me. (Chrome and other browsers are happy with them.) I've got my self-signed root ca file and converted it to .der file, and installed it onto my iPad v...
2018/03/22
1,015
4,398
<issue_start>username_0: I'm using a Firebase Firestore for android to store data. I tried to search data from documents. **My Firestore structure is:** Collection (Products) - Document (Auto Generated ID) - Field (NumberOfPeople,OfferStartDate,OfferEndDate,OfferPrice,Location) I wrote query for search data on those...
2018/03/22
1,096
4,409
<issue_start>username_0: I have a search box and group of check boxes as shown below: ```html {{data.name}} ``` And I have `onSelect` and search function as shown below in my ts file: ```ts onSelect(data: string, isChecked: boolean) { this.selectedArray = this.Form.controls.selected; if(isChecked) { this.sel...
2018/03/22
952
3,811
<issue_start>username_0: The following is the code that I have written What I am trying to run in IDLE is: ``` >>> mike = Frog('Mike', 'yell') >>> course = RaceCourse() >>> course.addFrog(julie) TypeError: addFrog() takes 1 positional argument but 2 were given ``` My code for this specific part: ``` def addFrog(...
2018/03/22
1,407
4,743
<issue_start>username_0: I'm trying to create some JavaScript code that listens for a click event on an element base on it's class name. This triggers a function that changes the class of the same element, allowing that elements click event to trigger a different function in order to achieve a toggle effect for a butto...
2018/03/22
3,268
12,722
<issue_start>username_0: I want to send file attachments in mail using PHP. Below is code I am using which is working but each time loop gets executed the mails are going in separate attachments. ``` /*Uploading docs Array*/ $otherdoc_name = array($_FILES[ 'otherdoc' ][ 'name' ]); $otherdocCount = count( $_FILES[ 'ot...
2018/03/22
433
1,342
<issue_start>username_0: The HTML structure is this: ``` [![](cdn.translte)](someurl) ``` The code to extract the text: ``` buyers = doc.xpath("//div[@class='image']/a[0]/text()") ``` The output is: ``` [] ``` What did I do wrong?<issue_comment>username_1: Use `@href` to get the value of `href` attribute. ...
2018/03/22
590
2,126
<issue_start>username_0: ``` #include using namespace std; class student { string name; string reg; public: void getdata() { getline(cin,name); getline(cin,reg); } void printdata() { cout< ``` I am trying a basic read and write operation of file handling of objects. But after executing the above code I am...
2018/03/22
430
1,473
<issue_start>username_0: I want to achieve the JSON transformation using the Jolt processor. I have fields with null in my JSON and I would like to remove all these fields... ```json { "myValue": 345, "colorValue": null, "degreeDayValue": null, "depthValue": null, "distanceValue": null } ``` ...to just kee...
2018/03/22
563
2,122
<issue_start>username_0: I am trying to edit an exam object but I am getting this error: Failed to read HTTP message. Required request body is missing. I believe the error is that You can't send a request body with an HTTP GET request but I don't know how to do it instead. The user selects an exam to edit and I want ...
2018/03/22
362
1,197
<issue_start>username_0: We have tried this way. But it is not working. please any one tell alternative method in wordpress ``` $wpdb->query("UPDATE ".$wpdb->prefix."recommend_bets SET `title`='".mysqli_real_escape_string($title)."',`category`='".$catID."',.... ```<issue_comment>username_1: When working with database...
2018/03/22
322
1,075
<issue_start>username_0: I am beginner developer. How can I get the cursor blinking on a text box on page load using the ajax function in jQuery?<issue_comment>username_1: When working with database in WordPress you should never use the low lever mysql\_\* or mysqli\_\* functions. Always use $wpdb methods, in your cas...
2018/03/22
832
3,270
<issue_start>username_0: If I want to implement Angularjs 4 or 2 with Laravel 5.5 (angular will consume the API from laravel), what should be the best method? 1) Should I create two folders in xampp/htdocs like c:/xampp/htdocs/test-laravel55 and c:/xampp/htdocs/test-angular4 OR 2) Should I create a project of laravel 5...
2018/03/22
433
1,184
<issue_start>username_0: I am using Randtool box package of R to generate Quasi random sequences . E.g ``` Halton(2,dim=2) Sobol(3,dim=3).. ``` but i am getting these sequences within `[0,1]` intervals. For halton`(3,dim=3)` i am getting the following out put ``` 0.50 0.3333333 0.2 0.25 0.6666667 0.4 0.75 ...
2018/03/22
789
2,409
<issue_start>username_0: I have this php code: ``` php $A=['dog', 'cat', 'monkey']; $B=['cat', 'rat', 'dog', 'monkey']; foreach($A as $animal) { if(!in_array($animal, $B)) { echo "$animal doesn't exist<br"; } } ?> ``` But the if statement never executes. What I'm I doing wrong? What is the pro...
2018/03/22
290
1,161
<issue_start>username_0: After doing some [researches](https://stackoverflow.com/questions/45470794/force-outlook-add-in-popup-to-open-with-embedded-browser), I know you may suggest me to use Dialog API for showing the popup. However, the problem is still here if the target website to show is not IE friendly. For Windo...