date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/19 | 764 | 2,519 | <issue_start>username_0: I have to make clusters in categorical data. I am using following k-modes code to make cluster, and check optimum number of clusters using elbow method:
```
set.seed(100000)
cluster.results <-kmodes(data_cluster, 5 ,iter.max = 100, weighted = FALSE )
print(cluster.results)
k.max <- 20
wss... |
2018/03/19 | 623 | 2,251 | <issue_start>username_0: I have a global variable(object) named X. Also i have two different thread named ThreadA and ThreadB which uses the X at the same time.
ThreadA add +1 for 100 times and ThreadB multiplies with 2 for two times.
When i started them at the same time, concurrency occurs and i saw something
```
... |
2018/03/19 | 727 | 2,511 | <issue_start>username_0: When I add one product in my form, show this error.
My code ts:
```
this.products = this.ps.getProduct();
this.addform = this.fb.group({
'invoice_number': new FormControl('', [Validators.required, Validators.nullValidator]),
'Subtotal': new FormControl('', Validators.required),
'product... |
2018/03/19 | 592 | 2,007 | <issue_start>username_0: So I'm integrating an API from a 3rd party company and I'm facing this strange situation.
I fetch the endpoint with the following code
```
$client = $this->client = new Client([
'base_uri' => 'https://xxx.xxxxxxxxxx.com/api/',
'timeout' => 15
]);
$this->requestConfig = [
'auth' =... |
2018/03/19 | 1,375 | 4,838 | <issue_start>username_0: I'm new to microservices and Spring Boot. I have a few Spring Cloud microservices with a Zuul gateway running on port 8080.
```
browser
|
|
gateway (:8080)
/ \
/ \
/ \
resource UI (:8090)
```
There is a UI microservice on port 8090, which has a ... |
2018/03/19 | 2,607 | 10,261 | <issue_start>username_0: Why does `Clock.systemDefaultZone().instant()` return a different time than `LocalTime.now()`?
I understand that `LocalTime` has no timezone, but it shows just what my system clock (in tray on my computer) shows, right? Both "use" default time zone (`Europe/Moscow`), so time shall be the same?... |
2018/03/19 | 1,670 | 5,195 | <issue_start>username_0: I need to write a program that, when given a list of integers, it finds all 2-pairs of integers that have the same product. i.e. a 2-pair is 2 distinct pairs of integers lets say [(a,b),(c,d)] where a\*b = c\*d but a ≠ b ≠ c ≠ d.
The range of integers should be from 1 to 1024. What I would lik... |
2018/03/19 | 850 | 3,100 | <issue_start>username_0: I am trying to make sure a function parameter is an async function.
So I am playing around with the following code:
```
async def test(*args, **kwargs):
pass
def consumer(function_: Optional[Coroutine[Any, Any, Any]]=None):
func = function_
consumer(test)
```
But it doesn't work.
... |
2018/03/19 | 1,193 | 4,267 | <issue_start>username_0: I am trying to create an `input` field that expands at least in width dynamically with the length of the string the user entered, probably even multiline.
Is that possible with an [`input`](https://material.angular.io/components/input/overview) element in Angular Material 2?
With the `textarea... |
2018/03/19 | 725 | 2,596 | <issue_start>username_0: I'm getting started with Angular animations and i'm stuck on that error:
>
> ERROR DOMException: Failed to execute 'animate' on 'Element': Partial
> keyframes are not supported.
>
>
>
I tried to google it without any success.
Here is my code:
app.component.ts:
```
import { Component ... |
2018/03/19 | 1,238 | 3,556 | <issue_start>username_0: I've scoured the internet for an answer to my problem. I am writing some code to input a formula into certain cells on a worksheet and despite very similar code working perfectly earlier in the macro, this section of code will not work with giving me the runtime error 1004: application-defined ... |
2018/03/19 | 584 | 1,914 | <issue_start>username_0: I want to cast BaseClass to DerivedClass std vector using a template:
```
template
vector CastTo(vector &input)
{
vector output;
for (auto obj : input)
{
output.push\_back(dynamic\_cast(obj));
}
return output;
}
```
Is this possible?
Right now the template is not being recognized and ... |
2018/03/19 | 866 | 2,900 | <issue_start>username_0: I'd like to declare an API version my test application uses to build it and also display it in the application.
So I declared the version like that in the project's build.gradle:
```
buildscript {
ext {
...
api_version = '0.2.9'
}
...
}
```
Then in my app's build... |
2018/03/19 | 1,324 | 2,663 | <issue_start>username_0: How to remove "padding" around background image ?
Here is a demo :
<https://jsbin.com/dobucizaqi/edit?html,css,output>
```css
.foo {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23f39c12' d=... |
2018/03/19 | 1,093 | 2,330 | <issue_start>username_0: I know the default block size is 64M, split is 64M,
then for files less than 64M , when the number of nodes increase from 1 to 6 , there will be only one node to do with the split, so the speed will not improve? Is that right?
If it is a 128M file, there will be 2 nodes to do with the 2 splits,... |
2018/03/19 | 752 | 2,593 | <issue_start>username_0: I have two sheets , Sheet1 and sheet2 .
Sheet 1 is my Source sheet and I am mentioning the item number in column A.
Sheet 2 is my destination sheet the contains the list of item number from the data base.
I am comparing the column A of source sheet with column E of my destination sheet, i... |
2018/03/19 | 2,464 | 5,907 | <issue_start>username_0: I am trying to get a `dictionary` to `pandas` `dataframe`. I am having trouble with a few things. I tried the following
```
data = {'applicableMargin': '12.50', 'marketType': 'N', 'totalBuyQuantity': '1,14,514', 'buyPrice1': '1,546.30', 'dayLow': '1,541.20', 'symbol': 'ACC', 'cm_adj_low_dt': '... |
2018/03/19 | 506 | 1,733 | <issue_start>username_0: I have to check for the presence of a substring in a string in python. The problem comes from the fact that the substring contains a special character.
I am reading a feature from a csv file. The feature is a distance with numbers and its units:
```
12.4 miles
34 Kilómetros
800 metros
```
I... |
2018/03/19 | 349 | 1,327 | <issue_start>username_0: How do I create a TFS query returning all Product Backlog Items that have State=Accepted OR have child items with State=Accepted?
In below example, "Commandline Util" should be included in the query result event when the State is "New" because it have a child with state "Accepted".
[Click for ... |
2018/03/19 | 442 | 1,617 | <issue_start>username_0: I understood the concept of using throttle in redux-saga.
But I have a quick question, the timer which is gaven, when does he start ?
Example =>
`throttle(500, 'INPUT_CHANGED', handleInput)`
```
As soon as, the method gaven in second parameter start,
and not taking care about the completion... |
2018/03/19 | 1,012 | 4,278 | <issue_start>username_0: I'm trying to set the background color of one child in my `listView` but for whatever reason the entire list gets the background color.
This is the selector
```
xml version="1.0" encoding="utf-8" ?
```
I've put it in the `listView` here
```
xml version="1.0" encoding="utf-8"?
```
I'v... |
2018/03/19 | 2,355 | 7,343 | <issue_start>username_0: I am working on dataset with more than 230 variables among which I have about 60 categorical var with more than 6 six levels (no way to make preference ordering, example: Color)
My question is about any function that can help me to recode these variables without doing it by hand which require... |
2018/03/19 | 2,432 | 7,470 | <issue_start>username_0: I am parsing an excel file [session\_data,csv], the excel file looks like as follows:
```
Case, StartTime, EndTime
Case_1=Covering 3 time-slots,T00:00:00,T05:00:00
Case_2=Covering multiple time-slots,T00:15:00
Case_3=Covering one time-slot,T00:18:00,T00:47:00
```
I am parsing the file as fol... |
2018/03/19 | 1,085 | 4,058 | <issue_start>username_0: I've encontered a problem while developping an application using ASP.NET Core, Angular 5 and SignalR.
As a test, I made a simple chat app based on this sample : <https://codingblast.com/asp-net-core-signalr-chat-angular/>
But, when I modify the chat.component.ts file from
```
this.hubConn... |
2018/03/19 | 391 | 1,450 | <issue_start>username_0: How do I keep a session in IVR? I am halfway done with an IVR application I am currently working on. I can collect customer ID & PIN to read out customer balance. After a customer confirms account balance, I want them to be able to continue with other options of PIN change, transfer credits to ... |
2018/03/19 | 2,119 | 7,072 | <issue_start>username_0: ```
function reverseInPlace(str) {
var words = [];
words = str.split("\s+");
var result = "";
for (var i = 0; i < words.length; i++) {
return result += words[i].split('').reverse().join('');
}
}
console.log(reverseInPlace("abd fhe kdj"))
```
What I expect is `dba e... |
2018/03/19 | 686 | 2,685 | <issue_start>username_0: I'm build a rather extensive form and I'm trying to make sure that users won't lose their data on simple browser reload. Fortunately, browsers nowadays refill data on a reload - and, indeed, inputs with `v-model` have it during `beforeMount`. The problem is, they lose it on `mounted`, because t... |
2018/03/19 | 625 | 2,419 | <issue_start>username_0: Is there any option to generate large amount of pages for Liferay 7.0?
In documentation (<https://dev.liferay.com/discover/portal/-/knowledge_base/7-0/creating-sites>) i found only creating pages through GUI.
I would like to use script to generate these pages, is there some sort of CLI or so... |
2018/03/19 | 1,016 | 3,828 | <issue_start>username_0: I have a simple POJO:
```
public class Entry {
private Integer day;
private String site;
private int[] cpms;
... // getters/setters/constructor
}
```
My log file which i would like to read seems like:
```
{ "day":"1", "site":"google.com", "cpms":"[1,2,3,4,5,6,7]"}
```
Jack... |
2018/03/19 | 1,155 | 3,890 | <issue_start>username_0: I have sample data file with following format data
```
Data_Set = "001" , Status = "TRUE" ;
Data_Set = "002" , Status = "TRUE" ;
Data_Set = "003" , Status = "TRUE" ;
Data_Set = "004" , Status = "TRUE" ;
Data_Set = "005" , Status = "TRUE" ;
Data_Set = "006" , Status = "TRUE" ;
```
and I want ... |
2018/03/19 | 526 | 1,883 | <issue_start>username_0: The current Beanstalk solution stack for Ruby + Puma uses the configuration file at `/opt/elasticbeanstalk/support/conf/pumaconf.rb` and ignores the `config/puma.rb` inside the Rails application directory.
I could override the file above with a custom one via `.ebextensions` but am hesitant be... |
2018/03/19 | 360 | 1,248 | <issue_start>username_0: ```
class User(val name: String)
```
I know that in constructor will be added this check
```
Intrinsics.checkParameterIsNotNull(name)
```
To make sure that `name` do not store null.
Is there a way to instrument to not generate such checks? Maybe an annotation?
We need this in Spring, whe... |
2018/03/19 | 311 | 977 | <issue_start>username_0: I need to pass output from the query as a string along with URL how can i achieve this
my part of code is
```
cur.execute("SELECT logs.id from logs");
temp_list.append(str('https://qwetest.seem.nsww-rdnewww.net/logs/' + logs_id[logs_id_counter]))
```
here in temp\_list.append i need to pa... |
2018/03/19 | 902 | 2,825 | <issue_start>username_0: I am quite new to python. Can someone explain this line
```
exec("print(' '.join(map(lambda x: s[x::{0}], range({0}))))".format(ceil(sqrt(len(s)))))
```
What does `s[x::{0}]` and `range({0}))` mean ?
in below piece of code in detail?
This code is a solution for below hackerrank question :... |
2018/03/19 | 1,122 | 4,346 | <issue_start>username_0: According to [Dart's website](https://www.dartlang.org/guides/language/sound-dart)
>
> Dart is a sound language.
>
>
>
What's the meaning of "sound" in the above sentence?
I couldn't find any similar concept in other major programming languages. Can anyone give some other examples of **s... |
2018/03/19 | 2,363 | 3,931 | <issue_start>username_0: I have this array:
```
[[0, 1, 0, 1, 0, 1],
[0, 0, 0, 1, 0, 0],
[0, 0, 0, 0, 1, 0],
[1, 0, 1, 0, 1, 0],
[0, 1, 1, 1, 0, 1],
[0, 1, 0, 0, 1, 1],
[1, 1, 1, 0, 0, 0],
[1, 1, 1, 1, 0, 1],
[0, 1, 1, 0, 1, 0],
[1, 1, 0, 0, 0, 1],
[1, 0, 0, 0, 1, 0]]
```
I wish to create a new array, that... |
2018/03/19 | 991 | 2,308 | <issue_start>username_0: I am having a file as :
**file1.txt**
```
1 10 ABC KK-LK
1 33 23 KK-LK
2 34 32 CK-LK,LK
11 332 2 JK@
21 525 1 JK@
31 902 9 JK@
11 23 2 JK2
```
I am trying to see the number of lines being used by identifiers in 4th column:
```
KK-LK 1-2
CK-LK 3-3
JK@ 4-6
JK2 7-7
```
... |
2018/03/19 | 1,333 | 4,337 | <issue_start>username_0: I am trying to create a script that gets the count of Business days, Calendar days and Weekdays within a set period (23rd of Previous month and 23rd of Current month).
I have the following script where I tried to use Worksheet Functions but it doesn't work, I get
>
> "Object variable or Wi... |
2018/03/19 | 696 | 2,047 | <issue_start>username_0: I have an array of Objects
```
[{"a":{"name":"abc","age":2}},
{"b":{"name":"xyz","age":3}},
{"c":{"name":"pqr","age":4}}]
```
I need to convert this to
```
[{"name":"abc","age":2},
{"name":"xyz","age":3},
{"name":"pqr","age":4}]
```<issue_comment>username_1: You can use one of [Array.pro... |
2018/03/19 | 2,497 | 7,970 | <issue_start>username_0: ```
private int PingPong(int baseNumber, int limit)
{
if (limit < 2) return 0;
return limit - Mathf.Abs(limit - Modulus(baseNumber, limit + (limit - 2)) - 1) - 1;
}
private int Modulus(int baseNumber, int modulus)
{
return (modulus == 0) ? baseNumber : baseNumber - modulus * (int)M... |
2018/03/19 | 625 | 2,070 | <issue_start>username_0: It's my first time creating an API, I'm using laravel 5.5.
I created a simple `GET` endpoint with `auth:api` as the only middleware.
When I access the endpoint using the API token in the request body (i.e. `http://localhost/my-endpoint?api_token=123`), it works, but I don't want it like that.... |
2018/03/19 | 1,772 | 4,557 | <issue_start>username_0: I am struggling with a Kata in Code Wars:
<https://www.codewars.com/kata/5672682212c8ecf83e000050/train/javascript>
The idea is to create a sequence of numbers, where each number is created reclusively following this two formulas:
```
y=2x + 1
z=3x + 1
```
With x being the current nu... |
2018/03/19 | 1,594 | 5,840 | <issue_start>username_0: So, i'd like my user session to persist upon login/signup, which it does not.
The official documentation says to add this to start with :
```
app.use(express.session({ secret: 'keyboard cat' }));
app.use(passport.initialize());
app.use(passport.session());
```
which I did. Then it go... |
2018/03/19 | 3,066 | 10,517 | <issue_start>username_0: I've recently started to use Google Colab, and wanted to train my first Convolutional NN. I imported the images from my Google Drive thanks to the answer I got [here](https://stackoverflow.com/questions/49351071/load-image-dataset-folder-or-zip-located-in-google-drive-to-google-colab).
Then I ... |
2018/03/19 | 997 | 3,140 | <issue_start>username_0: Given a List of elements:
```
xs = [a, b, c, d, ... z]
```
where `a, b, c` etc are placeholders for arbitrary values.
I want to implement a function `adjacents :: [a] -> [(a, a)]` that produces
```
adjacentValues = [(a, b), (b, c), (c, d), ... (y, z)]
```
---
In Haskell, a recursive defi... |
2018/03/19 | 735 | 2,290 | <issue_start>username_0: In my ionic 3 app, when i click on the input field, then keyboard is open and my footer change it's position and it come above the keyboard.
i want to fix the layout of ionic 3 app, when keyboard is open, it should not change.<issue_comment>username_1: In Haskell, without explicit recursion, yo... |
2018/03/19 | 427 | 1,581 | <issue_start>username_0: My android studio is showing empty logcat, even it is not empty in android device monitor. I have attached some screenshots of my project:
[](https://i.stack.imgur.com/0V7yd.png)
[` method and CSV files.
I'm using the `writerows()` method to save an enumerate object to a .csv file.
All works fine but the list / enumerate object becomes empty after the writing is done.
Why is this happening ?
How can I keep the values in my ... |
2018/03/19 | 807 | 2,848 | <issue_start>username_0: I am new to PHP. I have a function which returns an HTML code to my other function. That HTML code has some PHP code in it as well. The problem is I don't know how can I add a for loop in that HTML code and then return the whole HTML.
for example here is my code :
```
php
class Dummy
{
p... |
2018/03/19 | 1,442 | 5,044 | <issue_start>username_0: They can all change file size according to my test.
why can they all change file to larger and to shorter?
what's the difference between fallocate and ftruncate?<issue_comment>username_1: `ftruncate` is a simple, single-purpose function. [Per the POSIX documentation](http://pubs.opengroup.org/... |
2018/03/19 | 464 | 1,386 | <issue_start>username_0: Whats wrong in this query:
```
select *, STR_TO_DATE(start, '%d/%m/%Y') as date_format from dates where date_format >= 2018-03-19
```
error:
```
Column not found: 1054 Unknown column 'date_format' in 'where clause'
```<issue_comment>username_1: You can not use date\_format as it is just g... |
2018/03/19 | 662 | 2,754 | <issue_start>username_0: I wonder what mean the following lines :
```
buildTypes {
lintOptions {
abortOnError false
}
}
```
May you help ?
Is it recommended or not recommended to use these lines?
Thanks.<issue_comment>username_1: [Lint](https://developer.android.com/studio/write/li... |
2018/03/19 | 471 | 1,187 | <issue_start>username_0: I know what I can use Selenoid-UI to connect to running webdriver container using my browser. But is there any ability to connect to container using one of VNC clients?<issue_comment>username_1: Two possible ways:
1) Launch browser VNC container as follows and connect with any VNC client using... |
2018/03/19 | 379 | 1,491 | <issue_start>username_0: This is referencing this question: [How to login to facebook in Xamarin.Forms](https://stackoverflow.com/questions/24105390/how-to-login-to-facebook-in-xamarin-forms).
I use a similar solution which uses Xamarin.Facebook.Android and Xamarin.Facebook.iOS for auth (<https://github.com/mikeapple/X... |
2018/03/19 | 287 | 1,160 | <issue_start>username_0: I want to defer parsing of scripts that are generate as a result of transpiling during build. I have added async to all the other tags on my index.html page. However, since the main js file is inject into page during build, it becomes harder.
Is there a way to tell babel/react-scripts to add t... |
2018/03/19 | 303 | 1,184 | <issue_start>username_0: I need the same output like in searchbox. please consider below url as an example:
<https://www.reifendiscount.de/de/reifen/pkw-reifen.html>
Here, single character is typing step by step automatically and after complete sentence is finished then each character is removed one by one from searc... |
2018/03/19 | 971 | 3,201 | <issue_start>username_0: I want to read data of .csv file which is located at FTP or SFTP server using Oracle SQL or PL SQL.
I tried the below code and it showing output like SSH-2.0-OpenSSH\_5.3 that means connected i hope.
```
declare
c utl_tcp.connection; -- TCP/IP connection to the Web server
ret_val pls_i... |
2018/03/19 | 700 | 2,267 | <issue_start>username_0: I have a question that is about $state service.When i click the save button,i close modal and call `$state.go("name") but name state is running(I can see debug) but its controller does not start.Do you have any idea?<issue_comment>username_1: You require some tools/ application to open the file... |
2018/03/19 | 555 | 1,879 | <issue_start>username_0: ```
tweet = textblob(tweet)
TypeError: 'module' object is not callable
```
I have this problem while trying to run a sentiment analysis script. I have installed textblob with the following commands:
```
$ pip install -U textblob
$ python -m textblob.download_corpora
```
the code is the fo... |
2018/03/19 | 600 | 2,161 | <issue_start>username_0: Before asking this, I did have a look at other similar questions, but none of them have been of help as of yet.
I have a react front-end using axios to make api calls to a node backend using express and express session. Once I enter login info on my front end, I send it to my backend where I ... |
2018/03/19 | 473 | 1,170 | <issue_start>username_0: My array:
```
[
{
"date":"2018-04-01",
"time":[{"10:00":"12"},{"12:00":"25"}]
},
{
"date":"2018-04-02",
"time":[{"10:00":"12"},{"12:00":"25"}]
},
{
"date":"2018-04-03",
"time":[{"10:00":"12"},{"12:00":"25"}]
}
]
```
I need to get every date and time. To get thi... |
2018/03/19 | 1,202 | 4,525 | <issue_start>username_0: In RESTful websites, each resource should be identified by an URI. But how should I handle what are called "weak entities" in relational databases, aka, ressources that only make sense when related to another resource? Should these have specific URIs pointing to them too?
To give an example: S... |
2018/03/19 | 1,203 | 4,285 | <issue_start>username_0: Can anyone help me make this query work for SQL Server 2014?
This is working on Postgresql and probably on SQL Server 2017. On Oracle it is `listagg` instead of `string_agg`.
Here is the SQL:
```
select
string_agg(t.id,',') AS id
from
Table t
```
I checked on the site some xml op... |
2018/03/19 | 1,392 | 5,026 | <issue_start>username_0: I'm new to Django, and i have a form that has two fields :
Client name & bill number .
i've created a validator that tests if the bill number already exists in the database table (called bills).
But now i need to transform this validator to another that tests in addition of the previous test, i... |
2018/03/19 | 2,672 | 10,110 | <issue_start>username_0: I am still an ASP.NET amateur and I've been working on an application that needs to calculate the hours an employee has worked if no special events have come up e.g the employee has been sick, I have 2 tables in my database, 1 with the employees. and a second table which holds the events. the e... |
2018/03/19 | 1,457 | 5,310 | <issue_start>username_0: I'm following [this](https://youtu.be/hz1h_ColGy0?t=13m1s) tutorial and I'm getting the error that you can see in the title, here is my code:
```
func loadData()
{
let delegate = UIApplication.shared.delegate as? AppDelegate
if let context = delegate?.persistentContainer.viewContext
... |
2018/03/19 | 1,441 | 5,214 | <issue_start>username_0: I am extracting some data out of an array of nested objects, using two `reduce`es, and `map`, which is working at the moment, but it is a bit ugly. How can this be optimized?
```js
function extractSchools(schools) {
let schoolData = [];
if (schools) {
schoolData = schools.reduce(fu... |
2018/03/19 | 709 | 2,415 | <issue_start>username_0: Is there a way to filter for events where a certain attribute is NOT the given string in Windows (Server 2016) Event Viewer's limited dialect of XPath?
I'm trying to get a view on logon events, but only actual user logons (console and RDP).
This is accepted as a filter, but gives too many res... |
2018/03/19 | 608 | 1,994 | <issue_start>username_0: Context:
I currently want to flush my L1 DATA cache (target: NXP P2020 Qoriq e500).
I have an issue while using "dcbf" instruction:
```
dcbf r3, r4 // with r3 and r4 defining the address of the DATA cache
```
Issue:
My problem is that I don't know what parameter to give to this instruc... |
2018/03/19 | 1,008 | 4,193 | <issue_start>username_0: I am currently working on a simple React app with a very common workflow where users trigger Redux actions that, in turn, request data from an API. But since I would like to make the results of these actions persistent in the URL, I have opted for React Router v4 to help me with the job.
I hav... |
2018/03/19 | 864 | 3,078 | <issue_start>username_0: I have been trying to toggle state using dynamic key value pairs but it doesn't seem to happen.
Here is the state:
```
constructor(props) {
super(props);
this.state = {
firecrackerAnimation: false,
mainImageBounceAnimation: false,
flowersFallingAnimation: false,
};
}
```
T... |
2018/03/19 | 493 | 1,685 | <issue_start>username_0: I'm using Spring Boot 1.5.6 with Jackson 2.8.8. When deserializing the answer of a REST call, Jackson fails with the following exception:
>
> JSON parse error: Can not construct instance of org.joda.time.DateTime: no String-argument constructor/factory method to deserialize from String value ... |
2018/03/19 | 908 | 3,323 | <issue_start>username_0: I'm trying to handle the multi-select with `react-native-super-grid` , here is my code :
```
(
this.pressEvent() }>
{item.image}
{item.name}
)}
/>
```
I tried using this function :
```
pressEvent(arr){
if(this.state.pressStatus == false){
this.setState({ pres... |
2018/03/19 | 673 | 2,168 | <issue_start>username_0: I am trying to find out, what the postcss-loader is good for.
On the github page
<https://github.com/postcss/postcss-loader>
it says:
**Loader for webpack to process CSS with PostCSS**
I dont't get that: So, PostCSS is a a WP-Loader to process CSS with PostCSS?
IMHO, that's a circular def... |
2018/03/19 | 426 | 1,570 | <issue_start>username_0: After referencing [GetStringFileInfo post](https://stackoverflow.com/q/1433106/361100), I try to read Assembly information and apply `AppName` and `FileVersion` to Inno Setup script as below.
But compiled installation wizard shows just `"GetStringFileInfo("{#RootDirectory}Sample.exe","Title")"... |
2018/03/19 | 897 | 3,137 | <issue_start>username_0: I want both tabs(Hello World, Tab) equal width of controller width . I put the complete code of my tabs. if anyone have suggestion for it. plz give suggestion.i am waiting. Comment & Answer Fast.
[](https://i.stack.imgur.com/G... |
2018/03/19 | 396 | 1,391 | <issue_start>username_0: I have a question regarding SQL query for DWH. I have months and year column in my dimension table and sales value in my Fact table, I want to find the sales for the third quarter for a particular year. What would be the SQL query for this?<issue_comment>username_1: This helps you.
First of al... |
2018/03/19 | 988 | 2,921 | <issue_start>username_0: I'm trying to do a responsive layout with css grid by getting two elements to overlap each other halfway. On wide screens they are in one row and overlapping horizontally, but on narrow screens they should be in one column and overlap vertically.
Here is an illustration of what I'm trying to a... |
2018/03/19 | 214 | 885 | <issue_start>username_0: I'm planning to upgrade Rails to 5.2 in one of my websites and introduce ActiveStorage, as of right now I use Paperclip with paperclip\_optimizer. One of the negative sides is that I will lose the optimizer, when replacing paperclip with ActiveStorage. How can I implement automatically image op... |
2018/03/19 | 1,059 | 4,006 | <issue_start>username_0: Error are as under:-
```
Multiple markers at this line
- Syntax error, insert ")" to complete MethodDeclaration
- Syntax error on token ".", @ expected after this token
- Syntax error, insert "Identifier (" to complete MethodHeaderName
- Syntax error on token ",", < expected
- Syntax error, i... |
2018/03/19 | 825 | 2,800 | <issue_start>username_0: So I have created a subtheme witch his parent is Drupal Bootstrap theme. I would like to add an option to share a second logo in the page (I have googled but I have found nothing).
[](https://i.stack.imgur.com/jom3C.png)
As y... |
2018/03/19 | 388 | 1,531 | <issue_start>username_0: I want to have a rest client for my application. As Singletons are used for centralized management of internal or external resources and they provide a global point of access to themselves. I thing the rest client should be implemented as a Singleton class.
Can I implement the class in a gener... |
2018/03/19 | 249 | 1,003 | <issue_start>username_0: AWS has a list of free tier (non-expiring offers) [here](https://aws.amazon.com/free/). I wonder if it is enough to deploy a small(less than 1 Gb in total) Spring Boot(+ mongo/postgres) hobby project using ONLY these features.<issue_comment>username_1: It is possible to do so, but free tier for... |
2018/03/19 | 2,273 | 6,297 | <issue_start>username_0: I have a lot of CSV files that contain 100 000+ rows and their structure looks similar to this:
```
Time,Longitude,Latitude,R,E,M
2016-01-01M12:01:01,39.92234,52.61532,"-11.5,-20.4",-4.5,No
2016-01-01M12:01:01,39.92238,52.61562,"-10.1,-12.7,-9.2,-7.7",,No
2016-01-01M12:01:02,39.92239,52.61552,... |
2018/03/19 | 903 | 2,577 | <issue_start>username_0: I want to edit crontab from PHP script.
```
$output = shell_exec('crontab -l');
echo "
```
";
print_r($output);
echo "
```
";
```
This is returned.
```
MAILTO="<EMAIL>"
*/2 * * * * /usr/bin/php5 /var/www/vhosts/example.com/streaming.example.com/i... |
2018/03/19 | 1,034 | 2,535 | <issue_start>username_0: I'm working with C# and want to parse phone numbers from a string. I live in Switzerland, phone numbers can either have 10 digits like following pattern:
`000 000 00 00` or can start with a `+41`: `+41 00 000 00 00`. I've written following regular expression:
`var phone = new Regex(@"\b(\+41\s... |
2018/03/19 | 1,125 | 2,874 | <issue_start>username_0: I'm trying to find a right solution for stacking different height divs. Tried grid, flex and lastly inline-block.
From what i understand 3rd div(button) is attatched to the bottom of a 2nd div(image). I'm trying to make so it would be attatched to the bottom of a 1st div(text).
Button is bein... |
2018/03/19 | 774 | 2,811 | <issue_start>username_0: I've created a function which takes a string and replace it's ending substring, so if the string ends with `AddFiche`, `EditFiche` or Fiche they should be replaced with `Liste`, and some other conditions this is what I tried:
```
function _getParentComponent(component){
if(component.endsWi... |
2018/03/19 | 1,375 | 4,266 | <issue_start>username_0: I am working on a program, that has to initialize many different objects according to a list that defines which type each object is.
The code that does this task looks like this:
```
// name is one entry of the type list
// itemList is a std::vector where the new items are appended
if(name ==... |
2018/03/19 | 927 | 3,695 | <issue_start>username_0: I am trying to find simple way to update the form fields with Validators. For now I do the below:
```
ngOnInit() {
this.form.get('licenseType').valueChanges.subscribe(value => {
this.licenseChange(value);
})
}
licenseChange(licenseValue: any) {
if (licenseValue ===... |
2018/03/19 | 1,258 | 4,510 | <issue_start>username_0: I'm new to rxswift and here's my problem:
Suppose I have observable of actions: Observable.of("do1", "do2", "do3")
Now this observable mapped to function that returns observable:
```
let actions = Observable.of("do1", "do2", "do3")
func do(action: String) -> Observable {
// do something
/... |
2018/03/19 | 673 | 2,599 | <issue_start>username_0: Is there a way to structure `const reducer = (state = initialState, action)` in such a manner that the method isn't bloated by a bunch of switch cases?
My idea was to put related actions in arrays and check them with `Array.prototype.includes()` when handling an action.
I would then extract ... |
2018/03/19 | 725 | 2,677 | <issue_start>username_0: I need output of variable from `Invoke-Command`, but when printing it is showing empty, below is the sample code:
```
$ServiceName = "Service"
Invoke-Command -ScriptBlock {
try {
iisreset
$BodyContent += "Server: **$server** IIS reset completed
"
}
... |
2018/03/19 | 1,061 | 4,025 | <issue_start>username_0: Using Microsoft Bot Framework, I created a Chat Bot and I am able to test the Bot using local Emulator. Bot service also deals with LUIS and everything again works just fine. My Bot Service has `MicrosoftAppId` and `MicrosoftAppPassword` in `web.config`.
I deployed the service to Azure. Then e... |
2018/03/19 | 744 | 2,448 | <issue_start>username_0: I have two dates i.e. **2/02/2016** & **19/03/2018**
i am trying to fetch months & year between this dates as
*output should be*
>
> Feb 2016, Mar 2016 ......and so on.... Jan 2018, Feb 2018, Mar 2018.
>
>
>
Tried month Gap code -
```
let date1 = DateComponents(calendar: .current, ye... |
2018/03/19 | 680 | 2,395 | <issue_start>username_0: I've searched a lot and can't find a solution to my problem (I've seen similar runtime issues but not build).
I have a .NET 4.7.1 project (class lib) that references a .NET Core project/library. When I try to build I get the following build error:
>
> 'System.Runtime, Version=4.2.0.0, Cultur... |
2018/03/19 | 365 | 1,465 | <issue_start>username_0: I want to delete only the 1st child (`L7jrJ6DtQWrmZsC4zvT`) from Firebase database with an option in an Android app. I searched several places and could not find it. You only have one option to delete a whole database. Can anyone help?
[](https:/... |
2018/03/19 | 309 | 1,102 | <issue_start>username_0: I am trying to redirect the current html page on screen to another html file, both files share the same location.
I know there are a lot online about this info but it is not working for me, my app just crashed
The app loads the html file from the .java file in android by using this code:
```... |
2018/03/19 | 679 | 2,146 | <issue_start>username_0: How to join different tables with pivote table
I have 4 tables like
```
users
id | name |
-------------
1 | abc |
2 | ccc |
user_profile
id | user_id | email |
-------------------------------
1 | 1 | <EMAIL>
2 | 2 | <EMAIL>
skills
id | skill_na... |