<?xml version="1.0" encoding="UTF-8"?><rss version="0.92">
<channel>
	<title>Tequila Fish</title>
	<link>http://www.tequilafish.com</link>
	<description>Ran-dumb ramblings of me...</description>
	<lastBuildDate>Thu, 26 Jan 2012 23:30:47 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	<!-- generator="WordPress/3.2.1" -->

	<item>
		<title>Installing Bundler for Ruby in Ubuntu 10.04</title>
		<description><![CDATA[When attempting to install Bundler for Ruby on Ubuntu 10.04, I got the following error: shell&#62; sudo gem install bundler ERROR: Error installing bundler: bundler requires RubyGems version >= 1.3.6 Running sudo gem -v I saw that I had 1.3.5. To get around this, simply install the available updater gem, then run it: shell&#62; sudo [...]]]></description>
		<link>http://www.tequilafish.com/2012/01/26/installing_ruby_bundler_ubuntu_10-04/</link>
			</item>
	<item>
		<title>Unix: Delete all but N most recent files in a directory</title>
		<description><![CDATA[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 1 -type -f -name '*' -print0 &#124; xargs -r0 ls -t &#124; tail -n +5 &#124; tr '\n' '\0' &#124; [...]]]></description>
		<link>http://www.tequilafish.com/2011/06/26/unix-delete-all-but-n-most-recent-files-in-a-directory/</link>
			</item>
	<item>
		<title>MySQL: Dynamic ORDER BY clause</title>
		<description><![CDATA[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 order (oldest to newest) and sort past releases in descending order (newest to oldest). This isn't an easy task, but after many [...]]]></description>
		<link>http://www.tequilafish.com/2010/08/18/mysql-dynamic-order-by-clause/</link>
			</item>
	<item>
		<title>How to increase bash shell history length in OS X</title>
		<description><![CDATA[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, the default history length in OS X is 500 commands. That seems like a lot, [...]]]></description>
		<link>http://www.tequilafish.com/2010/08/11/how-to-increase-bash-shell-history-length-in-os-x/</link>
			</item>
	<item>
		<title>eAccelerator and open_basedir: open_basedir restriction in effect. File() is not within the allowed path(s):</title>
		<description><![CDATA[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] PHP Warning: require() [function.require]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/username/) in /home/username/public_html/wp-settings.php on line 19, referer: http://www.server.com/ After doing [...]]]></description>
		<link>http://www.tequilafish.com/2010/07/22/eaccelerator-and-open_basedir-open_basedir-restriction-in-effect-file-is-not-within-the-allowed-paths/</link>
			</item>
	<item>
		<title>MySQL: Global find &amp; replace</title>
		<description><![CDATA[Global find &#038; replace is easy in MySQL: UPDATE table_name SET column_name = replace(column_name, "searchString", "replaceString");]]></description>
		<link>http://www.tequilafish.com/2010/04/29/mysql-global-find-replace/</link>
			</item>
	<item>
		<title>OS X Snow Leopard Bugs: Audio gets reset to mute on reboot.</title>
		<description><![CDATA[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 settings I had the volume on before. Not a big problem, but annoying none the [...]]]></description>
		<link>http://www.tequilafish.com/2009/09/01/os-x-snow-leopard-bugs-audio-gets-reset-to-mute-on-reboot/</link>
			</item>
	<item>
		<title>Windows XP: How to cancel a chkdsk or scandisk scheduled upon reboot</title>
		<description><![CDATA[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 bluetooth keyboard/mouse combo didn't seem to work at this stage of bootup, so I was unable to cancel any [...]]]></description>
		<link>http://www.tequilafish.com/2009/08/02/windows-xp-how-to-cancel-a-chkdsk-or-scandisk-scheduled-upon-reboot/</link>
			</item>
	<item>
		<title>Slicehost: Setting up a Tor relay on Fedora to help keep Iran connected #IranElection</title>
		<description><![CDATA[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 crackdowns on communications networks by the Iranian government. The way this information is able to escape the firewalls of Iran is via proxies which [...]]]></description>
		<link>http://www.tequilafish.com/2009/06/21/slicehost-setting-up-a-tor-relay-on-fedora-to-help-keep-iran-connected-iranelection/</link>
			</item>
	<item>
		<title>Dojo: How to get the ID of an element.</title>
		<description><![CDATA[To get the ID of an element using Dojo Framework, you need to use the dojo.attr function. Given the following HTML: &#60;img src=&#34;/path/to/imageA.jpg&#34; id=&#34;myImage1&#34; /&#62; &#60;img src=&#34;/path/to/imageB.jpg&#34; id=&#34;myImage2&#34; /&#62; &#60;img src=&#34;/path/to/imageC.jpg&#34; id=&#34;myImage3&#34; /&#62; You can get the IDs of each image in Dojo like so: dojo.query(&#34;img&#34;).forEach(function(currentNode) { &#160;&#160;&#160;&#160;var theElementId = dojo.attr(currentNode, &#34;id&#34;); &#160;&#160;&#160;&#160;console.log(&#34;id: &#34;, theElementId); [...]]]></description>
		<link>http://www.tequilafish.com/2009/06/18/dojo-how-to-get-the-id-of-an-element/</link>
			</item>
</channel>
</rss>

