A Django site.
October 5, 2007
» "Admin Command Prompt Here" Registry Hack

admin_prompt A neat (if not well known) feature of Windows Vista is the built in ability to do a "Command Prompt Here" by selecting a folder, keeping the shift key down and right clicking on the folder.  While this is neat, I've sometimes found myself needing an Command Prompt with full administrative privileges.

I stumbled upon an excellent tip from Randy Rants on how to get an elevated command prompt here

Personally, I like my admin command prompts to have a dark red background color so that I remember it is running with elevated privileges (see my previous post if you want a admin command prompt icon using this meme).  Anyway, my registry entires look something like:-

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Admin Comm&and Prompt here"
"NoWorkingDirectory"=""
"Extended"=""

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /t:4f /k \"pushd %L && title Command Prompt\""

Have fun - usual warnings about registry hacking and backing up etc. According to Randy this should also work for XP users who run with non-Admin privileges.

June 14, 2007
» All Your Disks Are Belong To Us

The Microsoft Anti-Piracy Team With the Trustworthy Computing initiative, we'd all thought the days of easter eggs in Microsoft products had died, however three enterprising young men from the Anti-piracy Team at Microsoft managed to get themselves included as part of the security hologram on the front of every copy of the Windows Vista media.  If you have a copy of Vista handy, take a close look at the color windows logos, in the outermost circles you will see two large rectangles with two small rectangles either side (about 1mm high).  If you zoom into these rectangles you'll either get a public domain picture of an old master, or the picture above of the folks that designed the hologram.  Good work fellas!  For more information, see the Windows Vista blog, the site of the guy who noticed this picture or the Engadget post about the story.

April 30, 2007
» Vista Admin Shell Icon

In Windows Vista, one of the first things I do on a new machine is create an "Admin Shell".  The steps I do are as follows:-

  1. Copy the shortcut of your favorite command prompt (PowerShell or cmd.exe)
  2. Rename the shortcut "Admin Shell" or whatever you want.  I use "Admin Shell" and then eventually the Windows, "Admin" keyboard shortcut works for it when I have use the computer long enough.
  3. Edit the shortcut properties.  (Right click, Properties).  In Shortcut, Advanced... check the "run as administrator" option. Then set the Colors, Screen background to be something that will let you know that this command prompt is running as administrator - I use 51,0,0 as the RGB value to give the shell a nice but slight scary red tinge.

The only thing that was missing was an icon to make this stand out more as my admin shell.  Here is a red version of the PowerShell icon that I just hacked together - enjoy (Right click, save as...)

File attachment: admin_shell.ico (72kb)

April 24, 2007
» Vista Top Tip: How to get Telnet Back

When debugging network issues, I tend to fallback to good old telnet as a way of opening a port to a machine.  Being able to do "telnet myserver 80" to check if a web server is up, listening, resolvable and no firewalls getting in the way helps you figure out where the problem is.

I'm staying in a hotel at the moment, and struggling with hotel WiFi.  While debugging the network problems I realized that the telnet client is not installed by default on Vista.

To install it,  go to Control Panel, Programs, and then "Turn Windows Features on or off" under "Programs and Features".  Scroll down a bit and then Telnet Client is available.

March 28, 2007
» "You are not running Vista" Remote Desktop warning annoyance

Remote Desktop Connection Dialog: Remote Desktop cannot verify the identity of the computer you want to connect to. This problem can occur if: 1) The remote computer is running a version of Windows that is earlier than Windows Vista. 2) The remote computer is configured to support only the RDP security layer. Contact your network administrator or the owner of the remote computer for assistance. Do you want to connect anyway? When running Remote Desktop from Windows Vista I've been getting the following error popping up everytime I connect.  It is a little alarming and I've never really sat down and figured out what this was telling me - basically I translated this to mean "Vista has a new, more secure Remote Desktop client, you are talking to an older version of the server - is this ok?".  I've been meaning to figure out how to make this dialog go away for a while and was just assuming I was dumb.  However a couple of few weeks ago I had the pleasure of attending the MVP Summit and every single Microsoft employee that used remote desktop to talk to his or her machine somewhere else on campus also got this dialog pop up - so I figured that I wasn't being that dumb after all - or maybe just as dumb as everyone else, which considering the company I was keeping at the time I would take as a compliment.

It took me a while to figure out how to get rid of the dialog when connecting to a known older version of the remote desktop server.  When doing the connection, click on the "Options >>" button and then the "Advanced" tab.  In the "Server Authentication" section, change the authentication option to "Always connect, even if authentication fails".

Then, after a bit of digging around I found this great post from Scott Forsyth who points out that there is a registry key you can also use to control this behavior, add a DWORD value called AuthenticationLevelOverride to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Terminal Server Client and set it to 0.  You will no longer get prompted and the Server Authentication option in the advanced tab will be grayed out.  Obviously that reduces the security when remoting to your machine so it is up to you if you want to take that risk to save you the annoyance of seeing that dialog any more.

February 20, 2007
» Bluetooth support on Dell Precision M70 with Vista

Bluetooth Logo Today, I received a fancy new Microsoft Wireless Notebook Presenter 8000 mouse courtesy of Microsoft.  This is a Bluetooth enabled mouse with some useful extra buttons for slide advance and a built in laser pointer when presenting.  It is a nice mobile mouse that, while not without flaws, I would still recommend.  Anyway, I wanted to use my Dell's built-in Bluetooth model (the Dell Wireless 350 Bluetooth Module) rather than the supplied Microsoft Bluetooth USB dongle.  It was then that I noticed my Bluetooth wasn't working properly under Vista - when I searched for new devices, it just wasn't finding any.

I had a bit of a search around, and people were suggesting all sorts of nasty hacks.  In the end, I came across the new official Dell drivers that were posted on the 26th January 2007 so I'm making this post to hopefully get caught in the search indexes and help out a few other fellow early adopters.  To download the Dell Wireless 350 drivers for Windows Vista - visit the official Dell site.  The install flashes the Bluetooth chipset and installs all the stuff necessary to get your Bluetooth up and running.  I also downloaded the Reliability update for USB stack in Windows Vista 32-bit (KB925528) (not sure if I needed to or not, it just sounded like a good thing) and the latest version of Microsoft excellent IntelliPoint software.

February 19, 2007
» Windows Vista Tip: Quick way to access Network Connections

One of the things I've always enjoyed about Windows 2000 -> Windows XP -> Windows Vista is that no matter how much the UI changes, some shortcuts just seem to stay around allowing me to quickly navigate around the system.  One that has survived is right clicking on My Computer and then selecting "Manage" - which takes you to an MMC console with most of the commonly used snap-ins pre-loaded.  However, one I used a lot more has disappeared.  I used to to right-click on the "My Network" shortcut in the start menu and select "Properties".  That would take me to the network connections wizard.  In Vista it takes me to the Network and Sharing Center screen (possibly helpful for my Dad, but not what I was after).Network and Sharing Center

From the dialog, you can press "Manage network connection" and it takes you to the good old network connections dialogNetwork Connnections dialog in Windows Vista

However, I wanted a quick way to access this from my keyboard, so I used a tactic I've found I've been doing a lot with Windows Vista - I create a shortcut to it that I placed in my Programs menu.  The trick was to find the control panel file responsible for this dialog.  After a bit of digging I tracked it down to be "%SystemRoot%\System32\ncpa.cpl".

Here is a screenshot of my shortcut settings in case you want to do the sameNetwork Connection shortcut settings

January 31, 2007
» Literally, the Coolest Vista & Office Launch Event

It's always fun when the products with deep pockets launch, even more so when they launch at the same time. For example, see the Human billboards, online games, and even BillG on The Daily Show.  

But for what has to be literally the coolest event, take a look at Digital Ice House in Toronto, which is featured on the Canadian Developers blog

To celebrate the consumer launch of Windows Vista on January 30 2007, Microsoft Canada built a Digital Ice House at the corner of Dundas and Yonge Street in Toronto, in the middle of Dundas Square.

Source: Canadian Developers : [Events] Microsoft Digital Ice House

1238

Technorati tags: ,

January 26, 2007
» Visual SourceSafe Internet Access and Windows Vista

 

Richard Berg from the Team Foundation Server team in NC has a couple of posts on his blog that will be of interest to you if you're a Visual SourceSafe user:

The Windows Vista version of Internet Information Services (IIS) does not support WebDAV, which blocks the use of the Internet Access feature of Visual SourceSafe for repositories hosted on Windows Vista. However, you can still access Visual SourceSafe over the Internet from Windows Vista. For more information, see Richard's blog.

1236

January 16, 2007
» iTunes 7.0.2 on Vista

So, next on my list was to get iTunes working so that I can easily feed my podcast addiction.  I am very nearly at the point of purchasing a new MP3 player so I am ready for any excuse to tip me over the edge.  Anyway, to get iTunes 7.0.2 to work correctly on Windows Vista RTM, I had to run the application as an administrator.  It only seems to need to run as administrator to get iTunes to Sync with my iPod, but as that is the only reason I run iTunes it is kinda handy.  This gave me the change to make my first foray into the world of the Program Compatibility Wizard.

Control Panel Searching.Step 1:  Press the Windows Globe (or press the windows key on your keyboard) and go to Control Panel.  In the search dialog, type "compat".  Click on the link "Use an older program with this version of Windows".

Step 2:  Press Next

Step 3: Select "I want to locate the program manually" and press Next

Step 4:  Type the program location or browse for it.  Mine was in "c:\Program Files\iTunes\iTunes.exe" which is the default install location for iTunes.  Press Next

Step 5:  Select "Do not apply a compatibility mode" and press Next

Step 6:  Press "Next" on the display settings screen, nothing needed to be changed here

Step 7:  Finally.  Check the box "Run this program as an administrator" and press Next.

Step 8:  Press Next again and confirm that everything works as expected, then save the settings. 

There we go.  Hopefully they'll be a Vista compatible version of iTunes soon.

» Beware of the VMWare Workstation 6 Beta with Visual Studio 2005 on Vista

I'd been having trouble getting Visual Studio Team Suite up and running on my new vista install.  I was assuming it was something nasty in the long winded installs of Visual Studio Team Suite, Team Explorer, SP1 for both and the Beta of the Vista GDR for Team Suite.  Every time I tried to start Visual Studio, I got the following error:-

"An error has occurred while trying to access the log file. Logging may not function properly".

Luckily for me, Gabriel Lozano-Morán posted the solution over on the MSDN Forums - turns out that I had installed a Visual Studio Plug-in as part of my VMware Workstation 6 Beta.  I didn't really want this plug-in from within Visual Studio anyway, so I re-ran the VMWare setup and removed the plug-in.  All is now working just fine.  Thanks Gabriel !.

January 15, 2007
» Windows Vista Tip: Windows-X for Mobility Center

Windows Mobility Center, get it by pressing Windows-X I was having trouble getting my external monitor to work properly.  The NVidia Quadro FX Go1400 installed in my Dell Precision M70 is quite clever when it comes to auto-switching and automatically selecting the best resolution.  However, Vista was also trying to be clever and the two collided.  Anyway, to cut a long story short, I stumbled upon the Windows Mobility Center which is a handy place for laptop owners.  Pressing the Windows-X key brings this up instantly and you can turn your Wi-Fi On/Off, mess with external monitor configuration etc etc.  Not exactly rocket science, but it'll add it to my short list of Windows key shortcuts that I actually use.

» I've moved to Windows Vista

Well, the time came.  I got too jealous of everyone with Windows Vista and decided to upgrade myself.  Before I start complaining, the reason I installed Vista on my main dev box is because I like it.  I like the fact I use the mouse less.  I like the fact I get prompted when things want admin status.  I like the fancy UI.  I like the faster start-up times and the additional support for mobile users.  I upgraded to Vista because I like it.  It runs great on my Mac Mini so I decided to bite the bullet and see what it is like to run on day in day out.

However, an upgrade before the official consumer launch means that I knew it was going to be painful.  So much so that I actually bought a new hard drive for my laptop and installed Vista on it.  My dev machine is vitally important to me so I wanted to make sure I could roll back quickly at any point.  I took the opportunity to upgrade from a 60Gb drive to a 100Gb drive at the same time as I'm guessing that I'm going to have to use a Win XP virtual PC image quite a lot for the forseeable future so that I can test / reproduce problems with software in XP.

I started the upgrade on Saturday so that I would be productive again by Monday morning.  The actual install of the OS went very well, by far my easiest install of Vista to date.  I have a Dell Precision M70 and my Windows Experience Index is 4.1 - constrained by the CPU which is a Pentium M 2.26Ghz.  My new hard drive got a 5.0 and my Aero experience got a 5.9 from my NVidia Quadro FX Go1400.  Eclipse and Teamprise all installed just fine and worked with no problems so I knew I was good to start work Monday morning.  I've created a new category on my blog called "Vista" in which I'll post my trials and tribulations as I use the OS day in day out as a Team System developer.

March 27, 2006
» History Lesson: PC Audio Usability

Before getting deep into Vista audio, I want to relate some history, and give a little bit of my perspective on PC audio.  (Note: I have a tendency to use "PC audio" to mean "Windows audio".  No slight intended on Linux folks.)  I’m going to start by discussing current PC audio usability.   Put simply, it sucks.

At its most basic, the usability problems are pretty simple: when Aunt Bee gets a new email from Opie, she simply wants to hear "You’ve Got Mail!"  She doesn’t want to think about hooking up the speakers, turning on the speakers, finding and installing drivers that actually work, finding the sound control panel, finding the other sound control panel, unmuting the audio, setting the volume, configuring her mail reader to blurt "You’ve Got Mail!" when Opie emails her, re-hooking up the speakers because she got it wrong the first time, turning the volume up on the speakers, etc., etc., etc….. 

It’s just too much for most end users to deal with.  Heck, it’s too much for me to deal with, and I develop these things! 

What most people want and expect is the same experience they get with their TV: they click a button to turn it on, and then hear audio.  It may be white noise - but they hear something.

Yah, a bunch of people hook up Home Theater systems to their TVs (and their PCs - that’s a future blog article), which takes more equipment and special configuration.  But it’s not the default: it’s an option that can be safely ignored.  The important thing is that the TV’s home theater option doesn’t get in the way of Aunt Bee from hearing her soaps when she turns on her TV.  For the base - and most common - case, the TV still just works.  (Now, of course, Andy could install a Home Theater system for Aunt Bee as an Earth day gift, and then Barney could come over, eat all Bee’s pretzels and futz with the remotes that Andy told Bee to never, ever touch except for these four buttons right here…..  But at least out-of-the-box Aunt Bee can happily watch & listen to her soaps.)

PC audio, though, simply isn’t there yet.  Many systems don’t even come with speakers, let alone allow for easy configuration. 

Take, for example, the main Windows volume control:

What are all those sliders?  I dunno, but, let me assure you, they certainly aren’t what you’d expect them to be. Like you’d maybe expect CD Audio to control your,
well, CD audio.  But it’s hit-or-miss: it depends on how your CD drive is
wired into your system and what app you’re using to play your CDs.  And PC Beep reminds me of that scene in Office Space when that guy is trying to figure out the fax machine:

                            PC load letter?  What the f- does that mean?!

Let’s take a second and contrast this with the Mac.  Now, I’m not anywhere close to being a Mac apologist.  We are a dual-OS household, and our iMac frustrates me much more than any of our PCs.  But Macs do have one thing nailed: the audio.  But every iMac ships with either built-in speakers, or a pair of external speakers.  They’re not great, but they’re good enough for Aunt Bee (and the external ones even look nice).  The volume control is in the top-right corner, and there’s only one:

A keen observer may note that Windows does have a little system tray icon that only displays a single volume knob, but it is hit-or-miss w/rt showing up, and it’s really just hiding all but one of those volume controls in the main control panel.  In the Mac world, there is only one playback volume control, as far as I can tell.

But there’s extremely good reasons why Windows audio is so convoluted.  It mostly comes down to two: the need for legacy support, and Windows’ open audio architecture. 

The legacy support requirements means that MS has a real hard time fixing any of the braindead issues: just removing one of those crazy volume controls would be a heroic effort. 

Legacy support is what it is, but I want to focus on the other issue: Windows’ open audio architecture.  The open architecture means that guys like me have way more control over the end-user’s audio experience than we really should have.  Microsoft sets some basic ground rules, but then we can do whatever we want outside of that.  Want to support a 46-channel soundcard?  Sure, no problem.  Want to expose it as a single 46-channel device?  Sure.  Or how about 23 stereo devices?  Sure.  Well, how about both a 46-channel device and 23 stereo devices?  Yeah, of course we can do that, too.  (A similar example just came up on the wdmaudiodev mailing list - there’s actually legitimate reasons for doing something like this). 

Now I’m certainly not suggesting that codec vendors should be left out in the cold: we certainly can and do add huge value to Windows audio - in fact, too much value.  The problem is that the open architecture is somewhat of a crutch for Microsoft.  Because we have such free reign, Microsoft hasn’t had to sweat too many of the PC audio details.  Yeah, the built-in controls suck, but system manufacturers that care can get codec vendors to produce new control panels.  And we do: each codec vendor has its own, custom-tailored control panel.  And though the control panels do pretty-much the same thing, they’re all fairly different from each other: different look & feel, slightly different controls, etc. 

Take, for instance, the speaker wizard.  Almost all of the vendors’ audio control panels have some sort of speaker wizard that will help you plug the proper speaker into the proper jack.  Some are more hand-holdy, with the "did you hear the sound?…  Okay, where did you hear the sound?" type of dialogs, while others are of the click-the-speaker-and-it-will-make-a-noise variety.  In this case, being different doesn’t really help: it just frustrates the end user, who really just wants to get his or her speakers working with as little thought about it as possible.

The thing is, none of us codec vendors really want to make a speaker wizard: we just have to because Windows doesn’t provide one.  Admittedly, we’re always happy to get some branding in front of the consumer, and a speaker wizard may not be a bad place to do it.  But it’s still a good chunk of work, and really not an area we want to focus on.  We’d rather be improving audio fidelity, adding Dolby Digital support, improving our device-discovery (JackSense) technology and GUI,  etc. 

And this is also no good for the consumer: what they really need is for Microsoft to spend a few hundred thousand dollars on usability studies, figure out the best way to lay out a speaker wizard for 85.777% of the population, implement that, spend a few more hundred thousand dollars on usability studies that that disprove the first studies, re-implement the speaker wizard, then be done with it.  Or at a minimum,  Microsoft’s audio GUI guy should build the speaker wizard, show it to some of the other developers, let them kibitz about it for a few weeks, then ship it.  This would make it on par with all the other speaker wizards out there - but then at least the consumer would get the same speaker wizard each time they pulled it up on a Windows system.

So now, almost every PC has at least two audio control panels: the Windows control panel, and the Codec vendor’s control panel, which may or may not include all the basic Windows audio controls.  Great: Aunt Bee is even more confused when she tries to get her "You’ve Got Mail!" working.  What’s worse, Andy can’t help her because his PC has a completely different audio control panel.

So what we need is for Windows to take care of the basics, and also enable codec vendors to enhance the audio experience.  And it should do this in a way that ties together the user interface into some sort of cohesive unit. 

As luck would have it, one of the main goals of Vista audio is to resolve some of the more glaring usability issues.  Next time, we’ll look a bit more at how Microsoft is going about this, and how it’s panning out so far. 

Let me finish, though, by saying that this isn’t going to be another "MS sucks" blog.  I have huge respect for the Vista audio team, and what they’re trying to accomplish.  It’s a great undertaking, and so far it looks like they’re generally succeeding.