<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>every word of it. &#187; Software</title>
	<atom:link href="http://www.raishad.com/category/computers/software/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.raishad.com</link>
	<description></description>
	<lastBuildDate>Mon, 26 Jul 2010 22:17:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Adium Chat History making you :(</title>
		<link>http://www.raishad.com/2009/12/13/adium-chat-history-making-you/</link>
		<comments>http://www.raishad.com/2009/12/13/adium-chat-history-making-you/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 23:36:19 +0000</pubDate>
		<dc:creator>raishad</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.raishad.com/2009/12/13/adium-chat-history-making-you/</guid>
		<description><![CDATA[Quit Adium and Delete ~/Library/Caches/Adium/Default/DirtyLogs.plist ~/Library/Caches/Adium/Default/Logs.index When Adium restarts and you open up the transcript viewer, Adium will reindex everything.]]></description>
			<content:encoded><![CDATA[<p><p>Quit Adium and Delete </p>  <blockquote>   <p>~/Library/Caches/Adium/Default/DirtyLogs.plist</p>    <p>~/Library/Caches/Adium/Default/Logs.index</p> </blockquote>  <p>When Adium restarts and you open up the transcript viewer, Adium will reindex everything.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.raishad.com/2009/12/13/adium-chat-history-making-you/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MacBU, A Request</title>
		<link>http://www.raishad.com/2008/11/23/macbu-a-request/</link>
		<comments>http://www.raishad.com/2008/11/23/macbu-a-request/#comments</comments>
		<pubDate>Sun, 23 Nov 2008 15:33:29 +0000</pubDate>
		<dc:creator>raishad</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.raishad.com/2008/11/23/macbu-a-request/</guid>
		<description><![CDATA[I wrote those last 2 entries using Microsoft Live Writer. It’s a really great program. It’s simple to use, and I like how everything works. But sadly, it only runs on Windows. I either have to run it in my VM, or Remote Desktop into my crummy Dell laptop. So MacBU, please please port Live [...]]]></description>
			<content:encoded><![CDATA[<p><p>I wrote those last 2 entries using <a href="http://get.live.com/writer/overview" target="_blank">Microsoft Live Writer</a>. It’s a really great program. It’s simple to use, and I like how everything works.</p>  <p>But sadly, it only runs on Windows. I either have to run it in my <a href="http://blogs.vmware.com/teamfusion/2008/03/meta-blog-blogg.html" target="_blank">VM</a>, or Remote Desktop into my crummy Dell laptop.</p>  <p>So <a href="http://www.officeformac.com/blog/" target="_blank">MacBU</a>, please please port Live Writer to MacOS.</p>  <p>Thanks!</p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.raishad.com/2008/11/23/macbu-a-request/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>A Small Suggestion</title>
		<link>http://www.raishad.com/2008/10/26/a-small-suggestion/</link>
		<comments>http://www.raishad.com/2008/10/26/a-small-suggestion/#comments</comments>
		<pubDate>Sun, 26 Oct 2008 20:25:06 +0000</pubDate>
		<dc:creator>raishad</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.raishad.com/2008/10/26/a-small-suggestion/</guid>
		<description><![CDATA[Dear MS, I appreciate Windows Search 4.0. Finding things in Outlook is a lot faster. But what the hell is this? I understand that the folder is not indexed. But why do I have to use Search Companion? If you know that the folder is not indexed, why are you even showing me the new [...]]]></description>
			<content:encoded><![CDATA[<p><p>Dear MS,</p>  <p>I appreciate <a href="http://www.microsoft.com/windows/products/winfamily/desktopsearch/default.mspx">Windows Search 4.0</a>. Finding things in Outlook is a lot faster.</p>  <p>But what the hell is this?</p>  <p><a href="http://www.raishad.com/blog/wp-content/uploads/2008/10/why.png"><img title="why" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="85" alt="why" src="http://www.raishad.com/blog/wp-content/uploads/2008/10/why-thumb.png" width="294" border="0" /></a> </p>  <p></p>  <p>I understand that the folder is not indexed. But why do I have to use Search Companion? If you know that the folder is not indexed, why are you even showing me the new Windows Search – just take me straight to the stupid dog.</p>  <p>Thanks</p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.raishad.com/2008/10/26/a-small-suggestion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gany-awesome!</title>
		<link>http://www.raishad.com/2008/06/25/gany-awesome/</link>
		<comments>http://www.raishad.com/2008/06/25/gany-awesome/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 02:58:18 +0000</pubDate>
		<dc:creator>raishad</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.raishad.com/?p=321</guid>
		<description><![CDATA[Are you excited? I am. Hopefully we&#8217;re excited about the same thing. Today, Eclipse Ganymede was released. Eclipse is a software platform that has an amazing plug-in system that allows it to disguise itself as a Java Development Environment. That&#8217;s how it sneaks in. &#8220;Don&#8217;t mind me, I&#8217;m just a Java IDE.&#8221; And then all [...]]]></description>
			<content:encoded><![CDATA[<p>Are you excited? I am. Hopefully we&#8217;re excited about the same thing.</p>

<p>Today, Eclipse Ganymede was released. Eclipse is a software platform that has an amazing plug-in system that allows it to disguise itself as a Java Development Environment. That&#8217;s how it sneaks in. &#8220;Don&#8217;t mind me, I&#8217;m just a Java IDE.&#8221; And then all of a sudden you&#8217;re using it for <a href="http://www.eclipse.org/birt/phoenix/">reporting</a>.</p>

<p>But, I love Eclipse. Most days, I spend my entire working day staring at Eclipse. So it&#8217;s nice that it&#8217;s a pleasure to use and continues to improve.</p>

<p>I&#8217;ve already mentioned the <a href="http://www.raishad.com/2008/04/13/the-future-is-breadcrumbs/">bread crumbs</a>. Honestly, I haven&#8217;t made much use of them in practice. It&#8217;s a nice feature to have, but I find it is faster just to use the Package Explorer + Outline to get where I need to be.</p>

<p>A feature of Ganymede that I love and use all the damn time is the enhanced search results.
<a href='http://www.raishad.com/blog/wp-content/uploads/2008/06/picture-8.png'><img src="http://www.raishad.com/blog/wp-content/uploads/2008/06/picture-8.png" alt="" title="Search Results" width="499" height="280" class="aligncenter size-full wp-image-322" /></a></p>

<p>This is an example search. Notice how the results list the context of where the term was found. It makes scanning a list of matches easy.</p>

<p>One of the features I&#8217;m excited about is the Save Actions
<a href='http://www.raishad.com/blog/wp-content/uploads/2008/06/picture-11.png'><img src="http://www.raishad.com/blog/wp-content/uploads/2008/06/picture-11.png" alt="" title="Save Actions" width="500" height="441" class="aligncenter size-full wp-image-323" /></a></p>

<p>I haven&#8217;t really used it, since I just found out about it. But it looks to be a nice time saver. Performing a lot of clean up automatically for you. </p>

<p>Also kind of interesting and part of the Ganymede release is the <a href="http://www.eclipse.org/ecf/NewAndNoteworthy.html">Eclipse Communication Framework</a>. This allows for Collaborative Editing. Collaborative Editing isn&#8217;t new, but it could be more useful now that it&#8217;s &#8220;standard&#8221; from within Eclipse. We&#8217;ll see.</p>

<p>The &#8220;<a href="http://ganymede-mirror1.eclipse.org/eclipse/downloads/drops/R-3.4-200806172000/whatsnew3.4/eclipse-news-all.html">New and Noteworthy</a>&#8221; is a mile long. It really is amazing that the Eclipse Foundation can coordinate a release with 23 different projects.</p>

<p>So thanks Eclipse, for making my life easier.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raishad.com/2008/06/25/gany-awesome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Future Is Breadcrumbs</title>
		<link>http://www.raishad.com/2008/04/13/the-future-is-breadcrumbs/</link>
		<comments>http://www.raishad.com/2008/04/13/the-future-is-breadcrumbs/#comments</comments>
		<pubDate>Sun, 13 Apr 2008 23:29:32 +0000</pubDate>
		<dc:creator>raishad</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.raishad.com/?p=294</guid>
		<description><![CDATA[Working on my Lab , noticed a new option in Eclipse 3.4m6 &#8220;Show in Breadcrumb&#8221; Turns out Eclipse has Breadcrumb navigation for Classes On first blush, you think it&#8217;s pretty useless. But it has some merit. Like if you want to maximize your editor workspace, you can now hide the Outline pane, and still have [...]]]></description>
			<content:encoded><![CDATA[<p>Working on my Lab <img src='http://www.raishad.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> , noticed a new option in Eclipse 3.4m6</p>

<p>&#8220;Show in Breadcrumb&#8221;</p>

<p>Turns out Eclipse has Breadcrumb navigation for Classes</p>

<p><a href='http://www.raishad.com/blog/wp-content/uploads/2008/04/picture-3.png'><img src="http://www.raishad.com/blog/wp-content/uploads/2008/04/picture-3-300x37.png" alt="" title="Eclipse Breadcrumb Navigation" width="300" height="37" class="alignnone size-medium wp-image-295" /></a></p>

<p>On first blush, you think it&#8217;s pretty useless. But it has some merit. Like if you want to maximize your editor workspace, you can now hide the Outline pane, and still have most of the functionality by using breadcrumbs. You can even hide the Navigator pane, since you can browse package structure. But I think that&#8217;s taking things a bit too far. One pane at a time.</p>

<p>Thanks Eclipse!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raishad.com/2008/04/13/the-future-is-breadcrumbs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Bite My Shiny Metal Ass</title>
		<link>http://www.raishad.com/2007/12/28/bite-my-shiny-metal-ass/</link>
		<comments>http://www.raishad.com/2007/12/28/bite-my-shiny-metal-ass/#comments</comments>
		<pubDate>Fri, 28 Dec 2007 21:05:52 +0000</pubDate>
		<dc:creator>raishad</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.raishad.com/2007/12/28/bite-my-shiny-metal-ass/</guid>
		<description><![CDATA[Oh Linux, why can&#8217;t you just let me win. This morning I decided to go ahead and upgrade my kernel to 2.6.22-14. But things didn&#8217;t go smoothly. Something went wrong, so I tried it again apt-get install -f Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages [...]]]></description>
			<content:encoded><![CDATA[<p>Oh Linux, why can&#8217;t you just let me win.</p>

<p>This morning I decided to go ahead and upgrade my kernel to 2.6.22-14. But things didn&#8217;t go smoothly. Something went wrong, so I tried it again
<strong>
apt-get install -f</strong></p>


<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  easytag
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
3 not fully installed or removed.
Need to get 0B of archives.
After unpacking 3170kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 288305 files and directories currently installed.)
Removing easytag ...
Setting up linux-image-2.6.22-14-386 (2.6.22-14.47) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.22-14-386
Not updating initrd symbolic links since we are being updated/reinstalled 
(2.6.22-14.46 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled 
(2.6.22-14.46 was configured last, according to dpkg)
Running postinst hook script /sbin/update-grub.
Your /etc/kernel-img.conf needs to be updated. Read grub's NEWS.Debian[1]
file and follow its instructions.
&nbsp;
 1. /usr/share/doc/grub/NEWS.Debian.gz
&nbsp;
&nbsp;
Searching for GRUB installation directory ... 
No GRUB directory found. To create a template run 'mkdir /boot/grub' first. To install grub, install it manually or try the 'grub-install' command. ### Warning, grub-install is used to change your MBR. ###
&nbsp;
User postinst hook script [/sbin/update-grub] exited with value 1
dpkg: error processing linux-image-2.6.22-14-386 (--configure):
 subprocess post-installation script returned error exit status 1
Setting up linux-image-2.6.22-14-generic (2.6.22-14.47) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.22-14-generic
Not updating initrd symbolic links since we are being updated/reinstalled 
(2.6.22-14.46 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled 
(2.6.22-14.46 was configured last, according to dpkg)
Running postinst hook script /sbin/update-grub.
Your /etc/kernel-img.conf needs to be updated. Read grub's NEWS.Debian[1]
file and follow its instructions.
&nbsp;
 1. /usr/share/doc/grub/NEWS.Debian.gz
&nbsp;
&nbsp;
Searching for GRUB installation directory ... 
No GRUB directory found. To create a template run 'mkdir /boot/grub' first. To install grub, install it manually or try the 'grub-install' command. ### Warning, grub-install is used to change your MBR. ###
&nbsp;
User postinst hook script [/sbin/update-grub] exited with value 1
dpkg: error processing linux-image-2.6.22-14-generic (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 linux-image-2.6.22-14-386
 linux-image-2.6.22-14-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)</pre></div></div>


<p>Alright, seems some stuff needs to be changed. One thing at a time. I make the changes in described in /usr/share/doc/grub/NEWS.Debian.gz and try it again</p>


<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up linux-image-2.6.22-14-386 (2.6.22-14.47) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.22-14-386
Not updating initrd symbolic links since we are being updated/reinstalled 
(2.6.22-14.46 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled 
(2.6.22-14.46 was configured last, according to dpkg)
Running postinst hook script /usr/sbin/update-grub.
Searching for GRUB installation directory ... 
No GRUB directory found. To create a template run 'mkdir /boot/grub' first. To install grub, install it manually or try the 'grub-install' command. ### Warning, grub-install is used to change your MBR. ###
&nbsp;
User postinst hook script [/usr/sbin/update-grub] exited with value 1
dpkg: error processing linux-image-2.6.22-14-386 (--configure):
 subprocess post-installation script returned error exit status 1
Setting up linux-image-2.6.22-14-generic (2.6.22-14.47) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.22-14-generic
Not updating initrd symbolic links since we are being updated/reinstalled 
(2.6.22-14.46 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled 
(2.6.22-14.46 was configured last, according to dpkg)
Running postinst hook script /usr/sbin/update-grub.
Searching for GRUB installation directory ... 
No GRUB directory found. To create a template run 'mkdir /boot/grub' first. To install grub, install it manually or try the 'grub-install' command. ### Warning, grub-install is used to change your MBR. ###
&nbsp;
User postinst hook script [/usr/sbin/update-grub] exited with value 1
dpkg: error processing linux-image-2.6.22-14-generic (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 linux-image-2.6.22-14-386
 linux-image-2.6.22-14-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)</pre></div></div>


<p>It&#8217;s strange really. Why am I missing my grub folder? If grub is really gone, how am I even able to boot into Linux?</p>

<p>So I make the folder, /boot/grub, and try again.</p>


<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up linux-image-2.6.22-14-386 (2.6.22-14.47) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.22-14-386
Not updating initrd symbolic links since we are being updated/reinstalled 
(2.6.22-14.46 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled 
(2.6.22-14.46 was configured last, according to dpkg)
Running postinst hook script /usr/sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... Generating /boot/grub/default file and setting the default boot entry to 0
Searching for GRUB installation directory ... found: /boot/grub
Testing for an existing GRUB menu.lst file ... 
&nbsp;
Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) y
Searching for splash image ... none found, skipping ...
Found kernel: /vmlinuz-2.6.22-14-386
Found kernel: /vmlinuz-2.6.22-14-generic
Updating /boot/grub/menu.lst ... done
&nbsp;
&nbsp;
Setting up linux-image-2.6.22-14-generic (2.6.22-14.47) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.22-14-generic
Not updating initrd symbolic links since we are being updated/reinstalled 
(2.6.22-14.46 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled 
(2.6.22-14.46 was configured last, according to dpkg)
Running postinst hook script /usr/sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /vmlinuz-2.6.22-14-386
Found kernel: /vmlinuz-2.6.22-14-generic
Updating /boot/grub/menu.lst ... done</pre></div></div>


<p>Success! But is it really?
Let&#8217;s look at my boot directory.
<strong>/boot$ find .</strong></p>


<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">.
./initrd.img-2.6.22-14-386
./System.map-2.6.22-14-386
./vmlinuz-2.6.22-14-386
./config-2.6.22-14-386
./abi-2.6.22-14-386
./System.map-2.6.22-14-generic
./vmlinuz-2.6.22-14-generic
./config-2.6.22-14-generic
./abi-2.6.22-14-generic
./initrd.img-2.6.22-14-generic
./initrd.img-2.6.22-14-386.bak
./grub
./grub/default
./grub/menu.lst
./grub/menu.lst~
./initrd.img-2.6.22-14-generic.bak</pre></div></div>


<p>That can&#8217;t be right. I&#8217;m missing files. GRUB just doesn&#8217;t disappear like that. Something had to have happened. Something big and scary.</p>

<p>I check and see what file systems are mounted</p>

<p><strong>$ mount</strong></p>


<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">/dev/mapper/Ubuntu-root on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.22-14-generic/volatile type tmpfs (rw)
/dev/md1 on /tivo type xfs (rw)
/dev/mapper/raid-seagate320 on /share type xfs (rw)
/dev/mapper/Ubuntu-extra on /extra type xfs (rw)
securityfs on /sys/kernel/security type securityfs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)</pre></div></div>


<p>Where is my boot partition? </p>

<p>From my /etc/fstab</p>


<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># /etc/fstab: static file system information.
#
# &lt;file system&gt; &lt;mount point&gt;   &lt;type&gt;  &lt;options&gt;       &lt;dump&gt;  &lt;pass&gt;
proc            /proc           proc    defaults        0       0
/dev/mapper/Ubuntu-root /               ext3    defaults,errors=remount-ro 0       1
# /dev/sda1 -- converted during upgrade to edgy
UUID=065448c7-0098-4bbe-a6c1-d207b4201a1a /boot ext3 defaults 0 2</pre></div></div>


<p>I tried manually mounting <strong>/boot</strong>, but it would get error messages like</p>

<p>mount: /dev/sdb1 already mounted or /boot busy</p>

<p>It was looking like <strong>/boot</strong> wasn&#8217;t being mounted. Was my UUID wrong? Nope. Checking /dev/disk/by-uuid shows that the UUID is correct. Something else was going on. Then I remembered something. A few months ago I was having trouble mounting a raid drive. I&#8217;m not an expert in Linux, but it looked like mount wasn&#8217;t taking actual device names. For example, <strong>/dev/md0</strong> wasn&#8217;t working but <strong>/dev/mapper/Ubunut-extra</strong> was working. So I fixed my fstab</p>


<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># /etc/fstab: static file system information.
#
# &lt;file system&gt; &lt;mount point&gt;   &lt;type&gt;  &lt;options&gt;       &lt;dump&gt;  &lt;pass&gt;
proc            /proc           proc    defaults        0       0
/dev/mapper/Ubuntu-root /               ext3    defaults,errors=remount-ro 0       1
# /dev/sda1 -- converted during upgrade to edgy
# UUID=065448c7-0098-4bbe-a6c1-d207b4201a1a /boot ext3 defaults 0 2
/dev/mapper/sdb1        /boot   ext3    defaults        0       2</pre></div></div>


<p>and reran <strong>apt-get install -f</strong>, restarted, and sacrificed a goat.</p>

<p>It worked. I don&#8217;t know what happened. I&#8217;m not sure what I did was the correct fix. But it&#8217;s working. </p>

<p>So Linux, what up?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raishad.com/2007/12/28/bite-my-shiny-metal-ass/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>TextGr8</title>
		<link>http://www.raishad.com/2006/12/24/textgr8/</link>
		<comments>http://www.raishad.com/2006/12/24/textgr8/#comments</comments>
		<pubDate>Sun, 24 Dec 2006 22:56:48 +0000</pubDate>
		<dc:creator>raishad</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.raishad.com/2006/12/24/textgr8/</guid>
		<description><![CDATA[This post was written in Textmate]]></description>
			<content:encoded><![CDATA[<p>This post was written in <a href="http://www.macromates.com">Textmate</a></p>

<p><img src="http://www.raishad.com/blog/wp-content/uploads/2006/12/textgr_81.png" alt="Textgr 8" height="455" width="340"></p>
]]></content:encoded>
			<wfw:commentRss>http://www.raishad.com/2006/12/24/textgr8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My First Applescript</title>
		<link>http://www.raishad.com/2005/10/31/my-first-applescript/</link>
		<comments>http://www.raishad.com/2005/10/31/my-first-applescript/#comments</comments>
		<pubDate>Mon, 31 Oct 2005 23:08:19 +0000</pubDate>
		<dc:creator>raishad</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.raishad.com/?p=26</guid>
		<description><![CDATA[Applescript! Never really used it before. Mainly cause I was afraid of it&#8217;s natural language syntax. But today, I decided that has to change. Since I&#8217;ve been forced to link the videos I&#8217;ve recently posted using Quicktime&#8217;s embedded player, I needed something to help me write the bit of HTML that makes the magic happen. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Applescript">Applescript</a>! Never really used it before. Mainly cause I was afraid of it&#8217;s natural language syntax. But today, I decided that has to change. </p>

<p>Since I&#8217;ve been forced to link the videos I&#8217;ve recently posted using Quicktime&#8217;s embedded player, I needed something to help me write the bit of HTML that makes the magic happen. So what better way to try my hand at Applescript than with this little problem.</p>

<p>The great thing about Applescript is that it&#8217;s available everywhere in MacOS
<div align="center">
<img src="http://image.raishad.com/applescript_folder.png" alt="Applescript Menu" /></div></p>

<p>Here&#8217;s my first Applescript script:
<span id="more-26"></span>
<pre><code><SPAN style="COLOR: #000000">--</SPAN><SPAN style="COLOR: #4c5d5d; FONT-STYLE: italic"> Video</SPAN><SPAN style="COLOR: #000000">
--</SPAN><SPAN style="COLOR: #4c5d5d; FONT-STYLE: italic"> (My First Applescript)</SPAN><SPAN style="COLOR: #000000">
--</SPAN><SPAN style="COLOR: #4c5d5d; FONT-STYLE: italic"> Takes video and poster URLs and generates a bit of HTML that can be copied to the clipboard</SPAN><SPAN style="COLOR: #000000"></p>

<p>--</SPAN><SPAN style="COLOR: #4c5d5d; FONT-STYLE: italic"> Properties</SPAN><SPAN style="COLOR: #000000">
</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #0000ff">property</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #4f7f00">nl</SPAN><SPAN style="COLOR: #000000"> : </SPAN><SPAN style="COLOR: #0000ff">ASCII character</SPAN><SPAN style="COLOR: #000000"> 10
--</SPAN><SPAN style="COLOR: #4c5d5d; FONT-STYLE: italic"> Video</SPAN><SPAN style="COLOR: #000000">
</SPAN><SPAN style="COLOR: #0000ff">display dialog</SPAN><SPAN style="COLOR: #000000"> "Enter Video URL" </SPAN><SPAN style="COLOR: #0000ff">default answer</SPAN><SPAN style="COLOR: #000000"> "http://video.raishad.com/" </SPAN><SPAN style="COLOR: #0000ff">buttons</SPAN><SPAN style="COLOR: #000000"> {"OK"} </SPAN><SPAN style="COLOR: #0000ff">default button</SPAN><SPAN style="COLOR: #000000"> 1</p>

<p></SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #0000ff">set</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #4f7f00">video<em>url</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #0000ff">to</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #0000ff">the</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">text returned</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #0000ff">of</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #0000ff">the</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">result</SPAN><SPAN style="COLOR: #000000">
</SPAN><SPAN style="COLOR: #0000ff">display dialog</SPAN><SPAN style="COLOR: #000000"> "Enter Poster URL" </SPAN><SPAN style="COLOR: #0000ff">default answer</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #4f7f00">video</em>url</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">buttons</SPAN><SPAN style="COLOR: #000000"> {"OK"} </SPAN><SPAN style="COLOR: #0000ff">default button</SPAN><SPAN style="COLOR: #000000"> 1</p>

<p></SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #0000ff">set</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #4f7f00">poster<em>url</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #0000ff">to</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #0000ff">the</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">text returned</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #0000ff">of</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #0000ff">the</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">result</SPAN><SPAN style="COLOR: #000000">
</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #0000ff">set</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #4f7f00">object</em>tag</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #0000ff">to</SPAN><SPAN style="COLOR: #000000"> ("&lt;object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="320" height="256" standby="Data is loading..." codebase="http://www.apple.com/qtactivex/qtplugin.cab"&gt;" &amp; </SPAN><SPAN style="COLOR: #4f7f00">nl</SPAN><SPAN style="COLOR: #000000"> &amp; ¬</p>

<p></SPAN><SPAN style="COLOR: #000000">    "&lt;param name="href" value="" &amp; </SPAN><SPAN style="COLOR: #4f7f00">video<em>url</SPAN><SPAN style="COLOR: #000000"> &amp; "" /&gt;" &amp; </SPAN><SPAN style="COLOR: #4f7f00">nl</SPAN><SPAN style="COLOR: #000000"> &amp; ¬
    "&lt;param name="src" value="" &amp; </SPAN><SPAN style="COLOR: #4f7f00">poster</em>url</SPAN><SPAN style="COLOR: #000000"> &amp; "" /&gt;" &amp; </SPAN><SPAN style="COLOR: #4f7f00">nl</SPAN><SPAN style="COLOR: #000000"> &amp; ¬
    "&lt;param name="autoplay" value="false" /&gt;" &amp; </SPAN><SPAN style="COLOR: #4f7f00">nl</SPAN><SPAN style="COLOR: #000000"> &amp; ¬
    "&lt;param name="controller" value="false" /&gt;" &amp; </SPAN><SPAN style="COLOR: #4f7f00">nl</SPAN><SPAN style="COLOR: #000000"> &amp; ¬
    "&lt;param name="target" value="myself" /&gt;" &amp; </SPAN><SPAN style="COLOR: #4f7f00">nl</SPAN><SPAN style="COLOR: #000000"> &amp; ¬
    "&lt;embed href="" &amp; </SPAN><SPAN style="COLOR: #4f7f00">video<em>url</SPAN><SPAN style="COLOR: #000000"> &amp; "" src="" &amp; </SPAN><SPAN style="COLOR: #4f7f00">poster</em>url</SPAN><SPAN style="COLOR: #000000"> &amp; "" width="320" height="256" autoplay="false" controller="false" target="myself" /&gt;" &amp; </SPAN><SPAN style="COLOR: #4f7f00">nl</SPAN><SPAN style="COLOR: #000000"> &amp; ¬
    "&lt;/object&gt;")</p>

<p></SPAN><SPAN style="COLOR: #0000ff">display dialog</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #4f7f00">object_tag</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">buttons</SPAN><SPAN style="COLOR: #000000"> {"Cancel", "Copy to Clipboard"} </SPAN><SPAN style="COLOR: #0000ff">default button</SPAN><SPAN style="COLOR: #000000"> 2
</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">button returned</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #0000ff">of</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #0000ff">result</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #0000ff">is</SPAN><SPAN style="COLOR: #000000"> "Copy to Clipboard" </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #0000ff">then</SPAN><SPAN style="COLOR: #000000"></p>

<p></SPAN><SPAN style="COLOR: #000000">    </SPAN><SPAN style="COLOR: #0000ff">set the clipboard to</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="COLOR: #4f7f00">object_tag</SPAN><SPAN style="COLOR: #000000">
</SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #0000ff">end</SPAN><SPAN style="COLOR: #000000"> </SPAN><SPAN style="FONT-WEIGHT: bold; COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000">
</SPAN></code></pre></p>

<p>Also, 10.4.3 is out,
<div align="center"><a href="http://image.raishad.com/apple_update.png"><img src="http://image.raishad.com/thumb/th-apple_update.png" alt="10.4.3" /></a></div>
<br /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.raishad.com/2005/10/31/my-first-applescript/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Let&#8217;s Talk About Scripts, Baby</title>
		<link>http://www.raishad.com/2005/10/25/lets-talk-about-scripts-baby/</link>
		<comments>http://www.raishad.com/2005/10/25/lets-talk-about-scripts-baby/#comments</comments>
		<pubDate>Tue, 25 Oct 2005 18:49:51 +0000</pubDate>
		<dc:creator>raishad</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.raishad.com/?p=22</guid>
		<description><![CDATA[Automator, touted as one of the big features of Mac OS X 10.4. Have you used it? Of course not, it&#8217;s rubbish. For one, the program itself is horribly resource intensive. You need a 4-way G5 with 4GB of memory for it to be useable. I don&#8217;t know what it&#8217;s doing, but the longer you [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.apple.com/macosx/features/automator/">Automator</a>, touted as one of the big features of Mac OS X 10.4. Have you used it? Of course not, it&#8217;s rubbish.</p>

<p>For one, the program itself is horribly resource intensive. You need a 4-way G5 with 4GB of memory for it to be useable. I don&#8217;t know what it&#8217;s doing, but the longer you leave it open, the slower and slower the program gets.</p>

<p>Secondly, there&#8217;s no good way to debug. Stuff happens, and you just hope it&#8217;s the right stuff. And it doesn&#8217;t help testing when Automator slows to a crawl.</p>

<p>Automator, what a rubbish program. But then it finally works, and the clouds part and the sun shines down and all is well with the world.</p>

<p>Yes, I&#8217;ve finally gotten some results with Automator. I&#8217;ve created two workflows. The first creates a thumbnail and uploads the thumbnail and original image to raishad.com. The second is a &#8220;Folder Action&#8221;. A &#8220;Folder Action&#8221; is a script that is attached to a folder, and it runs whenever you drop a file in that folder. The second workflow uploads .torrent files that I drop in that folder, to a folder on my server that Azureus scans for new torrents.</p>

<p>After the jump, I&#8217;ll walk through the Workflows
<span id="more-22"></span></p>

<p><a href="http://image.raishad.com/Workflow%201%20Image%20Upload.png"><img src="http://image.raishad.com/thumb/th-Workflow%201%20Image%20Upload.png" alt="Workflow 1 Image Upload" /></a>
If you notice, I don&#8217;t really do much with Automator with this workflow. My first try with Automator months ago was trying to create a similar workflow. I wanted to grab a comic, scale it and set it as my desktop. But image manipulation with Automator isn&#8217;t that great. So I wrote the heart of the workflow in Ruby, fileuploader.rb. It&#8217;s pretty simple. It uses <a href="http://rmagick.rubyforge.org/">RMagick</a> for the image processing. </p>

<p><a href="http://image.raishad.com/Workflow%202%20Torrent.png"><img src="http://image.raishad.com/thumb/th-Workflow%202%20Torrent.png" alt="Workflow 2 Torrent" /></a>
This one was tricky. There&#8217;s an action called &#8220;Get Selected Finder Items&#8221; that I was trying to use. In the context of a &#8220;Folder Action&#8221;, it includes the folder as well as the files in that folder in the &#8220;Selected Finder Items&#8221; heading. So I was uploading the whole folder each time. Not what I wanted. So you see how you have to shift your thinking a bit. I first had to get the folder, and then it&#8217;s contents. I also made use of an &#8220;Upload to FTP&#8221; action I found on <a href="http://www.apple.com/downloads/macosx/automator/uploadtoftp.html">Apple&#8217;s Download Site</a>.</p>

<p><strong>Update:</strong>
And it seems I&#8217;ve found a bug while uploading the images for this post. For some reason, if you select a bunch of images, it only uploads the first one, eventhough all the files are passed to the &#8220;Run Shell Script&#8221; action. And that is why working with Automator is a test in patience.</p>

<p><strong>Update, Again:</strong>
I fixed the first workflow,
<a href="http://image.raishad.com/Workflow%201%20Image%20Upload%20Fixed.png"><img src="http://image.raishad.com/thumb/th-Workflow%201%20Image%20Upload%20Fixed.png" alt="Workflow 1 Image Upload Fixed" /></a>
Seems it wasn&#8217;t Automator&#8217;s fault. It was Bash&#8217;s fault. I probably should&#8217;ve looked up what exec did before using it.
<dl>
<dt><a href="http://db.ilug-bom.org.in/Documentation/abs-guide/internal.html#EXECREF">exec</a></dt>
<dd>This shell builtin replaces the current process with a specified command. Normally, when the shell encounters a command, it forks  off [3]  a child process to actually execute the command. Using the exec builtin, the shell does not fork, and the command exec&#8217;ed replaces the shell. When used in a script, therefore, it forces an exit from the script when the exec&#8217;ed command terminates. For this reason, if an exec appears in a script, it would probably be the final command.</dd>
</dl></p>
]]></content:encoded>
			<wfw:commentRss>http://www.raishad.com/2005/10/25/lets-talk-about-scripts-baby/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flock</title>
		<link>http://www.raishad.com/2005/10/19/flock/</link>
		<comments>http://www.raishad.com/2005/10/19/flock/#comments</comments>
		<pubDate>Wed, 19 Oct 2005 21:10:29 +0000</pubDate>
		<dc:creator>raishad</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.raishad.com/?p=16</guid>
		<description><![CDATA[First post from Flock]]></description>
			<content:encoded><![CDATA[<p>First post from Flock<br /><a href="http://flickr.com/photos/69774033@N00/50423255" title="undefined"><img src="http://photos29.flickr.com/50423255_8813bd26eb_m.jpg" alt="Flickr Photo" /></a><br /><a href="http://image.raishad.com/flock.png"><img alt="http://image.raishad.com/thumb/th-flock.png" src="http://image.raishad.com/thumb/th-flock.png" style="border: 0px solid ; width: 420px; height: 264px;" /></a><br /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.raishad.com/2005/10/19/flock/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
