<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Coding Shoding and all that Jazz</title>
	<atom:link href="http://codingshoding.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://codingshoding.wordpress.com</link>
	<description>My ramblings in the big bad world of programming</description>
	<lastBuildDate>Sun, 05 Dec 2010 10:49:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='codingshoding.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Coding Shoding and all that Jazz</title>
		<link>http://codingshoding.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://codingshoding.wordpress.com/osd.xml" title="Coding Shoding and all that Jazz" />
	<atom:link rel='hub' href='http://codingshoding.wordpress.com/?pushpress=hub'/>
		<item>
		<title>An idea for improving URL shortening</title>
		<link>http://codingshoding.wordpress.com/2010/12/05/an-idea-for-improving-url-shortening/</link>
		<comments>http://codingshoding.wordpress.com/2010/12/05/an-idea-for-improving-url-shortening/#comments</comments>
		<pubDate>Sun, 05 Dec 2010 10:49:02 +0000</pubDate>
		<dc:creator>sb</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://codingshoding.wordpress.com/?p=7</guid>
		<description><![CDATA[The biggest problem with URL shorteners such as bit.ly and tinyURL.com is the lack of information in the shortened URL about the target website. These have been exploited to redirect users to shock sites, phishing scams etc. although there seems to have been some improvement on that front. There is still a kind of uncertainty [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codingshoding.wordpress.com&amp;blog=1284656&amp;post=7&amp;subd=codingshoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The biggest problem with URL shorteners such as bit.ly and tinyURL.com is the lack of information in the shortened URL about the target website. These have been exploited to redirect users to shock sites, phishing scams etc. although there seems to have been some improvement on that front.</p>
<p>There is still a kind of uncertainty about short URLs that prevent some people (like me) from clicking on them when the source is not entirely trustworthy. For e.g., how do you know if the target site would be SFW? Is it just a link to a Wikipedia article, a tweet or a Facebook profile? Could we pass this information in the short URL itself?</p>
<p>My idea of doing that is to dedicate the first letter of the URL to the general category of the domain being redirected to. Highly used domains such as Wikipedia, Google, Facebook, Twitter etc. can have their own letters assigned to them. In base 62 URLs, there are more than enough symbols to categorize most of the major domains, with letters such as X used to denote unsafe websites.</p>
<p>Dedicating a letter to a domain may seem wasteful but once this categorization is well-known, these URLs are more likely to be clicked than completely strange ones. Also, this may in turn help reduce the total length of the key by reducing the bucket size for some domains.</p>
<p>Some examples:</p>
<p>Wd21k = <a href="http://www.google.co.in/search?sourceid=chrome&amp;ie=UTF-8&amp;q=url+shortening">http://en.wikipedia.org/wiki/URL_shortening</a><br />
Gb2H1 = <a href="http://www.google.co.in/search?sourceid=chrome&amp;ie=UTF-8&amp;q=url+shortening">http://www.google.co.in/search?sourceid=chrome&amp;ie=UTF-8&amp;q=url+shortening</a><br />
RP1 = <a href="http://www.reddit.com/r/programming/">http://www.reddit.com/r/programming/</a><a href="http://en.wikipedia.org/wiki/URL_shortening"></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codingshoding.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codingshoding.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codingshoding.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codingshoding.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/codingshoding.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/codingshoding.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/codingshoding.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/codingshoding.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codingshoding.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codingshoding.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codingshoding.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codingshoding.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codingshoding.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codingshoding.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codingshoding.wordpress.com&amp;blog=1284656&amp;post=7&amp;subd=codingshoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://codingshoding.wordpress.com/2010/12/05/an-idea-for-improving-url-shortening/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/669ceddf20376b080c397e556fd3427c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">The Small Bang</media:title>
		</media:content>
	</item>
		<item>
		<title>My tryst with Ray tracing</title>
		<link>http://codingshoding.wordpress.com/2007/06/23/my-tryst-with-ray-tracing/</link>
		<comments>http://codingshoding.wordpress.com/2007/06/23/my-tryst-with-ray-tracing/#comments</comments>
		<pubDate>Sat, 23 Jun 2007 19:54:00 +0000</pubDate>
		<dc:creator>sb</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://codingshoding.wordpress.com/2007/06/23/my-tryst-with-ray-tracing/</guid>
		<description><![CDATA[For the ignorant, ray-tracing is the science of rendering (drawing, painting etc) a scene described by simple shapes and by using the knowledge of how light travels. You have surely been affected by this sweet little algorithm in Hollywood movies, computer games and probably 3-D MRI scans. Backwards Raytracing The commonly used form of raytracing [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codingshoding.wordpress.com&amp;blog=1284656&amp;post=4&amp;subd=codingshoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For the ignorant, ray-tracing is the science of rendering (drawing, painting etc) a scene described by simple shapes and by using the knowledge of how light travels. You have surely been affected by this sweet little algorithm in Hollywood movies, computer games and probably 3-D MRI scans.</p>
<p><span style="font-weight:bold;">Backwards Raytracing</span><br />
<blockquote>The commonly used form of raytracing is backwards raytracing where we trace rays from the eye to the objects and light sources as opposed to the real world where the opposite takes place.</p></blockquote>
<p><span style="font-weight:bold;">Recursive Raytracing</span><br />
<blockquote>This is where raytracing beats most other algorithms in photo-realistic reflections and refractions. Once a reflective/refractive surface is encountered, we place a camera on that point and another image is raytraced from that camera and sent back as the colour of that surface, which accurately simulates how reflection and refraction take place. Clever, huh ?</p></blockquote>
<p><span style="font-weight:bold;">Global Illumination: Caustics and Radiosity</span><br />
<blockquote>This is the monster which truly makes images photo-realistic. You see, the usual raytracing algorithm doesn&#8217;t take into account the light that bounces off surfaces. For example, a white wall beside a red one looks reddish near the common edge. This is called Global Illumination, an effect which isn&#8217;t ordinarily reproduced by backwards raytracing.<br />Radiosity divides the whole seen into &#8216;patches&#8217; and keeps bouncing light between them until a steady state is achieved, similar to the real world. This, of course, requires much more computation and hence most efforts are aimed at optimizing the algorithm.<br />Caustics are effects arising due to bending light after reflection and refraction, which illuminates areas which wouldn&#8217;t normally be lit. It also involves the phenomenon of diffraction.<br /><a href="http://graphics.ucsd.edu/~henrik/">Henrik Wann Jensen</a> is the dude who came up with the brilliant <b>Photon Mapping</b>. It basically involves shooting photons at objects in order to determine the effect of Global Illumination and Caustics. And it&#8217;s fast too. Check out his page for more.</p></blockquote>
<p>I&#8217;ve been interested in all this since a long time and I somehow managed to come up with some images over the years, which I intend to show off now. Mind you, what I show you is the output of a computer program (c++ based on djgpp, and later visual c++) which I wrote myself, with lots of help from various sources.</p>
<p>This is using Monte Carlo ray tracing with Quasi-random samples:<br /><a href="http://bp1.blogger.com/_WYXAQqUZbNs/Rn2CDi-AmDI/AAAAAAAAAAg/HQWE6x4aoFQ/s1600-h/ImpSampledQuasiRandom.bmp"><img style="cursor:hand;" src="http://bp1.blogger.com/_WYXAQqUZbNs/Rn2CDi-AmDI/AAAAAAAAAAg/HQWE6x4aoFQ/s400/ImpSampledQuasiRandom.bmp" border="0" /></a></p>
<p>This during path tracing experiments:<br /><a href="http://bp3.blogger.com/_WYXAQqUZbNs/Rn6dfy-AmFI/AAAAAAAAAAw/0IDZVjTP_jQ/s1600-h/PathTracing.bmp"><img style="cursor:hand;" src="http://bp3.blogger.com/_WYXAQqUZbNs/Rn6dfy-AmFI/AAAAAAAAAAw/0IDZVjTP_jQ/s400/PathTracing.bmp" border="0" /></a></p>
<p>This one is my attempt at Image Based lighting:<br /><a href="http://bp2.blogger.com/_WYXAQqUZbNs/Rn2Aky-AmCI/AAAAAAAAAAY/vHJWH7h-ABc/s1600-h/Image4.jpg"><img style="cursor:hand;" src="http://bp2.blogger.com/_WYXAQqUZbNs/Rn2Aky-AmCI/AAAAAAAAAAY/vHJWH7h-ABc/s400/Image4.jpg" border="0" /></a></p>
<p>This is my very early attempt at Radiosity, which I later found out was how Henrik Wann Jensen implemented it:<br /><a href="http://bp2.blogger.com/_WYXAQqUZbNs/Rn2Dey-AmEI/AAAAAAAAAAo/U5LQnX66KLE/s1600-h/Render1.JPG"><img style="cursor:hand;" src="http://bp2.blogger.com/_WYXAQqUZbNs/Rn2Dey-AmEI/AAAAAAAAAAo/U5LQnX66KLE/s400/Render1.JPG" border="0" /></a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/codingshoding.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/codingshoding.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codingshoding.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codingshoding.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codingshoding.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codingshoding.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/codingshoding.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/codingshoding.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/codingshoding.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/codingshoding.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codingshoding.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codingshoding.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codingshoding.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codingshoding.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codingshoding.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codingshoding.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codingshoding.wordpress.com&amp;blog=1284656&amp;post=4&amp;subd=codingshoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://codingshoding.wordpress.com/2007/06/23/my-tryst-with-ray-tracing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/669ceddf20376b080c397e556fd3427c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">The Small Bang</media:title>
		</media:content>

		<media:content url="http://bp1.blogger.com/_WYXAQqUZbNs/Rn2CDi-AmDI/AAAAAAAAAAg/HQWE6x4aoFQ/s400/ImpSampledQuasiRandom.bmp" medium="image" />

		<media:content url="http://bp3.blogger.com/_WYXAQqUZbNs/Rn6dfy-AmFI/AAAAAAAAAAw/0IDZVjTP_jQ/s400/PathTracing.bmp" medium="image" />

		<media:content url="http://bp2.blogger.com/_WYXAQqUZbNs/Rn2Aky-AmCI/AAAAAAAAAAY/vHJWH7h-ABc/s400/Image4.jpg" medium="image" />

		<media:content url="http://bp2.blogger.com/_WYXAQqUZbNs/Rn2Dey-AmEI/AAAAAAAAAAo/U5LQnX66KLE/s400/Render1.JPG" medium="image" />
	</item>
		<item>
		<title>Flash based Force-directed layout</title>
		<link>http://codingshoding.wordpress.com/2007/06/23/flash-based-force-directed-layout/</link>
		<comments>http://codingshoding.wordpress.com/2007/06/23/flash-based-force-directed-layout/#comments</comments>
		<pubDate>Sat, 23 Jun 2007 13:12:00 +0000</pubDate>
		<dc:creator>sb</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://codingshoding.wordpress.com/2007/06/23/flash-based-force-directed-layout/</guid>
		<description><![CDATA[I removed the flash embed from here as it was too big. Click here to have a look This is implemented by considering all the &#8216;things&#8217; as charged particles tied to each other with springs. For more, check Force based algorithms<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codingshoding.wordpress.com&amp;blog=1284656&amp;post=3&amp;subd=codingshoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I removed the flash embed from here as it was too big.<br />
<a href="http://www.geocities.com/sb_4getmenot/blog/tree.swf">Click here</a> to have a look</p>
<p>This is implemented by considering all the &#8216;things&#8217; as charged particles tied to each other with springs. For more, check <a href="http://en.wikipedia.org/wiki/Force-based_algorithms">Force based algorithms</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/codingshoding.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/codingshoding.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/codingshoding.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/codingshoding.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/codingshoding.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/codingshoding.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/codingshoding.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/codingshoding.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/codingshoding.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/codingshoding.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/codingshoding.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/codingshoding.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/codingshoding.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/codingshoding.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/codingshoding.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/codingshoding.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=codingshoding.wordpress.com&amp;blog=1284656&amp;post=3&amp;subd=codingshoding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://codingshoding.wordpress.com/2007/06/23/flash-based-force-directed-layout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/669ceddf20376b080c397e556fd3427c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">The Small Bang</media:title>
		</media:content>
	</item>
	</channel>
</rss>
