<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4917164306143703214</id><updated>2012-01-26T00:04:45.637+05:30</updated><category term='C++'/><category term='Python'/><category term='Ada'/><category term='Ruby'/><category term='Matlab'/><category term='Ubuntu Karmic'/><category term='windows'/><category term='Bash'/><category term='Java'/><category term='Jokes'/><category term='Easter Eggs'/><category term='Hello World'/><category term='Web'/><title type='text'>3chevrons</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>52</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-8974373822183436582</id><published>2011-07-20T17:51:00.019+05:30</published><updated>2011-10-02T19:51:41.758+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>SCHEMENAUER AND THE XOR GATE</title><content type='html'>&lt;b&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;SCHEMENAUER AND THE XOR GATE &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;u&gt;&lt;span style="font-size: small;"&gt;IMPLEMENTING ANN IN PYTHON&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;I was searching for Artificial Neural Networks (ANN) implementation in Python. I came across the following;&lt;/div&gt;&lt;ol&gt;&lt;li style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt; &lt;a href="http://leenissen.dk/fann/wp/"&gt;FANN&lt;/a&gt; - C library with python bindings&lt;/li&gt;&lt;li style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;a href="http://pybrain.org/"&gt;PyBrain&lt;/a&gt;&lt;/li&gt;&lt;li style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;a href="http://code.google.com/p/neurolab/"&gt;NeuroLab&lt;/a&gt;&lt;/li&gt;&lt;li style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;a href="http://neuralensemble.org/trac/PyNN/"&gt;PyNN&lt;/a&gt;&amp;nbsp;&lt;/li&gt;&lt;li style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;a href="http://arctrix.com/nas/python/bpnn.py"&gt;BPNN&lt;/a&gt; - Not a library, solitary script by Neil Schemenauer&lt;/li&gt;&lt;/ol&gt;&lt;u&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; font-size: small;"&gt;THE XOR PROBLEM&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;"&gt;The &lt;a href="http://home.agh.edu.pl/%7Evlsi/AI/xor_t/en/main.htm"&gt;XOR problem&lt;/a&gt; has some history in the evolution of ANN methods. The XOR function is not linearly separable and cannot be realised using only one layer of ANN. &lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;u&gt;TINKERING WITH &lt;span style="font-size: small;"&gt;SCHEMENAUER'S CODE&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;Schemenauer's code has default training values for a 2 input XOR gate&lt;span style="font-size: small;"&gt;.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-9mJcbMrs1z8/TiaqKpJhAHI/AAAAAAAABh0/4-zocJqzCkw/s1600/xor.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-9mJcbMrs1z8/TiaqKpJhAHI/AAAAAAAABh0/4-zocJqzCkw/s1600/xor.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;"&gt;Schemenauer recommends using of a (2,2,1) network (viz. a network with two input, two hidden, and one output nodes) and the output is very much as desired, in the limits of errors of the ANN.&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div class="separator" style="clear: both; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;"&gt;XOR Output for a (2,2,1) Back Propogation Neural Network;&lt;/div&gt;&lt;blockquote style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;([0, 0], '==', [0.025608579041218795])&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;([0, 1], '==', [0.98184578447794768])&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;([1, 0], '==', [0.98170742564066216])&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;([1, 1], '==', [-0.021030064439813451])&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;&lt;div class="separator" style="clear: both; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;"&gt;However, playing around with the number of hidden layers has interesting results,&lt;/div&gt;&lt;div class="separator" style="clear: both; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;XOR Output for a (2,1,1) Back Propagation Neural Network;&lt;b&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;([0, 0], '==', [0.0020536886211772179])&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;([0, 1], '==', [0.68437587415369783])&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;([1, 0], '==', [0.68413753288547252])&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;([1, 1], '==', [0.6856616998850974])&lt;/b&gt;&lt;/span&gt;&lt;/blockquote&gt;The output of (2,1,1) clearly confirms the XOR problem !&lt;br /&gt;&lt;div class="separator" style="clear: both; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;"&gt;Increasing the number of hidden layers indiscriminately, leads to anomalous output.&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;As an example, XOR Output for a (2,25,1) Back Propagation Neural Network;&lt;/div&gt;&lt;blockquote style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;([0, 0], '==', [0.99999643777993841])&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;([0, 1], '==', [0.99999911082329096])&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;([1, 0], '==', [0.99999280130316026])&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;([1, 1], '==', [0.99999824824488848])&lt;/b&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;br /&gt;Anomalous behaviour comes into play from about 12 hidden nodes.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;REFERENCES &lt;/b&gt;&lt;br /&gt;(1) &lt;a href="http://www.ibm.com/developerworks/library/l-neural/"&gt;&lt;span style="font-size: small;"&gt;An introduction to neural networks&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;"&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-8974373822183436582?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/8974373822183436582/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=8974373822183436582' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/8974373822183436582'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/8974373822183436582'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2011/07/schemenauer-and-xor-gate.html' title='SCHEMENAUER AND THE XOR GATE'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-9mJcbMrs1z8/TiaqKpJhAHI/AAAAAAAABh0/4-zocJqzCkw/s72-c/xor.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-6914091967553249824</id><published>2010-07-28T11:58:00.009+05:30</published><updated>2011-06-01T13:32:40.886+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Easter Eggs'/><title type='text'>FIREFOX EASTER EGGS</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;FIREFOX EASTER EGGS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;In mozilla firefox type in &lt;a href="about:robots"&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;about:robots&lt;/span&gt;&lt;/a&gt; and then see the magic unfurl !&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3G-IObbUjlA/THCrfJCHAVI/AAAAAAAABa8/n4I1ZVm-i-o/s1600/Screenshot.png"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 400px; height: 71px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/THCrfJCHAVI/AAAAAAAABa8/n4I1ZVm-i-o/s400/Screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5508090895763177810" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;ABRACADABRA ! .......&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/TE_OXOmCVVI/AAAAAAAABZ8/HvL1FmjvTuE/s1600/Screenshot.png"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 400px; height: 202px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/TE_OXOmCVVI/AAAAAAAABZ8/HvL1FmjvTuE/s400/Screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5498840568492610898" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;..... if you can handle surprises then try &lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic;font-family:trebuchet ms;" &gt;&lt;a href="about:mozilla"&gt;about:mozilla&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/THO5VzfyNII/AAAAAAAABbc/BCZ964S5mQg/s1600/Screenshot.png"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 400px; height: 88px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/THO5VzfyNII/AAAAAAAABbc/BCZ964S5mQg/s400/Screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5508950553456161922" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;font-family:trebuchet ms;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-6914091967553249824?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/6914091967553249824/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=6914091967553249824' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/6914091967553249824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/6914091967553249824'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2010/07/firefox-easter-eggs.html' title='FIREFOX EASTER EGGS'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_3G-IObbUjlA/THCrfJCHAVI/AAAAAAAABa8/n4I1ZVm-i-o/s72-c/Screenshot.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-1672780913123731788</id><published>2010-06-20T15:49:00.004+05:30</published><updated>2010-08-22T10:18:41.810+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu Karmic'/><title type='text'>MPLAYER !</title><content type='html'>&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;I will keep it short and simple ! I had never come across a movie player which is controlled - &lt;span style="font-weight: bold;"&gt;NOT by a GUI, but command line in the terminal window &lt;/span&gt;! ..... and then I came across &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://www.mplayerhq.hu/design7/news.html"&gt;MPLAYER&lt;/a&gt;  &lt;span style="font-family:trebuchet ms;"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;I guess using Unix/Ubuntu is a 'learning' experience ! &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3G-IObbUjlA/TB3r0Ub1m3I/AAAAAAAABXE/RHKjl_-wrPk/s1600/Screenshot.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 392px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/TB3r0Ub1m3I/AAAAAAAABXE/RHKjl_-wrPk/s400/Screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5484799205278325618" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-1672780913123731788?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/1672780913123731788/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=1672780913123731788' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/1672780913123731788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/1672780913123731788'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2010/06/mplayer.html' title='MPLAYER !'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_3G-IObbUjlA/TB3r0Ub1m3I/AAAAAAAABXE/RHKjl_-wrPk/s72-c/Screenshot.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-8460035939276367917</id><published>2010-04-28T10:07:00.036+05:30</published><updated>2011-02-21T16:57:57.962+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Matlab'/><title type='text'>HEART TO HEART</title><content type='html'>&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;b&gt;HEART TO HEART&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;A very interesting mathematical recreation is to conceive coherent drawings using algebraic functions. &lt;a href="http://en.wikipedia.org/wiki/B%C3%A9zier_curve"&gt;Bezier curves&lt;/a&gt; are the authentic way to generate such computer graphics. Bezier  came up with his genius in early 60s while designing automobile parts. Other popular means are Hermite curves and Splines. &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Though effective, these means are involved and computationally de&lt;span style="font-family:trebuchet ms;"&gt;manding&lt;/span&gt;. However, sometimes by providence we do have sensible shapes made out from simple functions.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;PLOTTING THE HEART IN MATLAB&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;I discuss plotting a &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://mathworld.wolfram.com/HeartCurve.html"&gt;heart&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt; using simple cardioid, polar plots and algebraic equations&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;(a) The simplest one &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;The simplest 'heart curve' is the &lt;a href="http://en.wikipedia.org/wiki/Cardioid"&gt;cardioid&lt;/a&gt;. It is not truly a heart, however it looks somewhat similar to one.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3G-IObbUjlA/S9gVKjXVeAI/AAAAAAAABRw/2ESvl-yc1wc/s1600/c1.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 339px; height: 400px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/S9gVKjXVeAI/AAAAAAAABRw/2ESvl-yc1wc/s400/c1.jpg" alt="" id="BLOGGER_PHOTO_ID_5465141418850088962" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;(b) Polar plot&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;A polar curve given by;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/S9gZATHVigI/AAAAAAAABSA/gjz6DPFsRZE/s1600/e.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 213px; height: 48px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/S9gZATHVigI/AAAAAAAABSA/gjz6DPFsRZE/s400/e.jpg" alt="" id="BLOGGER_PHOTO_ID_5465145640735836674" border="0" /&gt;&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt;gives a near perfect heart ! &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/S9gZMvUzLUI/AAAAAAAABSI/55qxPK-Da1I/s1600/c2b.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 347px; height: 344px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/S9gZMvUzLUI/AAAAAAAABSI/55qxPK-Da1I/s400/c2b.jpg" alt="" id="BLOGGER_PHOTO_ID_5465145854466927938" border="0" /&gt;&lt;/a&gt; &lt;span style="font-family:trebuchet ms;"&gt;The Matlab command line is; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-family:georgia;"&gt;&lt;/span&gt;&lt;span style="font-family:georgia;"&gt;&gt;&gt; ezpolar('((sin(t)*sqrt(abs(cos(t))))*(sin(t) + (7/5))^(-1)) - 2*sin(t) + 2')&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;(c) Algebraic Equation&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;A heart can be made from the implicit algebraic function,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3G-IObbUjlA/S9ga63UI6UI/AAAAAAAABSY/Sz5YCk4uT40/s1600/Screenshot-5.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 160px; height: 31px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/S9ga63UI6UI/AAAAAAAABSY/Sz5YCk4uT40/s400/Screenshot-5.png" alt="" id="BLOGGER_PHOTO_ID_5465147746397251906" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/S-fiiCZi_iI/AAAAAAAABVI/ndSjk8dJztg/s1600/Screenshot.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 329px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/S-fiiCZi_iI/AAAAAAAABVI/ndSjk8dJztg/s400/Screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5469589346852208162" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;However tinkering by adding a factor of (0.35) and (1.3) to the terms makes the heart more aesthetic.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3G-IObbUjlA/S9gcLU6CYbI/AAAAAAAABSg/dkGtQJD3DAM/s1600/sss.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 359px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/S9gcLU6CYbI/AAAAAAAABSg/dkGtQJD3DAM/s400/sss.png" alt="" id="BLOGGER_PHOTO_ID_5465149128730370482" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;The Matlab command is,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:georgia;"&gt;&lt;/span&gt;&lt;blockquote style="font-family: georgia;"&gt;&gt;&gt; ezplot('(0.35)*((x^2 + y^2 - 1)^3) - (1.3)*(x^2)*(y^3)');&lt;/blockquote&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="font-size:100%;"&gt;It is worth noting that for using ezplot t, x and y doesn't have to be defined.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div  style="text-align: justify;font-family:trebuchet ms;"&gt;&lt;span class="Apple-style-span"&gt;&lt;meta equiv="content-type" content="text/html; charset=utf-8"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;(d) Another Algebraic Equation&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div  style="text-align: justify;font-family:trebuchet ms;"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;This one is due to &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://www.matt-mcdonnell.com/"&gt;Matt&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt; ....&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://4.bp.blogspot.com/-pPscRBtJSe8/TV1bGwaBw6I/AAAAAAAABfU/fkxLTc4_pnI/s1600/Screenshot-1.png"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 178px; height: 55px;" src="http://4.bp.blogspot.com/-pPscRBtJSe8/TV1bGwaBw6I/AAAAAAAABfU/fkxLTc4_pnI/s400/Screenshot-1.png" alt="" id="BLOGGER_PHOTO_ID_5574712085385954210" border="0" /&gt;&lt;/a&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://www.wolframalpha.com/input/?i=x%5E2%2B%28y-%28x%5E2%29%5E%281/3%29%29%5E2+%3D+1"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 400px; height: 326px;" src="http://4.bp.blogspot.com/-f08SCf5TXrI/TV1ZRvN2tEI/AAAAAAAABfE/sEmuD-GETyM/s400/v1.png" alt="" id="BLOGGER_PHOTO_ID_5574710075021767746" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/-VCBX94atH8E/TV1ZR_mOKjI/AAAAAAAABfM/LM4Xmg136O0/s1600/v2.png"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 400px; height: 327px;" src="http://1.bp.blogspot.com/-VCBX94atH8E/TV1ZR_mOKjI/AAAAAAAABfM/LM4Xmg136O0/s400/v2.png" alt="" id="BLOGGER_PHOTO_ID_5574710079418935858" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;...then again forget MATLAB, we do have &lt;span style="font-weight: bold;"&gt;&lt;3&lt;/span&gt; to our rescue ! &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/-FdkFUTmyAN8/TWJMFURb_jI/AAAAAAAABfk/ZMvTuKOCwEE/s1600/Screenshot.png"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 279px; height: 148px;" src="http://1.bp.blogspot.com/-FdkFUTmyAN8/TWJMFURb_jI/AAAAAAAABfk/ZMvTuKOCwEE/s400/Screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5576102942862999090" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;REFERENCES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(1) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/ezplot.html"&gt;ezplot&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(2) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://stackoverflow.com/questions/2720180/matlab-heart-curve"&gt;stackoverflow question 2720180&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(3) &lt;a href="http://stackoverflow.com/questions/323584/is-there-an-easy-way-to-model-a-heart-shape-in-3d"&gt;stackoverflow question 323584&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(4) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://www.mathematische-basteleien.de/heart.htm"&gt;Heart Curve page&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(5) &lt;a href="http://mathworld.wolfram.com/HeartCurve.html"&gt;Wolfram page&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(6) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://www.designyourownweb.com/gimp/bezier-gimp.htm"&gt;Bezier Heart in Gimp &lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-8460035939276367917?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/8460035939276367917/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=8460035939276367917' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/8460035939276367917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/8460035939276367917'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2010/04/heart-to-heart.html' title='HEART TO HEART'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_3G-IObbUjlA/S9gVKjXVeAI/AAAAAAAABRw/2ESvl-yc1wc/s72-c/c1.jpg' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-3365137572233316494</id><published>2010-04-19T15:22:00.015+05:30</published><updated>2010-08-14T15:02:49.121+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>A VERY SIMPLE CHATBOX IN PYTHON</title><content type='html'>&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="font-weight: bold;"&gt;A VERY SIMPLE CHATBOX IN PYTHON&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A naive chatbot program. No parsing, no cleverness, just a training file and output.&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;It first trains itself on a text and then later uses the data from that training to generate responses to the interlocutor's input. The training process creates a dictionary where each key is a word and the value is a list of all the words that follow that word sequentially anywhere in the training text. If a word features more than once in this list then that reflects and it is more likely to be chosen by the bot, no need for probabilistic stuff just do it with a list.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;The bot chooses a random word from your input and generates a response by choosing another random word that has been seen to be a successor to its held word. It then repeats the process by finding a successor to that word in turn and carrying on iteratively until it thinks it's said enough. It reaches that conclusion by stopping at a word that was prior to a punctuation mark in the training text. It then returns to input mode again to let you respond, and so on.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;It isn't very realistic but I hereby challenge anyone to do better in 71 lines of code !! This is a great challenge for any budding Pythonists, and I just wish I could open the challenge to a wider audience than the small number of visitors I get to this blog. To code a bot that is always guaranteed to be grammatical must surely be closer to several hundred lines, I simplified hugely by just trying to think of the simplest rule to give the computer a mere stab at having something to say.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Its responses are rather impressionistic to say the least ! Also you have to put what you say in single quotes.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;I used War and Peace for my "corpus" which took a couple of hours for the training run, use a shorter file if you are impatient...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;here is the trainer&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;code&gt;#lukebot-trainer.py&lt;br /&gt;import pickle&lt;br /&gt;b=open('war&amp;amp;peace.txt')&lt;br /&gt;text=[]&lt;br /&gt;for line in b:&lt;br /&gt;for word in line.split():&lt;br /&gt; text.append (word)&lt;br /&gt;b.close()&lt;br /&gt;textset=list(set(text))&lt;br /&gt;follow={}&lt;br /&gt;for l in range(len(textset)):&lt;br /&gt;working=[]&lt;br /&gt;check=textset[l]&lt;br /&gt;for w in range(len(text)-1):&lt;br /&gt; if check==text[w] and text[w][-1] not in '(),.?!':&lt;br /&gt;     working.append(str(text[w+1]))&lt;br /&gt;follow[check]=working&lt;br /&gt;a=open('lexicon-luke','wb')&lt;br /&gt;pickle.dump(follow,a,2)&lt;br /&gt;a.close()&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;here is the bot&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;#lukebot.py&lt;br /&gt;import pickle,random&lt;br /&gt;a=open('lexicon-dict','rb')&lt;br /&gt;successorlist=pickle.load(a)&lt;br /&gt;a.close()&lt;br /&gt;def nextword(a):&lt;br /&gt;if a in successorlist:&lt;br /&gt; return random.choice(successorlist[a])&lt;br /&gt;else:&lt;br /&gt; return 'the'&lt;br /&gt;speech=''&lt;br /&gt;while speech!='quit':&lt;br /&gt;speech=input('&amp;gt;')&lt;br /&gt;s=random.choice(speech.split())&lt;br /&gt;response=''&lt;br /&gt;while True:&lt;br /&gt; neword=nextword(s)&lt;br /&gt; response+=' '+neword&lt;br /&gt; s=neword&lt;br /&gt; if neword[-1] in ',?!.':&lt;br /&gt;     break&lt;br /&gt;print response&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;You tend to get an uncanny feeling when it says something that seems partially to make sense. I think this is a universal syndrome with chatbots and shows us a lot about our expectations and hopes for machine intelligence. The tendency to attribute some kind of surreal cosmic wisdom or irony to the responses is common.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;TALKING TO TOLSTOY ! ...... ;)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Sample output:( is this like talking to Tolstoy? Not really but still...)&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;code&gt;&lt;br /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;&amp;gt;'hello'&lt;br /&gt;the human affairs he thought.&lt;br /&gt;&amp;gt;'oh those affairs were great'&lt;br /&gt;God,&lt;br /&gt;&amp;gt;'what -surprised?'&lt;br /&gt;do you value but she is what had the new country,&lt;br /&gt;&amp;gt;'i do value but i do not blame the war on her'&lt;br /&gt;so alarming them with those around with particular chair by all those who caressed me.&lt;br /&gt;&amp;gt;'i never get anyone caressing me!'&lt;br /&gt;allowed to talk about in a really so.&lt;br /&gt;&amp;gt;'oh do not be prudish I am allowed to mention it'&lt;br /&gt;should she suddenly heard of a duty for reason was handed him very hot.&lt;br /&gt;&amp;gt;'you like these women a lot to talk about them so much'&lt;br /&gt;advantage if your father?&lt;br /&gt;&amp;gt;'my father approves of my romantic side'&lt;br /&gt;love my son's having obeyed in the causes historic events that circle they didn't you know a force producing two Emperors with a certain prince.&lt;br /&gt;&amp;gt;'oh now it is princes is it'&lt;br /&gt;God,&lt;br /&gt;&amp;gt;'do you believe in Him?'&lt;br /&gt;the insistence of incongruities giving you married at his squadron--that is,&lt;br /&gt;&amp;gt;' i don't understand you sir'&lt;br /&gt;&amp;gt;'i do not understand you sir'&lt;br /&gt;the bridge which,&lt;br /&gt;&amp;gt;'i crossed'&lt;br /&gt;himself,&lt;br /&gt;&amp;gt;'ok ok... well 71 lines still is not bad'&lt;br /&gt;the work at Smolensk?&lt;br /&gt;&amp;gt;'yes'&lt;br /&gt;or that of War.&lt;br /&gt;&amp;gt;'no, war'&lt;br /&gt;was gradually that millions of married in which is Dolokhov?&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/TGUWCPzXbaI/AAAAAAAABaE/l2N9kMA0Sg0/s1600/LeoTolstoy7.jpg"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 254px; height: 400px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/TGUWCPzXbaI/AAAAAAAABaE/l2N9kMA0Sg0/s400/LeoTolstoy7.jpg" alt="" id="BLOGGER_PHOTO_ID_5504830347387825570" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms; font-weight: bold;"&gt;REFERENCES&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;(1) &lt;a href="http://pythonism.wordpress.com/2010/04/18/a-simple-chatbot-in-python/"&gt;Pythomism - Luke's website&lt;/a&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-3365137572233316494?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/3365137572233316494/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=3365137572233316494' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/3365137572233316494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/3365137572233316494'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2010/04/very-simple-chatbot-in-python.html' title='A VERY SIMPLE CHATBOX IN PYTHON'/><author><name>Luke Dunn</name><uri>http://www.blogger.com/profile/01818570106993325018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://1.bp.blogspot.com/-xMzKqnPkQeM/TkqaifVnnuI/AAAAAAAAAHM/9D1Z9r0-d3k/s220/neurolysis.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_3G-IObbUjlA/TGUWCPzXbaI/AAAAAAAABaE/l2N9kMA0Sg0/s72-c/LeoTolstoy7.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-8348757730760480189</id><published>2010-04-11T14:46:00.008+05:30</published><updated>2010-08-24T17:53:30.071+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Jokes'/><title type='text'>RANDOM NUMBER GENERATOR !</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;RANDOM @DILBERT &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.dilbert.com/dyn/str_strip/000000000/00000000/0000000/000000/00000/2000/300/2318/2318.strip.gif"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 416px; height: 123px;" src="http://www.dilbert.com/dyn/str_strip/000000000/00000000/0000000/000000/00000/2000/300/2318/2318.strip.gif" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;RANDOM @NEUMANN&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify; font-family: trebuchet ms;"&gt;&lt;div style="text-align: justify; font-style: italic;"&gt;"Any one who considers arithmetical methods of producing random digits is, of course, in a state of sin. For, as has been pointed out several times, there is no such thing as a random number — there are only methods to produce random numbers, and a strict arithmetic procedure of course is not such a method."&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: right;"&gt;                                                                                    -- John von Neumann&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-8348757730760480189?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/8348757730760480189/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=8348757730760480189' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/8348757730760480189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/8348757730760480189'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2010/04/random-number-generator.html' title='RANDOM NUMBER GENERATOR !'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-2847315426837474245</id><published>2010-04-10T11:10:00.001+05:30</published><updated>2010-04-25T23:38:12.936+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu Karmic'/><category scheme='http://www.blogger.com/atom/ns#' term='Matlab'/><title type='text'>SINC LOOKS LIKE DIRAC DELTA</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;DABBLING IN MATLAB&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;After installing &lt;a href="http://www.mathworks.com/products/matlab/"&gt;Matlab R2009b (7.9.0)&lt;/a&gt; on Ubuntu Karmic, I was trying out many thing ! ...... just for fun ! &lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;While trying out sinc function .... at a certain point it resembled dirac delta !&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;One very long spike unto infinity ! &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/S8AOtsbGGFI/AAAAAAAABQo/_4JtutAf-TM/s1600/sinc.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 304px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/S8AOtsbGGFI/AAAAAAAABQo/_4JtutAf-TM/s400/sinc.png" alt="" id="BLOGGER_PHOTO_ID_5458378926554749010" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;font-family:trebuchet ms;" &gt;REFERENCES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;font-family:trebuchet ms;" &gt;(1) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://mathworld.wolfram.com/DeltaFunction.html"&gt;Delta Function&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;(2) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://en.wikipedia.org/wiki/Sinc_function#Relationship_to_the_Dirac_delta_distribution"&gt;Sinc - Delta Relationship &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-2847315426837474245?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/2847315426837474245/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=2847315426837474245' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/2847315426837474245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/2847315426837474245'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2010/04/sinc-looks-like-dirac-delta.html' title='SINC LOOKS LIKE DIRAC DELTA'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_3G-IObbUjlA/S8AOtsbGGFI/AAAAAAAABQo/_4JtutAf-TM/s72-c/sinc.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-5275525781602829938</id><published>2010-03-25T22:03:00.008+05:30</published><updated>2010-04-11T14:58:39.183+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu Karmic'/><category scheme='http://www.blogger.com/atom/ns#' term='Jokes'/><title type='text'>THE ASCII TRAIN !</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;FOOLING AROUND @ UBUNTU 9.10&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Every coder sometimes or the other, looks for a lighter moment and Ubuntu has plenty of those. One such instance .....&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;Install 'sl' using &lt;span style="font-weight: bold; font-style: italic;"&gt;sudo apt-get install sl&lt;/span&gt;. Then, &lt;span style="font-weight: bold; font-style: italic;"&gt;type sl in the terminal&lt;/span&gt; ! and watch the ASCII Train !&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/S6uRkWasn9I/AAAAAAAABPQ/bWpmMrECDe0/s1600/der2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 176px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/S6uRkWasn9I/AAAAAAAABPQ/bWpmMrECDe0/s400/der2.png" alt="" id="BLOGGER_PHOTO_ID_5452611827540991954" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-5275525781602829938?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/5275525781602829938/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=5275525781602829938' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/5275525781602829938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/5275525781602829938'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2010/03/ascii-train.html' title='THE ASCII TRAIN !'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_3G-IObbUjlA/S6uRkWasn9I/AAAAAAAABPQ/bWpmMrECDe0/s72-c/der2.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-8200014933947363080</id><published>2010-03-13T08:33:00.011+05:30</published><updated>2010-08-24T17:57:00.411+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Easter Eggs'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu Karmic'/><title type='text'>MOO .....</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;ON THE LIGHTER SIDE !&lt;/span&gt;  &lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#1. MOO&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;In Ubuntu 9.10, while trying the command &lt;span style="font-weight: bold;"&gt;sudo apt-get moo&lt;/span&gt; ! ...... there is sure some surprise in store.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3G-IObbUjlA/S5sBO60VOQI/AAAAAAAABM8/PU5-5tyxe3s/s1600-h/moo.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 262px; height: 146px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/S5sBO60VOQI/AAAAAAAABM8/PU5-5tyxe3s/s400/moo.png" alt="" id="BLOGGER_PHOTO_ID_5447949530053294338" border="0" /&gt;&lt;/a&gt; &lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;&lt;br /&gt;#.2 COWS ..... FROM OUTER SPACE ! &lt;/span&gt;  &lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Whoever put these &lt;a href="http://www.eeggs.com/tree/1134.html"&gt;easter eggs&lt;/a&gt; into Ubuntu (9.10) was sure some cow sympathiser !&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-family: trebuchet ms;"&gt;Try this&lt;/span&gt; &lt;span style="font-family:trebuchet ms;"&gt;.....&lt;/span&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt; Alt + F2 + 'gegls from outer space' + enter ! &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/S6iiv7X9qbI/AAAAAAAABO4/8BwP5hL8lEk/s1600-h/Screenshot.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 193px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/S6iiv7X9qbI/AAAAAAAABO4/8BwP5hL8lEk/s400/Screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5451786293207738802" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:180%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;&lt;span style="font-size:180%;"&gt;Voila !&lt;/span&gt; ..... the 'gegls' ! &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/S6ijElnDZ1I/AAAAAAAABPA/Y8aVLJBeorc/s1600-h/Screenshot-2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 323px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/S6ijElnDZ1I/AAAAAAAABPA/Y8aVLJBeorc/s400/Screenshot-2.png" alt="" id="BLOGGER_PHOTO_ID_5451786648142702418" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-8200014933947363080?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/8200014933947363080/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=8200014933947363080' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/8200014933947363080'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/8200014933947363080'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2010/03/moo.html' title='MOO .....'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_3G-IObbUjlA/S5sBO60VOQI/AAAAAAAABM8/PU5-5tyxe3s/s72-c/moo.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-6978192354404667995</id><published>2010-03-04T14:41:00.010+05:30</published><updated>2010-03-05T10:15:48.980+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>JYTHON : FIRST CONTACT !</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;JYTHON, MARRIAGE OF JAVA AND PYTHON&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Trying my first shot at &lt;a href="http://www.jython.org/"&gt;Jython&lt;/a&gt;, using &lt;a href="http://en.wikipedia.org/wiki/Java_%28programming_language%29"&gt;java&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Swing_%28Java%29"&gt;swing&lt;/a&gt; in python-like interactive interface ! &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/S496Xg0z2xI/AAAAAAAABL0/8l8dXb0lflU/s1600-h/jython.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 269px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/S496Xg0z2xI/AAAAAAAABL0/8l8dXb0lflU/s400/jython.png" alt="" id="BLOGGER_PHOTO_ID_5444705018881235730" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.jython.org/"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 100px; height: 65px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/S496oU3FddI/AAAAAAAABL8/47P3BnVhy5U/s400/jythonlogo.png" alt="" id="BLOGGER_PHOTO_ID_5444705307727328722" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-6978192354404667995?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/6978192354404667995/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=6978192354404667995' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/6978192354404667995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/6978192354404667995'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2010/03/jython-first-contact.html' title='JYTHON : FIRST CONTACT !'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_3G-IObbUjlA/S496Xg0z2xI/AAAAAAAABL0/8l8dXb0lflU/s72-c/jython.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-6161314818450882289</id><published>2010-03-04T13:47:00.006+05:30</published><updated>2010-03-04T15:44:09.618+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>CHECKING FOR SQUARES !</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;AN ELEGANT CODE IN PYTHON ! &lt;/span&gt;  &lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;br /&gt;This program confirms if a number is square or not ! &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/S49tscsMikI/AAAAAAAABLs/mUqwT1J1q-8/s1600-h/q1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 245px; height: 150px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/S49tscsMikI/AAAAAAAABLs/mUqwT1J1q-8/s400/q1.png" alt="" id="BLOGGER_PHOTO_ID_5444691084897454658" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/S49tV0K-ncI/AAAAAAAABLk/58R7Wqr2sM4/s1600-h/q2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 258px; height: 213px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/S49tV0K-ncI/AAAAAAAABLk/58R7Wqr2sM4/s400/q2.png" alt="" id="BLOGGER_PHOTO_ID_5444690696063589826" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-6161314818450882289?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/6161314818450882289/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=6161314818450882289' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/6161314818450882289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/6161314818450882289'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2010/03/checking-for-squares.html' title='CHECKING FOR SQUARES !'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_3G-IObbUjlA/S49tscsMikI/AAAAAAAABLs/mUqwT1J1q-8/s72-c/q1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-131738308561734321</id><published>2010-02-27T11:04:00.030+05:30</published><updated>2010-03-04T15:47:27.184+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ada'/><title type='text'>SEMAPHORES IN ADA</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;THE PROBLEM OF SYNCHRONISATION&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;  &lt;div  style="text-align: justify;font-family:trebuchet ms;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Often there are occasions when events must happen in a certain order ! specifically ....&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(1) Serialisation: Event A must happen before Event B.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(2) Mutual exclusion: Events A and B must not happen at the same time.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;In concurrent programming every process is fighting for &lt;/span&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;time and resource&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt; thus in perspective of the above, order must be restored to this apparent chaos. One rather interesting way is to use semaphores.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Semaphores were invented by the Dutch computer scientist &lt;a href="http://en.wikipedia.org/wiki/Edsger_W._Dijkstra"&gt;Edsger Dijkstra&lt;/a&gt; (EWD 74).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;A definition will be, a non-negative integer-valued variable that can only be acted upon by two procedures: sem_wait and sem_post&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;These operations are defined (for a semaphore s) as:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;sem_wait(P)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;if s&gt;0 then set s:=s-1 and allow task to proceed else suspend task&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;sem_post(V)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;set s:=s+1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;For a synchronisation where each process waits for the other, &lt;/span&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;synchronous  synchronisation&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt; will be done using 2 semaphores, as;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/S4kBu1VWyBI/AAAAAAAABK0/EzUV661_34I/s1600-h/Screenshot-14.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 273px; height: 400px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/S4kBu1VWyBI/AAAAAAAABK0/EzUV661_34I/s400/Screenshot-14.png" alt="" id="BLOGGER_PHOTO_ID_5442883528756217874" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;TRYING IN ADA 2005&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Trying the scenario in Ada 2005,  where Task A and Task B are defined as&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Task A : printing 'A' 5 times&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Task B : printing 'B' 5 times&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;yields the following results, &lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;the output strictly interleafs on all ocassions,&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a style="font-family: trebuchet ms;" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/S4kLDyV9_1I/AAAAAAAABLU/K9ciAsawnjA/s1600-h/Screenshot-16.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 85px; height: 14px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/S4kLDyV9_1I/AAAAAAAABLU/K9ciAsawnjA/s400/Screenshot-16.png" alt="" id="BLOGGER_PHOTO_ID_5442893784335384402" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;however the slicing is of 2 rounds of each task at a time.( i.e. 'AA' , 'BB' ....). This slicing can &lt;span style="font-family:trebuchet ms;"&gt;be tailored with scheduling policies.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;REFERENCES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(1) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://www.amazon.com/Concurrent-Real-Time-Programming-Alan-Burns/dp/0521866979/"&gt;Concurrent and Real Time Programming in Ada&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(2) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://www.iste.uni-stuttgart.de/ps/Lehre/SS2008/V_RTP/"&gt;Semaphore construction&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(3) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://code.google.com/p/ada-simple/"&gt;http://code.google.com/p/ada-simple/&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-131738308561734321?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/131738308561734321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=131738308561734321' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/131738308561734321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/131738308561734321'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2010/02/semaphores-in-ada.html' title='SEMAPHORES IN ADA'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_3G-IObbUjlA/S4kBu1VWyBI/AAAAAAAABK0/EzUV661_34I/s72-c/Screenshot-14.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-3306554505495052438</id><published>2010-02-27T08:44:00.001+05:30</published><updated>2010-03-04T15:44:56.375+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ada'/><category scheme='http://www.blogger.com/atom/ns#' term='Hello World'/><title type='text'>HELLO WORLD IN ADA 2005</title><content type='html'>&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="font-weight: bold;"&gt;HELLO ADA ! &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;I should not be writing this article ! ...... however, trying out very simple programs in Ada 2005 made me realise how I have lost touch of the syntax etc !&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;a href="http://en.wikipedia.org/wiki/Ada_%28programming_language%29"&gt;Ada&lt;/a&gt; is a high level language which is a favourite for safety critical and real time systems. Trying out the &lt;span style="font-weight: bold;"&gt;'Hello, World'&lt;/span&gt; in Ada,&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3G-IObbUjlA/S4iVljhhu5I/AAAAAAAABKM/Q93pFNt6OsA/s1600-h/1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 190px; height: 152px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/S4iVljhhu5I/AAAAAAAABKM/Q93pFNt6OsA/s400/1.png" alt="" id="BLOGGER_PHOTO_ID_5442764622100806546" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;The syntax has a 'pascal like' sing to it, Ada program files have extensions adb or ads. The compiler used for Ada is &lt;a href="http://en.wikipedia.org/wiki/GNAT"&gt;GNAT&lt;/a&gt; (which is a part of gcc)&lt;/span&gt;.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/S4iYW-ZadVI/AAAAAAAABKU/kFUUO8iV3YM/s1600-h/2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 65px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/S4iYW-ZadVI/AAAAAAAABKU/kFUUO8iV3YM/s400/2.png" alt="" id="BLOGGER_PHOTO_ID_5442767670151378258" border="0" /&gt;&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt;Compilation creates 3 more files.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/S4iY4Nb94uI/AAAAAAAABKc/samD3hVi1jw/s1600-h/3.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 93px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/S4iY4Nb94uI/AAAAAAAABKc/samD3hVi1jw/s400/3.png" alt="" id="BLOGGER_PHOTO_ID_5442768241124303586" border="0" /&gt;&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt;Running the program,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/S4iZk2O1ihI/AAAAAAAABKk/ZCseFXcWsg8/s1600-h/4.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 343px; height: 36px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/S4iZk2O1ihI/AAAAAAAABKk/ZCseFXcWsg8/s400/4.png" alt="" id="BLOGGER_PHOTO_ID_5442769007989328402" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-3306554505495052438?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/3306554505495052438/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=3306554505495052438' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/3306554505495052438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/3306554505495052438'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2010/02/hello-world-in-ada-2005.html' title='HELLO WORLD IN ADA 2005'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_3G-IObbUjlA/S4iVljhhu5I/AAAAAAAABKM/Q93pFNt6OsA/s72-c/1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-1603450423480613721</id><published>2010-02-22T19:17:00.015+05:30</published><updated>2010-03-04T15:45:38.965+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>A SIMPLE EXAMPLE WITH PYCHECKER</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;BEGINNING TESTING ! &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Trying out this tool for python testing .... pychecker on program e.py,&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/S4YxEwuUgwI/AAAAAAAABJc/zuVi6E_t8OM/s1600-h/Screenshot-11.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 286px; height: 177px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/S4YxEwuUgwI/AAAAAAAABJc/zuVi6E_t8OM/s400/Screenshot-11.png" alt="" id="BLOGGER_PHOTO_ID_5442091157592244994" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/S4Y0Qym4pyI/AAAAAAAABJs/WJoF8g1u630/s1600-h/Screenshot-2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 372px; height: 117px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/S4Y0Qym4pyI/AAAAAAAABJs/WJoF8g1u630/s400/Screenshot-2.png" alt="" id="BLOGGER_PHOTO_ID_5442094662791243554" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;The testing software identifies that sum &lt;span style="font-weight: bold;"&gt;'shadows builtin' &lt;/span&gt;, thus changing name of the function from sum to summation.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/S4Y1EcpSoGI/AAAAAAAABJ0/cZJn_rZEDQk/s1600-h/Screenshot-13.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 319px; height: 179px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/S4Y1EcpSoGI/AAAAAAAABJ0/cZJn_rZEDQk/s400/Screenshot-13.png" alt="" id="BLOGGER_PHOTO_ID_5442095550248951906" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/S4Y1RZ8hnlI/AAAAAAAABJ8/x6aHIfBPHfw/s1600-h/Screenshot-12.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 375px; height: 142px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/S4Y1RZ8hnlI/AAAAAAAABJ8/x6aHIfBPHfw/s400/Screenshot-12.png" alt="" id="BLOGGER_PHOTO_ID_5442095772862619218" border="0" /&gt;&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt;.... rectifies the Warnings ! &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;REFERNCES&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(1) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://pychecker.sourceforge.net/"&gt;Pychecker &lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(2) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://apress.com/book/view/9781590595190"&gt;Beginning Python : From Novice to Professional&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-1603450423480613721?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/1603450423480613721/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=1603450423480613721' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/1603450423480613721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/1603450423480613721'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2010/02/example-with-pychecker.html' title='A SIMPLE EXAMPLE WITH PYCHECKER'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_3G-IObbUjlA/S4YxEwuUgwI/AAAAAAAABJc/zuVi6E_t8OM/s72-c/Screenshot-11.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-4369309165245642161</id><published>2010-02-19T10:35:00.042+05:30</published><updated>2010-03-04T15:46:03.617+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hello World'/><category scheme='http://www.blogger.com/atom/ns#' term='Bash'/><title type='text'>DABBLING WITH BASH -1</title><content type='html'>&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;b&gt;DABBLING WITH BASH - 1 &lt;/b&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;a href="http://en.wikipedia.org/wiki/Bash"&gt;BASH&lt;/a&gt; (&lt;span style="font-weight: bold;"&gt;B&lt;/span&gt;ourne &lt;span style="font-weight: bold;"&gt;A&lt;/span&gt;gain &lt;span style="font-weight: bold;"&gt;SH&lt;/span&gt;ell), the name seemed to echo between '&lt;a href="http://www.thefreedictionary.com/bashing"&gt;Bashing&lt;/a&gt;' to '&lt;a href="http://en.wikipedia.org/wiki/Bourne_%28film_series%29"&gt;Bourne Trilogy&lt;/a&gt;'. The command line for nearly all *nix Operating Systems is actually a programming language !&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;I am working on &lt;a href="http://tiswww.case.edu/php/chet/bash/bashtop.html"&gt;version 4.0.33&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/S4IY3Pv7hzI/AAAAAAAABJM/ozaNSSbEGtc/s1600-h/Screenshot-2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 88px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/S4IY3Pv7hzI/AAAAAAAABJM/ozaNSSbEGtc/s400/Screenshot-2.png" alt="" id="BLOGGER_PHOTO_ID_5440938637216417586" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span style="font-weight: bold;"&gt;1)The Hello World Program &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1a) from command line&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3G-IObbUjlA/S34lg8O6uCI/AAAAAAAABG8/LgHbbcYu5Vo/s1600-h/Screenshot-2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 249px; height: 54px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/S34lg8O6uCI/AAAAAAAABG8/LgHbbcYu5Vo/s400/Screenshot-2.png" alt="" id="BLOGGER_PHOTO_ID_5439826647764875298" border="0" /&gt;&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt;1b) from script&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/S34nerTJPjI/AAAAAAAABHM/oZghuq2ydQ8/s1600-h/Screenshot-4.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 237px; height: 119px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/S34nerTJPjI/AAAAAAAABHM/oZghuq2ydQ8/s400/Screenshot-4.png" alt="" id="BLOGGER_PHOTO_ID_5439828807882718770" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/S34n4UW1BfI/AAAAAAAABHU/UnCfo_dWSHs/s1600-h/Screenshot-5.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 270px; height: 59px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/S34n4UW1BfI/AAAAAAAABHU/UnCfo_dWSHs/s400/Screenshot-5.png" alt="" id="BLOGGER_PHOTO_ID_5439829248400754162" border="0" /&gt;&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt;1c) 'Exotic' Hello, World(s)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;This program prints Hello and the first command-line argument&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/S34qQA-6YyI/AAAAAAAABHk/QkME0Y_uveE/s1600-h/Screenshot-3.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 234px; height: 30px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/S34qQA-6YyI/AAAAAAAABHk/QkME0Y_uveE/s400/Screenshot-3.png" alt="" id="BLOGGER_PHOTO_ID_5439831854540284706" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/S34qayM4yII/AAAAAAAABHs/ZhwDgBuR86w/s1600-h/Screenshot-2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 342px; height: 154px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/S34qayM4yII/AAAAAAAABHs/ZhwDgBuR86w/s400/Screenshot-2.png" alt="" id="BLOGGER_PHOTO_ID_5439832039550929026" border="0" /&gt;&lt;/a&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;2)Counting from 1 to 10&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3G-IObbUjlA/S34s0YYslRI/AAAAAAAABIE/7JR3lpNfGGI/s1600-h/Screenshot-4.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 298px; height: 92px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/S34s0YYslRI/AAAAAAAABIE/7JR3lpNfGGI/s400/Screenshot-4.png" alt="" id="BLOGGER_PHOTO_ID_5439834678320993554" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/S34sQ9VHnHI/AAAAAAAABH8/-dnsfoRtVTY/s1600-h/Screenshot-5.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 297px; height: 213px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/S34sQ9VHnHI/AAAAAAAABH8/-dnsfoRtVTY/s400/Screenshot-5.png" alt="" id="BLOGGER_PHOTO_ID_5439834069762808946" border="0" /&gt;&lt;/a&gt; &lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;3)Evaluating the squares&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/S3512StDR9I/AAAAAAAABIM/44bzszLVkdU/s1600-h/Screenshot-6.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 367px; height: 111px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/S3512StDR9I/AAAAAAAABIM/44bzszLVkdU/s400/Screenshot-6.png" alt="" id="BLOGGER_PHOTO_ID_5439914975504320466" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/S352GaOWiRI/AAAAAAAABIU/0LFrkpAR8Ek/s1600-h/Screenshot-7.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 278px; height: 126px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/S352GaOWiRI/AAAAAAAABIU/0LFrkpAR8Ek/s400/Screenshot-7.png" alt="" id="BLOGGER_PHOTO_ID_5439915252400949522" border="0" /&gt;&lt;/a&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;4)Some Arithmetic&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/S352t8VjbDI/AAAAAAAABIc/uEbEXqS5iTU/s1600-h/63937532.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 229px; height: 306px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/S352t8VjbDI/AAAAAAAABIc/uEbEXqS5iTU/s400/63937532.png" alt="" id="BLOGGER_PHOTO_ID_5439915931572857906" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-4369309165245642161?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/4369309165245642161/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=4369309165245642161' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/4369309165245642161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/4369309165245642161'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2010/02/dabbling-with-bash-1.html' title='DABBLING WITH BASH -1'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_3G-IObbUjlA/S4IY3Pv7hzI/AAAAAAAABJM/ozaNSSbEGtc/s72-c/Screenshot-2.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-8787197387825643855</id><published>2010-02-14T23:49:00.009+05:30</published><updated>2010-03-04T15:46:31.179+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu Karmic'/><title type='text'>CHECKING FOR OPENGL RENDERING IN UBUNTU</title><content type='html'>&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="font-style: normal; font-weight: bold;"&gt;CHECKING FOR OPENGL RENDERING !&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/S3hn0vqiDDI/AAAAAAAABFk/VHH2e6XmnBk/s1600-h/Screenshot-8.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 305px; height: 35px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/S3hn0vqiDDI/AAAAAAAABFk/VHH2e6XmnBk/s400/Screenshot-8.png" alt="" id="BLOGGER_PHOTO_ID_5438210705895590962" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;Details about rendering and also the graphics-card can also be obtained by the command, &lt;i&gt;glxinfo | grep render&lt;/i&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-8787197387825643855?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/8787197387825643855/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=8787197387825643855' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/8787197387825643855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/8787197387825643855'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2010/02/checking-for-opengl-rendering-in-ubuntu.html' title='CHECKING FOR OPENGL RENDERING IN UBUNTU'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_3G-IObbUjlA/S3hn0vqiDDI/AAAAAAAABFk/VHH2e6XmnBk/s72-c/Screenshot-8.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-8359083655144692872</id><published>2010-01-08T22:40:00.015+05:30</published><updated>2010-03-04T15:47:50.247+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web'/><title type='text'>4 GOOGLE SEARCHES IN A SINGLE PAGE !</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_zqi4hA8njOk/S0dn3AxowlI/AAAAAAAAACM/GTIwj4L1-9k/s1600-h/Screenshot-GoogleGoogleGoogleGoogle+-+Mozilla+Firefox.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 182px;" src="http://2.bp.blogspot.com/_zqi4hA8njOk/S0dn3AxowlI/AAAAAAAAACM/GTIwj4L1-9k/s320/Screenshot-GoogleGoogleGoogleGoogle+-+Mozilla+Firefox.png" alt="" id="BLOGGER_PHOTO_ID_5424418470989709906" border="0" /&gt;&lt;/a&gt;Try "&lt;a href="http://www.googlegooglegooglegoogle.com/"&gt;www.googlegooglegooglegoogle.com&lt;/a&gt;" and get the 4 google search on a single page.&lt;br /&gt;&lt;br /&gt;Try playing with funny variations ! a mix and match with wiki and google !&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/S0gDbvb6zQI/AAAAAAAABEQ/SHrGfcSkST0/s1600-h/Screenshot.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 183px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/S0gDbvb6zQI/AAAAAAAABEQ/SHrGfcSkST0/s320/Screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5424589526292679938" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/S0gCRpBYWzI/AAAAAAAABEA/J9ZXPTtCqnE/s1600-h/Screenshot.png"&gt;&lt;br /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-8359083655144692872?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/8359083655144692872/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=8359083655144692872' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/8359083655144692872'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/8359083655144692872'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2010/01/4-google-search-in-single-page.html' title='4 GOOGLE SEARCHES IN A SINGLE PAGE !'/><author><name>LALIT</name><uri>http://www.blogger.com/profile/14578942897309639690</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_zqi4hA8njOk/S0dn3AxowlI/AAAAAAAAACM/GTIwj4L1-9k/s72-c/Screenshot-GoogleGoogleGoogleGoogle+-+Mozilla+Firefox.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-2905004358274254736</id><published>2010-01-04T06:30:00.018+05:30</published><updated>2010-03-04T15:48:17.984+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>ZETA IN SCIPY</title><content type='html'>&lt;div  style="text-align: justify;font-family:webdings;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b  style="font-family:trebuchet ms;"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;PROBLEMS WITH ZETA FUNCTION IN SCIPY&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div  style="text-align: justify;font-family:trebuchet ms;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div  style="text-align: justify;font-family:trebuchet ms;"&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span"&gt;Dabbling with zeta in scipy gave various unsatisfactory results. Few very obvious results of zeta function are ;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div  style="text-align: justify;font-family:trebuchet ms;"&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div  style="text-align: justify;font-family:trebuchet ms;"&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span"&gt;(1) For negative even integers the function is zero&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div  style="text-align: justify;font-family:trebuchet ms;"&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span"&gt;(2) zeta(0) = -1/2&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div  style="text-align: justify;font-family:trebuchet ms;"&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span"&gt;(3) zeta(-1) = -1/12&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div  style="text-align: justify;font-family:trebuchet ms;"&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span"&gt;(4) zeta(1/2) = -1.46035450880.....&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div  style="text-align: justify;font-family:trebuchet ms;"&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span"&gt;(5) zeta(1) = infinity&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div  style="text-align: justify;font-family:trebuchet ms;"&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span"&gt;(6) zeta(2) = 1.6449340.....&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div  style="text-align: justify;font-family:trebuchet ms;"&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div  style="text-align: justify;font-family:trebuchet ms;"&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span"&gt;Trying it on scipy,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div  style="font-family:webdings;"&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div  style="text-align: center;font-family:webdings;"&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span"&gt;&lt;img src="http://2.bp.blogspot.com/_3G-IObbUjlA/S0E_cbxV2JI/AAAAAAAABCw/4g9CevRD_uA/s400/Screenshot-1.png" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div  style="text-align: justify;font-family:trebuchet ms;"&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;The probable reason for this inconsistent behaviour and issues for zeta values below 2 and improbable results for negative numbers is; the module is probably structured abinitio from zeta function&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div  style="text-align: center;font-family:webdings;"&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span"&gt;&lt;img src="http://2.bp.blogspot.com/_3G-IObbUjlA/S0FA7d1JrXI/AAAAAAAABC4/kZMdDU3arCw/s400/zeta_function.jpg" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div  style="text-align: justify;font-family:trebuchet ms;"&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span"&gt;whilst it may be a better idea to structure the zeta function using the functional equation.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div  style="text-align: center;font-family:webdings;"&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span"&gt;&lt;img src="http://2.bp.blogspot.com/_3G-IObbUjlA/S0FBCVIBlPI/AAAAAAAABDA/FdQf2gTRh2A/s400/chp_riemann_eqn.jpg" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div  style="text-align: justify;font-family:trebuchet ms;"&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;It may also help to have a special provision for zeta(1/2)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div  style="text-align: justify;font-family:trebuchet ms;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style=";font-family:webdings;font-size:100%;"  &gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.scipy.org/"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 200px; height: 187px;" src="http://docs.scipy.org/doc/scipy/reference/_static/scipyshiny_small.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=";font-family:'trebuchet ms';font-size:100%;" class="Apple-style-span"  &gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div  style="text-align: left;font-family:webdings;"&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div  style="text-align: left;font-family:webdings;"&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span style=";font-family:'trebuchet ms';font-size:100%;" class="Apple-style-span"  &gt;&lt;span class="Apple-style-span"&gt;REFERENCE&lt;br /&gt;(1) &lt;a href="http://docs.scipy.org/doc/scipy/reference/generated/scipy.special.zeta.html"&gt;Zeta Scipy reference &lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-2905004358274254736?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/2905004358274254736/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=2905004358274254736' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/2905004358274254736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/2905004358274254736'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2010/01/zeta-in-scipy.html' title='ZETA IN SCIPY'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_3G-IObbUjlA/S0E_cbxV2JI/AAAAAAAABCw/4g9CevRD_uA/s72-c/Screenshot-1.png' height='72' width='72'/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-7601911964650407102</id><published>2010-01-04T05:43:00.025+05:30</published><updated>2010-03-04T15:49:05.456+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ada'/><title type='text'>AN EXPERIMENT IN ADA</title><content type='html'>&lt;span style="font-weight: bold;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;MULTIPLE CONCURRENT UPDATES IN ADA-2005&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;b  style="font-family:trebuchet ms;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;div  style="font-family:trebuchet ms;"&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div  style="text-align: justify;font-family:trebuchet ms;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;Probably the best book in Ada concurrent and real time programming is,&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;a href="http://www.amazon.co.uk/gp/product/0521866979/ref=pd_lpo_k2_dp_sr_3?pf_rd_p=471057153&amp;amp;pf_rd_s=lpo-top-stripe&amp;amp;pf_rd_t=201&amp;amp;pf_rd_i=052162911X&amp;amp;pf_rd_m=A3P5ROKL5A1OLE&amp;amp;pf_rd_r=127KH83YHQ3BHK8EAPAJ"&gt;&lt;img src="http://1.bp.blogspot.com/_3G-IObbUjlA/S0E1mEDp8II/AAAAAAAABCI/qCB_o1Fc4jY/s320/4152912lbcL.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: left;"&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span" style=";font-family:georgia;font-size:85%;"  &gt;&lt;span class="Apple-style-span"&gt;Pic 1. Concurrent and Real time programming in Ada-2005&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;In this book, in page 37 the authors discuss a program which lacks protection to multiple concurrent updates&lt;/span&gt;,&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/S0E4c3Rsp6I/AAAAAAAABCY/ktM9E7UeLzY/s1600-h/Screenshot-4.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 372px; height: 375px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/S0E4c3Rsp6I/AAAAAAAABCY/ktM9E7UeLzY/s400/Screenshot-4.png" alt="" id="BLOGGER_PHOTO_ID_5422677494856460194" border="0" /&gt;&lt;/a&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span"  style="font-size:85%;"&gt;Pic 2. The Program&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;On tinkering with the program, increasing the looping; strange results are seen to happen. The program is tried with increasing looping in XP and also Ubuntu 9.10. The results are as follows;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Observations in XP ( first table ) and  in Ubuntu 9:10( second table ) :&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/S0E49fU63ZI/AAAAAAAABCg/pkupeEtEYT4/s1600-h/Screenshot-2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 174px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/S0E49fU63ZI/AAAAAAAABCg/pkupeEtEYT4/s400/Screenshot-2.png" alt="" id="BLOGGER_PHOTO_ID_5422678055363206546" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 238);"&gt;&lt;u&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/S0E5EGrbojI/AAAAAAAABCo/UlRHW74KOjw/s1600-h/Screenshot-3.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 197px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/S0E5EGrbojI/AAAAAAAABCo/UlRHW74KOjw/s400/Screenshot-3.png" alt="" id="BLOGGER_PHOTO_ID_5422678169005826610" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-family:trebuchet ms;"&gt;The program runs on the same body and has 2 tasks, on higher loops discrepancy is observed and issues of multiple concurrent updates are visible.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;  &lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;On closer observations it can be seen that XP and Ubuntu 9.10 behave little differently and the issue of multiple concurrent updates come to be at different loopings.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;The reasons for such behaviour is still not very well understood by me, however modifying the program using semaphores does rectify this problem.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-7601911964650407102?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/7601911964650407102/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=7601911964650407102' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/7601911964650407102'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/7601911964650407102'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2010/01/experiment-in-ada.html' title='AN EXPERIMENT IN ADA'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_3G-IObbUjlA/S0E1mEDp8II/AAAAAAAABCI/qCB_o1Fc4jY/s72-c/4152912lbcL.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-9048898986963545496</id><published>2009-12-27T07:24:00.006+05:30</published><updated>2010-04-30T13:45:17.035+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ruby'/><title type='text'>STARTING OFF IN RUBY</title><content type='html'>&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;b&gt;MY FIRST RUBY PROGRAM !&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;Dabbling in python and its variants I came to try ruby ! The syntax is very similar to python.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;img src="http://1.bp.blogspot.com/_3G-IObbUjlA/Sza_2eD7e2I/AAAAAAAABA4/I9wcUpbTNZg/s400/Screenshot-2.png" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Fig1. Ruby version 1.8.7&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;My first program was straight from the &lt;a href="http://www.ruby-lang.org/en/"&gt;ruby website&lt;/a&gt;, &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;img src="http://3.bp.blogspot.com/_3G-IObbUjlA/Sza_2nmY6gI/AAAAAAAABBA/Dcv2PISAaRk/s400/Screenshot-1.png" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style=";font-family:georgia;font-size:small;"  &gt;Fig2. Seen on Ruby website&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;The output was  as desired ! &lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;img src="http://3.bp.blogspot.com/_3G-IObbUjlA/SzbAT7X_28I/AAAAAAAABBI/qQXMaLvIaTE/s400/Screenshot.png" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style=";font-family:georgia;font-size:small;"  &gt;Fig3. I love Ruby ! &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style=";font-family:georgia;font-size:small;"  &gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style=";font-family:georgia;font-size:small;"  &gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-9048898986963545496?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/9048898986963545496/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=9048898986963545496' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/9048898986963545496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/9048898986963545496'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/12/starting-off-in-ruby.html' title='STARTING OFF IN RUBY'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_3G-IObbUjlA/Sza_2eD7e2I/AAAAAAAABA4/I9wcUpbTNZg/s72-c/Screenshot-2.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-8505210671479915033</id><published>2009-11-27T01:59:00.003+05:30</published><updated>2010-03-04T15:50:44.019+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Matlab'/><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>SINE INTEGRAL IN SCIPY</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;THE SINE INTEGRAL&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;The&lt;/span&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt; &lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt; &lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;Sine &lt;a href="http://en.wikipedia.org/wiki/Sine_integral#Sine_integral"&gt;Integral&lt;/a&gt; is a very important function in Physics, Astronomy, Electrodynamics, Mathematical Physics,Optics and Signal Processing.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/Sw7fQ_l8XBI/AAAAAAAAA-Y/DbQN_Twkzz4/s1600/2.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 234px; height: 93px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/Sw7fQ_l8XBI/AAAAAAAAA-Y/DbQN_Twkzz4/s400/2.bmp" alt="" id="BLOGGER_PHOTO_ID_5408505685560024082" border="0" /&gt;&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt;A fundamental result in the sine integral is;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/Sw7beffZW2I/AAAAAAAAA-Q/6D7Jw-YQ8rY/s1600/1.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 208px; height: 96px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/Sw7beffZW2I/AAAAAAAAA-Q/6D7Jw-YQ8rY/s400/1.bmp" alt="" id="BLOGGER_PHOTO_ID_5408501519414287202" border="0" /&gt;&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt;This result is analytically proven using contour integrals&lt;/span&gt; concept from complex theory.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;TRYING IT IN MATLAB&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/Sw7hAadn7AI/AAAAAAAAA-g/x9ZvPEjOP3c/s1600/untitled56778.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 226px; height: 111px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/Sw7hAadn7AI/AAAAAAAAA-g/x9ZvPEjOP3c/s400/untitled56778.bmp" alt="" id="BLOGGER_PHOTO_ID_5408507599738366978" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/Sw7hS3c9alI/AAAAAAAAA-o/STSxXXPPPSY/s1600/untitledgy7.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 210px; height: 223px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/Sw7hS3c9alI/AAAAAAAAA-o/STSxXXPPPSY/s400/untitledgy7.bmp" alt="" id="BLOGGER_PHOTO_ID_5408507916757854802" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;MATLAB gives excellent results&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;, particularly for the special case of (0-inf )it gives correct value.&lt;/span&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;&lt;br /&gt;&lt;br /&gt;TRYING IT IN SCIPY&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/Sw7iSyMvwlI/AAAAAAAAA-w/xdvpbOjj7bg/s1600/45566.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 282px; height: 194px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/Sw7iSyMvwlI/AAAAAAAAA-w/xdvpbOjj7bg/s400/45566.bmp" alt="" id="BLOGGER_PHOTO_ID_5408509014859301458" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;In Scipy the sine integral (and the cosine integral) is via &lt;span style="font-weight: bold;"&gt;(si,ci) = sici &lt;/span&gt;function. It yields excellent values for numbers, however for infinity it yields &lt;span style="font-weight: bold;"&gt;nan (not a number)&lt;/span&gt;.  This should probably &lt;span style="font-weight: bold;"&gt;be corrected with an exception&lt;/span&gt; in the sici module.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;It is worth noting that for sufficiently high values (which tend to infinity) the desired result of 1.57.... ( = pi/2) is obtained, which confirms the numerical evaluation is correct&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;&lt;br /&gt;&lt;br /&gt;REFERENCES&lt;/span&gt; &lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;(1) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://docs.scipy.org/doc/scipy/reference/generated/scipy.special.sici.html"&gt;sici&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(2) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://mathworld.wolfram.com/SineIntegral.html"&gt;sine integral&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.scipy.org/"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 200px; height: 187px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/Sw7kSSdB5WI/AAAAAAAAA-4/lxxwMRFRxI0/s400/scipyshiny_small.png" alt="" id="BLOGGER_PHOTO_ID_5408511205360919906" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-8505210671479915033?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/8505210671479915033/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=8505210671479915033' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/8505210671479915033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/8505210671479915033'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/11/sine-integral-in-scipy.html' title='SINE INTEGRAL IN SCIPY'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_3G-IObbUjlA/Sw7fQ_l8XBI/AAAAAAAAA-Y/DbQN_Twkzz4/s72-c/2.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-2223625113463345374</id><published>2009-11-25T06:23:00.016+05:30</published><updated>2010-08-22T19:56:12.464+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Matlab'/><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>RAISING IT TO THE POWER OF ......</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;LAWS OF EXPONENT&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;In the laws of exponents,&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;a number can never be raised to an exponent to yield negative values. Only using complex exponents can negative values be obtained.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3G-IObbUjlA/SwyHuYc2VLI/AAAAAAAAA9U/jv9z9PrP418/s1600/untitled.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 335px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/SwyHuYc2VLI/AAAAAAAAA9U/jv9z9PrP418/s400/untitled.bmp" alt="" id="BLOGGER_PHOTO_ID_5407846483472307378" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Trying the same formulation in python, it is worth noting that the formulation fails for a = 1 hence a special case output for a = 1.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/SwyIXTtIdGI/AAAAAAAAA9c/7Xh5F1cJcZA/s1600/untitled2.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 308px; height: 146px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/SwyIXTtIdGI/AAAAAAAAA9c/7Xh5F1cJcZA/s400/untitled2.bmp" alt="" id="BLOGGER_PHOTO_ID_5407847186573063266" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Some sample output is ;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/SwyJ3mgkmZI/AAAAAAAAA9k/OGxpTTXV3O4/s1600/untitled3.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 262px; height: 164px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/SwyJ3mgkmZI/AAAAAAAAA9k/OGxpTTXV3O4/s400/untitled3.bmp" alt="" id="BLOGGER_PHOTO_ID_5407848840888097170" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Similar treatments in MATLAB is also fruitful&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/SwyKYmj7-DI/AAAAAAAAA9s/g9iXcufI7FM/s1600/untitled.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 229px; height: 108px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/SwyKYmj7-DI/AAAAAAAAA9s/g9iXcufI7FM/s400/untitled.JPG" alt="" id="BLOGGER_PHOTO_ID_5407849407837894706" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;The visible change is that iota in MATLAB it is i, while in Python it is j.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-2223625113463345374?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/2223625113463345374/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=2223625113463345374' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/2223625113463345374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/2223625113463345374'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/11/raising-it-to-power-of.html' title='RAISING IT TO THE POWER OF ......'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_3G-IObbUjlA/SwyHuYc2VLI/AAAAAAAAA9U/jv9z9PrP418/s72-c/untitled.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-9172220989208918757</id><published>2009-11-07T16:29:00.004+05:30</published><updated>2010-03-04T15:52:02.553+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>BIZARRE BIZARRE PYTHON</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;IS THAT SOME WITCH CRAFT ? &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Python .... maybe the one of the best programming languages has just gone crazy !&lt;br /&gt;&lt;br /&gt;In the interpreter mode I got these crazy results trying to get numbers starting with zero...&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/SvVT-gjOVwI/AAAAAAAAA70/8pGYR0jaoKo/s1600-h/untitled.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 264px; height: 213px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/SvVT-gjOVwI/AAAAAAAAA70/8pGYR0jaoKo/s400/untitled.bmp" alt="" id="BLOGGER_PHOTO_ID_5401315661455447810" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Only on referring to Hetland that I got to know that the interpreter does an OCTAL ! &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;REFERENCES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(1) &lt;a href="http://www.apress.com/book/view/159059519x"&gt;Hetland&lt;/a&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-9172220989208918757?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/9172220989208918757/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=9172220989208918757' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/9172220989208918757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/9172220989208918757'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/11/bizarre-bizarre-python.html' title='BIZARRE BIZARRE PYTHON'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_3G-IObbUjlA/SvVT-gjOVwI/AAAAAAAAA70/8pGYR0jaoKo/s72-c/untitled.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-3351688791489071040</id><published>2009-10-19T05:49:00.024+05:30</published><updated>2010-03-04T15:51:46.920+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Matlab'/><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>SQUARE ROOT OF IOTA</title><content type='html'>&lt;span style=";font-family:trebuchet ms;font-size:small;"  &gt;&lt;span style=""&gt;&lt;b&gt;SQUARE ROOT OF COMPLEX NUMBERS&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:trebuchet ms;font-size:small;"  &gt;&lt;span style=""&gt;i, the square root of -1 the fundamental complex number. Working out the square-root of i;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_3G-IObbUjlA/Stufg7WxdgI/AAAAAAAAA6I/C3Hl7ugXmjo/s1600-h/untitled78990.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img src="http://2.bp.blogspot.com/_3G-IObbUjlA/Stufg7WxdgI/AAAAAAAAA6I/C3Hl7ugXmjo/s400/untitled78990.bmp" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;ON MATLAB&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Trying it on Matlab&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_3G-IObbUjlA/Stuis5UwZDI/AAAAAAAAA6Y/UtwAfcQXMWw/s1600-h/dfr.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img src="http://1.bp.blogspot.com/_3G-IObbUjlA/Stuis5UwZDI/AAAAAAAAA6Y/UtwAfcQXMWw/s320/dfr.bmp" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style=";font-family:Times,&amp;quot;;" &gt;Fig 1. Matlab 1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style=";font-family:Times,&amp;quot;;" &gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_3G-IObbUjlA/Stui-3vDHFI/AAAAAAAAA6g/eH_lbcS2RVY/s1600-h/fgt.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img src="http://4.bp.blogspot.com/_3G-IObbUjlA/Stui-3vDHFI/AAAAAAAAA6g/eH_lbcS2RVY/s320/fgt.bmp" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style=";font-family:Times,&amp;quot;;" &gt;Fig 2. Matlab 2&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span style=";font-family:trebuchet ms;font-size:x-small;"  &gt;&lt;span style=""&gt;&lt;span style="font-size:small;"&gt;Matlab gives very precise result both by 'power of 0.5' and 'sqrt function'. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span style=";font-family:trebuchet ms;font-size:x-small;"  &gt;&lt;span style=""&gt;&lt;b&gt;&lt;span style="font-size:small;"&gt;USING CMATH&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style=";font-family:Times,&amp;quot;;" &gt;&lt;b&gt;&lt;span style=";font-family:&amp;quot;;font-size:small;"  &gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span style=";font-family:trebuchet ms;font-size:x-small;"  &gt;&lt;span style=""&gt;&lt;span style="font-size:small;"&gt;Using &lt;a href="http://docs.python.org/library/cmath.html"&gt;cmath&lt;/a&gt; module in Python;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_3G-IObbUjlA/StulboTYMlI/AAAAAAAAA6o/fTYWfuTmRqc/s1600-h/666664444.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img src="http://4.bp.blogspot.com/_3G-IObbUjlA/StulboTYMlI/AAAAAAAAA6o/fTYWfuTmRqc/s320/666664444.bmp" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style=";font-family:Times,&amp;quot;;" &gt;&lt;span style=";font-family:&amp;quot;;font-size:small;"  &gt; &lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style=";font-family:Times,&amp;quot;;" &gt;Fig 3. cmath 1&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_3G-IObbUjlA/StumHBIPIgI/AAAAAAAAA6w/i5KSjoh5XgM/s1600-h/rget666.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img src="http://1.bp.blogspot.com/_3G-IObbUjlA/StumHBIPIgI/AAAAAAAAA6w/i5KSjoh5XgM/s320/rget666.bmp" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style=";font-family:Times,&amp;quot;;" &gt;Fig 4. cmath 2&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center; font-family: trebuchet ms;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div  style="text-align: justify;font-family:courier new;"&gt;&lt;span style=";font-family:trebuchet ms;font-size:x-small;"  &gt;&lt;span style=""&gt;&lt;span style="font-size:small;"&gt;&lt;span style=""&gt;cmath also gives wonderful results, however it is worth noting that the real and complex parts are different in the last 2 digits ( 0.707106781186547&lt;b&gt;57&lt;/b&gt; in the real part while 0.707106781186547&lt;b&gt;46&lt;/b&gt; in the &lt;span style="font-size:100%;"&gt;complex &lt;/span&gt;part); which &lt;b&gt;should not be so&lt;/b&gt; as they both represent the same number ! &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;USING SCIPY&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Using &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://www.scipy.org/"&gt;Scipy&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt;, scientific and numerical module in python&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_3G-IObbUjlA/StuoEv5b9PI/AAAAAAAAA64/x_nptO3Qc-Q/s1600-h/agagagattty.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img src="http://3.bp.blogspot.com/_3G-IObbUjlA/StuoEv5b9PI/AAAAAAAAA64/x_nptO3Qc-Q/s320/agagagattty.bmp" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style=";font-family:Times,&amp;quot;;" &gt;Fig 5. Using Scipy&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div  style=";font-family:&amp;quot;;"&gt;&lt;span style=";font-family:trebuchet ms;font-size:small;"  &gt;Similar results to that of cmath.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div face="&amp;quot;" style="font-family: trebuchet ms;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div  style=";font-family:&amp;quot;;"&gt;&lt;span style=";font-family:trebuchet ms;font-size:small;"  &gt;&lt;b&gt;SQUARING THE ROOT !&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div  style=";font-family:&amp;quot;;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div face="&amp;quot;" style=""&gt;&lt;span style=";font-family:trebuchet ms;font-size:small;"  &gt;Squaring the square root often confirms to the accuracy and resolution of the software.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_3G-IObbUjlA/StuptONfu0I/AAAAAAAAA7A/K5SCQbV0kZ0/s1600-h/untitledbababababa.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img src="http://1.bp.blogspot.com/_3G-IObbUjlA/StuptONfu0I/AAAAAAAAA7A/K5SCQbV0kZ0/s320/untitledbababababa.bmp" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style=";font-family:Times,&amp;quot;;" &gt;Fig 6. Squaring the root in Matlab&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_3G-IObbUjlA/Stuvd_IHF2I/AAAAAAAAA7Y/WSd5YEm-k9w/s1600-h/w.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img src="http://4.bp.blogspot.com/_3G-IObbUjlA/Stuvd_IHF2I/AAAAAAAAA7Y/WSd5YEm-k9w/s320/w.bmp" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style=";font-family:Times,&amp;quot;;" &gt;Fig 7. Squaring the root in cmath&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_3G-IObbUjlA/StuvyA-ujDI/AAAAAAAAA7g/12HdyugdrFI/s1600-h/w2.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img src="http://4.bp.blogspot.com/_3G-IObbUjlA/StuvyA-ujDI/AAAAAAAAA7g/12HdyugdrFI/s320/w2.bmp" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style=";font-family:Times,&amp;quot;;" &gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style=";font-family:Times,&amp;quot;;" &gt;Fig 8. Squaring the root in scipy&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center; font-family: trebuchet ms;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div  style="text-align: left;font-family:trebuchet ms;"&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style=""&gt;&lt;span style="font-size:small;"&gt;&lt;b&gt;SOME OBSERVATIONS &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left; font-family: trebuchet ms;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div  style="text-align: justify;font-family:trebuchet ms;"&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style=""&gt;&lt;span style="font-size:small;"&gt;Matlab on squaring the root, gives precise results &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style=""&gt;&lt;span style="font-size:small;"&gt;cmath and scipy on squaring the root gives precise results for the complex part but odd  results for the real part (2.2204460492503131e-16 for scipy and -2.2204460492503131e-16 for cmath).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div  style="text-align: justify;font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style=""&gt;&lt;span style="font-size:small;"&gt;Using (1j)**0.5 and sqrt(1j) in scipy  yields different results in real parts &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style=""&gt;&lt;span style="font-size:small;"&gt;(2.2204460492503131e-16 for &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style=""&gt;&lt;span style="font-size:small;"&gt;(1j)**0.5&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style=""&gt;&lt;span style="font-size:small;"&gt; and -2.2204460492503131e-16 for &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style=""&gt;&lt;span style="font-size:small;"&gt;sqrt(1j)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style=""&gt;&lt;span style="font-size:small;"&gt;).&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left; font-family: trebuchet ms;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div  style="text-align: justify;font-family:trebuchet ms;"&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style=""&gt;&lt;span style=";font-family:trebuchet ms;font-size:small;"  &gt;For developing scipy there should be a sense of consistency with cmath and the resolution (digits in the answer) should be controlled at the discretion of the user( It really looks sleek in Matlab). Further it looks odd and conveys a sense of inconsistency if the complex part tallies completely with the expected result while the real part has an inconsistency.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-3351688791489071040?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/3351688791489071040/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=3351688791489071040' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/3351688791489071040'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/3351688791489071040'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/10/square-root-of-iota.html' title='SQUARE ROOT OF IOTA'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_3G-IObbUjlA/Stufg7WxdgI/AAAAAAAAA6I/C3Hl7ugXmjo/s72-c/untitled78990.bmp' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-6401093074606459261</id><published>2009-10-11T04:16:00.023+05:30</published><updated>2010-03-04T15:52:30.212+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Matlab'/><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>EULER'S GAMMA !</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;EULER'S GAMMA&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Once again ! .... we meet &lt;a href="http://en.wikipedia.org/wiki/Euler"&gt;Leonhard  Euler&lt;/a&gt;  ... a constant named after him. &lt;a href="http://mathworld.wolfram.com/Euler-MascheroniConstant.html"&gt;Euler-Mascheroni constant&lt;/a&gt; which runs as .... 0.57721 … called 'gamma' ,denoted by the Greek alphabet 'gamma' and is one of the important constants of mathematics.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;From an abinitio, 'gamma' is defined as;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://1.bp.blogspot.com/_3G-IObbUjlA/StEQhvIXvwI/AAAAAAAAA30/Pt9qr3B5MO0/s1600-h/untitled2.bmp" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" id="BLOGGER_PHOTO_ID_5391108400712498946" src="http://1.bp.blogspot.com/_3G-IObbUjlA/StEQhvIXvwI/AAAAAAAAA30/Pt9qr3B5MO0/s200/untitled2.bmp" style="margin: 0px auto 10px; cursor: pointer; display: block; height: 55px; text-align: center; width: 200px;" border="0" /&gt;&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="font-weight: bold;"&gt;IN SCIPY&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Trying it out in scipy&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;" &gt; yields a very accurate gamma.....&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_3G-IObbUjlA/StESPHGM3KI/AAAAAAAAA4E/mAKgLxfsUrU/s1600-h/untitled34.bmp" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" id="BLOGGER_PHOTO_ID_5391110279751589026" src="http://4.bp.blogspot.com/_3G-IObbUjlA/StESPHGM3KI/AAAAAAAAA4E/mAKgLxfsUrU/s400/untitled34.bmp" style="margin: 0px auto 10px; cursor: pointer; display: block; height: 133px; text-align: center; width: 400px;" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:times new roman;"&gt;Fig 1. gamma in scipy&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Should gamma be build into scipy  as pi and e ?&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_3G-IObbUjlA/StETx2XzNgI/AAAAAAAAA4M/aUepfLne39M/s1600-h/untitled44.bmp" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" id="BLOGGER_PHOTO_ID_5391111976069051906" src="http://2.bp.blogspot.com/_3G-IObbUjlA/StETx2XzNgI/AAAAAAAAA4M/aUepfLne39M/s400/untitled44.bmp" style="margin: 0px auto 10px; cursor: pointer; display: block; height: 113px; text-align: center; width: 230px;" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:times new roman;"&gt;Fig 2. pi and e in scipy&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;IN MATLAB&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Trying it in MATLAB&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/SxD5uO7JErI/AAAAAAAAA_I/S89cM0WgWpI/s1600/untitled.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 289px; height: 224px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/SxD5uO7JErI/AAAAAAAAA_I/S89cM0WgWpI/s400/untitled.bmp" alt="" id="BLOGGER_PHOTO_ID_5409097725147419314" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;MATLAB recognises the integral as a special integral ! ...... with a &lt;a href="http://www.mathworks.com/access/helpdesk/help/toolbox/symbolic/vpa.html"&gt;vpa&lt;/a&gt;, the value is obtained.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Gamma and other mathematical constants should be build into Scipy and Scipy should be intelligent enough to identify these expressions and integrals.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href="http://www.scipy.org/" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" id="BLOGGER_PHOTO_ID_5391115967544091026" src="http://2.bp.blogspot.com/_3G-IObbUjlA/StEXaLxm4ZI/AAAAAAAAA4U/GWoxNIGNP6s/s400/Scipylogo.png" style="margin: 0pt 10px 10px 0pt; cursor: pointer; float: left; height: 62px; width: 366px;" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;REFERENCES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(1) &lt;a href="http://www.amazon.com/Schaums-Outline-Complex-Variables-2ed/dp/0071615695/ref=sr_1_1?ie=UTF8&amp;amp;s=books&amp;amp;qid=1255216184&amp;amp;sr=8-1"&gt;Murray Spiegel&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-6401093074606459261?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/6401093074606459261/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=6401093074606459261' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/6401093074606459261'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/6401093074606459261'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/10/eulers-gamma.html' title='EULER&apos;S GAMMA !'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_3G-IObbUjlA/StEQhvIXvwI/AAAAAAAAA30/Pt9qr3B5MO0/s72-c/untitled2.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-4843650579787946874</id><published>2009-10-01T22:57:00.018+05:30</published><updated>2010-03-04T15:53:11.163+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>AN EXOTIC INTEGRAL IN SCIPY</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;ADVENTURES IN SCIPY &lt;/span&gt;  &lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div  style="text-align: justify;font-family:trebuchet ms;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Scipy is a module in python which allows for mathematical and scientific functions and tools.&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;  &lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;Trying to evaluate an exotic integral , using contour integration and complex analysis it can be shown that ;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;div style="text-align: justify;"&gt;&lt;a style="font-family: trebuchet ms;" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/SsTnzOEuEjI/AAAAAAAAA2s/_w5oA6HfzCo/s1600-h/untitled.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px; height: 70px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/SsTnzOEuEjI/AAAAAAAAA2s/_w5oA6HfzCo/s200/untitled.JPG" alt="" id="BLOGGER_PHOTO_ID_5387685921379193394" border="0" /&gt;&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;Trying out the integral in scipy,&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt; the function is introduced using lambda and the scipy.integrate.quad is used over 0 to infinity to obtain the results. The result comes up with a warning on infinite recursions  and a &lt;span style="font-weight: bold;"&gt;recommendation to use a special-purpose integrator&lt;/span&gt; and the &lt;span style="font-weight: bold;"&gt;numeric value is 1.5708678849453777, which is with  0.0015587759422623915&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt; of the correct value (~0.025% accurate)&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/StEY2ZcWYKI/AAAAAAAAA4c/Gkp8nrKN3Tg/s1600-h/untitled55.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 193px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/StEY2ZcWYKI/AAAAAAAAA4c/Gkp8nrKN3Tg/s400/untitled55.bmp" alt="" id="BLOGGER_PHOTO_ID_5391117551760990370" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:times new roman;"&gt;Fig 1. The integral in scipy&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.scipy.org/"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 366px; height: 62px;" src="http://upload.wikimedia.org/wikipedia/en/5/58/Scipylogo.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;&lt;br /&gt;&lt;br /&gt;REFERENCES&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;(1) &lt;a href="http://www.scipy.org/SciPy"&gt;Scipy&lt;/a&gt;&lt;br /&gt;(2) &lt;a href="http://code.google.com/p/scipy-mini-anthology/"&gt;Scipy mini anthology &lt;/a&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-4843650579787946874?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/4843650579787946874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=4843650579787946874' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/4843650579787946874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/4843650579787946874'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/10/exotic-integrals-in-scipy.html' title='AN EXOTIC INTEGRAL IN SCIPY'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_3G-IObbUjlA/SsTnzOEuEjI/AAAAAAAAA2s/_w5oA6HfzCo/s72-c/untitled.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-6976367904912057714</id><published>2009-09-20T16:55:00.007+05:30</published><updated>2010-03-04T15:53:58.519+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web'/><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>I AM FAMOUS !</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;GOING PLACES ..... AGAIN !&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;Now, I am famous ! ...... my game Pygame Toss has been published in &lt;a href="http://www.famouswhy.com/"&gt;famouswhy&lt;/a&gt; ..... I would guess it is the simplicity of the game than its achievements , that makes it 'famous'  !  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/Sx72ZozO0uI/AAAAAAAABAw/WOKmapGxg3g/s1600-h/untitled.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 243px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/Sx72ZozO0uI/AAAAAAAABAw/WOKmapGxg3g/s400/untitled.bmp" alt="" id="BLOGGER_PHOTO_ID_5413034722455376610" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:times new roman;"&gt;Fig 1. I am famous ! &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt; &lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;REFERENCES&lt;/span&gt;  &lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;(1) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://download.famouswhy.com/pygame_toss/"&gt;Pygame Toss&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-6976367904912057714?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/6976367904912057714/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=6976367904912057714' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/6976367904912057714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/6976367904912057714'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/09/i-am-famous.html' title='I AM FAMOUS !'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_3G-IObbUjlA/Sx72ZozO0uI/AAAAAAAABAw/WOKmapGxg3g/s72-c/untitled.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-1618442473473775008</id><published>2009-09-19T17:38:00.016+05:30</published><updated>2010-08-22T20:06:50.048+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>VISUAL PYTHON</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;VPYTHON - FIRST PROGRAM ! &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Trying out visual python (version 5.12) came rather easy.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/SrTLAXuRGGI/AAAAAAAAA2E/ny3lzo8Qf1w/s1600-h/vpython.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px; height: 40px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/SrTLAXuRGGI/AAAAAAAAA2E/ny3lzo8Qf1w/s200/vpython.JPG" alt="" id="BLOGGER_PHOTO_ID_5383150661843097698" border="0" /&gt;&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;My first program was mere 2 lines and I could do a fair deal with that.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/SrTKegK2iSI/AAAAAAAAA18/yZyiM6PFK0k/s1600-h/untitled.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px; height: 55px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/SrTKegK2iSI/AAAAAAAAA18/yZyiM6PFK0k/s200/untitled.JPG" alt="" id="BLOGGER_PHOTO_ID_5383150079994923298" border="0" /&gt;&lt;/a&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-53e75698213f04db" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="http://www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://v9.nonxt4.googlevideo.com/videoplayback?id%3D53e75698213f04db%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331302614%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D1C0C66FA01B34A49608C347B5C52AF5DA34DB88A.7A9FFB1A1B0FD93B9D3C495AD22B670640476C7D%26key%3Dck1&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D53e75698213f04db%26offsetms%3D5000%26itag%3Dw160%26sigh%3DK5g55SxQ4fSvMQ9IRMPHhmcii-s&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="http://www.youtube.com/get_player" type="application/x-shockwave-flash"width="320" height="266" bgcolor="#FFFFFF"flashvars="flvurl=http://v9.nonxt4.googlevideo.com/videoplayback?id%3D53e75698213f04db%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331302614%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D1C0C66FA01B34A49608C347B5C52AF5DA34DB88A.7A9FFB1A1B0FD93B9D3C495AD22B670640476C7D%26key%3Dck1&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D53e75698213f04db%26offsetms%3D5000%26itag%3Dw160%26sigh%3DK5g55SxQ4fSvMQ9IRMPHhmcii-s&amp;autoplay=0&amp;ps=blogger"allowFullScreen="true" /&gt;&lt;/object&gt;&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:85%;"  &gt;&lt;br /&gt;&lt;span style=";font-family:times new roman;font-size:100%;"  &gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;REFERENCES&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;(1) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://vpython.org/VPython_Intro.pdf"&gt;VPython intro&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(2) &lt;a href="http://physics.syr.edu/courses/PHY300/LABS/"&gt;Some great examples&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(3) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://en.wikipedia.org/wiki/VPython"&gt;Wiki &lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(4) &lt;a href="http://www.visualrelativity.com/vpython/"&gt;Vpython in teaching Physics&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-1618442473473775008?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/1618442473473775008/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=1618442473473775008' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/1618442473473775008'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/1618442473473775008'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/09/visual-python.html' title='VISUAL PYTHON'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_3G-IObbUjlA/SrTLAXuRGGI/AAAAAAAAA2E/ny3lzo8Qf1w/s72-c/vpython.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-9097590760669339271</id><published>2009-09-17T18:20:00.021+05:30</published><updated>2010-03-04T15:54:47.432+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>AN ODE TO 'pi'</title><content type='html'>&lt;span style="white-space: nowrap; font-weight: bold;font-family:trebuchet ms;" &gt;&lt;span style="margin-left: 0.25em;"&gt;3.141592653589793&lt;/span&gt;&lt;span style="margin-left: 0.25em;"&gt;......&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;The ratio of circumference to diameter, may be no other number has intrigued and troubled mathematicians any more. The Bible puts &lt;a href="http://en.wikipedia.org/wiki/Pi"&gt;pi&lt;/a&gt; as 3 ..... while many fanatics have spend the prime of their lives computing the &lt;span style="font-style: italic;"&gt;'little'&lt;/span&gt; that lies beyond 3 ... &lt;a href="http://www.geocities.com/siliconvalley/pines/5945/his.html"&gt;Ludolph van Ceulen&lt;/a&gt; from Leiden is sure worth a mention .... and he took the 35 digits of his computation to his tombstone after his death in 1610 .....&lt;/span&gt; the exoticism of pi doesn't end here ..... and &lt;a href="http://en.wikipedia.org/wiki/Feynman_point"&gt;Feynman point&lt;/a&gt; is another interesting aspect of the unending digits of pi....&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;It must be appreciated that pi is not just another constant .....and is far from the likes of &lt;a href="http://mccabism.blogspot.com/2009/08/can-speed-of-light-vary.html"&gt;physical constants as G,h and c&lt;/a&gt; ..... and is also distinctly different from root 2, gamma, e and iota .... the physical constants are structured by the physical theory and are found to &lt;a href="http://www.springerlink.com/content/4w5505513665t725/"&gt;vary with time&lt;/a&gt;..... while e, iota, gamma etc can be said to be product of our chosen number system  and the bias of our  prevalent mathematical structure ....... while, pi is engraved in mother nature ..... it is ubiquitous and omnipresent ....&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt; pi enunciates why every circle mimics every other circle .... and so is true for every sphere..... Various physical theories as electrostatics, fluid-dynamics and gravitation have confirmed the presence of pi in their formulation , i.e: Stokes Equation, &lt;a href="http://en.wikipedia.org/wiki/Gauss%27_law"&gt;Gauss's Law&lt;/a&gt;, Kepler's law .....&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;The only other constant which may compete for similar prominence is &lt;a href="http://en.wikipedia.org/wiki/Golden_ratio"&gt;phi&lt;/a&gt; , though phi is more subtle and not really as often visible as pi ....&lt;/span&gt; &lt;span style="font-family:trebuchet ms;"&gt;well..... I must stop with these rhetorics ... and get to business ...... 2 python recursions (1) Ramanujan's formulation (2) Wallis Product.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;(1) Ramanujan's formulation &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;One of the most exotic and 'very fast converging' series for computing pi was given by &lt;a href="http://en.wikipedia.org/wiki/Ramanujan"&gt;Ramanujan&lt;/a&gt;...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/SrI2voLqSEI/AAAAAAAAA1E/qXDeEaKwZmU/s1600-h/3.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 306px; height: 63px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/SrI2voLqSEI/AAAAAAAAA1E/qXDeEaKwZmU/s400/3.JPG" alt="" id="BLOGGER_PHOTO_ID_5382424696529242178" border="0" /&gt;&lt;/a&gt; &lt;span style="font-family:trebuchet ms;"&gt;A corresponding python program is ....&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/SrI4hwYhALI/AAAAAAAAA1M/ZWciricjJqY/s1600-h/4.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 172px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/SrI4hwYhALI/AAAAAAAAA1M/ZWciricjJqY/s400/4.JPG" alt="" id="BLOGGER_PHOTO_ID_5382426657235730610" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;Fig 1. piramanujan.py &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;The program gives very accurate value of pi (3.14159265381), however the limit of recursion is reached in about 20 terms ...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;(2) Wallis Product&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;An evaluation of pi in a 'product' form of an infinite series was given  by English mathematician John Wallis.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; &lt;a style="font-family: trebuchet ms;" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/SrI535rxsMI/AAAAAAAAA1U/VRcAdHQnT4k/s1600-h/1.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 53px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/SrI535rxsMI/AAAAAAAAA1U/VRcAdHQnT4k/s400/1.JPG" alt="" id="BLOGGER_PHOTO_ID_5382428137201184962" border="0" /&gt;&lt;/a&gt; &lt;span style="font-family:trebuchet ms;"&gt;The python program is ....&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/SrI6MtFAK5I/AAAAAAAAA1c/3iMOlzeN9VM/s1600-h/2.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 183px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/SrI6MtFAK5I/AAAAAAAAA1c/3iMOlzeN9VM/s400/2.JPG" alt="" id="BLOGGER_PHOTO_ID_5382428494594583442" border="0" /&gt;&lt;/a&gt;&lt;span style=";font-family:georgia;font-size:85%;"  &gt;Fig 2. piwallis.py &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;The limit of recursion is at about 995 terms .&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Though life can be made much easier ... away from these recursions by importing pi from math .....&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/SrZA71JD1RI/AAAAAAAAA2k/xYL7tIvOcfs/s1600-h/untitled.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 173px; height: 166px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/SrZA71JD1RI/AAAAAAAAA2k/xYL7tIvOcfs/s200/untitled.JPG" alt="" id="BLOGGER_PHOTO_ID_5383561801189545234" border="0" /&gt;&lt;/a&gt;&lt;span style=";font-family:georgia;font-size:85%;"  &gt;Fig 2. pisimple.py &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-9097590760669339271?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/9097590760669339271/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=9097590760669339271' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/9097590760669339271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/9097590760669339271'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/09/ode-to-pi.html' title='AN ODE TO &apos;pi&apos;'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_3G-IObbUjlA/SrI2voLqSEI/AAAAAAAAA1E/qXDeEaKwZmU/s72-c/3.JPG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-8481526699980404044</id><published>2009-09-16T21:25:00.017+05:30</published><updated>2010-03-04T15:55:24.403+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>PYTHON RECURSIONS FOR 'pi' AND 'e'</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;FROM THE BASEL PROBLEM &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;The problem which put Euler on the path of immortality was the &lt;a href="http://en.wikipedia.org/wiki/Basel_problem"&gt;BASEL PROBLEM&lt;/a&gt; solved in 1735, 91 years since it was proposed &lt;span style="text-decoration: underline;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="text-decoration: underline;"&gt;&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;. &lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;Succinctly put  Euler's  proof was ; &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_3G-IObbUjlA/SrELOWCRhYI/AAAAAAAAA0U/y9P4zfwT2n4/s1600-h/untitled.PNG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" id="BLOGGER_PHOTO_ID_5382095370745644418" src="http://2.bp.blogspot.com/_3G-IObbUjlA/SrELOWCRhYI/AAAAAAAAA0U/y9P4zfwT2n4/s400/untitled.PNG" style="margin: 0px auto 10px; cursor: pointer; display: block; height: 55px; text-align: center; width: 400px;" border="0" /&gt;&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt;Using this result to obtain a recursion for pi in Python !&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_3G-IObbUjlA/SrEQVspsrOI/AAAAAAAAA0s/-ViAh6HL0ks/s1600-h/untitled.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" id="BLOGGER_PHOTO_ID_5382100994633805026" src="http://2.bp.blogspot.com/_3G-IObbUjlA/SrEQVspsrOI/AAAAAAAAA0s/-ViAh6HL0ks/s400/untitled.JPG" style="margin: 0px auto 10px; cursor: pointer; display: block; height: 162px; text-align: center; width: 400px;" border="0" /&gt;&lt;/a&gt;&lt;span style=";font-family:georgia;font-size:85%;"  &gt;Pic 1. pi.py&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div  style="text-align: justify;font-family:trebuchet ms;"&gt;&lt;div style="text-align: left;"&gt;At 500 terms the result is 3.13968..... not too far from the sinister 3.1415.....The recursions are good till about 995 terms (3.14063326091) after which one comes across .... &lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;RuntimeError: maximum recursion depth exceeded&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;div style="font-family: trebuchet ms; text-align: left;"&gt;Similar programs may be devised on more series as given by Euler, as .....&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_3G-IObbUjlA/SrY3ZRm3FcI/AAAAAAAAA2U/KsjFaHUnxn8/s1600-h/untitled.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" id="BLOGGER_PHOTO_ID_5383551311930660290" src="http://1.bp.blogspot.com/_3G-IObbUjlA/SrY3ZRm3FcI/AAAAAAAAA2U/KsjFaHUnxn8/s200/untitled.JPG" style="margin: 0px auto 10px; cursor: pointer; display: block; height: 39px; text-align: center; width: 200px;" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;RECURSIONS FOR e&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;a href="http://en.wikipedia.org/wiki/E_%28mathematical_constant%29"&gt;e&lt;/a&gt; the base of natural logarithm is yet another important constant in mathematics .... and  once again related to Euler .....&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_3G-IObbUjlA/SrEY28ynzpI/AAAAAAAAA00/ZtvKic-o9ok/s1600-h/untitled.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" style="font-family: trebuchet ms;"&gt;&lt;img alt="" id="BLOGGER_PHOTO_ID_5382110361994907282" src="http://2.bp.blogspot.com/_3G-IObbUjlA/SrEY28ynzpI/AAAAAAAAA00/ZtvKic-o9ok/s400/untitled.JPG" style="margin: 0px auto 10px; cursor: pointer; display: block; height: 60px; text-align: center; width: 363px;" border="0" /&gt;&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt;A python program on this recursion is designed via the factorial function ....&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_3G-IObbUjlA/SrEZsNvbm7I/AAAAAAAAA08/YAGyZoIowR8/s1600-h/untitled5.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" id="BLOGGER_PHOTO_ID_5382111277077994418" src="http://3.bp.blogspot.com/_3G-IObbUjlA/SrEZsNvbm7I/AAAAAAAAA08/YAGyZoIowR8/s400/untitled5.JPG" style="margin: 0px auto 10px; cursor: pointer; display: block; height: 188px; text-align: center; width: 400px;" border="0" /&gt;&lt;/a&gt;&lt;span style=";font-family:georgia;font-size:85%;"  &gt;Pic 2. e.py&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;The limit of recursion is around n = 170 which yields a very accurate value of e.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Thus in a nutshell .....&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div  style="text-align: center;font-family:trebuchet ms;"&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;"Read Euler, read Euler, he is the master of us all."&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: right;"&gt;-- &lt;span style="font-size:100%;"&gt;Pierre-Simon Laplace&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;REFERENCES &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(1) &lt;/span&gt;&lt;a href="http://pythonism.wordpress.com/2009/02/24/recursive-functions-for-phi-and-root-two/" style="font-family: trebuchet ms;"&gt;Recursive functions for phi and root two&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(2) &lt;a href="http://en.literateprograms.org/Pi_with_Machin%27s_formula_%28Python%29"&gt;Other pi recursions in Python&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-8481526699980404044?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/8481526699980404044/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=8481526699980404044' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/8481526699980404044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/8481526699980404044'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/09/recursion-for-pi.html' title='PYTHON RECURSIONS FOR &apos;pi&apos; AND &apos;e&apos;'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_3G-IObbUjlA/SrELOWCRhYI/AAAAAAAAA0U/y9P4zfwT2n4/s72-c/untitled.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-3512015957669355073</id><published>2009-09-16T20:19:00.005+05:30</published><updated>2010-03-04T15:56:13.880+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>STARRY THINGS !</title><content type='html'>&lt;div style="text-align: justify;"&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;ONCE UPON A STAR LIT SKY&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;I discuss 2 programs which try to mimic stars in the sky.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;Program 1 &lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;(stars.py)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;This program comes along with examples in the &lt;a href="http://www.pygame.org/download.shtml"&gt;official pygame package&lt;/a&gt; , very nice introductory example. With every mouse click the supposed center of the screen moves to that point. Creates a good illusion and can be used as the start-up for further futuristic starry games and animations.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-38e1e010a6d6f4f6" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="http://www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://v6.nonxt4.googlevideo.com/videoplayback?id%3D38e1e010a6d6f4f6%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331302614%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D51185C6E58CF12C4691982D93735B86433F93DE9.64889802917E04374B55DBCCCA9A57D61A168B21%26key%3Dck1&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D38e1e010a6d6f4f6%26offsetms%3D5000%26itag%3Dw160%26sigh%3DFFJsT00CYOSG7DCJEgP73Sf-hGs&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="http://www.youtube.com/get_player" type="application/x-shockwave-flash"width="320" height="266" bgcolor="#FFFFFF"flashvars="flvurl=http://v6.nonxt4.googlevideo.com/videoplayback?id%3D38e1e010a6d6f4f6%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331302614%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D51185C6E58CF12C4691982D93735B86433F93DE9.64889802917E04374B55DBCCCA9A57D61A168B21%26key%3Dck1&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D38e1e010a6d6f4f6%26offsetms%3D5000%26itag%3Dw160%26sigh%3DFFJsT00CYOSG7DCJEgP73Sf-hGs&amp;autoplay=0&amp;ps=blogger"allowFullScreen="true" /&gt;&lt;/object&gt;&lt;/div&gt; &lt;div style="text-align: center;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;Video 1. Program 1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;Program 2&lt;/span&gt; (parallaxstars.py)&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;I came across this example from Chapter 8 of  &lt;a href="http://www.amazon.co.uk/Beginning-Game-Development-Python-Pygame/dp/1590598725/ref=sr_1_1/275-1751815-5884649?ie=UTF8&amp;amp;s=books&amp;amp;qid=1253114147&amp;amp;sr=8-1"&gt;Will's book&lt;/a&gt;, this example creates an illusion that the stars close to the observer are moving faster than those in the background, unlike last example ... a mouse click does no good to the program ! once again a good program and can be used as background for futuristic games.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-6d545a70b2967e2a" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="http://www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://v24.nonxt7.googlevideo.com/videoplayback?id%3D6d545a70b2967e2a%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331302614%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D67328A78EE227E1BB68497D996D6AD223EE38E54.4DDB65B1333556D4B49C041EC308A44F56A997BC%26key%3Dck1&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D6d545a70b2967e2a%26offsetms%3D5000%26itag%3Dw160%26sigh%3DjzjsBRVla_1Ol32Qd_dpCYB0nqU&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="http://www.youtube.com/get_player" type="application/x-shockwave-flash"width="320" height="266" bgcolor="#FFFFFF"flashvars="flvurl=http://v24.nonxt7.googlevideo.com/videoplayback?id%3D6d545a70b2967e2a%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331302614%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D67328A78EE227E1BB68497D996D6AD223EE38E54.4DDB65B1333556D4B49C041EC308A44F56A997BC%26key%3Dck1&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D6d545a70b2967e2a%26offsetms%3D5000%26itag%3Dw160%26sigh%3DjzjsBRVla_1Ol32Qd_dpCYB0nqU&amp;autoplay=0&amp;ps=blogger"allowFullScreen="true" /&gt;&lt;/object&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;Video 2. Program 2&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify; font-family: trebuchet ms;"&gt;It is worth nothing that both these Pygame GUI's generate random stars and does not use any images to blit the screen.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-3512015957669355073?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/3512015957669355073/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=3512015957669355073' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/3512015957669355073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/3512015957669355073'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/09/starry-things.html' title='STARRY THINGS !'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-310557879751763355</id><published>2009-09-07T21:37:00.013+05:30</published><updated>2010-03-04T15:56:55.475+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web'/><category scheme='http://www.blogger.com/atom/ns#' term='Ruby'/><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>CODEPAD</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;....AND THEN THERE WERE ALL ..... ! &lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Other than &lt;a href="http://www.netbeans.org/"&gt;Netbeans&lt;/a&gt;, &lt;a href="http://www.scintilla.org/SciTE.html"&gt;Scite&lt;/a&gt; and &lt;a href="http://www.eclipse.org/"&gt;Eclipse&lt;/a&gt; there is hardly another &lt;a href="http://en.wikipedia.org/wiki/Integrated_development_environment"&gt;IDE&lt;/a&gt; which supports a wide array of languages &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;! &lt;/span&gt;&lt;/span&gt;  &lt;span style="font-family:trebuchet ms;"&gt;VOILA ! ..... &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://codepad.org/"&gt;CODEPAD&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt; ..... AN &lt;span style="font-weight: bold;"&gt;ONLINE COMPILER / INTERPRETER FOR 12 LANGUAGES &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Python works cool , but lacks the interpreter mode. Another &lt;span style="font-family:trebuchet ms;"&gt;online interpreter specifically for Python is &lt;a href="http://try-python.mired.org/"&gt;Try Python&lt;/a&gt; which preserves the &lt;span style="font-weight: bold;"&gt;Python Chevron (&gt;&gt;&gt;)&lt;/span&gt; and is in the interpreter mode. &lt;/span&gt;&lt;span&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;a href="http://www.zamples.com/JspExplorer/index.jsp"&gt;Zamplizer&lt;/a&gt; is another multi-lingual online platform.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://codepad.org/"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 215px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/SqUwrMikH_I/AAAAAAAAA0E/9qz_6q9jvQ0/s400/55554433.JPG" alt="" id="BLOGGER_PHOTO_ID_5378758848622632946" border="0" /&gt;&lt;/a&gt;&lt;span style=";font-family:georgia;font-size:85%;"  &gt;Fig 1. The pad of codepad&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3G-IObbUjlA/S0oPXDWNJ1I/AAAAAAAABE4/Ti99zGL3P9w/s1600-h/Screenshot.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 279px; height: 320px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/S0oPXDWNJ1I/AAAAAAAABE4/Ti99zGL3P9w/s320/Screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5425165589831034706" border="0" /&gt;&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style=";font-family:georgia;font-size:85%;"  &gt;Fig 2. Simple Ruby code in codepad&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;REFERENCES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(1) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://codepad.org/users/Arkapravo"&gt;My codepad profile &lt;/a&gt;&lt;br /&gt;(2) &lt;a href="http://tristram.squarespace.com/home/2008/6/10/online-compilers.html"&gt;Online Compilers &lt;/a&gt;&lt;br /&gt;(3) &lt;a href="http://codepad.org/LXSUyp2W"&gt;The Ruby code&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-310557879751763355?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/310557879751763355/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=310557879751763355' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/310557879751763355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/310557879751763355'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/09/codepad.html' title='CODEPAD'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_3G-IObbUjlA/SqUwrMikH_I/AAAAAAAAA0E/9qz_6q9jvQ0/s72-c/55554433.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-3098716115276549992</id><published>2009-09-06T06:10:00.012+05:30</published><updated>2010-03-04T15:57:22.333+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>FERMAT'S LAST THEOREM !</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;FERMAT'S LAST THEOREM !&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Allen Downey in his book &lt;a href="http://www.greenteapress.com/thinkpython/"&gt;Think Python&lt;/a&gt; poses the reader with a problem ! &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Write a function named check_fermat that takes four parameters — a, b, c and n — and that&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt; checks to see if Fermat’s theorem holds.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/SqMiTpNd2fI/AAAAAAAAAz8/AbVk1I8vWH8/s1600-h/flt.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 390px; height: 179px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/SqMiTpNd2fI/AAAAAAAAAz8/AbVk1I8vWH8/s400/flt.gif" alt="" id="BLOGGER_PHOTO_ID_5378180100885699058" border="0" /&gt;&lt;/a&gt;&lt;span style=";font-family:georgia;font-size:85%;"  &gt;Fig 1. Fermat's last Theorem&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;A suitable program may be made as;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3G-IObbUjlA/SqMGpyFdSgI/AAAAAAAAAz0/AHuQQY0dkCo/s1600-h/untitled.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 168px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/SqMGpyFdSgI/AAAAAAAAAz0/AHuQQY0dkCo/s400/untitled.JPG" alt="" id="BLOGGER_PHOTO_ID_5378149694899571202" border="0" /&gt;&lt;/a&gt;&lt;span style=";font-family:georgia;font-size:85%;"  &gt;Fig 2. Python Code for check_fermat&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;However, it must be noted that this sort of treatment may never form some basis of an alternative proof of &lt;a href="http://en.wikipedia.org/wiki/Fermat%27s_Last_Theorem"&gt;Fermat's last Theorem&lt;/a&gt;, which was the holy grail of mathematics till 1995 when &lt;a href="http://en.wikipedia.org/wiki/Wiles%27_proof_of_Fermat%27s_Last_Theorem"&gt;A&lt;/a&gt;&lt;a href="http://en.wikipedia.org/wiki/Wiles%27_proof_of_Fermat%27s_Last_Theorem"&gt;ndrew Wiles&lt;/a&gt; established  the proof for the 358 year old puzzle.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;REFERENCES&lt;/span&gt;&lt;br /&gt;(1) &lt;a href="http://www.amazon.co.uk/Fermats-Last-Theorem-Simon-Singh/dp/1841157910"&gt;Simon Singh&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-3098716115276549992?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/3098716115276549992/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=3098716115276549992' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/3098716115276549992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/3098716115276549992'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/09/fermats-last-theorem-allen-downey-in.html' title='FERMAT&apos;S LAST THEOREM !'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_3G-IObbUjlA/SqMiTpNd2fI/AAAAAAAAAz8/AbVk1I8vWH8/s72-c/flt.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-5543525210401771683</id><published>2009-09-06T05:31:00.010+05:30</published><updated>2010-03-04T15:58:05.424+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>PALINDROMES !</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;PALINDROMES ! &lt;/span&gt;&lt;i&gt;&lt;br /&gt;&lt;br /&gt;&lt;/i&gt; &lt;span style="font-family:trebuchet ms;"&gt;A simple program to check for palindromes &lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/SqL8Zu75hVI/AAAAAAAAAzk/b5IpKhk2znA/s1600-h/untitled.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 225px; height: 174px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/SqL8Zu75hVI/AAAAAAAAAzk/b5IpKhk2znA/s400/untitled.JPG" alt="" id="BLOGGER_PHOTO_ID_5378138424059987282" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;Fig 1. The code for palindrome check&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/SqU1eIrBo4I/AAAAAAAAA0M/CkjWVyxC5qc/s1600-h/untitled.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 393px; height: 130px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/SqU1eIrBo4I/AAAAAAAAA0M/CkjWVyxC5qc/s400/untitled.PNG" alt="" id="BLOGGER_PHOTO_ID_5378764121804219266" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;Fig 2. Sample output&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;a style="font-family: georgia;" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.scintilla.org/SciTE.html"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 64px; height: 64px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/SqL96mtLqDI/AAAAAAAAAzs/NLyZ9Zygmyk/s400/SciTEIco.png" alt="" id="BLOGGER_PHOTO_ID_5378140088298088498" border="0" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;REFERENCES&lt;/span&gt; &lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;(1) &lt;/span&gt;&lt;a href="http://www.greenteapress.com/thinkpython/"&gt;Allen Downey &lt;/a&gt;&lt;br /&gt;(2) &lt;a href="http://en.wikipedia.org/wiki/Palindrome"&gt;Palindromes&lt;/a&gt;&lt;br /&gt;(3) &lt;a href="http://pythonism.wordpress.com/2008/05/05/exploring-palindromic-numbers-in-python/"&gt;Palindromes of numbers&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-5543525210401771683?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/5543525210401771683/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=5543525210401771683' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/5543525210401771683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/5543525210401771683'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/09/palindromes.html' title='PALINDROMES !'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_3G-IObbUjlA/SqL8Zu75hVI/AAAAAAAAAzk/b5IpKhk2znA/s72-c/untitled.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-5739866780266276829</id><published>2009-08-31T00:31:00.015+05:30</published><updated>2010-03-04T15:58:19.686+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>TAXICAB IN PYTHONLAND</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;THE TAXICAB NUMBER&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;  &lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="font-weight: bold;"&gt;Ta(2) TYPES&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div  style="text-align: justify;font-family:trebuchet ms;"&gt;The Taxicab Numbers Ta(2) types are expressed as,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/Spr_M5gXwxI/AAAAAAAAAzE/HIi4hQrt7ls/s1600-h/untitled3.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 85px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/Spr_M5gXwxI/AAAAAAAAAzE/HIi4hQrt7ls/s400/untitled3.JPG" alt="" id="BLOGGER_PHOTO_ID_5375889702280217362" border="0" /&gt;&lt;/a&gt; &lt;/div&gt;&lt;div face="trebuchet ms" style="text-align: justify;"&gt;&lt;br /&gt;The name is attributed to a historical discussion between Ramanujan and G.H Hardy.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-style: italic;"&gt;"I remember once going to see him when he was lying ill at Putney. I had ridden in taxi-cab No. &lt;/span&gt;&lt;a style="font-style: italic; font-weight: bold;" href="http://en.wikipedia.org/wiki/1729_%28number%29" title="1729 (number)"&gt;1729&lt;/a&gt;&lt;span style="font-style: italic;"&gt;, and remarked that the number seemed to be rather a dull one, and that I hoped it was not an unfavourable omen. "No", he replied, "it is a very interesting number; it is the smallest number expressible as the sum of two [positive] cubes in two different ways."&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: right;"&gt;--G.H Hardy&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;1729 is the smallest Taxicab Ta(2) number and can be expresses as cubes of 2 different sets of numbers (12, 1) and (10, 9).&lt;br /&gt;&lt;br /&gt;A Python program for generating such numbers placing range conditions on a,b,c, and d yielded&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify; font-family: trebuchet ms;"&gt; &lt;/div&gt;&lt;div style="font-family: trebuchet ms; text-align: justify;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/Spr_MdcHBwI/AAAAAAAAAy0/QesKRdaFexM/s1600-h/untitled.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 48px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/Spr_MdcHBwI/AAAAAAAAAy0/QesKRdaFexM/s400/untitled.JPG" alt="" id="BLOGGER_PHOTO_ID_5375889694746150658" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;as the highest Taxicab Number for a,b,c,d in the range of 1 to 100 and&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify; font-family: trebuchet ms;"&gt; &lt;a style="font-family: trebuchet ms;" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/Spr_MvaJlzI/AAAAAAAAAy8/1asTBSwjpJo/s1600-h/untitled2.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 38px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/Spr_MvaJlzI/AAAAAAAAAy8/1asTBSwjpJo/s400/untitled2.JPG" alt="" id="BLOGGER_PHOTO_ID_5375889699569768242" border="0" /&gt;&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;for a range from 1 to 1000.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;The crux of the Python program is obviously summed up as;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a style="font-family: trebuchet ms;" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3G-IObbUjlA/Spu7brfiBtI/AAAAAAAAAzc/eiXv9DDEU4M/s1600-h/untitled.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 246px; height: 48px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/Spu7brfiBtI/AAAAAAAAAzc/eiXv9DDEU4M/s400/untitled.JPG" alt="" id="BLOGGER_PHOTO_ID_5376096664402659026" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;REFERENCES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(1) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://mathworld.wolfram.com/TaxicabNumber.html"&gt;Taxicab Numbers&lt;/a&gt;&lt;br /&gt;(2) &lt;a href="http://code.google.com/p/python-jewels/downloads/list"&gt;Source code&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-5739866780266276829?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/5739866780266276829/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=5739866780266276829' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/5739866780266276829'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/5739866780266276829'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/08/taxicab-in-pythonland.html' title='TAXICAB IN PYTHONLAND'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_3G-IObbUjlA/Spr_M5gXwxI/AAAAAAAAAzE/HIi4hQrt7ls/s72-c/untitled3.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-272412933265759904</id><published>2009-08-30T20:27:00.008+05:30</published><updated>2010-03-04T15:58:29.045+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>A COMMON ERROR IN PYTHON !</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;= AND ==&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A common error in Python is a mix-up of ==   and = , this example illustrates this&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/SpqUjqniICI/AAAAAAAAAyE/3qhfLt90Iok/s1600-h/1.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 270px; height: 190px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/SpqUjqniICI/AAAAAAAAAyE/3qhfLt90Iok/s400/1.JPG" alt="" id="BLOGGER_PHOTO_ID_5375772445676544034" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;Fig 1. The mix up ! &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/SpqUkPd2ZPI/AAAAAAAAAyM/uGotBujxowo/s1600-h/2.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 262px; height: 152px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/SpqUkPd2ZPI/AAAAAAAAAyM/uGotBujxowo/s400/2.JPG" alt="" id="BLOGGER_PHOTO_ID_5375772455568041202" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;Fig 2.  The solution&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3G-IObbUjlA/SpqUkZKAJRI/AAAAAAAAAyU/ZM7xavg_il8/s1600-h/3.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 22px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/SpqUkZKAJRI/AAAAAAAAAyU/ZM7xavg_il8/s400/3.JPG" alt="" id="BLOGGER_PHOTO_ID_5375772458169148690" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;Fig 3.   Moral of the story&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://drpython.sourceforge.net/"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 128px; height: 32px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/SpqVt-p_CVI/AAAAAAAAAyc/sxlEXxmcWkA/s400/header.png" alt="" id="BLOGGER_PHOTO_ID_5375773722365856082" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt; &lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;REFERENCE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(1) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://www.greenteapress.com/thinkpython/"&gt;Allen Downey, ' Think Python' &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-272412933265759904?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/272412933265759904/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=272412933265759904' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/272412933265759904'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/272412933265759904'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/08/common-error-in-python.html' title='A COMMON ERROR IN PYTHON !'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_3G-IObbUjlA/SpqUjqniICI/AAAAAAAAAyE/3qhfLt90Iok/s72-c/1.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-7575988256006602053</id><published>2009-08-24T17:28:00.012+05:30</published><updated>2011-08-08T21:59:40.272+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><category scheme='http://www.blogger.com/atom/ns#' term='Hello World'/><title type='text'>HELLO HASKELL !</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;HELLO WORLD &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Seems I am into some 'Hello World' frenzy !. The Haskell 'Hello World' is similar to that of Python .&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/SpKA2TzNWxI/AAAAAAAAAxU/7xv9BRfKisQ/s1600-h/untitled.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 166px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/SpKA2TzNWxI/AAAAAAAAAxU/7xv9BRfKisQ/s400/untitled.JPG" alt="" id="BLOGGER_PHOTO_ID_5373498975922772754" border="0" /&gt;&lt;/a&gt;&lt;span style=";font-family:georgia;font-size:85%;"  &gt;Fig 1.  Hello Haskell&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:georgia;font-size:85%;"  &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.haskell.org/"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 106px; height: 87px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/SpKi5dIFoeI/AAAAAAAAAxk/mb5SIEV3F7I/s400/Haskell-Logo-Variation.png" alt="" id="BLOGGER_PHOTO_ID_5373536413361218018" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;REFERENCES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(1) &lt;a href="http://www.haskell.org/haskellwiki/Haskell_in_5_steps"&gt;Haskell in 5 easy steps&lt;/a&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-7575988256006602053?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/7575988256006602053/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=7575988256006602053' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/7575988256006602053'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/7575988256006602053'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/08/hello-haskell.html' title='HELLO HASKELL !'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_3G-IObbUjlA/SpKA2TzNWxI/AAAAAAAAAxU/7xv9BRfKisQ/s72-c/untitled.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-8449154248435916013</id><published>2009-08-23T21:58:00.009+05:30</published><updated>2011-08-08T21:59:40.273+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><category scheme='http://www.blogger.com/atom/ns#' term='Hello World'/><title type='text'>HELLO ANDROID !</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;ANDROID &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Android is a Google platform for mobile devices. IDE Eclipse allows for the Android plug in and the programming is in Java.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.android.com/"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 133px; height: 148px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/SpFvy9dHeTI/AAAAAAAAAw0/JbhFFVsuUBI/s400/untitled5.JPG" alt="" id="BLOGGER_PHOTO_ID_5373198751710542130" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;Fig 1. Android Logo&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;The 'Hello World' program was indeed some struggle, not because of the code but rather since one has to wait for about a minute as the emulator executes the program.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/SpFvxaSGpAI/AAAAAAAAAwU/E7NlmX_Kh-4/s1600-h/untitled.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 207px; height: 400px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/SpFvxaSGpAI/AAAAAAAAAwU/E7NlmX_Kh-4/s400/untitled.JPG" alt="" id="BLOGGER_PHOTO_ID_5373198725089240066" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;Fig 2. Hello Android&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/SpFvyXyUtUI/AAAAAAAAAws/j1qbltYBRrU/s1600-h/untitled4.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 191px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/SpFvyXyUtUI/AAAAAAAAAws/j1qbltYBRrU/s400/untitled4.JPG" alt="" id="BLOGGER_PHOTO_ID_5373198741598942530" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;Fig 3. Hello Android code&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3G-IObbUjlA/SpFvxz6PiiI/AAAAAAAAAwk/668PltwKKQI/s1600-h/untitled3.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 207px; height: 400px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/SpFvxz6PiiI/AAAAAAAAAwk/668PltwKKQI/s400/untitled3.JPG" alt="" id="BLOGGER_PHOTO_ID_5373198731968481826" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;Fig 4. 'Home' in the emulator&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/SpGljFnhy2I/AAAAAAAAAxM/AWcRjOehMTM/s1600-h/untitled2.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 209px; height: 400px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/SpGljFnhy2I/AAAAAAAAAxM/AWcRjOehMTM/s400/untitled2.JPG" alt="" id="BLOGGER_PHOTO_ID_5373257852651686754" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;Fig 5. 'Hello Android' in the menu&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3G-IObbUjlA/SpGlikgkfTI/AAAAAAAAAxE/Qgg46Cpca5A/s1600-h/untitled.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 209px; height: 400px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/SpGlikgkfTI/AAAAAAAAAxE/Qgg46Cpca5A/s400/untitled.JPG" alt="" id="BLOGGER_PHOTO_ID_5373257843764133170" border="0" /&gt;&lt;/a&gt;&lt;span style=";font-family:georgia;font-size:85%;"  &gt;Fig 6. The blog spot&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.eclipse.org/"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 171px; height: 91px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/SpF4Ya6iAOI/AAAAAAAAAw8/BpHQF7EXXUM/s400/eclipse.png" alt="" id="BLOGGER_PHOTO_ID_5373208191366725858" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=";font-family:georgia;font-size:85%;"  &gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;   &lt;/div&gt;&lt;div  style="text-align: left;font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;REFERENCES&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(1) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://www.easy-share.com/1907459771/HelloAndroid.zip"&gt;'Hello World' files&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(2) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://www.android.com/"&gt;http://www.android.com/&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(3) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://www.eclipse.org/"&gt;Eclipse&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-8449154248435916013?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/8449154248435916013/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=8449154248435916013' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/8449154248435916013'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/8449154248435916013'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/08/hello-android.html' title='HELLO ANDROID !'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_3G-IObbUjlA/SpFvy9dHeTI/AAAAAAAAAw0/JbhFFVsuUBI/s72-c/untitled5.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-2985026752266217185</id><published>2009-08-17T05:37:00.019+05:30</published><updated>2011-08-08T21:59:40.273+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><category scheme='http://www.blogger.com/atom/ns#' term='C++'/><title type='text'>2+2 = 4199232</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;2+2 = 4199232&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;If only C++ was not so notorious ! &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/SoifpyTVLsI/AAAAAAAAAvM/bd5HxvjRtuA/s1600-h/untitled.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 369px; height: 392px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/SoifpyTVLsI/AAAAAAAAAvM/bd5HxvjRtuA/s400/untitled.JPG" alt="" id="BLOGGER_PHOTO_ID_5370718095865622210" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;Fig 1.  2+2 = 4199232&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;Trying out this simple program in Quincy gives a weird outpu&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;t ! &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;What is happening is that, The printf statement: &lt;span style="font-weight: bold;"&gt;printf("The answer is %d\n");&lt;/span&gt; tells the program to print an integer, but fails to supply one. The printf function doesn't know this, so it will take the next number off the stack (some random number) and print it.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;The correct code should be: &lt;span style="font-weight: bold;"&gt;printf("The answer is %d\n", answer);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/So2Cp5xh4BI/AAAAAAAAAvk/dpmZkks4ndc/s1600-h/untitled.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 347px; height: 338px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/So2Cp5xh4BI/AAAAAAAAAvk/dpmZkks4ndc/s400/untitled.JPG" alt="" id="BLOGGER_PHOTO_ID_5372093586917679122" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;Fig 2. Corrected Program,  2+2 = 4&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-family:trebuchet ms;"&gt;Running the program in Unix (Ubuntu) gave another result ! &lt;/span&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;2+2 = 134518880&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/SovV1Uz0chI/AAAAAAAAAvc/NBomXfx0HHg/s1600-h/Screenshot.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 343px; height: 203px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/SovV1Uz0chI/AAAAAAAAAvc/NBomXfx0HHg/s400/Screenshot.JPG" alt="" id="BLOGGER_PHOTO_ID_5371622092665287186" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;Fig 3. 2+2 = 134518880&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://codecutter.org/tools/quincy/"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 41px; height: 40px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/So2HU7Cn2II/AAAAAAAAAwE/54H0xCcC5G4/s400/qCat.gif" alt="" id="BLOGGER_PHOTO_ID_5372098724038695042" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;REFERENCES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(1) Oualinne, Steve &lt;/span&gt;&lt;span style="font-style: italic;font-family:trebuchet ms;" &gt;"How not to Program in C++"&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;, No Starch Press 2003&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(2) &lt;a href="http://www.codecutter.net/tools/quincy/"&gt;Quincy &lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-2985026752266217185?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/2985026752266217185/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=2985026752266217185' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/2985026752266217185'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/2985026752266217185'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/08/22-4199232.html' title='2+2 = 4199232'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_3G-IObbUjlA/SoifpyTVLsI/AAAAAAAAAvM/bd5HxvjRtuA/s72-c/untitled.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-3215355115678232153</id><published>2009-08-13T03:04:00.007+05:30</published><updated>2010-03-04T15:59:38.435+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web'/><title type='text'>MY PROJECT LOGO</title><content type='html'>&lt;span style="font-weight: bold;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;MY PROJECT LOGO !&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Now ! ..... to stamp my mark on my projects&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;, I had to think of something !&lt;/span&gt;&lt;span&gt;&lt;span style="font-family:trebuchet ms;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="font-family:trebuchet ms;"&gt;...&lt;br /&gt;&lt;br /&gt;This logo has a 60s looks to it !...&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="font-family:trebuchet ms;"&gt; but looks snazzy ! ....&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="font-family:trebuchet ms;"&gt; this logo can be seen on top left of all my google-codes pages&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-family:trebuchet ms;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="font-family:trebuchet ms;"&gt;!&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/SoM2Q74CpmI/AAAAAAAAAvE/_HDR5YLIUgs/s1600-h/ab.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 138px; height: 55px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/SoM2Q74CpmI/AAAAAAAAAvE/_HDR5YLIUgs/s400/ab.JPG" alt="" id="BLOGGER_PHOTO_ID_5369194845334316642" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;Fig 1. My Personalised logo&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-3215355115678232153?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/3215355115678232153/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=3215355115678232153' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/3215355115678232153'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/3215355115678232153'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/08/my-project-logo.html' title='MY PROJECT LOGO'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_3G-IObbUjlA/SoM2Q74CpmI/AAAAAAAAAvE/_HDR5YLIUgs/s72-c/ab.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-2437177840596470574</id><published>2009-08-06T16:25:00.009+05:30</published><updated>2010-03-04T16:00:02.943+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web'/><title type='text'>HOW DID I GET A SOFTPEDIA PAGE ???</title><content type='html'>&lt;span style="font-weight: bold; font-family: trebuchet ms;"&gt;I JUST DO NOT KNOW ! &lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;I had uploaded my recent game PIRATE SLOT MACHINE 1.1 on google codes with links on Pygame page ! ...... and voila I now have a softpedia advertisement ! ..... seems open source goes places .... all across the web!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://linux.softpedia.com/developer/Arkapravo-Bhaumik-30502.html"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 160px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/Snq35IjYsDI/AAAAAAAAAu0/Rqi3Cg2yEm0/s400/1.JPG" alt="" id="BLOGGER_PHOTO_ID_5366804098141696050" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;Pic1. How did it happen ??&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://linux.softpedia.com/get/GAMES-ENTERTAINMENT/Arcade/PIRATE-SLOT-MACHINE-49785.shtml"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 224px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/SnsVLIjwlyI/AAAAAAAAAu8/npubs_b0hms/s400/333.JPG" alt="" id="BLOGGER_PHOTO_ID_5366906661962290978" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;Fig2. It keeps getting weirder ! &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;REFERENCE&lt;br /&gt;&lt;/span&gt;(1) &lt;a href="http://linux.softpedia.com/developer/Arkapravo-Bhaumik-30502.html"&gt;Softpedia page 1 !&lt;/a&gt;&lt;br /&gt;(2) &lt;a href="http://linux.softpedia.com/get/GAMES-ENTERTAINMENT/Arcade/PIRATE-SLOT-MACHINE-49785.shtml"&gt;Softpedia page 2 ! &lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-2437177840596470574?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/2437177840596470574/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=2437177840596470574' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/2437177840596470574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/2437177840596470574'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/08/how-did-i-get-softpedia-page.html' title='HOW DID I GET A SOFTPEDIA PAGE ???'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_3G-IObbUjlA/Snq35IjYsDI/AAAAAAAAAu0/Rqi3Cg2yEm0/s72-c/1.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-29920788427713323</id><published>2009-07-31T04:23:00.023+05:30</published><updated>2011-08-08T21:59:40.274+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>PIRATE SLOT-MACHINE</title><content type='html'>&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="font-weight: bold;"&gt;PIRATE SLOT-MACHINE&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Another game of chance with Pygame ! with a piratey touch to it ! The tokens used in the slot machine are (1) The Jolly Roger (2) Pirate mate (3) Anchor (4) Treasure-map and (5) Gun.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5 Tokens , 3 slots ! ......&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/SnN0hti5KwI/AAAAAAAAAuM/VTtRasSaP5I/s1600-h/untitled.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 307px; height: 90px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/SnN0hti5KwI/AAAAAAAAAuM/VTtRasSaP5I/s400/untitled.JPG" alt="" id="BLOGGER_PHOTO_ID_5364759703638846210" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;Fig1. Randomisation is achieved with 3 variables&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;May be the best game of chance I have made , the obvious thread can be traced to Pygame Dice and Pygame Toss discussed here earlier.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3G-IObbUjlA/SnIlwJOJDvI/AAAAAAAAAtc/JrYFAeeRNWg/s1600-h/pirate1.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 311px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/SnIlwJOJDvI/AAAAAAAAAtc/JrYFAeeRNWg/s400/pirate1.JPG" alt="" id="BLOGGER_PHOTO_ID_5364391615190863602" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;Fig2. Start-up screen&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/SnIlwDfj8NI/AAAAAAAAAtk/WlvVJJHWis8/s1600-h/pirate2.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 314px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/SnIlwDfj8NI/AAAAAAAAAtk/WlvVJJHWis8/s400/pirate2.JPG" alt="" id="BLOGGER_PHOTO_ID_5364391613653315794" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;Fig3.User-Input Screen&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/SnIlwRxXO9I/AAAAAAAAAts/25qjJrD-Oaw/s1600-h/pirate3.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 314px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/SnIlwRxXO9I/AAAAAAAAAts/25qjJrD-Oaw/s400/pirate3.JPG" alt="" id="BLOGGER_PHOTO_ID_5364391617486076882" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;Fig4. 'Loser' Getting all 3 different tokens&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/SnIlwaPGzPI/AAAAAAAAAt0/povF5HWBE_k/s1600-h/PIRATE4.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 314px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/SnIlwaPGzPI/AAAAAAAAAt0/povF5HWBE_k/s400/PIRATE4.JPG" alt="" id="BLOGGER_PHOTO_ID_5364391619758312690" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;Fig5. 'Good Job' Getting at least '2' similar tokens&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3G-IObbUjlA/SnIlwpb733I/AAAAAAAAAt8/Wi7J2I1a0xI/s1600-h/PIRATE5.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 313px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/SnIlwpb733I/AAAAAAAAAt8/Wi7J2I1a0xI/s400/PIRATE5.JPG" alt="" id="BLOGGER_PHOTO_ID_5364391623838654322" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;Fig6. 'Winner' Getting all '3' &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-3b76863112df5b0f" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="http://www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://v5.nonxt6.googlevideo.com/videoplayback?id%3D3b76863112df5b0f%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331302614%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D559FE3B5E713125A2BF95419028E34F9D0791C32.4582758AE0B3A3B098EB47C4220DD18003724D04%26key%3Dck1&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D3b76863112df5b0f%26offsetms%3D5000%26itag%3Dw160%26sigh%3DDSeuZ5CsXlhEHZw4b2nhagTLWpw&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="http://www.youtube.com/get_player" type="application/x-shockwave-flash"width="320" height="266" bgcolor="#FFFFFF"flashvars="flvurl=http://v5.nonxt6.googlevideo.com/videoplayback?id%3D3b76863112df5b0f%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331302614%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D559FE3B5E713125A2BF95419028E34F9D0791C32.4582758AE0B3A3B098EB47C4220DD18003724D04%26key%3Dck1&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D3b76863112df5b0f%26offsetms%3D5000%26itag%3Dw160%26sigh%3DDSeuZ5CsXlhEHZw4b2nhagTLWpw&amp;autoplay=0&amp;ps=blogger"allowFullScreen="true" /&gt;&lt;/object&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;Video1. Pirate slot-machine&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.pygame.org/news.html"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 126px; height: 50px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/So2GUn1Qr1I/AAAAAAAAAv0/z2TxIV-vT3Q/s400/pygame_logo.png" alt="" id="BLOGGER_PHOTO_ID_5372097619370749778" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div  style="text-align: left; font-weight: bold;font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;br /&gt;REFERENCES&lt;br /&gt;&lt;span style="font-weight: normal;"&gt;(1)&lt;/span&gt; &lt;a href="http://www.pygame.org/project/1243/?release_id=2159"&gt;&lt;span style="font-weight: normal;"&gt;Pygame Project 1243&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: normal;"&gt;(2)&lt;/span&gt; &lt;a href="http://code.google.com/p/pirate-slot-machine/downloads/list"&gt;&lt;span style="font-weight: normal;font-family:trebuchet ms;" &gt;Source code&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-29920788427713323?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=3b76863112df5b0f&amp;type=video%2Fmp4' length='0'/><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/29920788427713323/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=29920788427713323' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/29920788427713323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/29920788427713323'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/07/pirate-slot-machine.html' title='PIRATE SLOT-MACHINE'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_3G-IObbUjlA/SnN0hti5KwI/AAAAAAAAAuM/VTtRasSaP5I/s72-c/untitled.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-4623405053780868639</id><published>2009-07-19T18:56:00.016+05:30</published><updated>2011-08-08T21:59:40.274+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>PYGAME DICE</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;PYGAME DICE&lt;/span&gt;&lt;br /&gt;&lt;div style="font-family: trebuchet ms; text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Extending the idea of tossing a coin to the throw of a pair of dice. The throw  doesn't have equal probable events , ie: Probability of getting a cumulative sum of 10 is not the same of getting a cumulative sum of 7.&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;The probabilities of rolling a cumulative sum of 'n' is maximum for rolling a 7 (16.67% , lucky seven) while it is the lowest for rolling a 2 or 12 (2.78%).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;To allow the user to have the 12 choices (2-12 and Quit)  two variables are used as posx and posy &lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt; (single variable pos used in the toss of a coin), &lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;to make a grid.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/SnIkMRRd47I/AAAAAAAAAtU/t-QXA_-ybfI/s1600-h/untitled.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 317px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/SnIkMRRd47I/AAAAAAAAAtU/t-QXA_-ybfI/s400/untitled.JPG" alt="" id="BLOGGER_PHOTO_ID_5364389899365376946" border="0" /&gt;&lt;/a&gt;&lt;span style=";font-family:times new roman;font-size:85%;"  &gt;Fig1. The start up screen&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/SmMbkDfNvXI/AAAAAAAAAsk/XuSB04gkxMA/s1600-h/2.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 318px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/SmMbkDfNvXI/AAAAAAAAAsk/XuSB04gkxMA/s400/2.JPG" alt="" id="BLOGGER_PHOTO_ID_5360158287726493042" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;&lt;span style="font-family:times new roman;"&gt;Fig2. The user interface&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/SmMbkFFRo-I/AAAAAAAAAss/3HJsO6E43B4/s1600-h/3.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 318px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/SmMbkFFRo-I/AAAAAAAAAss/3HJsO6E43B4/s400/3.JPG" alt="" id="BLOGGER_PHOTO_ID_5360158288154567650" border="0" /&gt;&lt;/a&gt;&lt;span style=";font-family:times new roman;font-size:85%;"  &gt;Fig3. The Result screen&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:times new roman;"&gt; (1)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3G-IObbUjlA/SmMbke_XSuI/AAAAAAAAAs0/S63rQHrh9S0/s1600-h/4.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 318px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/SmMbke_XSuI/AAAAAAAAAs0/S63rQHrh9S0/s400/4.JPG" alt="" id="BLOGGER_PHOTO_ID_5360158295109094114" border="0" /&gt;&lt;/a&gt;&lt;span style=";font-family:times new roman;font-size:85%;"  &gt;Fig 4. The Result screen (2)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;The coding gets lengthy due to the 36 possible outcomes of the event. The lines of codes tally to nearly 1450 across 2 python files.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;It is worth noting that throw of a single die is an equal-probable event with all events bearing a 16.67% probability thus programming such an interface would be lot easier and just matter to add on to the toss of a coin code. &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-d1f8a6517a2b2628" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="http://www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://v15.nonxt7.googlevideo.com/videoplayback?id%3Dd1f8a6517a2b2628%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331302614%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D305E7612550D101C14E9BF77D40805361EE7ADD1.707C339C0C57468F37884B8FFA5ED603E8AE5B4A%26key%3Dck1&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3Dd1f8a6517a2b2628%26offsetms%3D5000%26itag%3Dw160%26sigh%3DuV56kHivEtHtVesqk1_iPLSFlSE&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="http://www.youtube.com/get_player" type="application/x-shockwave-flash"width="320" height="266" bgcolor="#FFFFFF"flashvars="flvurl=http://v15.nonxt7.googlevideo.com/videoplayback?id%3Dd1f8a6517a2b2628%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331302614%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D305E7612550D101C14E9BF77D40805361EE7ADD1.707C339C0C57468F37884B8FFA5ED603E8AE5B4A%26key%3Dck1&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3Dd1f8a6517a2b2628%26offsetms%3D5000%26itag%3Dw160%26sigh%3DuV56kHivEtHtVesqk1_iPLSFlSE&amp;autoplay=0&amp;ps=blogger"allowFullScreen="true" /&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;&lt;span style="font-family:times new roman;"&gt;Video 1. Pyagame Dice&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://mac.softpedia.com/progClean/Pygame-Dice-Clean-64121.html"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 170px; height: 116px;" src="http://mac.softpedia.com/base_img/softpedia_free_award_f.gif" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.pygame.org/news.html"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 126px; height: 50px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/So2Gz1A7iUI/AAAAAAAAAv8/PWi0z5YY35g/s400/pygame_logo.png" alt="" id="BLOGGER_PHOTO_ID_5372098155485301058" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;REFERENCES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(1) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://www.pygame.org/project/1287/?release_id=2246"&gt;Pygame project 1287&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(2) &lt;a href="http://mac.softpedia.com/progClean/Pygame-Dice-Clean-64121.html"&gt;Softpedia Award &lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.pygame.org/news.html"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-4623405053780868639?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=d1f8a6517a2b2628&amp;type=video%2Fmp4' length='0'/><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/4623405053780868639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=4623405053780868639' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/4623405053780868639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/4623405053780868639'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/07/2-dices.html' title='PYGAME DICE'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_3G-IObbUjlA/SnIkMRRd47I/AAAAAAAAAtU/t-QXA_-ybfI/s72-c/untitled.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-5565137683298855597</id><published>2009-07-18T15:00:00.004+05:30</published><updated>2010-03-04T16:02:04.195+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>MY TRYST WITH DJANGO - Part 1</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;THE BEGINNING &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Something very conspicuous about software and programming languages are that they are named in rather peculiar manner. Sometimes it is a play of words as &lt;a href="http://en.wikipedia.org/wiki/Wine_%28software%29"&gt;WINE&lt;/a&gt; (Wine Is Not an Emulator) and &lt;a href="http://en.wikipedia.org/wiki/Microsoft_XNA"&gt;XNA&lt;/a&gt; (XNA is Not Acronymed)  to those named after some scientist or mathematician as &lt;a href="http://en.wikipedia.org/wiki/Ada_%28programming_language%29"&gt;Ada&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Turing_%28programming_language%29"&gt;Turing&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Pascal_%28programming_language%29"&gt;Pascal&lt;/a&gt; etc , then there are also those named after some entertainment/cartoon character as  &lt;a href="http://en.wikipedia.org/wiki/Linda_%28coordination_language%29"&gt;Linda &lt;/a&gt;(allegedly named after porn star Linda Lovelace) , &lt;a href="http://www.python.org/"&gt;Python&lt;/a&gt; (named after the comedy group &lt;a href="http://en.wikipedia.org/wiki/Monty_python"&gt;Monty Python&lt;/a&gt;) and &lt;a href="http://www.djangoproject.com/"&gt;Django&lt;/a&gt; (named after jazz guitarist &lt;a href="http://en.wikipedia.org/wiki/Django_Reinhart"&gt;Django Reinhart&lt;/a&gt;).&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/Sl-vpRPBDHI/AAAAAAAAAqk/10TBd4dH8Q4/s1600-h/mp.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 294px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/Sl-vpRPBDHI/AAAAAAAAAqk/10TBd4dH8Q4/s400/mp.jpg" alt="" id="BLOGGER_PHOTO_ID_5359195205130062962" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;Fig1. The British comedy group Monty PYTHON&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/Sl-wbH5JboI/AAAAAAAAAq0/If6cWYms7Zc/s1600-h/django_reinhardt.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 268px; height: 279px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/Sl-wbH5JboI/AAAAAAAAAq0/If6cWYms7Zc/s400/django_reinhardt.jpg" alt="" id="BLOGGER_PHOTO_ID_5359196061615877762" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;Fig2. Jazz Guitarist  DJANGO Reinhardt&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;DJANGO 1.0 &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;An open source web development tool , developed in 2005 for maintaining news websites for The World Company , Lawrence , Kansas.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt; Versions 1.0 &lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;and higher&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt; , released in early 2009  has been lot different than the previous version of 0.96. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Just to check everything is in order ..... check the django version and django-admin must be on the path !&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/Sl-zgFlVzHI/AAAAAAAAArM/lLMXA8zQVrA/s1600-h/14.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 242px; height: 56px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/Sl-zgFlVzHI/AAAAAAAAArM/lLMXA8zQVrA/s400/14.JPG" alt="" id="BLOGGER_PHOTO_ID_5359199445430160498" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;Fig3.  DJANGO version in python shell&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/Sl-yLj-lFmI/AAAAAAAAAq8/DOC9jVTLN-0/s1600-h/13.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 326px; height: 117px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/Sl-yLj-lFmI/AAAAAAAAAq8/DOC9jVTLN-0/s400/13.JPG" alt="" id="BLOGGER_PHOTO_ID_5359197993300203106" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;Fig4.'django-admin.py' must in the path&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="font-weight: bold;"&gt;'IT WORKED !'&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;After the efforts , it is soothing to see the pastel blue 'IT WORKED'&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/Sl-1BczSUKI/AAAAAAAAArU/6U1M7nUTJqk/s1600-h/1.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 130px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/Sl-1BczSUKI/AAAAAAAAArU/6U1M7nUTJqk/s400/1.JPG" alt="" id="BLOGGER_PHOTO_ID_5359201118109978786" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;Fig5.First Django page&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;HELLO WORLD&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Hello World and time is made modifying the views and urls file.&lt;br /&gt;&lt;/div&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3G-IObbUjlA/Sl-1B_45-qI/AAAAAAAAArc/K7OX0n_MLD8/s1600-h/2.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 136px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/Sl-1B_45-qI/AAAAAAAAArc/K7OX0n_MLD8/s400/2.JPG" alt="" id="BLOGGER_PHOTO_ID_5359201127528790690" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;Fig6. &lt;span style="font-family:trebuchet ms;"&gt;'Hello World'&lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/Sl-1CJolTEI/AAAAAAAAArk/93z94IWzw_U/s1600-h/3.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 159px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/Sl-1CJolTEI/AAAAAAAAArk/93z94IWzw_U/s400/3.JPG" alt="" id="BLOGGER_PHOTO_ID_5359201130144681026" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;Fig7.Time in Django , refreshing the screen updates the recent time&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/Sl-1CNnLTXI/AAAAAAAAArs/v69IV4MDE20/s1600-h/4.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 92px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/Sl-1CNnLTXI/AAAAAAAAArs/v69IV4MDE20/s400/4.JPG" alt="" id="BLOGGER_PHOTO_ID_5359201131212524914" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;Fig8.'Hello World' and 'Time'&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/SmGRp-vCCeI/AAAAAAAAAr8/CmVkfX2P1zo/s1600-h/5.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 125px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/SmGRp-vCCeI/AAAAAAAAAr8/CmVkfX2P1zo/s400/5.JPG" alt="" id="BLOGGER_PHOTO_ID_5359725181948529122" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;Fig9.Error 404 , the http://127.0.0.1:8000/ is no special page&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;REFERENCES&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;2 references used by me are ,&lt;br /&gt;&lt;br /&gt;(1) The Definitive Guide to Django , 2nd Edition&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.apress.com/book/view/9781430219361"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 122px; height: 162px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/SmGTy3KtTNI/AAAAAAAAAsM/0oV5qUxiB2I/s400/2.JPG" alt="" id="BLOGGER_PHOTO_ID_5359727533559205074" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;(2) Django 1.0 WebSite Development&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.packtpub.com/django-1-0-website-development-2nd-edition/book"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 196px; height: 242px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/SmGTynz_f6I/AAAAAAAAAsE/U7F063AcdCg/s400/1.JPG" alt="" id="BLOGGER_PHOTO_ID_5359727529437396898" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="text-decoration: underline;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-5565137683298855597?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/5565137683298855597/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=5565137683298855597' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/5565137683298855597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/5565137683298855597'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/07/my-tryst-with-django-part-1.html' title='MY TRYST WITH DJANGO - Part 1'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_3G-IObbUjlA/Sl-vpRPBDHI/AAAAAAAAAqk/10TBd4dH8Q4/s72-c/mp.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-2250164704438763552</id><published>2009-06-25T03:54:00.028+05:30</published><updated>2011-08-08T21:59:40.274+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><category scheme='http://www.blogger.com/atom/ns#' term='Hello World'/><title type='text'>STARTING WITH GAMEMAKER 7.0</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;GAMEMAKER 7.0&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;  &lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;div style="text-align: justify;"&gt;&lt;div style="text-align: center;"&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;I got inspired to try out &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://www.yoyogames.com/make"&gt;GAMEMAKER 7.0&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt; after skirting through the wonderful book by Jacob Habgood and Mark Overmars. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/SkauQA-AWaI/AAAAAAAAApk/wrsV4cwFBL4/s1600-h/untitled.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 304px; height: 400px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/SkauQA-AWaI/AAAAAAAAApk/wrsV4cwFBL4/s400/untitled.JPG" alt="" id="BLOGGER_PHOTO_ID_5352156797337622946" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:times new roman;"&gt;Fig 1 . The Game Maker's Apprentice&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:times new roman;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=";font-family:trebuchet ms;font-size:85%;"  &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family:trebuchet ms;"&gt;GAMEMAKER reduced the 'coding' aspects and allows creation of games using GUI. Excellent software ! in some beginnner's pursuit I was able to create  game snippets similar to PAC-MAN and SUPER-MARIO.&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;  &lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;The software is also supported by &lt;a href="http://en.wikipedia.org/wiki/Game_Maker_Language"&gt;GAME MAKER LANGUAGE&lt;/a&gt; (GML) which is similar to Java/C++.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3G-IObbUjlA/SkbQHUf86RI/AAAAAAAAAp8/FspAOi3zw54/s1600-h/1.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 317px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/SkbQHUf86RI/AAAAAAAAAp8/FspAOi3zw54/s400/1.JPG" alt="" id="BLOGGER_PHOTO_ID_5352194031356799250" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:times new roman;"&gt;Fig 2. Game snippet similar to SUPER-MARIO. The 'mushrooms' add life and energy whilst the 'snakes' reduces it.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-106828d08ae61518" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="http://www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://v16.nonxt5.googlevideo.com/videoplayback?id%3D106828d08ae61518%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331302614%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D12D7C0B977076A3BAB39970414D85B20F4A1E487.386513481E6819C0D5FC596F9E8976C2EBA13DCB%26key%3Dck1&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D106828d08ae61518%26offsetms%3D5000%26itag%3Dw160%26sigh%3D0yxS65PGF7HchxghQBJOYWRPYSw&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="http://www.youtube.com/get_player" type="application/x-shockwave-flash"width="320" height="266" bgcolor="#FFFFFF"flashvars="flvurl=http://v16.nonxt5.googlevideo.com/videoplayback?id%3D106828d08ae61518%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331302614%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D12D7C0B977076A3BAB39970414D85B20F4A1E487.386513481E6819C0D5FC596F9E8976C2EBA13DCB%26key%3Dck1&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D106828d08ae61518%26offsetms%3D5000%26itag%3Dw160%26sigh%3D0yxS65PGF7HchxghQBJOYWRPYSw&amp;autoplay=0&amp;ps=blogger"allowFullScreen="true" /&gt;&lt;/object&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:times new roman;"&gt;Video 1. Game snippet similar to SUPER-MARIO&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/Skj1Qu8MgpI/AAAAAAAAAqE/zLjXd9cccoY/s1600-h/1.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 318px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/Skj1Qu8MgpI/AAAAAAAAAqE/zLjXd9cccoY/s400/1.JPG" alt="" id="BLOGGER_PHOTO_ID_5352797824957055634" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:times new roman;"&gt;Fig 3. GML 'Hello World'&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3G-IObbUjlA/Skj1oQbShCI/AAAAAAAAAqM/o4Wv0z8h2Vo/s1600-h/2.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 104px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/Skj1oQbShCI/AAAAAAAAAqM/o4Wv0z8h2Vo/s400/2.JPG" alt="" id="BLOGGER_PHOTO_ID_5352798229082833954" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:times new roman;"&gt;Fig 4. GML 'Hello World' script &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;REFERENCES&lt;/span&gt; &lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;br /&gt;(1) Jacob,H &amp;amp; Overmars,M '&lt;a href="http://www.amazon.co.uk/Game-Makers-Apprentice-Development-Beginners/dp/1590596153"&gt;The Game Maker's Apprentice&lt;/a&gt;'&lt;/span&gt; &lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;(2) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://www.yoyogames.com/make"&gt;GAMEMAKER SITE&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(3) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://gamemakerblog.com/"&gt;http://gamemakerblog.com/&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(4) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://www.youtube.com/watch?v=_UW4KuIr1Yw"&gt;youtube tutorial&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-2250164704438763552?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=106828d08ae61518&amp;type=video%2Fmp4' length='0'/><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/2250164704438763552/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=2250164704438763552' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/2250164704438763552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/2250164704438763552'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/06/starting-with-gamemaker-70.html' title='STARTING WITH GAMEMAKER 7.0'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_3G-IObbUjlA/SkauQA-AWaI/AAAAAAAAApk/wrsV4cwFBL4/s72-c/untitled.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-7352113147191408142</id><published>2009-06-21T19:17:00.044+05:30</published><updated>2010-03-04T16:06:22.636+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>THE TOSS IS ALWAYS IMPORTANT !</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;MY FIRST INTERACTIVE GAME&lt;/span&gt; :&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt; PYGAME TOSS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;My first interactive user input game ! .... tossing a coin. &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;The user is prompted to choose (HEADS or TAILS) using the up and down keys ,and enter. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3G-IObbUjlA/SlE1gdwdw6I/AAAAAAAAAqc/MJzvPsLiGQo/s1600-h/2.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 323px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/SlE1gdwdw6I/AAAAAAAAAqc/MJzvPsLiGQo/s400/2.JPG" alt="" id="BLOGGER_PHOTO_ID_5355120263780221858" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;Fig1. Start up screen&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;  &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/SlE1fw9sXoI/AAAAAAAAAqU/_55uNnK8RSk/s1600-h/1.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 321px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/SlE1fw9sXoI/AAAAAAAAAqU/_55uNnK8RSk/s400/1.JPG" alt="" id="BLOGGER_PHOTO_ID_5355120251756109442" border="0" /&gt;&lt;/a&gt;&lt;div style="text-align: center;"&gt;&lt;span style=";font-family:times new roman;font-size:85%;"  &gt;Fig2. User input screen&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;An Intermediate screen confirms the choice made by the user.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/Sj5BP9lQNgI/AAAAAAAAApE/HGls3AAEiMA/s1600-h/4.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 321px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/Sj5BP9lQNgI/AAAAAAAAApE/HGls3AAEiMA/s400/4.JPG" alt="" id="BLOGGER_PHOTO_ID_5349785149847385602" border="0" /&gt;&lt;/a&gt;&lt;span style=";font-family:times new roman;font-size:85%;"  &gt;Fig3. Intermediate screen confirming the user of his/her choice&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;The Result of the toss is confirmed by the show of the successful side of the coin and status  (Winner/ Loser) in regards to the user's choice.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style=";font-family:times new roman;font-size:85%;"  &gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/Sj49txBdksI/AAAAAAAAAos/UBnQZc4Db5E/s1600-h/3.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 321px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/Sj49txBdksI/AAAAAAAAAos/UBnQZc4Db5E/s400/3.JPG" alt="" id="BLOGGER_PHOTO_ID_5349781263825605314" border="0" /&gt;&lt;/a&gt;&lt;span style=";font-family:times new roman;font-size:85%;"  &gt;Fig4(i). Result screen&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/Sj49tV1lJSI/AAAAAAAAAok/cjD_FOV745w/s1600-h/2.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 320px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/Sj49tV1lJSI/AAAAAAAAAok/cjD_FOV745w/s400/2.JPG" alt="" id="BLOGGER_PHOTO_ID_5349781256528012578" border="0" /&gt;&lt;/a&gt;&lt;span style=";font-family:times new roman;font-size:85%;"  &gt;Fig3(ii). Result screen&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;THINGS WORTH A CHAT&lt;/span&gt; &lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;br /&gt;(1) The randomisation is realised using the &lt;a href="http://docs.python.org/library/random.html"&gt;random module&lt;/a&gt; across a range (1,2)&lt;/span&gt; &lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/Sj5jo9MxjII/AAAAAAAAApM/6oDh5rJp9_w/s1600-h/untitled.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 260px; height: 40px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/Sj5jo9MxjII/AAAAAAAAApM/6oDh5rJp9_w/s400/untitled.JPG" alt="" id="BLOGGER_PHOTO_ID_5349822962636786818" border="0" /&gt;&lt;/a&gt;&lt;span style=";font-family:times new roman;font-size:85%;"  &gt;Fig5. Randomisation&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-family:trebuchet ms;"&gt;(2) The Disney font is used to give a touch of humour &lt;/span&gt; &lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;(3) The PyGame screen is (512 x 384) suited for a small game !&lt;br /&gt;(4) &lt;a href="http://drpython.sourceforge.net/"&gt;Dr.Python&lt;/a&gt; is WOW ! better than &lt;a href="http://en.wikipedia.org/wiki/Scite"&gt;Scite&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;THINGS NOT WORTH A CHAT&lt;/span&gt; &lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;br /&gt;(1) There should be a 'count' which counts the number of times 'you' win. &lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;(2) I am avoiding all sound effects since they fail with &lt;a href="http://www.py2exe.org/"&gt;py2exe&lt;/a&gt;.&lt;/span&gt;  &lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-af10d03c405db503" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="http://www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://v3.nonxt2.googlevideo.com/videoplayback?id%3Daf10d03c405db503%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331302614%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D3302BFA428C82487FE26754B31CBBE7DAF7B6B32.6F8589B85706657B53428AFE774308B419734642%26key%3Dck1&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3Daf10d03c405db503%26offsetms%3D5000%26itag%3Dw160%26sigh%3Dpb4gH3N4_vro-_x_n7kkmnrVS90&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="http://www.youtube.com/get_player" type="application/x-shockwave-flash"width="320" height="266" bgcolor="#FFFFFF"flashvars="flvurl=http://v3.nonxt2.googlevideo.com/videoplayback?id%3Daf10d03c405db503%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331302614%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D3302BFA428C82487FE26754B31CBBE7DAF7B6B32.6F8589B85706657B53428AFE774308B419734642%26key%3Dck1&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3Daf10d03c405db503%26offsetms%3D5000%26itag%3Dw160%26sigh%3Dpb4gH3N4_vro-_x_n7kkmnrVS90&amp;autoplay=0&amp;ps=blogger"allowFullScreen="true" /&gt;&lt;/object&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style=";font-family:times new roman;font-size:85%;"  &gt;Video 1. PyGame Toss&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;&lt;br /&gt;Such codes can be extended to any more &lt;span style="font-style: italic;"&gt;games of chance&lt;/span&gt; as a  throw of a die, draw of cards etc.&lt;/span&gt; &lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;The user-input setting can be used to make an electronic photo album or an electronic jukebox.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;&lt;br /&gt;REFERENCES&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;(1) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://www.pygame.org/project/875/"&gt;http://www.pygame.org/project/875/&lt;/a&gt; &lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;(2) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://www.amazon.co.uk/Beginning-Game-Development-Python-Pygame/dp/1590598725/ref=sr_1_1?ie=UTF8&amp;amp;s=books&amp;amp;qid=1244082562&amp;amp;sr=8-1"&gt;Mc Gugan,Will ' Beginning Game Development with Python and Pygame'&lt;/a&gt; &lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;(3)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt; &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://pythonbook.coffeeghost.net/"&gt;IYOCGwP&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(4) Source code and images , &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://code.google.com/p/pygame-toss/downloads/list"&gt;http://code.google.com/p/pygame-toss/downloads/list&lt;/a&gt;&lt;br /&gt;(5) &lt;a href="http://www.pygame.org/project/1254/?release_id=2184"&gt;Pygame Official Project 1254&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-7352113147191408142?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=af10d03c405db503&amp;type=video%2Fmp4' length='0'/><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/7352113147191408142/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=7352113147191408142' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/7352113147191408142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/7352113147191408142'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/06/toss-is-always-important.html' title='THE TOSS IS ALWAYS IMPORTANT !'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_3G-IObbUjlA/SlE1gdwdw6I/AAAAAAAAAqc/MJzvPsLiGQo/s72-c/2.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-2466674158965400467</id><published>2009-06-20T20:01:00.015+05:30</published><updated>2010-03-04T16:02:31.393+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>WHAT IS PYGLET ?</title><content type='html'>&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="font-weight: bold;"&gt;WHAT IS IT ?&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;It is a cross-platform , &lt;a href="http://www.opengl.org/"&gt;Open-GL&lt;/a&gt; based software library used for developing games and animations using python.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.pyglet.org/"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 372px; height: 134px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/Sjzz_BB22VI/AAAAAAAAAoU/Ugtox3zEwsU/s400/untitled.JPG" alt="" id="BLOGGER_PHOTO_ID_5349418721342839122" border="0" /&gt;&lt;/a&gt;&lt;span style=";font-family:trebuchet ms;font-size:85%;"  &gt;&lt;span&gt;Image 1. '...snakes.....pigs ....it is an entire zoo out here...'&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;The improvement over PyGame is that it allows animated gif images.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;embed id="VideoPlayback" src="http://video.google.co.uk/googleplayer.swf?docid=-8788197863800411145&amp;amp;hl=en&amp;amp;fs=true" style="width: 400px; height: 326px;" allowfullscreen="true" allowscriptaccess="always" type="application/x-shockwave-flash"&gt;&lt;/embed&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:times new roman;"&gt;Video 1. Create Space Invaders with Pyglet in 40 Minutes&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-81c93a09b32b1e1c" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="http://www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://v7.nonxt6.googlevideo.com/videoplayback?id%3D81c93a09b32b1e1c%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331302614%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D711A2BF0167FADB50DA019B899953D14DE2A4A18.38FEFDAF6F967F5DA28192DD66D08428E5714689%26key%3Dck1&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D81c93a09b32b1e1c%26offsetms%3D5000%26itag%3Dw160%26sigh%3DXUAa-X14qyIZgd13Iq-kmPTtUzE&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="http://www.youtube.com/get_player" type="application/x-shockwave-flash"width="320" height="266" bgcolor="#FFFFFF"flashvars="flvurl=http://v7.nonxt6.googlevideo.com/videoplayback?id%3D81c93a09b32b1e1c%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331302614%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D711A2BF0167FADB50DA019B899953D14DE2A4A18.38FEFDAF6F967F5DA28192DD66D08428E5714689%26key%3Dck1&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D81c93a09b32b1e1c%26offsetms%3D5000%26itag%3Dw160%26sigh%3DXUAa-X14qyIZgd13Iq-kmPTtUzE&amp;autoplay=0&amp;ps=blogger"allowFullScreen="true" /&gt;&lt;/object&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:times new roman;"&gt;Video 2. Animating a gif file &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left; font-weight: bold;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;REFERENCES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: normal;font-family:trebuchet ms;" &gt;(1)&lt;/span&gt;&lt;span style="font-weight: normal;font-family:trebuchet ms;" &gt; &lt;/span&gt;&lt;a style="font-family: trebuchet ms; font-weight: normal;" href="http://en.wikipedia.org/wiki/Pyglet"&gt;Wikipedia page&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: normal;font-family:trebuchet ms;" &gt;(2) Daniweb , &lt;a href="http://www.daniweb.com/code/snippet853.html"&gt;http://www.daniweb.com/code/snippet853.html&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: normal;font-family:trebuchet ms;" &gt;(3) Pyglet website , &lt;a href="http://www.pyglet.org/"&gt;http://www.pyglet.org/&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-2466674158965400467?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=81c93a09b32b1e1c&amp;type=video%2Fmp4' length='0'/><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/2466674158965400467/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=2466674158965400467' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/2466674158965400467'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/2466674158965400467'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/06/what-is-pyglet.html' title='WHAT IS PYGLET ?'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_3G-IObbUjlA/Sjzz_BB22VI/AAAAAAAAAoU/Ugtox3zEwsU/s72-c/untitled.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-8260606931710231354</id><published>2009-06-15T03:35:00.023+05:30</published><updated>2010-03-04T16:02:49.324+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>21 POUNDS</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;21 POUNDS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;A 1 pound coin bouncing randomly with a 20 pound note in the background ! Another PyGame creation ! &lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/SjV00dhL0rI/AAAAAAAAAoE/CWcsa3NOXN4/s1600-h/3.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 239px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/SjV00dhL0rI/AAAAAAAAAoE/CWcsa3NOXN4/s400/3.JPG" alt="" id="BLOGGER_PHOTO_ID_5347308577198166706" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:times new roman;"&gt;Fig 1. 21 Pounds&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/SjV00M5DDoI/AAAAAAAAAn8/czVgSX-G48g/s1600-h/2.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 239px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/SjV00M5DDoI/AAAAAAAAAn8/czVgSX-G48g/s400/2.JPG" alt="" id="BLOGGER_PHOTO_ID_5347308572734852738" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:times new roman;"&gt;Fig 2. 21 Pounds&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3G-IObbUjlA/SjV0zxH30SI/AAAAAAAAAn0/Cg704QbzDSE/s1600-h/1.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 237px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/SjV0zxH30SI/AAAAAAAAAn0/Cg704QbzDSE/s400/1.JPG" alt="" id="BLOGGER_PHOTO_ID_5347308565280837922" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:times new roman;"&gt;Fig 3. 21 Pounds&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;OBSERVATIONS AND THE CODE&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;The code is somewhat different than my earlier PyGame creations. Further, there is a parameter 'e' to slow down the speed of the 1 Pound coin. At e = 0.98 the 1 Pound coin comes to a stop after about 141 seconds , at the upper left corner of the pygame screen.&lt;/span&gt;&lt;span&gt;&lt;span style="font-family:trebuchet ms;"&gt; For e = 1 , the coin never comes to stop while for e &gt; 1 , the motion becomes faster and erroneous and the software rejects it after some time.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-f77e3eccae34ed38" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="http://www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://v13.nonxt8.googlevideo.com/videoplayback?id%3Df77e3eccae34ed38%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331302614%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D3AF684947E9A97166DFF3728637E8CC57BF53ACD.711943BDC0FA11C716DB5B200FA9F4E3571E8616%26key%3Dck1&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3Df77e3eccae34ed38%26offsetms%3D5000%26itag%3Dw160%26sigh%3D0deXi3kPYp774E3qO25Za-RgpVE&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="http://www.youtube.com/get_player" type="application/x-shockwave-flash"width="320" height="266" bgcolor="#FFFFFF"flashvars="flvurl=http://v13.nonxt8.googlevideo.com/videoplayback?id%3Df77e3eccae34ed38%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331302614%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D3AF684947E9A97166DFF3728637E8CC57BF53ACD.711943BDC0FA11C716DB5B200FA9F4E3571E8616%26key%3Dck1&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3Df77e3eccae34ed38%26offsetms%3D5000%26itag%3Dw160%26sigh%3D0deXi3kPYp774E3qO25Za-RgpVE&amp;autoplay=0&amp;ps=blogger"allowFullScreen="true" /&gt;&lt;/object&gt;&lt;br /&gt;&lt;span style="font-family:times new roman;"&gt;&lt;span style="font-size:85%;"&gt;Video 1. 21 Pounds&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="font-family:trebuchet ms;"&gt;The&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="font-family:trebuchet ms;"&gt; PyGame screen is also made to suit to that of the 20 pound note &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="font-family:trebuchet ms;"&gt;(591 x 326)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-family:trebuchet ms;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="font-family:trebuchet ms;"&gt;and not the usual (640 x 480)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3G-IObbUjlA/SjV11FIuWGI/AAAAAAAAAoM/WOdDhrVNjg8/s1600-h/s.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 325px; height: 400px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/SjV11FIuWGI/AAAAAAAAAoM/WOdDhrVNjg8/s400/s.JPG" alt="" id="BLOGGER_PHOTO_ID_5347309687344617570" border="0" /&gt;&lt;/a&gt;&lt;span style=";font-family:times new roman;font-size:85%;"  &gt;Fig 4. 21 Pounds , the code&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;It is also worth noting that random motion is obtained without the use of the &lt;a href="http://docs.python.org/library/random.html"&gt;random module&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;REFERENCES&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(1) Daniweb , &lt;a href="http://www.daniweb.com/code/snippet758.html"&gt;http://www.daniweb.com/code/snippet758.html&lt;/a&gt;&lt;br /&gt;(2) source code and images , &lt;a href="http://code.google.com/p/pygame-21pounds/downloads/list"&gt;http://code.google.com/p/pygame-21pounds/downloads/list&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-8260606931710231354?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=f77e3eccae34ed38&amp;type=video%2Fmp4' length='0'/><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/8260606931710231354/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=8260606931710231354' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/8260606931710231354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/8260606931710231354'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/06/21-pounds.html' title='21 POUNDS'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_3G-IObbUjlA/SjV00dhL0rI/AAAAAAAAAoE/CWcsa3NOXN4/s72-c/3.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-8147940825740442371</id><published>2009-06-05T04:17:00.023+05:30</published><updated>2010-03-04T16:04:11.394+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>MAKING A FIRE !</title><content type='html'>&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="font-weight: bold;"&gt;PYGAME FIRE&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;div style="text-align: justify;"&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;Trying to animate a fire , using python game platform , pygame.  I got the fire &lt;span style="font-style: italic;"&gt;'to life' &lt;/span&gt;by combining together 16 different sketches or &lt;span style="font-style: italic;"&gt;'sprites'&lt;/span&gt;. The primary plume and the wood being the static parts while the other smaller portions of the flame being in repetitive motion.&lt;/span&gt; Black is used as background for best contrast.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/SjEacnc1KfI/AAAAAAAAAnk/uAlsOSVRu8A/s1600-h/2.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 319px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/SjEacnc1KfI/AAAAAAAAAnk/uAlsOSVRu8A/s400/2.JPG" alt="" id="BLOGGER_PHOTO_ID_5346083311594056178" border="0" /&gt;&lt;/a&gt;&lt;span style=";font-family:times new roman;font-size:85%;"  &gt;Fig1.Fire, Screen-Shot 1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/SjEaceZHYwI/AAAAAAAAAnc/v9SuNlrle34/s1600-h/1.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 318px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/SjEaceZHYwI/AAAAAAAAAnc/v9SuNlrle34/s400/1.JPG" alt="" id="BLOGGER_PHOTO_ID_5346083309162554114" border="0" /&gt;&lt;/a&gt;&lt;span style=";font-family:times new roman;font-size:85%;"  &gt;Fig2. Fire , Screen-Shot 2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-family:trebuchet ms;"&gt;Superimposing the main plume with 14 other minor plume allows creating a  seeming movement of the flames  upward.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/SjEac_u4tZI/AAAAAAAAAns/_2tSVqCVSNo/s1600-h/3.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 318px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/SjEac_u4tZI/AAAAAAAAAns/_2tSVqCVSNo/s400/3.JPG" alt="" id="BLOGGER_PHOTO_ID_5346083318112236946" border="0" /&gt;&lt;/a&gt;&lt;span style=";font-family:times new roman;font-size:85%;"  &gt;Fig 3. Without the main plume (14 minor plumes and the wood)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-852c8cf2e58fe73c" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="http://www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://v1.nonxt8.googlevideo.com/videoplayback?id%3D852c8cf2e58fe73c%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331302614%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D82AC5F391191FEC4FD081F69524204221F607535.7F8C7F8AB2C382E843E624EDF0ECDC2D3386DDBF%26key%3Dck1&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D852c8cf2e58fe73c%26offsetms%3D5000%26itag%3Dw160%26sigh%3D2LVjn6A1RC6jdpBs7HYRtstKvro&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="http://www.youtube.com/get_player" type="application/x-shockwave-flash"width="320" height="266" bgcolor="#FFFFFF"flashvars="flvurl=http://v1.nonxt8.googlevideo.com/videoplayback?id%3D852c8cf2e58fe73c%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331302614%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D82AC5F391191FEC4FD081F69524204221F607535.7F8C7F8AB2C382E843E624EDF0ECDC2D3386DDBF%26key%3Dck1&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D852c8cf2e58fe73c%26offsetms%3D5000%26itag%3Dw160%26sigh%3D2LVjn6A1RC6jdpBs7HYRtstKvro&amp;autoplay=0&amp;ps=blogger"allowFullScreen="true" /&gt;&lt;/object&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:times new roman;"&gt;Video 1. PyGame Fire&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;The 'effect' is created by motion of the 14 sprites both in horizontal and vertical axis and the variation of the colour.&lt;/span&gt;  &lt;span style="font-family:trebuchet ms;"&gt;Not often 16 different pieces are sewn together to form an animation in PyGame.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;Some&lt;/span&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt; &lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt;tweaking has to be done with the various parameters in order to &lt;span style="font-style: italic;"&gt;'liven-up'&lt;/span&gt; the fire.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;&lt;br /&gt;REFERENCES&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(1) &lt;/span&gt;Source code and sketches , &lt;a href="http://code.google.com/p/pygame-fire/downloads/list"&gt;http://code.google.com/p/pygame-fire/downloads/list&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style="font-family:trebuchet ms;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-8147940825740442371?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=852c8cf2e58fe73c&amp;type=video%2Fmp4' length='0'/><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/8147940825740442371/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=8147940825740442371' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/8147940825740442371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/8147940825740442371'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/06/making-fire.html' title='MAKING A FIRE !'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_3G-IObbUjlA/SjEacnc1KfI/AAAAAAAAAnk/uAlsOSVRu8A/s72-c/2.JPG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-8504136046084320070</id><published>2009-06-01T03:08:00.025+05:30</published><updated>2010-03-04T16:04:32.636+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Hello World'/><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>CHERRYPY : HELLO WORLD</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;HELLO CHERRY&lt;/span&gt;&lt;br /&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 12"&gt;&lt;meta name="Originator" content="Microsoft Word 12"&gt;&lt;link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Cacer%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"&gt;&lt;link rel="themeData" href="file:///C:%5CDOCUME%7E1%5Cacer%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"&gt;&lt;link rel="colorSchemeMapping" href="file:///C:%5CDOCUME%7E1%5Cacer%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:trackmoves/&gt;   &lt;w:trackformatting/&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:donotpromoteqf/&gt;   &lt;w:lidthemeother&gt;EN-US&lt;/w:LidThemeOther&gt;   &lt;w:lidthemeasian&gt;X-NONE&lt;/w:LidThemeAsian&gt;   &lt;w:lidthemecomplexscript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;    &lt;w:splitpgbreakandparamark/&gt;    &lt;w:dontvertaligncellwithsp/&gt;    &lt;w:dontbreakconstrainedforcedtables/&gt;    &lt;w:dontvertalignintxbx/&gt;    &lt;w:word11kerningpairs/&gt;    &lt;w:cachedcolbalance/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;   &lt;m:mathpr&gt;    &lt;m:mathfont val="Cambria Math"&gt;    &lt;m:brkbin val="before"&gt;    &lt;m:brkbinsub val="&amp;#45;-"&gt;    &lt;m:smallfrac val="off"&gt;    &lt;m:dispdef/&gt;    &lt;m:lmargin val="0"&gt;    &lt;m:rmargin val="0"&gt;    &lt;m:defjc val="centerGroup"&gt;    &lt;m:wrapindent val="1440"&gt;    &lt;m:intlim val="subSup"&gt;    &lt;m:narylim val="undOvr"&gt;   &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"&gt;   &lt;w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"&gt;   &lt;w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 1"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 2"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 3"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 4"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 5"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 6"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 7"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 8"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 9"&gt;   &lt;w:lsdexception locked="false" priority="35" qformat="true" name="caption"&gt;   &lt;w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"&gt;   &lt;w:lsdexception locked="false" priority="1" name="Default Paragraph Font"&gt;   &lt;w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"&gt;   &lt;w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"&gt;   &lt;w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"&gt;   &lt;w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Revision"&gt;   &lt;w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"&gt;   &lt;w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"&gt;   &lt;w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"&gt;   &lt;w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"&gt;   &lt;w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"&gt;   &lt;w:lsdexception locked="false" priority="37" name="Bibliography"&gt;   &lt;w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:"Cambria Math"; 	panose-1:2 4 5 3 5 4 6 3 2 4; 	mso-font-charset:1; 	mso-generic-font-family:roman; 	mso-font-format:other; 	mso-font-pitch:variable; 	mso-font-signature:0 0 0 0 0 0;} @font-face 	{font-family:Calibri; 	panose-1:2 15 5 2 2 2 4 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1073750139 0 0 159 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:""; 	margin-top:0in; 	margin-right:0in; 	margin-bottom:10.0pt; 	margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} .MsoChpDefault 	{mso-style-type:export-only; 	mso-default-props:yes; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} .MsoPapDefault 	{mso-style-type:export-only; 	margin-bottom:10.0pt; 	line-height:115%;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.0in 1.0in 1.0in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Sect&lt;/style&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="line-height: 115%; font-weight: bold;font-family:trebuchet ms;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="line-height: 115%;font-family:trebuchet ms;" &gt;&lt;a style="font-family: trebuchet ms;" href="http://www.cherrypy.org/"&gt;CherryPy&lt;/a&gt;&lt;span style="font-family:trebuchet ms;"&gt; is a python based web-development tool. The traditional &lt;a href="http://en.wikipedia.org/wiki/Hello_World"&gt;'hello world'&lt;/a&gt; is scripted as follows.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/SiMBxJGnnfI/AAAAAAAAAlM/ltMSYbOmKgY/s1600-h/untitled.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 203px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/SiMBxJGnnfI/AAAAAAAAAlM/ltMSYbOmKgY/s400/untitled.bmp" alt="" id="BLOGGER_PHOTO_ID_5342115526760439282" border="0" /&gt;&lt;/a&gt;&lt;span style="font-weight: bold;font-family:times new roman;font-size:85%;"  &gt;Fig 1. 'Hello World' in CherryPy&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="line-height: 115%; font-weight: bold;font-family:trebuchet ms;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;&lt;span style="line-height: 115%;"&gt;After running the program , on opening&lt;/span&gt;&lt;span style="line-height: 115%; font-weight: bold;"&gt; http://localhost:8080/&lt;/span&gt;&lt;/span&gt; &lt;span style="font-size:100%;"&gt;&lt;span style="line-height: 115%; font-weight: bold;font-family:trebuchet ms;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/SiMEdPGPFJI/AAAAAAAAAlU/VtiXmFHeQY8/s1600-h/untitled.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 188px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/SiMEdPGPFJI/AAAAAAAAAlU/VtiXmFHeQY8/s400/untitled.JPG" alt="" id="BLOGGER_PHOTO_ID_5342118483306943634" border="0" /&gt;&lt;/a&gt;&lt;span style="font-weight: bold;font-family:times new roman;font-size:85%;"  &gt;Fig 2. In Firefox &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_3G-IObbUjlA/SiMEddLHYlI/AAAAAAAAAlc/SBeBvCbCLwU/s1600-h/untitled3.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 362px; height: 143px;" src="http://2.bp.blogspot.com/_3G-IObbUjlA/SiMEddLHYlI/AAAAAAAAAlc/SBeBvCbCLwU/s400/untitled3.JPG" alt="" id="BLOGGER_PHOTO_ID_5342118487085507154" border="0" /&gt;&lt;/a&gt;&lt;span style="font-weight: bold;font-family:times new roman;font-size:85%;"  &gt;Fig 3. In Safari &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="line-height: 115%; font-weight: bold;font-family:trebuchet ms;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="line-height: 115%; font-weight: bold;font-family:trebuchet ms;" &gt;REFERENCES&lt;br /&gt;&lt;/span&gt;&lt;span style="line-height: 115%;font-family:trebuchet ms;" &gt;(1) &lt;a href="http://www.cherrypy.org/"&gt;CherryPy Website &lt;/a&gt;&lt;/span&gt;&lt;span style="line-height: 115%; font-weight: bold;font-family:trebuchet ms;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-8504136046084320070?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/8504136046084320070/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=8504136046084320070' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/8504136046084320070'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/8504136046084320070'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/05/cherrypy-hello-world.html' title='CHERRYPY : HELLO WORLD'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_3G-IObbUjlA/SiMBxJGnnfI/AAAAAAAAAlM/ltMSYbOmKgY/s72-c/untitled.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-8305429336440203517</id><published>2009-05-28T00:17:00.057+05:30</published><updated>2010-03-04T16:04:54.758+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>THE TRAIN : MY FIRST VISUAL IN PYGAME</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;THE TRAIN&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;My first visual in &lt;a href="http://en.wikipedia.org/wiki/Pygame"&gt;PyGame&lt;/a&gt; ! THE TRAIN ! .....&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.pygame.org/news.html"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 117px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/SiXW5MI4JEI/AAAAAAAAAlk/sc84RrUFEPk/s400/pygame.JPG" alt="" id="BLOGGER_PHOTO_ID_5342912810944308290" border="0" /&gt;&lt;/a&gt;      &lt;span style=";font-family:times new roman;font-size:85%;"  &gt;Fig 1. PyGame , Game Development in Python&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;One of the first motion pictures was &lt;a href="http://en.wikipedia.org/wiki/L%27Arriv%C3%A9e_d%27un_Train_en_Gare_de_la_Ciotat"&gt;50 second screening of a train&lt;/a&gt;&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt; , I took a leaf out of that. My first visual in PyGame is a train passing through a field with birds flying away in the sky.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;The visual was made using 4 sketches or rather 3 'sprites' , One for the train , One for the setting and 2 for birds in either directions. The sound effects were my efforts to record train sounds from the London Underground and also the Southern Rail , and then painfully converting them to ogg files.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_3G-IObbUjlA/SicpKarO0WI/AAAAAAAAAls/6pbLsTpOxwk/s1600-h/1.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 319px;" src="http://1.bp.blogspot.com/_3G-IObbUjlA/SicpKarO0WI/AAAAAAAAAls/6pbLsTpOxwk/s400/1.JPG" alt="" id="BLOGGER_PHOTO_ID_5343284741834461538" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:times new roman;"&gt;Fig 2. Screen-shot 1&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/SicpKbWFznI/AAAAAAAAAl0/vOd0-wST0mk/s1600-h/2.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 318px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/SicpKbWFznI/AAAAAAAAAl0/vOd0-wST0mk/s400/2.JPG" alt="" id="BLOGGER_PHOTO_ID_5343284742014226034" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:times new roman;"&gt;Fig 3. Screen-shot 2&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;object width="320" height="266" class="BLOG_video_class" id="BLOG_video-3e770ceb4d52f178" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"&gt;&lt;param name="movie" value="http://www.youtube.com/get_player"&gt;&lt;param name="bgcolor" value="#FFFFFF"&gt;&lt;param name="allowfullscreen" value="true"&gt;&lt;param name="flashvars" value="flvurl=http://v6.nonxt5.googlevideo.com/videoplayback?id%3D3e770ceb4d52f178%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331302614%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D3CE651558F472FC7E619BC159BBD044B5E4AED9C.6861C3BC017A75F363AF3C46A1004AFF0EEAD051%26key%3Dck1&amp;amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D3e770ceb4d52f178%26offsetms%3D5000%26itag%3Dw160%26sigh%3DdDNUpPsWjghu3z9AjttExncy4uA&amp;amp;autoplay=0&amp;amp;ps=blogger"&gt;&lt;embed src="http://www.youtube.com/get_player" type="application/x-shockwave-flash"width="320" height="266" bgcolor="#FFFFFF"flashvars="flvurl=http://v6.nonxt5.googlevideo.com/videoplayback?id%3D3e770ceb4d52f178%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1331302614%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D3CE651558F472FC7E619BC159BBD044B5E4AED9C.6861C3BC017A75F363AF3C46A1004AFF0EEAD051%26key%3Dck1&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3D3e770ceb4d52f178%26offsetms%3D5000%26itag%3Dw160%26sigh%3DdDNUpPsWjghu3z9AjttExncy4uA&amp;autoplay=0&amp;ps=blogger"allowFullScreen="true" /&gt;&lt;/object&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:times new roman;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Video 1 .The Train&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div  style="text-align: left;font-family:trebuchet ms;"&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;font-size:100%;"  &gt;&lt;span&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;THE GOOD BITS ! &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;" class="Apple-style-span"  &gt;&lt;span class="Apple-style-span"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;My first efforts yielded some success ! &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;" class="Apple-style-span"  &gt;&lt;span class="Apple-style-span"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;br /&gt;(1) The train moves ! &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;" class="Apple-style-span"  &gt;&lt;span class="Apple-style-span"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;(2) The birds in both the directions gives a more realistic effect !&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;" class="Apple-style-span"  &gt;&lt;span class="Apple-style-span"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;(3) 3 movements incorporated in the same scene ! &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;" class="Apple-style-span"  &gt;&lt;span class="Apple-style-span"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;(4) The sound effect was icing to the cake&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;" class="Apple-style-span"  &gt;&lt;span class="Apple-style-span"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;(5) All of it , from conceptualisation to realisation was mere 4 days !&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;font-size:100%;"  &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;br /&gt;WHAT REMAINS TO BE DONE ! &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;" class="Apple-style-span"  &gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;(1) The train 'glides through' I wish I could make the wheels to go round&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;" class="Apple-style-span"  &gt;&lt;span class="Apple-style-span"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;(2) It is all too sketchy , B/W !&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt; needs some glamour !&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;" class="Apple-style-span"  &gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;(3) The sound is not in sync with the train's movement &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;" class="Apple-style-span"  &gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;(4) Lack of an user input !&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;" class="Apple-style-span"  &gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;(5) All looks a bit kiddish !&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;" class="Apple-style-span"  &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-family:trebuchet ms;font-size:100%;"  &gt;&lt;span class="Apple-style-span"&gt;THE CODE &lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;" class="Apple-style-span"  &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="font-family:trebuchet ms;"&gt;No programming discussion is ever finished without the code !&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;The code is a single python program (train.py) , available in Reference (2) .&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt; &lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;REFERENCES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(1) &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://www.amazon.co.uk/Beginning-Game-Development-Python-Pygame/dp/1590598725/ref=sr_1_1?ie=UTF8&amp;amp;s=books&amp;amp;qid=1244082562&amp;amp;sr=8-1"&gt;Mc Gugan,Will ' Beginning Game Development with Python and Pygame' &lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(2) Source code , sketches and sound can be downloaded from &lt;/span&gt;&lt;a style="font-family: trebuchet ms;" href="http://code.google.com/p/pygame-train/downloads/list"&gt;http://code.google.com/p/pygame-train/downloads/list&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;"&gt;(3) &lt;a href="http://huscorp.nl/2009/08/animate-mario-using-pygame/"&gt;MARIO&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;(4) &lt;a href="http://www.pygame.org/project-The+Train+-1380-2431.html"&gt;Pygame project 1380&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-8305429336440203517?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=3e770ceb4d52f178&amp;type=video%2Fmp4' length='0'/><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/8305429336440203517/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=8305429336440203517' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/8305429336440203517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/8305429336440203517'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/05/train-my-first-visual-in-pygame.html' title='THE TRAIN : MY FIRST VISUAL IN PYGAME'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_3G-IObbUjlA/SiXW5MI4JEI/AAAAAAAAAlk/sc84RrUFEPk/s72-c/pygame.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4917164306143703214.post-4886366422661879816</id><published>2009-05-24T05:01:00.039+05:30</published><updated>2011-08-08T21:58:38.252+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ada'/><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><category scheme='http://www.blogger.com/atom/ns#' term='Hello World'/><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>CONCURRENCY AND WINDOWS DO NOT MARRY !</title><content type='html'>&lt;span style="font-weight: bold;font-family:trebuchet ms;" &gt;THE UNFAITHFUL MARRIAGE ! &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:trebuchet ms;"&gt;WINDOWS does not support multithreading concurrent and real-time structures. What an irony !.The most popular OS does not&lt;/span&gt;&lt;span style="font-family:trebuchet ms;"&gt; allow systems and structures which can control the most breathtaking technologies of the day.  &lt;/span&gt;  &lt;span style="font-family:trebuchet ms;"&gt;Aerospace , trains, nuclear power plants and other state of the art embedded technologies cannot use WINDOWS !&lt;br /&gt;&lt;br /&gt;When I learned about Real-Time and Concurrent Systems ,it was not very acceptable that Microsoft would make such a redundant OS. A bit of dabbling on the internet led me to &lt;/span&gt;&lt;a href="http://support.microsoft.com/kb/22523"&gt;Article Number 22523&lt;/a&gt; in Microsoft knowledge base.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/SiLd6NufEPI/AAAAAAAAAjs/HRtGOJKdFFk/s1600-h/untitled.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 94px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/SiLd6NufEPI/AAAAAAAAAjs/HRtGOJKdFFk/s320/untitled.bmp" alt="" id="BLOGGER_PHOTO_ID_5342076100201615602" border="0" /&gt;&lt;/a&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-family:times new roman;"&gt;&lt;span style="font-size:85%;"&gt;Fig1. Article 22523&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;Which clearly stated that ,&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;"In no sense can Microsoft Windows be considered&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;&lt;span style="font-style: italic; font-weight: bold;"&gt; a "real-time" system. It is a message-driven, event-polling system, with nonpreemptive scheduling".&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Being initiated in Windows and using it for about ten years , did make me stubborn and I tried to look for other alternatives which would&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt; allow to construct real-time structures in Windows.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.cygwin.com/"&gt;Cygwin&lt;/a&gt; came to my rescue ! However on running &lt;a href="http://www.ibm.com/developerworks/linux/library/l-posix1.html"&gt;threads&lt;/a&gt; in &lt;a href="http://en.wikipedia.org/wiki/POSIX"&gt;POSIX&lt;/a&gt;   and tasks in Ada, I realised that it is only a cheap makeover.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;Python and Ada however worked in windows , Ada because it is a concurrent language and platform is not an issue. Python did execute the threads , though on a closer inspection it revealed that Python reduces the concurrent codes to their sequential &lt;span style="font-style: italic;"&gt;evil twin brother&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;A &lt;a href="http://www.prasannatech.net/2008/08/introduction-to-thread-programming.html"&gt;simple code&lt;/a&gt; which which prints out 'Hello World' and the thread number ;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/SiLlAyLX6WI/AAAAAAAAAkU/JjNgrQAUv80/s1600-h/code.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 179px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/SiLlAyLX6WI/AAAAAAAAAkU/JjNgrQAUv80/s400/code.bmp" alt="" id="BLOGGER_PHOTO_ID_5342083909647067490" border="0" /&gt;&lt;/a&gt; &lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold;font-family:times new roman;" &gt;Fig 2. The threading code&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;gives &lt;span style="font-weight: bold;"&gt;slightly different&lt;/span&gt; results with different OS. When run on Ubuntu Linux ,&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_3G-IObbUjlA/SiLmouXQRuI/AAAAAAAAAks/o26eY7IAHEU/s1600-h/threadubuntu.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 312px;" src="http://3.bp.blogspot.com/_3G-IObbUjlA/SiLmouXQRuI/AAAAAAAAAks/o26eY7IAHEU/s400/threadubuntu.png" alt="" id="BLOGGER_PHOTO_ID_5342085695329552098" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-family:times new roman;"&gt;Fig 3. Execution in Ubuntu &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style=";font-family:trebuchet ms;font-size:100%;"  &gt;The order of execution of the threads is 3,4,1,5,2 then 1,2,3,4,5 and then 5,4,3,2,1. Thus the order of execution is non-deterministic , typical of real-time systems.&lt;br /&gt;&lt;br /&gt;However on Windows ,&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3G-IObbUjlA/SiLntf-WbbI/AAAAAAAAAk0/nv96lpfTlVI/s1600-h/threadwin.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 300px; height: 313px;" src="http://4.bp.blogspot.com/_3G-IObbUjlA/SiLntf-WbbI/AAAAAAAAAk0/nv96lpfTlVI/s320/threadwin.PNG" alt="" id="BLOGGER_PHOTO_ID_5342086876877974962" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-family:times new roman;"&gt;Fig 4. Execution in Windows, &lt;span style="font-style: italic;"&gt;'evil twin brother'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family: trebuchet ms;"&gt;the order of execution is deterministic , as seen above.  Thus windows prevents the real-time characteristics of non-determinism and reduces it to sequential processes.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: trebuchet ms;"&gt;Linux confirms the standard characteristics of concurrency as nondeterminism and preemption , hence a joy for all concurrent programmers. Seems Bill Gates got it wrong this time !&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;meta equiv="Content-Type" content="text/html; charset=utf-8"&gt;&lt;meta name="ProgId" content="Word.Document"&gt;&lt;meta name="Generator" content="Microsoft Word 12"&gt;&lt;meta name="Originator" content="Microsoft Word 12"&gt;&lt;link style="font-family: trebuchet ms;" rel="File-List" href="file:///C:%5CDOCUME%7E1%5Cacer%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"&gt;&lt;link style="font-family: trebuchet ms;" rel="themeData" href="file:///C:%5CDOCUME%7E1%5Cacer%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"&gt;&lt;link style="font-family: trebuchet ms;" rel="colorSchemeMapping" href="file:///C:%5CDOCUME%7E1%5Cacer%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:worddocument&gt;   &lt;w:view&gt;Normal&lt;/w:View&gt;   &lt;w:zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:trackmoves/&gt;   &lt;w:trackformatting/&gt;   &lt;w:punctuationkerning/&gt;   &lt;w:validateagainstschemas/&gt;   &lt;w:saveifxmlinvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:ignoremixedcontent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:alwaysshowplaceholdertext&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:donotpromoteqf/&gt;   &lt;w:lidthemeother&gt;EN-US&lt;/w:LidThemeOther&gt;   &lt;w:lidthemeasian&gt;X-NONE&lt;/w:LidThemeAsian&gt;   &lt;w:lidthemecomplexscript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;   &lt;w:compatibility&gt;    &lt;w:breakwrappedtables/&gt;    &lt;w:snaptogridincell/&gt;    &lt;w:wraptextwithpunct/&gt;    &lt;w:useasianbreakrules/&gt;    &lt;w:dontgrowautofit/&gt;    &lt;w:splitpgbreakandparamark/&gt;    &lt;w:dontvertaligncellwithsp/&gt;    &lt;w:dontbreakconstrainedforcedtables/&gt;    &lt;w:dontvertalignintxbx/&gt;    &lt;w:word11kerningpairs/&gt;    &lt;w:cachedcolbalance/&gt;   &lt;/w:Compatibility&gt;   &lt;w:browserlevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;   &lt;m:mathpr&gt;    &lt;m:mathfont val="Cambria Math"&gt;    &lt;m:brkbin val="before"&gt;    &lt;m:brkbinsub val="&amp;#45;-"&gt;    &lt;m:smallfrac val="off"&gt;    &lt;m:dispdef/&gt;    &lt;m:lmargin val="0"&gt;    &lt;m:rmargin val="0"&gt;    &lt;m:defjc val="centerGroup"&gt;    &lt;m:wrapindent val="1440"&gt;    &lt;m:intlim val="subSup"&gt;    &lt;m:narylim val="undOvr"&gt;   &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"&gt;   &lt;w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"&gt;   &lt;w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"&gt;   &lt;w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 1"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 2"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 3"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 4"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 5"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 6"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 7"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 8"&gt;   &lt;w:lsdexception locked="false" priority="39" name="toc 9"&gt;   &lt;w:lsdexception locked="false" priority="35" qformat="true" name="caption"&gt;   &lt;w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"&gt;   &lt;w:lsdexception locked="false" priority="1" name="Default Paragraph Font"&gt;   &lt;w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"&gt;   &lt;w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"&gt;   &lt;w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"&gt;   &lt;w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" unhidewhenused="false" name="Revision"&gt;   &lt;w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"&gt;   &lt;w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"&gt;   &lt;w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"&gt;   &lt;w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"&gt;   &lt;w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"&gt;   &lt;w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"&gt;   &lt;w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"&gt;   &lt;w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"&gt;   &lt;w:lsdexception locked="false" priority="37" name="Bibliography"&gt;   &lt;w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt; &lt;!--  /* Font Definitions */  @font-face 	{font-family:"Cambria Math"; 	panose-1:2 4 5 3 5 4 6 3 2 4; 	mso-font-charset:1; 	mso-generic-font-family:roman; 	mso-font-format:other; 	mso-font-pitch:variable; 	mso-font-signature:0 0 0 0 0 0;} @font-face 	{font-family:Calibri; 	panose-1:2 15 5 2 2 2 4 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1073750139 0 0 159 0;} @font-face 	{font-family:Consolas; 	panose-1:2 11 6 9 2 2 4 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:modern; 	mso-font-pitch:fixed; 	mso-font-signature:-1610611985 1073750091 0 0 159 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:""; 	margin-top:0in; 	margin-right:0in; 	margin-bottom:10.0pt; 	margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} p.MsoPlainText, li.MsoPlainText, div.MsoPlainText 	{mso-style-priority:99; 	mso-style-link:"Plain Text Char"; 	margin:0in; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.5pt; 	font-family:Consolas; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} span.PlainTextChar 	{mso-style-name:"Plain Text Char"; 	mso-style-priority:99; 	mso-style-unhide:no; 	mso-style-locked:yes; 	mso-style-link:"Plain Text"; 	mso-ansi-font-size:10.5pt; 	mso-bidi-font-size:10.5pt; 	font-family:Consolas; 	mso-ascii-font-family:Consolas; 	mso-hansi-font-family:Consolas;} .MsoChpDefault 	{mso-style-type:export-only; 	mso-default-props:yes; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} .MsoPapDefault 	{mso-style-type:export-only; 	margin-bottom:10.0pt; 	line-height:115%;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.0in 1.0in 1.0in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt; &lt;/style&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt;  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin-top:0in; 	mso-para-margin-right:0in; 	mso-para-margin-bottom:10.0pt; 	mso-para-margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:"Times New Roman"; 	mso-fareast-theme-font:minor-fareast; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin;} &lt;/style&gt; &lt;![endif]--&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4917164306143703214-4886366422661879816?l=3chevrons.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://3chevrons.blogspot.com/feeds/4886366422661879816/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4917164306143703214&amp;postID=4886366422661879816' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/4886366422661879816'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4917164306143703214/posts/default/4886366422661879816'/><link rel='alternate' type='text/html' href='http://3chevrons.blogspot.com/2009/05/concurrency-and-windows-do-not-marry.html' title='CONCURRENCY AND WINDOWS DO NOT MARRY !'/><author><name>Arkapravo Bhaumik</name><uri>http://www.blogger.com/profile/12257489973579585325</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_3G-IObbUjlA/SUMamOCecRI/AAAAAAAAAh4/-NKW_nerY6s/S220/123.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_3G-IObbUjlA/SiLd6NufEPI/AAAAAAAAAjs/HRtGOJKdFFk/s72-c/untitled.bmp' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
