<?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>letsDoGoodCode</title>
	<atom:link href="http://www.gangarasa.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gangarasa.com</link>
	<description>A WeBlog</description>
	<lastBuildDate>Mon, 16 Aug 2010 13:00:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Escape from Magic Quotes for Non-Frameworks Programmers</title>
		<link>http://www.gangarasa.com/2010/08/12/escape-from-magic-quotes-for-non-frameworks-programmers/</link>
		<comments>http://www.gangarasa.com/2010/08/12/escape-from-magic-quotes-for-non-frameworks-programmers/#comments</comments>
		<pubDate>Thu, 12 Aug 2010 08:20:02 +0000</pubDate>
		<dc:creator>Gangarasa</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Magic Quotes]]></category>
		<category><![CDATA[magic_quotes_gpc]]></category>

		<guid isPermaLink="false">http://www.gangarasa.com/?p=39</guid>
		<description><![CDATA[Here is a quick thing to help you fetch clean data from GET POST COOKIE and REQUEST input variables. Of course, you need to rely on something like mysql_real_escape_string before writing this into a database. But a common function like &#8230; <a href="http://www.gangarasa.com/2010/08/12/escape-from-magic-quotes-for-non-frameworks-programmers/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here is a quick thing to help you fetch clean data from <em>GET POST COOKIE</em> and <em>REQUEST</em> input variables. Of course, you need to rely on something like <em>mysql_real_escape_string</em> before writing this into a database. But a common function like this for the entire Web App will keep the data safe from slashes and helps you code without bothering whether <em>magic_quotes_gp</em>c is ON or OFF.</p>
<p><code><br />
/**<br />
 * Use this function to safely retreive data from GET POST COOKIE and REQUEST super globals<br />
 *<br />
 * @param String $_key Name of the POST element to be retrieved<br />
 * @return String Clean value without any slashes even if magic_quotes_gpc is enabled.<br />
 */<br />
function getFromGpc($_key, $_source='p')<br />
{<br />
    $_source = strtolower($_source);</p>
<p>    if( $_source == 'p' ):<br />
        if( get_magic_quotes_gpc() ) {<br />
            return stripslashes($_POST[$_key]);<br />
        } else {<br />
            return ($_POST[$_key]);<br />
        }<br />
    elseif( $_source == 'g' ):<br />
        if( get_magic_quotes_gpc() ) {<br />
            return stripslashes($_GET[$_key]);<br />
        } else {<br />
            return ($_GET[$_key]);<br />
        }<br />
    elseif( $_source == 'c' ):<br />
        if( get_magic_quotes_gpc() ) {<br />
            return stripslashes($_COOKIE[$_key]);<br />
        } else {<br />
            return ($_COOKIE[$_key]);<br />
        }<br />
    elseif( $_source == 'r' ):<br />
        if( get_magic_quotes_gpc() ) {<br />
            return stripslashes($_REQUEST[$_key]);<br />
        } else {<br />
            return ($_REQUEST[$_key]);<br />
        }<br />
    else:<br />
        if( get_magic_quotes_gpc() ) {<br />
            return stripslashes($_REQUEST[$_key]);<br />
        } else {<br />
            return ($_REQUEST[$_key]);<br />
        }<br />
    endif;<br />
}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gangarasa.com/2010/08/12/escape-from-magic-quotes-for-non-frameworks-programmers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flexible Client-side table sorting using jQuery</title>
		<link>http://www.gangarasa.com/2010/07/29/flexible-client-side-table-sorting-using-jquery/</link>
		<comments>http://www.gangarasa.com/2010/07/29/flexible-client-side-table-sorting-using-jquery/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 07:02:32 +0000</pubDate>
		<dc:creator>Gangarasa</dc:creator>
				<category><![CDATA[Client-Side]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[tablesorter]]></category>

		<guid isPermaLink="false">http://www.gangarasa.com/?p=36</guid>
		<description><![CDATA[I found these plugins to be very useful. Not sure if there is a new version of it. Worth trying. tablesorter: 1) http://tablesorter.com/docs/ 2) http://tablesorter.com/docs/example-pager.html]]></description>
			<content:encoded><![CDATA[<p>I found these plugins to be very useful. Not sure if there is a new version of it. Worth trying.</p>
<p>tablesorter:<br />
1) http://tablesorter.com/docs/<br />
2) http://tablesorter.com/docs/example-pager.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gangarasa.com/2010/07/29/flexible-client-side-table-sorting-using-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>doxentral &#8211; A CodeIgniter based Web App.</title>
		<link>http://www.gangarasa.com/2010/06/01/doxentral-a-codeigniter-based-web-app/</link>
		<comments>http://www.gangarasa.com/2010/06/01/doxentral-a-codeigniter-based-web-app/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 08:53:56 +0000</pubDate>
		<dc:creator>Gangarasa</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[ColorBox]]></category>
		<category><![CDATA[doxentral]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[SWFUpload]]></category>

		<guid isPermaLink="false">http://www.gangarasa.com/?p=33</guid>
		<description><![CDATA[New to CodeIgniter and looking for a example that helps you learn how a Model is written? or how form_valdiation library is used? and how to integrate SWFUpload? Here is a nice example: doxentral Useful links: CodeIgniter ColorBox jQuery Plugin &#8230; <a href="http://www.gangarasa.com/2010/06/01/doxentral-a-codeigniter-based-web-app/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>New to CodeIgniter and looking for a example that helps you learn how a Model is written? or how form_valdiation library is used? and how to integrate SWFUpload?</p>
<p>Here is a nice example:<br />
<a href="http://github.com/harvest/doxentral">doxentral</a></p>
<p>Useful links:<br />
<a href="http://codeigniter.com/">CodeIgniter</a><br />
<a href="http://colorpowered.com/colorbox/">ColorBox jQuery Plugin</a><br />
<a href="http://codeigniter.com/forums/viewthread/100098/#536121">Session class does not support a change of session ID (Facebook and Flash problem)</a><br />
<a href="http://www.swfupload.org/">SWFUpload</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gangarasa.com/2010/06/01/doxentral-a-codeigniter-based-web-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New! Google Chrome now has extensions and bookmark sync.</title>
		<link>http://www.gangarasa.com/2010/02/02/26/</link>
		<comments>http://www.gangarasa.com/2010/02/02/26/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 06:51:01 +0000</pubDate>
		<dc:creator>Gangarasa</dc:creator>
				<category><![CDATA[TechNews]]></category>

		<guid isPermaLink="false">http://www.gangarasa.com/?p=26</guid>
		<description><![CDATA[WoW! Google Chrome now has &#60;a href=&#8221;https://chrome.google.com/extensions?hl=en-US&#8221;&#62;extensions&#60;/a&#62; and bookmark sync. New area for developers to play. Just tried a few recent/popular extensions. They are superb. The Evernote Web Clipper, Dictionary, FireBug and Calendar extensions are worth trying&#8230;That&#8217;s not all, you can &#8230; <a href="http://www.gangarasa.com/2010/02/02/26/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>WoW! Google Chrome now has &lt;a href=&#8221;https://chrome.google.com/extensions?hl=en-US&#8221;&gt;extensions&lt;/a&gt; and bookmark sync. New area for developers to play.</p>
<p>Just tried a few recent/popular extensions. They are superb. The Evernote Web Clipper, Dictionary, FireBug and Calendar extensions are worth trying&#8230;That&#8217;s not all, you can now sync your Bookmarks with Google Docs!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gangarasa.com/2010/02/02/26/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Upload Max Size via .htaccess</title>
		<link>http://www.gangarasa.com/2010/01/25/setting-upload-max-size-via-htaccess/</link>
		<comments>http://www.gangarasa.com/2010/01/25/setting-upload-max-size-via-htaccess/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 11:58:25 +0000</pubDate>
		<dc:creator>Gangarasa</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[post_max_size]]></category>
		<category><![CDATA[upload_max_filesize]]></category>

		<guid isPermaLink="false">http://www.gangarasa.com/2010/01/25/setting-upload-max-size-via-htaccess/</guid>
		<description><![CDATA[Here is an example to allow File Uploads upto 2 GB. You may also have to consider Max Execution Time. PHP4: &#60;IfModule mod_php4.c&#62; php_value upload_max_filesize 2G php_value post_max_size 2G &#60;/IfModule&#62; PHP5: &#60;IfModule mod_php5.c&#62; php_value upload_max_filesize 2G php_value post_max_size 2G &#60;/IfModule&#62;]]></description>
			<content:encoded><![CDATA[<p>Here is an example to allow File Uploads upto 2 GB. You may also have to consider Max Execution Time.</p>
<p>PHP4:</p>
<p><code><br />
&lt;IfModule mod_php4.c&gt;</p>
<p>php_value upload_max_filesize 2G</p>
<p>php_value post_max_size 2G</p>
<p>&lt;/IfModule&gt;</code></p>
<p><code> </code></p>
<p>PHP5:</p>
<p><code><br />
&lt;IfModule mod_php5.c&gt;</p>
<p>php_value upload_max_filesize 2G</p>
<p>php_value post_max_size 2G</p>
<p>&lt;/IfModule&gt;</code></p>
<p><code> </code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gangarasa.com/2010/01/25/setting-upload-max-size-via-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tip: Searching for Unread e-mail in GMail</title>
		<link>http://www.gangarasa.com/2009/11/23/tip-searching-for-unread-e-mail-in-gmail/</link>
		<comments>http://www.gangarasa.com/2009/11/23/tip-searching-for-unread-e-mail-in-gmail/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 07:52:03 +0000</pubDate>
		<dc:creator>Gangarasa</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Searching E-Mails GMail]]></category>

		<guid isPermaLink="false">http://www.gangarasa.com/2009/11/23/tip-searching-for-unread-e-mail-in-gmail/</guid>
		<description><![CDATA[Finally, figured out how to find those hiding unread messages in my GMail Inbox or other folders. aah! A quick relief. Always hated going down the pages and finding the mails in some 20th or 40th page. You can just &#8230; <a href="http://www.gangarasa.com/2009/11/23/tip-searching-for-unread-e-mail-in-gmail/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Finally, figured out how to find those hiding unread messages in my GMail Inbox or other folders. aah! A quick relief. Always hated going down the pages and finding the mails in some 20th or 40th page.</p>
<p>You can just use &#8220;is:unread in:inbox&#8221; to search all unread mails in the Inbox. Without quotes though!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gangarasa.com/2009/11/23/tip-searching-for-unread-e-mail-in-gmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML to PDF from PHP Made Easy!</title>
		<link>http://www.gangarasa.com/2009/05/04/html-to-pdf-from-php-made-easy/</link>
		<comments>http://www.gangarasa.com/2009/05/04/html-to-pdf-from-php-made-easy/#comments</comments>
		<pubDate>Mon, 04 May 2009 12:01:36 +0000</pubDate>
		<dc:creator>Gangarasa</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[dompdf]]></category>
		<category><![CDATA[FPDF]]></category>
		<category><![CDATA[HTML to PDF]]></category>

		<guid isPermaLink="false">http://www.gangarasa.com/2009/05/04/html-to-pdf-from-php-made-easy/</guid>
		<description><![CDATA[Finally, found two new Libraries that makes a PHP programmer&#8217;s life easy. Tested both and they seem to work pretty fine for simple requirements like PDF receipt generation or news letter download or e-Ticket/e-Cert generation. FPDF (PHP4 and PHP5) dompdf (PHP5 &#8230; <a href="http://www.gangarasa.com/2009/05/04/html-to-pdf-from-php-made-easy/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Finally, found two new Libraries that makes a PHP programmer&#8217;s life easy. Tested both and they seem to work pretty fine for simple requirements like PDF receipt generation or news letter download or e-Ticket/e-Cert generation.</p>
<p><a title="FPDF" href="http://www.fpdf.org/" target="_blank">FPDF</a> (PHP4 and PHP5)<br />
<a title="dompdf" href="http://www.digitaljunkies.ca/dompdf/about.php" target="_blank"> dompdf</a> (PHP5 Only)</p>
<p>Happy PDFing!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gangarasa.com/2009/05/04/html-to-pdf-from-php-made-easy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WorldPay Error: Cannot find an available route for the purchase. This may be caused by merchant configuration or remote systems failures.</title>
		<link>http://www.gangarasa.com/2009/04/25/worldpay-error-cannot-find-an-available-route-for-the-purchase/</link>
		<comments>http://www.gangarasa.com/2009/04/25/worldpay-error-cannot-find-an-available-route-for-the-purchase/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 02:41:38 +0000</pubDate>
		<dc:creator>Gangarasa</dc:creator>
				<category><![CDATA[Payment Gateways]]></category>
		<category><![CDATA[WorldPay]]></category>

		<guid isPermaLink="false">http://www.gangarasa.com/?p=14</guid>
		<description><![CDATA[You ever got this error on your WorldPay Installation? &#8220;Cannot find an available route for the purchase. This may be caused by merchant configuration or remote systems failures&#8221; Then, you might be trying to charge something really less than 1.0 &#8230; <a href="http://www.gangarasa.com/2009/04/25/worldpay-error-cannot-find-an-available-route-for-the-purchase/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>You ever got this error on your WorldPay Installation?</p>
<p>&#8220;<span class="Apple-style-span" style="border-collapse: separate; color: #000000; font-family: arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">Cannot find an available route for the purchase. This may be caused by merchant configuration or remote systems failures</span>&#8221;</p>
<p>Then, you might be trying to charge something really less than 1.0 USD/EUR/GBP! Yes, that&#8217;s what I was doing too! None of the forums had an answer and had to spend 48 hours to find out reason and get it to work. Dear Google: Index this fast! <img src='http://www.gangarasa.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.gangarasa.com/2009/04/25/worldpay-error-cannot-find-an-available-route-for-the-purchase/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thanks to new generation Browsers, JS, Flex&#8230;</title>
		<link>http://www.gangarasa.com/2009/02/17/thanks-to-new-generation-browsers-js-flex/</link>
		<comments>http://www.gangarasa.com/2009/02/17/thanks-to-new-generation-browsers-js-flex/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 14:35:45 +0000</pubDate>
		<dc:creator>Gangarasa</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Favorite Sites]]></category>
		<category><![CDATA[Online Charts]]></category>
		<category><![CDATA[WebApp]]></category>

		<guid isPermaLink="false">http://www.gangarasa.com/2009/02/17/thanks-to-new-generation-browsers-js-flex/</guid>
		<description><![CDATA[Here are two good sites I came across. Like them both for their brilliant look and speed. http://www.webappers.com/ http://my.lovelycharts.com/]]></description>
			<content:encoded><![CDATA[<p>Here are two good sites I came across. Like them both for their brilliant look and speed.</p>
<p>http://www.webappers.com/</p>
<p>http://my.lovelycharts.com/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gangarasa.com/2009/02/17/thanks-to-new-generation-browsers-js-flex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Happy New Year 2009</title>
		<link>http://www.gangarasa.com/2008/12/31/happy-new-year-2009/</link>
		<comments>http://www.gangarasa.com/2008/12/31/happy-new-year-2009/#comments</comments>
		<pubDate>Wed, 31 Dec 2008 14:20:40 +0000</pubDate>
		<dc:creator>Gangarasa</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[New Year]]></category>

		<guid isPermaLink="false">http://www.gangarasa.com/?p=9</guid>
		<description><![CDATA[Hi All, Thanks and GoodBye 2008 Thanks for giving us stable PHP5 builds and MySQL builds! The time has really turned well for OpenSource, especially for LAMP stack. We wish to do a lot of useful, productive work using LAMP &#8230; <a href="http://www.gangarasa.com/2008/12/31/happy-new-year-2009/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hi All,</p>
<p>Thanks and GoodBye 2008 <img src='http://www.gangarasa.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks for giving us stable PHP5 builds and MySQL builds! The time has really turned well for OpenSource, especially for LAMP stack. We wish to do a lot of useful, productive work using LAMP in the new year! Here is a blog dedicated to that!!</p>
<p>Wishing all the readers</p>
<blockquote>
<h2><span style="color: #ff6600;">A Happy and Prosperous New Year 2009</span></h2>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.gangarasa.com/2008/12/31/happy-new-year-2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
