<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Harsh but fair</title>
	<atom:link href="http://raetsel.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://raetsel.wordpress.com</link>
	<description>Open source chicanery and the battle with my inner geek</description>
	<pubDate>Thu, 15 May 2008 09:02:34 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language>en</language>
			<item>
		<title>Using Exclude Files in rsync - watch those spaces!</title>
		<link>http://raetsel.wordpress.com/2008/05/15/using-exclude-files-in-rsync-watch-those-spaces/</link>
		<comments>http://raetsel.wordpress.com/2008/05/15/using-exclude-files-in-rsync-watch-those-spaces/#comments</comments>
		<pubDate>Thu, 15 May 2008 09:02:34 +0000</pubDate>
		<dc:creator>raetsel</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://raetsel.wordpress.com/?p=64</guid>
		<description><![CDATA[Summary
When using filter or exclude files ensure each entry has no spaces at the end of it or it will not match correctly e.g.
- Music/
- downloads/
and not
- Music/[space]
- downloads/[space]
Use two -v options on the command line to get output about what was skipped or included and why.
Use the -n option to simulate what rsync will [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Summary</strong></p>
<p>When using filter or exclude files ensure each entry has no spaces at the end of it or it will not match correctly e.g.</p>
<p><code>- Music/<br />
- downloads/</code></p>
<p>and not</p>
<p><code>- Music/[space]<br />
- downloads/[space]</code></p>
<p>Use two -v options on the command line to get output about what was skipped or included and why.</p>
<p>Use the -n option to simulate what rsync will do without actually copying any files.</p>
<p><strong>Detail</strong></p>
<p>I&#8217;ve recently started using <a href="http://samba.anu.edu.au/rsync/documentation.html">rsync</a> to copy files to an online backup server (<a href="http://rsync.net">rsync.net</a> - the name is co-incidental).</p>
<p>Initially I started by using exclude options on the command line for the big directories that I didn&#8217;t want uploaded, things like my Music files etc. The command line ended up something like:-</p>
<p><code>rsync -n -v  -a -z --exclude=Music/ --exclude=downloads/ --exclude=".*" --exclude=macky/ --exclude=XBMC/ -r /home/simon/ blah@rsync.net:blahblah</code></p>
<p>I decided it would make more sense to use an exclude file or filter file rather than an ever expanding command line so the I changed the command to be</p>
<p><code>rsync  -v  -a -z --filter='merge /home/simon/rsync_exclude'  /home/simon/ blah@rsync.net:blahblah</code></p>
<p>I then created the file <code>/home/simon/rsync_exclude</code> by cutting and pasting from the old command line and editing the file to put one entry per line with the - sign in front to indicate it should not be included:-</p>
<p><code>- downloads/<br />
- Music/<br />
- macky/<br />
- XBMC/<br />
- ktorrent/<br />
- /.*</code></p>
<p>However when I ran the rsync command with the filter file it started to copy up all my Music etc. after much fiddling and use of the very helpful -n option to just simulate what happening and -v -v to show what was being selected I discovered the problem.</p>
<p>In spliting the lines in my exclude file I had left a space at the end of each line and rsync was doing a literal match and so looking for  something that matched &#8220;Music/[space]&#8221; and not finding anything.</p>
<p>So make sure any filter or exclude files don&#8217;t have any spaces at the end of the line.</p>
<p>The -n option for rsync is very useful it just simulates what rsync would do if you ran it for real. Also if you run rsync with -v -v  ( yes two -v options ) you get detailed output about what is skipped etc.</p>
<p><code>rsync -n -v -v blah blah<br />
building file list &#8230;<br />
[sender] hiding directory .Skype because of pattern /.*<br />
[sender] hiding directory .kchmviewer because of pattern /.*<br />
[sender] hiding directory .gnupg because of pattern /.*<br />
[sender] hiding file .gtk-bookmarks because of pattern /.*<br />
[sender] hiding file .profile because of pattern /.*<br />
[sender] hiding file .dmrc because of pattern /.*<br />
&#8230;&#8230;.<br />
</code></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/raetsel.wordpress.com/64/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/raetsel.wordpress.com/64/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/raetsel.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/raetsel.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/raetsel.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/raetsel.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/raetsel.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/raetsel.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/raetsel.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/raetsel.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/raetsel.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/raetsel.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=raetsel.wordpress.com&blog=319087&post=64&subd=raetsel&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://raetsel.wordpress.com/2008/05/15/using-exclude-files-in-rsync-watch-those-spaces/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Kubuntu Hardy Heron Upgrade</title>
		<link>http://raetsel.wordpress.com/2008/04/28/kubuntu-hardy-heron-upgrade/</link>
		<comments>http://raetsel.wordpress.com/2008/04/28/kubuntu-hardy-heron-upgrade/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 16:11:17 +0000</pubDate>
		<dc:creator>raetsel</dc:creator>
		
		<category><![CDATA[Kubuntu]]></category>

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

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

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

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

		<guid isPermaLink="false">http://raetsel.wordpress.com/?p=62</guid>
		<description><![CDATA[My experiences with upgrading to Kubuntu KDE4 Hardy Heron]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>On Friday afternoon I upgraded my desktop PC to the KDE4 version <a href="http://kubuntu.com" target="_blank">Kubuntu Hardy Heron</a> from the KDE 3.5 version of Gutsy Gibbon</p>
<p>Overall I have to say the process was very smooth and by far the most trouble free upgrade I have done. There were one or two funnies and these are outlined below.</p>
<p>Note: I decided to upgrade by downloading the alternate CD images and doing a <a href="https://help.ubuntu.com/community/HardyUpgrades/Kubuntu" target="_blank">cdromupgrade</a> rather than doing an upgrade over the &#8216;net. I did this as I thought the Kubuntu sites might be a bit busy still, it being only one day after Hardy was released.</p>
<p>Overall the process took just 40 minutes including one false start.</p>
<p><strong>Allow upgrades from the network hung</strong></p>
<p>One of the options at the start of the CD ROM upgrade is to allow the system to connect to the &#8216;net to get the latest downloads. I decided to allow this figuring there wouldn&#8217;t be many updates to get. However maybe it was because the site was busy but the upgrade just seemed to hang. So after 10 minutes I cancelled and restarted it and chose not to get the upgrades from the net.</p>
<p>This restart initially hung with an error saying it could not get the lock file:</p>
<blockquote><p>/var/lib/apt/lists/lock</p></blockquote>
<p>This was because the aborted upgrade had left the lock file behind. I deleted this file with</p>
<blockquote><p>sudo rm /var/lib/apt/lists/lock</p></blockquote>
<p>The upgrade process then started itself automatically without me having to go back out.</p>
<p><strong>Remove the CD before rebooting</strong></p>
<p>At the end of the upgrade the systems says it is going to reboot once you press OK. However I didn&#8217;t notice any warning to remove the CD before doing this. As my system is set to boot from CD ROM first the result was my system started the live CD on reboot and asked me to select a language.</p>
<p>I ejected the CD and rebooted my machine and all was fine.</p>
<p><strong>KDE4 Not Installed when upgrading from KDE 3.5</strong></p>
<p>After the upgrade was complete and the login screen came up I checked the available sessions and only KDE was listed. There was no option for KDE4 so I thought maybe it will automatically login to KDE4 and there is no KDE3.5 option.</p>
<p>However when I logged in all I saw was the KDE 3.5.9 desktop ( upgraded from 3.5.8 ).</p>
<p>Thinking about this, it kind of makes sense. Although I was using the KDE4 CD the system is an upgrade and since I&#8217;ve never had KDE4 on this machine before it just upgraded what was there.</p>
<p>I was able to easily solve the problem by using adept to install the package kubuntu-kde4-desktop, from the command line the same can be achieved with.</p>
<blockquote><p>sudo apt-get install kubuntu-kde4-desktop</p></blockquote>
<p>The upgrade took about 10 minutes and interestingly used the alternate CD ( which I had re-instered after the reboot ). I was fully expecting to to start pulling down the package from the &#8216;net but it didn&#8217;t.</p>
<p>This just leaves me with the lingering doubt that I&#8217;m not going to get updates for KDE4 over the &#8216;net. I need to check my sources.list to see if there is anything else I should be adding in there to get the KDE4 updates.</p>
<p>The installation of kubuntu-kde4-desktop asked me what login manager I wanted to use, KDM or KDE4-KDM. I chose the KDE4-KDM version.</p>
<p>Once the kubuntu-kde4-desktop package was installed I logged out and back in again and under the options for sessions I had KDE and KDE4.</p>
<p>Choosing KDE4 did exactly what it says on the tin.</p>
<p><strong>No Sound</strong></p>
<p>In both KDE 3.5.9 and KDE4 initially I had no sound at all. After a couple of dead ends with installing the pulse audio server the problem turned out to be the channel to my speakers was muted in <a href="http://docs.kde.org/kde3/en/kdemultimedia/kmix/index.html" target="_blank">kmix</a>.</p>
<p>I had to choose Kmix from the Multimedia menu and then click on the speaker icon that appeared in the status bar and choose &#8220;mixer&#8221; to bring up the full mixer panel. For some reason there were two &#8220;Front&#8221; channels showing and one of them was muted. Un-muting this gave me my sound back. (Click the pic below to <a href="http://www.urbandictionary.com/define.php?term=Embiggen" target="_blank">embiggen</a>)</p>
<p><a href="http://raetsel.files.wordpress.com/2008/04/kubuntugrade5.png"><img class="aligncenter size-medium wp-image-63" src="http://raetsel.files.wordpress.com/2008/04/kubuntugrade5.png?w=300&h=176" alt="The second Front channel was initially muted" width="300" height="176" /></a></p>
<p><strong>No Sound in Firefox for Realplayer plugin</strong></p>
<p>Although sound was now working in KDE4 in general in <a href="http://http://developer.mozilla.org/en/docs/Main_Page" target="_blank">Firefox</a> the <a href="http://www.bbc.co.uk/radio/aod/" target="_self">BBC Radio Player</a> was going through the motions of playing but not producing any sound using <a href="http://realplayer.com" target="_blank">Realplayer</a>. This turned out to be the fact that the plugins directory had changed for firefox3 and I had to copy in the relevant plugins from /usr/lib/mozilla/plugins to /usr/lib/firefox-3.0b5/plugins</p>
<blockquote><p>sudo cp /usr/lib/mozilla/plugins/nphelix* /usr/lib/firefox-3.0b5/plugins</p></blockquote>
<p><strong>NB: </strong>This is a bit of a sloppy way of doing this I should really use softlinks to the orginal plugin files rather than making a copy. Also it should be possible to set this up in your home directory .mozilla directory rather than the global /usr/lib</p>
<p><strong>Virtual Box </strong></p>
<p>I use <a href="http://www.virtualbox.org/" target="_self">VirtualBox</a> to run an XP virtual machine for connecting to the VPN and work. When I fired this up after the upgrade I got an error message about the VirtualBox kernel drivers not being loaded. The new version of the main Linux kernel was the reason.</p>
<p>Cleverly the error message told you exactly what to do, run &#8220;/etc/init.d/vbdrv setup&#8221; as root so for Kubuntu this just meant:-</p>
<blockquote><p>sudo /etc/init.d/vbdrv setup</p></blockquote>
<p>I really like VirtualBox and much prefer it to VMWare server. The way it handled this error message just confirms it&#8217;s the best choice for me for running a VM.</p>
<p><strong>Hotkeys not loaded by KDE Autostart</strong></p>
<p>The hotkeys application I use to set up <a href="http://raetsel.wordpress.com/2008/04/12/internet-hotkeys/" target="_self">my multimedia keys</a> was not loaded when I logged in to KDE4. This was because the Autostart directory for KDE4 is in a different place to KDE3.5</p>
<p>In KDE3.5 is it ~/.Kde/Autostart but for KDE4 it is ~/.kde4/Autostart</p>
<p>So all I had to do was recreate my soft links:</p>
<blockquote><p>cd ~/.kde4/Autostart</p>
<p>ln -s /usr/bin/hotkeys  hotkeys</p></blockquote>
<p>I am not sure if .kde4 is the official directory for KDE4 files or if this has been set up by Kubuntu because they are allowing you to run both KDE3.5 and KDE4</p>
<p><strong>Skype Not Working</strong></p>
<p>This is the only issue I have yet to resolve. After the upgrade <a href="http://skype.com" target="_blank">Skype</a> was completely uninstalled. I tried installing it from apt-get but this gave an error saying there was no valid install candidate.</p>
<p>I still had the .deb package I had downloaded from the Skype website so I just re-installed this using dpkg -i</p>
<p>This gave me Skype back on the menu and it ran ok but whenever I try to make a call it just fails.</p>
<p>I suspect this might be something to do with the sound system and the fact in fixing my lack of volume I installed the <a href="http://www.pulseaudio.org/wiki/AboutPulseAudio">pulse audio server</a>.</p>
<p>I will try un-installing pulse audio and see if it makes any difference. Though I would like to use pulse audio to see what it is like and what all the fuss is about.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/raetsel.wordpress.com/62/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/raetsel.wordpress.com/62/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/raetsel.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/raetsel.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/raetsel.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/raetsel.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/raetsel.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/raetsel.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/raetsel.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/raetsel.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/raetsel.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/raetsel.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=raetsel.wordpress.com&blog=319087&post=62&subd=raetsel&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://raetsel.wordpress.com/2008/04/28/kubuntu-hardy-heron-upgrade/feed/</wfw:commentRss>
	
		<media:content url="http://raetsel.files.wordpress.com/2008/04/kubuntugrade5.png?w=300" medium="image">
			<media:title type="html">The second Front channel was initially muted</media:title>
		</media:content>
	</item>
		<item>
		<title>KDE4 Save Current Session - DBUS to the Rescue</title>
		<link>http://raetsel.wordpress.com/2008/04/25/kde4-save-current-session-dbus-to-the-rescue/</link>
		<comments>http://raetsel.wordpress.com/2008/04/25/kde4-save-current-session-dbus-to-the-rescue/#comments</comments>
		<pubDate>Fri, 25 Apr 2008 21:08:15 +0000</pubDate>
		<dc:creator>raetsel</dc:creator>
		
		<category><![CDATA[Kubuntu]]></category>

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

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

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

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

		<guid isPermaLink="false">http://raetsel.wordpress.com/?p=61</guid>
		<description><![CDATA[How to manually save a session in KDE 4 using the dbus-send command. A useful workaround until there is a proper Save Session button in KDE4. I used kdbus and qdbusviewer to work out what I needed to send.]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Executive Summary</strong></p>
<p>To cut to the chase, if you want to save your current sessions in <a href="http://www.kde.org/announcements/4.0/" target="_blank">KDE4</a> run the following command from a command line ( or put it in a script that you can call from a desktop shortcut ):</p>
<blockquote><p><code>dbus-send --dest=org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.saveCurrentSession</code></p></blockquote>
<p><strong>The Details</strong></p>
<p>Now for how I got here in the first place:</p>
<p>I&#8217;ve just upgraded to <a href="http://kubuntu.com">Kubuntu Hardy Heron</a> and decided to give KDE4 a go. I&#8217;ll be posting about the upgrade process and KDE4 in general over the coming days but one thing that has kept me &#8220;amused&#8221; today is the lack of a &#8220;Save Current Session&#8221; button in KDE4</p>
<p>Rather than have the desktop returned to how it was when I last logged out ( &#8220;Restore Previous Session&#8221; under KControl ) I like to return to a standard set of applications so I use the &#8220;Restore Manually Saved Session&#8221; option under KDE 3.5.</p>
<p>In KDE4 KControl there are the same options for the session manager. The snag is that there is no button anywhere to actually save the session when you want to. Thus choosing this option effectively logs you back in to a blank session. This has been reported as a <a href="http://bugs.kde.org/show_bug.cgi?id=155516">bug in KDE</a> but does not seem to be making any progress.</p>
<p>Flushed with my <a href="http://raetsel.wordpress.com/2008/04/25/internet-hotkeys-amarok-dcop-playpause/">success with dcop recently </a>I was hoping I could use it with the ksmserver object ( the session manager ) but in KDE4 dcop is not used and the <a href="http://www.freedesktop.org/wiki/Software/dbus">dbus interface</a> is used instead which is a bit more complicated to use.</p>
<p>There is a tool you can install called <a href="http://dkukawka.blogspot.com/2008/01/fixed-kdbus.html">kdbus</a> that does a similar job to kdcop but I found a much better tool called<a href="http://techbase.kde.org/index.php?title=Development/Tutorials/D-Bus/Introduction#Namespaces_and_Addresses"> qdbusviewer along with a useful overview of KDE and dbus</a> here.</p>
<p>To use qdbusviewer you need to install the package qt4-dev-tools then run qdbusviewer from a command line:-</p>
<blockquote><p>sudo apt-get install qt4-dev-tools</p>
<p>qdbusviewer</p></blockquote>
<p>You can use qdbusviewer to browser what objects are available and execute methods on them just like kdcop and kdbus ( but kdbus is rather slower )</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/raetsel.wordpress.com/61/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/raetsel.wordpress.com/61/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/raetsel.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/raetsel.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/raetsel.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/raetsel.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/raetsel.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/raetsel.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/raetsel.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/raetsel.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/raetsel.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/raetsel.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=raetsel.wordpress.com&blog=319087&post=61&subd=raetsel&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://raetsel.wordpress.com/2008/04/25/kde4-save-current-session-dbus-to-the-rescue/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Internet Hotkeys - Amarok dcop play/pause</title>
		<link>http://raetsel.wordpress.com/2008/04/25/internet-hotkeys-amarok-dcop-playpause/</link>
		<comments>http://raetsel.wordpress.com/2008/04/25/internet-hotkeys-amarok-dcop-playpause/#comments</comments>
		<pubDate>Fri, 25 Apr 2008 20:36:46 +0000</pubDate>
		<dc:creator>raetsel</dc:creator>
		
		<category><![CDATA[Open Source]]></category>

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

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

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

		<guid isPermaLink="false">http://raetsel.wordpress.com/?p=60</guid>
		<description><![CDATA[Well the solution to getting my Play/Pause button to actually work as a play/pause toggle was pretty easy.
Amarok supports a playPause() method that is registered to the dcop server so in my hotkeys.conf file the command for the Play button became
dcop amarok player playPause
dcop is the command line based client to talk to the dcop [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Well the solution to getting my Play/Pause button to actually work as a play/pause toggle was pretty easy.</p>
<p>Amarok supports a playPause() method that is registered to the <a href="http://developer.kde.org/documentation/other/dcop.html">dcop</a> server so in my hotkeys.conf file the command for the Play button became</p>
<blockquote><p>dcop amarok player playPause</p></blockquote>
<p>dcop is the command line based client to talk to the dcop server, amarok is of course the application I want to talk to.</p>
<p>player is the section of the <a href="http://amarok.kde.org/">amarok</a> services and playPause is the function/method I want to call.</p>
<p>To find this out I used <a href="http://wiki.kde.org/tiki-index.php?page=Tips%20and%20Tricks&amp;pagenum=8">kdcop</a> the graphical interface and explored what it offered under the amarok application.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/raetsel.wordpress.com/60/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/raetsel.wordpress.com/60/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/raetsel.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/raetsel.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/raetsel.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/raetsel.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/raetsel.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/raetsel.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/raetsel.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/raetsel.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/raetsel.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/raetsel.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=raetsel.wordpress.com&blog=319087&post=60&subd=raetsel&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://raetsel.wordpress.com/2008/04/25/internet-hotkeys-amarok-dcop-playpause/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Internet Hotkeys</title>
		<link>http://raetsel.wordpress.com/2008/04/12/internet-hotkeys/</link>
		<comments>http://raetsel.wordpress.com/2008/04/12/internet-hotkeys/#comments</comments>
		<pubDate>Sat, 12 Apr 2008 11:33:06 +0000</pubDate>
		<dc:creator>raetsel</dc:creator>
		
		<category><![CDATA[Open Source]]></category>

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

		<guid isPermaLink="false">http://raetsel.wordpress.com/?p=59</guid>
		<description><![CDATA[My keyboard is a  Logitech Internet Pro and it has 7 keys at the top for special functions that I&#8217;ve never really made use of in Kubuntu, but now I&#8217;ve got them all functioning using the handy application &#8220;hotkeys&#8221;.
Here&#8217;s what I did to get them working:
First the actual keys are labelled
Media ,Play/Pause,Mute,Vol +,Vol -,Favorites,Email,WWW
I [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>My keyboard is a  <a href="http://www.dooyoo.co.uk/keyboards/logitech-internet-pro-keyboard-black/">Logitech Internet Pro</a> and it has 7 keys at the top for special functions that I&#8217;ve never really made use of in <a href="http://kubuntu.com">Kubuntu,</a> but now I&#8217;ve got them all functioning using the handy application <a href="http://linux.com.hk/penguin/man/1/hotkeys.html">&#8220;hotkeys&#8221;.</a></p>
<p>Here&#8217;s what I did to get them working:</p>
<p>First the actual keys are labelled</p>
<p>Media ,Play/Pause,Mute,Vol +,Vol -,Favorites,Email,WWW</p>
<p>I tried to use KDE keyboard variants to get them working but this didn&#8217;t really work that well so I installed the application hotkeys:-</p>
<blockquote><p>sudo apt-get install hotkeys</p></blockquote>
<p>The hotkeys application intercepts keys and processes actions according to a couple of configuration files.</p>
<p>The first config file is the definition of the keycodes that are generated by your keyboard and what  hotkeys command name to map them to. There is one definition file for each type of keyboard that hotkeys supports. To see the list of supported keyboards run the command</p>
<blockquote><p>hotkeys -l</p></blockquote>
<p>This actually reads the contents of various .def files from the config directory ( /usr/share/hotkeys in Kubuntu)</p>
<p>The second config file defines what action or programs are run when the various keys are pressed. By default in Kubuntu this is installed as /etc/hotkeys.conf. The best way to customise this is to create a directory in your homedir called .hotkeys and copy /etc/hotkeys.conf into there.</p>
<blockquote><p>mkdir ~/.hotkeys</p>
<p>cp /etc/hotkeys.conf ~/.hotkeys/hotkeys.conf</p></blockquote>
<p>The hotkeys.conf file consists of simple key/value pairs and you can edit it to launch the applications you require. The setting for Kbd defines what keyboard definition file is loaded when you run hotkeys.</p>
<p>Here is the final version of my hotkeys.conf ( note that Kbd is set to logitech-internet-pro which is not a standard definition, it&#8217;s one I created myself. More of which anon.)</p>
<blockquote><p>############################################################<br />
# Global configuration for hotkeys                         #<br />
############################################################</p>
<p># These are the default values.<br />
# A line starting with # is a comment.</p>
<p>### Specify the default keyboard  (without the .def extension) so you<br />
### don&#8217;t need to specify -t every time</p>
<p>#using my own definition based on itouch<br />
Kbd=logitech-internet-pro</p>
<p>Play=amarok &#8211;pause</p>
<p>WebBrowser=firefox<br />
Email=firefox gmail.com<br />
Favorites=dolphin</p>
<p># osd_font=-arphic-ar pl kaitim big5-bold-i-normal&#8211;0-250-0-0-c-0-*-*<br />
### For the color, you can either use the strings in /etc/X11/rgb.txt,<br />
### or use the RGB syntax #RRGGBB, e.g. ##A086FF<br />
# osd_color=LawnGreen<br />
# osd_timeout=3<br />
### osd_position is either &#8216;top&#8217; or &#8216;bottom&#8217;<br />
# osd_position=bottom<br />
# osd_offset=25</p></blockquote>
<p>The syntax is pretty obvious, when the WebBrowser key is pressed the command firefox is executed. To test the config just run the command</p>
<blockquote><p>hotkeys</p></blockquote>
<p>You&#8217;ll see a splash screen appear briefly and the application is now running. Press a key and you see an on screen display in green telling you what is happening and the relevant action will be executed.</p>
<p>You&#8217;ll notice I haven&#8217;t mapped anything for mute, volume etc. these all work with the defaults.</p>
<p>To get hotkeys to always be loaded when I am running KDE I added a link to the hotkeys executable to the .kde/Autostart directory:-</p>
<blockquote><p>cd ~/.kde/Autostart</p>
<p>ln -s /usr/bin/hotkeys hotkeys</p></blockquote>
<p>The Play/Pause keys executes &#8220;amarok &#8211;pause&#8221; , unfortunately from the command line this is not a toggle thus I can press the &#8220;Play/Pause&#8221; key and it will pause amarok but a second press won&#8217;t restart it. The command for that is &#8220;amarok &#8211;play&#8221; so I have mapped this to my Media key at the moment.</p>
<p>The &#8220;Media&#8221; key is not a standard hotkeys command name but the keyboard definition files allow you define commands to executed directly in there. The &#8220;key&#8221; (pun intended) to the keyboard definition files are the keycodes your keyboard generates.</p>
<p>I started with the itouch.def file and found it worked for most of they keys. Using the excellent application <a href="http://www.xfree86.org/current/xev.1.html">&#8220;xev&#8221;</a> I was able to discover what keycodes my keyboard was generating and create my own variant called logitech-internet-pro.def the contents are reproduced below.  I shall have to see if there is anywhere appropriate I can upload the file to make it available for others.</p>
<blockquote><p>&lt;?xml version=&#8221;1.0&#8243;?&gt;</p>
<p>&lt;definition&gt;</p>
<p>&lt;config model=&#8221;Logitech Internet Pro&#8221;&gt;</p>
<p>&lt;Play         keycode=&#8221;162&#8243;/&gt;</p>
<p>&lt;VolUp        keycode=&#8221;176&#8243; adj=&#8221;2&#8243;/&gt;<br />
&lt;VolDown      keycode=&#8221;174&#8243; adj=&#8221;2&#8243;/&gt;<br />
&lt;Mute         keycode=&#8221;160&#8243;/&gt;</p>
<p>&lt;WebBrowser   keycode=&#8221;178&#8243;/&gt;<br />
&lt;Email        keycode=&#8221;236&#8243;/&gt;<br />
&lt;Favorites    keycode=&#8221;230&#8243;/&gt;</p>
<p>&lt;!&#8211; Feel free to customize this - the media key &#8211;&gt;</p>
<p>&lt;userdef keycode=&#8221;237&#8243; command=&#8221;amarok -p&#8221;&gt;Amarok&lt;/userdef&gt;</p>
<p>&lt;/config&gt;</p>
<p>&lt;contributor&gt;<br />
&lt;name&gt;Simon Stanford&lt;/name&gt;<br />
&lt;email&gt;sjs atraetsel dot co dot uk&lt;/email&gt;<br />
&lt;/contributor&gt;</p></blockquote>
<p>My next task is to see if I can get the Play/Pause button to actually act as a toggle and for this I think I am going to need to use <a href="http://developer.kde.org/documentation/other/dcop.html">dcop</a> to interrogate the state of <a href="http://amarok.kde.org/">amarok</a> and/or pass it the appropriate command.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/raetsel.wordpress.com/59/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/raetsel.wordpress.com/59/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/raetsel.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/raetsel.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/raetsel.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/raetsel.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/raetsel.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/raetsel.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/raetsel.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/raetsel.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/raetsel.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/raetsel.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=raetsel.wordpress.com&blog=319087&post=59&subd=raetsel&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://raetsel.wordpress.com/2008/04/12/internet-hotkeys/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Linux - For all your hardware driver needs</title>
		<link>http://raetsel.wordpress.com/2008/03/03/linux-for-all-your-hardware-driver-needs/</link>
		<comments>http://raetsel.wordpress.com/2008/03/03/linux-for-all-your-hardware-driver-needs/#comments</comments>
		<pubDate>Mon, 03 Mar 2008 10:29:06 +0000</pubDate>
		<dc:creator>raetsel</dc:creator>
		
		<category><![CDATA[Open Source]]></category>

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

		<guid isPermaLink="false">http://raetsel.wordpress.com/?p=58</guid>
		<description><![CDATA[I’ve recently bought myself a new desktop PC ( more of which in another post perhaps). The plan is to give my old desktop to my dad and he uses Windows rather than Linux. ( One day maybe I’ll convert him, I’m sure he’d be amenable to giving it a try).


I wiped the partitions on [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div class="snap_preview">I’ve recently bought myself a new desktop PC ( more of which in another post perhaps). The plan is to give my old desktop to my dad and he uses Windows rather than <a href="http://www.answers.com/topic/linux?nafid=22" class="answerlink">Linux</a>. ( One day maybe I’ll convert him, I’m sure he’d be amenable to giving it a try).</div>
<div class="snap_preview"></div>
<div class="snap_preview"></div>
<div class="snap_preview">I wiped the partitions on my old Desktop’s hard drive and booted from my XP install CD.</div>
<div class="snap_preview">Unfortunately when it tried to install it said there were no hard drives detected. I thought maybe I needed to reset the<a href="http://en.wikipedia.org/wiki/Serial_ATA"> SATA</a> RAID <a href="http://en.wikipedia.org/wiki/JBOD#Concatenation_.28JBOD_or_SPAN.29">JBOD</a> but this made no difference.I booted from an <a href="http://www.answers.com/topic/ubuntu-technology?nafid=22" class="answerlink">Ubuntu</a> live CD and the hard drive was detected no problem.It transpires that my ASUS motherboard with its Uli SATA RAID controller is not supported by the standard windows install CD. You have to get the drivers on a floppy disk and press F6 during the install to be able to include the drivers off the floppy.</p>
<p>Now, as is the way with a lot of desktops, there is no floppy drive fitted, however I managed to track down an old <a href="http://www.answers.com/topic/universal-serial-bus?nafid=22" class="answerlink">USB</a> floppy drive. The next challenge was to find a floppy disk, this proved even harder but I found one in the back of the drawer. So I put the drivers on the disk and booted the Windows and duly  pressed F6.</p>
<p>All to no avail as the USB floppy drive was not detected and a check of the Microsoft knowledge base confirmed only a couple are supported.</p>
<p>I thought this was game over at this point but I came across a product called <a href="http://www.nliteos.com/">nlite</a> that enables you to roll your own Windows installations and customise them, including adding in additional drivers. You can then create an ISO that you can burn to disk.</p>
<p>This got be running and the <a href="http://www.windows-vista-update.com/image-files/150px-default_xp_theme.jpg">tellytubby green hill</a> is now showing nicely on my old PC.</p>
<p>Two things spring to mind about this.</p>
<p>Firstly nlite is a cool little programme and is at least free as in beer.</p>
<p>Secondly it shows the power of open source. Linux is able to detect my hardrive from the installation CD no problem presumably because the community decided this driver was important enough to be included or maybe because the way the kernel works the standard drivers just work better with a wider range of hardware.</p>
<p>Either way score another one for the penguin.</p></div>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/raetsel.wordpress.com/58/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/raetsel.wordpress.com/58/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/raetsel.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/raetsel.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/raetsel.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/raetsel.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/raetsel.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/raetsel.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/raetsel.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/raetsel.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/raetsel.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/raetsel.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=raetsel.wordpress.com&blog=319087&post=58&subd=raetsel&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://raetsel.wordpress.com/2008/03/03/linux-for-all-your-hardware-driver-needs/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Snmpd filling up /var/log/messages</title>
		<link>http://raetsel.wordpress.com/2008/02/15/snmpd-filling-up-varlogmessages/</link>
		<comments>http://raetsel.wordpress.com/2008/02/15/snmpd-filling-up-varlogmessages/#comments</comments>
		<pubDate>Fri, 15 Feb 2008 19:38:08 +0000</pubDate>
		<dc:creator>raetsel</dc:creator>
		
		<category><![CDATA[Open Source]]></category>

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

		<guid isPermaLink="false">http://raetsel.wordpress.com/?p=57</guid>
		<description><![CDATA[At work we have a central monitoring system for servers called Solarwinds Orion Network Manager, this uses standard snmp connections to servers to get their status, disk usage, CPU performance.

On my RHEL5 linux servers the standard snmpd daemon works well with Solarwinds but the monitoring server seems to make a lot of connections to the [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div class="snap_preview">At work we have a central monitoring system for servers called <a href="http://www.solarwinds.com/products/" title="It's all made of stars!">Solarwinds Orion Network Manager</a>, this uses standard <a href="http://en.wikipedia.org/wiki/Snmp" title="No no SMTP , SNMP!">snmp</a> connections to servers to get their status, disk usage, CPU performance.</div>
<div class="snap_preview"></div>
<div class="snap_preview">On my <a href="http://www.europe.redhat.com/forms/rhel5/?s_kwcid=rhel5|961269681" title="Wot no trilby?">RHEL5</a> linux servers the standard snmpd daemon works well with Solarwinds but the monitoring server seems to make a lot of connections to the system and each one gets logged via the <a href="http://www.answers.com/topic/syslog?nafid=22" class="answerlink">syslog</a> daemon to /var/log/messages giving rise to lots of lines saying things like</div>
<div class="snap_preview">
<blockquote><p><code>snmpd[345435]: Connection from UDP: [10.225.46.136]:135</code></p>
<p>last message repeated 8 times</p>
<p>last message repeated 13 times</p></blockquote>
<p>These are only information messages saying a connection has been established. This is rather annoying when you are trying to read other things in /var/log/messages. The way to turn off these messages is to change the logging options of the snmpd daemons.</p>
<p>On <a href="http://www.answers.com/topic/red-hat?nafid=22" class="answerlink">Redhat</a> ( and <a href="http://www.answers.com/topic/ubuntu-technology?nafid=22" class="answerlink">Ubuntu</a>) the default logging ( the -L options ) show:–</p>
<blockquote><p><code>-Ls d</code></p></blockquote>
<p>Meaning log to syslog using the facility of daemon ( see syslogd and <a href="http://linux.about.com/od/commands/l/blcmdl5_syslogc.htm" title="Is that a facility or a priority?">syslog.conf</a> for more information on what that means in detail, for now suffice it to say it means all messages are written to /var/log/messages ).</p>
<p>The man pages for <a href="http://net-snmp.sourceforge.net/docs/man/snmpcmd.html" title="Man oh man!">snmpcmd</a> ( common to all net-snmp programmes )  explain you can set this to only log messages above a certain priority.</p>
<p>Using priorities 0-4 means warning messages, errors, alerts and critical etc messages are logged but notice info and debug level messages are ignored.</p>
<p>The manual pages are not that clear, to me at least at first, hence this blog.</p>
<p>So if we change the -Ls d to the following this will stop those messages but still allow important messages to get through:–</p>
<blockquote><p><code>LS 0-4 d</code></p></blockquote>
<p>The capital S is crucial to the syntax.</p>
<p>So where and how do we set these options? Well the snmpd daemon is started by a standard init script /etc/init.d/snmpd</p>
<p>In both RHEL5 and Ubuntu the scripts have some default options but also read in settings from a config file. In Ubuntu the relevant portion of the script is:-</p>
<blockquote><p><code>SNMPDOPTS=’-Lsd -Lf /dev/null -p /var/run/snmpd.pid’<br />
TRAPDRUN=no<br />
TRAPDOPTS=’-Lsd -p /var/run/snmptrapd.pid’<br />
#Reads config file (will override defaults above)<br />
[ -r /etc/default/snmpd] &amp;&amp; . /etc/default/snmpd</code></p></blockquote>
<p>So this sets the variable SNMPDOPTS to the default value and then if the file /etc/default/snmpd is readable it “sources” the content of that file.</p>
<p>Thus if /etc/default/snmpd contains the line</p>
<blockquote><p><code>SNMPDOPTS=’-LS 0-4 d -Lf /dev/null -p /var/run/snmpd.pid’</code></p></blockquote>
<p>Then stopping and starting the snmpd daemon will make it run with the new logging options we want.</p>
<blockquote><p><code>sudo /etc/init.d/snmpd restart</code></p></blockquote>
<p>In RHEL5 the equivalent file is /etc/snmp/snmpd.options and the equivalent variable is OPTIONS rather than SNMPDOPTS</p>
<p>Now there could be security implications to not recording the IP address of every <a href="http://www.answers.com/topic/simple-network-management-protocol?nafid=22" class="answerlink">SNMP</a> request on your server in case some other system is connecting that shouldn’t be, but there are ways with community strings and other authentication options for SNMP to reduce the risk of that.</p>
<p>All in all the I think the risk of missing an important message in /var/log/messages outweighs the risks from not logging the snmpd messages.</p>
<p>Hey look a whole post and I never mentioned FTP once :o)</p></div>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/raetsel.wordpress.com/57/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/raetsel.wordpress.com/57/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/raetsel.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/raetsel.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/raetsel.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/raetsel.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/raetsel.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/raetsel.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/raetsel.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/raetsel.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/raetsel.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/raetsel.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=raetsel.wordpress.com&blog=319087&post=57&subd=raetsel&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://raetsel.wordpress.com/2008/02/15/snmpd-filling-up-varlogmessages/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WordPress Annoyances  and Answers.com Take 2 - #^$@! thing</title>
		<link>http://raetsel.wordpress.com/2008/02/03/wordpress-annoyances-and-answerscom-take-2-thing/</link>
		<comments>http://raetsel.wordpress.com/2008/02/03/wordpress-annoyances-and-answerscom-take-2-thing/#comments</comments>
		<pubDate>Sun, 03 Feb 2008 11:54:27 +0000</pubDate>
		<dc:creator>raetsel</dc:creator>
		
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://raetsel.wordpress.com/?p=56</guid>
		<description><![CDATA[Well as you can see in the previous post, the answers.com link screwed my paragraphs. I&#8217;ll see if I can get some support help from wordpress or the  community, in the meantime here is the post formatted as I intended.
The post yesterday about using spaces in samba sharenames highlighted an annoyance with WordPress.
For some [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Well as you can see in the <a href="http://raetsel.wordpress.com/2008/02/03/wordpress-annoyances-and-answerscom/" title="see recurstion......">previous post</a>, the answers.com link screwed my paragraphs. I&#8217;ll see if I can get some support help from wordpress or the  community, in the meantime here is the post formatted as I intended.</p>
<p>The post yesterday about using spaces in <a href="http://www.answers.com/topic/samba?nafid=22" class="answerlink">samba</a> sharenames highlighted an annoyance with WordPress.</p>
<p>For some reason the backslash 040 was causing the zero to be stripped out so instead of seeing My\ 040Documents it was showing jusing My40Documents. (Note I’ve put a space between the \ and the 0 just now to stop it stripping it out.)</p>
<p>I tried putting the <a href="http://www.answers.com/topic/fstab?nafid=22" class="answerlink">fstab</a> entries inside a &lt; code &gt; , &lt; /code &gt; block but that made no difference. What I ended up doing was using the extended html codes and put in an ASCII character code in for zero.</p>
<p>ASCII/Unicode values can be used in <a href="http://www.answers.com/topic/html?nafid=22" class="answerlink">HTML</a> by using the following format ( note however there should be no spaces in the following):-</p>
<p>&amp; # x30 ;</p>
<p>This is the hexadecimal <a href="http://www.answers.com/topic/ascii?nafid=22" class="answerlink">ASCII code</a> for a 0, I could have done it in decimal making it &amp; # 48 ; but by accident or design the ASCII codes for the digits 0 to 9 are easy to remember in hex as they run consecutively from decimal 48 which is 3 times 16</p>
<p>Thus a ‘1′ is decimal 49 or hex x31 , 2 is x32, etc.</p>
<p>Using the extended HTML codes was ok but it was sort of a one shot deal. If I saved the post it displayed with \ &amp; # x30 ; showing as \ 0 but if I went back to edit the saved draft then the next save passed the post through the WordPress interpreter and the \ 0 was stripped out. So for each edit I had to go back and put in all the &amp; # x30 ; codes back in.</p>
<p>If I missed a trick with WordPress here, please let me know.As I say a &lt; code &gt; &lt; /code &gt; block didn’t help.</p>
<p>Having battled with that I then came to mark up the links in my post. I always like to have links in my post to any technical terms or specific products that I mention and I find this a rather laborious task. I therefore tried the WordPress answers.com button which is a quick way to pick out key words from a post and automatically link them to an entry in answers.com</p>
<p>Unfortunately for some reason doing that stuck a whole bunch of &lt; div &gt; &lt;/div &gt; entries in my post that screwed up all the paragraph formatting. So the time I saved in referencing my post was lost reformatting it, (and typing in all those damn &amp; # x30 ; codes again!)</p>
<p>I’m going to try the answers.com link on this post and if it does it again I shall not be using that method of referencing until I’ve asked wordpress.com what the deal is.</p>
<p>As for whether answers.com is an appropriate referencing tool well I always check the links confirm what I understand a term to mean. I was a bit dubious about answers.com just leaching of wikipedia and also answers.com having ads but they have an advertising revenue split deal with wikipedia ( or so wikipedia says in 2006…….) .</p>
<p>The ads I have seen so far don’t seem to intrusive and annoying so I’ll see how it goes.Right now to press the answers.com button and see what happens to the formatting. Brace yourself………</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/raetsel.wordpress.com/56/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/raetsel.wordpress.com/56/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/raetsel.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/raetsel.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/raetsel.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/raetsel.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/raetsel.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/raetsel.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/raetsel.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/raetsel.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/raetsel.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/raetsel.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=raetsel.wordpress.com&blog=319087&post=56&subd=raetsel&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://raetsel.wordpress.com/2008/02/03/wordpress-annoyances-and-answerscom-take-2-thing/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WordPress Annoyances  and Answers.com</title>
		<link>http://raetsel.wordpress.com/2008/02/03/wordpress-annoyances-and-answerscom/</link>
		<comments>http://raetsel.wordpress.com/2008/02/03/wordpress-annoyances-and-answerscom/#comments</comments>
		<pubDate>Sun, 03 Feb 2008 11:49:13 +0000</pubDate>
		<dc:creator>raetsel</dc:creator>
		
		<category><![CDATA[Misc]]></category>

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

		<guid isPermaLink="false">http://raetsel.wordpress.com/?p=55</guid>
		<description><![CDATA[The post yesterday about using spaces in samba sharenames highlighted an annoyance with WordPress. For some reason the backslash 040 was causing the zero to be stripped out so instead of seeing My\ 040Documents it was showing jusing My40Documents.  (Note I’ve put a space between the \ and the 0 just now to stop [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div class="snap_preview">The post yesterday about using spaces in <a href="http://www.answers.com/topic/samba?nafid=22" class="answerlink">samba</a> sharenames highlighted an annoyance with WordPress. For some reason the backslash 040 was causing the zero to be stripped out so instead of seeing My\ 040Documents it was showing jusing My40Documents.  (Note I’ve put a space between the \ and the 0 just now to stop it stripping it out.)I tried putting the <a href="http://www.answers.com/topic/fstab?nafid=22" class="answerlink">fstab</a> entries inside a &lt; code &gt; , &lt; /code &gt; block but that made no difference. What I ended up doing was using the extended html codes and put in an ASCII character code in for zero. ASCII/Unicode values can be used in <a href="http://www.answers.com/topic/html?nafid=22" class="answerlink">HTML</a> by using the following format ( note however there should be no spaces in the following):-&amp; # x30 ;This is the hexadecimal <a href="http://www.answers.com/topic/ascii?nafid=22" class="answerlink">ASCII code</a> for a 0, I could have done it in decimal making it &amp; # 48 ; but by accident or design the ASCII codes for the digits 0 to 9 are easy to remember in hex as they run consecutively from decimal 48 which is 3 times 16Thus a ‘1′ is decimal 49 or hex x31 , 2 is x32, etc.Using the extended HTML codes was ok but it was sort of a one shot deal. If I saved the post it displayed with \ &amp; # x30 ; showing as \ 0 but if I went back to edit the saved draft then the next save passed the post through the WordPress interpreter and the \ 0 was stripped out. So for each edit I had to go back and put in all the &amp; # x30 ; codes back in.If I missed a trick with WordPress here, please let me know. As I say a &lt; code &gt; &lt; /code &gt; block didn’t help.Having battled with that I then came to mark up the links in my post. I always like to have links in my post to any technical terms or specific products that I mention and I find this a rather laborious task. I therefore tried the WordPress answers.com button which is a quick way to pick out  key words from a post and automatically link them to an entry in answers.comUnfortunately for some reason doing that stuck a whole bunch of &lt; div &gt; &lt;/div &gt; entries in my post that screwed up all the paragraph formatting. So the time I saved in referencing my post was lost reformatting it, (and typing in all those damn &amp; # x30 ; codes again!)I’m going to try the answers.com link on this post and if it does it again I shall not be using that method of referencing until I’ve asked wordpress.com what the deal is.As for whether answers.com is an appropriate referencing tool well  I always check the links confirm what I understand a term to mean. I was a bit dubious about answers.com just leaching of wikipedia and also answers.com having ads but they have an advertising  revenue split deal with wikipedia ( or so wikipedia says in 2006…….) . The ads I have seen so far don’t seem to intrusive and annoying so I’ll see how it goes.Right now to press the answers.com button and see what happens to the formatting. Brace yourself………</div>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/raetsel.wordpress.com/55/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/raetsel.wordpress.com/55/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/raetsel.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/raetsel.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/raetsel.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/raetsel.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/raetsel.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/raetsel.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/raetsel.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/raetsel.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/raetsel.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/raetsel.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=raetsel.wordpress.com&blog=319087&post=55&subd=raetsel&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://raetsel.wordpress.com/2008/02/03/wordpress-annoyances-and-answerscom/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Samba Shares,  Spaces and fstab (With a bit of Octal thrown in)</title>
		<link>http://raetsel.wordpress.com/2008/02/02/samba-shares-spaces-and-fstab-with-a-bit-of-octal-thrown-in/</link>
		<comments>http://raetsel.wordpress.com/2008/02/02/samba-shares-spaces-and-fstab-with-a-bit-of-octal-thrown-in/#comments</comments>
		<pubDate>Sat, 02 Feb 2008 14:18:35 +0000</pubDate>
		<dc:creator>raetsel</dc:creator>
		
		<category><![CDATA[Open Source]]></category>

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

		<guid isPermaLink="false">http://raetsel.wordpress.com/?p=54</guid>
		<description><![CDATA[It is a necessary evil at work that I have to get my laptop that runs Kubuntu to interact with the rest of the Windows systems at work.In order to show that Linux can hold its own I’ve not asked for any special changes to be made to the way the windows servers are set [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>It is a necessary evil at work that I have to get my laptop that runs <a href="http://www.answers.com/topic/kubuntu?nafid=22" class="answerlink">Kubuntu</a> to interact with the rest of the Windows systems at work.In order to show that <a href="http://www.answers.com/topic/linux?nafid=22" class="answerlink">Linux</a> can hold its own I’ve not asked for any special changes to be made to the way the windows servers are set up. I just make Linux work with what the Windows PCs use.</p>
<p>The main area of interaction is the mounting of <a href="http://www.answers.com/topic/samba-technology?nafid=22" class="answerlink">Samba</a> shares to get at my network storage.</p>
<p>In general this is fine but I have found one little gotcha if you are using /etc/fstab to mount shares at boot up and the share names in question have spaces in them.</p>
<p>The problem is that spaces are  delimiters in /etc/fstab  and trying to avoid getting the space interpreted by usng quotes or backslashes won’t work with /etc/fstab.</p>
<p>The answer is to use the <a href="http://www.answers.com/topic/octal?nafid=22" class="answerlink">octal</a> code for the <a href="http://www.answers.com/topic/ascii?nafid=22" class="answerlink">ASCII</a> number of the space character. (Wow so much  jargon in one short sentence)</p>
<p>So first here are two lines from an /etc/fstab for mounting two windows shares. The windows shares on a server called nas001 and the share names are “Backup” and “My Documents”</p>
<blockquote><p> # /etc/fstab: static file system information.#<br />
# &lt;file system&gt; &lt;mount point&gt;   &lt;type&gt;  &lt;options&gt;       &lt;dump&gt;  &lt;pass&gt;<br />
//nas001/Backup  /mnt/backup  cifs       credentials=/home/raetsel/creds 0 0<br />
//nas001/My\&#x30;40Documents /mnt/mydocs  cifs       credentials=/home/raetsel/creds 0 0</p></blockquote>
<p>So after the comments the first line shows mounting a share without a space, the second line shows mounting a share with a space where space is replaced with \&#x30;40</p>
<p>So what’s with \&#x30;40?  Well  the  and a three digit code is interpreted as an ASCII value of a character in  octal (base 8).</p>
<p>In an Linux command shell type <b>man ascii</b> to see a list ofASCII codes and their octal, decimal and <a href="http://www.answers.com/topic/hexadecimal?nafid=22" class="answerlink">hexadecimal</a> equivalents.</p>
<p>Space is decimal 32 which is octal 40 ( but we need 3 digits for the interpretation to work so it is 040)</p>
<p>In a similar vein \134 is the octal code for a \ backslash so if you want to have a domain username pair in  the options of the line in <a href="http://www.answers.com/topic/fstab?nafid=22" class="answerlink">fstab</a> you could do it with username=mydomain\134raetsel</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/raetsel.wordpress.com/54/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/raetsel.wordpress.com/54/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/raetsel.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/raetsel.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/raetsel.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/raetsel.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/raetsel.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/raetsel.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/raetsel.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/raetsel.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/raetsel.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/raetsel.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=raetsel.wordpress.com&blog=319087&post=54&subd=raetsel&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://raetsel.wordpress.com/2008/02/02/samba-shares-spaces-and-fstab-with-a-bit-of-octal-thrown-in/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>