Tuesday, February 17, 2009

Steps to Install MySQL & Configure Max_Packate_Size

1. Install mysql-5.1.31-win32.msi
2. Install mysql-gui-tools-5.0-r16-win32.msi
3. Open Start >Programs >MySQL > MySQL Administrator
4. press control, click on skip
5. Select Startup Variables
6. Select Advanced Networking Tab
7. Under Data /Memory Size check Max.packet size & change 1 M to 100 M
8. Apply Changes

Click to Download MySQL.


Steps to install Entity Framework for Visual Studio 2008 (Windows XP)

Step 1. Install VS90-KB945282.exe   from http://go.microsoft.com/fwlink/?LinkID=104985 

Step 2. Install Entity Framework Beta 3  -- EFB3SetupX86.exe    from Microsoft Downloads

Step 3. Install Entity Framework Tools Dec 07 CTP  EFToolsSetupX86.exe from Microsoft Downloads


Advantages and Disadvantages of Self Hosting WCF Services

Advantages of Self-Hosting:

  • Is easy to use: With only a few lines of code you have your service running.
  • Is flexible: You can easily control the lifetime of your services through the Open() and Close() methods of ServiceHost.
  • Is easy to debug: Debugging WCF services that are hosted in a self-hosted environment provides a familiar way of debugging, without having to attach to separate applications that activate your service.
  • Is easy to deploy: In general, deploying simple Windows applications is as easy as xcopy. You don't need any complex deployment scenarios on server farms, and the like, to deploy a simple Windows application that serves as a WCF ServiceHost.
  • Supports all bindings and transports: Self-hosting doesn't limit you to out-of-the-box bindings and transports whatsoever. On Windows XP and Windows Server 2003, IIS limits you to HTTP only.

 

Disadvantages of Self-Hosting:

  • Limited availability: The service is reachable only when the application is running.
  • Limited features: Self-hosted applications have limited support for high availability, easy manageability, robustness, recoverability, versioning, and deployment scenarios. These scenarios have become a standard in last few years. Such features are provided by the WAS (Windows Activation Service) which is a part of IIS7 (delivered with Vista and Win2008). This hosting mechanism allows you to host the service by using of protocols like MSMQ, HTTP and TCP. 

Saturday, February 07, 2009

Google tracks your Eyes

You: What??!!!! Are you crazy???????

Me : No, I am not.

And here is the explanation why I am not crazy. The User Interface research lab of Google is doing research in this area. It is very much helpful & crucial to get the attention of the user who is searching online.

When you search something on Google, where your eyes will be looking? First result? Bold letters? or Images in the results?

The Google Engineers are working on giving answers to the above questions and trying to utilise the findings to read the minds of the searchers.

Check out their official blog entry on it to know more.

Update: I found it in IBM research site as well. Check out Project Eye Gaze

Tribute to Hero's: G. H. Hardy
























Today is the birth centenary of G.H.Hardy, great English Mathematician.Hardy is most famous outside of mathematics for his "A Mathematician's Apology". book . The book, talks among other things about how mathematics is young man's game. He is also known for his association with Ramanujan and for being the person responsible for bringing him to Cambridge where his greatest mathematics unfolded.

Some quotes:

1. Asked if he believes in one God, a mathematician answered: "Yes, up to isomorphism".
2. "I have never done anything 'useful'. No discovery of mine has made, or is likely to make, directly or indirectly, for good or ill, the least difference to the amenity of the world."

Wikipedia :

It is never worth a first class man's time to express a majority opinion. By definition, there are plenty of others to do that.

A mathematician, like a painter or a poet, is a maker of patterns. If his patterns are more permanent than theirs, it is because they are made with ideas.


Quoting one of the mathematicians, C Snow, that Hardy worked with:


A mathematicians apology is, if read with the textual attention it deserves, a book of haunting sadness. Yes, it is witty and sharp with intellectual high spirits: yes, the crystalline clarity and candor are still there: yes, it is the testament of a creative artist. But it is also, in an understated stoical fashion, a passionate lament for creative powers that used to be and that will never come again. I know nothing like it in the language: partly because most people with the literary gift to express such a lament don't come to feel it: it is very rare for a writer to realize, with the finality of truth, that he is absolutely finished.

Hardy was a sort of purist mathematician, one who did his mathematics not for the sake of its applicability to anything, but for the sake of doing great mathematics. Hardy, along with Littlewood and Ramanujan, is also mentioned in Apostolos Doxiadis' "Uncle Petros and the Goldbach Conjecture". The link above gives a short summary on his life.

Friday, February 06, 2009

Indian Rail Server Name : Brahma


I was checking my train ticket PNR status on Indian Railway website, and one thing caught my eye. The Indian Railway site mentions the server name as Brahma. Check the screen shot.

If you find any thing similar on Indian Govt, sites let me know.

Thursday, February 05, 2009

Prime Numbers between 1 & 1000

2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73 ,79, 83 ,89, 97 ,101, 103, 107, 109 ,113 ,127,131, 137, 139, 149, 151, 157, 163 ,167, 173 , 179, 181, 191, 193, 197, 199, 211, 223, 227, 229 ,233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349 ,353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463 ,467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673 ,677, 683, 691, 701, 709, 719, 727, 733 ,739, 743, 751, 757, 761, 769, 773, 787, 797, 809 , 811,821, 823, 827 ,829, 839 ,853, 857, 859, 863 ,877, 881, 883, 887, 907, 911, 919 ,929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997

Friday, January 23, 2009

Tribute to Hero's: "Netaji" Subhas Chandra Bose


Today is 112 birth centenary of Netaji Subhas Chandra Bose.

Recent generations of Bharat [a.k.a India] have forgotten or neglected some of our forefathers who sacrificed everything for the sake of freedom of Bharat [a.k.a India].These freedom fighters have fought for so long and hard, we never equal such great persons. We should always remember them.

For detailed information about him, please visit

1. Netaji Research Bureau
http://www.netaji.org/


2. Video Clips from Netaji Research Bureau
http://www.netaji.org/vclip.html

Jai Hind

Monday, January 12, 2009

Swami Vivekananda : Warrior Saint


Today is the 146th birth centenary of Swami Vivekananda.This post is dedicated to him. The information about him is widely available so i don't write about him.

Happy Vivekananda Jayanti.


Thursday, January 01, 2009

New Year Celebration 2009: We Salute you

Keeping in mind about the recent Mumbai attacks and the sacrifices of our people, some of us didn't celebrate the New Year as other people were celebrating.We went to M.G.Road to light candles in memory of the people who laid their lives to save ours.

While returning back,one man met with minor accident and Kamakshi's parents Mr Krishna
KVS and Mrs Neelam, took that guy in auto to hospital and they left us near Hotel.

I had an opportunity to have dinner with Kamakshi, she is such a wonderful little girl, I thought if every girl is like that then there will not be any problems for India.I salute her and her parents as well, about their courage and service to society. It was really a memorable day of 2008.










Jai Hind

Thursday, December 25, 2008

How to Open Unfinished Torrent Downloads (BitComet)

Problem: 
1. You download a file through some Torrent Client like BitComet, it shows 100% but you can't open the file.
2. There is .BC! file in your system after Torrent download, which you can't open simply by renaming.

Reason : Because of missing/corrupt file pieces ( technically IP packet corrupt/missing) you can't open the downloaded file even after it says 100%.

Solution : All the Torrent files are signed with a Hash key, which helps in identifying the integrity of the file. Also you can go to "piecegraph" the file is 100% finished but still green and red dots instead of all blue. This indicates the pieces are missing or corrupt.

Below steps apply to BitComet, but the same concept can be applied with other Torrrent Clients as well.

1. Once the Client shows 100% Right click on the Torrent Task 
2. Select Manual Hash Check
3. Torrent Client checks the hash again with the original Hash key 
4. If it finds Hash Key mismatch it will again Requests the missing pieces
5. After missing/corrupt file download the Client shows 100%
6. Now you can open it.

Hope this helps.

Tuesday, December 23, 2008

Unproductiveness

Sometimes I just can't get anything done.

Sure, I come into the office, roam around, check my email every ten seconds, read the web and even do a few brainless tasks. But getting back into the flow of writing code just doesn't happen.

These periods of unproductiveness usually last for a day or two. But there have been times in my career as a developer when I went for weeks at a time without being able to get anything done. I was not in flow. I was not in the zone. I was not anywhere.

Everybody has mood swings, for some people they are mild, for others, they can be more dysfunctional.

It makes me think of those researchers who say that basically people can't control what they eat, so any attempt to diet is bound to be short term and they will always return back to their natural weight. Maybe as a software developer I really can't control when I'm productive, and I just have to take the slow times with the fast times and hope that they average out to enough lines of code to make me employable.

What drives me crazy is that ever since my first job I've realized that as a developer, I usually average about two or three hours a day of productive coding. One fellow worker mentioned me that he too can work productively for 2 to 3 hours a day.

Sometimes I feel guilty when I see how hard everybody else seems to be working, & I get about two or three quality hours in a day. But its not the days when I "only" get two hours of work done that worry me. It's the days when I can't do anything.

I have thought about this a lot, as per my understanding the productivity greatly depends on the work environment like Google or Microsoft Office.

Many of my days go like this:
(1)get into office
(2)check email, read the web
(3)decide that today I will work productively
(4)lunch time comes I go out for lunch, at hotel I think that once I go back I will do work
(5)Come back from lunch, read news paper
(6)Check email, facebook, read the web
(7)Finally decides to start working and realize that its already 8:00
(8)leave office

This reminds of Newton's law, An object at rest tends to remain at rest......
And over the years I have figured out what we have to do in such unproductive periods, the rule is simple, get started & stick to it............ once you get into the flow, its not too hard to keep moving as other part of Newton's law mentions it, an object in motion tends to move until and unless an external force is applied.........

What do you do in such unproductive situations?

Monday, December 22, 2008

Ramanujan: The Man who knew Infinity


Today is the 121 Birth Anniversary of Srinivas Ramanujan,a famous Indian Mathematician,who, with almost no formal training in pure mathematics, made substantial contributions to mathematical analysis,number theory,infinite series and continued fractions.Recently his contributions have found applications in crystallography and string theory.

In the memory of Ramanujan, Tamil Nadu every year celebrates 22 December as 'State IT Day'. His contributions to Mathematics are well known.The contribution of G.H. Hardy a famous mathematician is also equally important, but when some body asked him what was his biggest contribution to Mathematics, Hardy told, Ramanujan was his biggest contribution to Mathematics,such was the genius of Ramanujan.


Here is his brief Profile.

Profile

Born : 22 Dec 1887
Died : 26 April 1920
Birth Place : Erode, Tamil Nadu, India

Contributions to Mathematics :

1. Landau- Ramanujan Constant
2. Mock Theta Fuction
3. Ramanujan Prime
4. Ramanujan - Soldner Constant
5. Rogers- Ramanujan Identities

Applications of his contributions :

1. Crystallography
2. String Theory

I wrote this post to pay tribute to him & his genius.

Friday, December 12, 2008

Terrorist Attack on Mumbai

Readers of this blog may be wondering why i did not post any thing since from a long time. Its just that mind is not supporting to think beyond Mumbai attacks. What happened to India? Why still no action from Indian part?Why our so called leaders lost control of the situation?Why can't we the youngsters contribute to India? Why still we living like ostrich bird?What we can do to strengthen our country? Earning for our living is there but why can't we take some day of week and come up with action plans and clean up the system?It is evident that, now People are very very angry against Politicians and Corruption.

I know you too have many questions and many ideas that can help India.I thought about it and wanted something to do my part for the sake of India. In that process i registered a website called http://akhandabharat.org (Akhanda Bharat -- United India) and it has a forum at http://forum.akhandabharat.org . I request you to register and share your ideas and action steps that we need to take to strengthen our country. Whatever is under our control we will take those actions and try to bring golden days back to India.


Let us rebuild our nation.

"Jai Hind" "Vande Mataram"


Tuesday, November 04, 2008

Thought Recognition : Emergence of New Computer Interface

Yes, you read it right "Thought Recognition". You might have heard about Speech Recognition, Voice Recognition based Computer Interfaces, now it's time for Thought Recognition.

Imagine this, you are sitting infront of computer and you have a cap like thing around your head, & you want to type something (no you are not using keyboards), you think about it in your mind and that will be typed on screen without you typing anything.Feels interesting right?Recent advancements in the field of Neuroscience have lead many people into developing such kind of interfaces. Check out the following video.




Watch CBS Videos Online

Awesome, isn't it!!!!!!!!

Share your thoughts about it.

Monday, November 03, 2008

Cloud Computing the Next Big Thing?

There is a huge interest in Cloud computing these days. Last month i attended Google Developer Day, Google has already providing Cloud called Google App Engine, where developers can host applications developed in python.

Now it's Microsoft's turn, with their Azure Platform they are providing cloud services.

Let me know what you think about the latest trend like Cloud Computing of these big companies.

Intelligent Cloud

Friday, October 24, 2008

Leonardo da Vinci : The Man who knew



Almost Every one knows the famous Painting Mona Lisa, and thus Leonardo da Vinci.I was always fascinated by him & his ideas. I thought to write something on him.I regard him as the person who knew, he knew what he is doing and what is there in nature.



He was a scientist, mathematician, engineer, inventor, anatomist, painter, sculptor, architect, botanist, musician and writer. Many claim he was the smartest man to ever live, many claim he was the most talented to ever live on earth. He was a man whose curiosity was equaled only by his powers of invention and talent.



His ideas were way ahead of his time, the technology available at that time was not able to sustain his ideas.

How a Scientist Thinks?

..."Some time ago I received a call from

a colleague. He was about to give a student a zero for his answer to a
physics question, while the student claimed a perfect score. The
instructor and the student agreed to an impartial arbiter, and I was
selected. I read the examination question:

Question: show how is it possible to determine the height of a tall building with the aid of a barometer.

The student had answered, "Take
the barometer to the top of the building, attach a long rope to it,
lower it to the street, and then bring the rope up, measuring the
length of the rope. The length of the rope is the height of the
building.
"

The student really had a strong case
for full credit since he had really answered the question completely
and correctly! On the other hand, if full credit were given, it could
well contribute to a high grade in his physics course and to certify
competence in physics, but the answer did not confirm this.

I
suggested that the student have another try. I gave the student six
minutes to answer the question with the warning that the answer should
show some knowledge of physics. At the end of five minutes, he had not
written anything. I asked if he wished to give up, but he said he had
many answers to this problem; he was just thinking of the best one. I
excused myself for interrupting him and asked him to please go on.

In the next minute, he dashed off his answer which read: "Take
the barometer to the top of the building and lean over the edge of the
roof. Drop the barometer, timing its fall with a stopwatch. Then, using
the formula x=0.5*a*t^^2, calculate the height of the building.
"

At
this point, I asked my colleague if he would give up. He conceded, and
gave the student almost full credit. While leaving my colleague's
office, I recalled that the student had said that he had other answers
to the problem, so I asked him what they were.

"Well," said the student, "there
are many ways of getting the height of a tall building with the aid of
a barometer. For example, you could take the barometer out on a sunny
day and measure the height of the barometer, the length of its shadow,
and the length of the shadow of the building, and by the use of simple
proportion, determine the height of the building.
"

"Fine," I said, "and others?"

"Yes," said the student, "there
is a very basic measurement method you will like. In this method, you
take the barometer and begin to walk up the stairs. As you climb the
stairs, you mark off the length of the barometer along the wall. You
then count the number of marks, and this will give you the height of
the building in barometer units.
"

"A very direct method."

"Of course. If
you want a more sophisticated method, you can tie the barometer to the
end of a string, swing it as a pendulum, and determine the value of g at the street level and at the top of the building. From the difference between the two values of g, the height of the building, in principle, can be calculated.
"

"On
this same tact, you could take the barometer to the top of the
building, attach a long rope to it, lower it to just above the street,
and then swing it as a pendulum. You could then calculate the height of
the building by the period of the precession
".

"Finally," he concluded, "there are many other ways of solving the problem.

Probably the best," he said, "is
to take the barometer to the basement and knock on the superintendent's
door. When the superintendent answers, you speak to him as follows:
'Mr. Superintendent, here is a fine barometer. If you will tell me the
height of the building, I will give you this barometer."


At
this point, I asked the student if he really did not know the
conventional answer to this question. He admitted that he did, but said
that he was fed up with high school and college instructors trying to
teach him how to think.

The student was Neils Bohr and the arbiter was Ernest Rutherford.