date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/15 | 1,761 | 6,518 | <issue_start>username_0: So I was wondering if there was a much more elegant solution to the one I have implemented right now into merging values of an ordered dict.
I have an ordered dict that looks like this
```
'fields': OrderedDict([
("Sample Code", "Vendor Sample ID"),
("Donor ID", "Vendor Subject ID")... |
2018/03/15 | 252 | 999 | <issue_start>username_0: I have an administrative panel that lists all users on my system. I would like to be able to delete the account of a saved user in `firebase.auth()`.
I know the firebase provides an SDK for this, but I do not have a server on Node, my site is hosted directly on Firebase hosting.
Is there any ... |
2018/03/15 | 829 | 2,879 | <issue_start>username_0: I followed <https://github.com/graphaware/neo4j-uuid> link to generate UUID for each and every neo4j node which gets created from Spring boot application.
Here is the list of steps I followed as per the link:
1. Added `graphaware-uuid-3.3.3.52.16.jar` file to `\plugins` folder of Neo4jDB.
I... |
2018/03/15 | 683 | 2,263 | <issue_start>username_0: What is the fastest way to search a list whether or not it has an element that begins with a specified string, and then return the index of the element if it's found.
Something like:
```
mylist=['one','two','three','four']
mystring='thr'
```
It should return `2`.<issue_comment>username_1: Y... |
2018/03/15 | 303 | 1,263 | <issue_start>username_0: I hope I can make sense with this question
is it possible to alter your text label within Angular .html layout depending on some criteria in your query? For example below, possibly I'd like to interactively alter the "placeholder="Service Date" to something other than 'Service Date', depending... |
2018/03/15 | 296 | 1,188 | <issue_start>username_0: I am using Anonymous Auth in my firebase webapp and today my uid changed. It just so happened to be 30 days since my anonymous account was created, so I am assuming that all anonymous account sessions expired after 30 days. [related](https://github.com/firebase/firebase-simple-login/blob/master... |
2018/03/15 | 309 | 1,188 | <issue_start>username_0: I have a .js file in my Angular's assets folder with this format:
```
;(function($){
$.someFunction() {...}
})(jQuery)
```
**Question**: It possible to call functions from my .js file from a Typescript file?
Note: I'm avoiding to export javascript functions in a typescript file, I wan... |
2018/03/15 | 421 | 1,572 | <issue_start>username_0: I could use some help figuring out what's the problem with running the development server for one of my django projects. When I run `python managy.py runserver`, I get an error that ends with this:
`OperationalError: could not connect to server: Connection refused
Is the server running on hos... |
2018/03/15 | 414 | 1,415 | <issue_start>username_0: I tried to copy and paste an example from NetworkX package documentation.
This is the example:
```
>>>G = nx.path_graph(5)
>>> path = nx.all_pairs_shortest_path(G)
>>> print(path[0][4])
[0, 1, 2, 3, 4]
```
Unfortunately, instead of the expected output, I get the following error message:
``... |
2018/03/15 | 1,363 | 5,180 | <issue_start>username_0: I have recently started using Node.js/Express. I understand an A-Sync call must complete before it can move on. In my code there are three different end points I need to hit.
As I have taken A-Sync into account I have tried to code it so it does them in order they are presented.
However it h... |
2018/03/15 | 780 | 1,683 | <issue_start>username_0: I need to append a datetime object to my POSIXct element. Some sampledata:
```
my_chr<-c('2017-02-19 06:00','2017-03-10 06:00','2017-04-15 06:00')
myPSX<-as.POSIXct(my_chr,format='%Y-%m-%d %H:%M',tz='UTC')
PSXappend<-as.POSIXct('2017-08-09 06:00',format='%Y-%m-%d %H:%M',tz='UTC')
```
But som... |
2018/03/15 | 949 | 3,078 | <issue_start>username_0: I'm trying to connect to amazon athena using JDBC. As I didn't find the *AthenaDriver* repository on maven, I created it myself on my [github](https://github.com/raphael-psr/maven-repository). Basically what I'm doing is this:
pom.xml:
```
mvn-rep
maven repository
https://github.com/rapha... |
2018/03/15 | 787 | 2,909 | <issue_start>username_0: I am trying to use the Django package: [Django Filter](https://github.com/carltongibson/django-filter)
I installed it via Pip, made sure I was running supported versions of Python(3.6), and Django(2.0), but whenever I try to run my application, I get the following error:
```
class Table1(mode... |
2018/03/15 | 432 | 1,464 | <issue_start>username_0: Say I have a text file `123.txt`
```
one,two,three
four,five,six
```
My goal is to capitalize the first character of each line by using `Get-Culture`. This is my attempt:
```
$str = gc C:\Users\Administrator\Desktop\123.txt
#Split each line into an array
$array = $str.split("`n")
for($i=... |
2018/03/15 | 887 | 3,014 | <issue_start>username_0: I've been researching for a while about how to replace the item if it's already exist inside state array but I couldn't find a propitiate solution
<https://codesandbox.io/s/4xl24j7r69>
```
import React from 'react';
class App extends React.Component {
constructor(props) {
super(props... |
2018/03/15 | 878 | 3,055 | <issue_start>username_0: I need a program that asks the user to introduce up to 10 names (to end, the user could type "fim" [that is end in Portuguese]).
My current problem is how to terminate the program if the user reach 10 names.
Here is my main function:
```
public static void main(String[] args) {
Scanner ... |
2018/03/15 | 8,096 | 24,862 | <issue_start>username_0: I am using Spring JPA and postgres database. I have created the following table:
```
CREATE TABLE public.book
(
id bigint NOT NULL DEFAULT nextval('book_id_seq'::regclass),
title character varying(60) NOT NULL,
year date,
publisher character varying(30),
author bigint[] NOT NULL,
c... |
2018/03/15 | 2,020 | 8,055 | <issue_start>username_0: Is there any way to show RDLC Local ReportViewer control in asp.net core webpage?
To show a ReportViewer, on a traditional WebForms application, the below code works.
```
```
I have already tried and tested the below components. The results are given below.
1. [ReportViewerForMvc](https://... |
2018/03/15 | 1,886 | 7,629 | <issue_start>username_0: i have a tab one tab has the ck editor and the other tab has the preview
so i would like to extract text from ck editor to the preview part(preview part is nothing but a div)
```
Editor
Preview
```
i have tried doing this but with no luck
**Script**
```
var editor = CKEDITOR.re... |
2018/03/15 | 515 | 1,755 | <issue_start>username_0: When using `var years = new Date().setFullYear(new Date().getFullYear())` I am getting a 13-digit number in return. (`1521150199880`)
The entire code block is as follows:
```
function changeYear(value) {
var years = new Date().setFullYear(new Date().getFullYear());
alert(years)
if (value < 0)... |
2018/03/15 | 976 | 3,799 | <issue_start>username_0: I am new to multithreading. I have a volatile variable currentPrimeNo and it will print the next prime number as implemented in run method for every new thread. But everytime I am getting currentPrimeNo as 0 for every thread. How should I keep the global variable currentPrimeNo updated?
```
pu... |
2018/03/15 | 714 | 2,712 | <issue_start>username_0: I'm creating my first game "Endless Runner" and my problem is in the code, I don’t need to destroy the new object, I need to transfer them to the old place.
```
public class GenerateEnv1 : MonoBehaviour {
public GameObject []EnvTile;
float tileZ = 29.31f;
// Use this for initiali... |
2018/03/15 | 456 | 1,650 | <issue_start>username_0: In my project using Entity Framework, I have a bunch of functions that look almost exactly alike, so I want to created a generic method they call:
```cs
private IHttpActionResult GetData(DbSet data)
```
The problem I'm having is that the `data` parameter is saying `TEntity` has to be a refe... |
2018/03/15 | 538 | 1,967 | <issue_start>username_0: I want to make a Chrome Bookmarklet which open a new tab with specific action.
To be more exact I want to have a fixed URL like `"https://www.blablabla.com/search="` inside the bookmarklet and when I press it, I want a popup window to appear with an input field.
When I type something in the i... |
2018/03/15 | 788 | 2,595 | <issue_start>username_0: My question is why `x.proc(z)` below does print 57 instead of printing 39 ?
```
class X
{
protected int v=0;
public X() {v+=10; System.out.println("constr X");}
public void proc(X p) {System.out.println(43);}
}
class Y extends X
{
public Y() {v+=5;System.out.println("constr Y"... |
2018/03/15 | 432 | 1,133 | <issue_start>username_0: I have this array of objects
```
[{
"A": "thisA",
"B": "thisB",
"C": "thisC"
}, {
"A": "thatA",
"B": "thatB",
"C": "thatC"
}]
```
I'm trying to get this format as an end result: `[["thisA","thisC"], ["thatA","thatC"]]`
I'm trying with a for loop
```
var arr = [],
... |
2018/03/15 | 635 | 1,700 | <issue_start>username_0: I am getting an array error out of bounds issue. I am trying loop through a multi-dimensional array and add the value from the formula to each element. How do i fix the loop so i jump out of the array bounds.
```
z=int(4.3/7.9)
V =51
T =51
r = 1
c = 1
a=[[0]*c for i in range(r)]
for r in range... |
2018/03/15 | 821 | 2,723 | <issue_start>username_0: I am pretty new to ionic and I tried to build my app, but it failed, so I runned “cordova requirements” and I got this error:
```html
$ cordova requirements
Android Studio project detected
Requirements check results for android:
Java JDK: installed
Android SDK: installed true
Android tar... |
2018/03/15 | 1,638 | 5,839 | <issue_start>username_0: My app's `urls.py` is:
```
from django.urls import path
from . import views
app_name = 'javascript'
urlpatterns = [
path('create_table', views.create_table, name='create_table')
```
My `views.py` is:
```
def create_table(request):
row_data = "this is row data"
context = {'row_d... |
2018/03/15 | 660 | 2,653 | <issue_start>username_0: I'm trying to log out of my application that's using AWS Cognito by calling their logout [endpoint](https://docs.aws.amazon.com/cognito/latest/developerguide/logout-endpoint.html). I'm not using the AWS SDK because as far as I can tell, it does not yet cover oauth app integrations and sign in u... |
2018/03/15 | 518 | 2,022 | <issue_start>username_0: I have more then one property I need to grab, that starts with the same prefix but I can only get the exact value by key for `ModelBindingContext.ValueProvider`. Is there a way to grab multiple ValueProviders or iterate the `System.Web.Mvc.DictionaryValueProvider`?
```
var value = bindingCont... |
2018/03/15 | 629 | 1,542 | <issue_start>username_0: i want to paste the values from a vector to the column names of a data frame. Suppose that the file has 4 columns and the tmp2 vector has 4 values.
The for loop works perfectly fine(the new colnames is the value of tmp and the value of tmp2 together) but i want to try the same with an apply fam... |
2018/03/15 | 1,399 | 3,918 | <issue_start>username_0: I came here from [Stackover Topic](https://stackoverflow.com/questions/49308242/my-excel-macro-is-working-extremely-slow/49308558?noredirect=1#comment85620443_49308558) to doing faster macro. I got answer but this code not working and i am asking to you, (i tried to fix)
```
Sub Faster_Meth... |
2018/03/15 | 774 | 3,057 | <issue_start>username_0: I'm trying to figure out some issue I'm having.
Basically what my issue is, is that the values that are being returned by my methods aren't right.
I have the print line statement just to be sure it's working but it always returns `1`, even when I call to another method that should return a S... |
2018/03/15 | 627 | 2,091 | <issue_start>username_0: Question
--------
When doing an update-join, where the `i` table has multiple rows per key, how can you control which row is returned?
Example
-------
In this example, the update-join returns the last row from `dt2`
```
library(data.table)
dt1 <- data.table(id = 1)
dt2 <- data.table(id ... |
2018/03/15 | 2,112 | 7,092 | <issue_start>username_0: I have a system that is generating very large text logs (in excess of 1GB each). The utility into which I am feeding them requires that each file be less than 500MB. I cannot simply use the split command because this runs the risk of splitting a log entry in half, which would cause errors in th... |
2018/03/15 | 765 | 2,707 | <issue_start>username_0: **I am using Laravel 5.6.7 and vue.js**
**Validation Message**
When the validation works in vue.js, it says "The User Name field is required.". Can it be "Please enter user name"? Can I use two custom error messages for same field? Example
>
> 1. Required: Please enter username.
> 2. Alpha:... |
2018/03/15 | 403 | 1,379 | <issue_start>username_0: I've a class like the following one:
```
class BigButton : public QWidget {
Q_OBJECT
public:
BigButton(QWidget* parent = nullptr);
virtual ~BigButton() = default;
void setSvgImagePath(const QString& imagePath);
void setLabel(const QString& label) override;
private:
QLabel* m_l... |
2018/03/15 | 2,502 | 7,305 | <issue_start>username_0: I am new to C language. I am trying to implement the formula `(r to power of (-3/2)) * exp(t*(r-1/r)`. I am using `pow` function but when I keep this equation in for loop it continuously implementing the loop saying that `"pow domain error"`. I want the increment in for loop to be of `0.2`. Ple... |
2018/03/15 | 431 | 1,411 | <issue_start>username_0: There are a lot of questions on how to delete all rows older than 30 days but i can't find anything same with mine so i can fix it
i need to delete some records of messages that are older than 30 days, the column name with the date is named sentOn and the rows in that column looks like this 20... |
2018/03/15 | 509 | 1,871 | <issue_start>username_0: Is it possible to set an emptyText just like I did with a title ?
```
me.myForm.down('#field').setTitle('New Title');
{
xtype: 'filefield',
width: 490, ... |
2018/03/15 | 172 | 494 | <issue_start>username_0: I Have a date thats 12/1/2018 and i want to switch it to 2018/12/01 and im using carbon but im unsure on how to do this.
I've tried using the parse method and carbon seems to confuse me and i get random errors.<issue_comment>username_1: solved it, i used:
```
Carbon::parse($input)->format('Y-... |
2018/03/15 | 455 | 1,595 | <issue_start>username_0: I'm looking for a way to get the type information of the parameters of a function passed into the constructor.
```
export class Test {
constructor(
test: ((... params : any[]) => T) | (( ... params : any[] ) => Promise
) {
// Convert function or promise to promise
this.test = this.test = ... |
2018/03/15 | 386 | 1,482 | <issue_start>username_0: Mobile browsers (chrome, ff, safari) are displaying a site's styles for tablet-size breakpoints from on my mobile phone? I'm using [Bootstrap 4](https://getbootstrap.com/) along with some custom styles.
From the desktop everything in Chrome, FF, and Safari work fine when resizing the screen. H... |
2018/03/15 | 1,192 | 3,123 | <issue_start>username_0: I've tried several methods to get this working and nothing works. So, I'll give my entire process here.
I have a dataframe that I'm trying to count 1 column of. The data is stored in a csv file. Here's my current method of importing it into a dataframe:
```
import pandas as pd
df = pd.read_cs... |
2018/03/15 | 360 | 1,640 | <issue_start>username_0: Is there any good way to use multiple wildcard certificates with single Apache 2 `VirtualHost`?
I have one IP based VirtualHost which is hosting websites from multiple domains. Each domain has wildcard certificate and I have been trying a way to make as compact as possible configuration file ... |
2018/03/15 | 424 | 1,753 | <issue_start>username_0: I'm not very familiar with modules in Coq, but it was brought up in a recent question I asked. I have the following code.
```
Module Type Sig.
Parameter n : nat.
Definition n_plus_1 := n + 1.
End Sig.
Module ModuleInstance <: Sig.
Definition n := 3.
End ModuleInstance.
```
Coq complains abo... |
2018/03/15 | 738 | 2,418 | <issue_start>username_0: I am getting error with
```
static propTypes = {}
```
The error:
>
> Module parse failed: Unexpected token (6:21) You may need an
>
> appropriate loader to handle this file type.
>
>
>
Here is my .babelrc
```
{
"presets": ["es2015", "react"],
"plugins": ["transform-es2015-arro... |
2018/03/15 | 651 | 2,161 | <issue_start>username_0: I have a String in Java:
```
Hello-World. My phone number is 333-333-333
```
I want to remove dash characters occurring between string but not the digits like as in phone number. My expected output is:
```
Hello World. My phone number is 333-333-333
```<issue_comment>username_1: **Step : ... |
2018/03/15 | 661 | 2,607 | <issue_start>username_0: I'm writing a base class which contains the httpClient. It is used to make REST api calls. The httpClient variable is set correctly if defined in constructor, but not in private variable.
Here's my sample code:
```
@Injectable()
export class MyBaseClass implements {
private httpClient = Htt... |
2018/03/15 | 1,492 | 4,283 | <issue_start>username_0: I recently reinstalled node.js (latest version, 9.8.0) on my computer (running windows 10) as it started to glitch out.
The problem is, now npm doesn't work. For example, upon entering `npm` in cmd, I get the error:
```
Error: EPERM: operation not permitted, mkdir 'C:\Program Files (x86)\Nodi... |
2018/03/15 | 612 | 2,412 | <issue_start>username_0: I read in the official Airflow documentation [the following](https://airflow.apache.org/configuration.html#scaling-out-with-celery):
[](https://i.stack.imgur.com/BeHip.png)
What does this mean exactly? What do the authors mea... |
2018/03/15 | 692 | 2,596 | <issue_start>username_0: I want to know if I can look for multiple locations using the google maps api. For example, I want to find restaurants and museums using one url
"<https://maps.googleapis.com/maps/api/place/textsearch/json?query=restaurants+in+Manhattan&key=>", so I can use the same JSON file instead of duplic... |
2018/03/15 | 460 | 1,465 | <issue_start>username_0: I have this simple array with 2 elements which is being converted into json format:
```
echo '['.json_encode(array("name" => "FRENCH POLYNESIA", "name" => "POLAND")).']';
```
The result is: `[{"name":"POLAND"}]`
In my case I need this result: `[{"name": "FRENCH POLYNESIA"},{"name": "POLAND"... |
2018/03/15 | 1,290 | 4,185 | <issue_start>username_0: Upon submitting the form, I want to capture only the values of the fields that have been changed.
Using the valueChanges function on the form captures every field of the form and it can't be traversed as an array as I've tried to do in my code below.
I'm not sure of any other way the 'before... |
2018/03/15 | 815 | 2,609 | <issue_start>username_0: I have problem in python to read a line that contains int separated with space.
for example I want to get input:
```
8 9 3 2 7 5
```
and save it into an Array like:
```
A = [8, 9, 3, 2, 7, 5]
```
I tried the following code but it has syntax error:
```
A = [input().split()]
```<issue_co... |
2018/03/15 | 644 | 2,064 | <issue_start>username_0: I have this code:
```
...............................................
'Detalle' => array()
];
foreach ($cart as $line => $item) {
//check condition
if (strtolower($item['description']) === 'something') {
$cond = true;
} else {
$cond= false;
}
$ab['Detalle'][]=arra... |
2018/03/15 | 1,575 | 5,473 | <issue_start>username_0: I am using Spark's multiple inputstream reader to read message from Kafka. I am getting below mentioned error. If I don't use multiple input stream reader , I am not getting any error. To achieve performance, I need to use parallel concept, testing purpose I using only one.
**Error**
```
jav... |
2018/03/15 | 1,866 | 6,628 | <issue_start>username_0: So I am trying to verify the hashed password of the user from MySQL DB but `password_verify` doesn't seem to be working. I feel like maybe it is something I am doing wrong.
Hashing and Storing the Password:
```
// Set POST variables
$firstname = mysqli_real_escape_string($conn, $_POST['firstn... |
2018/03/15 | 683 | 2,511 | <issue_start>username_0: I got an email from google about that the Kubernetes project recently disclosed new security vulnerabilities.
was advised to upgrade the nodes as soon as the patch becomes available which is with the new version releases by March 16.
How soon should I do it or how long can I wait ? Because I ... |
2018/03/15 | 785 | 3,046 | <issue_start>username_0: We have a solution with a pair of ClickOnce applications that are signed and published as part of the build. We have an on-premise TFS 2017 server, but until recently our projects were all being built using VS 2015. Under this scenario, we were able to build, sign, and publish the ClickOnce app... |
2018/03/15 | 766 | 3,153 | <issue_start>username_0: I'm starting to design an Android Application in which I need to be continuously listening for new commands and perform different actions based on the command received.
So let's see an example of what I'd like to avoid if possible:
```
Public void onCommandReceived(String command)
{
Swit... |
2018/03/15 | 767 | 2,966 | <issue_start>username_0: How can I make the border radius towards inside?
```
.circle {
width:100px;
height:100px;
background-color:solid red;
border-radius:-50px 50px -50px [enter image description here][1]50px;
}
```
I know -50px is not acceptable but I just give a theoretical example.
Please see t... |
2018/03/15 | 1,198 | 3,884 | <issue_start>username_0: I have a table of data such that specific columns of the information needs to be converted from a horizontal layout and inserted below the initial row. To Make things more complex any column with a value of zero needs to be ignored and each row may have a different column with a zero.
I have ... |
2018/03/15 | 947 | 3,448 | <issue_start>username_0: I want to compare two objects of Manager using three variables, deptNum, firstName and then lastName. I have set up these objects to be compared using a series of if and if-else statements. The error I am receiving is that the valReturn variable may not have been initialized, which I assume mea... |
2018/03/15 | 816 | 2,787 | <issue_start>username_0: I want to create a dataframe that has historical values with the values I calculated with.
I have df1 as below:
```
df1:
A B
0 2.0 3.0`
1 4.0 6.0
2 6.0 9.0
```
I calculated mean of df1 as below:
```
m1 = df1.mean(axis=0)
m1:
A 4.0
B 6.0
```
'm1' is mean of entire dat... |
2018/03/15 | 836 | 3,189 | <issue_start>username_0: I'm trying to use try/catch method to prevent the app from crashing whenever there is no value provided by the user and even with this try catch, it still says error.
Thank you in advance to those kind souls who will reply
```
editText = (EditText) findViewById(R.id.editText);
textVie... |
2018/03/15 | 407 | 1,244 | <issue_start>username_0: I want to get all records of matching wiht query, I get multiple params and save them in query like that
```
query = Hash.new
query[:user_id] = params["user_id"] if query["user_id"]
query[:vehicle] = params["vehicle_id"] if query["vehicle_id"]
trips = Trip.where(query)
```
I also want to add... |
2018/03/15 | 464 | 1,491 | <issue_start>username_0: I have a table with 3 columns `id, type, value` like in image below.
[](https://i.stack.imgur.com/rnZna.png)
What I'm trying to do is to make a query to get the data in this format:
```
type previous current
month-1 666 999
month-2 ... |
2018/03/15 | 935 | 2,489 | <issue_start>username_0: I am trying to find a way to be able to enable/disable a USB port on my computer via command prompt or powershell.
I have looked EVERYWHERE and the only possible solution I have found is by using the devcon disable command. However, when I try to use it, I always get this "Disable failed" in ... |
2018/03/15 | 612 | 1,738 | <issue_start>username_0: I am having a hard time trying to create a scatter plot that will show points of different classes with different colors and the corresponding label of the class in the legend.
I have 52 samples, 2 features and 3 classes(class 1,2 and 3). The data are in `X` array and the labels in `labels` ar... |
2018/03/15 | 569 | 1,799 | <issue_start>username_0: I have two **sibling** components, one of which is a modal with a form (to add/edit users) and the other is a table of users. When a user is added or updated, I need to **sibling** table to be updated.
I have tried to trigger the change in my `onSubmit()` in the modal/form component, but it do... |
2018/03/15 | 276 | 1,150 | <issue_start>username_0: I have been using SSIS for VS 2017 for about a month without troubles.
Suddenly, when I try to create a new SSIS project the following error dialog box appears:
>
> Could not load file or assembly 'Microsoft.DataTransformationServices.Wizards' or one of its dependencies. The system cannot f... |
2018/03/15 | 610 | 1,704 | <issue_start>username_0: I have a list of lists, and when I try to modify one entry I get an error. As an example here is a dummy code that produces the error:
```
list1 <- list(a = 2, b = 3)
list2 <- list(c = "a", d = "b")
mylist <- list(list1, list2)
(mylist[[1]])[[1]] <- 555
```
I can avoid this ... |
2018/03/15 | 538 | 1,698 | <issue_start>username_0: I'm trying to change the `v-model` of a component by the parent component most I'm not getting.
In the parent component I have a `showProgress` variable, I want it when I change it to `true` the child `v-model` switch to `true`.
**ProgressModal.vue**
```
export default {
name: 'progress-... |
2018/03/15 | 1,202 | 4,358 | <issue_start>username_0: I try to replace ">>" with "hello". It would not work. Why? Any hint appeciated. Thanks.
```
a string with >> in it.
Replace ">>" with "hello"
function myFunction() {
var str = document.getElementById("demo").innerHTML;
var res = str.replace(">>", "hello");
document.getElementById("demo... |
2018/03/15 | 423 | 1,452 | <issue_start>username_0: I have configured some vhost like:
```
ServerName test.mywebsite.com
ServerAlias test.mywebsite.com
DocumentRoot /hosting/test
AllowOverride All
Order Allow,Deny
Allow from All
Require all granted
SSLEngine on
SSLCertificateFile /usr/local/apache/ssl/mywebsite.com.pem
SSLCertifi... |
2018/03/15 | 1,057 | 4,115 | <issue_start>username_0: I am a complete newbie in Flutter, but I already like it.
The question is:
why is the column not expanding to the full height?
[code is on gist.github](https://gist.github.com/kitttn/bac291c4856cabb1114aefe929c0ac90)
<issue_comment>username_... |
2018/03/15 | 920 | 2,836 | <issue_start>username_0: I'd like to save a calculated histogram from a file so that I can reopen it without having to recompute it, but I'm not sure how I would go about saving and then reading it again.
```
image_path = "/Users/..../test.jpg"
image = cv2.imread(image_path, 0)
if image is not None:
hist = cv2.c... |
2018/03/15 | 620 | 1,947 | <issue_start>username_0: How can i grep the first 3 letters of the below output and echo the result.
example:
```
more /etc/group |grep -i 1900
```
i get the below result.
```
h10shm:x:1900:h10adm
```
I just want the first 3 letters (in above output h10) of the about output and echo the output.
Regards,
Satvik... |
2018/03/15 | 4,048 | 13,142 | <issue_start>username_0: Is it possible to use any datasets available via the `kaggle` API in Google Colab? I see the Kaggle API is used in [this Colab notebook](https://colab.research.google.com/drive/1eufc8aNCdjHbrBhuy7M7X6BGyzAyRbrF), but it's a bit unclear to me what datasets it provides access to.<issue_comment>us... |
2018/03/15 | 4,238 | 13,894 | <issue_start>username_0: This is my jQuery code.
```
function hideawsbutton() {
$("#aws-display-table tbody tr").each(function(index){
parentdata = $.trim($(this).children('td:nth-child(7)').html());
console.log('parentdata ==> ' + parentdata);
if( parentd... |
2018/03/15 | 712 | 2,480 | <issue_start>username_0: I am trying to label a slider as in [jQuery UI Slider Labels Under Slider](https://stackoverflow.com/questions/10224856/jquery-ui-slider-labels-under-slider). I am not dealing with a ui-slider however, but rather with the slider widget from oTree.
The excellent answer to the question [Mandator... |
2018/03/15 | 346 | 1,250 | <issue_start>username_0: I've saved a .pgpass (properly configured) file in
```
`/Users/username/`
`/anaconda`
`/anaconda/bin/`
```
but the postgresql connection still requests my username and password. I'm using Anaconda and Spyder IDE. Where should I save the .pgpass file?<issue_comment>username_1: Check permiss... |
2018/03/15 | 2,684 | 10,597 | <issue_start>username_0: I'm trying to port some old VB6 code to C# and .NET.
There are a number of places where the old code uses a `RecordSet` to execute a SQL query and then loop through the results. No problem so far, but inside the loop the code makes changes to the current row, updating columns and even deleting... |
2018/03/15 | 439 | 1,359 | <issue_start>username_0: I am trying to find a regular expression which basically matches start of a string but not having a specific character after that. By this I should be achieving same level routes.
Example : Lets say I have the following strings and I need to get routes starting from LAX with no stops.
1. LAX-... |
2018/03/15 | 834 | 2,153 | <issue_start>username_0: I'm new in python and need get a value fron anoter value of same block, this is an example of JSON:
```
{
u'Name': u'test',
u'ProjectPath': u'/data/compose/test_pz4u6zug8swd2isfkcrzh9kjl',
u'ResourceControl': {
u'ResourceId': u'test',
u'UserAccesses': [
],
u'Administrato... |
2018/03/15 | 339 | 1,116 | <issue_start>username_0: It's technically very simple code of displaying two images next to each other:
```html


```
However, the images do not fill the `col` container width 100% (as evident by the still visibile backgro... |
2018/03/15 | 1,188 | 3,996 | <issue_start>username_0: Im not very knowledgable when it comes to this, but I am learning. I have tried everything I can think of to add a variable to this, so that I dont have to edit this file. I wish to put the API key in a separate config file just to keep things neat and easier to make changes rather than having ... |
2018/03/15 | 647 | 2,413 | <issue_start>username_0: Require attribute **on the input field** doesn't work when i implement google recaptcha. When the input is empty, the form is supposed not to be submitted. But the form gets submitted when input is empty. I followed [google's guide](https://developers.google.com/recaptcha/docs/invisible#auto_re... |
2018/03/15 | 654 | 2,402 | <issue_start>username_0: I am using this, to make a function call in smart contract via metamask in react:
```
export default class EthereumForm1 extends Component {
constructor (props) {
super (props);
const MyContract = window.web3.eth.contract(ContractABI);
this.state = {
ContractInstance: MyCo... |
2018/03/15 | 594 | 2,153 | <issue_start>username_0: sorry if the title isn't great but what I want to do is this:
```
componentDidMount() {
axios.get('http://thecatapi.com/api/images/get?format=xml&results_per_page=9')
.then((response) => {
parseString(response.data, (err, result) => {
result.response.data[0].ima... |
2018/03/15 | 488 | 1,783 | <issue_start>username_0: I'm using gcloud on Windows to develop GAE stuff. The network here has a MITM root certificate by design so all SSL traffic can be snooped; I can install the root cert easily into a browser or Windows certificate store, but can't successfully get this work for Python, or more specifically, gclo... |
2018/03/15 | 364 | 1,404 | <issue_start>username_0: I'm trying to load a serialized object within the class using a method like this one:
```
private void loadCatalog(MyClass myClassNew)
{
this = myClassNew;
}
```
So I have this method in my ***MyClass***, and I receive as a parameter an object having the type of ***MyClass***. How can I... |
2018/03/15 | 298 | 1,152 | <issue_start>username_0: When I call Hexo clean in powershell it shows
Deleted Database
Delete public folder
When I call Hexo generate and Hexo Server --open at localhost:4000 the site is broken and only display the text "Cannot GET /".
What am I missing?
Any help is appreciated.<issue_comment>username_1: You will g... |
2018/03/15 | 285 | 919 | <issue_start>username_0: I'm creating a basic line graph with the following data:
```
Jan 2015 $1
Feb 2015 $2
Mar 2015 $3
```
My monthly data is all inclusive of prior months, so it basically represents everything that has happened in the past as well as the current month results.
In Tableau, when I set ... |
2018/03/15 | 326 | 1,215 | <issue_start>username_0: I use TBS and OpenTBS for parsing office templates in a PHP script. Files of type `rtf` or `txt` are processed with TBS and those of types `docx` or `pptx` with OpenTBS.
The merged files are used in an office context for letters, submissions and the lot, so I want tags that were not merged in ... |
2018/03/15 | 1,302 | 4,770 | <issue_start>username_0: I'm porting an SDK written in C++ from Windows to Linux. There are other binaries, but at its simplest, our SDK is this:
* core.dll - implicitly loaded DLL ("libcore.so" shared library on Linux)
* tests.exe - an app use to test the DLL (uses google test)
All of my binaries must live in ***on... |
2018/03/15 | 567 | 1,909 | <issue_start>username_0: The expression `[][[]]` evaluates to `undefined` in JavaScript. My understanding of this was that the compiler sees the second set of `[...]` and interprets that to be an array subscript operator (because you can't have two arrays next to each other).
So the compiler knows that the inner expre... |
2018/03/15 | 1,321 | 4,421 | <issue_start>username_0: Q: Is there a way to choose in the constructor of operatorClass which member object from the container it operates on? (iter->b instead of iter->a)
More detail:
I think I've simplified this as much as I can, but we'll see what the crowd thinks. I have an abstract template class for an algori... |