date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/13 | 1,690 | 5,825 | <issue_start>username_0: I'm facing an almost-logical problem while working on C++11.
I have a class I have to plot (aka draw a trend) and I want to exclude all the points which do not satisfy a given condition.
The points are of the class `Foo` and all the conditional functions are defined with the signature `bool Fo... |
2018/03/13 | 1,048 | 4,658 | <issue_start>username_0: I want to know how to divide a project having a hierarchical structure into applications. Let's say that I'm trying to build something like github.com.
In github.com, an account has some repositories, which have some features like code, issues, or pull requests. And those features have referen... |
2018/03/13 | 1,089 | 3,914 | <issue_start>username_0: So I am a novice programmer who has just managed to build up his first web scraper with a lot of help from internet tutorials. The code works perfectly (sorry about the lack of comments) but it prints out everything I need onto the command window. Now I have been using the | tee example.txt fun... |
2018/03/13 | 436 | 1,286 | <issue_start>username_0: I have a table called "inventory", initialized like so:
```
inventory = {}
inventory[1] = { qty = 0 }
```
I want to add more data to this table, at the index 1, eg:
```
val = { id = "example" }
inventory[1] = inventory[1], val
```
Is there a way I can do this while preserving the data t... |
2018/03/13 | 720 | 2,316 | <issue_start>username_0: Can somebody explain why my custom Facebook share button does not work?
Whenever I click the button it the share window just does not show up.
I've tried it as html file on an actual webserver, and I've read everything in the facebook docs regarding the share button.
When using the [same cod... |
2018/03/13 | 592 | 2,119 | <issue_start>username_0: I'm trying to debug my Android app built with cordova over USB.
My device is showing up in adb and `chrome://inspect` and I've port forwarded the device to connect to `localhost:9000`.
I have confirmed that the port forwarding is working, since I can access `localhost:9000` from Chrome on the ... |
2018/03/13 | 403 | 1,395 | <issue_start>username_0: I'm using `grunt` to search all my `.js` files in order to create documentation and I want it to search all the files inside `web/assets/js/`, so I made it like this:
```
ngdocs: {
all: ['web/assets/js/*.js']
},
```
However I found out that this doesn't include the `.js` files inside the s... |
2018/03/13 | 569 | 1,812 | <issue_start>username_0: I have a lot of png files within a workdir that can be grouped according to the class defined in the name at the end of each of the file. For example for the case with 3 classes, it should be:
```
# all files for class1
a1.b1.c1__class1.png
a2.b2.c2__class1.png
..
aN.bN.cN__class1.png
# all f... |
2018/03/13 | 267 | 932 | <issue_start>username_0: I would like to clear cache from console just after releasing changes from github to production server. Now I have to click manually from admin panel.<issue_comment>username_1: Yes, you can do it with a very simple PHP script that you can trigger with a console command:
<https://docs.wp-rocket... |
2018/03/13 | 358 | 1,207 | <issue_start>username_0: Can action delegates point to methods having a return type?
For e.g
```
Action a = () => Add();
int Add()
{
return 5 + 6;
}
```
The above code compiles. Now if I write the above something like
```
Action a = new Action(Add);
```
This does not compile. Could anyone please help me to u... |
2018/03/13 | 1,623 | 5,221 | <issue_start>username_0: I'm attempting to write a program that will grab the content from fields from a table both specified by the user on the selection screen.
For example, the user could specify the fields `equnr`, `b_werk`, `b_lager` from the table `eqbs`.
I've been able to accomplish this like so:
```
" Deter... |
2018/03/13 | 574 | 2,146 | <issue_start>username_0: I want to add button in my application to open Connections screen in Android Settings.
It's working through ADB via command:
```
adb shell am start -a com.android.settings.action.SETTINGS -n com.android.settings/.Settings\$\ConnectionsSettingsActivity
```
But I have no idea how to implement... |
2018/03/13 | 532 | 1,919 | <issue_start>username_0: I have `ObservableList fruits`. Each fruit object has name and value parameters. Objects are: {"apples", 22}, {"oranges", 3} and {"pears", 5}. I added those items to `ComboBox`:
```
fruitComboBox.setItems(fruits);
```
How can I get item index from this `ComboBox` based on object's name? For... |
2018/03/13 | 379 | 1,378 | <issue_start>username_0: I have a dictionary example as:
```
dictionary = {Bay1: [False,False,True],
Bay2: [True,True,True],
Bay3: [True,True,False],
Bay4: [False,False,False] }
```
What I'm trying to do is to go through the dictionary by checking each bay (Bay1, Bay2...) to see which one has... |
2018/03/13 | 1,220 | 3,825 | <issue_start>username_0: I am fairly new to c++ and I am writing a program that has a struct, and 3 functions named win\_percentage, Wins\_losses, and winning\_teams. The object of this assignment is to create a program that prints out 13 school teams, their records, and then to print out the teams who are over .500 in... |
2018/03/13 | 1,747 | 5,341 | <issue_start>username_0: How do I make my sidebars height dynamically so it fills the whole screen.
```css
body, html, .exit-intent-container {
height: 100%;
font-family: "gothamBook"
}
.hidden {
display: none !important;
}
.fa-angle-down {
margin-left: 10px
}
.sidebar {
position:abso... |
2018/03/13 | 770 | 2,150 | <issue_start>username_0: I have a sorted array. I would like to iterate through the array and increment a counter as I find pairs of values. I'm not finding an elegant solution to this.
```
var pairs = 0
let colors = [10, 20, 20, 10, 10, 30, 50, 10, 20
let sortedColors = colors.sorted{ $0 < $1}
// [10, 10,... |
2018/03/13 | 835 | 3,532 | <issue_start>username_0: A common use case is seen at lots of react projects that the AJAX request is fired at `componentDidMount` hook.
I just can't wrap my head around this proposed practice , let's say we have below component where the AJAX request depends on a `prop` from `parent component` and `MyComponent` won't... |
2018/03/13 | 891 | 3,624 | <issue_start>username_0: I have the following sql query and would like to use it with `JdbcTemplate` from spring:
```
String sql = "SELECT name, age FROM EMPLOYEE WHERE age >= ?";
List employees = jdbcTemplate.query(sql, 18, new EmployeeRowMapper());
public class EmployeeRowMapper implements RowMapper {
@Ov... |
2018/03/13 | 816 | 2,963 | <issue_start>username_0: ```
import java.util.Scanner;
public class FactMore {
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
int n=1;
int factorial = factorial(n);
while (n >= 1) {
System.out.print("Enter a non-negative integer... |
2018/03/13 | 999 | 3,449 | <issue_start>username_0: I'm using EF Core 2.0 with SQLite and I want to reduce the size of my database without loosing the human readable datetime value in my table column. Currently the data context stores the full DateTime CLR object as a a string like "2018-03-10 16:18:17.1013863" but in my case "2018-03-10 16:18:1... |
2018/03/13 | 1,085 | 3,530 | <issue_start>username_0: I am looking for the best way to create a query that will do the following(Note: This is just an example, I know this example can be written better, my real goal is a much more complex example, but follows a similar structure)
```
items
item_id | name | cost
1 |... |
2018/03/13 | 729 | 2,748 | <issue_start>username_0: When request permissions, the system show an error message, "System UI has stopped" and keeps restarting until you give the permissions;
```
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.android.systemui, PID: 3910
java.lang.NullPointerException: Attempt to i... |
2018/03/13 | 4,826 | 17,699 | <issue_start>username_0: Can someone please help me out. I am suck here for 2 days now. I am working on spring boot with access to two(2) data-sources. The application using HikariCp to connect to Postgresql and Mongodb, but I am getting the mongodb error. If I point the mongodb to another database (like Mysql or so) i... |
2018/03/13 | 1,203 | 3,315 | <issue_start>username_0: I have the following R function within a software package, which outputs `Sys.time()` to the output for users to know how the algorithm is proceeding:
```
func = function(num1, num2){
result = num1 + num2
return(paste0(' ', as.character(Sys.time()), ': with result: ', result))
}
```
... |
2018/03/13 | 819 | 2,493 | <issue_start>username_0: I'm trying to implement the two following rules in a single regex:
If a number is preceeded by :
* a word character or a @ character ; then do not match anything
* anything else ; then match the number **but do not include the preceeding character** in the result
I tried: `[^@\d,\w]\d+` and ... |
2018/03/13 | 1,137 | 3,713 | <issue_start>username_0: The code i'm writing calculates the sum of divisors of all numbers up to a specified limit. I tried writing it in three ways, two using numpy and one using the array module.
```
N = 10**5
def func2(N,a):
for f in range(2, N//2+1):
for i in range(f*2, N+1, f):
a[i] += f
def func3(N,... |
2018/03/13 | 1,143 | 3,785 | <issue_start>username_0: I have the following htaccess rule
```
RewriteRule ^([a-zA-Z-_0-9]+)/([a-zA-Z-_0-9]+)$ ?page=$1&action=$2 [L]
```
For example if I want to add something or edit something the url will be like:
```
www.website.com/page_name/add
```
And that rule is applicable for all pages except for one p... |
2018/03/13 | 1,132 | 3,524 | <issue_start>username_0: If i have two data frames:
```
Df1:
Name1 Name2 Destination1
A I London
B J Paris
C K New York
D L Bangkok
E M Singapore
Df2:
Theme Pattern
Luxury luxury hotels in {d}
City city hotels {d}
Break breaks in {d}... |
2018/03/13 | 1,423 | 5,850 | <issue_start>username_0: I am trying to build document indexes in javascript, and am having trouble figuring out the correct way to do work in a es6 constructor.
* If I dont call buildIndex, the object is not usable, so it seems like a good candidate for the constructor
* If I call super first it builds the index wit... |
2018/03/13 | 720 | 2,718 | <issue_start>username_0: TimeUnit.toSeconds works well when the result is > 1. However, because we're dealing with longs, if the result is between 0 and 1 exclusive, we get 0 instead. Is the a java SDK function that handles double conversions for us?
I understand that I can perform these conversion myself by multiplyi... |
2018/03/13 | 1,154 | 3,816 | <issue_start>username_0: Consider the following code snippet.
```
int main(){
int x[2];
x[0]=100;
x[1]=200;
printf("%d\n",x);
printf("%d\n",&x);
printf("%d\n",*x);
}
```
The output is given as (in three lines)
```
6487616 6487616 100
```
I've read that the array name is a pointer to t... |
2018/03/13 | 1,363 | 4,488 | <issue_start>username_0: Here I am trying to get domain names of the companies and the company names are stored in new.csv
**The code I have used**
```
import pandas as pd
import clearbit
import json
clearbit.key = 'sk_1915de5d2d7b6e245d6613e3d2188368'
df = pd.read_csv("/home/vipul/Desktop/new.csv", sep=',', encodi... |
2018/03/13 | 1,885 | 7,334 | <issue_start>username_0: I want to test a class that calls an object (static method call in java) but I'm not able to mock this object to avoid real method to be executed.
```
object Foo {
fun bar() {
//Calls third party sdk here
}
}
```
I've tried different options like [Mockk](http://mockk.io/#obje... |
2018/03/13 | 576 | 1,909 | <issue_start>username_0: I don't know how to get desired capabilities I've set with Appium Python client.
What I need specifically to know is which platform is set, is it iOS or Android?
I have Appium driver like this.
```
self.driver = webdriver.Remote(config['server_url'], config['device_config'])
server_url = ht... |
2018/03/13 | 523 | 1,882 | <issue_start>username_0: I have added an electron configuration to an existing SPA application. When i click a link in the navbar, I get the following error:
```
/dist/about net::ERR_FILE_NOT_FOUND
```
I know there is no such file in the directory, but I have been looking for a while now on how to deal with routes... |
2018/03/13 | 460 | 1,327 | <issue_start>username_0: **Scenario**
I have a D3 tree drawn with 4 nodes. I want to select a node by its data -> uuid
**Current Solution**
```
console.log(
Object.keys(d3.selectAll('.node-circle').filter(d => d.data.id == '55ac64b257c14bbf9d7525cf0b095f60'))
)
console.log(Object.keys(d3.select('.node-circle').d... |
2018/03/13 | 1,445 | 4,569 | <issue_start>username_0: Have tried searching for this, but can't find exactly what I'm looking for.
I want to make a function that will recursively find the factors of a number; for example, the factors of 12 are 1, 2, 3, 4, 6 & 12.
I can write this fairly simply using a for loop with an if statement:
```
#a functi... |
2018/03/13 | 1,293 | 3,797 | <issue_start>username_0: How can I divide each elements of rows of a symmetric matrix NxN by a column vector (Nx1), such that I can obtain not a Nx1 vector but again a symmetric matrix NxN, where each elements along the rows are divided by the correspiding elements of the column vector?
here the matrix:
```
In1 I... |
2018/03/13 | 1,180 | 4,961 | <issue_start>username_0: I'm writing a WinForm desktop application. In the main form, the user clicks on a button which calls another form for the user to submit data to. At the end of this submission process, the user clicks on a "Save" menu item to close the subform.
This is the code for the subform calling:
```
p... |
2018/03/13 | 434 | 1,633 | <issue_start>username_0: I am using nodejs, serverless and aws dynamodb. I am trying to create a lambda where I am calling an API, getting the data (1000 records) and now, I want to insert this data into my dynamodb.
I am using batchWrite for this and using it by creating buckets of 25 json objects each. But I am get... |
2018/03/13 | 1,280 | 4,615 | <issue_start>username_0: The for loop looks like
```
ImmutableListMultiMap.Builder builder
= ImmutableListMultiMap.newBuilder();
for (int i = 0; i < Math.min(keys.length(), values.length()); i++) {
builder.put(keys.at(i), values.at(i));
}
```
A possible first step in Guava / Java 8 is
```
Streams.zip(keys, value... |
2018/03/13 | 860 | 2,992 | <issue_start>username_0: I'm trying to build a linked list in java according to the users's input.
However,it seems like the returned list I get is always referenced through the last node rather than the first one, which make it unworkable and unhelpful for me. I tries to solve it by making a reference to the first nod... |
2018/03/13 | 799 | 2,748 | <issue_start>username_0: Trying to make a nice meaningful button I noticed following:
When having inline-block divs inside a button they become centered without us programmers/stylers having any control over it...
I would like them to have a certain distance from the left or right border of the button.
HTML
```
Le... |
2018/03/13 | 2,354 | 8,148 | <issue_start>username_0: This method is supposed to switch the first letter of the string with the last letter
```
public static String frontBack(String str)
{
return (str.substring(str.length()-1, str.length()) + str.substring(1, str.length()-1) + str.substring(0, 1));
}
```
I run the code, and it compiles fine... |
2018/03/13 | 275 | 1,206 | <issue_start>username_0: I have a Web Api function which uploads base64 image to Azure, I use async task method to do that. The problem is that the code execution gets stuck with the await word and never move next to close the stream ,even after uploading the photo and I don't get any errors either.
```
public asy... |
2018/03/13 | 1,655 | 5,796 | <issue_start>username_0: I have the following test code,
```
import pexpect
import time
session = {}
try:
for i in range(1030):
print(i)
child = pexpect.spawn(cmd,encoding='utf-8')
child.expect("mgmt",200)
session[i]=child
print(c... |
2018/03/13 | 988 | 3,759 | <issue_start>username_0: I am in way of making a wallpaper app in android in which my first screen will be of categories then when I pressed each category it shows different images of small size but when I clicked on that particular image it shows the full screen image of that image ,I am implementing this in firebase ... |
2018/03/13 | 537 | 1,760 | <issue_start>username_0: ı am beginer react native developer ı trying show me react native project on genymotion but ı cant do.
```
react-native run-android
```
[enter image description here](https://i.stack.imgur.com/rC9BW.png)
ı had error in terminal
Total time: 5.993 secs
Could not install the app on the devic... |
2018/03/13 | 354 | 1,367 | <issue_start>username_0: I think it is possible to create a database and tables by the Spring boot web app. If I have a file with mysql queries to make database, tables, for example, sql\_table.sql file. How to use generate databases and table on the fly if no exits?<issue_comment>username_1: Spring Boot loads SQL scri... |
2018/03/13 | 519 | 1,999 | <issue_start>username_0: Does Azure Data Lake Analytics and U-SQL support use While or For to Loop and create multiple outputs?
I want output to multiple files using one USQL execution.
This is what i want:
```
Foreach @day in @days
@dataToSave =
SELECT day AS day,
company AS Company... |
2018/03/13 | 1,026 | 4,033 | <issue_start>username_0: I was studying data structures supported by Redis and I was not able to find out an explanation that could make me understand what HyperLogLog is.
How do I use it and why is this good for?<issue_comment>username_1: Basically is a kind of Redis `Set` which uses optimized algorithms to count el... |
2018/03/13 | 1,307 | 4,132 | <issue_start>username_0: I have the below query used to delete rows from a partitioned table, but it doesn't work. What is the approach used for deleting rows in a partitioned table?
```
delete from SecurityLoan where lender=`SCOTIA, date in inDays, portfolio in portfoliolist
```
Note that `inDays` and `portfoliolis... |
2018/03/13 | 1,566 | 5,885 | <issue_start>username_0: I created a small shopping list program designed to run on Python 3. I assumed my Mac was running Python 3 and tried to run the file. It seemed to work well as long as I surrounded my input strings with quotation marks, otherwise I got a NameError. This is not needed in Python 3.
Why did the c... |
2018/03/13 | 655 | 2,170 | <issue_start>username_0: The directory structure is as follows:
```
Directory: \\L04274\C$\Temp
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 3/12/20... |
2018/03/13 | 470 | 1,839 | <issue_start>username_0: In my c# windows forms code I'd like to detect once a button is pressed (and perform an action) and when a button is released (and perform another action).
I know the existance of MouseDown and MouseUp events and up to Windows XP everything was fine.
The problem comes now with Windows 7 and a... |
2018/03/13 | 315 | 1,059 | <issue_start>username_0: ```
MyArray = Array("Jap", "Mcdonalds", "Chinese", "Pasta")
```
I am trying to do an IF function IF MyArray is on array 'Chinese' however when I do
```
If MyArray("Jap") Then ....
```
it comes up with an error. How would I go about doing this?<issue_comment>username_1: Have you tried usin... |
2018/03/13 | 315 | 1,180 | <issue_start>username_0: So I am tasked to build an application where each component(5 components) has 1 editable table(components have no hierarchy). I am required to record the edits made in each component and make an AJAX call to a backend. The data that I send is going to be the edits from all the 5 components. Wha... |
2018/03/13 | 773 | 3,099 | <issue_start>username_0: I have a dropwizard question. I use Dropwizard with SBT (which works pretty fine).
If I run my application i package it with:
```
$ sbt clean assembly
```
And than run the application with:
```
$ java -jar APPLICATION.jar server
```
The problem is with this command Dropwizard doesnt load ... |
2018/03/13 | 815 | 2,930 | <issue_start>username_0: I am attempting to add a small automatic margin inside my text widget however I am having a hard time with writing the tags.
I have a text box and I am trying to insert text into that box while keeping a margin.
I can get the text that is inserted to have a margin but when I type past the las... |
2018/03/13 | 847 | 2,417 | <issue_start>username_0: I am trying to convert the date field, but the year is not correct.
My code is:
```
SELECT to_date((ADD_MONTHS(TRUNC(sysdate, 'MM'), -1) + 25), 'dd/mm/yyyy')
FROM dual
```
Expected output is like `26/02/2018`, but I get `26/02/0018`.
Do I miss anything?<issue_comment>username_1: If you wa... |
2018/03/13 | 1,879 | 4,159 | <issue_start>username_0: I would like to retrieve the different portions of the below dataframe based on the condition LabelId=1. In other words, given the following dataframe:
DF\_input:
```
eventTime velocity LabelId
1 2017-08-19 12:53:55.050 3 0
2 2017-08-19 12:53:55.100 ... |
2018/03/13 | 811 | 3,099 | <issue_start>username_0: I would like to store a function definition in a string, like for example:
```
var funcString = 'function(){ return 4+4 }'
```
Can I use eval() to evaluate the function?
Like for example:
```
var result = eval(funcString)
```
which will evaluate the string in funcString as a function an... |
2018/03/13 | 893 | 3,348 | <issue_start>username_0: I'm using Angular 4 and Spring framework to create my project. and this is my problem
{error: SyntaxError: Unexpected token A in JSON at position 0 at JSON.parse () at XMLHttp…, text: "AAA"}
I want to read the string AAA but the console show me this error.
My backend code:
```
@PostMapping(... |
2018/03/13 | 767 | 3,047 | <issue_start>username_0: I'm trying to establish a communication channel between an installing service worker and an activated service worker.
I've tried to do the following:
on the installing service worker:
```
if ((self.registration.active == null) ||
(self.registration.active.state != "activated")) {
... |
2018/03/13 | 713 | 2,738 | <issue_start>username_0: How would I go about getting just the date from the following string?
"DateOfTest\_01-30-2018-1\_003"
This string is in position 8 in a CSV file, which I am looping through and parsing. What I have is:
```
while (!reader.EndOfStream) {
var splitLine = reader.ReadLine().SplitCommaSeparate... |
2018/03/13 | 844 | 3,116 | <issue_start>username_0: I am working on a vending machine simulation for school work and I would like to print the items in the machine with a for loop from a CSV file. this works but if the for loop to print the stock list is repeated, the loop does not work as the line\_num attribute has already hit the end of the C... |
2018/03/13 | 960 | 3,978 | <issue_start>username_0: What does the `animated` argument of these methods of `UICollectionView` do:
* ```swift
selectItem(at indexPath: IndexPath?, animated: Bool, scrollPosition: UICollectionViewScrollPosition)`
```
* ```swift
deselectItem(at indexPath: IndexPath, animated: Bool)
```
I know I can use the `UIColl... |
2018/03/13 | 978 | 3,775 | <issue_start>username_0: I have string "xyz(text1,(text2,text3)),asd" I want to explode it with , but only condition is that explode should happen only on `,` which are not inside any brackets (here it is `()`).
I saw many such solutions on stackoverflow but it didn't work with my pattern. ([example1](https://stackove... |
2018/03/13 | 2,139 | 7,114 | <issue_start>username_0: In elasticsearch 6.2 I have a parent-child relationship :
```
Document -> NamedEntity
```
I want to aggregate NamedEntity by counting `mention` field **and** giving the number of documents that contains each named entity.
My use case is :
```
doc1 contains 'NER'(_id=ner11), 'NER'(_id=ner12... |
2018/03/13 | 309 | 1,099 | <issue_start>username_0: There are multiple div's having class "questionsDiv" in each div there are three to four div's having class "option" and one of them contains a label with class green2. I want to find the id or value from that div which contains a Label tag with class "green2". How can i get id or value of that... |
2018/03/13 | 601 | 1,855 | <issue_start>username_0: I'm new to VBA, and I can't seem to work out a very simple concept - assigning one array to another, both being of equal size and type. Like in this example:
```
Option Explicit
Sub main()
Dim arr1(2), arr2(2) As Double
arr1(0) = 5
arr1(1) = 10
arr2 = arr1 'error here
D... |
2018/03/13 | 1,435 | 5,425 | <issue_start>username_0: I'm using font-awesome SVG, I had some issues with [scope](https://stackoverflow.com/questions/49260874/attemping-to-change-attributes-of-this-inside-success-function) earlier, but now I am having a new issue - I asked about this issue in a comment on my other question and was told it was an en... |
2018/03/13 | 2,609 | 8,740 | <issue_start>username_0: I am trying to implement K-Nearest Neighbours algorithm from scratch in Python. The code I wrote worked well for the `Breast-Cancer-Wisconsin.csv` dataset.
However, the same code when I try to run for *Iris.csv* dataset, my implementation fails and gives KeyError.
The only difference in the... |
2018/03/13 | 487 | 1,648 | <issue_start>username_0: There are 2 tables to track baseball players and their positions..
Player
```
+----+----------
| id | name
+----+----------
| 1 | Boggs
| 2 | Mattingly
| 3 | Judge
| 4 | Martinez
| 5 | Rodriguez
```
Position
```
+----+----------+-----------+
| id | player_id | position
+-... |
2018/03/13 | 966 | 2,905 | <issue_start>username_0: I'm doing a study of a text and I would like to obtain through a stylesheet XSLT a certain function (specifically, @phr function="inciso" type="absolute") only if it is followed by a full stop (@pc).
How can I put this condition on the XSLT style sheet?
Here are the stylesheet XSLT and the XML ... |
2018/03/13 | 255 | 936 | <issue_start>username_0: How can I add up 4 digit numbers separately that are in one cell?
For example, I want to have as output the sum of the first two digits + the other two like 12+12, then another output to calculate separately 1+2+1+2.<issue_comment>username_1: Have you tried:
```
select id from Player where i... |
2018/03/13 | 1,863 | 7,616 | <issue_start>username_0: So far I have successfully implemented Firebase within my Android application, where I can add users to the Authentication portal through a `SignUpActivity`, and also add maintenance issues to the real-time database through a `MaintenanceActivity`.
However, at present, none of the database dat... |
2018/03/13 | 574 | 1,889 | <issue_start>username_0: (I'm using anaconda on a MacBook)
By default conda adds the environment info to the comand prompt as follows:
```
$ source activate my_env
(my_env) $ source deactivate
$
```
This can be switched off and on using
```
conda config --set changeps1 (true|false)
```
Since my terminal prom... |
2018/03/13 | 769 | 2,269 | <issue_start>username_0: I installed the Erlang/OPT 20 in my OS and the phoenix framework show the following error message:
When I run the command:
```
iex -S mix
```
I get:
```
Erlang/OTP 20 [erts-9.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false]
** (Version.InvalidReq... |
2018/03/13 | 3,642 | 13,610 | <issue_start>username_0: so i am creating spa web apps using laravel as my backend and vue js as the spa frontend framework. i am using laravel passport for authentication with api. and i am using vuex for controlling my application state.
first i create an api files to interact with api with axios
```
import { BKCU_... |
2018/03/13 | 1,055 | 2,523 | <issue_start>username_0: So I'm trying to find out if there is a way to do this similar to having a for loop inside of the np.array. A simple example is set is below.
Normal method:
```
>>> np.array([
... (x, x + 2)
... for x in range(10)
... if x%2 == 0])
array([[ 0, 2],
[ 2, 4],
[ 4, 6],
[ 6... |
2018/03/13 | 876 | 2,305 | <issue_start>username_0: I have created a userform similar to a google search. I'd like the drop down to show/hide depending on how many letters are in value.
Like this..
```
If Len(ComboBox1.Value) > 4 Then
ComboBox1.DropDown
Else
'ComboBox.DroppedDown = False (non-existent method)
End If
```
There are ma... |
2018/03/13 | 2,254 | 8,817 | <issue_start>username_0: For any possible try-finally block in Python, is it guaranteed that the `finally` block will always be executed?
For example, let’s say I return while in an `except` block:
```
try:
1/0
except ZeroDivisionError:
return
finally:
print("Does this code run?")
```
Or maybe I re-rais... |
2018/03/13 | 2,747 | 10,870 | <issue_start>username_0: I am using Jersey and Hibernate. I previously had code is void main that worked getting the Session Factory but this has issues. I have taken sections out of the whole code to simplify.
I know the issue is something to do with the Session Factory will add full stack trace on request, is long.... |
2018/03/13 | 2,158 | 8,454 | <issue_start>username_0: Error: insert into products (product\_cat, product\_name, product\_pric, product\_desc, product\_image, product\_keyword, product\_ingrid) values ('5','','', '','','','')
Incorrect integer value: '' for column 'product\_pric' at row 1
what is this error and how to resolve<issue_comment>usernam... |
2018/03/13 | 878 | 3,400 | <issue_start>username_0: I'm showing my example below with 2 groups when there are over 20 groups in the code. I'm not sure if there is a better way to go about this if there is please offer a suggestion.
Below I'm checking if the student has 'All Groups' for their student group if they do I want to the groups as None... |
2018/03/13 | 474 | 1,840 | <issue_start>username_0: My Unhandled Intent is specified as follows:
```
'Unhandled': function() {
console.log('#Unhandled');
console.log('The skill will crash now :(');
this.emit(':tell', this.t('UNHANDLED_MESSAGE'));
}
```
I can see in my logs that this function is called. However the emit-Call is com... |
2018/03/13 | 551 | 2,077 | <issue_start>username_0: I've created a simple React app that handles a click even. When the `onChange` event is triggered the event object I get back is `{"isTrusted":false}`. I have included my code below.
```
export default class App extends React.Component {
HandleChange(event)
{
console.log(JSON.strin... |
2018/03/13 | 1,128 | 4,121 | <issue_start>username_0: This code has a class named class1 and methods set, get, load, save
```
# Class1 definition
oo::class create class1 {
variable dataArr
method set {key value} {
set dataArr($key) $value
}
method get {key} {
if {[info exist dataArr($key)]} {
return $... |
2018/03/13 | 1,381 | 4,167 | <issue_start>username_0: This code:
```
values = ("xdr_s1_18021664256", "xdr_s1_18021664257", "xdr_s1_18021664258","xdr_s1_18021664259")
list_of_strings = []
string_with_highest_number = ''
max_value = 0
print(type(max_value))
for i in values:
x = i.split("_")[-1]
if x > max_value:
max_value = i
... |
2018/03/13 | 947 | 3,057 | <issue_start>username_0: i have wcf webservice.It works on localhost:55077 but when i try to communicate with a spesific ip like 192.168.1.103:80, it does not work... Here are some screen shots...Thanks all ...
[](https://i.stack.imgur.com/6fAmF.png)
[`, where vote can be 1 or -1. So now my problem is if post does not have any upvotes it won't show in result at all.
My query:
```
SELECT P.* FROM `vicoteka-api`.posts P
INNER JOIN (
... |
2018/03/13 | 1,042 | 4,612 | <issue_start>username_0: I am looking for a way to run selenium tests with a chrome driver, in the background. With the background I mean as in, not the foreground focused window. I can actually do this, but as soon as actions like opening a new tab or switching between windows (so basically switching window handles) h... |
2018/03/13 | 263 | 1,094 | <issue_start>username_0: Essentially, I would like to use a hand waving in from the proximity sensor to initiate a function. I'm not sure where to begin, so I thought this was the appropriate channel to pose the question and gain some insight. Thank you.<issue_comment>username_1: Easiest way would be to run a local sel... |
2018/03/13 | 467 | 1,765 | <issue_start>username_0: I have a large network table that I want to simplify by merging nodes that share the same interactions, so that it will have a better network once imaged (I am using Cytoscape). The interactions do not have direction. As a mini example, if I have a table such as below.
```
A E
B E
C G
C H
... |
2018/03/13 | 649 | 2,309 | <issue_start>username_0: for some reason I can't figure out why my code prints "None" after printing something out of a class or how to remove it. This is my code:
```
class armour:
def __init__(self, name, defence):
self.name = name
self.defence = defence
def block(self):
print("your ... |
2018/03/13 | 473 | 1,784 | <issue_start>username_0: Lets say I have a component that one of it's props could receive an element (to focus/set any attr/ etc..). One of this component Children is an component which have a Button element(and will be available in DOM). How could I ref/pass this element to `closeButtonContent` prop in parent compon... |
2018/03/13 | 656 | 1,935 | <issue_start>username_0: I have a config.xml file that has this line in it:
```
```
Using a bash script, I need to replace com.FitDegree.SOMETHING with a string such as com.FitDegree.ThisIsIt
The closest I can get is this:
```
sed -r 's/\"com\.FitDegree\..+?\"/"com.FitDegree.ThisIsIt"/' ../config.xml > tmpfile
... |