date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/02/28 | 715 | 2,643 | <issue_start>username_0: I have this levenstein algorithm:
```
public static int? GetLevenshteinDistance(string input, string output, int maxDistance)
{
var stringOne = String.Empty;
var stringTwo = String.Empty;
if (input.Length >= output.Length)
{
... |
2018/02/28 | 999 | 3,193 | <issue_start>username_0: I am exploring how JSPs can be served from JAR file. I'm using SpringBoot 1.5.10.RELEASE
I referred [this](https://dzone.com/articles/spring-boot-with-jsps-in-executable-jars-1%22this%22) & [this](https://www.logicbig.com/tutorials/spring-framework/spring-boot/boot-serve-dynamic.html) examples... |
2018/02/28 | 302 | 1,109 | <issue_start>username_0: Currently we are using plugins to integrate records for Dynamics CRM 2011 (on premise) to back office (SQL Server) using WCF as a bridge. This process is same for insert and update. (Plugin > WCF > stored procedure)
However, we are due to upgrade to Dynamics CRM 365 on Azure and wondering if t... |
2018/02/28 | 882 | 2,810 | <issue_start>username_0: I have a series of data points in a table in an Azure SQL database. When plotted, the points have the following distribution:
[](https://i.stack.imgur.com/EPUsI.png)
What I am trying to do is add padding so that they have the... |
2018/02/28 | 906 | 2,768 | <issue_start>username_0: I tried to add the Google location Service to my Android Project by referencing the official [link](https://developers.google.com/android/guides/setup "linkquot;").
As the tutorial said I added the following line to the dependencies section in the Project Gradle file.
```
implementation "com.... |
2018/02/28 | 565 | 1,931 | <issue_start>username_0: ```
public static void main(String [] args) {
String patternString = "\"[^a-zA-Z\\s]]+\"";
String s = WordUtils.capitalizeFully("*tried string", patternString.toCharArray());
System.out.println(s);
}
```
I want to capitalize first letter of each word. I use `WordUtils` function. A... |
2018/02/28 | 601 | 2,027 | <issue_start>username_0: ```
RT @Complex: 'Atlanta' Season 2 director: "If the first season is College Dropout, this one is Late Registration."
@pastorjnelson <NAME>, I have spoken to you before. But, lol, you didnt know who I was. Or maybe, I didnt know2026
```
Suppose I have two strings shown above. I want to ... |
2018/02/28 | 904 | 3,352 | <issue_start>username_0: I am new to iOS app development and currently facing some issues segueing from a UIButton to a UIViewController. I did above in Main.storyboard by:
* selecting UIButton
* holding "control" and dragging to UIViewController
* Selecting "push" under Action Segue
After running this, i get below ... |
2018/02/28 | 605 | 1,919 | <issue_start>username_0: Hy Guys,
I have a table like that:
```
+----+------+
| id | grade|
+----+------+
| 1 | 1 |
| 2 | 1 |
| 3 | 2 |
| 4 | NULL |
| 5 | NULL |
| 6 | NULL |
+----+------+
```
Where
1 Bad
2 Good
3 Very Good
Im trying to get a result something like that:
```
+--------------+-----... |
2018/02/28 | 594 | 1,982 | <issue_start>username_0: I have the two following sentences:
>
> 1: KEYWORD this is a random sentence
>
> 2: this is another random sentence
>
>
>
I would like to match all after KEYWORD if KEYWORD exists, and if it doesn't, I want to match all.
So the output would be:
>
> 1: this is a random sentence ... |
2018/02/28 | 725 | 2,547 | <issue_start>username_0: I'm writing some code and I have a dictionary where the key is any string, and the value is a function. I then loop through each key in the dictionary and call the functions, like so:
```
class SomeClass:
dictionary = {}
# Not sure how to use this decorator function
def decorator... |
2018/02/28 | 1,540 | 5,495 | <issue_start>username_0: I have a small report that needs to be ordered by postcode. How do I do this?
Using `ORDER BY Postcode` returns
`SK1
SK11
SK13
SK2`
**How can I return**
`SK1
SK2
SK11
SK13`
**EDIT**
I should really have added more to the question, I am working with postcodes for the whol... |
2018/02/28 | 604 | 2,174 | <issue_start>username_0: I´m working on an app with Apple's PDFKit and have managed to put some Annotation-Buttons with a working `PDFActionURL`, which open the iOS standard browser after tapping on them.
Unfortunately, I did not find a working solution, how to open the associated links in an In-App-Browser or to load... |
2018/02/28 | 976 | 4,131 | <issue_start>username_0: Current Stack: Angular 1.6, BreezeJS (to handle offline/online), .net web api, azure sql
Moving to Stack: Angular 5, NgRx (to handle offline/online), .net core Web API, Azure SQL
**Background:**
I have a web application that has to work offline/online. While users are in a connected environ... |
2018/02/28 | 829 | 2,981 | <issue_start>username_0: I found that AWS Glue set up executor's instance with memory limit to 5 Gb `--conf spark.executor.memory=5g` and some times, on a big datasets it fails with `java.lang.OutOfMemoryError`. The same is for driver instance `--spark.driver.memory=5g`.
Is there any option to increase this value?<issu... |
2018/02/28 | 927 | 3,181 | <issue_start>username_0: I'm wondering why the below code generates the strange results, and compiler doesn't show any error or warning. This looks like an extremely efficient source of bugs.
```
val a = 10 * 20 +
10 * 30
val b = 10 * 20
+ 10 * 30
val c = (
(10 * 20)
... |
2018/02/28 | 2,625 | 10,615 | <issue_start>username_0: I have the following class:
```
public class Kit {
private String name;
private int num;
}
```
And I have a class which extends Kit with additional functionality:
```
public class ExtendedKit extends Kit {
private String extraProperty;
}
```
With Gson, I want to be able to des... |
2018/02/28 | 2,297 | 8,249 | <issue_start>username_0: Is anyone has an example of how to upload a file in NestJs using GraphQl?
I can upload using given example via controller
<https://github.com/nestjs/nest/issues/262#issuecomment-366098589>,
but I couldn't find any comprehensive documentation how to upload using GrahpQL in NestJS<issue_comme... |
2018/02/28 | 923 | 2,662 | <issue_start>username_0: I have to do a report for tickets requested on my system.
The tickets are called from a workstation, and that workstation is related to many areas.
```
SELECT
DATE(q.created_at) AS DATE,
HOUR(q.created_at) AS HOUR,
ar.name AS area,
w.name AS workst... |
2018/02/28 | 947 | 3,118 | <issue_start>username_0: I see a crash whenever my android app initializes a kotlin class. From the stack trace, I see it's from the static initializer of the `BuiltInsLoader.Companion` object:
>
> kotlin.collections.CollectionsKt\_\_\_CollectionsKt.first
> (CollectionsKt\_\_\_CollectionsKt.java:166)
> kotlin.refle... |
2018/02/28 | 825 | 1,970 | <issue_start>username_0: I have a dataframe with some NaNs:
```
hostname period Teff
51 Peg 4.2293 5773
51 Peg 4.231 NaN
51 Peg 4.23077 NaN
55 Cnc 44.3787 NaN
55 Cnc 44.373 NaN
55 Cnc 44.4175 NaN
55 Cnc NaN 5234
61 Vir NaN 5577
61 Vir 38.021 NaN
61 Vir 123.01 NaN
```
The rows with the same "hostname"... |
2018/02/28 | 792 | 2,577 | <issue_start>username_0: My app fetch a list of resources strings + placeholders tokens and it should change the token with a given value.
An example of such resource is : `"http://example.com/?name=${name}&age=${age}";`
*(I get many like these in an array but that's not relevant).*
So now I have this^ string and I ... |
2018/02/28 | 1,329 | 3,713 | <issue_start>username_0: I'm working in python 2.7. I want to remove the non-alphabetic characters from each list in a list of lists without modifying the structure of the lists.
Starting example list of lists:
```
csvarticles = [['[Beta-blockers]', 'Magic!', '1980', 'Presse medicale'],['Hypertension in the pregnant ... |
2018/02/28 | 418 | 1,656 | <issue_start>username_0: I couldn't get jql to work properly in jira (my version: v.7.6.5)
Say if I have a field named `location` and here's the value for the location field:
`Seattle - East`
And when I search in jql with query:
`location ~ "Seattle - East"` nothing would come back.
Can anyone help with search... |
2018/02/28 | 824 | 3,137 | <issue_start>username_0: I am struggling with a query of data I need just one row of for EACH account in a table (thousands), based on selecting the highest sequence in a different column (Account\_Occupant).
I need to return a distinct account number (90006), the highest account\_occupant (11) and name corresponding ... |
2018/02/28 | 796 | 1,942 | <issue_start>username_0: I hope I remember SQL and that this is not a silly question...: I have the result of a complex query as a tuple containing two elements, I'd like to obtain a list containing a union of those elements. I'm using Postgresql but I'd like standard SQL
So, I have
select foo which gives as a result ... |
2018/02/28 | 1,484 | 5,719 | <issue_start>username_0: Good afternoon!
I'm starting spring studies, I'm following a tutorial the same way, but it returns an error:
[](https://i.stack.imgur.com/jJ1lY.png)
Folder structure:
[, exposed the metrics servlet (dedicated war file), started on a dedicated machine a Prometheus server + Grafana using Docker images. Everything's wo... |
2018/02/28 | 845 | 2,838 | <issue_start>username_0: I just started using powershell and i want to write basic shell script to delete Windows 10 defaults apps,, like XBOX,Instagram and others, this is how my script looks like.
```
$appXPackage = "Get-AppXPackage -Name"
$appXPackage + ' Microsoft.XboxGameCallableUI' | Remove-AppxPackage
```
Get... |
2018/02/28 | 694 | 1,736 | <issue_start>username_0: I have created a correlation matrix in R using:
```
cor(df, use = "p")->df_corr
```
Then I melted the matrix using:
```
melt(df_corr) -> df_corr_melted
```
to get:
```
Var1 Var2 value
A B .1
A C .2
A A 1
B A .1
B C .4
B B 1
C A .2
C B ... |
2018/02/28 | 698 | 1,833 | <issue_start>username_0: I'm new to Typescript, and I would like to be able to run a method when I click on an element.
I've created a project and process ts file with awesome-typescript-loader with webpack.
I've created a TS class :
```
export class MyApp {
myMethod(myParam: number): void {
console.log(... |
2018/02/28 | 607 | 1,603 | <issue_start>username_0: I am trying to remove the title/label from only one of five tabs, using React Navigation. I know that `showLabel: false` will remove the label from all tabs, but I am looking to remove just one. If I set `title; ''`, it will insert an empty string, but will take up space. This is the tab from w... |
2018/02/28 | 320 | 1,225 | <issue_start>username_0: First of, `spyOnProperty` is giving me `Property user does not have access type get` with this line: `spyOnProperty(userService, 'user', 'get').and.returnValue(Observable.of(adminUser));`
I have a UserService with a `user` property as such:
```
export class UserService {
user: BehaviorSubje... |
2018/02/28 | 638 | 1,551 | <issue_start>username_0: I have a table df that looks like this:
```
a <- c(10,20, 20, 20, 30)
b <- c("u", "u", "u", "r", "r")
c <- c("a", "a", "b", "b", "b")
df <- data.frame(a,b,c)
```
I would like to create a new table that contains the mean of col a, grouped by variable c. And I would like to have a column with ... |
2018/02/28 | 505 | 1,740 | <issue_start>username_0: I'm completely new to Backbone.js and jQuery and I'm trying to set an input field of a form to "disabled" when I check a checkbox. I'm not sure if I have to do it the way I show in the code below, if so what should I do in the disableInput function?
**JS**
```
events: {
'change #myCheckbo... |
2018/02/28 | 666 | 2,342 | <issue_start>username_0: i saved photo in server and show it in another place in my app but image doesn't appear in imageview and when i make log.e for url of image url was correct so i don't know why image not appear in imageview any help ????
```
public CustListMis(Activity context, ArrayList NameArray, ArrayList qu... |
2018/02/28 | 350 | 1,234 | <issue_start>username_0: My helper root
app\http\myHelpers\customClass.php
customClass.php
```
php
namespace App\Http\myHelper;
class CustomClass {
public static function customFunction(){
return 'Custom class working......';
}
}
</code
```
Controller function
```
public function test(){
... |
2018/02/28 | 1,317 | 5,639 | <issue_start>username_0: Update 2
--------
I had a talk with a google engineer on Google I/O '18. He told me that I can trust the fusedLocationProvider. If he marks the last known location with a new timestamp the user is probably still at the same location.
I'd like to do a few tests with a "moving" device in the f... |
2018/02/28 | 674 | 2,449 | <issue_start>username_0: I've [seem](https://stackoverflow.com/questions/43720930/flutter-side-menu) [examples](https://stackoverflow.com/questions/47953410/flutter-drawer-widget-change-scaffold-body-content) on how to set up a drawer in Flutter (`return new Scaffold(drawer: new Drawer( ... )` or `return new Scaffold(e... |
2018/02/28 | 513 | 1,825 | <issue_start>username_0: Maybe this is a silly question, but I don't get why I can't add a default value based on another prop on a stateless component like this one:
```
const Link = ({
children,
target,
rel = target === '_blank' && 'noopener noreferrer',
href,
...attributtes
}) => (
[{children}]({href}) ... |
2018/02/28 | 741 | 2,708 | <issue_start>username_0: What is the runing time of this algorthm in Big-O and how i convert this to iterative algorthm?
```
public static int RecursiveMaxOfArray(int[] array) {
int array1[] = new int[array.length/2];
int array2[] = new int[array.length - (array.length/2)];
for (int index = 0; index < ar... |
2018/02/28 | 842 | 3,013 | <issue_start>username_0: I've written some VBA to copy and paste some data from one workbook into another:
```
Dim x As Workbook
Dim y As Workbook
' Open both workbooks
Set y = ActiveWorkbook
Set x = Workbooks.Open("Data.csv")
' Copy data from x
x.Sheets("SourceData").Range("A1", _
x.Sheets("SourceData").Range("... |
2018/02/28 | 438 | 1,542 | <issue_start>username_0: I have been trying to find the location of an attribute (line, column) in a specific xml node. I know i can reach the node and the attribute value by using XPATH or sax parser but havent found a way to locate the position of the attribute.
Appreciate your help<issue_comment>username_1: For exam... |
2018/02/28 | 532 | 1,681 | <issue_start>username_0: I wasn't sure how to word the title, but here is what I am trying to do. I have a table where the id can have multiple entries
```
id | number
___________
1 | 90
1 | 88
2 | 88
3 | 88
```
I want a query that will return all ids that don't contain the number 90, so only 2 and 3 in this exa... |
2018/02/28 | 746 | 2,792 | <issue_start>username_0: Since I am new to bigquery, I am struggling with basic stuffs. The table contains 145 records. How to create array from the table. Here is the downloadable link <https://drive.google.com/uc?export=download&id=1SvkAN8sqS7WnsBO-X3UnyXI8sen5TOZ0> . The downloadable file is in csv format. I would l... |
2018/02/28 | 1,293 | 2,769 | <issue_start>username_0: I would like to use the *filter()* function from **dplyr** with a dynamic variable name :
```
data(mtcars)
var1 <- 'hp'
mtcars %>% filter(hp == 110) # works
mtcars %>% filter(var1 == 110) # doesn't works
```
With new version of dplyr package, it seems to be possible to do this (with... |
2018/02/28 | 885 | 2,870 | <issue_start>username_0: I'm trying to following the instructions on <https://docs.djangoproject.com/en/2.0/howto/static-files/>, but I'm running into unexpected results. I have a Django project with an app `dashboard` like so:
```
.
├── dashboard
│ ├── __init__.py
│ ├── admin.py
│ ├── apps.py
│ ├── migrations... |
2018/02/28 | 1,636 | 6,089 | <issue_start>username_0: Currently I'm using an AWS Glue job to load data into RedShift, but after that load I need to run some data cleansing tasks probably using an AWS Lambda function. Is there any way to trigger a Lambda function at the end of a Glue job? Lambda functions can be triggered using SNS messages, but I ... |
2018/02/28 | 232 | 878 | <issue_start>username_0: I am trying select a date from an Oracle DB *(1 row result)* and assign its value to an SSIS variable. I tried to convert it `to_char` (which would also work great to me) but I still get an error `"SSIS value does not fall within the expected range"`<issue_comment>username_1: You'll need to ens... |
2018/02/28 | 1,057 | 4,722 | <issue_start>username_0: I have a code in my Play Scala (2.5x, 2.11.11) app which has been running just fine so far (it is based on the following link: <https://fizzylogic.nl/2016/11/27/authorize-access-to-your-play-application-using-action-builders-and-action-functions/>). But now I need to pass another class instance... |
2018/02/28 | 1,422 | 4,067 | <issue_start>username_0: What I'm trying to do:
Use jq to pass along parameters to ffmpeg in a bash script.
Have a JSON in this external file that I generate regularly.
```
{
"streams":[
{
"track":"/var/www/html/stream1.m3u8",
"link":"http://playertest.longtailvideo.com/adaptive/bipbop/b... |
2018/02/28 | 9,184 | 14,248 | <issue_start>username_0: I attempted to calculate a formula based on price at different time ([](https://i.stack.imgur.com/ikY6q.png)). More specifically,[](https://i.stack.imgur.com/P... |
2018/02/28 | 1,376 | 4,857 | <issue_start>username_0: I have a package of the following format:
```
Electricity
|___ __main__.py
|
|__ Electricity
| |___ general_functions
| |___ regression_calcs
| | |___ create_calcs.py
| |
| |____ run_calcs.py
|
|
|
|__ Data_Input
|___ regression_vals
|__ regression_vals.csv
``... |
2018/02/28 | 1,228 | 4,486 | <issue_start>username_0: How do i use code anywhere snippets? I have entered a snippets but i am not sure how the "name" or tab "trigger" is used. I have entered "parseget" as name, 1 as tab trigger (because I was not sure how it was used).
I have searched the web and read the very short doc on codeanywhere. I have al... |
2018/02/28 | 2,331 | 7,909 | <issue_start>username_0: I'm using `@ConfigurationProperties` to configure the delay of a background task in Spring boot and I'm trying to use this value from a `@Scheduled` annotation on another component. However, in order to make it work I must use the full name given to the bean by Spring.
The configuration proper... |
2018/02/28 | 3,897 | 13,769 | <issue_start>username_0: I am following [instructions](https://www.npmjs.com/package/react-native-sqlite) on importing existing database to my app for IOS. I created "www" folder in "myProject" directory, put my database there and added folder to Xcode. Code to open and query:
```
import SQLite from 'react-native-sqli... |
2018/02/28 | 664 | 1,989 | <issue_start>username_0: I am trying to print lines between two patterns through sed command. But I want to include the line containing Pattern1 Pattern2 in the result when there is some line between them. If there is no line between Pattern1 and Pattern2 exclude line with Pattern1 and Pattern2 also from the file.
```... |
2018/02/28 | 657 | 2,268 | <issue_start>username_0: I am trying to update doctrine schema after installation FOSUser Bundle 2.0 but I keep getting this error:
```
In ArrayNode.php line 238:
The child node "db_driver" at path "fos_user" must be configured.
```
File config.yaml is configurated propertly in location /config/config.yaml:
```
f... |
2018/02/28 | 590 | 2,243 | <issue_start>username_0: I'm not too familiar with OCaml's model of evaluation. I'd be grateful if someone could explain why these two lines of code give different results:
```
List.iter (fun s -> Printf.printf "%s" s) ["a"; "b"; "c"];; (* prints abc *)
List.iter (fun f -> f) [Printf.printf "a"; Printf.printf "b"; Pr... |
2018/02/28 | 1,369 | 5,058 | <issue_start>username_0: I would like to create a python context manager, which would allow the following (with reverse\_decorator applying the decorated function with first argument reversed if it is string):
```
print('hi')
with MyFunctionDecorator('print', reverse_decorator):
print('hello')
print('bye')
```
t... |
2018/02/28 | 615 | 1,839 | <issue_start>username_0: When I'm submit my modal form using JQuery. I receive the form data using `serialize()` method and I'm send it to my controller method using AJAX. But in my controller i want access single value from this data but i can't un-serialize this data. How can i do this ??
Here is my JQuery Part.
``... |
2018/02/28 | 437 | 1,485 | <issue_start>username_0: I have an issue with the TFS cache folder.
I have configured TFS to save cached data in a dedicated hard drive (*F:\TFSCache*) and I see this in the TFS Admin Console.
If I open the F:\ drive, I can see the cached data under the "proxy" folder.
All seems to work fine, but I noticed that my C:\... |
2018/02/28 | 577 | 1,734 | <issue_start>username_0: Im trying to locate the symbol " in a large text when it is immediately preceded and followed by a word or character only. I then want to replace it with this symbol without changing the word/number before and after it: '
I tried this:
```
text7 = re.sub(r'(\w)"(\w)', r"$1\'$2", text6)
```
... |
2018/02/28 | 823 | 3,031 | <issue_start>username_0: **Bottom Line:**
I want to split up a pull request into two smaller pull requests with different subsets of files. I do not want to split by commit, I want to split by file.
**Details:**
Suppose I have a branch `branch_1` (off of the `master` branch) in which I've modified 2 files: `file_1` ... |
2018/02/28 | 478 | 1,767 | <issue_start>username_0: I'm a beginner with python and turtle. I want to make a dialogue box that asks a yes or no question. While I can get the box to pop up, how would I code it so that a "no" would close the turtle program and "yes" would keep it up? The part below the screen.textinput is wrong but I had it before ... |
2018/02/28 | 543 | 1,640 | <issue_start>username_0: How can a I automatically build a matrix, that converts permutations of a `vector <- c(1,2,3)` into kind of a binary format? Like this:
```
x <- matrix(c(1,1,0,0,0,1,0,1,1,0,1,1,0,0,0,1,1,1), ncol = 3)
rownames(x) <- c("1", "1,2", "2", "3", "2,3", "1,2,3")
colnames(x) <- c("1", "2", "3")
x
... |
2018/02/28 | 542 | 2,095 | <issue_start>username_0: I can not understand. How to do it, tried this:
```
class myViewCell: UITableViewCell, UITextFieldDelegate {
@IBOutlet weak var myEdit: UITextField!
func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool {
... |
2018/02/28 | 1,283 | 5,300 | <issue_start>username_0: I have recently encountered an issue regarding the usage of one of my costum components. I have created a "Chargement" (Loading in French) Component for a project I am working on.
This component is a simple circular spinner with a dark background that when displayed, informs the user that an ... |
2018/02/28 | 632 | 2,093 | <issue_start>username_0: Hello, I'm doing TDD to test my development, my tests were passing until I decided to reinstall php to repair the `sqlite` driver for testing (the main driver is `mysql`). So when I run my hole suite of tests this error shows in every method that uses the `storage`:
>
> Error : Call to undefi... |
2018/02/28 | 502 | 1,798 | <issue_start>username_0: If I run this code inside of a project document everything goes perfect, however when inside of a family document, I get an error.
**Code**
```
Document pDoc = uiapp.ActiveUIDocument.Document;
FilteredElementCollector fec = new FilteredElementCollector(pDoc);
IList ec = fec.OfClass(typeof(Fam... |
2018/02/28 | 312 | 1,005 | <issue_start>username_0: I want to get the id from my url like below
http://localhost/cpanel-ar/stage\_one/reports.php?temp=temp\_21day
How can GET only the "temp"?<issue_comment>username_1: i dont know if i understood but you can use predefined variables using:
```
$temp = $_GET['temp'];
```
but if you are using ... |
2018/02/28 | 3,078 | 11,299 | <issue_start>username_0: I need to highlight a set of words inside an existing PDF given specific coordinates that i have already extracted.
I am working with pdfbox by Apache (last version 2.0.8).
There is an example file I can use to such a purpose (AddAnnotations.java inside the pdfbox website) but I think this exam... |
2018/02/28 | 816 | 2,391 | <issue_start>username_0: I've been trying to understand the multi index methodology of Pandas. I am trying to delete the "std" sub-column, yet in vain.
How can this be done?
```
attribute attribute2 \
test1 ... |
2018/02/28 | 370 | 1,103 | <issue_start>username_0: I want to send search keywords with QueryString like google, atc...
and i need a function which convert text like this
>
> Metallica nimes concert 2009 :)
>
>
>
to this:
```
Metallica+nimes+concert+2009+%3A%29
```
and retrieve it
Thanks and advance<issue_comment>username_1: Trying to ... |
2018/02/28 | 2,055 | 7,623 | <issue_start>username_0: I have an iOS application (Swift) which encodes some data and does a JSONSerialization and creates a JSON object. My code is below, I've done my best to keep it tidy, so I hope it makes sense:
```
struct Order: Codable {
let idQty: [FoodIdAndQuantity]
let collection: String
let nam... |
2018/02/28 | 255 | 772 | <issue_start>username_0: I have
======
[](https://i.stack.imgur.com/YQEZW.png)
Goal
====
I'm trying to align a block of code base on `=`.
[](https://i.stack.imgur.com/Ijy9m.png)
H... |
2018/02/28 | 347 | 1,139 | <issue_start>username_0: My goal: Change the color of a balloon each time I click on it.
My problem: The console log show me that my color is empty the first time instead to get the data from css the balloon will be blue and not green. Do you know why ? Do you have any tips for solve this ?
```js
function change() {... |
2018/02/28 | 300 | 1,060 | <issue_start>username_0: So I want do like this
```
public class MainActivity extends AppCompatActivity {
Textview[] a = {oldtoday00, oldtoday01, ...};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main... |
2018/02/28 | 401 | 1,309 | <issue_start>username_0: I'm creating my own dropdown search bar that displays results when a user types some text.
The problem is that the result list div has to be `position: absolute`. This leads it to ignoring the parent col container width. How do I get results list to fit within the width of the col?
```css
.p... |
2018/02/28 | 393 | 1,403 | <issue_start>username_0: When I try to call libraries such as `lodash` or `momentjs` inside the `{{ mustache syntax }}` in Vue template files I keep getting the `'undefined property'` error, even though they are bound to the `window` object.
To go around this, I am importing the libraries into my components, and then ... |
2018/02/28 | 764 | 3,021 | <issue_start>username_0: I want to be able to suppress the compile time error that I get from Typescript where I use dot notation to access a property that the compiler doesn't know about. Access with bracket notation works, but dot notation gives a compile error.
My specific case is that I have added a custom matcher... |
2018/02/28 | 592 | 1,794 | <issue_start>username_0: I'm beginning with R so I'm not really good at searching relevant answer for my question. I am sorry if similar questions have been asked.
I have a list made of data frames and lists.
I'd like to know how to keep only data frames so that I can bind them together to produce on huge data frame. ... |
2018/02/28 | 416 | 1,429 | <issue_start>username_0: I am trying to display several pictures on my Jupyter notebook. However, the pixel is really rough like below.[](https://i.stack.imgur.com/UOtSn.png)
The pixel of original picture is clear. How should I improve this issue ?
Th... |
2018/02/28 | 430 | 1,458 | <issue_start>username_0: I have a several HTML elements I wanted to handle `onclick` for. In javascript code I defined the prototype that have property `name` and function `whoAreYou()` that must be `onclick` handler. It looks like:
```
var Somebody = function(name) {
this.name = name;
}
Somebody.prototype.whoAreY... |
2018/02/28 | 990 | 2,785 | <issue_start>username_0: I tried to figure out the following problem through list comprehension but I couldn't make it work. I will show you how I solved the problem using a loop and a list comprehension.
So, I have a list that can have 0 to 6 elements in a range(6) and when I apply my function on it I want to change ... |
2018/02/28 | 291 | 1,060 | <issue_start>username_0: when using the "curve" function in R, how do you suppress/stop the plot from showing up? For example, this code always plots the curve
```
my_curve = curve(x)
```
Is there a parameter to do this or should I being using a different function? I just want the x y points as a dataframe from the ... |
2018/02/28 | 3,376 | 12,730 | <issue_start>username_0: I'm relatively new to making UIs with Swing in Java, and I'm having trouble getting buttons and sliders to work in my project. I was trying to test that my sliders and buttons worked with prints, but found that they wouldn't work.
I will get results if I don't check what slider/button was inte... |
2018/02/28 | 831 | 2,676 | <issue_start>username_0: Can anyone tell me why when I use DataExplorer for CosmoDb DB I get the following:
```
{
"id": "d502b51a-e70a-40f1-9285-3861880b8d90",
"Version": 1,
...
}
```
But when I use Robomongo I get:
```
{
"Version" : 1,
...
}
```
minus the id?
Thanks<issue_comment>username_1... |
2018/02/28 | 814 | 2,656 | <issue_start>username_0: I have an issue with sorting an Array List.
In a class i have two Array Lists of different objects, we can call the objects Foo and Bar.
```
public class Foo() {
int value;
//Some other fields, and setters and getters.
}
public class Bar() {
int id;
//Same here...
}
```
So the l... |
2018/02/28 | 908 | 2,228 | <issue_start>username_0: I am trying to remove rows from a DataFrame that contain null values within numpy array
DataFrame:
```
name array
A [nan, nan, nan]
B [111.425818592, -743.060293425, -180.420675659]
```
Expected output
```
name array
B [111.425818592, -743.060293425, -180.42... |
2018/02/28 | 374 | 1,461 | <issue_start>username_0: I have a problem that using ApprovalTests.Net and NUnit all the tests that are run use the same approval file which name originates from Test method name.
Is it possible to specify somehow for each test case separate approval file?
```
[Test]
[TestCase("test",TestName="Test1")]
[TestCase("t... |
2018/02/28 | 949 | 3,242 | <issue_start>username_0: Given a machine learning model RBF SVC called 'm', I performed a gridSearchCV on gamma value, to optimize recall.
I'm looking to answer to this:
"The grid search should find the model that best optimizes for recall. How much better is the recall of this model than the precision?"
So I did the ... |
2018/02/28 | 913 | 3,303 | <issue_start>username_0: I need to get all the "students\_id" value in the below json and store that in an array.Please tell me the efficient way to do this.Please help.Thanks
```
{
"status": "success",
"user": [
{
"student_id": 1,
"first_name": "<NAME>",
... |
2018/02/28 | 697 | 2,500 | <issue_start>username_0: I'd like to know how I can find my object storage service name or GUID. I executed:
>
> bx service list
>
>
>
to each resource group. But I cannot get any object storage service name. Please advise. Thank you.<issue_comment>username_1: You can easily overfit if you don't optimize both, C ... |
2018/02/28 | 839 | 2,983 | <issue_start>username_0: I am having difficulties with the processing of a CSV File. I need a pythonic solution that reads a CSV with rows like:
[](https://i.stack.imgur.com/k2WIb.png)
And generates an output(preferably with the same CSV name) to produce this:
[![ente... |
2018/02/28 | 708 | 2,722 | <issue_start>username_0: As part of my APCS course, I have to fix little problems in a program that's already been written so it can be referenced later. This section is on while-loops and I never learned about unreachable statements so I don't have a clue how to go about fixing it. Attached is the while loop from the ... |
2018/02/28 | 655 | 2,357 | <issue_start>username_0: At the moment most of the data retained for 90 days by default. I was wondering if there way to change this setting to 30-40 days. I know that I can export them to keep the data longer but what I'm looking for is mainly keep the data for shorter duration for the upcoming regulations.<issue_comm... |