Top "Range" questions

A range is an extent of values between its lower and upper bound.

Combined total for multiple jQuery-UI Sliders

I'm trying to implement a page where there are 4 jQuery-UI sliders, and I want to make it so the combined …

jquery jquery-ui slider range
How to reduce consecutive integers in an array to hyphenated range expressions?

In JavaScript, how can I convert a sequence of numbers in an array to a range of numbers? In other …

javascript range sequence
PostgreSQL index not used for query on IP ranges

I'm using PostgreSQL 9.2 and have a table of IP ranges. Here's the SQL: CREATE TABLE ips ( id serial NOT NULL, …

postgresql indexing database-design range gist-index
Count the number of Ks between 0 and N

Problem: I have seen questions like: count the number of 0s between 0 and N? count the number of 1s between 0 …

algorithm numbers range time-complexity counting
How can I require my python script's argument to be a float between 0.0-1.0 using argparse?

I'd like to use argparse on Python 2.7 to require that one of my script's parameters be between the range of 0.0 …

python range command-line-arguments argparse
`xrange(2**100)` -> OverflowError: long int too large to convert to int

xrange function doesn't work for large integers: >>> N = 10**100 >>> xrange(N) Traceback (most recent call …

python python-3.x range biginteger xrange
How can I highlight the text of the DOM Range object?

I select some text on the html page(opened in firefox) using mouse,and using javascript functions, i create/get …

javascript dom range highlight
How to generate normally distributed random from an integer range?

Given the start and the end of an integer range, how do I calculate a normally distributed random integer between …

c# random range gaussian normal-distribution
Checking a table for time overlap?

I have a MySQL table with the following fields: name starttime endtime starttime and endtime are MySQL TIME fields (not …

mysql sql time range overlap
Ranges in Erlang

From the other languages I program in, I'm used to having ranges. In Python, if I want all numbers one …

erlang range