tag:blogger.com,1999:blog-353465562024-03-08T00:04:39.560+05:45Infinity UnboundWhere Prasanna Gautam Blogs! And the world watches!! (Must've said too much :)prashttp://www.blogger.com/profile/05331135075716642862noreply@blogger.comBlogger50125tag:blogger.com,1999:blog-35346556.post-24220698758666495322008-07-15T10:14:00.000+05:452008-07-15T10:18:38.852+05:45HashMap loop in javaThis is how you loop through the Key Value pairs in a HashmapIterator iter = values.keySet().iterator(); while (iter.hasNext()) { String key = iter.next(); String value = values.get(key); System.out.println("Key ="+key+"\n Value"+value) }Here, I have implicitly assumed that values is a HashMap but as you know it can be of any Object that you like. I just used it for prashttp://www.blogger.com/profile/05331135075716642862noreply@blogger.com3tag:blogger.com,1999:blog-35346556.post-66630748363979795282008-07-04T15:19:00.002+05:452008-07-04T15:28:24.136+05:45Viewing firefox status bar in full screenUsing firefox in full screen is rather cool but I was missing the status bar which gives a lot of information about the link whenever I hover or whatever is being done by the browser. After digging up a few places, I came to this link in mozilla's sitehttp://support.mozilla.com/en-US/kb/Editing+configuration+filesabout editing configuration files and in particular userChrome.css Used to changeprashttp://www.blogger.com/profile/05331135075716642862noreply@blogger.com4tag:blogger.com,1999:blog-35346556.post-53497872154811351842008-07-04T14:48:00.003+05:452008-07-04T14:50:49.331+05:45My LinksI just added a links section there on the sidebar so that you can see what I'm bookmarking lately. Most of them might end up being incorporated on the front page. If they are any bit useful to you, tell me. I might not have read them(or sometimes might want to read them again, so that might be useful to go over.)If you are a fellow programming, hacking enthusiast, I'll be glad to share some linksprashttp://www.blogger.com/profile/05331135075716642862noreply@blogger.com1tag:blogger.com,1999:blog-35346556.post-28171151491486425242008-07-03T18:25:00.003+05:452008-07-04T13:20:57.709+05:45A simple mjpeg streamer for pythonI've been working with networking stuffs lately, like XML, parsing and lately streaming. Originally, I wanted to do this for my Android project which is still slightly veiled in secrecy. It will be open sourced completely though, when it matures. So, I wrote this application in an effort to understand the networking behind it and get it to work on Android. Frankly, I am not so good with Java and prashttp://www.blogger.com/profile/05331135075716642862noreply@blogger.com6tag:blogger.com,1999:blog-35346556.post-2848299819638966622008-07-03T12:44:00.006+05:452008-07-03T12:55:01.218+05:45Out with Ads, In with analyticsFinally, I got rid of the annoying ads and included Google Analytics instead. I hope it helps me track users better (HEHE, evil laugh). Nah, I just want to see my traffic from a fairly trusted source. Since I've started updating the blog again, I want to see how many people are coming.And yeah, the ads won't EVER come back on this site. PROMISE!!!I wonder if that news belonged to twitter than prashttp://www.blogger.com/profile/05331135075716642862noreply@blogger.com1tag:blogger.com,1999:blog-35346556.post-85551165150049703232008-07-03T12:18:00.005+05:452008-07-03T12:41:03.011+05:45Thank You Firefox.Yep, it's official. And I've grabbed my copy of the thank you letter that Mozilla is giving away.I actually like the way this has been handled by Mozilla with all the hype about Firefox 3 that was circulating. Albeit, I felt it was a bit cheesy to go around downloading, or asking someone else to download for a while but it was fun. I had the download link on my desktop for every one to see.So, prashttp://www.blogger.com/profile/05331135075716642862noreply@blogger.com1tag:blogger.com,1999:blog-35346556.post-67410979324733047942008-07-02T02:45:00.003+05:452008-07-02T02:50:15.163+05:45positServer online"Release early, release often"These were the words that sparked the open source revolution.I'm finally trying to follow this by releasing my positServer application under GPLv3 on googlecode. It's rather half baked right now and I intend to use it mostly for backup purposes. Hehe, it's hard to screw up when your backup server is the mighty Google Inc.http://code.google.com/p/positserver/source/prashttp://www.blogger.com/profile/05331135075716642862noreply@blogger.com1tag:blogger.com,1999:blog-35346556.post-18800572783438287942008-06-30T09:08:00.007+05:452008-06-30T09:24:04.457+05:45Sending Binary files over xml rpcI'm posting this because I finally figured how to send files(pictures in particular) over xmlrpc. It took me a while to figure it out since I was mostly concerned with saving the files into database but here it is.#!/usr/bin/env pythonfrom twisted.web import xmlrpc, serverimport osclass PositRPC(xmlrpc.XMLRPC): def prashttp://www.blogger.com/profile/05331135075716642862noreply@blogger.com2tag:blogger.com,1999:blog-35346556.post-89439614850955352982008-06-29T20:53:00.004+05:452008-06-29T21:04:12.223+05:45Locking screen from command lineI use gnome and so far I've been happy with my Ctrl+Alt+L shortcut in gnome. It used to lock up the screen when I was away from the desktop. However, recently, I've started to use XFCE and sometimes ratpoison, which didn't have this shortcut.Anyways, the simpler way to lock your screen is from command line and it seems to work everywhere I've tried so far.$xscreensaver-command -lockI just kept inprashttp://www.blogger.com/profile/05331135075716642862noreply@blogger.com2tag:blogger.com,1999:blog-35346556.post-21098626922427042802008-06-27T10:33:00.006+05:452008-06-27T11:37:31.865+05:45Code Highlighting in BloggerDon't you just love syntax highlighting that we've become so used to these days? Be it the venerable emacs editor or the new and upcoming Notepad++es, we love our syntax highlighting editors. But the codes on our sites still do suffer this problem of being black and white. I solved this problem for our college's hfoss wiki by installing the GeSHi CodeTag Extension for mediawiki but while looking prashttp://www.blogger.com/profile/05331135075716642862noreply@blogger.com6tag:blogger.com,1999:blog-35346556.post-70210471447772034122008-06-27T08:25:00.006+05:452008-06-28T03:01:06.513+05:45Follow me on TwitterAfter facebook, I haven't really got around to most of the social networking things, but after reading about it (a lot) and seeing some really famous people actively using it, I decided to give it a try.Guess what, I'm loving it. So, if you are interested in following me, do follow me atwww.twitter.com/prasannagautamOr if you want me to be notified of your tweets, do post in here so that I can prashttp://www.blogger.com/profile/05331135075716642862noreply@blogger.com3tag:blogger.com,1999:blog-35346556.post-79467121016712076992008-06-27T07:50:00.013+05:452008-06-27T11:23:58.316+05:45Implementing xmlrpc database server in twistedA while back, for my POSIT project (for google android), I wrote a small application in python that sent out some data from the server's repository and saved to the database. I never really got around the saving part because I couldn't get the database to send pictures back and forth. In part, I went back to working on the phone itself and my studies because I was being a little too unfocused inprashttp://www.blogger.com/profile/05331135075716642862noreply@blogger.com0tag:blogger.com,1999:blog-35346556.post-68798884250333302712008-06-20T06:01:00.005+05:452008-07-04T15:07:12.247+05:45Firefox 3 on debian etchFirst, some updates:These days, I've been busy doing my summer research (finally learning to document properly) and working part/full time for the computing center here as the system administrator (well, assisting the system administrator to be correct).OK, the release of firefox 3 was big and I participated heavily and encouraged everyone to participate by downloading the browser within the 24 prashttp://www.blogger.com/profile/05331135075716642862noreply@blogger.com2tag:blogger.com,1999:blog-35346556.post-5939751127169738062008-05-26T05:32:00.000+05:452008-05-26T05:39:32.696+05:45What? a Beowulf in room?I recently got 4 SUN ultrasparc 5 boxes from the compsci lab. The most interesting thing is that when I got them, basically 1 by 1, I had no idea what I was going to do with them. For a while, I tried assigning them static IPs and ran rtorrent through them. I wanted to put a web interface for it too. Then I turned them off for a substantial amount of time because playing around with them was prashttp://www.blogger.com/profile/05331135075716642862noreply@blogger.com2tag:blogger.com,1999:blog-35346556.post-68030571367007175252008-03-22T13:29:00.002+05:452008-03-22T13:31:50.492+05:45How to run sugar on ubuntu- the easy wayAre you finding yourself lazy to go through the installing, git-pull update procedure for your ubuntu system to work on the olpc sugar interface? There's an easier way to do it$sudo apt-get install sugar-emulator sugar-activitiesThis should do it.If you still want to do it the old way... go for ithttp://wiki.laptop.org/go/Sugar_with_sugar-jhbuild\:)prashttp://www.blogger.com/profile/05331135075716642862noreply@blogger.com1tag:blogger.com,1999:blog-35346556.post-51967937534413419062008-01-20T01:40:00.001+05:452008-01-20T01:53:20.993+05:45todosHey, it's been 19 days since new year and I haven't made all the resolutions yet so I decided to make them now. I don't make resolutions often but keeping them here might actually force myself to stick to them0. Improve gradesI admit they are really really important, it just can't be over stated. So, it obviously goes on the first.1. Learn regular expressions From experience, I know that learningprashttp://www.blogger.com/profile/05331135075716642862noreply@blogger.com3tag:blogger.com,1999:blog-35346556.post-79557917969866937422008-01-19T05:36:00.001+05:452008-01-19T05:36:38.833+05:45Busybox on AndroidAs good as android is, it does lack some of the rather interesting linux tools that could be of a great use like busybox. Its good to have a command line interface to play around often to get information that click around in gui which makes things a bit too slow sometimes.While I did try to compile the busybox binary and loading onto the phone, that didn't quite work. So I got one from here. prashttp://www.blogger.com/profile/05331135075716642862noreply@blogger.com2tag:blogger.com,1999:blog-35346556.post-54998658484776258732008-01-15T13:20:00.001+05:452008-01-15T13:20:01.709+05:45How to make your window Full Screen in gnome?I have often had this problem of getting quite seriously distracted while coding and I always like to use as much screen real state to work on but then again, there are other applications that need it too and it can be a lot of distraction with gmail messages popping up and all sorts of nasty stuff happening. One option is to just go into some other desktop manager but I kind of like solving the prashttp://www.blogger.com/profile/05331135075716642862noreply@blogger.com9tag:blogger.com,1999:blog-35346556.post-10754311802600245062008-01-09T11:32:00.000+05:452008-01-15T11:39:36.280+05:45Checking integrity of cdrom drivesI had this problem for a while, so I wanted to take a look at it... how do i check the integrity of the drive.I did this... to find that it was quite okay... the same can be done with md5sum but sha1sum is better sometimes$ sha1sum KNOPPIX_V5.1.1CD-2007-01-04-EN.iso | grep cdc0e9181d9dd2f2fc71aa9c59391001c46afa3ecdc0e9181d9dd2f2fc71aa9c59391001c46afa3e *KNOPPIX_V5.1.1CD-2007-01-04-EN.isobut prashttp://www.blogger.com/profile/05331135075716642862noreply@blogger.com1tag:blogger.com,1999:blog-35346556.post-24912348277717656372007-04-05T23:41:00.000+05:452007-04-05T23:48:03.914+05:45Releasing my themeAfter getting some requests for showing the code, I'm giving this three column theme...further instructions arriving in future posts... :Dfirst of all, back up ur file by downloading the template at the Edit HTML tab..then upload this filehttp://prasannagautam.googlepages.com/template-35346556.xmlprashttp://www.blogger.com/profile/05331135075716642862noreply@blogger.com2tag:blogger.com,1999:blog-35346556.post-58148389362386354472007-03-31T16:33:00.000+05:452007-03-31T16:34:49.600+05:45Can Newton's 2nd Law be Violated on Earth? from PhysOrg.comAstrophysicists have found evidence that a corrected version of Newton’s 2nd Law (which deals with the acceleration of mass) works well on the grand scale of the universe. These modifications to Newtonian physics are known as “modified Newtonian dynamics (MOND). “Newton offers a foundation for classical mechanics in the relationship of force, mass and accelerations,” Alex prashttp://www.blogger.com/profile/05331135075716642862noreply@blogger.com0tag:blogger.com,1999:blog-35346556.post-18559198084587194662007-03-31T10:02:00.000+05:452007-03-31T16:44:35.878+05:45WineEhh.. it didn't take a lot of time to rediscover wine after I made a huge switch to ubuntu last month. After all, there isn't any reason now to keep running windows. I've managed to run the following softwares so far:1. Adobe Photoshop 72. Macromedia Flash 83. Macromedia Dreamweaver 84. Winrar5. Flashgetbut there was a little problem with Picasa 2.6!... Basically I couldn't use the web upload prashttp://www.blogger.com/profile/05331135075716642862noreply@blogger.com1tag:blogger.com,1999:blog-35346556.post-5754852967668461092007-03-01T00:50:00.000+05:452007-03-01T00:57:37.239+05:45Back AgainYep, its been quite some time that I've posted anything here... but that's about to change...prashttp://www.blogger.com/profile/05331135075716642862noreply@blogger.com1tag:blogger.com,1999:blog-35346556.post-82325244270098675872007-02-03T21:11:00.000+05:452007-02-03T22:10:53.497+05:45Seeing tongueprashttp://www.blogger.com/profile/05331135075716642862noreply@blogger.com1tag:blogger.com,1999:blog-35346556.post-70768511135581953032006-12-17T07:48:00.000+05:452006-12-17T08:00:26.384+05:45Old PhotosThe oldest known color photograph: 1872 Before the Autochrome process was perfected in France, this photograph of a landscape in Southern France was taken. No, it is not hand-tinted. This is a color-photograph. (Note: It was published in a Time/Life Book entitled "Color" in 1972, "courtesey of George Eastman House, Paulus Lesser.") You are looking at the birth of color photography prashttp://www.blogger.com/profile/05331135075716642862noreply@blogger.com0