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