Friday, May 21, 2010

See Which Services Are Related to a Process

The Windows 7 Task Manager is useful to manage processes and services, check the CPU and networking usage, and shut down stuck programs that don't want to end. While using this tool, you may have noted many svchost.exe processes that act as Host Process for Windows Services. Curious about which services are related to which processes, especially if one is running amok, taking a lot of memory and/or CPU time?

1. In the "Processes" tab of the "Windows Task Manager", right-click a svchost.exe process.

(If you don't know how to access the "Windows Task Manager", right-click an empty area of the Taskbar and select "Start Task Manager".)

2. When the pop-up menu appears, select "Go to Service(s)".



Selecting "Go to Service(s)" for a svchost.exe image




3. The "Services" tab is now selected. Related services are now highlighted.



Viewing services related to a svchost.exe image

Thursday, October 15, 2009

'Free' Win 7 Upgrades Have Fee

The free Windows 7 upgrades that Microsoft has promised buyers of new PCs powered by Vista are not always free, a consumer watchdog Web site says.

"To me, whether it's $12.99 or $17.03, the charges are all outrageous," said Edgar Dworsky, the editor of Consumerworld.org and Mouseprint.org. "It's just a single disc they're sending, and with media mail rates, it costs just over a dollar to mail."

windows 7Last June, Microsoft kicked off a marketing campaign dubbed "Windows 7 Upgrade Option Program" to keep PCs sales ticking. The program, a rerun of a similar deal in 2006 before Windows Vista's launch, gives people who buy a PC equipped with Windows Vista Home Premium, Business or Ultimate a free or nearly-free upgrade to Windows 7 Home Premium, Professional or Ultimate once the new operating system ships Oct. 22.

Consumers who purchase an eligible PC between June 26, 2009 and Jan. 31, 2010 qualify for the upgrade.

Dworsky, however, found that while some computer makers are giving away Windows 7 upgrades, others are charging fees as high as $17 for what's characterized as "shipping, handling, and fulfillment fees."

"The problem is that a lot of this information is hidden, or impossible to find," said Dworsky today. "Disclose it, let the consumer know."

Only one major computer maker, Acer, charges nothing for the upgrade, Dworsky determined after spending hours tracking down information on vendors' Web sites and nagging public relations people to cough up numbers. Other brands -- Dell, Compaq, Hewlett-Packard, Sony and Toshiba -- waive the fee for some users, but not others, with total charges for the latter running from $11.25 to $14.99.

Lenovo, on the other hand, nails every buyer with a $17.03 fee for the Windows 7 upgrade.

The mystery over who pays what is frustrating, said Dworsky. "Both HP and Sony ... [said] that they negotiated with big retail chains offering them the opportunity to allow their customers to receive completely free upgrades," he said. "[But] neither would provide a list of which retailers signed up, nor what retailers had to pay or agree to. And retailers say the manufacturers decided pricing. So they are each pointing fingers at the other. Who's caught in the middle? The consumer."

Dell, which notes on its Web site that "select countries will be offering the upgrade for free," told Dworsky that it would not, in fact, charge U.S. customers.

"Someone seems to be profiting," Dworsky charged. "The fees are way beyond the actual cost to fulfill. It would be different if it's a boxed copy with a manual, but it's not."

Most computer makers have been vague about when customers will receive the Windows 7 upgrade. If history is any hint, it could be months before buyers see it. During a similar promotion in 2007 that provided Vista upgrades to people who purchased an XP PC, users grew increasingly frustrated by delays. A month after Vista's January 2007 launch, for example, Dell and HP customers slammed those vendors for failing to deliver timely upgrades.

"You would think that they'd all do this free," said Dworsky. "Consumers are really doing the computer manufacturers and retailers a favor, helping them get rid of inventory. You'd think they would bend over backwards."

PC Tools File Recover Brings Back Your Files

With that $30 price tag in my mind's eye, I went into my PC Tools File Recover (limited free demo) hands-on thinking that it would be just another over-priced undelete utility. Ten minutes in, I was thinking "By Grabthar's hammer... what a savings!" Most recovery programs that will scan on the sector level, such as Active @ File Recovery and R-studio Data Recovery, will set you back more money.

PC Tools File Recover

PC Tools File Recover performs the same sector-level functions that more expensive recovery programs do.

PC Tools File Recover is easy to use, and it works. It recovered all of the deleted files I threw at it by bulk search, or by specific file name/file type. The program did crash once while attempting to recover a large MPG file, but I was unable to replicate the incident.

File Recover also easily recognized a USB-attached hard drive from a RAID 0/1 array that had been overwritten with two Mac OS partitions--and it found a number of files there. Unfortunately, the vast majority of the files were false positives that restored as zero length entries. To be fair, no program that I'm aware of would do any better, though some will bypass false positives.

My only real problem with PC Tools File Recover came during the recovery stage. There's a button to select all and a button to deselect all, as well as selection by folder and type, however beyond that you're stuck selecting or deselecting files one at a time. You can't hold down the shift or control key and select/deselect groups or batches. Selecting files one at a time could get annoying when you have a lot of them in single directory. Also, although you may pause a scan, there's no way to save it so that you can continue or take action on a scan after closing the program.

PC Tools File Recover looks to be a bargain in my book. As is typical for this sort of program, the demo will find files but not restore them.

Tuesday, September 29, 2009

Windows Vista Secret #1: Open Command Prompt Here

I don't know about your workflow as a developer, but I often find myself switching back and forward between an Explorer window and the command shell. For example, sometimes I'm looking around the filesystem for a project that I created a while back and then I want to build it from the command line or rename some of the files or something.

Here's a trick that I don't think many people are aware of. Right-click on any folder on your Windows Vista machine while holding down the shift key. You'll see an extra context-sensitive menu item there: Open Command Prompt here. Just click on this menu and a command window will open with the current working directory set to the folder's actual location.


Figure: folder context-sensitive menu, with and without the shift key modifier.

In the past there was a Windows XP powertoy that did this; now it's built into the operating system (albeit hidden away to protect the unwary from themselves). What's really cool about this is that if the target folder is a network location, Windows Vista silently maps a network drive to that location before opening the folder (so that your command prompt has a valid path containing a drive letter) and then deletes the network drive once the command prompt is closed.

Windows Vista Secret #2: Copy as Path

Ever wanted to copy a link from a network file share into an email, and wound up having to traverse the path, click on the address bar, copy the details out, paste it in and then type the filename itself (with the appropriate quotation marks?

With Windows Vista, there's an easier way. In the same hidden context-sensitive menu I mentioned in the first secret, there's another helpful shortcut: Copy as Path. Unlike the command prompt trick, this menu item appears both for files and folders, so you can use this anywhere you want to quickly grab a shortcut to send someone else.

Windows Vista Secret #3: Bringing Back Start / Run

The Start menu got a big overhaul in Windows Vista, with a number of significant changes made as a result of usability testing and research. One of the nicest innovations to my mind is the search bar at the bottom, which searches through your programs, document files, emails and anything else for which a search provider is registered; this saves a lot of time hunting around. Want to run Powerpoint without having to browse around the "All Programs" menu? Just type "Powerpoint" in the searchbar. Can't remember which of the myriad dialog boxes and settings you have to go through to find the Device Manager? Just type "device" in the search bar.

Of course, there are times when you may still just want the fast but dumb Run dialog that Windows XP provided:

It seems that some people think we got rid of this altogether, when in fact we just removed it from the default settings since most people won't need it any longer. The quick way to get at it is to use the Win+R shortcut key combination at any time - this is what I tend to use most of the time.

If you want to restore it permanently to your Start menu, here's what you do:

  1. Right-click on the Start menu and choose Properties;
  2. Select the Start Menu tab and click on the Customize... button;
  3. Ensure the "Run command" option is checked.

Now the Start / Run command will be restored to its full glory. Of course, you can swap in and out a bunch of other choices (I like the Administrative Tools to be right there, but I don't much care for Pictures, Games and Music to be top-level items on my work machine.) Here's how I have my default menu configured - you'll see it's also docked to the left-hand side of the screen:

Windows Vista Secret #4: Disabling UAC

If you're a reader of this blog, I'm going to take a low-risk gamble and assert that you probably consider yourself a power user. You pride yourself in the responsibility of having full and absolute control over your machine environment and anything that comes between that perfect human-machine symbiosis is to be spurned. If only there were a way to turn User Account Control off on a Windows Vista machine, you'd upgrade immediately. Well, dear reader, I'm here to help.

Firstly, it's worth a brief digression into the benefits of this feature. Running as admin is a bad thing, as most of us know. Aaron Margosis has blogged extensively on this issue, and I won't rehash it here. But for reasons of compatibility, running as a standard user can still be a somewhat painful proposition. Windows Vista attempts to give you the benefits of both worlds by allowing administrators to execute most processes in the context of a standard user and only elevating the privileges on their user token by consent, in addition to allowing standard user accounts to perform administrative tasks by selectively elevating a process to use administrator-level credentials.

In general, UAC has turned out pretty well. It was pretty intrusive in early builds, prompting often and sometimes capturing focus at the wrong time. For the vast majority of users, UAC will offer a valuable level of security protection that will protect against malware: it simply won't have the rights to perform invasive actions like installing device drivers or services. Once a system is configured, you'll rarely see UAC prompts unless you're an inveterate settings tweaker. Incidentally, you can find out a great deal more about how UAC works, what you need to do to your own applications so that they co-operate well with UAC, and the rationale for its design at the official UAC blog.

It is possible to switch UAC off. I really don't recommend it - if you like full control over your machine, surely you want to know when something is attempting to perform an administrative-level action? Nevertheless, I'd prefer to have you run Windows Vista without UAC than having you run a different operating system.

There are two ways to disable UAC. The easy solution is through Control Panel. Type "UAC" into the search bar at the top of the screen and you'll see this task presented:

This approach is pretty brute-force, though. It just switches the whole thing off. There's a more subtle configuration choice that gives you some of the benefits of UAC without any of the prompting. You'll need to edit the local security policy to control this, as follows:

  1. From the Start search bar, type "Local Security Policy"
  2. Accept the elevation prompt
  3. From the snap-in, select Security Settings -> Local Policy -> Security Options
  4. Scroll down to the bottom, where you'll find nine different group policy settings for granular configuration of UAC.

Perhaps the best choice to select is to change the setting:
User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode
from Prompt for consent to Elevate without prompting.

What does this do? Despite the warning from the Windows Security Center, UAC isn't actually switched off. It's still there, and all your processes will still run as a standard user. To prove this, open a command prompt and try to save a file to the c:\ directory. You'll get an access denied error message. However, when a process is marked for elevation, instead of getting the secure desktop elevation prompt, the request will be silently approved. To show this in action, right click on a command prompt shortcut and choose "Run as Administrator". You'll see the command prompt open without elevation, but the window title will show that you're running with full administrative privileges.

Using this approach is better than nothing, but it's a bit like relying on everyone else having a vaccination against measles to protect yourself from infection. Read the explanations on the second page of the property sheet for each policy setting before tinkering, and be careful!

Saturday, September 19, 2009

Windows Vista Secret #5: Running Quick Launch Items

Saw this posted on one of the internal forums today, and I thought this was something that was worth sharing. If you're a keyboard junkie, you'll love this.

Do you have a few applications that you're always firing up? Would you like a system-wide keyboard shortcut to run them? Here's what you do. Simply add shortcuts to the Quick Launch toolbar, as shown in the screenshot below.

Now you can simply use Win+1, Win+2, Win+3 and so on to launch each application. For example, on my machine, Win+3 launches Notepad and Win+6 launches the VS command prompt. This works no matter what application has the focus.

More coolness coming your way soon, courtesy of Windows Vista!

Windows Vista Secret #6: Running a Command Prompt During Setup

If you're doing a fresh install of Windows Vista, you'll probably use a bootable DVD so that you're able to reformat the system partition. But sometimes you might find yourself in a situation where you could really use a command prompt as you go through those initial configuration stages (for example, when I installed Windows Vista on my home media center machine I needed to run the diskpart command line utility to convert a dynamic disk back to a basic disk structure).

Here's the magic key sequence: simply press Shift+F10, and you'll be presented with a command prompt. This also works after Windows Vista has rebooted for the first time on an upgrade, although be very careful what you do here - there's almost no good reasons to be interacting with the system at this point in time, and you shouldn't expect us to get you out of any holes you dig yourself into if you start making invasive changes at this point in time.

Windows Vista Secret #7: The Oldest Component in Windows?

We go to fairly extreme lengths to try to maintain compatibility with older applications, as Raymond Chen's blog often demonstrates in vivid fashion. As an example of this, some of you may remember seeing Jim Allchin's demonstration of Visicalc (the earliest spreadsheet) at PDC 2003 running on Windows Vista (then known as "Longhorn", of course).

So I wondered - what is the oldest component still present in Windows Vista? After a bit of digging around, I think I've finally discovered the answer.

Dear old edlin, the very first line editor in MS-DOS, is still available for your batch editing pleasure over a quarter of a century after its introduction. According to wikipedia, edlin even pre-dates MS-DOS, having been written for an even earlier operating system that was one of the company's first acquisitions. My first exposure to MS-DOS was version 3.2 on my father's office computer, and I used to remember most of the mnemonic commands by heart. It's not a user-friendly tool, but it was fast to load and more forgiving of mistakes than the alternative of copy con filename.txt.

This is one secret that has mere curiosity value, but I still have a warm spot for this venerable editor and I salute its indefatigability!

Windows Vista Secret #8: Zoom in Explorer

The awesome guys from the Windows Vista Magazine revealed a great Windows Vista secret recently that I wanted to bring to a broader audience.

When you're browsing around the file system in Explorer, it's often useful to be able to quickly switch between different folder views. If you're looking at a folder with lots of long filenames, maybe the Details view works best. If you're looking at a folder with lots of photos, maybe a small thumbnail view works well; for a folder with lots of documents, maybe a larger thumbnail view works better. Now you can use the Views button on the toolbar to modify this - click the button to toggle between views or use the down arrow to get access to the slider - but it's quicker to use a shortcut. Simply hold down the Ctrl key and use your mouse scrollwheel to resize the icons from small to extra large.

What's really cool about this, as Jon points out, is that it also works on the desktop itself. If the desktop has focus, simply do Ctrl+mousewheel and you can go from the regular 48x48 icons to full 256x256 photographic-quality renditions. For those of you who have a desktop filled with documents and shortcuts, you can of course also use this feature to cram even more on your screen so that you never have to create a folder again!

Windows Vista Secret #9: Kill the Startup Monsters

If there's one thing that puts me off an application, it's when it unnecessarily inserts itself into the Windows startup process so that it can have its very own system tray icon from whence it can spam me with annoying messages. Obviously it makes sense for some applications to run on startup (for example, I want Windows Live Messenger to be running without me needing to manually start it each time). The problem is that there are multiple places where an application can register itself for execution on startup, and this makes it hard to retain control over which programs are granted such esteemed status.

Of course, I wouldn't be writing this entry unless Windows Vista had a solution! From the start menu search bar, type System Configuration, and click on the link that comes up. You'll be required to provide privilege elevation unless you've disabled UAC, and then you'll see the following utility:

As you can see from the above screenshot, the Startup tab enumerates all the applications that are set to run as startup, regardless of whether they are set in the registry (either per-machine or per-user), the user profile, or simply the startup folder in the Programs entry of the start menu. You can disable any or all of them; they'll still be listed there so that you can switch them on again if you need to.

I should note in passing that this tool also allows you to do some other pretty useful things, like editing your boot configuration database (no need to master arcane bcdedit commands any longer) or accessing a variety of other system tools and utilities. It's the power user's configuration tool of choice - go check it out!

Windows Vista Secret #10: Open an Elevated Command Prompt in Six Keystrokes

User Account Control is, as I mentioned in secret #4, an important part of the security protection that Windows Vista offers. For any user with administrative credentials, you can always execute a process with full admin rights by right-clicking on the executable or shortcut and choosing "Run as Administrator".

For myself, I regularly want to open an admin-level command prompt, and it's a distraction to have to move my hands off the keyboard to go through the elevation contortions. So I was delighted to find a little keyboard shortcut for launching an elevated process. Simply press Ctrl+Shift+Enter from the search bar on the start menu with a selected application, and that triggers elevation.

For example, to launch an elevated command prompt, simply press the Win key; type cmd; press Ctrl+Shift+Enter; and then hit Alt+C to confirm the elevation prompt. Six keystrokes to an elevated command prompt!

(Once I've got an elevated command prompt, I always like to execute color 4f as my first input so that this console window is visually differentiated from other non-elevated windows.)

Windows Vista Secret #11: Deleting the Undeletable

As many of us move forward from Windows XP or prior beta versions of Windows Vista to the final RTM version, I thought this little tip / secret might be in order. You may be aware that Windows Vista includes a number of different ways to upgrade a computer, from a straight in-place upgrade (insert CD, run setup and choose upgrade) to Windows Easy Transfer, which allows you to copy settings, programs and data from an old setup a fresh shiny new OS environment. But I'm the purist type who hates even the thought of leaving any detritus around and insists upon a clean install to a pure, unsullied partition.

In doing this, it's not unusual to find some folders that can't be accessed, even by an administrator, because their ACLs were set for accounts with SIDs that applied to an old partition. For example, on my home machine, I switched the C: and D: drive cables around and installed Windows Vista RTM on the new drive. Having tested everything worked, I wanted to delete some old redundant directories (like the old \Program Files directory). If even an administrator can't access the file, how do you take it back?

The secret lies in two command-line utilities, one ancient, the other completely revised for this release. Respectively, these are takeown (which takes ownership of a file or directory) and icacls (which sets new ACLs on that directory). I created a small batch command on my system called itsmine.cmd, as follows:

takeown /f %1 /r /d y
icacls %1 /grant administrators:F /t

From an elevated command prompt, you can run a command such as itsmine d:\hard_to_delete and this will reset ownership and ACLs on the hard_to_delete directory such that a command like rd /s d:\hard_to_delete should work.

These two lines have saved me a lot of pain over the last week as I've gradually flattened and reinstalled the RTM version of Windows Vista on each of my machines: hopefully they'll be equally useful to you!

Thursday, September 10, 2009

Monday, January 12, 2009 9:05 PM tims The Bumper List of Windows 7 Secrets 2

  1. The Font of All Knowledge. Long Zheng will be happy: we’ve got rid of the Add Fonts dialog that has served Windows faithfully for the last twenty years. (Of course, for most of that time, it’s been deprecated – the easy way to install a set of fonts has simply been to drag them into the Fonts folder via Control Panel.) But now font installation is really easy – we’ve added an “Install” button to the font viewer applet that takes care of the installation process:
    You can install a font in Windows 7 from the standard font viewer dialog.
    There are lots of other new features built into Windows 7 that will satisfy those of a typographic bent, incidentally – grouping multiple weights together, the ability to hide fonts based on regional settings, a new text rendering engine built into the DirectWrite API, and support in the Font common file dialog for more than the four “standard” weights. For example:
    The new common font dialog in Windows 7 supports more than four weights for a font.
  2. Gabriola. As well as the other typographic features mentioned above, Windows 7 includes Gabriola, an elaborate display type from the Tiro Typeworks foundry that takes advantage of OpenType Layout to provide a variety of stylistic sets, flourishes and ornamentation ligatures:
    Some sample variants of the Gabriola display font.

The Bumper List of Windows 7 Secrets 1

  1. Cut Out The Clutter. Working on a document in a window and want to get rid of all the extraneous background noise? Simply hit Win+Home to minimize all the non-active background windows, keeping the window you’re using in its current position. When you’re ready, simply press Win+Home again to restore the background windows to their original locations.
  2. Multi-Monitor Windows Management. The earlier tip on window management showed how you can dock windows within a monitor. One refinement of those shortcuts is that you can use Win+Shift+Left Arrow and Win+Shift+Right Arrow to move windows from one monitor to another – keeping them in the same relative location to the monitor’s top-left origin.
  3. Command Junkies Only. One of the most popular power toys in Windows XP was “Open Command Prompt Here”, which enabled you to use the graphical shell to browse around the file system and then use the context menu to open a command prompt at the current working directory. In Windows 7 (and in Windows Vista, incidentally – although not many folk knew about it), you can simply hold the Shift key down while selecting the context menu to get exactly the same effect. If the current working directory is a network location, it will automatically map a drive letter for you.
  4. It’s a Global Village. If you’ve tried to change your desktop wallpaper, you’ve probably noticed that there’s a set of wallpapers there that match the locale you selected when you installed Windows. (If you picked US, you’ll see beautiful views of Crater Lake in Oregon, the Arches National Park, a beach in Hawai’i, etc.) In fact, there are several sets of themed wallpapers installed based on the language you choose, but the others are in a hidden directory. If you’re feeling in an international mood, simply browse to C:\Windows\Globalization\MCT and you’ll see a series of pictures under the Wallpaper directory for each country. Just double-click on the theme file in the Theme directory to display a rotation through all the pictures for that country. (Note that some countries contain a generic set of placeholder art for now.)
  5. The Black Box Recorder. Every developer wishes there was a way that an end-users could quickly and simply record a repro for the problem that they’re running into that is unique to their machine. Windows 7 comes to the rescue! Part of the in-built diagnostic tools that we use internally to send feedback on the product, the Problem Steps Recorder provides a simple screen capture tool that enables you to record a series of actions. Once you hit “record”, it tracks your mouse and keyboard and captures screenshots with any comments you choose to associate alongside them. Once you stop recording, it saves the whole thing to a ZIP file, containing an HTML-based “slide show” of the steps. It’s a really neat little tool and I can’t wait for it to become ubiquitous on every desktop! The program is called psr.exe; you can also search for it from Control Panel under “Record steps to reproduce a problem”.
    The Problem Steps Recorder provides an easy way for users to record a problem repro for later diagnosis.

Display Projection

Display Projection. Had enough of messing around with weird and wonderful OEM display driver utilities to get your notebook display onto an external projector? In that case, you’ll be pleased to know that projection is really quick and simple with Windows 7. Just hit Win+P, and you’ll be rewarded by the following pop-up window:
The Win+P Projector Settings window allows you to quickly switch display settings.
Use the arrow keys (or keep hitting Win+P) to switch to “clone”, “extend” or “external only” display settings. You can also access the application as displayswitch.exe.

If you want broader control over presentation settings, you can also press Win+X to open the Windows Mobility Center, which allows you to turn on a presentation “mode” that switches IM clients to do not disturb, disables screensavers, sets a neutral wallpaper etc. (Note that this feature is also available in Windows Vista.)

The Bumper List of Windows 7 Secrets


The Channel 9 guy loves Windows 7!It’s great to see Windows 7 Beta finally released to the world! We're very proud of what has been accomplished over the last months; in many ways, it sets a new quality bar for a beta operating system release. Building on top of the Windows Vista foundation, Windows 7 adds a great deal of polish and refinement to both the user interface and the underlying architecture, while at the same time introducing many new features and improvements that support new hardware, give power users and casual users alike better tools to manage their digital lives, and enable new classes of application experience.

Over future blog entries, I’ll spend time drilling into some of those areas in more detail; of course, there are plenty of articles already out there that dissect Windows 7 in some depth, with the Windows SuperSite and Ars Technica providing notably comprehensive entries. I’d also like to draw particular attention to the series of Windows 7 interviews that Yochay Kiriaty has been posting on Channel 9, which give the inside scoop on the development of many of the most significant new features.

For now, though, I want to focus in on some of “secrets” of Windows 7: the many little tweaks and enhancements that we’ve made in this release that I’ve discovered and collated over the last few months of using Windows 7 across my home and work machines. These are the things that are too small to appear in any marketing document as “features”, but that you quickly miss when you switch to an older version of Windows. There are some who think that we’re arbitrarily hiding functionality to make Windows easy for casual users, but I’d argue that a great deal of effort has been put into this release to satisfy power users. In homage to those of us who enjoy discovering the nooks and crannies of a new operating system list, I’ve put together the longest blog post that I’ve ever written. If you’ve downloaded and installed Windows 7 Beta recently, I think you’ll enjoy this list of my thirty favorite secrets. Have fun!

  1. Windows Management. By now, you’ve probably seen that Windows 7 does a lot to make window management easier: you can “dock” a window to the left or right half of the screen by simply dragging it to the edge; similarly, you can drag the window to the top of the screen to maximize it, and double-click the window top / bottom border to maximize it vertically with the same horizontal width. What you might not know is that all these actions are also available with keyboard shortcuts:
    • Win+Left Arrow and Win+Right Arrow dock;
    • Win+Up Arrow and Win+Down Arrow maximizes and restores / minimizes;
    • Win+Shift+Up Arrow and Win+Shift+Down Arrow maximizes and restores the vertical size.

    This side-by-side docking feature is particularly invaluable on widescreen monitors – it makes the old Windows way of shift-clicking on two items in the taskbar and then using the context menu to arrange them feel really painful.

Sunday, September 6, 2009

14 Tips for Safari 4 Beta

Apple released a new beta version of Safari yesterday, bringing a whole load of new features, as well as a couple of problems. Here are a few tips to help you get the most out of the new version and solve any teething problems you might have.


1. Download Safari 4 beta

As this is just a beta version, Apple doesn't include it in the automatic Software Update. To get the new version, head over to the Safari 4 beta page on the Apple web site. Bear in mind this will get rid of Safari 3, but there is an uninstaller included if you ever want to revert back.

2. Update your plugins
While most plugins for Safari should be fine with the new version, InputManagers are likely to need updating. 1Password has released an update, but you have to go to the 1Password app in your Applications folder to access it. Go to the Preferences and in the updates section, check the box that says Include Beta versions. Now when you check for updates it should download a version that works with Safari 4. Updates for Glims and Saft are already available from their respective sites, but as far as I know PithHelmet and SafariStand haven't been updated yet.

3. Safari breaks Xcode
This one is mainly for developers. If you are using the 3.0 version of Xcode, you will find that it crashes on launch once you have downloaded the Safari 4 beta. Just head over to the Apple Developer Connection to download version 3.1.2 of Xcode that works fine.

4. New keyboard shortcuts
Now Control-Tab will allow you to cycle through your tabs (as opposed to Command-Tab that cycles through applications). Don't worry if you were used to the old shortcut though, Command-Shift-Arrows still work.

5. Add the zoom button
The new zoom feature works just like Safari on the iPhone. Instead of just increasing the font size, it increases the size of images and other media too. You can access this from the View menu or with the Command-+ and Command-- shortcuts. Alternatively, choose Customize Toolbar from the View menu to add the zoom button to the toolbar.

Zoom Button

6. Restore the old style tabs
One of the biggest changes visually is the new tabs, located along the top of the window. If you aren't a fan of this, a simple Terminal command will move them back to the old position. Just open up Terminal (in Applications/Utilities) and paste in the following line:

defaults write com.apple.Safari DebugSafari4TabBarIsOnTop -bool FALSE

To bring back the new tabs on top, just repeat the command with TRUE at the end. You will need to restart Safari for changes to take effect.

7. Disable search suggestions
Now the Google search box gives suggestions for your search as well as recent searches. To disable this, just use the following Terminal command in the same way as above:

defaults write com.apple.Safari DebugSafari4IncludeGoogleSuggest -bool FALSE

As before, repeat with TRUE at the end to bring back suggestions.

Search Suggestions


8. Bring back the old progress bar
Unfortunately, the new spinning progress indicator doesn't give you a good idea of how far the page has loaded. To bring back the old style, you have to use both of the following commands.

defaults write com.apple.Safari DebugSafari4IncludeToolbarRedesign -bool FALSE

This changes the progress indicator to a blue pie chart. To get the blue bar, now use the following command:

defaults write com.apple.Safari DebugSafari4LoadProgressStyle -bool FALSE

Repeat both commands with TRUE at the end to go back to the new style.

9. Disable bookmarks Cover Flow
If Cover Flow isn't your thing, you can get rid of it in the Bookmarks window by using the following Terminal command:

defaults write com.apple.Safari DebugSafari4IncludeFlowViewInBookmarksView -bool FALSE

Repeat with TRUE at the end to bring back Cover Flow.

10. Disable dimming in Top Sites zoom

When you choose a page in Top Sites, it zooms in to take up the whole page with a neat animation effect. To stop the page dimming during this, use the following Terminal command:

defaults write com.apple.Safari DebugSafari4TopSitesZoomToPageAnimationDimsSnapshot -bool FALSE

Repeat with TRUE at the end to revert back to the original behaviour.

11. Disable Top Sites

If, for some reason, you want to completely disable the Top Sites feature, use the following command:

defaults write com.apple.Safari DebugSafari4IncludeTopSites -bool FALSE

Repeating with TRUE at the end will enable Top Sites again.

12. Disable "fancy" URL suggestions

This is actually one of my favourite new features in Safari 4. When you are typing in a web address, suggestions are separated into Bookmarks, History and a Top Hit. If you prefer the old window, use the following command:

defaults write com.apple.Safari DebugSafari4IncludeFancyURLCompletionList -bool FALSE

Repeat the command with TRUE at the end to enable the fancy completion list again.

13. Add web sites to Top Sites
If you click the Edit button in Top Sites, it is easy to use the pins to force sites to stay in Top Sites. To manually add a site that isn't already there, open it up in a separate window, then drag the favicon (next to the address) over to one of the positions in Top Sites. You can also drag sites from your bookmarks to Top Sites.

14. Fix GrowlMail
Unfortunately GrowlMail will now cause Mail to crash. There is a quick workaround that involves putting GrowlMail into summary mode. Do this by using the following Terminal command:

defaults write com.apple.mail GMSummaryMode -int 2

Drag and drop onto "Choose File" buttons in Safari

When a website prompts you to upload a file to the internet, it will probably use a "choose file" or "browse" button. For example when choosing an attachment in Gmail, or when uploading a photo to Facebook. In Safari, you can speed things up by simply dragging and dropping files onto this button, instead of first clicking on it and then looking around your hard drive for the file you want.

Simply drag your file from the Finder, hold it over the button and then let go.

Drag and Drop to Safari