Not able login to windows azure with microsoft credential, not redirecting properly


If you have Microsoft id and you want to login to Microsoft azure, it will take hell lot of time to redirect from the authentication site. Here is the solution : just open one more tab and hit the windows azure, it will work fine. funny but it solves the problem.

Mounting file system permanently in cygwin



Problem:The “mount” command is built for mounting USB devices and the temporary devices, So it will usable for per user session.
If user logout from the user session, you can’t access that mount drive again.

Work around :
Add the mount command on “.bash_profile” file ( available at you home directory)
.bash_profile will execute every session, It is like permanent mount.
RISK: If user run the mount command second time, get the error message that it is already mounted, because that our script may fail.

Solution: creating soft links (shortcuts) instead of mounting
Ie. As we are using the cygwin , “ln –s” command instead of “mount”
The command is: “ln –s x: /usr/local/share/data”

It solved my problem, let me know if you have any other thought :)

Speed up solution loading time in Visual Studio 2005


Your Visual studio taking long time load your project ?

just delete content of following folder (and keep deleting everyday…)

C:\Documents and Settings\\Local Settings\Application Data\Microsoft\WebsiteCache

More information: http://groups.google.com/group/chromium-dev/browse_thread/thread/b181f59d9d445fa1?pli=1

http://robertbogley.wordpress.com/2007/09/19/how-to-speed-up-loading-time-in-microsoft-visual-studionet-2005-projects/


Killing process thread in dot net

As of i know it is not possible to kill process thread directly in dot-net.
example code:
Process p = Process.GetCurrentProcess();
foreach (ProcessThread t in p.Threads)
{
if (t.Id == 1111)
// u cant abort this tread, abort method wont available for this thread
}

So how can i kill this thread? is it possible? Yes i did this using win32 programming

My Code: i declare below codes.
[DllImport("Kernel32.dll")]
public static extern Int32 OpenThread(Int32 dwDesiredAccess, Int32 bInheritHandle, Int32 dwThreadId);
[DllImport("Kernel32.dll")]
public static extern Int32 TerminateThread(Int32 hThread, Int32 dwExitCode);

So that i call these funaction to kill any thread :) like ,
Int32 threadHandle = OpenThread(0x1F03FF, 1, t.Id);
TerminateThread(threadHandle, 0);

Please let me know if you know any other method .

generating the code using xsd

path/xsd .exe FilePath.xsd /classes /namespace:

example :

"C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\xsd.exe" "Merlot XMLSchema.xsd" /classes /namespace:RightFax.Server.Archive.Utils.Resources

creating log from installshield exe/msp

msiexec.exe /p "C:\Documents and Settings\qa\Desktop\8.3 Patch.msp" /l*v c:\log85gold.log

if you already have exe then try below one :
"8.3 SP2.exe" /v"/l*v C:\LogFile.log"

How to run installshield MSP as EXE

msiexec.exe /p "full path to the .msp file\PatchPackage.msp" REINSTALL=ALL REINSTALLMODE=omus

Hide a Drive

If you don’t want other users stumbling over a drive while browsing the computer through Explorer, this tweak may help out. 

Although this tweak will render the drive invisible in Windows Explorer, it will still be accessible through Windows’ search utility, as well as other third-party file managing applications. 

Microsoft Office applications will also be able to access the cloaked drive with no problem. 
To cloak a drive, open up regedit and go to HKEY_CURRENT_USER/Software/Microsoft/Windows/
CurrentVersion/Policies/Explorer. 

Create/modify the DWORD value “NoDrives” to match a corresponding drive letter you wish to hide. 

A: 1; B: 2; C: 4; D: 8; E: 16; F: 32; G: 64; H: 128; I: 256; J: 512; etc. To hide multiple drives, just add the values together and enter the sum as the value for the DWORD value “NoDrives”. 

To hide all the drives, just enter the value 67108863.

Hope it is useful for u..

Dog got lost

Your dog got lost in one of the 17 rooms arranged next to each other.
There is a small channel between two adjacent rooms thorough which
that dog can pass. There's a channel between 1-2, 6-7, 7-8, 16-17 and
so on. There is no connection between room # 1 and room # 17. They are
situated at the two ends.

Your aim is to search out the dog in the least number of days. If you
are allergic to dogs or do not like dogs; it doesn't matter. You can
change that noun to anyone whom you love very much and would like to
find out as soon as possible. But, let me continue with that dog in
his problem. (A gentleman has advised long ago ==> Try to become that
man that your pet dog thinks you to be. The world be a real wonderful
place then.)

You can check any 2 rooms in the day time. Please, keep a note that
you cannot perceive if the dog is any of the adjacent rooms from that
particular room in which you are in for checking.

The dog also loves you and tries to find you. But, primarily it is
more active during the night. So, every mid-night it moves either one
room to the right or left. The dog is random in selecting if it would
move right or left and it doesn't believe in any kind of mathematics
or strategy.

You again come and get the opportunity to check any of the 2 rooms
during the day when the dog is waiting silently in its present room
for your visit.

What should be your strategy to find out your lost dog in the least
possible number of days?