<?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>lets_Do_GoodCode()</title>
	<atom:link href="http://www.gangarasa.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gangarasa.com</link>
	<description>A Developer&#039;s WebLog!</description>
	<lastBuildDate>Mon, 16 Jan 2012 10:06:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Extending ls command</title>
		<link>http://www.gangarasa.com/lets-Do-GoodCode/extending-ls-command/</link>
		<comments>http://www.gangarasa.com/lets-Do-GoodCode/extending-ls-command/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 10:06:10 +0000</pubDate>
		<dc:creator>Gangarasa</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://www.gangarasa.com/?p=62</guid>
		<description><![CDATA[How to generate list of files and their size in bytes? Comma Separated List (CSV) $ls -l &#124; awk '{ print $5 "," $9 }' &#62; list.tsv Tab Separated List (TSV) $ls -l &#124; awk '{ print $5 "\t" $9 &#8230; <a href="http://www.gangarasa.com/lets-Do-GoodCode/extending-ls-command/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>How to generate list of files and their size in bytes?</strong></p>
<p>Comma Separated List (CSV)<br />
<code>$ls -l | awk '{ print $5 "," $9 }' &gt; list.tsv</code></p>
<p>Tab Separated List (TSV)<br />
<code>$ls -l | awk '{ print $5 "\t" $9 }' &gt; list.tsv</code></p>
<p><em><code>$5</code> &#8211; Ordinal position for Size in bytes.</em><br />
<em> <code>$9</code> &#8211; Name of the file.</em></p>
<p>&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gangarasa.com/lets-Do-GoodCode/extending-ls-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cisco VPN Client for Mac</title>
		<link>http://www.gangarasa.com/lets-Do-GoodCode/cisco-vpn-client-for-mac/</link>
		<comments>http://www.gangarasa.com/lets-Do-GoodCode/cisco-vpn-client-for-mac/#comments</comments>
		<pubDate>Sat, 02 Jul 2011 08:06:57 +0000</pubDate>
		<dc:creator>Gangarasa</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[TechNews]]></category>

		<guid isPermaLink="false">http://www.gangarasa.com/?p=51</guid>
		<description><![CDATA[Finally, after 12 years of windows 3.x, 95, ME, 2000, XP, Vista and 7 I decided to try a Mac. Got one, setup XCode, TextWrangler, FTP client, AirPort, MS Office, IMs. Most of it went smoothly. The first major issue &#8230; <a href="http://www.gangarasa.com/lets-Do-GoodCode/cisco-vpn-client-for-mac/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Finally, after 12 years of windows 3.x, 95, ME, 2000, XP, Vista and 7 I decided to try a Mac. Got one, setup XCode, TextWrangler, FTP client, AirPort, MS Office, IMs. Most of it went smoothly. The first major issue was with setting up VPN Client. After all the exercise, RackSpace guys suggested me to simply use Mac&#8217;s vpnclient instead of Cisco&#8217;s.</p>
<p>The reason behind this post is to say 1) None of the forum posts helped as they all suggested to try restarting vpn client. 2) It is a lot easier to setup mac&#8217;s vpn client.</p>
<p>Here is what I did or rather RackSpace guy instructed me to do <img src='http://www.gangarasa.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Goto System Preferences then select Network (under Internet and Wireless)..<br />
Create new session by clicking (+), and with the<br />
Interface = VPN<br />
VPN Type = Cisco IPsec<br />
Service Name = [Whatever name you like]</p>
<p>Server address: [Your server ip.]<br />
Account Name: [Username]</p>
<p>	Authentication Settings:<br />
	Shared Secret: [Username]<br />
	Group name: [Your Group Name]</p>
<p>press Ok</p>
<p>and then Connect</p>
<p>dialogue window will pop up:</p>
<p>use your personal log in credentials<br />
username: [Username]<br />
password: [Password]</p>
<p>That&#8217;s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gangarasa.com/lets-Do-GoodCode/cisco-vpn-client-for-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UPDATEs without a WHERE?!</title>
		<link>http://www.gangarasa.com/lets-Do-GoodCode/updates-without-a-where/</link>
		<comments>http://www.gangarasa.com/lets-Do-GoodCode/updates-without-a-where/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 11:54:57 +0000</pubDate>
		<dc:creator>Gangarasa</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[silly life savers!]]></category>

		<guid isPermaLink="false">http://www.gangarasa.com/?p=42</guid>
		<description><![CDATA[It&#8217;s quite common that programmers (non-framework) write UPDATEs without WHERE clause and cause unexpected problems. This perhaps can make their job inconsistent as well and not just the database Well if you&#8217;re a programmer follow some simple techniques to save &#8230; <a href="http://www.gangarasa.com/lets-Do-GoodCode/updates-without-a-where/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s quite common that programmers (non-framework) write UPDATEs without WHERE clause and cause unexpected problems. This perhaps can make their job inconsistent as well and not just the database <img src='http://www.gangarasa.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Well if you&#8217;re a programmer follow some simple techniques to save your job and database. If you forget to write the WHERE clause the query would fail leaving the data safe.</p>
<p>$sql = &#8220;UPDATE<br />
<table_name>&#8220;.<br />
&#8221; SET x = &#8216;y&#8217;, z = &#8216;a&#8217; WHERE&#8221;.<br />
&#8220;somekey = &#8216;someval&#8217;&#8221;;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gangarasa.com/lets-Do-GoodCode/updates-without-a-where/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Escape from Magic Quotes for Non-Frameworks Programmers</title>
		<link>http://www.gangarasa.com/lets-Do-GoodCode/escape-from-magic-quotes-for-non-frameworks-programmers/</link>
		<comments>http://www.gangarasa.com/lets-Do-GoodCode/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/lets-Do-GoodCode/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/lets-Do-GoodCode/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/lets-Do-GoodCode/flexible-client-side-table-sorting-using-jquery/</link>
		<comments>http://www.gangarasa.com/lets-Do-GoodCode/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/lets-Do-GoodCode/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/lets-Do-GoodCode/doxentral-a-codeigniter-based-web-app/</link>
		<comments>http://www.gangarasa.com/lets-Do-GoodCode/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/lets-Do-GoodCode/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/lets-Do-GoodCode/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/lets-Do-GoodCode/26/</link>
		<comments>http://www.gangarasa.com/lets-Do-GoodCode/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/lets-Do-GoodCode/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/lets-Do-GoodCode/26/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Upload Max Size via .htaccess</title>
		<link>http://www.gangarasa.com/lets-Do-GoodCode/setting-upload-max-size-via-htaccess/</link>
		<comments>http://www.gangarasa.com/lets-Do-GoodCode/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/lets-Do-GoodCode/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/lets-Do-GoodCode/tip-searching-for-unread-e-mail-in-gmail/</link>
		<comments>http://www.gangarasa.com/lets-Do-GoodCode/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/lets-Do-GoodCode/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/lets-Do-GoodCode/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/lets-Do-GoodCode/html-to-pdf-from-php-made-easy/</link>
		<comments>http://www.gangarasa.com/lets-Do-GoodCode/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/lets-Do-GoodCode/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/lets-Do-GoodCode/html-to-pdf-from-php-made-easy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

