<?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"
	>

<channel>
	<title>It's all in a day's work</title>
	<atom:link href="http://blog.delgurth.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.delgurth.com</link>
	<description>If only a day had 48 hours...</description>
	<pubDate>Tue, 09 Sep 2008 13:03:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Broken Wordpress: debian unstable is called unstable for a reason</title>
		<link>http://blog.delgurth.com/2008/09/07/broken-wordpress-debian-unstable-is-called-unstable-for-a-reason/</link>
		<comments>http://blog.delgurth.com/2008/09/07/broken-wordpress-debian-unstable-is-called-unstable-for-a-reason/#comments</comments>
		<pubDate>Sun, 07 Sep 2008 02:27:45 +0000</pubDate>
		<dc:creator>delgurth</dc:creator>
		
		<category><![CDATA[Debian]]></category>

		<category><![CDATA[Packages]]></category>

		<category><![CDATA[bug]]></category>

		<category><![CDATA[debian unstable]]></category>

		<category><![CDATA[dpatch]]></category>

		<category><![CDATA[patch]]></category>

		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://blog.delgurth.com/?p=48</guid>
		<description><![CDATA[Update 2009-09-07: The maintainer of the wordpress package released &#8220;my&#8221; bugfix. It&#8217;s available now for those using unstable (sid). I guess it will be available in testing (lenny) soon, since the bug is listed in the release critical bugs list. To bad he credited me with the name Del Gurt, but well&#8230; The only thing [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update 2009-09-07</strong>: The maintainer of the wordpress package released &#8220;my&#8221; bugfix. <a href="http://packages.debian.org/sid/wordpress">It&#8217;s available now for those using unstable (sid)</a>. I guess it will be available in testing (lenny) soon, since the bug is listed in the <a href="http://bugs.debian.org/release-critical/debian/main.html">release critical bugs list</a>. To bad he credited me with the name Del Gurt, but well&#8230; The only thing I did was finding the missing methods in Wordpress 2.6. But it&#8217;s my first fix in Debian, yeh.</p>
<p>I just ran an <code>apt-get update</code> + <code>apt-get upgrade</code> and after that my Wordpress homepage was broken when I&#8217;m logged in, it gives a nice <code>"Fatal error: Call to undefined function admin_url() in /usr/share/wordpress/wp-includes/link-template.php on line 470"</code>. And so is it for all people using the debian unstable package for Wordpress, for example <a href="http://www.held.org.il/blog/?p=82">this guy</a>.</p>
<p>I quickly searched what functions where missing and created a patch and submitted it to the <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=497524">related debian bug</a>. I hope they will accept it soon, but well. My Wordpress works fine again now.</p>
<p>Creating a patch took me a while, since I never created a patch for a debian package before. Lucky me, there are <a href="http://women.debian.org/wiki/English/AdvancedBuildingTips">tutorials on how to create patches for debian packages</a>, so I just had to read up on that. I read about how to submit the patch in the <a href="http://newpeople.debian.org/~vorlon/rc-bugsquashing.html">tutorial on how to help squashing Release-Critial bugs</a>.</p>
<p>And I had to read up on <a href="http://packages.debian.org/dpatch">dpatch</a>, because the other patches on Wordpress where created using that. Lucky me, someone has created <a href="http://www.tuxmaniac.com/blog/2008/01/25/dpatch-just-superb-a-short-how-to/">a nice short tutorial on how to use dpatch</a> already. Dpatch seems like a good way to keep your patches separated from the original code, so when the original code is updated, you can determine easily if that conflicts with your patches or not.</p>
<p>And then I had to create a GPG key to sign my patch. Since <code>dpkg-buildpackage</code> complains about it otherwise.</p>
<p>So in the end, what I had to do to patch my Wordpress and submit the patch (besides generating the GPG key):</p>
<p>Install the required tools: <code>sudo apt-get install build-essential devscripts lintian linda diff patch patchutils dpatch</code>.</p>
<p>Get the Wordpress package source <code>apt-get source wordpress</code></p>
<p>Enter the root directory of the extracted source <code>cd wordpress-2.5.1</code></p>
<p>Let the package know I&#8217;m making the changes: <code>dch -i</code></p>
<p>Start the dpatch process: <code>dpatch-edit-patch 009CVE2008-3747.addendum</code></p>
<p>Make the changes</p>
<p>Exit dpatch process: <code>exit</code></p>
<p>The wordpress patches are all called .patch: <code>mv debian/patches/009CVE2008-3747.addendum.dpatch debian/patches/009CVE2008-3747.addendum.patch</code></p>
<p>Change the e-mail address in the patch: <code>EDIT debian/patches/009CVE2008-3747.addendum.patch</code></p>
<p>Add the patch to the list of patches: <code>echo "009CVE2008-3747.addendum.patch" >> debian/patches/00list</code></p>
<p>Test the patch: <code>fakeroot debian/rules binary &#038;&#038; sudo dpkg -i ../wordpress_2.5.1-6.1_all.deb</code></p>
<p>Build the source package: <code>dpkg-buildpackage -kMYKEY -rfakeroot</code></p>
<p>Create the patch: <code>interdiff -z ../wordpress_2.5.1-6.diff.gz ../wordpress_2.5.1-6.1.diff.gz > ../bug_497524.patch</code></p>
<p>Email the bugs list with the patch.</p>
<p>Email bug control to inform them that a patch has been made for the bug.</p>
<p>That was it. Not that hard, if you know the commands + procedure. Now wait and see what the package maintainer is going to do with the patch I created.</p>
<p>Update: seems I forgot to check the edit link itself after the fatal error was gone&#8230; It didn&#8217;t work anymore. Fixed that as well now.</p>
<p>Update2: for those who find my post and do not want to wait on the maintainer to release the patch, <a href="http://blog.delgurth.com/debian/wordpress_2.5.1-6.1_all.deb">I&#8217;ve &#8220;released&#8221; it</a>. The MD5 of wordpress_2.5.1-6.1_all.deb is: <strong>dc46d35743122d933def7db431c8f49e</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.delgurth.com/2008/09/07/broken-wordpress-debian-unstable-is-called-unstable-for-a-reason/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Eclipse Subversive SVN+SSH and Putty Agent (pageant)</title>
		<link>http://blog.delgurth.com/2008/08/17/eclipse-subversive-svnssh-and-putty-agent-pageant/</link>
		<comments>http://blog.delgurth.com/2008/08/17/eclipse-subversive-svnssh-and-putty-agent-pageant/#comments</comments>
		<pubDate>Sun, 17 Aug 2008 15:14:30 +0000</pubDate>
		<dc:creator>delgurth</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[SVN]]></category>

		<category><![CDATA[Subversive]]></category>

		<category><![CDATA[SVN+SSH]]></category>

		<guid isPermaLink="false">http://blog.delgurth.com/?p=40</guid>
		<description><![CDATA[I&#8217;m using Subversive within Eclipse to provide SVN support. But since I&#8217;m now using SVN+SSH as connection mechanism to SVN, I wanted to use my SSH Key to do the authentication for me. It took me some time to find out (find with google  how I could get this to work. I ended up [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m using Subversive within Eclipse to provide SVN support. But since I&#8217;m now using SVN+SSH as connection mechanism to SVN, I wanted to use my SSH Key to do the authentication for me. It took me some time to find out (find with google <img src='http://blog.delgurth.com/blogging/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> how I could get this to work. <a href="http://www.woodwardweb.com/java/000155.html">I ended up on another blog which contained a working explanation on how to get it to work</a>.</p>
<blockquote><p>
You need to create an environment variable called &#8220;SVN_SSH&#8221; that points to an executable file that accepts the same command line arguments as ssh on unix. I did this by doing the following:-</p>
<ol>
<li>Set up ssh keys. Not going to cover that here as you can easily Google for that. You need to end up with your public key on the SVN server and your private key loaded into Paegent locally.</li>
<li>Download and installed the excellent TortoiseSVN client for Windows.</li>
<li>Set the following environment variable (by right-clicking on My Computer, Properties, Advanced, Environment Variables, New):-<br />
<code><br />
Variable name:<br />
SVN_SSH<br />
Variable value:<br />
C:\\Program Files\\TortoiseSVN\\bin\\TortoisePlink.exe<br />
</code><br />
(The &#8220;\\&#8221; is very important, otherwise it won&#8217;t work. Equally, you cannot use the plink.exe that comes with putty as that fires up a command shell window which is really annoying. The TortoisePlink.exe is a windows implementation of plink that doesn&#8217;t bring up any UI)
</li>
<li>Configure the Subclipse plugin to use JavaHL (JNI)</li>
<li>Restart Eclipse</li>
<li>Do a little victory jig (optional)</li>
</ol>
</blockquote>
<p>Yes the <code>\\</code> is really needed, don&#8217;t (yet) understand why, but it works.</p>
<p>If you dislike Tortoise, then you can set the SVN_SSH variable to <code>c:\\putty\\plink.exe -ssh -2 -A -l username</code></p>
<p>But as Martin said, plink has one disadvantage. It creates a msdos popup window each time it&#8217;s used&#8230;</p>
<p>JavaHL is also needed, SVNKit doesn&#8217;t use the SVN_SSH variable.</p>
<p>Talking about Tortoise&#8230; A while ago I encountered some annoying lock problems (maven clean install didn&#8217;t work because maven was not allowed to delete the target directory). This was caused by the Tortoise cache. Now I disabled it in total, which helped against my locking issue, and the performance of my explorer increased as well. So it&#8217;s a win/win situation. And since I like to develop using Ubuntu, I&#8217;m not used to see the svn status in my explorer window right away anyways (although I&#8217;ve to say, it can be useful, if it didn&#8217;t cause problems I would have kept it).</p>
<p>Perhaps this locking problem is related to having my workspace on an ext2 fs partition on my usb drive&#8230; Not sure who to blame, yet. On my new workstation I&#8217;ve not had such locking problems yet, with <a href="http://www.paraesthesia.com/archive/2007/09/26/optimize-tortoise-svn-cache-tsvncache.exe-disk-io.aspx">this tip</a> the cache is performing good enough. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.delgurth.com/2008/08/17/eclipse-subversive-svnssh-and-putty-agent-pageant/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Changing spell checker language in Camino on OS X 10.4</title>
		<link>http://blog.delgurth.com/2008/08/17/changing-spell-checker-language-in-camino-on-os-x-104/</link>
		<comments>http://blog.delgurth.com/2008/08/17/changing-spell-checker-language-in-camino-on-os-x-104/#comments</comments>
		<pubDate>Sun, 17 Aug 2008 14:43:12 +0000</pubDate>
		<dc:creator>delgurth</dc:creator>
		
		<category><![CDATA[Misc]]></category>

		<category><![CDATA[camino]]></category>

		<category><![CDATA[OS X 10.4]]></category>

		<category><![CDATA[spell-checker]]></category>

		<guid isPermaLink="false">http://blog.delgurth.com/?p=46</guid>
		<description><![CDATA[From time to time I use my mac-mini to blog. But the spell checker of OS X is defaulted to Dutch, which is quite annoying if you try to blog in English. And I found that it&#8217;s not easy to change the language. In the end I found a FAQ entry (why didn&#8217;t I check [...]]]></description>
			<content:encoded><![CDATA[<p>From time to time I use my mac-mini to blog. But the spell checker of OS X is defaulted to Dutch, which is quite annoying if you try to blog in English. And I found that it&#8217;s not easy to change the language. In the end I found a FAQ entry (why didn&#8217;t I check the site before&#8230;) about <a href="http://caminobrowser.org/documentation/faq/#troub_switchspell">how to change the spell checker language in Camino</a>. Guess it&#8217;s time to switch to 10.5 <img src='http://blog.delgurth.com/blogging/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.delgurth.com/2008/08/17/changing-spell-checker-language-in-camino-on-os-x-104/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Followup on the Belkin F5D8053 and Ubuntu</title>
		<link>http://blog.delgurth.com/2008/08/17/followup-on-the-belkin-f5d8053-and-ubuntu/</link>
		<comments>http://blog.delgurth.com/2008/08/17/followup-on-the-belkin-f5d8053-and-ubuntu/#comments</comments>
		<pubDate>Sun, 17 Aug 2008 14:39:10 +0000</pubDate>
		<dc:creator>delgurth</dc:creator>
		
		<category><![CDATA[Hardy]]></category>

		<category><![CDATA[Belkin]]></category>

		<category><![CDATA[F5D8053]]></category>

		<category><![CDATA[rt2870]]></category>

		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.delgurth.com/?p=45</guid>
		<description><![CDATA[Seems my previous blog post about the Belkin is found quite often when people search for how to get it to work on Ubuntu in general, also with ndiswrapper. Please note, my post is not about getting it to work with ndiswrapper (that worked fine in my case, but I&#8217;m on 32-bit Ubuntu, and didn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>Seems my <a href="http://blog.delgurth.com/2008/05/26/trying-to-get-the-belkin-f5d8053-v3-to-work-on-ubuntu-hardy-without-ndiswrapper/">previous blog post about the Belkin</a> is found quite often when people search for how to get it to work on Ubuntu in general, also with ndiswrapper. Please note, my post is not about getting it to work with ndiswrapper (that worked fine in my case, but I&#8217;m on 32-bit Ubuntu, and didn&#8217;t try it on 64-bit). There are <a href="http://ubuntuforums.org/showthread.php?t=638864">quite</a> <a href="http://ph.ubuntuforums.com/showthread.php?p=5413090">some</a> <a href="http://ubuntuforums.org/archive/index.php/t-638864.html">posts</a> about getting it to work with ndiswrapper (also <a href="http://branhow.com/2008/04/08/new-ubuntu-upgrade/">posts about it not working</a>, will drop him a comment). <a href="http://blog.vaxius.net/?p=45">This one also explains how to unpack the windows driver if you don&#8217;t have a windows installation</a>. </p>
<p>Anyway, so far about using ndiswrapper. Recently ralink released a new version of it&#8217;s native linux driver, 1.3.1.0 which can be found <a href="http://www.ralinktech.com/ralink/Home/Support/Linux.html">on their linux support page</a>, and with this one I got the Belkin F5D8053 working. It doesn&#8217;t see the 5Ghz network I&#8217;ve over here, but well I don&#8217;t want to do normal Wireless over that network anyways, since that will decrease the speed of the Wireless to Wireless bridge I setup. I&#8217;m still blaming incompatibility between the Belkin USB stick and the Apple Airport routers for the Belkin not being able to find the 5Ghz network.</p>
<p>What I had to do to get it working.</p>
<p>1. make sure you can build kernel modules: <code>sudo apt-get install build-essential linux-headers-generic</code><br />
2. check if your Belkin USB id is listed in the driver: <code>lsusb | grep Belkin |  awk '{print $6}';</code>, which returns 050d:815c in my case. Then use the id found in <code>grep -i '0x050d,0x815c' include/rt2870.h</code> if that returns a result, then skip step 3 since your device is already supported by the driver (please note the <code>'0x'</code> added before the 2 parts and the <code>','</code> in stead of the <code>':'</code>).<br />
3. If it&#8217;s not there add it: edit <code>include/rt2870.h</code> Search for Belkin; Copy/Paste that line and change the usb id of your device to that you found in step 2.<br />
4. Edit <code>os/linux/config.mk</code> and change the <code>HAS_WPA_SUPPLICANT=n</code> <code>HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n</code> to <code>=y</code>.<br />
5. Edit <code>Makefile</code> and remove any line containing <code>/tftpboot</code> (still don&#8217;t know why they are in there, and running make as normal user fails if they are in there)<br />
6. <code>make &#038;&#038; sudo make install</code><br />
7. Edit (as root) <code>/etc/modules</code> and add rt2870sta to it (remove ndiswrapper if you used that before to get it working).<br />
8. Either reboot or do <code>modprobe rt2870sta</code> to get it working (if you used ndiswrapper before you first need to run <code>modprobe -r ndiswrapper</code>). You will also need a <code>/etc/init.d/networking restart</code> if you won&#8217;t reboot.</p>
<p>That was all I needed to do.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.delgurth.com/2008/08/17/followup-on-the-belkin-f5d8053-and-ubuntu/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Debugging mails being send from applications</title>
		<link>http://blog.delgurth.com/2008/08/07/debugging-mails-being-send-from-applications/</link>
		<comments>http://blog.delgurth.com/2008/08/07/debugging-mails-being-send-from-applications/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 13:34:15 +0000</pubDate>
		<dc:creator>delgurth</dc:creator>
		
		<category><![CDATA[Testing]]></category>

		<category><![CDATA[SMTP]]></category>

		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.delgurth.com/?p=44</guid>
		<description><![CDATA[Ever needed to test the e-mail functionality of your application, on windows, without having access to a SMTP server? Try SMTP server for developers, a brilliant piece of software, so far.
You need .Net for it. It&#8217;s really easy to setup and use. Another advantage of this SMTP server is that when you test your application, [...]]]></description>
			<content:encoded><![CDATA[<p>Ever needed to test the e-mail functionality of your application, on windows, without having access to a SMTP server? Try <a href="http://www.antix.co.uk/Projects/SMTPServerForDevelopers.aspx">SMTP server for developers</a>, a brilliant piece of software, so far.</p>
<p>You need .Net for it. It&#8217;s really easy to setup and use. Another advantage of this SMTP server is that when you test your application, you don&#8217;t have to worry about test e-mails being send to customers. This because the SMTP server doesn&#8217;t really send the messages, but just places all of them on disk.</p>
<p><strong>Update:</strong> one disadvantage. You can&#8217;t get it to run on any other port then 25, which is inconvenient if McAfee is blocking port 25. I contacted the author a while ago, but no response so far. Guess I&#8217;ll have to add this functionality myself, but then I need to get up to speed on .Net first. Ah well, I&#8217;ll wait a little longer.</p>
<p>Talking about McAfee&#8230; It&#8217;s kinda weird, it blocks e-mails on port 25 if I use for example Java to send the e-mail. But if I use telnet to connect to port 25, all is fine?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.delgurth.com/2008/08/07/debugging-mails-being-send-from-applications/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Keyboard shortcuts</title>
		<link>http://blog.delgurth.com/2008/08/03/keyboard-shortcuts/</link>
		<comments>http://blog.delgurth.com/2008/08/03/keyboard-shortcuts/#comments</comments>
		<pubDate>Sun, 03 Aug 2008 15:51:59 +0000</pubDate>
		<dc:creator>delgurth</dc:creator>
		
		<category><![CDATA[Eclipse]]></category>

		<category><![CDATA[Misc]]></category>

		<category><![CDATA[keyboard shortcut]]></category>

		<category><![CDATA[Mac OS X]]></category>

		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.delgurth.com/?p=43</guid>
		<description><![CDATA[Perhaps you have noted that I added a new site to the list of sites I like: Windows Keyboard Shortcut of the Day. Using keyboard shortcuts just improves your work speed a lot.
A few windows shortcuts that I didn&#8217;t know before

Windows + BREAK
Go to system properties
CTRL + SHIFT + ESC
Taskmanager
Windows + R
Run command

Eclipse
I also found [...]]]></description>
			<content:encoded><![CDATA[<p>Perhaps you have noted that I added a new site to the list of sites I like: <a href="http://www.zeigen.com/shortcuts/">Windows Keyboard Shortcut of the Day</a>. Using keyboard shortcuts just improves your work speed a lot.</p>
<h3>A few windows shortcuts that I didn&#8217;t know before</h3>
<dl>
<dt>Windows + BREAK</dt>
<dd>Go to system properties</dd>
<dt>CTRL + SHIFT + ESC</dt>
<dd>Taskmanager</dd>
<dt>Windows + R</dt>
<dd>Run command</dd>
</dl>
<h3>Eclipse</h3>
<p>I also found <a href="http://rayfd.wordpress.com/2007/05/20/10-eclipse-navigation-shortcuts-every-java-programmer-should-know/">a nice blog entry about eclipse shortcuts</a>. But he lacks to explain one of the uses for <code>CTRL + T</code>: if you have a certain function you can find which class implements that function with <code>CTRL + T</code> as well. Very useful when you are working a lot with interfaces.</p>
<p><a href="http://eclipse-tools.sourceforge.net/shortcuts.html">This is also a good site with Eclipse shortcuts</a>. Not sure if it&#8217;s a bad thing that it&#8217;s not updated to Eclipse 3.4, yet. One helpful command is missing on that list: <code>CTRL + SHIFT + L</code>. This lists all bound keyboard shortcuts and pressing it again gives you the opportunity to change and export them to <code>.csv</code> (at least the export function is there on Eclipse 3.4).</p>
<h3>Mac OS X</h3>
<p>And a while ago I found a nice site with lots of <a href="http://www.danrodney.com/mac/index.html">Mac OS X keyboard shortcuts</a>. The shortcut to make your mac sleep quickly was provided by me <img src='http://blog.delgurth.com/blogging/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> There is also a shortcut to restart your mac quickly without confirm,  <code>Cmd + Ctrl + Eject</code>. Quite annoying if you use that one when you want to put your mac to sleep.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.delgurth.com/2008/08/03/keyboard-shortcuts/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Quick status update</title>
		<link>http://blog.delgurth.com/2008/08/03/quick-status-update/</link>
		<comments>http://blog.delgurth.com/2008/08/03/quick-status-update/#comments</comments>
		<pubDate>Sun, 03 Aug 2008 13:34:53 +0000</pubDate>
		<dc:creator>delgurth</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://blog.delgurth.com/?p=42</guid>
		<description><![CDATA[So, I&#8217;ve been inactive for a while now. With the new job and moving to a new place my time to blog has been very limited. I&#8217;ve been preparing some more drafts (the number of drafts is now bigger then the number of posts&#8230; Guess I should do something against that). 
So, in short an [...]]]></description>
			<content:encoded><![CDATA[<p>So, I&#8217;ve been inactive for a while now. With the new job and moving to a new place my time to blog has been very limited. I&#8217;ve been preparing some more drafts (the number of drafts is now bigger then the number of posts&#8230; Guess I should do something against that). </p>
<p>So, in short an overview of what has been keeping me busy (besides moving and getting used to the new job).</p>
<h3>Wireless bridges</h3>
<p>Trying to get a wireless to wireless bridge. Since I didn&#8217;t want to drill some more holes in my new place, I wanted a wireless to wireless bridge from the closet down stairs to my room upstairs. At Dynabyte they sold me a Belkin wireless N1 router which should, according to them, be able to create a wireless bridge with my Belkin wireless N router. &#8220;Of course&#8221; that didn&#8217;t work, so In the end I settled for a combination of an airport extreme and an airport express, which works perfectly. Even though 1 month had passed, the Dynabyte accepted the return of the N1 router, which is nice of them. And, fortunately for me, the N router has it&#8217;s use as well. I&#8217;m using it now as an access point, since I&#8217;m not able to get my Belkin USB stick to connect with more then 65Mbit to my Airport&#8230; And well, it&#8217;s better to have the wireless bridge at 5Ghrz and since my mac mini doesn&#8217;t support 802.11n I need a non 5Ghrz wireless network as well (oh, that Bekin USB stick doesn&#8217;t find the airport at 5Ghrz either, guess that&#8217;s why it&#8217;s still called Pre-N&#8230;)</p>
<h3>IPv6</h3>
<p>Having to switch to two airports had a nice side effect. I&#8217;m now able to use IPv6, which is a good thing IMHO. If only to be able to see the nice animated google logo on <a href="http://ipv6.google.com">http://ipv6.google.com</a> <img src='http://blog.delgurth.com/blogging/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<h3>APT-Cacher</h3>
<p>I was always using apt-proxy to be able to update multiple debian based systems faster, since you only need to download the packages once that way. But a while ago apt-proxy stopped working so I went looking for an alternative. That alternative has become apt-cacher. More on this will follow later.</p>
<h3>Quartz Scheduler</h3>
<p>For the new job I&#8217;ve been looking at <a href="http://www.opensymphony.com/quartz/">Quartz Scheduler</a>, a cluster aware job scheduler. It looks nice, but the cluster features seem to be very limited. I&#8217;ll post something about this once the solution is completed.</p>
<h3>Changing the &lt;title&gt; of my blog</h3>
<p>And last, the page tittle on the blog has been changed a bit. I don&#8217;t want it to start with my blog name, since that makes the google results harder to read. So now it starts with the title of the blog entry, and then the name of the blog. It wasn&#8217;t that hard to change it, I just had to alter the header.php of the theme. I used <a href="http://gerardmcgarry.com/node/109">this blog entry</a> as a basis and then did my own &#8220;magic&#8221; with the header.php file and turned the default &lt;title&gt; into</p>

<div class="wp_syntax"><div class="code"><pre class="php"><span style="color: #339933;">&lt;</span>title<span style="color: #339933;">&gt;&lt;</span>?php 
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_home<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #990000;">echo</span> <span style="color: #0000ff;">&quot; &amp;raquo; &quot;</span><span style="color: #339933;">;</span>
        bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'description'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span> is_single<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span> is_page<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        wp_title<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #990000;">echo</span> <span style="color: #0000ff;">&quot; &amp;raquo; Blog Archive &amp;raquo; &quot;</span><span style="color: #339933;">;</span>
        bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
        wp_title<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #990000;">echo</span> <span style="color: #0000ff;">&quot; &amp;raquo; &quot;</span><span style="color: #339933;">;</span>
        bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
?<span style="color: #339933;">&gt;&lt;/</span>title<span style="color: #339933;">&gt;</span></pre></div></div>

<p>The <code>''</code> in the <code>wp_title</code> call is needed to override the default &raquo; that is put before the title otherwise.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.delgurth.com/2008/08/03/quick-status-update/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Trying to get the Belkin F5D8053 v3 to work on Ubuntu Hardy without ndiswrapper</title>
		<link>http://blog.delgurth.com/2008/05/26/trying-to-get-the-belkin-f5d8053-v3-to-work-on-ubuntu-hardy-without-ndiswrapper/</link>
		<comments>http://blog.delgurth.com/2008/05/26/trying-to-get-the-belkin-f5d8053-v3-to-work-on-ubuntu-hardy-without-ndiswrapper/#comments</comments>
		<pubDate>Sun, 25 May 2008 23:04:58 +0000</pubDate>
		<dc:creator>delgurth</dc:creator>
		
		<category><![CDATA[Debian/Ubuntu]]></category>

		<category><![CDATA[Hardy]]></category>

		<category><![CDATA[Ubuntu]]></category>

		<category><![CDATA[Belkin]]></category>

		<category><![CDATA[F5D8053]]></category>

		<category><![CDATA[rt2870]]></category>

		<category><![CDATA[wlan]]></category>

		<guid isPermaLink="false">http://blog.delgurth.com/?p=35</guid>
		<description><![CDATA[Update: I got it working now, see my new post about it.
If I look at the Windows driver for my new Belkin F5D8053 it is based on the RT2870 chipset. There is a native driver available for this chipset. Unfortunately so far I&#8217;m not able to get it to work. This version is already linux [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update:</strong> I got it working now, <a href="http://blog.delgurth.com/2008/08/17/followup-on-the-belkin-f5d8053-and-ubuntu/">see my new post about it</a>.</p>
<p>If I look at <a href="http://driveragent.com/archive/15271/4-0-7?PHPSESSID=iv0jsnlrbaaffg53ss8ilasea3">the Windows driver for my new Belkin F5D8053</a> it is based on the RT2870 chipset. There is <a href="http://www.ralinktech.com.tw/data/drivers/2008_0506_RT2870_Linux_STA_v1.3.0.0.tar.bz2">a native driver available for this chipset</a>. Unfortunately so far I&#8217;m not able to get it to work. This version is already <a href="http://www.ralinktech.com.tw/data/drivers/ReleaseNote-RT2870-v1300.txt">linux 2.6.24 ready</a> so I don&#8217;t need to apply <a href="http://ubuntuforums.org/showpost.php?p=4808839&#038;postcount=6">these patches</a>. But even though I&#8217;m able to compile it, I&#8217;m not able to use it, yet. Side note: the warning in the Ubuntu forums about backing up any existing configurations in <code>/etc/Wireless/RT2870STA</code> is useful, since you need to put your configuration in there and it&#8217;s removed by the make install.</p>
<p>One strange thing in the make process is that it wants to copy the result to <code>/tftpboot</code>. I&#8217;m not sure why it wants to do that, and I&#8217;m almost certain it shouldn&#8217;t be a part of the make process&#8230;</p>
<p>The first problem I ran into was the fact that the USB Device id for my Belkin, <code>050D:815C</code>, is missing in the driver (that could be a big hint about it not being able to work for it &#8230;) so I added that to the <code>include/rt2870.h</code> (I copied the line for the other Belkin device and changed the device id into mine). </p>
<p>With that added, my Belkin is detected by the driver as ra0. But even when I compile it with:<br />
<code><br />
HAS_WPA_SUPPLICANT=y<br />
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y<br />
</code></p>
<p>I&#8217;m not getting my device visible in the gnome network manager, so I tried the command line configuration options.</p>
<p>First I tried only configuring the <code>/etc/Wireless/RT2870STA/RT2870STA.dat</code>. But if I had only that file configured, the activity light was turned off on an <code>ifup ra0</code>. So I guess that&#8217;s not right.</p>
<p>Then I tried to configure it in the <code>/etc/network/interfaces</code> as described on <a href="http://ubuntuforums.org/showthread.php?t=318539">the Ubuntu forums</a>. The light staid on when I did <code>ifup ra0</code> but no DHCP lease. So finally I tried the &#8220;iwpriv&#8221; way described <a href="http://rt2x00.serialmonkey.com/phpBB/viewtopic.php?p=21546&#038;sid=c5e02ed97dde07681fb564639e9f50c5">here</a>. But still no DHCP lease.</p>
<p>So I guess I&#8217;ll have to contact ralink, to see if they are able to help me out here.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.delgurth.com/2008/05/26/trying-to-get-the-belkin-f5d8053-v3-to-work-on-ubuntu-hardy-without-ndiswrapper/feed/</wfw:commentRss>
		</item>
		<item>
		<title>VMware and Virtual PC images continued</title>
		<link>http://blog.delgurth.com/2008/05/08/vmware-and-virtual-pc-images-continued/</link>
		<comments>http://blog.delgurth.com/2008/05/08/vmware-and-virtual-pc-images-continued/#comments</comments>
		<pubDate>Thu, 08 May 2008 12:13:02 +0000</pubDate>
		<dc:creator>delgurth</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[virtual pc]]></category>

		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://blog.delgurth.com/?p=33</guid>
		<description><![CDATA[A few days ago I wrote about VMware and the Virtual PC images. I said that it&#8217;s not a problem that you don&#8217;t have the Windows CD, and that you just had to press cancel when requested.
This was only true for the IE6 image. The IE7 image needs the CD. Without it, it won&#8217;t work [...]]]></description>
			<content:encoded><![CDATA[<p>A few days ago I wrote about <a href="http://blog.delgurth.com/2008/05/05/using-vmware-player-for-testing-internet-explorer-on-ubuntu/">VMware and the Virtual PC images</a>. I said that it&#8217;s not a problem that you don&#8217;t have the Windows CD, and that you just had to press cancel when requested.</p>
<p>This was only true for the IE6 image. The IE7 image needs the CD. Without it, it won&#8217;t work properly. Now after I used it for IE7, I thought, well lets do that with the IE6 image as well so all is installed properly. How stupid can I be&#8230;. With the IE6 image when the mouse driver is installed, it&#8217;s no longer working properly! </p>
<p>But, I did another re-install from the converted images while I was writing this post, and guess what: if you wait long enough after the first boot, windows will request a restart even though there is an software install box waiting for you. If you just ignore the software install box, and restart the system, the problem with the mouse is gone.</p>
<p>Oh, another thing. The fix that is needed to be able to compile the kernel module can be applied before you install VMware. I used the following steps for my second install of VMware (using my version didn&#8217;t work since I&#8217;m on X86_64 and my colleague is on i386).</p>
<p><code><br />
tar xzvf VMware-player-2.0.3-80004.i386.tar.gz<br />
cd vmware-player-distrib/lib/modules/source<br />
chmod u+w vmmon.tar<br />
tar xvf vmmon.tar<br />
vi vmmon-only/include/vcpuset.h<br />
change line 74 from: #include "asm/bitops.h" to: #include "linux/bitops.h"<br />
tar uvf vmmon.tar vmmon-only/include/vcpuset.h<br />
rm -r vmmon-only<br />
cd ../../../<br />
sudo ./vmware-install.pl<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.delgurth.com/2008/05/08/vmware-and-virtual-pc-images-continued/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PHP Acceleration with eAccelerator</title>
		<link>http://blog.delgurth.com/2008/05/08/php-acceleration-with-eaccelerator/</link>
		<comments>http://blog.delgurth.com/2008/05/08/php-acceleration-with-eaccelerator/#comments</comments>
		<pubDate>Wed, 07 May 2008 22:29:06 +0000</pubDate>
		<dc:creator>delgurth</dc:creator>
		
		<category><![CDATA[Debian]]></category>

		<category><![CDATA[Optimizing performance]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Testing]]></category>

		<category><![CDATA[eaccelerator]]></category>

		<category><![CDATA[optimizing]]></category>

		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://blog.delgurth.com/?p=32</guid>
		<description><![CDATA[With high traffic sites, performance issue&#8217;s rise. Now one of the solutions is to use an opcode caching mechanism for PHP. There are two mainstream open source solutions for that, APC and eAccelerator. And there is Zend platform and Zend core.
Installing eAccelerator
I found a very straight forward howto about installing eAccelerator (and others) on Debian.
But, [...]]]></description>
			<content:encoded><![CDATA[<p>With high traffic sites, performance issue&#8217;s rise. Now one of the solutions is to use an <a href="http://en.wikipedia.org/wiki/Opcode">opcode</a> caching mechanism for PHP. There are two mainstream open source solutions for that, <a href="http://pecl.php.net/package/APC">APC</a> and <a href="http://eaccelerator.net/">eAccelerator</a>. And there is <a href="http://www.zend.com/en/products/platform/">Zend platform</a> and <a href="http://www.zend.com/en/products/core/">Zend core</a>.</p>
<p><strong>Installing eAccelerator</strong><br />
I found a very <a href="http://www.debianadmin.com/php-cache-accelerators-with-installation-tutorials.html">straight forward howto about installing eAccelerator (and others) on Debian</a>.</p>
<p>But, as always, there are some problems with that tutorial. First the <code>--</code> is replaced by a special character on that tutorial (and in my blog if I don&#8217;t use the &lt;code&gt; tag) in the configure command, so that doesn&#8217;t work if you copy paste it. The working configure command is:</p>
<p><code><br />
./configure --enable-eaccelerator=shared --with-php-config=/usr/bin/php-config<br />
</code></p>
<p>And you don&#8217;t need to do all the work as root, only the apt-get, the make install and the php.ini editing should be done as root (best practice, only use root privileges when needed).</p>
<p>Also the double quotes are changed into a special character in that tutorial, so if you get an error in your logs about unable to load \xe2\x80\x9deaccelerator.so\xe2\x80\x9d you copied them just like I did <img src='http://blog.delgurth.com/blogging/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>This is what I put in the php.ini, without the special double quotes, and with one change</p>
<p><code><br />
extension="eaccelerator.so"<br />
eaccelerator.shm_size="16"<br />
eaccelerator.cache_dir="/var/cache/eaccelerator"<br />
eaccelerator.enable="1"<br />
eaccelerator.optimizer="1"<br />
eaccelerator.check_mtime="1"<br />
eaccelerator.debug="0"<br />
eaccelerator.filter=""<br />
eaccelerator.shm_max="0"<br />
eaccelerator.shm_ttl="0"<br />
eaccelerator.shm_prune_period="0"<br />
eaccelerator.shm_only="0"<br />
eaccelerator.compress="1"<br />
eaccelerator.compress_level="9"<br />
</code></p>
<p>The tutorial writer creates the cache directory in /tmp. But he fails to make <a href="http://eaccelerator.net/wiki/Settings#eaccelerator.cache_dir">the remark that /tmp is cleared on server restart</a>. So that&#8217;s not really a good option. So I&#8217;ve done the following in stead</p>
<p><code><br />
sudo mkdir /var/cache/eaccelerator<br />
sudo chown www-data /var/cache/eaccelerator<br />
sudo chmod 0755 /var/cache/eaccelerator<br />
</code></p>
<p>Yes, the 0644 from the eAccelerator wiki is what you want for the files being created in there, but not for the directory itself.</p>
<p>The big disadvantage of this way of installing it, is that you probably need to recompile it (after a make clean) and reinstall it on every update of PHP. But <a href="#readingup">reading up on APC vs eAccelerator</a> made me choose for the latter.</p>
<p><strong>But does it really help?</strong><br />
Now, the results. What better to test then my own PHP blog (and yes it&#8217;s not the fastest one, it&#8217;s running on a VPS).</p>
<p><strong>Before</strong> installing eAccelerator:</p>
<pre>
Server Software:        Apache/2.2.8
Server Hostname:        blog.delgurth.com
Server Port:            80

Document Path:          /
Document Length:        44436 bytes

Concurrency Level:      10
Time taken for tests:   397.121299 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      44796000 bytes
HTML transferred:       44436000 bytes
Requests per second:    2.52 [#/sec] (mean)
Time per request:       3971.213 [ms] (mean)
Time per request:       397.121 [ms] (mean, across all concurrent requests)
Transfer rate:          110.16 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.3      0       6
Processing:   712 3961 1674.7   3696   10696
Waiting:      368 2177 1013.3   2033    6943
Total:        712 3961 1674.7   3696   10696

Percentage of the requests served within a certain time (ms)
  50%   3696
  66%   4454
  75%   4977
  80%   5270
  90%   6225
  95%   7039
  98%   8188
  99%   8632
 100%  10696 (longest request)
</pre>
<p><strong>After</strong> installing eAccelerator</p>
<pre>
Server Software:        Apache/2.2.8
Server Hostname:        blog.delgurth.com
Server Port:            80

Document Path:          /
Document Length:        44436 bytes

Concurrency Level:      10
Time taken for tests:   242.584585 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      44796000 bytes
HTML transferred:       44436000 bytes
Requests per second:    4.12 [#/sec] (mean)
Time per request:       2425.846 [ms] (mean)
Time per request:       242.585 [ms] (mean, across all concurrent requests)
Transfer rate:          180.33 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.2      0       4
Processing:   430 2419 983.2   2330    6409
Waiting:      100  648 448.6    578    3025
Total:        430 2419 983.2   2330    6409

Percentage of the requests served within a certain time (ms)
  50%   2330
  66%   2798
  75%   3051
  80%   3246
  90%   3712
  95%   4182
  98%   4614
  99%   4901
 100%   6409 (longest request)
</pre>
<p>So it helps also quite a bit on my wordpress install, it&#8217;s about a 33% performance increase!</p>
<p><strong id="readingup">Some material I read</strong></p>
<ul>
<li><a href="http://blogs.interdose.com/dominik/2008/04/11/benchmarking-php-eaccelerator-und-andere-opcode-caches/">Some benchmarks of opcode caches (in german)</a></li>
<li><a href="http://www.gena01.com/forum/gena01_blog/performance_tips_apc_vs_eaccelerator-t201.0.html;msg1342#msg1342">Some performance tips with some more reading material</a></li>
<li><a href="http://2bits.com/articles/benchmarking-apc-vs-eaccelerator-using-drupal.html">A benchmark on APC vs eAccelerator on Drupal</a></li>
<li><a href="http://2bits.com/articles/benchmarking-drupal-with-php-op-code-caches-apc-eaccelerator-and-xcache-compared.html">A benchmark on APC vs eAccelerator vs XCache on Drupal</a></li>
<li><a href="http://www.ipersec.com/index.php/2006/05/30/benchmarking-php-accelerators/">Another benchmark and an explanation about the differences between APC and eAccelerator</a></li>
</ul>
<p>P.s. yet another wordpress rant, if you have empty lines between &lt;code&gt; tags, wordpress inserts &lt;p&gt; tags there for you. Not very nice to my liking, since it breaks the formatting of the &lt;code&gt; tag, which I used to format the apache bench results&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.delgurth.com/2008/05/08/php-acceleration-with-eaccelerator/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
