July 2010 Entries

Detecting the Emulator in Windows Phone 7 SDK (WP7)

Today I had to write some code that would detect the Emulator we use to test WP7 Silverlight applications. For some reason though I had a really hard time finding the answer. Therefore I decided to post the solution here and to link the thread I finally did find which helped me find figure it out, which is this thread here. Solution: string DeviceTypeDetected = string.Empty; switch (Microsoft.Devices.Environment.DeviceType) { case Microsoft.Devices.DeviceType.Device: DeviceTypeDetected = "Real Device Detected!"; break; case Microsoft.Devices.DeviceType.Emulator: ...

Connected Show #33 – Dmitry’s Soapbox

In this episode, guest host Andrew Brust is back again, joining Dmitry & I to talk about all of the tech news from Microsoft’s Wordwide Partner Conference in Washington, DC. The trio talks about WebMatrix, Internet Explorer 9 Preview 3, Windows Phone 7, and the newly announced Windows Azure Appliance. A raging Dmitry also shares his poppin’ passion for HTML5. CLICK HERE TO LISTEN!

Converting RowVersion (aka TimeStamp, aka binary(8)

Today I was working with RowVersions (aka TimeStamp, aka binary(8)) and tried to update a table with a value I had retrieved and stored by doing select @@DTBS My stored notepad value was ‘0x0000000027A3CC07’ so I had run a query to update a table with it, but it didn’t work, the set value was different (‘0x3078303030303030’). Being puzzled I tried a few queries and all of them returned this unexpected result which explained why my update set the wrong value, examples: Queries select CONVERT(rowversion, '0x0000000027A3CC07') select CONVERT(timestamp, '0x0000000027A3CC07') select CONVERT(binary(8), '0x0000000027A3CC07')...

Bitlocker–Missing UI notification on encryption status & progress

Today I started Bitlocker (Windows 7 x64 bit OS) on an external drive but noticed something, the normal UI notification in the system tray that shows the progress indicator was missing. A bug? Perhaps. When BitLocker starts it takes up the majority of the drive space to do the encryption, so to me it was clear the encryption was in progress but I couldn’t figure out how far along it was without the UI element. Example: How I suspected encryption was still in progress (big red bar) To try and figure out what’s going...