<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>TechYoYo &#187; Programming</title>
	<atom:link href="http://techyoyo.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://techyoyo.com</link>
	<description>Tech for the Cool</description>
	<lastBuildDate>Wed, 18 Jan 2012 13:32:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>This is What a Tweet Looks Like</title>
		<link>http://techyoyo.com/2010/04/this-is-what-a-tweet-looks-like/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=this-is-what-a-tweet-looks-like</link>
		<comments>http://techyoyo.com/2010/04/this-is-what-a-tweet-looks-like/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 13:59:54 +0000</pubDate>
		<dc:creator>arun kamath</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://techyoyo.com/?p=290</guid>
		<description><![CDATA[If you think that a tweet is just 140 characters of text? Think again. The developers building tools on top of the Twitter platform know that tweets contain far more information than just whatever brief status update, or something interesting that you felt the urge to share with your friends via the microblogging network. map-of-a-tweet]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftechyoyo.com%2F2010%2F04%2Fthis-is-what-a-tweet-looks-like%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftechyoyo.com%2F2010%2F04%2Fthis-is-what-a-tweet-looks-like%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>If you think that a tweet is just 140 characters of text? Think again. The developers  building tools on top of the Twitter platform know that tweets contain  far more information than just whatever brief status update, or something interesting that you felt the urge to share with your friends via the microblogging network.</p>
<p><a title="View map-of-a-tweet on Scribd" href="http://www.scribd.com/doc/30146338/map-of-a-tweet" style="margin: 12px auto 6px auto; font-family: Helvetica,Arial,Sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; display: block; text-decoration: underline;">map-of-a-tweet</a> <object id="doc_347533305343211" name="doc_347533305343211" height="600" width="100%" type="application/x-shockwave-flash" data="http://d1.scribdassets.com/ScribdViewer.swf" style="outline:none;" ><param name="movie" value="http://d1.scribdassets.com/ScribdViewer.swf"><param name="wmode" value="opaque"><param name="bgcolor" value="#ffffff"><param name="allowFullScreen" value="true"><param name="allowScriptAccess" value="always"><param name="FlashVars" value="document_id=30146338&#038;access_key=key-lguum5i7q1ev9xmpakv&#038;page=1&#038;viewMode=list"><embed id="doc_347533305343211" name="doc_347533305343211" src="http://d1.scribdassets.com/ScribdViewer.swf?document_id=30146338&#038;access_key=key-lguum5i7q1ev9xmpakv&#038;page=1&#038;viewMode=list" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" height="600" width="100%" wmode="opaque" bgcolor="#ffffff"></embed></object></p>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009071621213/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009071621213/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009071621213', 'http%3A%2F%2Ftechyoyo.com%2F2010%2F04%2Fthis-is-what-a-tweet-looks-like%2F', 'This+is+What+a+Tweet+Looks+Like')" onclick="STTAFFUNC.cw(this, {id:'2009071621213', link: 'http%3A%2F%2Ftechyoyo.com%2F2010%2F04%2Fthis-is-what-a-tweet-looks-like%2F', title: 'This+is+What+a+Tweet+Looks+Like' });"/></a>]]></content:encoded>
			<wfw:commentRss>http://techyoyo.com/2010/04/this-is-what-a-tweet-looks-like/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Now is the time to learn Objective &#8211; C</title>
		<link>http://techyoyo.com/2010/01/now-is-the-time-to-learn-objective-c/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=now-is-the-time-to-learn-objective-c</link>
		<comments>http://techyoyo.com/2010/01/now-is-the-time-to-learn-objective-c/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 17:16:48 +0000</pubDate>
		<dc:creator>arun kamath</dc:creator>
				<category><![CDATA[computers]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[apps]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[objective c]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[tablet]]></category>

		<guid isPermaLink="false">http://techyoyo.com/?p=213</guid>
		<description><![CDATA[With Apple about to announce its latest revolutionary product &#8211; the Tablet PC, its share value and earnings is bound to rise several times. But importantly, it will help many freelance programmers earn a fortune by developing apps for it. iPhone apps are developed in Objective C.  However, there is an python implementation too. According [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftechyoyo.com%2F2010%2F01%2Fnow-is-the-time-to-learn-objective-c%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftechyoyo.com%2F2010%2F01%2Fnow-is-the-time-to-learn-objective-c%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>With Apple about to announce its latest revolutionary product &#8211; the Tablet PC, its share value and earnings is bound to rise several times. But importantly, it will help many freelance programmers earn a fortune by developing apps for it.</p>
<p>iPhone apps are developed in Objective C.  However, there is an python <a href="http://www.saurik.com/id/5" target="_blank">implementation </a>too. According to Wikipedia, Objective C is used only on Apple&#8217;s Mac OS x and iPhone OS.</p>
<p>Now with a tablet PC being added to its stable, the developers will have more flexibility and CPU power than the iPhone to develop killer apps. Already it is rumoured that the print media is looking forward to find a way to generate revenue from tablet PC.</p>
<p>So what is objective c? It is an OOP language which adds smalltalk like messaging to C. Here is a <a href="http://developer.apple.com/iphone/library/referencelibrary/GettingStarted/Learning_Objective-C_A_Primer/index.html#//apple_ref/doc/uid/TP40007594" target="_blank">Primer </a>on the language from apple and more detailed <a href="http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/ObjectiveC/Introduction/introObjectiveC.html" target="_blank">here</a>.</p>
<p>Do you know the language? How do you find it?</p>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009071621213/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009071621213/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009071621213', 'http%3A%2F%2Ftechyoyo.com%2F2010%2F01%2Fnow-is-the-time-to-learn-objective-c%2F', 'Now+is+the+time+to+learn+Objective+%26%238211%3B+C')" onclick="STTAFFUNC.cw(this, {id:'2009071621213', link: 'http%3A%2F%2Ftechyoyo.com%2F2010%2F01%2Fnow-is-the-time-to-learn-objective-c%2F', title: 'Now+is+the+time+to+learn+Objective+%26%238211%3B+C' });"/></a>]]></content:encoded>
			<wfw:commentRss>http://techyoyo.com/2010/01/now-is-the-time-to-learn-objective-c/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HTML5 to include- rel=&#8221;noreferrer&#8221;</title>
		<link>http://techyoyo.com/2010/01/html5-to-include-relnoreferrer/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=html5-to-include-relnoreferrer</link>
		<comments>http://techyoyo.com/2010/01/html5-to-include-relnoreferrer/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 07:50:21 +0000</pubDate>
		<dc:creator>arun kamath</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://techyoyo.com/?p=195</guid>
		<description><![CDATA[HTML5 is going to include the tag rel=&#8221;noreferrer&#8221; . This tag will strip out the referrer information. That is the browser will not detect the referrer page. Mark Pilgrim writes in Dive into HTML5 rel=&#8221;noreferrer&#8221; “indicates that no referrer information is to be leaked when following the link.” No shipping browser currently supports this, but [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftechyoyo.com%2F2010%2F01%2Fhtml5-to-include-relnoreferrer%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftechyoyo.com%2F2010%2F01%2Fhtml5-to-include-relnoreferrer%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>HTML5 is going to include the tag rel=&#8221;noreferrer&#8221; . This tag will strip out the referrer information. That is the browser will not detect the referrer page. Mark Pilgrim writes in Dive into HTML5</p>
<blockquote><p>rel=&#8221;noreferrer&#8221; “indicates that no referrer information is to be leaked when following the link.” No shipping browser currently supports this, but support was recently added to WebKit nightlies, so it will eventually be showing up in Safari, Google Chrome, and other WebKit-based browsers</p></blockquote>
<p>It&#8217;s only use I think would be for BlackHat forums who will not want the target webmaster to know his source of traffic.</p>
<p>What do you think its use would be? Write in the comments.</p>
<p>Marks Pilgrim has written a book <a href="http://bit.ly/html5book">HTML5</a></p>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009071621213/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009071621213/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009071621213', 'http%3A%2F%2Ftechyoyo.com%2F2010%2F01%2Fhtml5-to-include-relnoreferrer%2F', 'HTML5+to+include-+rel%3D%26%238221%3Bnoreferrer%26%238221%3B')" onclick="STTAFFUNC.cw(this, {id:'2009071621213', link: 'http%3A%2F%2Ftechyoyo.com%2F2010%2F01%2Fhtml5-to-include-relnoreferrer%2F', title: 'HTML5+to+include-+rel%3D%26%238221%3Bnoreferrer%26%238221%3B' });"/></a>]]></content:encoded>
			<wfw:commentRss>http://techyoyo.com/2010/01/html5-to-include-relnoreferrer/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Java EE or .NET for Web Applications</title>
		<link>http://techyoyo.com/2009/09/java-ee-or-net-for-web-applications/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=java-ee-or-net-for-web-applications</link>
		<comments>http://techyoyo.com/2009/09/java-ee-or-net-for-web-applications/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 12:11:27 +0000</pubDate>
		<dc:creator>arun kamath</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://techyoyo.com/?p=95</guid>
		<description><![CDATA[When you are developing web applications you usually have to make  a choice between Java EE and .NET.  Here is some points you should take note of before you take the plunge. .NET  relies on stored procedures, whereby in Java  preference is given to keep everything in domain objects outside the DB. On .Net side [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftechyoyo.com%2F2009%2F09%2Fjava-ee-or-net-for-web-applications%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftechyoyo.com%2F2009%2F09%2Fjava-ee-or-net-for-web-applications%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>When you are developing web applications you usually have to make  a choice between Java EE and .NET.  Here is some points you should take note of before you take the plunge.</p>
<p>.NET  relies on stored procedures, whereby in Java  preference is given to keep everything in domain objects outside the DB. On .Net side you can use NAnt or a proprietary MS tool.</p>
<p>In .NET you get everything from one vendor. Whereas in Java EE you get several IDE and implementations from SUN as well as other third party vendors.</p>
<p>You can get help from very helpful online Java community whereas you have to depend on MSDN for help in .NET .</p>
<p>You don&#8217;t have to search for a given solution in .NET. The choice is clear. It can save you a considerable amount of time. Whereas in Java you have to search for the right tool from the many tools that is available.</p>
<p>.NET tools description and  evaluation is given at MSDN whereas for Java you have to evaluate them yourself if you can&#8217;t trust reviews of strangers on the internet.</p>
<p>The UI best practices are more consistent in .NET than in Java. The language integration in .NET is seamless. You can  call methods from C# to VB.NET with ease. In Java it is difficult to call Scala functions from Groovy.</p>
<p>As for IDE you have several commercial and free IDE&#8217;s available for java but in the case of .NET. . . . .</p>
<p>Java integration is excellent. You get connectors for SAP, AS400, etc. for free. ESBs, LDAP servers are also free.</p>
<p>Java language very stable. There are no big changes. Java EE 5 and 6 platform is backward compatible.</p>
<p>You can choose whatever OS you want to for development and production in Java EE whereas you are forced to use Windows for .NET</p>
<p>Most of Java applications are built on open source tools but this is not the case with .NET.</p>
<p>With Java EE you are  vendor-neutral.  Java EE apps are extremely portable. Java EE is not even dependent on Sun Microsystems as it was developed by all major vendors.</p>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009071621213/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009071621213/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009071621213', 'http%3A%2F%2Ftechyoyo.com%2F2009%2F09%2Fjava-ee-or-net-for-web-applications%2F', 'Java+EE+or+.NET+for+Web+Applications')" onclick="STTAFFUNC.cw(this, {id:'2009071621213', link: 'http%3A%2F%2Ftechyoyo.com%2F2009%2F09%2Fjava-ee-or-net-for-web-applications%2F', title: 'Java+EE+or+.NET+for+Web+Applications' });"/></a>]]></content:encoded>
			<wfw:commentRss>http://techyoyo.com/2009/09/java-ee-or-net-for-web-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Encrypt message using Python</title>
		<link>http://techyoyo.com/2009/08/encrypt-message-python-programming-language/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=encrypt-message-python-programming-language</link>
		<comments>http://techyoyo.com/2009/08/encrypt-message-python-programming-language/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 14:17:10 +0000</pubDate>
		<dc:creator>arun kamath</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://techyoyo.com/?p=85</guid>
		<description><![CDATA[This program makes use Caeser Cipher method for encrypting and decrypting data. From Wikipedia It is a type of substitution cipher in which each letter in the plaintext is replaced by a letter some fixed number of positions down the alphabet. For example, with a shift of 3, A would be replaced by D, B would becomeE, and [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftechyoyo.com%2F2009%2F08%2Fencrypt-message-python-programming-language%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftechyoyo.com%2F2009%2F08%2Fencrypt-message-python-programming-language%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>This program makes use Caeser Cipher method for encrypting and decrypting data. From <a href="http://en.wikipedia.org/wiki/Caesar_cipher">Wikipedia </a></p>
<blockquote><p><em>It is a type of substitution cipher in which each letter in the plaintext is replaced by a letter some fixed number of positions down the alphabet. For example, with a shift of 3, </em><tt><em>A</em></tt><em> would be replaced by </em><tt><em>D</em></tt><em>, </em><tt><em>B</em></tt><em> would become</em><tt><em>E</em></tt><em>, and so on. The method is named after Julius Caesar, who used it to communicate with his generals.</em></p></blockquote>
<p>Here is the program in python.</p>
<p><span style="color: #ff0000;"># Caesar Cipher &#8211; Simple Substitution Cipher</span></p>
<p><span style="color: #ff0000;">MAX_KEY_SIZE = 26</span></p>
<p><span style="color: #ff0000;">def getMessage():</span></p>
<p style="padding-left: 30px;"><span style="color: #ff0000;"> print &#8216;Enter your message:&#8217;</span></p>
<p style="padding-left: 30px;"><span style="color: #ff0000;"> return raw_input()</span></p>
<p><span style="color: #ff0000;">def getMode():</span></p>
<p style="padding-left: 30px;"><span style="color: #ff0000;"> while True:</span></p>
<p style="padding-left: 60px;"><span style="color: #ff0000;"> print &#8216;Do you wish to encrypt or decrypt a message?&#8217;</span></p>
<p style="padding-left: 60px;"><span style="color: #ff0000;"> mode = raw_input().lower()</span></p>
<p style="padding-left: 60px;"><span style="color: #ff0000;"> if mode in &#8216;encrypt e decrypt d&#8217;.split():</span></p>
<p style="padding-left: 90px;"><span style="color: #ff0000;"> return mode</span></p>
<p style="padding-left: 60px;"><span style="color: #ff0000;"> else:</span></p>
<p style="padding-left: 90px;"><span style="color: #ff0000;"> print &#8216;Enter either &#8220;encrypt&#8221; or &#8220;e&#8221; or &#8220;decrypt&#8221; or &#8220;d&#8221;.&#8217;</span></p>
<p><span style="color: #ff0000;">def getKey():</span></p>
<p style="padding-left: 30px;"><span style="color: #ff0000;"> key = 0</span></p>
<p style="padding-left: 30px;"><span style="color: #ff0000;"> while True:</span></p>
<p style="padding-left: 60px;"><span style="color: #ff0000;"> print &#8216;Enter the key number (1-%s)&#8217; % (MAX_KEY_SIZE)</span></p>
<p style="padding-left: 60px;"><span style="color: #ff0000;"> key = int(raw_input())</span></p>
<p style="padding-left: 60px;"><span style="color: #ff0000;"> if (key &gt;= 1 and key &lt;= MAX_KEY_SIZE):</span></p>
<p style="padding-left: 90px;"><span style="color: #ff0000;"> return key</span></p>
<p><span style="color: #ff0000;">def getTranslatedMessage(mode, message, key):</span></p>
<p style="padding-left: 30px;"><span style="color: #ff0000;"> if mode[0] == &#8216;d&#8217;:</span></p>
<p style="padding-left: 60px;"><span style="color: #ff0000;"> key = -key</span></p>
<p style="padding-left: 60px;"><span style="color: #ff0000;"> translated = &#8221;</span></p>
<p style="padding-left: 30px;"><span style="color: #ff0000;">for symbol in message:</span></p>
<p style="padding-left: 60px;"><span style="color: #ff0000;"> if symbol.isalpha():</span></p>
<p style="padding-left: 90px;"><span style="color: #ff0000;"> num = ord(symbol)</span></p>
<p style="padding-left: 90px;"><span style="color: #ff0000;"> num += key</span></p>
<p style="padding-left: 60px;"><span style="color: #ff0000;">if symbol.isupper():</span></p>
<p style="padding-left: 90px;"><span style="color: #ff0000;"> if num &gt; ord(&#8216;Z&#8217;):</span></p>
<p style="padding-left: 120px;"><span style="color: #ff0000;"> num -= 26</span></p>
<p style="padding-left: 90px;"><span style="color: #ff0000;"> elif num &lt; ord(&#8216;A&#8217;):</span></p>
<p style="padding-left: 120px;"><span style="color: #ff0000;"> num += 26</span></p>
<p style="padding-left: 90px;"><span style="color: #ff0000;"> elif symbol.islower():</span></p>
<p style="padding-left: 120px;"><span style="color: #ff0000;">if num &gt; ord(&#8216;z&#8217;):</span></p>
<p style="padding-left: 150px;"><span style="color: #ff0000;"> num -= 26</span></p>
<p style="padding-left: 120px;"><span style="color: #ff0000;">elif num &lt; ord(&#8216;a&#8217;):</span></p>
<p style="padding-left: 150px;"><span style="color: #ff0000;"> num += 26</span></p>
<p style="padding-left: 150px;"><span style="color: #ff0000;">translated += chr(num)</span></p>
<p style="padding-left: 120px;"><span style="color: #ff0000;"> else:</span></p>
<p style="padding-left: 150px;"><span style="color: #ff0000;"> translated += symbol</span></p>
<p style="padding-left: 150px;"><span style="color: #ff0000;">return translated</span></p>
<p><span style="color: #ff0000;">mode = getMode()</span></p>
<p><span style="color: #ff0000;">message = getMessage()</span></p>
<p><span style="color: #ff0000;">key = getKey()</span></p>
<p><span style="color: #ff0000;"><br />
</span></p>
<p><span style="color: #ff0000;">print &#8216;Your translated text is:&#8217;</span></p>
<p><span style="color: #ff0000;">print getTranslatedMessage(mode, message, key)</span></p>
<p><span style="color: #ff0000;">input()</span></p>
<p>You can check out the code for finding out root of a number using<a href="http://techyoyo.com/2009/08/first-python-program-newton-square-root/"> Newton&#8217;s method of iteration in Python</a>. This code cipher code is from the free ebook <a href="http://pythonbook.coffeeghost.net/" target="_blank">Invent Your Own Computer Games with Python</a></p>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009071621213/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009071621213/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009071621213', 'http%3A%2F%2Ftechyoyo.com%2F2009%2F08%2Fencrypt-message-python-programming-language%2F', 'Encrypt+message+using+Python')" onclick="STTAFFUNC.cw(this, {id:'2009071621213', link: 'http%3A%2F%2Ftechyoyo.com%2F2009%2F08%2Fencrypt-message-python-programming-language%2F', title: 'Encrypt+message+using+Python' });"/></a>]]></content:encoded>
			<wfw:commentRss>http://techyoyo.com/2009/08/encrypt-message-python-programming-language/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>My first real Python program</title>
		<link>http://techyoyo.com/2009/08/first-python-program-newton-square-root/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=first-python-program-newton-square-root</link>
		<comments>http://techyoyo.com/2009/08/first-python-program-newton-square-root/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 16:51:05 +0000</pubDate>
		<dc:creator>arun kamath</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://techyoyo.com/?p=76</guid>
		<description><![CDATA[I am really beginning to like Python Programming Language. It is quite efficient in doing lot of tasks. Unfortunately, I don&#8217;t get to devote much time for learning it. Here is the code that will calculate the square root by newton method of iterations. import random a = float(raw_input(&#8220;enter a integer&#8221;)) x = random.randint(1,a-1) while [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftechyoyo.com%2F2009%2F08%2Ffirst-python-program-newton-square-root%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftechyoyo.com%2F2009%2F08%2Ffirst-python-program-newton-square-root%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I am really beginning to like Python Programming Language. It is quite efficient in doing lot of tasks. Unfortunately, I don&#8217;t get to devote much time for learning it. Here is the code that will calculate the square root by newton method of iterations.</p>
<p><span style="color: #ff0000;">import random</span></p>
<p><span style="color: #ff0000;">a = float(raw_input(&#8220;enter a integer&#8221;))</span></p>
<p><span style="color: #ff0000;">x = random.randint(1,a-1)</span></p>
<p><span style="color: #ff0000;">while True:</span></p>
<p style="padding-left: 30px;"><span style="white-space: pre;"><span style="color: #ff0000;"> </span></span><span style="color: #ff0000;">print x</span></p>
<p style="padding-left: 30px;"><span style="white-space: pre;"><span style="color: #ff0000;"> </span></span><span style="color: #ff0000;">y = (x + a/x) / 2</span></p>
<p style="padding-left: 30px;"><span style="white-space: pre;"><span style="color: #ff0000;"> </span></span><span style="color: #ff0000;">if y == x:</span></p>
<p style="padding-left: 60px;"><span style="white-space: pre;"><span style="color: #ff0000;"> </span></span><span style="color: #ff0000;">break</span></p>
<p style="padding-left: 30px;"><span style="white-space: pre;"><span style="color: #ff0000;"> </span></span><span style="color: #ff0000;">x = y</span></p>
<p><span style="color: #ff0000;">raw_input()</span></p>
<div>The &#8216;raw_input()&#8217; on last line has been used as an equivalent to &#8216;getch()&#8217; of C.  The only problem with this code is that it will not accept floating numbers. What should I to make it compute even floating numbers? Please write in the comment section.</div>
<div>Here is my post about<a href="http://techyoyo.com/2009/06/decided-learn-python-programming-language/" target="_self"> Why I decided to learn Python</a>.</div>
<div>If you know about any good e-book about python please tell me in the comments section.</div>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009071621213/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009071621213/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009071621213', 'http%3A%2F%2Ftechyoyo.com%2F2009%2F08%2Ffirst-python-program-newton-square-root%2F', 'My+first+real+Python+program')" onclick="STTAFFUNC.cw(this, {id:'2009071621213', link: 'http%3A%2F%2Ftechyoyo.com%2F2009%2F08%2Ffirst-python-program-newton-square-root%2F', title: 'My+first+real+Python+program' });"/></a>]]></content:encoded>
			<wfw:commentRss>http://techyoyo.com/2009/08/first-python-program-newton-square-root/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>C &#8211; The Least Common Denominator</title>
		<link>http://techyoyo.com/2009/08/c-programming-embedded-systems/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=c-programming-embedded-systems</link>
		<comments>http://techyoyo.com/2009/08/c-programming-embedded-systems/#comments</comments>
		<pubDate>Sun, 02 Aug 2009 12:57:35 +0000</pubDate>
		<dc:creator>arun kamath</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[embedded systems]]></category>

		<guid isPermaLink="false">http://techyoyo.com/?p=54</guid>
		<description><![CDATA[Many new programming languages have developed in last two decades. Java, Python, Ruby, Lisp, etc have gained popularity for different reasons and purposes. Each language has its own band of followers like football teams fans who  try to bring other fans in their fold. But any good programmer, especially of embedded systems, will tell you [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftechyoyo.com%2F2009%2F08%2Fc-programming-embedded-systems%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftechyoyo.com%2F2009%2F08%2Fc-programming-embedded-systems%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Many new programming languages have developed in last two decades. Java, Python, Ruby, Lisp, etc have gained popularity for different reasons and purposes. Each language has its own band of followers like football teams fans who  try to bring other fans in their fold.</p>
<p>But any good programmer, especially of embedded systems, will tell you that even if you have mastered any of the &#8216;modern languages&#8217; you must have good knowledge of C. Why?</p>
<p>Only C is close to assembly language. It is appropriate for 8 bit processors to 64 bit processors; in systems with bytes, kilobytes and megabytes of memory.</p>
<p>More over, it is fairly simple to learn(well, not as simple as <a href="http://techyoyo.com/2009/06/decided-learn-python-programming-language/"><strong>python</strong></a>) and C-compilers are available for almost every processor in use, and there is a large body of C programmers.</p>
<p>But the real advantage of C over other high level programming languages is that C is &#8216;low level&#8217; high level language. C gives you  high level of direct hardware control without being difficult to code inlike assembly languages.</p>
<p>In real time systems, where speed of execution is of high importance, C is necessary. You can use other language as front-end in these systems but C for the number crunching , performance critical components.</p>
<p>Here is the discussion on reddit about which language is an <a href="http://www.reddit.com/r/programming/comments/94yxz/what_are_the_best_alternatives_for_cc_and_ada_in/" target="_blank">alternative to C in embedded systems</a>.</p>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009071621213/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009071621213/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009071621213', 'http%3A%2F%2Ftechyoyo.com%2F2009%2F08%2Fc-programming-embedded-systems%2F', 'C+%26%238211%3B+The+Least+Common+Denominator')" onclick="STTAFFUNC.cw(this, {id:'2009071621213', link: 'http%3A%2F%2Ftechyoyo.com%2F2009%2F08%2Fc-programming-embedded-systems%2F', title: 'C+%26%238211%3B+The+Least+Common+Denominator' });"/></a>]]></content:encoded>
			<wfw:commentRss>http://techyoyo.com/2009/08/c-programming-embedded-systems/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Why I decided to learn Python</title>
		<link>http://techyoyo.com/2009/06/decided-learn-python-programming-language/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=decided-learn-python-programming-language</link>
		<comments>http://techyoyo.com/2009/06/decided-learn-python-programming-language/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 13:54:20 +0000</pubDate>
		<dc:creator>arun kamath</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://techyoyo.com/?p=24</guid>
		<description><![CDATA[I am a BSc IT student of Mumbai university. We don&#8217;t actually have to learn Python Programming language. Also you know that in India the fad is to learn Java, .NET, VB, etc. So why did I chose to learn Python? Firstly, I was impressed when I came to know that Google&#8217;s algorithms are based [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Ftechyoyo.com%2F2009%2F06%2Fdecided-learn-python-programming-language%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Ftechyoyo.com%2F2009%2F06%2Fdecided-learn-python-programming-language%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I am a BSc IT student of Mumbai university. We don&#8217;t actually have to learn Python Programming language. Also you know that in India the fad is to learn Java, .NET, VB, etc. So why did I chose to learn Python?</p>
<p>Firstly, I was impressed when I came to know that Google&#8217;s algorithms are based on Python. NASA also uses it for various purposes.</p>
<p>But what really turned me on was the fact that Python is very easy to learn. I probed further and got to know more about it. Here are the reasons why you must learn Python even though there is not much scope in India as of now.</p>
<ol>
<li>In Python there is no Types and Size like in C/C++. This makes programming whole lot easier.</li>
<li>Python programs are easier to undertstand. Making it useful in building large software in a team.</li>
<li>Most of the unnecessary coding is not required in Python making the programs shorter and development phase faster than any other old languages.</li>
<li>Python is portable. It will run on almost every OS without any issues. You can use Tkinter or WxPython to create GUI and it will work on all platforms. Compare this with VB which will work only in Windows.</li>
<li>Python script can call C/C++ libraries, use Java classes, integrate with .NET, etc.</li>
</ol>
<p>After learning python, I am going to learn WxPython an Jython. You can learn Python from the official documentation you will get when you <a href="http://www.python.org/download/" target="_blank">download Python</a> from Python&#8217;s website. However, I found It difficult to understand.  I found this site <a href="http://www.ibiblio.org/g2swap/byteofpython/read/index.html" target="_blank">Byte For Python</a> was better for beginners. I have also purchased O&#8217; Reilly&#8217;s <a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%2Fwww.amazon.com%2Fs%3Fie%3DUTF8%26x%3D0%26ref%255F%3Dnb%255Fss%255Fkinc%26y%3D0%26field-keywords%3Dpython%2520in%2520a%2520nutshell%26url%3Dsearch-alias%253Daps&amp;tag=undethesun-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=390957" target="_blank">Programming Python and Python in a Nutshell</a>.  These books are bit advanced.</p>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009071621213/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009071621213/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009071621213', 'http%3A%2F%2Ftechyoyo.com%2F2009%2F06%2Fdecided-learn-python-programming-language%2F', 'Why+I+decided+to+learn+Python')" onclick="STTAFFUNC.cw(this, {id:'2009071621213', link: 'http%3A%2F%2Ftechyoyo.com%2F2009%2F06%2Fdecided-learn-python-programming-language%2F', title: 'Why+I+decided+to+learn+Python' });"/></a>]]></content:encoded>
			<wfw:commentRss>http://techyoyo.com/2009/06/decided-learn-python-programming-language/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

