date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/10 | 1,156 | 3,281 | <issue_start>username_0: ```
#include
int main() {
unsigned long long int c = 9999999999999999999U / 2;
unsigned long long int d = 9999999999999999999U \* 0.5;
unsigned long long int e = 9999999999999999999U >> 1;
printf("%llu\n%llu\n%llu\n", c, d, e);
return 0;
}
```
So the output of that is:
```
49999999999... |
2018/03/10 | 976 | 3,098 | <issue_start>username_0: I am using react, redux and redux-saga. Now the thing is i want to track all the user interactions with the form such as onfocus timestamp, what he enters and when he submits. I want one common component that should do all the things like above for me. How to do this. Thanks in advance<issue_co... |
2018/03/10 | 1,109 | 3,664 | <issue_start>username_0: I'm reading the *You Don't Know JS* books and am on *this and Object Prototypes*.
I get that to know what `this` refers to I need to look at the call-site. And the call site is what `this` will refer to. What I don't get is why this code isn't working as I think it should (I only wrote it to ... |
2018/03/10 | 529 | 1,858 | <issue_start>username_0: I have Bootstrap working properly in my Vue project. I would like to use a theme from Bootswatch. In my Vue project, I replaced the node\_modules/bootstrap/dist/bootstrap.min.css file with one that I downloaded from the Bootswatch site. But the new theme didn't change anything. Note: In my main... |
2018/03/10 | 388 | 1,239 | <issue_start>username_0: I am using mPDF and it is not generating pdf on localhost.
```
php
include("mpdf/mpdf.php");
$html='<html
Hello World
';
$mpdf=new mPDF('', 'A4', 0, '', 2, 2,5, 0, 0, 0);
header("Content-type:application/pdf");
$mpdf->SetDisplayMode('fullpage');
$invoiceno='... |
2018/03/10 | 424 | 1,303 | <issue_start>username_0: Can't print value of static int variable
I want to check the value of static variable in this context.
I am using www.codechef.com/ide as IDE : C++14 (Gcc 6.3) as the Language + Compiler.
CODE:
```
#include
using namespace std;
class Demo\_StaticVar
{
public :
static int a;
Demo\_Stat... |
2018/03/10 | 229 | 981 | <issue_start>username_0: I am using Table component from antd library. I want to pass pagination prop to the Table component. In the docs it says pass the pagination config object which refers to the Pagination component itself.
So I am passing the pagination object using Pagination component prop names as keys like ... |
2018/03/10 | 1,887 | 5,430 | <issue_start>username_0: I have this issue that all of a sudden I can not publish to npm anymore.
I get the following error when running `npm publish`
>
> NPM Can't Publish E400 New package version must have dist with {shasum, tarball}
>
>
>
I don't know what I can do about it and I found nothing on the internet... |
2018/03/10 | 963 | 3,181 | <issue_start>username_0: I copied this example exactly as it appeared in the book (first version).
given in the book:
```
p :: Parser (Char,Char)
p = do x <- item
item
y <- item
return (x,y)
```
compile error on x, Why?
|
```
40 | p = do x <- item
| ^^^^^^^^^
:40:9: error:
... |
2018/03/10 | 913 | 3,035 | <issue_start>username_0: I have recently started using Laravel Framework 5.6.7 and have everything running smoothly apart from the Zray toolbar it comes with. The toolbar displays the error: "Failed to communicate with Zend Server. See why..."
the link takes me to the troubleshooting page which is of no help:
<http://... |
2018/03/10 | 800 | 2,408 | <issue_start>username_0: So what I am trying to do is align these divs within a bootstrap card. My issue is, I am able to get the left half of it right, but I can't figure out how to align the far right elements. I am currently using width percentages to allow this to stay responsive, though I have one thing set as fix... |
2018/03/10 | 419 | 1,260 | <issue_start>username_0: I'm trying to find (with awk) the IP of a specific ethernet interface using the hostname as a search patter (suffixed by the name of the ethernet interface). I wrote this little script but it outputs nothing and I don't understand why...
```
#!/bin/bash
name=$(hostname -s)-eth3
IP1=`awk -v var... |
2018/03/10 | 743 | 2,414 | <issue_start>username_0: I am trying to compare the values in 2 files. For each row in Summits3.txt I want to define the value in Column 1 as "Chr" and then find the rows in generef.txt which have my value for "Chr" in column 2.
Then I would like to output some info about that row from generef.txt to out.txt and then r... |
2018/03/10 | 1,417 | 5,219 | <issue_start>username_0: I am developing an android app with multiple tabs using viewpager. However, one of the tabs which contain recyclerview just keep on loading non stop as shown in the attached screenshot. The recyclerview contains a list of images. I am able to load imageview and textview in other tabs successful... |
2018/03/10 | 239 | 784 | <issue_start>username_0: Considering this table
```
CREATE TABLE name
( nom VARCHAR(255))
```
How could i insert a string with simple + double quote like : 'it's a "string"' inside my table
```
Insert into name values (`it's "string"`)
```
This doesn't work actually.
Thanks for suggestions.<issue_comment>userna... |
2018/03/10 | 703 | 1,788 | <issue_start>username_0: text content of bootstrap modal body flows outside. when long text without any space.[](https://i.stack.imgur.com/yLJMf.png)
I need a solution.text content should not overlapping when text is long
```html
Launch demo modal
... |
2018/03/10 | 892 | 2,567 | <issue_start>username_0: ```
def foo(l: List[Int]) =
List(1,2,3)
.map(_ + 1) // A
.map(x => {println(x);x}) // B
.map(_ + 2) // C
.map(x => {println(x);x}) // D
.map(_ + 3)
```
The intent is to print or log to a file after step `A` and `C` and this is one of the imple... |
2018/03/10 | 1,852 | 5,963 | <issue_start>username_0: I was wondering if there was a way to restrict `document.onkeydown` to once per 1000ms (1s).
Here is my code:
```
document.onkeydown = function(e) {
switch (e.keyCode) {
case 37:
console.log("left");
break;
case 38:
console.log("up");
... |
2018/03/10 | 634 | 2,078 | <issue_start>username_0: I want to sort the list according to second value of a pair, this is my code for class Pair and make\_pair :
```
class Pair
attr_accessor :first,:second
end
def make_pair(x,y)
temp = Pair.new
temp.first = x
temp.second = y
return temp
end
... |
2018/03/10 | 407 | 1,384 | <issue_start>username_0: I have the following code in one of my view functions:
```
def results(request):
data_file = open('data.txt', 'r')
data = data_file.read()
context = {'rooms': data}
return render(request, 'javascript/results.html',context)
```
The file 'data.txt' is located in the same... |
2018/03/10 | 314 | 1,090 | <issue_start>username_0: I have **four** `Buttons` in The `MainActivity`, and I want to transfer the user to the 2nd `Activity` which is a `ListView`, but I want to code every `Button` to transfer different elements to that `ListView`. The question is That to code this `ListView` should I use Custom `ListView` Adapter ... |
2018/03/10 | 493 | 1,531 | <issue_start>username_0: I have 2 tables:
**category:**
```
idCat, nameCat, urlCat
```
**detailpost:**
```
idDetailPost, nameDetailPost, viewDetailPost, idCat
```
It's mean 1 category have many posts. And my issue is: I need a table on website have:
```
nameCat
urlCat
count(post in category)
count(viewDetai... |
2018/03/10 | 708 | 2,328 | <issue_start>username_0: I have a scipy sparse matrix in CSR format. It's 72665x72665 so it's impractical to convert this matrix to a dense matrix to perform operations on (the dense representation of this matrix is like 40 gigs). The matrix is symmetric, and has about 82 million non-zero entries (~1.5%).
What I woul... |
2018/03/10 | 771 | 2,666 | <issue_start>username_0: I am trying to have the following script run when a button is pressed within a php page. The script is supposed to delete a row from a MySQL database table.
I have read from other previous questions that you cannot utilize a php within a javascript within a php page as the php runs along with ... |
2018/03/10 | 2,003 | 7,846 | <issue_start>username_0: Earlier I have used android gradle plugin v2.2.2, now I am migrating to 3.0. The below code publishes(*uploadArchives* task) all my variants to maven without any issues with 2.14.1. But as soon I upgrade to 3.0 nothing is been published. If I remove the *prodcutFlavors*, it publishes the releas... |
2018/03/10 | 976 | 4,272 | <issue_start>username_0: I am using swift3. I want to show `FCM` message to `tableview` in a `UIViewController` when My app receive `FCM` message data.I have got my fcm data using bellow code in `appDelegate`..But I don't know how to get data in `UIViewController`.
```
func userNotificationCenter(_ center: UNUserNotif... |
2018/03/10 | 261 | 1,000 | <issue_start>username_0: I was publishing user pages with GitHub pages. After renaming my repository from `username.github.io` to `username.github.io__`, and renaming back my repo to `username.github.io` my pages are not showing up anymore.
The purpose of renaming my repo was to unpublish my pages for a short period o... |
2018/03/10 | 6,062 | 11,292 | <issue_start>username_0: We are using java 1.8.144\_b\_01. We have a problem where G1GC sys usage spike suddenly eg: from 1 to 113 , 140 which is very high than user space cpu usage.
At that time Object Copy time becomes very high ~10 times the normal , i see the following logs very often:
>
> 2018-03-09T14:55:30.11... |
2018/03/10 | 693 | 2,044 | <issue_start>username_0: I need to write a text into a cell, based on the value of another cell, for instance:
Cell G1 have value blank and H1 have value 0%; I need to write "In progress" into G1 cell when the percent value in H1 is more than 0%, "In progress" if the value is between 1-99%, and Completed if the value ... |
2018/03/10 | 936 | 3,392 | <issue_start>username_0: Using Google Maps iOS SDK, I want to be able to print the coordinates of a GMSMarker if long pressed on that particular marker.
I first get all of my coordinates from a dictionary and drop markers for all coordinates on the map:
```
func placeMapMarkers() {
for item in self.finalDictionar... |
2018/03/10 | 1,222 | 3,719 | <issue_start>username_0: I recently found this command line tool called [fzf](https://github.com/junegunn/fzf). I installed it according to the instructions and it does work, except for the `CTRL`-`T` key binding. Even though, I installed the special stuff with the key bindings as per their instructions, and I also tri... |
2018/03/10 | 824 | 3,443 | <issue_start>username_0: I want to edit multiple cells in DataGrid, and when btnUpdate is clicked the cells I edited will be updated in database.
[](https://i.stack.imgur.com/Sd2F3.png)
I have tried the ff code for btnUpdate:
```
DialogResult res = ... |
2018/03/10 | 286 | 1,023 | <issue_start>username_0: **Edit:** *Thanks to everybody that helped. I found a text size library that fixes this problem.*
Since I upgraded to Android Studio 3.0.1,
the text size in my app is on some devices way too small.
What can I do about that?
I put my layout file below
Thanks
And here is my layout:
```
```... |
2018/03/10 | 977 | 3,308 | <issue_start>username_0: Can anyone help me with this error? I don't what's wrong with the code. is it a database credentials error? Is it an application code error? Is it a Linux/Unix related error?
This is my first time to deploy my application on Heroku but I got this error message:
>
> PermissionError: [Errno 13... |
2018/03/10 | 335 | 1,294 | <issue_start>username_0: According to Python documentation, implementing a class in C for Python can be roughly divided into three steps:
1. defining the Object (the data impl)
2. defining the Type (the behavior wrapper)
3. defining concrete behaviors, and set them into corresponding `tp_xx` slots
For `new` function... |
2018/03/10 | 715 | 2,793 | <issue_start>username_0: I am trying to generate 20 random booleans and see if they have the same value i.e. either all true or all false. I expected the program to run for a while as the probability should be `1/(2^20) *100 * 2`, which is something like 0.00019%.
However, I run my program (shown below) and it termina... |
2018/03/10 | 852 | 2,674 | <issue_start>username_0: So I am finding the median of a 'Stream' of number from the input. The input length vary from 1 to 4999999. (Given it is an odd number).
The time limit is 5 seconds.
My current code should be straightforward:
```
import statistics
array = []
n = int(input())
for _ in range(n):
array.app... |
2018/03/10 | 1,575 | 4,801 | <issue_start>username_0: This is analogous to my actual problem but i feel illustrates the problem i need to solve without complicating things.
I need to create an array of objects by iterating through a 2d array.
The 2d array looks something like the"sampleArray" below.
```
let sampleArray = [
["open",2],
["... |
2018/03/10 | 1,196 | 3,416 | <issue_start>username_0: Here is the test table I have created.
```
USE [Test]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Table_3]
(
[id] [int] NOT NULL,
[itemcode] [int] NOT NULL,
[value] [decimal](18, 5) NOT NULL,
[date] [date] NOT NULL,
[gain] [decimal](18, 5) NUL... |
2018/03/10 | 810 | 2,662 | <issue_start>username_0: I have a school student data, the school consists of several classes such as class A, Class B and class C and have grade as well. however I would like to retrieve student and class data based on the grade of the varibale. I tried to do it but still failed the data did not appear.
Example:
tb\... |
2018/03/10 | 1,203 | 4,285 | <issue_start>username_0: My goal is to look at two arrays (each having four items) and put any value that appears in both of them in a vector.
Technically, I can just use a loop, like
```
vector result;
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 4; j++) {
if (array1[i] == array2[j] {
result.push\_back(arra... |
2018/03/10 | 845 | 3,071 | <issue_start>username_0: If I write HTML as below, still I can access tag called 'veera' in CSS, JS. Why we should use only article, header, nav, etc. when we can write whatever tags we want?
```css
veera{
width: 50%;
margin: auto;
padding: 20px;
color: red;
}
h3{
color: yellow;
}
veera h3{
... |
2018/03/10 | 1,074 | 3,703 | <issue_start>username_0: I wanna replace character in a string. I searched positions by a selected character and i find out the position of `'` and finally got the position like `0,5,16,20,47,56,65,70`. Now i want to replace all even position (0,16,20,56,70) with $#44 and 5,47,65 with $#55 of odd position.
```
$find_c... |
2018/03/10 | 791 | 3,415 | <issue_start>username_0: I am trying to implement push notification via Firebase Cloud Messaging to my iOS app. I can set the firebase console and APN perfectly, I can get the notification that sent via Firebase console in my device.
but, when I get the notification, it just shows the alert, no sound, no number in the... |
2018/03/10 | 421 | 1,549 | <issue_start>username_0: I have a div which contains two html tables. When the browser is maximize, the two tables positioned side by side. As I reduce the page size one of the tables positioned under the other. How can I force these two tables stick together in any situation.
```
div{
width: 100%;
}
.table1 {
... |
2018/03/10 | 392 | 1,355 | <issue_start>username_0: I have two tables, *Products* and *Stock*. *Stock* has many to one relation with *Products*.
The *Stock* table references the *Products* table.
I want to find all products where at least one referencing stock has a quantity that is greater than 0.
What is the most efficient query I should use?... |
2018/03/10 | 314 | 1,201 | <issue_start>username_0: I have a usual GridView in Yii2.
```
= GridView::widget([
'dataProvider' = $dataProvider,
'filterModel' => $searchModel,
'tableOptions' => ['class' => 'table table-striped table-bordered table-responsive'],
'columns' => [
'firstName',
... |
2018/03/10 | 377 | 1,194 | <issue_start>username_0: Hi guys i'm relatively new to MATLAB and am trying to reshape the matrix i currently have. I have a matrix of 12\*14\*6400 and am trying to reshape it to 1200\*14\*64 where the second dimension remains untouched and there are 1200 windows (1st dimension) of 64 numbers in my 3rd dimension rather... |
2018/03/10 | 726 | 2,696 | <issue_start>username_0: I want my application to output logs to a the logfile in a user's home directory.
Therefore I have configured the `log4j2.xml` file as below:
```
/${sys:user.home}/xx/log/ff
```
I can see the logs in the specified folder, however, some errors are displayed in the console:
```
ERROR Could ... |
2018/03/10 | 606 | 2,165 | <issue_start>username_0: When I enter to the website, I see this error :
>
> Fatal error: Call to undefined function ya\_header\_check() in
> /home/qachir/public\_html/wp-content/themes/shoppystore3/header.php on
> line 5
>
>
>
header.php Codes :
```
php get_template_part('templates/head'); ?
>
php ya\_header... |
2018/03/10 | 410 | 1,584 | <issue_start>username_0: I know the following is possible. i.e I can have a ref cursor as a return value in Postgresql.
```
CREATE FUNCTION employeefunc(int) RETURNS refcursor AS '
DECLARE ref refcursor;
BEGIN
OPEN ref FOR SELECT * FROM employee where id = $1;
RETURN ref;
END;
```
But can we have a ref cursor as a... |
2018/03/10 | 710 | 2,332 | <issue_start>username_0: What is the difference between
```
a *= 1;
```
and
```
a = +a;
```
in JavaScript?
Both convert a `string` to `number` (int or float). They behave differently from `parseInt` and `parseFloat`. But is there any difference between these two lines?<issue_comment>username_1: >
> What is diff... |
2018/03/10 | 650 | 2,277 | <issue_start>username_0: [](https://i.stack.imgur.com/uOqzo.png)[](https://i.stack.imgur.com/wipbr.png)I have set an image in imageview. It is showing in center of the screen as I have... |
2018/03/10 | 535 | 1,688 | <issue_start>username_0: Is there a way to parse an email address by JSOUP which is protected by this piece of code:
```
[[email protected]](/cdn-cgi/l/email-protection)
```
While parsing with standard `elements.select(".email").text();` it returns `[email protected]`.
I tried to google this but found a lot of unr... |
2018/03/10 | 241 | 801 | <issue_start>username_0: when I use this code:
```
v = Convert.ToSingle("1035.77219")
```
I get this message:
```
An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll
Additional information: Input string was not in a correct format.
```
why? this is not in correct format really?<issue... |
2018/03/10 | 549 | 1,761 | <issue_start>username_0: You can find the number of open issues for a project via the [Repositories > Get](https://developer.github.com/v3/repos/#get) method in GitHub's API.
But is there any way to find the number of closed issues or the total number of issues, without iterating over all issues? Such information is ... |
2018/03/10 | 534 | 1,668 | <issue_start>username_0: Why am I getting 'undefined' when trying to pull specific data from Public API? What is wrong with below code?
```
Click
function gget(){
var btc = new XMLHttpRequest();
btc.open('GET', "https://api.coinmarketcap.com/v1/ticker/bitcoin/", true);
btc.onreadystatechange = function() {
if(bt... |
2018/03/10 | 286 | 1,109 | <issue_start>username_0: I am trying to open WiFi activity from my android App on Android Things preview 6 version.
Below code works for mobile but gives error for Android Things preview 6 on Raspberry Pi 3
>
> startActivity(new Intent(Settings.ACTION\_WIFI\_SETTINGS));
>
>
>
Error
>
> E/AndroidRuntime: FATA... |
2018/03/10 | 1,123 | 4,665 | <issue_start>username_0: I'm building an ecommerce application using Stripe for the first time. I'm making a GET request to the endpoint `/v1/products` using either Insomnia or the Stripe npm package to get my complete product data which will then populate the catalogue page.
My question is whether there is limited fu... |
2018/03/10 | 718 | 2,036 | <issue_start>username_0: Im trying to copy contents of one image file to another. But somehow my code creates an empty image.
Here is the code
```
void main() {
FILE* i = fopen("index.jpg", "r");
int size = 0;
int index = 0;
char buff[1024];
FILE* j = fopen("abc.jpg", "w+");
while (!feof(i)) {
fread(b... |
2018/03/10 | 898 | 3,236 | <issue_start>username_0: When I write the following code, I get the expected error `error: array size missing in 'data'`.
```
int main()
{
unsigned char data[];
return 0;
}
```
However, when I run the same code but wrap the offending line inside a `struct`, there are no errors.
```
typedef struct credit_ca... |
2018/03/10 | 943 | 3,380 | <issue_start>username_0: When filtering the items that are going to be shown, if the word that I want to search is the first one of the item, it does not find it. Example: I have the title, "**tomorrow will be a sunny day**". If I look for **tomorrow**, this does not find it, if I look for **sunny** or **day**, it does... |
2018/03/10 | 613 | 2,057 | <issue_start>username_0: I want to remove the .php and .html extensions of my website pages in the browser. I found this code online to add in the .htaccess file:
```
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php`
```
However, if a have a php ... |
2018/03/10 | 519 | 1,702 | <issue_start>username_0: I am using `historyApiFallback: true` to redirect all non-existing urls to index page. It is working fine for 1st level route, say localhost:8080/abc . But when I try localhost:8080/abc/xyz , I get error in browser console which says
>
> <http://localhost:8080/abc/scripts/bundle.js> 404 (Not... |
2018/03/10 | 1,398 | 4,148 | <issue_start>username_0: I am using the exact same code to name a dynamic range in two workbooks. I use Workbook TestBook1 for testing the code before implementing it to the body of the general code in Workbook 111.
The code is:
```
Dim HDaER As Worksheet
Dim HDaERReturnLR As Long
Dim HDaERReturnLC As Lon... |
2018/03/10 | 1,964 | 4,844 | <issue_start>username_0: My data is a dictionary with a list of dictionaries inside.
```
data = {'John': [{'date': u'2018-01-21', 'name' : u'John', 'fieldname': u'lunch', 'fieldvalue': u'10'}, {'date': u'2018-01-21', 'name' : u'John', 'fieldname': u'dinner', 'fieldvalue': u'9'}], 'Maria': [{'date': u'2018-01-21', 'nam... |
2018/03/10 | 460 | 1,865 | <issue_start>username_0: I programmed a chat client with PHP and MySQL. The pattern is the following right now:
**sendMessage.php**
Insert message into the correct chatRoom
**loadMessages.php**
The already downloaded messages are cached
So it downloads only the new messages since the last downloaded message ID..
(... |
2018/03/10 | 190 | 745 | <issue_start>username_0: I have multiple calls of api in which on depend on another call. How Can I achieve this using rxjs?<issue_comment>username_1: ```
this.serviceInst.firstAPIMethod()
.flatMap(firstMethodResult => this.serviceInst.secondAPIMethod(firstMethodResult))
.flatMap(secondMethodResult => this.serv... |
2018/03/10 | 1,190 | 3,472 | <issue_start>username_0: I have an array of 800 objects.
```
cells = [
{ x_position: 0, y_position: 0, terrain: 'water' },
{ x_position: 0, y_position: 1, terrain: 'water' },
{ x_position: 0, y_position: 2, terrain: 'water' },
{ x_position: 0, y_position: 3, terrain: 'water' },
{ x_position: 0, y_p... |
2018/03/10 | 1,064 | 3,693 | <issue_start>username_0: After trying to gradle sync... it fails and says in the messages dialog box
```
Missing Android platform(s) detected: 'android-26' Install missing platform(s)
and sync project
```
when im clicking `Install missing platform(s) and sync project` a progress bar window pops up which says `Downl... |
2018/03/10 | 354 | 1,062 | <issue_start>username_0: I an trying to find number of even numbered words using R lang. Can someone help.
Say I have a sentence as 'My name is XXXXX'. here we have 2 even numbered words. So I want to calculate this count of 2.<issue_comment>username_1: You can use Rs integer division, `%/%`
```
str <- "My name is XX... |
2018/03/10 | 1,405 | 4,677 | <issue_start>username_0: The only supported i18n formats for Spring are .properties and .xml, but it's not really optimal.
What I'd like is to have a complex Yaml file (messages.yml and messages\_xx.yml) that get converted to .properties in a Gradle task so I can queue it before Build task.
For example, a messages.yml... |
2018/03/10 | 793 | 3,066 | <issue_start>username_0: I am using angularjs.I am doing ng-repeat to display list of notify types and i am display in li tag.In this list three values are default.I have one Add button next to the list.If i click add button then i need to display another list with the three default values.Again add button shifts place... |
2018/03/10 | 389 | 1,448 | <issue_start>username_0: I am using angular material . When I use onSelectionChange, its calling multiple times when page loading or when I change the selection. Can some one please help me.
```
{{ state.value }}
State is required
// In my ts file
updateState(event: any) {
// my code
}
```
I have used eve... |
2018/03/10 | 283 | 1,205 | <issue_start>username_0: I'm making a game in Java SE 8. I have to add a class in `extends` but there is already one added, and I cannot remove it. I would just like to know how to put 2 classes in `extends`.<issue_comment>username_1: you can not extends 2 classes in java. java doesn't support multiple inheritance. you... |
2018/03/10 | 795 | 2,594 | <issue_start>username_0: I need to get the last part of my URL with html on the end. So if I have this url `http://step/build/index.html` I need to get only `index.html`. I need to do this with javascript
```
let address = http://step/build/index.html;
let result = address.match(/html/i);
```
I tried this, but it do... |
2018/03/10 | 2,141 | 6,976 | <issue_start>username_0: I am trying to write a program that will find the longest path in the graph (i.e. the greatest depth) for a directed graph which is always a rooted or multi-rooted tree.
The specs of the assignment require I use DFS and memoization, but multiple mutable references occur when performing the DFS... |
2018/03/10 | 3,739 | 11,290 | <issue_start>username_0: I'm trying to visualize migration data using particle systems. Each row of the dataset contains: source country, destination country, year, and various amounts.
Each row should be represented as a particle system representing that data.
---
QUESTION:
What will be the best way to create a lis... |
2018/03/10 | 484 | 2,096 | <issue_start>username_0: I'm new to MassTransit (using rabbitmq), so please forgive me if this is a stupid question.
I just wanted to know how one is meant to handle an unsuccessful compensation? So all retries failed, i.e. no compensation succeeded - I would imagine the message should go to a deadletter queue of sor... |
2018/03/10 | 1,838 | 6,513 | <issue_start>username_0: I am trying to animate the frame change of a subview within a view. Within the animation block I am setting the size of the subview to half its original width and height. However, when I run the code, the subview unexpectedly started with a larger size and shrunk to its original size instead of... |
2018/03/10 | 2,603 | 9,151 | <issue_start>username_0: I have a simple Visual Studio solution, running ASP.NET Core v2 and building a React app.
Now, I want to install a simple component using the NPM. In this particular example, it could be:
```
npm install --save react-bootstrap-typeahead
```
I want this package to work just in my solution an... |
2018/03/10 | 712 | 2,413 | <issue_start>username_0: I have a script. This script has to do some calculations. For the reason that now the user has to edit the script variables in the file I want to write a form that updates the variables always when the form is updated. There are around 10 variables that needs to be updated always when one varia... |
2018/03/10 | 691 | 2,389 | <issue_start>username_0: I'm new to Drupal & Twig and all I need is in my custom theme a twig expression to output the current user's ID. I can't find anything in the template comments, only if a user is logged in true / false.
Is there a simple way to get the ID of the current user? I'm not sure how to implement cust... |
2018/03/10 | 855 | 3,496 | <issue_start>username_0: I was using the aggregate function without any problem connecting a 3.4 mongodb.
When I change to a 3.6 db,
I've got the message: **The 'cursor' option is required, except for aggregate with the explain argument.**
Sorry if it's already posted. I am unable to find any solutions<issue_comm... |
2018/03/10 | 7,083 | 15,963 | <issue_start>username_0: I am trying to do the restriction test for GARCH model (ugarch from 'rugarch' package) using the following hypothesis:
```
H0: alpha1 + beta1 = 1
H1: alpha1 + beta1 ≠ 1
```
So I am trying to follow the advice from
<https://stats.stackexchange.com/questions/151573/testing-the-sum-of-garc... |
2018/03/10 | 294 | 994 | <issue_start>username_0: I am not that much experienced in asp.net MVC. I want to display date in correct format. But it is showing some number instead of that.
Below is my screenshot of the problem.
[](https://i.stack.imgur.com/BpAlV.jpg)
Here is ... |
2018/03/10 | 708 | 2,867 | <issue_start>username_0: I have simple user registration page, but its not saving to the database.
**Issue: Register form displays, upon clicking submit button, doesn't do anything! Stays there (it should show a HttpResponse('User Registered') And save to db**
I've know I'm missing something, but what? ideas please.... |
2018/03/10 | 1,073 | 4,054 | <issue_start>username_0: I want to write a function which takes a string and changes the color of all words within special characters. For example:
>
> This is a [Sample] String containing [sample words]
>
>
>
I want to change the font of `[Sample]` and `[sample words]` in the above string because these both are ... |
2018/03/10 | 3,052 | 5,061 | <issue_start>username_0: I'm finding this surprisingly tricky. I would like to create a trended bar chart showing counts by month on a datetime filed.
Some data:
```
structure(list(id = c("p036502", "p039565", "p233823", "p185307",
"p013780", "p063374", "p103285", "p181781", "p114989", "p191410",
"p030093", "p22694... |
2018/03/10 | 668 | 2,446 | <issue_start>username_0: I know its basic but cant figure it out whats the problem. its seems like i did all things right. I want to make a relation ship with product brands where every product has a brand id which belongs to a Brands also in brands model every brands has many products. i used belongsTo has many relati... |
2018/03/10 | 922 | 3,498 | <issue_start>username_0: I'm trying to write my first app using react native framework. I have problem with test onClick function for button.
My App.js code:
```
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { Button } from 'react-native';
export default class App extends R... |
2018/03/10 | 897 | 3,535 | <issue_start>username_0: I have a question regarding C++'s private inheritance.
See the following code example:
```
#include
class Foo {
public:
virtual void doSomething(int value) {
std::cout << value << std::endl;
}
};
void foobar(Foo& foo, int value) {
foo.doSomething(value);
}
class Bar : Foo {
public:
... |
2018/03/10 | 892 | 3,841 | <issue_start>username_0: I have seen a few `single page Application` websites, in which whenever we tap any of the tab, the page gets scrolled vertically in order to show that selected section, and vice versa, if we scroll the page vertically, then the tabs automatically get changed according to the displayed section.
... |
2018/03/10 | 955 | 3,983 | <issue_start>username_0: I am trying to make a live search box for a library using ajax, mysql and php. I have implemented the search for the books. i.e. when you type in the title of the book, it shows the suggestions. However, I am trying to implement it also for the authors column in my database such that when you t... |
2018/03/10 | 975 | 4,032 | <issue_start>username_0: I am trying to setup a database for my Firestore however I tried reinstalling the pods and many other things and I still cannot get it to work because it shows this error:
```
Type 'Firestore' has no member 'firebase'
```
I do not know why that is as the Firebase docs show that this should b... |
2018/03/10 | 1,241 | 3,569 | <issue_start>username_0: Creating a sample dataset to reproduced the problem
```
library(dplyr)
x <- c('MS','Google','MS','FB','Amazon','Google','IBM','IBM','IBM','MS')
item <- as.data.frame(x,stringsAsFactors = F)
data <- item %>% group_by(x) %>% summarise(n = n())
# A tibble: 5 x 2
x n
1 Amazon 1
2 FB ... |
2018/03/10 | 776 | 2,614 | <issue_start>username_0: I am trying to find a formula that creates a URL for an element based on its position in the XML hierarchy.
This is my sample xml:
```
```
I have a function in Powershell that recursively iterates down from the top and on each 'Content' element I want to generate a concatenation of the ance... |
2018/03/10 | 502 | 2,121 | <issue_start>username_0: I have alertdialog input text and i want if edittext is empty get toast " plz fill field " if user click positive button and if edittext is not empty continue open activity
```
LayoutInflater layoutInflaterAndroid = LayoutInflater.from(newapp.this);
View view = layoutInflaterAndroid.inflate(R... |
2018/03/10 | 677 | 2,383 | <issue_start>username_0: This is my code
```
var webSocketUrl = "wss://api.artik.cloud/v1.1/websocket?ack=true";
var device_id = "########################"; // DEVICE ID
var device_token = "#####################"; // DEVICE TOKEN
// require websocket module to connect
// execute following two comm... |
2018/03/10 | 376 | 1,397 | <issue_start>username_0: Could you kindly explain in more breadth and clarity, how does `lazy-seq` make tail recursion "safe" as per this docs page?
<https://clojuredocs.org/clojure.core/lazy-seq>
```
;; The following defines a lazy-seq of all positive numbers. Note that
;; the lazy-seq allows us to make a recursiv... |