date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/07
695
2,743
<issue_start>username_0: Could someone please explain to me why when i am trying to bind onClick action to element it works good until i dont add brackets to pass arguments to function? ``` getUser(id) { console.log(id); } renderResults(){ if (typeof this.props.results[0] == 'undefined') { ret...
2018/03/07
2,422
8,034
<issue_start>username_0: Hi I try to display pdf with webview. I set all codes properly but pdf didnt open. but I give a webpage link it works good. what is my mistake I am newbie sorry. ``` WebView wv; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setConten...
2018/03/07
2,000
6,889
<issue_start>username_0: Environment: * Primefaces 6.1 * wildfly 10 * java 8 The problem I get is the following error ``` Caused by: java.lang.NoSuchMethodError: org.apache.poi.ss.usermodel.CellStyle.setAlignment(S)V ``` but the library exists and the method is accessible from bean. What can I do? **pom.xml** `...
2018/03/07
986
3,333
<issue_start>username_0: I have a trace events JSON data and I want to view it using `chrome://tracing`. However, I don’t want to load the JSON every time. Is there a way I can pass the JSON data to `chrome://tracing` so that without manually clicking load data all my data gets loaded?<issue_comment>username_1: The [...
2018/03/07
1,168
3,306
<issue_start>username_0: I have a dockerized angular app which does not start when using "docker-compose up". I dockerized the application as I want to distribute it to fellow students etc. The building of the image works just fine. Please find the error message at the end of the post. This is my Dockerfile for the...
2018/03/07
341
1,008
<issue_start>username_0: I try this html code on Google Chrome and works. But on Mozilla and IE11 don't works link. Why? Thanks all ``` [Home](/home) ```<issue_comment>username_1: > > But on Mozilla and IE11 don't works link. Why? > > > Because it is invalid HTML - you can not nest other “interactive” element...
2018/03/07
887
2,587
<issue_start>username_0: I can create a Polygon by: ``` #!/usr/bin/env python from shapely.geometry import Polygon area = Polygon(((52, 13), (57, 14), (58, 12))) with open('test.svg', 'w') as f: f.write(area.svg()) ``` which returns ``` ``` This is not a valid SVG file. How can I get a valid SVG? I tried ...
2018/03/07
357
976
<issue_start>username_0: I try to `COUNTIF(B2:Q2;">5")` for each row and return the result for each row in column `A` but I clearly fail on using `ARRAYFORMULA` for this purpose. Could you help?<issue_comment>username_1: [**Sample File**](https://docs.google.com/spreadsheets/d/1VY157ykKsCVDqEKDBp3oAVaG0LTXAz8wUCggCrFX...
2018/03/07
980
2,331
<issue_start>username_0: referring to below code, after I transpose a data-set (output qc2), I tried to create a percentage column (most\_recent\_wk\_percent\_change) but the result of the column is 12.5% with two new columns - &week3. and &week2. created. The expected result is to calculate based on the values in week...
2018/03/07
1,599
6,193
<issue_start>username_0: Consider a file reading scenario, where the first line is a header. When looping the file line by line, an 'if condition' would be used to check whether the current line is the first line. ``` for(Line line : Lines) { if(firstLine) { //parse the headers }else { ...
2018/03/07
634
1,938
<issue_start>username_0: I am trying to get the value of VIX from a webpage. The code I am using: ``` raw_page = requests.get("https://www.nseindia.com/live_market/dynaContent/live_watch/vix_home_page.htm").text soup = BeautifulSoup(raw_page, "lxml") vix = soup.find("span",{"id":"vixIdxData"}) print(vix.text) ``` ...
2018/03/07
691
2,378
<issue_start>username_0: I used `legend.setPosition(Legend.LegendPosition.RIGHT_OF_CHART_CENTER);` it works, but I want that the legend was at the top if i use `legend.setPosition(Legend.LegendPosition.RIGHT_OF_CHART);` the legend and the graph overlap maybe there is a way to change the position of the chart? [![ent...
2018/03/07
296
1,115
<issue_start>username_0: I have a small debian package that includes a bash completion file which is copied in the /etc/bash\_completion.d folder. After installation, the bash completion file is not "loaded". I have to type in the terminal: > > source /etc/bash\_completion.d/mycompletionfile > > > I would like ...
2018/03/07
373
1,251
<issue_start>username_0: IN MVC 5 PROJECT suppose I have API like ``` abc.com/authonication?userName=asdklfsdf&token=<PASSWORD> ``` And some another web app (example.com) use this API In my controller, I want to get the host name (example.com) of domain who using this API to validate<issue_comment>username_1: You ...
2018/03/07
692
2,566
<issue_start>username_0: Can someone explain me what `random_state` means in below example? ``` import numpy as np from sklearn.model_selection import train_test_split X, y = np.arange(10).reshape((5, 2)), range(5) X_train, X_test, y_train, y_test = train_test_split( X, y, test_size=0.33, random_state=42) ``` ...
2018/03/07
1,136
4,030
<issue_start>username_0: I'm creating a hackernews-clone using [this API](https://hn.algolia.com/api) This is my component structure ``` -main |--menubar |--articles |--searchbar ``` Below is the code block which I use to fetch the data from external API. ``` componentWillReceiveProps({search}){ cons...
2018/03/07
800
2,468
<issue_start>username_0: i am trying to connect an **arduino** uno using **esp2866** to my home router and i am getting th is error > > C:\Users\john-\Documents\Arduino\newww\newww.ino:2:25: fatal error: > ESP8266WiFi.h: No such file or directory #include > > ^ compilation terminated. exit status 1 Error compil...
2018/03/07
360
1,239
<issue_start>username_0: Here is the project folder hierarchy. I would like to know what design pattern is used in this case. So far I have found out is that it is most likely to be [Clean-Swift Architecture (VIP)](https://hackernoon.com/introducing-clean-swift-architecture-vip-770a639ad7bf). [![UnknownPattern](https...
2018/03/07
1,320
4,328
<issue_start>username_0: I am working on a French chatbot using python. For a first text-to-speech attempt, I am using espeak with mbrola. I call it with subprocess : ``` from subprocess import run, DEVNULL def speak(text): command = ["espeak", "-vmb-fr1", text] run(command, stderr=DEVNULL, stdout=DEVNULL) s...
2018/03/07
3,390
12,987
<issue_start>username_0: I have checked all the tutorial and also did a lot of R & D on gateway integration. But didn't find a way to integrate paytm payment gateway. ``` func paymentConfiguration() { var orderDict = [AnyHashable: Any]() orderDict["MID"] = "WorldP64425807474247" orderDict["CHANNEL_ID"] = "...
2018/03/07
4,033
15,010
<issue_start>username_0: So the basic issue i am having is when i write to the txt file the unicode character *\u2656* becomes this *b'\xe2\x99\x96'* (i believe this is byte code?). Then when i read the file i cannot decode it back to *\u2656*. Board\_visual is just a 2d array where each item is either a unicode char...
2018/03/07
3,353
13,306
<issue_start>username_0: Basically i'm wanting to capture a user's shopping basket and then print this information on a separate page. The user would be able to click on a button on the basket page which would take them to the new page (Which would have an invoice like structure showcasing their items, costs etc). Curr...
2018/03/07
1,702
8,175
<issue_start>username_0: I'm using a NavigationDrawer and one Activity where I'm replacing Fragments within the FrameLayout. Navigating through NavigationDrawer and replacing Fragments inside of the Activity is straightforward. I'm not sure how to handle when I replace a Fragment from another Fragment. Example: I show...
2018/03/07
956
2,469
<issue_start>username_0: I need posterior samples of log likelihood terms to run PSIS [here](https://github.com/avehtari/PSIS/blob/master/py/psis.py) such that ``` log_lik : ndarray Array of size n x m containing n posterior samples of the log likelihood terms :math:`p(y_i|\theta^s)`. ``` where small example...
2018/03/07
1,262
3,022
<issue_start>username_0: I have list `p1`: ``` p1 = [ {'id': 1, 'area': 5}, {'id': 2, 'area': 6}, {'id': 3, 'area': 10}, {'id': 4, 'area': 6}, {'id': 5, 'area': 6}, {'id': 6, 'area': 6}, {'id': 7, 'area': 4}, {'id': 8, 'area': 4} ] ``` And I need to separate this list by `area` value,...
2018/03/07
650
2,765
<issue_start>username_0: I am working on IOS. I am using **realm** database in the frontend. It was working fine until I made some changes to the realm model and all files related to it. I just added one field to these files. Now I am getting an error **"Fatal error: Can't open realm"** in the following code ``` fil...
2018/03/07
1,734
4,854
<issue_start>username_0: I have a large dataset of temperature and humidity readings, collected every half hour for a year. I'd like to get an average of day and night temperature, but my experiments with averageifs have so far failed. This is as far as I got. ``` =AVERAGEIFS(Sheet1!D$7:D$17622,Sheet1!$C$7:$C$17622, "...
2018/03/07
707
2,216
<issue_start>username_0: I am trying to get specific coordinates in an image. I have marked a red dot in the image at several locations to specify the coordinates I want to get. In GIMP I used the purist red I could find (HTML notation **ff000**). The idea was that I would iterate through the image until I found a pure...
2018/03/07
630
2,547
<issue_start>username_0: I have 2 applications : the first one is written with ruby (It's redmine) and the second one is a Spring boot app and both are hosted on the same tomcat server. How can i do that?<issue_comment>username_1: User database or user data file(nosql) with use of a unique-user-auth-token, accessible b...
2018/03/07
1,000
3,681
<issue_start>username_0: Hello i've got a json parse error. This is simple jquery+ajax+php code that validates a data that user inputs into contact form. jq+ajax: ``` $(document).ready(function() { $("#cbutton").click('submit', function(e) { e.preventDefault(); var name = $("#fname").val(); var email = $...
2018/03/07
1,432
5,789
<issue_start>username_0: I am displaying image on `recyclerView` using modal class and `adapter` class file, now I want to share images externally and download images on the phone. but I tried a lot, I am not understanding how to get image URL in adapter file. Please help me to find a solution. ``` public class Ima...
2018/03/07
677
2,574
<issue_start>username_0: If you add the `DataMember` attribute to any field or property, including private one's, they will still get serialized. Microsoft notes this explicitly [in their docs](https://msdn.microsoft.com/en-us/library/system.runtime.serialization.datamemberattribute(v=vs.110).aspx): *"You can apply th...
2018/03/07
1,719
5,539
<issue_start>username_0: I got HTML string from API like this: ``` let a: String = "<https://www.google.com.tw>" let b: String = "[@Tim](myAppName://app/user/aa3b77411825b88b318d77gg) Hello Tim" let c: String = "[@Tim](myAppName://app/user/aa3b77411825b88b318d77gg) <https://www.google.com.tw>" let splitedArray1: [Str...
2018/03/07
2,725
11,556
<issue_start>username_0: I'm a beginner in using AWS. I just want to stop and start several EC2 instances automatically and periodically(Not reboot). Is there any recommended way to do this?<issue_comment>username_1: Yes, you can do that using AWS Lambda. You can select the trigger in Cloudwatch which runs on Cron ex...
2018/03/07
965
2,608
<issue_start>username_0: I want to expand the list in a certain column (in the example column\_x) to multiple rows. So ``` df = pd.DataFrame({'column_a': ['a_1', 'a_2'], 'column_b': ['b_1', 'b_2'], 'column_x': [['c_1', 'c_2'], ['d_1', 'd_2']] }) ``` shall b...
2018/03/07
343
1,076
<issue_start>username_0: [![enter image description here](https://i.stack.imgur.com/d4eel.jpg)](https://i.stack.imgur.com/d4eel.jpg) Hi, Please help me with slow Symfony over WAMP. Me and my friend from work have same PC but I have 2s waiting for ajax response and he has 0.6s. Whats more I have other PC and there is...
2018/03/07
718
2,428
<issue_start>username_0: I'm trying to fire a function when the quantity of a product is changed in cart. More specifically I want to run this function when a customer modify the amount in a cart. I'm looking to find the amount left in a cart then to intercept the update cart event Currently I'm using: ``` add_actio...
2018/03/07
538
1,818
<issue_start>username_0: I found this similar question [How to fill in a datetime-local field with capybara?](https://stackoverflow.com/questions/40304521/how-to-fill-in-a-datetime-local-field-with-capybara?rq=1), and the only answer in this thread is not working. So I decided to open this question. It seems like there...
2018/03/07
218
798
<issue_start>username_0: After updating my android studio, I am not capable of anymore running applications on my mobile device because of that error.I need this help.<issue_comment>username_1: Your adb connection has hanged out. Open a console terminal and write `adb kill-server` and `adb start-server`. Upvotes: 4 [se...
2018/03/07
442
1,614
<issue_start>username_0: Is there a way I can hide a password in python shell?, like showing dots. This is for an input for a login in a python program. `getpass` shows this: ``` Warning (from warnings module): File "C:\Python34\lib\getpass.py", line 101 return fallback_getpass(prompt, stream) GetPassWarni...
2018/03/07
1,530
5,564
<issue_start>username_0: I am using Angular 4 with routing for Lazy/shared module. Here How can I use path without my lazy module name appended in URL? Currently my `partner` component accessible with `http://localhost:4200/#/main/partner` but I want to use same with URL `http://localhost:4200/#/partner`. Without app...
2018/03/07
413
1,149
<issue_start>username_0: I have Two data frames df and df1. Both have a column called description(which may not be unique). I wanted to get the index no of df where the description matches description of df1. ``` df Name des 0 xyz1 abc 1 xyz2 bcd 2 xyz3 nna 3 xyz4 mmm 4 xyz5 man ...
2018/03/07
919
2,922
<issue_start>username_0: I have got a problem regarding sorting an array of Dates in Angular 4. I want to order my `Customer` array by the value `releaseDate`. So this is what I have right now: In the `customer.component.ts` : ``` sort() { this.customers.sort((a: Customer, b: Customer) => new Date(a.release...
2018/03/07
1,054
3,352
<issue_start>username_0: I'm trying to extend AKNode and AKToggelable and this error appears on Project-Swift.h file What is the way to do this? My class is ``` class AKCustom: AKNode, AKToggleable, AKComponent, AKInput { public typealias AKAudioUnitType = AKBalancerDeplikeAudioUnit public static let ComponentDesc...
2018/03/07
1,475
5,383
<issue_start>username_0: Why does var allow duplicate declaration but why does const and let not allow duplicate declaration? ---------------------------------------------------------------------------------------------------- `var` is allow duplicate declaration ```js xx=1; xx=2; console.log(xx+xx);//4 var xx=1...
2018/03/07
1,101
3,828
<issue_start>username_0: Regarding **private variable encapsulation** - achieved by defining the private variable as `var` instead of it being a property of `this` ( not private this.private ). This is the most direct way of making a member private. But, the above rule makes sense if the instance is being returned and...
2018/03/07
626
1,635
<issue_start>username_0: i'm new to bitwise operators and I'm trying to show the palindrome representation of a number , for n= 32 ( 0010 0000 ) it should output 4 (0000 0100) but the values that it gives me are random, for example for the above input , instead of 4 , i get an 2, and if i try 3 ( 00000011) it doesn't g...
2018/03/07
470
1,824
<issue_start>username_0: I created a T4 text template (`.tt`) file in Visual Studio Code, but unlike Visual Studio 2017 (or 2015 ,...) it won't generate the output file after saving the `.tt` file. How can I generate the output in Visual Studio Code?<issue_comment>username_1: This solution is not exactly what you asked...
2018/03/07
591
2,132
<issue_start>username_0: I am having an ASP.NET application (not core) and I can't find where to enable SSL. It's not showing up in the Project Properties, neither I have a Debug tab(like in core). Neither of this show up: [Enabling SSL in Visual Studio 2017](https://stackoverflow.com/questions/43886818/enabling-ssl-i...
2018/03/07
559
1,638
<issue_start>username_0: What formula can I use to transform the string into a date value that will appear as 01/01/2018?<issue_comment>username_1: Use the DATEVALUE() function which takes as input a text format. Not that if your output cell is not in Date format you will see a simple int insteade of the expected 1/1/2...
2018/03/07
634
2,043
<issue_start>username_0: Is there any possible way to put result of group\_concat in IN condition of SQL query. Here in network master table i have comma separated fields in industryId column. Like, ``` userId industryId 123 3831 123 2832,3832 123 3833 ``` Example: > > select group\_conca...
2018/03/07
481
1,658
<issue_start>username_0: I am using Mail-factory to sending email from my Rails 5 application. Here I need to include link which will take users to corresponding page. The code which I have done in my controller is ``` url = "http://localhost:3000/sample_page" mail = MailFactory.new() mail.to = ApplicationCo...
2018/03/07
914
3,805
<issue_start>username_0: I build a Spring-Boot application that accesses a Database and extracts data from it. Everything is working fine, but I want to configure the table names from an external .properties file. like: ``` @Entity @Table(name = "${fleet.table.name}") public class Fleet { ... } ``` I tried to find ...
2018/03/07
572
1,899
<issue_start>username_0: I'm attempting to understand why in this codepen the two boxes aren't perfectly aligned. <https://codepen.io/mburke05/pen/BYXOGP> **html** ``` pixel percent ``` **css** ``` .div_one { border: solid red; transform: translate(70px, 20%) ; width: 140px; height: 60px; } .div_two { ...
2018/03/07
2,791
6,193
<issue_start>username_0: For a panel dataset (GSOEP), I need to create a time counter that gives me delta t after an event which is dummy coded 1 for that particular year for each individual. E.g. there are observations for an individual for a random range of years such as 1990-2006, with a seperate variable indicating...
2018/03/07
2,019
4,573
<issue_start>username_0: I want to display all documents **(select \*)** with sub-documents in PHP. I know how to query all `find()` but I have no idea how to do it when I have sub-documents. I don't know if there's something like `find()` or I need to make loops fo every sub-documents that I'd have. This would be th...
2018/03/07
753
3,638
<issue_start>username_0: I'm working on a react component that render a table with some data coming down from an API on the server as follows: ```js var ModulesTable = React.createClass({ getInitialState: function () { return { modules: "" }; }, componentDidMount: functio...
2018/03/07
795
3,412
<issue_start>username_0: I am trying to fetch specific fields from my entities. I need the result in my entity structure. Following are my entities: **Country** ``` public class CountryModel { @Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = "CmtID") private int id; @Column(na...
2018/03/07
1,109
3,325
<issue_start>username_0: ``` public class night { public static void main(String[] args) { System.out.println(addition(1,1,1,1)); } public static int addition (int...numberz){ int total=0; for(int x=1; x<=numberz.length; x++) { total+=x; } return total; } } ``` The above code doesn't...
2018/03/07
1,031
3,167
<issue_start>username_0: I am a Xamarin.iOS beginner. I don't have much iOS native experience too. I am trying to hide and show a UIView which contains a UILabel and a UITextField. Though the hidden property is set to true for the view, it still occupies space in the screen. How do I remove this space? If I try to set ...
2018/03/07
1,260
3,540
<issue_start>username_0: I want to compare the data from one column which is the end date(end\_date) with the system date(todays\_date). Both columns are in the char format. ``` Input: $ name: chr "Abby" "Abby" "Abby" "Abby" ... $ std: int 2 3 4 5 6 7 8 9 10 11 ... $ end_date: chr "25-02-2016" "25-02-2016" "25-03-2...
2018/03/07
931
2,923
<issue_start>username_0: I want to create a view if not exists in SQL Server 2016 ``` IF EXISTS(SELECT 1 FROM sys.views WHERE Name = 'VI_ALL_CITIES_AS_CATEGORY') BEGIN CREATE VIEW VI_ALL_CITIES_AS_CATEGORY AS SELECT PERSONS.FIRST_NAME AS 'Име', PERSONS.LAST_NAME AS 'Фамилия', CITIES.CITY_NAME AS 'Град' F...
2018/03/07
985
3,376
<issue_start>username_0: There are a lot of solution for this question. But I dont know why my code doesnt work. What I want : **Data Array** -> **ajax post** -> **codeigniter controller(save data in DB and redirect to another page)** ```js function postData(){ // Generate final Array Code //then Post...
2018/03/07
787
2,983
<issue_start>username_0: I'm using Google Cloud Storage and have a few buckets that contain objects which are *not* shared publicly. Example in screenshot below. Yet I was able to retrieve file without supplying any service account keys or authentication tokens from a local server using NodeJS. [![enter image descript...
2018/03/07
376
1,564
<issue_start>username_0: I have a query which returns a huge set of data (json). This takes far to long to present the grid to the user. So what I want to do is fire the initial query with a filter (say the records of the current year) and let the grid be build. The grid is presented to the user and he can start work...
2018/03/07
1,014
2,782
<issue_start>username_0: Hi I need help with an input. I need to make a regular expression that filter it on keypress. The input will have a number with max 13 int places and max 2 decimal places. In addition the decimal number uses a comma instead of dot. I tried some regex but they don't works on keypress. ``` 111...
2018/03/07
881
2,405
<issue_start>username_0: I tried using this `dateadd(month, 0, dateadd(day,(30-datepart(dd,'2015-02-28')),'2015-02-28'))` to get the required output and instead of getting '2015-02-28' i get '2015-03-02'. How is it possible to change day of date in SQL and set last day of month if the day does not exist in the month ...
2018/03/07
501
1,644
<issue_start>username_0: How to print absolute time in TCL? The output would be something like `2018-03-07-14:32:09.040+05:30I-----` I want to create a logic to print epoch microseconds. but I cannot use in build `clock milliseconds` to print the epoch microseconds.<issue_comment>username_1: You should refer to the ...
2018/03/07
2,352
9,001
<issue_start>username_0: I am trying to re-write one of my scripts using functions. It is analyzing couple of transport stream files in a directory and then returns the GoP size of all TS files using ffprobe and writes the json file to the log directory. So this is originally my script and it works just fine: ``` #!/...
2018/03/07
1,232
4,315
<issue_start>username_0: I am creating a UI library in which I want to provide the mechanism to theme all the UI components like **button**, **cards**, **slider** and all. I am confused between **variables** and **mixins**. One way is to provide the no. of variables that user can update and based on that variables com...
2018/03/07
408
1,392
<issue_start>username_0: [New create table feature has been released](https://cloud.google.com/bigquery/docs/data-definition-language) and I was wondering if it's possible to create 2 or more tables with one query. I tried, but it returns error > > Error: Syntax error: Unexpected keyword CREATE at [8:1] > > > ...
2018/03/07
1,515
2,987
<issue_start>username_0: I have an excel sheet (examplary extract below) and would like to achieve following with my VBA code (I am a total newbie to VBA). * Go through all rows in coloumn A * Calculate Average value for range in column E with identical dates (column A) * generate a new table with rows: dates; col: av...
2018/03/07
176
594
<issue_start>username_0: I have country code(i.e USA). I want to get image of country.<issue_comment>username_1: There are lot of sources, few of them: * <https://github.com/gosquared/flags> * <https://github.com/hjnilsson/country-flags> * <https://github.com/linssen/country-flag-icons> * <https://github.com/lipis/fla...
2018/03/07
331
1,140
<issue_start>username_0: a newb practising more vb.net code. I currently have four identical comboboxes named box1, box2, box3, box4. in each of those comboboxes I have a list of words- * dog * cat * bird * fish I've added these words through the 'properties'->'items'-->'collections' tab. For now, I want to display ...
2018/03/07
258
909
<issue_start>username_0: I'm quite new to ionic and angular so I would like to ask here. is there a way to hide/remove the components that a ngfor has produced? my code here produces label and inputs when you click the button add ``` {{att.label}}{{idx+1}} Add More ``` what I want to do is to remove all the add...
2018/03/07
520
1,944
<issue_start>username_0: ``` let cards = ['Diamond', 'Spade', 'Heart', 'Club']; let currentCard = 'Heart'; while (currentCard !== 'Spade') { console.log(currentCard); let currentCard = cards[Math.floor(Math.random() *4)]; } console.log(currentCard); ``` Here my concern is about the error that currentCard is no...
2018/03/07
653
2,319
<issue_start>username_0: I am building a python text classification application. In the app the user provides a small sentence (or a single word) and we classify his sentence. The problem I'm facing is to find a way to check if his string format a word or a group of words. Examples of users inputs: 1) "asdfasdfa" 2)...
2018/03/07
771
2,784
<issue_start>username_0: I am trying to create a new migration but I get an System.ArgumentNullException saying: ``` System.ArgumentNullException: Value cannot be null. Parameter name: language at Microsoft.EntityFrameworkCore.Utilities.Check.NotNull[T](T value, String parameterName) at Microsoft.EntityFr...
2018/03/07
1,057
3,398
<issue_start>username_0: I am working on ionic 2 project. In this I want the data to be passed on the basis of date from **Firebase**. I am getting the data in provider from **Firebase** but I am unable to send it to the other pages My function in provider is as follows ``` getTodaysQuestions() { var today = new D...
2018/03/07
543
1,802
<issue_start>username_0: I have a requirement to show the value of bar at the end of bar as shown in the below imgae: [Chart Image which is showing bar value at the end](https://i.stack.imgur.com/87C5i.png) [![enter image description here](https://i.stack.imgur.com/87C5i.png)](https://i.stack.imgur.com/87C5i.png) It m...
2018/03/07
875
3,278
<issue_start>username_0: I need to convert an SQL Query to a nasty object tree. Basically I need to have this kind of tree ``` [ id_record, mSap, process_rev, process: [ { mpProcess, mpOrder, bom: [ { mbItem, ...
2018/03/07
435
1,630
<issue_start>username_0: I am working on Google cloud platform (Natural Language processing and Vision API) I set up google cloud API (PHP) and to further authenticate my requests google suggested me like below: > > First, ADC checks to see if the environment variable > GOOGLE\_APPLICATION\_CREDENTIALS is set. If t...
2018/03/07
356
1,267
<issue_start>username_0: *(Note, although I'm using mariadb, I'm including the mysql tag as well, since they are similar)* I'm compiling mariadb from source (via Buildroot for an embedded Linux system) and I'm trying to minimise the image size. I noticed that there are a fair few command line tools installed that I do...
2018/03/07
795
3,061
<issue_start>username_0: On my web page I created a Html table using **c# function**, ``` public String TableForView(DataTable ViewTable) { StringBuilder html = new StringBuilder(); try { if (ViewTable.Rows.Count > 0) { html.Append(" "); html.Appe...
2018/03/07
536
1,764
<issue_start>username_0: I need to parse, iterate through an .tsv file, using awk. The file path is correct, tested in terminal. getting error "***cat: ./datalist.tsv No such file or directory***" the tsv file have few rows, tab separated. plan is to loop through the tsv file content. here is my code, for **filenam...
2018/03/07
429
1,309
<issue_start>username_0: What I am doing =============== ``` func foo(a string) {} func bar(b, c string) type fn func(string) m: = map[string] fn { "a": "foo", "b": "bar" } ``` What is output ============== when I call function like this ``` m["a"]("Hello") m["b"]("Hello", "World") ``` I go...
2018/03/07
355
1,381
<issue_start>username_0: There is nested structure for filters. ``` { where: [{ relation: 'user', query: { where: [{ relation: 'companies', query: { ... } }] } }] } ``` I want to make recursive...
2018/03/07
529
1,834
<issue_start>username_0: ``` @Configuration public class Test1 { @Autowired private Test3 test3; } @Configuration public class Test2 { @Autowired private Test3 test3; @Bean(name = "test3 ") Test3 test3 () { return new Test3(); } } ``` The above code gives the following error....
2018/03/07
431
1,788
<issue_start>username_0: In java, basically these two conversions are so common and popular... * Array to List `List list = Arrays.asList(array);` * List to Array `String[] array = list.toArray(new String[list.size()]);` So the question is, which is faster, Array to List or its reverse? Now, Why am I asking this q...
2018/03/07
1,612
4,469
<issue_start>username_0: I have Customer table below ``` ID|Cust_ID|Name|Amount| PaidDate 1| 01|Tina| 100|2018-03-07 2| 02|Lisa| 50|2018-03-05 3| 01|Tina| 180|2018-03-07 4| 01|Tina| 20|2018-03-01 ``` So current query I have is selecting records with recent date: ``` select ID, Name, A...
2018/03/07
1,119
3,884
<issue_start>username_0: I want to open another fragment in onclick of recyclerview (One item). how to open another fragment on recyclerview click listener. I want to move to another fragment on recyler view one list to open another fragment. i have set recycler view and dapter too. ``` @BindView(R.id.recyclerView...
2018/03/07
961
3,078
<issue_start>username_0: I have a dataframe like this ``` A B 25 0.5 21 0.6 17 0.7 14 0.7 <--- this is the row I want 12 0.3 ``` I'd like to select the maximum `B` with minimum `A`. Is there a pandas easy trick to do this?<issue_comment>username_1: You should use a coupl...
2018/03/07
1,199
3,959
<issue_start>username_0: I ran this command: `"C:\xampp\php\.\php.exe" "C:\xampp\php\phpunit" -d xdebug.profiler_enable=on -d xdebug.idekey=VSCODE` C:\xampp\php\php.ini has the following: ``` [XDebug] zend_extension = "C:\xampp\php\ext\php_xdebug-2.5.0-7.1-vc14.dll" xdebug.idekey=VSCODE xdebug.profiler_enable=1 xdeb...
2018/03/07
1,661
6,947
<issue_start>username_0: I got three dispatched threads named queueA, queueB, queueC. Now I want the queueA executed after queueB and queueC done. So I tried to implement it by `DispatchSemaphore`. **My Problem is:** Is this safe to call `wait()` two times in a thread at one time to make the semaphore 2? `...
2018/03/07
739
2,828
<issue_start>username_0: i have input json ``` { "StudentData": { "Students": [{ "StudentId": 76769, "StudentName": "*****", "Contacts": [{ "ContactName": "****", "ContactEmail": "****", "АvailableContactEmail": true, ...
2018/03/07
667
2,595
<issue_start>username_0: Hello I do not understand why i get the error as shown in title with the following as my forward propagation function ``` # For function that will activate neurons and perform forward propagation def forward(self, inputs): state, (hx, cx) = inputs # getting separately the input images ...
2018/03/07
1,074
3,662
<issue_start>username_0: I need to ignore columns where all column value is null from select query from declared temp table. ``` DECLARE @TempTable TABLE ( [RowID] INT not null primary key identity(1, 1), [ID] BIGINT, [Column1] BIGINT, [Column2] CHAR(10) ); INSERT INTO @TempTable (ID, Column1,...
2018/03/07
1,338
4,444
<issue_start>username_0: Query: ``` SELECT SUM(TotalDue), DATENAME(dw, OrderDate), COUNT(DISTINCT ProductID) FROM Sales.SalesOrderHeader headers INNER JOIN Sales.SalesOrderDetail details ON headers.SalesOrderID = details.SalesOrderID GROUP BY DATENAME(dw, OrderDate); ``` my current result is: ``` 56064...
2018/03/07
1,783
6,314
<issue_start>username_0: After watching a Sublime3 screencast by a famous python programmer, I found that display code comment in a fancy font is a great idea, which let comment more distinguishable and makes comment reading more pleasant. One example is like below: [![sublime text 3 screencast](https://i.stack.imgur....
2018/03/07
1,861
6,741
<issue_start>username_0: I have a simple app with a button and click listener on it which displays a toast with the number of clicks that have been performed on the button: ``` class MainActivity : AppCompatActivity() { private val toast by lazy { Toast.makeText(this, "", LENGTH_LONG) } var count = 0 ov...