date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/15 | 544 | 1,964 | <issue_start>username_0: **UPDATE**: It seems likes an UX issue, I created an issue on GitHub, you can track here:
<https://github.com/reactstrap/reactstrap/issues/910#issuecomment-374369572>
---
I am using Reactstrap.
I want to show tooltip only when after hovering mouse 2 seconds. When I click the button immediat... |
2018/03/15 | 576 | 2,119 | <issue_start>username_0: I have created a bash script which first activates a python virtual environment, and then runs a python file. When I execute the bash script manually, the python file runs as intended. Bash script code:
sample.sh
```
#!/usr/bin/env bash
source ./project/bin/activate
python3 /home/abc/project... |
2018/03/15 | 634 | 2,016 | <issue_start>username_0: I am trying to extract information from a JSON file from Google Finance. The `requests.get()` is working but then I get stuck. I have searched quite a bit and nothing suggested seems to work. This is what I have:
```
import requests
from json import loads
params={'q': 'NASDAQ:AAPL','output': ... |
2018/03/15 | 761 | 2,890 | <issue_start>username_0: I learning React-Native with Windows 10, Using Git Bash Command Prompt and Android Studio Emulator.
I have Install React Native globally by using `npm install -g react-native-cli`, I always create Project using `react-native init ProjectName` and
**My Project Launching Method** is
go into P... |
2018/03/15 | 684 | 2,127 | <issue_start>username_0: My project is all about tradesman and customer where customer post their job choose location and the tradesman can find the job of his area but the condition is tradesman can add multiple area So the Question is there is a tradesman whose added three location which is like
```
$locs=Array ( [... |
2018/03/15 | 951 | 2,598 | <issue_start>username_0: When designing a responsive layout, what size is the standard for using a `max-width` container in 2018? Currently I am using **1140px** to fit the standard screen size of **1366px**.<issue_comment>username_1: I'd say use the bootstrap container sizes, as they are used pretty often and are quit... |
2018/03/15 | 759 | 2,532 | <issue_start>username_0: I want to change the time format from string, I am having the values in hh:mm:ss in 24 hr format and I want to make it hh:mm:a in 12 hr format.
I have tried -
```
NSDateFormatter *format = [[NSDateFormatter alloc] init];
[format setDateFormat:@"hh:mm:ss"];
NSDate *date123 = [for... |
2018/03/15 | 849 | 2,766 | <issue_start>username_0: I am getting a base64 string from server in json response.It may contain image,zip file,pdf,mp3 or video.If i am going to decode the base 64 string then in the imageview the image is showing,but i want to download the file and open it in mobile gallery in case if it is image,if it is pdf it wil... |
2018/03/15 | 414 | 1,323 | <issue_start>username_0: I have a SQL query which was initially this-
```
DELETE FROM table_1
WHERE column_1 IN ( SELECT column_1 FROM table_2 WHERE
column_3 < CURRENT - INTERVAL(N) MONTH TO MONTH)
```
Now my advisory has told to use Financial Close Year instead of CURRENT like:
```
DELETE FROM table_1
WHERE colu... |
2018/03/15 | 1,589 | 5,697 | <issue_start>username_0: I am creating an app with SoundCloud api and trying to append the string value which is entered by user but it showing me null in interface how can I append that in url?
MainActivity.java
```
b.setOnClickListener(new View.OnClickListener(){
@Override
public void onC... |
2018/03/15 | 352 | 1,122 | <issue_start>username_0: Is there way to convert two dimentional array into single dimentional array without using foreach loop in php.
Below is the actual array
```
Array
(
[0] => Array
(
[male] => male
[female] => female
)
[1] => Array
(
[male] =>... |
2018/03/15 | 324 | 1,112 | <issue_start>username_0: I am a total beginner in R, so this might be an obvious question. I have a dataframe with 129 variables, some numeric, some string. Basically, I am trying to loop through each variable to calculate the mean/mode(depending on the variable), standard dev (if applicable), and frequency, and have i... |
2018/03/15 | 476 | 1,374 | <issue_start>username_0: from the table below, I need to get the visits which having EndTime between 20:00 to 00:00. (highlighted in yellow)
[](https://i.stack.imgur.com/jbMFp.png)
this is the query I am using now, but if I am not getting any result.... |
2018/03/15 | 1,534 | 4,168 | <issue_start>username_0: Given list\_a and list\_b. I want to run list\_b through a function that gives all possible sublist of list\_b (this part of the code works). I then want to take every sublist of list\_b, and see if that sublist is also a sublist of list\_a. If it is I should get a list of all the indexes, or s... |
2018/03/15 | 621 | 1,946 | <issue_start>username_0: I'm new to **Bootstrap**
I have a HTML like:
```
First Column
Second Column
```
Now there are only two columns of 3 size each and will not cover the full length of the row so there will be blank space at the right side of the row on the view.
These columns are dynamic like these may be... |
2018/03/15 | 613 | 1,844 | <issue_start>username_0: I am new to programming. I am using javascript right now. I wanted codes to get end date for a execution. I have got Startdate, weekdays(days in which execution occures) and number of executions to occure. How can i get end date???
For example Start date is '15 - 03 - 2018'
days to be executed... |
2018/03/15 | 908 | 2,295 | <issue_start>username_0: would like some help with the following problem.
I currently have a panda dataframe with 3 columns - test1, test2, test3
What I hope to achieve is result in the result\_column, where the logic will be:
1) If value in test1 **AND** test2 > 0, then return value of test3
2) Else If value test... |
2018/03/15 | 1,164 | 3,113 | <issue_start>username_0: I have a ASP function as below for rounding up the amount:
```
function GetRoundedVal(amount)
NoOfRight = right(formatnumber(amount,2),1)
if NoOfRight = 0 then
roundedAmount = amount
elseif NoOfRight = 1 then
roundedAmount = amount - 0.01
elseif NoOfRight = 2 then
roundedAmount =... |
2018/03/15 | 590 | 2,420 | <issue_start>username_0: I am new to the `web development`. Here, I am using the jquery `datePicker`. In this I have a input box and that user can s`elect only year and month and not date`. So, I used,
```
$('#' + duration[k]).datepicker({
format: 'MM yyyy',
viewMode: "month... |
2018/03/15 | 429 | 1,586 | <issue_start>username_0: I am using **Django** to develop a web application on the linux server.
When it comes to deployment, a proposed way is to use **Nginx** to communicate with the client and **Django** only need to communicate with **Nginx** with **uwsgi** protocol.
The relationship is client<-Http->Nginx<-uwsgi... |
2018/03/15 | 372 | 1,349 | <issue_start>username_0: I meet a problem when I tried to write the json data to static file in my spring boot project. It occurs that the fileNotFound though I ensure that I have the file. The absolute path is just ok. [Here is my project structure](https://i.stack.imgur.com/aV1dT.png)
I write the path: /data/user.js... |
2018/03/15 | 422 | 1,649 | <issue_start>username_0: We migrated a project from TFS 2015 to VSTS recently as a Scrum project as it was in TFS. But we want the project to be using the CMMI process template.
Now, how can we migrate the existing project from Scrum to CMMI process template?<issue_comment>username_1: According to MS documentation ([h... |
2018/03/15 | 352 | 1,398 | <issue_start>username_0: Can anybody just tell me is it possible to achieve? I am trying to create a website using angularjs- front end and falcon- back end. So, how could i integrate them so that my form data get posted to back end?
Thanks in advance!<issue_comment>username_1: Use Node js instead of the falcon-back e... |
2018/03/15 | 1,243 | 3,990 | <issue_start>username_0: This is a simple program
```
#include
void get(int,int);
void main()
{
int a,b;
get(a,b);
printf("In main");
printf("%d",a);
}
void get(int m,int n)
{
printf("enter the value");
scanf("%d%d",&m,&n);
}
```
and I got an output is
```
enter the value
4
5
```
in main:
```
0... |
2018/03/15 | 1,100 | 3,276 | <issue_start>username_0: ```
library(rgdal)
library(maptools)
library(gstat)
library(sp)
data <- read.table("meuse.txt", sep="", header=TRUE) # read txt file
# transform the data frame into a spatial data frame
coordinates(data) <- ~ x + y
## Set the coordinate system
proj4string(data) <- CRS("+init=epsg:4326")
## ... |
2018/03/15 | 617 | 2,093 | <issue_start>username_0: How to sort a list using comparator in Descending order (based on salary which is a long value)
---
```
class Empl{
private String name;
private long salary;
public Empl(String n, long s){
this.name = n;
this.salary = s;
}
public String getName() {
... |
2018/03/15 | 682 | 2,177 | <issue_start>username_0: I have two different queries from two tables. The first query I have is:
```
select sum(total_amount) as total_amount, supplier_name
from tbL_supplierAccountLedger
where DATE >= '2017-01-01' and DATE <= '2017-12-31' group by supplier_name
```
The output of this is
```
Total Amount | Sup... |
2018/03/15 | 780 | 2,796 | <issue_start>username_0: Why image is not in UIButton, when using that code ?
I have an image URL to use that image in my app.
```
//Show Image from URL
let url = URL(string:"https://static.pexels.com/p…/247932/pexels-photo-247932.jpeg")
let session = URLSession.shared
session.dataTask(with: url!, completi... |
2018/03/15 | 2,335 | 7,297 | <issue_start>username_0: I am doing key value pair mapping for the first time and not been able to approach. I have a key value pair like :
```
trips= {
date1: [
{
"id": 1,
"Place": "Delhi",
"Number": "001",
"Vehicle": {"id":"veh1", "number": "AN01001"}
},
{
... |
2018/03/15 | 1,880 | 6,057 | <issue_start>username_0: I've added a feature in my app which is in Swift 4, which allows a view to orientate to landscape or portrait as it displays a chart. I've created two separate views for each orientation and I've created the logic to handle the process. It works okay except for one minor niggle which I can solv... |
2018/03/15 | 1,870 | 5,979 | <issue_start>username_0: In my case, all the files have been created via API can be retrieved, however the created file in a specific folder in google drive itself cannot be retrieved.
Example:
I have a folder named "Test".
Now the user manually uploads or creates a file called "test.txt" in "Test" folder.
The prob... |
2018/03/15 | 740 | 2,467 | <issue_start>username_0: so the problem I have is quite simple.
I have a span `Show More` and with this element I am expanding a section to show more text.
The problem I have is that I want to use this function in other sections of the page.
This is the jquery code which I am using to toggleClass active.
```
$(".spD... |
2018/03/15 | 738 | 2,313 | <issue_start>username_0: I am trying to perform vlookup from one sheet to another in same workbook. But getting the run-time error "*object variable or with block variable not set*". If anyone can have a look and help me out here. Kind of stuck here from few days
Also I am unable to print values in immediate block for... |
2018/03/15 | 259 | 952 | <issue_start>username_0: While using the `tf.train.MonitoredTrainingSession`, is it possible to save all the checkpoints.
It has a parameter (`save_checkpoint_secs=600`) to specify after how much we want to save a checkpoint but there is no option to specify how many checkpoints you can save.
While using the simple `t... |
2018/03/15 | 1,631 | 6,836 | <issue_start>username_0: I want to filter some ArrayList of datas with search,
In my Activity's onCreate:
```
arrayList = getListItemData();
filteredArrayList = new ArrayList<>();
filteredArrayList.addAll(arrayList);
adapter = new NameAdapter(filteredArrayList);
itemList.setAd... |
2018/03/15 | 705 | 2,859 | <issue_start>username_0: I am new in selenium. I need a browser without a graphical interface because the project will start with Jenkins. I decided to use ChromeDriver in Headdless mode.
When I use ChrimeDriver in normal mode, I can click on all elements:
```
WebDriver driver = new ChromeDriver();
List allElem = dri... |
2018/03/15 | 716 | 2,851 | <issue_start>username_0: Is it possible to reverse the properties of `[Pscustomobject]` ?
I have to setup resources in queue order. After testing is over , i have to teardown the resources in reverse order.
below is the sample code.
```
$volume= @{Name='Vol1';size = "100gb"}
$VolumeCollection = @{Name = 'VolColl'; ... |
2018/03/15 | 429 | 1,224 | <issue_start>username_0: I have 2 tables 'table1' and 'table2'.
`table1` has 10,000 records and `table2` has 5,000 records.
Both tables have "RECORD\_ID" column. All RECORD\_ID's that are in `table2` can be found in `table1`.
I want to UPDATE the "PRICE" column of `table1` based on the "RECORD\_ID" column of `table2... |
2018/03/15 | 797 | 2,882 | <issue_start>username_0: **Is there a simple way to change the schedule of a kubernetes cronjob** like `kubectl change cronjob my-cronjob "10 10 * * *"`? Or any other way without needing to do `kubectl apply -f deployment.yml`? The latter can be extremely cumbersome in a complex CI/CD setting because manually editing t... |
2018/03/15 | 866 | 2,963 | <issue_start>username_0: Unable to use for each loop in trigger
I am getting
>
> Error Code: 1064
>
>
>
```
DELIMITER $$
CREATE
TRIGGER `TRG_AU_DEVICES_HOWLONG` AFTER UPDATE ON `devices`
FOR EACH ROW BEGIN
DECLARE lastid INTEGER;
DECLARE a, b, c VARCHAR(255);
SET @lastid := (SELECT deviceI... |
2018/03/15 | 509 | 1,701 | <issue_start>username_0: I need to design a text box [textbox](https://i.stack.imgur.com/drie0.jpg)
As in the the above picture.
It should have two text box and if i edit one it should reflect in another(via versa).
Kindly help me on this.
Thanks in advance<issue_comment>username_1: Is this what you want?
```js
va... |
2018/03/15 | 1,722 | 6,893 | <issue_start>username_0: As my expectation, user should not see any page until they signed in.
**current behavior when executing app:**
show main page(about one second) -> show login page
**expected behavior:**
show login page -> signed in -> show main page
Questions:
1. How to modify the current behavior to... |
2018/03/15 | 994 | 3,472 | <issue_start>username_0: I've been working on a script in Powershell to get paths from a CSV file and move those files at the corresponding path to a new destination elsewhere. often with a different filename.
*I am using Version 5.0*
For example:
```
Source Destination : C:\1\2\3\File.pdf, D:\3\7\8\9\FILE1.pdf
```... |
2018/03/15 | 464 | 1,575 | <issue_start>username_0: I have a list of words `['Ip', 'Name', 'Error']`. Reading a log file,
the script should test if that line contains one of the words from the list.
Didn't succeed with 'if list in line' ... any idea ?<issue_comment>username_1: To debug such cases, consider `Move-Item`'s `-WhatIf` parameter. Li... |
2018/03/15 | 1,511 | 6,492 | <issue_start>username_0: I have two machines, A and B.
A sends an HTTP request to B and asks for some document.
B responds back and sends the requested document and gives a 200 OK message, but machine A is complaining that the document is not received because of a network failure.
Does HTTP code 200 also work as ackn... |
2018/03/15 | 1,527 | 6,452 | <issue_start>username_0: when i run this method it shows below error,
```
public bool SaveDocument(out string newDocumentNo, ReciptUpdate reciptUpdate)
{
newDocumentNo = "MB120055";
return true;
}
```
The error is
>
> ArgumentException: Type must not be ByRef
>
> Parameter name: type
>
>
... |
2018/03/15 | 630 | 1,738 | <issue_start>username_0: I have a data frame which contains all the conditions.
```
cond.df = data.frame(
mpg = c(21,18.7,22.8),
gear = c(4,3,2),
carb = c(4,3,2)
)
```
So for my first output, I want a filtered data frame which is equivalent to
```
mtcars %>% filter(mpg == 21, gear == 4, carb = 4)
```
My des... |
2018/03/15 | 843 | 3,243 | <issue_start>username_0: I want to use Google libphonenumber in my angular project using Typescript. I have searched a lot on the internet and found a lot of stuff but could not find anything that could serve my purpose.
Most of the content available shows the code in JavaScript. If I use the same code in typescript... |
2018/03/15 | 827 | 3,197 | <issue_start>username_0: I have written code for email verification. I want to change my login controller behavior so that it will only allow verified users only.
I have status field in database that will store user is verified or not by storing 0/1. Now on login request I have to check email, password, as well as sta... |
2018/03/15 | 504 | 1,987 | <issue_start>username_0: In my Django app, I have an Attribute model which has a many-to-many relationship to a MeasurementMethod model.
I put an inline for MeasurementMethod in the admin interface for Attribute, but I don't think it is useful to have a separate interface for managing MeasurementMethods at all; there'... |
2018/03/15 | 938 | 3,354 | <issue_start>username_0: ```
int lastSpace = fullName.lastIndexOf(" ");
```
here all the code
```
import java.util.Scanner;
public class java_13 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("Enter your full name");
String fullName = input.nextLin... |
2018/03/15 | 702 | 2,569 | <issue_start>username_0: I'm using angular5 and angular firebase2.
I have a simple question.
I'm trying to make keyword comparing module now.
Everything is fine, and actually, but observable is firing twice.
I have no clue why it's firing exactly twice.
Here's my code.
```js
/*add-store.component.ts*/
serverCheck... |
2018/03/15 | 880 | 3,284 | <issue_start>username_0: I want to use Singleton to show ads, but it doesn't work well.
When I don't use Singleton and use only ViewController, it works well.(can through "vampLoadStart" and "vampDidReceive")
How can I solve it?
**Pattern1: when I use Singleton (can't load and show ad)**
VAMPAdReward.swift
```
impo... |
2018/03/15 | 269 | 981 | <issue_start>username_0: When I executed this code,
```
while($row = mysql_fetch_array($res))
```
there was an error of the following plan:
>
> Warning: mysql\_fetch\_array() expects parameter 1 to be resource,
> boolean given in String of treatment:while($row =
> mysql\_fetch\_array($res))
>
>
><issue_comment... |
2018/03/15 | 310 | 997 | <issue_start>username_0: I want to set timezone to GMT+8
```
$data = Carbon::now();
$data->setTimezone(8);
```
but the result given is
```
Carbon @1521099609 {#2145
date: 2018-03-15 14:40:09.759487 Asia/Krasnoyarsk (+07:00)
}
```
I have no idea why it happen, so I must use timezone name to get exact date I wan... |
2018/03/15 | 588 | 2,331 | <issue_start>username_0: I can't find information about the potential tags that might get included in a PDOL (per kernel type, i.e. Visa, Mastercard, etc.). I've already looked in all the Book A-D, Book 1-4 pdfs to no avail (exception is C-1). I am particularly interested in lists for C-2 and C-3.
My problem is that c... |
2018/03/15 | 1,177 | 4,486 | <issue_start>username_0: I'm building a chat app and using mongo for storage. I have built a document structure.
```
{
_id:
sender_id:
receiver_id:
subject:
created_at:
updated_at:
messages: [
{
_id:
message:
author_id:
attatchments: [... |
2018/03/15 | 1,489 | 4,971 | <issue_start>username_0: I am trying to run a container. I already have the image uploaded to private Docker registry. I want to write a compose file to download and deploy the image. But I want to pass the TAG name as a variable from the docker-compose run command.My compose file looks like below. How can I pass the v... |
2018/03/15 | 852 | 2,980 | <issue_start>username_0: I want to load a script that loads another script based on condition and this script is adding a variable to the global window.
```
conosle.log(window.someVariable)
```
load-something.js
```
function loadScript( path ) {
const head = document.getElementsByTagName('head')[0];
const scr... |
2018/03/15 | 887 | 2,928 | <issue_start>username_0: It is possible to do a regular expression which represent all the strings with lower numeric value than this? 1.4.7. I want to apply it to get all the users with a lower version of my app than a specified one.
For example, if I have 5 users, each one with this version:
```
1.4.22
1.4.12
1.4.7... |
2018/03/15 | 735 | 2,544 | <issue_start>username_0: I mean, for example if I set a start time as 1:00PM and an end time as 7:00 PM, I need break time to get displayed as default value which is 3:00PM.<issue_comment>username_1: How about this?
```html
Hello, world!
var condition = true;
var data;
function loadDoc() {
var xhttp = new X... |
2018/03/15 | 888 | 3,337 | <issue_start>username_0: can anyone let me know why the part of if statement is not working? but else work perfectly? it should be ( if there is nothing inside administrator table which is (username=varchar,, password= varchar) then let the administrator register himself.
```
if (click == buttonAdmin) {
Connection... |
2018/03/15 | 1,066 | 3,581 | <issue_start>username_0: I have below initial C++ code:
```
class Lambda
{
public:
int compute(int &value){
auto get = [&value]() -> int {
return 11 * value;
};
return get();
}
};
int main(){
Lambda lambda;
int value = 77;
return lambda.compute(value);
}
```
w... |
2018/03/15 | 878 | 3,092 | <issue_start>username_0: please does anyhow know how to set a recurring background job to run every 28 days.that is the job should run based on 28Days and not the 28Days of the month. this is my current implemntation.
```
string CropExpression = "0 20 */28 * * ";
RecurringJob.AddOrUpdate(() => _chargesJob.Charg... |
2018/03/15 | 679 | 2,630 | <issue_start>username_0: I had import all the angular material module in my app.module
```
@NgModule({imports: [
CdkTableModule,
MatAutocompleteModule,
MatButtonModule,
MatCardModule,
MatCheckboxModule,
MatIconModule,
MatInputModule,
MatProgressBarModule,
MatProgressSpinnerModule,
MatRadioModule,
MatRippleModule,
MatS... |
2018/03/15 | 762 | 2,615 | <issue_start>username_0: I have a bunch of files in a directory that I want zipped:
```
for i in $dir/*; do
if [[ ! "$i" =~ "zip" ]]; then
zip $i
else
echo "$i has already been zipped"
fi
done
```
If I populate the directory with a new files and run the script again, it will re-zip all files that don't... |
2018/03/15 | 381 | 1,541 | <issue_start>username_0: I am writing unit test using Mockito for a method which returns Account object.
I am creating a new account as following:
```
Private Account testAccount = new Account("name", "type");
```
Code is not crashing but I am always getting this exception when I debug:
>
> Method threw 'java.lan... |
2018/03/15 | 338 | 1,342 | <issue_start>username_0: I am looking for some solution for my following question. I get the following JSON (sample one).
```
[{"id":1, "name":firstname}, {"id":2, "name":secondname}]
```
But I need `{"id":1, "name":firstname}, {"id":2, "name":secondname}`
I tried with parse, stringify, replace, slice. But the... |
2018/03/15 | 964 | 3,802 | <issue_start>username_0: As first sorry for my bad english. I have a Carousel View that works really well.
```
`
`
```
I want to remove the border if a item getting and loosing focus (see picture below). How can I manage this? I know there is something with a Storyboard, but i dont know how to use it.
Please he... |
2018/03/15 | 694 | 2,890 | <issue_start>username_0: I created my new Google Cloud project in Mumbai region because a majority of my users are in India for this project. This is a port of an existing project where I've been happily using Cloud Firestore before, for a small part of functionality. While not critical to main features of my project i... |
2018/03/15 | 1,452 | 6,357 | <issue_start>username_0: I have a problem.
When I select `cell` of `UICollectionView`, I must go to next `ViewController`, but it not works.
`NavigationController`, pushed `ViewController`, my `object` are initialized, but I stay at current controller

What... |
2018/03/15 | 679 | 2,010 | <issue_start>username_0: I like to upgrade the ruby version from `2.4.2` to `2.5.0` in my rails application.
All specs/tests fail where I use turbolinks.
Is there a known issue with turbolinks and ruby `2.5.0`?
Here is the output on the terminal.
```
Failure/Error: expect(request).to redirect_to company_salesmen_pa... |
2018/03/15 | 219 | 778 | <issue_start>username_0: I am using resharper and it really saves my time except for a solution that has many projects inside. My team tfs and we develop every demand in a new branch. I want to disable resharper all branchs of this solution. Is this possible or are there any other solutions to speed up resharper?<issue... |
2018/03/15 | 363 | 1,218 | <issue_start>username_0: I want to change my state to `on` if `status == 1` and state to `off` if `status == 0`. I'm able to do that on the table in this way
```
On
Off
|
```
How can I achieve the same thing in select box options
```
{{configuration.rule.onSuccess}}
On
Off
|
```
I need on and off `{... |
2018/03/15 | 2,943 | 9,921 | <issue_start>username_0: I've just started with ZeroMQ and I'm trying to get a Hello World to work with PyZMQ and asyncio in Python 3.6. I'm trying to de-couple the functionality of a module with the pub/sub code, hence the following class setup:
**Edit 1**: Minimized example
**Edit 2**: Included solution, see answer... |
2018/03/15 | 347 | 1,462 | <issue_start>username_0: I have a running docker container with some service running inside it. Using that service, I want to pull a file from the host into the container.
* docker cp won't work because that command is run from the host. I
want to trigger the copy from the container
* mounting host filesystem paths... |
2018/03/15 | 343 | 1,271 | <issue_start>username_0: In PHP, say if I have code like this:
```
$aValue = functionThatReturnsAValue(); // the function might return a string or null;
$anotherValue = $aValue ? process($aValue) : null;
```
only for brievity (IDK is this a good practice or not and also regarding the performance, etc), I used to cha... |
2018/03/15 | 695 | 1,754 | <issue_start>username_0: I have several divs with fixed class names:
```
```
There can be multiples of these and these divs are not always in order. They are dynamically added.
```
```
I want to group all the `type-a` and `type-b` divs and show them in front of `type-c` divs (which can be done by floating `type-a... |
2018/03/15 | 507 | 1,887 | <issue_start>username_0: Hi guys I have written the following code in order to be able to toggle a class on and off an element on click.
The element:
`#### test`
The functionality:
```
function newFunctionTest() {
var termsToggles = document.querySelectorAll('.swatch-label-size');
for (var i = 0; i < term... |
2018/03/15 | 473 | 1,682 | <issue_start>username_0: 1. I get 419 unknown status when making a post request via ajax to API.
2. I know this problem is because of the CORS request. I added it on
client side but do I need to also set request headers , allow-origin
etc from API also ? if yes how do I include response headers in API
?
>
> NOTE
> --... |
2018/03/15 | 504 | 1,469 | <issue_start>username_0: I have successfully added Sinch to my android project, calls work well on my S3 Mini, however, I have an OPPO A83 Phone (Android 7.1.1) that is unable to establish a call and accept incoming calls. I checked the logs and android studio shows me this:
```
03-15 15:50:22.748 26432-4088/ph.com.ap... |
2018/03/15 | 1,320 | 4,923 | <issue_start>username_0: I am looking for some kind of a mapping function `f()` that does something similar to this:
```
f(str) = ''
f(complex) = 0j
f(list) = []
```
Meaning that it returns an object of type that evaluates to `False` when cast to `bool`.
Does such a function exist?<issue_comment>username_1: No, the... |
2018/03/15 | 577 | 2,109 | <issue_start>username_0: I have a form in that there is a input field and checkbox
```
```
Now i have a function
```
function handleChange(chk){
var arr=chk.value.split('_');
if(chk.checked == true){
document.getElementsByName("t_c[arr[0]]").disabled = false;
}else{
document.getEle... |
2018/03/15 | 1,008 | 3,653 | <issue_start>username_0: i use Laravel passport for auth
in route api.php
```
Route::get('/todos', function(){
return 'hello';
})->middleware('auth:api');
```
but when open localhost:8000/api/todos I see the following error
```
InvalidArgumentException
Route [login] not defined.
* @return string
*
* @throws... |
2018/03/15 | 1,042 | 3,681 | <issue_start>username_0: There are two ways to use tern\_for\_vim plugin in HTML files as the webpage say.
[use tern\_for\_vim plugin in HTML files](https://stackoverflow.com/questions/22792956/using-tern-for-vim-plugin-in-html-files)
Both method can work ,both of them can't make js completion menu pop up automatical... |
2018/03/15 | 258 | 1,072 | <issue_start>username_0: I am making a login page, and i would like it if "Successfull login" appears in the console if the username and password match the database. So i simply added a `System.out.println();` in the if statement, but it gets the error "unreachable statement". Why is that? Here is the loop:
```
if (us... |
2018/03/15 | 345 | 1,147 | <issue_start>username_0: I have CSV files get updated every day and we process the files and delete the files older than 30 days based on the date in the filename.
Example filenames :
`XXXXXXXXXXX_xx00xx_**20171001**.000000_0.csv`
I would like to schedule the job in crontab to delete 30 days older files daily.
Path... |
2018/03/15 | 212 | 830 | <issue_start>username_0: Is there a way to transform the table "sris" into these 3 tables {"tbl\_student,tbl\_records,tbl\_subject"} where the data in "sris" table will be distributed to the 3 tables to have that relationship
[SEE DATABASE DIAGRAM](https://i.stack.imgur.com/PnIEl.png)<issue_comment>username_1: This is... |
2018/03/15 | 507 | 1,753 | <issue_start>username_0: I'm working with a big database (20 Gb). The structure is like that:
```
`Count` int(11) NOT NULL AUTO_INCREMENT,
`Sensor Name` varchar(100) NOT NULL,
`Date` datetime NOT NULL,
`Value` decimal(18,4) DEFAULT NULL
```
Now, I'm testing to reduce the size of database by using the 'sensor... |
2018/03/15 | 303 | 1,021 | <issue_start>username_0: Currently, i am using SQL server 2012, I have to show database size before user backup database file.So I run the query
```
sp_helpdb 'MyDB'
```
It shows me `db_size` is 1444.93 MB but when I backup database file, It actual size is 70 MB. Why database size so different? please let me known ... |
2018/03/15 | 492 | 1,567 | <issue_start>username_0: i have 2 tables and i left join them , i want to add extra dummy column
to check if that row doesn't exist on the right table
this table A
```
TableID|TableName
0 table 1
1 table 2
2 table 3
```
and this the table B
```
TableName|isSuper
table 1 0
table 2 1
... |
2018/03/15 | 1,100 | 4,579 | <issue_start>username_0: I have been struggling with the following problem for two days and can not get my head around it.
I am trying to serve a static pdf in a Spring Boot rest application. It should be very straight forward but I just cannot get it to work.
First I simply placed the pdf in the resource folder and ... |
2018/03/15 | 540 | 1,432 | <issue_start>username_0: My file contains records like this:
```
11001^1^100^2015-06-05 22:35:21.543^^0122648d-4352-4eec-9327-effae0c34ef2^2016060601
```
I am supposed to split the file with the character `^`. But I am getting `ArrayIndexOutOfBoundsException` error:
Here is my program:
```
val spark = SparkSession... |
2018/03/15 | 579 | 2,087 | <issue_start>username_0: I tried by below url
<https://api.xero.com/api.xro/2.0/Contacts>
but got error as
oauth\_problem=consumer\_key\_unknown&oauth\_problem\_advice=Consumer%20key%20was%20not%20recognised
how to solve this error ?
what is the Pattern of URL for get method using Consumer key and consumer secret key?... |
2018/03/15 | 414 | 1,404 | <issue_start>username_0: I want my `TextView` in my `ViewSwitcher` to switch colors between green and white every new line. I figure out how to change the color, but only of the entire `TextView` with the method:
```
SetTextColor()
```<issue_comment>username_1: You would need to use TextFormatted property of the Text... |
2018/03/15 | 640 | 3,145 | <issue_start>username_0: I want to run cmd as an administrator on VSTS.
Actaully I am trying to install git-tfs with chocolatey tool manager on VSTS hosted agent, So I am running the following command on VSTS command line task:
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat Non... |
2018/03/15 | 821 | 3,165 | <issue_start>username_0: Now I got Error
```
Uncaught exception 'Braintree\Exception\Configuration' with message 'Braintree\Configuration::merchantId needs to be set (or accessToken needs to be passed to Braintree\Gateway).
```
Question is that if my merchant ID is not how its creating sub merchant because i able to... |
2018/03/15 | 503 | 2,046 | <issue_start>username_0: I read that when executing a `TOP` query without an `ORDER BY` that the results returned by the SQL Server may differ between executions because it's not guaranteed that you receive the same top x values due to the missing sorting.
I wondered if it is the same in the following sample:
In a ta... |
2018/03/15 | 618 | 2,188 | <issue_start>username_0: I need to assign a new variable to user identity like
```
Yii::$app->user->identity->staff_name = 'myName';
```
I have added `public $staff_name;` in the identityClass , which is usually `common\models\User`, but in my case is `common\models\Person`.
But when I print `Yii::$app->user->iden... |
2018/03/15 | 460 | 1,760 | <issue_start>username_0: Am using Xcode 9.2, swift 4. After automatically signing the app and submitting to App Store for review, I get this email with the message:
"The file libswiftCore.dylib doesn’t have the correct code signature. Make sure you’re using the correct signature, rebuild your app using the current pub... |