Tequilafish - tequilafish.com - Tequila Fish

General Information:
Latest News:
Installing Bundler for Ruby in Ubuntu 10.04 27 Jan 2012 | 01:20 pm
When attempting to install Bundler for Ruby on Ubuntu 10.04, I got the following error: shell> sudo gem install bundler ERROR: Error installing bundler: bundler requires RubyGems version >= 1.3.6 ...
Unix: Delete all but N most recent files in a directory 27 Jun 2011 | 06:21 pm
Here's a handy little command to delete every file in a directory except for the N most recent files. It is helpful for including in a log rotation or db backup script. find /path/to/files/ -maxdepth...
MySQL: Dynamic ORDER BY clause 19 Aug 2010 | 02:03 pm
When developing some discography software for a website, I came across the need to sort a list of releases differently depending on their release date. I wanted to sort future releases in ascending or...
How to increase bash shell history length in OS X 12 Aug 2010 | 04:52 pm
I do a lot of command line work on my OS X machine, so the history saves me a lot of time running repeat commands and also refreshing my memory on commands that I haven't run in a while. Unfortunately...
eAccelerator and open_basedir: open_basedir restriction in effect. File() is not within the allowed path(s): 23 Jul 2010 | 10:48 am
After installing eAccelerator on a CentOS 5.5 server running PHP 5.2.10, a bunch of websites began failing with open_basedir errors like so: [Fri Jul 16 17:53:50 2010] [error] [client XX.XX.XXX.XXX] ...
MySQL: Global find & replace 30 Apr 2010 | 02:25 pm
Global find & replace is easy in MySQL: UPDATE table_name SET column_name = replace(column_name, "searchString", "replaceString");
OS X Snow Leopard Bugs: Audio gets reset to mute on reboot. 2 Sep 2009 | 04:46 am
While my upgrade to OS x 10.6 Snow Leopard has been mostly smooth, there are a few annoying bugs I've come across. This one has to do with audio - upon reboot, audio gets set to mute no matter what se...
Windows XP: How to cancel a chkdsk or scandisk scheduled upon reboot 3 Aug 2009 | 04:38 am
If you have a chkdsk or scandisk scheduled to run on a drive after your next reboot, normally you'd be able to cancel it by pressing any key 10 seconds before the scan starts. Unfortunately, my blueto...
Slicehost: Setting up a Tor relay on Fedora to help keep Iran connected #IranElection 22 Jun 2009 | 08:23 am
As many of you know, most of the information from within Iran is coming from on-the-ground new-media and social networking sites such as Twitter, YouTube, and Facebook. This is happening despite crack...
Dojo: How to get the ID of an element. 19 Jun 2009 | 04:12 pm
To get the ID of an element using Dojo Framework, you need to use the dojo.attr function. Given the following HTML: <img src="/path/to/imageA.jpg" id="myImage1" /> <img src="/path/to/imageB.jpg" id...