January 2011
4 posts
1 tag
Conditional Hash Initialization Style
We all run into situations where we want to initialize a hash, conditionally set some values, and then return it. I’ve often struggled to find a style that I’m fully satisfied with. Consider the following: I would much prefer to express that like this: Thoughts? What would you prefer?
Jan 1st
December 2010
3 posts
Please! Standard Keyboard Shortcuts for Web...
To their credit there are a few sites out there who have already figured this out. But, like myself, there are a lot of users who prefer to use the keyboard as much as possible and find reaching for the mouse annoying. UI people, please consider the following as a standard for keyboard navigation: j - Next Item k - Previous Item - Goto Item l - Next Page h - Previous Page / - Focus on...
Dec 22nd
1 note
Tip: Ignoring Aliases In Bash
Let’s say you have the following alias: ls='ls -laFh' And, you want to just call ‘ls’ by itself… Just lead the command with a ‘\’ to bypass the alias. \ls That will give you the naked ‘ls’ command. (via nixCraft)
Dec 22nd