date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/13 | 686 | 1,864 | <issue_start>username_0: 1. How do I add a heart icon at Rightside of Navigation Bar? Is it by adding a 48x48px png heart icon as Bar Button Item the correct way?
2. I wish to change the appearance of the heart icon when user click on it. Switch between favourite and unfavourite. Please see this [Link](https://www.yout... |
2018/03/13 | 821 | 2,931 | <issue_start>username_0: I am trying to make a search method using LINQ in Visual Studio. In my database, I have the three fields "Firstname", "LastNamePrefix" and "Lastname". My searchstring is Searchtext. How can I make a simple LINQ query which searches all the fields?
What I have at the moment is this:
```
query ... |
2018/03/13 | 796 | 2,731 | <issue_start>username_0: I am looking if there is elegant way to make sure when property is accessed first time, associated backing field is set. For example, I end up lot with below code paradigm to address this :
```
private Address _address;
public Address Address
{
get
{
... |
2018/03/13 | 456 | 1,867 | <issue_start>username_0: I have tried to install flutter many times but it is showing error in installing it.

[!] IntelliJ IDEA Community Edition (version 2017.1)
X Flutter plugin not installed; this adds Flutter specific functionality.
... |
2018/03/13 | 3,117 | 12,088 | <issue_start>username_0: I want to connect laravel project with firebase.
I do this:
1. install this package form github <https://github.com/mpociot/laravel-firebase-sync>
2. configure `config/services.php`
```
'firebase' => [
'api_key' => '<KEY>', // Only used for JS integration
'auth_domain' => 'bum.firebasea... |
2018/03/13 | 3,229 | 12,430 | <issue_start>username_0: I can't seem to solve the poblem of how to display a WFS map.
I am currently displaying WMS layer as followed:
```
let wmsLayer = new ol.source.TileWMS({
url: mapService.url,
params: {
LAYERS: mapService.layers,
TILED: true,
FORMAT: mapService.format
},
serverType: 'geoser... |
2018/03/13 | 1,278 | 3,271 | <issue_start>username_0: I am trying to change three column names of a data frame at one time.
When I worked with one column name change, my code worked well:
```
names(df)[names(df)== "name1")] <- "name12"
```
But when I tried to change three column names in one command, error occurred:
```
names(df)[... |
2018/03/13 | 1,206 | 3,127 | <issue_start>username_0: I have a ViewPager and its child fragments are dynamic. I am using them in the same fragment class and I am changing the field's value dynamically. But when I changing the ViewPager position, It is not updating the fragment. I have to change the values instantly.
Thank you.<issue_comment>usern... |
2018/03/13 | 1,035 | 4,158 | <issue_start>username_0: I am writing linear list ADT as my practice in DS class. I use one header file, one function source code and a driver as a whole project. I defined macro "ELEMENT\_TYPE" and "MAXSIZE" in the header file. My design is that I can #undef and immediately #define those two macros in the driver progr... |
2018/03/13 | 355 | 1,150 | <issue_start>username_0: I am trying to run some modules in Jupyter Notebooks using different libraries but I always get a No Module error, but when I check pip list, the module is there. How do I fix this?
[](https://i.stack.imgur.com/Hcd22.png)
Pip... |
2018/03/13 | 1,030 | 3,603 | <issue_start>username_0: Here is my code.
```
List driverStatus = PopulateDriverStatus();
var selectedStatus = driverStatus.FirstOrDefault();
var picker = new Picker { Title = "Select a status" };
picker.SetBinding(Picker.ItemsSourceProperty, "driverStatus");
picker.SetBinding(Picker.SelectedItemProperty, "select... |
2018/03/13 | 1,450 | 4,619 | <issue_start>username_0: RDS files are wonderful for sharing R objects between R files. And I often share ggplot objects between R files when I have a particularly complicated layout. Usually this works great.
My grumble is that if your ggplot() function call contains a global variable, that variable is lost when you ... |
2018/03/13 | 932 | 3,137 | <issue_start>username_0: Consider the following code example
```
#include
#include
std::experimental::optional dflt(42);
template& Dflt>
void foo() {
if (Dflt) {
std::cout << "default is set" << std::endl;
} else {
std::cout << "default is not set" << std::endl;
}
}
int main() {
foo(); // <-- OK
foo(); // ... |
2018/03/13 | 845 | 2,742 | <issue_start>username_0: This is a class that contains a `const std::vector` and stores its min and max:
```
#include
#include
class MyClass {
public:
const std::vector v;
const std::pair minmax\_v;
MyClass(const std::vector & v\_init)
: v(v\_init),
minmax\_v(\*(std::min\_element(v.begin(), v.end())), \*(std... |
2018/03/13 | 869 | 3,459 | <issue_start>username_0: I'm new to SVN having used SourceSafe and a home-brew solution for many years.
We've all done it, I have many edited files that were not checked out first. Is there a way I can either:
1. Force a commit despite the file not being checked out
2. Checkout without overwriting my altered files
3.... |
2018/03/13 | 1,063 | 2,805 | <issue_start>username_0: So, I have a drop-down menu that goes down on hover. However whenever there is a different div underneath, the dropdown menu will be BEHIND it and therefore not fully visible.
I have fiddled with the z-index but it doesn't change anything.<issue_comment>username_1: **Add `z-index: 9;` to this ... |
2018/03/13 | 1,021 | 3,607 | <issue_start>username_0: The following code writes to a file named *test.txt* (In this case, in the current directory)
```
var
F : TextFile;
begin
AssignFile(F, 'test.txt');
try
Rewrite(F);
//...
finally
CloseFile(F);
end;
end;
```
How can I extract the full file name from... |
2018/03/13 | 1,149 | 3,921 | <issue_start>username_0: **Disclaimer:** First of all, this is my early attempt to play with **Flutter**. So forgive me if is a noob question.
I had been playing with an MVP-Clean architecture for Flutter apps in iOS, and when trying to build a data source where I can persist data easily I found [PathProvider](https:/... |
2018/03/13 | 1,080 | 2,551 | <issue_start>username_0: I want to get list of running processes for current user to assure if "file.php" is still running or not?
I'm using cPanel and web server is Litespeed.<issue_comment>username_1: Here is what you need:
1. prepare the OS customized query to list running processes, on linux for example `ps faux |... |
2018/03/13 | 676 | 2,435 | <issue_start>username_0: I want to test this class:
```
class Response
def initialize(raw_response:)
........
end
end
```
I want to send multiple raw\_responses in rspec. I implemented this code:
```
let(:successful_response) { File.read(File.join('spec', 'fixtures', 'xml', 'successful_response.xml')... |
2018/03/13 | 1,124 | 3,976 | <issue_start>username_0: I have four files:
---
mainwindow.h
```
#pragma once // MAINWINDOW_H
#include
#include
#include "maincontent.h"
class MainWindow : public QMainWindow
{
Q\_OBJECT
public:
explicit MainWindow(QWidget \*parent = nullptr);
~MainWindow();
void setStatusBarMessage(QString message);
sign... |
2018/03/13 | 583 | 2,134 | <issue_start>username_0: With Axway Appcelerator one can persistently store data values as - among others - arrays and list of objects Ti.App.Properties:
<https://wiki.appcelerator.org/display/guides2/Lightweight+Persistence+with+the+Properties+API>
Alternative, one can store those values also in a database.
I need ... |
2018/03/13 | 1,322 | 3,472 | <issue_start>username_0: I have this kind of data:
```
df %>% str()
'data.frame': 50 obs. of 1 variable:
$ Title: chr " Mr" " Mrs" " Mr" " Mr" ...
df <- structure(list(Title = c(" Mr", " Mrs", " Mr", " Mr", " Mrs",
" Mr", " Miss", " Mr", " Mrs", " Mr", " Mr", " Mr", " Mrs", " Mr",... |
2018/03/13 | 1,234 | 3,373 | <issue_start>username_0: I've seen a number of questions asking how to check if a float is an integer. Majority of answers seem to recommend using `is_integer()`:
```
(1.0).is_integer()
(1.55).is_integer()
```
I have also occasionally seen `math.floor()` being used:
```
import math
1.0 == math.floor(1.0)
1.55 == ma... |
2018/03/13 | 593 | 2,412 | <issue_start>username_0: I have `Activity` `A` and `Activity` `B`.
`A` has a button that opens `B`.
Activity `B` has to display some info from API that I call.
The problem: When I open the activity, there is a moment when the data is empty (I am waiting for a response from the API), since I am calling the API insi... |
2018/03/13 | 543 | 2,097 | <issue_start>username_0: >
> Type 'Observable<{ "aa": any; "dd": any; "cc": any; }>' is not
> assignable to type 'Observable'.
>
>
>
How can I fix this error in Angular 4? Unsure about syntax.
```
public search2(): Observable {
return Observable.of(
{
"aa","dd", "cc"
}
);
}
```<issue_comment>username_1: ... |
2018/03/13 | 329 | 1,359 | <issue_start>username_0: is it possible to call ScriptIntrinsics methods within a custom .rs file on Android? What I'd like to achieve is to convert a video frame from YUV to RGBA ,then apply gaussian blur.
Cheers!<issue_comment>username_1: You cannot use a script inside a rs file to my knowledge, but what you can do... |
2018/03/13 | 332 | 975 | <issue_start>username_0: I have a folder "named training01". I Want to run a script that copies the directory and its contents 12 times so I have "training01, training02, ..., training13". It must be really simple but I'm noob to bash scripts. Thanks in advance :)<issue_comment>username_1: Try something like:
```
#!/b... |
2018/03/13 | 1,573 | 5,518 | <issue_start>username_0: I have a problem to put structs with a generic type in one array. I know that Swift converts the meta type of an Array into a concrete type and that this is the conflict. I tried to find a different solution but I think I need your help.
Here I define the structs and protocols:
```
protocol I... |
2018/03/13 | 489 | 1,456 | <issue_start>username_0: I want to be able to read and write to a file with a bash script. I am able to read the variables from the file but I am not sure how to write to it.
The file `data.txt` contains the variable names and their values like this:
```
var1=2
var2=3
```
The shell script looks like this:
```
#!b... |
2018/03/13 | 346 | 950 | <issue_start>username_0: I have a data field `Date` in the format of `yyyyMMdd` string (varchar). How do I replace everything before a certain date, say 20180201, to certain month, say March 2018!? Only the year and the month are changed, keep the day.
Example: A string **20160913** will be changed to **20180313**, bu... |
2018/03/13 | 640 | 2,407 | <issue_start>username_0: I want to move a doc from one collection to another. Therefore I want to use a transaction to 1. create the new doc and 2. delete the old one.
I can do the following, which works:
```
db.runTransaction((transaction) => {
return transaction.get(docRef)
.then(() => transaction.set(newDocRef.d... |
2018/03/13 | 574 | 2,018 | <issue_start>username_0: I want to create a function that generate me a random string or number.
My function in ts like this:
```
randomString() {
let chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
let string_length = 8;
let randomstring = '';
for (let i = 0; i < string_len... |
2018/03/13 | 312 | 1,187 | <issue_start>username_0: With Python's [decimal](https://docs.python.org/3/library/decimal "decimal") module, does a context with a higher precision value use more memory. If not, for what reason would you not always use the maximum?<issue_comment>username_1: `Decimal` can be very useful however that generally you shou... |
2018/03/13 | 970 | 3,065 | <issue_start>username_0: I have an sql column and value/structure as per below:
```
ColumnA
ROOT/South America/Lima/Test/Test2
```
Running a select query I want to extract "Lima" As a column value. I couldn't get the split string to work, or substring.
Any thoughts?<issue_comment>username_1: This is my approach to ... |
2018/03/13 | 487 | 1,787 | <issue_start>username_0: I created a new activity with the default navigation drawer, but the default color is black, how to change it?
[](https://i.stack.imgur.com/EX9CH.jpg)
I tried this code works, but the animation is not running and can not be ... |
2018/03/13 | 440 | 1,913 | <issue_start>username_0: This is my function using **dispatch queue**, I would like to cancel it when it is running in the background. How can I do that?
```
extension DispatchQueue {
static func background(delay: Double = 0.0, background: (()->Void)? = nil, completion: (() -> Void)? = nil) {
DispatchQueu... |
2018/03/13 | 1,752 | 7,238 | <issue_start>username_0: Currently I am having a function which has two arguments of type enums, the function requires to compare both and do particular task
example:
```
void set_Test_Status(Tests TestName, Status TestStatus)
{
switch(TestName)
{
case Tests::Test1:
{
... |
2018/03/13 | 432 | 1,252 | <issue_start>username_0: I'm currently working on a CSS grid layout where I want two divs in a container to be 50% width each. But I cant really figure out how.
The element `nav` has two divs inside it which I want to be 50% each, but using the grid-syntax. How would you do that?
Code:
```
$gutter: 30px;
$columns: 1... |
2018/03/13 | 468 | 1,821 | <issue_start>username_0: I'm trying to show a Keyboard for a view as the focus is set to it once it renders. I tried multiple ways of trying to get it to work but whenever the Dialog renders and the focus is in the View, it doesn't show the keyboard until I click it.
This was one way I tried and it didn't work.
```
y... |
2018/03/13 | 1,484 | 5,501 | <issue_start>username_0: I searched for real cases ES6 generators and didn't find proper explanation. I am trying to understand this first **Promise** scenario.
Let's say we have 2 rest apis: **getUser** and **getUserComments**
We wan't to create a linear code structure avoiding nested **then** callback functionaliti... |
2018/03/13 | 338 | 1,264 | <issue_start>username_0: I'm adding several items to an array using `concat` in an event-handler as follows:
```
var selectedValues = [];
$.each($('#selected-levels').data("kendoListBox").dataSource.data(), function(i, item) {
selectedValues.concat([ item.id ])
});
return {
"selected" : selectedValues
};
```... |
2018/03/13 | 731 | 2,913 | <issue_start>username_0: I'm new to camel and writing a small POC to implement in an existing application. Application takes a xml request as input which contains the requested services and relevant data. It then calls those services one by one.
When a service is called successfully then I retrieve the http response co... |
2018/03/13 | 674 | 2,275 | <issue_start>username_0: I am creating basic angular form and `onsubmit` trying to retrieve the form value, but my case instead of getting value I am getting value as object.
**Note:** copied the code with some example.
can you please let me know why i am getting object instead of value?
Please find my below code:
... |
2018/03/13 | 716 | 1,702 | <issue_start>username_0: Assume that we have this data:
```
a <- c("ham","bamm","comb")
```
for 1-gram, this is the matrix representation of the above list.
```
# h a m b c o
# 1 1 1 0 0 0
# 0 1 2 1 0 0
# 0 0 1 1 1 1
```
I know that `table(strsplit(a,split = "")[i]) for i in 1:length(a)` will give the separa... |
2018/03/13 | 1,755 | 4,670 | <issue_start>username_0: Maybe I'm missing something obvious but trying to flatten a list of named lists of named lists in R (may even be more nested) into eventually one flat list. `purrr` and `rlist` seem to have tools for that. How can I achieve that names of sublists become name precrypts of flattened result list, ... |
2018/03/13 | 720 | 2,486 | <issue_start>username_0: I've just wanted to know if it is possible to find a DOM element by the key attribute of vue?
I'm currently working with a list. I'm displaying it via v-for directive on a div. I'm binding the key with the index of the elements.
```
v-for="(apk, index) in project.apks" v-bind:key="index"
```
... |
2018/03/13 | 577 | 1,969 | <issue_start>username_0: I want to use multiple "navbars" in one page.
How is it possible when I click on a button to hide another Opened "Div"
I mean once a "navbar" is open.
This is currently working, but as soon as I am open and click on the second button. the first open div not close.
>
> **like an accordion**
>... |
2018/03/13 | 1,028 | 3,973 | <issue_start>username_0: I'm having trouble using Point Cloud Library with Microsoft Visual Studio 2017.
I have installed [PCL-1.8.1-AllInOne-msvc2017-win64.exe] and I've followed the steps mentioned
[here.](https://stackoverflow.com/questions/16514762/setting-up-point-cloud-library-with-visual-studio) to link it to ... |
2018/03/13 | 921 | 3,027 | <issue_start>username_0: I have a row with values something like this, How to extract first two digits that come after the text 'ABCD' to another cell, any formula or vba? There may be a few chars in between or sometimes none.
* ABCD 10 sadkf sdfas
* ABCD-20sdf asdf
* ABCD 40
* ABCD50 asdf<issue_comment>username_1: In... |
2018/03/13 | 522 | 1,629 | <issue_start>username_0: I am putting forward 2 examples of closure. First works fine, while second doesn't. Now, I don't understand why second scenario fails. It still is calling anonymous function 3 times and must also give same result of closure.
**Example 1:** (Works Fine)
```html
var alpha1 = (function alpha()... |
2018/03/12 | 609 | 1,856 | <issue_start>username_0: How can I convert EBCDIC to ASCII In Perl. I tried with dd command in linux and it worked fine. Can anyone help me out the same in Perl?<issue_comment>username_1: I've found a Perl module that can help with that, however I did not use it, so i cannot help you further. By looking at its document... |
2018/03/13 | 794 | 2,492 | <issue_start>username_0: I have implemented full calendar to maintain some events. Now the fullcalendar is implemented with some default business hours. Lets say I have set business hours from 10:00 to 17:00 hours.
Now I am creating the event from 15:30 to 16:30 hours. Now I when I resize the event and stretch it and ... |
2018/03/13 | 440 | 1,545 | <issue_start>username_0: I have a problem with the Popup of OpenLayers 4, when I open the popup info and I'm inside the div with the pointer, it still triggering the hover popup with the data behind the popup, how can I prevent that?
I'm using this CSS code for the popup:
```
#popup {
z-index: 20;
background-colo... |
2018/03/13 | 184 | 701 | <issue_start>username_0: I've been looking for a regular expression which can select an string included in another one when it's between {{ and }} but not if it has escaped by "\".
And I'm going to use it in javascript.
Thanks<issue_comment>username_1: You can use `pointer-events:none` before its open and `pointer-ev... |
2018/03/13 | 973 | 3,208 | <issue_start>username_0: I have tried every single thing to perform dragAndDrop using webdriverio but nothing works. I have also posted a question in the webdriverio gitter but no response. below posted code is one of the ways I tried and its supposed to work but it just doesn't!
```
` await this.driver.moveToObjec... |
2018/03/13 | 1,001 | 3,105 | <issue_start>username_0: Let's say I have this array:
```
let obj = [
{ prop: 'a', val: 2 },
{ prop: 'a', val: 1 },
{ prop: 'b', val: 3 },
{ prop: 'b', val: 1 }
]
```
Let's say i want to get an array for each existing prop val:
```
let myArr = [
[ { prop: 'a', val: 2 }, { prop: 'a', val: 1 } ]
[... |
2018/03/13 | 556 | 2,209 | <issue_start>username_0: I am working DevOps with VSTS. Currently I worked on SSIS package deployment through VSTS release for that I used the “**[SSIS Deploy](https://marketplace.visualstudio.com/items?itemName=TG.VSTS-SSIS)**” task but right now this extension is not available in VSTS market place.
Configuration of ... |
2018/03/13 | 384 | 1,378 | <issue_start>username_0: I have set up a very simple stub of a Symfony 3.3 controller whose main action looks looks like this:
```
/**
* @Route("/pair-gallery/{id}")
*/
public function indexAction(Int $id)
{
$output = [];
return new JsonResponse($output);
}
```
When I give it a string as an argument in the... |
2018/03/13 | 589 | 1,314 | <issue_start>username_0: How can I extract:
1. A string with n digits (say 10) that ends with a letter (say "A"), for example: 4024204455A
2. A 12-digit number, for example: 192345006905
using a regex, from multiple text files with Go (golang)?<issue_comment>username_1: ```
php
$input = array();
$input[] = '123456789... |
2018/03/13 | 925 | 3,419 | <issue_start>username_0: I have three activities.
* Settings activity [A] // where you input a number that will be used in the main activity
* Main activity [B] // where it uses the number inputted by the settings activity
* Pause activity [C] // which is dialog that pauses the main activity and gives you the option t... |
2018/03/13 | 438 | 1,305 | <issue_start>username_0: I want to name my file as the student number comes up.
Here is the code:
```
import random
SNumber=random.randint(199999,999999)
print(SNumber)
writefile=open("studentNumberhere.txt","a")
writefile.write(SNumber)
writefile.close()
```
If the code runs and it generates the number: 123456
Th... |
2018/03/13 | 340 | 1,145 | <issue_start>username_0: Why am I not able to assign value to $rootScope with the following code.
```
fetchIp().then(function(response){
$rootScope.nodeIp = (response.length == 0 ? "localhost" : response[0]);
});
var root = 'http://' + $rootScope.nodeIp + ':8080/';
```
It shows it as 'undefined'<issue... |
2018/03/13 | 600 | 1,955 | <issue_start>username_0: Is it possible in some way to transform a GDS graph metric into a more abbreviated value?
The issue is that it's very hard to read numbers in some graphs that require multiple series:
[](https://i.stack.imgur.com/rzFwI.png)<i... |
2018/03/13 | 883 | 3,608 | <issue_start>username_0: Normally in a Laravel app I put functions in controllers.
But if I have general purpose functions like AWS API calls I need to access from multiple controllers, how do I do it? I have a provider, but can't access it?
Previously I have used something like:
```
$servers = new ServerController(... |
2018/03/13 | 798 | 2,920 | <issue_start>username_0: I have an `Activity` which shows contact details of a person. it contains CordinatorLayout (containing header), `ViewPager` in it along with `TabLayout`.
one of the fragment contains `EditText` at the bottom which is contained in ViewPager.
I'm using the following theme for this activity.
` ... |
2018/03/13 | 535 | 1,491 | <issue_start>username_0: I want to calculate percentage of minutes in java. For eg: 10% of 3 minutes in 30 seconds.
Below is my code. I have a variable `t` which has time in minutes. I want to calculate 10% of time `t` and convert that to milliseconds. How can i do that? `assmt_time10per` is wrongly set to `0`
```
i... |
2018/03/13 | 1,039 | 4,113 | <issue_start>username_0: I wrote a function which converts the unicode encoding in my input data to `utf-8` encoding.
The function is capable to handle the raw `string` OR `dict` OR `list` as an input and returns the respective `utf-8` encoded output.
This function is a part of bigger project that i am working on. T... |
2018/03/13 | 649 | 2,603 | <issue_start>username_0: I am creating a live reporting application using Flask, Flask-Socketio and Flask-SQLAlchemy. My current design creates a background thread on connection which querys an API and inserts into the applications data. However, when running this, I get the error
`RuntimeError: No application found.... |
2018/03/13 | 1,076 | 3,615 | <issue_start>username_0: I am currently struggling with `Java.Util.Calendar`
I have a method that creates a Calendar with random values for year, month and day.
```
public Calendar getRandomGeburtstag() {
int year = 1999 - (int) (Math.random() * 80);
int month = (int) (Math.random() * 12) + 1;
... |
2018/03/13 | 878 | 3,045 | <issue_start>username_0: Getting this error while deploying code.
>
> ERROR in src/app/app.module.ts(26,49):
> error TS2339: Property 'firebaseConfig' does not exist on type '{
> production: boolean; }'.
>
>
>
**App.module.ts**
```
import { BrowserModule } from '@angular/platform-browser';
import { NgModule }... |
2018/03/13 | 281 | 1,048 | <issue_start>username_0: My page has a footer containing navigation image buttons (back and forwards) defined as a `RelativeLayout`.
```
```
I want to add a banner Ad just on the top of the footer.
I have tried to insert a LinearLayout (used the banner Ad) in the RelativeLayout but it showed the banner on the same p... |
2018/03/13 | 457 | 1,422 | <issue_start>username_0: The `href` attribute is present here:

I'm trying to get this as a URL `"CompanyDetails.aspx?ISIN=EGS3G191C017"` from the image using CasperJS, but I am unable to get it.
I have used these approaches but was unsuccessf... |
2018/03/13 | 1,094 | 3,766 | <issue_start>username_0: [Apache commons-lang](https://github.com/apache/commons-lang) has two overloaded `BooleanUtils.and` methods.
[`public static boolean and(final boolean... array) {`](https://github.com/apache/commons-lang/blob/master/src/main/java/org/apache/commons/lang3/BooleanUtils.java#L903)
[`public stat... |
2018/03/13 | 788 | 3,011 | <issue_start>username_0: We are working on an authentication system, using Spring 5 (I'm new at using this Framework).
We use `AuthenticationManagerBuilder`, and, for security reasons, I have to extend the system to avoid that non-admin user could log in during weekends, or during certain non-working hours.
I was ch... |
2018/03/13 | 265 | 925 | <issue_start>username_0: How can I change the background color of a single item in Navigation view, even if it is not selected?<issue_comment>username_1: Use this in navigation view:
```
app:itemIconTint="your color"
```
Upvotes: 2 <issue_comment>username_2: Create menu class :
```
```
now in activity class :
`... |
2018/03/13 | 299 | 1,155 | <issue_start>username_0: I have injected lodash in ionic angular app. i have created a factory to register it as '\_' and it's working fine while i run the app.
While i am writing unit test for that using Karma + jasmine and one of the service dependency injects '\_' in it. It gives **Uncaught Error: [$injector:unpr] ... |
2018/03/13 | 234 | 808 | <issue_start>username_0: ```
public class ConStru
{
public ConStru(int bc)
{
}
}
public class MainClass {
public static void main(String[] args)
{
ConStru conStru = new ConStru();
}
}
```
it is not working. giving the error.<issue_comment>username_1: You need to make sure that... |
2018/03/13 | 1,938 | 6,369 | <issue_start>username_0: I have the following Spark dataframe that is created dynamically:
```
val sf1 = StructField("name", StringType, nullable = true)
val sf2 = StructField("sector", StringType, nullable = true)
val sf3 = StructField("age", IntegerType, nullable = true)
val fields = List(sf1,sf2,sf3)
val schema = ... |
2018/03/13 | 962 | 3,075 | <issue_start>username_0: I am quite new BASH scripting and I am trying to create my own script to download/build from source a package. However I would like to add some interaction to my script to make it future ready for newer versions.
My script asks the user for the version they would like to install and generates ... |
2018/03/13 | 1,579 | 6,786 | <issue_start>username_0: I'd like some feedback on couple different solutions to handling data dependencies and relations across micro services.
Consider these services:
[](https://i.stack.imgur.com/Y7Qx8.png)
Briefly explained, there is a bank servi... |
2018/03/13 | 372 | 1,282 | <issue_start>username_0: I use ARI to call 2 endpoints and Bridget them.
I want to hold or play media or play MOH call1 until endpoint2 answer call and then Bridget them.
I tried this plan but PlayBack, BackGround, MusicOnHold all of them block the thread until playing is finished and then call endpoint2.
```
exten =... |
2018/03/13 | 696 | 1,298 | <issue_start>username_0: I have a current hash:
```
{
"2018-03-12"=>[{:date=>"2018-03-12", :net_revenue=>0.044}],
"2018-03-11"=>[{:date=>"2018-03-11", :net_revenue=>0.033}],
"2018-03-10"=>[{:date=>"2018-03-10", :net_revenue=>298.860}]
}
```
How do I make it look like this?
```
{
"2018-03-12"=>{:date=>"2018-03-... |
2018/03/13 | 342 | 1,130 | <issue_start>username_0: How to styling agm-marker-label - max-width for set text to center ? I can change label position but can't set min-width for centralization label name.
```
```<issue_comment>username_1: If this helps anyone... This is the only thing I have found that works....
put `[label]="labelOptions"` in ... |
2018/03/13 | 692 | 2,011 | <issue_start>username_0: I would like to determine if there are duplicates in a vector. What is the best option here?
```
sort(arrLinkToClients.begin(), arrLinkToClients.end(), [&](const type1& lhs,const type1& rhs)
{
lhs.nTypeOfLink < rhs.nTypeOfLink;
});
auto it = unique(arrLinkToClients.begin(), arrLinkToClien... |
2018/03/13 | 1,136 | 4,197 | <issue_start>username_0: [SOLVED]
I just solved like this
```
class articleViewSet(viewsets.ModelViewSet):
queryset = article.objects.all()
serializer_class = articleSerializer
def destroy(self, request, *args, **kwargs):
password = request.data.get('password')
article_id = request.data.g... |
2018/03/13 | 777 | 2,476 | <issue_start>username_0: I have simple SQL Server view that I need to make amends to:
```
CREATE VIEW [dbo].[ApplicantStat]
AS SELECT ISNULL(CONVERT(VARCHAR(50), NEWID()), '') AS Pkid,
AVG(ApplicationTime) AS 'AvgApplicationTime',
AVG(ResponseTime) AS 'AvgResponseTime',
CAST(ROUND(100.0 * count(case wh... |
2018/03/13 | 436 | 1,703 | <issue_start>username_0: I'm using IoT-Edge on my Raspberry Pi 3. Since IoT-edge isn't compatible with Windows 10 IoT Core on Raspberry Pi 3, my Raspberry is on Raspbian.
I'm trying to read my UART ports to read XBee sensor data.
My edge's modules are written in C# thus far.
I'm using Raspbian so I can't use the cla... |
2018/03/13 | 373 | 1,418 | <issue_start>username_0: I am trying to read and iterate information of a huge xml and try to convert into json and send it to front end. There are many child elements and sub-child elements in the response XML. I want to iterate the values of one child "Node" and its child and convert into JSON and send it to front en... |
2018/03/13 | 259 | 759 | <issue_start>username_0: I need to get an array of all strings that are contained in curly brackets using JavaScript.
```
{{text is here}}
```
note that the text could contain all special characters and could be multi line i have tried this so far
[regex test](https://regex101.com/r/gYXSbO/3/)
```
\{{(.*?)\}}
`... |
2018/03/13 | 462 | 1,819 | <issue_start>username_0: my company has bought an HSM and we will generate the key pair and csr inside there and then pass the csr to a CA, upon receiving the .cer from CA, we need to give the .p12 to user. Is this arrangment possible? Because I heard that the HSM does not allow export anything out. How to do this in L... |
2018/03/13 | 388 | 1,101 | <issue_start>username_0: If I have a list of atoms like this
```
[:slug, :title]
```
How can I assign values to the atoms inside the list like tuples
```
[{:slug, "some"}, {:title, "title"}]
```
Is it possible?
Thanks!<issue_comment>username_1: You'll have to iterate through the list to find and update values. ... |
2018/03/13 | 212 | 743 | <issue_start>username_0: I installed laravel project on Google cloud platform.
Every thing fine,running properly,but only index route running when I try to access other route i.e www.domain.com/testing
It show error 404
Here is my default config file
[{
timeline[i] = dataList[i].position;
}
return timeline;
```
First thought:
```
new double[datalist.ToArray("lambda which selects all .position a... |
2018/03/13 | 1,660 | 6,046 | <issue_start>username_0: I am trying to click on an element but getting the error:
`Element is not clickable at point (x,y.5)`
because another element obscures it.
I have already tried moving to that element first and then clicking and also changing the co-ordinates by minimizing the window and then clicking, but b... |
2018/03/13 | 612 | 1,790 | <issue_start>username_0: I have a vector of strings:
```
ve <- c("N","A","A","A","N","ANN","NA","NFNFNAA","23","N","A","NN", "parnot", "important", "notall")
```
I want to keep only three possible values in this vector: `N`, `A`, and `NA`.
Therefore, I want to replace any element that is NOT `N` or `A` with `NA`.
... |
2018/03/13 | 1,325 | 4,606 | <issue_start>username_0: I’m developing a plugin for a new language and I was trying to add support for compile options to the compiler. I’ve used the `org.gradle.api.tasks.compile.CompileOptions` class as a starting point and implemented my own class as following:
```
class SvCompileOptions extends AbstractOptions {
... |
2018/03/13 | 340 | 987 | <issue_start>username_0: I am trying to convert a string `["211007@it_4","211008@it_4"]`, which is saved in MySQL database to an array of string to use it as an index value.
I can not find a good way to do this in Go.<issue_comment>username_1: The standard library contains functions to work with strings (e.g. `string... |
2018/03/13 | 621 | 2,138 | <issue_start>username_0: Here is my code:
```
localStorage.setItem('qandaInputsValue7', $("#ask_q_tags span:first-child, #ask_q_tags span + span").each(function() { return $( this )[0].outerHTML }));
```
The result is:
[](https://i.stack.imgur.com/... |