date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/20 | 1,011 | 3,383 | <issue_start>username_0: I'm working with angular 4 and asp.net web api. in angular project i'm using a delete method to call web api delete method.when i'm using headers like below it works properly in locally.but after iis hosting it is not working.can i know what is the reason for that.
```
deleteItem(id) {
//debug... |
2018/03/20 | 659 | 2,041 | <issue_start>username_0: I'm trying to produce aar file by run command gomobile bind as per below :
>
> gomobile bind -target=android golang.org/x/mobile/example/bind/hello
>
>
>
But always, getting error like below :
>
> gomobile: gobind -lang=go,java -outdir=/<KEY>T/gomobile-work-931510225 golang.org/x/mobile... |
2018/03/20 | 1,131 | 2,853 | <issue_start>username_0: Below is my table:
```
-----------------------------------
Sl. No. : File No. :
:-----------------------
: Subject1 :
-------------------------------------
1. : 1/2/34-gr :
:... |
2018/03/20 | 1,057 | 3,905 | <issue_start>username_0: This question may be asked several times but I have seen almost all of them but still unable to get an answer.
The flow is simple. A user has been issued `sims`. When sims are issued I am inserting the count of sims against that user in a table called `sim_balance`.
[![enter image descripti... |
2018/03/20 | 729 | 3,034 | <issue_start>username_0: I added animation to push one controller to another controller.here is my code to push view.this animation is taking 2 second in iPhone 5S and taking 5 seconds in iPhone 5.i am not able to figure out what is exact issue.i want this animation for 1 second.here is my code.
```
DetailVC *detailO... |
2018/03/20 | 1,020 | 3,117 | <issue_start>username_0: I have a dataset with `7k records [telecom dataset]`.
I want to split that dataset into 4 range based on one particular column `["tenure column"]`, which contains 1 to 72 number.
Need to split the whole data based on this tenure column like:-
>
> 1 to 18 Range [1-dataset], 19 to 36 Range ... |
2018/03/20 | 680 | 1,946 | <issue_start>username_0: I have a text file, **`C:\text\sample.txt`**. How can I search through this text file , and numbering all instances of a given string (***using regular expression***), for example, word that starts with 'h' and ends with 'y' ?
**What the `sample.txt` looks like: (For this sample file, the regu... |
2018/03/20 | 910 | 3,491 | <issue_start>username_0: I have a web service running in springboot on port 8080. when I hit below url it works fine:
<http://localhost:8080/app> , i redirect the url to below:
<http://localhost:8080/myHome/home>
now when i refresh the page I am getting 404
below is the content of my index.html:
```
```
package.... |
2018/03/20 | 937 | 3,470 | <issue_start>username_0: My inner most nested for loop is not counting correctly. It turns into an infinite loop and I'm not seeing why. Does it have something to do with
```
studentScores.Add(intScore);
```
being inside the nested for loop?
```
class Program
{
static void Main(string[] args)
{
stri... |
2018/03/20 | 790 | 2,593 | <issue_start>username_0: **Note : I retrieved $dateString from my excel**
```
$dateString = "29/07/2008 7:51:00 PM";
$timestamp = date('Y-m-d h:i a', strtotime(str_replace('/','-', $dateString)));
echo $timestamp;
```
>
> Output I get
> **2029-07-08 12:00 am**
>
>
>
But I need output something like this. P... |
2018/03/20 | 857 | 2,903 | <issue_start>username_0: How to set up a proxy with puppeteer? I tried the following:
```
(async () => {
const browser = await puppeteer.launch({
headless: false,
args: [
'--proxy-server=http://username:password@zproxy.luminati.io:22225'
]
});
const page = await browser.... |
2018/03/20 | 418 | 1,416 | <issue_start>username_0: I'm a high school student studying Prolog and am getting an error on a goal.
I have the following facts:
```
character(jim).
character(jenny).
character_type(jim, prince).
charcter_type(jenny, princess).
skill(fly).
skill(invisibility).
has_skill(jim, fly).
has_skill(jenny_invisibility).
pet(... |
2018/03/20 | 792 | 3,176 | <issue_start>username_0: Im fairly new to JavaScript and I'm having difficulty in understanding this syntax.
```
document.querySelector('dice').style.display='none';
```
My understanding is we are calling the querySelector method on the document object - this returns a selection. Now we call the style method on this... |
2018/03/20 | 1,069 | 2,912 | <issue_start>username_0: I have a list with elements like
```
["xyz", "abc", "123,123,123", 456.78 , "pqr"]
```
I want to join only the elements that are strings into a single string, and convert numeric strings into numbers, like
```
[ "xyzabcpqr", 123123123, 456.78]
```
How can this be done in a pythonic way?<i... |
2018/03/20 | 296 | 921 | <issue_start>username_0: It seems Internet-Draft provides a link to download a XML file (e.g. <https://tools.ietf.org/id/draft-ietf-oauth-v2-31.xml>), but I couldn't find a way to download a RFC (e.g. <https://www.rfc-editor.org/rfc/rfc6749>) in XML. Is there any way to do it?
I want to re-format some RFCs to make it e... |
2018/03/20 | 1,553 | 4,621 | <issue_start>username_0: I have an input that will open when clicked on and close when clicked anywhere on the page except the div itself. I use a function that changes the inputs background color when clicking on the input, but I can't figure out how to "undo" the color change when the user closes the input div by cli... |
2018/03/20 | 862 | 2,985 | <issue_start>username_0: I have a Django application on gitlab and I am trying to add CI/CD using gitlab-ci. I started a server on EC2 and installed gitlab-runner on it.
I added `.gitlab-ci.yml` file to my project and pushed the latest changes. I can see the pipeline running and dependencies being installed. But When ... |
2018/03/20 | 601 | 2,003 | <issue_start>username_0: Can someone explain to me why the output would be:
```
[[8, 0]]
[[8, 0], [8, 0], [8, 0]]
```
**This is the function that is confusing me**
```
x = [[0,0]]
y = x * 3
i = 10
for inner in y:
inner[0] = i
i -= 1
print(x)
print(y)
```<issue_comment>username_1: If I interpret the [docs]... |
2018/03/20 | 814 | 2,633 | <issue_start>username_0: I have defined a function which calculates the mean of a column `Test 1` in my dataframe between two time limits.
The dataframe is -:-
```
df = pd.DataFrame({'Time':[0.0, 0.25, 0.5, 0.68, 0.94, 1.25, 1.65, 1.88,
2.05, 2.98, 3.45, 3.99, 4.06],'Test 1':[5, 9, 4, 6, 4, 1, 6, 8, 2, 9, 3, 9, 4]}... |
2018/03/20 | 769 | 2,372 | <issue_start>username_0: I have the following code for a recursive function to convert binary to int:
```
public static int binaryToInt( String b ) {
if(b.length() < 2) {
return 0;
}
return b.charAt(0) * (int) Math.pow(2, b.length()) + binaryToInt(b.substring(1));
}
```
I am not getting the c... |
2018/03/20 | 1,683 | 6,019 | <issue_start>username_0: I am loading a website with WkWebview and the website contains some javascript actions. For iPhone, it is working fine because the confirmPanel would not allow user to touch outside the panel until user choose the available actions in the panel. However, for iPad it does not do the same things ... |
2018/03/20 | 313 | 1,258 | <issue_start>username_0: I have added a migration using `Add-Migration`, Now If I run `Remove-Migration`, it reverts the migration and remove the generated migration file successfully, but gives the error in Package Manager Console also. I could not figure out the exact reason behind it and side effect of it. Is this E... |
2018/03/20 | 270 | 1,080 | <issue_start>username_0: I am trying to output a very basic program which says 'hello world'
My web.php
```
php
Route::get('/',function() {
return view('welcome');
});
</code
```
My `welcome.blade.php` file
```
{{ 'Hello World' }}
```
The `welcome.blade.php` is inside the views folder, but when I give `lo... |
2018/03/20 | 801 | 2,403 | <issue_start>username_0: I have saved roles of an user in an array in db. The roles array looks like this.
```
{
"_id" : ObjectId("5708a54c8becc5b357ad82bb"),
"__v" : 2,
"active" : true,
"adminReports" : [],
"created" : ISODate("2016-04-09T06:46:36.814Z"),
"displayName" : "Admin Local",
"em... |
2018/03/20 | 379 | 1,289 | <issue_start>username_0: In the query given below, in the where condition the table 'a' is not accessible. How can I make it accessible without affecting the logic of the code?
Thanks in advance.
```
select *
from Training_Data.dbo.test a
cross apply (select * from Training_data.dbo.test_table) b
where exists (selec... |
2018/03/20 | 610 | 2,278 | <issue_start>username_0: I want to use a `ProcessWindowFunction` in my Apache Flink project. But I am getting some error when using process function, see below code snippet
The error is:
>
> The method process(ProcessWindowFunction,R,Tuple,TimeWindow>) in the type WindowedStream,Tuple,TimeWindow> is not applicable... |
2018/03/20 | 3,818 | 15,915 | <issue_start>username_0: I am developing an iOS app, my questions are as below:
1. Need to access user location every time while application is running or not?
2. Is Location not depend on the internet?
3. Apple will be approve this kind of app?
For question 1.
I am using these line for getting the user location
``... |
2018/03/20 | 723 | 2,478 | <issue_start>username_0: How to convert the collection to object so I can access the relational table data because i am getting the following error.
**Trying to get property of non-object** (View: E:\xampp\htdocs\digi\resources\views\admin\view-all-location.blade.php)
```
Controller:
$locations = Location::all();
... |
2018/03/20 | 860 | 2,771 | <issue_start>username_0: I want to get the Balance in below mentioned format. Balance+Balance(Row-1) I'm not sure if this explains well but adding previous rows Balance value to the current one and so on...
```
declare @tab table(Debit int,Credit int)
insert into @tab
select 1000 , NULL
union all
select 2200 ... |
2018/03/20 | 768 | 2,692 | <issue_start>username_0: Currently I have the following code to handle an incoming GET request:
```
#view.py
def handle_request(request):
if request.method == 'GET':
return response
```
this code can handle a simple GET request the form:
```
curl http://some_url/
```
But now I want to add basic http authen... |
2018/03/20 | 615 | 2,147 | <issue_start>username_0: I'm trying to sort an array of custom objects by their date, but the dates are stored as string in **.medium** dateStyle. However, some of the objects also have an empty string as their date.
How can I still sort arrays with an empty date?
Here is my code:
```
let objA = testObj(dateProp: "M... |
2018/03/20 | 448 | 1,731 | <issue_start>username_0: I have been trying to create an active directory for my environment. So I chose Microsoft Azure. I have been able to create the users to the directory and also created a VM of windows server 2012 now what I want is that the systems[Attached here is the snap](https://i.stack.imgur.com/uEm6y.jpg)... |
2018/03/20 | 413 | 1,483 | <issue_start>username_0: A table with terabytes of data in bigquery got multiple columns set as string format but actually they contain datetime strings like
2016-10-24 15:00:00
I tried answer from [this link](https://stackoverflow.com/a/36071426/7260022) to convert (CAST) the fields into timestamp format as below
... |
2018/03/20 | 395 | 1,511 | <issue_start>username_0: I need to insert the arrays like locations,commodities into an object which is in this case is refdata. I need to insert the array to object **one by one** ..as i have done in the code below:-
But i am not getting the desired output.Any help will be appreciated.
```js
var refdata = {
loc... |
2018/03/20 | 1,321 | 4,433 | <issue_start>username_0: I was working on a code snippet to get all substrings from a given string.
Here is the code that I use
```
var stringList = new List();
for (int length = 1; length < mainString.Length; length++)
{
for (int start = 0; start <= mainString.Length - length; start++)
{
var substring = mainSt... |
2018/03/20 | 1,478 | 4,787 | <issue_start>username_0: [](https://i.stack.imgur.com/0gy6S.png)
I am using Android Studio 3.0
Build #AI-171.4408382, built on October 21, 2017
JRE: 1.8.0\_152-release-915-b01 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 7 6.1
publ... |
2018/03/20 | 1,052 | 4,157 | <issue_start>username_0: I am trying to make a pure js mvc app where I update an h1 with the text of an input field. I got to the point that the the value of the input in the model can be logged nicely but for some reason the h1 is not changing at all.
Could you give me some help that why is that and how to solve it?
... |
2018/03/20 | 864 | 2,921 | <issue_start>username_0: I have the following code which uses both `Rc` and `Box`; what is the difference between those? Which one is better?
```
use std::rc::Rc;
fn main() {
let a = Box::new(1);
let a1 = &a
let a2 = &a
let b = Rc::new(1);
let b1 = b.clone();
let b2 = b.clone();
println!(... |
2018/03/20 | 664 | 1,614 | <issue_start>username_0: I have a table which looks like.
```
ID Var Date1 Date2
1 A 2017-06-01 12:05:18 2017-06-25 06:08:04
2 B 2017-07-01 18:05:22 2017-07-20 18:25:04
3 C 2017-07-10 23:09:15 Null
4 D 2017-07-10 14:09:45 2017-0... |
2018/03/20 | 561 | 2,401 | <issue_start>username_0: i am using angular 2/4 for one of my projects and i am in a situation where i have to download a file on submitting the request. I am doing currently.
```
this._http.post('url', body, { headers: urlEncodedHeader, observe: 'response', responseType: 'arraybuffer' })
.subscribe((data)... |
2018/03/20 | 1,420 | 4,893 | <issue_start>username_0: I am getting the list of Invoice details by Invoice Id.
Now i want to update AmountDue by respective Invoice Id.
i tried by below code:
ByInvoiceId.AmountDue = Convert.ToDecimal(100.00);
public\_app\_api.Invoices.Update(ByInvoiceId);
but..Error as
"A validation exception occurred"
What's th... |
2018/03/20 | 1,365 | 4,742 | <issue_start>username_0: What should i use if i need to make a scheduled email let us say every 12 midnight with query finding data that represents as a request for each approver. im using sql server and php<issue_comment>username_1: There are a number of ways to change the amount due on an invoice, however changing th... |
2018/03/20 | 1,311 | 3,630 | <issue_start>username_0: I am new to web designing, Is it possible to change `font-size` of **card-title** and **card image size** according to **different screen sizes** in bootstrap 4. Because when it come for small screen size its too large with.
[. So I have a good conceptual understanding of dimensional modeling constructs but finding it hard to apply to a usecase due to lack of expe... |
2018/03/20 | 2,892 | 11,461 | <issue_start>username_0: While firing `Intent` `finish` activity i am getting this error
```
03-20 11:05:16.991 8566-8566/com.example.jenya1.ebilling E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.jenya1.ebilling, PID: 8566
... |
2018/03/20 | 2,698 | 7,916 | <issue_start>username_0: When run my project package, i have getting above title error, after i trying to install that packages using
>
> npm install xml2json
>
>
>
but, i have getting below error only, can you pls give me suggestions or idea to get out from this issue...
```
D:\xampp\htdocs\podio>npm install x... |
2018/03/20 | 595 | 2,520 | <issue_start>username_0: Unable to connect to Informix db2 from Fluent Migrator (.net/c#) on the local instance. (Windows 10 running on AWS EC2)
Getting this after invoking the migrator executable:
[+] Beginning Transaction
!!! ERROR [HY011] [IBM] CLI0126E Operation invalid at this time. SQLSTATE=HY011
I am able to... |
2018/03/20 | 377 | 1,439 | <issue_start>username_0: Sorry if this is a really obvious question, but I've been trying to find something like it in a number of places, and I'm not sure if it just doesn't exist or if I'm using the wrong language to describe what I need.
If, for example, I have a number of TextViews in different parts of my activit... |
2018/03/20 | 384 | 1,549 | <issue_start>username_0: Hello Am trying to create many to many relationship but I failed. I have two table requests\_table and Users\_table and the relationship is many to many I introduce associative table called request\_user with attribute of user\_id, request\_id and user\_reqId(primary key). what I want is to sub... |
2018/03/20 | 473 | 1,512 | <issue_start>username_0: I've installed `lm-sensors`, but when I run `pwmconfig` command as root, it throws an error:
```
/usr/sbin/pwmconfig: There are no pwm-capable sensor modules installed
```
My laptop is an MSI Gs63VR Stealth Pro core Intel i7 CPU
Thank you!<issue_comment>username_1: A simple search for the ... |
2018/03/20 | 555 | 1,755 | <issue_start>username_0: Hi I have a code and I didn't make any change, but I am getting `Type mismatch error`. It was working properly previously.
Code :
```
Private Sub UserForm_Initialize()
Dim r As Integer
Dim c As Integer
Me.ComboBox1.RowSource = "Intro!A3:A" & Range("A" & Rows.Count).End(xlUp).Ro... |
2018/03/20 | 950 | 2,787 | <issue_start>username_0: I am trying to get the first element value from array of character containing float.
The character array size is 7, and it's containing two float elements hence size can be assumed 8. I want to get only the first element ignoring anything about 2nd value.
Here is my code-
```
int main()
{
cha... |
2018/03/20 | 852 | 2,564 | <issue_start>username_0: Hi Here I'm comparing to double values equal or not. but its returing always false even if both Double values are Equal.
```
let latestlogoValue = log(Double(125))/log(5.0)
let latestlogIntValue:Int = Int(latestlogoValue)
print(latestlogoValue)
print(Double(latestlogIntValue))
print(Double(lat... |
2018/03/20 | 1,460 | 5,594 | <issue_start>username_0: I have a web application that is developed in jquery and spring mvc...all is working perfectly...but now I want to use React JS in my application...i want to create a form in react js and send ajax request to my spring mvc controller...I know how to do it with jquery but not with react js....ki... |
2018/03/20 | 312 | 1,237 | <issue_start>username_0: I cannot see Hive as a listed data source in power BI . Is there a way to connect Hive database with power bi desktop. also is there any limitation?<issue_comment>username_1: Hive ODBC Driver should be installed and configured in the system in order to connect with Power BI. Once ODBC Driver is... |
2018/03/20 | 1,766 | 6,398 | <issue_start>username_0: I'm supposed to show different time formats according to the language in my app. When the device is English the user should get the time format like this:
>
> 18 March 2018, 2.30 pm
>
>
>
But when the user's device is German he should get the time format like this:
>
> 18.03.2018, 14:30... |
2018/03/20 | 1,148 | 4,262 | <issue_start>username_0: I'm trying to do random write (Benchmark test) to a file using multiple threads (pthread). Looks like if I comment out `mutex lock` the created file size is less than actual as if Some writes are getting lost (always in some multiple of chunk size). But if I keep the mutex it's always exact siz... |
2018/03/20 | 514 | 1,665 | <issue_start>username_0: I'm trying to port my code on google Colaboratory.
It's weird that even I did
```
!pip3 install xml
```
in my code.
It still require me to install lxml.
Does anybody have the problem??
```
****Requirement already satisfied: lxml in /usr/local/lib/python3.6/dist-packages****
-------------... |
2018/03/20 | 332 | 1,141 | <issue_start>username_0: I am trying to write a WPF application using c# and the with the help of [Prism 6.3 library](https://github.com/PrismLibrary/Prism). I watched all available tutorials on [pluralsight.com](https://app.pluralsight.com/library/search?q=prism) for Prism by @BrianLagunas . But not of them show how t... |
2018/03/20 | 1,244 | 4,957 | <issue_start>username_0: I need to collect some data from a user, through bot that uses microsoft bot framework and store those data in a Azure database? anyone can help with proper code examples and links? Thanks in advance.
***Requirements***: need to ask from a particular user, his nsme, email address and phone num... |
2018/03/20 | 671 | 2,042 | <issue_start>username_0: ```
#include
#include
int main() {
char a[] = "1234:once:echo hello";
int i = 0;
while(i < strlen(a)) {
if(a[i] == ':') {
break;
}
i++;
}
a = a + i;
printf("%s\n", a);
}
```
This program just iterates through string a until it hits ':', then I want to a to become ":once:echo hel... |
2018/03/20 | 798 | 3,160 | <issue_start>username_0: I am creating a formGroup Validation based on a toggle value
```
public toggle:boolean=false;
ngOnInit(): void {
this.formGroup = this.formBuilder.group({
formArray: this.formBuilder.array([
this.formBuilder.group({
toggleFormCtrl: [this.toggle, n... |
2018/03/20 | 494 | 1,591 | <issue_start>username_0: I have a form in my blade with 2 dates for user to select like:
```html
{{csrf\_field()}}
From
To
Filter Date
```
So in my controller function I have did this:
```
$dateFrom = [$request->from];
$dateTo = [$request->to];
```
Then I tried to `dd();` the value of `datefrom` and `date... |
2018/03/20 | 1,421 | 5,862 | <issue_start>username_0: I want user to select date from `date picker dialogue` and use the date selected.
I have made a date picker dialogue, only problem is when dialogue opens the date shows 1/1/1990, then user have to come to present year. I want to open the dialogue box with the `today's` date.
Below is my code-
... |
2018/03/20 | 1,317 | 5,042 | <issue_start>username_0: Is there any header files or extension that I can use to make multi thread on Borland 5.02?
I want to make a program that animates two lines going in different speed, in an infinite loop.
Something like this
```
#include
#include
#include
#include
void linesmov(int seconds);
main()
{
//... |
2018/03/20 | 1,599 | 6,136 | <issue_start>username_0: I have Ubuntu 16.04 , lampp server, PHP version 7.x i am trying to install latest version of OctoberCMS.
I have done everything from setting up database to setting up proper file permissions in my local server.
But I am keep getting the error saying
```
The operation timed out. Please increa... |
2018/03/20 | 1,011 | 2,777 | <issue_start>username_0: I apologize if my question is stupid. I just stared learning regex a few hours back.
I am trying to extract all hashtags
* until it reaches a space or newline
* cannot have more than two # in a row
Special characters are allowed until it reaches a space/a hastag/newline
Here is my current ... |
2018/03/20 | 685 | 2,215 | <issue_start>username_0: i want to redirect directly into 9apps using [this link](https://mx-player.en.9apps.com/) and then 9apps display applcation which is takes from above link is it possible like
```
Intent i = new Intent(Intent.ACTION_VIEW);
i.setPackage("com.mobile.indiaapp");
i.setData(... |
2018/03/20 | 609 | 1,838 | <issue_start>username_0: Unable to build my project. showing error message
Error:(2, 0) Plugin with id 'io.fabric' not found.
Error:(62, 13) Failed to resolve: com.crashlytics.sdk.android:crashlytics:2.7.1
Steps followed
[](https://i.stack.imgur.c... |
2018/03/20 | 841 | 2,721 | <issue_start>username_0: Apologies if my question is not that clear. I'm new to Django and it's my first time to ask questions here as I can't seem to find solutions to my problem.
I've done research on how to use multiple models in Django template and succeeded to do so, however, one of my requirement is that each tr... |
2018/03/20 | 1,027 | 4,295 | <issue_start>username_0: I'm trying to solve the order problem I'm facing with several approaches that I found here on [SO](https://stackoverflow.com/questions/42886224/preserve-order-of-results-when-operating-asynchronously-on-a-list?rq=1) without a success.
I have a method, where I'm loading some data for an array o... |
2018/03/20 | 453 | 1,349 | <issue_start>username_0: <https://www.elastic.co/guide/en/elasticsearch/reference/current/nested.html>
Consider:
```
PUT my_index
{
"mappings": {
"_doc": {
"properties": {
"user": {
"type": "nested"
}
}
}
}
}
PUT my_index/_doc/1
{
"group" : "fans",
"user" : [
... |
2018/03/20 | 283 | 851 | <issue_start>username_0: I just want to pass page title inside script using php.
```
val = document.title;
```
like below code.
```
"Val" : echo $val;"
```<issue_comment>username_1: <https://www.elastic.co/guide/en/elasticsearch/reference/5.4/modules-scripting-painless-syntax.html#painless-maps>
You can create ... |
2018/03/20 | 627 | 1,909 | <issue_start>username_0: I have two times, say `timeS = '00.00.00'` and `timeE = '10.00.00'`
I want to get the time difference between the two times. One way is the following manner,
```
//create date format
var timeStart = new Date("01/01/2007 " + timeS).getHours();
var timeEnd = new Date("01/01/2007 " + t... |
2018/03/20 | 574 | 2,278 | <issue_start>username_0: I am overriding the find method and add the where condition globally thats working fine here is my code
```
class Order extends \common\components\ActiveRecord
```
**`\common\components\ActiveRecord`**
```
namespace common\components;
use Yii;
use yii\db\ActiveRecord as BaseActiveRecor... |
2018/03/20 | 969 | 3,846 | <issue_start>username_0: I have a client that requires two buttons on the form. One that saves the progress of an uncompleted form. So this form will still need to validate the fields but will just ignore the required validation. The other button will need to run the complete validation included required fields.
I am ... |
2018/03/20 | 1,040 | 3,556 | <issue_start>username_0: I am new to Python. Working with `2.7` for class.
The teacher set a project in which we are to code a program that takes a piece of a Monty Python script (input by user), stores it in a list of lists, replaces a specific name in the script with the user's name and prints the revised script o... |
2018/03/20 | 524 | 1,707 | <issue_start>username_0: help me please. I need to test view title with rspec, capybara. I have spec:
```
require 'rails_helper'
RSpec.describe 'static_pages/home' do
it "display correct title" do
render
expect(response).to have_title('Home page')
end
end
```
home.html.erb:
```
djeje Home pagexbdke... |
2018/03/20 | 1,035 | 3,564 | <issue_start>username_0: Ive got a problem with svg2png, i want to convert my svg file to png and it says in gulp task that it's UnhandledPromiseRejectionWarning
```
var gulp = require('gulp'),
svgSprite = require('gulp-svg-sprite'),
rename = require('gulp-rename'),
del = require('del'),
svg2png = requ... |
2018/03/20 | 843 | 2,965 | <issue_start>username_0: I have an application where I read csv files and do some transformations and then push them to elastic search from spark itself. Like this
```
input.write.format("org.elasticsearch.spark.sql")
.mode(SaveMode.Append)
.option("es.resource", "{date}/" + type).save()
`... |
2018/03/20 | 414 | 1,449 | <issue_start>username_0: How to send `$this->uname` & `$this->email` to controller data to controller/ctrl\_crud.php
**create.php**
```
php
include 'FullScreenLayout.php';
class index {
public $uname, $email;
public function get_data() {
if ( isset($_POST) ) {
$this... |
2018/03/20 | 900 | 3,346 | <issue_start>username_0: I am getting this warning message. How can I fix this.
**Warning**: IB Designables: Ignoring user defined runtime attribute for key path `radius` on instance of `UIButton`. Hit an exception when attempting to set its value: [ setValue:forUndefinedKey:]: this class is not key value coding-compl... |
2018/03/20 | 602 | 1,867 | <issue_start>username_0: ```
$.ajax({
type:'POST',
data:({value:10}),
url:'count.php',
success:function(data){
var data=jQuery.parseJSON(data);
console.log(data);
if(data.status==true){
var table=data.data.row;
var staffs=data.staff.STAFF;
var users=staffs.join();
var user = '\'... |
2018/03/20 | 608 | 1,945 | <issue_start>username_0: I have excel table in below format.
Sr. No. Column 1 (X) Column 2(Y) Column 3(Z)
1 X Y Z
2 Y Z
3 Y
4 X ... |
2018/03/20 | 738 | 2,061 | <issue_start>username_0: So basically i have this markup
```
1
2
3
4
5
6
```
[](https://i.stack.imgur.com/z4AIK.png)
How will i be able to have alternate width for the first & second div per row?
I tried `article:nth-child`+ diff stepping t... |
2018/03/20 | 1,289 | 5,271 | <issue_start>username_0: I am trying to delete file from my External/Removable SD Card. But I got following error:
```
remove failed: EACCES (Permission denied) : /storage/987F-099F/SDNumber/Voc_112_1.png
```
I basically need to move file from my removable SD card to my device storage.
But I am not able to do that a... |
2018/03/20 | 1,206 | 4,918 | <issue_start>username_0: I know it sounds crazy, but just curious how I can reduce the if loop iteration for following? I have tried using `guard let` but stucked at some place.
```
{
if arenaEventItems == nil || arenaEventItems.count <= 0 {
return
}
if (arenaEventItems.count > 0 &&... |
2018/03/20 | 1,510 | 5,615 | <issue_start>username_0: Code Snippet from a ARM linker file:
```
....
__RW_START_ = .;
...
...
...
...
__RW_END_ = .;
__RW_SIZE__ = __RW_END__ - __RW_START_;
....
```
Referring the variables **RW\_START**, **RW\_END** & **RW\_SIZE** from above linker in the below C source file.
Code Snippet from a... |
2018/03/20 | 1,084 | 3,918 | <issue_start>username_0: I have the following code:
```
X = np.array([[2,2,2,4,5,6],[1,2,3,3,3,4]])
mu = np.mean(X,axis=1)
```
**My Problem:**
When I try to subtract the mean from the data (`X` - `mu`), I get the following error:
`operands could not be broadcast together with shapes (2,6) (2,)`
This makes se... |
2018/03/20 | 1,023 | 3,889 | <issue_start>username_0: ```js
var posts = [{
id: 1,
title: 'new post'
},
{
id: 2,
title: 'old post'
}
];
var comment = {
postId: 1,
content: 'Great Post'
};
function postForComment(posts, comment) {
return posts.find(function(post) {
return post.id... |
2018/03/20 | 546 | 2,429 | <issue_start>username_0: In my webapp architecture i have an api gateway which proxies requests to my microservices, also there is a a common microservice which other microservices can query via rest api. All of these run on node servers.
i want the microservices to only be approachable from the api gateway, besides th... |
2018/03/20 | 417 | 1,521 | <issue_start>username_0: I am an android developer and learning react native.
I made an app in React Native and now I want to release my app in android play store and apple store but I don't know where do I put my react native project code/files?
I had put react native code in my PHP(Linux) server but it's not working,... |
2018/03/20 | 390 | 1,424 | <issue_start>username_0: I'm integrating python with windbg and I want to edit a local variable value from the script. For that I need to know how to edit local variable values in windbg command line.
I know I can get value by variable, but how to edit the same variable?<issue_comment>username_1: You need to generate ... |
2018/03/20 | 581 | 1,904 | <issue_start>username_0: I created my own theme
import { createMuiTheme } from 'material-ui/styles';
```
export const MyTheme = createMuiTheme({
palette: {
primary: {
light: '#757ce8',
main: '#3f50b5',
dark: '#002884',
contrastText: '#fff',
},
... |
2018/03/20 | 471 | 1,727 | <issue_start>username_0: I am currently developing an android app which live streams the video to the kinesis video streams and the ability to play the stream in some other devices.
**What i did:**
I followed the link <https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/producer-sdk-android.html> and was able t... |
2018/03/20 | 482 | 1,757 | <issue_start>username_0: Version Android SDK 5.1
I do this Code.
```
String path = Environment.getExternalStorageDirectory().getPath();
String innerPath = "/xxxx/strage/Download/"
StringPath = path + innerPath;
File[] files = new File(targetPath).listFiles();
for(File f:files){
f.delete();
}
```
after execute this... |
2018/03/20 | 273 | 1,005 | <issue_start>username_0: While running HTML validator on my HTML code, the following error is encountered:
>
> Error: Attribute src not allowed on element a at this point.
>
>
>
The code snippet where the error occurs is:
How can I fix? Some internet pages tells me go with `data-src` rather than `src` attribute,... |
2018/03/20 | 412 | 1,078 | <issue_start>username_0: How to get length of each string in array element ["a", "a2", "b", "a2", "d"] just like "a" length is 1 and " a2" length is 2. how to i will check length of all strings insides array in swift.<issue_comment>username_1: You could do something like:
```
let result = ["a", "a2", "b", "a2", "d"].m... |
2018/03/20 | 563 | 1,903 | <issue_start>username_0: As far as I know, the member function pointer only can be assigned to the pointer to member function type, and converted to any other except this will violate the standard, right?
And when calling `std::bind(&T::memberFunc, this)`, it should return a dependent type which depend on `T`.(*in std... |
2018/03/20 | 1,431 | 4,322 | <issue_start>username_0: I have an assignment, where I'm to sort a list from low to high. But my program gives out an inverse of the expected order. This is my futile attempt at the assignment. Please help me I am genuinely stuck. Hopefully it is a noob mistake.
```
from random import *
def main():
# initializing v... |