date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/09 | 864 | 2,547 | <issue_start>username_0: I downloaded the [kickstarter dataset from kaggle](https://www.kaggle.com/kemical/kickstarter-projects), And now I would like to see the most popular categories split up with the 3 different states ('successful', 'failed', 'cancelled') I was hoping to get an output like
```
main_category sta... |
2018/03/09 | 887 | 3,232 | <issue_start>username_0: In my HTML, I have a div:
```
```
In my JavaScript, I dynamically append several items to this div, for example:
```
$('#layerList').append(" [This is an example](#) ");
```
So far, everything works fine. My menu is built dynamically.
When I click on the different menu items, I want t... |
2018/03/09 | 362 | 1,109 | <issue_start>username_0: I have a `school` dictionary as follow-
```
{
ID('6a15ce'): {
'count': 5,
'amount': 0,
'r_amount': None,
'sub': < subobj >
}, ID('464ba1'): {
'count': 2,
'amount': 120,
'r_amount': None,
'sub': < subobj2 >
}
}
```
I... |
2018/03/09 | 986 | 3,206 | <issue_start>username_0: Hey all I have the following command line that works great for what I am looking to want to do but unable to translate it over to the C# Magick.net version:
```
convert YnTf9.png ^
( -clone 0 -blur 0x5 -gravity center -crop 400x300+0+0 +repage ) ^
( -clone 0 -resize x300 ) ^
-delete 0 ^
-gravi... |
2018/03/09 | 1,345 | 4,860 | <issue_start>username_0: I have Visual Studio Code on a Windows Machine, on which I am making a new Scrapy Crawler. The crawler is working fine but I want to debug the code, for which I am adding this in my `launch.json` file:
```
{
"name": "Scrapy with Integrated Terminal/Console",
"type": "python",
"requ... |
2018/03/09 | 462 | 1,403 | <issue_start>username_0: I need help writing some Python code that input is a list A that represents a set and whose output is a list of the subsets of A that have cardinality of 2. I want to do this using an import, my professor wants me to understand where the numbers come from.
For instance:
```
if A = [a, b, c], ... |
2018/03/09 | 839 | 2,882 | <issue_start>username_0: I have 2 header files and 1 source file to work with. Respectively: `Utility.h`, `Game.h` and `main.cpp`. I have declared extern variables in `Utility.h` and am trying to define them in `main.cpp`. This gives me an undefined reference error, which I don't understand. I use the variable AFTER I ... |
2018/03/09 | 958 | 2,816 | <issue_start>username_0: Today I wrote a code at the university on `VS 2013` and it worked. I sent it to myself through email to try at home. Its not working on `VS 2017`. Fortunately I have `VS 2013` and it does work on it. Why is this happening?
Here is the part of the code that fails on `VS 2017`:
```
#include
#inc... |
2018/03/09 | 1,223 | 3,660 | <issue_start>username_0: I am having a little problem "filling in gaps". It's not a missing data question, it's more about merging but it's not working great.
So, my data looks like this
```
id name region Company
1 <NAME> West Walmart
1 <NAME> West Amazon
1 <NAME>... |
2018/03/09 | 283 | 933 | <issue_start>username_0: Sometimes when I use functions in `pyrogram` I receive the following output:
```
{
"_": functionName,
"argName" : value,
"arg2Name" : value2,
# etc.
}
```
For instance, If I write:
```
functions.users.GetFullUser(types.InputUserSelf())
```
I receive:
```
{
"_": "funct... |
2018/03/09 | 707 | 2,822 | <issue_start>username_0: I am using `MutationObserver` to detect when a specific class has been added to an element.
```
const observer = new MutationObserver((mutations) => {
mutations.forEach((mutation) => {
const el = mutation.target;
if ((!mutation.oldValue || !mutation.oldValue.match(/\bis-busy\... |
2018/03/09 | 567 | 1,510 | <issue_start>username_0: I am trying to [run the sample code](https://linuxtv.org/downloads/v4l-dvb-apis/userspace-api/v4l/v4l2grab.c.html) from v4l2 API. When I tried to run the sample code, I am facing problem while compiling the program itself. Please check the error, is there something I need to install or flag to ... |
2018/03/09 | 431 | 1,326 | <issue_start>username_0: I changed scan guns recently from a FedEx scan gun, to a Wasp scan gun. Now when I scan a FedEx label, it gives me a 24 character tracking, and I only need the last 12 digits. I will also be scanning UPS labels and they are alphanumeric. Is there any way to truncate all but the last 12 digits o... |
2018/03/09 | 294 | 806 | <issue_start>username_0: I have the following text
```
H3ll0WorldHelloWorld456
```
I need to retrive only the numbers ( `[\d]` ) inside the tag in order to replace them. In this case the regex would return 3 and 0.
What I have so far:
```
()([\s\S]\*?)(<\/msgText>)
```
[Here](https://regex101.com/r/0zGJMj/3/) I... |
2018/03/09 | 906 | 3,412 | <issue_start>username_0: The task I am trying to do is to classify EEG signals into 4 possible classes. The data is divided up into trials. Subjects were asked to think about doing 1 of four actions, and the classification task is to predict what they were thinking based on the EEG signals.
I have ~2500 trials. For e... |
2018/03/09 | 934 | 3,114 | <issue_start>username_0: I have a script that stores files into a directory. The function creates a new directory every 7 days based on the current date (2018>March>week1,2,3, etc.). It works fantastically, but I need to set the directory permissions to 777 otherwise I run into issues. See the code below.
```php
stati... |
2018/03/09 | 820 | 3,599 | <issue_start>username_0: I can animate the whole word or if i use any other selector but with blast as the class i cannot animate single character.
```
//used blast.js to seperate each character
$("h1").blast({ delimiter: "character" });
//on hover function to animate each character on hover and used bounce anima... |
2018/03/09 | 1,548 | 5,119 | <issue_start>username_0: This is the same as [Why does go forbid taking the address of (&) map member, yet allows (&) slice element?](https://stackoverflow.com/questions/32495402/why-does-go-forbid-taking-the-address-of-map-member-yet-allows-slice-el) but I'm not satisfied with the accepted answer: "Slices are backed b... |
2018/03/09 | 1,088 | 3,687 | <issue_start>username_0: I have a database table with 2 columns NAME and AGE
and three rows .
how can I delete only one name from the NAME column ?
I don't want to delete the whole row<issue_comment>username_1: Let's start with this misconception:
>
> I wanted to modify a map struct value in place. Numeric values i... |
2018/03/09 | 1,469 | 4,591 | <issue_start>username_0: I'm experiencing unusual behavior in PHP while iterating over arrays, and would love either an explanation or a confirmation that this is a bug.
For starters, here's the PHP version:
```
PHP 7.2.3 (cli) (built: Mar 8 2018 10:30:06) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3... |
2018/03/09 | 910 | 3,253 | <issue_start>username_0: I am trying to inject strings into my angular component.
The code below works fine but it gives a deprecation warning:
*get is deprecated: from v4.0.0 use Type or InjectionToken*
```js
@Component({
selector: 'app-label',
templateUrl: './label.component.html',
styleUrls: ['./label.compone... |
2018/03/09 | 1,564 | 5,525 | <issue_start>username_0: I have tried to find the solution in their documentation; but all I have found which was most closest to my query was this; <https://www.twilio.com/docs/guides/how-to-gather-user-input-via-keypad-in-php#collect-user-input-with-the-gather-twiml-verb>; which was for the calls coming in, not for o... |
2018/03/09 | 1,729 | 5,952 | <issue_start>username_0: I have a table, `participated`, which has a trigger that returns the total damage amount for a driver id when a new record is inserted into the table.
```
create or replace trigger display
after insert on participated
for each row
declare
t_id integer;
total integer;
begin
sel... |
2018/03/09 | 421 | 1,421 | <issue_start>username_0: I'm using Angular 5 and i would fill my white svg image.
I have a svg file like this:
```
ic\_calendar
```
So, i'm importing it through this code:
```
```
However, i can't change the svg image style and i can't fill it.
I tried, via sass, to add the following:
```
svg { fill: blue; }
`... |
2018/03/09 | 1,325 | 3,748 | <issue_start>username_0: I'm trying to create a formula for calculating PI using the [Gregory-Leibniz series](https://www.wikihow.com/Calculate-Pi). I've created a for loop that's populating a new array with the individual values, but I need a way to then alternate between subtracting and adding each array item and the... |
2018/03/09 | 689 | 2,492 | <issue_start>username_0: I am looking for a name for the following function:
`(f, a) => () => f(a)`
Basically a function that returns a function which when called calls `f` with `a`.
Is there a common name for this function? maybe it can be described with some [Ramda](http://ramdajs.com/docs/) magic?
---
Edit to c... |
2018/03/09 | 1,425 | 5,044 | <issue_start>username_0: I'm wrote this mysql procedure for inserting customer billing details into an ecommerce database.
If i run this in phpmyadmin, it throws errors for any semicolons. I removed the semicolons but it gives the following error
>
> 1064 - You have an error in your SQL syntax; check the manual that... |
2018/03/09 | 1,858 | 6,222 | <issue_start>username_0: I am new to Akka and developed a sample Akka WebSocket server that streams a file's contents to clients using `BroadcastHub` (based on a sample from the Akka [docs](https://doc.akka.io/docs/akka/current/stream/stream-dynamic.html?language=scala#using-the-broadcasthub)).
How can I measure the t... |
2018/03/09 | 2,264 | 7,429 | <issue_start>username_0: I have made several application where I use SOAP, but this one is giving me an error I haven't seen before.
Here is function in the WSDL that was created in Delphi.
```
function GetueSoapServerPortType(UseWSDL: Boolean=System.False; Addr: string=''; HTTPRIO: THTTPRIO = nil): ueSoapServerPortT... |
2018/03/09 | 1,509 | 6,556 | <issue_start>username_0: I have a table view where depending on the cell class it will download an image from Firebase. I've noticed when using the app that cells with the same cell identifier will show the previous downloaded image before showing the new one. This is what I have before changing it.
```
override func ... |
2018/03/09 | 520 | 1,952 | <issue_start>username_0: I know some JS and I have a fair amount of experience with VBA scripts for MSO, but I'm just starting to learn how to script google docs, and I'm having difficulty with the google scripting environment.
I created a doc on my google drive, and I am trying to log outputs in the code, but I get a... |
2018/03/09 | 454 | 1,666 | <issue_start>username_0: I have set up a build definition on VSTS. It builds fine on my local machine. But I get the following error when I start the build process
>
> [error]Dotnet command failed with non-zero exit code on the following projects : D:\a\1\s\My.Project\My.Project.csproj
>
>
><issue_comment>username_... |
2018/03/09 | 404 | 1,633 | <issue_start>username_0: I am running IntelliJ IDEA 2017.3.4 (Ultimate Edition). I have a Spring Boot project, with Spring properties defined that will get autowired into `@Value`-annotated fields in an `@Component` class. The properties are defined in application.properties.
By default, IntelliJ is displaying the val... |
2018/03/09 | 685 | 2,519 | <issue_start>username_0: When recording macro my data is 4162 that why I have Range ("A1: A4162") each time I have data more than 4162 it will not work. I need code to pick any range of data I supply in the sheet
```
Range("A1").Select
Selection.AutoFilter
ActiveWorkbook.Worksheets("Incident Ticket"... |
2018/03/09 | 495 | 2,047 | <issue_start>username_0: I know you can get a list of the current processes that are running by using `Process[] processes = Process.GetProcesses();` or `Process[] processes = Process.GetProcessesByName("processName");`
However I need to grab the current *applications* that are running, not necessarily the specific pr... |
2018/03/09 | 527 | 1,459 | <issue_start>username_0: I have the following dataframe `df1`:
```
col_a | col_b |
===============
101 | abc |
102 | def |
103 | NaN |
104 | pqr |
105 | NaN |
```
I want to fill these NaN values with the correct value using a corresponding lookup table `lookup_df` that looks like this:
```
val_... |
2018/03/09 | 553 | 2,402 | <issue_start>username_0: I want to know what environments Laravel supports by default. I know that "production" and "local" are two available, but there's no other? And if so, how does it alter the behavior of logging.
Another thing is that I believe that I declare one custom environment, it will cause any unexpected ... |
2018/03/09 | 5,090 | 13,787 | <issue_start>username_0: I set up an environment in anaconda for running gensim. it's been working great. today I updated gensim and some other packages in the environment. Now I get the following error in the terminal window. in my jupyter notebook, the kernel dies and it can't be restarted and when I try to import ge... |
2018/03/09 | 313 | 802 | <issue_start>username_0: I have this object structure in Javascript:
```
{
2015-08:367,
2015-09:381,
2015-10:390,
2015-11:400,
2015-12:396,
PAYOR:"PCP",
}
```
And need get this result:
```
{
PAYOR:"PCP",
2015-08:367,
2015-09:381,
2015-10:390,
2015-11:400,
2015-12:396,
}
```<issue_comment>us... |
2018/03/09 | 627 | 1,787 | <issue_start>username_0: I want to update second item of the first child array in a multidimensional array
**Example Array:**
```
$cars = array
(
array("Volvo",10),
array("BMW",10),
array("Saab",10),
array("Land Rover",10)
);
```
i want to replace "20" instead "10" from first array
**Result:**
```
$cars = arr... |
2018/03/09 | 2,573 | 5,742 | <issue_start>username_0: I have several Python lists of tuples:
```
[(0, 61), (1, 30), (5, 198), (4, 61), (0, 30), (5, 200)]
[(1, 72), (2, 19), (3, 31), (4, 192), (6, 72), (5, 75)]
[(3, 12), (0, 51)]
...
```
Each of these tuples are created such that these are in the format `(key, value)`:
There are seven keys: 0, ... |
2018/03/09 | 492 | 1,586 | <issue_start>username_0: This will probably be a softball but how can I divide the selection by a certain amount? In this case: 2.204623 ? I know you can use "PasteSpecial" but I'm trying to figure out how to just have a selection and then assign a hotkey to do it (macro).
```
Sub Makemt()
Dim Cell As Range
Dim div_... |
2018/03/09 | 737 | 2,743 | <issue_start>username_0: I have a class that contains some data:
```
struct Base
{
int a,b,c,d;
};
```
Many derived classes are defined to represent different types of generation and manipulation of `Base`, eg.:
```
struct AlphaA : public Base
{
AlphaA():a(2),b(0),c(0),d(1){;}
};
struct AlphaB : public Base
{
... |
2018/03/09 | 760 | 2,502 | <issue_start>username_0: I want to use the *phoneNumberIcon* css class to control visibility on hover for the div. But I also want to initially hide div with a different css class named *editIcon*.
```
#div1{
width:200px;
height:200px;
background-color:red;
}
.editIcon {
display: none;
}
$(document).ready(fu... |
2018/03/09 | 753 | 2,595 | <issue_start>username_0: I am trying to generate a checkbox that will define a variable x based on whether a checkbox is checked or not checked. If the checkbox is checked then the variable equals myvalue and if the checkbox is unchecked the variable equals "No Value". How do I tweak the below code to get the desired r... |
2018/03/09 | 1,609 | 5,748 | <issue_start>username_0: I'm hitting a GC overhead limit exceeded error in Spark using `spark_apply`. Here are my specs:
sparklyr v0.6.2
Spark v2.1.0
4 workers with 8 cores and 29G of memory
The closure `get_dates` pulls data from Cassandra one row at a time. There are about 200k rows total. The process run for about... |
2018/03/09 | 469 | 1,321 | <issue_start>username_0: Suppose I have the following string stored in a variable, say `txt1`:
`[1. fcfs.cs](javascript:void(0))
[2. fcfs.cpp](javascript:void(0))
[3. fcfs.py](javascript:void(0))
[4. fcfs.rs](javascript:void(0))
[5. FCFS.java](javascript:void(0))`
Now I want to insert `style='color: r... |
2018/03/09 | 352 | 1,356 | <issue_start>username_0: My animator doesn't work: I set a bool variable from code:
```
animatedObject.myAnimator.SetBool("MyVariable", true);
animatedObject.SetActive(true);
```
But the animation isn't triggered. I'm sure that the animator's transition is correctly set to react with "MyVariable".
Looking at the ou... |
2018/03/09 | 637 | 2,142 | <issue_start>username_0: Imagine we have three columns in Excel (No. Name Ticket) and we need to hide from the spreadsheet the user name Sam and ticket name ACCELA. I created the following code but it does not work.
```
Sub Hide_Rows()
Dim c As Range
For Each c In ActiveSheet.Range("A2:C37")
If c.Value... |
2018/03/09 | 547 | 2,125 | <issue_start>username_0: In my `models.py` I have a `clean()` method that should do some validation affecting multiple fields of a model.
However, I noticed that I have to check for every field that I need in the clean() method if it's not null. Even if the fields have `blank=False` the clean() method is run although ... |
2018/03/09 | 797 | 2,151 | <issue_start>username_0: How to print an inverse Z pattern?
Code for a normal Z pattern:
```
int main() {
int n;
printf("Enter number of rows: ");
scanf("%d", &n);
for (int row = 0; row < n; row++) {
for (int column = 0; column < n; column++) {
if (row == 0 || row == n - 1 || column == n - 1 - row) {
... |
2018/03/09 | 1,145 | 3,185 | <issue_start>username_0: Here is my very code which I got from the example in the EJS readme:
```
html = ejs.render('<%= people %>', {people: 'hello'});
document.getElementById('output').innerHTML = html;
```
With just that basic code, I'm getting an error somehow,
```
ReferenceError: /Users/owner/Dropbox/answer... |
2018/03/09 | 1,532 | 4,562 | <issue_start>username_0: I'm having trouble identifying the error in my code that occurred once I added an aggregate function to it. Each of the `submitterclaimnumber` items have multiple rows each with increasing values under the `seqnumber` column.
I'm trying to pull the row that has the highest `seqnumber` for each... |
2018/03/09 | 1,457 | 5,455 | <issue_start>username_0: I would like to cancel an unwind segue if the textbox values are equal to nil.
below is the current code. I used storyboard to connect the save button (saves values of text into database). I was thinking about using poptorootviewcontroller to ensure the textbook has values before performing se... |
2018/03/09 | 1,079 | 4,052 | <issue_start>username_0: this question is based on this other one: [Nested Loop Python](https://stackoverflow.com/questions/24591917/nested-loop-python)
One of the answer is
```
for i in range(1, 10):
for j in range(i):
print(i, end='')
print()
```
I don't understand why after the `print(i, end = '... |
2018/03/09 | 1,660 | 6,069 | <issue_start>username_0: I need to grab all the filenames of a particular filetype in a folder, and put each filename into a separate cell, preferably going down by rows. I also need to make sure that there aren't any duplicate filenames and that this will work for any folder, as it's supposed to be dynamic.
Basically... |
2018/03/09 | 1,144 | 3,597 | <issue_start>username_0: So I want to use `python-occ` library. It requires `conda-forge` to be build. I try to install it in [basic notebook](https://colab.research.google.com/notebooks/welcome.ipynb#scrollTo=qtrmw-iPr-uP)
```
!wget -c https://repo.continuum.io/archive/Anaconda3-5.1.0-Linux-x86_64.sh
!chmod +x Anacon... |
2018/03/09 | 1,182 | 3,714 | <issue_start>username_0: I am trying to solve the problem but couldn't figure out how to do it.
I have two arrays:
```
var arr1 = [
{Week: "WK1", CreatedTickets: 1}, {Week: "WK3", CreatedTickets: 12},
{Week: "WK2", CreatedTickets: 3}, {Week: "WK5", CreatedTickets: 5}
];
var arr2 = [
{Week: "WK1", Cl... |
2018/03/09 | 1,479 | 5,029 | <issue_start>username_0: I was just tidying up some code and ran into some trouble. I am getting an error I have never come across before
`ValueError: malformed node or string:['0.000', '37.903', 'nosing']`
My openLabels function at the top works fine and returns a list of items structured as you can see in the erro... |
2018/03/09 | 316 | 1,355 | <issue_start>username_0: I can't handle clicks on recycerView body (**NOT ITEMS**),
but when I setOnClickListener on my recycler, it does not work.
I tried clickable="true" in xml, but does not work.
```
recycler.setOnClickListener {
Toast.makeText(context,"Click on recyclerView",Toast.LENGTH_SHORT).show()
}
``... |
2018/03/09 | 555 | 2,202 | <issue_start>username_0: I am trying to get the below code to run in Python and I keep getting a error at the return n point. Can someone please look at the code and see where I messed up at?
```
while True:
n = input(prompt)
try:
n = float(n)
if n < n1 or n > n2:
print('Error. Inpu... |
2018/03/09 | 385 | 1,489 | <issue_start>username_0: Im playing around with android as Im trying to learn M-V-VM with androids Room. I have Created a structure as follows:
Person.class, PersonDao.class, PersonDatabase.class, DatabaseRepository.class, PersonViewModel.class, MainActivity.class
ActivityMain.class
```
public class MainActivity ext... |
2018/03/09 | 578 | 2,100 | <issue_start>username_0: Suppose I have the items
```
{ // item 0
Color = yellow,
Priority = high,
},
{ // item 1
Color = yellow,
Priority = medium,
},
{ // item 2
Color = green,
Priority = high,
},
```
I want to be able to progressively build a `GroupBy` query as using `var grouped = items.G... |
2018/03/09 | 564 | 2,142 | <issue_start>username_0: I have to build 3 different pages and each page has a different toolbar.
I know that in app.vue the head section is rendered and the components should be the body so it would make sense to only have the toolbar in the app.vue section but the problem starts when I have 3 different toolbars when ... |
2018/03/09 | 323 | 1,143 | <issue_start>username_0: Getting this error in particular:
>
> ERROR: Error when calling external catalog API: The number of partition keys do not match the number of partition values
>
>
><issue_comment>username_1: Just posting this because googling that error turned nothing up. This can happen when you `ALTER TAB... |
2018/03/09 | 515 | 1,742 | <issue_start>username_0: I'm new to R and I'm having some troubles on how to use Empirical Cumulative Distribution function.
I have a CSV file containing 100k values (exported from excel), which I'm importing like so:
```
MyData <- read.csv(file="test.csv", header=TRUE, sep=",")
```
which seems to be okay but as s... |
2018/03/09 | 337 | 1,239 | <issue_start>username_0: I Have created my first app with electron but I am down with the question How do you add the installation screen for your an electron app like atom, WhatsApp and others?
I have seen this in several apps built with electron and I just don't see in the documentation<issue_comment>username_1: Just... |
2018/03/09 | 517 | 1,867 | <issue_start>username_0: I have a request were the exact response from one request is the body of another request.
Is there an easy way to store the response from one request to reuse as the body of another request in Postman?
I tried storing the response body in a global variable `customerData` and then having the b... |
2018/03/09 | 769 | 2,050 | <issue_start>username_0: Hi I am fairly new to Python/programming and am having trouble with a unpacking a nested column in my dataframe.
The df in question looks like this:

The column I am trying to unpack looks like this (in JSON format):
```
df['id_data'] = [{u'metrics':... |
2018/03/09 | 302 | 970 | <issue_start>username_0: I need to merge two object, with an array inside, together :
`res : [ { data: [1,2,3] }, { data: [4,5,6] } ]`
And the result will look like this :
`res : [1,2,3,4,5,6]`
How can I get there ?
Thank you !<issue_comment>username_1: You should be able to pass the dictionary directly to the dat... |
2018/03/09 | 345 | 1,264 | <issue_start>username_0: This question has been asked many times, but all the answers I've seen use jQuery, which I CAN'T use for this project. I am trying to execute code when option element "Other" has been selected from a list inside a select element.
Using "change" as the event doesn't seem to work.
```js
docum... |
2018/03/09 | 535 | 2,087 | <issue_start>username_0: In TypeScript (using in an Angular project), for a method that returns nothing (void), which of the following is the best practice?
```
onSelect(someNumber: number): void {
}
```
OR
```
onSelect(someNumber: number) {
}
```
I've seen it both ways in different examples and wasn't sure if ... |
2018/03/09 | 616 | 2,048 | <issue_start>username_0: I'm trying to run svnlook as recommended [here](https://stackoverflow.com/questions/704901/search-in-svn-repository-for-a-file-name).
>
> C:\Users\name>svnlook tree svn://svn.compname.com:4345/ | grep
> Shared.Translation
>
>
> svnlook: E720123: Can't open file 'svn:\svn.compname.com:4345... |
2018/03/09 | 1,669 | 4,767 | <issue_start>username_0: I have looked at Stack overflow answers for questions similar to mine, but I have not found answers that could address my question ([here](https://stackoverflow.com/questions/1075652/using-the-and-and-not-operator-in-python) and [here](https://stackoverflow.com/questions/13636640/python-checkin... |
2018/03/09 | 595 | 1,792 | <issue_start>username_0: According to the Bootstrap 3 to Bootstrap 4 migration docs:
>
> Buttons
>
>
> * Renamed .btn-default to .btn-secondary.
>
>
>
But the Bootstrap 4 [`.btn-secondary`](https://getbootstrap.com/docs/4.0/components/buttons/#examples) does not look at all like the [old default button](https:/... |
2018/03/09 | 694 | 2,157 | <issue_start>username_0: I'm trying to run the Pike release OpenStack Kolla with Open vSwitch in a VM as a part of a test / dev environment. I feel like I am missing something obvious, but I just figure it out.
In the VM, Open vSwitch in a docker container.
The version in both the VM and host is:
`openvswitch-switch... |
2018/03/09 | 349 | 1,061 | <issue_start>username_0: I want to change:
```
**0**
```
in my website using javascript. I searched and found
```
document.getElementById("added-points").innerHTML = "9999999999999";
```
but it is for id and I search for class. How to do it?<issue_comment>username_1: Simply use `document.querySelector(".added-po... |
2018/03/09 | 323 | 1,206 | <issue_start>username_0: I'm using dataTable plugin to show data from Database , The table looks like:
```
name location actions
jack New York Edit , Delete
john London Edit , Delete
... ... Edit , Delete
```
The Adding/Editing/Deleting functions are working well , But I have to refresh the... |
2018/03/09 | 872 | 3,317 | <issue_start>username_0: I have the error from below and I'm quite out of ideas how to solve it. Tried the following until now:
1. Clean bin/obj/packages/packages cache
2. Remove manually from csproj and packages files the package and add it afterwards..still error
3. Update Visual Studio 2017
4. Reinstall Visual Stud... |
2018/03/09 | 2,449 | 7,902 | <issue_start>username_0: I want generate a random n by n matrix in R with discrete values ranging from 1 to n. The tricky part is that I want each value to be unique both in the row and on the column.
For example, if `n=3` the matrix could look like:
```
1 2 3
2 3 1
3 1 2
```
or it could look like this:
```
... |
2018/03/09 | 1,122 | 4,204 | <issue_start>username_0: I have a problem that I can not resolve in react : I want to change a background image each all 3 seconds. The code work to do this but it involves just one problem : when I update the "teaserAnimCount" state, I can see in my console that this value increase exponentially. I don't know why, wit... |
2018/03/09 | 485 | 1,461 | <issue_start>username_0: I have a regex to find url's in text:
```
^(?!:\/\/)([a-zA-Z0-9-_]+\.)*[a-zA-Z0-9][a-zA-Z0-9-_]+\.[a-zA-Z]{2,11}?$
```
However it fails when it is surrounded by text:
[](https://i.stack.imgur.com/tBwuk.png)
<https://regex1... |
2018/03/09 | 642 | 2,414 | <issue_start>username_0: I have created a **script component** (i.e., data flow) that is of the **source** variety. How do I create an error output that captures both the `errorColumnName` and `errorDescription`?
The only implementation of creating an error output for a script component that I have found assumes that... |
2018/03/09 | 688 | 2,355 | <issue_start>username_0: I want to have a sidenav that has some buttons on top and tabs below that contain different data. I want to make the inside of the tabs scroll so that the buttons on top never go out of view, so that my users are not scrolling up when they want to use one of the buttons.
Here is an example: <h... |
2018/03/09 | 709 | 2,301 | <issue_start>username_0: I am trying to color points in a line conditional if they are above or below the yearly mean in `ggplot2` and I cannot find any help that where colors are not exactly matched to values.
I'm using the following code:
```
ggplot(aes(x = M, y = O)) + geom_line()
```
I want it to be one color i... |
2018/03/09 | 810 | 2,891 | <issue_start>username_0: I am pretty new to javascript. I have a little problem, I've looked this up and it seems like setInterval won't work at the "normal" speed if the tab is inactive. That needs to be solved.
Here is my code:
```
window.onload = function(){
function create() {
$.ajax({
... |
2018/03/09 | 655 | 2,409 | <issue_start>username_0: In `MySQL`, we can query the table `information_schema.tables` and obtain useful information such as `data_length` or `table_rows`
```
select
data_length
, table_rows
from
information_schema.tables
where
table_schema='some_db'
and table_name='some_table';
+-------------+----------... |
2018/03/09 | 2,032 | 7,015 | <issue_start>username_0: I have a model which takes three variable-length inputs with the same label. Is there a way I could use `pack_padded_sequence` somehow? If so, how should I sort my sequences?
For example,
```
a = (([0,1,2], [3,4], [5,6,7,8]), 1) # training data is in length 3,2,4; label is 1
b = (([0,1], [2],... |
2018/03/09 | 679 | 2,271 | <issue_start>username_0: When using `foreach` in TCL to loop through a list it is desired to have a running number of the index of the current object. A way I have done this before is to maintain an extra counter variable.
```
set ct 0
foreach x $list {
puts "Items is $x index is $ct"
incr ct
}
```
One coul... |
2018/03/09 | 1,405 | 4,636 | <issue_start>username_0: I've just installed openAI gym on Google Colab, but when I try to run 'CartPole-v0' environment as [explained here](https://gym.openai.com/docs/).
Code:
```
import gym
env = gym.make('CartPole-v0')
for i_episode in range(20):
observation = env.reset()
for t in range(100):
env.... |
2018/03/09 | 487 | 2,107 | <issue_start>username_0: I'm working on a project where "squash and merge" is the preferred approach for merging pull requests. Is there a way to make this the default option in GitHub, either for my own user, or for the project?
As it stands, it's entirely too easy to select the default option (Create a merge commit)... |
2018/03/09 | 699 | 1,805 | <issue_start>username_0: I have a list with specific indices
```
list1 = [0,3,5]
```
and another list.
```
list2 = ['a','b','c','d','e','f']
```
I want a single line code to return items of list2 for indices mentioned in list1.
```
output = ['a','d','f']
```
I know its possible from ***comprehensive for loop*... |
2018/03/09 | 477 | 1,696 | <issue_start>username_0: I'm using [rke](https://github.com/rancher/rke) to generate a Kubernetes cluster in a private cloud. It produces a `kube_config_cluster.yml` file. Is there a way to add this config to my `$HOME/.kube/config` file?
Without having the .kube/config set, when using `kubectl`, I have to pass the ar... |
2018/03/09 | 844 | 3,113 | <issue_start>username_0: Android Studio: Error (2,0) Could not find method android() for arguments [build\_a4vgo3afez72iz8asoewhe39c$\_run\_closure1@7748caff] on root project '[ProjectName]' of type org.gradle.api.Project.
I am a new programmer just starting out, however I've had a problem with Android Studio in that ... |
2018/03/09 | 402 | 1,495 | <issue_start>username_0: Is it possible to override `HostAuthenticationFilter` filter for customize the response message ?
this is configure as below:
Its a bearer token authorization.
```
config.Filters.Add(new HostAuthenticationFilter(OAuthDefaults.AuthenticationType));
```<issue_comment>username_1: If `kubectl` c... |
2018/03/09 | 821 | 3,271 | <issue_start>username_0: I am using [This ConversationHandler Script](https://github.com/python-telegram-bot/python-telegram-bot/blob/master/examples/conversationbot.py) as a basis for my program.
How can I retrieve a users answer from a previous state? For example, when the user is asked about their Bio, how can I pr... |
2018/03/09 | 891 | 3,547 | <issue_start>username_0: attempting to pull form values and put them into localStorage via JSON string. This code works for everything but checkbox values. How do i also get checkbox values? Please and thanks!
```
const userOrder = {};
function getValues(e) {
// turn form elements object into an array
var elemen... |
2018/03/09 | 816 | 3,236 | <issue_start>username_0: i am trying to install Home Automatization (<https://home-assistant.io>) on my Synology. I've installed python via the synology packaging system, i've done basic setup (<https://home-assistant.io/docs/installation/synology/>) but when i try to run the daemon i see this in console:
*homeassista... |
2018/03/09 | 959 | 3,698 | <issue_start>username_0: I have been trying to use VBA to filter a particular column for any dates in current year (dynamic) PLUS any blank cells.
This is what I have:
```
ActiveSheet.Range("A1", "HZ" & LastRow).AutoFilter Field:=60, Criteria1:="=", Operator:=xlOr, Criteria2:=xlFilterThisYear, Operator:=xlFilterDynam... |
2018/03/09 | 1,048 | 3,881 | <issue_start>username_0: `field_1` must be 0 by default, but not allowed with `field_2`. My try:
```
from cerberus import Validator
schema = {
'value_1': {
'type': 'integer',
'default': 0
},
'value_2': {
'type': 'integer',
'excludes': ['value_1', ]
}
}
v = Validator(sch... |