Tag Archives: hacks

OSX Nuisance Folders

Building on a post by richthomas over on macrumors.com, use the following command to hide folders in OSX: chflags hidden /Users/samh/Public This is _very_ useful for getting rid of the stupid Sites, Public and Movies folders that are there by default in every snow leopard home directory. Use this command to unhide: chflags nohidden /Users/samh/Public
Posted in Etc... | Also tagged | Leave a comment

Arbitrary HTML attributes and JavaScript

This is a technique that is pretty obvious, but nonetheless useful and worth documenting:  To put it succinctly, it is possible to add custom attrbutes to HTML elements, and query them out with JavaScript DOM operations.  So you might build elements with mouseover help text like this: <a id=”years” href=”#” helpText=”Please enter your motorcycle riding [...]
Posted in Software Development | Also tagged , , | Leave a comment