Category Archives: Solutions

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 [...]

Also posted in Linux, 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 [...]

Also posted in Apache, 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 = [...]

Also posted in Wordpress | Tagged , | Leave a comment

Ubuntu Karmic LAMP stack installation

In the terminal, type: $ sudo apt-get install apache2 $ sudo apt-get install php5 libapache2-mod-php5 php5-mysql $ sudo apt-get install mysql-server $ sudo apt-get install phpmyadmin Just agree when it asks you stuff.

Also posted in Ubuntu | Tagged , | Leave a comment

Use ‘service’ to start, stop and restart Apache in Ubuntu Karmic

The service service_name command command can be used to start, stop, or restart anything in your /etc/init.d directory. From the command line, use it like this: $ sudo service apache2 start $ sudo service apache2 stop $ sudo service apache2 restart

Also posted in Ubuntu | Tagged , | Leave a comment

VirtualBox on Ubuntu Jaunty for Testing Internet Explorer in Windows

Ed. Note: this method is no longer valid or necessarily a good way to go about things. See here instead: http://likesalmon.net/browser-testing-with-cloned-virtual-machines/ I really loved using VMWare Fusion in OSX to test my webpages in Windows.  The power to just drag a whole Windows installation into the trash when it gets jacked up is intoxicating. Unfortunatly, [...]

Also posted in Linux, Software I use, Tutorial, Ubuntu, VirtualBox | Tagged , | 2 Comments

lftp is awesome

I’ve been looking for a command line ftp utility that does tab completion and supports sftp. lftp is it! It comes pre-installed on Ubuntu 9.04 Jaunty. change directory: cd change local directory: lcd list directory contents: ls list local directory contents: !ls print local working directory: lpwd Put a file: put filename Put multiple files: [...]

Also posted in Linux, Ubuntu | Tagged | Leave a comment

External Monitor Resolution Fix for Ubuntu Jaunty

There is a lot of false information floating around the interweb about this one, but here’s how to get the right resolution on your external monitor when running Ubuntu Jaunty on a Macbook 2-1: Edit the xorg.conf file by typing the following into the terminal: sudo gedit /etc/X11/xorg.conf Edit that file to look like this: [...]

Also posted in Ubuntu | Tagged | 2 Comments

Dark PNGs in Safari

For whatever reason, sometimes the transparent parts of PNGs appear darker in Safari than in other browsers.  You can fix it by removing all the color correction metadata from the images with pngcrush: pngcrush -rem gAMA -rem cHRM -rem iCCP -rem sRGB InputFile.png OutputFile.png pngcrush is a command line tool that optimizes (read: makes smaller) [...]

Also posted in Web Design | Tagged , , | Leave a comment

FTOB: Installing Flash and Flex Bundles on Textmate

Originally posted on 10/9/08 at http://likesalmon.wordpress.com This is important because it allows me to use textmate as my editor. I freaking love textmate. For instructions of how to do this go here: http://flashalisious.com/2007/07/30/installing-as3-and-flex-bundle-for-textmate/ Do what he says, copy and paste the code he gives into the terminal all at once and press enter. Terminal will [...]

Also posted in Flash, From the old blog | Tagged | Leave a comment