Monthly Archives: February 2010

Bash aliases: create your own bash shortcuts!

When I’m building websites especially, I have to work with a lot of deeply nested files. But typing cd ~/public_html/websitename/wp-content/themes/themename/ in the terminal every time is giving me carpal tunnel, so I found a better way: First open ~/.barshrc in a text editor and uncomment lines 73 through 75 so they look like this: if [...]

Posted in Linux, Solutions, Ubuntu | Tagged | Leave a comment

How to configure Apache virtual hosting in Ubuntu Karmic 9.10

Edited 3/8/11 Before you do anything, back up your original config files. I used to just create a copy of the files with the suffix “.bak” (sudo cp example.conf example.conf.bak), which works, but creates a lot of clutter. Now I use a great little utility called etckeeper which automatically places all files in /etc under [...]

Posted in Apache, Solutions, Ubuntu, Virtual Hosts | Tagged , , | 3 Comments

Add Mootools to a WordPress child theme

The following code, when included in the functions.php file in your WordPress child theme, will correctly load Mootools and a custom script. This is the only way I am able make custom scripts work, but you hear a lot of stuff out there on the interweb… <?php function add_js() { $stylesheet_dir = get_bloginfo(‘stylesheet_directory’); $myscript = [...]

Posted in Solutions, Wordpress | Tagged , | Leave a comment

I’m switching to Chrome (on a trail basis)

I thought I would be a Firefox user till I died, but holy crap Chrome is fast! I can launch Firefox, go make a sandwich, launch Chrome and be browsing before Firefox loads. This is particularly nice on our crappy Windows machines at work. JavaScript is noticeably faster. Chrome seems more stable and doesn’t do [...]

Posted in Musings, Software I use | Tagged | Leave a comment