<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>phalkunz.com</title>
	
	<link>http://phalkunz.com</link>
	<description>programmer . web &amp; graphic enthusiast . amateur photographer . blogger . mac user</description>
	<pubDate>Sun, 15 Jun 2008 12:07:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/phalkunzsblog" type="application/rss+xml" /><item><title>Links for 2008-06-20 [del.icio.us]</title><link>http://feeds.feedburner.com/~r/phalkunzsblog/~3/316690362/phalkunz</link><pubDate>Sat, 21 Jun 2008 00:00:00 -0500</pubDate><guid isPermaLink="false">http://del.icio.us/phalkunz#2008-06-20</guid><content:encoded><![CDATA[<ul>
<li><a href="http://agilemanifesto.org/">Manifesto for Agile Software Development</a></li>
<li><a href="http://www.silverstripe.com/agile-software-development-methodology/">SilverStripe Agile Software Development Methodology</a></li>
</ul>]]></content:encoded><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://agilemanifesto.org/"&gt;Manifesto for Agile Software Development&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.silverstripe.com/agile-software-development-methodology/"&gt;SilverStripe Agile Software Development Methodology&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><feedburner:origLink>http://del.icio.us/phalkunz#2008-06-20</feedburner:origLink></item><item>
		<title>Street Flower</title>
		<link>http://feeds.feedburner.com/~r/phalkunzsblog/~3/312355911/</link>
		<comments>http://phalkunz.com/2008/06/16/street-flower/#comments</comments>
		<pubDate>Sun, 15 Jun 2008 12:07:57 +0000</pubDate>
		<dc:creator>phalkunz</dc:creator>
		
		<category><![CDATA[Photography]]></category>

		<category><![CDATA[closeup]]></category>

		<guid isPermaLink="false">http://phalkunz.com/?p=320</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm4.static.flickr.com/3161/2579635145_b059d431a6_o.jpg" alt="street flower" width="500" height="333" /></p>
]]></content:encoded>
			<wfw:commentRss>http://phalkunz.com/2008/06/16/street-flower/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=phalkunzsblog&amp;itemurl=http%3A%2F%2Fphalkunz.com%2F2008%2F06%2F16%2Fstreet-flower%2F</feedburner:awareness><feedburner:origLink>http://phalkunz.com/2008/06/16/street-flower/</feedburner:origLink></item>
		<item><title>Links for 2008-06-13 [del.icio.us]</title><link>http://feeds.feedburner.com/~r/phalkunzsblog/~3/311623213/phalkunz</link><pubDate>Sat, 14 Jun 2008 00:00:00 -0500</pubDate><guid isPermaLink="false">http://del.icio.us/phalkunz#2008-06-13</guid><content:encoded><![CDATA[<ul>
<li><a href="http://nettuts.com/html-css-techniques/creating-a-paypal-payment-form/">NETTUTS	 - Creating a PayPal Payment Form</a></li>
</ul>]]></content:encoded><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://nettuts.com/html-css-techniques/creating-a-paypal-payment-form/"&gt;NETTUTS	 - Creating a PayPal Payment Form&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><feedburner:origLink>http://del.icio.us/phalkunz#2008-06-13</feedburner:origLink></item><item><title>Links for 2008-06-11 [del.icio.us]</title><link>http://feeds.feedburner.com/~r/phalkunzsblog/~3/310174739/phalkunz</link><pubDate>Thu, 12 Jun 2008 00:00:00 -0500</pubDate><guid isPermaLink="false">http://del.icio.us/phalkunz#2008-06-11</guid><content:encoded><![CDATA[<ul>
<li><a href="http://mashable.com/2007/09/09/safari-plugins/">Top 10 Safari Plugins</a></li>
<li><a href="http://alistapart.com/articles/writingainterfacestyleguide">A List Apart: Articles: Writing an Interface Style Guide</a></li>
</ul>]]></content:encoded><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://mashable.com/2007/09/09/safari-plugins/"&gt;Top 10 Safari Plugins&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://alistapart.com/articles/writingainterfacestyleguide"&gt;A List Apart: Articles: Writing an Interface Style Guide&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><feedburner:origLink>http://del.icio.us/phalkunz#2008-06-11</feedburner:origLink></item><item><title>Links for 2008-06-10 [del.icio.us]</title><link>http://feeds.feedburner.com/~r/phalkunzsblog/~3/309371004/phalkunz</link><pubDate>Wed, 11 Jun 2008 00:00:00 -0500</pubDate><guid isPermaLink="false">http://del.icio.us/phalkunz#2008-06-10</guid><content:encoded><![CDATA[<ul>
<li><a href="http://chmox.sourceforge.net/">Chmox - a Mac OS X CHM viewer</a></li>
</ul>]]></content:encoded><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://chmox.sourceforge.net/"&gt;Chmox - a Mac OS X CHM viewer&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><feedburner:origLink>http://del.icio.us/phalkunz#2008-06-10</feedburner:origLink></item><item>
		<title>Widget:GoodShelf For GoodReads</title>
		<link>http://feeds.feedburner.com/~r/phalkunzsblog/~3/308223863/</link>
		<comments>http://phalkunz.com/2008/06/09/widgetgoodshelf-for-goodreads/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 11:12:21 +0000</pubDate>
		<dc:creator>phalkunz</dc:creator>
		
		<category><![CDATA[Tech]]></category>

		<category><![CDATA[plugin]]></category>

		<category><![CDATA[web]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://phalkunz.com/?p=319</guid>
		<description><![CDATA[I just finished writing a wordpress widget that grabs a list of books from GoodReads (book readers social network) and I&#8217;d like to share it with whoever needs it  If you want to use this widget you have to use Wordpress and of course have a GoodReads account. 
Features

Choose any shelf that you want to [...]]]></description>
			<content:encoded><![CDATA[<p>I just finished writing a wordpress widget that grabs a list of books from <a href="http://www.goodreads.com" target="_blank">GoodReads</a> (book readers social network) and I&#8217;d like to share it with whoever needs it <img src='http://phalkunz.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> If you want to use this widget you have to use Wordpress and of course have a GoodReads account. </p>
<h3>Features</h3>
<ul>
<li>Choose any shelf that you want to display</li>
<li>There are 16 sorting options</li>
<li>Choose one of the 3 book cover sizes</li>
<li>Show or hide book title</li>
<li>Set the length of book title</li>
<li>Show or hide author name, isbn, user rating, and average rating</li>
<li>You can also change the display labels for author name, isbn, user rating, and average rating</li>
</ul>
<h3>Download</h3>
<p><a href="http://phalkunz.com/download/4" 
				title="Version 1.0 downloaded 85 times" >GoodShelf (85)</a></p>
<h3>Installation</h3>
<p>To install it, simply unzip the download file and move/copy <strong>goodshelf.php</strong> to /<strong>wp-content/plugins</strong> folder of wordpress. In the admin page, go to <strong>Plugin </strong>and activate the <strong>GoodShelf</strong> plugin. After that, you need to configure to get it working. Go to <strong>Design</strong> or <strong>Presentation </strong>and select <strong>GoodShelf</strong>. There is a list of options (mentioned in Features) that you can choose from. The final step is go to <strong>Widget </strong>to add <strong>GoodShelf</strong> widget to your sidebar. </p>
<h3>Customization</h3>
<p>If you like to customize the widget, below is a list of CSS classes and id associated with the widget that you can style:</p>
<ul>
<li>Book list: .goodshelf_ul</li>
<li>Book item: .goodshelf_li</li>
<li>Book cover: .goodshelf_cover</li>
<li>Book description: .goodshelf_text</li>
<li>Profile link: #profile_link</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://phalkunz.com/2008/06/09/widgetgoodshelf-for-goodreads/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=phalkunzsblog&amp;itemurl=http%3A%2F%2Fphalkunz.com%2F2008%2F06%2F09%2Fwidgetgoodshelf-for-goodreads%2F</feedburner:awareness><feedburner:origLink>http://phalkunz.com/2008/06/09/widgetgoodshelf-for-goodreads/</feedburner:origLink></item>
		<item>
		<title>Web Browser, Web Browser, Web Browser …</title>
		<link>http://feeds.feedburner.com/~r/phalkunzsblog/~3/307030167/</link>
		<comments>http://phalkunz.com/2008/06/08/web-browser-web-browser-web-browser/#comments</comments>
		<pubDate>Sat, 07 Jun 2008 23:24:09 +0000</pubDate>
		<dc:creator>phalkunz</dc:creator>
		
		<category><![CDATA[Random]]></category>

		<category><![CDATA[Tech]]></category>

		<category><![CDATA[web browser]]></category>

		<guid isPermaLink="false">http://phalkunz.com/?p=318</guid>
		<description><![CDATA[
From left to right: Opera, Flock, Safari, Firefox, Camino, Shiira
These are the web browsers installed on my machine.
How many do you have?
]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm4.static.flickr.com/3060/2558978431_bd79471f54_o.png" alt="web browsers" /><br />
<span class="caption">From left to right: Opera, Flock, Safari, Firefox, Camino, Shiira</span></p>
<p>These are the web browsers installed on my machine.</p>
<p>How many do you have?</p>
]]></content:encoded>
			<wfw:commentRss>http://phalkunz.com/2008/06/08/web-browser-web-browser-web-browser/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=phalkunzsblog&amp;itemurl=http%3A%2F%2Fphalkunz.com%2F2008%2F06%2F08%2Fweb-browser-web-browser-web-browser%2F</feedburner:awareness><feedburner:origLink>http://phalkunz.com/2008/06/08/web-browser-web-browser-web-browser/</feedburner:origLink></item>
		<item><title>Links for 2008-06-06 [del.icio.us]</title><link>http://feeds.feedburner.com/~r/phalkunzsblog/~3/306583217/phalkunz</link><pubDate>Sat, 07 Jun 2008 00:00:00 -0500</pubDate><guid isPermaLink="false">http://del.icio.us/phalkunz#2008-06-06</guid><content:encoded><![CDATA[<ul>
<li><a href="http://www.papress.com/thinkingwithtype/letter/few_fonts.htm#">Type: A Few Good Fonts</a></li>
<li><a href="http://www.markboulton.co.uk/journal/comments/five_simple_steps_to_better_typography/">Five simple steps to better typography : Journal : Mark Boulton</a></li>
</ul>]]></content:encoded><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.papress.com/thinkingwithtype/letter/few_fonts.htm#"&gt;Type: A Few Good Fonts&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.markboulton.co.uk/journal/comments/five_simple_steps_to_better_typography/"&gt;Five simple steps to better typography : Journal : Mark Boulton&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><feedburner:origLink>http://del.icio.us/phalkunz#2008-06-06</feedburner:origLink></item><item><title>Links for 2008-06-05 [del.icio.us]</title><link>http://feeds.feedburner.com/~r/phalkunzsblog/~3/305833177/phalkunz</link><pubDate>Fri, 06 Jun 2008 00:00:00 -0500</pubDate><guid isPermaLink="false">http://del.icio.us/phalkunz#2008-06-05</guid><content:encoded><![CDATA[<ul>
<li><a href="http://nettuts.com/">NETTUTS - Web development tutorials and links	 - Spoonfed Web Tutorials</a></li>
<li><a href="http://www.3point7designs.com/blog/2008/06/02/10-examples-of-beautiful-css-typography-and-how-they-did-it/">&raquo; 10 Examples of Beautiful CSS Typography and how they did it&hellip; - Web Design Marketing Podcast &amp; Blog</a></li>
</ul>]]></content:encoded><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://nettuts.com/"&gt;NETTUTS - Web development tutorials and links	 - Spoonfed Web Tutorials&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.3point7designs.com/blog/2008/06/02/10-examples-of-beautiful-css-typography-and-how-they-did-it/"&gt;&amp;raquo; 10 Examples of Beautiful CSS Typography and how they did it&amp;hellip; - Web Design Marketing Podcast &amp;amp; Blog&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><feedburner:origLink>http://del.icio.us/phalkunz#2008-06-05</feedburner:origLink></item><item>
		<title>Batch-Resize Photos On Mac</title>
		<link>http://feeds.feedburner.com/~r/phalkunzsblog/~3/305701698/</link>
		<comments>http://phalkunz.com/2008/06/06/batch-resize-photos-on-mac/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 01:07:49 +0000</pubDate>
		<dc:creator>phalkunz</dc:creator>
		
		<category><![CDATA[Tech]]></category>

		<category><![CDATA[mac]]></category>

		<category><![CDATA[productivity]]></category>

		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://phalkunz.com/?p=317</guid>
		<description><![CDATA[
Normally, I use Photoshop to resize my photos because along with resizing photos I also need to apply some filters. A few days ago one of my friends asked me was there any application on Mac that lets him resize a bunch of photos in one go. He also mentioned that he didn&#8217;t wanna apply [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm4.static.flickr.com/3101/2554329235_6838637a37_o.jpg" style="border:none" alt="batch resize photos on mac" /></p>
<p>Normally, I use Photoshop to resize my photos because along with resizing photos I also need to apply some filters. A few days ago one of my friends asked me was there any application on Mac that lets him resize a bunch of photos in one go. He also mentioned that he didn&#8217;t wanna apply any filters at all and opening Photoshop takes time (it&#8217;s true).</p>
<p>Then I figured out that properly we could do that in Automator (a built-in application for automating repetitive tasks). I had never used Automator before but it&#8217;s really easy to use, everything is done by drag and drop. After a minute or so, I came up with a small app that does the job perfectly.</p>
<p>If you need to do that task over and over again, you might wanna check this app out. You can download it here <a href="http://phalkunz.com/download/3" 
				title="Version 1.0 downloaded 97 times" >ResizePhotos (97)</a>. I don&#8217;t need to explain how it works because every step in the app is quite explanatory. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://phalkunz.com/2008/06/06/batch-resize-photos-on-mac/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=phalkunzsblog&amp;itemurl=http%3A%2F%2Fphalkunz.com%2F2008%2F06%2F06%2Fbatch-resize-photos-on-mac%2F</feedburner:awareness><feedburner:origLink>http://phalkunz.com/2008/06/06/batch-resize-photos-on-mac/</feedburner:origLink></item>
		<item>
		<title>Let’s Bake Some Cakes</title>
		<link>http://feeds.feedburner.com/~r/phalkunzsblog/~3/302335598/</link>
		<comments>http://phalkunz.com/2008/06/02/lets-bake-some-cakes/#comments</comments>
		<pubDate>Sun, 01 Jun 2008 12:15:46 +0000</pubDate>
		<dc:creator>phalkunz</dc:creator>
		
		<category><![CDATA[Tech]]></category>

		<category><![CDATA[framework]]></category>

		<category><![CDATA[php]]></category>

		<category><![CDATA[programming]]></category>

		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://phalkunz.com/?p=316</guid>
		<description><![CDATA[This is a brief note about my reflection on choosing a web development framework.
In the last few days, I&#8217;ve been busy looking around for different web development frameworks. I&#8217;ve found quite a lot and these are some of the major ones - Ruby on Rails, Symfony, Django, CakePHP, CodeIgniter and Zend Framework. 
Ruby on Rails [...]]]></description>
			<content:encoded><![CDATA[<p>This is a brief note about my reflection on choosing a web development framework.</p>
<p>In the last few days, I&#8217;ve been busy looking around for different web development frameworks. I&#8217;ve found quite a lot and these are some of the major ones - <a href="http://www.rubyonrails.org/">Ruby on Rails</a>, <a href="http://www.symfony-project.org/">Symfony</a>, <a href="http://www.djangoproject.org/">Django</a>, CakePHP, <a href="http://codeigniter.com/">CodeIgniter</a> and <a href="http://framework.zend.com/">Zend Framework</a>. <span id="more-316"></span></p>
<p>Ruby on Rails is the most popular one because it&#8217;s the first one of its kind and it&#8217;s based on <a href="http://www.ruby-lang.org/">Ruby language</a>- which is an easy language to learn. But I have heard many people say that Ruby on Rails is not so scaleable in some ways.</p>
<p>Django uses <a href="http://www.python.org/">Python</a> language. Python is a powerful scripting language, which is also used by Google. Django is properly the best in terms of performance. However, I don&#8217;t like the structure of Python language at all, it really does concern me.</p>
<p>CakePHP, as you can see from the name, is based on <a href="http://www.php.net/">PHP language</a>. I can say PHP is the most popular (web) server scripting language language ever. PHP is probably the the closest to Ruby on Rails in terms of features provided. Other frameworks that are based on PHP are Symfony, CodeIgniter, and Zend Framework.</p>
<p>Personally, I did not choose Rails and Django due to the fact that I really like PHP language and I don&#8217;t wanna give up on it. Furthermore, not all hosting service providers support ruby and python so this is the major reason not to take Rails and Django. Then it came down to CakePHP, CodeIgniter, Symfony, and Zend Framework.</p>
<p>After looking at some code snippets of these frameworks, I realized that I prefer CodeIgniter and CakePHP. I mean it&#8217;s easy to get going with these two. It was really hard for me to choose one of the two. CodeIgniter code seems to be clearer and it has a lot of the components and helpers compared to cakePHP. However, cakePHP seems to be more popular and has more active community and also has quite a number of satellite sites around. After a while, I thought well after all, open source is all about community. I was reading a lot of blog posts on web development frameworks. It was really helpful reading <a href="http://snook.ca/">snook.ca</a>.</p>
<p>I spent more time reading CodeIgniter and CakePHP and finally I find myself falling for cakePHP. So now I know exactly that cakePHP is for me. I&#8217;ve been reading more on its documentation and tutorials. It is a really cool framework. It&#8217;s easy to get everything up and running yet there&#8217;s so much that you can customize and bakers (cake users/developers) are really helpful.</p>
<p>So, if you&#8217;re looking for a web framework for yourself I really recommend cakePHP. Check out the links below: </p>
<ul>
<li><a href="http://cakephp.org">Official site</a></li>
<li><a href="http://bakery.cakephp.org/">The bakery</a></li>
<li><a href="http://book.cakephp.org/">Cake Manual</a></li>
<li><a href="http://groups.google.com/group/cake-php">Cake group</a></li>
</ul>
<p>There&#8217;s one more thing I learned from reading cakePHP manual. Apart from learning a new framework, I&#8217;ve learned more about good practice and MVC methodology.</p>
<p>To conclude, all of the frameworks I mentioned here are all great but the reason I chose cakePHP is because it suits my style and its community. If you know any other good frameworks, let me know. I&#8217;ll most likely write on cakePHP.</p>
<p>Till then, happy baking!</p>
]]></content:encoded>
			<wfw:commentRss>http://phalkunz.com/2008/06/02/lets-bake-some-cakes/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=phalkunzsblog&amp;itemurl=http%3A%2F%2Fphalkunz.com%2F2008%2F06%2F02%2Flets-bake-some-cakes%2F</feedburner:awareness><feedburner:origLink>http://phalkunz.com/2008/06/02/lets-bake-some-cakes/</feedburner:origLink></item>
		<item><title>Links for 2008-05-27 [del.icio.us]</title><link>http://feeds.feedburner.com/~r/phalkunzsblog/~3/299592872/phalkunz</link><pubDate>Wed, 28 May 2008 00:00:00 -0500</pubDate><guid isPermaLink="false">http://del.icio.us/phalkunz#2008-05-27</guid><content:encoded><![CDATA[<ul>
<li><a href="http://snook.ca/archives/building_a_web_application/building_a_web_5/">Building a Web Application: Requirements Gathering - Snook.ca</a></li>
<li><a href="http://37signals.com/papers/introtopatterns/">Introduction to using pattern in web design</a><br/>
by 37signals</li>
</ul>]]></content:encoded><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://snook.ca/archives/building_a_web_application/building_a_web_5/"&gt;Building a Web Application: Requirements Gathering - Snook.ca&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://37signals.com/papers/introtopatterns/"&gt;Introduction to using pattern in web design&lt;/a&gt;&lt;br/&gt;
by 37signals&lt;/li&gt;
&lt;/ul&gt;</description><feedburner:origLink>http://del.icio.us/phalkunz#2008-05-27</feedburner:origLink></item><item>
		<title>Put Your Computer’s Uptime On Your Blog</title>
		<link>http://feeds.feedburner.com/~r/phalkunzsblog/~3/297169840/</link>
		<comments>http://phalkunz.com/2008/05/24/put-your-computers-uptime-on-your-blog/#comments</comments>
		<pubDate>Sat, 24 May 2008 11:46:27 +0000</pubDate>
		<dc:creator>phalkunz</dc:creator>
		
		<category><![CDATA[Tech]]></category>

		<category><![CDATA[bash]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[mac]]></category>

		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://phalkunz.com/?p=315</guid>
		<description><![CDATA[
The period that your machine has been in operation

I stumbled on an interesting blog post yesterday. The author wrote about various information which was included in his blog footer. There were 4 pieces of information and I found one of those really interesting - where he uses an Applescript to upload the uptime of his [...]]]></description>
			<content:encoded><![CDATA[<div style="float: left; width:160px; margin-right:10px;"><img class="alignnone size-medium wp-image-61" title="uptime" src="http://farm4.static.flickr.com/3102/2555135089_37f15ff80e_o.gif" alt="" width="150" /></p>
<div class="caption" style="text-align:left;">The period that your machine has been in operation</div>
</div>
<p>I stumbled on an <a href="http://www.wesg.ca/2008/05/the-footer/">interesting blog post</a> yesterday. The <a href="http://www.wesg.ca/about/">author</a> wrote about various information which was included in his blog footer. There were 4 pieces of information and I found one of those really interesting - where he uses an <a href="http://en.wikipedia.org/wiki/Applescript">Applescript</a> to upload the uptime of his computer (Macbook) and it is updated periodically. <span id="more-315"></span></p>
<p>Upon reading that post, it made me think of implementing the idea immediately. However, only after a while have I decided to do it. Instead of using Applescript, I chose <a href="http://en.wikipedia.org/wiki/Bash">bash script</a> because bash script is lower level than Applescript and furthermore, you don&#8217;t have to interact with other high level applications which consumes less system resources. Below is the bash script that does the work on local machine.</p>
<p><code><br />
# get the uptime<br />
days=$(uptime | awk '{print $3}')<br />
hours=$(uptime | awk '{print $5}' | sed 's/,//g')<br />
# start the uptime in a text file<br />
echo $days $time_lable &gt; temp.txt<br />
# use ftp to upload the file to a designed directory<br />
ftp ftp://username:password@host &lt;&lt;EOF<br />
cd "path-to/a-directory/on-web-server"<br />
put temp.txt<br />
bye<br />
EOF<br />
# delete the text file on the local machine<br />
rm temp.txt<br />
</code></p>
<p>Save the script into a directory, for instant, a home directory. After that, you need to update it periodically. How? <a href="http://en.wikipedia.org/wiki/Cron">Cron</a> (scheduling service on unix-like operating system) does this work perfectly. Create a new text file with the following code.</p>
<p><code><br />
# this runs once in one hour<br />
0 * * * * /path-to-the-bash-script<br />
</code></p>
<p>And then, you need to tell cron to start. Type the following in Terminal:</p>
<p><code><br />
&gt; crontab /patht-to-the-cron-job-file<br />
</code></p>
<p>There&#8217;s one thing left. We need to write a server script (PHP, Perl, or ASP) to display the text file upload by the bash script. The following is a PHP script to display the text file.</p>
<p><code><br />
&lt;?php<br />
$file = 'path-to-temp.txt';<br />
$fh = fopen($file, 'r');<br />
$content = fread($fh, filesize($file));<br />
// do some decoration work here<br />
// ......<br />
echo $content;<br />
?&gt;<br />
</code></p>
<p>It&#8217;s done.</p>
<p>Kudos to <a href="http://www.wesg.ca/">wesg.ca</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://phalkunz.com/2008/05/24/put-your-computers-uptime-on-your-blog/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=phalkunzsblog&amp;itemurl=http%3A%2F%2Fphalkunz.com%2F2008%2F05%2F24%2Fput-your-computers-uptime-on-your-blog%2F</feedburner:awareness><feedburner:origLink>http://phalkunz.com/2008/05/24/put-your-computers-uptime-on-your-blog/</feedburner:origLink></item>
		<item>
		<title>I’m a Wine Lover</title>
		<link>http://feeds.feedburner.com/~r/phalkunzsblog/~3/296580069/</link>
		<comments>http://phalkunz.com/2008/05/24/im-a-wine-lover/#comments</comments>
		<pubDate>Fri, 23 May 2008 13:57:41 +0000</pubDate>
		<dc:creator>phalkunz</dc:creator>
		
		<category><![CDATA[Lifestyle]]></category>

		<category><![CDATA[wine]]></category>

		<guid isPermaLink="false">http://phalkunz.com/?p=314</guid>
		<description><![CDATA[
Yes, I&#8217;m a wine lover. I like to try different wines from different places. I prefer red wine to white wine. I normally share a bottle or 2 once a week. Whenever I go to a supermarket in the weekend, I usually try to choose a different bottle. Any other wine lovers out there?
]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm4.static.flickr.com/3136/2515504821_e9b960e925_o.jpg" alt="" width="500" height="277" /></p>
<p>Yes, I&#8217;m a wine lover. I like to try different wines from different places. I prefer red wine to white wine. I normally share a bottle or 2 once a week. Whenever I go to a supermarket in the weekend, I usually try to choose a different bottle. Any other wine lovers out there?</p>
]]></content:encoded>
			<wfw:commentRss>http://phalkunz.com/2008/05/24/im-a-wine-lover/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=phalkunzsblog&amp;itemurl=http%3A%2F%2Fphalkunz.com%2F2008%2F05%2F24%2Fim-a-wine-lover%2F</feedburner:awareness><feedburner:origLink>http://phalkunz.com/2008/05/24/im-a-wine-lover/</feedburner:origLink></item>
		<item>
		<title>Fly Away</title>
		<link>http://feeds.feedburner.com/~r/phalkunzsblog/~3/294852925/</link>
		<comments>http://phalkunz.com/2008/05/21/fly-away/#comments</comments>
		<pubDate>Wed, 21 May 2008 07:31:39 +0000</pubDate>
		<dc:creator>phalkunz</dc:creator>
		
		<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://phalkunz.com/?p=313</guid>
		<description><![CDATA[
You might have seen this photo before. Yeah, I put it on the sidebar with a link to vote for it on JPGMag (www.jpgmag.com). Up to this point, you might have thought I won the competition or something. No, I didn&#8217;t and I&#8217;ve got a small number of votes compared to the last competition. Considering most [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm3.static.flickr.com/2155/2510085149_8fb0373d62_o.jpg" alt="fly away" width="500" height="333" /></p>
<p>You might have seen this photo before. Yeah, I put it on the sidebar with a link to vote for it on JPGMag (www.jpgmag.com). Up to this point, you might have thought I won the competition or something. No, I didn&#8217;t and I&#8217;ve got a small number of votes compared to <a title="A couple, a dog, and a bird" href="http://www.jpgmag.com/photos/135245">the last competition</a>. Considering most of you (or maybe all of you?) couldn&#8217;t get to vote for it since you need to register to cast a vote, I would like to get some comments from you guys here. You can see other people&#8217;s photos in the same competition at <a href="http://www.jpgmag.com/themes/87">http://www.jpgmag.com/themes/87</a>.</p>
<p>Just to let you know that whether I&#8217;ll get negative or position comments, I still keep going for the competition. This means that if the comment is positive, I&#8217;ll be more confident about my photography skill and if the comment is negative I&#8217;ll know which parts need more work and I&#8217;ll try to make it better next time. Anyways, just be honest when you comment. </p>
<p>Cheers :) </p>
<p>PS. <em>If you have a photo that you think it&#8217;s somewhat compelling, you really should put it into the next competition. Jpgmag is a really great community for people who love taking photo.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://phalkunz.com/2008/05/21/fly-away/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=phalkunzsblog&amp;itemurl=http%3A%2F%2Fphalkunz.com%2F2008%2F05%2F21%2Ffly-away%2F</feedburner:awareness><feedburner:origLink>http://phalkunz.com/2008/05/21/fly-away/</feedburner:origLink></item>
		<item>
		<title>Work: Vanda.com.kh</title>
		<link>http://feeds.feedburner.com/~r/phalkunzsblog/~3/293563686/</link>
		<comments>http://phalkunz.com/2008/05/19/work-vandacomkh/#comments</comments>
		<pubDate>Mon, 19 May 2008 10:27:11 +0000</pubDate>
		<dc:creator>phalkunz</dc:creator>
		
		<category><![CDATA[Works]]></category>

		<category><![CDATA[Cambodia]]></category>

		<category><![CDATA[information architecture]]></category>

		<category><![CDATA[web design]]></category>

		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://phalkunz.com/?p=312</guid>
		<description><![CDATA[
I&#8217;m proud to announce that this (vanda.com.kh) is my latest work in web design/development. I finished it 2 weeks ago but postponed posting it here until they actually updated some information on the website. 
Responsibilities: 

Information architecture
Site design (Wordpress theme)
Development (wordpress plugins - admin plugin and visitor counter)

]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm3.static.flickr.com/2033/2504996363_60e9a3a4a5_o.png" alt="vanda insitute website" width="500" height="209" /></p>
<p>I&#8217;m proud to announce that this (<a title="vanda institute" href="http://vanda.edu.kh/" target="_blank">vanda.com.kh</a>) is my latest work in web design/development. I finished it 2 weeks ago but postponed posting it here until they actually updated some information on the website. </p>
<p>Responsibilities: </p>
<ul>
<li>Information architecture</li>
<li>Site design (Wordpress theme)</li>
<li>Development (wordpress plugins - admin plugin and visitor counter)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://phalkunz.com/2008/05/19/work-vandacomkh/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=phalkunzsblog&amp;itemurl=http%3A%2F%2Fphalkunz.com%2F2008%2F05%2F19%2Fwork-vandacomkh%2F</feedburner:awareness><feedburner:origLink>http://phalkunz.com/2008/05/19/work-vandacomkh/</feedburner:origLink></item>
		<item>
		<title>3D Model Of Bayon Temple</title>
		<link>http://feeds.feedburner.com/~r/phalkunzsblog/~3/292784418/</link>
		<comments>http://phalkunz.com/2008/05/18/3d-modeling-of-bayon-temple/#comments</comments>
		<pubDate>Sun, 18 May 2008 10:52:54 +0000</pubDate>
		<dc:creator>phalkunz</dc:creator>
		
		<category><![CDATA[Tech]]></category>

		<category><![CDATA[Cambodia]]></category>

		<category><![CDATA[computer vision]]></category>

		<category><![CDATA[speech]]></category>

		<guid isPermaLink="false">http://phalkunz.com/?p=311</guid>
		<description><![CDATA[
This is a speech by Dr. Katsushi Ikeuchi who carried out a project to digitally model Bayon Temple with his student students in Siem Reap, Cambodia. Enjoy watching!
Enjoying amazing ancient structures through Internet technologies is one of
the most promising methods to promote our culture and cultural heritage.
These technologies involve sensing, transmission, and display. In this [...]]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="wmode" value="transparent" /><param name="src" value="http://www.youtube.com/v/DPiMJkZ0YKI&amp;hl=en" /><embed type="application/x-shockwave-flash" width="425" height="355" src="http://www.youtube.com/v/DPiMJkZ0YKI&amp;hl=en" wmode="transparent"></embed></object></p>
<p>This is a speech by Dr. Katsushi Ikeuchi who carried out a project to digitally model <a href="http://en.wikipedia.org/wiki/Bayon" target="_blank">Bayon Temple</a> with his student students in Siem Reap, Cambodia. Enjoy watching!</p>
<blockquote><p>Enjoying amazing ancient structures through Internet technologies is one of<br />
the most promising methods to promote our culture and cultural heritage.<br />
These technologies involve sensing, transmission, and display. In this talk,<br />
I will briefly explain these three aspects, and then focus on sensing<br />
issues, in particular, the technical challenges presented by sensing huge<br />
outdoor structures. I will describe the technical challenges and how we<br />
solved them as we confronted the difficult task of modeling the huge Bayon<br />
Temple in the Angkor ruin in Cambodia. I will show the digital data we<br />
obtained, including the entire structure of the temple, the hundred and<br />
seventy-three faces of deities, and the hidden pediments. I will also<br />
explain some of the technical issues involved in displaying the data we<br />
obtained, using our virtual Aska as an example.</p>
<p style="text-align: right;">Source: <a title="3D Modeling of Bayon Temple" href="http://www.youtube.com/watch?v=DPiMJkZ0YKI" target="_blank">Google Tech Talk, Speaker: Dr. Katsushi Ikeuchi </a></p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://phalkunz.com/2008/05/18/3d-modeling-of-bayon-temple/feed/</wfw:commentRss>
		<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetItemData?uri=phalkunzsblog&amp;itemurl=http%3A%2F%2Fphalkunz.com%2F2008%2F05%2F18%2F3d-modeling-of-bayon-temple%2F</feedburner:awareness><feedburner:origLink>http://phalkunz.com/2008/05/18/3d-modeling-of-bayon-temple/</feedburner:origLink></item>
	<feedburner:awareness>http://api.feedburner.com/awareness/1.0/GetFeedData?uri=phalkunzsblog</feedburner:awareness><lastBuildDate>Sat, 21 Jun 2008 00:00:00 -0500</lastBuildDate></channel>
</rss>
