date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/05 | 360 | 1,206 | <issue_start>username_0: could you please tell me how to show pop up in react, getting an error on button click?
I am getting an error on button click
```
Actions may not have an undefined "type" property. Have you misspelled a constant?
```
here is my code
<https://codesandbox.io/embed/6y402kly73>
```
showSignInP... |
2018/03/05 | 873 | 2,404 | <issue_start>username_0: My website works perfect on `localhost` but when moved to live server which is `Ubuntu 16.04 LTS` I got this error
>
> [Mon Mar 05 11:11:28.968821 2018] [:error] [pid 19322] [client 192.168.127.12:61635] PHP Parse error: syntax error, unexpected '?', expecting variable (T\_VARIABLE) in XXXXXX... |
2018/03/05 | 600 | 2,085 | <issue_start>username_0: As Android [Device Administration](https://developer.android.com/guide/topics/admin/device-admin.html) is going to be [deprecated](https://developers.google.com/android/work/device-admin-deprecation). It will be replaced with [Android Enterprise Mobility Manager(EMM)](https://developers.google.... |
2018/03/05 | 610 | 1,813 | <issue_start>username_0: I am getting a list of dates in the format
```
Date
20180223
20180120
20180201
```
---
I want to get the week numbers for these in a new column
```
Date Week_num
20180223 8
20180120 3
20180210 6
```
---
The code being used to get the date here is :
```
yy... |
2018/03/05 | 671 | 2,643 | <issue_start>username_0: This unit test
```
it('should invoke copy method', fakeAsync(() => {
spyOn(testClipboardService, 'copy');
linkEl = fixture.debugElement.query(By.css('.mat-raised-button')).nativeElement;
linkEl.click();
expect(testClipboardService.copy).toHaveBeenCalled();
}));
```
it suc... |
2018/03/05 | 2,906 | 11,733 | <issue_start>username_0: This is a continuation from my previous [quesion.](https://stackoverflow.com/questions/48948625/not-able-to-open-pdf-in-new-activity) I wanted to open the pdf in the app instead of opening it with third-party apps. I've rewritten the code so that pdf files in `assets` folder can be copied into ... |
2018/03/05 | 2,015 | 5,677 | <issue_start>username_0: I'm new to programming and I have a task to create a table of objects. I have done it already with the following method, but now, I want to create it using the `appendChild` method.
```js
function insertObject() {
var data = [{
"nodeid": 1,
"vendor": "0x0345",
"product... |
2018/03/05 | 1,162 | 4,633 | <issue_start>username_0: I am using react-router-dom v4 and able to send custom data to the new screen using `push(path, state)` and `replace(path, state)` methods in "props.history.location"
I want to send the data back to the previous screen but could not achieve using `go(n)` or `goBack()` or `goForward()`.
How ca... |
2018/03/05 | 757 | 3,161 | <issue_start>username_0: We have time triggered Azure Function deployed on portal to perform some iterative task at specific time. Our azure function uses the database deployed on Azure VM via connection string provided at AppSettings. The function throws following error on running:
>
> MySql.Data: Authentication to... |
2018/03/05 | 2,258 | 8,530 | <issue_start>username_0: i'm about to connect PyQt5 to MySQL. Unfortunately I get the error' Driver not loaded'. Python says the driver's inside:
```
from PyQt5.QtSql import QSqlDatabase
print(list(map(str, QSqlDatabase.drivers())))
```
Answer: ['QSQLITE', 'QMYSQL', 'QMYSQL3', 'QODBC', 'QODBC3', 'QPSQL', 'QPSQL7']
... |
2018/03/05 | 2,256 | 8,682 | <issue_start>username_0: I am trying to create a list in python that is filled with the elements I have selected in Autodesk Maya. However, when I select more than one element, this element gets duplicated. I thing this is a really simple issue because I'm not looping correctly and then an key gets added to my list mor... |
2018/03/05 | 715 | 2,716 | <issue_start>username_0: Why can't I call resolve in the catch block ?
Wanted catch a failed request and try it again in the catch block but
I'm getting resolve is not defined. I'm inside of the promise why cant I call resolve
```
module.exports.makeRequest = function(ID,requestAttempts) {
return Promise()
.then(... |
2018/03/05 | 807 | 2,948 | <issue_start>username_0: I have been working in C++ and Java and in both the languages I have often times come across a strange way of variable assignment, using bitwise operators. Instead of what could have been a simple assignment using the assignment operator it is complicated using bit operators like left shift.
Fo... |
2018/03/05 | 1,084 | 3,547 | <issue_start>username_0: Lets say we have a simple database table `AUDIT_LOG` containing columns `EMPLOYEE_ID` and `LOGIN_DTTM`.
We want only to retrieve the first login of all users that logged in for the day. How can you make a query that does this?
We are using Oracle 12c<issue_comment>username_1: **EDIT**: It is ... |
2018/03/05 | 1,431 | 4,073 | <issue_start>username_0: Data set:
```
CREATE TABLE TEMPERATURES (
CREATED DATE,
ACTUAL_TEMPERATURE FLOAT
);
INSERT INTO TEMPERATURES VALUES
('20170101',12.2),
('20170103',10.1),
('20170112',14.2),
('20170115',12.5),
('20170205',20.8),
('20170122',16.7),
('20170123',7.8),
('20170130',12.5),
('20170201',13.7),
(... |
2018/03/05 | 585 | 1,666 | <issue_start>username_0: I have a dataframe that I would like to plot, generated by the following code.
```
df_rn1 = as.data.frame(cbind(rnorm(40, 1, 1), rep("rn1", 40)))
df_rn2 = as.data.frame(cbind(rnorm(40, 10, 1), rep("rn2", 40)))
df_rn3 = as.data.frame(cbind(rnorm(40, 100, 1), rep("rn3", 40)))
df_test = rbind(df... |
2018/03/05 | 336 | 1,306 | <issue_start>username_0: I've recently run into this behaviour and whilst I can work around it, I'm quite curious as to why it occurs. There doesn't seem to be much documentation explaining why this happens.
Consider the following two snippets:
```
SELECT REPLACE('hello world', 'world', NULL)
SELECT REPLACE('hell... |
2018/03/05 | 492 | 1,457 | <issue_start>username_0: I want to split a string in python based on multiple words, let's we have a SQL query
`select a1 from table1 as tb1 join table2 as tb2 on tb1.a2 = tb2.a2 where tb1.a3 = 'something'`
And now I want to split this string by `from`, `join`, `where` in one go and want to get a list of
`{
select a... |
2018/03/05 | 496 | 1,809 | <issue_start>username_0: Is it possible to move a `vector` to a `vector` without copying it and without relying on `reinterpret_cast<>`? I.e.
```
vector get() {
return ...;
}
vector getConst() {
return whatgoeshere(get());
}
```<issue_comment>username_1: **No.**
Although a `T*` may be trivially converted to a `co... |
2018/03/05 | 582 | 2,528 | <issue_start>username_0: <NAME>'s GOF design pattern book says:
[](https://i.stack.imgur.com/uP6M9.png)
Whereas the word application can create several documents on its own as shown below:
[. I would like to open these 3 web drivers at the same time when I run the *mainscript.py*. I used multiprocessing but you can use whatever you want.
Now it opens *bot\_1.py* and then *bot\_2.py* and then *bot\_3.py*.
**bot\_1.py**
```... |
2018/03/05 | 984 | 3,669 | <issue_start>username_0: I have PL/SQL table-type and procedure as below. It is just part of code. While populating PL/SQL table type variable I am getting exception.
```
CREATE OR REPLACE TYPE OBJ_EMPLOYEE AS OBJECT
(
EMPID NUMBER(12) ,
EMPLOYEENAME VARCHAR2(100) ,
/* mo... |
2018/03/05 | 586 | 2,047 | <issue_start>username_0: What does private MesgBean bean mean?Does it create the object called bean of the class MesgBean? Or it only define it is the private?
<issue_comment>username_1: PyTest with the `xdist` extension is one option:
<https://docs.p... |
2018/03/05 | 1,959 | 4,061 | <issue_start>username_0: So here is my problem. I have 2 frequencies, and I generate a list of tuple of frequencies nearby.
```
f1 = 20
f2 = 50
f = [(a, b) for a in range(f1-3, f1+4) for b in range(f2-3, f2+4)]
```
Output:
```
[(17, 47), (17, 48), (17, 49), (17, 50), (17, 51), (17, 52), (17, 53), (18, 47), (18, 48)... |
2018/03/05 | 1,771 | 4,908 | <issue_start>username_0: If I have a hourly data set with 3 variables (time, a, b) and want to take a look at the standard deviation of "b" on specific days with outliers in "a", how can I do it?
So the idea is: If a value of variable "a" is above a certain threshold e.g. 99 as in the following example, what is the st... |
2018/03/05 | 1,589 | 6,412 | <issue_start>username_0: I have a `recyclerview` having a `cardview` with only a button in it:
```
xml version="1.0" encoding="utf-8"?
```
And i am trying the following inside my onCreateViewHolder
```
@Override
public PersonViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View v = LayoutInflater... |
2018/03/05 | 1,267 | 4,041 | <issue_start>username_0: I'm trying to create a [`DateTimeFormatter`](https://docs.oracle.com/javase/9/docs/api/java/time/format/DateTimeFormatter.html) to match the following example (it's actually slightly more complex than this but that shouldn't matter).
```
20180302-17:45:21
```
I've written the following but i... |
2018/03/05 | 649 | 2,549 | <issue_start>username_0: I use spring-boot-starter-webflux, reactor-test and spring-boot-starter-test 2.0.0.M7 in my project. In my `RepositoryInMemory.class` has a `List` where you can add String values by `saveName(Mono name)` method. You can also ask all the values that are added to the list by `getAllNames()` metho... |
2018/03/05 | 691 | 2,955 | <issue_start>username_0: We currently use MySQL 5.7 and store passwords via the [mysql-config-editor](https://dev.mysql.com/doc/refman/5.7/en/mysql-config-editor.html).
It stores the login-path in an encrypted file, `.mylogin.cnf`.
MariaDB does not support this functionality ([and considers it a bad idea](https://mari... |
2018/03/05 | 545 | 1,919 | <issue_start>username_0: ```
class Per
def prkey(somevar)
@card = somevar
end
def self.some_class
puts self
end
def self.new
@card = 'ss'
end
end
Per.some_class
Per.new.prkey('hi')
```
**I got the error :**
>
> undefined method `prkey' for "ss":String (NoMethodError)... |
2018/03/05 | 1,507 | 5,131 | <issue_start>username_0: I am trying to set `users: []` within the App component to the response of `fetch`.
When I try to use `this.setState` to change the value of `users:`, my code stops executing and `this.state.users` remains empty.
Not quite sure whats going on, am I using `componentWillMount` incorrectly ? (So... |
2018/03/05 | 513 | 1,872 | <issue_start>username_0: Some of my people are ninjas, some are not.
If they are not, I'd like to display the `this guy isn't a ninja` message.
Right now, nothing is displaying. Am I using the filter incorrectly?
I'd like to handle this in the view, without adding any new logic to my controller.
```
This guy is ... |
2018/03/05 | 741 | 2,034 | <issue_start>username_0: If I have a very long text file like this:
```
A
A
B
B
A
A
A
B
A
A
B
A
...
```
I'd like to find the number of 'A's in a row (e.g. 1, 2, 3...), and then report how many of each sequence I have.
So the above snippet would give me 3:1, 2:2: 1:1, where the first number is the number of sequenti... |
2018/03/05 | 660 | 1,987 | <issue_start>username_0: I have a local private NPM dependency I reference in my application package.json:
"core-module": "file:///Users/myuser/Documents/projects/core\_module"
When I run "npm install" on my application I want it to run a "npm install" on my local private dependencies (core-module).
It runs the prep... |
2018/03/05 | 1,261 | 3,513 | <issue_start>username_0: I have an AreaMaster Table
[](https://i.stack.imgur.com/nZNDI.png)
If I search "AreaName" Like '%New Kant%'
it should return Most match value (First record in row)
**Suppose**
If I search "Sector 26 Navi" It should return ... |
2018/03/05 | 498 | 1,782 | <issue_start>username_0: I am finding the max number of an element based on data attributes, however I want to convert jquery code to native vanilla js. I have tried to replace $ selector with querySelector of vanillaJS, but it throws an error like this. Is there a way I can convert this to vanilla JS. This is the erro... |
2018/03/05 | 1,098 | 2,633 | <issue_start>username_0: I have dataframe with timestamp as character type in the format `dd-mm-yyyy hh:mm`,
for example:
```
"05-02-2018 06:30"
```
I need output in the format of `mm-dd-yyyy hh:mm`, i.e.:
```
"02-05-2018 06.30"
```
I tried lubridate library with function mdy() and also as.POSIXct
but its... |
2018/03/05 | 449 | 1,681 | <issue_start>username_0: I send a broadcast after i get a push `notification` within my `onMessageReceived()` method.
in BroadcastReceiver's `onReceive()` method I want to display an `AlertDialog` that allows the user to move to another fragment.
The problem is that my `onReceive()` method is called 3 times, instead ... |
2018/03/05 | 1,121 | 3,957 | <issue_start>username_0: I am writing a Unit test for a class that uses `android.util.Base64` and I get this error:
```
java.lang.RuntimeException: Method encode in android.util.Base64 not mocked. See http://g.co/androidstudio/not-mocked for details.
at android.util.Base64.encode(Base64.java)
```
This is the code us... |
2018/03/05 | 1,082 | 2,772 | <issue_start>username_0: I have a dataframe(df) with the following structure:
```
Store Item
S1 I1
S1 I2
S1 I3
S1 I4
S2 I1
S2 I2
S2 I3
S3 I1
S3 I2
S3 I3
S4 I5
```
I was hoping for an approach to get a group/cluster for stores based on the common elements in them, that is the followin... |
2018/03/05 | 967 | 3,347 | <issue_start>username_0: Hi guys i have a simple questions , I'm not the greatest in JavaScript but i was wondering how i can update a total number. I have button were i can add items to cart and that updates fine, so i used the same method to try and update the total price but it only works once and then it wont add a... |
2018/03/05 | 951 | 3,161 | <issue_start>username_0: I have a navbar rendering like a partial.
ex: dashboard/menu
In navbar i have a links like mentor, corporate.
When click on those links, it has render different form partials.
Ex:
```
_menu.html.erb
[mentor](dasboard/settings)
[corporate](dasboard/settings)
```
in settings page:
mentor ... |
2018/03/05 | 665 | 2,134 | <issue_start>username_0: I just joined a new project and stumbled upon the following JavaScript export syntax (global export with alias):
```
export * as actions from './Something.actions.js';
```
The syntax seems to be working, but I've never seen it before and it is marked as an error in visual studio code. Is it ... |
2018/03/05 | 751 | 2,429 | <issue_start>username_0: I'm trying to get some text from a txt file if it exists.
The text file looks like this:
```
"account name","Server name"
"user1","serverX"
"user2","serverY"
"user3","serverZ"
```
Now what I want is when clicking on a button, it gets a value from input box and find in the text file, if it e... |
2018/03/05 | 696 | 1,638 | <issue_start>username_0: I would like to count the number of the "1" blocks in a dataframe based on the LabelID attribute. For example, given the following dataframe:
DF input:
```
eventTime velocity LabelId
1 2017-08-19 12:53:55.050 3 0
2 2017-08-19 12:53:55.100 4 ... |
2018/03/05 | 2,081 | 8,778 | <issue_start>username_0: I have made a certain app in Django, and I know that Django Rest Framework is used for building APIs. However, when I started to read about Django Rest Framework on their website, I noticed that each and every thing in [API Guide](http://www.django-rest-framework.org/)(like request, response, v... |
2018/03/05 | 735 | 2,813 | <issue_start>username_0: If I require a function, how do I stub/mock it in sinon?
```
const { getLastYearData } = require('../../services')
module.exports = async lastYearInfo => {
return getLastYearData(lastYearInfo)
}
```
If I do as below, it works, but I can't get it to work without referencing the object.
`... |
2018/03/05 | 1,496 | 5,117 | <issue_start>username_0: I reckon this is a simple question, but so is my C++ knowledge.
I have a class named Learner:
```
template
class Learner {
T\* \_someRef;
(...)
}
```
And a base class from which objects inherit.
My idea is to have the Learner accept any objects which subclass Base, e.g. Base1, Base2, et... |
2018/03/05 | 1,235 | 3,115 | <issue_start>username_0: Using WordPress and advanced custom fields, the user add or remove up to 10 images into a block. The images sit inline and must stay on one line.
The user is providing all sorts of width and height images and I can't rely on them to edit them carefully. These are client logos.
My aim is that ... |
2018/03/05 | 961 | 2,776 | <issue_start>username_0: I've been working on a program that takes one string as command line input and outputs whether the string made up of the odd numbered characters is a palindrome, but every time I try to run it I get a segmentation fault. I've been up all night and can't figure it out.
```
#include
#include
... |
2018/03/05 | 735 | 2,147 | <issue_start>username_0: I'm trying to rotate table column headers in RMarkdown. Since I don't have an understanding of CSS my attempts so far have proven to be futile.
So, how can I rotate the table column headers?
Here is a minimal example for a table in RMarkdown:
```
---
title: "Untitled"
output:
html_docume... |
2018/03/05 | 1,321 | 4,986 | <issue_start>username_0: I wonder how to avoid hard coding when using table name in Android Room query. I develop in `Kotlin`, but to be honest in this problem it doesn't matter is Java or Kotlin.
Let's see that simple classes:
**DAO interface:**
```
@Dao
interface UserDAO {
@Query("SELECT * FROM USER")
fu... |
2018/03/05 | 505 | 1,606 | <issue_start>username_0: I'm trying to write a Python program to a file in one line of Bash. I am trying this:
```
$ printf "#\!/usr/bin/python3\nprint('hi\!')\nwhatever()" > whatever.py
```
But that gives:
```
#\!/usr/bin/python3
print('Hi\!')
whatever()
```
How can I get it to output:
```
#!/usr/bin/python3
pr... |
2018/03/05 | 2,086 | 8,326 | <issue_start>username_0: I've tried to use fetch to call from backend using react, without libs (such as Axios). So I created this function:
```
export function api(url, method, body, isHeaderContentType,isRequestHeaderAuthentication,header, succesHandler, errorHandler) {
const prefix = 'link';
console.log("url:",pref... |
2018/03/05 | 164 | 654 | <issue_start>username_0: I have a parser(mamba operation) and I need to disable the Audit Trail functionality on start of parser, and enable it again when it ends.
How can I accomplish this? Any help would be appreciated.<issue_comment>username_1: You can disabled it like this:
```
CommonLib.DataContext.ExecuteInUnit... |
2018/03/05 | 169 | 680 | <issue_start>username_0: When dealing with `HttpUrlConnection` in JAVA, are we obliged (or is it recommended) to disconnect each connection we create ? and if we do not close connections, does this implies a network saturation?
Thanks in advance,<issue_comment>username_1: You can disabled it like this:
```
CommonLib... |
2018/03/05 | 2,394 | 4,958 | <issue_start>username_0: I have to write some complex data to a file that can be easily iterable later on.
I have a list of images and for each image I have a list of objects with coordinates for each one of it.
This is my current data format, a list:
```
[[[x_coord, y_coord], [widh, height], rotation],["object_nam... |
2018/03/05 | 666 | 2,320 | <issue_start>username_0: I'm using `enable_if` class member functions to iterate over a variational template argument. Here is a minimal example (without the actual variadic)
```
#include
template class Test {
public:
template typename std::enable\_if*::type test() {}
template typename std::enable\_if*::type tes... |
2018/03/05 | 1,533 | 4,719 | <issue_start>username_0: I have a program in QT which creates a `HDF5` dataset and saves it in disk.
At first I defined this array:
```
int data[dataNumber][dataFilter][dataWidth][dataHeight];
```
where `dataNumber=400000,dataFilter=1,dataWidth=2,dataHeight=2` and in this loop I set a identical values in this array... |
2018/03/05 | 1,112 | 3,566 | <issue_start>username_0: trying to map Object to HttpParams but I want to exclude any parameter that is empty, null or undefined.
```
export function mapToHttpParams(obj: object): HttpParams {
return Object.getOwnPropertyNames(obj)
.reduce((p, key) =>
p.set(key, (typeof obj[key] === 'undefined' || obj[ke... |
2018/03/05 | 666 | 2,497 | <issue_start>username_0: I am trying to pull car information from [the following](https://api.myjson.com/bins/149ex5) API.
but I can't seem to display the information in my tableview...
Any and all help is appreciated!
viewController
```
var hondaList: [HondaModel] = []
override func viewDidLoad() {
//let jsonUrl... |
2018/03/05 | 454 | 1,797 | <issue_start>username_0: i need to select the records of the logged in tea(teachers) I've did a lot of research over this but hit a road block after road block, so I really hope your help in this, many thanks!
Here is my code:
```
$query=mysqli_query($conn, "select * from `app` left join `par` on par.par_id=app.par_... |
2018/03/05 | 865 | 3,132 | <issue_start>username_0: I have pretty big perl script executed quite frequently (from cron).
Most executions require pretty short & simple tests.
How to split **single file** script into two parts with "part two" compiled based on "part 1" decision?
---
Considered solution:
1. using `BEGIN{ …; exit if …; }` blo... |
2018/03/05 | 947 | 2,937 | <issue_start>username_0: Let's see the example code:
```
var limit = 3;
while(limit--){
console.log(limit);
if(limit){
console.log("limit is true");
}else{
console.log("limit is false")
}
}
```
and the output will be:
```
2
"limit is true"
1
"limit is true"
0
"limit is false"
```
There is... |
2018/03/05 | 759 | 1,690 | <issue_start>username_0: **If I have a CSV (info.csv) file below:**
>
> 180101, S1, -1
>
>
> 180101, S2, 15
>
>
> 180102, S4, -5
>
>
> 180103, S1, -5
>
>
> ...
>
>
>
The columns mean "date", "code", "info1" respectively.
I want to convert new code (csv file, newcode.scv) matching in original data.
**suc... |
2018/03/05 | 455 | 1,682 | <issue_start>username_0: When I try to run (debug) functions in Visual Studio 2017 on one of our machines, the following dialog pops up!
[](https://i.stack.imgur.com/791UG.png)
The target framework for the project is `net461`. For some reasons I am n... |
2018/03/05 | 512 | 2,072 | <issue_start>username_0: when I update a record in a MongoDb collection I immediately want to check whether or not all document field values equal `true`. For example, I have created a function that will update a record in my collection:
```
failureStatus.update(true);
```
It basically changes one of my documents fi... |
2018/03/05 | 535 | 2,222 | <issue_start>username_0: We're using Freetype to render individual characters to a texture atlas then rendering from this texture to the screen. However, when we render Arabic, the characters don't join up as they should. They all look like the individual characters, placed next to each other. If we put the same charac... |
2018/03/05 | 504 | 1,997 | <issue_start>username_0: I am new in Hugo and I already created the home page ready with prebuild theme which I found on <https://github.com/giraffeacademy/ga-hugo-theme> but now I want to make it live on my Hostgator server so what I did after override my theme I run the command
from `hugo server -D to hugo`
then ... |
2018/03/05 | 505 | 2,039 | <issue_start>username_0: I'm using AngularJS $cookies 1.6.9 to manage cookies on my website.
I've tried a simple cookie set, as follows:
```
$cookies.put('myCookieTest', 'test');
var cookie = $cookies.get('myCookieTest');
console.log(cookie);
```
I've installed angular-cookies correctly and no error is returned in t... |
2018/03/05 | 1,409 | 3,974 | <issue_start>username_0: I try SOM maps and clustering in R. I use this tutorial : <https://www.r-bloggers.com/self-organising-maps-for-customer-segmentation-using-r/> ... SOM maps work fine, but when I try clustering this error :
```
> mydata <- som_model$codes
> wss <- (nrow(mydata)-1)*sum(apply(mydata,2,var))
Er... |
2018/03/05 | 1,692 | 5,969 | <issue_start>username_0: I am still struggling with `CoreData` to start the week haha. I finally succeeded in saving and fetching my array, now is time to edit and delete.
I'm adding the delete function first but I'm having trouble passing in the correct argument:
**Core Data functions:**
```
class CDHandler: NSObje... |
2018/03/05 | 697 | 2,447 | <issue_start>username_0: I am creating a custom django template tag by using such a code :
```
@register.simple_tag(takes_context=True)
def render_listing(context, *args, **kwargs):
... my code ...
```
This works well, but in my template, it seems that all parameters must be on a single line, for example :
this... |
2018/03/05 | 596 | 2,084 | <issue_start>username_0: I've created a VM of Apache Solr by Bitnami on Azure, specifying my username / password in the creation process .
When i run : ssh my\_username@my\_vm\_ip it works
But in the web portal <http://my_vm_ip/solr> , a popup username/password appears . I use same credentials than SSH and it fails
... |
2018/03/05 | 2,035 | 6,622 | <issue_start>username_0: I am trying to use the point clicking callback of PCLvisualizer. The code uses the QVTKwidget to show the PCLvisualizer in a qt GUI. The project below compiles fine and works but when I include this code to set up a callback:
```
// ERROR MESSAGE OCCURS HERE !
viewer->registerPointPickingC... |
2018/03/05 | 1,308 | 4,281 | <issue_start>username_0: I'm a beginner in C.
I want to assign each person's info to an array of pointer that is `*arr[2]`
but I get an error message that is
```
'malloc' is not declared in this scope.
```
How can I fix it?
```
#include
int main()
{
struct person {
char \*name;
int number;
char gender;... |
2018/03/05 | 413 | 1,435 | <issue_start>username_0: Does the Fedex GetRate Web Service return the delivery days (as a number) for a parcel from one location to another location as part of the web service?
Actually the reason for asking this is because I have to first fetch the delivery days what fedex returning for each types, and on top of tha... |
2018/03/05 | 764 | 2,522 | <issue_start>username_0: I'm trying to figure out how to refresh the content of a div based on the values submitted from a form. Basically, I have a HTML form:
```
| | | | | |
| --- | --- | --- | --- | --- |
| How old are you? |
1-25 |
26-40 |
41-60 |
60+ |
| Calculate |
```
this is a simple version of... |
2018/03/05 | 1,593 | 4,878 | <issue_start>username_0: I tried rubberduckying this, but I give up. I don't understand why this keeps failing me. I have the following dictionary template I want to fill
```
testfile = {'locations':
{'location_name1":
{'document_title1': 'title_value1',
'page_nr1': 'text_value... |
2018/03/05 | 1,564 | 5,318 | <issue_start>username_0: Inside my adapter I use getItemViewType to decide based on the value wether to add a header and search indicator to the recyclerview.
>
> getItemViewType
>
>
>
```
private static final int TYPE_SEARCH = 0;
private static final int TYPE_HEADER = 1;
private static final int TYPE_CELL = 2;
... |
2018/03/05 | 356 | 1,021 | <issue_start>username_0: In my table there are rows with a field like the follow:
* IT\_0001
* IT\_0002
* IT\_0003
* IT 0004
* IT 0005
I need to execute a *like query*
```
SELECT * FROM myTable WHERE my_column LIKE '%my_value%';
```
My possible values are:
```
IT 0005
my_value == 'IT_' => OK
my_value == 'IT' =>... |
2018/03/05 | 1,907 | 5,467 | <issue_start>username_0: I am new to Docker, so don't have much idea about it.
I tried restarting Docker service using command
service docker restart
As the command was taking too much of time I did a CTL+C
Now I am not able to start docker deamon
Any docker command gives following op
>
> Cannot connect to the Dock... |
2018/03/05 | 1,471 | 5,624 | <issue_start>username_0: i got a little problem with my project. I have a Server written in Java and some clients written in html/js. Connecting works somehow, but as soon as i want to send a message from the client to the server it returns an error: "Uncaught InvalidStateError: Failed to execute 'send' on 'WebSocket':... |
2018/03/05 | 742 | 2,756 | <issue_start>username_0: I have problems with R-studio installation for Ubuntu 16.04 32-bit. I found out a reason for my problem here - <https://mikewilliamson.wordpress.com/2016/11/14/installing-r-studio-on-ubuntu-16-10/>. But the script examples are for 64-bit machine and I don't quite understand how I can change the... |
2018/03/05 | 1,115 | 3,828 | <issue_start>username_0: This sounds like a basic problem, but I can't seem to find a similar question. Maybe I am searching with wrong keywords... Please point me to duplicates if any.
I have 2 branches in my remote reposiroty `mybranchX`, `mybranchY`.
Both the branches have a set of separate commits like
```
mybra... |
2018/03/05 | 1,180 | 4,257 | <issue_start>username_0: I'm working on a (high energy physics related) problem using CNNs.
For understanding the problem, let's consider [these examples here.](https://i.stack.imgur.com/dVLJE.jpg)
The left-hand side is the input to the CNN, the right-hand side the desired output. So the network is supposed to cluste... |
2018/03/05 | 531 | 2,097 | <issue_start>username_0: I am trying to add items to a Subject,
but I cannot call `Subject.onNext()` because I get the other items from other `Observables`
```
// My observer subscribes to a ReplaySubject
subject.subscribe(observer)
// The first item is emitted (and regularly received by my observer)
//... |
2018/03/05 | 598 | 1,641 | <issue_start>username_0: So I have 3 divs side by side inside the div element and another div after them. However, this div is overlapping the others. How can I make "footer" come after "main"?
```css
.main {
height: 500px;
width: 100%;
position: absolute;
}
.filter {
background: red;
height: 100%;
... |
2018/03/05 | 2,701 | 7,195 | <issue_start>username_0: I am trying to draw two 2D diamonds facing each other.
So I drew the first diamond then I drew the second diamond after using:
```
glTranslated(0, -150, 0);
```
so it can appear exactly under my first diamond .
However, I ran into a problem that I couldn't flip the second diamond so it could... |
2018/03/05 | 1,000 | 3,489 | <issue_start>username_0: I get the following mistake:
>
> 'CREATE VIEW' must be the first statement in a query batch.
>
>
>
I'm trying to create a view and to insert date parameters as a variable in the query.
For some reason it doesn't work, any idea how to overcome it?
Here is the query
```
DECLARE **@StartDa... |
2018/03/05 | 1,977 | 5,744 | <issue_start>username_0: In my below data set, I need to find unique sequences and assign them a serial no ..
DataSet :
```
user age maritalstatus product
A Young married 111
B young married 222
C young Single 111
D old single 222
E old married 111
F teen married 222
G teen married 5... |
2018/03/05 | 588 | 2,089 | <issue_start>username_0: I'm new to MongoDB Compass tool and am trying to update a field in my collection. Please can someone suggest where the update query must be written. Could find no options or panes in the tool to write custom queries be it selection / updation for that matter.
In the Default Window only the sel... |
2018/03/05 | 1,391 | 3,836 | <issue_start>username_0: I have and excel document that looks like this:
[](https://i.stack.imgur.com/LZ5CA.png)
and i want it to be like:
[, but it again change datetime into 24 ... |
2018/03/05 | 567 | 1,786 | <issue_start>username_0: How would you implement `take` with a list comprehension?
My approach so far:
```
take2 :: (Num i, Ord i) => i -> [a] -> [a]
take2 n xs = [x | x <- xs, [x..n]]
```<issue_comment>username_1: We can use a `zip` approach here, and enumerate over both the elements, and indices, like:
```
take2 ... |
2018/03/05 | 735 | 2,481 | <issue_start>username_0: Question
--------
I want to deploy my application on the server in production but I am struggling to do so.
When I use `npm run build` to produce an "Optimized" version of the app and launch it with `serve`, it doesn't seem to use the proxy.
Going back to the dev server with npm start, I get... |
2018/03/05 | 501 | 1,601 | <issue_start>username_0: Here is where I've got up to, I can't figure out how to use `take 3` to take the first 3 characters in a and b before comparing them.
```
checkstring :: String -> String -> Bool
checkstring a b = if a == b then True
else False
```<issue_comment>username_1: That was ... |
2018/03/05 | 754 | 2,600 | <issue_start>username_0: I have a postgresql table called `datasource` with jsonb column called `config`. It has the following structure:
```
{
"url":"some_url",
"password":"<PASSWORD>",
"username":"some_username",
"projectNames":[
"project_name_1",
...
"project_name_N"
]
}
```
I... |
2018/03/05 | 1,155 | 4,193 | <issue_start>username_0: and thank you in advance for helping me.
I'm trying to make a POST where I pass the TOKEN in the URL and I want to pass another param too so I can save the info in the DB. I have this:
```
$("#btnAddCompany").click(function(e) {
var token = "123";
var companyValue = document.getEl... |
2018/03/05 | 809 | 2,814 | <issue_start>username_0: I am trying to get data from a php sub-page.
Using javascript, I have tried to use :
```js
var items = document.querySelectorAll('option');
console.log("length : "+items.length);
```
```html
item-127 ( 120127 )
item-163 ( 0 )
item-139 ( 0 )
item-135 ( 0 )
Item-AC95 ( AC95 )
... |