date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/05 | 747 | 2,801 | <issue_start>username_0: I'm using dynamics-crm 2016, I have a postupdate plugin of Phonecall entity.
After `state` is `completed` I do some actions. The problem is that when I run it in debug and using breakpoint & etc' everything works fine but out of debug nothing is. At first my code was in setState - plugin and no... |
2018/03/05 | 859 | 3,240 | <issue_start>username_0: I am using Entity Framework code first with fluent API I have an items table with foreign keys from users and units tables
but when I load the table to `ObservableCollection` then bind it to a `datagrid` the table normal column load it's data normally into the `datagrid` excpet for the foreign... |
2018/03/05 | 386 | 1,180 | <issue_start>username_0: Designer has sent me a new logo as a SVG.
I want to use it inline in my HTML but I could not get it to display without setting `min-width`.
However now I am using `min-width` to get logo to desired size, the bottom of the logo is lower than the bottom of the navbar.
How do I get the SVG to u... |
2018/03/05 | 1,197 | 3,560 | <issue_start>username_0: I have the following select statement in ABAP:
```
SELECT munic~mandt VREFER BIS AB ZZELECDATE ZZCERTDATE CONSYEAR ZDIMO ZZONE_M ZZONE_T USAGE_M USAGE_T M2MC M2MT M2RET EXEMPTMCMT EXEMPRET CHARGEMCMT
INTO corresponding fields of table GT_INSTMUNIC_F
FROM ZCI00_INSTMUNIC AS MUNIC
INNER JOIN EVE... |
2018/03/05 | 1,479 | 4,296 | <issue_start>username_0: In R I have:
```
library(tidyverse)
full_names <- tibble(FIRM = c("APPLE INC.", "MICROSOFT CORPORATION", "GOOGLE", "TESLA INC.", "ABBOTT LABORATORIES"),
TICKER = c("AAPL", "MSFT", "GOOGL", "TSLA", "ABT"),
ID = c(111, 222, 333, 444, 555)) # a dataset with full... |
2018/03/05 | 1,231 | 3,964 | <issue_start>username_0: I'd like to know if there's a way to tell Angular to generate a DIV instead of a new tag when inserting a component in a router-outlet. Right now, I have this component code:
```
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
@Component({
selector: 'app-fwc-vpn-main',... |
2018/03/05 | 1,187 | 3,808 | <issue_start>username_0: I want to do aggregation operation by identifying "sum(a)" as in the below string and need to perform some logical operation to get sum, avg, count or percentage(i have separate method to do that so don't worry about that).
expression like below,
```
= '"sum(a)" * 10 + "count(b)"'
```
Her... |
2018/03/05 | 1,155 | 3,595 | <issue_start>username_0: I have an assignment to do, which is:
Write a function transpose which takes in a matrix and transposes it. Basically, this converts a m x n matrix into a n x m matrix.
I wrote a code which seems sensible, but it doesnt get me the result I want. Can anyone point out what is wrong with my code... |
2018/03/05 | 1,786 | 5,702 | <issue_start>username_0: I want to fade in an element only when it's visible in the viewport. To do this, I'm using a `isOnScreen()` function. It works fine, but only with one element, and if more elements with the same class are on the page, it works only with the first one.
How can I use the function `isOnScreen()` ... |
2018/03/05 | 409 | 1,334 | <issue_start>username_0: I'm scoring es query with three `functions`:
```
{
"query": {
"function_score": {
"query": {
"bool": {
...
}
}
}
},
"score_mode": "multiply",
"boost_mode": "replace",
"functions": [
{ f1 },
{ f2 },
{ f3 }
]
}
```
so the sc... |
2018/03/05 | 1,273 | 4,892 | <issue_start>username_0: I'm currently working on a piece of code in C++11:
```
class A {
public:
//.. generic public methods which call updateInternalState from time to time ..
private:
void updateInternalState();
B internalState;
};
```
Now I want to have several versions of class A which are all ident... |
2018/03/05 | 631 | 2,072 | <issue_start>username_0: I am trying to achieve the calculation of area of polygon using scala
Reference for Area of Polygon <https://www.mathopenref.com/coordpolygonarea.html>
I was able to write the code successfully but my requirement is I want the last for loop to be chained within points variable like other map ... |
2018/03/05 | 537 | 2,039 | <issue_start>username_0: I have listed some indexes below
* IndexA(Column1,Column2)
* IndexB(Column1,Column2,Column3,Column4,Column5)
* IndexC(Column2,Column3)
* IndexD(Column1,Column3)
* IndexE(Column1,Column4)
Here, I am thinking that the duplicate index is IndexA.
But after reading some blogs in internet, I found... |
2018/03/05 | 464 | 1,841 | <issue_start>username_0: ```
DATE&TIME
---------
View Date
Clear
```
I want to perform two action while button is clicked. My above code was not work. Please give solution.<issue_comment>username_1: It depends on your query patterns.
If you only check for equality on col1,col2,index A is redundant..Of course i... |
2018/03/05 | 540 | 2,026 | <issue_start>username_0: After tomcat upgrade from 8.5.6 to 8.5.28 parallel stream stopped supplying Threads with contextClassLoader:
Because of it `Warmer::run` can't load classes in it.
```
warmers.parallelStream().forEach(Warmer::run);
```
Do you have any ideas what Tomcat was supplying for contextClassLoaders f... |
2018/03/05 | 715 | 2,855 | <issue_start>username_0: net and would to have the Header Text of columns in a datagridview be named after results from the database, e.g the query in my code returns four dates,30/08/2017,04/09/2017,21/09/2017 and 03/02/2018. My aim is to have the column headers in the data grid named after those dates. Your help will... |
2018/03/05 | 1,057 | 3,927 | <issue_start>username_0: I'm building an AngularJS (1.x) and Ionic/Cordova mobile app for iOS + Android. I'd like to add/create a "deep link" to my **Sign In** page so that when I send a new user a "*Confirm your Email*" email and they click a link to confirm their registration, then if they're on their mobile device (... |
2018/03/05 | 456 | 1,534 | <issue_start>username_0: So at the company I am currently doing my internship at, they have about 20 'technical laptops' that have company-specified software. They are located in the C:\ directory.
For example:
`aaa.exe` is located at `C:\aaa\aaa.exe`
`bbb.exe` is located at `C:\bbb\bbb.exe`
What I actually need is... |
2018/03/05 | 2,329 | 9,544 | <issue_start>username_0: i am trying to create one reusable datePicker. in my project i am using multiple Labels in multiple viewControllers. For that i created one DatePicker class that one i am using different places. check this below code its working for Single viewController.
This is the one VC i am displaying date... |
2018/03/05 | 539 | 1,992 | <issue_start>username_0: I have an Xamarin Content Page with a List. For the ListItems I want something similar to the cardview in Android.
[](https://i.stack.imgur.com/qaGLj.png)
Base on what I found that could be accomplished by a Frame. I have thi... |
2018/03/05 | 697 | 2,222 | <issue_start>username_0: I know, we can register interfaces of COM DLL using regsvr32.exe
is any windows C++ API available, Which API will register interfaces of COM DLL.
Thanks!
<NAME><issue_comment>username_1: All `regsvr32` does is load a dll and call the [DllRegisterServer](https://msdn.microsoft.com/en-us/librar... |
2018/03/05 | 309 | 1,135 | <issue_start>username_0: I am running python 2.7.12 and 3.5.2
I have used `pip install schedule` to install the schedule module. It is meant to be compatible with both Python 2 and 3.
When i run a script using Python 2 the schedule module works fine, however when I run the same script with Python 3 it says **No modul... |
2018/03/05 | 313 | 1,328 | <issue_start>username_0: I have a user defined class **CostMatrix** this class contains two properties and data type for both properties is HashMap. I am using Morphia to communicate with mongodb so my entity class looks like this
```
@Entity(value = "CostMatrix",noClassnameStored = false)
public class CostMatrix... |
2018/03/05 | 433 | 1,943 | <issue_start>username_0: I've well researched and used this, but I don't know it is still getting error.
I need to check if existing image exists then file attribute should skip validation and viceversa.
HTML COde:
```
```
JQuery Validation Code:
```
$("#add_reference").validate({
rules: {
link... |
2018/03/05 | 364 | 1,224 | <issue_start>username_0: I have two workbooks in excel. I am trying to copy a worksheet from one workbook to another.
And after that I want to close the workbook where I had copied from.
What I have done so far:
`Sub copy()
Workbooks.Open filename:= _
"C:\2016.xlsm"
ActiveWorkbook.Sheets("Grafic").Select
Selectio... |
2018/03/05 | 1,160 | 4,341 | <issue_start>username_0: I learned from internet that our vba macros (subs and functions) should be more or less the size of the screen.
But all my code is written exactly in the opposite: a have a huuuge main sub that calls functions and small subs.
My question is: if I decide to convert my main huge sub into small ... |
2018/03/05 | 454 | 1,496 | <issue_start>username_0: What is the way of making div's have equal heights within the row?
it says everywhere that bootstrap4 is flex by default, but it doesn't work for some unknown reason
```
HISTORY
Sometext
2012
some other text
2014
More text
2017
Text here too
```
the scss
```... |
2018/03/05 | 532 | 2,140 | <issue_start>username_0: Using input type checkbox and ngmodel, ngmodelchange, checked attribute of angular. Please check below.
```
```
Checkbox is working fine in google chrome and firefox, but when i test in IE11, I'm not able to check the checkbox.
But when i double click continuously, then the checkbox got che... |
2018/03/05 | 193 | 600 | <issue_start>username_0: I am trying to install dask[complete] via pip on Mac OSX, but I am always getting no matches found: dask[complete]. What is the best way to install dask[complete] library on Mac OSX?
```
pip install dask[complete]
zsh: no matches found: dask[complete]
```<issue_comment>username_1: Some termin... |
2018/03/05 | 276 | 897 | <issue_start>username_0: I am using Laravel 5.6, with the default make:auth mechanism.
In the routes/web.php, I would like to add a language middleware as follow:-
```
Route::prefix('{lang}')->group(function () {
Route::get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm')->name('password.req... |
2018/03/05 | 347 | 1,226 | <issue_start>username_0: I want to search through a lot of logs (about 1 TB in size, placed on multiple machines) efficiently.
For that purpose, I want to build an infrastructure composed of Flume, Hadoop and Solr. Flume will get the logs from a couple of machines and will put them into HDFS.
Now, I want to be able t... |
2018/03/05 | 574 | 1,799 | <issue_start>username_0: I have a lot of log files from JBoss Fuse that I want to visualize in Kibana.
I've installed Elasticsearch and Kibana.
I have also installed the plugin ingest-geoip (`bin/elasticsearch-plugin install ingest-geoip`).
Now I am trying to install Filebeat.
I've done this OK:
```
curl -L -O h... |
2018/03/05 | 632 | 2,530 | <issue_start>username_0: I am currently looking at the sklearn source code in github and I have encountered a line that bugs me. It's [this one](https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/utils/extmath.py#L599).
I understand the difference between copying by value and copying by reference (I gues... |
2018/03/05 | 442 | 1,260 | <issue_start>username_0: I have this exception after upgrade to the Android Gradle 3.0.1 version.
I use Jacoco in my multimodule android project.
```
java.nio.channels.OverlappingFileLockException
at sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:255)
at sun.nio.ch.SharedFileLockTable.add(FileLockTable.ja... |
2018/03/05 | 2,124 | 5,803 | <issue_start>username_0: I wanted to achieve triple border like below image.
[](https://i.stack.imgur.com/pDZCi.png)
I have tried below solution but, the corners are still looking different. it is not overlapping.
```css
.dtborder {
position: re... |
2018/03/05 | 557 | 2,002 | <issue_start>username_0: 1. Why we need `WHERE CURRENT OF` clause in `Oracle PL/SQL`? We all know that `FETCH` retrieves only one row at a time and hence `FETCH` is used in `LOOP` to process all the rows of a cursor. Then why do we exclusively need a `WHERE CURRENT OF` clause? We can anyhow lock the cursor rows using `... |
2018/03/05 | 544 | 1,667 | <issue_start>username_0: In Ubuntu 16.04 with Nginx (LEMP) I created the file `/etc/php/7.0/fpm/zz_overrides.ini`.
The file contains only this code:
```
[PHP]
post_max_size = 2000M
upload_max_filesize = 2000M
max_execution_time = 3000
cgi.fix_pathinfo=0
```
After creating the file I saved it and restarted Nginx and... |
2018/03/05 | 630 | 1,786 | <issue_start>username_0: ```
{
"took": 0,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 25,
"max_score": 1,
"hits": [
{
"_index": "surtest1",
"_type": "catalog",
"_id": "prod_9876561740",
"_score": 1,
"_source": {... |
2018/03/05 | 2,220 | 8,393 | <issue_start>username_0: When executing async `CompletableFuture`, the parent threadcontext and moreover the `org.slf4j.MDC` context is lost.
This is bad as I'm using some kind of "fish tagging" to track logs from one request among multiple logfiles.
`MDC.put("fishid", randomId())`
Question: how can I retain that i... |
2018/03/05 | 2,182 | 8,216 | <issue_start>username_0: I have `projects` folder that is in my `/home/my/` folder on host and mounted at `/home/user/projects` at docker container. In this folder there is git repo `/home/user/projects/repo` with additional worktree: `/home/user/projects/repo-b` (added by `git worktree add`)
When I am tring to do any... |
2018/03/05 | 1,082 | 3,100 | <issue_start>username_0: I have three columns X, Y & Z. I want to do a select statement that returns only one column.
For example for the following rows:
```
X Y Z
1 0 0
0 1 0
0 0 1
```
I want to return one column A:
```
A
X
Y
Z
```
So, wherever there is one, the column should return a string corresponding to t... |
2018/03/05 | 618 | 2,303 | <issue_start>username_0: We are migrating our project in VSTS and we are having a hierarchy in our team. Is it possible that developers can check-in the code only after their team lead reviews the code.
Before a developer Check-in, a notification/email is triggered to team lead with the detail of changeset, and after t... |
2018/03/05 | 209 | 836 | <issue_start>username_0: I have a very hard problem with a project that took me a lot of time to create.
I am desperate at the moment.
I know I was a fool, but now it's just time to find a solution.
In the Workbook.Open() I added a line that calls a function. But unfortunately this function has an infinite loop.
Now i... |
2018/03/05 | 821 | 2,641 | <issue_start>username_0: Was wandering how to add a dynamically changing `href` to an appended element when using an API. It's on the line
```
$("#list").append($("[-](data[3][0])").text(data[1][0]));
```
`data[3][0]` gives a site name such as "<https://en.wikipedia.org/wiki/China>" from a wiki API and doesn't work... |
2018/03/05 | 664 | 1,955 | <issue_start>username_0: I want to create a multi series line plot showing how the occurrences of a data-frame element change over time:
I have two lists in which I have joined in a dataframe:
```
df = pd.DataFrame(
{'Date': datelist,
'Category': catlist
})
```
I have then grouped the dataframe to show the counts ... |
2018/03/05 | 372 | 1,354 | <issue_start>username_0: I had been trying to remove a module from android studio but dont know how to remove this module even after I have googled, the steps I found was unable to assist me in removing the module. Here is the module I added
[](https://i... |
2018/03/05 | 298 | 1,075 | <issue_start>username_0: I have the following object
```
let o = {
fn:()=>1,
a:2
}
```
if i say `o()` i want the call to be proxied to `fn` and if i say `o.a` the value of a should be returned, is it possible exactly as it is presented?
its more like having an unnamed default function for an object<issue_co... |
2018/03/05 | 2,097 | 5,358 | <issue_start>username_0: I have the following csv file.
```
Index,Arrival_Time,Creation_Time,x,y,z,User,Model,Device,gt
0,1424696633908,1424696631913248572,-5.958191,0.6880646,8.135345,a,nexus4,nexus4_1,stand
1,1424696633909,1424696631918283972,-5.95224,0.6702118,8.136536,a,nexus4,nexus4_1,stand
2,1424696633918,142469... |
2018/03/05 | 1,748 | 4,904 | <issue_start>username_0: My firebase database contains a list of users and each user has list containing his position and timestamp.
`runner
|__1f9097c12fcfeac3259bd2be4a976933
|__27305d166e57b5fdf9b96142c7d28ab1
|__-L6R_u41IeEDy7rQ9udG
| |__timestamp
| |__position
|__887527fea0ebca4c416e154e7bb8c95d
|__-L6_KYQ... |
2018/03/05 | 3,946 | 12,992 | <issue_start>username_0: How can I solve this error:
```
java.lang.reflect.InvocationTargetException: null
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_161]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_161]
at sun.reflect.Delegatin... |
2018/03/05 | 542 | 2,175 | <issue_start>username_0: I've just started learning r and confused by the following question given in the course:
**Create a directory in the current working directory called “testdir2” and a subdirectory for it called “testdir3”, all in one command by using dir.create() and file.path().**
I couldn't get it to accept... |
2018/03/05 | 1,412 | 5,455 | <issue_start>username_0: I rely on template inheritance system to insert `extra_css` and/or `extra_js` into my pages:
***base.html***:
```
{% block extra\_css %}
{# Override this in templates to add extra stylesheets #}
{% endblock %}
{% block content %}{% endblock content %}
{% block extra\_js %}
{# Overrid... |
2018/03/05 | 658 | 2,539 | <issue_start>username_0: I'm using sqlite3.exe to execute queries against my DB, using the following code.
```
public static string QueryDB(string query)
{
string output = System.String.Empty;
string error = System.String.Empty;
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.Proces... |
2018/03/05 | 683 | 2,045 | <issue_start>username_0: How to set default date to Persian date in PHP?
Say, if I `echo` this function `date('Y-m-d')` then it will show **2018-03-05** but I want **1396-12-14** the Persian date<issue_comment>username_1: Please check: <http://php.net/manual/en/intldateformatter.create.php>
```
php
// date_default_t... |
2018/03/05 | 816 | 2,622 | <issue_start>username_0: I created a categories json file with the following format:
```
[
{
"name": "Iored tests",
"matchedStatuses": ["skipped"]
},
{
"name": "Inructure problems",
"matchedStatuses": ["broken", "failed"]
"messageRegex": ".*bye-bye.*",
},
{
"name": "Outed tests",
... |
2018/03/05 | 347 | 1,277 | <issue_start>username_0: How to get a list of all the appender names which have been set in a List in Java while using logback.<issue_comment>username_1: The following code will gather all appenders in the current `LoggerContext`:
```
private Map> getAppendersMap() {
LoggerContext loggerContext = (LoggerContext) Logg... |
2018/03/05 | 5,518 | 15,747 | <issue_start>username_0: I have a faceted plot with very diverse data. So some facets have only 1 `x` value, but some others have 13 `x` values. I know there is the parameter `space='free'` which adjusts the width of each facet by the data it represents.
My question, is there a possibility to adjust this space manuall... |
2018/03/05 | 5,315 | 15,086 | <issue_start>username_0: I want to create new image from jdk, build it, it works; when I run my new imag, it return container id, but can't get the process-info when `docker ps`,this is my dockerfile:
```
# specified jdk version
FROM openjdk:7-jre
# env
ENV APP_HOME /usr/src/KOAL-OCSP
ENV PATH $APP_HOME:$PATH
# copy m... |
2018/03/05 | 868 | 2,633 | <issue_start>username_0: I have been searching the internet for a couple of days and have been trying out lots of things but I did not manage to create a JSONArray without a name yet.
Normally a JSONArray looks like this:
```
"MyArray" [
//content
]
```
But I need this:
```
[
//content
]
```
My JSON-File nee... |
2018/03/05 | 526 | 2,014 | <issue_start>username_0: I am trying to hide and show paragraph with respect to radio button clicked. And also i want the first radio button to be active when the user lands on the page.
Here is my HTML:
```
Business
Technical
login
```
Here is my JS code:
```
$(document).ready(function() {
$(".showBusin... |
2018/03/05 | 732 | 3,148 | <issue_start>username_0: I found two way of adding dependencies for spring boot rest service application.
Method 1 :
```
org.springframework.boot
spring-boot-starter
org.springframework
spring-web
```
Method 2:
```
org.springframework.boot
spring-boot-starter-web
```
Both method given above does the s... |
2018/03/05 | 1,222 | 4,765 | <issue_start>username_0: Consider this example:
```
public interface TestInterface {
ParamInterface get();
void set(ParamInterface param);
public interface ParamInterface {
}
}
```
I want implement both interfaces, like this:
```
public class Test implements TestInterface {
private Param param;
@Over... |
2018/03/05 | 307 | 1,126 | <issue_start>username_0: I want to return a 'hi' div, for each item and key pair inside a given object. So when I have 2 pairs in the object, I want to return 2 divs. However, I only ever get 1 div returned. Why is this happening? Am I missing something really obvious, that I'm just not getting right now? How can I ret... |
2018/03/05 | 517 | 1,602 | <issue_start>username_0: I have imported the nba dataset into a variable named nba.
these are my classes:
```
class Player():
def __init__(self, data_row):
self.player_name = data_row[0]
class team():
def __init__(self,team_name):
self.team_name = team_name
self.roaster = []
... |
2018/03/05 | 626 | 2,040 | <issue_start>username_0: I have a weird issue where, when I hover on the pseudo element (`::before`) here, the highlight seems to be off.
[](https://i.stack.imgur.com/hSNwr.jpg)
The CSS given is:
```
.testimonial__quote::before {
content: open-quote;
fon... |
2018/03/05 | 1,009 | 3,079 | <issue_start>username_0: I wish to insert a defined variable into a string in R, where the variable will be inserted in multiple places.
I have seen the `sprintf` may be of use.
Example of desired input:
```
a <- "tree"
b <- sprintf("The %s is large but %s is small. %s", a)
```
Ideal output would return
```
"The... |
2018/03/05 | 473 | 1,553 | <issue_start>username_0: I have next string comparison in `bash`:
```
if [[ $1 == "/"* ]]; then echo YES; else echo "$1"; fi
```
How to do same in `sh`?<issue_comment>username_1: You could do it with a `case` statement.
```
case $1 in
/*) echo YES;;
*) echo $1
esac
```
The direct translation would be `if... |
2018/03/05 | 1,419 | 5,508 | <issue_start>username_0: I have a textfield and need to have multi-line as below so that the text wraps, however it takes up the space of all the lines that is defined in maxLines. I want to be able to have it look like 1 line and expand as the text wraps. Any ideas of how to do this is flutter?
```
new TextField(
... |
2018/03/05 | 1,789 | 7,150 | <issue_start>username_0: I've looked though a lot of the answers for this question but they seem to be outdated now and none of the solutions are working for me and just give lots of errors.
I'm just gettign into xcode and apps and am loading a local html file "index.html" into a WKWebView. This is fine, loads fine, d... |
2018/03/05 | 490 | 1,909 | <issue_start>username_0: Team one and Team two have both id 0? What am I doing wrong? I'm just trying to auto increment the id every time a new object is made.
This is code from **Team.java**
```
public class Team{
private int teamId;
public Team(){
this.teamId= teamId++;
}
public void printT... |
2018/03/05 | 323 | 1,073 | <issue_start>username_0: Sending mail to multiple users.
===============================
```php
$users=a:3:{i:0;s:14:"<EMAIL>";i:1;s:14:"<EMAIL>";i:2;N;}
$usermail=unserialize($users);
$usermail=json_encode($usermail);
Mail::to($usermail)
->send(new MeetingInvite($meeting,$usermail... |
2018/03/05 | 1,551 | 5,417 | <issue_start>username_0: There's a plus button to increase the number of textfields in the page. After increasing the textfields, I want to show all the textfield input value at once under, after clicking on the submit button.
But here it's giving a problem on the onChange setState issue. How to handle it ? Any help ?
... |
2018/03/05 | 470 | 1,778 | <issue_start>username_0: If you delete the initial text that is in the input element in the example below, then it will not show an error until you blur the element.
I want to have the input element underline turn red and the error show immediately when you delete the last character in the input.
Any ideas somebody?
... |
2018/03/05 | 525 | 1,906 | <issue_start>username_0: I have and object in my main.ts which may be initialized. In the case it is I have to disable a textarea in the html. I have tried this:
```
ng-attr-disabled="!myObj";
ng-attr-disabled="{myObj!= null}";
```
same with directly `ng-disabled`.
I have also tried this: `[disabled]="{'disabled':m... |
2018/03/05 | 2,074 | 6,798 | <issue_start>username_0: I have refered the link: [Input mask fields in Angular2 forms](https://stackoverflow.com/questions/37800841/input-mask-fields-in-angular2-forms) and I was able to mask input field like: (123) 456-7890.
Please find updated code below:
Directive TS File:
```
@Directive({
selector: '[appPhone... |
2018/03/05 | 720 | 1,631 | <issue_start>username_0: I'm trying to use dplyr's `full_join` to combine two data.frames, for example:
```
col1 = 'b'
col2 = 'd'
df1 = data.frame(a = 1:3, b = 1:3)
df2 = data.frame(a = 1:3, d = 1:3)
full_join(df1, df2, c('a' = 'a', col1 = col2))
```
but it returns
>
> Error: `by` can't contain join column `co... |
2018/03/05 | 722 | 2,651 | <issue_start>username_0: According to the [Webpack 4 documentation](https://webpack.js.org/configuration/output/#output-librarytarget), if I specify **libraryTarget: 'umd'** it should result in the following output:
```
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typ... |
2018/03/05 | 808 | 2,157 | <issue_start>username_0: I have multiple csv files that I would like to combine into one df.
They are all in this general format, with two index columns:
```
1 2
CU0112-005287-7 Output Energy, (Wh/h) 0.064 0.066
CU0112-005287-7 Lights (Wh) 0 0
... |
2018/03/05 | 531 | 2,094 | <issue_start>username_0: The [`inputmode`](https://github.com/Sathyaish/Practice/blob/master/HTML5/examples/attribute-inputMode.html) attribute has no effect in any of the popular browsers as described in [this document on the Mozilla Developer Network (MDN)](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/in... |
2018/03/05 | 728 | 2,700 | <issue_start>username_0: Okay, I am new to SQL and Big Query and got an ambiguous column name error. I have checked the other answers on stack overflow, but could not find/understand an answer to my problem. So I get:
Error: 2.40 - 2.68: Ambiguous column name subreddit.
For this code (which I adapted from another pers... |
2018/03/05 | 542 | 2,196 | <issue_start>username_0: I have two entities, `Author` and `Book`, connected with a one-to-many relationship. What's the difference between specifying field type as `Collection` and `List`? Aforementioned scenario is presented below:
```
@Entity
public class Author {
@Id
@GeneratedValue
private Long id;
... |
2018/03/05 | 691 | 2,668 | <issue_start>username_0: I've got this issue: I have to add some days to a date taken from a variable that contains a date value from an array.
I've followed many guides found here but it gives me a strange behaviour. When I export the .csv file that results from all the code processing, we can realize that the date is... |
2018/03/05 | 376 | 1,373 | <issue_start>username_0: I want to execute, in a stored procedure, a certain set of statements if, in table `my_table` there is exactly one row with value `value` in column `column_name`. I have tried the following, but I get a syntax error:
```
IF ((SELECT COUNT(*) FROM my_table WHERE column_name = value) = 1) THEN
... |
2018/03/05 | 1,406 | 5,051 | <issue_start>username_0: In a game that I'm making, the teams are named by colors (e.g. RED, BLUE, CYAN). What I'm trying to do right now is get the name of the team that the player is on and draw the player's name and team (to test if everything is working and find bugs). Right now, there is a bug: the player's name i... |
2018/03/05 | 208 | 747 | <issue_start>username_0: **Is there any possibility to search tag by name?**
In the project there is many tags and some of them have the same (specific) word in their names. Using `git tag` is presenting all available tags, but I want to get tag list of these with a specific word in name.<issue_comment>username_1: `git... |
2018/03/05 | 3,082 | 7,815 | <issue_start>username_0: I have the following situation as shown in the Figure below:
[](https://i.stack.imgur.com/BE8gm.png)
I want to find out the grid points that surround the red points. The red points are trajectories of moving agents. So in man... |
2018/03/05 | 1,035 | 3,705 | <issue_start>username_0: I am trying to upload files (they can be any type), and I have a problem uploading file with certain way.
I am able to upload a file correctly using `$request->file('file_name')` and `Storage::disk($disk)->put($path, $file);`. However, `$file` parameter can only be through `$request->file('fil... |
2018/03/05 | 310 | 1,411 | <issue_start>username_0: I am working on Android application. I am using Dagger2 for dependency injection. I am able to use this library but I don't know how to inject nested classes.
```
public class Parent {
@Inject
public Parent()
{}
public String getParent()... |
2018/03/05 | 531 | 1,580 | <issue_start>username_0: please i have an array [ 45, 66, 90, 'bye', 100.5 ]
and I want to write a javascript function to ignore the 'bye' and also the ".5" and get a return array of [ 45, 66, 90, 100 ] as my output but I don't know how to go about it I'm new to javascript. this is what I tried
```js
var filterFloat... |
2018/03/05 | 339 | 1,285 | <issue_start>username_0: I used same component for different routes. When route changes, I want the component to be rendered.
```
```
When I change the route path from `/hotels` to `/apartments`, the component `HotelsPage` doesn't refresh.
What is the cool approach for this?<issue_comment>username_1: One of the way... |
2018/03/05 | 418 | 1,739 | <issue_start>username_0: I have three roles: admin, instructor (combination of teacher and course creator) and student.
I created a child theme based from clean theme. In my child theme, I customize the layout of the login page. In my login page, there are three buttons: Login as Admin, Login as Instructor and Login a... |
2018/03/05 | 505 | 1,991 | <issue_start>username_0: How to solve this in Depth-First-Search:
* 6x6 squares, cut along the edges of the lattice into two parts.
* The shape of the two parts is required to be exactly the same.
**Try to calculat**e: There are a total of how many different segmentation methods.
**Note**: Rotational symmetry belong... |
2018/03/05 | 548 | 1,942 | <issue_start>username_0: I am trying to add a delay to the jQuery function so it loads after the page and javascript has fully loaded but it still loads just as if there was no delay.
```
$('.validate-state .select2-selection--single')
.delay( 10000 )
.addClass('custom-alert');
```
I am calling the above inside ... |
2018/03/05 | 666 | 2,356 | <issue_start>username_0: I want to create a factory for a class, which will call a private setter. Is this possible?
Doing this:
```
class Foo
def self.from_bar(bar)
f = new bar.foo_id # bar has the id of the foo object I want to make
f.bar = bar # but I also wanna store the bar object in foo
f
... |
2018/03/05 | 347 | 1,326 | <issue_start>username_0: I'm trying to find the most recent certificate in the Web Hosting certificate store for a given domain (e.g. www.example.com)
It's easy enough to find any number of matching certificates, but how can I find only the most recent one, ordered by expiration date (furthest into the future)?
My ex... |
2018/03/05 | 470 | 1,645 | <issue_start>username_0: Currently I am starting my flask server by executing the `FLASK_APP=name_of_my_app.py && flask run` (I am on Ubuntu). I need to achieve the outcome of initiating the server as above through different means - namely, by running something of the kind: `python start_same_server.py`. After some ref... |
2018/03/05 | 688 | 2,693 | <issue_start>username_0: I'm working on a CRUD in Laravel with Ajax requests and it works just fine till I stumbled upon an error on the update of a model.
When clicking in the edit button, the modal window loads all the data of an employee and when I edit anything Ajax will throw an error saying that two of the field... |
2018/03/05 | 295 | 1,087 | <issue_start>username_0: So, i have a k8s cluster running on AWS, provisioned using kops. I have created a secret locally, using kubectl:
```
kubectl create secret generic aws-es --from-file=./aws_key.txt --from-file=./aws_secret_key.txt
```
My service.yml has this env:
```
- name: AWS_ACCESS_KEY_ID
... |
2018/03/05 | 607 | 2,176 | <issue_start>username_0: I would like to know wether it is possible to get the dimensions of a texture ?
I used this line to set my texture :
```
const texture = THREE.ImageUtils.loadTexture(src)
```
Maybe it is necessary to load the image to get its dimensions (but is it possible only with javascript, not html and... |
2018/03/05 | 8,805 | 25,066 | <issue_start>username_0: Please help me to fix some exceptions while connecting to Kafka broker in a kerberized cluster.
I am running Kafka in version 3.0.0-1 on a Cloudera cluster. Kafka was installed as service from Cloudera Manager (CM). Brokers started fine. I'm able to create and list topics.
But my console pr... |