<?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>GotChance &#187; Programming</title>
	<atom:link href="http://gotchance.com/blog/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://gotchance.com/blog</link>
	<description>web (design + development) and other geeky stuff !</description>
	<lastBuildDate>Fri, 21 May 2010 19:33:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>My C++ Mario Game And 3D Design</title>
		<link>http://gotchance.com/blog/2009/05/22/my-c-mario-game-and-3d-design/</link>
		<comments>http://gotchance.com/blog/2009/05/22/my-c-mario-game-and-3d-design/#comments</comments>
		<pubDate>Fri, 22 May 2009 15:42:03 +0000</pubDate>
		<dc:creator>Hari</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://gotchance.com/blog/?p=512</guid>
		<description><![CDATA[In my last post I mentioned that I&#8217;ve been learning Game programming in C++ and also 3D design using Blender. Chris commented on the post suggesting that I post my works on the blog and thats exactly what I&#8217;m going to do in this post. I&#8217;m a master neither in the game programming nor in [...]]]></description>
			<content:encoded><![CDATA[<p>In my last post I mentioned that I&#8217;ve been learning Game programming in C++ and also 3D design using Blender. Chris <a href="http://gotchance.com/blog/2009/05/15/what-am-i-upto-these-days/#comment-6386">commented</a> on the post suggesting that I post my works on the blog and thats exactly what I&#8217;m going to do in this post. I&#8217;m a master neither in the game programming nor in the 3d design. So forgive me if my work is amatuerish.</p>
<h3><a href="http://gotchance.com/blog/wp-content/uploads/2009/05/mario.zip">Mario</a></h3>
<p>This has been tested on Windows XP and Vista. But hopefully it should run without a problem on older versions as well. This just includes the first level environment that i created using <a href="http://www.google.com/url?sa=t&amp;source=web&amp;ct=res&amp;cd=6&amp;url=http%3A%2F%2Fwww.tilemap.co.uk%2Fmappy.php&amp;ei=scYWStr5JdeCkQXym8TpDA&amp;usg=AFQjCNG7X898M9d4KNRI_OLi09pxHoCsVw&amp;sig2=vfQZBqk5UqRXp8ONkCrE_w">Mappy</a>. Also, this doesn&#8217;t include any interactions with the environment. I&#8217;ve also included the source code. So, you can take a look at it too and also use it for your own works. Licensed Open source :P.</p>
<h3>3D Design</h3>
<p><a href="http://gotchance.com/blog/wp-content/uploads/2009/05/snowman.jpg"><img class="size-thumbnail wp-image-514 alignright" title="Snowman" src="http://gotchance.com/blog/wp-content/uploads/2009/05/snowman-150x150.jpg" alt="" width="120" height="120" /></a>This may look very very noobish. But after all this is my first go at 3D. I followed <a href="http://www.biorust.com/index.php?page=tutorial_detail&amp;tutid=81&amp;lang=en">this online tutorial</a> to achieve this. Very eager to hear your comments on this one.</p>
]]></content:encoded>
			<wfw:commentRss>http://gotchance.com/blog/2009/05/22/my-c-mario-game-and-3d-design/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Single Download Link That Changes Automatically</title>
		<link>http://gotchance.com/blog/2008/12/25/single-download-link-that-changes-automatically/</link>
		<comments>http://gotchance.com/blog/2008/12/25/single-download-link-that-changes-automatically/#comments</comments>
		<pubDate>Thu, 25 Dec 2008 14:59:04 +0000</pubDate>
		<dc:creator>Hari</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://gotchance.com/blog/2008/12/25/single-download-link-that-changes-automatically/</guid>
		<description><![CDATA[If you are familiar with WordPress, you should know that the WordPress site has a link http://wordpress.org/latest.zip. If the current release is 2.7, that link will download version 2.7. If 2.7.1 gets released, that link will download that for you. I&#8217;ve always loved that feature. So, when I recently launched my open source script Rotatee, [...]]]></description>
			<content:encoded><![CDATA[<p>If you are familiar with WordPress, you should know that the WordPress site has a link <a href="http://wordpress.org/latest.zip">http://wordpress.org/latest.zip</a>. If the current release is 2.7, that link will download version 2.7. If 2.7.1 gets released, that link will download that for you. I&#8217;ve always loved that feature. So, when I recently launched my open source script Rotatee, I decided to steal that feature. So, if you visit <a href="http://rotatee.com/latest.zip">http://rotatee.com/latest.zip</a>, it&#8217;ll automatically download the latest version for you.</p>
<p>This can be achieved by a very simple method. If requires you to edit your <em>.htaccess</em> file in your domain root folder. Simply add this line to your <em>.htaccess</em> :</p>
<p> <code>RedirectPermanent /latest.zip FULL-LINK-TO-THE-DOWNLOAD-FILE</code>
<p>or</p>
<p> <code>RewriteRule latest.zip FULL-PATH-TO-THE-DOWNLOAD-FILE [R=301,L]</code>
<p>You have to update this file with the new link once you release a new version. In my case, it is currently:</p>
<p> <code>RedirectPermanent /latest.zip http://rotatee.googlecode.com/files/rotatee-1.2.zip</code>
<p>This is the way I do it currently. If you know a simpler method, do let me know. And the advantage of using this technique is that you can simply refer as &quot;download the latest version here&quot; and point to this <em>latest.zip</em> link when you write blog posts or anything like that. Also, if you have &quot;Download&quot; links through out your site on many places, you need not update each of them individually. You can simple point them to this link.</p>
<p>Of course, this technique must have some other uses too. But, I can&#8217;t think of any, at the moment. If you know, do share with us.</p>
]]></content:encoded>
			<wfw:commentRss>http://gotchance.com/blog/2008/12/25/single-download-link-that-changes-automatically/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
		<item>
		<title>At last, GotChance.com is Online</title>
		<link>http://gotchance.com/blog/2008/10/23/at-last-gotchancecom-is-online/</link>
		<comments>http://gotchance.com/blog/2008/10/23/at-last-gotchancecom-is-online/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 17:12:47 +0000</pubDate>
		<dc:creator>Hari</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://gotchance.com/blog/2008/10/23/at-last-gotchancecom-is-online/</guid>
		<description><![CDATA[After a long time, I&#8217;ve finally put up my home page at GotChance.com. The basic color scheme I took from my previous website NitrogenDesigns.com which I am closing down. In this post, I&#8217;ll list down the scripts and softwares that I used in the process of making of GotChance.com Desktop Apps : PSPad Text Editor [...]]]></description>
			<content:encoded><![CDATA[<p align="center"><a href="http://gotchance.com/"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="192" alt="gotchance" src="http://gotchance.com/blog/wp-content/uploads/2008/AtlastGotChance.comisOnline_13E9B/gotchance.png" width="240" align="right" border="0"></a> </p>
<p align="left">After a long time, I&#8217;ve finally put up my home page at <a href="http://gotchance.com/">GotChance.com</a>. The basic color scheme I took from my previous website <a href="http://nitrogendesigns.com">NitrogenDesigns.com</a> which I am closing down. In this post, I&#8217;ll list down the scripts and softwares that I used in the process of making of GotChance.com</p>
<p align="left">
<h2>Desktop Apps :</h2>
<ul>
<li><a href="http://www.pspad.com/" target="_blank">PSPad Text Editor</a> &#8211; all the coding work
<li><a href="http://www.adobe.com/products/photoshop" target="_blank">Adobe Photoshop</a> &#8211; all the design work
<li><a href="http://mozilla.com/firefox" target="_blank">Mozilla Firefox</a> &#8211; just testing (primary)
<li><a href="http://google.com/chrome" target="_blank">Google Chrome</a> &#8211; testing, but secondary
<li><a href="http://www.microsoft.com/windows/products/winfamily/ie/default.mspx" target="_blank">Internet Explorer</a> &#8211; testing, also secondary
<li><a href="http://www.easyphp.org" target="_blank">EasyPHP</a> &#8211; to run the php scripts on my local pc
<li><a href="http://entropymine.com/jason/tweakpng/" target="_blank">TweakPNG</a> &#8211; to fix the IE-PNG bug
<li><a href="http://www.foobar2000.org" target="_blank">foobar2000</a> &#8211; just to ease my ears while I worked :P </li>
</ul>
<p>
<h2>Others :</h2>
<ul>
<li><a href="http://www.prototypejs.org/" target="_blank">Prototype framework</a></li>
<li><a href="http://particletree.com/features/lightbox-gone-wild/" target="_blank">Lightbox gone wild</a></li>
<li><a href="http://simplepie.org/" target="_blank">SimplePie RSS Parser</a></li>
<li><a href="http://php.net" target="_blank">PHP</a>, <a href="http://www.w3.org/TR/xhtml1/" target="_blank">XHTML</a>, <a href="http://www.w3.org/Style/CSS" target="_blank">CSS</a></li>
</ul>
<p>If you wanna know how I did something, feel free to ask in comments. I&#8217;d be glad to make a write up.</p>
]]></content:encoded>
			<wfw:commentRss>http://gotchance.com/blog/2008/10/23/at-last-gotchancecom-is-online/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>GotChance Coding Services</title>
		<link>http://gotchance.com/blog/2008/05/02/gotchance-coding-services/</link>
		<comments>http://gotchance.com/blog/2008/05/02/gotchance-coding-services/#comments</comments>
		<pubDate>Fri, 02 May 2008 14:28:58 +0000</pubDate>
		<dc:creator>Hari</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Web Services]]></category>

		<guid isPermaLink="false">http://gotchance.com/2008/05/02/gotchance-coding-services/</guid>
		<description><![CDATA[Finally, i&#8217;m free. I&#8217;ve finished my school. Now am free to concentrate on my passions like blogging, programming etc&#8230; So, as the first step i&#8217;d like to announce that i&#8217;m open for Coding Jobs&#8230; I&#8217;m currently offering PSD-&#62;XHTML, PSD-&#62;Wordpress and PHP Coding services. For more details check out the services page. I&#8217;m a strong believer [...]]]></description>
			<content:encoded><![CDATA[<p>Finally, i&#8217;m free. I&#8217;ve finished my school. Now am free to concentrate on my passions like blogging, programming etc&#8230; So, as the first step i&#8217;d like to announce that i&#8217;m open for Coding Jobs&#8230; I&#8217;m currently offering PSD-&gt;XHTML, PSD-&gt;Wordpress and PHP Coding services. For more details check out the <a href="http://gotchance.com/services/">services</a> page.</p>
<p>I&#8217;m a strong believer of the words &#8220;Code is Poetry&#8221;. I enjoy coding. Hope i get some good tasks soon&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://gotchance.com/blog/2008/05/02/gotchance-coding-services/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>GotBanners &#8211; Making 2 Columns</title>
		<link>http://gotchance.com/blog/2007/12/20/gotbanners-making-2-columns/</link>
		<comments>http://gotchance.com/blog/2007/12/20/gotbanners-making-2-columns/#comments</comments>
		<pubDate>Thu, 20 Dec 2007 18:19:11 +0000</pubDate>
		<dc:creator>Hari</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Wordpress Plugins]]></category>

		<guid isPermaLink="false">http://gotchance.com/2007/12/20/gotbanners-making-2-columns/</guid>
		<description><![CDATA[If you have installed GotBanners and if it displays only one columns of banners, here is your solution. I started getting a lot of mails asking me how to do it. So, here is the answer. Its fairly simple. It purely depends on the space you have. You need to have atleast 290px width to [...]]]></description>
			<content:encoded><![CDATA[<p>If you have installed <a href="http://gotchance.com/got-banners-plugin/">GotBanners</a> and if it displays only one columns of banners, here is your solution. I started getting a lot of mails asking me how to do it. So, here is the answer. Its fairly simple.</p>
<p>It purely depends on the space you have. You need to have atleast 290px width to accommodate 2 rows of 125&#215;125 banners. Because, GotBanners automatically adds 5px margin to each banner. If you have lesser space, alter this line in <em>gotbanners.php</em> :</p>
<pre class="brush: php; title: ; notranslate">echo &quot;&lt;style&gt;.gotbanners { text-align: center; } .gotbanners img { margin: 5px; } &lt;/style&gt;&quot;;</pre>
<p>Change the <strong>5px</strong> to something lesser. If you just have 250px, you&#8217;ll have to change it to <strong>0px</strong>.</p>
<p>Hope its clear for everyone. If you have any other questions, feel free to contact me.</p>
]]></content:encoded>
			<wfw:commentRss>http://gotchance.com/blog/2007/12/20/gotbanners-making-2-columns/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Simple way to Track Downloads</title>
		<link>http://gotchance.com/blog/2007/09/05/simple-way-to-track-downloads/</link>
		<comments>http://gotchance.com/blog/2007/09/05/simple-way-to-track-downloads/#comments</comments>
		<pubDate>Wed, 05 Sep 2007 13:22:54 +0000</pubDate>
		<dc:creator>Hari</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://gotchance.com/2007/09/05/simple-way-to-track-downloads/</guid>
		<description><![CDATA[A simple google search of &#8220;download tracker&#8221; yields 92,900,000 results. There are also a lot of nice download tracking script that i know. They all come in useful when you have a lot of files for download and you have your own download repository of large number of files, like on my other Free Webmaster [...]]]></description>
			<content:encoded><![CDATA[<p>A simple <a href="http://www.google.com/search?hl=en&amp;safe=off&amp;rlz=1B3GGGL_enIN215IN215&amp;q=download+tracker&amp;btnG=Search">google search</a> of &#8220;download tracker&#8221; yields 92,900,000 results. There are also a lot of nice download tracking script that i know. They all come in useful when you have a lot of files for download and you have your own download repository of large number of files, like on my other <a href="http://templora.com">Free Webmaster Resources</a> website (though i use a custom coded one there). But on this blog, i just have some 2-3 themes and 1 plugin for download as of now. So, a download tracker would simple be unnecessary. But, i would like to track how many times my file have been downloaded. I use a simple method here on my blog.</p>
<p>I have a PHP file with the following code :</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
$hits = file_get_contents(&quot;SOME-NAME.txt&quot;);
$hits = $hits + 1;
$handle = fopen(&quot;SOME-NAME.txt&quot;, &quot;w&quot;);
fwrite($handle, $hits);
fclose($handle);
echo '&lt;META HTTP-EQUIV=Refresh CONTENT=&quot;0; URL=LINK-TO-ORIGINAL-ZIP-FILE&quot; /&gt;';
?&gt;</pre>
<p>The SOME-NAME.txt is the text file to which the number of downloads is written. It needs to be CHMODed to 777. And initially, it should contain &#8220;0&#8243; as the file content. The LINK-TO-ORIGINAL-ZIP-FILE is the link to the file that needs to be downloaded. It can be any type, not necessarily be a Zip file.</p>
<p>I currently use this method for all my downloads on this blog. For eg, <a href="http://gotchance.com/got-banners-plugin/">Got Banners</a> can be downloaded from <a href="http://gotchance.com/downloads/gotbanners.php">Here</a>. The tracking is done on this <a href="http://gotchance.com/downloads/gotbanners.txt">TEXT File</a>. Now, i hope that helped some of you.</p>
]]></content:encoded>
			<wfw:commentRss>http://gotchance.com/blog/2007/09/05/simple-way-to-track-downloads/feed/</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
	</channel>
</rss>

