Sunday, December 23, 2007

Beginner Linux comedies!

This was left on a terminal by my sister trying to do something :)
[home@localhost ~]$ mount root in big ways
mount: only root can do that
[home@localhost ~]$ mount yourself
mount: can't find yourself in /etc/fstab or /etc/mtab
[home@localhost ~]$ mount ok whatever
mount: only root can do that
[home@localhost ~]$
You don't need to be a linux geek to understand this!

Tuesday, December 04, 2007

Another break!

It seems to be quite a long time since I have been shown some mercy and given a few days of break completely (I think about an year now!). Well, as usual I am feeling that I am really jobless and tend to keep watching something on the TV or the computer all the time!
Some amusements that I have turned to this time have been the Serials! After so much criticism of the Tamil Mega Serial community, I see everyone (almost) around me watching some serial (English) claiming this to be something different! Well, Everybody Lies :P.
That must give a clue to one of the serials that I am watching. Others in the line are Heroes (frantically waiting for the latest episode to download completely) and Gossip Girl. The genres are all different giving an overall feeling of not wasted time (I have managed to find the elixir of life!)
Another important part of my life this time is the Unlimited Internet connection that I got @ home. Man, I love it! Watching so many people coming online all day with similar states as mine feels good.

Till the next blog,
xoxo
Karthik

Sunday, December 02, 2007

A light moment

I was reading The Metro Plus in the usual morning. I haven't noticed this column before but this joke really made me enjoy it :-) Here it goes....

In Alaska's National Forests, a tourist guide was giving a talk to a group of tourists about hiking in grizzly bear territory: "Most bear encounters occur when hikers, being extra quiet on the trails in hopes of viewing wildlife, accidentally stumble into bears. The resulting surprise can be catastrophic." To avoid this, he suggested that each hiker wear tiny bells on their clothing to warn the bears of their presence. "Also," he said further, "be especially when you see signs of bear in the area, especially when you see bear droppings."
One tourist asked, "How do you identify bear droppings?"
"Oh that's easy," the guide explained, "it's the ones with all the tiny bells in them!"

Tuesday, July 10, 2007

Can a C code give different outputs on different runs??

At first glance on the topic, your answer immediately would be "NO!!"

Let me clarify my situation to explain the topic better. I am talking about a C code that used network sockets provided by the OS. Many such clones of the program are running simultaneously and these interact among themselves using the BSD sockets.
I really got expected execution sometimes by just repeating the whole process of execution just one more time for confirmation... And what happens, it executes properly!!
With all these experiences of mine, I thought about jotting down some common factors that may affect socket programming..
Pointers for socket programming:
  • Never give up with just one wrong execution of the program. Try at least 2 times.
  • Carefully choose your buffer sizes. No error is flagged and this is a very easy way of losing data while transmitting or receiving.
  • DON'T flood the network with packets continuously with packets from different sources to different destinations. It just does not work!! Give some breathing time for it to transmit the packets successfully.
So... Go on and give your best network code in C :)

Intern Life

Its almost been the tail end of the topic concerned when I am writing this.. But this is when I actually made this blogspot working with its new features and all that it claims...
Coming to the point, I got through into Summer Fellowship Programme through a selection process and was then allotted a professor to work under. And it happened to be Computer Networks under which I was supposed to work. It is such a new and growing topic with people around the world finding things that will in the future make your networks work faster and more secure! The curriculum part of the area showed no hint to the vastness of the topic.(boooooh :( )
Well it went on and I was supposed to write C code to simulate some protocol.
I am feeling too sleepy to continue now... Maybe I will try to finish with some more posts within this week....
Keep reading.... :)