<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet type='text/xsl' href='http://klo-2k.spaces.live.com/mmm2008-07-24_12.50/rsspretty.aspx?rssquery=en-US;http%3a%2f%2fklo-2k.spaces.live.com%2ffeed.rss' version='1.0'?><rss version="2.0" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:msn="http://schemas.microsoft.com/msn/spaces/2005/rss" xmlns:live="http://schemas.microsoft.com/live/spaces/2006/rss" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Kok-Yan's blog</title><description /><link>http://klo-2k.spaces.live.com/</link><language>en-US</language><pubDate>Mon, 18 Aug 2008 07:30:36 GMT</pubDate><lastBuildDate>Mon, 18 Aug 2008 07:30:36 GMT</lastBuildDate><generator>Microsoft Spaces v1.1</generator><docs>http://www.rssboard.org/rss-specification</docs><ttl>60</ttl><live:identity><live:id>2914445286370036327</live:id><live:alias>klo-2k</live:alias></live:identity><image><title>Kok-Yan's blog</title><url>http://byfiles.storage.live.com/y1pxjnZtfaIydUjDR-YBFXA8J_4AwLVLqu6VpJVo2A32PvYtNvi4GI_xpO7nT1ZV1f3</url><link>http://klo-2k.spaces.live.com/</link></image><cf:listinfo><cf:group ns="http://schemas.microsoft.com/live/spaces/2006/rss" element="typelabel" label="Type" /><cf:group ns="http://schemas.microsoft.com/live/spaces/2006/rss" element="tag" label="Tag" /><cf:group element="category" label="Category" /><cf:sort element="pubDate" label="Date" data-type="date" default="true" /><cf:sort element="title" label="Title" data-type="string" /><cf:sort ns="http://purl.org/rss/1.0/modules/slash/" element="comments" label="Comments" data-type="number" /></cf:listinfo><item><title>The Secret Life of the American Teenager</title><link>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!572.entry</link><description>&lt;div style="text-align:center"&gt;
	&lt;a href="http://www.mininova.org/search/?search=The Secret Life of the American Teenager"&gt;&lt;img src="http://img244.imageshack.us/img244/5987/titleow5.png" alt="The Secret Life of the American Teenager title screen"&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;p&gt;
	If you like watching TV shows involving meaningful relationship dramas, &amp;quot;The Secret Life of the American Teenager&amp;quot; is definitely worth watching.

&lt;p&gt;
	You can get more information on the show &lt;a href="http://en.wikipedia.org/wiki/The_Secret_Life_of_the_American_Teenager"&gt;here&lt;/a&gt;, or you can download them &lt;a href="http://www.mininova.org/search/?search=The Secret Life of the American Teenager"&gt;here&lt;/a&gt;.

&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2914445286370036327&amp;page=RSS%3a+The+Secret+Life+of+the+American+Teenager&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=klo-2k.spaces.live.com&amp;amp;GT1=klo-2k"&gt;</description><category>TV</category><comments>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!572.entry#comment</comments><guid isPermaLink="true">http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!572.entry</guid><pubDate>Wed, 13 Aug 2008 15:46:39 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://klo-2k.spaces.live.com/blog/cns!2872308BEB65CA67!572/comments/feed.rss</wfw:commentRss><wfw:comment>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!572.entry#comment</wfw:comment><dcterms:modified>2008-08-13T15:46:39Z</dcterms:modified></item><item><title>A reminder to myself</title><link>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!565.entry</link><description>&lt;div&gt;
&lt;pre style="margin:1em;font-size:8pt;color:rgb(0, 0, 0)"&gt;This is a message written for myself, may the wise advise and rebuke my words.

I have loved, but yet my heart is still broken.
I have worked, but yet achieved nothing.
I have slept, but yet I'm still restless.
I have been fed, but yet I'm still hungry.

Life is full of disappointments, but...

Treasure every moment you have, for happiness never last.
Seek wisdom before the night is upon you, for the ensuing pain will disable you;
Trust and have faith, for many questions will bring sorrow,
Be careful and concise with words, for fools of fools speak quickly and verbosely,
Choose honorable actions over words, for a picture is worth a thousand words,
Be honest and earnest, for deceptions will not go unpunished,
Learn from disappointments, for you will gain invaluable experiences.

Without guidance from the wise, you will be condemned for eternity.
&lt;/pre&gt;
&lt;/div&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2914445286370036327&amp;page=RSS%3a+A+reminder+to+myself&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=klo-2k.spaces.live.com&amp;amp;GT1=klo-2k"&gt;</description><category>Tips</category><comments>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!565.entry#comment</comments><guid isPermaLink="true">http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!565.entry</guid><pubDate>Wed, 13 Aug 2008 10:18:51 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://klo-2k.spaces.live.com/blog/cns!2872308BEB65CA67!565/comments/feed.rss</wfw:commentRss><wfw:comment>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!565.entry#comment</wfw:comment><dcterms:modified>2008-08-13T10:18:51Z</dcterms:modified></item><item><title>Boston Typewriter Orchestra</title><link>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!564.entry</link><description>&lt;div style="text-align:center"&gt;
	&lt;a href="http://www.bostontypewriterorchestra.com/"&gt;&lt;img src="http://img150.imageshack.us/img150/7192/btoheaderel5.png" alt="Boston Typewriter Orchestra - click to go to BTO's website"&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;p&gt;
	If you like listening to weird sounds, the Boston Typewriter Orchestra is surely up your road.

&lt;p&gt;
	They are a group of people who use old typewritters to make really interesting rhythmic beats.  You can check out their website &lt;a href="http://www.bostontypewriterorchestra.com/"&gt;here&lt;/a&gt; and get some audio samples &lt;a href="http://www.bostontypewriterorchestra.com/index.php?option=com_content&amp;amp;task=view&amp;amp;id=36&amp;amp;Itemid=43"&gt;here&lt;/a&gt;.
&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2914445286370036327&amp;page=RSS%3a+Boston+Typewriter+Orchestra&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=klo-2k.spaces.live.com&amp;amp;GT1=klo-2k"&gt;</description><category>Music</category><comments>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!564.entry#comment</comments><guid isPermaLink="true">http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!564.entry</guid><pubDate>Sat, 09 Aug 2008 16:00:15 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://klo-2k.spaces.live.com/blog/cns!2872308BEB65CA67!564/comments/feed.rss</wfw:commentRss><wfw:comment>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!564.entry#comment</wfw:comment><dcterms:modified>2008-08-09T16:00:15Z</dcterms:modified></item><item><title>A must-see lecture on how you should live your life</title><link>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!556.entry</link><description>&lt;p&gt;
	I must admit, the past week had been very difficult and I was deeply upset by a chain of events that I cannot comprehend at the time.  The following lecture allowed me to see the reasons behind those events and have changed my view on the situation entirely, and also life in general, for the better.

&lt;p&gt;
	The lecture was given by professor Randy Pausch in September 2007 (after he had been diagnosed with terminal cancer) and is titled &amp;quot;Really Achieving Your Childhood Dreams.&amp;quot;.  In the lecture, he talks about his own life and his life philosophies, and is deeply meaningful and very positive.

&lt;p&gt;
	Please spend some time watching the video and looking at the &lt;a href="http://download.srv.cs.cmu.edu/~pausch/Randy/Randy/pauschlastlecturelowresolution.ppt" title="Download slides"&gt;slides&lt;/a&gt; - I'm sure you'll find something really positive from it.

&lt;div style="text-align:center;margin-bottom:1em"&gt;
	
		
		
		
		
	
&lt;/div&gt;
&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2914445286370036327&amp;page=RSS%3a+A+must-see+lecture+on+how+you+should+live+your+life&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=klo-2k.spaces.live.com&amp;amp;GT1=klo-2k"&gt;</description><category>Tips</category><comments>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!556.entry#comment</comments><guid isPermaLink="true">http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!556.entry</guid><pubDate>Mon, 28 Jul 2008 23:17:08 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://klo-2k.spaces.live.com/blog/cns!2872308BEB65CA67!556/comments/feed.rss</wfw:commentRss><wfw:comment>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!556.entry#comment</wfw:comment><dcterms:modified>2008-07-28T23:22:11Z</dcterms:modified></item><item><title>Unsure messages</title><link>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!555.entry</link><description>&lt;p&gt;
	I don't usually write about personal stuff on here but recent events has taught me to never forget a very important rule - if you are not sure about saying something, don't say it - no exceptions.

&lt;p&gt;
	The last 2 words &amp;quot;no exceptions&amp;quot; are &lt;em&gt;very&lt;/em&gt; important; the last time this happened, I managed to refrain from pressing the &amp;quot;send&amp;quot; button and I was glad I did that.  This time round, I let one such message slip through and it made a simple situation really complicated, and may have far-reaching and tremendous consequences because of this.

&lt;p&gt;
	So please, for everyone who is reading this, if you can't refrain from writing that email, at least save whatever you're planning to send until the next morning.  Think about it, think some more, and delete / archive it - but &lt;em&gt;never&lt;/em&gt; send it.

&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2914445286370036327&amp;page=RSS%3a+Unsure+messages&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=klo-2k.spaces.live.com&amp;amp;GT1=klo-2k"&gt;</description><category>Tips</category><comments>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!555.entry#comment</comments><guid isPermaLink="true">http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!555.entry</guid><pubDate>Wed, 23 Jul 2008 22:16:36 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://klo-2k.spaces.live.com/blog/cns!2872308BEB65CA67!555/comments/feed.rss</wfw:commentRss><wfw:comment>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!555.entry#comment</wfw:comment><dcterms:modified>2008-07-23T22:16:36Z</dcterms:modified></item><item><title>BSG Toaster</title><link>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!554.entry</link><description>&lt;div style="text-align:center"&gt;
	&lt;img src="http://img293.imageshack.us/img293/2120/bsgtoasterko6.png" alt="BSG Toaster"&gt;
&lt;/div&gt;
&lt;p&gt;
	Lol, this just cracked me up when I saw it.

&lt;p&gt;
	It is actually availiable &lt;a href="http://www.nbcuniversalstore.com/detail.php?p=61221&amp;amp;v=sci-fi_battlestar-galactica_comic-con" title="Go to NBC Universal store"&gt;for sale at the NBC Universial store&lt;/a&gt;!
&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2914445286370036327&amp;page=RSS%3a+BSG+Toaster&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=klo-2k.spaces.live.com&amp;amp;GT1=klo-2k"&gt;</description><comments>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!554.entry#comment</comments><guid isPermaLink="true">http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!554.entry</guid><pubDate>Thu, 17 Jul 2008 21:49:07 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://klo-2k.spaces.live.com/blog/cns!2872308BEB65CA67!554/comments/feed.rss</wfw:commentRss><wfw:comment>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!554.entry#comment</wfw:comment><dcterms:modified>2008-07-17T21:49:07Z</dcterms:modified></item><item><title>Returning an array from a Bash function</title><link>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!549.entry</link><description>&lt;p&gt;
	For those of you who are still learning Bash (including me...), I'm sure one of the things you would have asked yourself is &amp;quot;How on earth do I return an array from a bash function?&amp;quot;.

&lt;p&gt;
	Well I've written a small script that will explain this:

&lt;div style="margin:1em 2em;padding:4px;background:rgb(238, 238, 238) none repeat scroll 0% 0%;overflow:auto"&gt;
&lt;pre style="margin:0px;font-size:8pt;color:rgb(102, 0, 0)"&gt;#!/bin/bash
IFS=$'\n\t'

function fnGo () {
	array=(
		a	s	d	f	
		&amp;quot;gh ij&amp;quot;	&amp;quot;kl mn&amp;quot;
	)
	echo &amp;quot;${array[*]}&amp;quot;
}

&lt;span style="color:green"&gt;# -------- out - String variable --------&lt;/span&gt;
out=$(fnGo)
echo &amp;quot;\&amp;quot;out\&amp;quot; isn't an array: ${out[1]} - nothing&amp;quot;

echo $'\n'&amp;quot;\&amp;quot;out\&amp;quot; Works with iteration:&amp;quot;
for item in $out; do
	echo &amp;quot;item:&amp;quot;$'\t'&amp;quot;$item&amp;quot;
done

&lt;span style="color:green"&gt;# -------- out2 - An array --------&lt;/span&gt;
out2=($(fnGo))
echo $'\n'&amp;quot;\&amp;quot;out2\&amp;quot; now an array:&amp;quot;
for ((i=0; i&amp;lt;${#out2[*]}; i++)); do
	echo &amp;quot;item $i:&amp;quot;$'\t'&amp;quot;${out2[i]}&amp;quot;
done

echo $'\n'&amp;quot;Though \&amp;quot;out2\&amp;quot; cannot be iterated anymore...:&amp;quot;
for item in $out2; do
	echo &amp;quot;item:&amp;quot;$'\t'&amp;quot;$item&amp;quot;
done
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;
	Basically, it's exactly as you'd do for returning a single value from a function (use echo) - but, you need to make sure you surround the variable with quotes (in the function - &lt;code style="font-size:8pt"&gt;echo &lt;span style="color:red;font-weight:bold"&gt;&amp;quot;&lt;/span&gt;${array[*]}&lt;span style="color:red;font-weight:bold"&gt;&amp;quot;&lt;/span&gt;&lt;/code&gt;), and receive it as an array - &lt;code style="font-size:8pt"&gt;out2=&lt;span style="color:red;font-weight:bold"&gt;(&lt;/span&gt;$(fnGo)&lt;span style="color:red;font-weight:bold"&gt;)&lt;/span&gt;&lt;/code&gt;.

&lt;p&gt;
	Note you can only either choose to use an iterator method (out1), or an addressing method (out2), but not both - run the script and you'll see what I mean.

&lt;p&gt;
	Oh, one more thing (just as a tip for those who don't already know) - pay attention to your IFS variable (which determines how parameters are separated)!  This is especially important if you're taking in quoted (escaped) command-line parameters that may have a space in them (such as file names) - in that case, I normally use &amp;quot;\n&amp;quot;.

&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2914445286370036327&amp;page=RSS%3a+Returning+an+array+from+a+Bash+function&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=klo-2k.spaces.live.com&amp;amp;GT1=klo-2k"&gt;</description><category>Tips</category><comments>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!549.entry#comment</comments><guid isPermaLink="true">http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!549.entry</guid><pubDate>Tue, 01 Jul 2008 15:39:18 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://klo-2k.spaces.live.com/blog/cns!2872308BEB65CA67!549/comments/feed.rss</wfw:commentRss><wfw:comment>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!549.entry#comment</wfw:comment><dcterms:modified>2008-07-01T15:39:18Z</dcterms:modified></item><item><title>MPlayer resume script (v2-alpha)</title><link>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!547.entry</link><description>&lt;div style="text-align:center"&gt;
	&lt;img src="http://img301.imageshack.us/img301/7311/mplayerlogofh9.png" alt="MPlayer logo"&gt;
&lt;/div&gt;
&lt;p&gt;
	A while back &lt;a href="http://klo-2k.spaces.live.com/blog/cns!2872308BEB65CA67!531.entry" title="Blog entry: &amp;quot;MPlayer resume script&amp;quot;"&gt;I attempted to write a wrapper script for mplayer to resume a file&lt;/a&gt;.  Unfortunately, that script was rather limiting where:

&lt;ul&gt;
	&lt;li&gt;File name must be first entry
	&lt;li&gt;You have to manually specify the &amp;quot;-profile&amp;quot; parameter
	&lt;li&gt;You cannot specify a global profile (i.e. the profile you specify only applies to the last file)
&lt;/ul&gt;
&lt;p&gt;
	Now I have &lt;a href="http://cid-2872308beb65ca67.skydrive.live.com/self.aspx/Public/mp" title="Download script"&gt;a new script&lt;/a&gt; that resolves the above issues!  Unfortunately, there are some new issues with the new script:

&lt;ul&gt;
	&lt;li&gt;It's slow at generating command for many files
	&lt;li&gt;Extension-less file won't work...
	&lt;li&gt;Per-file manual profile definition is not yet implemented - though automatic RegExp profile definition is working :-P !
	&lt;li&gt;This script is very much in the alpha stage and more testing is needed - so use at your own risk!
&lt;/ul&gt;
&lt;p&gt;
	Sounds cryptic?  It'll be clearer after I've shown you some examples.


&lt;p&gt;
	As with the previous script, an example usage (we'll assume we're trying to resume a file called &amp;quot;mediaFile.avi&amp;quot; at timecode 300, and the script is named &amp;quot;mp&amp;quot;):&lt;br&gt;

&lt;div style="margin:1em 2em;padding:4px;background:rgb(238, 238, 238) none repeat scroll 0% 0%;overflow:auto"&gt;
&lt;pre style="margin:0px;font-size:8pt;color:rgb(102, 0, 0)"&gt;echo 300 &amp;gt; mediaFile.avi.txt
mp mediaFile.avi
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;
	Also as with the previous script, you'll probably want to enable the &amp;quot;statusline&amp;quot; display by adding &amp;quot;msglevel=statusline=9&amp;quot; into your mplayer config file (at &amp;quot;~/.mplayer/config&amp;quot; | &amp;quot;/etc/mplayer/config&amp;quot;), and ensure &amp;quot;quiet=0&amp;quot;.


&lt;p&gt;
	Now, to use a profile for all files (at the moment, it doesn't matter where you place &amp;quot;-profile&amp;quot; and &amp;quot;-ss&amp;quot; - they just get applied to every file...):&lt;br&gt;

&lt;div style="margin:1em 2em;padding:4px;background:rgb(238, 238, 238) none repeat scroll 0% 0%;overflow:auto"&gt;
&lt;pre style="margin:0px;font-size:8pt;color:rgb(102, 0, 0)"&gt;mp -profile hd file1.avi &amp;quot;file 2.avi&amp;quot;
&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;
	However, the real magic of the v2 script comes into play when you have multiple files, matching multiple profile switching definitions, with different resume files!  For example:&lt;br&gt;

&lt;div style="margin:1em 2em;padding:4px;background:rgb(238, 238, 238) none repeat scroll 0% 0%;overflow:auto"&gt;
&lt;pre style="margin:0px;font-size:8pt;color:rgb(102, 0, 0)"&gt;$ ls -d *.avi*
file1.mts
file1.mts.txt
2x03 SomeEpisode.mkv
2x03 SomeEpisode.mkv.txt
file2.avi

$ less mp
...
profiles=(
	# [PF name]	[RegExp]
	&amp;quot;hd&amp;quot;	&amp;quot;(/|^)[0-9]{,2}x[0-9]{,2} .*\.mkv$&amp;quot;
	# ---- Generic profiles ----
	&amp;quot;.mts&amp;quot;	&amp;quot;\.mts$&amp;quot;
)
...

$ mp file1.mts &amp;quot;2x03 SomeEpisode.mkv&amp;quot; file2.avi
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;
	The script will now use the &amp;quot;.mts&amp;quot; profile for the mts file, the &amp;quot;hd&amp;quot; profile for the .mkv file, the &amp;quot;global&amp;quot; profile for the .avi file, whilst picking the values out of the resume files and resume at the point specified in the .txt files!&lt;br&gt;
	(Just in case you're wondering, the &amp;quot;global&amp;quot; profile is defined in the &amp;quot;$defaultProfile&amp;quot; variable in script.)


&lt;p&gt;
	Anyway, you can get the script &lt;a href="http://cid-2872308beb65ca67.skydrive.live.com/self.aspx/Public/mp" title="Download script"&gt;here&lt;/a&gt;.


&lt;p&gt;
	Of course, if anyone's interested in improving it, they're more than welcome to do so!  Just don't forget to &lt;a href="mailto:kloREMOVETHIS_2k[at]hotmail[dot]com"&gt;email me&lt;/a&gt; a copy!

&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2914445286370036327&amp;page=RSS%3a+MPlayer+resume+script+(v2-alpha)&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=klo-2k.spaces.live.com&amp;amp;GT1=klo-2k"&gt;</description><category>Software</category><comments>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!547.entry#comment</comments><guid isPermaLink="true">http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!547.entry</guid><pubDate>Tue, 01 Jul 2008 02:43:13 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://klo-2k.spaces.live.com/blog/cns!2872308BEB65CA67!547/comments/feed.rss</wfw:commentRss><wfw:comment>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!547.entry#comment</wfw:comment><dcterms:modified>2008-07-01T02:48:01Z</dcterms:modified></item><item><title>Restoring SMB sharing on XP</title><link>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!541.entry</link><description>&lt;p&gt;
	A couple months ago, my brother's PC suddenly stopped sharing files via SMB (port 445).  Since my brother told me he hasn't done anything, I was a bit mystified as to what exactly is going on.

&lt;p&gt;
	Initially I though it was a firewall problem - so I checked the firewall config and tried to access the share from localhost (on his PC), which failed as if nothing is shared (i.e. &amp;quot;net view \\127.0.0.1&amp;quot; just times out).  I then tried &amp;quot;netstat -an&amp;quot; to see if the SMB server is actually listening for a connection, and it turns out nothing is listening on port 445!

&lt;p&gt;
	A restart of lanmanserver and lanmanworkstation (services) and a reboot didn't help, so in a last ditch attempt to get &lt;em&gt;something&lt;/em&gt; shared I enabled NetBIOS over TCP/IP, which seems to have done the trick (i.e. I can now access the shares).  However, port 445 is still no where to be seen in &amp;quot;netstat -an&amp;quot;...

&lt;p&gt;
	After a lot of searching on Google, I found &lt;a href="http://support.microsoft.com/kb/946937/en-us" title="support.microsoft.com - &amp;quot;Network Location Cannot be Reached&amp;quot; when accessing shares" style="text-decoration:underline"&gt;this article&lt;/a&gt; which more less describes the problem I've been having.

&lt;p&gt;
	After turning off NetBT, applying the registry fix (adding HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters:SmbDeviceEnabled = 1) and rebooting (I had also re-installed &amp;quot;File and Printer sharing&amp;quot; at the time), the shares were now accessible again via port 445.

&lt;p&gt;
	Unfortunately, I never got to the bottom of what caused this problem - seeing it wasn't simply a missing registry value, as all my other systems don't have the SmbDeviceEnabled value.  But I guess I can consider this one being resolved via a work-around as sharing is back to normal...
&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2914445286370036327&amp;page=RSS%3a+Restoring+SMB+sharing+on+XP&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=klo-2k.spaces.live.com&amp;amp;GT1=klo-2k"&gt;</description><category>Tips</category><comments>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!541.entry#comment</comments><guid isPermaLink="true">http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!541.entry</guid><pubDate>Fri, 27 Jun 2008 06:22:09 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://klo-2k.spaces.live.com/blog/cns!2872308BEB65CA67!541/comments/feed.rss</wfw:commentRss><wfw:comment>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!541.entry#comment</wfw:comment><dcterms:modified>2008-06-27T06:22:09Z</dcterms:modified></item><item><title>Re-partitioning Xubuntu</title><link>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!533.entry</link><description>
&lt;p style="font-style:italic;color:green"&gt;
	Note: if you prefer the bare-essential steps and code, please jump straight to the &amp;quot;&lt;a style="text-decoration:underline" href="#TheRepartitionProcess" title="Go to sub-section &amp;quot;The re-partition process&amp;quot;"&gt;The re-partition process&lt;/a&gt;&amp;quot; section.

&lt;p&gt;
	Having used Xubuntu for a while now on my transition test rig, I've decided to re-partition the HDD to better suit my needs.  Here's why I'm doing this:

&lt;ul&gt;
	&lt;li&gt;&lt;span style="font-weight:bold"&gt;Data security&lt;/span&gt; - Not encryption, but rather to ensure the data is (most likely) safe on an OS re-installation
	&lt;li&gt;&lt;span style="font-weight:bold"&gt;The default swap partition is not flexible&lt;/span&gt; - It always takes up space even when you don't need it to
	&lt;li&gt;&lt;span style="font-weight:bold"&gt;Makes backup easier&lt;/span&gt; - I can simply image the small OS partitions and back them up onto several DVDs
&lt;/ul&gt;
&lt;p&gt;
	However, the main drawback (and my original reason for not having a separate data partition) is that your HDD's capacity is effectively reduced (Data = HDD - OS - Swap), and not to mention when your OS partition runs out of your space, you're boned (alright, I know what you're thinking, but let's not get carried away with hacks like creating symbolic links to the data partition...).

&lt;p&gt;
	First thing first, let's figure out what the setup should look like and how much space we need, then we can explore different options when we encounter them.



&lt;h3 style="margin-top:2em"&gt;Partition, swap and hibernation config&lt;/h3&gt;
&lt;p&gt;
	As much I want to make a complete transition over to Linux, there are some situations where Windows is required (like certain applications and firmware updates), so we need a Windows partition.

&lt;p&gt;
	The best way to judge how much space is required is to look at the existing space usage of &amp;quot;%SystemRoot%&amp;quot; and &amp;quot;%ProgramFiles%&amp;quot; - you can use a tool like &amp;quot;diruse&amp;quot; (from the &lt;a style="text-decoration:underline" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=49ae8576-9bb9-4126-9761-ba8011fabf38&amp;amp;DisplayLang=en" title="Link to Windows XP support tools' download page"&gt;Windows XP support tools&lt;/a&gt;) or folder properties in explorer.exe...

&lt;p&gt;
	&lt;span style="font-weight:bold"&gt;Windows:&lt;/span&gt; In a clean(ish) install of XP SP3, %SystemRoot% + %ProgramFiles% comes to about 2.7 GiB (say, 3GiB), and allowing 1 GiB each (yeah, I know it's rather generous) for MS Office, IDEs, .NET, JDK/JRE and AutoRoute the minimum size so far comes to about 8 GiB.  Adding a 15% defrag free space requirement, overhead for old (un)installation files, system restore files, pagefile.sys, hiberfil.sys, and some free space, the minimum size for the Windows partition comes to 12 GiB (which also fits nicely onto 3 DVDs when imaged).

&lt;p&gt;
	It is worth point out that if you have a lot of RAM and want to hibernate your Windows session, you'd obviously want more space to accommodate hiberfil.sys.  A safe suggestion would be the next multiple of 4, say, 16 GiB (if you have 3 GiB of RAM) (to fit onto 4 DVDs).  As for page file, it's up to your judgement / Windows's to determine how much is needed - and if you have a second HDD, put the page file there instead.

&lt;p&gt;
	&lt;span style="font-weight:bold"&gt;Linux:&lt;/span&gt; As for the Linux partition, it's a little bit more difficult to estimate (seeing I haven't really used it for that long) - but base install rounds up to about 3 GiB.  For now, I've assigned 16 GiB to it as I plan on installing some of the software above using WINE (like MS Office), OpenOffice, IDEs.  Though I'd probably use a 12 GiB partition when I partition my main system - but I'll just have to wait and see how it goes.

&lt;p&gt;
	As per the Xubuntu default setup, the OS(es) should reside on a primary partition of its own, with the rest being on extended, logical partitions - you can only have up to 4 primary partitions on a volume.

&lt;p&gt;
	As for swap and hibernation (suspend to disk), I've opted for a 512 MiB swap file and a 512 MiB swap partition dedicated for hibernation, for the 512 MiB of RAM (though there are usage problems with this setup - I'll talk about that next).

&lt;p&gt;
	The reason behind using a swap file is because it is more flexible (can be resized dynamically) with no reported performance difference under the 2.6 kernel comparing to a swap partition.

&lt;p&gt;
	As for the swap partition, it is used because there doesn't seem to be a way to configure Xubuntu's in-kernel hibernation implementation to use a hibernation file.  The main problem with this setup is that hibernation would fail if the entire swap file had been filled and overflowed onto the hibernation swap partition.  Unfortunately, &lt;span style="font-style:italic"&gt;swapoff&lt;/span&gt;-ing the swap partition will result in a hibernation failure.

&lt;p&gt;
	&lt;del style="color:grey"&gt;
	The only usable hack around the the filled swap file problem is to run &lt;span style="font-style:italic"&gt;swapoff&lt;/span&gt; after boot &lt;em&gt;and&lt;/em&gt; resume from hibernation, and &lt;span style="font-style:italic"&gt;swapon&lt;/span&gt; just before hibernation.  Unfortunately, I was not able to find a way to do swapoff after resuming from hibernation (I'd welcome any suggestions on this!) - I could use upstart on boot for swapoff and modify &amp;quot;/usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux&amp;quot; to run swapon (this is used by GDM (and the logout GUI) to hibernate), but I still need to run swapoff on resume from hibernation...  However, saying that, you could modify and use &amp;quot;/etc/acpi/hibernate.sh&amp;quot; to do the swapon and swapoff as the script stops at &amp;quot;echo -n &amp;quot;disk&amp;quot; &amp;gt;/sys/power/state&amp;quot; and resumes execution afterwards on wake.
	&lt;/del&gt;

&lt;p&gt;
	&lt;del style="color:grey"&gt;
	The only command I haven't had time to explore is &amp;quot;/usr/sbin/pmi&amp;quot; (called with parameters &amp;quot;action [hibernate|sleep]&amp;quot;) - I found this in gdmsetup --&amp;gt; &amp;quot;Edit Commands...&amp;quot;.
	&lt;/del&gt;

&lt;p style="margin-left:2em;margin-right:2em"&gt;
	&lt;span style="font-weight:bold;font-style:italic"&gt;Update: 2008-05-27 @ 03:09&lt;/span&gt;&lt;br&gt;
	You can use &amp;quot;pmi&amp;quot; to put your system to sleep / hibernation &lt;em&gt;and&lt;/em&gt; be able to do swapon and swapoff at the appropriate time - just do swapon before calling pmi, and swapoff after, since pmi doesn't detach itself.  I'll post some scripts on how to do this later.

&lt;p&gt;
	Hacks aside, there are actually solutions to enable proper hibernation to a file - such as &lt;a style="text-decoration:underline" href="http://www.tuxonice.net/" title="Go to TuxOnIce's website"&gt;TuxOnIce&lt;/a&gt;, but it requires patching and re-compilation of the kernel - which is something I don't plan on doing in this project.

&lt;p&gt;
	While we're (kinda) still on the subject on partitions, there is something that can resolve the issues with partition sizes - LVM (Logical Volume Manager).  In theory, pretty much everything (except &amp;quot;/boot&amp;quot;) &lt;a style="text-decoration:underline" href="http://www.the-infinite.org/archive/docs/lvm/howto-boot-off-root-lv.txt" title="How to boot your root FS off LVM"&gt;can be setup to use LVM&lt;/a&gt;, but I've decided against it because:

	&lt;ul&gt;
		&lt;li&gt;My inexperience to Linux - I think it's best to keep it simple at this stage
		&lt;li&gt;Compatibility - LVM volumes &lt;a style="text-decoration:underline" href="http://www.fs-driver.org/faq.html#not_sup_feat" title="Ext2 Installable File System for Windows FAQ"&gt;cannot be read by the &amp;quot;Ext2 Installable File System for Windows&amp;quot; FS driver&lt;/a&gt;
		&lt;li&gt;Reliability - A disk failure or (somehow) a LVM Volume Group corruption would be disastrous
		&lt;li&gt;Performance - Since the data goes through another abstract layer, there may be issues there
	&lt;/ul&gt;
&lt;p&gt;
	For now, I'll leave LVM alone until I need a heavy-duty file server with RAID (or equivalent) that runs only on Linux.


&lt;h3 style="margin-top:2em"&gt;File system&lt;/h3&gt;
&lt;p&gt;
	So far, we've decided on the partition configuration and now, it's time to choose the file systems.

&lt;p&gt;
	Since the aim of this project was to re-partition the drive, I've decided to stick with Ext3 in Linux as I don't see any benefits in using another FS for my needs.  As for Windows (XP), it's a no-brainer - NTFS (linux can mount that as ntfs-3g type).

&lt;p&gt;
	I have chosen Ext3 as the file system for the data partition as I will be using Linux primarily, and Windows XP can use the &amp;quot;&lt;a style="text-decoration:underline" href="http://www.fs-driver.org/" title="Go to &amp;quot;Ext2 Installable File System for Windows&amp;quot;'s website"&gt;Ext2 Installable File System for Windows&lt;/a&gt;&amp;quot; to access that partition.



&lt;h3 style="margin-top:2em"&gt;Pre-requisites and tools&lt;/h3&gt;
&lt;p&gt;
	We're now almost at the point where we can start re-partitioning the drive - now that we know what the disk setup is going to be.

&lt;p&gt;
	We obviously need a re-partitioning tool, but we'd also need something to backup and restore the drive (in case anything horrible were to happen), and somewhere to store the HDD images.

&lt;p&gt;
	Not long ago, I came across the &lt;a style="text-decoration:underline" href="http://www.sysresccd.org/Main_Page" title="Go to SystemRescueCd's website"&gt;SystemRescueCd&lt;/a&gt; (possibly on &lt;a style="text-decoration:underline" href="http://www.hak5.org/" title="Go to Hak5's website"&gt;Hak5&lt;/a&gt; or &lt;a style="text-decoration:underline" href="http://www.linux-mag.com/id/3357"&gt;this article&lt;/a&gt; on linux-mag.com (free subscription required) - can't remember exactly which...) which demoed the imaging and bare-metal restore capability of the live CD.

&lt;p&gt;
	As well as the partimage tool on the live CD, it also contains GParted (for re-partitioning) and samba (for smb-based network backups).  But there are &lt;a style="text-decoration:underline" href="http://www.sysresccd.org/Detailed-packages-list" title="SystemRescueCd package list"&gt;so many more tools&lt;/a&gt; on this CD it is &lt;em&gt;definitely&lt;/em&gt; worth keeping in your toolbox.


&lt;h3 style="margin-top:2em"&gt;The re-partition process&lt;/h3&gt;
&lt;p&gt;
	Here's the target partition configurations (for a single HDD setup):

&lt;div style="margin:1em 2em;padding:4px;background:rgb(238, 238, 238) none repeat scroll 0% 50%;overflow:auto"&gt;
&lt;pre style="margin:0px;font-size:8pt;color:rgb(102, 0, 0)"&gt;12GiB NTFS (primary):
	(Windows) C:\

16GiB ext3 (primary):
	(Xubuntu) /

* (extended):
	[*]GiB ext3 (logical):
	/home/[user]/	&lt;span style="color:grey"&gt;# Replace [user] with the users&lt;/span&gt;

	[RAM]GiB swap (logical):
	hibernation &amp;quot;swap&amp;quot; partition == RAM size
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;
	The essential steps of this project are:

&lt;ol&gt;
	&lt;li&gt;Boot into SystemRescueCd
		&lt;ol&gt;
			&lt;li&gt;&lt;span style="font-style:italic"&gt;ifconfig ...&lt;/span&gt; - If you need network access to store the partition image
			&lt;li&gt;&lt;span style="font-style:italic"&gt;mount ...&lt;/span&gt; - Create a mount point to save the drive image
			&lt;li&gt;&lt;span style="font-style:italic"&gt;partimage&lt;/span&gt; - Image the existing OS + Data partition and &lt;strong&gt;note down the partition sizes&lt;/strong&gt;
			&lt;li&gt;&lt;span style="font-style:italic"&gt;startx&lt;/span&gt; - We'll need a GUI
				&lt;ol&gt;
					&lt;li&gt;
						&lt;span style="font-style:italic"&gt;gparted&lt;/span&gt; - Re-size and create partitions&lt;br&gt;
						&lt;ul&gt;
							&lt;li&gt;&lt;strong style="color:red"&gt;IMPORTANT: Note down the existing partition sizes!&lt;/strong&gt; - in case you need to do a restore
							&lt;li&gt;&lt;strong style="color:red"&gt;IMPORTANT: Make sure you have a backup of the partitions!&lt;/strong&gt; - go back to step 3 if you don't
							&lt;li&gt;&lt;strong style="color:red"&gt;IMPORTANT: Keep actions to a minimum!&lt;/strong&gt; - ALL actions will be replayed in the re-partitioning process!
							&lt;li&gt;&lt;strong style="color:red"&gt;IMPORTANT: Keep actions to a minimum!&lt;/strong&gt; - Sorry, I cannot stress this enough - For I've been burnt by it and had to go through a lengthy restore process...
							&lt;li&gt;If you screw up, re-create the size of the original partitions and restore image, then try again
						&lt;/ul&gt;
					
				&lt;/ol&gt;
			
			&lt;li&gt;&lt;span style="font-style:italic"&gt;shutdown -r 0&lt;/span&gt; - Cross your fingers!&lt;br&gt;(note the Xubuntu boot screen will exit with a segfault error, just ignore it for now, will fix later)
		&lt;/ol&gt;
	
	&lt;li&gt;login and gain root access
	&lt;li&gt;&lt;span style="font-style:italic"&gt;dd if=/dev/zero of=/swap bs=1M count=512&lt;/span&gt; - create a 512 MiB swap at /
	&lt;li&gt;&lt;span style="font-style:italic"&gt;mkswap /swap&lt;/span&gt; - Configure the swap file - note we'll edit fstab instead of using swapon to activate it on next boot
	&lt;li&gt;&lt;span style="font-style:italic"&gt;mkdir /mnt/h&lt;/span&gt; - Make a new mount point
	&lt;li&gt;
		&lt;span style="font-style:italic"&gt;fdisk -l&lt;/span&gt; - Note down which partition is for what.  For instance:&lt;br&gt;
&lt;pre style="margin:1em 2em;padding:4px;background:rgb(238, 238, 238) none repeat scroll 0% 50%;overflow:auto;font-size:8pt;color:rgb(102, 0, 0)"&gt;Disk /dev/sda: 60.0 GB, 60000000000 bytes
255 heads, 63 sectors/track, 7294 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x########

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        2089    16779861   83  Linux
/dev/sda2            2090        7294    41809162+   5  Extended
/dev/sda5            7231        7294      514080   82  Linux swap / Solaris
/dev/sda6            2090        7230    41295019+  83  Linux
&lt;/pre&gt;
	
	&lt;li&gt;
		&lt;span style="font-style:italic"&gt;cd /dev/disk/by-uuid/ &amp;amp;&amp;amp; ls -lFa&lt;/span&gt; - Take note of uuids and the partitions they point to - we'll need this next.  For instance:&lt;br&gt;
&lt;pre style="margin:1em 2em;padding:4px;background:rgb(238, 238, 238) none repeat scroll 0% 50%;overflow:auto;font-size:8pt;color:rgb(102, 0, 0)"&gt;6db5296a-0bf4-4773-a9f5-22eb1abbd066 -&amp;gt; ../../sda1
bc3216cf-32f3-49ff-87af-6e2fdb7ce376 -&amp;gt; ../../sda6
c9e7c3c8-6f49-44be-9cdf-1387ce320b27 -&amp;gt; ../../sda5
&lt;/pre&gt;
	
	&lt;li&gt;&lt;span style="font-style:italic"&gt;cd /etc/ &amp;amp;&amp;amp; cp fstab fstab.bak &amp;amp;&amp;amp; vim /etc/fstab&lt;/span&gt; - Backup then edit fstab according to fdisk and ls output, don't forget to change the &amp;quot;&lt;span style="color:blue"&gt;pass&lt;/span&gt;&amp;quot; number for disk check - see man fstab for more information.  The &lt;strong&gt;edited&lt;/strong&gt; part of fstab should look something like:&lt;br&gt;
&lt;pre style="margin:1em 2em;padding:4px;background:rgb(238, 238, 238) none repeat scroll 0% 50%;overflow:auto;font-size:8pt;color:rgb(102, 0, 0)"&gt;&lt;span style="color:grey"&gt;# /etc/fstab: static file system information.
#
# &amp;lt;file system&amp;gt; &amp;lt;mount point&amp;gt;   &amp;lt;type&amp;gt;  &amp;lt;options&amp;gt;       &amp;lt;dump&amp;gt;  &amp;lt;pass&amp;gt;
...
# -------- HDD mounts --------
# /dev/sda1 - avoid mounting it as /c ...&lt;/span&gt;
UUID=6db5296a-0bf4-4773-a9f5-22eb1abbd066       /       ext3    defaults,errors=remount-ro      0       1
&lt;span style="color:grey"&gt;# /dev/sda6 - Home drive - symbolic links are then made from /mnt/h&lt;/span&gt;
UUID=bc3216cf-32f3-49ff-87af-6e2fdb7ce376       /mnt/h  ext3    defaults,errors=remount-ro      0       &lt;span style="font-weight:bold;color:blue"&gt;2&lt;/span&gt;
&lt;span style="color:grey"&gt;#
#
#
# -------- Swap --------&lt;/span&gt;
/swap           none            swap    sw,pri=-1       0       0
&lt;span style="color:grey"&gt;# ---- Update: 2008-05-27 @ 03:09 ----
# You can use &amp;quot;pmi&amp;quot; to do this - you can ignore the swap partition configuration below&lt;/span&gt;
&lt;span style="color:grey;text-decoration:line-through"&gt;# /dev/sda5 - swap partition for hibernation... - hence pri=-2
#UUID=c9e7c3c8-6f49-44be-9cdf-1387ce320b27       none    swap    sw,&lt;span style="font-weight:bold;color:red"&gt;pri=-2&lt;/span&gt;       0       0&lt;/span&gt;
&lt;/pre&gt;
		(Note I've left the other stuff like &amp;quot;proc&amp;quot;, &amp;quot;/dev/scd*&amp;quot; out in the example above - keep them in fstab!)&lt;br&gt;
		&lt;br&gt;
		&lt;del style="color:grey"&gt;As you can see, I've set the hibernation swap partition as &amp;quot;&lt;span style="color:red"&gt;pri=-2&lt;/span&gt;&amp;quot; (i.e. lower than the swap file's) in an attempt to not use it - as mentioned before, I still need a proper workaround for this...&lt;/del&gt; - Use &amp;quot;pmi&amp;quot; instead - see update description above.
	
	&lt;li&gt;
	&lt;span style="font-style:italic"&gt;vim /etc/initramfs-tools/conf.d/resume&lt;/span&gt; - Change the UUID to that of the new &amp;quot;swap&amp;quot; partition, e.g.:&lt;br&gt;
&lt;pre style="margin:1em 2em;padding:4px;background:rgb(238, 238, 238) none repeat scroll 0% 50%;overflow:auto;font-size:8pt;color:rgb(102, 0, 0)"&gt;RESUME=UUID=c9e7c3c8-6f49-44be-9cdf-1387ce320b27
&lt;/pre&gt;
	
	&lt;li&gt;&lt;span style="font-style:italic"&gt;update-initramfs -u&lt;/span&gt; - Update (fixes) the boot screen
	&lt;li&gt;&lt;span style="font-style:italic"&gt;shutdown -r 0&lt;/span&gt; - Make sure everything still works and boot screen fixed
	&lt;li&gt;Log back in as root
	&lt;li&gt;
		&lt;span style="font-style:italic"&gt;swapon -s&lt;/span&gt; - Check the output to ensure there is 1 mounted swap:&lt;br&gt;
&lt;pre style="margin:1em 2em;padding:4px;background:rgb(238, 238, 238) none repeat scroll 0% 50%;overflow:auto;font-size:8pt;color:rgb(102, 0, 0)"&gt;Filename    Type       Size    Used    Priority
/swap       file       524280  38216   -1
&lt;/pre&gt;
	
	&lt;li&gt;&lt;span style="font-style:italic"&gt;cp -r /home /mnt/h/home&lt;/span&gt; - Copy the existing home directory
	&lt;li&gt;&lt;span style="font-style:italic"&gt;mv /home /home_old&lt;/span&gt; - Make way for the new home
	&lt;li&gt;&lt;span style="font-style:italic"&gt;cd /mnt/ &amp;amp;&amp;amp; chown -R [user]:[group] h&lt;/span&gt; - Makes the new user own everything in the data partition (since I'll be the only one using the data partition for now), then tweak it to your liking...
	&lt;li&gt;&lt;span style="font-style:italic"&gt;ln -s /mnt/h/home /home&lt;/span&gt; - Link the new home in - make sure you use the full path or you'll get link errors.
&lt;/ol&gt;
&lt;p&gt;
	That's it!  Simple eh?  lol.

&lt;hr style="margin-left:1em;margin-right:1em"&gt;
&lt;p&gt;
	Some links to the interesting articles:

&lt;ul&gt;
	&lt;li&gt;&lt;a style="text-decoration:underline" href="http://www.linux.com/feature/118645"&gt;LVM introduction article on linux.com&lt;/a&gt;
	&lt;li&gt;&lt;a style="text-decoration:underline" href="http://www.linux.com/feature/113956"&gt;Swap file addition article on linux.com&lt;/a&gt;
	&lt;li&gt;&lt;a style="text-decoration:underline" href="http://www.linux-mag.com/id/3357"&gt;System backup and restore using partimage (SystemRescueCd)&lt;/a&gt;
	&lt;li&gt;&lt;a style="text-decoration:underline" href="https://bugs.launchpad.net/ubuntu/+source/usplash/+bug/205990"&gt;Boot screen &amp;quot;segfault&amp;quot; problem resolution&lt;/a&gt;
&lt;/ul&gt;
&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2914445286370036327&amp;page=RSS%3a+Re-partitioning+Xubuntu&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=klo-2k.spaces.live.com&amp;amp;GT1=klo-2k"&gt;</description><category>Tips</category><comments>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!533.entry#comment</comments><guid isPermaLink="true">http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!533.entry</guid><pubDate>Mon, 19 May 2008 19:34:44 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://klo-2k.spaces.live.com/blog/cns!2872308BEB65CA67!533/comments/feed.rss</wfw:commentRss><wfw:comment>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!533.entry#comment</wfw:comment><dcterms:modified>2008-05-27T02:36:27Z</dcterms:modified></item><item><title>MPlayer resume script</title><link>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!531.entry</link><description>&lt;div style="text-align:center"&gt;
	&lt;img src="http://img301.imageshack.us/img301/7311/mplayerlogofh9.png" alt="MPlayer logo"&gt;
&lt;/div&gt;
&lt;p&gt;
	I might as well share this - below are 2 scripts I've written for &lt;a href="http://www.mplayerhq.hu/design7/dload.html" title="Link to MPlayer download"&gt;MPlayer&lt;/a&gt; to resume playback at a position saved in a text file.&lt;br&gt;
	(Note the scripts below also attempt to load the &amp;quot;global&amp;quot; profile - I use it for chaining profiles - i.e. I have other profiles that &lt;em&gt;includes&lt;/em&gt; &amp;quot;global&amp;quot;.)

&lt;p&gt;
	It works by appending the &amp;quot;-ss&amp;quot; parameter to mplayer when a resume file, in the format &amp;quot;[mediaFileName.ext].txt&amp;quot; is detected.

&lt;p&gt;
	An example usage (we'll assume we're trying to resume a file called &amp;quot;mediaFile.avi&amp;quot; at timecode 300, and the script is named &amp;quot;mp&amp;quot;):&lt;br&gt;

&lt;div style="margin:1em 2em;padding:4px;background:rgb(238, 238, 238) none repeat scroll 0% 0%;overflow:auto"&gt;
&lt;pre style="margin:0px;font-size:8pt;color:rgb(102, 0, 0)"&gt;echo 300&amp;gt;mediaFile.avi.txt
mp mediaFile.avi
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;
	You'll probably want to enable the &amp;quot;statusline&amp;quot; display by adding &amp;quot;msglevel=statusline=9&amp;quot; into your mplayer config file (at &amp;quot;%ProgramFiles%/MPlayer/mplayer/config&amp;quot; | &amp;quot;~/.mplayer/config&amp;quot; | &amp;quot;/etc/mplayer/config&amp;quot;), and ensure &amp;quot;quiet=0&amp;quot;.&lt;br&gt;

&lt;p&gt;
	&lt;span style="font-weight:bold"&gt;Windows&lt;/span&gt; installation:&lt;br&gt;
	0 - Get a copy of &amp;quot;grep&amp;quot; and &amp;quot;head&amp;quot; somewhere - such as &lt;a href="http://unxutils.sourceforge.net/" title="Go to UnxUtils website"&gt;UnxUtils&lt;/a&gt;.&lt;br&gt;
	1 - Save script as mp.bat (or something simple to type)&lt;br&gt;
	2 - Put into a directory in your %PATH% env. variable.&lt;br&gt;
	3 - Play files using the &amp;quot;mp&amp;quot; command, and create resume file as specified in &lt;a href="#mplayer_example"&gt;example above&lt;/a&gt;.

&lt;div style="margin:1em 2em;padding:4px;background:rgb(238, 238, 238) none repeat scroll 0% 0%;overflow:auto"&gt;
&lt;pre style="margin:0px;font-size:8pt;color:rgb(102, 0, 0)"&gt;@echo off
setlocal ENABLEDELAYEDEXPANSION

set mplayerbin=%ProgramFiles%\MPlayer\mplayer.exe
set cli=

FOR /F &amp;quot;usebackq delims==&amp;quot; %%c IN (`echo %*^|grep -c -i &amp;quot; \-profile &amp;quot;`) DO set count=%%c
if !count! == 0 (
	set cli=&amp;quot;!mplayerbin!&amp;quot; -profile global %*
) else (
	set cli=&amp;quot;!mplayerbin!&amp;quot; %*
)

REM Resume stuff - this'd only work if filename is specified as first argument.
FOR /F &amp;quot;usebackq delims==&amp;quot; %%c IN (`echo %*^|grep -c -i &amp;quot;\-ss&amp;quot;`) DO set count=%%c
set resumeFile=%1.txt
if exist &amp;quot;!resumeFile!&amp;quot; (
	if !count! == 0 (
		FOR /F &amp;quot;usebackq delims==&amp;quot; %%c IN (`head -n 1 &amp;quot;!resumeFile!&amp;quot;`) DO set pos=%%c
		set cli=!cli! -ss !pos!
	)
)

echo ^&amp;gt;^&amp;gt;^&amp;gt;^&amp;gt; !cli!
!cli!

endlocal
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;
	&lt;span style="font-weight:bold"&gt;Linux&lt;/span&gt; installation:&lt;br&gt;
	1 - Save script as mp (or something simple to type)&lt;br&gt;
	2 - Put into a directory in your $PATH env. variable.&lt;br&gt;
	2 - chmod +x mp&lt;br&gt;
	3 - Play files using the &amp;quot;mp&amp;quot; command, and create resume file as specified in &lt;a href="#mplayer_example"&gt;example above&lt;/a&gt;.

&lt;div style="margin:1em 2em;padding:4px;background:rgb(238, 238, 238) none repeat scroll 0% 0%;overflow:auto;height:32em"&gt;
&lt;pre style="margin:0px;font-size:8pt;color:rgb(102, 0, 0)"&gt;#!/bin/bash

# Script to launch mplayer and resume if [filename.ext].txt exists
# TODO - Integrate the new parser into the old windows script below

mplayerbin=mplayer

# Unfortunately, something simple like: for i in $*; do echo $i; done
# doesn't work with spaces (even when it's escaped) - it'd separate parameters out by space...
# This also assumes the first argument with a space is the filename
argc=$#
i=0
while ((i &amp;lt; argc)); do
	# escape spaces - can't use &amp;lt;code&amp;gt;echo $1|grep &amp;quot;\ &amp;quot;&amp;lt;/code&amp;gt; or it'll display the params...
	if [ &amp;quot;$(echo $1|grep -cE &amp;quot;[ ()$]&amp;quot;)&amp;quot; == 1 ]; then	# Any others?
		argv[$i]=\&amp;quot;$1\&amp;quot;
	else
		argv[i]=$1
	fi
	shift; ((i++))
done


cli=${argv[*]}
# Old windows port of the script below
count=$(echo $cli|grep -c -i &amp;quot; \-profile &amp;quot;)
if [ $count == 0 ]; then
	cli=&amp;quot;$mplayerbin -profile global $cli&amp;quot;
else
	cli=&amp;quot;$mplayerbin $cli&amp;quot;
fi

# Resume stuff - this'd only work if filename is specified as first argument.
count=$(echo $cli|grep -c -i &amp;quot;\-ss&amp;quot;)
resumeFile=&amp;quot;${argv[0]}.txt&amp;quot;
# -f ensures the file (not directory) exist
if [ -f &amp;quot;$resumeFile&amp;quot; ]  &amp;amp;&amp;amp; [ $count == 0 ]; then
	pos=$(head -n 1 &amp;quot;$resumeFile&amp;quot;)
	cli=&amp;quot;$cli -ss $pos&amp;quot;
fi
echo \&amp;gt;\&amp;gt;\&amp;gt;\&amp;gt; $cli
eval $cli
&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;
	There is however a bug in the Windows version due to the use of delayed expansion - if you have a file with an exclamation mark, you'd need to escape it with &amp;quot;^^&amp;quot; (e.g. &amp;quot;^^!&amp;quot;).

&lt;p&gt;
	Also, it'd be a good idea to specify the filename as the first parameter - I haven't done any extension check to figure out which parameter the filename is at.

&lt;p&gt;
	You can find more information about the command-line parameters for MPlayer at:&lt;br&gt;
	&lt;a href="http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html" title="MPlayer command line documentation"&gt;http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html&lt;/a&gt;

&lt;hr style="margin-left:1em;margin-right:1em"&gt;
&lt;p&gt;
	&lt;span style="font-weight:bold;font-style:italic"&gt;Update: 2008-07-10 @ 03:54&lt;/span&gt;&lt;br&gt;
	I've made a new version - v2-alpha.  The new post is &lt;a href="http://klo-2k.spaces.live.com/blog/cns!2872308BEB65CA67!547.entry"&gt;here&lt;/a&gt;

&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2914445286370036327&amp;page=RSS%3a+MPlayer+resume+script&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=klo-2k.spaces.live.com&amp;amp;GT1=klo-2k"&gt;</description><category>Software</category><comments>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!531.entry#comment</comments><guid isPermaLink="true">http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!531.entry</guid><pubDate>Fri, 09 May 2008 08:14:03 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://klo-2k.spaces.live.com/blog/cns!2872308BEB65CA67!531/comments/feed.rss</wfw:commentRss><wfw:comment>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!531.entry#comment</wfw:comment><dcterms:modified>2008-07-01T02:57:28Z</dcterms:modified></item><item><title>XP SP3 is out!</title><link>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!529.entry</link><description>&lt;div style="text-align:center"&gt;
	&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=5B33B5A8-5E76-401F-BE08-1E1555D4F3D4&amp;amp;displaylang=en"&gt;
		&lt;img src="http://img294.imageshack.us/img294/7472/windowsxpct2.png" alt="XP logo"&gt;
	&lt;/a&gt;
&lt;/div&gt;
&lt;p&gt;
	Windows XP Service Pack 3 is out, you can get it at:&lt;br&gt;
	&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=5B33B5A8-5E76-401F-BE08-1E1555D4F3D4&amp;amp;displaylang=en" title="XP SP3 Network Installation Package" style="text-decoration:underline"&gt;http://www.microsoft.com/downloads/details.aspx?FamilyId=5B33B5A8-5E76-401F-BE08-1E1555D4F3D4&amp;amp;displaylang=en&lt;/a&gt;

&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2914445286370036327&amp;page=RSS%3a+XP+SP3+is+out!&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=klo-2k.spaces.live.com&amp;amp;GT1=klo-2k"&gt;</description><category>Software</category><comments>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!529.entry#comment</comments><guid isPermaLink="true">http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!529.entry</guid><pubDate>Wed, 07 May 2008 19:33:42 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://klo-2k.spaces.live.com/blog/cns!2872308BEB65CA67!529/comments/feed.rss</wfw:commentRss><wfw:comment>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!529.entry#comment</wfw:comment><dcterms:modified>2008-05-07T19:35:26Z</dcterms:modified></item><item><title>Synaptic or Aptitude?</title><link>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!526.entry</link><description>&lt;p&gt;
	Short answer: &lt;strong&gt;Aptitude&lt;/strong&gt;!
	
&lt;p&gt;
	Long answer (and the story):&lt;br&gt;
	I was evaluating various video editors for Linux today when I noticed various files weren't being removed after removing &amp;quot;kdenlive&amp;quot; using Synaptic.

&lt;p&gt;
	Here's a list of executables beginning with &amp;quot;k&amp;quot; before installation:

&lt;div style="margin:1em 2em;padding:4px;background:rgb(238, 238, 238) none repeat scroll 0% 50%;overflow:auto"&gt;
&lt;pre style="margin:0px;font-size:8pt;color:rgb(102, 0, 0)"&gt;kbd_mode    kbdrate     kill        killall     killall5    klogd       koi8rxterm 
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;
	And here's the list I got after specifying complete removal of &amp;quot;kdenlive&amp;quot; and &amp;quot;kdenlive-data&amp;quot;:

&lt;div style="margin:1em 2em;padding:4px;background:rgb(238, 238, 238) none repeat scroll 0% 50%;overflow:auto"&gt;
&lt;pre style="margin:0px;font-size:8pt;color:rgb(102, 0, 0)"&gt;kab2kabc                kde-config              kdostartupconfig        kinstalltheme           koi8rxterm
kaddprinterwizard       kded                    kfile                   kioexec                 kpac_dhcp_helper
kbd_mode                kdeinit                 kfmexec                 kio_http_cache_cleaner  ksendbugmail
kbdrate                 kdeinit_shutdown        kgrantpty               kioslave                kshell
kbuildsycoca            kdeinit_wrapper         khotnewstuff            kio_uiserver            kstartupconfig
kcmshell                kde-menu                kill                    klauncher               ktelnetservice
kconf_update            kdesu_stub              killall                 klogd                   ktradertest
kcookiejar              kdontchangethehostname  killall5                kmailservice            kwrapper
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;
	Turns out Synaptic forgot to remove the &amp;quot;kdelibs4c2a&amp;quot; and &amp;quot;kdelibs-data&amp;quot; package...

&lt;p&gt;
	Even after installing &amp;quot;deborphan&amp;quot;, as well as following &lt;a href="http://www.linuxquestions.org/questions/debian-26/apt-get-vs.-aptitude-363365/#post1853010" title="linuxquestions.org: &amp;quot;apt-get vs. aptitude&amp;quot;" style="text-decoration:underline"&gt;this advice&lt;/a&gt; to filter for orphaned packages, Synaptic still didn't present those 2 packages for removal.

&lt;p&gt;
	Aptitude on the other hand took care of all the dependencies on installation &lt;em&gt;and&lt;/em&gt; removes the 2 extra packages upon removal!

&lt;p&gt;
	So next time when you want to install a package using Synaptic, or see a command like:

&lt;div style="margin:1em 2em;padding:4px;background:rgb(238, 238, 238) none repeat scroll 0% 50%;overflow:auto"&gt;
&lt;pre style="margin:0px;font-size:8pt;color:rgb(102, 0, 0)"&gt;&lt;span style="color:rgb(192, 192, 192)"&gt;sudo apt-get update &amp;amp;&amp;amp; &lt;/span&gt;sudo apt-get install &lt;span style="font-style:italic"&gt;some_package&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;
	Make sure you use Aptitude UI or the following command instead, so you can uninstall with Aptitude later:

&lt;div style="margin:1em 2em;padding:4px;background:rgb(238, 238, 238) none repeat scroll 0% 50%;overflow:auto"&gt;
&lt;pre style="margin:0px;font-size:8pt;color:rgb(102, 0, 0)"&gt;&lt;span style="color:rgb(192, 192, 192)"&gt;sudo aptitude update &amp;amp;&amp;amp; &lt;/span&gt;sudo aptitude install &lt;span style="font-style:italic"&gt;some_package&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;
	Note: This was tested on Xubuntu 8.04 so I'm not using an outdated version of Synaptic / apt-get.

&lt;hr style="margin-left:1em;margin-right:1em"&gt;
&lt;p&gt;
	Oh, just in case you are interested in my video editor of choice (for now at least...) - it's &lt;a href="http://www.kdenlive.org/" title="Click to go to Kdenlive's website" style="text-decoration:underline"&gt;Kdenlive&lt;/a&gt;!&lt;br&gt;
	If you want me to explain my decision, drop me a comment.

&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2914445286370036327&amp;page=RSS%3a+Synaptic+or+Aptitude%3f&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=klo-2k.spaces.live.com&amp;amp;GT1=klo-2k"&gt;</description><category>Tips</category><comments>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!526.entry#comment</comments><guid isPermaLink="true">http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!526.entry</guid><pubDate>Sun, 04 May 2008 02:28:23 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://klo-2k.spaces.live.com/blog/cns!2872308BEB65CA67!526/comments/feed.rss</wfw:commentRss><wfw:comment>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!526.entry#comment</wfw:comment><dcterms:modified>2008-05-04T16:10:38Z</dcterms:modified></item><item><title>Save and restore iptables over reboot (making it persistent) using upstart</title><link>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!524.entry</link><description>&lt;p&gt;
	As you may already know, the configurations of &lt;em&gt;iptables&lt;/em&gt; disappears after a reboot.  My solution below is to create 2 scripts to run on shutdown and startup to save and restore the iptables rules.  (Note I'm using upstart as opposed to SysVinit to ensure future compatibility)

&lt;p&gt;
	You'll need to login as root (&amp;quot;su&amp;quot;), then go to &amp;quot;/etc/event.d&amp;quot; and create the following 2 files (name it whatever you want):

&lt;p&gt;&lt;em&gt;iptables_save&lt;/em&gt;:
&lt;div style="margin:1em 2em;padding:4px;background:rgb(238, 238, 238) none repeat scroll 0% 50%;overflow:auto"&gt;
&lt;pre style="margin:0px;font-size:8pt;color:rgb(102, 0, 0)"&gt;&lt;span style="color:green"&gt;# Save the iptables entries on shutdown&lt;/span&gt;

start on runlevel 0	&lt;span style="color:green"&gt;# Shutdown&lt;/span&gt;
start on runlevel 6	&lt;span style="color:green"&gt;# Reboot&lt;/span&gt;

script
	SCRIPTDIR=&amp;quot;/var/tmp/sys&amp;quot;
	SCRIPT=&amp;quot;iptable_rules.txt&amp;quot;
	if ! test -d &amp;quot;$SCRIPTDIR&amp;quot;; then mkdir &amp;quot;$SCRIPTDIR&amp;quot;; fi
	iptables-save &amp;gt; &amp;quot;$SCRIPTDIR/$SCRIPT&amp;quot;
end script
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;em&gt;iptables_restore&lt;/em&gt;:
&lt;div style="margin:1em 2em;padding:4px;background:rgb(238, 238, 238) none repeat scroll 0% 50%;overflow:auto"&gt;
&lt;pre style="margin:0px;font-size:8pt;color:rgb(102, 0, 0)"&gt;&lt;span style="color:green"&gt;# Restores the iptables entries on startup / create secure default if file not present

# Debian doesn't distinguish between 2 --&amp;gt; 5, i.e. == 2&lt;/span&gt;
start on runlevel 2

script
	SCRIPTDIR=&amp;quot;/var/tmp/sys&amp;quot;
	SCRIPT=&amp;quot;iptable_rules.txt&amp;quot;
	if test -f &amp;quot;$SCRIPTDIR/$SCRIPT&amp;quot;; then
		iptables-restore &amp;lt; &amp;quot;$SCRIPTDIR/$SCRIPT&amp;quot;
	else
		&lt;span style="color:green"&gt;# Block * incoming, allow associated outgoing connections&lt;/span&gt;
		
		&lt;span style="color:green"&gt;# Flushes all chains&lt;/span&gt;
		iptables -F
		&lt;span style="color:green"&gt;# Delete all chains&lt;/span&gt;
		iptables -X
		
		&lt;span style="color:green"&gt;# Default policies&lt;/span&gt;
		iptables -P INPUT DROP
		iptables -P FORWARD DROP
		iptables -P OUTPUT DROP
		
		&lt;span style="color:green"&gt;# Allow related connections - new connections are allowed in following block&lt;/span&gt;
		iptables -A INPUT   -m state --state ESTABLISHED,RELATED -j ACCEPT
		iptables -A OUTPUT  -m state --state ESTABLISHED,RELATED -j ACCEPT
		iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
		
		&lt;span style="color:green"&gt;# Allow new connections be made - Allow localhost --&amp;gt; any&lt;/span&gt;
		iptables -A OUTPUT  -m state --state NEW -j ACCEPT
	fi
end script
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;
	The second part of &lt;em&gt;iptables_restore&lt;/em&gt; is meant to restore a set of secure(ish) default rule (as opposed to iptables' default of allowing everything...) if no saved rules exist.  Replace it with your own defaults if mine suck (and drop me a comment saying why!).

&lt;p&gt;
	Please evaluate the script before using it - I've only tried this on my Xubuntu 8.04 setup.

&lt;p&gt;
	As usual, if you have any suggestions / comment about this, I would love to hear from you!

&lt;p&gt;
	Just in case you are interested, here's a great article on linux.com about upstart:&lt;br&gt;
	&lt;a href="http://www.linux.com/feature/125977" title="Linux.com article - &amp;quot;Ubuntu's Upstart event-based init daemon&amp;quot;" style="text-decoration:underline"&gt;http://www.linux.com/feature/125977&lt;/a&gt;

&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2914445286370036327&amp;page=RSS%3a+Save+and+restore+iptables+over+reboot+(making+it+persistent)+using+upstart&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=klo-2k.spaces.live.com&amp;amp;GT1=klo-2k"&gt;</description><category>Tips</category><comments>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!524.entry#comment</comments><guid isPermaLink="true">http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!524.entry</guid><pubDate>Wed, 30 Apr 2008 06:09:37 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://klo-2k.spaces.live.com/blog/cns!2872308BEB65CA67!524/comments/feed.rss</wfw:commentRss><wfw:comment>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!524.entry#comment</wfw:comment><dcterms:modified>2008-04-30T06:14:12Z</dcterms:modified></item><item><title>Windows Command Prompt (cmd) behaviour emulation in Linux terminal (Bash)</title><link>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!521.entry</link><description>&lt;div style="margin-top:1em;text-align:center"&gt;&lt;img src="http://img247.imageshack.us/img247/9594/cmdterminalio2.png" alt="cmd / Terminal"&gt;&lt;/div&gt;
&lt;p style="color:rgb(176, 176, 176);font-style:italic"&gt;
	&lt;span style="font-weight:bold"&gt;Update 2008-03-25 @ 00:32&lt;/span&gt;: This post was originally titled &amp;quot;Emulate Command Prompt (cmd) tab auto-completion behaviour in Linux terminal (Bash)&amp;quot; (originally posted on 2008-03-20 @ 23:45), and have since been updated to cover more grounds.

&lt;p&gt;
	Being a long time Windows command prompt (cmd) user, there are 2 things that the Linux terminal really annoyed me - tab auto-completion and case-sensitivity.

&lt;p&gt;
	For instance, if you have &amp;quot;file-1.txt&amp;quot;, &amp;quot;file-2.txt&amp;quot; and you do &amp;quot;fi[tab]&amp;quot;, you'd get &amp;quot;file-&amp;quot;, instead of &amp;quot;file-1.txt&amp;quot;.  And if you try doing something like &amp;quot;ls -l File*&amp;quot; you wouldn't get anything returned...

&lt;p&gt;
	Luckily, you can change the above behaviour by editing 2 files.



&lt;h4 style="margin-top:2em"&gt;Tab-completion:&lt;/h4&gt;
&lt;p&gt;
	In order to get the windows command prompt's tab-completion behaviour, you can edit / adding the following to &amp;quot;/etc/inputrc&amp;quot; (or &amp;quot;~/.inputrc&amp;quot;):

&lt;div style="margin:1em 2em;padding:4px;background:rgb(238, 238, 238) none repeat scroll 0% 50%;overflow:auto"&gt;
&lt;pre style="margin:0px;font-size:8pt;color:rgb(102, 0, 0)"&gt;&lt;span style="color:green"&gt;# Tab&lt;/span&gt;
TAB: menu-complete
&lt;span style="color:green"&gt;# Shift-Tab (reverse menu-complete)&lt;/span&gt;
&amp;quot;\e[Z&amp;quot;: &amp;quot;\e--\t&amp;quot;

&lt;span style="color:green"&gt;# Ignores the case of the letter&lt;/span&gt;
set completion-ignore-case on
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;
	According to the &lt;a href="http://www.tikirobot.net/wp/2006/03/29/reverse-menu-complete-in-bash/" title="External blog entry: &amp;quot;reverse-menu-complete in bash&amp;quot;" style="text-decoration:underline"&gt;blog entry&lt;/a&gt; where I got this from, the &amp;quot;--&amp;quot; part of the Shift-TAB entry acts as an argument to the menu-complete function.  In this case, it takes the previous entry of menu-complete.

&lt;p&gt;
	Also, to enhance the terminal, you can also make the following amendments:

&lt;div style="margin:1em 2em;padding:4px;background:rgb(238, 238, 238) none repeat scroll 0% 50%;overflow:auto"&gt;
&lt;pre style="margin:0px;font-size:8pt;color:rgb(102, 0, 0)"&gt;&lt;span style="color:green"&gt;# The old style auto-complete (now mapped to Ctrl+space) - so you can still use it...&lt;/span&gt;
Control-SPACE: complete

&lt;span style="color:green"&gt;# Automatically show everything instead of you having to press Ctrl+Space (as configured here) twice...&lt;/span&gt;
set show-all-if-ambiguous on
set show-all-if-unmodified on

&lt;span style="color:green"&gt;# Display a &amp;quot;/&amp;quot; at the end for symlinked directories&lt;/span&gt;
set mark-symlinked-directories on

&lt;span style="color:green"&gt;# Shut the bell up...&lt;/span&gt;
set bell-style none
&lt;/pre&gt;
&lt;/div&gt;


&lt;h4 style="margin-top:2em"&gt;Case-insensitive expansion (&amp;quot;&lt;span style="font-style:italic"&gt;globbing&lt;/span&gt;&amp;quot;):&lt;/h4&gt;
&lt;p&gt;
	If you want &amp;quot;ls -ld File*&amp;quot; to also display &amp;quot;file-1.txt&amp;quot;, &amp;quot;file-2.txt&amp;quot;, as well as &amp;quot;FiLe.txt&amp;quot; and &amp;quot;FILE.txt&amp;quot;, you can add the following to &amp;quot;/etc/bash.bashrc&amp;quot;:

&lt;div style="margin:1em 2em;padding:4px;background:rgb(238, 238, 238) none repeat scroll 0% 50%;overflow:auto"&gt;
&lt;pre style="margin:0px;font-size:8pt;color:rgb(102, 0, 0)"&gt;&lt;span style="color:green"&gt;# Disable case sensitive expansion - for command like &amp;quot;ls ld a*&amp;quot; to list &amp;quot;A_file&amp;quot;
# Note for things like &amp;quot;ls -ld a_file.txt&amp;quot;, we still need to force it to glob by &amp;quot;ls -ld [a]_file.txt&amp;quot;&lt;/span&gt;
shopt -s nocaseglob
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;
	However, as mentioned in the comments, listing a complete filename is still sensitive - you'd have to force it to glob by doing &amp;quot;ls -ld [a]_file.txt&amp;quot;.


&lt;p style="margin-top:2em"&gt;
	If you know of any other useful modifications, drop me a comment!

&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2914445286370036327&amp;page=RSS%3a+Windows+Command+Prompt+(cmd)+behaviour+emulation+in+Linux+terminal+(Bash)&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=klo-2k.spaces.live.com&amp;amp;GT1=klo-2k"&gt;</description><category>Tips</category><comments>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!521.entry#comment</comments><guid isPermaLink="true">http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!521.entry</guid><pubDate>Fri, 21 Mar 2008 02:58:55 GMT</pubDate><slash:comments>2</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://klo-2k.spaces.live.com/blog/cns!2872308BEB65CA67!521/comments/feed.rss</wfw:commentRss><wfw:comment>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!521.entry#comment</wfw:comment><dcterms:modified>2008-03-25T04:44:12Z</dcterms:modified></item><item><title>Padded street furniture, you kidding me!?</title><link>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!518.entry</link><description>&lt;div style="text-align:center"&gt;&lt;img src="http://img219.imageshack.us/img219/6798/paddedlampostof9.png" alt="Padded lamppost"&gt;&lt;/div&gt;
&lt;p&gt;
	Are you frigging kidding me?  Has it really gotten to a point where we need to pad street furnitures for people on the phone who can't be asked to look at where they're going?

&lt;p&gt;
	Not only does the padding make the street look stupid, it also puts out the wrong message to people - please, just walk however you like and go wherever you want, you don't have to be careful and watch where you're going!

&lt;p&gt;
	I'm sure one day, those people will learn the lesson the hard way when they get run over by a car or something - and in that case, should we also attach giant-ass cushion in front of cars?  I don't think so.

&lt;p&gt;
	&lt;span style="color:grey"&gt;&amp;lt;rant&amp;gt;&lt;/span&gt;&lt;br&gt;
	I'd rather the money be used to lower the cost of travel - it costs me £11.30 to go into Guildford in the morning and returning in the afternoon &lt;em&gt;with&lt;/em&gt; young persons rail-card discount!  That's just crazy!&lt;br&gt;
	&lt;span style="color:grey"&gt;&amp;lt;/rant&amp;gt;&lt;/span&gt;&lt;br&gt;

&lt;p&gt;
	Here's the video of the scheme, watch it, you'll realize how stupid it is:

&lt;div style="text-align:center;margin-bottom:1em"&gt;
	
		
		
		
		
	
&lt;/div&gt;
&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2914445286370036327&amp;page=RSS%3a+Padded+street+furniture%2c+you+kidding+me!%3f&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=klo-2k.spaces.live.com&amp;amp;GT1=klo-2k"&gt;</description><category>Rant</category><comments>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!518.entry#comment</comments><guid isPermaLink="true">http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!518.entry</guid><pubDate>Fri, 07 Mar 2008 19:01:48 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://klo-2k.spaces.live.com/blog/cns!2872308BEB65CA67!518/comments/feed.rss</wfw:commentRss><wfw:comment>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!518.entry#comment</wfw:comment><dcterms:modified>2008-03-31T11:22:17Z</dcterms:modified></item><item><title>Strange looking lists...</title><link>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!516.entry</link><description>&lt;p&gt;Sorry if my lists look strange at the moment - MS decided to hide the descriptions beneath the headers a month ago...
&lt;p&gt;I've submitted a feedback asking for them to be restored to how it was before...  Hopefully, they'll do that, like &lt;a href="http://klo-2k.spaces.live.com/Blog/cns!1pGE_1JQA3HhRfnqJg5djEKA!110.entry" title="Blog entry: &amp;quot;Website design annoyance&amp;quot;" style="text-decoration:underline"&gt;last time&lt;/a&gt; when I requested for an increase of the width of the page.

&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2914445286370036327&amp;page=RSS%3a+Strange+looking+lists...&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=klo-2k.spaces.live.com&amp;amp;GT1=klo-2k"&gt;</description><comments>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!516.entry#comment</comments><guid isPermaLink="true">http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!516.entry</guid><pubDate>Fri, 29 Feb 2008 00:59:18 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://klo-2k.spaces.live.com/blog/cns!2872308BEB65CA67!516/comments/feed.rss</wfw:commentRss><wfw:comment>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!516.entry#comment</wfw:comment><dcterms:modified>2008-02-29T01:02:48Z</dcterms:modified></item><item><title>Dirt season 2 is out!</title><link>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!513.entry</link><description>&lt;div style="text-align:center"&gt;&lt;img src="http://img221.imageshack.us/img221/3020/dirtlogotu4.png" alt="&amp;quot;Dirt&amp;quot; logo"&gt;&lt;/div&gt;
&lt;p&gt;Woohoo!  The first 2 episodes for season 2 of &amp;quot;Dirt&amp;quot; is out now - go get it, it's good:&lt;br&gt;&lt;br&gt;
2x01 - &lt;a href="http://www.bt-chat.com/download.php?info_hash=d36ad5ba6333b7836abdce3645d508bbae7a6343"&gt;&lt;span style="text-decoration:underline"&gt;http://www.bt-chat.com/download.php?info_hash=d36ad5ba6333b7836abdce3645d508bbae7a6343&lt;/span&gt;&lt;/a&gt;&lt;br&gt;
2x02 - &lt;a href="http://www.bt-chat.com/download.php?info_hash=861634036bf7f77a56a355851037a2b08e58d2d5"&gt;&lt;span style="text-decoration:underline"&gt;http://www.bt-chat.com/download.php?info_hash=861634036bf7f77a56a355851037a2b08e58d2d5&lt;/span&gt;&lt;/a&gt;

&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2914445286370036327&amp;page=RSS%3a+Dirt+season+2+is+out!&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=klo-2k.spaces.live.com&amp;amp;GT1=klo-2k"&gt;</description><category>TV</category><comments>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!513.entry#comment</comments><guid isPermaLink="true">http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!513.entry</guid><pubDate>Mon, 18 Feb 2008 21:07:48 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://klo-2k.spaces.live.com/blog/cns!2872308BEB65CA67!513/comments/feed.rss</wfw:commentRss><wfw:comment>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!513.entry#comment</wfw:comment><dcterms:modified>2008-02-19T23:08:48Z</dcterms:modified></item><item><title>Software recommendation: Visual Task Tips</title><link>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!511.entry</link><description>&lt;div style="text-align:center"&gt;&lt;a href="http://www.visualtasktips.com/"&gt;&lt;img src="http://img339.imageshack.us/img339/3741/iconoriginalpe3.png" alt="Visual Task Tips icon - click to go to author's website."&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Here's a utility I'm sure you'll like - it's called &lt;a href="http://www.visualtasktips.com/" style="text-decoration:underline" title="Click to go to author's website"&gt;Visual Task Tips&lt;/a&gt;.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;This application runs in XP / Vista and provides a preview for each window &amp;quot;task&amp;quot; on the taskbar:&lt;/div&gt;
&lt;div style="text-align:center"&gt;&lt;img src="http://img518.imageshack.us/img518/1687/previewresizegu1.png" alt="Before and after"&gt;&lt;/div&gt;
&lt;div&gt;Version 3 adds the essential preview delay customization - now you can make the preview appear immediately!&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2914445286370036327&amp;page=RSS%3a+Software+recommendation%3a+Visual+Task+Tips&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=klo-2k.spaces.live.com&amp;amp;GT1=klo-2k"&gt;</description><category>Software</category><comments>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!511.entry#comment</comments><guid isPermaLink="true">http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!511.entry</guid><pubDate>Mon, 11 Feb 2008 20:57:42 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://klo-2k.spaces.live.com/blog/cns!2872308BEB65CA67!511/comments/feed.rss</wfw:commentRss><wfw:comment>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!511.entry#comment</wfw:comment><dcterms:modified>2008-02-11T21:01:03Z</dcterms:modified></item><item><title>MochiKit Tip: Un-register (delete) a draggable</title><link>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!510.entry</link><description>&lt;div&gt;Alright, a quick tip for those of you who don't know - here's how you can unregister (delete) a draggable in MochiKit:&lt;/div&gt;
&lt;div style="margin:1em 32px;padding:4px;background:#eeeeee;overflow:auto"&gt;
&lt;pre style="font-size:8pt;color:#660000;margin:0px"&gt;
&lt;span style="color:grey"&gt;dragHandle = new Draggable( [...] );    // Registers the drag handle&lt;/span&gt;
dragHandle.destroy();                   &lt;span style="color:green"&gt;// Destroying the drag handle&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;You can then check by looking in:&lt;/div&gt;
&lt;div&gt;&lt;pre style="font-size:8pt;color:#660000"&gt;&lt;span style="background:#eeeeee"&gt;window.MochiKit.DragAndDrop.Draggables.drags&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;div&gt;and&lt;/div&gt;
&lt;div&gt;&lt;pre style="font-size:8pt;color:#660000"&gt;&lt;span style="background:#eeeeee"&gt;window.MochiKit.Signal._observers&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;div&gt;The draggable and the signal &amp;quot;observer&amp;quot; should be gone.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2914445286370036327&amp;page=RSS%3a+MochiKit+Tip%3a+Un-register+(delete)+a+draggable&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=klo-2k.spaces.live.com&amp;amp;GT1=klo-2k"&gt;</description><category>Programming</category><comments>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!510.entry#comment</comments><guid isPermaLink="true">http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!510.entry</guid><pubDate>Tue, 29 Jan 2008 00:58:38 GMT</pubDate><slash:comments>0</slash:comments><msn:type>blogentry</msn:type><live:type>blogentry</live:type><live:typelabel>Blog entry</live:typelabel><wfw:commentRss>http://klo-2k.spaces.live.com/blog/cns!2872308BEB65CA67!510/comments/feed.rss</wfw:commentRss><wfw:comment>http://klo-2k.spaces.live.com/Blog/cns!2872308BEB65CA67!510.entry#comment</wfw:comment><dcterms:modified>2008-01-29T00:58:38Z</dcterms:modified></item><item><title>Custom List: Favorite songs</title><link>http://klo-2k.spaces.live.com/Lists/cns!2872308BEB65CA67!452</link><description>&lt;p&gt;Favorite songs&lt;/p&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;p&gt;Avril Lavigne - Sk8er Boi&lt;p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Within Temptation - The Truth Beneath The Roase&lt;p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Nightwish - Nemo&lt;p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Evanescence - My Immortal&lt;p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Tarja Turunen - The Eyes of a Child&lt;p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Nightwish - Sleeping Sun &amp;#40;1998 version&amp;#41;&lt;p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Masahiro Andoh - Moon Over the Castle &amp;#40;Gran Turismo 2 version&amp;#41;&lt;p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Nightwish - Dead Gardens&lt;p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Jerry Goldsmith - &amp;#34;End Credits&amp;#34; - &amp;#34;Star Trek&amp;#58; First Contact&amp;#34; OST&lt;p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Phil Collins - A Groovy Kind of Love&lt;p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Nightwish - Ghost Love Score&lt;p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Liz McClarnon - Woman In Love&lt;p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;Evanescence - My Last Breath&lt;p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2914445286370036327&amp;page=RSS%3a+Custom+List%3a+Favorite+songs&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=klo-2k.spaces.live.com&amp;amp;GT1=klo-2k"&gt;</description><guid isPermaLink="false">cns!2872308BEB65CA67!452</guid><pubDate>Fri, 08 Aug 2008 08:40:35 GMT</pubDate><msn:type>list</msn:type><live:type>list</live:type><live:typelabel>List</live:typelabel><cf:itemRSS>http://klo-2k.spaces.live.com/Lists/cns!2872308BEB65CA67!452/feed.rss</cf:itemRSS><dcterms:modified>2008-08-08T08:40:35Z</dcterms:modified></item><item><title>Custom List: My internet presence</title><link>http://klo-2k.spaces.live.com/Lists/cns!2872308BEB65CA67!103</link><description>&lt;p&gt;My internet presence&lt;/p&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;p&gt;&lt;a href="mailto&amp;#58;kloREMOVETHIS_2k&amp;#91;at&amp;#93;hotmail&amp;#91;dot&amp;#93;com"&gt;Email &amp;#47; IM&lt;/a&gt;&lt;/p&gt;&lt;p&gt;My email address&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://www.facebook.com&amp;#47;profile.php&amp;#63;id&amp;#61;546720103"&gt;Facebook&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Social networking&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://klo-2k.spaces.live.com&amp;#47;"&gt;Blog&lt;/a&gt;&lt;/p&gt;&lt;p&gt;My Blog - the one you&amp;#39;re reading now&amp;#33;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2914445286370036327&amp;page=RSS%3a+Custom+List%3a+My+internet+presence&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=klo-2k.spaces.live.com&amp;amp;GT1=klo-2k"&gt;</description><guid isPermaLink="false">cns!2872308BEB65CA67!103</guid><pubDate>Thu, 31 Jul 2008 15:36:34 GMT</pubDate><msn:type>list</msn:type><live:type>list</live:type><live:typelabel>List</live:typelabel><cf:itemRSS>http://klo-2k.spaces.live.com/Lists/cns!2872308BEB65CA67!103/feed.rss</cf:itemRSS><dcterms:modified>2008-07-31T15:36:34Z</dcterms:modified></item><item><title>Custom List: Announcements</title><link>http://klo-2k.spaces.live.com/Lists/cns!2872308BEB65CA67!146</link><description>&lt;p&gt;Announcements&lt;/p&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://blogsearch.google.com&amp;#47;blogsearch&amp;#63;q&amp;#61;site&amp;#58;klo-2k.spaces.live.com"&gt;2007-08-14 &amp;#64; 07&amp;#58;25&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Looking to find something&amp;#63;&amp;#10;&amp;#10;Try Google&amp;#39;s blog search &amp;#40;follow link in title&amp;#41;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;2007-12-06 &amp;#64; 01&amp;#58;18&lt;p&gt;&lt;p&gt;Oops, it looks like some of my old blog entries aren&amp;#39;t XHTML 1.0 Strict complaint... - partly due to me editing blog entries in MSIE and partly due to me being stupid...  Sorry&amp;#33;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;2008-03-07 &amp;#64; 19&amp;#58;07&lt;p&gt;&lt;p&gt;Posts with flash video embedded won&amp;#39;t validate as XHTML 1.0 Strict - WLS requires &amp;#60;embed&amp;#62; tag be used...&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;2008-05-19 &amp;#64; 21&amp;#58;08&lt;p&gt;&lt;p&gt;Since WLS strips out the &amp;#34;id&amp;#34; attributes, you&amp;#39;ll find some blog entries with broken links...&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;2008-07-09 &amp;#64; 04&amp;#58;42&lt;p&gt;&lt;p&gt;Oops, there is something majorly wrong with the v2 alpha version of the mplayer resume script - I forgot about all the &amp;#94;other&amp;#94; parameters... I think I know how to fix it but I don&amp;#39;t have a lot of time at the moment to actually do it...&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2914445286370036327&amp;page=RSS%3a+Custom+List%3a+Announcements&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=klo-2k.spaces.live.com&amp;amp;GT1=klo-2k"&gt;</description><guid isPermaLink="false">cns!2872308BEB65CA67!146</guid><pubDate>Wed, 09 Jul 2008 03:42:18 GMT</pubDate><msn:type>list</msn:type><live:type>list</live:type><live:typelabel>List</live:typelabel><cf:itemRSS>http://klo-2k.spaces.live.com/Lists/cns!2872308BEB65CA67!146/feed.rss</cf:itemRSS><dcterms:modified>2008-07-09T03:42:18Z</dcterms:modified></item><item><title>Custom List: Solved :-)</title><link>http://klo-2k.spaces.live.com/Lists/cns!2872308BEB65CA67!141</link><description>&lt;p&gt;Solved &amp;#58;-&amp;#41;&lt;/p&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://spaces.msn.com&amp;#47;members&amp;#47;klo-2k&amp;#47;Blog&amp;#47;cns&amp;#33;1pGE_1JQA3HhRfnqJg5djEKA&amp;#33;138.entry"&gt;2005-07-12 &amp;#64; 06&amp;#58;59&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Custom port solution to Remote Desktop Web Connection&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://spaces.msn.com&amp;#47;members&amp;#47;klo-2k&amp;#47;Blog&amp;#47;cns&amp;#33;1pGE_1JQA3HhRfnqJg5djEKA&amp;#33;151.entry"&gt;2005-07-14 &amp;#64; 14&amp;#58;38&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Dust in computer&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://spaces.msn.com&amp;#47;members&amp;#47;klo-2k&amp;#47;Blog&amp;#47;cns&amp;#33;1pGE_1JQA3HhRfnqJg5djEKA&amp;#33;206.entry"&gt;2005-10-17 &amp;#64; 01&amp;#58;43&lt;/a&gt;&lt;/p&gt;&lt;p&gt;DBDesigner connection problem to MySQL database&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://klo-2k.spaces.live.com&amp;#47;blog&amp;#47;cns&amp;#33;2872308BEB65CA67&amp;#33;396.entry"&gt;2006-12-17 &amp;#64; 03&amp;#58;22&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Repairing broken NTFS security permissions after running chkdsk&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://klo-2k.spaces.live.com&amp;#47;blog&amp;#47;cns&amp;#33;2872308BEB65CA67&amp;#33;405.entry"&gt;2007-03-30 &amp;#64; 01&amp;#58;32&lt;/a&gt;&lt;/p&gt;&lt;p&gt;SQL error - &amp;#34;Syntax error converting from a character string to uniqueidentifier.&amp;#34;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://klo-2k.spaces.live.com&amp;#47;blog&amp;#47;cns&amp;#33;2872308BEB65CA67&amp;#33;425.entry"&gt;2007-08-03 &amp;#64; 02&amp;#58;58&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Network file shares &amp;#40;SMB shares&amp;#41; with ZoneAlarm Pro slow &amp;#47; no file access problem&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://klo-2k.spaces.live.com&amp;#47;blog&amp;#47;cns&amp;#33;2872308BEB65CA67&amp;#33;430.entry"&gt;2007-08-11 &amp;#64; 23&amp;#58;36&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Network connectivity problem with ZoneAlarm Pro, VMware &amp;#47; Microsoft Virtual PC&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://klo-2k.spaces.live.com&amp;#47;blog&amp;#47;cns&amp;#33;2872308BEB65CA67&amp;#33;432.entry"&gt;2007-08-13 &amp;#64; 23&amp;#58;39&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&amp;#34;Access is denied.&amp;#34; error when moving folder&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://klo-2k.spaces.live.com&amp;#47;blog&amp;#47;cns&amp;#33;2872308BEB65CA67&amp;#33;434.entry"&gt;2007-08-14 &amp;#64; 05&amp;#58;29&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Media Player Classic &amp;#40;MPC&amp;#41; crash on seeking FLAC file&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://klo-2k.spaces.live.com&amp;#47;blog&amp;#47;cns&amp;#33;2872308BEB65CA67&amp;#33;478.entry"&gt;2007-10-12 &amp;#64; 16&amp;#58;40&lt;/a&gt;&lt;/p&gt;&lt;p&gt;NetBeans web app deployment problem &amp;#40;to Apache Tomcat&amp;#41;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://klo-2k.spaces.live.com&amp;#47;blog&amp;#47;cns&amp;#33;2872308BEB65CA67&amp;#33;481.entry"&gt;2007-10-19 &amp;#64; 00&amp;#58;55&lt;/a&gt;&lt;/p&gt;&lt;p&gt;MySQL Query Browser variable assignment problem&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://klo-2k.spaces.live.com&amp;#47;blog&amp;#47;cns&amp;#33;2872308BEB65CA67&amp;#33;498.entry"&gt;2007-12-10 &amp;#64; 05&amp;#58;10&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Xubuntu 7.04 to 7.10 CD-ROM upgrader execution error&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://klo-2k.spaces.live.com&amp;#47;blog&amp;#47;cns&amp;#33;2872308BEB65CA67&amp;#33;521.entry"&gt;2008-03-25 &amp;#64; 04&amp;#58;42&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Windows Command Prompt &amp;#40;cmd&amp;#41; behaviour emulation in Linux terminal &amp;#40;Bash&amp;#41;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://klo-2k.spaces.live.com&amp;#47;blog&amp;#47;cns&amp;#33;2872308BEB65CA67&amp;#33;524.entry"&gt;2008-04-30 &amp;#64; 07&amp;#58;10&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Save and restore iptables over reboot&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://klo-2k.spaces.live.com&amp;#47;blog&amp;#47;cns&amp;#33;2872308BEB65CA67&amp;#33;533.entry"&gt;2008-05-20 &amp;#64; 07&amp;#58;09&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Re-partitioning Xubuntu&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://klo-2k.spaces.live.com&amp;#47;blog&amp;#47;cns&amp;#33;2872308BEB65CA67&amp;#33;541.entry"&gt;2008-06-27 &amp;#64; 07&amp;#58;26&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Restoring SMB sharing on XP&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2914445286370036327&amp;page=RSS%3a+Custom+List%3a+Solved+%3a-)&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=klo-2k.spaces.live.com&amp;amp;GT1=klo-2k"&gt;</description><guid isPermaLink="false">cns!2872308BEB65CA67!141</guid><pubDate>Fri, 27 Jun 2008 06:27:07 GMT</pubDate><msn:type>list</msn:type><live:type>list</live:type><live:typelabel>List</live:typelabel><cf:itemRSS>http://klo-2k.spaces.live.com/Lists/cns!2872308BEB65CA67!141/feed.rss</cf:itemRSS><dcterms:modified>2008-06-27T06:27:07Z</dcterms:modified></item><item><title>Custom List: Unsolved :-(</title><link>http://klo-2k.spaces.live.com/Lists/cns!2872308BEB65CA67!139</link><description>&lt;p&gt;Unsolved &amp;#58;-&amp;#40;&lt;/p&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://klo-2k.spaces.live.com&amp;#47;blog&amp;#47;cns&amp;#33;2872308BEB65CA67&amp;#33;374.entry"&gt;2006-08-27 &amp;#64; 01&amp;#58;03&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Force a network drive to disconnect via command-line&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://klo-2k.spaces.live.com&amp;#47;blog&amp;#47;cns&amp;#33;2872308BEB65CA67&amp;#33;428.entry"&gt;2007-08-06 &amp;#64; 22&amp;#58;59&lt;/a&gt;&lt;/p&gt;&lt;p&gt;X session logout &amp;#47; logoff command for Xubuntu&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://klo-2k.spaces.live.com&amp;#47;blog&amp;#47;cns&amp;#33;2872308BEB65CA67&amp;#33;496.entry"&gt;2007-12-06 &amp;#64; 01&amp;#58;17&lt;/a&gt;&lt;/p&gt;&lt;p&gt;NetBeans space insertion bug with tab indentation&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://klo-2k.spaces.live.com&amp;#47;blog&amp;#47;cns&amp;#33;2872308BEB65CA67&amp;#33;502.entry"&gt;2008-01-13 &amp;#64; 00&amp;#58;32&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Dell Inspiron 531 BIOS POST duration&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2914445286370036327&amp;page=RSS%3a+Custom+List%3a+Unsolved+%3a-(&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=klo-2k.spaces.live.com&amp;amp;GT1=klo-2k"&gt;</description><guid isPermaLink="false">cns!2872308BEB65CA67!139</guid><pubDate>Thu, 17 Jan 2008 23:48:19 GMT</pubDate><msn:type>list</msn:type><live:type>list</live:type><live:typelabel>List</live:typelabel><cf:itemRSS>http://klo-2k.spaces.live.com/Lists/cns!2872308BEB65CA67!139/feed.rss</cf:itemRSS><dcterms:modified>2008-01-17T23:48:19Z</dcterms:modified></item><item><title>Custom List: Top Audiocasts</title><link>http://klo-2k.spaces.live.com/Lists/cns!2872308BEB65CA67!280</link><description>&lt;p&gt;Top Audiocasts&lt;/p&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://grc.com&amp;#47;securitynow.htm"&gt;Security Now&amp;#33;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://poweruser.tv"&gt;PowerUser.tv&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2914445286370036327&amp;page=RSS%3a+Custom+List%3a+Top+Audiocasts&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=klo-2k.spaces.live.com&amp;amp;GT1=klo-2k"&gt;</description><guid isPermaLink="false">cns!2872308BEB65CA67!280</guid><pubDate>Thu, 10 Jan 2008 01:22:40 GMT</pubDate><msn:type>list</msn:type><live:type>list</live:type><live:typelabel>List</live:typelabel><cf:itemRSS>http://klo-2k.spaces.live.com/Lists/cns!2872308BEB65CA67!280/feed.rss</cf:itemRSS><dcterms:modified>2008-01-10T01:22:40Z</dcterms:modified></item><item><title>Custom List: Top Videocasts</title><link>http://klo-2k.spaces.live.com/Lists/cns!2872308BEB65CA67!282</link><description>&lt;p&gt;Top Videocasts&lt;/p&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://geekbrief.tv"&gt;GeekBrief.TV&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://www.commandn.tv&amp;#47;"&gt;commandN&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://www.rocketboom.com&amp;#47;"&gt;Rocketboom&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://revision3.com&amp;#47;diggnation&amp;#47;"&gt;Diggnation&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://revision3.com&amp;#47;infected&amp;#47;"&gt;Infected&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://revision3.com&amp;#47;systm&amp;#47;"&gt;Systm&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://www.hak5.org&amp;#47;"&gt;Hak.5&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://dl.tv&amp;#47;"&gt;DL.TV&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2914445286370036327&amp;page=RSS%3a+Custom+List%3a+Top+Videocasts&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=klo-2k.spaces.live.com&amp;amp;GT1=klo-2k"&gt;</description><guid isPermaLink="false">cns!2872308BEB65CA67!282</guid><pubDate>Thu, 10 Jan 2008 01:22:24 GMT</pubDate><msn:type>list</msn:type><live:type>list</live:type><live:typelabel>List</live:typelabel><cf:itemRSS>http://klo-2k.spaces.live.com/Lists/cns!2872308BEB65CA67!282/feed.rss</cf:itemRSS><dcterms:modified>2008-01-10T01:22:24Z</dcterms:modified></item><item><title>Custom List: Comments</title><link>http://klo-2k.spaces.live.com/Lists/cns!2872308BEB65CA67!248</link><description>&lt;p&gt;Comments&lt;/p&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://klo-2k.spaces.live.com&amp;#47;blog&amp;#47;cns&amp;#33;2872308BEB65CA67&amp;#33;244.entry"&gt;Comments &amp;#40;2&amp;#41;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;If you have any comments about my blogs, I&amp;#39;d love to hear from you.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;img src="http://c.services.spaces.live.com/CollectionWebService/c.gif?cid=2914445286370036327&amp;page=RSS%3a+Custom+List%3a+Comments&amp;referrer=" width="1px" height="1px" border="0" alt=""&gt;&lt;img style="position:absolute" alt="" width="0px" height="0px" src="http://c.live.com/c.gif?NC=31263&amp;amp;NA=1149&amp;amp;PI=73329&amp;amp;RF=&amp;amp;DI=3919&amp;amp;PS=85545&amp;amp;TP=klo-2k.spaces.live.com&amp;amp;GT1=klo-2k"&gt;</description><guid isPermaLink="false">cns!2872308BEB65CA67!248</guid><pubDate>Fri, 30 Mar 2007 19:13:35 GMT</pubDate><msn:type>list</msn:type><live:type>list</live:type><live:typelabel>List</live:typelabel><cf:itemRSS>http://klo-2k.spaces.live.com/Lists/cns!2872308BEB65CA67!248/feed.rss</cf:itemRSS><dcterms:modified>2007-03-30T19:13:35Z</dcterms:modified></item></channel></rss>