<?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>Microshell &#187; Programming</title>
	<atom:link href="http://www.microshell.com/browse/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.microshell.com</link>
	<description>Learn something share something</description>
	<lastBuildDate>Tue, 14 Dec 2010 20:28:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Brain teaser: splitting revenue fairly.</title>
		<link>http://www.microshell.com/programming/general-algorithm/brain-teaser-splitting-revenue-fairly/</link>
		<comments>http://www.microshell.com/programming/general-algorithm/brain-teaser-splitting-revenue-fairly/#comments</comments>
		<pubDate>Sat, 30 Oct 2010 18:24:20 +0000</pubDate>
		<dc:creator>Maresa</dc:creator>
				<category><![CDATA[General / Algorithm]]></category>

		<guid isPermaLink="false">http://www.microshell.com/?p=2059</guid>
		<description><![CDATA[While this brain teaser can be applied to more than programming, I think it&#8217;s a very nice one to sharpen our problem-solving solution required to do a good programming.
There were 2 people, A and B. They joined together to have a meal. Person A brought 3 loafs of bread. Person B brought 5 loafs of [...]]]></description>
		<wfw:commentRss>http://www.microshell.com/programming/general-algorithm/brain-teaser-splitting-revenue-fairly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP exception handling.</title>
		<link>http://www.microshell.com/programming/php/php-exception-handling/</link>
		<comments>http://www.microshell.com/programming/php/php-exception-handling/#comments</comments>
		<pubDate>Sun, 23 Aug 2009 19:09:24 +0000</pubDate>
		<dc:creator>Maresa</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.microshell.com/?p=1807</guid>
		<description><![CDATA[I normally post tutorials, how-tos or the likes. This post is a little bit different than the others. It&#8217;s more like a thought that I came across when I finally decided to use PHP&#8217;s exception handling.
Here&#8217;s the basic form of PHP&#8217;s exception handling.

try {
	// Do something
} catch (DataErrorException $e) {
	// Handle data error here
} catch [...]]]></description>
		<wfw:commentRss>http://www.microshell.com/programming/php/php-exception-handling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solving sudoku using PostgreSQL PL/pgSQL</title>
		<link>http://www.microshell.com/database/postgresql/solving-sudoku-using-postgresql-plpgsql/</link>
		<comments>http://www.microshell.com/database/postgresql/solving-sudoku-using-postgresql-plpgsql/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 23:09:01 +0000</pubDate>
		<dc:creator>Maresa</dc:creator>
				<category><![CDATA[General / Algorithm]]></category>
		<category><![CDATA[PostgreSQL]]></category>

		<guid isPermaLink="false">http://www.microshell.com/?p=1197</guid>
		<description><![CDATA[I have no idea why I would want to solve sudoku in PostgreSQL PL/pgSQL. My guess would be just for the fun of it. I&#8217;m also hoping that it can serve as a tutorial example in programming PostgreSQL PL/pgSQL.
So what is sudoku? It is basically a number puzzle where the objective is to fill 9&#215;9 [...]]]></description>
		<wfw:commentRss>http://www.microshell.com/database/postgresql/solving-sudoku-using-postgresql-plpgsql/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>XML and Ampersand (&amp;)</title>
		<link>http://www.microshell.com/programming/php/xml-and-ampersand/</link>
		<comments>http://www.microshell.com/programming/php/xml-and-ampersand/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 00:50:33 +0000</pubDate>
		<dc:creator>Maresa</dc:creator>
				<category><![CDATA[General / Algorithm]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.microshell.com/?p=1662</guid>
		<description><![CDATA[I&#8217;m not sure if many programmers know this. But it&#8217;s always a good thing to make sure that they (including me) do. XML specification doesn&#8217;t allow ampersand (&#038;). Here&#8217;s a quote from W3c.org XML recommendation with bold emphasis added by me.

The ampersand character (&#038;) and the left angle bracket ( 5C&#8217;. How would you write [...]]]></description>
		<wfw:commentRss>http://www.microshell.com/programming/php/xml-and-ampersand/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>_PHPLIB[libdir] Cross Site Scripting Exploit Explained</title>
		<link>http://www.microshell.com/programming/php/_phpliblibdir-cross-site-scripting-exploit-explained/</link>
		<comments>http://www.microshell.com/programming/php/_phpliblibdir-cross-site-scripting-exploit-explained/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 04:41:10 +0000</pubDate>
		<dc:creator>Maresa</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.microshell.com/?p=1580</guid>
		<description><![CDATA[Lately, I&#8217;ve seen an increased attack of bad people trying to run XSS exploit on this website using _PHPLIB[libdir] exploit. It alarmed me a bit as I didn&#8217;t really know about that particular exploit. Obviously I wanted to make sure that my site is not vulnerable for it. So I did a little bit digging.
For [...]]]></description>
		<wfw:commentRss>http://www.microshell.com/programming/php/_phpliblibdir-cross-site-scripting-exploit-explained/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comparing 2 dates in PHP &#8211; A better way</title>
		<link>http://www.microshell.com/programming/php/comparing-2-dates-in-php-a-better-way/</link>
		<comments>http://www.microshell.com/programming/php/comparing-2-dates-in-php-a-better-way/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 16:47:08 +0000</pubDate>
		<dc:creator>Maresa</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.microshell.com/?p=1546</guid>
		<description><![CDATA[If you Google around for php compare 2 dates, (at the time of this writing) typically they suggest for you to convert the date string into some integer using mktime() or strtotime(). Both the functions returns you Unix timestamp.
Understanding Unix Timestamp
In my other article, I mentioned that one of the golden rule of programming is [...]]]></description>
		<wfw:commentRss>http://www.microshell.com/programming/php/comparing-2-dates-in-php-a-better-way/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Remote debugging PHP using Xdebug on MAMP</title>
		<link>http://www.microshell.com/programming/php/remote-debugging-php-using-xdebug-on-mamp/</link>
		<comments>http://www.microshell.com/programming/php/remote-debugging-php-using-xdebug-on-mamp/#comments</comments>
		<pubDate>Fri, 22 May 2009 06:19:50 +0000</pubDate>
		<dc:creator>Maresa</dc:creator>
				<category><![CDATA[MacOS X]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.microshell.com/?p=1107</guid>
		<description><![CDATA[A development tools such as Microsoft Visual Studio has debugging feature built-in where you can step through the code line by line and watch the variables. There are times when you may want to do the same thing with PHP script running in a remote (or it could be local as well) web server. It [...]]]></description>
		<wfw:commentRss>http://www.microshell.com/programming/php/remote-debugging-php-using-xdebug-on-mamp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Adding new lines to beginning of files.</title>
		<link>http://www.microshell.com/sysadmin/unix/adding-new-lines-to-beginning-of-files/</link>
		<comments>http://www.microshell.com/sysadmin/unix/adding-new-lines-to-beginning-of-files/#comments</comments>
		<pubDate>Wed, 06 May 2009 04:58:28 +0000</pubDate>
		<dc:creator>Maresa</dc:creator>
				<category><![CDATA[General Unix]]></category>
		<category><![CDATA[Quick Tips]]></category>

		<guid isPermaLink="false">http://www.microshell.com/?p=1241</guid>
		<description><![CDATA[I needed to do this when I want to debug my scripts for memory usage. My problem at that time was that as I include libraries, for some reasons PHP uses more memory even though I haven&#8217;t run a single code (other than require_once).
So my idea is to add memory_get_usage() function call on the beginning [...]]]></description>
		<wfw:commentRss>http://www.microshell.com/sysadmin/unix/adding-new-lines-to-beginning-of-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introduction to merging with SVN</title>
		<link>http://www.microshell.com/programming/general-algorithm/introduction-to-merging-with-svn/</link>
		<comments>http://www.microshell.com/programming/general-algorithm/introduction-to-merging-with-svn/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 00:56:42 +0000</pubDate>
		<dc:creator>Maresa</dc:creator>
				<category><![CDATA[General / Algorithm]]></category>

		<guid isPermaLink="false">http://www.microshell.com/?p=879</guid>
		<description><![CDATA[One of the &#8220;problem&#8221; in using SVN with branches is that you have to figure out which revisions to apply. In most cases, one could not simply take the HEAD version and simply merge that to a branch or TRUNK.
On this page, I&#8217;ll attempt to explain why we can&#8217;t simply merge the HEAD version. On [...]]]></description>
		<wfw:commentRss>http://www.microshell.com/programming/general-algorithm/introduction-to-merging-with-svn/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using PHP Variable Variable.</title>
		<link>http://www.microshell.com/programming/php/using-php-variable-variable/</link>
		<comments>http://www.microshell.com/programming/php/using-php-variable-variable/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 22:30:45 +0000</pubDate>
		<dc:creator>Maresa</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.microshell.com/?p=1046</guid>
		<description><![CDATA[I&#8217;ve known the concept of PHP&#8217;s variable-variable from when I start working with PHP years ago. I thought it&#8217;s a neat feature that I&#8217;m not sure what, if any, it is useful for. Just recently, I found that it&#8217;s actually useful for me while generating XML using SimpleXML. If you&#8217;ve never heard about variable-variable, then [...]]]></description>
		<wfw:commentRss>http://www.microshell.com/programming/php/using-php-variable-variable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

