date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/08 | 353 | 1,156 | <issue_start>username_0: I have the following...
PageHeader.vue
```
${message}
export default{
data: function(){
return {message: "asdsad" };
}
}
```
app.vue
```
import PageHeader from "./PageHeader.vue"
export default{
components: {
"jg-header": PageHeader
}
}
```
This works great so I want to ... |
2018/03/08 | 531 | 2,204 | <issue_start>username_0: Context: I'm working with a team on PHP projects and we just ran into an issue where a code review from another team member modified the format of the all `time` fields in the `composer.lock` file. It turned out he was using a much older version of composer which output the `time` fields in a d... |
2018/03/08 | 646 | 2,549 | <issue_start>username_0: According to the [AWS documentation](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html) "any data stored in the RAM of the host computer or the instance store volumes of the host computer is gone." Does this mean that the web application I installed on my EC2 instance will be ... |
2018/03/08 | 1,154 | 3,002 | <issue_start>username_0: I have something like this:
```
Column
1
2
3
4
-1
-2
-3
-4
```
And I wanted an output something like this:
```
C1 C2
1 -1
2 -2
3 -3
4 -4
```
Can anyone help me on writing a query to get this output in T-SQL??
and what if something is lik... |
2018/03/08 | 1,147 | 3,209 | <issue_start>username_0: In my system there is an updater function running every few seconds, this function looks something like this:
```
function updater() {
this.updater = setTimeout(async function() {
let data = await updatingFromInternet(url);
updater();
}, 5000);
}
```
I call the updater funct... |
2018/03/08 | 642 | 2,347 | <issue_start>username_0: Isn't the `friend` function supposed to access everything that is in `Base` class and `Derived` class? `class Derived: public Base` -> everything that is in `private` in `Base` is now `public` inside the class derived.
```
class Base
{
private:
int x;
};
class Derived : public Base
{
... |
2018/03/08 | 920 | 3,858 | <issue_start>username_0: Is there a way to add an event on select/get with eloquent ?
I only see these methods :
```
public function getObservableEvents()
{
return array_merge(
array(
'creating', 'created', 'updating', 'updated',
'deleting', 'deleted', 'saving',... |
2018/03/08 | 828 | 2,299 | <issue_start>username_0: Is there any way of doing the following in Scala?
Say I have an array of `Double` of size 15:
```
[10,20,30,40,50,60,70,80,Double.NaN,Double.NaN,110,120,130,140,150]
```
I would like to replace all the `Double.NaN` (from left to right) by the average of the last four values in the array usi... |
2018/03/08 | 1,057 | 3,390 | <issue_start>username_0: So I was trying to understand how C stores my variables in memory and I've been doing good enough till I faced this problem:
I wrote the following simple program that tells me where the variables are getting stored one by one so I can know the difference between the types, but I couldn't make ... |
2018/03/08 | 444 | 1,627 | <issue_start>username_0: i want the code to ask for the radius and length then the program will calculate pi*radius*radius\*length from the definition area the print out the radius for example if at asks me the radius i put 5 same with the length it should say the volume is 392.75
```
def calculate_volume(radius, len... |
2018/03/08 | 669 | 2,255 | <issue_start>username_0: i am trying to create a filter with a checkbox when someone clicks on the check box it will hide all the div1
```js
//so far i have used
function div1hide() {
document.getElementById("dive1").style.display ='none';
}
var hider = document.getElementById("div1");
document.addEventLis... |
2018/03/08 | 638 | 2,390 | <issue_start>username_0: I am importing a file:
```
import { BodyTableHeaderExampleModule } from '../../components/example-table/example-table-header/example-table-header-xxxx/example-table-header-xxxxx.module';
```
However, tslint is complaining that the line exceeds 100 characters. When I try to minimize line leng... |
2018/03/08 | 540 | 2,086 | <issue_start>username_0: I am new to jBPM, starting with version 7.6. I watched the "10-Minute Tutorial using the Workbench", and tried to follow along.
Aside from the video having no sound and appearing to be for an earlier version of jBPM (significant console design changes), I was able to follow it. However, when i... |
2018/03/08 | 674 | 2,089 | <issue_start>username_0: Using plain Javascript, I am trying to access a property, `theatricalrelease` for all objects in an array, `movies`.
```js
var movies = [{
"Black Panther" : {
"title" : "Black Panther",
"theatricalrelease" : "2/16/2018"
},
"Infinity War" : {
"title" : "Avengers: Infinit... |
2018/03/08 | 854 | 3,089 | <issue_start>username_0: I have a MediaPlayer which is contained in a custom ViewHolder and created by a RecyclerViewAdapter which is run by a Fragment. I am trying to update the seekbar every second to show the progress of the audio that the MediaPlayer is playing, using [this question's answer](https://stackoverflow.... |
2018/03/08 | 230 | 634 | <issue_start>username_0: If I have Java SE installed, does this include JRE?
```
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
```<issue_comment>username_1: If you have installed jdk 1.6 it should have conta... |
2018/03/08 | 791 | 3,014 | <issue_start>username_0: I have a React app that recently starting emitting this error.
<https://reactjs.org/docs/error-decoder.html?invariant=94&args[]=onClick&args[]=string>
```
Minified React error #94:
Expected onClick listener to be a function, instead got type string
```
When this error appears, none of our ... |
2018/03/08 | 673 | 2,200 | <issue_start>username_0: I am trying to use sed command from my Perl script. I have to get the data of last hour from a file which is 25GB , but when i am running the same command from terminal it is working fine but the same command is not working from Perl script. System variable which i am using , that is causing th... |
2018/03/08 | 463 | 1,787 | <issue_start>username_0: E.g: On apps like Metamask or Myetherwallet, it often displays the user's public address in a graphic, like some randomised drawing. What is this called and how does one do this?<issue_comment>username_1: I assume you mean the [QR Code](https://en.wikipedia.org/wiki/QR_code)
This isn't native ... |
2018/03/08 | 1,075 | 2,983 | <issue_start>username_0: I have a nasty data table that has a couple of different kinds of messiness, and I can't figure out how to combine some of the other answers that use the *tidyr* and *splitstackshape* packages.
```
subject <- c("A", "B", "C")
review <- c("Bill: [1.0]", "Bill: [2.0], Cathy: [3.0]", "Fred: [4.0]... |
2018/03/08 | 1,038 | 2,941 | <issue_start>username_0: I've tried to use [networkd3](/questions/tagged/networkd3 "show questions tagged 'networkd3'") with the follwing data:
```
> head(network)
source target
1 1 1
2 1 4
3 1 11
4 1 12
5 1 23
6 1 41
> head(no)
no group
1 AL USA ... |
2018/03/08 | 2,929 | 9,119 | <issue_start>username_0: I have a carousel file in which I want to get `index.js` and build `block.build.js`, so my `webpack.config.js` is:
```js
var config = {
entry: './index.js',
output: {
path: __dirname,
filename: 'block.build.js',
},
devServer: {
contentBase: './Carousel'
},
module : {
... |
2018/03/08 | 1,642 | 5,736 | <issue_start>username_0: i want to solve this problem:
Angular 5 - template driven form
An input-field has type email. Example:
```
```
I want to validate this field. But it should not be a required field.
The validation should only start, if it isn't empty.
If the field is empty, everthing is fine. Otherwise an er... |
2018/03/08 | 337 | 1,468 | <issue_start>username_0: I had been getting " android.database.sqlite.SQLiteDatabaseLockedException" exception from production when I had been using 3rd party non-thread safe sqlite libraries. I checked all the threads and connection closing, I made all instances singleton but I wasn't able to solve the problem (I have... |
2018/03/08 | 360 | 1,450 | <issue_start>username_0: On this twitch site there is an annoying element that I want to remove permanently. On the inspector the element is this:
```
```
But try as I might, I can't figure out how to write a filter to remove that element with Ublock.
I read that Ublock and ABP use the same syntax. According to [t... |
2018/03/08 | 519 | 1,181 | <issue_start>username_0: What's happening here is that the first and second element of every tuple are getting multiplied, and it adds all of the products in the end. I know how to enter it in the Python shell, but how do I write it out as a function? Thanks for the help.
```
>>> x = [(70.9, 1, 24.8),
(15.4, ... |
2018/03/08 | 647 | 1,671 | <issue_start>username_0: I am connecting spark with Cassandra and I am storing csv file in Cassandra, when I enter this command I got error.
```
dfprev.write.format("org.apache.spark.sql.cassandra") .options(Map("keyspace"->"sensorkeyspace","table"->"sensortable")).save()
```
Then I got this error.
>
> java.io.IO... |
2018/03/08 | 775 | 2,915 | <issue_start>username_0: I am having an issue starting RStudio (desktop) that I did not have before.
When I fire-up RStudio, within seconds, the grey screen freezes with the following error message:
**RStudio Initialization Error**
Unable to establish connection with R session
Once I click 'OK', I get the following ... |
2018/03/08 | 577 | 2,106 | <issue_start>username_0: So I have a field,
```
,Time_ TIME NULL
```
And this field is meant to represent the time a lecture would take place. In this case, the lecture would take place between 1:00 and 2:00. Is it possible to insert this time range or would I only be able to insert a starting time? i.e.
```
,'1:0... |
2018/03/08 | 507 | 1,788 | <issue_start>username_0: I have a batch file that converts an Excel spreadsheet to a tab delimited text file, removes the first line of text (headers), and executes a SQL Server stored procedure that uses a BULK INSERT statement to import the text file into a table.
All the results when it runs are correct, but the po... |
2018/03/08 | 533 | 1,871 | <issue_start>username_0: I have a remote state attribute called subnets which is stored in: data.terraform\_remote\_state.alb.subnets
Depending on what I'm deploying, this attribute either exists or doesn't exist.
When I try to create an ECS cluster, it requires an input of the subnet groups in which I would like to ... |
2018/03/08 | 404 | 1,608 | <issue_start>username_0: I have an ASP.NET Core 2.0 website using the vanilla implementation for authentication/authorization using Identity and cookies (not using OpenID Connect). I have a set of 20 roles, each of which could potentially have hundreds of claims used to permission access to site pages/features (using A... |
2018/03/08 | 512 | 1,960 | <issue_start>username_0: I'm wondering how to run simple Scheme code on Visual Studio Code.
I've installed an extension called Scheme, but what is the next step..
I didn't find any details on the extension about how to run the code or the developer's contact ...<issue_comment>username_1: From looking at the [github s... |
2018/03/08 | 1,145 | 4,092 | <issue_start>username_0: JS:
```
"use strict";
$(document).ready(function () {
var chatInterval = 250; //refresh interval in ms
var $userName = $("#userName");
var $chatOutput = $("#chatOutput");
var $chatInput = $("#chatInput");
var $chatSend = $("#chatSend");
function sendMessage() {
... |
2018/03/08 | 1,542 | 5,552 | <issue_start>username_0: I am trying to get a list of movies from an array that I have. I am looping over the array to put the title and poster on the screen. But even though the loop only happens once, it keeps making the same three api calls over and over again. I am really new to React and thought that it should onl... |
2018/03/08 | 1,166 | 4,579 | <issue_start>username_0: **Situation**: We've integrated Salesforce's Marketing Cloud with an autodialer to aid in getting in touch with leads. The team's availability is variable, and the last thing we want is to blast *too many* calls, resulting in people just waiting in queue. So, I'm going to provide the team's man... |
2018/03/08 | 579 | 2,214 | <issue_start>username_0: I am trying to use [AutoMapper](https://automapper.org/) to auto-map my model to view models.
I have the following two view-models
```
public class CreateComment
{
[Required]
public int BlogId { get; set; }
[Required]
public string Message { get; set; }
public CreateComm... |
2018/03/08 | 994 | 3,316 | <issue_start>username_0: After pushing a change, I see text like this:
```
Writing objects: 100% (5/5), 478 bytes | 239.00 KiB/s, done.
Total 5 (delta 4), reused 0 (delta 0)
remote:
remote: Create pull request for my-branch => master-branch
remote: https://bitbucket.org/my-company/repo/pull-requests/12345
```
But ... |
2018/03/08 | 697 | 2,101 | <issue_start>username_0: I'm trying to send an html table in an email. I'm not sure if this is the best way or not, but right now I read in the CSV, create a table, and then email the info.
Here is what I have so far:
```
def create_table():
print("
")
# column headers
print(" ")
print(" Tech |")
print(" Tot... |
2018/03/08 | 1,949 | 4,310 | <issue_start>username_0: I have a `temp2.dat` file that looks like this:
```
0.060493 1 0.5 1
1.596961 0 0.1 2
0.87758 1 0.3 1.5
0.165453 1 0 3
0.07085 1 0.3 4
0.125379 1 0.2 3
0.454202 1 0.2 2
0.373227 1 0.3 1
0.131486 1 0.3 3
0.867477 0 0.5 4
0.122609 0 0.8 9
```
Now I want to write the function in `C` to sort... |
2018/03/08 | 1,786 | 4,414 | <issue_start>username_0: So my brain is on shut down.
I have a c3 graph that accepts arrays of numbers so it can display the bars on the graph. I'm having trouble parsing the data that is coming from our backend into these arrays dynamically.
I have three variables
```
var inp = graphNums.inProgress;
var rec = graph... |
2018/03/08 | 885 | 2,489 | <issue_start>username_0: I want to build a list of ggplot objects. I want to plot one variable on the x axis but plot each of the other variables in the data frame in the y. When I run the loop all of my values end up being the same as the last variable.
I'm hoping to use the grid.arrange function to plot all the grap... |
2018/03/08 | 941 | 2,834 | <issue_start>username_0: I need to know how to move an element in an array to the last position.
```
Dim lastElement As String = strChar(UBound(strChar)) 'J.
For i As Integer = 0 To characters.Count - 1
If characters(i).actor = searchName And characters(i).title = searchMovie Then
For j = UBo... |
2018/03/08 | 310 | 1,319 | <issue_start>username_0: I have a dataset where I've fitted a linear model and I've tried to use the step function on this linear model. I get an error message "saying number of rows in use has changed: remove missing values?".
I noticed that a few of the observations (not many) in my dataset had NA values for one var... |
2018/03/08 | 618 | 1,911 | <issue_start>username_0: I want to create a function with an object as parameter
The object can have for exemple three keys : **x, y, z**
All this keys must have default value assignment
*I tried this :*
```
function f({x:x, y:y, z: z} = {x:1,y:2,z:3}) {
return x + y + z;
}
```
*But I have a proble... |
2018/03/08 | 254 | 836 | <issue_start>username_0: I wrote the code `php echo the_author_link(); ?` on **theme/xtocky/woocommerce/centent-product.php**
It output the link like `[zac1987](www.dermaroller.com)`.
How to make it output the link like `[zac1987](author.php)`?
I have created author.php file on both xtocky folder and woocommerce fol... |
2018/03/08 | 329 | 1,235 | <issue_start>username_0: I have a xml of the format -
```
first part of the text
second part of the text
```
Essentially, the tag represents a sentence and the child tags are the interpolated parts in the sentence.
The XPath expression `String sentence = xPath.evaluate("sentence", transUnitElement);` gives ... |
2018/03/08 | 462 | 1,555 | <issue_start>username_0: I am fairly new to Python, but have been enjoying it so far. I've been trying to write a code using Twython that saves the Tweet IDs of all the tweets that match my search query as variables in a file.
I find that I can print all of the IDs that pertain to my search query with the following c... |
2018/03/08 | 253 | 978 | <issue_start>username_0: I've got a rather weird case. I have a few models that are tied together via associations one of these associations allows the user model to access referenced job data directly with the job model. However, the second case allows the user model to access the job data via the locations model.
`... |
2018/03/08 | 228 | 819 | <issue_start>username_0: I wish to search a directory, and all contained subdirectories, for files with a substring contained within their name and one of three possible extensions
Please can you help me edit the following code
```
os.chdir(directory)
files = glob.glob("**/*{}*.pro".format(myStr), recursive = True)
... |
2018/03/08 | 540 | 1,290 | <issue_start>username_0: In R, I need to find the next value by a code in the string
**Example 1 with C**
```
function("C", "01_BP01_C_2_MMAX_8__TIME_SECONDS_1.json")
```
solution: 2
**Example 2 with MMAX**
```
function("MMAX", "01_BP01_C_2_MMAX_8__TIME_SECONDS_1.json")
```
solution: 8
**Example 3 with MMAX**
... |
2018/03/08 | 675 | 1,743 | <issue_start>username_0: This might be stupid question but I'm a bit confused after some recent tests. I always thought the way Fortran deals with reals is the following (modern declaration):
```
program testReal
implicit none
integer, parameter :: rkind=8
real(kind=rkind) :: a,b,c
// Test 1
a = 1
b = ... |
2018/03/08 | 601 | 1,689 | <issue_start>username_0: I was just wondering where is it necessary/right to include a specific header file according to the example below. Let's assume I have a definition of an exception class:
```
//exc.hpp
#ifndef EXC_H
#define EXC_H
class MyException : public exception {
};
#endif /* EXC_H */
```
Then I have a... |
2018/03/08 | 466 | 1,241 | <issue_start>username_0: This is the Submit Button on my website:
```
```
Here's the image:
[The Search Button](https://i.stack.imgur.com/bjeUT.png)
Why does it not appear in the middle? How can I edit it to align it in the middle vertically?
I have tried input `style="vertical-align: middle;"` and `style="text-ali... |
2018/03/08 | 632 | 1,802 | <issue_start>username_0: I am converting frontend Java to TypeScript and i am dealing with method overloading.
I want to write the types like this
```
const person = (info: {name:string, age:number} | {man:boolean}): void => {
if (typeof info.man === "boolean") {
console.log("man is defined", info.man);
... |
2018/03/08 | 507 | 1,455 | <issue_start>username_0: I have a Python script that takes several input parameters, one of which is the name of an output folder which will hold processed data. I want to be able to access that output folder variable as an output parameter as well. How do I do this? Note: This script is being used in an ArcGIS model. ... |
2018/03/08 | 1,498 | 4,083 | <issue_start>username_0: I have a question on a homework assignment for an Assembly class. I'm not looking for an answer by any means, just some guidance with how it works. Based on my understanding, I can't determine what exactly is happening.
```
Consider a function P, which generates local values a-c by simple loca... |
2018/03/08 | 4,385 | 13,217 | <issue_start>username_0: i'm trying to throw together a simple javascript page with multiple if statements. the idea is to append to a list based on the evaluation of a stack of if statements. the problem is if any one of them fails, it triggers the else statement. i only want it to trigger else in the case that all of... |
2018/03/08 | 1,279 | 5,091 | <issue_start>username_0: As part of a daily process, I insert big chunks of data which I know for a fact do not invalidate any foreign key constraints. To speed things up, several resources suggest to temporarily remove any indexes or constraints and re-apply them after the insert is ready. I'm aware this is risky but ... |
2018/03/08 | 1,194 | 3,626 | <issue_start>username_0: How would I go about reversing the process of Google's AMP api?
I am looking to take an AMP (accelerated mobile page) URL and come up with the regular (original) URL. I was wondering if anyone has the answer as to how to do this in Python (or any other language for that matter)?
Any help would... |
2018/03/08 | 1,361 | 3,139 | <issue_start>username_0: Consider `(m,m)` arrays that have the property that all entries are `nan`'s after a row index `i`, and after a column index `j`. A typical example is
```
[[ 0.00528902 0.00202571 0.00339491 nan nan]
[ 0.00777443 0.00322426 0.00503715 nan nan]
[ 0.00699781 ... |
2018/03/08 | 655 | 2,437 | <issue_start>username_0: I have these Django models (minimal data for brewity):
```
# models.py
class Author(models.Model):
name = models.CharField(max_length=100)
class Book(models.Model):
title = models.CharField(max_length=200)
author = models.ForeignKey(Author)
class AuditLog(models.Model):
user ... |
2018/03/08 | 500 | 1,807 | <issue_start>username_0: I have a control component:
```
import myImage from 'myImagePath';
...
render() {
return (
);
}
```
And another component, ImageComponent:
```
render() {
return (

);
}
```
This renders nothing to the page. When I run `console.log(this.props.sou... |
2018/03/08 | 702 | 2,020 | <issue_start>username_0: I am trying to get to a sumifs with two parameters on an important set of columns (# of columns won´t change, data will), and then return the max or the min
```
Function min_or_max(B As Boolean, table As Range, col1 As Range, c1 As Cell, col2 As Range, c2 As Cell)
Dim column As Range
'If B =... |
2018/03/08 | 555 | 1,723 | <issue_start>username_0: I'm having what's probably a silly problem but I can't for the life of me find anything about whether this can or can't be done.
Basically I'm aware that calling `array.each do(&method)` converts the method into a proc and calls it with each yielded value. The issue I'm having is trying to do ... |
2018/03/08 | 1,841 | 5,865 | <issue_start>username_0: I'd like to create a script with any combination of bash, sed, awk, or perl that deletes the newline character of a line if the next line is less than a certain length. Let's say we want to delete the newline character if the next line is less than 5 characters. If we have this source text file... |
2018/03/08 | 1,519 | 5,545 | <issue_start>username_0: Let say there's 3 times the same ID, I want to delete all of them except one.
Example :
```
// I want to delete this
// I want to delete this
// I want to delete this
// I want to delete this
// I want to delete this
// I want to delete this
// I want to delete this
... |
2018/03/08 | 1,513 | 5,521 | <issue_start>username_0: ```
```
If i set a max height for the div, similar to text-overlfow: 'ellipsis', how can i show some span elements and then show ellipsis alongside it.
```
span {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
```
This does not work. With... |
2018/03/08 | 1,556 | 5,689 | <issue_start>username_0: I was wondering if it's possible to pass the same variable from one activity in Android studio to two separate activities, I've had a search and cannot see if it's possible or not using intents.
The "shareInt" below is a int which is updated as the application progresses, upon ending the appli... |
2018/03/08 | 248 | 778 | <issue_start>username_0: What should be the value of:
```
compileSdkVersion
targetSdkVersion
```
I have downloaded and installed Android P Developer Preview SDK, System image and build tools.
I have tried "28" but it is showing this error:
[](http... |
2018/03/08 | 538 | 1,439 | <issue_start>username_0: I have a list a:
```
a = ['2005', '2006']
```
and list b:
```
b = ['2005.123', '2005.234', '2006.123', '2007.234']
```
If I wanted a list of all the elements in b that contains a string '2005', I would do:
```
[value for value in b if '2005' in str(value)]
```
But I would like a list o... |
2018/03/08 | 456 | 1,393 | <issue_start>username_0: I have a dataframe that look like this
```
Sale Purchase
date date date date 100 3
2018 2 1 1 200 6
2018 1 2 3 150 8
2017 12 1 1 100 1
2017 11 2 2 50 2
```
Instead, I'm hoping it could be
```
... |
2018/03/08 | 366 | 1,489 | <issue_start>username_0: I am using Google Application Engine to host a web application and Google Cloud Storage to host documents.
I would like to keep track of:
* User authentication (performed via OAuth);
* User token expiration (to keep track of the active sessions);
* User interaction with the storage API to mon... |
2018/03/08 | 772 | 1,807 | <issue_start>username_0: Suppose
I have A dictionary A
```
A={'a':{0:[1,2,3],1:[4,5,6]},'b':{0:['u','v','w'],1:['x','y','z']}}
```
I want to combine all the elements in 'a' and 'b'
that
```
[[1,2,3,'u','v','w'],
[1,2,3,'x','y','z'],
[4,5,6,'u','v','w'],
[4,5,6,'x','y','z']]
```
I have tried:
```
c=[]
for k... |
2018/03/08 | 693 | 1,891 | <issue_start>username_0: I currently use the following code to convert an array of bytes which represent little endian signed 24 bit integers into a list of signed 32 bit integers.
```
xs = list(bytes_object)
ys = [xs[x:x+3] + [255] if xs[x+2] & 128 else xs[x:x+3] + [0]
for x in range(0, len(xs), 3)]
int32s = [s... |
2018/03/08 | 852 | 2,324 | <issue_start>username_0: I have this array:
```
array: [
0 => array: [
"key 1" => "user 1",
"count" => "14"
],
1 => array: [
"key 2" => "user 2",
"count" => "7"
],
2 => array: [
"key 2" => "user 1",
"count" => "1"
]
]
```
I have to count the count values for each key. But the na... |
2018/03/08 | 1,097 | 3,646 | <issue_start>username_0: How do I go about customizing the Ag-Grid themes (eg. ag-theme-material.css) in an existing Angular App?
The [documentation](https://www.ag-grid.com/javascript-grid-styling/#customizing-sass-variables) they have provided is lacking, as it doesn't explain how to perform these changes/configurat... |
2018/03/08 | 1,082 | 3,615 | <issue_start>username_0: In my Azure VNET I have an AppService that's using Azure Search. I'm trying to use NSG Inbound Rules to restrict access to the Azure Service using IPs. Unfortunately, in the NSG configuration blade, I can specify the destination only using the IP or VNET. How can I isolate the traffic to Azure ... |
2018/03/08 | 474 | 1,335 | <issue_start>username_0: I need parametrized generator. Such one that will accept parameters on the call to .next(arg).
In this specific case I want the generator to change with +1 when arg is True and -1 on False.
Is this possible in python ?<issue_comment>username_1: Using the [`.send`](https://docs.python.org/3/ref... |
2018/03/08 | 938 | 2,709 | <issue_start>username_0: I would like to know how to strip the last occurrence of `()` and its contents given a string.
The below code strips all the () in a string.
```
bracketedString = '*AWL* (GREATER) MINDS LIMITED (CLOSED)'
nonBracketedString = re.sub("\s\(.*?\)", '', bracketedString)
print(nonBracketedStri... |
2018/03/08 | 495 | 1,421 | <issue_start>username_0: I want a regex that should only match if the string contains minimum 10 to 16 characters with atleast, a number, a string, an uppercase, a lowercase character and a special character.
I think this string should pass this regexp test but this is not working :
The String does not include the... |
2018/03/08 | 778 | 1,638 | <issue_start>username_0: I have a data frame like so:
```
df <- data.frame(
id = c(1, 1, 2, 2),
V1 = c(1:4),
V2 = c(5:8),
V3 = c(9:12))
```
Printed to the console it looks like this:
```
# id V1 V2 V3
# 1 1 1 5 9
# 2 1 2 6 10
# 3 2 3 7 11
# 4 2 4 8 12
```
Now, I would like to transform i... |
2018/03/08 | 778 | 2,778 | <issue_start>username_0: I'm having trouble installing and configuring Leiningen on a Windows 10 work computer. I'm assuming that my company's firewall prevents the GitHub security certificate from authenticating.
The error I'm getting is:
>
> Exception calling "DownloadFile" with "2" argument(s): "The request
> wa... |
2018/03/08 | 1,608 | 5,928 | <issue_start>username_0: The Below Code Returns the following data into text file from the database.
**Output**
```
InvoiceNo InvoiceDate Amount Vat Total
001 1/1/2018 200 10 210
002 2/1/2018 300 15 315
```
What i am looking for is to get Amount,Vat and Total in separ... |
2018/03/08 | 831 | 2,743 | <issue_start>username_0: On a new Angular 4 project is possible to create a simple text File object from its constructor:
```
const textfile = new File (['abcd'], 'text.txt')
console.log(textfile)
```
inspecting the console output (VSCode console) shows the expected result:
```
File(13) {name: "text.txt", lastModif... |
2018/03/08 | 862 | 2,910 | <issue_start>username_0: Ive got a component that gets some data passed in from a parent component via an input so..
**main.component.ts**
```
```
then in my
**sidebar.component.ts**
```
@Input() data: Entry;
```
now this data has a unique id in its response and that id is used as a parameter in another functi... |
2018/03/08 | 2,186 | 8,024 | <issue_start>username_0: I want to have a range slider in my design, although I have a number slider but would like to have where I can select a range of number to be passed like in below picture.
[](https://i.stack.imgur.com/lVD5r.png)
Is there any o... |
2018/03/08 | 2,189 | 7,976 | <issue_start>username_0: Hi I have a formulated column 'Adjs Amount' in an excel table that extracts an amount from a text sting in another column: =IF(W598="YES",((MID(S598,FIND("CO-237",S598)+8,3))),0).
But When I try to sum the Adjs Amount Column it doesn't recognize the extracted numbers and gives me zero.
`
Does ... |
2018/03/08 | 1,029 | 4,315 | <issue_start>username_0: Our current Firestore structure is as follows:
[](https://i.stack.imgur.com/zUEMV.png)
* Currently we are not using any subcollections
* Users have list of companies to which they belong
* Every project is connected only with ... |
2018/03/08 | 685 | 2,715 | <issue_start>username_0: I read about shared access signatures generated with stored access policies for Azure Storage from [here](https://learn.microsoft.com/en-us/azure/storage/common/storage-dotnet-shared-access-signature-part-1#controlling-a-sas-with-a-stored-access-policy).
I also read how to create this shared a... |
2018/03/08 | 1,317 | 5,836 | <issue_start>username_0: I would like to implement CQRS and ES using Axon framework
I've got a pretty complex HTML form which represents recruitment process with six steps.
ES would be helpful to generate historical statistics for selected dates and track changes in form.
Admin can always perform several opera... |
2018/03/08 | 1,048 | 3,275 | <issue_start>username_0: From Spock [documentation](http://spockframework.org/spock/docs/1.1/data_driven_testing.html#_combining_data_tables_data_pipes_and_variable_assignments):
>
> Data tables, data pipes, and variable assignments can be combined as needed:
>
>
>
> ```
> ...
> where:
> a | _
> 3 | _
> 7 | _
> 0 ... |
2018/03/08 | 1,392 | 5,734 | <issue_start>username_0: I am having an issue with how bloated our logging looks.
We are logging every single method in a structure like this:
```
namespace MyNamespace
{
public class MyClass
{
private readonly ILogger _logger;
public MyClass(ILogger logger)
{
_logger = logger;
}
publ... |
2018/03/08 | 1,465 | 4,550 | <issue_start>username_0: I'm running into trouble with the module urllib (Python 3.6). Every time I use the module, I get a page's worth of errors.
what's wrong with urllib and how to fix it?
```
import urllib.request
url='https://www.goodreads.com/quotes/tag/artificial-intelligence'
u1 = urllib.request.urlopen(url)... |
2018/03/08 | 773 | 3,246 | <issue_start>username_0: I wanted to use a custom color and font and size for my app's name in the action bar, so I went in and stylized it in MainActivity.java like so
```
//stylize the action bar
TextView tv = new TextView(getApplicationContext());
RelativeLayout.LayoutParams lp = new RelativeLayout.Layo... |
2018/03/08 | 378 | 1,305 | <issue_start>username_0: In `Laravel 5.0` I have set in `config/app.php` this:
```
return [
//...
'languages' => ['en','it'],
//...
]
```
Then, I have a blade wrapper in `resources/views/frontend/includes/menus/guest.blade.php`
```
@foreach (Config::get('languages') as $lang => $language)
```
But, Laravel says th... |
2018/03/08 | 658 | 2,327 | <issue_start>username_0: I have thumbnail PHP script what remakes thumbnails. All is working fine until it loads the thumbnail, the browser fails to reload the image from the server and displays the old thumbnail. I have tried following tricks:
```
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Mod... |
2018/03/08 | 775 | 2,004 | <issue_start>username_0: I want to return the number 5 from this:
```
list_1 = [[1, 2, 3], [4, 5, 6]]
```
I thought this would work but it is not:
```
print(list_1[1:1])
```
It returns an empty list. It is Index 1 (second list) and position 1 (second number in the list).
Shouldn't that work?<issue_comment>userna... |
2018/03/08 | 1,419 | 5,413 | <issue_start>username_0: I have an array of testcases that I am attempting to add to a testset in Rally using the rally api's.
I iterate through the array and call this method for every testcase in the array. They are all being added to the same testset.
```js
RallyConnect.prototype.addTestCaseToSet = function (tcObj... |
2018/03/08 | 643 | 2,586 | <issue_start>username_0: ```
const connect = auth.createUserWithEmailAndPassword(email,pass).catch(function(error){
if(error.code === 'auth/weak-password'){
errmsg.style.display = 'block';
errmsg.style.opacity = '1';
errmsg.innerHTML= 'The password is too weak.';
}
```
... |