<?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>Wayne Khan</title>
	<atom:link href="http://waynekhan.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://waynekhan.com/blog</link>
	<description>Web developer musings... and then some.</description>
	<lastBuildDate>Wed, 24 Feb 2010 06:27:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=3.0-alpha</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Shell commands for Ubuntu Netbook Edition 9.10</title>
		<link>http://waynekhan.com/blog/2010/02/shell-commands-for-ubuntu-netbook-edition-9-10/</link>
		<comments>http://waynekhan.com/blog/2010/02/shell-commands-for-ubuntu-netbook-edition-9-10/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 06:27:28 +0000</pubDate>
		<dc:creator>Wayne Khan</dc:creator>
				<category><![CDATA[Wayne Khan]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://waynekhan.com/blog/?p=362</guid>
		<description><![CDATA[As above, useful when deploying a client PC.
# installing Wine, IEs4Linux
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine
wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
tar zxvf ies4linux-latest.tar.gz
cd ies4linux-*
./ies4linux
# removing games
sudo apt-get remove gnome-games
sudo apt-get autoremove
# clearing command history
history -c
]]></description>
			<content:encoded><![CDATA[<p>As above, useful when deploying a client PC.</p>
<p># installing Wine, IEs4Linux<br />
sudo add-apt-repository ppa:ubuntu-wine/ppa<br />
sudo apt-get update<br />
sudo apt-get install wine<br />
wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz<br />
tar zxvf ies4linux-latest.tar.gz<br />
cd ies4linux-*<br />
./ies4linux</p>
<p># removing games<br />
sudo apt-get remove gnome-games<br />
sudo apt-get autoremove</p>
<p># clearing command history<br />
history -c</p>
]]></content:encoded>
			<wfw:commentRss>http://waynekhan.com/blog/2010/02/shell-commands-for-ubuntu-netbook-edition-9-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8217;svnadmin&#8217; dump/load</title>
		<link>http://waynekhan.com/blog/2010/01/svnadmin-dump-load/</link>
		<comments>http://waynekhan.com/blog/2010/01/svnadmin-dump-load/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 09:39:24 +0000</pubDate>
		<dc:creator>Wayne Khan</dc:creator>
				<category><![CDATA[Wayne Khan]]></category>
		<category><![CDATA[Subversion]]></category>

		<guid isPermaLink="false">http://waynekhan.com/blog/?p=354</guid>
		<description><![CDATA[In case you&#8217;re migrating repository data anywhere:
svnadmin dump old_svn_repos --deltas &#62; svnrepos.dmp
svnadmin create new_svn_repos
svnadmin load new_svn_repos &#60; svnrepos.dmp
]]></description>
			<content:encoded><![CDATA[<p>In case you&#8217;re migrating repository data anywhere:</p>
<p><code>svnadmin dump old_svn_repos --deltas &gt; svnrepos.dmp<br />
svnadmin create new_svn_repos<br />
svnadmin load new_svn_repos &lt; svnrepos.dmp</code></p>
]]></content:encoded>
			<wfw:commentRss>http://waynekhan.com/blog/2010/01/svnadmin-dump-load/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ORA-01033: ORACLE initialization or shutdown in progress</title>
		<link>http://waynekhan.com/blog/2010/01/oracle-01033-oracle-initialization-or-shutdown-in-progress/</link>
		<comments>http://waynekhan.com/blog/2010/01/oracle-01033-oracle-initialization-or-shutdown-in-progress/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 05:00:48 +0000</pubDate>
		<dc:creator>Wayne Khan</dc:creator>
				<category><![CDATA[Wayne Khan]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://waynekhan.com/blog/?p=338</guid>
		<description><![CDATA[Encountered this issue when I came into the office this morning.
The verbiage indicates that Oracle is starting up (or down), but waiting a bit doesn&#8217;t cause the error to go away. Time for Google-ing.
$ sqlplus sys/xxxxxxx as sysdba
Replace the &#8216;xxxxxxx&#8217; part with the actual password, of course. If the &#8217;sqlplus&#8217; command is not recognized, it&#8217;s ]]></description>
			<content:encoded><![CDATA[<p>Encountered this issue when I came into the office this morning.</p>
<p>The verbiage indicates that Oracle is starting up (or down), but waiting a bit doesn&#8217;t cause the error to go away. Time for Google-ing.</p>
<p><code>$ sqlplus sys/xxxxxxx as sysdba</code></p>
<p>Replace the &#8216;xxxxxxx&#8217; part with the actual password, of course. If the &#8217;sqlplus&#8217; command is not recognized, it&#8217;s probably a problem with your envvars, but that&#8217;s a whole can of worms altogether. But I digress. Let&#8217;s see whether the db can be mounted:</p>
<p><code>SQL&gt; alter database mount;<br />
ERROR at line 1:<br />
ORA-01100: database already mounted</code></p>
<p>OK, that&#8217;s a start. How about open-ing?</p>
<p><code>SQL&gt; alter database open;<br />
ERROR at line 1:<br />
ORA-01113: file 1 needs media recovery</code></p>
<p>OK let&#8217;s do recovery:</p>
<p><code>ORA-01110: data file 1: '/usr/lib/oracle/xe/oradata/XE/system.dbf'<br />
SQL&gt; recover datafile '/usr/lib/oracle/xe/oradata/XE/system.dbf'<br />
Media recovery complete.<br />
SQL&gt; alter database open;<br />
Database altered.<br />
SQL&gt; quit<br />
Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production</code></p>
<p>Hope this helps somebody.</p>
]]></content:encoded>
			<wfw:commentRss>http://waynekhan.com/blog/2010/01/oracle-01033-oracle-initialization-or-shutdown-in-progress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Advice, like youth, probably just wasted on the young</title>
		<link>http://waynekhan.com/blog/2010/01/advice-like-youth-probably-just-wasted-on-the-young/</link>
		<comments>http://waynekhan.com/blog/2010/01/advice-like-youth-probably-just-wasted-on-the-young/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 04:15:58 +0000</pubDate>
		<dc:creator>Wayne Khan</dc:creator>
				<category><![CDATA[Wayne Khan]]></category>

		<guid isPermaLink="false">http://waynekhan.com/blog/?p=335</guid>
		<description><![CDATA[This was an article written by a (in hindsight) rather wise lady circa 1997, as she attempted to write a &#8220;Guide to Life for Graduates&#8221;. I was just listening to the song version, and the words still ring true 13 years later. I&#8217;m just going to do a cut-and-paste, as there&#8217;s pretty much nothing I ]]></description>
			<content:encoded><![CDATA[<p>This was <a href="http://www.chicagotribune.com/news/columnists/chi-schmich-sunscreen-column,0,4054576.column">an article</a> written by a (in hindsight) rather wise lady circa 1997, as she attempted to write a &#8220;Guide to Life for Graduates&#8221;. I was just listening to the song version, and the words still ring true 13 years later. I&#8217;m just going to do a cut-and-paste, as there&#8217;s pretty much nothing I can add on:</p>
<p><em>Ladies and gentlemen of the class of &#8216;97:</em></p>
<p><em>Wear sunscreen.</em></p>
<p><em>If I could offer you only one tip for the future, sunscreen would be it. The long-term benefits of sunscreen have been proved by scientists, whereas the rest of my advice has no basis more reliable than my own meandering experience. I will dispense this advice now.</em></p>
<p><em>Enjoy the power and beauty of your youth. Oh, never mind. You will not understand the power and beauty of your youth until they&#8217;ve faded. But trust me, in 20 years, you&#8217;ll look back at photos of yourself and recall in a way you can&#8217;t grasp now how much possibility lay before you and how fabulous you really looked. You are not as fat as you imagine.</em></p>
<p><em>Don&#8217;t worry about the future. Or worry, but know that worrying is as effective as trying to solve an algebra equation by chewing bubble gum. The real troubles in your life are apt to be things that never crossed your worried mind, the kind that blindside you at 4 p.m. on some idle Tuesday.</em></p>
<p><em>Do one thing every day that scares you.</em></p>
<p><em>Sing.</em></p>
<p><em>Don&#8217;t be reckless with other people&#8217;s hearts. Don&#8217;t put up with people who are reckless with yours.</em></p>
<p><em>Floss.</em></p>
<p><em>Don&#8217;t waste your time on jealousy. Sometimes you&#8217;re ahead, sometimes you&#8217;re behind. The race is long and, in the end, it&#8217;s only with yourself.</em></p>
<p><em>Remember compliments you receive. Forget the insults. If you succeed in doing this, tell me how.</em></p>
<p><em>Keep your old love letters. Throw away your old bank statements.</em></p>
<p><em>Stretch.</em></p>
<p><em>Don&#8217;t feel guilty if you don&#8217;t know what you want to do with your life. The most interesting people I know didn&#8217;t know at 22 what they wanted to do with their lives. Some of the most interesting 40-year-olds I know still don&#8217;t.</em></p>
<p><em>Get plenty of calcium. Be kind to your knees. You&#8217;ll miss them when they&#8217;re gone.</em></p>
<p><em>Maybe you&#8217;ll marry, maybe you won&#8217;t. Maybe you&#8217;ll have children, maybe you won&#8217;t. Maybe you&#8217;ll divorce at 40, maybe you&#8217;ll dance the funky chicken on your 75th wedding anniversary. Whatever you do, don&#8217;t congratulate yourself too much, or berate yourself either. Your choices are half chance. So are everybody else&#8217;s.</em></p>
<p><em>Enjoy your body. Use it every way you can. Don&#8217;t be afraid of it or of what other people think of it. It&#8217;s the greatest instrument you&#8217;ll ever own.</em></p>
<p><em>Dance, even if you have nowhere to do it but your living room.</em></p>
<p><em>Read the directions, even if you don&#8217;t follow them.</em></p>
<p><em>Do not read beauty magazines. They will only make you feel ugly.</em></p>
<p><em>Get to know your parents. You never know when they&#8217;ll be gone for good. Be nice to your siblings. They&#8217;re your best link to your past and the people most likely to stick with you in the future.</em></p>
<p><em>Understand that friends come and go, but with a precious few you should hold on. Work hard to bridge the gaps in geography and lifestyle, because the older you get, the more you need the people who knew you when you were young.</em></p>
<p><em>Live in New York City once, but leave before it makes you hard. Live in Northern California once, but leave before it makes you soft. Travel.</em></p>
<p><em>Accept certain inalienable truths: Prices will rise. Politicians will philander. You, too, will get old. And when you do, you&#8217;ll fantasize that when you were young, prices were reasonable, politicians were noble and children respected their elders.</em></p>
<p><em>Respect your elders.</em></p>
<p><em>Don&#8217;t expect anyone else to support you. Maybe you have a trust fund. Maybe you&#8217;ll have a wealthy spouse. But you never know when either one might run out.</em></p>
<p><em>Don&#8217;t mess too much with your hair or by the time you&#8217;re 40 it will look 85.</em></p>
<p><em>Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia. Dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than it&#8217;s worth.</em></p>
<p><em>But trust me on the sunscreen.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://waynekhan.com/blog/2010/01/advice-like-youth-probably-just-wasted-on-the-young/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RHEL 5 to CentOS 5</title>
		<link>http://waynekhan.com/blog/2010/01/rhel-5-to-centos-5/</link>
		<comments>http://waynekhan.com/blog/2010/01/rhel-5-to-centos-5/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 07:57:12 +0000</pubDate>
		<dc:creator>Wayne Khan</dc:creator>
				<category><![CDATA[Wayne Khan]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://waynekhan.com/blog/?p=330</guid>
		<description><![CDATA[I used VirtualBox to install RHEL v5.4 today, as we&#8217;re going to use it to host our web application.
The install completed successfully, and then I realized that some kind of subscription plan is required to issue &#8216;yum&#8217; commands.
So there I was, stuck with an outdated RHEL5 system (circa September 2009, the box tells me), and ]]></description>
			<content:encoded><![CDATA[<p>I used <a href="http://www.virtualbox.org/">VirtualBox</a> to install RHEL v5.4 today, as we&#8217;re going to use it to host our web application.</p>
<p>The install completed successfully, and then I realized that some kind of subscription plan is required to issue &#8216;yum&#8217; commands.</p>
<p>So there I was, stuck with an outdated RHEL5 system (circa September 2009, the box tells me), and no <a href="http://rhn.redhat.com/">RHN</a> login in sight. Great.</p>
<p>Some Google-ing uncovered <a href="http://www.unixmen.com/linux-tutorials/documentations-a-howto/213-how-to-jul-convert-rhel-5-to-centos-5">this article</a>, which pretty much works, except I had to make a few edits here and there.</p>
<p>I thought to repost here instead, in case I ever have to convert RHEL to CentOS again.</p>
<p>It&#8217;s an excerpt of root&#8217;s commands:</p>
<pre>
# remove cached packages
yum clean all

# create /root/centos/
mkdir ~/centos
cd ~/centos

# import CentOS's GPG key
wget http://mirror.centos.org/centos/5.4/os/i386/RPM-GPG-KEY-CentOS-5
rpm --import RPM-GPG-KEY-CentOS-5

# web get base packages
wget http://mirror.centos.org/centos/5.4/os/i386/CentOS/centos-release-5-4.el5.centos.1.i386.rpm
wget http://mirror.centos.org/centos/5.4/os/i386/CentOS/centos-release-notes-5.4-4.i386.rpm
wget http://mirror.centos.org/centos/5.4/os/i386/CentOS/yum-3.2.22-20.el5.centos.noarch.rpm
wget http://mirror.centos.org/centos/5.4/os/i386/CentOS/yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm
wget http://mirror.centos.org/centos/5.4/os/i386/CentOS/yum-updatesd-0.9-2.el5.noarch.rpm

# install using 'rpm'
rpm -Uvh centos*.rpm
rpm -Uvh yum*.rpm

# clear RHN stuff
rpm -e --nodeps redhat-release
rpm -e --nodeps yum-rhn-plugin

# upgrade to heart's content
yum upgrade
</pre>
<p>At this moment, the update is buzzing along quite well, thanks to <a href="http://mirror.nus.edu.sg/">NUS&#8217;s mirror</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://waynekhan.com/blog/2010/01/rhel-5-to-centos-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse &#8220;Open Resource&#8221; in Komodo Edit 5.2</title>
		<link>http://waynekhan.com/blog/2009/11/eclipse-open-resource-in-komodo/</link>
		<comments>http://waynekhan.com/blog/2009/11/eclipse-open-resource-in-komodo/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 04:09:32 +0000</pubDate>
		<dc:creator>Wayne Khan</dc:creator>
				<category><![CDATA[Wayne Khan]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Komodo Edit]]></category>

		<guid isPermaLink="false">http://waynekhan.com/blog/?p=309</guid>
		<description><![CDATA[The thing I like about Eclipse is its &#8220;Open Resource&#8221; shortcut. Eclipse is great, but it always feels&#8230; heavy. Plus I can&#8217;t get Mint 7/Eclipse 3.5/PHP Developer Tools to play nice, so I&#8217;m switching to Komodo Edit 5.2. It doesn&#8217;t work so well with CakePHP, but at least there is some code completion. Now the ]]></description>
			<content:encoded><![CDATA[<p>The thing I like about Eclipse is its &#8220;Open Resource&#8221; shortcut. Eclipse is great, but it always feels&#8230; heavy. Plus I can&#8217;t get Mint 7/Eclipse 3.5/PHP Developer Tools to play nice, so I&#8217;m switching to Komodo Edit 5.2. It doesn&#8217;t work so well with CakePHP, but at least there is some code completion. Now the previous version (5.1) was extremely unstable, but the new one is much better, so try it out if you&#8217;re looking around for a new editor.</p>
<p>Now, on to the good stuff. You can duplicate &#8220;Open Resource&#8221; by creating a project and defining a shortcut for Komodo&#8217;s equivalent:</p>
<p>File -> New -> New Project</p>
<p>Save the file in the root of your project directory. This allows the entire file listing to show up in:</p>
<p>File -> Open -> Go to File&#8230;</p>
<p>Finally, you need to define the Ctrl+Shift+R shortcut for it:</p>
<p>Edit -> Preferences -> Key Binding Schemes -> New&#8230;</p>
<p>I call mine &#8220;Eclipse&#8221;.</p>
<p>In the &#8220;Commands:&#8221; input box, type &#8220;go to&#8221;, and then select &#8220;Fast Open: Go to File&#8230;&#8221;.</p>
<p>Restart Komodo Edit, open the project you just created, and then hit Ctrl+Shift+R. Voila.</p>
<p>Goodbye, Eclipse.</p>
]]></content:encoded>
			<wfw:commentRss>http://waynekhan.com/blog/2009/11/eclipse-open-resource-in-komodo/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>DIY-ing a mid-range gaming PC</title>
		<link>http://waynekhan.com/blog/2009/10/diy-ing-a-new-mid-range-desktop-pc/</link>
		<comments>http://waynekhan.com/blog/2009/10/diy-ing-a-new-mid-range-desktop-pc/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 04:41:00 +0000</pubDate>
		<dc:creator>Wayne Khan</dc:creator>
				<category><![CDATA[Wayne Khan]]></category>
		<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://waynekhan.com/blog/?p=286</guid>
		<description><![CDATA[About a year ago, I led myself to believe that I&#8217;d find the time to play Fallout 3 on this new gaming PC that I&#8217;d build. Here are the parts that I&#8217;d picked, with my dear friend Eddie&#8217;s help, circa December 2008:
CPU/Mobo    Intel Core 2 Duo E8400 + Gigabyte GA-EP45-UD3P   ]]></description>
			<content:encoded><![CDATA[<p>About a year ago, I led myself to believe that I&#8217;d find the time to play Fallout 3 on this new gaming PC that I&#8217;d build. Here are the parts that I&#8217;d picked, with my dear friend Eddie&#8217;s help, circa December 2008:</p>
<pre>CPU/Mobo    Intel Core 2 Duo E8400 + Gigabyte GA-EP45-UD3P        474
Memory      Corsair PC2-6400 DDR2-800 (2x2GB)                     128
Chassis     3R System K400                                         59
PSU         Vantec 500N ION2+500W                                  75
Graphics    Gainward 4850 512MB                                   244
Storage     WD Caviar Black 640GB                                 138</pre>
<p>The damage tallied up to $1118, excluding an optical drive, monitor, keyboard, mouse and speakers. I didn&#8217;t purchase it in the end, and I didn&#8217;t find the time to play much of anything, so it turned out to be a good decision. Now, a year later, I&#8217;ve gotten into the mood to compile an updated list, mostly driven by the release of new cheaper, better and faster (CBF) parts. So here we go again:</p>
<pre>CPU/Mobo    AMD Phenom II X2 550 BE + Gigabyte GA-MA785GM-UD2H    309
Memory      Team Xtreem Dark PC2-8500 (2x2GB)                     155
Chassis     Gigabyte GZ-X2 w/420W PSU                             109
PSU         Ditto                                                   -
Graphics    ?                                                       -
Storage     WD Caviar Black 1TB                                   155</pre>
<p>The cost for the base (CPU, Mobo, Memory, Chassis and PSU) system has dropped significantly, and I&#8217;m undecided on whether I actually need new Graphics/Storage parts. Anyway if I do purchase this system sometime soon, <a href="http://www.anandtech.com/bench/default.aspx?p=97">Fallout 3</a> will play really well. Or I might just wait a year for something even more CBF.</p>
]]></content:encoded>
			<wfw:commentRss>http://waynekhan.com/blog/2009/10/diy-ing-a-new-mid-range-desktop-pc/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Debian-based distro adventures</title>
		<link>http://waynekhan.com/blog/2009/08/debian-based-distro-adventures/</link>
		<comments>http://waynekhan.com/blog/2009/08/debian-based-distro-adventures/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 05:29:47 +0000</pubDate>
		<dc:creator>Wayne Khan</dc:creator>
				<category><![CDATA[Wayne Khan]]></category>
		<category><![CDATA[Debian Linux]]></category>
		<category><![CDATA[GNOME]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[Kubuntu]]></category>
		<category><![CDATA[SimplyMEPIS]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://waynekhan.com/blog/?p=282</guid>
		<description><![CDATA[Since my previous post, I&#8217;ve used:

MEPIS 8; KDE 3, based on Debian 5;
Ubuntu 9.04;  GNOME 2, based on Debian 5;
Linux Mint 7: GNOME 2, based on Ubuntu 9.04;
Kubuntu 8.04; KDE 3, based on on Ubuntu 8.04.

I&#8217;ve compared MEPIS 8 and Ubuntu 9.04, in what was called an unfair comparison by some. I think some of ]]></description>
			<content:encoded><![CDATA[<p>Since my <a href="http://waynekhan.com/blog/2009/06/comparing-mepis-8-and-ubuntu-9-04/">previous post</a>, I&#8217;ve used:</p>
<ul>
<li><a href="http://www.mepis.org/">MEPIS 8</a>; KDE 3, based on Debian 5;</li>
<li><a href="http://www.ubuntu.com/getubuntu/download">Ubuntu 9.04</a>;  GNOME 2, based on Debian 5;</li>
<li><a href="http://www.linuxmint.com/download.php">Linux Mint 7</a>: GNOME 2, based on Ubuntu 9.04;</li>
<li><a href="http://www.kubuntu.org/getkubuntu/download">Kubuntu 8.04</a>; KDE 3, based on on Ubuntu 8.04.</li>
</ul>
<p>I&#8217;ve compared MEPIS 8 and Ubuntu 9.04, in what was called an unfair comparison by some. I think some of the commenters even indicated that Ubuntu 9.04 would&#8217;ve come up tops, but I begged (and still do) to differ.</p>
<p>Since then, I&#8217;ve used Mint 7 and Kubuntu 8.04, which one may realize are using GNOME 2 and KDE 3 as well. So I guess a more appropriate comparison would&#8217;ve been:</p>
<ul>
<li>MEPIS 8 versus Kubuntu 8.04;</li>
<li>Ubuntu 9.04 versus Linux Mint 7.</li>
</ul>
<p>All of packages I use (e.g. php-pear, imagemagick, mysql-server) have the same names across the four distributions (but that&#8217;s probably due to Debian).</p>
<p>All four distributions work fine w/ Oracle Express Edition, which is a great way to try out Oracle database if you don&#8217;t happen to work for a large corporation that uses its (probably too-)expensive licenses.</p>
<p>I must say that it wasn&#8217;t so much the particular distribution, source distribution or version number that affected the speed of the interface, but rather, the window manager.</p>
<p>GNOME 2 just seems&#8230; slow. KDE 3 is well&#8230; snappy.</p>
<p>To me, there is no discernable difference between MEPIS and Kubuntu &#8212; both use KDE 3, except perhaps Kubuntu uses Adept whilst MEPIS sticks to good old Synaptic. Both are great applications nonetheless.</p>
<p>I&#8217;ll gripe about the loss of Dropbox, which is available both Ubuntu and Mint due to GNOME. Apparently there is <a href="http://www.getdropbox.com/downloading">command-line instructions</a> available. But I digress.</p>
<p>On the upside, I can&#8217;t seem to (easily) setup a network printer in either MEPIS or Kubuntu. I followed the instructions on the Ubuntu website, and voila, I could print. Likewise for Mint, which is basically Ubuntu nicely themed. Or maybe I&#8217;m just scratching the surface.</p>
<p>Kdesvn and Meld are almost interchangeable, unless you want to view svn logs of course (use the former).</p>
<p>So there you have it. If you&#8217;ve got a high-performance, dual- (or quad-) core laptop, Ubuntu or Mint will do fine. But if you&#8217;ve got a 2- to 3- year old laptop, consider Kubuntu 8.04 or MEPIS 8. Unfortunately, I can&#8217;t access mepis.org anymore &#8212; the site is down, why? &#8212; and Canonical maintains fast servers, so I&#8217;ll be using Kubuntu for the forseeable future.</p>
]]></content:encoded>
			<wfw:commentRss>http://waynekhan.com/blog/2009/08/debian-based-distro-adventures/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>302 error in CakePHP with SWFUpload</title>
		<link>http://waynekhan.com/blog/2009/07/302-error-in-cakephp-with-swfupload/</link>
		<comments>http://waynekhan.com/blog/2009/07/302-error-in-cakephp-with-swfupload/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 15:15:43 +0000</pubDate>
		<dc:creator>Wayne Khan</dc:creator>
				<category><![CDATA[Wayne Khan]]></category>
		<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[SWFUpload]]></category>

		<guid isPermaLink="false">http://waynekhan.com/blog/?p=275</guid>
		<description><![CDATA[I encountered this issue in one of my recent projects.
Basically I use SWFUpload to post files to a CakePHP controller. It was working beautifully, until I inadvertently removed 1 (yes, just one) line of code in beforeFilter():

$this-&#62;Auth-&#62;allow&#40;&#34;swfupload&#34;&#41;;

I was using the Auth component, and without the line above to allow &#8220;not logged in&#8221; access to the ]]></description>
			<content:encoded><![CDATA[<p>I encountered this issue in one of my recent projects.</p>
<p>Basically I use SWFUpload to post files to a CakePHP controller. It was working beautifully, until I inadvertently removed 1 (yes, just one) line of code in beforeFilter():</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Auth</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">allow</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;swfupload&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>I was using the Auth component, and without the line above to allow &#8220;not logged in&#8221; access to the controller action, then we have a problem.</p>
<p>Hope this helps somebody.</p>
]]></content:encoded>
			<wfw:commentRss>http://waynekhan.com/blog/2009/07/302-error-in-cakephp-with-swfupload/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Comparing MEPIS 8 and Ubuntu 9.04</title>
		<link>http://waynekhan.com/blog/2009/06/comparing-mepis-8-and-ubuntu-9-04/</link>
		<comments>http://waynekhan.com/blog/2009/06/comparing-mepis-8-and-ubuntu-9-04/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 04:34:01 +0000</pubDate>
		<dc:creator>Wayne Khan</dc:creator>
				<category><![CDATA[Wayne Khan]]></category>

		<guid isPermaLink="false">http://waynekhan.com/blog/?p=266</guid>
		<description><![CDATA[This post has been updated due to new information regarding Ubuntu 9.04.
I first tweeted about Ubutu 9.04 a week ago. Now I know I&#8217;m not exactly comparing apples with apples, since MEPIS 8 is based on Debian 5.0 and uses KDE 3.5, whilst Ubuntu 9.04 uses GNOME 2. I might be better off evaluating Kubuntu, ]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;"><strong>This post has been updated due to new information regarding Ubuntu 9.04.</strong></span></p>
<p>I <a href="http://twitter.com/kzhiwei/status/2099321543">first</a> <a href="http://twitter.com/kzhiwei/status/2099917615">tweeted</a> about Ubutu 9.04 a week ago. Now I know I&#8217;m not exactly comparing apples with apples, since MEPIS 8 is based on Debian 5.0 and uses KDE 3.5, whilst Ubuntu 9.04 uses GNOME 2. I might be better off evaluating Kubuntu, the 9.04 release uses KDE 4, which <a href="http://waynekhan.com/blog/tag/kde/">I&#8217;d used previously</a>, and disliked due to its (apparent) gradual reduction in speed.</p>
<p>But back to Ubuntu versus MEPIS. Since 10th June, I&#8217;ve been using it as a web developer machine on a Compaq nc8230. This machine is better-speced that the IBM R52 I use for MEPIS, so I&#8217;m giving Ubuntu the benefit of faster machine here. We&#8217;ll see if that pans out in Ubuntu&#8217;s favour later on.</p>
<h4><strong>Package Management</strong></h4>
<p>I develop in PHP, so I use Apache, MySQL and Oracle (remote server) on a daily basis. From my point of view as a developer, all of the .deb packages I use have the same name as in MEPIS. Synaptic, used in both MEPIS and Ubuntu, handles packages very well, so it is a tie here.</p>
<p>MEPIS 1, Ubuntu 1.</p>
<h4>Applications</h4>
<p>For applications however, I still felt that, overall KDE&#8217;s were more suitable for me, even though I was able to find GNOME-based replacements for the applications I used in MEPIS:</p>
<ul>
<li><strong>Kate to Gedit. </strong>Kate can syntax highlight my .ctp files, while Gedit has no such configuration option. Kate has sessions so I can quickly switch between projects, Gedit does not.</li>
<li><strong>Konsole to Terminal.</strong> Konsole remembers my tabs, Terminal does not.</li>
<li> <strong>Katapult to Do.</strong> I prefer the default Alt+Space shortcut for Katapult, Do does it like Win+Space, because Alt+Space is used by GNOME. I also prefer if a calculator is built into Do, so I press Win+Space+32*5 and I get the result (160) onscreen.</li>
<li><strong>Kdesvn,Kdiff3 Kompare to Meld. </strong>Meld is MUCH better than either of the 3 applications, as I can do 3-way file/directory comparison easily. It can even open a Subversion-ed directory and handle it correctly)</li>
<li><strong>No Dropbox client in MEPIS, versus official <a href="http://www.getdropbox.com/">Dropbox</a> client in Ubuntu.</strong> Dropbox works very well, as it is the official release from the Dropbox guys. I&#8217;m still waiting (hoping) for a KDE-based one, but maybe they are reluctant to write one in KDE 3.5, then later rewrite for KDE4?</li>
</ul>
<p>MEPIS 1, Ubuntu 0.5 (due to Meld, Dropbox).</p>
<h4>Speed/Stability</h4>
<p><span style="text-decoration: line-through;">I feel that Ubuntu 9.04 has some way to go, as I&#8217;d to POWER OFF the laptop as Ubuntu does the dreaded &#8220;window goes dark&#8221; thing, and I see/hear alot of hard drive activity, and then I have to (painfully) switch to Terminal, and then type killall &lt;process&gt;. Usually, the culprit is Firefox 3.0.11.</span></p>
<p>Previously I&#8217;d written about how unstable 9.04 was. After some reading on the forums, I figured it might be a graphics issue. Setting System -&gt; Preferences -&gt; Appearance -&gt; Visual Effects to &#8220;None&#8221;, seem to have resolved my stability problems. How strange, yet comforting. Ubuntu is now as stable as MEPIS (or probably most Linux distros, anyways) is.</p>
<p>MEPIS 8, on the IBM R52, meanwhile is fast and stable, albeit with less special effects. I must admit, I was wowed by the special effects, but not at the expense of speed, and particularly stability.</p>
<p><span style="text-decoration: line-through;">MEPIS 1, Ubuntu 0.</span> MEPIS 1, Ubuntu 1.</p>
<h4>Conclusion</h4>
<p>I&#8217;ve no issues with Synaptic, as it is used to manage packages in both MEPIS and Ubuntu.</p>
<p>I loved to use Dropbox and Meld in Ubuntu, so much that I was probably willing to accept the differences between kate/gedit, konsole/terminal, katapult/do. <span style="text-decoration: line-through;">What was frustrating to me was to develop halfway, and then have to wait for the system to return control of the UI to me, and if not reboot.</span></p>
<p><span style="text-decoration: line-through;">The overall score is MEPIS 3, Ubuntu 1.5. This scoreline is obviously subjective, but you&#8217;ve heard all the good things about Ubuntu, have a slow(er) laptop, please do consider <a href="http://www.mepis.org/">MEPIS</a>.</span> The overall score is MEPIS 3, Ubuntu 2.5. I still prefer KDE 3&#8217;s apps, but it wouldn&#8217;t be a huge leap to jump to Ubuntu&#8217;s GNOME Desktop, or for users that still prefer KDE, Kubuntu 8.04 (KDE 3.x) or Kubuntu 9.04 (KDE 4.x).</p>
<p>Both MEPIS and Ubuntu support audio/wireless networking flawlessly, unlike (cough, cough) Debian. <span style="text-decoration: line-through;">At this point, I really don&#8217;t see the benefits of using Ubuntu (mostly due to its speed/stability issues) over MEPIS, so yeah, I&#8217;m a fan.</span></p>
<h4><strong>References</strong><a href="http://en.wikipedia.org/wiki/Debian"></a></h4>
<p><a href="http://en.wikipedia.org/wiki/Debian">Debian</a>, <a href="http://en.wikipedia.org/wiki/MEPIS">MEPIS</a> and <a href="http://en.wikipedia.org/wiki/Ubuntu">Ubuntu</a> from en.wikipedia.org</p>
]]></content:encoded>
			<wfw:commentRss>http://waynekhan.com/blog/2009/06/comparing-mepis-8-and-ubuntu-9-04/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
