<?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-21414902</id><updated>2011-04-21T20:42:08.346-07:00</updated><title type='text'>life goes on..... :-)  :-(  :-|</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jandy-diary.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21414902/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://jandy-diary.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Srikanth Jandhyala</name><uri>http://www.blogger.com/profile/05597465285099990743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://img96.imageshack.us/img96/2905/stewie2jz.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-21414902.post-114135880763181406</id><published>2006-03-02T20:05:00.000-08:00</published><updated>2006-03-02T20:06:47.653-08:00</updated><title type='text'>weird method of python input / output</title><content type='html'>I thought i knew every thing about python input/output until i stumbled upon a requirement where i had to print some thing with out a new line character.&lt;br /&gt;&lt;br /&gt;I thought sys.out.write() for me to be done with this. Later i realized i can only can send read-only character buffer..or in layman terms if i understood things in a right way should be a string (python programmers correct me if i am wrong)&lt;br /&gt;&lt;br /&gt;What do i do. Dumb head !!! what will you do when you don't know an answer for a question. As usual search it on google "how to print without new line character in python". The google answers had a nice link pointing to wiki books. Ahh! now i remember there is something called wiki books which i wanted to have a look at but didn't bother thinking they are not worth looking. Now i decide to see what it has that too on some programming language input output operators. It turned out to be pretty good link (here it is--&gt; http://en.wikibooks.org/wiki/Programming:Python/Input_and_output). Any how it said i could actually use print (which prints anew line character ) by adding a comma at it end.&lt;br /&gt;&lt;br /&gt;so print 2, 3&lt;br /&gt;would print as 2 3.&lt;br /&gt;my only problem was i didn't want the white spaces...now how do i that. Thanks to wiki books inspiration i had a nice hack for it. Here it was i did&lt;br /&gt;&lt;br /&gt;import sys&lt;br /&gt;for i in range(10,20):&lt;br /&gt;    sys.stdout.write('')&lt;br /&gt;    print i,&lt;br /&gt;&lt;br /&gt;ofcourse, i wouldn't say this is the only and best solution but atleast solves my problem. If any of you readers stumble on my blog and have better answers i am more than obliged to hear you.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21414902-114135880763181406?l=jandy-diary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jandy-diary.blogspot.com/feeds/114135880763181406/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21414902&amp;postID=114135880763181406' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21414902/posts/default/114135880763181406'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21414902/posts/default/114135880763181406'/><link rel='alternate' type='text/html' href='http://jandy-diary.blogspot.com/2006/03/weird-method-of-python-input-output.html' title='weird method of python input / output'/><author><name>Srikanth Jandhyala</name><uri>http://www.blogger.com/profile/05597465285099990743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://img96.imageshack.us/img96/2905/stewie2jz.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-21414902.post-113921149190535783</id><published>2006-02-05T23:36:00.000-08:00</published><updated>2006-02-05T23:38:11.913-08:00</updated><title type='text'>back from hibernation</title><content type='html'>Even though hari (i forgot to say about this creature...my NERDY roommate) always said that i shouldn't think of coming up with a text specifically for blogs.... rather just write what my experiences were over that day...i realized it only now...so i come back from hibernation....So let me start writing my experiences ...and of course the blog is my diary...what a fool i am ...i didn't realize that.....So what were my experiences today. To start with... today was a fine day. It started with me making a decision that it is high time and i need to apply for summer internships. I could ultimately start doing the applying process after delaying it for a more than a month. I should say it was a success i could write my cover letter for the first time. of course i copied most of the content from some online resource...&lt;br /&gt;&lt;br /&gt;One other thing i realized today is i some how don't put much concentration while reading for the first time any form text. I realized that today again....last week i was reading python documentation about readline( ) and raw_input( )...the gist was that readline( ) inserts new line character when it scans for input but raw_input( ) doesn't. even though i read this....i did mistake while coding......i was doing some think like this in my python code&lt;br /&gt;&lt;br /&gt;operation = sys.stdin.readline( )&lt;br /&gt;if operation is "1":&lt;br /&gt;....&lt;br /&gt;&lt;br /&gt;of course this woudn't work as readline( ) inserts '\n' character and so the if statement should be &lt;br /&gt;&lt;br /&gt;if operation is "1\n"&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;now that i realize this my code for interfacing with aardvark...a hardware module which generates i2c signals is complete. All this could happen only because of hari. Thanks to him...i would have killed many precious hours on this stupid thing.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/21414902-113921149190535783?l=jandy-diary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jandy-diary.blogspot.com/feeds/113921149190535783/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=21414902&amp;postID=113921149190535783' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/21414902/posts/default/113921149190535783'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/21414902/posts/default/113921149190535783'/><link rel='alternate' type='text/html' href='http://jandy-diary.blogspot.com/2006/02/back-from-hibernation.html' title='back from hibernation'/><author><name>Srikanth Jandhyala</name><uri>http://www.blogger.com/profile/05597465285099990743</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://img96.imageshack.us/img96/2905/stewie2jz.jpg'/></author><thr:total>1</thr:total></entry></feed>
