date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/14
1,496
5,153
<issue_start>username_0: I have an existing android app in the store, available for API 16+. I created a small module inside my app, using ARCore. If I update the app, and I use ARCore Required ( <https://developers.google.com/ar/distribute/> ), will my old APK still be available for devices that do not support ARCore...
2018/03/14
321
1,311
<issue_start>username_0: in my ios Project I have to improve the upload data performance hence I am uploading the data async in multiple threads, However `[HTTPMaximumConnectionsPerHost][1]` is 4 by default in iOS As I am using the shared session, i believe Its creating only 4 connections and which is making my thread...
2018/03/14
494
2,006
<issue_start>username_0: I have an disk storage that returns an `Object?` from disk (Could be already saved or not) and an BehaviourSubject (This data comes from other class call, check code below): Code is: ``` private val subject: Subject> = BehaviorSubject.create() fun getElements(): Observable> = Observable.con...
2018/03/14
697
2,119
<issue_start>username_0: I have an ArrayList of ArrayLists and inside those ArrayLists I store Strings, and I would like to sort those string according to their priority that I store on a HashMap. Is there a efficient way to accomplish this task simply iterating over them?<issue_comment>username_1: If I understand you ...
2018/03/14
1,337
2,940
<issue_start>username_0: I have a dataframe as show below: ``` df = index value1 value2 value3 001 0.3 1.3 4.5 002 1.1 2.5 3.7 003 0.1 0.9 7.8 .... 365 3.4 1.2 0.9 ``` the index means the days in a year( so sometimes the last number of index is 3...
2018/03/14
678
2,671
<issue_start>username_0: I have two imageviews with in my card view, now how can I setOnClickListeners so that I can know which button in which cardview is selected. im1 and im2 are my clickable ImageViews This is my code : ``` @Override public void onBindViewHolder(ViewHolder holder, int position) { ConnIfIn...
2018/03/14
314
1,288
<issue_start>username_0: Can I able to call a method which returns string inside an annotation. If so please guide me how to achieve this? I tried like this but this doesn't work for me. ``` @Description(value = Resource.getWord("key")) ```<issue_comment>username_1: An annotation only takes compile time constants...
2018/03/14
4,184
14,469
<issue_start>username_0: What am I doing: * User clicks a button, a `FileUpload` component (dialog) fires up and he can browse for and load a file from his PC. * When he clicks ok the file gets saved to the disk, in a specific location. * Prior to saving I'm renaming (or rather, saving with a specific name) his file u...
2018/03/14
4,254
14,462
<issue_start>username_0: I am trying to download records from twitter using `rtweet`. One issue with this is the twitter server needs to wait 15minutes every 18000 records. So, after record number 18000, I receive a data frame with all the records and a nice warning telling me to wait for a bit. `search_tweets` has an ...
2018/03/14
560
1,856
<issue_start>username_0: I am trying to get the following text "Hug­gies Pure Baby Wipes 4 x 64 per pack" shown in the code below. ``` document.write(getContents('wF8UD9Jj8:6D !FC6 q23J (:A6D c I ec A6C A24\<')); Hug­gies Pure Baby Wipes 4 x 64 per pack ``` I have tried using code such as: ``` foreach($element -...
2018/03/14
1,829
6,917
<issue_start>username_0: There is a recurring problem regarding status fields and similar predefined set of values. Let's take an example of an ordering system with an order entity which has a status that could be New, In Progress, Paid, etc. The problem: ------------ The Status of an order need to be * stored (in ...
2018/03/14
1,149
4,215
<issue_start>username_0: Im using a tableview to display an array of strings. When I click on a particular row, I want it to be highlighted with a checkmark. When I deselect a row, I want the checkmark to be removed. When I press a button, I want the rows that are currently highlighted to be passed out in an array(newF...
2018/03/14
632
2,417
<issue_start>username_0: I am frustrated about the right config of prettier to achieve normal style for jsx tags. I want this : ``` const template = ( Hello world! ============= This is some info ); ``` and I got this: ``` const template = ( Hello world! ============= This is some info {' '} ...
2018/03/14
987
3,457
<issue_start>username_0: I'm using the code by Arg0n from [add class if date is today](https://stackoverflow.com/questions/33935641/add-class-if-date-is-today) which works great! I was wondered if it's possible to add only one class, so if attribute data-date equals today add class *.active*, else add class to the prev...
2018/03/14
812
2,617
<issue_start>username_0: I'm trying to find the **nth digit** of an integer **(from right to left)**. I'm new to programming but have been using this site a lot for reference - up until now I've resisted passing my problems on but I cannot understand this one in the least, even after hours of effort. This is the code ...
2018/03/14
887
2,809
<issue_start>username_0: Environment: * Ubuntu 16.04 * Angular CLI 1.7.3 I'm getting the error by executing **ng generate component dashboard**, but it also happens with **ng generate c** ``` $ ng generate component dashboard The "c" alias is already in use by the "--collection" option and cannot be used by the "--...
2018/03/14
1,038
4,273
<issue_start>username_0: I have problem with my Angular. I have this functions: ``` private callUserInfo(): any { this.isLoading = true; return this._ajaxService.getService('/system/ping') .map( result => { this.userId = result.participant.substring(result.participant.indexOf('#')); this....
2018/03/14
387
1,837
<issue_start>username_0: I have learned statistics including mean, median, mode and different tests being Z test, F test and chi-square and all but generally participating in difficult numeric data prediction challenges like on kaggle and other platforms I hardly see anyone using statistical tests like z, f, chi-...
2018/03/14
3,141
13,225
<issue_start>username_0: My current Android application allows users to search for content remotely. e.g. The user is presented with an `EditText` which accepts their search strings and triggers a remote API call that returns results that match the entered text. Worse case is that I simply add a `TextWatcher` and tri...
2018/03/14
449
1,698
<issue_start>username_0: How to delete aws ECR repository which contain images through cloudformation? getting below error while deleting it. **The repository with name 'test' in registry with id '\*\*\*\*\*\*\*\*\*\*' cannot be deleted because it still contains images**<issue_comment>username_1: I was able to do thi...
2018/03/14
576
2,128
<issue_start>username_0: I have a `collectionviewController` and a `containerView` that contains a `text field` and `button` that on click sends a message. The `containerView` is pinned to bottom of my `view` with a fixed height. The `collectionViewCell` is going under the `containerView`. Like this [My simula...
2018/03/14
2,988
10,563
<issue_start>username_0: I am trying to gather some bootstrapped estimates for summary statistics from a dataset, but I want to resample parts of the dataset at different rates, which has led me to lean on nested for loops. Specifically, suppose there are two groups in my dataset, and each group is further divided in...
2018/03/14
903
3,498
<issue_start>username_0: if you ever encountered a problem, when you cannot issue a sluggable behavior on a translated field, I feel ya. Whenever you save a translation for an entity, 'slug' property is omitted because it's not dirty in the time of saving the translation entity. 1. You save an entity. 2. Translations...
2018/03/14
1,026
4,104
<issue_start>username_0: I'm building a rest service using jackson with a single instance of ObjectMapper where I can set my configuration. Java-side values are pojos with fields of types like String and int. Very simple, straightforward situation, nothing special. I want to perform some processing on every field of a...
2018/03/14
973
3,088
<issue_start>username_0: I am trying to return a specific item from a Pandas DataFrame via conditional selection (and do not want to have to reference the index to do so). Here is an example: I have the following dataframe: ``` Code Colour Fruit 0 1 red apple 1 2 orange orange 2 3 yellow banana...
2018/03/14
361
1,089
<issue_start>username_0: My theme uses the following syntax. I will need to target the `span` after the icon class `fa-lock` ``` My item ``` I tried: ``` .shiftnav .fa-lock span:first-of-type {color: #c1c1c1;} ``` But that doesnt work for some reason. Any ideas please.<issue_comment>username_1: You can use `.s...
2018/03/14
659
2,270
<issue_start>username_0: I installed Qt 5.10 SDK on Windows 10. I thought that the HiDPI issues were fixed in Qt 5.6, but Qt Creator still seems to be "too big": [![enter image description here](https://i.stack.imgur.com/qVIZ9.png)](https://i.stack.imgur.com/qVIZ9.png) Am I missing something? My resolution is 3840x21...
2018/03/14
604
2,150
<issue_start>username_0: I am trying to change the value of input type submit onclick. Please let me know where I'm going wrong. ```js var elem = document.getElementsByClassName("main-add-to-cart"); $('.main-add-to-cart').on('click', function() { if (elem.value == "Add to cart") { elem.value = "New Changed t...
2018/03/14
832
1,891
<issue_start>username_0: I am trying to concat two dataframes, horizontally. `df2` contains 2 result variables for every observation in `df1`. ``` df1.shape (242583, 172) df2.shape (242583, 2) ``` My code is: ``` Fin = pd.concat([df1, df2], axis= 1) ``` But somehow the result is stacked in 2 dimensions: ``` Fin...
2018/03/14
1,018
2,561
<issue_start>username_0: This is my controller method: ``` public function store(Request $request, $course_id){ $price['value'] = $request->price; $price['desc'] = $request->desc; If ($request->promo === "on") { $price['promo'] = 1; } else { $price['promo'] = 0; } $course = Cou...
2018/03/14
908
2,009
<issue_start>username_0: I have a text file(can be loaded into Excel) with three columns. I want to remove duplicate rows(by duplicate values in row-2) and keep the only one row where row-3 is higher value. For example the date is ``` Col1 Col2 Col3 abcd 1111 1000 efgh 1111 1001 ijkl 2222 1002 mnop 1111 1003 qrst...
2018/03/14
2,738
9,500
<issue_start>username_0: When I type in `MyFloatInput` TextInput then text start from `right` side of TextInput,It's working perfect but I set value of `MyFloatInput` TextInput from `.py` then it start from left side.It doesn't show in right side. Can someone tell me what is wrong with code? test.py ======= ``...
2018/03/14
804
3,226
<issue_start>username_0: I have seen the examples but I'm hoping to run this by other programmers. For encryption within my window forms app, I am generating two random numbers and saving them in an SQL Server table like thus: ``` OPEN SYMMETRIC KEY SymmetricKeyName DECRYPTION BY CERTIFICATE CertificateName; ...
2018/03/14
721
3,033
<issue_start>username_0: I am having some trouble passing a C++/CLI object pointer to a native object. The entire picture is the following: * I am new to C++ in general (doomed) * I am using a third party native C++ library to interface a blackmagic IO video card. In the API there is a very handy method to pass a poi...
2018/03/14
711
2,221
<issue_start>username_0: I am looking to identify parts of a string that are hex. So if you consider the string CHICKENORBEEFPIE, the match would be BEEF. To do this I came up with this expression `/[A-F0-9]{2,}(?![^A-F0-9])/g` This works perfectly - except it only matches BEE, not BEEF. Unless BEEF happened to be ...
2018/03/14
724
2,297
<issue_start>username_0: **WHAT I HAVE** Thanks to [this discussion](https://stackoverflow.com/a/13997498/1399706) I've solved the problem of the "always https" redirect using this in my `.htaccess`: ``` # Redirect to httpS by default RewriteCond %{HTTPS} off RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301...
2018/03/14
622
2,377
<issue_start>username_0: Is there a difference between those two bs4 objects? ``` from urllib2 import urlopen, Request from bs4 import BeautifulSoup req1 = Request("https://stackoverflow.com/") # HTTPS html1 = urlopen(req1).read() req2 = Request("http://stackoverflow.com/") # HTTP html2 = urlopen(req2).read() bsO...
2018/03/14
1,204
4,299
<issue_start>username_0: I am currently going through [the Rust Documentation](https://doc.rust-lang.org/beta/reference/items/implementations.html#inherent-implementations) to understand inherent implementations. What is the "nominal type" and what are they referring to when then they say "associable items to the imple...
2018/03/14
2,453
6,437
<issue_start>username_0: I'm trying to plot cuboids of different sizes using matplotlib, such that: after rotation the cuboids do not overlap visually in a non-physical way, the cubes have different colors and a box drawn around them. I've read several blog posts and stackoverflow pages referencing similar problems, b...
2018/03/14
1,291
5,049
<issue_start>username_0: In my app there is three languages i.e. **ar** , **fr** & **en**. And Based on the app language is changing the app language and semantics. In my app, app language is properly changed as per the requirement but its semantics is not changing. Here is the tried code what I am doing when user ch...
2018/03/14
998
3,290
<issue_start>username_0: here is my build.sbt ``` name := "tutu" organization := "com.tutu" version := "1.0" // Enables publishing to maven repo publishMavenStyle := true // Do not append Scala versions to the generated artifacts crossPaths := false // This forbids including Scala related libraries into the depende...
2018/03/14
693
2,605
<issue_start>username_0: I'm trying to connect to a Google Cloud SQL second generation in Python from AppEngine standard (Python 2.7). Until now, I was using MySQLDB driver directly and it was fine. I've tried to switch to SQLAlchemy, but now I'm always having this error when the code is deployed (it seems to work fin...
2018/03/14
1,084
3,352
<issue_start>username_0: I'm trying to make using of String.Substring() to replace every string with its substring from a certain position. I'm having a hard time figuring out the right syntax for this. ``` $dirs = Get-ChildItem -Recurse $path | Format-Table -AutoSize -HideTableHeaders -Property @{n='Mode';e={$_.Mode}...
2018/03/14
551
1,966
<issue_start>username_0: I need to select row with distinct value of column A and with minimal value of Order column in MSSQL DB. Each record has more columns on the right hand side. I know I should used GROUP BY, but it does throw warnings, when I want to keep the right hand side columns a well. Data set example: ...
2018/03/14
1,179
4,211
<issue_start>username_0: I'm using Contact form 7 pugin in Wordpress. I need to populate a Select field with "crops" that are in a MySQL DB, and depending of the chosen one, a second Select has to be populated with this crop's "variety. I know that using CF7 conditional fields it is possible, but there are 53 crops an...
2018/03/14
362
1,458
<issue_start>username_0: I'm using Android Data Binding library to bind an xml layout that has an layout.xml ``` xml version="1.0" encoding="utf-8"? ... ... ``` In the generated Databinding class for the xml I see this property: ``` @Nullable public final com.example.databinding.SomeOtherLayoutBinding includ...
2018/03/14
351
1,172
<issue_start>username_0: I Have some strings: ``` 1:2:3:4:5 2:3:4:5 5:3:2 6:7:8:9:0 ``` How to find strings that have exact numbers of colons? Example I need to find strings where 4 colons. Result: `1:2:3:4:5` and `6:7:8:9:0` `Edit:` No matter what text between colons, it may so: ``` qwe:::qwe: :99...
2018/03/14
837
3,833
<issue_start>username_0: In My android application i have 2 fields one for dateOfBirth and another for dateOfMarriage. I want to keep the validation that the difference between 2 fields must be > 18years. Can anyone help? Thanks in Advance<issue_comment>username_1: ``` mycalendar=Calendar.getInstance(); final D...
2018/03/14
2,220
7,305
<issue_start>username_0: I'm looking for exactly this operation: [How do I duplicate rows based on cell contents (cell contains semi-colon seperated data)](https://stackoverflow.com/questions/44732943/how-do-i-duplicate-rows-based-on-cell-contents-cell-contains-semi-colon-seperat) But with an added column: [Starting t...
2018/03/14
688
2,611
<issue_start>username_0: I'm using one module AJAX `d_quickcheckout` for faster checkout page on `opencart 2.1` (not the default one). The problem is with one field on `payment address` section not to be selected by `default`, this is `region/state` field. At the moment the field has the region/state where the store is...
2018/03/14
689
2,738
<issue_start>username_0: I call delete in destructor but it say: undentifier "data" is undefined! Shouldn't delete work in the destructor? ``` struct Coada { Coada(int size_max=0) { int prim = -1; int ultim = -1; int *data = new int[size_max]; } ...
2018/03/14
834
2,897
<issue_start>username_0: So for input: ``` <NAME> ``` I Should get output: ``` Arrondissement de Boulogne-sur-Mer Arrondissement Den Bosch ``` So it should give back both results. So in below code I've capitalized every first character of the word but this isn't correct because some words do not start with an u...
2018/03/14
1,256
4,795
<issue_start>username_0: ``` .MODEL TINY Kod SEGMENT ORG 100h/256 ASSUME CS:Kod, DS:Tekst, SS:Stosik Start: jmp Petla Tekst DD napis, '$' Poczatek: mov bl, napis Petla: cmp ...
2018/03/14
552
1,777
<issue_start>username_0: I'm trying to move the title upper inside of the pic.I'm created an div but it doesn't appear correctly.Then I remove.I changed to code of the existing div. [![This is what I want.](https://i.stack.imgur.com/kbq9U.png)](https://i.stack.imgur.com/kbq9U.png) but show [![this](https://i.stack.img...
2018/03/14
578
1,727
<issue_start>username_0: An irregular time series `data` is stored in a `pandas.DataFrame`. A `DatetimeIndex` has been set. I need the time difference between consecutive entries in the index. I thought it would be as simple as ``` data.index.diff() ``` but got ``` AttributeError: 'DatetimeIndex' object has no at...
2018/03/14
761
2,340
<issue_start>username_0: While reading through the Crystal docs, I came across this line: ``` deq = Deque{2, 3} ``` So I think this calls the `Deque.new(array : Array(T))` constructor. However, I did not find any documentation about this syntax whatsoever. (**EDIT**: [The documentation can be found here](https://c...
2018/03/14
699
2,635
<issue_start>username_0: Here, I am creating Angular 2 application with distributed database and micro-service architecture. In my application scenario, the application condition is that we are having normal user functionality as well as admin functionality like modify, delete organization attributes etc. Suppose, a ...
2018/03/14
693
2,079
<issue_start>username_0: My table: ``` id | request | subject | date 1 | 5 | 1 | 576677 2 | 2 | 3 | 576698 3 | 5 | 1 | 576999 4 | 2 | 3 | 586999 5 | 2 | 7 | 596999 ``` Need to select unique records by two colu...
2018/03/14
1,065
3,936
<issue_start>username_0: I am building a simple sign up form using ajax when I creating a data object and pass to PHP file.It shows variables and doesn't show values of that PHP variable. The code of HTML of form is ``` Name \* Institute Name \* Register » ``` The code of js is ``` $(document).ready(functio...
2018/03/14
387
1,363
<issue_start>username_0: Parsing data from a dataset where some images are not available so I want to create a new row `exists` so I can loop through the image names which are `.jpg` to put there False or True. Getting a unicode error ``` import pandas as pd from pandas import Series train = pd.read_csv('train.csv') ...
2018/03/14
214
892
<issue_start>username_0: I would like to know that whether we can receive scheduled local notification from iphone device and we can receive that notification on Apple watch. I also want to update the status in my local database from that notification. Note: The app is local, it's not remote and have local database in...
2018/03/14
359
1,394
<issue_start>username_0: While trying to implement gravity in my "Donkey Kong" game, i ran into a problem. The jump movement works perfectly fine when Mario is on a platform. But however when he's falling from one platform to another, the collision with the next platform doesn't get detected and so mario goes through t...
2018/03/14
848
3,247
<issue_start>username_0: Running `docker-compose up -d` I got the following error: ``` Starting cr-redis ... Starting cr-rabbitmq ... Starting cr-rabbitmq ... error Starting cr-redis ... error Starting cr-mysql ... error ERROR: for cr-mysql Cannot start service mysql: container "ff36...1116": already exists ERR...
2018/03/14
709
2,141
<issue_start>username_0: I want to setup a cronjob for PHP script in ubuntu I enter this command in terminal ``` $ crontab -e ``` Then I choose nano editor which is recommended by ubuntu. Then I enter the blow line into that. Then I press control+C, it asking Y/N for save. I press Y and F2 for close. ``` * */2 * ...
2018/03/14
250
511
<issue_start>username_0: How do you convert the following date Mar 7 2017 1:26:46:886AM to 2017-03-07 01:26:00 ``` select DATE_FORMAT(STR_TO_DATE('Mar 7 2017 1:26:46:886AM', '%b-%d-%Y'), '%Y-%m-%d'); ``` I keep getting null<issue_comment>username_1: This is the answer ``` SELECT STR_TO_DATE("Mar 7 2017 1:26:46:886A...
2018/03/14
2,650
9,539
<issue_start>username_0: I've got a simple project in Gradle 4.6 and would like to make an executable JAR of it. I've tried `shadow`, `gradle-fatjar-plugin`, `gradle-one-jar`, `spring-boot-gradle-plugin` plugins but neither of them adds my dependencies declared as `implementation` (I don't have any `compile` ones). It ...
2018/03/14
1,045
3,900
<issue_start>username_0: I am writing unit-tests while I've stumbled upon following suggestion by Resharper. > > Value assigned is not used by any execution path. > > > in the following code snipet. ``` [Test] [TestCase((int)OddsRoundingModes.Floor)] public void GetBaseOddsRoundingMode_WithCorrectRoundingMode_Sh...
2018/03/14
602
2,042
<issue_start>username_0: I am using knockout js here. I have a HTML table and the table has 4 columns. I have button to add a row to table and then remove button against each row to delete it. HTML table as below. ``` | Input | First Name | Last Name | Address | | --- | --- | --- | --- | | One Two Three | | ...
2018/03/14
634
2,361
<issue_start>username_0: I'm trying to create a local user in an Azure AD B2C directory which can be used for authentication immediately after creation. ``` Connect-AzureAD -TenantId $targetB2cTenant $passwordProfile = New-Object -TypeName Microsoft.Open.AzureAD.Model.PasswordProfile $passwordProfile.Password = "<PAS...
2018/03/14
588
2,547
<issue_start>username_0: This is my array whose name is **ClassSectionMapObjArray** which contains **StudentSectionObjectArray** and this contains **StudentSectionObject**. In **StudentSectionObject** there is a **studentObj** Array from which i have to fetch **studentName** alphabetically. ``` Array ( ...
2018/03/14
1,398
5,142
<issue_start>username_0: Floating point expressions can sometimes be contracted on the processing hardware, e.g. using fused multiply-and-add as a single hardware operation. Apparently, using these this isn't merely an implementation detail but governed by programming language specification. Specifically, the C89 stan...
2018/03/14
1,321
4,838
<issue_start>username_0: A very nice tool to check for dead links (e.g. links pointing to 404 errors) is [`wget --spider`](https://www.digitalocean.com/community/tutorials/how-to-find-broken-links-on-your-website-using-wget-on-debian-7). However, I have a slightly different use-case where I generate a static website, a...
2018/03/14
526
1,599
<issue_start>username_0: The List type is created with ``` data [] a = [] | a : [a] ``` But I can't create my own type with the same structure: ``` data %% a = %% | a : %a% ``` > > error: parse error on input `%%' > > ><issue_comment>username_1: > > The List type is created with > > > > ``` > data [] a = [...
2018/03/14
994
3,079
<issue_start>username_0: I'm looking for a solution to transform a list in my values.yaml in a comma separated list. values.yaml ``` app: logfiletoexclude: - "/var/log/containers/kube*" - "/var/log/containers/tiller*" ``` \_helpers.tpl: ``` {{- define "pathtoexclude" -}} {{- join "," .Values.app.logfilet...
2018/03/14
629
1,913
<issue_start>username_0: I am pretty new on CSS/Html/JS and want to create a series of Boxes (loaded from a json file) and display them horizontally. Something like This: [![enter image description here](https://i.stack.imgur.com/ZgxMR.png)](https://i.stack.imgur.com/ZgxMR.png) I tried to achieve this with the follow...
2018/03/14
1,204
4,626
<issue_start>username_0: I have a pretty simple query here. I have a view page with an div and a form element. This is how they look. ``` ``` I need to access the value of candy inside input's attribute (it can be any attribute). I tried the code as I have shown above but that didnt work. I researched on StackOve...
2018/03/14
3,041
10,394
<issue_start>username_0: I receive the following exception when try to create a ListView.builder using data from local json. [ERROR:topaz/lib/tonic/logging/dart\_error.cc(16)] Unhandled exception: type 'List' is not a subtype of type 'Map' in type cast where List is from dart:core Map is from dart:core Please someo...
2018/03/14
500
1,544
<issue_start>username_0: ``` #include< stdio.h> int main() { char *name[] = { "hello" , "world" , "helloworld" }; /* character array */ printf("%s", (*(name+2)+7)); return 0; } ``` The above code prints out "rld". I wants to print only "r".<issue_comment>username_1: Use %c: ``` printf("%c", *(...
2018/03/14
499
1,649
<issue_start>username_0: Drupal 7 to Drupal 8 migration. I've migrated terms in the source language, but I'm unable to migrate term's translations (i18n) - name and description. I've created a custom source plugin, where I create new fields with translations for taxonomy name and description. So how to migrate term ...
2018/03/14
1,135
3,560
<issue_start>username_0: I use AngularJs and I have the below code : ``` <tr ng-repeat=" a in table> {{a.ClientID}} | {{a.SiteName}} | {{a.Group}} | ``` the result of this table is: ``` ClientID SiteName Group ========= ========== ======= 1 Ikaria Group 2 Ikaria Group ...
2018/03/14
1,413
3,965
<issue_start>username_0: Im trying to plot a dataframe like this: ``` A = pd.DataFrame([[1, 5, 2, 8, 2], [2, 4, 4, 20, 2], [3, 3, 1, 20, 2], [4, 2, 2, 1, 0], [5, 1, 4, -5, -4], [1, 5, 2, 2, -20], [2, 4, 4, 3, 0], [3, 3, 1, -1, -1], [4, 2, 2, 0, 0], [5, 1, 4, 20, -2]], columns...
2018/03/14
565
1,503
<issue_start>username_0: I want to turn the entire content of a numeric (incl. NA's) data frame into one column. What would be the smartest way of achieving the following? ``` >df <- data.frame(C1=c(1,NA,3),C2=c(4,5,NA),C3=c(NA,8,9)) >df C1 C2 C3 1 1 4 NA 2 NA 5 8 3 3 NA 9 >x <- mysterious_operation(...
2018/03/14
463
1,690
<issue_start>username_0: I'm trying to use a select element with mode="multiple". I'd like for input to be disabled, meaning that a user can only choose between existing options, not enter text. How do I do this? My element: ``` import { Select } from 'antd'; import 'antd/dist/antd.css'; const { Option, OptGroup } = ...
2018/03/14
338
1,347
<issue_start>username_0: I am trying to use aws appsync api (StartSchemaCreation) to create schema of a new graphql api with the schema of an existing graphql api, that I dumped with GetIntrospectionSchema api of aws appsync. But the --definition param of StartSchemaCreation requires me to provide a blob of graphql sch...
2018/03/14
1,070
4,189
<issue_start>username_0: I came across a piece of code where two methods have very similar functionalities, return the same type, but are different. ``` private Set extractDeviceInfo(List devices){ Set sets= new HashSet<>(); for(Device item:items){ sets.add(item.getDeviceName()); } return sets; } private Set ex...
2018/03/14
3,483
14,352
<issue_start>username_0: I want to test a create method of my project, but this create method has 3 steps in my form and I want to test all of them. To test each step I need to send a create request with their respective params of the step. The problem is: I am repeating many params in each step, I want to know how c...
2018/03/14
1,976
6,994
<issue_start>username_0: I'm using this method in a fragment to compress an image, if I'm not mistaken and then upload it to google firebase server: ``` Bitmap thumb_bitmap = new Compressor(this.getActivity()) .setMaxWidth(200) .setMaxHeight(200) .setQuality...
2018/03/14
805
2,924
<issue_start>username_0: I am trying to write a code for squaring the user input number in Python. I've created function my1() ... What I want to do is to make Python to take user input of a number and square it but if user added no value it gives a print statement and by default give the square of a default number f...
2018/03/14
394
1,374
<issue_start>username_0: I want to set the condition which shows all vehicles where the `title_recieved` is `null`. ``` ->andFilterWhere(['=', 'tr.title_recieved', null]) ->andFilterWhere(['is', 'tr.title_recieved', null]) ->andFilterWhere(['is', [ 'tr.title_recieved', null]]) ``` I've tried all the available opt...
2018/03/14
789
2,386
<issue_start>username_0: I use puTTy to connect to a remote server running Linux. When I run ``` abc@myName((/home/myName)$java -version ``` I get the following ``` java version "1.7.0_80" Java(TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode) ``` Then...
2018/03/14
1,190
4,512
<issue_start>username_0: I'm currently developing a Serverless App with AWS. I want to subscribe to a topic using plain JavaScript (No Node.js, React, Angular etc.) The IoT and IoTData SDK's doesn't support a "subscribe to topic" function. To achieve this, i need to implement the `aws-iot-device` sdk, via `require('...
2018/03/14
794
2,769
<issue_start>username_0: I used an `XMLHttpRequest` object to retrieve data from a PHP response. Then, I created an XML file: ``` xml version="1.0" encoding="UTF-8"? Ce male 24 Lin female 25 ``` In the PHP file, I load the XML file and try to echo tag values of "name." ``` $dom = new DOMDocument("1.0"); $d...
2018/03/14
1,009
2,791
<issue_start>username_0: Hey so I have arduino uno and a sim808 with gps antenna and gsm antenna. So here's the sample code: ``` #include #include #define PIN\_TX 3 #define PIN\_RX 4 SoftwareSerial mySerial(PIN\_TX,PIN\_RX); //DFRobot\_SIM808 sim808(&mySerial);//Connect RX,TX,PWR, DFRobot\_SIM808 sim808(&mySerial)...
2018/03/14
720
2,260
<issue_start>username_0: i have a graphical interface where a user could enter a datafilter as a string, like: ``` >= 10 <= 100 ``` I like to create an if-condition from this string. The code i currently got splits the string into a list: ``` import re def filter_data(string_filter) # \s actually not necessa...
2018/03/14
825
3,062
<issue_start>username_0: I am looking for a code snippet using which, I can enable/disable sidebar toggle button in shinydashboard header. ``` library(shiny) library(shinydashboard) library(shinyjs) ui <- shinyUI(dashboardPage( dashboardHeader(), dashboardSidebar(), dashboardBody( useShinyjs() ) )) serve...
2018/03/14
5,903
20,849
<issue_start>username_0: while iam trying to build my app some gradle updation was done dynamically and after that my build was failed, i searched on my issue but none was ove my error, after that i tried to create a new app and tried to implement app same as i had before, while implementing the new one, i need to inst...
2018/03/14
564
1,739
<issue_start>username_0: I would like to select first occurrence of `li` from an `ul` which is not having particular class. Check below snippet for example, Here I wanted add class `red` to first `li` which is not having class `myClass`. Here am expecting `- Two` should add class `red`. ```js $(document).ready(funct...
2018/03/14
986
3,645
<issue_start>username_0: Hello I am currently building a table that will allow multiple column types in it. I want to be able to use this like: ```html ``` `text-column` and `icon-column` are separate directives. I currently have an abstract class called `column` and lets say the `text-column` and the `icon-column...
2018/03/14
823
2,899
<issue_start>username_0: [The Algorithm](https://i.stack.imgur.com/gUwqZ.png) [This question (1-b)](https://i.stack.imgur.com/n3W4W.png) is asking for the number of comparisons made by the algorithm above in the average case, given the probability of successful search, which is p (0<=p<=1). All I understand is this:...
2018/03/14
638
2,229
<issue_start>username_0: Let's say I have method like this: ``` public int toTest() { try { Thread.sleep(60 * 1_000); } catch (InterruptedException ignored) {} return 8; } ``` And I would like to test it e.g. check if returned value is correct, like this: ``` @Test public void test() { int actual = ...