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

<channel>
	<title>klkl</title>
	<atom:link href="http://klkl.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://klkl.co.uk</link>
	<description>it's easy to type</description>
	<pubDate>Sat, 08 Nov 2008 17:32:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<item>
		<title>Easy FAQ, a New Wordpress Plugin for Frequently Asked Questions</title>
		<link>http://klkl.co.uk/2008/11/05/easy-faq-a-new-wordpress-plugin-for-frequently-asked-questions/</link>
		<comments>http://klkl.co.uk/2008/11/05/easy-faq-a-new-wordpress-plugin-for-frequently-asked-questions/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 08:58:06 +0000</pubDate>
		<dc:creator>klkl</dc:creator>
		
		<category><![CDATA[Blog Stuff]]></category>

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

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

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

		<category><![CDATA[frequently asked questions]]></category>

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

		<category><![CDATA[wordpress plugin]]></category>

		<guid isPermaLink="false">http://klkl.co.uk/?p=112</guid>
		<description><![CDATA[<p style="text-align: justify;">I&#8217;ve created a Wordpress plugin to create and manage lists of frequently asked questions. Currently its a work in progress but you can download the beta if you want a preview. If you want more information  or to download a copy then check out the Easy FAQ page above.</p>
<p style="text-align: justify;"><strong>Screenshot:</strong></p>
<p style="text-align: justify;"><a href="http://klkl.co.uk/wp-content/uploads/2008/11/faqscreenshot1.png"><img class="size-medium wp-image-102 aligncenter" title="easyFAQ interface" src="http://klkl.co.uk/wp-content/uploads/2008/11/faqscreenshot1-300x190.png" alt="easyFAQ interface" width="300" height="190" /></a></p>
]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I&#8217;ve created a Wordpress plugin to create and manage lists of frequently asked questions. Currently its a work in progress but you can download the beta if you want a preview. If you want more information  or to download a copy then check out the Easy FAQ page above.</p>
<p style="text-align: justify;"><strong>Screenshot:</strong></p>
<p style="text-align: justify;"><a href="http://klkl.co.uk/wp-content/uploads/2008/11/faqscreenshot1.png"><img class="size-medium wp-image-102 aligncenter" title="easyFAQ interface" src="http://klkl.co.uk/wp-content/uploads/2008/11/faqscreenshot1-300x190.png" alt="easyFAQ interface" width="300" height="190" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://klkl.co.uk/2008/11/05/easy-faq-a-new-wordpress-plugin-for-frequently-asked-questions/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Applescript &#038; SMS Server Tools</title>
		<link>http://klkl.co.uk/2008/08/10/applescript-sms-server-tools/</link>
		<comments>http://klkl.co.uk/2008/08/10/applescript-sms-server-tools/#comments</comments>
		<pubDate>Sun, 10 Aug 2008 18:48:08 +0000</pubDate>
		<dc:creator>klkl</dc:creator>
		
		<category><![CDATA[Linux]]></category>

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

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

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

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

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

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

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

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

		<category><![CDATA[SMS Server Tools]]></category>

		<guid isPermaLink="false">http://klkl.co.uk/?p=53</guid>
		<description><![CDATA[<p>I&#8217;ve set up <a title="SMS Server Tools 3" href="http://smstools3.kekekasvi.com/" target="_blank">SMS Server Tools</a> on my Mac Mini so that I can send text messages from my PC and I thought someone might be able to use the Applescript I&#8217;ve created or even suggest a better way of doing things.</p>
<p>If you&#8217;re not familiar with SMS Server Tools it&#8217;s a really great utility for sending text messages from your PC (I use the term generically) it works on (almost?) all UNIXs and Windows too. It works by having folders which it monitors for text message files and then sending them via the phone. It was very easy to set up just download the source, make, make install, edit the config file and away you go.</p>
<p><span id="more-53"></span>I set it up so I could send myself text alerts when I get new emails. I did have it set up last year on my Gentoo machine and I used a bash script to process mail passed from Kmail. This time I&#8217;m using my Mac Mini and OS X with Apple&#8217;s Mail and a bit of applescript.</p>
<p>The biggest difference between the way Kmail and Mac Mail does things is that Kmail would run the bash script each time a message matched a given rule. Mail passes a collection of messages to the applescript that match the rule.</p>
<p><strong>SMS File Format</strong></p>
<p>The SMS files are just plain text files with unique file names;</p>
<p style="padding-left: 30px;">To: 447xxxxxxxxx</p>
<p style="padding-left: 30px;">Message Text goes here</p>
<p>Notice how the phone number you&#8217;re sending the message to is international format without the leading + and that there is a blank line inbetween the number and the message text.</p>
<p><strong>The Applescript</strong></p>
<p>This is the applescript I&#8217;m using to send the messages. I don&#8217;t have much experience with Applescript so anyone who can see a better way of doing things (especially the writing of the file) then I&#8217;d appreciate some feedback.</p>
<p style="padding-left: 30px;"><span style="color: #808080;"> using terms from application &#8220;Mail&#8221;<br />
on perform mail action with messages theMessages<br />
repeat with theMessage in theMessages &#8212; loop through the messages sent by Mail<br />
&#8211;Extract the desired details<br />
set theSubject to subject of theMessage<br />
set theSender to extract address from (sender of theMessage)<br />
set MessageRecipients to get recipients of theMessage<br />
set firstRecipient to item 1 of MessageRecipients<br />
set toAddress to ((address of firstRecipient) as string)</span></p>
<p style="padding-left: 30px;"><span style="color: #808080;">&#8211;Create the randomly named file<br />
set dir_prefix to &#8220;~/sms/&#8221;<br />
set the_file to do shell script &#8220;mktemp &#8221; &amp; dir_prefix &amp; &#8220;tempfiles/XXXXXX&#8221;</span></p>
<p style="padding-left: 30px;"><span style="color: #808080;">&#8211;Output the message<br />
do shell script &#8220;echo To: <strong>447xxxxxxxxx</strong> &gt; &#8221; &amp; the_file<br />
do shell script &#8220;echo  &gt;&gt; &#8221; &amp; the_file<br />
do shell script &#8220;echo From: &#8221; &amp; quoted form of theSender &amp; &#8221; &gt;&gt; &#8221; &amp; the_file<br />
do shell script &#8220;echo To: &#8221; &amp; quoted form of toAddress &amp; &#8221; &gt;&gt; &#8221; &amp; the_file<br />
do shell script &#8220;echo Subject: &#8221; &amp; quoted form of theSubject &amp; &#8221; &gt;&gt; &#8221; &amp; the_file</span></p>
<p style="padding-left: 30px;"><span style="color: #808080;">&#8211;Move the text message to the spool directory<br />
do shell script &#8220;mv &#8221; &amp; the_file &amp; &#8221; &#8221; &amp; dir_prefix &amp; &#8220;outgoing/&#8221;<br />
end repeat<br />
end perform mail action with messages<br />
end using terms from</span></p>
<p>You can download the script from <a href="http://klkl.co.uk/wp-content/uploads/2008/08/sms-alert-script.scpt">here</a>. You will need to change the directory variables to suit your setup and you&#8217;ll need to replace the mobile number with the one you wish to send the messages to. I decided to edit my /etc/smsd.conf to define the spool folders to be in my home directory.</p>
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve set up <a title="SMS Server Tools 3" href="http://smstools3.kekekasvi.com/" target="_blank">SMS Server Tools</a> on my Mac Mini so that I can send text messages from my PC and I thought someone might be able to use the Applescript I&#8217;ve created or even suggest a better way of doing things.</p>
<p>If you&#8217;re not familiar with SMS Server Tools it&#8217;s a really great utility for sending text messages from your PC (I use the term generically) it works on (almost?) all UNIXs and Windows too. It works by having folders which it monitors for text message files and then sending them via the phone. It was very easy to set up just download the source, make, make install, edit the config file and away you go.</p>
<p><span id="more-53"></span>I set it up so I could send myself text alerts when I get new emails. I did have it set up last year on my Gentoo machine and I used a bash script to process mail passed from Kmail. This time I&#8217;m using my Mac Mini and OS X with Apple&#8217;s Mail and a bit of applescript.</p>
<p>The biggest difference between the way Kmail and Mac Mail does things is that Kmail would run the bash script each time a message matched a given rule. Mail passes a collection of messages to the applescript that match the rule.</p>
<p><strong>SMS File Format</strong></p>
<p>The SMS files are just plain text files with unique file names;</p>
<p style="padding-left: 30px;">To: 447xxxxxxxxx</p>
<p style="padding-left: 30px;">Message Text goes here</p>
<p>Notice how the phone number you&#8217;re sending the message to is international format without the leading + and that there is a blank line inbetween the number and the message text.</p>
<p><strong>The Applescript</strong></p>
<p>This is the applescript I&#8217;m using to send the messages. I don&#8217;t have much experience with Applescript so anyone who can see a better way of doing things (especially the writing of the file) then I&#8217;d appreciate some feedback.</p>
<p style="padding-left: 30px;"><span style="color: #808080;"> using terms from application &#8220;Mail&#8221;<br />
on perform mail action with messages theMessages<br />
repeat with theMessage in theMessages &#8212; loop through the messages sent by Mail<br />
&#8211;Extract the desired details<br />
set theSubject to subject of theMessage<br />
set theSender to extract address from (sender of theMessage)<br />
set MessageRecipients to get recipients of theMessage<br />
set firstRecipient to item 1 of MessageRecipients<br />
set toAddress to ((address of firstRecipient) as string)</span></p>
<p style="padding-left: 30px;"><span style="color: #808080;">&#8211;Create the randomly named file<br />
set dir_prefix to &#8220;~/sms/&#8221;<br />
set the_file to do shell script &#8220;mktemp &#8221; &amp; dir_prefix &amp; &#8220;tempfiles/XXXXXX&#8221;</span></p>
<p style="padding-left: 30px;"><span style="color: #808080;">&#8211;Output the message<br />
do shell script &#8220;echo To: <strong>447xxxxxxxxx</strong> &gt; &#8221; &amp; the_file<br />
do shell script &#8220;echo  &gt;&gt; &#8221; &amp; the_file<br />
do shell script &#8220;echo From: &#8221; &amp; quoted form of theSender &amp; &#8221; &gt;&gt; &#8221; &amp; the_file<br />
do shell script &#8220;echo To: &#8221; &amp; quoted form of toAddress &amp; &#8221; &gt;&gt; &#8221; &amp; the_file<br />
do shell script &#8220;echo Subject: &#8221; &amp; quoted form of theSubject &amp; &#8221; &gt;&gt; &#8221; &amp; the_file</span></p>
<p style="padding-left: 30px;"><span style="color: #808080;">&#8211;Move the text message to the spool directory<br />
do shell script &#8220;mv &#8221; &amp; the_file &amp; &#8221; &#8221; &amp; dir_prefix &amp; &#8220;outgoing/&#8221;<br />
end repeat<br />
end perform mail action with messages<br />
end using terms from</span></p>
<p>You can download the script from <a href="http://klkl.co.uk/wp-content/uploads/2008/08/sms-alert-script.scpt">here</a>. You will need to change the directory variables to suit your setup and you&#8217;ll need to replace the mobile number with the one you wish to send the messages to. I decided to edit my /etc/smsd.conf to define the spool folders to be in my home directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://klkl.co.uk/2008/08/10/applescript-sms-server-tools/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Help My Phone Won&#8217;t Charge! - Here&#8217;s the Solution</title>
		<link>http://klkl.co.uk/2008/08/10/help-my-phone-wont-charge-heres-the-solution/</link>
		<comments>http://klkl.co.uk/2008/08/10/help-my-phone-wont-charge-heres-the-solution/#comments</comments>
		<pubDate>Sat, 09 Aug 2008 23:46:17 +0000</pubDate>
		<dc:creator>klkl</dc:creator>
		
		<category><![CDATA[Linux]]></category>

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

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

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

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

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

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

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

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

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

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

		<guid isPermaLink="false">http://klkl.co.uk/?p=46</guid>
		<description><![CDATA[<p>A while ago I had an old Nokia N-95 plugged into a Gentoo box and I was using <a title="SMS Server Tools" href="http://smstools.meinemullemaus.de/" target="_blank">SMS Server Tools</a> to send myself text message alerts. I got rid of that sim and so stopped using it. The phone has been sat in a drawer since then along with a couple of others.</p>
<p>I recently decided I wanted to set it all up again, this time on my Mac Mini. I was trying out different phones and settings but I couldn&#8217;t get the N95 or an old Motorola V series phone to do anything even after plugging them both in!<span id="more-46"></span></p>
<p>I suspected that the phones had been left alone for so long that the batteries had discharged to such a state that the phones could not charge them anymore. I did a bit of searching on Google and someone suggested using an old USB cable to charge the battery a bit before charging it normally.</p>
<p>I immediately scrounged round my room looking for an old USB cable to hack up and found a Motorolla  one. Here&#8217;s what to do;</p>
<ol>
<li>I got some pliers and stripped the phone end off, then stripped the wires back.</li>
<li>Make sure the <span style="color: #ff0000;"><strong>RED</strong></span> and <strong>BLACK</strong> wires do not touch each other!</li>
<li>Plug the USB cable in and connect the wires to the battery terminals as follows;
<ul>
<li>Touch the <strong>BLACK</strong> wire to the <strong>NEGATIVE</strong> terminal of the battery</li>
<li>Touch the <span style="color: #ff0000;"><strong>RED</strong></span> wire to the <span style="color: #ff0000;"><strong>POSITIVE</strong></span> terminal of the battery</li>
</ul>
</li>
<li>Hold the wires to the battery terminals for about 20 - 40 seconds (This step may need to be repeated to attain enough charge for the phone to take over)</li>
<li>Plug the battery back into the phone and plug in the charger as normal</li>
</ol>
<p>This worked for both my Nokia BL-5C battery and my Motorolla BC60 battery (this one took a few goes) now I&#8217;ve got them both charging. I&#8217;m going to hang on to my hacked up USB cable who knows when it may come in useful, that and I don&#8217;t like throwing computey stuffs out.</p>
]]></description>
			<content:encoded><![CDATA[<p>A while ago I had an old Nokia N-95 plugged into a Gentoo box and I was using <a title="SMS Server Tools" href="http://smstools.meinemullemaus.de/" target="_blank">SMS Server Tools</a> to send myself text message alerts. I got rid of that sim and so stopped using it. The phone has been sat in a drawer since then along with a couple of others.</p>
<p>I recently decided I wanted to set it all up again, this time on my Mac Mini. I was trying out different phones and settings but I couldn&#8217;t get the N95 or an old Motorola V series phone to do anything even after plugging them both in!<span id="more-46"></span></p>
<p>I suspected that the phones had been left alone for so long that the batteries had discharged to such a state that the phones could not charge them anymore. I did a bit of searching on Google and someone suggested using an old USB cable to charge the battery a bit before charging it normally.</p>
<p>I immediately scrounged round my room looking for an old USB cable to hack up and found a Motorolla  one. Here&#8217;s what to do;</p>
<ol>
<li>I got some pliers and stripped the phone end off, then stripped the wires back.</li>
<li>Make sure the <span style="color: #ff0000;"><strong>RED</strong></span> and <strong>BLACK</strong> wires do not touch each other!</li>
<li>Plug the USB cable in and connect the wires to the battery terminals as follows;
<ul>
<li>Touch the <strong>BLACK</strong> wire to the <strong>NEGATIVE</strong> terminal of the battery</li>
<li>Touch the <span style="color: #ff0000;"><strong>RED</strong></span> wire to the <span style="color: #ff0000;"><strong>POSITIVE</strong></span> terminal of the battery</li>
</ul>
</li>
<li>Hold the wires to the battery terminals for about 20 - 40 seconds (This step may need to be repeated to attain enough charge for the phone to take over)</li>
<li>Plug the battery back into the phone and plug in the charger as normal</li>
</ol>
<p>This worked for both my Nokia BL-5C battery and my Motorolla BC60 battery (this one took a few goes) now I&#8217;ve got them both charging. I&#8217;m going to hang on to my hacked up USB cable who knows when it may come in useful, that and I don&#8217;t like throwing computey stuffs out.</p>
]]></content:encoded>
			<wfw:commentRss>http://klkl.co.uk/2008/08/10/help-my-phone-wont-charge-heres-the-solution/feed/</wfw:commentRss>
		</item>
		<item>
		<title>UnderU.Com Involved in Phishing Scam</title>
		<link>http://klkl.co.uk/2008/08/05/underucom-involved-in-phishing-scam/</link>
		<comments>http://klkl.co.uk/2008/08/05/underucom-involved-in-phishing-scam/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 17:39:58 +0000</pubDate>
		<dc:creator>klkl</dc:creator>
		
		<category><![CDATA[Internet]]></category>

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

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

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

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

		<category><![CDATA[lloyds TSB]]></category>

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

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

		<guid isPermaLink="false">http://klkl.co.uk/?p=43</guid>
		<description><![CDATA[<p>One of the ways I <span style="text-decoration: line-through;">like</span> love to combat spam is by using email aliases. Basically I have one <strong>real</strong> email address that <strong>I do not</strong> give out to people but that I use to check my email with my provider. Then what I do is create any number of virtual or alias email addresses in my provider&#8217;s admin interface. So the scenario is that everytime I need to provide an email address for membership or to interact with a company I create a new email address (alias) for them and then give them that address. The beauty is that I only have to check one address and all my mail from all of those alias addresses gets sent to it automatically.</p>
<p>So if I ever get spam then I know exactly where it&#8217;s come from because each company / person has their own email address alias. It&#8217;s easy to stop them too, just delete the alias and no more spam! Not only that but the company or person who either spammed or allowed you to be spammed has just lost some credibility with you.<span id="more-43"></span></p>
<p>I got a Lloyds TSB phishing email this morning. I expect that you know what phishing emails are all about. I wasn&#8217;t fooled for an instant but I was interested in how they expected to trick people. The contents of the email were poorly coded HTML with images that were sourced from the lloydstsb.com site itself and an ugly link that blatantly was not kosher.</p>
<p>The email was sent to &#8216;undisclosed recipients&#8217; a flaw in my plan you might think, not a problem, a quick look at the headers revealed that the email was sent to underu@mydomain.co.uk (I like to use aliases that are the company names themselves). This was the email alias I set up for www.underu.com the underwear site for men, when I shopped with them in the past.</p>
<p>I don&#8217;t know how my email address got from them to the attacker and I&#8217;m away from home at the moment. When I get back I&#8217;ll be in touch with UnderU and ask how my email address and who knows what other information could of been abused. I&#8217;ll update the post if / when they respond.</p>
]]></description>
			<content:encoded><![CDATA[<p>One of the ways I <span style="text-decoration: line-through;">like</span> love to combat spam is by using email aliases. Basically I have one <strong>real</strong> email address that <strong>I do not</strong> give out to people but that I use to check my email with my provider. Then what I do is create any number of virtual or alias email addresses in my provider&#8217;s admin interface. So the scenario is that everytime I need to provide an email address for membership or to interact with a company I create a new email address (alias) for them and then give them that address. The beauty is that I only have to check one address and all my mail from all of those alias addresses gets sent to it automatically.</p>
<p>So if I ever get spam then I know exactly where it&#8217;s come from because each company / person has their own email address alias. It&#8217;s easy to stop them too, just delete the alias and no more spam! Not only that but the company or person who either spammed or allowed you to be spammed has just lost some credibility with you.<span id="more-43"></span></p>
<p>I got a Lloyds TSB phishing email this morning. I expect that you know what phishing emails are all about. I wasn&#8217;t fooled for an instant but I was interested in how they expected to trick people. The contents of the email were poorly coded HTML with images that were sourced from the lloydstsb.com site itself and an ugly link that blatantly was not kosher.</p>
<p>The email was sent to &#8216;undisclosed recipients&#8217; a flaw in my plan you might think, not a problem, a quick look at the headers revealed that the email was sent to underu@mydomain.co.uk (I like to use aliases that are the company names themselves). This was the email alias I set up for www.underu.com the underwear site for men, when I shopped with them in the past.</p>
<p>I don&#8217;t know how my email address got from them to the attacker and I&#8217;m away from home at the moment. When I get back I&#8217;ll be in touch with UnderU and ask how my email address and who knows what other information could of been abused. I&#8217;ll update the post if / when they respond.</p>
]]></content:encoded>
			<wfw:commentRss>http://klkl.co.uk/2008/08/05/underucom-involved-in-phishing-scam/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PHP Daylight Savings Error When Dealing With Timestamps</title>
		<link>http://klkl.co.uk/2008/07/10/php-daylight-savings-error-when-dealing-with-timestamps/</link>
		<comments>http://klkl.co.uk/2008/07/10/php-daylight-savings-error-when-dealing-with-timestamps/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 20:44:11 +0000</pubDate>
		<dc:creator>klkl</dc:creator>
		
		<category><![CDATA[Internet]]></category>

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

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

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

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

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

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

		<guid isPermaLink="false">http://klkl.co.uk/?p=42</guid>
		<description><![CDATA[<p>Last night I was working on determining how long a user had been logged into a PHP application but was having a problem with subtracting timestamps and this is how I solved it.</p>
<p>I was storing two timestamps (as a UNIX timestamp) in the database. One designating the date-time the user logged into the application and the other the date-time of the last activity the user performed. Because I was using UNIX timestamps, which are just the number of seconds sine the UNIX epoch, I subtracted one from the other and used that difference as the input to the PHP function date().</p>
<p>I couldn&#8217;t for the life of me work out why the date function was saying that I was logged in for an hour longer than I should have been and it was driving me crazy. It turns out that the reason was that my timezone locale setting in PHP is &#8216;Europe/London&#8217; and that this causes the date function to adjust for British Summer Time (GMT + 1) thus when I used my timestamp difference in the date() function it translated the difference into a readable format but also added an extra hour.</p>
<p>The solution is to use gmdate() which is identical to the date() function except that the time returned is in Grenwich Mean Time format.</p>
]]></description>
			<content:encoded><![CDATA[<p>Last night I was working on determining how long a user had been logged into a PHP application but was having a problem with subtracting timestamps and this is how I solved it.</p>
<p>I was storing two timestamps (as a UNIX timestamp) in the database. One designating the date-time the user logged into the application and the other the date-time of the last activity the user performed. Because I was using UNIX timestamps, which are just the number of seconds sine the UNIX epoch, I subtracted one from the other and used that difference as the input to the PHP function date().</p>
<p>I couldn&#8217;t for the life of me work out why the date function was saying that I was logged in for an hour longer than I should have been and it was driving me crazy. It turns out that the reason was that my timezone locale setting in PHP is &#8216;Europe/London&#8217; and that this causes the date function to adjust for British Summer Time (GMT + 1) thus when I used my timestamp difference in the date() function it translated the difference into a readable format but also added an extra hour.</p>
<p>The solution is to use gmdate() which is identical to the date() function except that the time returned is in Grenwich Mean Time format.</p>
]]></content:encoded>
			<wfw:commentRss>http://klkl.co.uk/2008/07/10/php-daylight-savings-error-when-dealing-with-timestamps/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to Check Your Premium Bonds Using Opera&#8217;s Custom Seach Facility</title>
		<link>http://klkl.co.uk/2008/07/04/how-to-check-your-premium-bonds-using-operas-custom-seach-facility/</link>
		<comments>http://klkl.co.uk/2008/07/04/how-to-check-your-premium-bonds-using-operas-custom-seach-facility/#comments</comments>
		<pubDate>Fri, 04 Jul 2008 13:19:08 +0000</pubDate>
		<dc:creator>klkl</dc:creator>
		
		<category><![CDATA[Internet]]></category>

		<category><![CDATA[custom search]]></category>

		<category><![CDATA[holder's number]]></category>

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

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

		<category><![CDATA[premium bonds]]></category>

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

		<guid isPermaLink="false">http://klkl.co.uk/?p=41</guid>
		<description><![CDATA[<p>If you&#8217;ve ever used opera or other browsers like konqueror then I&#8217;m sure you like the way you can search from the address bar by typing a custom shortcut and your search query. to search for &#8216;Premium Bonds Checker&#8217; on google using Opera I&#8217;d just hit F8 (to get to the address bar) and then type &#8216;g Premium Bonds Checker&#8217; and hit return because g is my shortcut for searching google.</p>
<p>This morning after I finally found it I checked my Premium Bonds holder&#8217;s number to see if I&#8217;d won (better luck next month). I thought to myself wouldn&#8217;t it be nice if I could tell Opera to check my holder&#8217;s number for me without having to go find it once a month.</p>
<p>The way I did it was to edit one of Opera&#8217;s custom search records. <span id="more-41"></span>In the old versions of Opera you had to find and edit &#8217;search.ini&#8217; but the newer releases have a search editor built in. You can find it under preferences (Ctrl+F12 on Windows or Cmd + , on Mac) search should be the third tab. Edit or add a new search engine and give it whatever name and keyword you like then expand the details section and set the address to;</p>
<p style="padding-left: 30px;"><strong>http://www.nsandi.com/products/pb/haveYouWon.jsp</strong></p>
<p>A quick look at the source code for that page reveals that the form is submitted via post so you&#8217;ll need to check the &#8216;Use POST&#8217; checkbox. The next choice you have is whether or not you want to always check a specific number, like me, or whether you want to be able to enter different numbers.</p>
<p>I chose to always check the same number which means I gave my holder&#8217;s number to opera and it will be stored in plain text on my computer. I&#8217;ve traded off the possible risk of someone accessing my holder&#8217;s number against not having to remember it when I check my premium bonds. You should make your own mind up.</p>
<p>Query strings:</p>
<ul>
<li>To always check the same number
<ul>
<li>holderNumber=XXXXXXXX&amp;null=%s</li>
<li>Where XXXXXXXX is your holder&#8217;s number</li>
</ul>
</li>
<li>To check a user supplied number each time
<ul>
<li>holderNumber=%s</li>
</ul>
</li>
</ul>
<p>%s is what opera uses in query strings to represent the input of the user. In the Google example above the terms &#8216;Premium Bonds Checker&#8217; would have been represented by %s in the query string. holderNumber is the name of the form input (textbox) that the user would normally type their holder&#8217;s number into.</p>
<p>The first query string tells the premium bond checker to check your supplied holder&#8217;s number. There must be a user supplied input to these searches though (represented by %s) otherwise they wont work so a second parameter in this case &#8216;null&#8217; is set to the user submitted string. The second query string tells the premium bond checker to check whatever holder&#8217;s number you supply.</p>
<p><strong>How to use these methods:</strong></p>
<p>Use the custom search like you normally would typing in one of the following depending on how you decided to set your custom search.</p>
<ul>
<li>Checking a defined number
<ul>
<li>nsi xyz</li>
</ul>
<ul>
<li>where nsi is your chosen search engine key and xyz represents any non-blank input</li>
</ul>
</li>
<li>Checking a supplied number
<ul>
<li>nsi XXXXXXXX</li>
</ul>
<ul>
<li>where nsi is your chosen search engine key and XXXXXXXX is your holder&#8217;s number</li>
</ul>
</li>
</ul>
<p>Now you have a quick and easy way to check your premium bonds without hassle, enjoy!</p>
]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve ever used opera or other browsers like konqueror then I&#8217;m sure you like the way you can search from the address bar by typing a custom shortcut and your search query. to search for &#8216;Premium Bonds Checker&#8217; on google using Opera I&#8217;d just hit F8 (to get to the address bar) and then type &#8216;g Premium Bonds Checker&#8217; and hit return because g is my shortcut for searching google.</p>
<p>This morning after I finally found it I checked my Premium Bonds holder&#8217;s number to see if I&#8217;d won (better luck next month). I thought to myself wouldn&#8217;t it be nice if I could tell Opera to check my holder&#8217;s number for me without having to go find it once a month.</p>
<p>The way I did it was to edit one of Opera&#8217;s custom search records. <span id="more-41"></span>In the old versions of Opera you had to find and edit &#8217;search.ini&#8217; but the newer releases have a search editor built in. You can find it under preferences (Ctrl+F12 on Windows or Cmd + , on Mac) search should be the third tab. Edit or add a new search engine and give it whatever name and keyword you like then expand the details section and set the address to;</p>
<p style="padding-left: 30px;"><strong>http://www.nsandi.com/products/pb/haveYouWon.jsp</strong></p>
<p>A quick look at the source code for that page reveals that the form is submitted via post so you&#8217;ll need to check the &#8216;Use POST&#8217; checkbox. The next choice you have is whether or not you want to always check a specific number, like me, or whether you want to be able to enter different numbers.</p>
<p>I chose to always check the same number which means I gave my holder&#8217;s number to opera and it will be stored in plain text on my computer. I&#8217;ve traded off the possible risk of someone accessing my holder&#8217;s number against not having to remember it when I check my premium bonds. You should make your own mind up.</p>
<p>Query strings:</p>
<ul>
<li>To always check the same number
<ul>
<li>holderNumber=XXXXXXXX&amp;null=%s</li>
<li>Where XXXXXXXX is your holder&#8217;s number</li>
</ul>
</li>
<li>To check a user supplied number each time
<ul>
<li>holderNumber=%s</li>
</ul>
</li>
</ul>
<p>%s is what opera uses in query strings to represent the input of the user. In the Google example above the terms &#8216;Premium Bonds Checker&#8217; would have been represented by %s in the query string. holderNumber is the name of the form input (textbox) that the user would normally type their holder&#8217;s number into.</p>
<p>The first query string tells the premium bond checker to check your supplied holder&#8217;s number. There must be a user supplied input to these searches though (represented by %s) otherwise they wont work so a second parameter in this case &#8216;null&#8217; is set to the user submitted string. The second query string tells the premium bond checker to check whatever holder&#8217;s number you supply.</p>
<p><strong>How to use these methods:</strong></p>
<p>Use the custom search like you normally would typing in one of the following depending on how you decided to set your custom search.</p>
<ul>
<li>Checking a defined number
<ul>
<li>nsi xyz</li>
</ul>
<ul>
<li>where nsi is your chosen search engine key and xyz represents any non-blank input</li>
</ul>
</li>
<li>Checking a supplied number
<ul>
<li>nsi XXXXXXXX</li>
</ul>
<ul>
<li>where nsi is your chosen search engine key and XXXXXXXX is your holder&#8217;s number</li>
</ul>
</li>
</ul>
<p>Now you have a quick and easy way to check your premium bonds without hassle, enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://klkl.co.uk/2008/07/04/how-to-check-your-premium-bonds-using-operas-custom-seach-facility/feed/</wfw:commentRss>
		</item>
		<item>
		<title>HowTo: Convert Between Windows &#038; Unix Line Endings Using PERL</title>
		<link>http://klkl.co.uk/2008/06/18/howto-convert-between-windows-unix-line-endings-using-perl/</link>
		<comments>http://klkl.co.uk/2008/06/18/howto-convert-between-windows-unix-line-endings-using-perl/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 17:04:26 +0000</pubDate>
		<dc:creator>klkl</dc:creator>
		
		<category><![CDATA[Linux]]></category>

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

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

		<category><![CDATA[carriage return]]></category>

		<category><![CDATA[Line endings]]></category>

		<category><![CDATA[line feed]]></category>

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

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

		<guid isPermaLink="false">http://klkl.co.uk/?p=40</guid>
		<description><![CDATA[<p>You may or may not know that Windows and Unix end lines in text files differently. Windows uses both a line feed and carriage return characters whereas Unix uses only the line feed character. This can be annoying if you&#8217;re working with documents on both systems interchangeably and you need to preserve a lot of indentation . One example for me is xml files I like writing them in a plain text editor because I cannot find an xml editor I get on with.</p>
<p>The solution is to use PERL:</p>
<ul>
<li>To convert Unix style line endings to Windows style
<ul>
<li><strong>perl -p -e &#8217;s/\n/\r\n/&#8217; &lt; unixfile.txt &gt; winfile.txt</strong></li>
</ul>
</li>
<li>To Convert Windows style line endings to Unix style
<ul>
<li><strong>perl -p -e &#8217;s/\r$//&#8217; &lt; winfile.txt &gt; unixfile.txt</strong></li>
</ul>
</li>
</ul>
<p>The use of single quotation marks in both command lines is important because it prevents the shell from trying to evaluate anything inside.</p>
<p>That&#8217;s it. A simple way to quicky convert line endings letting you get on with the job.</p>
]]></description>
			<content:encoded><![CDATA[<p>You may or may not know that Windows and Unix end lines in text files differently. Windows uses both a line feed and carriage return characters whereas Unix uses only the line feed character. This can be annoying if you&#8217;re working with documents on both systems interchangeably and you need to preserve a lot of indentation . One example for me is xml files I like writing them in a plain text editor because I cannot find an xml editor I get on with.</p>
<p>The solution is to use PERL:</p>
<ul>
<li>To convert Unix style line endings to Windows style
<ul>
<li><strong>perl -p -e &#8217;s/\n/\r\n/&#8217; &lt; unixfile.txt &gt; winfile.txt</strong></li>
</ul>
</li>
<li>To Convert Windows style line endings to Unix style
<ul>
<li><strong>perl -p -e &#8217;s/\r$//&#8217; &lt; winfile.txt &gt; unixfile.txt</strong></li>
</ul>
</li>
</ul>
<p>The use of single quotation marks in both command lines is important because it prevents the shell from trying to evaluate anything inside.</p>
<p>That&#8217;s it. A simple way to quicky convert line endings letting you get on with the job.</p>
]]></content:encoded>
			<wfw:commentRss>http://klkl.co.uk/2008/06/18/howto-convert-between-windows-unix-line-endings-using-perl/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Real-Time Images &#038; Movies of the Sun</title>
		<link>http://klkl.co.uk/2008/06/17/real-time-images-movies-of-the-sun/</link>
		<comments>http://klkl.co.uk/2008/06/17/real-time-images-movies-of-the-sun/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 11:48:09 +0000</pubDate>
		<dc:creator>klkl</dc:creator>
		
		<category><![CDATA[Miscellaneous]]></category>

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

		<category><![CDATA[real-time]]></category>

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

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

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

		<guid isPermaLink="false">http://klkl.co.uk/?p=38</guid>
		<description><![CDATA[<p style="text-align: center;"><a href="http://klkl.co.uk/wp-content/uploads/2008/06/soho-eit304-2008-06-17-0719utc.jpg"><img class="alignnone size-medium wp-image-39 aligncenter" title="Sol 2008-06-17 07.19 UTC" src="http://klkl.co.uk/wp-content/uploads/2008/06/soho-eit304-2008-06-17-0719utc-300x300.jpg" alt="Our Sun on 20080617" width="300" height="300" /></a></p>
<p>The other week I found the NASA site for the <a title="NASA Solar and Helioscopic Observatory" href="http://sohowww.nascom.nasa.gov/home.html" target="_blank">Solar and Heliospheric Observatory</a> through someone else&#8217;s blog (cannot remember who though). Anyway I think it makes a good bookmark especially the <a title="Solar and Helioscopic Observatory Real Time Images" href="http://sohowww.nascom.nasa.gov/data/realtime/realtime-update.html" target="_blank">real time images and movies</a>.</p>
<p>I thought they were neat and so might you.</p>
]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://klkl.co.uk/wp-content/uploads/2008/06/soho-eit304-2008-06-17-0719utc.jpg"><img class="alignnone size-medium wp-image-39 aligncenter" title="Sol 2008-06-17 07.19 UTC" src="http://klkl.co.uk/wp-content/uploads/2008/06/soho-eit304-2008-06-17-0719utc-300x300.jpg" alt="Our Sun on 20080617" width="300" height="300" /></a></p>
<p>The other week I found the NASA site for the <a title="NASA Solar and Helioscopic Observatory" href="http://sohowww.nascom.nasa.gov/home.html" target="_blank">Solar and Heliospheric Observatory</a> through someone else&#8217;s blog (cannot remember who though). Anyway I think it makes a good bookmark especially the <a title="Solar and Helioscopic Observatory Real Time Images" href="http://sohowww.nascom.nasa.gov/data/realtime/realtime-update.html" target="_blank">real time images and movies</a>.</p>
<p>I thought they were neat and so might you.</p>
]]></content:encoded>
			<wfw:commentRss>http://klkl.co.uk/2008/06/17/real-time-images-movies-of-the-sun/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Getting Margin:Auto; To Work in Internet Explorer</title>
		<link>http://klkl.co.uk/2008/06/10/getting-margin-auto-to-work-in-internet-explorer/</link>
		<comments>http://klkl.co.uk/2008/06/10/getting-margin-auto-to-work-in-internet-explorer/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 19:21:05 +0000</pubDate>
		<dc:creator>klkl</dc:creator>
		
		<category><![CDATA[Blog Stuff]]></category>

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

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

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

		<category><![CDATA[internet explorer]]></category>

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

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

		<guid isPermaLink="false">http://klkl.co.uk/?p=36</guid>
		<description><![CDATA[<p>I&#8217;ve been doing a bit of web design in my spare time lately and before long I came across the issue of using margin: auto; in my stylesheet not working in internet explorer. Meeehhhh! I couldn&#8217;t be doing with that and given that the best way to attack an unknown problem is to search for knowledge I hit google (not literally of course).</p>
<p>Turns out, that you can force Internet Explorer (and other browsers) to parse your cascading style sheets strictly by using a strict doctype definition. I used the one below for my project;<br />
<span id="more-36"></span></p>
<p style="padding-left: 30px;"><strong>&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD HTML 4.01//EN&#8221; &#8220;http://www.w3.org/TR/html4/strict.dtd&#8221;&gt;</strong></p>
<p>This was news to me, but welcome, because now I can center my divs in a cross-browser compatible way and move on to other problems like why background images for input elements aren&#8217;t loading on https pages (please let me know if you know why).</p>
<p>Oh and if you&#8217;re interested in more information <a title="http://hsivonen.iki.fi/doctype/" href="http://hsivonen.iki.fi/doctype/" target="_blank">http://hsivonen.iki.fi/doctype/</a> has a useful table of which doctype definitions trigger what behaviour in the popular browsers.</p>
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been doing a bit of web design in my spare time lately and before long I came across the issue of using margin: auto; in my stylesheet not working in internet explorer. Meeehhhh! I couldn&#8217;t be doing with that and given that the best way to attack an unknown problem is to search for knowledge I hit google (not literally of course).</p>
<p>Turns out, that you can force Internet Explorer (and other browsers) to parse your cascading style sheets strictly by using a strict doctype definition. I used the one below for my project;<br />
<span id="more-36"></span></p>
<p style="padding-left: 30px;"><strong>&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD HTML 4.01//EN&#8221; &#8220;http://www.w3.org/TR/html4/strict.dtd&#8221;&gt;</strong></p>
<p>This was news to me, but welcome, because now I can center my divs in a cross-browser compatible way and move on to other problems like why background images for input elements aren&#8217;t loading on https pages (please let me know if you know why).</p>
<p>Oh and if you&#8217;re interested in more information <a title="http://hsivonen.iki.fi/doctype/" href="http://hsivonen.iki.fi/doctype/" target="_blank">http://hsivonen.iki.fi/doctype/</a> has a useful table of which doctype definitions trigger what behaviour in the popular browsers.</p>
]]></content:encoded>
			<wfw:commentRss>http://klkl.co.uk/2008/06/10/getting-margin-auto-to-work-in-internet-explorer/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Resize Windows / Linux Dual Boot Partitions Easily With Gparted</title>
		<link>http://klkl.co.uk/2008/05/30/resize-windows-linux-dual-boot-partitions-easily-with-gparted/</link>
		<comments>http://klkl.co.uk/2008/05/30/resize-windows-linux-dual-boot-partitions-easily-with-gparted/#comments</comments>
		<pubDate>Fri, 30 May 2008 14:52:32 +0000</pubDate>
		<dc:creator>klkl</dc:creator>
		
		<category><![CDATA[Linux]]></category>

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

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

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

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

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

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

		<category><![CDATA[hard disk]]></category>

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

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

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

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

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

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

		<guid isPermaLink="false">http://klkl.co.uk/?p=32</guid>
		<description><![CDATA[<p>I dual boot a couple of my machines and whilst I was looking for a way to reapportion the size between two partitions I came across <a title="Gparted at sourceforge.net" href="http://gparted.sourceforge.net/" target="_blank">Gparted</a>. It&#8217;s a Gnome based GUI for the <a title="GNU Parted at gnu.org" href="http://www.gnu.org/software/parted/index.shtml" target="_blank"><strong>GNU Parted</strong></a> program for creating, destroying, resizing, checking, and copying partitions, and the file systems on them.</p>
<p>What I really liked is there&#8217;s a linux livecd available so all you have to do is burn the disk image stick it in and aside from a few simple commands to boot the cd correctly it loads and starts Gparted.</p>
<p><span id="more-32"></span>The main screen looks like this:</p>
<p><a href="http://klkl.co.uk/wp-content/uploads/2008/05/gparted-main-window.jpg"><img class="aligncenter size-full wp-image-33" title="Gparted-main-window" src="http://klkl.co.uk/wp-content/uploads/2008/05/gparted-main-window.jpg" alt="main Gparted dialog" width="480" height="310" /></a></p>
<p>You select a drive from the drop down menu in the top right hand corner and the current partitions are displayed with their colour coordinated filesystems. Here my windows partition is first (green) then Gentoo (purple) and finally my swap. Used space appears yellow and free space is white. Select a partition to edit then click on &#8216;<strong>resize / move</strong>&#8216; to see the following dialog:</p>
<p><a href="http://klkl.co.uk/wp-content/uploads/2008/05/gparted-resize-dialog.jpg"><img class="aligncenter size-full wp-image-34" title="Gparted-resize-dialog" src="http://klkl.co.uk/wp-content/uploads/2008/05/gparted-resize-dialog.jpg" alt="Resize dialog of Gparted" width="480" height="201" /></a></p>
<p>Its a simple matter of choosing how you want to resize the partitions using the graphical sliders. Once you&#8217;ve set up your changes click apply and it&#8217;ll go and do all the hard work for you and display its progress as it works.</p>
<p>I used it to repartition space from an ext3 file system with Gentoo on it to a partition with an NTFS file system containing Vista. The whole process took a few hours and I hadn&#8217;t defragmented either of the drives or backed up any of my data. I strongly recommend that if you use this utility that you take adequate precautions to backup your data. Or if you&#8217;re feeling lucky just roll with it.</p>
<p>As it happens I didn&#8217;t lose any thing  and Gentoo booted just fine afterwards. Windows, however, was a bit more  troublesome. It complained at boot and made me put my installation disk in to &#8216;repair windows&#8217; which was fine  and after a reboot and chkdsk it was fine.</p>
<p>There was a note on the Gparted livecd about not being able to shrink Vista and it sometimes working and sometimes not and a set of instructions for using command line utilities to do the job. I didn&#8217;t shrink windows I expanded it but it worked for me.</p>
<p>Have fun <img src='http://klkl.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></description>
			<content:encoded><![CDATA[<p>I dual boot a couple of my machines and whilst I was looking for a way to reapportion the size between two partitions I came across <a title="Gparted at sourceforge.net" href="http://gparted.sourceforge.net/" target="_blank">Gparted</a>. It&#8217;s a Gnome based GUI for the <a title="GNU Parted at gnu.org" href="http://www.gnu.org/software/parted/index.shtml" target="_blank"><strong>GNU Parted</strong></a> program for creating, destroying, resizing, checking, and copying partitions, and the file systems on them.</p>
<p>What I really liked is there&#8217;s a linux livecd available so all you have to do is burn the disk image stick it in and aside from a few simple commands to boot the cd correctly it loads and starts Gparted.</p>
<p><span id="more-32"></span>The main screen looks like this:</p>
<p><a href="http://klkl.co.uk/wp-content/uploads/2008/05/gparted-main-window.jpg"><img class="aligncenter size-full wp-image-33" title="Gparted-main-window" src="http://klkl.co.uk/wp-content/uploads/2008/05/gparted-main-window.jpg" alt="main Gparted dialog" width="480" height="310" /></a></p>
<p>You select a drive from the drop down menu in the top right hand corner and the current partitions are displayed with their colour coordinated filesystems. Here my windows partition is first (green) then Gentoo (purple) and finally my swap. Used space appears yellow and free space is white. Select a partition to edit then click on &#8216;<strong>resize / move</strong>&#8216; to see the following dialog:</p>
<p><a href="http://klkl.co.uk/wp-content/uploads/2008/05/gparted-resize-dialog.jpg"><img class="aligncenter size-full wp-image-34" title="Gparted-resize-dialog" src="http://klkl.co.uk/wp-content/uploads/2008/05/gparted-resize-dialog.jpg" alt="Resize dialog of Gparted" width="480" height="201" /></a></p>
<p>Its a simple matter of choosing how you want to resize the partitions using the graphical sliders. Once you&#8217;ve set up your changes click apply and it&#8217;ll go and do all the hard work for you and display its progress as it works.</p>
<p>I used it to repartition space from an ext3 file system with Gentoo on it to a partition with an NTFS file system containing Vista. The whole process took a few hours and I hadn&#8217;t defragmented either of the drives or backed up any of my data. I strongly recommend that if you use this utility that you take adequate precautions to backup your data. Or if you&#8217;re feeling lucky just roll with it.</p>
<p>As it happens I didn&#8217;t lose any thing  and Gentoo booted just fine afterwards. Windows, however, was a bit more  troublesome. It complained at boot and made me put my installation disk in to &#8216;repair windows&#8217; which was fine  and after a reboot and chkdsk it was fine.</p>
<p>There was a note on the Gparted livecd about not being able to shrink Vista and it sometimes working and sometimes not and a set of instructions for using command line utilities to do the job. I didn&#8217;t shrink windows I expanded it but it worked for me.</p>
<p>Have fun <img src='http://klkl.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://klkl.co.uk/2008/05/30/resize-windows-linux-dual-boot-partitions-easily-with-gparted/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
