My First Graphics App in JAVA!

Sunday, September 20, 2009


This might seem horrible to you at the first go, but then it took me an entire afternoon to get into the basics of Events Source and Event Listener architecture of Java. I managed to put it to work, I call it "My Paint", although it can only plot your mouse clicks using straight Lines. Hope this drives people to start indulging themselves in graphics programming using Java! It's fun and it quite easy. :-)

Download App

Read more...

Networking Trivia

Tuesday, September 15, 2009

The essence of computer networking can only be realized through practical observations.I've made it a point to publish the methods for accessing network information from a host. For, eg. we were recently taught about the resource records that a name server maintains for mapping a domain name to its IP address.
Well you can always view the records, from a UNIX terminal using the host command."host" is a simple utility for performing DNS lookups.For more information on the "host" utility try the manual pages for host by typing "man host" on your terminal.

Observation: (Open the terminal/shell on your Linux distribution)

tanm@tanm-desktop:~$ host -v www.gmail.com

Trying "www.gmail.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48667
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 6, ADDITIONAL: 0

;; QUESTION SECTION:
;www.gmail.com. IN A

;; ANSWER SECTION:
www.gmail.com. 74714 IN CNAME mail.google.com.
mail.google.com. 593108 IN CNAME googlemail.l.google.com.
googlemail.l.google.com. 10 IN A 74.125.157.19
googlemail.l.google.com. 10 IN A 74.125.157.83
googlemail.l.google.com. 10 IN A 74.125.157.17
googlemail.l.google.com. 10 IN A 74.125.157.18

;; AUTHORITY SECTION:
l.google.com. 74708 IN NS e.l.google.com.
l.google.com. 74708 IN NS f.l.google.com.
l.google.com. 74708 IN NS g.l.google.com.
l.google.com. 74708 IN NS a.l.google.com.
l.google.com. 74708 IN NS b.l.google.com.
l.google.com. 74708 IN NS d.l.google.com.

Received 244 bytes from 218.248.255.161#53 in 12 ms
Trying "googlemail.l.google.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26791
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;googlemail.l.google.com. IN AAAA

;; AUTHORITY SECTION:
l.google.com. 421 IN SOA a.l.google.com. dns-admin.google.com. 1392178 900 900 1800 60

Received 89 bytes from 218.248.255.161#53 in 17 ms
Trying "googlemail.l.google.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51967
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;googlemail.l.google.com. IN MX

;; AUTHORITY SECTION:
l.google.com. 60 IN SOA b.l.google.com. dns-admin.google.com. 1392178 900 900 1800 60

Received 89 bytes from 218.248.255.161#53 in 308 ms

What you get to see here are the alias name that gmail uses. Moreover this might also help you to get the alternative server address for gmail, if their default server is down. There is more to be explored using this utility. Shall keep updating them as and when they work for me.

Read more...

The Mid Semester Brainwork

Monday, June 15, 2009



The primary reason for this post is because of the AI Mid Semester Exam, where we are asked to solve the famous puzzle called the Missionaries & Cannibals. The problem has a solution requiring a minimum of 11 moves, try solving it, using its flash implementation. Fortunately, I's able to reach the solution in reasonable amount of time since I played this flash puzzle long ago, during my school days. Hope this visual will help you to find the solution before trying it on a pen and paper.

Note: A move is counted each time the boat is ferried across either ends and the boat cannot ferry while it is empty.

Click to Start the Game -----> Missionaries and Cannibals

P.S. Please disable your pop-up blocker.

Read more...

Innovations @BMW

Thursday, May 28, 2009

bmw_official_logo




BMW’s Acoustic Engineers work on Engine Sound.


BMW launches its X6 in India.


Find out more at http://myfavwheels.blogspot.com 

Read more...

IPL- the Surprise Box

Sunday, May 24, 2009

 

 

With the invention of this genre of cricket, many surprises ht499as hit the cricketing fans. Watching the semi’s between Royal Challengers Bangalore and Chennai Super Kings, I've  inferred a lot. Primarily, IPL has given the much  needed exposures to potential domestic players and this year it’s the 19 year MK Pandey from the RCB, the only Indian to score a century against the mighty finalist Deccan Chargers. He turned out to be the key to their victory in the semi-finals, for his temperament,timing and footwork  turned out to be a nightmare for the opponents. 

S

urprisingly, this season has also disproved yet another baseless  speculation that IPL t501was meant for fresh legs and seniors should give way to the young blooded hitters, as they would hardly make their presence felt. Dravid has proved his caliber by playing several crucial innings for the season and has flawlessly answered his team owner, that cricket’s his cup of tea and no one can dare to snatch it away from him. With his excellent  knock of 48 runs in the semis, Dravid is hailing high as a front-runner for his team. The game is not only about hitting DLF maximums, but timing and patience has assured them a win. Kudos to Rahul Dravid, for  standing so firm throughout. With Kumble being the captain of the ship, along with hitters like Pandey, Kohli, Utthapa, Kallis, Boucher & Taylor… the Royal Challengers could still win the challenge tomorrow to lift the much coveted trophy. Looking forward to more surprises in the finals….

 



To utter surprise, the finalists for IPL ‘09 were the underdogdcvsrcbs of ‘08. Retired Gilly has rejuvenated his aggression thus lifting his team up to the first  position from last years 8th, alongside Royal Challengers clearing the semis to get into the finals,finished 7th last year.  The pre-IPL predictions has failed drastically, apparently it seemed that the Mumbai Indians are the deserving ones, but then they also got outplayed in a bizarre fashion.  It turned out to be a battle between two ol’men, Gilly & Kumble. Awaiting the action packed finale of the season 2. 

Read more...

Ad-Sense Refined.

Friday, May 22, 2009

I believe the toughest of all creativity is  to communicate the in-depth implications of a  subject using the least amount of words! For instance, the Bata Footwear Company once had a caption on their hoardings which read We put our heart into your soles”.  Here are  more such captions by some of the worlds well-known organizations.


                                 

Read more...

The Wonder that is Varanasi

Thursday, May 21, 2009

       

 

 

 

 

 

 

 

 

 

 

 

 

W

hen, after our Part I tests we decided to have a trip to Benaras,many eye-brows were raised. “Going to Benaras?” What an odd choice of place! “Only Octogenarians and nonagenarians go there” were some of the snide remarks. To tell the truth, we were also unsettled by these comments,but took the chance and it goes without saying that we were handsomely rewarded. 


snap1_modWe, Anupam, Prasenjit, Dipankar, Tathagata, Sunando, Kumar, Sujoy, Indradeep from the English Department & Tanmoy from the Computer Science department boarded the Doon Express on 23rd February. The journey itself was an unforgettable experience. We didn’t miss a single food items that was sold and the ‘Chanawalas’ and the ‘Samosawalas’ had a gala time.  But there was something more to it. You just can’t take Bihar which we had to cross,for granted. Gaya came late at night and as we were fast asleep, “one of the innumerable dacoits in the dacoit-infested Gaya”, as Jatayu would have put it, set himself to task and two of our luggage which were tied with a chain under the seats, were gone. And gone with them were almost four thousand rupees,clothes,other valuable things and what-not. Kumar & Tanmoy became penniless. We were only one night old in our journey and such an incident to begin with was enough to unsettle us thoroughly.

   But, we thought “Bhole Baba par Karega” and so he did.  The moment the train crossed the huge bridge over the Ganges and we caught the first glimpse of the sprawling ghats, we forgot  at once all the unpleasant things. We dropped coins in the river, from the train itself and it was the first bit of “Punyo”, we earned in Benaras.

Kumar has his maternal uncle’s house in Benaras and this formed our base. This place is called Sonarpura and it was, we learnt, only a stones-throw away from Raja Harischandra Ghat. When we reached  Sonarpura, by rickshaw, we saw the real Benaras. Dirty, messy, polluted, chaotic, damn over-crowded, yet charming and of course holy and gothic. We saw the much talked about ‘golies’ or by-lanes and old imposing building stooping over them. These alleys were not more than 3 feet wide and still inside them were shops,beggars,cycles and scooties parked and of course pedestrians.  Above all there were the sacred bulls which would block your way anywhere and everywhere and would answer the nature’s call wherever they liked.

Now, the house we decided to stay deserves special mention. It at once reminded us of the bastion of Maganlal Meghraj in Jai Baba Felunath. The same doors with square-shaped designs on it, the same painted armed guards on either side. Inside, the house there was a long and wide courtyard surrounded by rooms. There were practically no windows. Sunlight came through an opening in the roof. There was a narrow dark stair-case with uneven steps. As a matter of fact, one had to feel the steps and ascend without knowing where one is going.

sadhu That evening itself we made our first visit to a ghat. It was the Principal Ghat of Benares—Dasaswamedh. We got a close look at ‘Kashir Ganga”. The river was flowing slowly and smoothly and was dotted with floating lamps. Little boys and girls, apparently innocent, but mischievous in intent, were selling those lamps and this was how ‘they earned their livelihood. They would frisk about the steps through the crowd, jump from one boat to another and forced their wares on the customers. Dasaswamedh is twenty ghats away, southwards from Raja Harishchandra Ghat, near which we stayed. On the very first day we were fortunate enough to experience the awe-inspiring and breath-taking sight of the “aarti” of Devi Ganga. If there was only one thing on earth which words could not describe it was this spectacle. People from far east and far west gazed at it and were trying to figure out what they were seeing was real. It was spell-binding, solemn and esoteric. Seven Purohit, young,  tall and handsome, simple yet elegantly dressed, standing on a platform and facing the river were performing the “aarti”. What caught the eye were their synchronized movements. All were performing the same thing at the same time. Some of the devotees were singing devotional songs. Our very own resident photographer, Kumar got busy with Sunanda’s Nikon. The rest of us along with thousands of people stood watching. The divine spectacle was enough to purify the soul.

That same evening we returned to Sonarpura, walking through the ghats and the sights which greeted us at Raja Harishchandra Ghat was blood cuddling. Raja Harishchandra ghat is one of the principal burning ghats of Benaras. It s said that around two hundred bodies are cremated there, every day. At a glance, we saw ten bodies burning, including that of a child.

One of the most spine-chilling experiences was the visit to Monikornica Ghat.. When we reached there,

it was already dark and we saw thirty pyres burning at the same time. The whole group was pretty excited from the beginning about going to Monikornica but when we reached there, it had subsided. To add to our misery, the lights went out and the entire area was plunged into darkness. There was absolute silence, except the crackling of burning wood. We saw the “Dom” using a big log to smash a skull. We (except Indra and Tanmoy, they were the most chicken-hearted) walked past the burning pyres. We could see that fifteen more bodies were waiting for their turn. Our torment was not over yet. When we were returning through the alleys which were hardly 3 feet wide bodies draped in white were carried past us.



The following morning we went to the Vishwanath Temple. The lane that leads to thehorizon temple is famously known as “Vishwanather Gali”. It was like any other labyrinthine alley in Benares, but brighter. “Vishwanather Gali” is extremely crowded with devotees at any hour of the day and shops jostled for space. One will find everything under the sun, in those shops. At every two feet there were machine-gun totting guards. The sight inside the temple was spectacular. The “Shiva-linga” was decked with flowers and bathed in milk. The temple floor was cobbled with silver coins. The peaks of the temple were covered with solid gold. The rites were being performed by four Pandas with big fat bodies covered with Sandal Wood paste. We also visited the adjoining mosque along with the Gyan-Bapi and Hanuman Mandir where recently people were killed due to terrorist activities.

Benaras is also famous for its “paan”, “bhang”, “rabri” and “lassi’. We bought pan-masala worth rupees two thousand from a well-known shop. Some of us also bought “Benarasi-attar”; It was very costly though. In Godhulia we tasted bhang! It is actually a drink of pesta-badam flavor to which a spoonful of bhang was added. Though Indra was interested, eventually didn’t have it because it was his responsibility to keep an eye on the others, lest they should do something un-wanted. We walked home safely, after an hour or two, one could feel the punch. Everybody started laughing unnecessarily and didn’t stop. Tanmoy said that it seemed to him that somebody was pulling him to the ghats. He proposed that we should go to Raja Harishchandra Ghat at mid-night - he demanded that he was not joking. Tatha and Anupam went out of the room in an all out effort to stop laughing. Indra was utterly confused as to how to calm down the ecstatic children of “Baba Bholenath”. The only saving grace was that Sujay went straight to bed as he didn’t have enough confidence in himself and knew that if he started, all hell would break loose in Sonarpura.


Another memorable experience was bathing in the Ganges every afternoon.

snap2_mod

Except Sujay and Tanmoy, everybody managed to swim. So we, had a whale of a time. Tanmoy somehow managed but guess what Sujay did! He brought a mug, took the Ganges to be a bucket of water, filled the mug and emptied it over his head standing on the steps!! But the second day onwards we forced him to dip in the holy water. The antics of the over enthusiastic group amused the local people much.

         



So, what we did in Benaras :

Indradeep:  All credit goes to him for the tour. He managed the funds. But for some mysterious reasons he has avoided submitting the accounts.

Sunando:       Vanished every now and then behind a cloud of smoke.

         

Tathagata:   Remember the body-builder in “Jai Baba Felunath” ? No?- have a look at him.

Dipankar:      … was too busy eating.

Anupam:       Was extremely lethargic and his bowels didn’t stand by him.

Tanmoy:       Got a crash course in swimming. Was un-fazed even after the loss in train.

Sujay:              Tried his hands at rowing. Perplexed the Benarasis with his own brand  of      Hindi- “tum hare pass Chhakni nahi hai?” when he wanted a glass of clean water.

Prasenjit:      Invoked the spirits of Bhole Baba which left him entranced.

Kumar:           Was the busiest person taking snaps.. made others busy posing for photos.

 




  Script by- Prasenjit Paul


  Photos by- Kumar Shankar Roy


    Ramakrishna Mission NDP 

“Prasenjit did a magnificent job by penning down the entire tour & its events. It is often the case that I go through this article, so thought of publishing it on my blog in order to have other members reminisce.” 


Read more...

When Emotions was unleashed by Cricket

Tuesday, May 19, 2009

Needless to say, IPL 09 has been a real source of disappointment for Kolkata. I won't tag KKR's performance as a "blunder throughout", but would rather like to put in the form that others were somewhat better. With all hopes of clinching to the semis were shattered, I would still stick to the TV for their matches inorder to appreciate their performance. But in most of the matches they got out-performed by the opposition. It was this game against Chennai Super Kings who managed to put up a humungous score on board and I's once again sensing a loss for KKR. However, McCullum (with his anxiety visible on his body language) started the innings with a superb series of boundaries & over boundaries, that contunied till the 11th over. He managed to establish the backbone for a win, where Hodge & Saha gave the finishing touch to victory. 

With 2 balls to go and 3 runs to fetch, I's already half way through the half dozen of my nails. When Saha was hitting the winning runs,somehow someone hit my emote chords and I's off to some form of tears.I's as eagerly waiting for a win as the whole team was. For me, KKR's win was still a treasure as it potrayed the quality of cricket we can play ,irrespective of the losses they faced. I'd call it the finest match KKR has won ever since the invasion of IPL. Hat's off to you guys! You can still snatch wins keeping aside the criticism and barriers. Finally with some form of biasness special credits to Wridhiman Saha, who has proved his mettle as a batsman.

Stunners:  
    McCullum   81 (48)
    Hodge*     71 (44)
    Saha*        25 (13)


Read more...

ZooZoo's get their deserving Accolade!

Monday, May 18, 2009


With the advent of the new chain of tv commercials from Vodafone, the Zoozoo's  finally got their deserved rating. Vodafone "Make the Most of Now" campaign has penetrated the viewers a lot during this IPL session. Here's a direct feed from Advertising Age, which talks about the Top Viral Ad Campaign! 


"For the first time since Visible Measures and Ad Age started publishing a viral video chart, a new campaign has nabbed the top spot. With 785,160 views, Vodafone's "Make the Most of Now" makes its debut as the week's most watched.As a reminder, Visible Measures tracks viral campaigns for this chart; in some cases, a campaign can include multiple videos. In the case of "Make the Most of Now," Vodafone created several short videos, all of which are being measured."

Here's the Zoozoo pack! No matter how often you watch them on TV, you'll never be bored of their Histrionics.... 

                                        

To find more about Zoozoo's peep into http://www.vodafonezoozoo.in/

Read more...

Linux Partition demystified on Windows

Wednesday, May 13, 2009


It was a tedious task to access files from my linux partition through Windows! I's looking for some post that would give me the set of commands needed to  mount an unknown partition on Windows. Finally, this small app, gave me the relief...  Using Ext2 IFS for Windows I can assign a drive letter to my ext2 partition and can access any files without the hassle of rebooting to Linux. 

In addition it facilitates "write" operation on the ext2 partition using simple copy,paste.  Infact if you are running out of disk space, you can improvise on the swap space that is created during linux installation. The swap space can similarly be assigned a drive letter for easy access. 

All's required is a 1.39MB download for this freeware. Just follow the link and get those unknown chunks recognised in Windows! 

Read more...

One Man's Meat is Another Man's Poison

Friday, March 20, 2009

Ironically this Idiom also applies for software giants. As for instance my trial run of virus scan using Kaspersky Internet Security yielded a weird result. It listed almost all the files in the Norton's Folder as Worms & Threats!

3/17/2009 12:34:18 AM Detected: Virus.Win32.Alman.b C:\unzipped\Norton Antivirus 2003 Pro\Norton Antivirus 2003 Pro\Support\Edisk\NED.EXE
3/17/2009 12:34:29 AM Detected: Virus.Win32.Alman.b C:\unzipped\Norton Antivirus 2003 Pro\Norton Antivirus 2003 Pro\NAV\UPSWPLUG.EXE
3/17/2009 12:34:32 AM Detected: Virus.Win32.Alman.b C:\unzipped\Norton Antivirus 2003 Pro\Norton Antivirus 2003 Pro\NAV\Rescue\Rescue32.exe
3/17/2009 12:34:32 AM Detected: Virus.Win32.Alman.b C:\unzipped\Norton Antivirus 2003 Pro\Norton Antivirus 2003 Pro\NAV\Rescue\Setup.exe
3/17/2009 12:34:34 AM Detected: Virus.Win32.Alman.b C:\unzipped\Norton Antivirus 2003 Pro\Norton Antivirus 2003 Pro\NAV\Rescue\_ISDel.exe
3/17/2009 12:34:35 AM Detected: Virus.Win32.Alman.b C:\unzipped\Norton Antivirus 2003 Pro\Norton Antivirus 2003 Pro\NAV\MSSHLIB\Setup.exe
3/17/2009 12:34:37 AM Detected: Virus.Win32.Alman.b C:\unzipped\Norton Antivirus 2003 Pro\Norton Antivirus 2003 Pro\NAV\MSSHLIB\_ISDel.exe
3/17/2009 12:34:44 AM Detected: Virus.Win32.Alman.b C:\unzipped\Norton Antivirus 2003 Pro\Norton Antivirus 2003 Pro\AdvTools\NPROTECT.EXE
3/17/2009 12:34:44 AM Detected: Virus.Win32.Alman.b C:\unzipped\Norton Antivirus 2003 Pro\Norton Antivirus 2003 Pro\AdvTools\Setup.exe
3/17/2009 12:34:46 AM Detected: Virus.Win32.Alman.b C:\unzipped\Norton Antivirus 2003 Pro\Norton Antivirus 2003 Pro\AdvTools\UE32.EXE

Read more...

  © Blogger templates Newspaper by Ourblogtemplates.com 2008

Back to TOP