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.... :)

Thursday, May 25, 2006

Project - Started at last

The IIT-M project that i was very much expecting has finally come off to a start..
The results were announced a day before we were supposed to report in iit.
The main day came- we were all so tensed and eager to get to the processor in hand.
We had to cover almost 2kms inside the campus to get to the computer science and engineering dept which was clearly hidden off from view by other buildings and ofcourse trees and lots of it.....
The professor then told us that he was too busy that he could not start it today and told us to return on monday- NICE START!!!
Hope the project starts off without much delay like the results soon.............

Sunday, May 14, 2006

Project!!!

Its over with second year and each of my friends keep talking about some project or ipt that they are doing.
Then i learnt that this was important if u go for higher studies or even jobs as it keeps you occupied and also gain some experience in the subject.
Then the work for searching for projects came as a challenge.
Many emails were sent to numerous faculties around the nation in respectable institutions for projects.
Just then did my department(the great comp sci.) come up with this idea of sending their students for a hardware(indegeneous x86 processor development) project in IITM. As the name had its say, i wanted to get this project for sure and also the location in my hometown was an added advantage.
Then came the selection test for the project. Questions were like the IIT-JEE, maybe the name itself carries its standards. You either know the full solution or u know nothing. Ok got over with the test - then what??

The results part
Due to some unavoidable reasons as the departments puts it to us, our results have not yet been declared for 3 weeks from the test. Our holidays have started and many of my friends have started their projects. Well me, iam just sitting plain dumb at home not knowing what to do....
Thank God that at the last moment, i got some feeling and got another project from another of my faculty so that i can spend my time atleast knowing about something.
This is the story of 1 of around 20 students who took the test. God knows what the others will say when asked about it!!!
God save my department and our Excellent HOD!!!!!

2 years in college

Two years have passed since i joined this prestegious intstitution NITT and i have changed a lot from my earlier form.
I did not feel the time passing by in college as we enjoyed it to our most...
Now i am at the half way point..
Till now, college was a change from school but now i have got used to it.
From now on, i have things to concentrate upon in college like higher studies preparation GRE...

Happy Blogging....

Friday, July 15, 2005

Myself


To start off my occupation of Blogging, I feel right to tell more about MYSELF.
Firstly, I am N. Karthik Swaminathan
I came into being into this world at the time of around 1830 hrs on 12th May 1987 in a Modern Village known as Chennai(Madras), somewhere in India.
By this time u would have calculated my age using your extremely mathematical brains at being 18(as in 2005).
I did my school in Trichy and then in Chennai under a So-Called prestigious school - P. S. Senior Secondary School.


After completing my schooling in Chennai, God decided to take me back to the place where I started my schooling to start my college-ing in 2004.

I got admitted into the famous department of Computer Science and Engineering in National Institute Of Technology (NIT) formerly known as Regional Engineering College (REC) in Trichy for doing my Bachelor Of Technology Degree.

I took Computer Science because I totally feel that it will fulfill my wishes in the field.

I am now (2005) doing my 2nd Year of college.

I have been somewhat proficient in this field since Higher Secondary school and I hope to increase this knowledge in this subject with the help of this degree.

Coming to the Next part – About my family.

Our family includes my Father, Mother, my Little Sister and of course ME!

My father is in the Accounts field while my mother is a Homemaker. My sister is still out doing her schooling.

My college being in Trichy, bit near to Chennai often keeps me away from spending the weekends in hostel. I come to Chennai and spend my weekend going around Chennai with my friends, family for movies, etc.

The 350km gap between these places does feel very small after so much shuttling between.

During my free time, I read novels, do some stamp collecting, though I don’t have so much knowledge about it. I watch TV a lot for movies, comedy scenes and other programmes in English and Tamil. My favourite movies recently are The Batman Begins, Anniyan, Constantine, etc. I also like programming in computer languages a lot that when I start on a new program, I never feel the time running around me! I also do some crafts sometimes, those that come in a magazine called Chutti – they are really cool. Apart from this, I listen to music when I am free. I mostly listen to my favourite English and Tamil songs again and again. My favourite English albums are Eminem, Back Street Boys and Michael Jackson. My favourite Tamil songs are Anniyan, Kandukonden Kandukonden, Laysa Laysa and Minnale.

I like driving the car on the highways at comfortable speeds listening to music.