date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/22 | 1,144 | 4,063 | <issue_start>username_0: I'm using ASM 6.1 in my project to generate Class files dynamically. But I have a problem when assembling a fat jar.
```
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.4.3:shade (default-cli) on project uetlx: Error creating shaded jar: null: IllegalArgumentExcept... |
2018/03/22 | 267 | 1,136 | <issue_start>username_0: I'm new with VueJs.
I have a question about which is the best practice about import components in A Vue Template Project.
I have some components used in some views. Then I dowloaded a admin template, and the samples always import the components in the view. Included Vue declaration. So I thin... |
2018/03/22 | 233 | 872 | <issue_start>username_0: Hellow I want to ad eg admin in front of specific name.
```
@echo off
echo Enter ID
set /p input=""
cls
echo Welocme %input%
pause
```
In this script i want to add if i write eg Modman I want to in front of it be admin but if I write eg Bartek it wont be there<issue_comment>username... |
2018/03/22 | 224 | 895 | <issue_start>username_0: I am trying to make validates\_length only occur if no pictures are present but have no clue ...
```
class Post < ApplicationRecord
validates_attachment_content_type :pictures, content_type: /\Aimage\/.*\z/
validates_length_of :description, :minimum => 3, :maximum => 200
end
```... |
2018/03/22 | 1,412 | 5,425 | <issue_start>username_0: I am having issues accessing data from a DAC that has any amount of customization with it. I have a DAC with a few more complicated modifications, so I will start with the simple one. I have modified the **External Reference** field of `SO.SOOrder`. This is the only change to the DAC.
**Origin... |
2018/03/22 | 1,085 | 3,502 | <issue_start>username_0: This is actually for the thread on [unknown error: call function result missing 'value' for Selenium Send Keys even after chromedriver upgrade](https://stackoverflow.com/questions/49162667/unknown-error-call-function-result-missing-value-for-selenium-send-keys-even)
but I guess my reputation is... |
2018/03/22 | 1,249 | 6,253 | <issue_start>username_0: I know there are tons of posts about stack overflow errors and i understand why my specific one is happening, my question is basically how to move away from recursion in this specific case. I have a class which establishes and maintains a client connection (for HL7 messaging specifically but it... |
2018/03/22 | 4,677 | 13,304 | <issue_start>username_0: I am using JavaScript native reduce, however I want to slightly change in the grouping to get my desired result.
I have an array as follows:
```
const people = [
{name: "John", age: 23, city: "Seattle", state: "WA"},
{name: "Mark", age: 25, city: "Houston", state: "TX"},
{name: "Luke",... |
2018/03/22 | 569 | 2,174 | <issue_start>username_0: I am struggling to get a simple maven project running on Jenkins, which runs on my new Ubuntu server (16.04.)
I have installed Jenkins onto an Ubuntu, installed Maven and JDK.
I can connect to bitbucket and access my remote repository and get hold of my code. However, when I try to build I ge... |
2018/03/22 | 1,681 | 5,256 | <issue_start>username_0: Evening Internet World,
First post here so be gentle, i've learnt a lot from this site thus far.. and now I seek help..
I've tried a few variations of code like $when & $then, function in function, but I can't get the result I seek, it doesn't combine results. So thought best to ask away her... |
2018/03/22 | 303 | 905 | <issue_start>username_0: I want to be able to pass a comma (`,`) to a `call` statement and use it as a variable, but the below doesn't seem to work:
```
:example
@echo off
call :test ,
echo %output%
pause
:test
set "output=%1"
goto :eof
```<issue_comment>username_1: ```
@echo off
REM Pass the , with Quotes around... |
2018/03/22 | 1,331 | 4,918 | <issue_start>username_0: I am new to Django. Would be really helpful if someone can tell the difference between @cached\_property and @lru\_cache decorator in Django.
Also when should I use which decorator in Django. Use cases would be really helpful.
Thanks.<issue_comment>username_1: They serve different purposes.
... |
2018/03/22 | 501 | 1,487 | <issue_start>username_0: I need to use grep from the command line to match a string with the following format
```
_ADFADF_ASFDSAFD_AFDSADF_
```
Should not match on
```
ASDFASDF_ASFDASDF_AFSDASFD
_ASDFASDF_ASDFASDF_ASDFAS
ASDFASD_ASDFSADF_ASFDASD_
```
Match should be only for a string begining and ending with an u... |
2018/03/22 | 729 | 2,652 | <issue_start>username_0: This might be a dumb question but I am new to Angular and haven't gotten an answer for this.
I was following a tutorial and have my routes set up like this for my Angular 5 project:
```
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import {... |
2018/03/22 | 752 | 2,494 | <issue_start>username_0: I am not sure if latest version of eclipse i.e. Oxygen supports java 10 or not. I configured the JRE for java 10 from preferences on my mac machine.
[](https://i.stack.imgur.com/vl7ik.png)
Also, I tried adding maven compiler... |
2018/03/22 | 384 | 1,168 | <issue_start>username_0: How to get and echo number of records in row?this is my code
```
$b = "SELECT COUNT(Users) FROM room";
$r= mysqli_query($connection,$b);
$c = mysqli_fetch_array($r);
echo $c['Users'];
```
I get this error while i have it in `room` table
>
> Notice: Undefined index: ID in C:\xampp\htdocs\ph... |
2018/03/22 | 2,764 | 11,191 | <issue_start>username_0: I have an application with a datagridview on the bottom half of the page and textboxes, combo-boxes, buttons, etc... on the top half.
When the user changes the highlighted row in the grid then it displays all of the information for that row in the objects on the top half.
If user wants to chang... |
2018/03/22 | 1,037 | 3,036 | <issue_start>username_0: I need an algorithm that can round a corner between a line and an arc. The start information that I have is P0-start point, P-corner point, P2-end point, R2-radius of the arc between P and P2 and R-radius of the rounded corner(on the second picture).
[ == "" ]]; then
nvm install v6.9.1
fi
```
However, th... |
2018/03/22 | 1,423 | 5,229 | <issue_start>username_0: I have a simple REST API and I would like to implement filtering on a specific endpoint.
Imagine I have an endpoint like this:
```
localhost:5000/api/items?color="red"
```
Which handles request like this:
```
const items = await Items.find({color: req.query.color})
```
This works when th... |
2018/03/22 | 1,418 | 4,023 | <issue_start>username_0: I am facing the following error:
```
Warning: the environment variable LANG is not set!
We recommend setting this in ~/.profile (or equivalent) for proper expected behavior.
Creating a virtualenv for this project…
Using /usr/local/opt/python/bin/python3.6 (3.6.4) to create virtualenv…
⠋Traceba... |
2018/03/22 | 896 | 3,332 | <issue_start>username_0: I have the following situation:
```
$var: mobiConfig;
@media (min-width: 750px) {
$var: deskConfig;
}
```
I am trying to change the sass variable within a media query and somehow it is always returning `deskConfig`
Is this the expected behavior?<issue_comment>username_1: Sass variable sco... |
2018/03/22 | 752 | 1,796 | <issue_start>username_0: I have a list containing hundreds of ip addresses and masks in this format:
```
['10.10.10.0/255.255.255.0', '10.10.20.0/255.255.255.192']
```
I would like to convert this list to this format:
```
['10.10.10.0/24', '10.10.20.0/26']
```
Here is my code:
```
# List already containing all i... |
2018/03/22 | 226 | 886 | <issue_start>username_0: I am looking to monitor an Oracle database.
Do you have an idea about the metrics useful that I have to monitor?
Thank you in advance for your help.<issue_comment>username_1: I think:
* CPU occupation
* Memory occupation
* Number of open sessions
Upvotes: 0 <issue_comment>username_2: As an adm... |
2018/03/22 | 1,501 | 5,654 | <issue_start>username_0: I am trying to challenge my learning by creating a simple project using rails forms, however I have gotten really stuck and can't find any information that seems to help online.
**What I am trying to do:**
I want to create a rails application with no model (so no persistence of data). Simply ... |
2018/03/22 | 922 | 3,170 | <issue_start>username_0: Why i get division by zero in this SQL?
I tried so much, like cast, NULLIF and that things but nothing works.
```
$sql = "SELECT *, (cast(price as numeric(20, 4))*100)/cast(pricebefore as numeric(20, 4)) - 100 AS discount FROM products ORDER BY CAST(price AS Float) asc LIMIT $no_of_records_pe... |