date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/06 | 368 | 1,437 | <issue_start>username_0: I am creating a chatbot using Amazon Lex, and AWS Lambda as the back end. I am trying to do so that when a user asks the chatbot, the chatbot will reply with more than one message. Below is my code.
[](https://i.stack.imgur.co... |
2018/03/06 | 1,397 | 4,869 | <issue_start>username_0: I have 2 windows program.
Program A : create with visual studio 2015 with crystal report SP18
Program B : create with visual studio 2017 with crystal report SP22
I have a computer with crystal report runtime SP 18.
I run program A in that computer. Program A can create report. I run program... |
2018/03/06 | 3,190 | 8,872 | <issue_start>username_0: I have the following query which uses order by with limit. It takes 2 min 25 sec to pull around 16k data.I have done PROPER INDEXING too but still PERFORMS SLOW. Same time is taken when only LIMIT 20 is applied too. When ORDER BY is removed, query fetches same data in 17 secs.All the tables are... |
2018/03/06 | 589 | 2,136 | <issue_start>username_0: I am trying to build my first .NET app using Identity. It will be a basic Workout app, but I have been having trouble figuring out the Keys and ForeignKeys within Identity. Here is my ExerciseController:
```
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
usin... |
2018/03/06 | 556 | 1,686 | <issue_start>username_0: I have a payment table looks like below:
```
+--------------+---------+
| Type | Amount |
+--------------+---------+
| General | 500 |
| General | 700 |
| Assets | 450 |
| Business | 270 |
| General | 70 |
| Assets | 350 |
+-----... |
2018/03/06 | 303 | 1,077 | <issue_start>username_0: I'm working on an iOS project that requires the basic `UISegmentedControl` but, instead of having the normal left to right layout it requires a top to bottom layout. I have looked in stack overflow and found some libraries that does this. Is there a method I can achieve this without a library?<... |
2018/03/06 | 793 | 2,677 | <issue_start>username_0: I am writing a streaming service in Apache Flink. I am basically picking data from a CSV file by using org.apache.flink.table.sources.CsvTableSource.
Below is the code for same:
```
StreamTableEnvironment streamTableEnvironment = TableEnvironment
.getTableEnvironment(streamE... |
2018/03/06 | 714 | 2,710 | <issue_start>username_0: here is a example:
```
from multiprocessing import Process
import time
def func():
print('sub process is running')
time.sleep(5)
print('sub process finished')
if __name__ == '__main__':
p = Process(target=func)
p.start()
print('done')
```
what I expect is that the m... |
2018/03/06 | 729 | 2,638 | <issue_start>username_0: ```
require_once('../class.user.php');
$user_logout = new USER();
if($user_logout->is_loggedin()!="")
{
$user_logout->redirect('login.html');
}
if(isset($_GET['logout']) && $_GET['logout']=="true")
{
$user_logout->doLogout();
$user_logout->redirect('login.html');
}
?>
```
this... |
2018/03/06 | 1,542 | 4,156 | <issue_start>username_0: I've tried splice, concat, apply, call, etc.
All I am trying to do is take an array like this:
```
[["alksjdflskdj","2","1.33","1.30","", "5","1","1","1","1","1","0","","Other notes"],
["test","1","","","","1","0","1","0","0","0","",""],
["test3","","","","","","0","0","0","0","0","",""],
... |
2018/03/06 | 543 | 1,924 | <issue_start>username_0: I am not sure why, but my Visual Studio Code is showing the wrong commit author name. I am trying to change the author of the commit. How can I do that? I have already multiple things, but no luck.

This is what I tried:
Since I have three commits, I t... |
2018/03/06 | 885 | 3,713 | <issue_start>username_0: I am writing a JUnit test using MvcMock to simulate HTTP post request. However my test is continuously failing with BadRequest error. How can I make the test case PASS
Rest end point - **/transaction**
Request format is JSON -
```
{
"amount" : 12.6,
"timestamp": 1478192204... |
2018/03/06 | 408 | 1,366 | <issue_start>username_0: I am worked on my current project with MONGO, I need a query if i am search a letter need to search every word
ex: I have 3 topics named in my db as below
>
> **chemistry, chemical, organic chemistry**
>
>
>
i tried with query like below
```
db.topics.find({name: { '$regex': '^che', '$o... |
2018/03/06 | 313 | 1,037 | <issue_start>username_0: I have the following code on my index.php file. But it is not working properly.. When i directly visit domain.com/script.php it works. I need this script to be executed in the background while accessing index page. Can anyone help me?
```
shell_exec('php script.php > /dev/null 2>/dev/null &');... |
2018/03/06 | 550 | 1,844 | <issue_start>username_0: It's a question regarding syntactic sugars in Scala functions, similar discussion could be found [here](https://stackoverflow.com/questions/18995988/working-with-sets-as-functions) and [here](https://stackoverflow.com/questions/25973770/implementation-of-scala-set-contains). Both answers give g... |
2018/03/06 | 703 | 2,479 | <issue_start>username_0: Im struggling with a piece of code i have below and cant seam to find something like it anywhere on stacks.
I have tried using the JavaScript .indexof(is returning all that doesn't contain variables) as well as the .match(shows all even if contain part of the word. i need it to be exact for ob... |
2018/03/06 | 474 | 1,622 | <issue_start>username_0: struggling here. Probably missing something incredibly easy, but beating my head on my desk while trying to learn Python and realizing that's probably not going to solve this for me.
I have a dataframe `df` and need to pull the value of column B based on the value of column A.
Here's what I c... |
2018/03/06 | 1,897 | 5,532 | <issue_start>username_0: I'm trying to set up a ripple effect when a button is clicked.
I have done so successfully, however it is only working in Google Chrome's browser and I'm not sure why. The effect does not show up in Safari or FireFox (have not tested IE).
Demo:
<https://jsfiddle.net/uwa67xff/5/>
HTML:
```
*... |
2018/03/06 | 570 | 1,817 | <issue_start>username_0: Say, I have a text stored as:
```
var val1 = 'l-oreal';
```
I want to match `val1` such that, it reads `val1` and ignores hyphen (dash) in it. I want a regex that ignores special characters in a text. Is that possible?
I don't want to remove special character from the text. I want to ignore... |
2018/03/06 | 2,164 | 6,254 | <issue_start>username_0: I am using `rand()` function to generate 100 random integers within range [0 ... 9]. I used the following way to generate them on equal distribution,
```
int random_numbers[100];
for(register int i = 0; i < 100; i++){
random_numbers[i] = rand() % 10;
}
```
This is working fine. But now ... |
2018/03/06 | 689 | 2,774 | <issue_start>username_0: I am currently working on a laravel project. I need to redirect all error pages to 404 page not found page.
```
public function render($request, Exception $exception)
{
if ($this->isHttpException($exception)) {
switch ($exception->getStatusCode()) {
... |
2018/03/06 | 917 | 3,074 | <issue_start>username_0: I'm trying to setup my build defintion with yaml.
I'm using the [AppCenterDistribute task](https://github.com/Microsoft/vsts-tasks/tree/master/Tasks/AppCenterDistribute). It requires and endpoint to MS App Center. I've setup one as per this [tutorial](https://learn.microsoft.com/en-us/appcenter... |
2018/03/06 | 593 | 2,214 | <issue_start>username_0: My Content structure is:
>
>
> ```
> -Home (the site root node)
> -About Us
> -Our Sevice1
> -Our Sevice2
> -Our Sevice3
>
> ```
>
>
I created a macro for Our Services.
In macro, I want Our Sevice1, Our Sevice2, Our Sevice3...
But in the list variable About Us also come but I don... |
2018/03/06 | 608 | 2,414 | <issue_start>username_0: I have a parent element (div) with a fixed width of 1200px. There are no borders or padding on this element.
I have three inline child elements (divs) with fixed widths of 400px. Again, no borders, padding or margins.
I want my three child elements to sit on the same line but instead the thir... |
2018/03/06 | 566 | 1,847 | <issue_start>username_0: Today I had an interview at AMD and was asked a question which I didn't know how to solve it without Regex. Here is the question:
>
> Find all the pattern for the word "Hello" in a text. Consider that there is only ONE char can be in between letters of hello e.g. search for all instances of "... |
2018/03/06 | 583 | 1,951 | <issue_start>username_0: I want to use only ion-icon but these are made differently for different devices such as if we look for notifications ion-icon then we find for ion, ios-outline and material design.
In material desgin all the icons are filled with black color instaead I want to use similar to ios-outline icons ... |
2018/03/06 | 683 | 2,045 | <issue_start>username_0: I want to be able to `open/move/rename` the images form a list of filenames from a directory with hundreds of images. Unfortunately there are no wildcards, they are all `.jpg` and the images names are not sequential.
**e.g**
```
list = ['media\\1520298987567.jpg',
'media\\152029899710... |
2018/03/06 | 615 | 2,659 | <issue_start>username_0: I have some confusion regarding user-level thread blocking. As we know that one user-level thread blocking leads to the whole process being blocked, then why is "responsiveness" one of the benefit of multi-threading? Given in the book of Silberschatz "Operating System Concepts":
>
> Multithr... |
2018/03/06 | 861 | 2,804 | <issue_start>username_0: I have fisheries data set ( [sample data set](https://drive.google.com/open?id=1h5ix-u2QiJp6wpEHNBaQeRbQSIB0q9PO)) . I'm going to study moons impact on the fish catch. I used lunar package to find moon phase of each fishing day.
```r
library(lunar)
data$lunar_phase <- lunar.phase(as.Date(data$... |
2018/03/06 | 380 | 1,450 | <issue_start>username_0: I've never used a progress bar, so I am trying to figure out by piecing together various sources and trying to get it to work with React and Reactstrap. This is what seemed to make sense to me, but it isn't working.
This is the documentation for reactstrap regarding . Basically, it takes a `va... |
2018/03/06 | 797 | 2,756 | <issue_start>username_0: I've been mostly following these two (suspiciously) similar tutorials to learn back end web development.
<https://scotch.io/tutorials/build-a-restful-api-using-node-and-express-4#disqus_thread>
<http://scottksmith.com/blog/2014/05/05/beer-locker-building-a-restful-api-with-node-crud/>
Howeve... |
2018/03/06 | 1,350 | 3,093 | <issue_start>username_0: I tried to import data in csv format using read.csv from <https://data.worldbank.org/indicator/IS.AIR.PSGR>
However, the `read.csv` function gives back:
>
> Error in `read.table(file = file, header = header, sep = sep, quote = quote,` :
> more columns than column names.
>
>
>
I searche... |
2018/03/06 | 682 | 2,316 | <issue_start>username_0: I was trying to invoke tmux and to control the tmux from the same python script. It's stuck in tmux process creation and never returns. How do I create the process (tmux)?
```
#!/usr/bin/python
import time
import sys
import os
import subprocess
class Tmux(object):
WAIT_SECS = 5
def ... |
2018/03/06 | 193 | 656 | <issue_start>username_0: I'm setting a text field value to empty like this
```
$("#navbarSearchField").val('');
```
now I want to re show the place holder value.
I tried triggering a foucusout and a blur but neither worked.
```
$("#navbarSearchField").trigger("blur"); // and .trigger("focusout");
```<issue_comment... |
2018/03/06 | 477 | 1,685 | <issue_start>username_0: I was attempting to assign a closure as a default for an argument and was wondering why the following throws a syntax error:
```js
var myVar, myFunc;
// This throws a syntax error
myVar = myFunc || ()=>{};
console.log(myVar);
```
When the following functionally similar examples work as ex... |
2018/03/06 | 448 | 1,423 | <issue_start>username_0: I have following angular:
```xml
{{item}}
Test Button
```
then in `.ts`,
```ts
export class test{
test(){
console.log(i);
}
}
```
I want to get a variable with the current index number.
How would I go about so that I can get the current index?
Thanks<issue_comment>usernam... |
2018/03/06 | 574 | 1,943 | <issue_start>username_0: I found the `handleChange` "Event Handler" code below on StackOverflow and used it. Everything works fine. Regarding this `handleChange` "Event Handler", my questions are:
1. How does `{target}` become an argument of `handleChange`? Is it default behavior of `onChange` to send the target to th... |
2018/03/06 | 2,412 | 9,062 | <issue_start>username_0: I am new to swift. I used [LTBA components](https://github.com/bhlvoong/LBTAComponents) to build swift app. I follow some tutorial to develop social application like twitter. I start implement to follow button functions. its call the the another API call but same response come with minor modifi... |
2018/03/06 | 357 | 1,667 | <issue_start>username_0: Well, this might be a silly question but I want to clarify the reason.
React-Native imports nodeJS libraries, so I think it is possible to use reactJS library as well though reactJS includes pure html components.
Can react native recognize reactJS components including html?<issue_comment>usern... |
2018/03/06 | 1,051 | 3,866 | <issue_start>username_0: The total for each item can be displayed, but with a new click the total is replaced with a new item's total. But I want the total to be updated after each button click by adding the the new item's total to the previous total.
```
private void button1_Click(object sender, EventArgs e)
{
st... |
2018/03/06 | 934 | 3,386 | <issue_start>username_0: I want to highlight the text when click on combobox.
This is JQuery example
<http://jsfiddle.net/Ilmv/5zWad/>
I would like to do the same on my combobox, but it is not working.
Oracle jet expands their components at run time to add their own classes. So, I am confused on which id or class I ne... |
2018/03/06 | 287 | 908 | <issue_start>username_0: here is the code:
```
function findMin(min, max){
console.log(Math.min(min,max) +100);
}
console.log(findMin(2,3));
```
However,along with the result ,it gives "undefined". Why is that?<issue_comment>username_1: >
> However,along with the result ,it gives "undefined".
>
>
>
... |
2018/03/06 | 1,027 | 3,781 | <issue_start>username_0: I have kind of a basic question about webpack and react that I can use help with (around code obfuscation/uglification).
I am using `create-react-app` for my application and it appears to create a bundled build for production (after running `yarn build`).
And in that file it seems that ever... |
2018/03/06 | 806 | 3,322 | <issue_start>username_0: I am integrating payment gateway in my application using WebView. I want to read the response from HTML content basically it is a JSON object. This is working fine on 6.0 devices. But for 7.0 and 8.0 I am facing issue with JavaScript. I am using the below code.
My Code
```
vPayment.loadUr... |
2018/03/06 | 498 | 1,836 | <issue_start>username_0: I am looking to create a macro in SAS which will calculate the mean for an arbitrary number of numeric variables (variables are the parameter and are input by the user) from a data set. I only know how to input the variables one by one and am unsure on how to set it so any number of variables c... |
2018/03/06 | 2,756 | 8,447 | <issue_start>username_0: Consider the following table structure
table: `Team`
```
+-------+-------------+----------+
| id | companyid | teamcolor|
+-------+-------------+----------+
| 1 | 1 | null |
| 2 | 2 | null |
| 3 | 2 | null |
| 4 | 2 ... |
2018/03/06 | 2,351 | 6,893 | <issue_start>username_0: I have these folder names (in the vector at the bottom) and my plan is to rename the files in each folder to match the folder names.
The file has the same name in each folder.
Here is how I've done it manually to this point:
```
setwd("C:/Users/filepathcontinued/hID_p=-1010097270")
file.ren... |
2018/03/06 | 750 | 3,081 | <issue_start>username_0: I connect to a Hadoop cluster at work using `ssh`.
There seems to be two different file systems available from there :
- one local (although it's remote since I'm sshing this machine). I can navigate the file system using `cd ..` and show files in there using `ls`. I can also install some p... |
2018/03/06 | 373 | 1,074 | <issue_start>username_0: I am trying to make it so that I can pop elements from one queue into a new queue and keep getting that error for this first line of code "temp.push(Q.pop());".
It is something fundamental I am missing so can it be pointed out?
```
#include
#include
#include
using namespace std;
void Halv... |
2018/03/06 | 1,271 | 4,903 | <issue_start>username_0: I have developed an Angular 5 app with plenty of moving parts (Services, Bootstrap, Angular Material, internal+external JS scripts, etc). Now I want to add database connectivity to this app as well (MS SQL Server only). The app has been developed in Visual Studio Code.
I am following [this tut... |
2018/03/06 | 1,183 | 4,500 | <issue_start>username_0: I want to add a file in the `RequestBody` using `retrofit2` POST. But the response is always "no such file or directory" in the call response. I don't know where is the problem.
Manidest permission:
```
```
Here is method:
```
public static void stackoverflowGuysHelpMePls(){
F... |
2018/03/06 | 721 | 2,200 | <issue_start>username_0: Following are my files and output. All I want to do is get Value of `x` after `func1()` as `20`. [I have already referred to this answer](https://stackoverflow.com/questions/15595393/python-global-variable-scoping). I want to know why this do not work? Is it necessary to use `import globalVar` ... |
2018/03/06 | 801 | 2,761 | <issue_start>username_0: I'm trying to build a hackernews clone as a practice to reactjs. Here I'm trying to build this only with react and later I'm going to build this with Redux.
This is my component structure.
```
--main
|--menubar
|--articles
```
Here is the [codepen](https://codesandbox.io/s/zxmj47rm3x) f... |
2018/03/06 | 617 | 2,170 | <issue_start>username_0: I have few text inputs which I need to validate in a bootstrap 3 modal form and I am using Angular 5. I want to close the modal form only if all validations are successful. It should remain as it is if validations fail, on click of a button.
Plnkr:
<https://plnkr.co/edit/VgLArC3RkKMgXOhAPGei?... |
2018/03/06 | 930 | 3,500 | <issue_start>username_0: I am working on a project where I need to scrape the webpage so I gone through with tutorials and I found that phantomJs would be the best choice for it. as it allows us to get HTML content of angularJs site and ajax based view sites, and I have already write code for it and working fine, But t... |
2018/03/06 | 413 | 1,492 | <issue_start>username_0: I am trying to replicate the following:
[php if statement html option value](https://stackoverflow.com/questions/15357450/php-if-statement-html-option-value)
and am following the directions as suggested:
Give name to your select.
```
Newest
Best Sellers
Alphabetical
```
In php
```
Exa... |
2018/03/06 | 450 | 1,257 | <issue_start>username_0: Can someone please give me advice on how to filter out a list of lists when it contains a certain number. For example, if the sub-lists contain 2 then I want the third value.
```
let p = [ [0;2;1]; [7;2;5]; [8;2; 10]; [44; 33; 9]]
//Filtered List: [1;5;10]
let q = p |> List.filter(fun((x,y):in... |
2018/03/06 | 936 | 2,637 | <issue_start>username_0: I'm using the following code to retrieve all the image links on a webpage
```
from bs4 import BeautifulSoup
import requests
def get_txt(soup, key):
key_tag = soup.find('span', text=re.compile(key)).parent
return key_tag.find_all('span')[1].text
urldes = "https://www.johnpyeauctions.c... |
2018/03/06 | 698 | 2,231 | <issue_start>username_0: I have a giant list in excel, they are just two columns
```
name type
```
The file is currently being read:
```
$lines = array_map('str_getcsv', file('file.csv', FILE_IGNORE_NEW_LINES));
```
`print_r($lines);` returns:
```
name1;type
name2;type2
...
Array ( [0] => Array ( [0... |
2018/03/06 | 971 | 3,185 | <issue_start>username_0: I'm trying to search for items using the `data-find` attribute but my function is just matching the input string with any text inside of the container.
You can see this by adding words to the HTML and then entering the input.
How do I get my function to match what's in the `data-find` attri... |
2018/03/06 | 1,439 | 5,167 | <issue_start>username_0: I have tried
```
android:screenOrientation="portrait"
```
and
```
setRequestedOrientation (ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
```
but it is crashing the app, Is there any alternative method for this to work in Android 8.0.0+?
Logcat:
```
FATAL EXCEPTION: main
Process: in.ajtec... |
2018/03/06 | 915 | 3,138 | <issue_start>username_0: How to get next value from match value in loop? I need '1010-1040' key in array.
```
php
$arr = Array
(
'0900-0930' = 0,
'0935-1005' => 0,
'1010-1040' => 0,
'1045-1115' => 0
);
$matchVal = '0935-1005';
foreach ($arr as $key => $value) {
if($matchVal == $key){
ec... |
2018/03/06 | 1,215 | 3,447 | <issue_start>username_0: I have a text file that is structure like below :
```
293.0 2305.3 1508.0
2466.3 1493.0
2669.5 1578.6
... |
2018/03/06 | 1,163 | 4,963 | <issue_start>username_0: In silberschatz "Operating System Concepts" book, section 4.3.2 says that
>
> one-to-one model provides more concurrency than the many-to-one model
> by allowing another thread to run when a thread makes a blocking
> system call. It also allows multiple threads to run in parallel on
> mul... |
2018/03/06 | 1,296 | 4,075 | <issue_start>username_0: Given a flex container that contains a sentence, I'd like to wrap one of the words with a for some additional styling. Example:
```css
div {
display: flex;
border: 1px solid black;
width: 190px;
flex-wrap: wrap;
}
span {
color: red;
}
```
```html
This is not a very long ... |
2018/03/06 | 533 | 2,055 | <issue_start>username_0: I am getting below error while I save the transformation in pentaho spoon:
```
Error saving transformation to repository!
Error updating batch
Cannot insert duplicate key row in object 'dbo.R_STEP_ATTRIBUTE' with unique index 'IDX_RSAT'. The duplicate key value is (2314, PARTITIONING_SCHEMA, ... |
2018/03/06 | 535 | 1,951 | <issue_start>username_0: I have a function that finds the longest word in a string.
```
function findLongestWord(str) {
var longest = str.split(' ').reduce((longestWord, currentWord) =>{
return currentWord.length > longestWord.length ? currentWord : longestWord;
}, "");
return longest;
}
console.log(findLong... |
2018/03/06 | 548 | 2,014 | <issue_start>username_0: So I'm creating a web form with Vuejs / Vuetify and I need to provide an option for users to edit existing data. When I'm on the edit page, I have an "item" object with contains all the properties/values which the user can edit. I can bind these to v-text-field via v-model without issues. The p... |
2018/03/06 | 778 | 2,792 | <issue_start>username_0: I have a class where written is a function creating my button:
LoginButton.swift
```
func createButton() {
let myButton: UIButton = {
let button = UIButton()
button.addTarget(self, action: #selector(Foo().buttonPressed(_:)), for: .touchUpInside)
}()
}
```
Now in my ... |
2018/03/06 | 693 | 1,878 | <issue_start>username_0: I have two expressions:
1) `/\W/` to remove any special characters (except underscore \_).
2) `/lorem/` - String must contain lorem.
Can I combine those 2 regexps into 1 regex?
So for example, if run against `l-orem`, regex must match because it contains lorem and hyphen will be ignored.
... |
2018/03/06 | 500 | 1,592 | <issue_start>username_0: I want to execute a PowerShell script using php. Using cmd it is working fine, but it is not working using php and I am using wamp server.
My code is as follows:
```
php
ini_set('max_execution_time', 300);
//$output=shell_exec('cd C:\AWS\Distributed-setup-3');
//$output=shell_exec('cd');
$ou... |
2018/03/06 | 496 | 1,833 | <issue_start>username_0: I have a task wherein I am receiving a list of files(size of each file is very small) which should be used for processing.
There are millions of such files stored in my AWS S3 bucket, I need to filter and process only those files which are present in the above list.
Can anyone please let me kn... |
2018/03/06 | 2,033 | 6,354 | <issue_start>username_0: I am trying to plot monthly roseplots in R using the code below but I am encountering an error: "Error: Faceting variables must have at least one value"
**Here is the data that I am using** [Link to data](https://www.dropbox.com/s/spwpoukrli5p715/test.csv?dl=0)
This code came from a previous ... |
2018/03/06 | 841 | 2,977 | <issue_start>username_0: I have following class
```
class Names
{
public string Name1 { get; set; }
public string Name2 { get; set; }
//.
//.
public string Name5 { get; set; }
}
```
I want to access all properties in FOR loop
```
for (int i = 1; i <= 5; i++)
{
string varName = "Name";
//co... |
2018/03/06 | 860 | 3,110 | <issue_start>username_0: So basically, I'm currently making a game and I decided to add in chunks for big maps so that it wouldn't lag. My idea was to have a main 2D array containing all tiles for my map (in integers), and a list of chunks(which are other 2D arrays).
```
static int[,] map;
static List chunks;
```
Sa... |
2018/03/06 | 1,864 | 5,837 | <issue_start>username_0: I have a series of conditions that I'm checking, and based on the combination of results, a different Message Box should appear in my Windows Forms application.
```
if (pklsizefix && !cplhashfix && !oplhashfix && !cplpathamfix)
MessageBox.Show("CPL Filename Updated in ASSETMAP.");
if (!p... |
2018/03/06 | 324 | 1,435 | <issue_start>username_0: Suppose I have 2 network policies, for nodes matching labels "app=database". Suppose:
* First policy has rules that block all ingress traffic.
* Second policy has a rule allows ingress traffic on port 5660.
Even though this is a simple example, how does kubernetes decides which rule wins?
In ... |
2018/03/06 | 7,980 | 22,033 | <issue_start>username_0: I generate dynamic span elements on "Link", "FistName", "LastName" buttons thanks to onclick event. The problem is that I would like to create these spans based on cursor position. I found a script on Internet and changed it to adapt in my function editTag() but no success. Did I miss something... |
2018/03/06 | 957 | 3,503 | <issue_start>username_0: I have a search feature in the application. When the user clicks the search button the data is captured in `[(ngModel)]` and passed to a service. The URL is redirected to the HTML of the `SearchComponent`.
This service is injected into the `SearchComponent` and the data is displayed.
When the ... |
2018/03/06 | 260 | 836 | <issue_start>username_0: Hello Guys Please Help me for this I didn't how I show select title. I want to show above When should we call you?.
please check my code Thanks:-
```
today
tommorow
sunday
```
Please check online codepen code link:- <https://codepen.io/anon/pen/EQBbyG><issue_comment>username_1: You can ... |
2018/03/06 | 571 | 2,158 | <issue_start>username_0: I have problems referencing my android library modules in my projects. Beside the main app module I use to have an android library module with either util stuff or as data module. I reference it in app module like that:
```
dependencies {
implementation project(":data")
}
```
When I buil... |
2018/03/06 | 703 | 2,498 | <issue_start>username_0: In this file I am trying to make something that adds all numbers up to a number entered by a user. Such as, 4: 1 + 2 + 3 + 4 = 10. So if they enter 4 it returns 10.
When I run the code I get an error message saying my file has stopped working. Do i have an endless loop?
```
#include "biglib.... |
2018/03/06 | 1,518 | 5,364 | <issue_start>username_0: I'm having difficulties sending post request using AJAX with Vanilla Javascript. Everytime I post a request it always print an empty object on the server console, I tried to check (console.log) the object before it being sent and it seems okay, but somehow the server only receives an empy objec... |
2018/03/06 | 874 | 3,166 | <issue_start>username_0: I am working on a test signup with nodejs, i set up a free mongo lab database and testing signups on my local server. i keep getting this error an on my route, i can console upto var user = new User(); (console- user) and get the objects . I can console user.profile and console will display nam... |
2018/03/06 | 325 | 1,112 | <issue_start>username_0: I'm having real trouble with this!
```
StreamWriter sw = new StreamWriter(@"C:\Users\Anthony\Documents\" + Fileinfo.Text + "\\Index.HTML");
{
sw.WriteLine("test");
}
```
it keeps bring up this error,
>
> System.ArgumentException: 'Illegal characters in path.'
>
>
>
I'm sure its so... |
2018/03/06 | 1,926 | 7,233 | <issue_start>username_0: For the comparing source code in Comparator class
```
public static > Comparator comparing(
Function super T, ? extends U keyExtractor)
{
Objects.requireNonNull(keyExtractor);
return (Comparator & Serializable) (c1, c2) -> keyExtractor.apply(c1).compareTo(keyExtractor.apply(c2));
}
```
I ... |
2018/03/06 | 203 | 784 | <issue_start>username_0: I have nginx.conf file on our artifactory (<http://artifactory.abc.com>). I want to dowload and replace the file (/etc/nginx/nginx.conf) inside the container when the container is launched so that I do not have to rebuild the Dockerfile each time I make a change to my nginx.conf file. I can jus... |
2018/03/06 | 251 | 1,002 | <issue_start>username_0: dependency injection might be good in theory - but in our world, it's just slow. Whenever we run tests or start our application - spring is spending 50 seconds in various calls to the PathMatchingResourcePatternResolver.
Is there any way to prevent that - to short circuit any spring discovery... |
2018/03/06 | 949 | 3,488 | <issue_start>username_0: I am getting below error when trying to access jenkins pipeline url. I tried clearing the browser cache, tried different browsers etc but no luck. the same pipeline url works fine for other users but not for me. any ideas why it throwing 404 error for me? many thanks!
```
HTTP ERROR 404
Proble... |
2018/03/06 | 1,031 | 3,786 | <issue_start>username_0: I am getting error while sending message using `Firebase` cloud messaging admin `API`.
Error message is below
>
> Caused by: com.google.api.client.http.HttpResponseException: 400 Bad Request
> {
> "error": {
> "code": 400,
> "message": "Request contains an invalid argument.",
> "errors"... |
2018/03/06 | 784 | 3,608 | <issue_start>username_0: I am creating a package lib for all the errors in a Webapi service. This library will be used for providing custom responses for BadRequest, BadArgument, ApiVersionsing etc.. related errors. I need help in customizing Apiversion related errors for - ApiVersionUnspecified, UnsupportedApiVersion,... |
2018/03/06 | 1,553 | 5,680 | <issue_start>username_0: I have some basic ColdFusion code to create two select lists. When I choose an item from the first dropdown, I would like the second to change automatically based on what is selected in the first list.
For example, let's say I choose department "IT" from dropdown 1, dropdown 2 should only show... |
2018/03/06 | 340 | 1,125 | <issue_start>username_0: I have a form field like this:
```
```
Right now, I am capturing an "enter" action with this:
```
$('#field_phone').keydown(function (e){
if(e.keyCode == 13){
alert("You pressed Enter");
}
})
```
I don't want to do a function for every single field in the fo... |
2018/03/06 | 504 | 1,767 | <issue_start>username_0: I have installed rabbitmq-server on ubuntu , post installation I have checked if its running properly on the ports or not using `netstat -lntu`. Its running, plugins are enabled and same has been verified too. Even port 15672 is also open. What can be the reason that I am not able to acces web ... |
2018/03/06 | 621 | 2,308 | <issue_start>username_0: ```
//Prompts user for a file name and stores it
string fileName;
cout << "Enter the file name: ";
cin >> fileName;
ifstream inFile (fileName);
inFile.open(fileName);
//Prompt the user until they give the name of a file that can be opened
bool validFileName = false;
while(validFileName == fa... |
2018/03/06 | 450 | 1,352 | <issue_start>username_0: I want to change the colour of td dynamically,
Here is my code:
```
php
if($status === 'On time'){
$color = "green";
}elseif ($status === 'No data') {
$status = "Address Not Found";
$color = "red";
}else{
$status = "Free Slot";
$color = "grey";
}
?
php echo $status; ?
php
}
? |
... |
2018/03/06 | 442 | 1,549 | <issue_start>username_0: I am running the bash files to make a Mongo dump on daily bases.But In local directory I am running a one bash file which connects to server terminal.And in server terminal I am running the other file which makes a Mongo dump.
But is it possible to make one file which connects to MongoDB serv... |
2018/03/06 | 538 | 1,831 | <issue_start>username_0: I need to get a part of the text bold in my app. So basically what I am trying to achieve is have something like this: **Address:** 123 Street. Where at the moment i am getting all in bold: **Address: 123 Street**
Here is my code I am using:
```
PdfPTable table2 = new PdfPTable(3);
... |
2018/03/06 | 396 | 1,304 | <issue_start>username_0: I need to enumerate a zipped array to check index for each object from array. Below is my code please help me out.
```
for((index1, index2),(value1, value2)) in zip(array1, array2).enumerated() {
// INDEX OF OBJECT
}
```<issue_comment>username_1: You can make use of `enumerated` to kn... |
2018/03/06 | 1,209 | 3,466 | <issue_start>username_0: I want to add values in a list successively.
is there any way to do it by using list comprehension?
```
input_list = [1,2,3,4,5,6]
expected_list = [1,3,6,10,15,21]
```
this can be done by this function
```
def add_list(input_list):
required_list =[input_list[0]]
for item in range(1,... |