date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/13
1,050
4,565
<issue_start>username_0: I have an application in angular 4 and i had builded almost all the components in this way: ``` export class AreaProdottiComponent implements OnInit,OnDestroy { subscription: ISubscription; constructor(private someservice:Service){ this.subscription = someserviceObservable.s...
2018/03/13
835
2,881
<issue_start>username_0: The ListViewTag class serialises the entire data object, even if those fields aren't used in the ListView. I'm using a Hibernate entity which uses a list of objects from a many-to-many relationship and I only want to retrieve these when I need them. When the Serializer class tries to serialise ...
2018/03/13
3,764
11,120
<issue_start>username_0: Recently I've started a project based on API Platform. I've designed my entities as I do with every other Symfony project. Creating / Updating of normal entities with no relations works very good but I have a "special" entity with two Many-to-Many relations, for simplicity I've limited this pos...
2018/03/13
569
1,297
<issue_start>username_0: I would like to create a new table from the results the of an unpivot ,is possible to use the results from an unpivot to create a new table ? Like for example can you add something like this `Insert into newtable` ``` Begin tRAN select 2 AS Category_ID, Techcentre, kpi, Quart...
2018/03/13
503
1,328
<issue_start>username_0: I am trying to mock System class to get a constant value for currentTimeMillis(). Since I cannot use Mockito for mocking final classes I am using PowerMock, but when mocking the System.currentTimeMillis() I am geting error "Cannot resolve method when(long)". My code looks like: ``` PowerMocki...
2018/03/13
495
1,172
<issue_start>username_0: I have an array of objects in angularjs looking like this: ``` [ 0: {id: "1", user_id: "1", name: "object1"}, 1: {id: "2", user_id: "1", name: "obejct2"}, 2: {id: "3", user_id: "2", name: "object3"}, ] ``` I want to search through the array and remove the items that don't have a spe...
2018/03/13
1,237
4,296
<issue_start>username_0: I'm trying to debug a VUE component in Laravel 5.5 project using VS Code. The last version of VS Code is installed. Debugger for Chrome 4.2.0 is installed. All Chrome processes are killed. launch.json in .vscode folder has the following code: ``` "version": "0.2.0", "configurations": [...
2018/03/13
1,035
4,032
<issue_start>username_0: Using Spring Boot I've build a toy REST service with a single resource like so: ``` @RestController @RequestMapping("/checkout") public class CheckoutRestController { @PostMapping("/book") public boolean buyBook(@RequestParam CreditCard creditCard, @RequestParam ShippingAddress shippi...
2018/03/13
2,934
12,267
<issue_start>username_0: I tried and followed some tutorial on web but it didn't work on new Android versions. I declared all Bluetooth permissions and used Dexter permission library. I followed few answers but it doesn't display available Bluetooth device name also Below is my code: ``` @Override protected void onC...
2018/03/13
585
2,248
<issue_start>username_0: I have a .NET core 2.0 web application running successfully as an Azure app service. To save money/complication, I would like to run its public API on the same domain, as a virtual application i.e. www.mysite.com/api However, when I release to the virtual application, and then try to access i...
2018/03/13
621
2,024
<issue_start>username_0: I made a C(n,r) calculator using java Netbeans JFrameform. [here is the frame](https://i.stack.imgur.com/R4VqH.jpg) Here is the code :- ``` private void lllActionPerformed(java.awt.event.ActionEvent evt) { int n=Integer.parseInt(t1.getText()); int r=Integer.parseInt(t2.getText()); ...
2018/03/13
500
1,824
<issue_start>username_0: I have two dataframes with different dimensions, and I want to fill a column based on same values in the other dataframe, here is an example : [Example](https://i.stack.imgur.com/76kbE.jpg) DATA1 dimensions are bigger than DATA2 dimensions I tried to run it with for loops but it's too slow...
2018/03/13
1,709
3,588
<issue_start>username_0: Im trying to generate a numpy array of minutes from 9:30 to 16:00. (6.5 hours\*60 minutes=390 elements) Is there something similar to: ``` import pandas as pd pd.date_range("09:30", "16:00", freq="1min") ``` Of course after it to convert to numpy is easy...<issue_comment>username_1: I belie...
2018/03/13
470
1,695
<issue_start>username_0: In **View.php** file `php echo $ticket-player_id ?>` is working. But in **controller.php** it is not working. What is the correct syntax for Controller.php? I am trying to use it here ``` 'include_player_ids' => array('php echo $ticket-player_id ?>'), ``` The following is the sample code f...
2018/03/13
436
1,547
<issue_start>username_0: How can you run Flask app which uses a specific version of python? On my env "python" = python2.7 and "python3" = python3.6. I have installed Flask using pip3. I start the app with `FLASK_APP=app.py flask run`. It uses python2.7 to execute, I would like it to use python3.6. Also tried adding ...
2018/03/13
745
2,655
<issue_start>username_0: Given the following set of data in my vue.js 2 component: ``` data() { return { listItems: [{ id: '', name: '', subItems: [] }], selectedItem: '', hasSelectedItem: false } } ``` I'm filling up the `listItems` with a REST API and selecting a specific i...
2018/03/13
722
2,735
<issue_start>username_0: I've tried to use a `NavigationView` because it looks very useful, but I'm struggling to make it work with the MVVM pattern. I've attached the MenuItemsSource property like in this snippet: ``` ``` All I get is this: [![enter image description here](https://i.stack.imgur.com/NRXdX.png)](ht...
2018/03/13
523
1,994
<issue_start>username_0: I have the following string: ``` (a,b,c,d,e) ``` I want to get out all comma separated values by a regular expression. If I put away the brackets ``` a,b,c,d,e ``` and use the following regular expression: ``` ([^,]),? ``` I get out one match as well as one group for each comma separa...
2018/03/13
518
1,998
<issue_start>username_0: I have a button that, when pressed, it should take you to a url composed with some variables. All the variables are one word except "texto". If "texto" is one word, all works ok. The problem comes when "texto" is more than one word (even a word and a space), and the button does not take you to...
2018/03/13
928
3,326
<issue_start>username_0: I am trying to get all the Product Categories inside a Wordpress Plugin with the following Code. I have tried the same code within the active theme and they are working and gives the right output but when I am trying to do the same inside the plugin file it returns an empty array. Is there any ...
2018/03/13
906
3,197
<issue_start>username_0: I am new to SQL and am trying to create a query that will show on which day(s) more than 1% of website requests lead to errors. Example: * July 29, 2016 — 2.5% error I'm using a single [table called Log](https://i.stack.imgur.com/Mogc4.png) and the errors are '404' HTTP errors held in the s...
2018/03/13
699
3,198
<issue_start>username_0: I added an extension to UIViewController to add a close button ``` extension UIViewController { func addCloseButton() { let button = UIBarButtonItem(image: #imageLiteral(resourceName: "bar_close"), landscapeImagePhone: nil, ...
2018/03/13
535
1,635
<issue_start>username_0: I'm trying to write a DataFrame to an Excel file using xlsxwriter and am having some issues with NaN values not being filled properly. Regardless of whether I use `df.fillna`, `df.replace` or the `na_rep` option on the writer, a few columns retain any NaN values in the DataFrame. Investigat...
2018/03/13
985
3,946
<issue_start>username_0: I am new to implement Android notification channel in Oreo. What is the maximum number of notification channels for a single application. Can we create unlimited channels or it has some count?<issue_comment>username_1: Coming with **Android Oreo**, Notification Channels are something a develope...
2018/03/13
997
3,944
<issue_start>username_0: If l increase PHP memory limit will my site load faster ? l use cloud server 6gb ram , current PHP memory limit setting = 512mb How much should l setting for best performance ? Thank you.<issue_comment>username_1: Coming with **Android Oreo**, Notification Channels are something a developer ...
2018/03/13
1,351
5,211
<issue_start>username_0: The following `ControlTemplate` for `TabItem` ``` <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type TabItem}"> <Grid> <Border x:Name="Border"> <ContentPresenter VerticalAlignment="Center" Margin="5" HorizontalAlignment="Center" ContentSource="Header"> </C...
2018/03/13
2,596
9,544
<issue_start>username_0: I am working on angular 2. I found that the communication between the two sibling components or from child to parent is difficult. Even it was not mentioned in the angular 2 documentation Would you please provide some information about it because the way two sibling components communicate is l...
2018/03/13
673
1,788
<issue_start>username_0: I have the following frame: ``` df = pd.DataFrame(data={'id':[1,2,3],'x':[3,2,1]}).set_index('id') print df x id 1 3 2 2 3 1 ``` I need to iterate the rows, so that for each id, we append the remaining rows, e.g. the output should be: ``` x id 1 3 2 1 2 2 ...
2018/03/13
715
2,096
<issue_start>username_0: I guess I'm too dumb for this. Why my code only replace the first instance of each word? I want to highlight all words with those names ```js //highlight words in the results $("#results").html(function() { return $(this).html() .replace("OK", 'OK') .replace("ERROR:", 'ERROR:') ...
2018/03/13
755
3,009
<issue_start>username_0: I am using Room API to implement a DB in my Android app. It seems that every time I load my app it tries to create the database again and again. Is there any way to restrict this? ``` db = Room.databaseBuilder(context, AppDatabase.class, "database-name").build(); ```<issue_comment>username_1...
2018/03/13
832
3,251
<issue_start>username_0: I’m new in swift and have a question . I made a `UITextField` in a `func` programmatically and I want to call it in another `func` like: ``` func alertForEmptyField { if textfield == nill { ... } } ``` But I can’t call my textfield of course because it is in another `func`,...
2018/03/13
350
1,456
<issue_start>username_0: I was adding a migration in my ASP.NET Core project using EF Core 2.0. I ran the 'Add-Migration 'migrationName` command in my package manager console. The migration was successfully added to my migrations folder, however, while trying to update the snapshot I got this error: > > Access to the...
2018/03/13
1,973
6,249
<issue_start>username_0: i am trying to deploy my keras model. it works fine with flask on port `5000` and when i try to test serving it through Uwsgi by this command `uwsgi --socket 0.0.0.0:5000 --protocol=http -w wsgi:app`, it gives me the desired result. the problem arises when i try to configure a separate Uwsgi fi...
2018/03/13
524
1,752
<issue_start>username_0: I am using ELKI 0.7.2 (master) for running DBSCAN with R\* tree on a large data set. Afterwards, I need to store the tree persistently, so that it can be reloaded in memory when new data points are evaluated whether they are noise or not. To this end, I tried PersistentPageFileFactory and got t...
2018/03/13
268
991
<issue_start>username_0: I am facing issue with this code in my xml file with error: msg:Identifiers must have user defined types from the XML file. View is missing it. I want to hide the layout on the basis of some condition. ``` ```<issue_comment>username_1: you need to import it. Add ``` ``` in the data sectio...
2018/03/13
3,801
5,896
<issue_start>username_0: I have Bitcoin prices in a csv file. My file is updated every 5 minutes and setting Timestamp as epoc. I have loaded this data to a pandas DataFrame. What i am trying to do is to convert this data from 5 minutes to 15,30,60, etc. minutes. What i need to do is add x seconds from starting row an...
2018/03/13
1,056
3,524
<issue_start>username_0: I am running Jenkins from a Dockerfile, and have successfully integrated with Bitbucket cloud using the local docker.sock. I have setup a new pipeline using Blue Ocean which downloads the repo and builds a simple nodejs app from the Dockerfile. My files look like this : Node app ``` FR...
2018/03/13
374
1,595
<issue_start>username_0: I have a video player app where you can search for videos. My video player is just a View I hide and show whenever the user is actually playing a video. I implemented Search as a SearchView menu item that feeds a fragment. When you click on a video, the video player view will show up and play ...
2018/03/13
468
1,606
<issue_start>username_0: I know how bootstrap 4 is working with `col` instead of `col-xs` but the issue I am facing is that when the text within the column is too long to accommodate on a small screen device, the columns start to stack below each other. Is there any way to prevent this and fix the col width to 1/5 of t...
2018/03/13
987
3,322
<issue_start>username_0: I am invoking D3's [extent](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/d3-array/index.d.ts#L76) function from TypeScript. Since I am dealing with numbers, its return type is `[number, number] | [undefined, undefined]`. What's the idiomatic way to provide a default val...
2018/03/13
804
2,596
<issue_start>username_0: I want to insert a span tag after all button elements. Here's what I have: ``` button text 1 button text 2 button text 3 ``` Here's what I want: ``` button text 1 button text 2 button text 3 ``` I've tried using ``` var content = $('button').html(); $('button'...
2018/03/13
1,146
4,083
<issue_start>username_0: I'm currently working on a Raspberry Pi related project on github, and I would like to attach it to some kind of CI system so contributors can see if they break things without having to build circuits (the project involves GPIO pins). TravisCI seems to be the obvious choice as it integrates nic...
2018/03/13
510
1,673
<issue_start>username_0: I have done with code in Android: ``` List spinnerArray = new ArrayList(); for (int i = 0; i < items.size(); i++) { LinkedTreeMap item = (LinkedTreeMap) items.get(i); // THIS LINE THROW EXCEPTION double d = Double.parseDouble(item.get("id").toString()); locations.put(Integer.parseInt(ite...
2018/03/13
1,990
5,473
<issue_start>username_0: I'm having difficulties in explaining my problem. I have made a PLSQL procedure, this takes data from multiple tables with a simple query, then the output is sent to a cursor which then output the result as a xml, which is then finally printed as the following excel [enter image description he...
2018/03/13
913
2,490
<issue_start>username_0: I am trying to do a Regex in Go to match s3 bucket urls. so far i have ``` https://s3.amazonaws.com/(.+?)/", "http://s3.amazonaws.com/(.+?)/", "//s3-us-east-2.amazonaws.com/(.+?)/", "//s3-us-west-1.amazonaws.com/(.+?)/", "//s3-us-west-2.amazonaws.com/(.+?)/", ...
2018/03/13
354
1,150
<issue_start>username_0: ``` char ch = 1107; printf("ch = %c", ch); ``` Above code prints S. I do not get how this happens. I am giving an out of range value for char type. How compiler gets this value "S" (ASCII 83)?<issue_comment>username_1: If 1107 is too big to fit into a `char` (it usually is but a `char` might...
2018/03/13
2,208
3,808
<issue_start>username_0: So I have two arrays looking like this : arr 1 : ``` [[Tue Feb 20 09:00:00 GMT+01:00 2018, xxx, cc0902be495c4350a6bfcd1734c843b9, xxx, affiliate, 101723.0, ru, 9e09ee193e21766b1946e485eec9adcf, 0.81, 0.72, 6.05, 0.5265, 0.1053, 0.6318, 3.9325, 0.7865, 4.719, 0.468, 0.0936, 0.5616], [Tue Feb...
2018/03/13
652
2,255
<issue_start>username_0: I've got a model class with a decimal RGB value member (i.e. value 16777215, #FFFFFF, which is white) in IntegerProperty type. Now I need to bind it to ColorPicker control but it needs `ObservableValue` and I don't know how to "convert" the `IntegerProperty` to `ObservableValue` and successfull...
2018/03/13
666
2,270
<issue_start>username_0: PEP8 suggests no spaces around equal operators in function parameters. For example: Correct: ``` def func(a=0): print('PEP8 compliant spacing') ``` Incorrect: ``` def func(a = 0): print('Invalid PEP8 spacing') ``` PyCharm's auto-formatter fails to pick up incorrect spacing when ...
2018/03/13
686
1,726
<issue_start>username_0: I have some data stored in a file (xyz.dat) in the following format: ``` 1 0.997790664988225E+000 0.100177762164687E+001 0.100034262755073E+001 2 0.997788473973293E+000 0.100177969047903E+001 0.100034273413754E+001 3 0.997782981718032E+000 0.100178486093194E+001...
2018/03/13
1,270
4,159
<issue_start>username_0: I'm building a table in R which I save in a `csv` file. That table is made for some user that will actually open it with `Excel`. That table have a field with an hyperlink. I want Excel to detect the link and allow the user to click on it directly to open it in their browser. That is normally p...
2018/03/13
867
3,408
<issue_start>username_0: I am trying to implement using Angular5 an `HttpInterceptor` to inject an Authorization header in all HTTP requests. I rely on a third party library (ADAL, here called `AuthService`) that exposes a `acquireToken()` method to get the token to be used for Bearer authorization. The problem is th...
2018/03/13
687
2,691
<issue_start>username_0: i need some help with this, I've studied it on w3schools but didn't come across of anything similar. The form needs to have two inputs, the date and the item. 10 dates in a row, 10 items. The date can be dropdown and the item in textarea. Once the user selects a date and writes the item purchas...
2018/03/13
537
2,286
<issue_start>username_0: I made a simple UWP app to test some code ``` public sealed partial class MainPage : Page { public MainPage() { this.InitializeComponent(); FlipButton.Click += new RoutedEventHandler(FlipButton_Click); } private async void FlipButton_Click(object sender, Routed...
2018/03/13
581
1,545
<issue_start>username_0: I have a table `ABC` and column `A` where few values have `.0` and I want to remove the `.0` in all those values. Also a few values are string values in this column so am unable to use `trunc` on the values. So please let me know how I can do this in `oracle 10g` or `11g`.<issue_comment>usernam...
2018/03/13
1,171
3,257
<issue_start>username_0: I am trying to use nltk from azure data lake analytics using python. I have followed [this link](https://blogs.msdn.microsoft.com/azuredatalake/2017/03/10/using-custom-python-libraries-with-u-sql/) for Using Custom Python Libraries with U-SQL. I have zipped the source code of NLTK and have used...
2018/03/13
1,201
4,642
<issue_start>username_0: I am new to dynamodb but worked with MongoDB relationship. I am very confused while reading aws docs for dynamodb one to many relationship. So my scenario is: For example, I have tables user and addresses: ``` Table: User ---- username fname lname address: ref to addresses Table: Addresses ...
2018/03/13
311
1,003
<issue_start>username_0: I am trying to publish a package using `npm publish` and this is what I got: > > npm ERR! publish Failed PUT 400 > > > npm ERR! code E400 > > > npm ERR! deprecations must be strings : async-csv > > > npm ERR! A complete log of this run can be found in: > > > npm ERR! C:\Users\user1\Ap...
2018/03/13
430
1,586
<issue_start>username_0: Currently in my project I am pushing the object to firebase in a specific ref: ``` this.CoursesList = this.mydb.database.ref('/courses/' + this.CourseCategoryForm); this.CoursesList.push(this.course); this.Reference(); ``` But I want to push it somewhere else at the same time. I read that it...
2018/03/13
474
1,692
<issue_start>username_0: I am trying to compile the program "OMNET++ 5.2" in Linux host, but whene I try to compilate my this one, I get this error : ``` Makefile:48: Makefile.inc: No such file or directory make: *** No rule to make target 'Makefile.inc'. Stop. ``` Here is the link of tutorial that I had followed: ...
2018/03/13
315
1,049
<issue_start>username_0: Its possible to do ``` using System; Action action = new Action(Console.WriteLine); action(); //will write a empty line ``` but is there a way to pass a method with parameters e.g. ``` using System; Action action = new Action(Console.WriteLine("Hello World")); //This doesn't work action...
2018/03/13
693
1,696
<issue_start>username_0: For a dataframe similar to the one below (but with more variables), I want to reorder the columns based on the descending sum of the variables. So in my example the column order should be VAR3 (sum=7), VAR2 (sum=5), VAR1 (sum=4). I know I can do it manually but my actual dataframe has too many ...
2018/03/13
613
1,685
<issue_start>username_0: trying executing this code on the group with joins but its giving me error that its not a group by statement code below ``` SELECT sum (quantity), customers.customer_name, states.state_name, regions.region_name FROM sales JOIN customers ON sales...
2018/03/13
562
2,203
<issue_start>username_0: I have a WordPress website which I am working on, and all changes in my .CSS file does NOT appear in Chrome, Firefox or Edge. I load my CSS directly from the tag: ``` ``` If I make changes to the CSS file, the changes do not appear in the browser. When I inspect the website using DevTools, ...
2018/03/13
362
1,469
<issue_start>username_0: I have created war file of my non maven java web application. I am unknown to deploy this app on Heroku. Please help.<issue_comment>username_1: Wordpress has its own mechanism for fitting the js and css into the pages it serves. [Check wp\_enqueue\_style and wp\_enueue\_script](https://develop...
2018/03/13
9,785
26,897
<issue_start>username_0: This is part of a bigger problem where we needed to port an old application to a new device (and of course to another programming language/framework). After a lot of effort ( sniffing the comm lines, reverse engineering the transmitted data for about a 2-3 weeks ) I managed to narrow in on what...
2018/03/13
1,329
4,247
<issue_start>username_0: I'm working on FASTA files. FASTA files are used in biology to store sequences. > > >sequence1 identifier (a string) > > > sequence on one or several line (a string) > > > ... > > > >last sequence identifier (a string) > > > the sequence on one or several line (a string) > > > I w...
2018/03/13
637
2,355
<issue_start>username_0: My app uses a custom font (by Linotype, i.e. a professional font). In UILabels as well as UITextViews and TextFields, composite glyphs like the German ö, ä and ü are rendered in incorrect size and weight. I tried quite a lot from changing trying other fonts (which rendered as expected) to test...
2018/03/13
942
3,047
<issue_start>username_0: How can I hide the following lines to get a cleaner code view? [![Enter image description here](https://i.stack.imgur.com/FcElZ.png)](https://i.stack.imgur.com/FcElZ.png) Like this in the official documentation: [![Enter image description here](https://i.stack.imgur.com/ozvVG.png)](https://i...
2018/03/13
917
3,374
<issue_start>username_0: I fairly new to laravel and a beginner in monogo db. I have been trying to connect mongodb cluster of mongodb atlas in my laravel project. But when I am trying to migrate the laravel migration file it is showing error saying mysql error even after I changed the default connection to mongodb. Ca...
2018/03/13
194
783
<issue_start>username_0: I would like to checkout the latest commit on an active repository of any branch. That's the first commit when you sort your Bitbucket repo in the "Network" section. My use case is a tool which uses code from latest changes in multiple submodules to analyze if those changes have led to a bett...
2018/03/13
1,208
4,020
<issue_start>username_0: In front of the internet, I could only find so far, just the reverse where the key-related event is associated with the front-end button, not the front-end button that invokes a key. Understood ?! Look: ``` #!/usr/bin/env wish button .b1 -text Hello -underline 0 button .b2 -text World -underl...
2018/03/13
1,192
4,041
<issue_start>username_0: In my web page, I have an LinkButton inside FooterTemplate, when I Add new row in GridView by using RowCommand. LinkButton do partial postback but my page loses its current scroll position and return scroll to top of the page. How should I maintain my page scroll position when I add new Item in...
2018/03/13
1,887
6,491
<issue_start>username_0: I have a products with the following size parameters: * Length (Woocomerce standard) * Width (Woocomerce standard) * Height (Woocomerce standard) * **Diameter** * **Thickness** * **Circuit** In the product edit page I have only Length, Width, Height (Woocomerce standard) I would like to add ...
2018/03/13
259
892
<issue_start>username_0: How to send Text in text area field using geb & Spock? Using just Selenium & the sendKeys I am able to send the text. But unable to implement using geb spock. `this[field] = value` - Not working `element.sendKeys("");` - Working<issue_comment>username_1: You probably want to look into the u...
2018/03/13
646
2,229
<issue_start>username_0: I have an alert with a OK button that I need to click, but nothing I've tried seems to work on it. My code can identify the alert, but as soon as I try to perform an action it, it seems to interact with the screen behind the alert. It's a native iOS app that I'm working with. I've tried the fo...
2018/03/13
770
2,770
<issue_start>username_0: I have trying to send one mail to Test1 and Test2. I tried separating the recipients with `;` like `To ="<EMAIL>;<EMAIL>"` that did not work and also tried concatenating them by doing `To="<EMAIL>"+"<EMAIL>"` that did not work. now I wrote and Array. the thing with my array is that it sends 2 m...
2018/03/13
1,726
4,945
<issue_start>username_0: I have this very long if and else statement, any idea how i would be able to shorten this? Or is this going to be the only way for me to handle this? ``` if (HR < 41) { HR_Score = 2; } else if (HR < 51) { HR_Score = 1; } else if (HR < 101) { HR_Score = 0; } else if (HR < 111) { ...
2018/03/13
671
2,537
<issue_start>username_0: With TypeScript 2.7.2, in VSCode version 1.21 with @types/express and the code that follows, in some cases VSCode throws errors stating that ``` A namespace-style import cannot be called or constructed, and will cause a failure at runtime. ``` However on other machines with similar setups an...
2018/03/13
1,007
4,199
<issue_start>username_0: I have the following text: ``` Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. Na...
2018/03/13
1,776
4,453
<issue_start>username_0: I have a dataframe where I have the total number of points someone scored in the past 3 years (2016, 2017, 2018), but also columns with their number of points per year. My dataframe looks like this: ``` myDF <- data.frame(ID =c(1,1,1,2,2,3,4), Dates= c("2016", "2017", "2018", "2016", "2017",...
2018/03/13
806
2,632
<issue_start>username_0: I'm building a Java web app that packages in a WAR static resources. These static resources are built through Angular-CLI. The Maven build triggers the ng build through Eirslett's `maven-frontend-plugin`, with npm scripts and the npm mojo. Problem is, I would like to use a custom `base href` ...
2018/03/13
533
1,681
<issue_start>username_0: suppose i have some html dom elements like ``` ``` how to find the first slot dom through querySelector() method? i have tried `document.querySelector("slot :not([name])")` just not work :(<issue_comment>username_1: I'm solving similar problem by having in (assumes regular *angular-cli* `b...
2018/03/13
1,294
5,145
<issue_start>username_0: I'm trying to find the best way to compare two text documents using AI and machine learning methods. I've used the TF-IDF-Cosine Similarity and other similarity measures, but this compares the documents at a word (or n-gram) level. I'm looking for a method that allows me to compare the *meanin...
2018/03/13
1,363
5,449
<issue_start>username_0: I am trying to populate a `recyclerview` using `FirebaseRecyclerAdapter` fetching details from firebase. Activity code is given below :- ``` private FirebaseRecyclerAdapter adapter; final FirebaseRecyclerOptions options = new FirebaseRecyclerOptions.Builder() .setQuery(queryforDisplayMess...
2018/03/13
1,042
2,761
<issue_start>username_0: I am trying to export data from mongoDB ``` mongoexport -d MY_DB_NAME -u DB_USER -p _REDACTED_ -c person \ -q "{ '$and':[ { 'hasActiveAck':{ '$ne':false }}, { 'creationDate':{'$gte': new Date(1506816000), '$lte': new Date(1509404400)} }]}" \ --fields '_id,email' --type=csv --out people_oct.js...
2018/03/13
656
2,206
<issue_start>username_0: I am currently having an issue with an Android application built with Cordova having a green frame around the body of the application: [![Green border issue](https://i.stack.imgur.com/7anDj.png)](https://i.stack.imgur.com/7anDj.png) It appears to be due to the web container being in focus, as...
2018/03/13
482
1,590
<issue_start>username_0: This is my connection string: ``` ``` I get this error: > > A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to all...
2018/03/13
687
1,883
<issue_start>username_0: ``` coursesCompleted [ { "coursename": "ITSM", "relatedTests": [ { "testid": "8a754f2cdbf<KEY>901cf9619dc", "testname": "Project plan Fundamentals" }, { "testid": "<KEY>", "testname": "Admin" } ], "courseid": "7ce4fa53dbe...
2018/03/13
528
1,644
<issue_start>username_0: We are facing issue in displaying data in ionic 3, where data is coming from PHP REST. Below is my angular code to get data: ``` this.auth.displayinformation(this.customer_info.cid).subscribe(takecusinfo => { if(takecusinfo){ this.storecusinfo = takecusinfo; console.log("...
2018/03/13
778
2,647
<issue_start>username_0: Hi here I created a login page where if the response is ok then it has to login other wise it has to display error. Below is my json data here I have to provide email and password correctly : ``` { Email": "<EMAIL>", password:<PASSWORD> } ``` below is my login method: ``` this.serv.g...
2018/03/13
1,265
4,508
<issue_start>username_0: I am starting to learn programming in C language the book I am refering to code shows some source code with `gets()` and my IDLE recognises it as well. But still while compiling it, my compiler doesn't agree with it. Can anyone help me out? I am using `gets()` in the main function and using cl...
2018/03/13
240
793
<issue_start>username_0: How can i create a generic array in java, the right way? ``` T[] buffer = (T[]) new Object[maxSize]; ``` Would it better to create a new generic collection and then cast it?<issue_comment>username_1: Somthing like this ``` final T[] a = (T[]) Array.newInstance(clazz, size); ``` Upvotes: 0...
2018/03/13
3,335
8,849
<issue_start>username_0: I am working with Microsoft SQL Server 2012. I have a table with Item transactions: ``` artcode transdate Qty transactionvalue ------------------------------------------------ M100 2010-11-24 6.00 179.40 M100 2010-11-24 -6.00 -179.4 M100 2010-11-25 100.00 ...
2018/03/13
504
1,768
<issue_start>username_0: I have a div and I want to put a display none when I click on it. I am using bootstrap4 and It has a css style called "d-none" that put display none to an element. For that, I have put this in the .js: ``` $("#div").on("click", function(e, m) { alert("Enter OK"); $("div").addClass("d-none...
2018/03/13
332
1,034
<issue_start>username_0: Is there a way or writing ``` filter(dataDF, column1 == 'myvalue' & column2 == 'myvalue') ``` without having to write out `myvalue` twice?<issue_comment>username_1: You can use `dplyr::filter_at` ``` filter_at(dataDF, c("column1", "column2"), all_vars(. == 'myvalue')) ``` Upvotes: 3 [selec...
2018/03/13
579
1,835
<issue_start>username_0: I have this Javascript ``` var START\_DATE = new Date("February 21, 2018 00:00:00"); // put in the starting date here var INTERVAL = 1; // in seconds var INCREMENT = 6720; // increase per tick var START\_VALUE = 17419171608; // initial value when it's the start date var count = 0; window.on...
2018/03/13
460
1,595
<issue_start>username_0: I was using Git and it was working fine but after a restart, it shows the following error: > > **git-sh-setup: file not found** > > > How to solve this issue?<issue_comment>username_1: I've run into this issue with the latest *Git on Windows* (v2.17.1.windows.2) and solved it both for `c...
2018/03/13
571
1,869
<issue_start>username_0: I'm coming from high language, PHP js and things. So this seem strange to me. I'm using either local or [online](http://cpp.sh/) interpreter but I always get this result. I suppose this result is because `'2'` is `50` in ASCII and `98` is `'b'` but I'm not sure. Also I don't really understand...
2018/03/13
489
1,318
<issue_start>username_0: I have a data frame like this: ``` a = pd.DataFrame({'foo':[1,2,3,'str']}) foo 0 1 1 2 2 3 3 str ``` I want to set the data type to int64: ``` a['foo'].astype('int32') ``` but I got an error message: ``` ValueError: invalid literal for int() with base 10: 'str' ``` How to ...