Detecting Firebug

To detect the presence of firebug in a browser window simply check that window.console is not ‘undefined’. You can get the version of firebug by reading the value from console.firebug.

Share

Bash Prompt Customization

Here are the backslash-escape special characters that have meaning to bash: \a an ASCII bell character (07) \d the date in “Weekday Month Date” format (e.g., “Tue May 26”) \e an ASCII escape character (033) \h the hostname up to the first `.’ \H the hostname \j the number of Read more…

Share

DarwinPorts brought back to life as MacPorts

The DarwinPorts project that we all know and love has been reincarnated under the name MacPorts. It has been added to the Mac OS Forge project community. They are currently in the process of migrating everything over but you can expect to see it up and running again very soon.

Share

Autocompletion

Description: Autocomplete will complete any word, in any open document you are currently editing Mode: Insert Commands: Ctrl+N – Next Suggestion Ctrl+P – Previous Suggestion Usage: Open an existing text document in vim and enter insert mode. Type any character (for example ‘s‘) and press Ctrl+N or Ctrl+P. Vim will Read more…

Share