July 2008 Entries
Hi, I started proper programming with Java in 2001 and since then I was knew that Java is a language that has "Pass by value" for primitives and "Pass by reference" for the non-primitive types. I left programming in Java in 2004 and started using C#. Since last few months again I started part time development in J2ME and last week I came across a very interesting thing. I was sending a byte array as a parameter to a method and expecting to get the same parameter as an initialized array but I don't...
Hi, Today I had to find default browser in my client's system and open my page in it. You can find your default Browser Path from HKEY_CLASSES_ROOT\http\shel... and Open your page in the value stored against command using System.Diagnostics.Process.
Hi, I was looking a simple way to be able to encrypt and decrypt my Connection Strings. I searched in the net but all i could find was Encrypting and decrypting Connection Strings using aspnet_regiis utility or by creating custom Encryption and decryption classes. Finally I could a very good way to do encryption and decryption using .NET class library. You can find the video of the tutorial in asp.net , Videos section (Video is called ASP.NET Tips and Tricks) or read it HERE . I am placing a sample...
Hi, After spending few years in IT I learned that we can find a lot of coders to code in projects but what we cannot find is GOOD CODER. By Good coder I mean someone who has good understanding of the problem in hand and can file a solution for it based on the best possible way. Further who can code based on standards and keep in mind best practices. I have been using FXCop for a long time and I love using it in my projects. Yesterday I came to see something new (for me) called StyleCop. I liked the...
Hi, After a long time, I am back. I have decided to update this blog more frequently. Since I am in hurry the only point to add here for today is If firewall of your system is on, you cannot access your system's drive even with Administrative rights in Domain. Till you enable file/Printer sharing in your system. after enabling it, port 137 (Port for UNC) will be opened in your system and administrator or anybody with proper rights can easily access your system with \\SYSTEM-NAME\C$ etc...