<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7956357342517611207</id><updated>2026-02-18T02:20:56.819-05:00</updated><category term="Linux"/><category term="ruby"/><category term="Solaris"/><category term="rails"/><category term="postgresql"/><category term="KDE"/><category term="MythTV"/><category term="OSX"/><category term="Ubuntu"/><category term="centos"/><category term="sqlite3"/><category term="EON"/><category term="Net-SNMP"/><category term="Snow Leopard"/><category term="coding"/><category term="database"/><category term="howto"/><category term="index"/><category term="indices"/><category term="pl/pgsql"/><category term="problem"/><category term="upgrade"/><category term="windows"/><category term="yum"/><category term="598U"/><category term="Apple"/><category term="Broadband"/><category term="CAD"/><category term="DOS"/><category term="DVR"/><category term="EVDO"/><category term="Exchange"/><category term="FAT"/><category term="FreeAgent"/><category term="HP/UX"/><category term="IPN"/><category term="Intrepid Ibex"/><category term="Kontact"/><category term="Lucid Lynx"/><category term="Microsoft"/><category term="Mythbuntu 10.04"/><category term="Mythbuntu 8.10"/><category term="Mythbuntu 9.10"/><category term="NFS"/><category term="Outlook"/><category term="Paypal"/><category term="RoR"/><category term="SNMP"/><category term="Samba"/><category term="Seagate"/><category term="Sprint"/><category term="Sun"/><category term="SysRq"/><category term="UNIX"/><category term="VPN"/><category term="application"/><category term="authentication"/><category term="autodesk"/><category term="bash"/><category term="bookmarklet"/><category term="browser"/><category term="cache"/><category term="codec"/><category term="comcast"/><category term="css"/><category term="curl"/><category term="cygwin"/><category term="development"/><category term="digg bar"/><category term="diskless"/><category term="enterprise"/><category term="filesystem"/><category term="free"/><category term="frontend"/><category term="git"/><category term="guide"/><category term="html"/><category term="incremental"/><category term="integration"/><category term="javascript"/><category term="libttf"/><category term="mail"/><category term="migration"/><category term="mobile"/><category term="monitoring"/><category term="mysql"/><category term="nagios"/><category term="networking"/><category term="online"/><category term="packages"/><category term="payment"/><category term="perl"/><category term="pirate"/><category term="plone"/><category term="printsched"/><category term="programming"/><category term="reboot"/><category term="recording"/><category term="relay"/><category term="repository"/><category term="rspec"/><category term="rsync"/><category term="schedule"/><category term="software"/><category term="software RAID"/><category term="standards"/><category term="sysfs"/><category term="system load"/><category term="tar"/><category term="tdd"/><category term="template"/><category term="testing"/><category term="testsched"/><category term="tickets"/><category term="trac"/><category term="tricks"/><category term="udev"/><category term="video"/><category term="virtual center"/><category term="virtual machine"/><category term="vlc"/><category term="vmware"/><category term="wallet"/><category term="web"/><category term="wget"/><category term="x264"/><category term="zimbra"/><category term="zope"/><title type='text'>Learning on the Job</title><subtitle type='html'>The AHA! moments in the life of a &quot;computer guy&quot;</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://learnonthejob.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://learnonthejob.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>S Javeed</name><uri>http://www.blogger.com/profile/15443697062900423307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>45</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7956357342517611207.post-2277326898150794949</id><published>2024-11-08T23:17:00.000-05:00</published><updated>2024-11-08T23:17:46.059-05:00</updated><title type='text'>X-Commit-Powered-By &quot;Header&quot; - Updated!</title><summary type="text">&amp;nbsp;It&#39;s been a while since I&#39;ve written a post here but I stopped by to pick up my script to add an X-Commit-Powered-By header to my git commit messages using a commit-msg hook and realized it&#39;s hopelessly broken now. If you want to read what it does, you should read the original post. I decided, it was time to update it for 2020s! This post covers the most interesting thing I learned while </summary><link rel='replies' type='application/atom+xml' href='http://learnonthejob.blogspot.com/feeds/2277326898150794949/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnonthejob.blogspot.com/2024/11/x-commit-powered-by-header-updated.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/2277326898150794949'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/2277326898150794949'/><link rel='alternate' type='text/html' href='http://learnonthejob.blogspot.com/2024/11/x-commit-powered-by-header-updated.html' title='X-Commit-Powered-By &quot;Header&quot; - Updated!'/><author><name>S Javeed</name><uri>http://www.blogger.com/profile/15443697062900423307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7956357342517611207.post-5848358835177362685</id><published>2015-07-28T15:01:00.000-04:00</published><updated>2015-07-28T15:01:36.802-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="coding"/><category scheme="http://www.blogger.com/atom/ns#" term="git"/><category scheme="http://www.blogger.com/atom/ns#" term="OSX"/><title type='text'>X-Commit-Powered-By &quot;Header&quot;</title><summary type="text">

Just wrote this commit-msg hook for git that just has me looking forward to each commit to the project.&amp;nbsp; It&#39;s only for OSX and its sole purpose is to add a tag that looks like a custom HTTP header which shows what song was playing when the user created the commit.&amp;nbsp; It only works with iTunes and can handle when iTunes is paused.

Here&#39;s an example of how it looks:

X-Commit-Powered-By:</summary><link rel='replies' type='application/atom+xml' href='http://learnonthejob.blogspot.com/feeds/5848358835177362685/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnonthejob.blogspot.com/2015/07/x-commit-powered-by-header.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/5848358835177362685'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/5848358835177362685'/><link rel='alternate' type='text/html' href='http://learnonthejob.blogspot.com/2015/07/x-commit-powered-by-header.html' title='X-Commit-Powered-By &quot;Header&quot;'/><author><name>S Javeed</name><uri>http://www.blogger.com/profile/15443697062900423307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7956357342517611207.post-1165924883874105163</id><published>2012-10-01T03:30:00.003-04:00</published><updated>2012-10-01T03:31:08.278-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="rails"/><category scheme="http://www.blogger.com/atom/ns#" term="rspec"/><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><category scheme="http://www.blogger.com/atom/ns#" term="tdd"/><category scheme="http://www.blogger.com/atom/ns#" term="testing"/><title type='text'>Testing Validations using RSpec</title><summary type="text">
I just ran into an interesting issue while testing a Rails application with RSpec.&amp;nbsp; A spec with the following line in it was failing:


&amp;nbsp;&amp;nbsp;&amp;nbsp; ar2.should_not be_valid
Here ar2 is a model that was constructed in a way that violated a logical constraint.&amp;nbsp; I attempted to make this spec pass by adding a custom validation method to the model as such: 

class Registration &amp;lt; </summary><link rel='replies' type='application/atom+xml' href='http://learnonthejob.blogspot.com/feeds/1165924883874105163/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnonthejob.blogspot.com/2012/10/testing-validations-using-rspec.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/1165924883874105163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/1165924883874105163'/><link rel='alternate' type='text/html' href='http://learnonthejob.blogspot.com/2012/10/testing-validations-using-rspec.html' title='Testing Validations using RSpec'/><author><name>S Javeed</name><uri>http://www.blogger.com/profile/15443697062900423307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7956357342517611207.post-8416322605839460228</id><published>2012-05-23T15:10:00.001-04:00</published><updated>2012-05-23T15:22:03.925-04:00</updated><title type='text'>Setting up LVM on LUKS</title><summary type="text">
I recently worked with&amp;nbsp;Raju Chauhan&amp;nbsp;to setup encrypted storage for a database and related files. &amp;nbsp;He brought up an interesting requirement to see if the encrypted storage could grow with the data as needed. &amp;nbsp;I hadn&#39;t dealt with that specific requirement in the past so I figured I&#39;d see what my options were. &amp;nbsp;Thanks for that requirement Raju; I don&#39;t think I would&#39;ve </summary><link rel='replies' type='application/atom+xml' href='http://learnonthejob.blogspot.com/feeds/8416322605839460228/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnonthejob.blogspot.com/2012/05/setting-up-lvm-on-luks.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/8416322605839460228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/8416322605839460228'/><link rel='alternate' type='text/html' href='http://learnonthejob.blogspot.com/2012/05/setting-up-lvm-on-luks.html' title='Setting up LVM on LUKS'/><author><name>S Javeed</name><uri>http://www.blogger.com/profile/15443697062900423307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7956357342517611207.post-2476249210231657549</id><published>2011-10-15T18:19:00.000-04:00</published><updated>2011-10-15T18:19:51.508-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="codec"/><category scheme="http://www.blogger.com/atom/ns#" term="video"/><category scheme="http://www.blogger.com/atom/ns#" term="vlc"/><category scheme="http://www.blogger.com/atom/ns#" term="x264"/><title type='text'>Smoother MKV playback with VLC</title><summary type="text">If you&#39;re seeing stuttering in any MKV videos you&#39;ve ripped, try out wipe0wt&#39;s suggestion and turn off loop filters in VLC altogether.&amp;nbsp; It results in a dramatic improvement in playback quality.&amp;nbsp; The gist is:
Open up VLC and choose Tools -&amp;gt; Preferences from the menu
In the bottom left corner of the preferences window you&#39;ll see a &quot;Show settings&quot; area.&amp;nbsp; Make sure you change it </summary><link rel='replies' type='application/atom+xml' href='http://learnonthejob.blogspot.com/feeds/2476249210231657549/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnonthejob.blogspot.com/2011/10/smoother-mkv-playback-with-vlc.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/2476249210231657549'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/2476249210231657549'/><link rel='alternate' type='text/html' href='http://learnonthejob.blogspot.com/2011/10/smoother-mkv-playback-with-vlc.html' title='Smoother MKV playback with VLC'/><author><name>S Javeed</name><uri>http://www.blogger.com/profile/15443697062900423307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7956357342517611207.post-8676621595292435848</id><published>2011-08-12T18:37:00.000-04:00</published><updated>2011-08-12T18:37:38.794-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DOS"/><category scheme="http://www.blogger.com/atom/ns#" term="EON"/><category scheme="http://www.blogger.com/atom/ns#" term="FAT"/><category scheme="http://www.blogger.com/atom/ns#" term="filesystem"/><category scheme="http://www.blogger.com/atom/ns#" term="Solaris"/><title type='text'>Mounting MSDOS/FAT filesystems under Solaris</title><summary type="text">I needed to copy over a bunch of photographs to my EON NAS so I put them on a USB stick and attached the stick directly to the NAS to get the maximum speed while copying. &amp;nbsp;It turns out, while on Linux you type something like:
mount -t vfat /dev/sdd1 /tmp/usbstick
to mount the FAT or FAT32 filesystem from /dev/sdd1 to /tmp/usbstick, that command doesn&#39;t work on Solaris which is what EON NAS </summary><link rel='replies' type='application/atom+xml' href='http://learnonthejob.blogspot.com/feeds/8676621595292435848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnonthejob.blogspot.com/2011/08/mounting-msdosfat-filesystems-under.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/8676621595292435848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/8676621595292435848'/><link rel='alternate' type='text/html' href='http://learnonthejob.blogspot.com/2011/08/mounting-msdosfat-filesystems-under.html' title='Mounting MSDOS/FAT filesystems under Solaris'/><author><name>S Javeed</name><uri>http://www.blogger.com/profile/15443697062900423307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7956357342517611207.post-6358692126377484669</id><published>2011-04-30T20:49:00.000-04:00</published><updated>2011-04-30T20:49:27.403-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cygwin"/><category scheme="http://www.blogger.com/atom/ns#" term="EON"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="rsync"/><category scheme="http://www.blogger.com/atom/ns#" term="Solaris"/><category scheme="http://www.blogger.com/atom/ns#" term="UNIX"/><title type='text'>cwRsync, Windows 7 and UNIX Targets</title><summary type="text">Lately whenever I&#39;ve had to rsync anything to my E O N-based NAS from my Windows 7 machine, I&#39;ve had permissions issues on the NAS.&amp;nbsp; Specifically, any sub-directories I sync over are created with ridiculous permissions e.g. 0500 or something odd.&amp;nbsp; No files are able to be transferred until I manually login to the NAS and run a something similar to:

find -type d -exec chmod 0755 {} \;
</summary><link rel='replies' type='application/atom+xml' href='http://learnonthejob.blogspot.com/feeds/6358692126377484669/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnonthejob.blogspot.com/2011/04/cwrsync-windows-7-and-unix-targets.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/6358692126377484669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/6358692126377484669'/><link rel='alternate' type='text/html' href='http://learnonthejob.blogspot.com/2011/04/cwrsync-windows-7-and-unix-targets.html' title='cwRsync, Windows 7 and UNIX Targets'/><author><name>S Javeed</name><uri>http://www.blogger.com/profile/15443697062900423307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7956357342517611207.post-3798740797708930989</id><published>2010-08-30T14:48:00.000-04:00</published><updated>2010-08-30T14:48:26.873-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="rails"/><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><title type='text'>CSV Exports in Rails</title><summary type="text">If you&#39;re looking for an elegant way to generate CSV files from your index views (or search views or anything else for that matter) you should look no further than this post on StackOverflow by rwc9u.

The gist is to add a format line in the respond_to section of the index method in your controller that caters to CSV.&amp;nbsp; Then create an index.csv.erb file where you can generate the actual CSV </summary><link rel='replies' type='application/atom+xml' href='http://learnonthejob.blogspot.com/feeds/3798740797708930989/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnonthejob.blogspot.com/2010/08/csv-exports-in-rails.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/3798740797708930989'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/3798740797708930989'/><link rel='alternate' type='text/html' href='http://learnonthejob.blogspot.com/2010/08/csv-exports-in-rails.html' title='CSV Exports in Rails'/><author><name>S Javeed</name><uri>http://www.blogger.com/profile/15443697062900423307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7956357342517611207.post-4081471232841141045</id><published>2010-08-27T14:44:00.001-04:00</published><updated>2010-08-27T14:45:40.016-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><title type='text'>Exception handling for Net::SSH</title><summary type="text">I&#39;m writing a bit of Ruby automation code which requires me to connect to multiple servers using ssh and gather specific information from them using a loop like so:

hostList.each do |h|
  Net::SSH.start(h, &quot;user&quot;, :password =&amp;gt; &quot;password&quot;, :timeout =&amp;gt; 10) do |ssh|
  end
end


However, my test script kept dying at various points due to issues with the ssh connection to specific servers.

</summary><link rel='replies' type='application/atom+xml' href='http://learnonthejob.blogspot.com/feeds/4081471232841141045/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnonthejob.blogspot.com/2010/08/exception-handling-for-netssh.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/4081471232841141045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/4081471232841141045'/><link rel='alternate' type='text/html' href='http://learnonthejob.blogspot.com/2010/08/exception-handling-for-netssh.html' title='Exception handling for Net::SSH'/><author><name>S Javeed</name><uri>http://www.blogger.com/profile/15443697062900423307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7956357342517611207.post-2127127626180302921</id><published>2010-05-03T21:11:00.007-04:00</published><updated>2010-07-30T10:55:03.240-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="diskless"/><category scheme="http://www.blogger.com/atom/ns#" term="DVR"/><category scheme="http://www.blogger.com/atom/ns#" term="frontend"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Lucid Lynx"/><category scheme="http://www.blogger.com/atom/ns#" term="Mythbuntu 10.04"/><category scheme="http://www.blogger.com/atom/ns#" term="MythTV"/><title type='text'>Building a Diskless MythTV Frontend with Mythbuntu 10.04 - Lucid Lynx - Part 1</title><summary type="text">I just upgraded to Mythbuntu 10.04 which was released just a few days back on April 29th.&amp;nbsp; Since I was already running Mythbuntu 9.10 on my MythTV backend server I was able to upgrade it to Lucid using the well documented and fairly simple steps on the ubuntu.com site:
$ sudo apt-get install update-manager-core$ sudo do-release-upgrade
After upgrading the backend server I decided to finally </summary><link rel='replies' type='application/atom+xml' href='http://learnonthejob.blogspot.com/feeds/2127127626180302921/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnonthejob.blogspot.com/2010/05/building-diskless-mythtv-frontend-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/2127127626180302921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/2127127626180302921'/><link rel='alternate' type='text/html' href='http://learnonthejob.blogspot.com/2010/05/building-diskless-mythtv-frontend-with.html' title='Building a Diskless MythTV Frontend with Mythbuntu 10.04 - Lucid Lynx - Part 1'/><author><name>S Javeed</name><uri>http://www.blogger.com/profile/15443697062900423307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7956357342517611207.post-6176475902781956572</id><published>2010-03-20T01:17:00.000-04:00</published><updated>2010-03-20T01:17:17.643-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="postgresql"/><category scheme="http://www.blogger.com/atom/ns#" term="rails"/><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><category scheme="http://www.blogger.com/atom/ns#" term="sqlite3"/><title type='text'>Switching your Rails Database from SQLite3 to PostgreSQL or MySQL</title><summary type="text">I deployed a minimal new Rails application I wrote over a period of a couple of hours and started testing it with valid production data.&amp;nbsp; It&#39;s basically a very simple CRUD application for a very specific audience.&amp;nbsp; Very basic stress testing (using Apache&#39;s ab) showed me that it didn&#39;t work well when requests were coming in with concurrency &amp;gt; 2. I realized I&#39;d started the project </summary><link rel='replies' type='application/atom+xml' href='http://learnonthejob.blogspot.com/feeds/6176475902781956572/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnonthejob.blogspot.com/2010/03/switching-your-rails-database-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/6176475902781956572'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/6176475902781956572'/><link rel='alternate' type='text/html' href='http://learnonthejob.blogspot.com/2010/03/switching-your-rails-database-from.html' title='Switching your Rails Database from SQLite3 to PostgreSQL or MySQL'/><author><name>S Javeed</name><uri>http://www.blogger.com/profile/15443697062900423307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7956357342517611207.post-1649043447768311759</id><published>2010-03-15T09:04:00.000-04:00</published><updated>2010-03-15T09:04:50.645-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Samba"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>Spaces in /etc/fstab</title><summary type="text">I needed to mount a Samba share from my windows gaming / media center PC to my MythTV backend so I could navigate to all my videos from a single location instead of having to worry about which server they were on.&amp;nbsp; To that end I shared out the Videos folder from my account on the Windows PC.&amp;nbsp; Since my user on the Windows PC is &quot;Shahbaz Javeed&quot; that presented a problem when trying to </summary><link rel='replies' type='application/atom+xml' href='http://learnonthejob.blogspot.com/feeds/1649043447768311759/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnonthejob.blogspot.com/2010/03/spaces-in-etcfstab.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/1649043447768311759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/1649043447768311759'/><link rel='alternate' type='text/html' href='http://learnonthejob.blogspot.com/2010/03/spaces-in-etcfstab.html' title='Spaces in /etc/fstab'/><author><name>S Javeed</name><uri>http://www.blogger.com/profile/15443697062900423307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7956357342517611207.post-8476714819188590785</id><published>2009-12-29T17:23:00.000-05:00</published><updated>2009-12-29T17:23:56.974-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="OSX"/><category scheme="http://www.blogger.com/atom/ns#" term="Snow Leopard"/><category scheme="http://www.blogger.com/atom/ns#" term="VPN"/><title type='text'>CheckPoint VPN-1 SecureClient on Snow Leopard</title><summary type="text">It turns out that the CheckPoint VPN-1 SecureClient for Leopard (OSX 10.5) doesn&#39;t work on Snow Leopard (OSX 10.6) due to differences between the two versions in the kernel and the way kextload works.Harald has a blog entry detailing how to fix the Leopard package so it installs on Snow Leopard and then fix the installed files so they properly run as well. &amp;nbsp;He alludes to a method to fix the </summary><link rel='replies' type='application/atom+xml' href='http://learnonthejob.blogspot.com/feeds/8476714819188590785/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnonthejob.blogspot.com/2009/12/checkpoint-vpn-1-secureclient-on-snow.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/8476714819188590785'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/8476714819188590785'/><link rel='alternate' type='text/html' href='http://learnonthejob.blogspot.com/2009/12/checkpoint-vpn-1-secureclient-on-snow.html' title='CheckPoint VPN-1 SecureClient on Snow Leopard'/><author><name>S Javeed</name><uri>http://www.blogger.com/profile/15443697062900423307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7956357342517611207.post-7543778726984758643</id><published>2009-12-20T00:58:00.000-05:00</published><updated>2009-12-20T00:58:46.726-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apple"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>Boot Camp x64 is Unsupported on this Computer Model</title><summary type="text">Apple says that only certain models of Mac are x64 compatible when using Bootcamp 3.0 that comes with Snow Leopard and possibly Leopard.&amp;nbsp; Imagine my surprise when my 17&quot; MacBook Pro wasn&#39;t one of them.&amp;nbsp; I&#39;d hoped their flagship portable would be on the list.&amp;nbsp; I got the somewhat curt error message &quot;Boot Camp x64 is Unsupported on this Computer Model&quot; and the Bootcamp installer </summary><link rel='replies' type='application/atom+xml' href='http://learnonthejob.blogspot.com/feeds/7543778726984758643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnonthejob.blogspot.com/2009/12/boot-camp-x64-is-unsupported-on-this.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/7543778726984758643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/7543778726984758643'/><link rel='alternate' type='text/html' href='http://learnonthejob.blogspot.com/2009/12/boot-camp-x64-is-unsupported-on-this.html' title='Boot Camp x64 is Unsupported on this Computer Model'/><author><name>S Javeed</name><uri>http://www.blogger.com/profile/15443697062900423307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7956357342517611207.post-5613878630408814727</id><published>2009-12-15T11:52:00.000-05:00</published><updated>2009-12-15T11:52:24.029-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="networking"/><category scheme="http://www.blogger.com/atom/ns#" term="OSX"/><category scheme="http://www.blogger.com/atom/ns#" term="Snow Leopard"/><title type='text'>OSX and /etc/resolv.conf</title><summary type="text">I recently went back to a Mac laptop and encountered an interesting issue.&amp;nbsp; I needed to make some changes to /etc/resolv.conf to reflect a modified search path and since /etc/resolv.conf is a symlink to /private/etc/resolv.conf I edited the latter file.&amp;nbsp; All was well until I connected to a different network.&amp;nbsp; Now my /private/etc/resolv.conf file, which clearly states that it&#39;s an </summary><link rel='replies' type='application/atom+xml' href='http://learnonthejob.blogspot.com/feeds/5613878630408814727/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnonthejob.blogspot.com/2009/12/osx-and-etcresolvconf.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/5613878630408814727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/5613878630408814727'/><link rel='alternate' type='text/html' href='http://learnonthejob.blogspot.com/2009/12/osx-and-etcresolvconf.html' title='OSX and /etc/resolv.conf'/><author><name>S Javeed</name><uri>http://www.blogger.com/profile/15443697062900423307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7956357342517611207.post-44438630837291384</id><published>2009-11-10T16:51:00.023-05:00</published><updated>2009-11-11T08:54:37.636-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="howto"/><category scheme="http://www.blogger.com/atom/ns#" term="KDE"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="perl"/><category scheme="http://www.blogger.com/atom/ns#" term="wallet"/><title type='text'>Accessing the KDE Wallet from the Cmdline</title><summary type="text">I needed to write a script that would contact my Exchange server at work via IMAP and list all the messages in the Calendar folder.  The idea was to see if it was possible to perform a one-way sync from the Exchange server to a specific calendar in Kontact.  I was going to embed my IMAP password in the script - security hole, I know - but we have a password policy that requires the password to </summary><link rel='replies' type='application/atom+xml' href='http://learnonthejob.blogspot.com/feeds/44438630837291384/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnonthejob.blogspot.com/2009/11/accessing-kde-wallet-from-cmdline.html#comment-form' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/44438630837291384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/44438630837291384'/><link rel='alternate' type='text/html' href='http://learnonthejob.blogspot.com/2009/11/accessing-kde-wallet-from-cmdline.html' title='Accessing the KDE Wallet from the Cmdline'/><author><name>S Javeed</name><uri>http://www.blogger.com/profile/15443697062900423307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjya3LG0_fwwXi_usonM5XKEaLA3NYRgPaSpTxnwdDCquNYiXXY5r7w9WIyOexhTj4y5yT2TpzY_OqPydl7GcY5_bkKXVSH8pCw3Gm4jnnJvgWEFd0pCApMnuf7K3LmXUE8pDl0rBQPbkM/s72-c/kwallet-dialog.png" height="72" width="72"/><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7956357342517611207.post-282111472030417389</id><published>2009-11-09T21:33:00.003-05:00</published><updated>2009-11-09T21:36:52.363-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mythbuntu 9.10"/><category scheme="http://www.blogger.com/atom/ns#" term="MythTV"/><title type='text'>Mythbuntu 9.10 Diskless Frontend</title><summary type="text">With Mythbuntu 9.10 out (simultaneously with Ubuntu 9.10), apparently the &quot;Diskless Server&quot; plugin for the Mythbuntu Control Center is missing.  According to this thread on the Ubuntu forums, it&#39;s because the developer who was working on that has had to step away from it for the moment.  However, manually building the diskless client/server setup still works.  That same thread has all the </summary><link rel='replies' type='application/atom+xml' href='http://learnonthejob.blogspot.com/feeds/282111472030417389/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnonthejob.blogspot.com/2009/11/mythbuntu-910-diskless-frontend.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/282111472030417389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/282111472030417389'/><link rel='alternate' type='text/html' href='http://learnonthejob.blogspot.com/2009/11/mythbuntu-910-diskless-frontend.html' title='Mythbuntu 9.10 Diskless Frontend'/><author><name>S Javeed</name><uri>http://www.blogger.com/profile/15443697062900423307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7956357342517611207.post-7373570876699717437</id><published>2009-11-07T23:05:00.004-05:00</published><updated>2009-11-07T23:13:06.849-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="FreeAgent"/><category scheme="http://www.blogger.com/atom/ns#" term="Seagate"/><category scheme="http://www.blogger.com/atom/ns#" term="sysfs"/><category scheme="http://www.blogger.com/atom/ns#" term="udev"/><title type='text'>Seagate FreeAgent USB Drives and Linux</title><summary type="text">I don&#39;t particularly like the Seagate FreeAgent line of drives.  Ever since I tried the first one - a 500GB specimen - and it died on me while still connected to a machine running CentOS.  One moment it was fine, the next it was gone or remounted read-only. I figured out it happened whenever the drive went idle. I&#39;ve stayed away from them ever since.Lately, however, I had to work with a FreeAgent</summary><link rel='replies' type='application/atom+xml' href='http://learnonthejob.blogspot.com/feeds/7373570876699717437/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnonthejob.blogspot.com/2009/11/seagate-freeagent-usb-drives-and-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/7373570876699717437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/7373570876699717437'/><link rel='alternate' type='text/html' href='http://learnonthejob.blogspot.com/2009/11/seagate-freeagent-usb-drives-and-linux.html' title='Seagate FreeAgent USB Drives and Linux'/><author><name>S Javeed</name><uri>http://www.blogger.com/profile/15443697062900423307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7956357342517611207.post-4094049924686535312</id><published>2009-10-30T11:20:00.005-04:00</published><updated>2009-10-30T11:32:17.767-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Determining 64-bitness of your CPU</title><summary type="text">It looks like /proc/cpuinfo isn&#39;t the only way to find out whether your CPU is 64bit capable.  In an effort to determine the most reliable way to find out this information I came across this page.  A quick summary:If you see any output from the following command, you&#39;re running a 64-bit capable CPU.grep ^flags /proc/cpuinfo | grep &#39; lm &#39;The following command, if it exists on your system, will </summary><link rel='replies' type='application/atom+xml' href='http://learnonthejob.blogspot.com/feeds/4094049924686535312/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnonthejob.blogspot.com/2009/10/determining-64-bitness-of-your-cpu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/4094049924686535312'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/4094049924686535312'/><link rel='alternate' type='text/html' href='http://learnonthejob.blogspot.com/2009/10/determining-64-bitness-of-your-cpu.html' title='Determining 64-bitness of your CPU'/><author><name>S Javeed</name><uri>http://www.blogger.com/profile/15443697062900423307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7956357342517611207.post-3378892332355574360</id><published>2009-10-09T10:50:00.005-04:00</published><updated>2009-10-09T10:52:06.380-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="pl/pgsql"/><category scheme="http://www.blogger.com/atom/ns#" term="postgresql"/><title type='text'>More Fun with PostgreSQL Date/Time</title><summary type="text">I got a number of comments from sasha2048 about the modulo, division and remainder operators for the interval data types in a previous blog entry.  After playing with all the suggestions I figured it would be best to devote another blog post to the revised code for the functions and operators.  The main quibble sasha2048 had with the functions was their precision - they were only good for </summary><link rel='replies' type='application/atom+xml' href='http://learnonthejob.blogspot.com/feeds/3378892332355574360/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnonthejob.blogspot.com/2009/10/more-fun-with-postgresql-datetime.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/3378892332355574360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/3378892332355574360'/><link rel='alternate' type='text/html' href='http://learnonthejob.blogspot.com/2009/10/more-fun-with-postgresql-datetime.html' title='More Fun with PostgreSQL Date/Time'/><author><name>S Javeed</name><uri>http://www.blogger.com/profile/15443697062900423307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7956357342517611207.post-4103941502144713490</id><published>2009-10-01T03:27:00.004-04:00</published><updated>2009-10-01T03:31:17.405-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="guide"/><category scheme="http://www.blogger.com/atom/ns#" term="NFS"/><category scheme="http://www.blogger.com/atom/ns#" term="Solaris"/><title type='text'>NFS Error Messages</title><summary type="text">As part of a disaster-recovery exercise I needed to make available an NFS share to various machines that needed it.  It turns out the Solaris machine designated to be the NFS server had the NFS service deleted from it for some reason.  We ended up getting an error while mounting the NFS share that indicated we needed to restart /etc/init.d/nfs.server on the Solaris machine.While looking for a </summary><link rel='replies' type='application/atom+xml' href='http://learnonthejob.blogspot.com/feeds/4103941502144713490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnonthejob.blogspot.com/2009/10/nfs-error-messages.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/4103941502144713490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/4103941502144713490'/><link rel='alternate' type='text/html' href='http://learnonthejob.blogspot.com/2009/10/nfs-error-messages.html' title='NFS Error Messages'/><author><name>S Javeed</name><uri>http://www.blogger.com/profile/15443697062900423307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7956357342517611207.post-3545502541256126699</id><published>2009-09-19T21:28:00.004-04:00</published><updated>2009-09-19T21:38:38.254-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="pirate"/><title type='text'>International Talk Like a Pirate Day</title><summary type="text">Avast!  It be that time of yearrrr when all me pirrate chums and I gatherr &#39;rround and celebrate our inner pirrates!  Arrrr!  Thank ye Cap&#39;n Slappy and ol&#39; Chumbucket for this rroisterous day!  Enjoy!The 5 A&#39;sI&#39;m a pirrate!More from the Pirate Guys here.</summary><link rel='replies' type='application/atom+xml' href='http://learnonthejob.blogspot.com/feeds/3545502541256126699/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnonthejob.blogspot.com/2009/09/international-talk-like-pirate-day.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/3545502541256126699'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/3545502541256126699'/><link rel='alternate' type='text/html' href='http://learnonthejob.blogspot.com/2009/09/international-talk-like-pirate-day.html' title='International Talk Like a Pirate Day'/><author><name>S Javeed</name><uri>http://www.blogger.com/profile/15443697062900423307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7956357342517611207.post-726167637953066370</id><published>2009-08-23T14:51:00.003-04:00</published><updated>2009-08-23T14:58:10.836-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="upgrade"/><category scheme="http://www.blogger.com/atom/ns#" term="yum"/><title type='text'>CentOS 5.3 Upgrade Woes</title><summary type="text">I ran yum upgrade on a development box running CentOS 5.3 and came across this error message:--&gt; Processing Dependency: /usr/lib/python2.4 for package: gamin-python--&gt; Processing Dependency: /usr/lib/python2.4 for package: libxslt-python--&gt; Processing Dependency: /usr/lib/python2.4 for package: libxml2-python--&gt; Finished Dependency Resolutiongamin-python-0.1.7-8.el5.i386 from installed has </summary><link rel='replies' type='application/atom+xml' href='http://learnonthejob.blogspot.com/feeds/726167637953066370/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnonthejob.blogspot.com/2009/08/centos-53-upgrade-woes.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/726167637953066370'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/726167637953066370'/><link rel='alternate' type='text/html' href='http://learnonthejob.blogspot.com/2009/08/centos-53-upgrade-woes.html' title='CentOS 5.3 Upgrade Woes'/><author><name>S Javeed</name><uri>http://www.blogger.com/profile/15443697062900423307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7956357342517611207.post-5655056652408809481</id><published>2009-08-16T23:51:00.005-04:00</published><updated>2009-08-16T23:58:57.597-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="tar"/><category scheme="http://www.blogger.com/atom/ns#" term="tricks"/><title type='text'>Partially extracting a tarball</title><summary type="text">I&#39;ve never had to extract just a small part of a tarball before so it took a little bit of digging to determine how to do that.  It&#39;s simple with other archivers e.g. zip, rar et al but tar requires just a couple of extra options to make it happen.Let&#39;s say you have a gzipped tarball that contains all your logs from /var/log with fully qualified paths.  One thing to remember is that tar will </summary><link rel='replies' type='application/atom+xml' href='http://learnonthejob.blogspot.com/feeds/5655056652408809481/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnonthejob.blogspot.com/2009/08/partially-extracting-tarball.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/5655056652408809481'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/5655056652408809481'/><link rel='alternate' type='text/html' href='http://learnonthejob.blogspot.com/2009/08/partially-extracting-tarball.html' title='Partially extracting a tarball'/><author><name>S Javeed</name><uri>http://www.blogger.com/profile/15443697062900423307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7956357342517611207.post-1645098603726797359</id><published>2009-06-30T11:43:00.008-04:00</published><updated>2009-07-01T23:46:31.980-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="pl/pgsql"/><category scheme="http://www.blogger.com/atom/ns#" term="postgresql"/><title type='text'>Fun with PostgreSQL and Date/Time</title><summary type="text">I&#39;ve been playing around with PostgreSQL 8.3.7 lately and while manipulating intervals realized a few key operators were missing.  It turns out it&#39;s fairly easy to define operators in PostgreSQL as long as you have an existing function in the database.  As a proof of concept I loaded up pl/PgSQL in a working database and created the following functions and operators:interval_divide (used to power</summary><link rel='replies' type='application/atom+xml' href='http://learnonthejob.blogspot.com/feeds/1645098603726797359/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://learnonthejob.blogspot.com/2009/06/fun-with-postgresql-and-datetime.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/1645098603726797359'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7956357342517611207/posts/default/1645098603726797359'/><link rel='alternate' type='text/html' href='http://learnonthejob.blogspot.com/2009/06/fun-with-postgresql-and-datetime.html' title='Fun with PostgreSQL and Date/Time'/><author><name>S Javeed</name><uri>http://www.blogger.com/profile/15443697062900423307</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry></feed>