//Cloud notes from my desk -Maheshk

"Fortunate are those who take the first steps.” ― Paulo Coelho

Single instance of an application in C#

Hi,
To achive single instance of an application in C#, use the following code:
 
[STAThread]
static void Main()
{
bool blnIsRunning;
Mutex m = new Mutex(true, "FirstLoad", out blnIsRunning);
if(blnIsRunning)
{
    Form1 mainForm = new Form1();
    Application.Run(mainForm);
}
else
{
    MessageBox.Show("Another instance is already running.");
}
}
Note: Import System.Threading
Thanks to Jayveer for Sharing this…By the way anyone knows how to create more than one instance of an application(any application)  with any tips/tools to crack this lock. I mean I have seen few application wont allow you to create multiple instance, but i want to unlock it..any idea regarding this..???
 
Mahes

2006-08-29 Posted by | .NET General | Leave a comment

How to disable a STOLEN mobile phone?

 
To check your Mobile phone’s serial/IMEI number, key in the following digits on your phone: *#06#  ( supports NOKIA )
  A 15 digit code will appear on the screen. This number is unique to your handset. Write it down and keep it somewhere safe. when your phone get stolen, you can phone your service provider/cybercrime cell and give them this code. They will then be able to block your handset so even if the thief changes the SIM card, your phone will be totally useless.
You probably won’t get your phone back, but at least you know that whoever stole it can’t use/sell it either. If everybody does this, there would be no point in people stealing mobile phones.

2006-08-23 Posted by | 100 % Fun...[really Worth] | Leave a comment

Windows Vista release resheduled ..?

Hi,
No, But MS earlier this year delayed the release of Vista until January, missing the key year end period for computer sales.
Vista is one of four major Microsoft products to hit the market in the year ahead, Chen(MS) said.
Development of the four products –
"Long Horn Server," "Office 2007," "Vista," and Exchange Server" – had cost Microsoft $20 billion, he said.
 
Guess how much in Indian currency > 90,000 – crore
 
Ok. Finally when is the Vista release : NOV 2006. I’m looking for this release greatly…how abt you.? did you tried the newer version released for Testing..?
Mahes
Take the simple quiz and grab a copy of beta VISTA CD. http://www.microsoft.com/india/offers/vista/quiz.aspx

2006-08-23 Posted by | 100 % Fun...[really Worth] | Leave a comment

DB2 Viper Challenge from IBM – Win surprise Gifts

hi all,
         Today I recieved my welcome CD and Surprise gift( mini hot flask ) from IBM for registering DB2 Viper Challenge contest.Here is the steps to take part in this contest to win cool goodies !!
1.What is DB2 Viper ? Code name for – DB2 9 hybrid data server
2.Industry’s first hybrid data server managing data from both relational and pureXML® data 
3.Focussing XML and the next generation of SOA based business solutions
The challenge is open to only 1500 qualified registrants and First 100 responses will receive a MP3 player and Free DB2 certification voucher for DB2 fundamentals certification exam valued at estimated Rs. 2,700 (US $60).
 
Eligibility :  Only residents of India can participate in the DB2 Viper test drive Challenge
 
Take part in DB2 Viper test drive Challenge  – Win cool prizes
 
Tonight I’m going to explore the CD’s to crack the second round of this contest.
all best
Mahes

2006-08-07 Posted by | 100 % Fun...[really Worth] | 1 Comment

Decided to giveup TV – Yes

Finally decided to giveup TV..?
 
Yes, watching Television affects my productivity a lot. I’m able to see the difference for the last two month. Infact I’m not able to allot time for my novels or books or to plan for the day. I’ve completly stopped touching the books in Room after we bought the TV. How could this affect once individual Productivity in his personal life and office.
personal :-Increased blood pressure,eye strain,lack of interest,laziness etc
 
Article source :http://www.tvbgone.com/rants.php ( turn Off your television )
(1) You’re staring at a piece of furniture!
People on TV are not your friends. They’re not in the room with you. You are alone in the dark, staring at a plastic box. Think about it. This is like a science fiction horror story; but it’s really happening. People have stopped living as humans and connected themselves to machines instead. You’re only going to live for 75 years, if you’re lucky. How much time do you have left? Enough to spend one whole day every week with fake friends, watching their imitation lives instead of living your own?
 
(2) TV doesn’t give you experiences, it takes them away!
On your deathbed, what if someone could give you back those ten years of television? What if they said you could have another ten years to be with the people you love, find new people, do things differently. What would you say?
Remember: Nobody ever lay on their deathbed thinking "gee, I wish I had spent more time watching TV/reading blogs/at the office."
 
if anyone feels this post makes sense, drop a comment 😉
 
Mahes
src : from various sites
 

2006-08-07 Posted by | 100 % Fun...[really Worth] | 1 Comment

Better PC Performance – Part I

hi all,
 
Most of my friends use to ask about how to tweak our PC for better performance. Here is the regular stuff i used to check/do for myself.
 
My usual weekend Routine for better performance :
————————————————————————————————————-
1.Clean desktop files, replying draft mails and keep desktop neat and clean with new wallpaper friday evening. so monday morning
you’ll fell fresh 😉
2.Clean internet related cookies, temp files, URL’s, history, typed urls etc
3.Check "Msconfig" for any anonymous file startup
4.Cleanmgr command – cheap utility
5.To open my computer faster
  In Windows Explorer> go to tools > folder ptions > view > disable automatically search for networl folders and printers.
6.Regedit >
          H_C_U > control planel > desktop > WaitToKillAppTimeout( set 1000 )
          H_C_U > control planel > desktop > HungAppTimeout ( set 1000 )
          H_Users> control planel > desktop > WaitToKillAppTimeout( set 1000 )
          H_Users> control planel > desktop > HungAppTimeout ( set 1000 )
7.Remove unwanted file Sharing
8.Remove unwanted autoupdates in media player, Jbuilder, Real Player etc
9.Stop the Error reporting options from Mycomputer Properties
10.Remove the unwanted shortcuts in Desktop’s and in startup startmenu’s (including winzip,winamp,adobe acrobad reader etc) – right click and
delete it
11. cmd > FSUTIL behavior set disablelastaccess 1
12. check in task manager and useless services at startup from Services.msc ( ex : fax, FTP publishing,TAPI,Wireless Zero Configuration etc )
any time you can start when you need. Depends on your usuage.
13. Run > Regedit
   Path : HLM > Microsoft > windows > Currentversion > Run { delete the unwanted startups here also }
14. Disable sound option in Messanger.
15. Remove the unwanted icons and lables in Internet explorer. Dont allow
16. Organize your files with Proper folder name and delete the mutiple copies or backup which is outdated/useless.
17. I highly recommend system mechanic which will perform all this tricks without taking much time
——————————————————————————————————————–
These are list of things I used to do for tweaking the performance. I recommend to refrain from this tips if you are a new bie to computers.
Pls let me know if I missed out anything/ anyother interested stuff is there to perform !!
Happy tweaking !!
Mahes

2006-08-07 Posted by | Power Toys - Personal | Leave a comment