date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/11 | 787 | 2,795 | <issue_start>username_0: I'm trying to understand nested types, but even after checking several sites I still don't get it. I have a List that's in a class. I don't see how I can add new items to the List because when I try, it overwrites the existing items with my new ones. Can someone please tell me what I'm doing wr... |
2018/03/11 | 415 | 1,503 | <issue_start>username_0: I am making a SIP Calculator for website/blog. But don't know how should I start. I have created a basic html CSS version but don't know how to calculate the numbers.<issue_comment>username_1: ```
var investment = 800; //principal amount
var annualRate = 2;
var monthlyRate = annualRate /... |
2018/03/11 | 634 | 2,114 | <issue_start>username_0: I have noticed that in Fullcalendar, if I use "jquery ui" theme, the first row in agenda week has a lighter background (`#F8F8F8` vs `#EEEEEE`).
[](https://i.stack.imgur.com/Bl2AE.png)
Here is my script:
```html
Test
var calendar;... |
2018/03/11 | 693 | 2,538 | <issue_start>username_0: I'm kind of new to generics in Java and I've faced such a problem: Let's say you have your own List implementation and you want to provide a mechanism to simultaneously convert all elements using some kind of mapping (functional interface) and collect them into a new list.
While the idea and u... |
2018/03/11 | 566 | 2,015 | <issue_start>username_0: I am using ANN for Multiclass Classification(12 classes) in Python. However i am getting errors. Here is the code snippet:
```
import keras
from keras.models import Sequential
from keras.layers import Dense
# Initialising the ANN
# Initialising the ANN
classifier = Sequential()
# Adding the ... |
2018/03/11 | 697 | 2,692 | <issue_start>username_0: I'm kind of in a learning process of multi-threading, so while I was playing around with Task class I notice some strange (for me) behavior with calling Task.Factory.StartNew method. I was doing some example in WPF application, where I just tried to call a method from Task on button click and w... |
2018/03/11 | 347 | 1,334 | <issue_start>username_0: If using statements are barred from headers in CPP projects according to nearly everyone, and templates must be declared in the headers unless specific steps are taken to specifically list out the classes that will be accepted in the cpp file,
What is the manner in which the following header ... |
2018/03/11 | 444 | 1,651 | <issue_start>username_0: [Dynamo DB table](https://i.stack.imgur.com/PkCpt.png)
I am trying to append a list to the "Hi" List , but coming up with invalid operator type in the list\_append call, which says one of them is a Map but these still look list to me ...
Here is the API call :
```
response = node_table.up... |
2018/03/11 | 675 | 2,107 | <issue_start>username_0: I need to create a statement trigger that allows data to be updated in PurchaseStock table only during office hours.
The PurchaseStock table is :
**PurchaseStock (StockID, ProductID, QuantityIn, Date)**
Note that productId is a foreign key here.
I know how to create a trigger for an update but... |
2018/03/11 | 101 | 388 | <issue_start>username_0: How will show the message and a check box to confirm if the user wants to submit.<issue_comment>username_1: I would use JQuery. If you're using a front end library like Bootstrap then consider their Modal component:
<https://getbootstrap.com/docs/4.0/components/modal/>
Upvotes: 1 <issue_commen... |
2018/03/11 | 905 | 2,653 | <issue_start>username_0: I need to validate whether the date mentioned should be greater than or equal to the current date. But problem here is if user is giving old date '03/11/0018', by default the year gets considered as 2018(as per the below code).
One way which I did is to take the input data and get the year usin... |
2018/03/11 | 493 | 1,982 | <issue_start>username_0: I am relatively new to Spring and Spring Boot but I can't seem to find a guide on how to create an app using Spring Boot, Flyway, and Spring Boot JPA that will actually run on my machine. I always end up with the same issue:
```
Error creating bean with name 'flywayInitializer' defined in clas... |
2018/03/11 | 578 | 1,769 | <issue_start>username_0: In working with modals in the following manner:
```
$(document).on('click', "[href=\"#edit-my-modal\"]", function() {
...
}
```
Now i need to be able to do the same thing with dynamic ids which is added to the end of the current id, like this for example:
```
$(document).on('click',... |
2018/03/11 | 1,098 | 4,231 | <issue_start>username_0: I have a service http which loads (and puts) data to/from API. In this case I need to get data from server and show them in template.
This is my code
```
export class RouteDetailComponent implements OnInit{
public routeId:number;
public route:Route;
public actUrl: string;
ngOnInit() {
t... |
2018/03/11 | 751 | 2,666 | <issue_start>username_0: I have two models as such,
```
class Foo(models.Model):
name = models.CharField(max_length=100, unique=True)
city = models.CharField(max_length= 50)
....
```
and
```
class Bar(models.Model):
Foo = models.ManyToManyField(Foo)
name = models.CharField(max_length=20, unique=... |
2018/03/11 | 1,627 | 5,457 | <issue_start>username_0: Input to my script is this file which contains data as below.
```none
A food 75
B car 136
A car 69
A house 179
B food 75
C car 136
C food 85
```
For each distinct value of the second column, I want to print any line where the number in the third column is different.
Example output
```none
... |
2018/03/11 | 432 | 1,196 | <issue_start>username_0: I have the following two functions in different columns and I need to apply a function to both :
`=DATE(YEAR(E5);MONTH(E5);DAY(E5))`
`=TRUNC([@CAT]-TIME(10;0;0))`
For both of them I need to default to a Friday if the date falls over the weekend. if date date is during the week it needs to ke... |
2018/03/11 | 850 | 2,525 | <issue_start>username_0: I have the following html..
```css
.wrapper {
background:wheat;
}
.woocommerce-store-notice, p.demo_store {
position: absolute;
top: 0;
left: 0;
right: 0;
margin: 0;
width: 100%;
font-size: 1em;
padding: 1em 0;
text-align: center;
backgro... |
2018/03/11 | 1,520 | 4,860 | <issue_start>username_0: **MEAN Stack**
I keep getting
>
> TypeError: Cannot read property 'first\_name' of undefined
>
>
>
when trying to execute this code (all variables, including modules are defined in other parts of the code). While using GET Method, my code is working fine. But for POST Method, it throws ... |
2018/03/11 | 1,327 | 4,593 | <issue_start>username_0: I have a mysql query written as part of a Stored Procedure
```
-- {parameter}
SELECT id INTO emailId FROM email_list WHERE email = {email};
```
If this query returns an empty result set, what is the value of emailId? undefined, null, 0
I want to check if emailId contains a value and run a ... |
2018/03/11 | 352 | 1,312 | <issue_start>username_0: I have implemented a bootstrap datepicker for policy start, so that I want to show user to select dates from current month and next month only.
Can anyone tell me how is it possible in bootstrap datepicker?
```
$(".policy-start-dp").datepicker({
});
```<issue_comment>username_1: You need t... |
2018/03/11 | 396 | 1,530 | <issue_start>username_0: So i have intent that require some extras,but i was thinking is it possible to open it without passing extras and not getting null pointer?
EDIT: I have activity A and activity B. When i press button im passing few strings as extras to activity B. If its not passed,I will get null pointer and ... |
2018/03/11 | 2,409 | 7,358 | <issue_start>username_0: I have a spreadsheet that has student test scores from each week.It has 5 fields,name(column A),year(column B),level(column C),week(columnD) and score(ColE).Each student have their own block on the sheet and each block of rows is seperated by and empty row.The blocks of rows will vary in size.... |
2018/03/11 | 538 | 2,164 | <issue_start>username_0: ```
class Product(models.Model):
company = models.ForeignKey('Company', on_delete=models.SET_NULL, null=True)
class ProductImage(models.Model):
product = models.ForeignKey('Product', on_delete=models.SET_NULL, null=True)
image_path = models.ImageField(max_length=255,null=True,blank... |
2018/03/11 | 592 | 2,074 | <issue_start>username_0: I have a simple problem with variable in index.blade.php `{{$last_message}}`
But it not working, it look like "`Undefined variable: last_message (View: G:\OSPanel\domains\flobex\resources\views\chat\index.blade.php)"`
Here is my controller:
```
$user = Auth::user();
$friend = Auth::user()... |
2018/03/11 | 280 | 1,158 | <issue_start>username_0: I was been told by a colleague of mine that instead of using the br tag we could we could use a span tag and give it a display:block and for the hr tag we could do it with the after pseudo element using css. I have been told that this was a good practice to follow than using these html tags. Is... |
2018/03/11 | 1,253 | 3,302 | <issue_start>username_0: I got a problem with `setFullYear()`. On input, I have some date like `1/1/1980` and I should find how long have past time it's like: *38 years 1 month 10 days 14 hours 13 minutes*. But the problem is in how can I get the time till centenary?
My solutions:
```js
var now = new Date()
var ol... |
2018/03/11 | 422 | 1,476 | <issue_start>username_0: I have a hidden `li` or maybe I would need to create one
**HTML**
```
- [](/channel)
[What I comment]
```
```
```
So anytime I write a new comment, and click on the `comment` button, It appends the preexistent `li.instant_comment` into the `#MyComments` container. So... |
2018/03/11 | 469 | 1,852 | <issue_start>username_0: How can I set up a popup window in an Android Cordova application to have a blurred background? The content behind it will not be known in advance, and may contain both images and other components from multiple sources. It will not necessarily only appear over a single image. The effect I'm loo... |
2018/03/11 | 417 | 1,520 | <issue_start>username_0: Historic question.
Pls note, it's now this simple:
<https://stackoverflow.com/a/59993994/294884>
---
The unusual bottom corners of an iPhoneX are Apple's new (2017) **"continuous corners for iPhoneX"**.
It is trivial for any experienced iOS programmer to ***approximate*** the curve, but:
... |
2018/03/11 | 245 | 921 | <issue_start>username_0: I have a build step in teamcity which allows me to replace web.config values with web.release.config values. I would like to add one more step - pass some parameter from teamcity to web.config. In my case it will be release version, which is part of connection string. The best idea I have is ju... |
2018/03/11 | 1,022 | 3,250 | <issue_start>username_0: I'm using [mypy](http://mypy-lang.org/) in my python project for type checking. I'm also using PyYAML for reading and writing the project configuration files. Unfortunately, when using the [recommended import mechanism from the PyYAML documentation](http://pyyaml.org/wiki/PyYAMLDocumentation) t... |
2018/03/11 | 1,363 | 3,934 | <issue_start>username_0: How can I find all records with the same attributes and cluster them together?
------------------------------------------------------------------------------
Example: table of animal species and their types. I want to cluster same species **IF** they are the same type. Or maybe some other attr... |
2018/03/11 | 1,410 | 4,201 | <issue_start>username_0: Im trying to get the most recent row of a table
```
user_quiz:
+--------+-----------+-------------+-------------------+------------+
|quiz_id |userid | module_id |number_of_questions| user_score |
+--------+-----------+-------------+-------------------+-------- ---+
| 1 | 1 ... |
2018/03/11 | 1,242 | 3,474 | <issue_start>username_0: I am trying to find a word from consecutive strings inside an array and I am stuck at the moment.
For example: `array = ['w', 'r', 'a', 'p', 'p', 'l', 'e', 'f', 'k', 'l'];` I want to make a function that will return true if the word 'apple' is inside this array. Strings need to be consecutive.... |
2018/03/11 | 637 | 2,004 | <issue_start>username_0: I've written a program that asks the user to type in four numbers like this:
```
a = input()
first = int(a)
b = input()
second = int(b)
c = input()
third = int(c)
d = input()
fourth = int(d)
```
I do not understand how can I put them in a list.<issue_comment>username_1: First off, you... |
2018/03/11 | 538 | 1,488 | <issue_start>username_0: i Have a array
```
var arr = [["25","98"],["28","94"],["24","91"]]
```
how to make this array like in JS
```
var Newarr = [["98","25"],["94", "28"],["91", "24"]]
```<issue_comment>username_1: You can use `map` to reiterate the array. You can [spread](https://developer.mozilla.org/en-US/doc... |
2018/03/11 | 1,225 | 4,407 | <issue_start>username_0: I am trying to write this basic JS where the `h1` tag changes color on click. The console does not throw any error but when I click on the `h1`, the color does not change. I don't understand what I am missing or where have I gone wrong. Can someone please nudge me in the right direction?
```js... |
2018/03/11 | 396 | 1,311 | <issue_start>username_0: I try to implement this map in my flutter application:
<https://github.com/apptreesoftware/flutter_map>
If I run example code from github above, it throws such an error:
```
type 'Bounds' is not a subtype of type 'Bounds' where
Bounds is from package:flutter\_map/src/core/bounds.dart
num is ... |
2018/03/11 | 522 | 1,725 | <issue_start>username_0: Below is the array of sentences I have
```
$strings = [
"I want to match docs with a word New",
"But I don't want to match docs with a phrase New York",
"However I still want to match docs with a word New which has a phrase New York",
"For example let's say there's a New restaraun... |
2018/03/11 | 1,536 | 4,900 | <issue_start>username_0: this is my first ever Python script/question on Stackoverflow/step into real coding.
I am looking to count the number of times certain strings appear within the rows I am iterating through then print out the values. I have not set up a delimiter so there is only one column. Essentially I am sa... |
2018/03/11 | 564 | 1,569 | <issue_start>username_0: I have the following structure:
```
mainfolder
folder1
000000.jpg
000001.jpg
000003.jpg
000004.jpg
folder2
000000.jpg
000001.jpg
folder3
000000.jpg
000001.jpg
000002.jpg
....
```
I want to copy and rename all the jpg-files. After... |
2018/03/11 | 302 | 1,067 | <issue_start>username_0: I think this is an error related to angular 5.2.8 & 6 .
With angular 5.2.7 work fine.
I create a [ng5 branch](https://github.com/client-sdk-samples/sample-angular-OidcClient/tree/ng5) and update angular to latest 5.2.8 and the error com in!
anybody can direct me to an angular 5.2.8 and later s... |
2018/03/11 | 1,836 | 6,865 | <issue_start>username_0: I had some problems to understand the whole `this` issue in React (or JS in general) and found this very helpful article:
<https://medium.freecodecamp.org/react-binding-patterns-5-approaches-for-handling-this-92c651b5af56>
However, there is one basic thing that I'm still not sure about.
Let'... |
2018/03/11 | 613 | 2,212 | <issue_start>username_0: I'm trying to overwrite save() method of the model to resize images. Every format works, except when saving a .jpg image. It's not saving images with .jpg extension.
I read the Pillow documentation and there's no JPG format.
```
class Business(models.Model):
photo = models.ImageField(_('photo... |
2018/03/11 | 647 | 2,108 | <issue_start>username_0: I'm trying to parse the data from all list contents in a page and store it in a set of dictionaries.
A program that I tried
```
import re
import pytz
import requests
import datetime
from flask import url_for
from bs4 import BeautifulSoup
from urllib.parse import urljoin
matchinfor_link = "htt... |
2018/03/11 | 491 | 1,664 | <issue_start>username_0: I need to initialize vectors and check whether the initialization has been successful many times, so I decided to create a function for that. The problem is that I haven't been able to find a way to tackle this problem without losing a significant amount of efficiency. This has been my attempt ... |
2018/03/11 | 371 | 1,335 | <issue_start>username_0: I'm trying to make a method that automatically adds new entries to a web page. Instead the method keeps printing [object Object] on the screen:
```js
class entry{
constructor(entryTitle, entryContent){
this.entryTitle = entryTitle;
this.entryContent = entryContent;
... |
2018/03/11 | 1,179 | 2,900 | <issue_start>username_0: I'm trying to solve this exercise but I could use some help. I want to sort all the columns of this matrix in an ascending order but this code only sorts the first one. Any idea what should I do?
```
var matrix = [
[ 0, 8, 1, 1, 10, 6 ],
[ 6, 8, 7, 0, 3, 9],
[ 0, 7, 6, 8, 6, 5],
[ 4, 0, ... |
2018/03/11 | 1,173 | 3,847 | <issue_start>username_0: This is regarding Java Calendar and the effects we encountered after today day light saving change in Toronto.
Below is the code
```
Date date = new Date(); //Sun Mar 11 00:00:00 EST 2018
Integer time = 349;
Calendar scheduleDateCal = Calendar.getInstance();
scheduleDateCal.s... |
2018/03/11 | 777 | 2,525 | <issue_start>username_0: I've been working on something that scrapes the text off a site, compares it to the minimum and then prints the result. Here's what i'm working with:
snip
( yes i define what the variable 'group\_id' is, gets random ids or the id that is chosen )
The currency has suffixes | ex: 1K, 1M, 1B, e... |
2018/03/11 | 756 | 3,256 | <issue_start>username_0: I'm using pyinstaller to pack a splash screen, these are the import of the python script:
```
import subprocess
import time
import sys
import os
import signal
from multiprocessing import Process, Queue
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, Gdk, Pango
```
I... |
2018/03/11 | 958 | 4,167 | <issue_start>username_0: I'm working on game scripting for my engine and am using a metatable to redirect functions from a table (which stores custom functions and data for players) to a userdata object (which is the main implementation for my Player class) so that users may use `self` to refer to both.
This is how I ... |
2018/03/11 | 399 | 1,559 | <issue_start>username_0: I have downloaded MongoDB from the official site as an `.msi` file and during installation it stops and freezes and after half an hour, and gives an error as the setup wizard ended prematurely.
[](https://i.stack.imgur.com/... |
2018/03/11 | 303 | 1,256 | <issue_start>username_0: I am new to Magento 2 and was using **composer** to install it. Have already cloned the repo from Magento GitHub account.
One thing I couldn't find information about was when installing Magento 2 on localhost do I need to place it under this docroot `/var/www/magento2` or can it live outside ... |
2018/03/11 | 966 | 2,794 | <issue_start>username_0: ```
{"id":34,"first_name":"xus"}
{"id":34,"first_name":"xus"}
{"id":4,"first_name":"ABC"}
{"id":4,"first_name":"ABC"}
$newlist = [];
$values = [];
foreach ($appointment_list as $key => $value) {
# code...
$values[] = $value['users'];
foreach($values as $val){
$newlist[... |
2018/03/11 | 470 | 1,833 | <issue_start>username_0: I'm having a look at [React Boilerplate](https://github.com/react-boilerplate/react-boilerplate) and I noticed that when I change the syntax from JSX to regular JS (using `React.createElement`) I have the warning `Each child in an array or iterator should have a unique "key" prop`. So I guess J... |
2018/03/11 | 340 | 1,149 | <issue_start>username_0: I am writing a small game, and part of that is to keep track of player's scores. For this, I have a map initialized as follows:
```
// given: players: List
var scores: MutableMap = mutableMapOf(\*players.map { it to 0 }.toTypedArray())
```
**What bothers me is that i need to use `.toTypedArr... |
2018/03/11 | 1,150 | 3,159 | <issue_start>username_0: I just start to learn MySQL, and I have a question regarding one specific query. I have a table called 'table1' as following :
[](https://i.stack.imgur.com/NH9Xi.jpg)
I want to know if there are different rows with the same v... |
2018/03/11 | 338 | 1,002 | <issue_start>username_0: I have a [regular expression](https://regex101.com/r/X5r22W/1) that receives html tags without a tag name:
```
<(\s)*\w* \K.*>
```
But `Java` doesn't support `\K` into regex
I'm [trying to rewrite](https://regex101.com/r/DASNUS/2) without `\K`, but for me it seems impossible<issue_comment>u... |
2018/03/11 | 338 | 1,062 | <issue_start>username_0: ```
$array=array("sam"=>"andy");
$user="sam";
$pass="<PASSWORD>";
if(!in_array($user,$array)) //line no 5
{
echo "please register";
}
else
{
if($array[$user]==$pass)
{
echo "welcome";
}
}
```
*What changes should i do in ... |
2018/03/11 | 823 | 3,095 | <issue_start>username_0: I have a search controller attached to a navigation item with a customized search bar styling (colors). Here is the code:
```
searchController = UISearchController(searchResultsController: nil)
searchController.searchResultsUpdater = self
searchController.hidesNavigationBarDuringPr... |
2018/03/11 | 324 | 882 | <issue_start>username_0: I have such string
```
Sale: \t\t\t5 Jan \u2013 10 Jan
```
I want to extract the start and the end of the sale. Very straightforward approach would be to make several spilts, but I want to that using regular expressions.
As the result I want to get
```
start = "5 Jan"
end = "10 Jan"
```
I... |
2018/03/11 | 431 | 1,614 | <issue_start>username_0: There are two terms in angular 5 [SimpleChange](https://angular.io/api/core/SimpleChange)
and [SimpleChanges](https://angular.io/api/core/SimpleChanges), I didn't understand clearly from the official document could someone please explain me ??/<issue_comment>username_1: `SimpleChange` class re... |
2018/03/11 | 436 | 1,477 | <issue_start>username_0: Why my store.getState return undefined value! I'm quite new with ReactJS & Redux here my code
```
import {createStore} from 'redux';
const initialState = {
salary: 1000,
}
const reducer = (state=initialState, action) => {
switch (action.type) {
case "ADD":
state = {
s... |
2018/03/11 | 1,470 | 4,844 | <issue_start>username_0: I am using VS2012 and I would like to know which code in my project is never called. How can I do it?
Here is the menu I tried out for the dead code analysis, but did not find it here.
<issue_comment>username_1: Short answer:... |
2018/03/11 | 1,730 | 5,910 | <issue_start>username_0: At the bottom of my personal page (1 page website) I have a contact form that sends a message to my database so I can read it later.
The problem is that if I don't redirect to anywhere, the page doesn't reload, which is what I want, but is searching for something and have a loading icon in the... |
2018/03/11 | 1,656 | 5,520 | <issue_start>username_0: I want to add an item to the DataGridView
If checked ListBox is checked. but add an item one time.Don't add it twice.
and I want the unchecked object in the checkedlistbox to be deleted as a row in the DataGridView. But my code is not working
[]... |
2018/03/11 | 1,010 | 2,930 | <issue_start>username_0: While running `doxygen` I get the following error:
```
doxygen: error while loading shared libraries: libclang.so.6: cannot open shared object file: No such file or directory
```
I have installed `doxygen` using `sudo apt install doxygen` on Ubuntu 17. In `/usr/lib/x86_64-linux-gnu` I have `... |
2018/03/11 | 616 | 2,443 | <issue_start>username_0: i need to create a filtered search based on different paramnters chosen by a user. So, for example, my app is a property app. I want them to be able to define the county, town, max,min bedrooms ect from a dropdown list and press search, and this returns all the properties that match the criteri... |
2018/03/11 | 959 | 2,313 | <issue_start>username_0: I have data:
```
{'foo': [{1: 55}, {'c': 43}], 'bar': [{1: 43}, {'c': 40}]}
```
I wanna sort the dictionaries inside the foo and bar by its values:
```
{'foo': [{'c': 43}, {1: 55}], ...}
```
I dont wanna sort the 'foo' and 'bar'.
Is there an easy way yo do this? Sorry if I make mistake i... |
2018/03/11 | 1,033 | 2,807 | <issue_start>username_0: I've written the following function that when used with `Defer` will surely do the trick but is there something in standard library I could use for this? I'm looking something similar to Python `timeit` which I could use directly from the shell?
```
package main
import (
"fmt"
"time"
... |
2018/03/11 | 968 | 3,519 | <issue_start>username_0: Hi im trying to get the backgound color from a website to compare it for other operations. Just like the Background color of the buy button of the web site.
```
Sub Colorfinder()
Dim oIE As New InternetExplorer
Dim oHtml As HTMLDocument
Dim tags As Object
Dim HTMLtags As IHTMLElementCollection... |
2018/03/11 | 546 | 2,101 | <issue_start>username_0: With simple HTML page, how to open programmatically software keyboard after document loaded on smartphones ?
For better user ergonomics, the goal is to focus on the first input with the softkeyboard already open. Just to write and continue.
**Without any interaction of user**,
and after page i... |
2018/03/11 | 1,401 | 4,066 | <issue_start>username_0: I have a dataframe of movies from pandas like this
```
id, name, genre, release_year
1 A [a,b,c] 2017
2 B [b,c] 2017
3 C [a,c] 2010
4 D [d,c] 2010
....
```
I want to group by the movies according to the values present in the genre lists.
My ... |
2018/03/11 | 1,000 | 3,106 | <issue_start>username_0: I'm trying to plot the GDP for every country on a bar chart. The country name goes on the x-axis and the GDP value on the y. However, there are a lot of countries, and I'd like the bar chart to just show the top 3 GDPs, and the bottom 3 GDPs and in between I want perhaps some dots or something ... |
2018/03/11 | 797 | 2,787 | <issue_start>username_0: I want to get two numbers whose product is equal to a given number. Below is my code but it throws an `ArrayIndexOutOfBoundsException` and I don't know why.
```
package com.sample;
public class ProductCheck {
public static void main(String[] args) {
// TODO Auto-generated method... |
2018/03/11 | 346 | 1,280 | <issue_start>username_0: I have a table with thousands of entries. I'm building a web application (Razor C#) to present a table with the information.
I have a working pagination system, However I can't find a way to know if the current result set has the last result.
I've thought of doing:
* pageNumber \* resultPe... |
2018/03/11 | 1,634 | 6,551 | <issue_start>username_0: I have a chat widget that I want to embed it other people's websites. It looks just like Intercom and all the other chat popups. I want to make the chat popup stick to the bottom-right hand corner of the screen regardless of where you scroll. However, when I import the chat app as an iframe and... |
2018/03/11 | 1,013 | 1,956 | <issue_start>username_0: I have a collection of arrays such as
```
a = [array([0, 1, 2, 3, 4]) array([0, 1, 2, 3]) array([0, 1, 2, 3, 4])
array([0, 1, 2, 3, 4, 5, 6, 7, 8]) array([0, 2, 3, 4, 5, 8, 9])
```
Is there any way to show this result is the form of key-value pairs like
```
[[(0),(1,2,3,4)],[(1),(0,... |
2018/03/11 | 633 | 1,580 | <issue_start>username_0: a=[('<https://www.google.co.in/search?q=kite+zerodha&oq=kite%2Cz&aqs=chrome.1.69i57j0l5.4766j0j7&sourceid=chrome&ie=UTF-8>', 1), ('<https://kite.zerodha.com/>', 1), ('<https://kite.trade/connect/login?api_key=xyz>', 1)]
how to get value of api\_key which is xyz from above mentioned `a`.
please... |
2018/03/11 | 656 | 2,428 | <issue_start>username_0: I am using Alibaba's Object Storage Service's image processing to process my images. I need a way to join (stitch) a few images together and create a larger image.
**Background:** I want to scale up an image to 7680 × 4320 (8k) resolution using the OSS image processing. But every time I do tha... |
2018/03/11 | 782 | 3,088 | <issue_start>username_0: [JSON Web Token](https://www.rfc-editor.org/rfc/rfc7519) is a fairly recent standard (May 2015) and yet they decided to go for [UNIX timestamps](http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_16) in order to [represent dates](https://www.rfc-editor.org/rfc/rfc751... |
2018/03/11 | 998 | 2,072 | <issue_start>username_0: I am working in SAS with a dataset with a lot of numeric values which I have standardised as follows:
```
proc standard data=df mean=0 std=1
out=df;
run;
```
Is there any easy way to deal with outliers (+/- 3standard deviation) for all numeric values? Ideally I would want to chang... |
2018/03/11 | 930 | 2,011 | <issue_start>username_0: I am sending a json string from flask using flask.jsonify(myobject=myobject)
On the client in in Firefox webconsole network monitor I can see network response JSON :
```
myobj: {"date": {"0":"2018-03-10T00:00:00.000Z","1":"2018-03-11T00:00:00.000Z","2":"2018-03-12T00:00:00.000Z"},"value":{"0"... |
2018/03/11 | 888 | 2,473 | <issue_start>username_0: I am facing the following problem:
I want to start the page with "#Before" and "#After" hidden.
- When I click on the button "Go Back", "#Before" should be shown.
- When I click on the button "Go Forward", "#After" should be shown.
But when I am clicking to show only one of the elements, and ... |
2018/03/11 | 650 | 2,121 | <issue_start>username_0: On input I am given multiple `uint32_t` numbers, which are in fact binary strings of length 32. I want to produce binary string ( a.k.a. another `uint32_t` number ) where n-th bit is set to `1` if n-th bit in every given string from input is same.
---
Here is simple example with 4 bit string ... |
2018/03/11 | 1,156 | 4,301 | <issue_start>username_0: New to React, but not to test applications.
I'd like to make sure every time a component throws a error the ErrorBoundary message is displayed. If you don't know what I mean by ErrorBoundary here is a [link](https://reactjs.org/blog/2017/07/26/error-handling-in-react-16.html).
I'm using [Moch... |
2018/03/11 | 901 | 2,610 | <issue_start>username_0: How can i search firebase data with a value, i want to get the data if the value comes in between the two keys
Example
If user enter any number between 1 to 5 return the below data,
```
"start" : "1",
"end" : "5",
```
"end" key can be empty, the array i have in my firebase database is b... |
2018/03/11 | 1,461 | 5,192 | <issue_start>username_0: I'm a beginner and I am looking for a way to check if a quotient in C++ is an integer.
For example:
```
int a;
double b;
cin >> a;
b = a / 4;
```
How do I know that b is not an integer (something like 5/4=1.25)?<issue_comment>username_1: You don't need to check whether `b` is an integer, be... |
2018/03/11 | 1,121 | 3,482 | <issue_start>username_0: Please I want to change the font-awesome icon from fa-plus to fa-minus using click event. Can anyone please help me out I would be very grateful. Thanks for your unusual help. My code is below.Please I want to change the font-awesome icon from fa-plus to fa-minus using click event. Can anyone p... |
2018/03/11 | 336 | 888 | <issue_start>username_0: I have 2 files....
FILE1:
```
012:coffee
013:salt
014:apple
015:mushrooms
016:tree
```
FILE2:
```
Subject: Three tips to get the most out of Gmail
Subject: The best of Gmail, wherever you are
Subject: Stay more organized with Gmail's inbox
Subject: 012
Subject: 014
```
How can I generate... |
2018/03/11 | 645 | 2,349 | <issue_start>username_0: I've read a fair few questions on this error and I either didn't understand what was happening/the answer, or it didn't fit my case.
I've got a simple user table already:
```
CREATE TABLE user
(
id INT PRIMARY KEY NOT NULL AUTO_INCREMENT,
username VARCHAR(50) NOT NULL,
password VA... |
2018/03/11 | 467 | 1,754 | <issue_start>username_0: Im making login and registration sample page, after users signed up, they will go to the welcome page where their inputs in the registration was displayed, I have 3 fields that I already displayed (email, username and full name) now I want also to display to their profile page the exact time th... |
2018/03/11 | 338 | 1,494 | <issue_start>username_0: My project is built using `ASP.NET MVC` and I've used Entity Framework 6 to access data from `Sql Server` database. I am following Database first approach for EF6. Frequently I need to make changes in my Database schema like making column nullable, changing column names etc. Now option 'update ... |
2018/03/11 | 277 | 764 | <issue_start>username_0: I have a buffer in this format:
```
```
And I need to convert it to hex format:
```
24b05e653f26744e9aba87352d83cd5417099b1bcc725816996dd65cb7fab663
```
All the examples I see do it like this, but it has no effect when I try it.
```
b=getBuffer(data);
console.log(b);
hex=Buffer.from(b, '... |
2018/03/11 | 1,681 | 5,143 | <issue_start>username_0: Schema
------
A single document looks like this:
```
{
row: [
{ identifier: 'a', value: '2000-01-01' },
{ identifier: 'b', value: 5 },
{ identifier: 'c', value: 99 },
]
}
```
Wanted result
-------------
I'd like to group it by year. More precisely: The value at `identifier`... |
2018/03/11 | 353 | 1,345 | <issue_start>username_0: I try to add a tag in my feature file (using cucumber plugin within eclipse) but when I run my feature file it gives me an error:
```
Exception in thread "main" gherkin.TagExpression$BadTagException: Bad tag: "env" What am I doing wrong?
```
What I want is when I run the test, I want it to s... |
2018/03/11 | 887 | 3,286 | <issue_start>username_0: I need to write a function `duplicate(it)` which returns iterator duplicating elements of iterable `it`. Examlpe: If `it = [1, 2, 3]` then `list(duplicate(it)) == [1, 1, 2, 2, 3, 3]`. I tried to implement `DoubleIterator` class and `duplicate(it)` function for lists (not sure about right way of... |
2018/03/11 | 628 | 2,362 | <issue_start>username_0: I want to save directories to the DB for my file path tree, but I got this error when initializing Hibernate:
```
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [hibernate-config.xml]: Invocation of init me... |