date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/16
685
2,421
<issue_start>username_0: I'm trying to use ECharts to render a simple doughnut chart which I've been able to do. I've noticed by default that the legend will hide the data item on the chart if it is clicked. I want the user to be able to select the legend to do something (fire an event) which I can do using the events...
2018/03/16
4,343
13,846
<issue_start>username_0: I'm following [this tutorial](https://drissamri.be/blog/java/enable-https-in-spring-boot/) to enable HTTPS in Spring Boot 2.0 using a self-signed certificate, just for testing purpose. In summary, that tutorial includes these steps: 1.Generate the keystore using `keytool`. ``` keytool -genkey...
2018/03/16
2,487
8,644
<issue_start>username_0: I created a simple application that counts the views of an article. In the database articles table has a column view\_count. Also I have a defined event & listener that increments view\_count every time when some article is viewed: The question, how to make update view\_count , and store in da...
2018/03/16
2,261
7,722
<issue_start>username_0: I am trying to automate some stuff using protractor. I have a situation where I need to deal with a Windows pop-up and I have an AutoIt script compiled (.exe) for this. I could import this at runtime in Java and selenium. I am not sure how to do that in Protractor and JavaScript case. Thanks.<i...
2018/03/16
479
1,513
<issue_start>username_0: I have a dynamic string: It looks like `"1: Name, 2: Another Name"` this. I want to split it and convert it to a `List>` or `IEnmerable>` I tried this. ``` myString.Split(',').Select(s => s => new KeyValuePair( Convert.ToInt32(s.Substring(s.LastIndexOf(':'), s.Substring(0, s.LastIndexOf(':')...
2018/03/16
729
2,573
<issue_start>username_0: A follow up from [this question](https://stackoverflow.com/questions/49322712/subclasses-with-functions-having-the-same-name-in-python), which was not very well formulated. The answer provided some additional insight so now I have constructed a limited working example that explains it better. ...
2018/03/16
650
2,559
<issue_start>username_0: I developed a web application that runs on my computer on localhost. Then I loaded the war file into catalina home on a remote server. Web app runs but it stops when it try to connect to database on server. The connection is a jbdc connection on localhost, the database is mysql. When I do a con...
2018/03/16
756
2,471
<issue_start>username_0: I have a file containing addresses, I want to check that the addresses are correct. I am comparing the addresses to a list of approved Australian states. My address file looks something like this: ``` NEW SOUTH WALE N S W 2232 SOUTH AUSTRALI Victoria SA 5158 Victoria 3136 V...
2018/03/16
442
1,552
<issue_start>username_0: I have a big dataset in bigquery and writing SQL queries in bigquery. It produces fast results. Although I want to use R/python for data preprocessing. I have approx. 200M records in my table and R is very slow. So considering the amount of data shall I use bigquery query or there is another w...
2018/03/16
1,408
5,155
<issue_start>username_0: I am building a website for my upcoming wedding and I want a sticky header, but for some reason, it "disappears" by moving up after you go a certain way down the page. My test url is this: <https://betterradiotech.com>. Here is the nav markup: ``` * [Home](/ "Home") * [Music](/music/ "Musi...
2018/03/16
463
2,064
<issue_start>username_0: The following situation: * app is started from a deep link (sms) and launches the MainActivity * user presses the start button in the app which opens SecondActivity * app goes into background * user presses on app icon again in launcher => HERE I EXPECT the SecondActivity be still active. But...
2018/03/16
704
1,654
<issue_start>username_0: I have a dataset in this format: ``` A B LABEL NEW -0.027651 -0.068485 5 1 -0.039997 -0.071371 5 1 -0.032667 -0.078227 5 1 -0.021502 -0.083501 5 1 -0.018613...
2018/03/16
319
956
<issue_start>username_0: I would like to display an R dataframe as a table in Power BI. Using the "R script visual" widget, here is one possible solution: ``` library(gridExtra) library(grid) d<-head(df[,1:3]) grid.table(d) ``` reference: [<https://cran.r-project.org/web/packages/gridExtra/vignettes/tableGrob.html][...
2018/03/16
1,290
4,340
<issue_start>username_0: I'm building a web app that has 3 components on the screen.   Navbar (sticky top)   Main Container      map container(75% of main)      chat window (25% of main) What I want to be able to do is hide the chat footer then have the map container take up all of the main container, bu...
2018/03/16
2,882
10,461
<issue_start>username_0: Pip always fails ssl even when I do `pip install dedupe` or `pip install --trusted-host pypi.python.org dedupe` The output is always the same no matter what: > > Collecting dedupe > > > Retrying (Retry(total=4, connect=None, read=None, > redirect=None, status=None)) after connection broke...
2018/03/16
408
1,333
<issue_start>username_0: I want to ask how to call hidden Base class operator function in derived class overriding function, below is my code, the comment line is the question. ``` class Base{ public: virtual bool operator^(Base &b){ cout << "hehe" << endl; return true; } virtual void fn() ...
2018/03/16
499
1,439
<issue_start>username_0: I want to deploy an Azure ARM Template. In the parameter section I defined a IP Range for the Subnet. ``` "SubnetIP": { "defaultValue": "10.0.0.0", "type": "string" }, "SubnetMask": { "type": "int", "defaultValue": 16, "allowedValues": [ 16, 17, 18, 19, 20, ...
2018/03/16
447
1,438
<issue_start>username_0: ``` width = input("Please enter grid width:") height = input("Please enter grid height:") grid = [["o" for x in range(width)] for y in range(height)] ``` Gives this error on the grid line: TypeError: 'str' object cannot be interpreted as an integer So maybe make the input an integer? ``` wi...
2018/03/16
746
2,652
<issue_start>username_0: I am new to plsql and trying to use oracle sql developer, I try to run a simple procedure with dbms output line and i get the following error, > > ora-00904 > > > , the code is ``` create or replace PROCEDURE proc_101 IS v_string_tx VARCHAR2(256) := 'Hello World'; BEGIN dbms_o...
2018/03/16
218
722
<issue_start>username_0: I'm using this code to show a number of locations: ``` {{item}} --- ``` which results in all the locations, separated by an horizontal rule. How can I edit this to get the exact same result, but without the last horizontal rule?<issue_comment>username_1: Use `last` provided by the `*ngFo...
2018/03/16
432
1,431
<issue_start>username_0: I am using jquery to serialize a form, but I would like to exclude all inputs with the class .has-dynamic-prices . I am using the following code below but it doesn't seem to be working. Any help would be really appreciated! Thanks!! ``` var serialized_form = $("#base-menu-form:input:not(...
2018/03/16
1,616
6,078
<issue_start>username_0: Before you say this is a duplicate let me explain. I know how to use Camera in React Native, but in Android(Java) last month I managed the device camera in a simple way, I not even had to make a new View to use it. I just did something like this: ``` Uri mOutputFileUri; Intent intent = new In...
2018/03/16
786
3,166
<issue_start>username_0: I have a custom button in NetSuite, and I am wondering if there is any way for me to set fields on the form using the button. Basically, I am going to have an approval button that will lock down editing, and I am wondering if I can do that through the button and javascript. As far as I can tell...
2018/03/16
595
2,275
<issue_start>username_0: Why is `n` in ``` const int n = -0123; ``` an octal literal? I thought that all octal literals had to start with a 0, and this one doesn't since it starts with a negative. It's a small point I know but It's causing me great confusion!<issue_comment>username_1: > > How is it possible that ...
2018/03/16
959
3,707
<issue_start>username_0: I am trying to predict a number based on an image and a numerical value. To put it in a practical matter, let's say I am trying to add to the standard house price predictor an image. So among the other features (price, sqm, no of rooms, etc.) there will be an image. So ultimately, the price to ...
2018/03/16
1,148
4,347
<issue_start>username_0: I'm reading a setting from a json file with an expression, but the expression doesn't work. The setting is outputPath -> @activity('GetSet').output.value[0].subs.outputPath The file has the expression: "outputPath": "/subs/@{formatDateTime(utcnow(), 'yyyy')}/subs.json" The result should be ...
2018/03/16
1,332
3,928
<issue_start>username_0: i am having difficulty moving my neo4j database from version 2.2.0 community to 3.3.3 enterprise. the error on starting neo4j 3.3.3 is "Not possible to upgrade a store with version 'v0.A.5' to current store version 'v0.A.8' (Neo4j 3.3.3)." the process i am following is to upgrade the database ...
2018/03/16
1,228
3,549
<issue_start>username_0: Trying to write a simple thread pool. Only the first `thread_t` is initialized and it sort of hangs. I can't proceed. Need help ``` class thread_t { public: thread_t(int id, bool& running) :id_(id) , running_(running) { idle_ = true; thread_ = new threa...
2018/03/16
366
1,066
<issue_start>username_0: I have a input file with this format: ``` Head 20 20 20 !Random text random lines ``` I want to read the values as 3 different variables 'a' 'b' 'c' and multiply a\*b I have the following code: ``` import sys import numpy as np import fileinput filename = 'file.txt' #filename = sys...
2018/03/16
504
1,406
<issue_start>username_0: MY tables are Parent WO ``` WO PRICE 1 1790 1 9 ``` Child WO ``` WO PRICE 1 200 1 400 1 600 1 100 ``` I am trying to do this ``` Select sum(p.price), SUM(c.price) from Parent_WO p left outer join Child_WO c on p.WO= c.WO group by ...
2018/03/16
597
2,041
<issue_start>username_0: I am trying to save a file using VBA but the file name needs to reference a cell within the Workbook in which I am running the Macro from. I need to copy data from a tab within an Macro enabled workbook into a new comma separated text file. The name of the text file (output file) should contai...
2018/03/16
1,771
6,488
<issue_start>username_0: I am using `AWSSDK.S3` version `3.3.17.2` and `AWSSDK.Core` version `3.3.21.16` to upload a file and then download the same file. The code below not able to download the file **if the file name has spaces ( or `#`)** ``` public class AmazonS3 { public async Task UploadFileAsync(string sour...
2018/03/16
368
1,305
<issue_start>username_0: I'm new to git, so this may seem like a simple question. I'm working on Laravel 5.2 project with many git commits, Now I've migrated Laravel version to 5.3 with it's new folder structure, copying files from the old project and make `git init` and 3 git commits. How to push these new commits of...
2018/03/16
709
1,982
<issue_start>username_0: Currently, i have a list of list containing: ``` lst = [['abc','def'],['efg','hjk']] ``` and i want to extract each element in the list into it's own individual list together with an added index at the front, to produce an output of: ``` lst = [[1,'abc'],[1,'def'],[2,'efg'],[2,'hjk']] ``` ...
2018/03/16
796
2,664
<issue_start>username_0: recently I implemented `RecyclerView` and `CardView` in gradle file but the version of both of them doesn't match the `compileSdkVersion` this is my build.gradle file: ``` android { compileSdkVersion 26 defaultConfig { applicationId "com.example.mostafa.tostrategies" mi...
2018/03/16
607
2,038
<issue_start>username_0: I am pretty new to R and spark. I want to read a parquet file with the following code. Anyone knows how to specify schema there? ``` library(sparklyr) sc <- spark_connect(master = "yarn", appname = "test") df <- spark_read_parquet(sc, "name", ...
2018/03/16
2,733
8,467
<issue_start>username_0: I am trying to combine these two loops together per my instructions, but I cant figure out how I should do something like this. since my counter i in the for loop can't go inside while loop condition. My teacher wants the program to do one loop only. Thanks in advance. the code basically runs t...
2018/03/16
2,257
6,843
<issue_start>username_0: Here is my current setup. 1. 2 radio button to select either year or month 2. 2 sliders, one for year and another one for month 3. Textbox which will display value of the slider using onclick radio function, I am displaying only one slider depends upon the year\month selection. when I change...
2018/03/16
588
2,108
<issue_start>username_0: I have an Excel calendar in which certain cells have a shape on them. I wish to be able to see which cells have a shape and then be able to extract some data. I've searched a bit and found that the best option was to use TopLeftCell.Row but it seems there's an error on my code. I've copied a co...
2018/03/16
2,109
7,081
<issue_start>username_0: I was trying out the Time class in Java and the following outputs December even though the system time shows March: ``` Calendar c = Calendar.getInstance(); SimpleDateFormat MonthName = new SimpleDateFormat("MMMM"); System.out.println(MonthName.format(c.get(Calendar.MONTH))); ``` But using t...
2018/03/16
469
1,521
<issue_start>username_0: I create a function and need to paste " " around the string, the final desired code is `'table_df'` in the following code ``` if (exists('table_df') && is.data.frame(get('table_df'))&nrow(table_df)>0) { tracking_sheet$var1[tracking_sheet$var2=="table_name"]<-'Completed' } else {tracking_sheet$...
2018/03/16
1,770
4,618
<issue_start>username_0: I need to capture some values from dataframe A (colname : "price") and put them in dataframe B ("PRECIO\_LISTA"). Same with column "sale\_price" from dataframe A, put the value in column "PRECIO\_INDEXADO" in dataframe B. **dataframe A** ``` df_a <- structure(list(TIENDA = c("CURACAO", "CUR...
2018/03/16
477
1,734
<issue_start>username_0: I have a strange behavior with the setState callback, hopefully somebody can help. The callback just isn't fired. Here is what I do: ```js this.setState( (prevState, props) => { return { first: obj, questions: [] } }, this.changeStateCb ); ``` For some reason the changeStateC...
2018/03/16
468
1,848
<issue_start>username_0: I want to build a task scheduling service on the Google Cloud Platform. The tasks can be as simple as triggering a URL. Tasks can be recurring (once an hour, twice a day, every thursday, ...) and can be created and removed dynamically. Which services/APIs on the Google Cloud Platform can I use...
2018/03/16
246
939
<issue_start>username_0: I'm following the steps [here](https://software.sandia.gov/downloads/pub/pyomo/PyomoOnlineDocs.html) in order to use all my computing power (10-core Intel i9 CPU) and solve a one-instance abstract Pyomo model. However, it seems that the solver is just using one CPU core and it takes more than 2...
2018/03/16
639
2,244
<issue_start>username_0: I´m trying to figure out if I shouyld map or not in my reducer. Here´s the context. I have a redux state composed by... ``` friends [{}, {}] pets [{}, {}] users [{}, {}] ``` 3 of them are array of objects based on GET responses (local API) Here´s an example of one object of the friends ar...
2018/03/16
1,007
3,076
<issue_start>username_0: I'd like to get lowest price based on maximum timestamp. I've tableid only to get the date out of table. My query should be something like: ``` SELECT min(price) as price, timestamp, resellerid, tableid FROM `sql_date_table` WHERE tableid=%d AND max(timestamp) ``` An...
2018/03/16
757
2,551
<issue_start>username_0: I have the following: ``` ``` is a grid component. I want to set the props on it differently based on the value of a variable. If it was a self enclosing tag I would simply store it in a variable like so and call that in the render method: ``` let someVar = if(someCondition) { someVa...
2018/03/16
635
1,971
<issue_start>username_0: I am a complete noob here. I am trying to extract Marine Corp. (without quotes from $data. I've searched and searched for how to deal with double quotes but am coming up short. Can someone please offer some guidance? Thank you. ``` $data = '"title":{"rendered":"Marine Corp."}'; preg_match('/t...
2018/03/16
453
1,566
<issue_start>username_0: Team, I am looking for a date function that when i use it in procedures, it should automatically get the desired range looking at parameter. ex: query should show me results from today's date to 90 days in history. like ``` select * from Table where dataFunction(currDate, 90) ``` where curr...
2018/03/16
510
1,142
<issue_start>username_0: If I have a lot of time series data, is it possible to remove any rows in the dataframe if its not on a 0, 15, 30, 45, minute time stamp? For example I can make up some data on 5 minute intervals... ``` import pandas as pd import numpy as np time = pd.date_range('6/28/2013', periods=2000, f...
2018/03/16
532
1,335
<issue_start>username_0: I can't display the data it said **undefined variable : avg**. this is my script: my controller : ``` public function rate_config() { $rt = $_POST['hasil_rating']; $content["hasil_rating"] = $rt; $this->db->insert("tb_rating", $content); redirect("rate/index?s...
2018/03/16
393
1,804
<issue_start>username_0: ``` **Student Table** --------------------------------- id name address placeofbirth --------------------------------- 1 Kim 1 2 2 ahmed 3 4 3 john 1 3 ...
2018/03/16
578
2,023
<issue_start>username_0: I have created a zip code lookup for users. When they enter their zip code, if their zip code is in the list, then it will report back that they are in one of our service areas. If their zip code is not in the list, then it will report back that service is not available in their area. The exa...
2018/03/16
4,971
15,093
<issue_start>username_0: I was trying to add a swift file to an existing Obj-C project and this project has some frameworks linked to it. When I add a swift file to it, it's compiling just fine but at runtime it is complaining about some swift standard classes are being implemented in both linked framework and the curr...
2018/03/16
389
1,307
<issue_start>username_0: I came across a strange behavior in my hive queries. While inserting values based on an input parameter I set an attribute to NULL. When I execute count ``` select count(id) from hive_table where val1 is NULL; ``` I get 0 as result. But I know there are around ~7.5 K records which has been ...
2018/03/16
334
1,154
<issue_start>username_0: Coming from Swift now want to get into Kotlin UI Apps so I am trying out TornadoFX in IntelliJ atm. When creating an hbox in a View Class, invoking severeal elemants like buttons, textfields, etc., how can I change properties like their names, alignment or other? Unfortunately tornadoFX/Kotli...
2018/03/16
1,103
4,708
<issue_start>username_0: My question is mostly about the code safety case in C#. Here is the code: ``` void foo() { theFirst(); //some code which needs to call theFirst() before executing goes here definitelyShouldBeCalledAfterTheFirst(); } ``` Now I want to ensure that in every scope (basically any method) wher...
2018/03/16
1,455
4,999
<issue_start>username_0: I want to point to something like `add(2, 1)` and then call it without needing to specify parameters. Is there some way to do this with function pointers?<issue_comment>username_1: ``` int add(int a, int b) { return a + b; } ``` No you canno't have a pointer to `add` with assigned parameter v...
2018/03/16
618
2,259
<issue_start>username_0: I am currently working on a project in ASP.NET MVC. I have a page for displaying data where users can use checkboxes to mark different items and then makes changes to those items. On some pages, there are enough checkboxes that a "Select all Checkboxes" button is required. I typed up the code f...
2018/03/16
774
3,106
<issue_start>username_0: The method below has 3 possible paths: 1. True, 2. False, 3. Exception. To test it, I need to mock the private `getWootsWithAvailableProducts` for the `True` and `Exception` paths. However, the collective wisdom seems to be saying that you should not mock private methods. How else can I test t...
2018/03/16
844
3,094
<issue_start>username_0: I am creating a `Modal` component and on a high level, it looks like this: ``` class Modal extends Component { hideModal() { /* logic to hide modal */ } render() { return ( {this.props.title} {this.props.body} {this.props.footer} ); } } ```...
2018/03/16
740
2,669
<issue_start>username_0: I have this Firebase database: ![enter image description here](https://i.stack.imgur.com/QiKCw.png) and I need to get all uids(children) of alii-b9d94. But the problem is: when I get it as an object, I can't access the object to get the values from it. This what I am able to get it but I can...
2018/03/16
888
3,760
<issue_start>username_0: I am creating a Lambda function that makes a call to some functionality on my server. I would like to test the Lambda function against a local instance of my server, so that I don't have to deploy to AWS in order to test run the whole flow. Is there any way to call my local machine's developm...
2018/03/16
453
1,419
<issue_start>username_0: I have quite complicated BDH function with many overrides, could you recommend any books or Website that I can find Information about these overrides ? ``` =BDH($B$9,"TRADE",$C$1,$C$2,"Dir=V","Dts=S","Sort=A","IntrRw=True","CondCodes=H","QRM=H","ExchCode=S","BrkrCodes=S","RPSCodes=H","RPTParty...
2018/03/16
1,344
5,719
<issue_start>username_0: How does one properly and cleanly terminate a python program if needed? `sys.exit()` does not reliably perform this function as it merely terminates the thread it is called from, `exit()` and `quit()` are not supposed to be used except in terminal windows, `raise SystemExit` has the same issues...
2018/03/16
1,348
5,664
<issue_start>username_0: I am using angular and I have a datasource for my table. I want to delete the item from datasource. please help me ``` empDataSource: EmpDataSource; selection = new SelectionModel(true, []); ngOnInit() { this.empDataSource= new EmpDataSource(this.empList); } deleteEmp(){ this.empDataSourc...
2018/03/16
985
3,586
<issue_start>username_0: I am new to the use of columnstore index. The new different structure of columnstored data raised a question. How we know which data from one column1 (page1) are connected to other column2 (page2). For example if we have the following representation of a table using traditional rowstore: ```...
2018/03/16
1,677
5,592
<issue_start>username_0: I am newbie in text mining and R. I doing terms clustering using kmeans from a set of documents. In grouping the terms I used cosine formula. There are 57 terms of 839 document I want to cluster. But somehow, my supervisor said I the process is not correct because there's overlap in the plottin...
2018/03/16
472
1,747
<issue_start>username_0: How do you find the index of an entry within a list. My code below. `listFrom` and `listTo` contain entries of strings. I am getting the error: > > Severity Code Description Project File Line Suppression State > Error CS1503 Argument 1: cannot convert from 'System.Collections.Generic.List'...
2018/03/16
1,183
2,856
<issue_start>username_0: I need to perform a basic `group_by` / `mutate` operation using an auxiliary grouping variable. For instance: ``` df <- data.frame( u = c(0, 0, 1, 0, 1), v = c(8, 4, 2, 3, 5) ) df %>% group_by(tmp = cumsum(u)) %>% mutate(w = cumprod(v)) %>% ungroup %>% select(-tmp) ``` My proble...
2018/03/16
3,703
13,649
<issue_start>username_0: I have an IAP setup in an app, along with a few Cocoapods: ``` - Firebase/AdMob (4.8.0): - Firebase/Core - Google-Mobile-Ads-SDK (= 7.27.0) - Firebase/Core (4.8.0): - FirebaseAnalytics (= 4.0.5) - FirebaseCore (= 4.0.13) - Firebase/Crash (4.8.0): - Firebase/Core -...
2018/03/16
351
955
<issue_start>username_0: `121426` <- Here, 1 is an alternating repetitive digit. `523563` <- Here, NO digit is an alternating repetitive digit. `552523` <- Here, both 2 and 5 are alternating repetitive digits. `333567` <- Here, 3 is an alternating repetitive digit. I found `re.findall(r'(?=(\d)\d\1)',P)` as the sol...
2018/03/16
450
1,502
<issue_start>username_0: I thought a callable is just a function from the tf-library that I *call*. This: ``` tensor = tf.while_loop(tf.less(tf.rank(tensor), ndims), # cond tf.append(tensor, axis=axis), # body loop_vars = [tensor]) # loop...
2018/03/16
172
573
<issue_start>username_0: ``` MIX_ENV=test mix compile ``` ...is not working on Windows `cmd`. It shows: > > `'MIX_ENV'` is not recognized as an internal or external command, operable program or batch file > > > How to solve this problem?<issue_comment>username_1: Like @Dogbert said, in Windows you have to use ...
2018/03/16
331
1,327
<issue_start>username_0: I am using intent to transfer data. When I try the following code, Intent intent=getIntent() or Intent intent=getIntent(DrawerActivity.this, null) Exception will occur. How can I use intent to put data but do not jump to another activity?<issue_comment>username_1: If you want to put data so...
2018/03/16
730
2,529
<issue_start>username_0: Below is sample angular project which implements a sample Users Listing with datagrid row expand feature. Now as a standalone webapp, it is throwing error while navigating to next page as shown below: [![enter image description here](https://i.stack.imgur.com/bKnhP.png)](https://i.stack.imgur.c...
2018/03/16
1,314
5,470
<issue_start>username_0: I am creating a card game using .NET Standard and Monogame. I have created and tested the core of the game in a dll (PlayingCards.Common.Dll). I now need to add a GUI layer and am having problems with the design. For example, my card class lives in PlayingCards.Common.Dll. The GUI needs to u...
2018/03/16
1,246
4,193
<issue_start>username_0: I have to display a number in currency format using the country code with comma and period separators based on the country. Example if the number is 4294967295000 then 1. USA = USD 4,294,967,295,000.00 2. INDIA = INR 42,94,96,72,95,000.00 I got it working for India, but for USA I am getting...
2018/03/16
404
1,764
<issue_start>username_0: use of private constructor : it cant able to create instance, it cant be inherit, it contain only static data members without private constructor also i can able to access class with its static declaration and static data member when assign value like the below example ``` class Test { ...
2018/03/16
800
3,036
<issue_start>username_0: It’s not about using .gitignore to ignore certain files, it’s about completely excluding that particular repository from file watcher of VS Code. It complains that there’s more than 5000 files are opened and then just hanged my laptop. This repository has insane amount of files, and it’s locat...
2018/03/16
213
659
<issue_start>username_0: I am using Primeng Tabview in my angular application. I have the code as shown below to set the active tab using code. ``` First Second Third ``` But as soon as I manually go to a tab and try to click on the button, it is not going to the right tab. Not sure what is wrong or how to make it w...
2018/03/16
703
2,243
<issue_start>username_0: ``` def digits(n): total=0 for i in range(0,n): if n/(10**(i))<1 and n/(10**(i-1))=>1: total+=i else: total+=0 return total ``` I want to find the number of digits in 13 so I do the below =========================================================== ``` print digits(1...
2018/03/16
444
1,766
<issue_start>username_0: I am looking to develop a Windows 10 Universal app based in HTML, CSS, and JavaScript for use on Microsoft Surface tablets primarily. I have found information that says it can be done on [this page](https://phonegap.com/blog/2016/04/25/windows-10-and-phonegap-cli-6_1-now-on-build/), but at the ...
2018/03/16
1,008
3,728
<issue_start>username_0: The official docs seem to be missing the documentation around using these outputbindings, <https://learn.microsoft.com/en-us/azure/azure-functions/functions-reference-java> does not give any examples of using these bindings. Has anyone had any luck using these? I am looking to achieve somethin...
2018/03/16
485
1,575
<issue_start>username_0: I'm trying to use SQL to get information from a Postgres database using Rails. This is what I've tried: ``` Select starts_at, ends_at, hours, employee.maxname, workorder.wonum from events where starts_at>'2018-03-14' inner join employees on events.employee_id = employees.id inner join workord...
2018/03/16
3,776
17,125
<issue_start>username_0: **How to implement JWT based authentication and authorization in Spring Security** I am trying to implement jwt based authentication and authorization in my spring boot app. I followed a tutorial written [here](https://auth0.com/blog/implementing-jwt-authentication-on-spring-boot/). But it doe...
2018/03/16
266
930
<issue_start>username_0: I have a material mat table and the cell has a conditional. What I need to do is color the cell if the condition is true. ``` Value {{record.Value == -1 ? 'N/A' : record.Value }} ``` I need only to have the N/A colored red otherwise no color. Any help would be appreciated. I have tri...
2018/03/16
4,719
15,209
<issue_start>username_0: In my Producer/Consumer exercise, I want to build two threads, one for producer and the other one for the consumer. They have access on a buffer for reading/writing messages on it, and i want use the mutex for manage this buffer. ``` #include #include #include #include #include #include ...
2018/03/16
1,554
4,968
<issue_start>username_0: Have a Ordereddict "d" looking like that: ``` [OrderedDict([ ('id', '1'), ('date', '20170101'), ('quantity', '10')]), OrderedDict([ ('id', '2'), ('date', '20170102'), ('quantity', '3')]), OrderedDict([ ...
2018/03/16
295
1,193
<issue_start>username_0: How to share code between multiple [NativeScript](https://www.nativescript.org/) apps and multiple Angular apps using [@nrwl/nx](https://nrwl.io/nx) (Nx Workspace)?<issue_comment>username_1: Have a look at <https://nstudio.io/xplat/>. It seems these guys are trying to make it easier, but it sti...
2018/03/16
316
1,313
<issue_start>username_0: In our jmeter result jtl file I need sampler type, as we have different SLA based on sampler (java request, HTTP request, JDBC request). Is there is a way we can print the sampler type in JTL file? Currently even I did all changes in jmeter.properties still not getting sampler type.<issue_comm...
2018/03/16
793
2,665
<issue_start>username_0: I would like `find()` function to return `true` when it finds `'john'` and stop iterating trough array. Or return false if looking for name, let's say `maria`, which is not in any of our objects. What am I not understanding that I can't achieve what I need in this code? Thanks. ``` var array =...
2018/03/16
1,172
4,131
<issue_start>username_0: I'm trying to interact with a dockerized PostgreSQL server using SQLAlchemy. Something like: ``` engine = create_engine('postgresql://user:user_password@localhost:5432/database') df.to_sql('table', engine) ``` Which gives me this error: > > OperationalError: (psycopg2.OperationalError) cou...
2018/03/16
1,054
3,746
<issue_start>username_0: I am trying to play with **getattribute** method in python. ``` class Foo: def __init__(self): self.x = 3 def __getattribute__(self, name): print("getting attribute %s" %name) return super().__getattribute__(self, name) f = Foo() f.x ``` I get the "getting attribute" pr...
2018/03/16
514
1,958
<issue_start>username_0: [![iTunesConnect Test Flight Sorry Something Went Wrong this build is using a beta version of XCode and cant be submitted error message](https://i.stack.imgur.com/kL7o7.png)](https://i.stack.imgur.com/kL7o7.png) I uploaded a build and sent it to an external team in test flight a day ago. I fix...
2018/03/16
836
3,075
<issue_start>username_0: I have tried everything and am running out of ideas. Please help. We have Elastic Beanstalks in AWS deployed with 64bit Amazon Linux 2017.09 v2.7.1 running Ruby 2.4 (Puma). Running on them is Nginx 1.12.1 and Rails 5. In a controller I'm downloading a PDF from an API and then attempting to se...
2018/03/16
670
2,554
<issue_start>username_0: I wanted to check if between two or more threads that access a shared resource without mutual exclusion would have presented interleaving problems and I noticed that if I increase the number within the condition, then from 50 I put 1000, I notice that the threads no longer run first one and the...
2018/03/16
1,351
2,559
<issue_start>username_0: I have this list: ``` n = ['FAKE0.0.1.8', '10.2.2.22', '10.2.182.10', '10.2.20.5', '10.2.94.135', '10.2.110.1', '10.2.94.73', '10.2.20.1', '10.2.94.38', '10.2.94.37', '10.2.7.121'] ``` And this dictionary: ``` i = {'10.2.94.38': {'area': '0.0.1.8'}} ``` As you can see, there is only one i...
2018/03/16
1,177
4,300
<issue_start>username_0: Hibernate 5 does not support the PostgreSQL `jsonb` data type by default. Is there any way to implement `jsonb` support for Hibernate + Spring JPA? If there is a way, what are the pros and cons of using `jsonb` with Hibernate?<issue_comment>username_1: Thanks [<NAME>](https://vladmihalcea.com...