Makefile – Check if a file exists using wildcard function

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))","")

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.

Phoronix Test Suite – Linux Testing & Benchmarking Platform, Automated Testing Framework, Open-Source Benchmarking

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.

  • 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

Keymaster – Javascript Library for defining and dispatching keyboard shortcuts

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 for a live demo. (Look at your firebug console)

Personal Bookmarking System with your Blog and Google’s Search, Plus Your World

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