Foresight.js gives webpages the ability to tell if the user’s device is capable of viewing high-resolution images (such as the 3rd generation iPad) before the image is requested from the server. Additionally, it judges if the user’s device currently has a fast enough network connection for high-resolution images. Depending on device display and network connectivity, foresight.js will request the appropriate image for the webpage

  • Request hi-res images according to device pixel ratio
  • Estimates network connection speed prior to requesting an image
  • Does not use device detection through user-agents
  • Does not make multiple requests for the same image
  • Javascript library and framework independent (ie: jQuery not required)
  • Cross-browser and cross-platform
  • Image dimensions set by percents will scale to the parent element’s available width and device pixel ratio
  • Fully customizable through global configuration options and individual img attributes
  • Default images will load without javascript enabled
  • Minifies down to roughly 5K

foresight.js

The following snippet of code can be used to check for the existence of a file from within a Makefile.

ifneq ("$(wildcard $(PATH_TO_FILE))","")
FILE_EXISTS = 1
else
FILE_EXISTS = 0
endif

Quoting from make documentation.

$(wildcard pattern)
The argument pattern is a file name pattern, typically containing
wildcard characters (as in shell file name patterns). The result of
wildcard is a space-separated list of the names of existing files
that match the pattern.

In this present case, we are not using any wildcards, but the absolute path to the file.

SCons is an Open Source software construction tool—that is, a next-generation build tool. Think of SCons as an improved, cross-platform substitute for the classic Make utility with integrated functionality similar to autoconf/automake and compiler caches such as ccache. In short, SCons is an easier, more reliable and faster way to build software.
SCons

The Phoronix Test Suite is the most comprehensive testing and benchmarking platform available that provides an extensible framework for which new tests can be easily added.

  • OpenBenchmarking.org Integration
  • 130+ Test Profiles
  • 60+ Test Suites
  • Extensible Testing Architecture
  • Optional Linux-based LiveDVD/USB Testing Distribution (PTS Desktop Live)
  • Automated Test Installation
  • Dependency Management Support
  • Module-based Plug-In Architecture
  • PNG, JPG, GIF, Adobe SWF, SVG Graph Rendering Support
  • Automated Batch Mode Support
  • Global Database For Result Uploads, Benchmark Comparisons
  • Detailed Software, Hardware Detection
  • System Monitoring Support
  • GTK2 Graphical User Interface + Command-Line Interface
  • Runs On Linux, OpenSolaris, Mac OS X, Windows 7, & BSD Operating Systems

http://www.phoronix-test-suite.com/

Keymaster is a simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies. Keymaster has no dependencies and can be used completely standalone. It should not interfere with any JavaScript libraries or frameworks.

Keymaster understands the following modifiers:
⇧, shift, option, ⌥, alt, ctrl, control, command, and ⌘.

The following special keys can be used for shortcuts:
backspace, tab, clear, enter, return, esc, escape, space,
up, down, left, right, home, end, pageup, pagedown, del, delete
and f1 through f19.

When an INPUT, SELECT or TEXTAREA element is focused, Keymaster doesn’t process shortcuts.

Keymaster should work with any browser that fires keyup and keydown events, and is tested with IE (6+), Safari, Firefox and Chrome.

See http://madrobby.github.com/keymaster/ for a live demo. (Look at your firebug console)

https://github.com/madrobby/keymaster

Google’s Search, Plus Your World (SPYW) has come under severe criticism from several companies including Facebook and Twitter. And most of the criticism is quite fair according to me. However I am starting to find the SPYW feature quite useful, not because I’m getting great search results from my connections on Google Plus, but because it also shows my own personal suggestions right on the first page. This has been very useful, while I’ve been trying to find stuff on the internet, which I have found in the past and blogged about it.Continue reading