Why Vista’s User Account Control Feature Isn’t So Bad

When I first got around to using my copy of Windows Vista regularly, I quickly became annoyed of one particular feature – User Account Control (UAC).

At first, I saw it as an acceptable comprimise for the sake of security… but after a while, it became clear that most the apps I use actually need Administrative access. I found myself forgetting to launch the shortcuts with Administrative privileges, and then I’d have to close the application, and launch it properly by right-clicking and saying “Run as administrator”.

I put up with it until, one day, I was checking out the Properties of a shortcut… when I discovered a checkbox I’d never noticed before. Eventually, I grew so frustrated that I turned the feature off, just to avoid the hassle. For a long time, I went without it – and then we got new machines at work, and we were told to install Vista Business on all of them. Since it was a work machine, I decided to leave UAC enabled, for security’s sake. It wasn’t always pleasant; however, at least I knew my machine was more secure – and so the cost of having to right-click, and select “Run as administrator” was acceptable given that it was within the context of work.

This checkbox, when enabled, made it so the UAC prompt appeared automatically after launching a shortcut, rather than me having to right-click it, and select “Run as administrator”. This feature alone made me realize that UAC isn’t so bad. The real cost of using UAC was having to right-click the shortcut and select “Run as administrator” (for me, anyway).

I could hardly believe that I had missed this feature – but when I asked fellow developer friends of mine, I realized some of them missed the feature as well. This got me wondering… maybe there are others that still don’t know this?

Using Ping to Monitor Reboots

When you’re rebooting a computer, and you need to know exactly when it is back online, try using this command:

ping -t <target>

<target> can be an IP or domain name.

This command will keep pinging the machine endlessly, which can reveal exactly when the computer is back on the network. As long as you keep getting “Request time out”, the machine isn’t online yet. When you get a reply, as illustrated below, you know you can connect to the machine.

Personally, I tend to put this window on my secondary monitor, while I continue working on the primary monitor.  As soon as the machine is online, I close the window or press CTRL+C to prevent the ping from going on endlessly. Be careful how you use this – some hosts can interpret endless pinging as an attack.

Thanks to François Deschênes for originally showing me this trick.

Screen Capture Tools and the Evasive Mouse Cursor

So, here’s the thing:  I was taking screenshots for another article, and then I noticed that the cursor was not present in them – and I needed it to be. I’ve used Print Screen for a long time now, and I never really needed the cursor to appear. Whenever I did need to have it the screenshot, it was for work – and there, we have Snagit, which has an option to show the cursor. While SnagIt is a great application, I wasn’t ready to buy a license for home use just yet. I wanted to look for free tools first… so I began my search. I found out a couple interesting applications along the way.

Snipping Tool (Windows Vista only)

I was surprised to discover a new screen capture tool from Microsoft, already preloaded on my Vista machine… sounded cool. When you run it, it grays out the screen, and the interface pops up:

You can then drag the cursor and select an area to capture. It even has “free-form”, “rectangular”, “full-screen”, and “window” selection modes.

Whatever you select is then presented to you, and you have the option of saving it in a number of formats. Not bad, Microsoft, not bad. Unfortunately, there is no way to capture the cursor. I was starting to wonder if this was particularly difficult to achieve. I found a webpage that mentions the following:

Because of the way graphic interfaces work, your cursor usually isn’t captured in an image. Pressing the Print Screen key will not capture your cursor. But all commercial programs that do captures do have some kind of option to capture the cursor.

But there’s a trick—screen capture programs can’t really see the cursor, either. So what they must do is add their own special cursor, and because cursors change shape, if you want a special cursor, you need to tell the program what cursor to capture. Each program has its own way to do this.

Funny thing is, I had that approach in mind – achieving it via image manipulation, but I wanted to avoid it, since it isn’t a convenient long-term solution. Reading what he had to say really made me want to know how the cursor works altogether – why is it so different? I’ll take some time to look into that, and will write a post about it afterwards. For now, back to the tools:

Jing

Jing is actually from TechSmith, the same guys that make SnagIt. Interestingly, they have a free version to offer. I found the interface particularly unique, unlike anything I’ve seen before.  It features a “sun” icon that you can place anywhere on the outer bounds of your screen. Once placed, when you hover over the icon, it expands to show you more controls, as seen here:

To get a better idea of what the application really looks like, check out their entertaining intro video.  Put simply, Jing allows you to capture part or all of your desktop as either an image or a video. It then gives you options to annotate, and all-that; but he’s the cool part. You can automatically upload your recorded videos (which include audio) to a website, which then allows you to easily share it via a link.

Unfortunately for me, Jing’s screenshot functionality didn’t include the mouse cursor. After discovering this, with yet another application, an interesting idea popped into my head. Surely, the video feature would feature the mouse cursor – otherwise the video feature would be pretty useless. I tested my theory, and I was right. So, theoretically, I could take a screenshot of a video, and then I’d have the mouse cursor captured as well. Sneaky, I know – but it did the trick.

So, all-in-all, I didn’t find a tool that did exactly what I wanted, but the “take a screenshot of the video” idea was actually easy enough to do – so I’ll probably use that approach whenever necessary; that is, until I give in to SnagIt.

Another Way to Close Windows

A couple of years ago, I discovered a new way to close windows in Microsoft Windows. To be fair, I didn’t discover it on my own – I saw a colleague of mine using the alternate approach, and I asked her about it. I was surprised that although I had used various Microsoft operating systems (95, XP, 2000, 2003), that particular trick eluded me.

Here’s how it works. You know how you can normally close a window by clicking on the top right corner? The “X” button? Well, you can also double-click on the top left corner, and this will usually also close the window.

The reason I say “usually” is because some newer applications, like Google Chrome, for example – are not using the conventional windows style. Aside from a few exceptions, I’ve seen this work across XP, Server 2000, Server 2003, and Vista operating systems. It’s just a little weird in Vista, seeing as they don’t display the icon in the top left corner like they used to. 

Single-clicking the top left corner actually brings up a menu:

My guess is that Windows will automatically execute the action written in bold when you double-click, which is Close.

A little research revealed that this feature was initially the only way to close a window in Windows 3.1. Jensen Harris, Group Program Manager of the Microsoft Office User Experience Team, explained it on his blog:

Anyway, in Windows 95 the close box was added to the upper-right corner, but they kept the ability to close windows by double-clicking the product icon on the left side of the title bar. As a result, even some whippersnappers like me who barely remember computers pre-Windows 95 learned to close windows that way.

Whoops, I let out my big secret.

You see, I’m a left-side double-click closer myself. It’s embarrassing, I know, but I just can’t break the habit. Oh so many times during the beta of Office I’ve moved my mouse to the upper-left corner, realized that I couldn’t close the window, and then jumped to the other side of the screen to hit the close box.

We removed left-side close as a planned experiment. If people could get used to closing on the right side, we’d be better off because there wouldn’t be two ways of doing the same simple action. Clearly if we were building a new window manager from scratch with no pre-existing users, we would only have one way to close windows.

But, of course, we have hundreds of millions of users, many of which (like me) literally have left-side close burned into the lower levels of our brain stem, along with breathing and keeping the heart beating. Honestly, I can seem to relearn anything except for this.

Nonetheless, we tried taking this out–we shipped Beta 1 Technical Refresh and Beta 2 this way and waited for feedback. Could people adapt? Not really, as it turns out.

Honestly, we knew all along that there was a strong possibility we would have to find a way to add this functionality back. It was worth a shot, but in the end, creating an affordance for left-side closing eliminates one huge annoyance that stands in the way of some people’s enjoyment of the product.

Like Harris, I too feel like I’m hanging on to an old habit. In Windows Vista, I see that Microsoft is no longer including an icon in that corner in some core places – that, to me, communicates their intention to discourage widespread use of the feature. After all, why would we want multiple ways to close a window with the mouse?

Not Just Another Passenger

When I was 17, I remember accompanying my father to check out some of the local garage sales. You see, in my hometown (and likely in other towns too), we had yearly garage sale “festivals”. This is what my father jokingly called them – there would always be plenty of people at these things. I would later wonder how effective these people would have been if they had actually used their numbers to support a cause, rather than their own personal desire to acquire material goods, at a bargain; however, on this particular day, I was just looking for cool stuff. On this day, I only bought one item. This item was a 3 foot tall, 3 foot wide – bear. A giant, stuffed bear.

Giant Bear

So next thing you know, we’re heading back home – and every now and then, you see people looking at us weird. Picture this… a grown man was driving a car, my father, in fact – but seated next to him – was a giant bear. My idea. We were to pick up my mother, and I figured the bear would look pretty funny sitting in the front passenger seat. Just seeing people’s expressions, and ultimately, my mother’s reaction – made the price of 20$ all worthwhile.

So… let me just confirm what you’ve all been thinking. No. I’m not a regular guy – I’m a fan of weird and quirky things, especially if it ultimately will make me laugh. If others laugh, that’s just icing on the cake.

For example, I started working as a software developer, full-time, in February 2006. After about 4 months, I decided to spice up my desk a little bit. It was just so regular, so dull. It all started with a couple stress balls – you know, those squeezable, colorful balls with printed smiley faces on them? Something you’d see over at Google. Now, my buying these balls had nothing to do with stress – I didn’t need to take out my anger on small, smiling faces – I didn’t need to crush them to feel better. I just always appreciated the “Google culture”, to an extent. A few months later, I had enough stress balls to fill the majority of my desk’s filing drawer. My desk was packed with them, and I made sure to buy some for my co-workers. It reached a point where people were buying me stress balls of all sorts, to further my collection. Some of the weirder ones I was given were ones intended for use on Halloween. I’m talking balls meant to look like eyes, skulls, or worse.

A small fraction of the stressballs I accumulated

At this point in time, since I moved to another office, most of my desk toys have been retired to my drawers, rather than remaining on my desk. I kept some around, though. They are true to my sense of humor, and my playful nature. Even so, these days, some of my co-workers will randomly find an foreign stress ball grinning at them when they arrive in the morning. I’ll just randomly do that… it makes people laugh, and laughter is a great thing. For now… I feel I’ve mastered the toy desk – my next goal is to master the plant desk – my new office has windows. I want to make myself a little jungle. Want to talk to me? Bring a machete. Unfortunately, I have yet to buy plants for work. This is mainly because I usually buy big, leafy plants – and I’m currently not too enthusiastic about exposing them this weather (during transport).

Skull in the Cupboard

I’ve got other similar, smaller experiments going on in my apartment. First, I currently have a fake skull in one of my kitchen cupboards. If it detects motion, its eyes start to glow, and it talks. You can also turn off the motion detect, and have it only turn on manually. It usually says something really corny, and then it laughs all evil-like. It was meant to be used as a typical Halloween prop. My original idea was to keep it in the cupboard, and when people were over, act like nothing was strange about it. One time, after having it on motion detect for a while, I went to get a bowl, and I momentarily forgot it was there. It startled me – I jumped, had a good laugh, and turned off the motion detect. I have yet to get any more good laughs out of the skull, but I’ll think of something eventually.

My second apartment experiment involves my medicine cabinet. It goes something like this: when someone uses your bathroom, they technically have full access to your cabinet. You can’t really stop them – they’re using the bathroom – they have privacy. If you have any embarrassing diseases, conditions, etc – your medication and ointments – they are usually here. I’ve heard of a study that claims most people will, in fact, snoop in your medicine cabinet. Knowing this, I began to think about how I could exploit it. I thought: what if I were to put some really strange stuff in there? A rubber ducky. Binoculars. You know, just something completely out of place, or overwhelmingly embarrassing (by intention). I have yet to do anything for this one, but I have more ideas in mind.

This post was initially published on March 15, 2008.

Internet Explorer … provided by Dell?

When I first received my laptop from Dell, I quickly noticed something different in Internet Explorer:

providedbydell_titlebar

Apparently, my copy of Internet Explorer was provided by Dell. I immediately disliked the idea that this reminder would be present every time I used Internet Explorer. I began looking for a way to remove it, and it turned out to be pretty simple. All you need to do is change a registry key, located here:

HKEY_CURRENT_USER/Software/Microsoft/Internet Explorer/Main

and depicted here:

providedbydell-regedit

Solution

warning Some of the instructions found in this article involve modifying the Windows registry. If modified incorrectly, serious problems may occur. It is highly recommended by both the author of this article, and by Microsoft – that you back up the registry before you modify it. For information on how to do this, please see the following Microsoft Knowledge article:

MSKB 322756 –  How to back up and restore the registry in Windows.

To remove the Dell branding, all you need to do is:

  1. Click Start – Run (or press Windows Key + R). Type regedit.exe in the “Run” dialog, and press Enter.
  2. Navigate to “HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerMain” using the Registry Editor.
  3. Right-click the “Window Title” key.
  4. Select “Modify”.
  5. Select the “provided by Dell” text in the “Value Data” textbox, and press Delete.
  6. Click OK.
  7. Close and re-open Internet Explorer.

If you would prefer a quicker way, and have Windows Vista, you can download and execute this registry file: remove-dell-branding-in-ie7-titlebar.reg (right-click, save link/target as) Executing this file will change the window title automatically. Keep in mind, I only tested it with a system that is running Windows Vista and Internet Explorer 7. Using this file in a different environment is discouraged. See Also MSKB 176497 – How to Change the Internet Explorer Window Title