Archive for July, 2010

Windows XP Mode

Posted: July 27, 2010 in OS
Tags:

I have got a situation where I need 32-bit machine to connect to my office enviroment from home. Now a days all new machines that are available in market by default comes with 64-bit and with Windows 7 Home Premium OS. After waiting for longtime I have decided to upgrade my laptop to Windows 7 Ultimate so that I can install Windows XP Mode (not supported on Windows 7 Home Premium) which will give me the 32-bit environment. I guess this will void 1 year warranty of my laptop and we may not use the technical support due to upgrade of default OS.

Anyways I am happy with the smooth upgrade. I am surprised, it just took 10 mintues to upgrade and interestingly all my previously installed softwares are running fine after upgrade.  You can follow below steps if you want to install XP Mode …

1. Ugrade OS using Windows Anytime Upgrade,  which you can find it through programs & file search on Start menu. I have used Ultimate license key from my MSDN subscription

2.  Follow and download the updates from http://www.microsoft.com/windows/virtual-pc/download.aspx link & install them in sequence.

3. You can install latest IE (default comes with IE6) & other browsers.

4. For security, install Microsoft Security Essentials from http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=e1605e70-9649-4a87-8532-33d813687a7f link.

Globalization

Posted: July 27, 2010 in C#, Globalization
Tags: ,

Saving date for specific culture …

System.IFormatProvider format = new System.Globalization.CultureInfo(“en-US”, true);
DateTime dt = DateTime.Parse(“Sun Feb 01 00:03:43 2009”, format);

or

DateTime dt = DateTime.ParseExact(“Fri Aug 01 09:03:43 2003”, “ddd MMM dd HH:mm:ss yyyy”, new System.Globalization.CultureInfo(“en-US”, true));

DateTime.Parse(“Sun Feb 01 00:03:43 2009”) will parse the date string based on the current user culture which will fail the conversion for some clutures. So it is good to save date with some specific culture.

ParseExact – parses to specified format.

Developers SDK

Posted: July 16, 2010 in C#, Dev Tools
Tags: ,

Facebook C# SDK –

Useful for integrating sign up, Address Book Importer, content sharing/sync, analytics … etc

Developer’s Blog:

http://developers.facebook.com/blog/post/395

Facebook – Source:

http://github.com/facebook/csharp-sdk

swfobject – Flash

Posted: July 2, 2010 in Flash
Tags: ,

http://code.google.com/p/swfobject/