date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/02/24 | 1,326 | 4,953 | <issue_start>username_0: When I Publish my net core project
```
<NAME>
Home
MyApi
MyApi
1.0.0.0
1.0.0.0
1.0.0.0
en
My package
Copyright © 2017
netcoreapp2.0
true
```
running the following
`dotnet publish -o build`
I get the following list of dlls... (partial...)
>
> ..... de es fr it ja KalturaClien... |
2018/02/24 | 832 | 3,152 | <issue_start>username_0: I saw similar threads here, but judging from the answers there, they are all dealing with open PRs. My case is a bit different.
I tried to make my first contribution to Github, I checked a few tutorials, forked, cloned, committed, pushed and created a PR.
Then I realized that I made commit wit... |
2018/02/24 | 816 | 2,932 | <issue_start>username_0: Hi has anyone already tried the new "Flutter Outline"-View?
I only see "Nothing to show" what I do wrong? Has anyone an idea?
[](https://i.stack.imgur.com/lMidQ.png)<issue_comment>username_1: Edit: the below was the solution... |
2018/02/24 | 281 | 865 | <issue_start>username_0: I've faced with the following question and I do not have a good idea.
Maybe someone can help me?
```
class Foo
{
// [Your code goes here]
// Rec1: Don’t write function call operator()
// Rec2: Don’t use macros.
};
int main()
{
Foo foo;
foo(); // This line prints... |
2018/02/24 | 542 | 1,375 | <issue_start>username_0: I have below json object, I want to display the weather object description, when I try to display the object its giving undefined. can any one tell me how do I access it?
```
{
"coord": {
"lon": 80.28,
"lat": 13.09
},
"weather": [
{
"id": 800,
"main": "Clear",
... |
2018/02/24 | 645 | 2,038 | <issue_start>username_0: I am trying to use paging system in a table as mentioned in this [post](https://www.codeproject.com/Tips/823490/Bootstrap-Table-With-Sorting-Searching-and-Paging) but it doesn't seem to work
What is expected:
[](https://i.sta... |
2018/02/24 | 989 | 3,367 | <issue_start>username_0: Below is the error that I get, when I try to generate a new project with JHipster:
```
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb check python checking for Python executable "python" in the PATH
gyp verb... |
2018/02/24 | 943 | 3,168 | <issue_start>username_0: I am trying to create a contact which is pushed to the current user's array of contacts.
My controller currently only creates a contact generically and isn't specific to the user.
**Controller:**
```
function contactsCreate(req, res) {
Contact
.create(req.body)
.then(contact =>... |
2018/02/24 | 755 | 2,825 | <issue_start>username_0: >
> How can I find out the file path and correct script containing a particular function or class of a module?
>
>
>
---
**Example:** Say I want to take a look at the tkinter source code for `tkinter.Button()`.
I found where the `__init__.py` file is located for tkinter using:
```
>>>i... |
2018/02/24 | 978 | 3,581 | <issue_start>username_0: I have a Laravel project hosted with a domain say: example.com.
I have several clients domain say client1.com, client2.com etc.
I need to have a system (say apache configuration) in a way that if someone types client1.com it should show a page from example.com/client1.com<issue_comment>username... |
2018/02/24 | 612 | 2,330 | <issue_start>username_0: I am currently doing `POST` request from android to PHP WAMP server. I am facing one problem, that is ,it refused to connect with the server (error 403) by using my mobile phone. On the other hand, my android emulator able to connect and perform POST action to PHP server.
```
String urlAddres... |
2018/02/24 | 549 | 2,090 | <issue_start>username_0: I have to run a cron job that will call the URL every 1 hour and for that I am doing this
\* \*/1 \* \* \* wget <http://example.com?count=1000>
But sometimes it takes more than an hour to complete the job. I want to check if the cron job is already running, it should not run the job.
How can I... |
2018/02/24 | 1,426 | 5,311 | <issue_start>username_0: I want to implement a *scrollspy* without the bootstrap.
I have checked a lot of code online, all of them are implemented by *jQuery*.
How to implement the *scrollspy* only with the power of React?<issue_comment>username_1: You can use `React-scrollspy`. Visit this git repo [React-scrollspy]... |
2018/02/24 | 1,492 | 5,545 | <issue_start>username_0: I'm running a program after Windows 10 starts up and it gives me the dialog box attached. All I need to do is automate clicking the OK button. The script I've written isn't working :
```
WinActivate("RoomView Express Login")
If WinActivate("RoomView Express Login") Then
ControlClick("RoomV... |
2018/02/24 | 1,601 | 5,949 | <issue_start>username_0: I am using `Custombox` for modals. I have a button and when it is clicked the modal is open:
```
var regModal = new Custombox.modal({
content: {
effect: 'fadein',
target: '#reg',
container: "#target",
},
overlay:{
close: true
}
});
$('#regB... |
2018/02/24 | 742 | 2,070 | <issue_start>username_0: if i have this list
```
car=['Mazda','ford','Honda','corvette','Mercedes']
price=['300','450','350','490','500']
```
and i want to print the following sentence for each one at once
```
print ("that", car,"car price is:",price ,"in thousands dollar")
```
how to write the condition i usua... |
2018/02/24 | 616 | 1,726 | <issue_start>username_0: I want a custom title show.
**Example:**
At first if the mouse is over title, the title doesn't show, then if I press and hold CTRL button and mouse over title, it will appear.
The question here is how can I do that ?<issue_comment>username_1: >
> how to do it for a list?
>
>
>
With `zip... |
2018/02/24 | 633 | 2,422 | <issue_start>username_0: I've been looking at this for hours but I'm not getting anywhere...
What I am trying to do is show the user a greeting when they first arrive, before they type anything, then echo back after this. I am using the 'conversationUpdate' event to trigger a greeting message for my user. What I can'... |
2018/02/24 | 689 | 2,532 | <issue_start>username_0: I am writing a Node script which copies and re-tags some of my MP4 files using `fluent-ffmpeg`
It doesn't work with any metadata that contains spaces. The code that does the copying/tagging looks something like this:
```
const ffmpeg = require('fluent-ffmpeg');
const inputFilename = 'path/to... |
2018/02/24 | 554 | 1,729 | <issue_start>username_0: My PC has Installed MS SQL Server 2008 R2 with installed Database, Then I installed **XAMPP** and made another port for **Apache** to make it `localhost:8080` and listen to `4433`. Then Installed **OBDC**, Tried to connect using
```
try {
$host = 'LOCAL';
$user = '****';
$pass = '****';
$dsn... |
2018/02/24 | 776 | 2,746 | <issue_start>username_0: This the table structure I have:
```
#region Tables
public class WorkoutProfile
{
public WorkoutProfile()
{
WorkoutExercises = new List();
}
[Key]
public int ProfileId { get; set; }
public string Name { get; set; }
public int Sets { get; set; }
public int RestAfterSetInSe... |
2018/02/24 | 1,076 | 2,962 | <issue_start>username_0: I need to create a background pentagon for my page header. In order to do this, I:
1) cannot edit the html
2) am doing the styling with SASS.
How do I get the shape to appear like [this wireframe image](https://i.stack.imgur.com/IqW81.png), and without transforming the text? In other words, th... |
2018/02/24 | 302 | 999 | <issue_start>username_0: I am using a [ScrollView](https://facebook.github.io/react-native/docs/scrollview.html), and when I scroll and let go, it keeps scrolling because of momentum. I want it to only scroll when the finger is touching the screen, I do not want the momentum. Is this possible, if so, how?<issue_comment... |
2018/02/24 | 465 | 1,591 | <issue_start>username_0: Like, can an output-only `TextEntry(readonly=True)` be changed with `TextEntry.insert_text()`? Does the readonly refers ONLY to the user part of the GUI?<issue_comment>username_1: I assume you actually mean `TextInput`. If so, the answer is: no, you cannot change the text in code using `insert_... |
2018/02/24 | 638 | 2,294 | <issue_start>username_0: I am using [cordova-plugin-media](https://ionicframework.com/docs/native/media/) to record voice(with pause and resume features) in my ionic app for android. After I record it I need to get base64 string in order to play it using html audio tag. And the problem is: if I am trying to save record... |
2018/02/24 | 557 | 1,914 | <issue_start>username_0: What is the right way to execute a select query on a particular partition of a table. For exmample I have a employees table that is range partitioned on a particular column.
Currently I do:
```
Result fetch = DSL.using(configuration())
.select()
.from(EMPLOYEES)
.fetch();
```
what is the... |
2018/02/24 | 828 | 3,044 | <issue_start>username_0: I am binding data to jquery datatable in asp.net mvc, i have an anchor tag in one of the columns of the grid where i am accessing / reading row data and sending that data to a javascript function. The problem which i am facing is, i am able read and send row values to the function which are num... |
2018/02/24 | 1,018 | 3,625 | <issue_start>username_0: The code below, under dynamic scope assumption, would return error.
```
(let ((f (lambda (g)
(lambda (n)
(if (zero? n)
1
(* n ((g g) (- n 1))))))))
((f f) 5))
```
My answer was 0, because:
```
n*(n-1)*(n-2)*(n-3)*(n-3)*(n-4)*1;; since the call with n=0, n bound to 0
0*0*0... |
2018/02/24 | 948 | 3,568 | <issue_start>username_0: I am making a faucet like app, so the app completely relies on ads, is there a way to detect if a user is using an Ad-Blocker? I thought of trying to ping google ads server to see if it can ping the server or not, Will that work? If not what method do you suggest? Thanks!<issue_comment>username... |
2018/02/24 | 1,409 | 5,056 | <issue_start>username_0: I am trying to connect a Java application to an InterSystems Caché database via [Globals API](http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=BXJV_globals#BXJV_globals_intro).
```
import com.intersys.globals.*;
public class Assignment {
public static void main(Str... |
2018/02/24 | 388 | 1,422 | <issue_start>username_0: I am a beginner to Java--I want to construct a 2D array that takes votes as a user's input. I've been trying to make sure the user cannot enter "votes" for themself--I have tried using
```
&& col != row
```
In the for loop but this does not seem to work. My current for loop is this:
```
fo... |
2018/02/24 | 1,281 | 4,194 | <issue_start>username_0: In my browser console, I typed the following:
```
Array.forEach.apply(null,['a','b','c'])
```
The response was:
>
>
> ```
> Uncaught TypeError: b is not a function
> at String.forEach ()
> at
>
> ```
>
>
I'm not quite sure what I thought would happen, but it wasn't this. Also:
```
A... |
2018/02/24 | 340 | 1,406 | <issue_start>username_0: I ran a cookbook which has installed some things (for example apache) on my chef node. It was the first version (0.1.0) of my cookbook. How can I undo the changes? (remove apache using chef)<issue_comment>username_1: There is no specific way, you would need to write a new recipe that enforces t... |
2018/02/24 | 469 | 1,837 | <issue_start>username_0: I want to create a function that takes 2 parameter, and prints the multiplication table for this number in a nice format where rows are separated by lines. This is the target:
[target design](https://i.stack.imgur.com/hQSmN.jpg)
I have tried, but have no idea where to integrate the "--------" ... |
2018/02/24 | 1,553 | 5,310 | <issue_start>username_0: I would like to extend Jest's `isEqual` matcher so that the expected value is transformed before comparison (this allows me to use multiline strings in tests). All I need to do is run the expected value through a the `indentToFirstLine` function from the lib: `indent-to-first-line` before passi... |
2018/02/24 | 1,593 | 4,877 | <issue_start>username_0: I have to get the min and max y for a linear expression, restricted by some linear inequalities in python.
You can see the equation and inequalities here that I have entered into Desmos:
```
3x+12y = 1000
x > 30
x < 160
y < 60
y > 10
x + y > 180
```

I want the image to be vertically centered in the cell and the two labels (which are placed inside another view) to be vertically centered relative to the image (as a group - this is why they are in a view).
Below is my... |
2018/02/24 | 927 | 3,383 | <issue_start>username_0: I have migrated my magento instance from one server to another.
Here's what I did.
* I zipped my instance from original server but did not include download folder
* I also exported my mysql file and zipped it.
* On the new server, I extracted the zipped instance.
* I imported the database of ... |
2018/02/24 | 951 | 3,668 | <issue_start>username_0: Carefully following Microsoft tutorial instructions (from a couple dotnet core examples). Problem: I get to the `Add-Migration` step and it works perfectly - except that in SQL Server, no database shows up.
So I tried pre-creating an empty database; no tables show up. Changed from trusted con... |
2018/02/24 | 533 | 1,648 | <issue_start>username_0: Wrote this simple java code:
```
public class NewMain {
public static void main(String[] args) {
int a;
a = 5;
System.out.println("The value of a is" + a);
}
}
```
All it gives me is:
run:
BUILD SUCCESSFUL (total time: 0 seconds)
What's going on? My Eclipse ... |
2018/02/24 | 790 | 2,812 | <issue_start>username_0: I have just started to use decorators in Python and I'm not sure to understand how to correctly use it.
Let's say I have this code :
```
def viable_decorator(fonction_viable):
def viable(sequences, pos):
codons = [seq[pos:pos+3] for seq in sequences]
return not any("-" in ... |
2018/02/24 | 631 | 2,223 | <issue_start>username_0: I'm trying to install weblogic 12c on a RHEL 7.4 and when I open the window to begin the installation, all the characters are unreadable.
[](https://i.stack.imgur.com/kwiod.png)
I can copy-past these characters into notepad a... |
2018/02/24 | 715 | 2,533 | <issue_start>username_0: I am new to Docker and Docker-compose. I built dockerfile and docker-compose.yml to run my flask hello world. But after I change app.py, and docker-compose up, it didn't reflect my code changes.
Dockerfile:
```
FROM ubuntu:latest
RUN apt-get update -y
RUN apt-get install -y python-pip python... |
2018/02/24 | 689 | 2,504 | <issue_start>username_0: I'm attempting to use JavaScript to retrieve the text between the opening and closing anchor tags, so I can add it to the title tag. I have thousands of links and nineteen plugins to which I need add a title tag and I'd really rather not have to go do this manually. Plus, you know, messing with... |
2018/02/24 | 520 | 1,795 | <issue_start>username_0: ```js
$(document).ready(function() {
$('.btn').click(function() {
$(this).parent().addClass('show');
});
})
```
```html
#### Bookmark 1
[](#)
Lorem Ipsum is s... |
2018/02/24 | 1,041 | 3,509 | <issue_start>username_0: I am using the below code to display Cards in a Grid and it works fine.
```
return new GridView.count(
primary: false,
padding: const EdgeInsets.all(1.5),
crossAxisCount: 2,
childAspectRatio: 0.80,
mainAxisSpacing: 1.0,
crossAxisSpacing: 1.0,
children: _loadCategories(), //new Ca... |
2018/02/24 | 345 | 1,204 | <issue_start>username_0: I am quite new in Angular and I have a headache with a datepicker.
In my Angular5 application I used a datepicker placed here:
```
https://github.com/kekeh/mydatepicker
```
To use this datepicker, I added:
```
```
and works perfectly.
However I need to change some css styles of this elem... |
2018/02/24 | 996 | 4,022 | <issue_start>username_0: I have a custom Navigation Bar that I am setting up for my ViewController. The problem is that the Navigation Bar is too small and I am unable to change the height of it.
```
class AddGameViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
view.backgro... |
2018/02/24 | 1,586 | 6,640 | <issue_start>username_0: Using "ng serve" I start an Angular application. The Angular app uses a post to get authorization on a Spring Boot (Authorisation) server.
Whatever I try, I keep on getting this response:
>
> OPTIONS <http://localhost:9999/oauth/authorize> 404 () Failed to load
> <http://localhost:9999/oa... |
2018/02/24 | 709 | 1,898 | <issue_start>username_0: I stumbled into a strange behavior in R, where `double` values are not saved to a CSV as the original value.
Reproducible example:
```
set.seed(1)
df <- data.frame(ID = 1:10, X = rnorm(10))
write.csv(df, "test.csv", row.names = F)
read.csv("test.csv") == df
ID X
[1,] TRUE FALSE
... |
2018/02/24 | 1,371 | 5,368 | <issue_start>username_0: How to process forEach in Java 8 using streams when I want to have multiple results from the iteration. Of course calling List.add method in stream forEach operation is not an option... How would you rewrite this code using Java 8 streams?
```
additionalWebsitesList = Lists.newArrayList();
St... |
2018/02/24 | 754 | 2,941 | <issue_start>username_0: I have looked everywhere for an answer to my doubt, but none of them worked for me (I probably did something wrong).
I am very new to Ruby/Ruby on Rails, so I do not know very much how things work.
---
I have two models in my application
* `Attribute name:string` and;
* `Product name:string... |
2018/02/24 | 442 | 1,414 | <issue_start>username_0: i want two 'items' to move at once using this loop:
```
import turtle as t
from turtle import *
import random as r
t1=Turtle()
t2=Turtle()
turtles=[t1,t2]
for item in turtles:
item.right(r.randint(5,500))
c=0
for i in range(500):
for item in turtles:
item.forward(2)
c=c+1
... |
2018/02/24 | 499 | 1,702 | <issue_start>username_0: I'm trying to create a form that will show more fields based on what is selected in a dropdown menu. If 1 guest is selected, then 1 form appears. If 2, then 2 forms appears and so on.
I've managed to get the first Div (guestFormOne) to show/hide depending if 1 guest has been selected, but I'm ... |
2018/02/24 | 472 | 2,190 | <issue_start>username_0: I am transitioning a Heroku-hosted ReactJS/NodeJS application to be hosted on Firebase. Because Firebase only handles static pages I need to reconfigure how my private environmental-specific variables for Development, Staging, Production environments are configured. For example before I defined... |
2018/02/24 | 322 | 1,021 | <issue_start>username_0: I want to use an update command for the table below. What I want to do is to update the `answer` column based on the `reference` column: 2nd and 3rd answers should be A because their reference is 1 and answer of the 1st row is A, similarly 5 and 6 should be X.
Sample data:
```
id answer r... |
2018/02/24 | 326 | 1,017 | <issue_start>username_0: I have 3 LinearLayout in 1 LinearLayout like in screen:
[](https://i.stack.imgur.com/siIZ0.png)
Like you see, last layout should be bigger than 1st and this same like 2nd.
BUT, look like this look:
[, under the generic types section, the following two are stated to be the equivalent:
**Code Sample 1**
```
function identity(arg: T): T {
return arg;
}
let myIdentity: (arg... |
2018/02/24 | 741 | 2,553 | <issue_start>username_0: for some reason, fopens keeps crashing in my program.
It works once when I am reading the input file and putting the contents into a variable. But for some reason, when I try to make it use fopens again, it crashes...
Could someone please help
```
#include
#include
#include
char \*buf = "... |
2018/02/24 | 792 | 2,607 | <issue_start>username_0: ```
df = pd.DataFrame(dict(
list(
zip(["A", "B", "C"],
[np.array(["id %02d" % i for i in range(1, 11)]).repeat(10),
pd.date_range("2018-01-01", periods=100).strftime("%Y-%m-%d"),
[i for i in range(10, 110)]])
)
))
df = df.groupby(["A", "B... |
2018/02/24 | 1,124 | 4,307 | <issue_start>username_0: I have a one to many relation between Config and ConfigHeaders.
Here is the Config mapper:
```
@Mapper(componentModel = "spring", uses = {UserMapper.class, ConfigHeadersMapper.class})
public interface ConfigMapper extends EntityMapper {
@Mapping(source = "user.id", target = "userId")
Config... |
2018/02/24 | 613 | 2,480 | <issue_start>username_0: I've got an iPhone app where you create an account, and while you're logged in, you can be either active or inactive. To be clear, even when you're inactive, you're still logged in. I want to make it so that if a user is active but hasn't checked the app or used it for 45 minutes, they are auto... |
2018/02/24 | 1,494 | 4,433 | <issue_start>username_0: I am having trouble with logic checks. There is a coordinate system grid that is 15x15, row x column.
There is a random list of 2-tuples that contains coordinates:`[(3,3),(4,5),(14,14),(13,0),(0,13)]`. (r, c)
I would like to check if some random choice tuple is within a certain range: 2x2 and... |
2018/02/24 | 660 | 2,566 | <issue_start>username_0: Have following struct:
```
package dto
type CapacityResponse struct{
Val int
Err error
TransactionID string
}
func (r *CapacityResponse) GetError() (error) {
return r.Err
}
func (r *CapacityResponse) SetError(err error) {
r.Err = err
}
func (r *CapacityResponse) Read()... |
2018/02/24 | 2,129 | 8,543 | <issue_start>username_0: I have a game application with characters that have to cross mazes. The game can generate thousands of different mazes and the characters can move according to users choice and cross the maze manually. We needed to add the possibility to show a correct way out of each maze. Therefore we added t... |
2018/02/24 | 1,924 | 6,373 | <issue_start>username_0: Notice: Followup to [this question](https://stackoverflow.com/questions/48965685)
---------------------------------------------------------------------------------
After asking [this question about parameter pack folding into pairs](https://stackoverflow.com/questions/48965685), I noticed that... |
2018/02/24 | 852 | 2,982 | <issue_start>username_0: I'm using json-server for hosting an API in my project.
What json-server gives me is `http://localhost:3000/records`.
```
{
"record": [
{
"userID": "2",
"userFirstName": "Arya",
"userLastName": "Stark",
"userMiddleName": "null",
... |
2018/02/24 | 595 | 2,094 | <issue_start>username_0: I can't read text from text file using applescript. Tried this:
```
set sharesFileName to (the POSIX path of (path to home folder)) & "Applications/mounts"
set sharesLines to paragraphs of (read POSIX file sharesFileName as "class utf8" using delimiter linefeed)
```
Got "Script Error", "End ... |
2018/02/24 | 497 | 1,600 | <issue_start>username_0: I am writing a login system in PHP and would like a to implement a function that checks if the 15 minutes has elapsed since the last failed login attempt.
In the MySQL database in my users table there is a column called last\_login\_datetime which is defined as SQL's DATETIME format, ex. 2018-... |
2018/02/24 | 504 | 1,494 | <issue_start>username_0: In Matlab some functions adapt their output to the number of output variables in the call. For example I can do:
```
A=[[1 2 3];[4 5 6]];
s=size(A);
```
And I get
```
s=[2, 3];
```
But if I want to handle independently width and height I can do:
```
[h, w]=size(A);
```
And I get:
h=2;... |
2018/02/24 | 454 | 1,511 | <issue_start>username_0: I'm using react and am trying to link to another page using the tag. For example, I want to link back to the login screen with a parameter signupCompleted like so:
```
Send
```
My component is routed to a path in my app.js:
```
```
and in loginPage.js I try to reach the passed parame... |
2018/02/24 | 363 | 1,178 | <issue_start>username_0: We have an mysql 5.5 installed and running on an AWS ec2 instance (r3.4xlarge type). We want to migrate to RDS/Aurora
1- RDS/Aurora can support mysql 5.6 and above. Should we first upgrade our database then move it to RDS/Aurora? Or can we do that using mysqldump directly?<issue_comment>userna... |
2018/02/24 | 331 | 921 | <issue_start>username_0: Is there a NumPy matrix/vector function that does,
```
[x1*y1]
[x2*y2]
x*y = [x3*y3]
[-----]
[xn*yn]
```
Edit:
If not, can someone show me how this could be done.
Edit2: Changed x%y to x\*y<issue_comment>username_1: There is no method, **just use \*... |
2018/02/24 | 715 | 2,541 | <issue_start>username_0: Having trouble showing the JSON response using `window.alert` or `alert` in JavaScript. I'm not a native JS coder, I apologize for the noobness. Below are a few examples I've tried based on examples I found online.
My goal is to have the JSON response appear in an alert popup window.
```
# e... |
2018/02/24 | 446 | 1,543 | <issue_start>username_0: I have a per-user DB architecture like so:
[](https://i.stack.imgur.com/fSDFJ.jpg)
There is around 200 user DBs and each has a continuous replication link to the master couch. ( All within the same couch instance) The problem ... |
2018/02/24 | 1,291 | 2,998 | <issue_start>username_0: Trying to add up all the values in dict with keys that contain elements in lstA and group according to lstA. But the following code renders the sum of all the dict values. How do I resolve this?
To illustrate:
```
lstA = ['R0', 'R1', 'R2', 'R3']
lstB = [('R0', 'R1'), ('R0', 'R2'), ('R0', 'R3'... |
2018/02/24 | 641 | 2,267 | <issue_start>username_0: i was working on a laravel project then i installed a new package using composer and i found this error
PDO::ATTR\_STATEMENT\_CLASS requires format array(classname, array(ctor\_args)); the classname must be a string specifying an existing class
i tried to :-
1. revert to previous commit on g... |
2018/02/24 | 737 | 2,442 | <issue_start>username_0: I want to extract the .zip filenames from given URl. Here is my code-
```py
import re
print(re.findall(r'href=[\'"]?([^\'" >]+)','[**World Data Part 1**](http://www.example.com/files/world_data1.zip)
[**World Data Part 2**](http://www.example.com/files/world_data2.zip)'))
```
For exampl... |
2018/02/24 | 791 | 2,732 | <issue_start>username_0: There are two models,
**User**
id, name, surname, email, etc.
**Comment**
id, user\_id, comment, etc.
```
Comment Model
public function user()
{
return $this->belongsTo('App\User', 'user_id', 'id');
}
```
I can get the user's email address when I try the controller with ... |
2018/02/24 | 669 | 2,090 | <issue_start>username_0: The following script returns the values from the for loop in rows. Is there anyway to return the results into the adjacent columns instead?
```js
function readMessage(msgId){
var url = "https://api.pipedrive.com/v1/mailbox/mailThreads/";
var token = "/<PASSWORD>?api_token=<PASSWORD>";
L... |
2018/02/24 | 682 | 2,579 | <issue_start>username_0: I am iterating through a List of Strings with +- 1500 entries. In each iteration I am again iterating through a List of Strings, but this time with +- 35 million entries. The result of the application is perfect. But it takes the application a long time (2+ hours) to give me the result. How sho... |
2018/02/24 | 506 | 1,950 | <issue_start>username_0: I'm in an intro to java class (first exposure to programming ever). My professor assigned this
"Input positive numbers and display how many are in between 10 and 20"
We've learned loops and if else statements so far and can use both, either or neither of those.
My pseudocode looks like this... |
2018/02/24 | 843 | 3,045 | <issue_start>username_0: I have an image with letters, for example like this:
[](https://i.stack.imgur.com/V653x.png)
It's a binary image obtained from previous image processing stages and I know [boundingRect](https://docs.opencv.org/3.1.0/d3/dc0/group__imgproc__shape.html#g... |
2018/02/24 | 2,201 | 6,058 | <issue_start>username_0: I'm in Ubuntu 16.04.3 LTS xenial and I'm trying to run the command make on the terminal, but I'm getting this error:
```
g++ -g -O2 -Wall -Wuninitialized -fno-strict-aliasing -Iinclude -
I/usr/local/include -DOS_LINUX -DHAVE_USB -DHAVE_LIBUSB10 -
DUSE_DRS_MUTEX -I/usr/lib/x86_64-linux-gnu/wx/i... |
2018/02/24 | 1,070 | 4,287 | <issue_start>username_0: My website have a few pages that is protected by login. My current solution to this is:
in app.js:
```
```
And then my HomePageHandler is:
```
export default class HomePageHandler extends BaseAuthorizedComponent {
render() {
return (
hello
)
}
}
```
... |
2018/02/24 | 287 | 1,237 | <issue_start>username_0: I've noticed that when I issue 200 responses via NiFi, the response is typically immediate. However, 404 and 500 errors seem to take so long that they often cause the client to timeout.
Is this an intentional behavior? Or is my `HandleHTTPResponse` processor possibly setup wrong?
--
Edit: Wh... |
2018/02/24 | 417 | 1,492 | <issue_start>username_0: So this is the path for all my users:
**<http://localhost:3000/users>**
I would like to change **/users** to **/members** , so I did this:
`get '/members' => 'users#index', as: "members"`
This way, people can visit **<http://localhost:3000/members>** and get all the same content in **/users... |
2018/02/24 | 2,224 | 8,239 | <issue_start>username_0: I am learning the Symfony framework and trying to deploy a simple boilerplate app I put together to Heroku using Git.
**The deployment fails due to the following fatal error:**
`Uncaught Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class "WebServerBundle" from ... |
2018/02/24 | 317 | 1,134 | <issue_start>username_0: Is there a way to add VSCode as an option under Android Studio's keymap settings?
Under `File` -> `Settings...` -> `Keymap`
[](https://i.stack.imgur.com/J3CwB.png)
There are many other options listed, however none of them are... |
2018/02/24 | 527 | 1,938 | <issue_start>username_0: How to use other file extensions in php-cs-fixer, for example cakephp template .ctp files ?
I have trying this code:
```
php
$finder = PhpCsFixer\Finder::create()
-notPath('bootstrap/cache')
->notPath('storage')
->notPath('vendor')
->in(__DIR__)
->name('*.php') // <===== *... |
2018/02/24 | 1,801 | 6,280 | <issue_start>username_0: I'm having difficulties adding TypeScript to an **already existing** create-react-app application. Previously I've always added it before starting the project, simply by `create-react-app my-app --scripts-version=react-scripts-ts`, but that doesn't work now.
The only "solution" I found [here]... |
2018/02/24 | 1,052 | 2,696 | <issue_start>username_0: I want to extract only the content inside the parenthesis, this works pretty well if I use vectors (example below):
```
j<-"[8] Q(+.98)"
gsub("[\\(\\)]", "", regmatches(j, gregexpr("\\(.*?\\)", j))[[1]])
```
Now I want to to use apply to run the above code in multiple columns in a dataframe.... |
2018/02/24 | 1,646 | 5,087 | <issue_start>username_0: this is my view.py
```
@list_route(methods=["post"])
def created_in_range(self, request):
response = {}
data = request.POST
start = dateutil.parser.parse(data['start'])
end = dateutil.parser.parse(data['end'])
page_no = data['page_no']
tweet... |
2018/02/24 | 4,288 | 13,518 | <issue_start>username_0: I am currently experimenting with the continuation monad. `Cont` is actually useful in Javascript, because it abstracts from the callback pattern.
When we deal with monadic recursion, there is always the risk of a stack overflow, because the recursive call isn't in tail position:
```js
const ... |
2018/02/24 | 454 | 1,550 | <issue_start>username_0: I need to show only current user's products on the frontend, that is for the user that are logged in, he/she should be only able to view their own products across the site. I tried the code below but this limits access to all the posts and pages which current user didn't create. And I need to l... |
2018/02/24 | 640 | 2,432 | <issue_start>username_0: I have `display: flow-root;` on my responsive `css` script. Works perfectly on the browser `responsive test` but `fails on my device`.
shows invalid on my device am able to know this when i inspect through remote device in chrome. **Any alternatives i can use ??**.<issue_comment>username_1: `... |
2018/02/24 | 1,511 | 6,417 | <issue_start>username_0: My tests are working and passing, but chai's done function is messing up. I've tried a few different methods, but I don't understand where I'm going wrong in these unit tests. I'm very new to unit testing and chai, so any help would be greatly appreciated
The places where the test is failing: ... |
2018/02/24 | 785 | 2,916 | <issue_start>username_0: Why is the I create in the constructor not updated when I pick another flavor in it? The other `select`, as well as the text, is updated.
```js
class ConstructorComponent extends React.Component {
constructor() {
super();
this.state = {
icecream: 'vanilla',
};
... |
2018/02/24 | 603 | 2,259 | <issue_start>username_0: I'm writing a Cargo helper command that needs to know the default target triple used by Rust/Cargo (which I presume is the same as host's target triple). Ideally it should be a compile-time constant.
There's [`ARCH`](https://doc.rust-lang.org/nightly/std/env/consts/constant.ARCH.html) constant... |