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

<channel>
	<title>ph-lee</title>
	<atom:link href="http://www.ph-lee.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ph-lee.com</link>
	<description>aspire to inspire before you expire</description>
	<lastBuildDate>Sat, 29 May 2010 19:11:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>rm: /PATH_TO_FILE not removed: Disc quota exceeded</title>
		<link>http://www.ph-lee.com/2010/05/29/rm-path_to_file-not-removed-disc-quota-exceeded/</link>
		<comments>http://www.ph-lee.com/2010/05/29/rm-path_to_file-not-removed-disc-quota-exceeded/#comments</comments>
		<pubDate>Sat, 29 May 2010 19:11:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[joyent]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://www.ph-lee.com/?p=328</guid>
		<description><![CDATA[This occurred whilst using Solaris on Joyent. Somewhat annoying when one can&#8217;t remove a file when &#8220;Disc quota exceeded&#8221;!
What one can do is override the file contents with nothingness.
cat /dev/null >/PATH_TO_FILE
Source: Joyent forums
]]></description>
			<content:encoded><![CDATA[<p>This occurred whilst using <a href="http://en.wikipedia.org/wiki/Solaris_%28operating_system%29">Solaris</a> on <a href="http://www.joyent.com/">Joyent</a>. Somewhat annoying when one can&#8217;t remove a file when &#8220;Disc quota exceeded&#8221;!</p>
<p>What one can do is override the file contents with nothingness.</p>
<p><code>cat /dev/null >/PATH_TO_FILE</code></p>
<p>Source: <a href="http://forum.joyent.com/viewtopic.php?id=26181">Joyent forums</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ph-lee.com/2010/05/29/rm-path_to_file-not-removed-disc-quota-exceeded/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The real British Mac keyboard</title>
		<link>http://www.ph-lee.com/2010/03/27/the-real-british-mac-keyboard/</link>
		<comments>http://www.ph-lee.com/2010/03/27/the-real-british-mac-keyboard/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 14:10:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[binding]]></category>
		<category><![CDATA[british]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[key]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[mapping]]></category>
		<category><![CDATA[snow leopard]]></category>

		<guid isPermaLink="false">http://www.ph-lee.com/?p=318</guid>
		<description><![CDATA[You bought a mac in the UK only to find the keyboard layout isn&#8217;t fully British or fully American. See Wikipedia. There&#8217;s a pound symbol but the at, hash and quotation marks don&#8217;t seem quite right.
You&#8217;ll want to go to http://liyang.hu/osx-british.xhtml for a fix for snow leopard.
If you&#8217;re thinking that it&#8217;s the &#8220;mac way&#8221; and [...]]]></description>
			<content:encoded><![CDATA[<p>You bought a mac in the UK only to find the keyboard layout isn&#8217;t fully British or fully American. See <a href="http://en.wikipedia.org/wiki/British_and_American_keyboards">Wikipedia</a>. There&#8217;s a pound symbol but the at, hash and quotation marks don&#8217;t seem quite right.</p>
<p>You&#8217;ll want to go to <a href="http://liyang.hu/osx-british.xhtml">http://liyang.hu/osx-british.xhtml</a> for a fix for snow leopard.</p>
<p>If you&#8217;re thinking that it&#8217;s the &#8220;mac way&#8221; and you should accept it and live with I have to totally disagree. Any system should should be configurable to meet the user&#8217;s needs and imposing only one method of doing something is counter productive. It feels good to type this article on a keyboard knowing what each key should output rather than rewiring my brain. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.ph-lee.com/2010/03/27/the-real-british-mac-keyboard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ruby strftime parameters</title>
		<link>http://www.ph-lee.com/2010/02/05/ruby-strftime-parameters/</link>
		<comments>http://www.ph-lee.com/2010/02/05/ruby-strftime-parameters/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 19:40:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ph-lee.com/?p=272</guid>
		<description><![CDATA[ruby strftime parameters are not mentioned in the ruby api but are instead specified in the time.c source which can be found at http://ruby-doc.org/.

/*
*  call-seq:
*     time.strftime( string ) =&#62; string
*
*  Formats time according to the directives in the given format
*  string. Any text not listed as a directive [...]]]></description>
			<content:encoded><![CDATA[<p>ruby strftime parameters are not mentioned in the ruby api but are instead specified in the time.c source which can be found at <a href="http://ruby-doc.org/doxygen/1.8.4/time_8c-source.html#l01818">http://ruby-doc.org/</a>.</p>
<p><code><br />
/*<br />
*  call-seq:<br />
*     time.strftime( string ) =&gt; string<br />
*<br />
*  Formats <em>time</em> according to the directives in the given format<br />
*  string. Any text not listed as a directive will be passed through<br />
*  to the output string.<br />
*<br />
*  Format meaning:<br />
*    %a - The abbreviated weekday name (``Sun'')<br />
*    %A - The  full  weekday  name (``Sunday'')<br />
*    %b - The abbreviated month name (``Jan'')<br />
*    %B - The  full  month  name (``January'')<br />
*    %c - The preferred local date and time representation<br />
*    %d - Day of the month (01..31)<br />
*    %H - Hour of the day, 24-hour clock (00..23)<br />
*    %I - Hour of the day, 12-hour clock (01..12)<br />
*    %j - Day of the year (001..366)<br />
*    %m - Month of the year (01..12)<br />
*    %M - Minute of the hour (00..59)<br />
*    %p - Meridian indicator (``AM''  or  ``PM'')<br />
*    %S - Second of the minute (00..60)<br />
*    %U - Week  number  of the current year,<br />
*            starting with the first Sunday as the first<br />
*            day of the first week (00..53)<br />
*    %W - Week  number  of the current year,<br />
*            starting with the first Monday as the first<br />
*            day of the first week (00..53)<br />
*    %w - Day of the week (Sunday is 0, 0..6)<br />
*    %x - Preferred representation for the date alone, no time<br />
*    %X - Preferred representation for the time alone, no date<br />
*    %y - Year without a century (00..99)<br />
*    %Y - Year with century<br />
*    %Z - Time zone name<br />
*    %% - Literal ``%'' character<br />
*<br />
*     t = Time.now<br />
*     t.strftime("Printed on %m/%d/%Y")   #=&gt; "Printed on 04/09/2003"<br />
*     t.strftime("at %I:%M%p")            #=&gt; "at 08:56AM"<br />
*/<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ph-lee.com/2010/02/05/ruby-strftime-parameters/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ubuntu shutdown and wakeup timer</title>
		<link>http://www.ph-lee.com/2010/01/03/ubuntu-shutdown-and-wakeup-timer/</link>
		<comments>http://www.ph-lee.com/2010/01/03/ubuntu-shutdown-and-wakeup-timer/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 14:59:35 +0000</pubDate>
		<dc:creator>ph-lee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[acpi]]></category>
		<category><![CDATA[energy]]></category>
		<category><![CDATA[green]]></category>
		<category><![CDATA[kubuntu]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[media centre]]></category>
		<category><![CDATA[mythtv]]></category>
		<category><![CDATA[power]]></category>
		<category><![CDATA[rtcwake]]></category>
		<category><![CDATA[sleep]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.ph-lee.com/?p=266</guid>
		<description><![CDATA[Going green
My all-in-one kubuntu media centre and general server sits unused most of the time. So why not set it to switch on and off in sync with when I need it based on the time of day. Should save on some bills.
Requirements

ACPI
Linux

Method
Setup a cron job as root to shutdown at the specified time. To [...]]]></description>
			<content:encoded><![CDATA[<h3>Going green</h3>
<p>My all-in-one <a href="http://www.kubuntu.org/">kubuntu</a> <a href="http://www.mythtv.org">media centre</a> and general server sits unused most of the time. So why not set it to switch on and off in sync with when I need it based on the time of day. Should save on some bills.</p>
<h3>Requirements</h3>
<ul>
<li><a href="http://en.wikipedia.org/wiki/Advanced_Configuration_and_Power_Interface">ACPI</a></li>
<li>Linux</li>
</ul>
<h3>Method</h3>
<p>Setup a cron job as root to shutdown at the specified time. To edit crons as root enter the following.</p>
<p><code>sudo crontab -u root -e</code></p>
<p>Add the following line to the list. This will shut down the box everyday at 0400. Of course you can modify as needed to suit your needs. And if you want to hibernate I&#8217;m sure theres a hibernate command.</p>
<p><code>0 4 * * * /sbin/shutdown -h now</code></p>
<p>While we&#8217;re at it we&#8217;ll also set up the wakeup time using rtcwake. So also add the following to the cron list.</p>
<p><code>45 3 * * * /usr/sbin/rtcwake -m no -s 29700</code></p>
<p>15 minutes before the shutdown we set the box to wake up in 29700 seconds which equates to 8 hours and 15 minutes. So the machine is scheduled to wake up at 12 noon.</p>
<h3>Setup</h3>
<p>This solution might be setup dependent so here are some specs that may help&#8230;</p>
<ul>
<li>Linux kubuntu 9.10 Karmic Koala</li>
<li>2.6.31-16-generic #53-Ubuntu SMP Tue Dec 8 04:01:29 UTC 2009 i686 GNU/Linux</li>
<li>Motherboard: ASUS A7V-133 ACPI BIOS Revision 1007 (10/03/2001)</li>
</ul>
<p>Making media centres&#8217; greener.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ph-lee.com/2010/01/03/ubuntu-shutdown-and-wakeup-timer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MythTV blue screen on playback</title>
		<link>http://www.ph-lee.com/2009/12/28/mythtv-blue-screen-on-playback/</link>
		<comments>http://www.ph-lee.com/2009/12/28/mythtv-blue-screen-on-playback/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 00:54:24 +0000</pubDate>
		<dc:creator>ph-lee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mythtv]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.ph-lee.com/?p=256</guid>
		<description><![CDATA[Problem: Getting a blue screen on video and live TV playback with MythTV.
Solution from [ubuntu forums]
xvattr -a XV_CRTC -v 1
]]></description>
			<content:encoded><![CDATA[<p>Problem: Getting a blue screen on video and live TV playback with <a href="http://www.mythtv.org/">MythTV</a>.</p>
<p>Solution from <a href="http://ubuntuforums.org/showthread.php?t=606624">[ubuntu forums]</a></p>
<p><code>xvattr -a XV_CRTC -v 1</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ph-lee.com/2009/12/28/mythtv-blue-screen-on-playback/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
