date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/12 | 542 | 1,928 | <issue_start>username_0: I have created a new class that I want to manage a few things, one of which is to get the User Id `Microsoft.AspNet.Identity`. I get this error message
>
> CS0103 The name 'User' does not exist in the current context
>
>
>
And this is my code:
```
using Microsoft.AspNet.Identity;
public... |
2018/03/12 | 489 | 1,716 | <issue_start>username_0: The input column was not implemented well enough to restrict the email chars to roman... therefore French and Spanish chars with accents have made it into the database, but are being rejected by the remote mail servers. Is there a simple SQL test?
I tried
```
where email <> try_cast(try_cast(... |
2018/03/12 | 786 | 2,928 | <issue_start>username_0: My issue is I tried to implement 2 type of Nagivation Type in my Apps, TabNavigation and StackNavigation, so I using a root StackNavigator, which has one route to myTabNavigator and one to my other StackNavigator(Code Snippet of App.js). However, when I navigate to **View Screen which is Second... |
2018/03/12 | 1,540 | 5,655 | <issue_start>username_0: How can I test a string to see if it contains a single word each, in order, from three arrays of words? I want `true` to be printed in the console when the test string `message` (see below) contains words, in order, from the three arrays. The first word in order should be any of the words in th... |
2018/03/12 | 386 | 941 | <issue_start>username_0: I have some lists containing the integers.E.g:
```
[ 1, 5, 2 ], [ 2, 3], [7, 8]
```
How can I sort the list by the sum of each lists inside it?
Expected Results:
```
[ 2, 3 ] [1, 5, 2] [ 7, 8 ]
```
Should I insert the sum into the first element in the list and then use the sorted func... |
2018/03/12 | 698 | 2,534 | <issue_start>username_0: I have the following React component:
```
class Parent extends Component {
constructor(props) {
super(props)
this.state = {
isRendered: false
}
}
render() {
return (
Rendering result
)
}
}
```
Based on the state of `this.state.isRendered`, I want my com... |
2018/03/12 | 918 | 3,445 | <issue_start>username_0: Greetings Stack Overflow!
First off, this is my first question!
I am trying to solve the selfDividingNumbers algorithm and I ran into this interesting problem. This function is supposed to take a range of numbers to check if they are self dividing.
Self Dividing example:
>
>
> ```
> 128 i... |
2018/03/12 | 1,192 | 4,811 | <issue_start>username_0: How can I make an AsyncTask's `doInBackground()` only return when another async method completes?
On a high level, the Activity's purpose is to allow the user to upload a review. The review may also have images. Now in my code, I have two AsyncTasks: `ImageCompressionTask` and `ImageUploadTask... |
2018/03/12 | 681 | 2,168 | <issue_start>username_0: I am trying to concatenate two things in this model.
```
router.post('/', (req, res) => {
let file= new File({
name: req.body.name,
year: req.body.year,
code: req.body.code
});
file.save().then(data => {
res.send(data);
}, err => {
res.send(err);
})});
```
So what I want ... |
2018/03/12 | 1,715 | 4,393 | <issue_start>username_0: I'd like to get the running count of something in ColumnA based on how many times it has previously appeared in ColumnB. Ideally, this count could also be subset by ColumnC.
For example, I'd like to get a running total of the winner's previous LOSSES or the loser's previous WINS here:
```
#cr... |
2018/03/12 | 1,484 | 4,029 | <issue_start>username_0: Background,
Our customer is Multi-Level Marketing Company (eCommerce Site) they will do business in most of the countries and currently we are migrating only two countries to new UI and rest all countries should be able to access Legacy Site.
(We are working on to improve the Corporate Site wit... |
2018/03/12 | 424 | 1,512 | <issue_start>username_0: I'm using typescript, and is complaining when concatenating a string,
```
const content = senderDisplay + ', '+ moment(timestamp).format('YY/MM/DD')+' at ' + moment(timestamp).format('h:mm A');
```
>
> [tslint] Use a template literal instead of concatenating with a string
> literal. (pre... |
2018/03/12 | 1,389 | 5,101 | <issue_start>username_0: I'm trying to train a basic text classification NN using Keras. I download 12,500 pos and 12,500 negative movie reviews from a website. I'm having trouble processing the data into something Keras can use however.
First, I open the 25000 text files and store each file into an array. I then run... |
2018/03/12 | 1,696 | 5,917 | <issue_start>username_0: I'm trying my hand at asyncio in Python 3.6 and having a hard time figuring out why this piece of code is behaving the way it is.
**Example code:**
```
import asyncio
async def compute_sum(x, y):
print("Compute %s + %s ..." % (x, y))
await asyncio.sleep(5)
print("Returning sum")... |
2018/03/12 | 1,422 | 5,153 | <issue_start>username_0: New here and have been hunting around for the answer to this question. Working on a Project Euler question and attempting to add values of a function to a list using list.append, however nothing is being added to the list and I'm unsure why. Any help appreciated.
```
import math
import... |
2018/03/12 | 1,726 | 6,242 | <issue_start>username_0: I'm trying to install ESlint to use it with Sublime Text 2 for all my local projects. [Configuration documentation](https://eslint.org/docs/user-guide/getting-started#global-installation-and-usage) is very unclear about global installation:
>
> Note: `eslint --init` is intended for setting up... |
2018/03/12 | 1,602 | 5,641 | <issue_start>username_0: I have the `ng-include` below, the file name it's getting contains an `ñ` character so it's showing an `not found error`.
```
```
I also tried using `decodeURI` like the code below before passing it to the `ng-include` but it didn't work.
```
self.name = decodeURI(self.name);
```
I alread... |
2018/03/12 | 513 | 1,853 | <issue_start>username_0: I have an iOS Application which i has 2 languages Arabic/English , Arabic language is an RTL Language so when i switch language to Arabic the app running with RTL Layout And that's working
I am just need to force an UIImageView to be LTR when the whole layout is RTL so i used this piece of co... |
2018/03/12 | 402 | 1,482 | <issue_start>username_0: Does anybody knows what is UI presented on Simulator when you call
```
self._authContext = LAContext()
if self._authContext.canEvaluatePolicy(.deviceOwnerAuthentication,
error: &authError)
{
self._authContext.evaluatePolicy(...
}
```
It asks fo... |
2018/03/12 | 845 | 2,865 | <issue_start>username_0: Assignment is to input text and then it prints out in the terminal as half a diamond. example:
```
T
TE
TEX
TEXT
TEX
TE
T
```
I'm really close its just the last part. Here is my code:
```
import javax.swing.*;
// The "number 4" class.
public class number4
{
public static void ... |
2018/03/12 | 777 | 2,001 | <issue_start>username_0: I use the `HTTPEncode()` function in Delphi XE8 to encode Japanese text. Some characters can encode correctly, but some cannot. Below is an example:
```
aStr := HTTPEncode('萩原小学校');
```
I expected this:
```
aStr = '%E8%90%A9%E5%8E%9F%E5%B0%8F%E5%AD%A6%E6%A0%A1'
```
But I got this:
```
a... |
2018/03/12 | 912 | 2,776 | <issue_start>username_0: I am a complete php beginner. My trainer dived into it without much explanation.
Other php questions in stackoverflow seems to follow some other syntax, so I'm confused.
Below are config.php and index.php files. Database name is practice in this code.
Table name is fbsign. Trainer said va... |
2018/03/12 | 834 | 3,026 | <issue_start>username_0: I'm using jquery to get the data from the following API (<https://swapi.co/api/people/>).
So far, I can get all the main data, "name", "height", "mass" etc.
But, when I try to get the values of "homeworld", "films", "species", "vehicles", "starships" it only shows the url to which it refers... |
2018/03/12 | 856 | 2,999 | <issue_start>username_0: I'm specifying dataflow runner in my beamSql program below :
```java
DataflowPipelineOptions options = PipelineOptionsFactory.as(DataflowPipelineOptions.class);
options.setStagingLocation("gs://gcpbucket/staging");
options.setTempLocation("gs://gcpbucket/tmp");
options.setProject("... |
2018/03/12 | 1,082 | 3,121 | <issue_start>username_0: I want to create a dictionary that stores the full name of the 50 states in the word, and the abbreviations in the value, given a list of the names and abbreviations. I am expecting a dictionary like {'Alabama' : 'AK', 'Alaska': 'AL', ...}. I've tried
```
state_to_abbrev = {}
for word in stat... |
2018/03/12 | 277 | 905 | <issue_start>username_0: Phoenix has a generator:
```
mix phx.gen.html Accounts User users name:string age:integer
```
I don't want to use a context for my models, neihter do I want to provide its name. How to disable it?<issue_comment>username_1: I believe you want to use the `--no-context` flag.
[Generating wit... |
2018/03/12 | 356 | 1,185 | <issue_start>username_0: I am using:
* rails 5.1.5
* guard 2.14.2
* linuxmint
Yesterday I installed guard, with the plugins **livereload** and **minitest**.
I use **guard** to automate my tests and make sure nothing gets broken by mistake.
I found out that for some reason, guard was not reacting to file changes. Wh... |
2018/03/12 | 829 | 2,415 | <issue_start>username_0: I want to extract the 4th, 5th, and 6th column from a data table named dt
the following method works:
```
dt[, c(4,5,6)]
```
but the following doesn't:
```
a = c(4,5,6)
dt[, a]
```
In fact, the second method gives me a reult of:
```
4 5 6
```
Can someone tell me why th... |
2018/03/12 | 975 | 2,703 | <issue_start>username_0: For example if I like to do:
```
var request = require('request');
function callback(error, response, body) {
if (num) {
console.log(num);
}
console.log(body);
}
var cookie = {
'74358942795': 'abd7fce573c2-18c2c0de-037f-4aef-9235',
'58942743795': 'e3101e9a0e28-b596998e-e879-400... |
2018/03/12 | 944 | 2,813 | <issue_start>username_0: ```py
if __name__ == '__main__':
g = Graph(); print("Training Graph loaded")
# with g.graph.as_default():
sv = tf.train.Supervisor(logdir=hp.logdir, save_summaries_secs=60, save_model_secs=0)
with sv.managed_session() as sess:
while 1:
for _ in tqdm(range(g.num_batch), total=g.... |
2018/03/12 | 426 | 1,249 | <issue_start>username_0: ```
bool leap = false;
int leapd = 28;
if (year % 100 == 0) {
if (year % 400 == 0) {
leap = true;
}
else { leap = false; }
}
else if (year % 4 == 0) {
leap = true;
}
else { leap = false; }
if (leap = true) {
leapd++;
}
```
This program decides if the year entered... |
2018/03/12 | 1,422 | 4,410 | <issue_start>username_0: I define a sorted list as follows:
```
Require Import Coq.Lists.List.
Import ListNotations.
Inductive SortedList : list nat -> Prop :=
| sort0 : SortedList []
| sort1 : forall a, SortedList [a]
| sort2 : forall z1 z2 l, z1 <= z2 -> SortedList (z2 :: l) -> SortedList (z1 :: z2 :: l).
```
And... |
2018/03/12 | 1,289 | 4,826 | <issue_start>username_0: I'm reading UTF-8 text that contains "\ud83e\udd14". Reading the specification, it says that U+D800 to U+DFFF are not used. Yet if I run this through a decoder such as Microsoft's System.Web.Helpers.Json.Decode, it yields the correct result of an emoticon of a face with a tongue hanging out. Th... |
2018/03/12 | 1,700 | 4,958 | <issue_start>username_0: I have 2 tables **Orders** and **Order Details** table. I want to combine both tables data with header and details in a dataset. When I join these two tables i get combined data but i want a pattern to pull the header first and then the details next without using loops or Cursors.
Here is the e... |
2018/03/12 | 869 | 2,907 | <issue_start>username_0: I have a collection with an IEnumerable interface in a Razor page with a variable number of items.
To ensure when the number of items is below 5 I don't try and get the 5th item in the collection, I have a check like this:
```
@if (Model.MyItems.Count() > 5)
{
@Model.MyItems.Skip(5).First... |
2018/03/12 | 502 | 1,857 | <issue_start>username_0: I have created a simple method that executes a command like you do in the terminal
```
from subprocess import PIPE, run
class Command_Line():
@staticmethod
def execute(command):
result = run(command, stdout=PIPE, stderr=PIPE, universal_newlines=True, shell=True)
print... |
2018/03/12 | 639 | 2,219 | <issue_start>username_0: In the earlier angular version, in our service, we could simply map the response to a JSON object as follow :
```
import { Injectable } from '@angular/core';
import 'rxjs/add/operator/map';
import { HttpClient } from '@angular/common/http';
@Injectable()
export class MakeService {
construct... |
2018/03/12 | 728 | 2,735 | <issue_start>username_0: I have a Load Balancer and Auto-Scaling Group. The Load Balancer sends traffic to my Auto-Scaling Group. I have two instances: Instance 7000 (which is listening on port 7000 and is part of the auto-scaling group and gets its traffic from the load balancer) and Instance 8545 (which is listening ... |
2018/03/12 | 1,921 | 6,680 | <issue_start>username_0: Here is a jsfiddle <https://jsfiddle.net/g10qgefy/46/>
```
if (drawingMode === 'brush') {
ctx.globalCompositeOperation = "source-atop";
} else { //erase
ctx.globalCompositeOperation = "destination-out";
ctx.strokeStyle = 'rgba(1,0,0,0)';
}
```
I am trying to create... |
2018/03/12 | 517 | 1,847 | <issue_start>username_0: This is my first time working with jquery modals. I'm trying to display the popup only when the form is submitted. But instead, it's displaying on page load. How do I fix it?[](https://i.stack.imgur.com/HbTRh.png)
```
$( fun... |
2018/03/12 | 792 | 2,981 | <issue_start>username_0: I am trying to read a mainframe sequential dataset using a Java program.
My Java code:
```
import java.io.IOException;
import com.ibm.recordio.*;
public class Sequential {
public static void main(String[] args) {
try {
IRecordFile file = RecordFile.... |
2018/03/12 | 647 | 2,466 | <issue_start>username_0: I have a MongoDB collection with the following schema:
```
const MessageSchema = {
message: {type: String},
category: {type String, allowedValues: ['a', 'b', 'c', 'd', 'e']},
createdAt: {type: Date}
}
```
These message documents are created at random time intervals. I'd like to create the... |
2018/03/12 | 666 | 2,268 | <issue_start>username_0: I know it's easy but for some reason I can't find this answer. I have tried everything, using font-family and font-style.<issue_comment>username_1: Well, if you're looking to use a cursive font (or any custom font), I recommend using <https://cooltext.com/>. Go under the "fonts" section at the ... |
2018/03/12 | 525 | 2,098 | <issue_start>username_0: I am trying to use damajia's [AndroidImageSlider](https://github.com/daimajia/AndroidImageSlider/wiki/Slider-view) and for my app I need to disable the swipe feature. From this [link](https://github.com/daimajia/AndroidSwipeLayout/issues/24), they say that the have included in setSwipeEnabled f... |
2018/03/12 | 3,679 | 11,542 | <issue_start>username_0: I am a beginer. When I learned the tensorflow's programmer's guide, I tried to define a dataset\_input\_fn function used for 'estimator'. I got a wierd error for me, which shows:
>
> INFO:tensorflow:Using default config.
>
>
> INFO:tensorflow:Using config: {'\_model\_dir': '/model',
> '\_... |
2018/03/12 | 1,674 | 7,012 | <issue_start>username_0: I have recently taken an interest in software development. I have gotten pretty good by looking at source code, and visiting stack overflow regularly. I have since taken a liking to web applications due to their scalability. Because of this, I wanted to look at the source code of Facebook and G... |
2018/03/12 | 988 | 3,354 | <issue_start>username_0: so I've ran into a road block trying to write a function which takes a single parameter , a list and the function should return a modified list which adds a '!' after the end of each item in the list. So this is what I have so far :
```
def add_enthusiasm_to_list(list):
new_list = []
... |
2018/03/12 | 1,390 | 4,425 | <issue_start>username_0: EDIT: This is the current code that I'm trying to paginate. It creates a custom query that excludes the latest post, as well as all posts from one category. Pagination works fine for the most part, but the problem is that the final link in the pagination list takes me to a blank page.
```
p... |
2018/03/12 | 647 | 2,243 | <issue_start>username_0: I have tried two versions of this code and both end up giving me different results. Is there a reason why?
Raw\_input() makes the program get into an infinite loop;
input() works normally
```
numbers = []
increments = 1
def loop(i, dial):
while i < dial:
print "At the top i is ... |
2018/03/12 | 1,222 | 3,617 | <issue_start>username_0: Related to my former question: [Are compilers not allowed to assume const-ref parameters will stay const?](https://stackoverflow.com/questions/49117489/are-compilers-not-allowed-to-assume-const-ref-parameters-will-stay-const)
My new question is: Is there compiler-specific, non-standard extensi... |
2018/03/12 | 1,244 | 4,479 | <issue_start>username_0: I have imported tables from Postgres to hdfs by using sqoop. My table have uuid field as primary key and my command sqoop as below:
```none
sqoop import --connect 'jdbc:postgresql://localhost:5432/mydb' --username postgreuser --password <PASSWORD> --driver org.postgresql.Driver --table users -... |
2018/03/12 | 741 | 2,602 | <issue_start>username_0: I'm still learning Laravel and I can't find the solution for this problem.
I need to get invoices(with expenses) that are related to specific Partner Type.
I tried this:
```
$p = Project::with(['invoices.partner.partnerType' => function($query){
$query->where('partnerTypeName', '... |
2018/03/12 | 1,096 | 3,983 | <issue_start>username_0: I'm using Webpack 3.8.1 and webpack-dev-server 2.9.2. This is for a project I am writing in react. Below is my webpack.config file. Every time that I run the build command the is not transferred to the index.html file in the dist directory. This also happens when I do the production build as we... |
2018/03/12 | 843 | 2,973 | <issue_start>username_0: I am reading stuff from a file and this is the format : c stands for circle and the double is the radius, r for rectangle and the double is width and height respectively and t for triangle and the double represents side length:
```
c 12
c 2
r 3 4
c 2.4
t 2.9
3 c // wrong format
t 2.9... |
2018/03/12 | 533 | 2,046 | <issue_start>username_0: We understand that there are port tear-down during transactions and different ports may be used when sending messages over to the counterparties. When a node goes down, the messages are still sent but they are being queued in the MQ, is there a recommended way how could we monitor these transac... |
2018/03/12 | 583 | 2,114 | <issue_start>username_0: I have these tables in the database:
* user : userid (primary Key), professionid, etc,
* profession : professionid (primary Key), classid, etc,
* class : classid (primary key), etc,
In model of User, I create function,
```
public function getClassid()
{
return 1;
}
```
How can I replace... |
2018/03/12 | 984 | 3,617 | <issue_start>username_0: I'm trying to get a json response from a rails controller and insert it into a js function. I keep getting errors:
MY CONTROLLER
```
def live #users present or attendees view
@presentation = Presentation.find(params[:secret])
@countdown = @presentation.start - DateTime.now()
#IF... |
2018/03/12 | 638 | 2,022 | <issue_start>username_0: Why does the following python code block work? I did define function layer\_size() but I have not defined function layer\_sizes\_test\_case().
```
def layer_sizes( X , Y ):
n_x = X.shape[0]
n_h = 4
n_y = Y.shape[0]
return n_x , n_h , n_y
X_assess, Y_assess = layer_sizes_test_cas... |
2018/03/12 | 1,556 | 5,501 | <issue_start>username_0: I am trying to understand the [SafeArea](https://docs.flutter.io/flutter/widgets/SafeArea-class.html) widget in Flutter.
SafeArea code added to Flutter Gallery app [here](https://github.com/flutter/flutter/pull/13593) in github show `top:false` and `bottom:false` everywhere. Why do these need ... |
2018/03/12 | 655 | 2,227 | <issue_start>username_0: I'm using Django 1.11, Django-tables2 1.19.0 with MS SQL via django-pyodbc-azure 1.11.0.0.
I'm showing a table for a model that is for a rather slow view which unfortunately must run sub-queries for every row. I can't change the view, and so I've disabled the paginator for tables2 and done a s... |
2018/03/12 | 465 | 1,582 | <issue_start>username_0: I built an app with google maps, that displays 40 markers titles loaded from MySQL, and I need to convert `marker.title` into a string
I tried the following but couldn't get it to work:
```
public void addMarker(LatLng latlng, final String title) {
markerOptions.position(latlng);
mar... |
2018/03/12 | 906 | 3,241 | <issue_start>username_0: Theres a command to extract images of a video providing frame per seconds
```
ffmpeg -i "vide.mp4" -vf fps=1 frames/frame_%04d.png -hide_banner
```
Is there a command in ffmpeg to cut video providing fps and save it as video(.mp4 / avi) file like the command above?
What i currently have is ... |
2018/03/12 | 1,181 | 3,114 | <issue_start>username_0: My current code
```css
body {
margin: 0;
}
h1 {
font-family: 'Itim', cursive;
}
header {
background-color: black;
color: white;
height: 50px;
padding: 8px 0px 10px 40px;
}
header li {
display: inline;
font-family: 'Ubuntu Condensed', sans-serif;
font-weight... |
2018/03/12 | 1,423 | 3,929 | <issue_start>username_0: I have a function called quickSort() that does just that. I am trying to understand the behavior of the 'smaller' and 'larger' lists (see below). Specifically, how does Python deal with memory when using recursion within a function? Each time the function is called, do the 'smaller' and 'larger... |
2018/03/12 | 2,091 | 5,463 | <issue_start>username_0: ```c
int main(void)
{
/* Stop WDT */
MAP_WDT_A_holdTimer();
/* Selecting P1.2 and P1.3 in UART mode */
MAP_GPIO_setAsPeripheralModuleFunctionInputPin(GPIO_PORT_P1,
GPIO_PIN1 | GPIO_PIN2 | GPIO_PIN3, GPIO_PRIMARY_MODULE_FUNCTION);
/* Setting DCO to 12MHz */
CS_setDCOCenteredFrequency... |
2018/03/12 | 1,533 | 5,455 | <issue_start>username_0: I'm learning React by making a simple todo list. Loving it so far.
When I delete a todo, it deletes the list item *above* the one clicked to delete. My Index must be off, but I can't find out why.
There is no weird css dis-aligning the rendered delete button for each item. The index just seem... |
2018/03/12 | 200 | 730 | <issue_start>username_0: I need to do a blur effect on Image component on Android with react native,
this is possible or how can i do it?
```
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Image,
} from 'react-native';
export default class Main extends Component {
render() {
... |
2018/03/12 | 224 | 806 | <issue_start>username_0: I am trying to automate some routine chores such as, adding files and committing them in SVN. When I try the following in command line it works like a charm, but when I pass the same command through a batch file, it dose not work. Help!!
```
TortoiseProc.exe /command:add/path:"D:\My Tasks\My ... |
2018/03/12 | 483 | 1,670 | <issue_start>username_0: I want to select first row when the page loads in my application. Currently, When I click on row then the row is getting selected but I want the row to be selected on page load. The same code is working in demo project but not into my application. I do not know where I am getting wrong. Please ... |
2018/03/12 | 483 | 1,955 | <issue_start>username_0: I am using default ignite 2.0 boilerplate code.
Suppose I open a new screen using `this.props.navigation.navigate('SecondScreen')`
After opening the 'SecondScreen' if I am pressing android hardware back button it is closing app. 'SecondScreen' ui back button at top of screen is working fine.
... |
2018/03/12 | 642 | 2,649 | <issue_start>username_0: I have worked with angular for long time without facing many problems until now. I have a controller which calls a function when a ng-change event occurs. I have a set of different reports that are generated depending on some select filters defined in the main controller called Principal (Princ... |
2018/03/12 | 2,163 | 6,153 | <issue_start>username_0: I have a nest-list like bellow:
```
list = [
[1, 2, 4, 5],
[2, 3, 4, 5],
[1, 3, 4, 5, 6],
[1, 2, 3],
]
```
I want to get a dictionary to show the number display count, the dictionary should like bellow:
```
{ '1': 3,
'2': 3,
'3': 3,
'4': 3,
'5': 3,
'6': 1 }
`... |
2018/03/12 | 639 | 2,016 | <issue_start>username_0: I'm not the best with lambda can anyone teach me how to select items from a dictionary using a character array.
say I have a dictionary;
```
Dictionary someDictionary:
```
and i have a character array;
```
char[] someCharacterArray;
```
how do I select items from the dictionary using a c... |
2018/03/12 | 742 | 2,010 | <issue_start>username_0: How to add two sets and delete duplicates
```
>>> a = set(['a', 'b', 'c'])
>>> b = set(['c', 'd', 'e'])
>>> c = a + b
Traceback (most recent call last):
File "", line 1, in
TypeError: unsupported operand type(s) for +: 'set' and 'set'
>>>
Expected output:
c = set(['a','b','c', 'd', 'e'])
... |
2018/03/12 | 327 | 1,194 | <issue_start>username_0: I got an below error while running cucumber Runner.java. After analyzing the issue, I found that Cucumber.class is not run even though cucmber-junit-2.1.0 jar added in built path. Kindly help to resolve the below issue?
Error:
cucumber.runtime.CucumberException: Failed to instantiate public [1... |
2018/03/12 | 264 | 1,052 | <issue_start>username_0: I am using SQL Server 2014
I am currently using this Query to create a View:
```
select *
from ((SELECT 'category1' as item, * FROM itemList_category1) union all
(SELECT 'category2' as item, * FROM itemList_category2) union all
(SELECT 'category3' as item, * FROM itemList_ca... |
2018/03/12 | 2,743 | 10,764 | <issue_start>username_0: Alright, so I'm trying to create a program that will return a day of the week when it is given a number from 0 to 6 (e.g. 0 = Sunday, 1 = Monday....). Afterwards it will then ask the user for another number and it will calculate what day it will be in that many number of days. So it would look ... |
2018/03/12 | 1,664 | 6,656 | <issue_start>username_0: [W3Schools Example](https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_script_src)
My **index.html** Code is like,
```
test
```
My **function.js** file,
```
function Test(){
alert ("Success");
}
```
There is file in that directory but console says 404 not Found<issue_comment>user... |
2018/03/12 | 446 | 1,751 | <issue_start>username_0: I'm attempting to build a new model in AnyLogic and I'm getting the following error:
[](https://i.stack.imgur.com/wacQU.png)
I'm really grasping at straws to identify what is going wrong as there are no errors in the Problem ... |
2018/03/12 | 950 | 2,745 | <issue_start>username_0: My function is supposed to either insert a **new node** after the given position or , if the position is tail, insert it after the tail and make the **new node** tail.
It works for inserting a **node** at a given position but it does not work when inserting after tail. When I run the code for ... |
2018/03/12 | 17,953 | 41,529 | <issue_start>username_0: I'm just now learning how to use SASS and CSS and I'm having some serious problems figuring out how to make the inside of a chat div scrollable while having the input field at the bottom stay when the scrolling happens. Although I figured out how to keep the bottom input bar fixed, now 2 things... |
2018/03/12 | 1,003 | 3,209 | <issue_start>username_0: I have a trained model which I want to use to predict some data and serve it using flask + uwsgi. Everything works fine but when I hit the server sometimes it throws an error:
```
File "api.py", line 150, in get_data
im = sess.run(image_tf)
`ValueError: Fetch argument cannot be interpreted... |
2018/03/12 | 1,128 | 3,817 | <issue_start>username_0: I have a loop as
```
y = [1,2,3,4,5,6,7]
for x in y:
if x == 3:
return(x)
elif x == 4:
return(x)
elif x = 6:
return(x)
else:
return('not found')
```
I don't wanna print data, I just want to return the data and if the data gets returned, is there a... |
2018/03/12 | 353 | 1,340 | <issue_start>username_0: I'm trying to write javascript tests in truffle framework to verify eth balance change after a transaction that moves funds.
I want to rule out the gas expense so that I can assert the balance change by an exact amount.
The following is how I'm trying to determine the amount of eth spent on g... |
2018/03/12 | 1,265 | 4,130 | <issue_start>username_0: I did
npm install firebase angularfire2 --save
to install.
and then, whatever I do like ionic Cordova run android --device. ionic cordova platform update android… etc…
I can’t even remove android platform for this error.
has this error.
```
cordova platform add android --save
Using cordova-f... |
2018/03/12 | 373 | 1,291 | <issue_start>username_0: I am a beginner at django python. I am getting an above error although I am having my template a correct directory.
My view.py is like this.
```
from __future__ import unicode_literals
from django.http import HttpResponse
from django.shortcuts import render
def hello(request):
return rend... |
2018/03/12 | 2,004 | 6,804 | <issue_start>username_0: I have the following problem
I use a google map inside an html form where the user can enter an address (autocomplete) and the marker goes to the place. The marker is draggable.
What I want is to extract latitude and longitude and pass the values to two different input text
i'm following thi... |
2018/03/12 | 937 | 2,895 | <issue_start>username_0: I have a select tag which is having multiple categories with values as option So when I select a value from the drop down I get same option in select.but my requirement is to have values with categories in select tag.
Actual when I select French 1 from select option
**French 1**
Expected
**... |
2018/03/12 | 899 | 2,858 | <issue_start>username_0: How do you make the console print true when the variable "message" contains an element from each array in order: "greetings" then "colour" then "names", but any words before "greetings" and after "colour" still prints true.
If the elements are out of order it should print false.
If there ar... |
2018/03/12 | 790 | 2,511 | <issue_start>username_0: I am trying to convert my Json file to Parquet format.
Following is my pom file.
```
xml version="1.0" encoding="UTF-8"?
4.0.0
com.mypackage
JSONToParquet
1.0-SNAPSHOT
jar
wso2
http://dist.wso2.org/maven2/
org.kitesdk
kite-data-core
1.1.0
org.kitesdk
kite-morphlines-all
1.0.0... |
2018/03/12 | 497 | 1,613 | <issue_start>username_0: I'm trying to render my vue components inside the `router-view` tag. But it gives me an error
>
> TypeError: route is undefined
>
>
>
But I didn't use the word `route` in anywhere. This is my code.
**App.vue**
```
```
**outerroutes.js**
```
import welcome from './components/welcome.v... |
2018/03/12 | 1,433 | 5,682 | <issue_start>username_0: I have the following database
```
DriverC Description LiabilitiesC Amount Date
---------------------------------------------------------
D001 form A to B 0 10.00 8/3
D001 form A to B 1 20.00 9/3
D001 form A to B 1 ... |
2018/03/12 | 561 | 1,577 | <issue_start>username_0: For example,
```
scala> val a = Set(Array(1, 2),Array(8, 9))
a: scala.collection.immutable.Set[Array[Int]] = Set(Array(1, 2), Array(8, 9))
scala> a.flatMap(_)
:9: error: missing parameter type for expanded function ((x$1) => a.flatMap(x$1))
a.flatMap(\_)
^
scala> a.flatMap(x=>x)
res4: scal... |
2018/03/12 | 342 | 1,041 | <issue_start>username_0: I have an input string that looks like this
DatalogSetupFile: BTS50xx1EJA\3.20\log\_all.stp
The `DatalogSetupFile:` and `\3.20\log_all.stp` are constant. I wish to extract `BTS50xx1EJA` from the string. How should I do it?<issue_comment>username_1: You can make a regex group in which you can ... |
2018/03/12 | 619 | 1,954 | <issue_start>username_0: I uploaded a repo to my Digit Ocean droplet about a year ago and tried to npm install without luck. I recently decided to give it a go again and try to get this figured out, but again, still getting the "Killed" error when I try to npm install.
I understand a few of the packages are deprecated... |
2018/03/12 | 653 | 1,864 | <issue_start>username_0: I have a javascript object literal as follows.
```
data: {
prop1ByZones:[{zone: "Zone1", x: 1}, {zone: "Zone2", x: 5}],
prop2ByZones:[{zone: "Zone1", y: "1302.5"}],
prop3ByZones:[{zone: "Zone2", z: 2}]
}
```
the output should be like -
```
output: [{zone: "Zon... |
2018/03/12 | 733 | 2,404 | <issue_start>username_0: I am building a small CLI app using javascript, yargs, inquirer, and superagent. In inquirer I am asking the user to enter a choice of miles to be used in my app. I want to use that value somewhere else in my app but I can't seem to able to get the value returned. Below is my latest attempt. An... |
2018/03/12 | 585 | 2,074 | <issue_start>username_0: I have the popup modal in one of my app.I would like to close this popup while clicking outside of modal.I can achieve this behaviour using javascript but i can't quite find a way to make this work using svelte framework.for now i'm achieving that behaviour like this
```
if(e.target.classList.... |
2018/03/12 | 757 | 2,141 | <issue_start>username_0: This is my json file:
```
{
"ClientCountry": "ca",
"ClientASN": 812,
"CacheResponseStatus": 404,
"CacheResponseBytes": 130756,
"CacheCacheStatus": "hit"
}
{
"ClientCountry": "ua",
"ClientASN": 206996,
"CacheResponseStatus": 301,
"CacheResponseBytes": 142,
"CacheCacheStatus"... |
2018/03/12 | 766 | 1,826 | <issue_start>username_0: I have two data frames:
dt1:
```
date value
0 20000101 2
1 20100101 5
```
dt2:
```
date value
0 20000101 1
1 20100101 1
```
The new data frame is the subtraction of dt1.value and dt2.value:
```
date value
0... |