The 7 Closet: A022 Digital Blog

The coolest stuff from the internet? Nah, but we're glad you think so.

Atticus told me to delete the adjectives and I’d have the facts.

—To Kill a Mockingbird

Mathematical Forumla For Determining Which Search Results Will Be On a Page

When search results are paginated, a subset of results is shown on each page.  Figure out which ones are on a particular page using this formula:

R = [v(p-1), v(p)]

R = Result set,
v = View Count
p = Pagination Depth

Example:
When View count is set to 10, Page 13 will contain Results #121-130.

Probably not something you are going to need to use very often, but occasionally handy for testing or search algo predictions.

Ziptastic

Easy Zip Code API for fetching City and State data

Perfection may look good in his shiny shoes, but he is an asshole and no one invites him to their pool parties

(if) low rent and low taxes is the difference between you being successful or not successful, you don’t have a business. If having access to the best and the brightest is the difference, this is the place to be.

—Michael Bloomberg

Wearing a lab coat makes nearly any activity more awesome.

—Nick