Since about 2005, Apple laptops have had a feature that allows the laptop to sleep and wake quickly, but also be able to deal with the situation where the battery runs out of power or is removed. Basically the laptop writes out a hibernation file before going to sleep but then doesn’t actually enter hibernation. If the laptop is able to it will simply wake quickly from ram and mark the hibernation file as old. If the battery runs out of power or is remove, then the laptop will boot from the hibernation file instead. This is a fantastic feature because it nearly guarantees you won’t lose work if you’ve put your laptop to sleep.

There are times however that you might not want to use this feature. For example, I was out of town this weekend and my Macbook was spending a lot of time in sleep. Even though sleep uses very little power, it still uses more than it would if the power was completely off. In this situation I prefer that the laptop simply hibernate when I close the lid.

You can tell an Apple portable what kind of sleep mode to use using the command line tool called pmset or, better yet, you can use the very simple preference pane called SmartSleep. SmartSleep is a simple frontend to the pmset command allowing you to choose between a number of different sleep options. Best of all the utility is free and is available at http://www.jinx.de/SmartSleep.html

It’s possible to create a keyboard shortcut to nearly any menu item for any application. For example, lets say you’d like to create a keyboard shortcut to show extensions in Google Chrome.

To do so start System Preferences from the Apple menu in the upper left. Next, click the keyboard option and then click the Keyboard Shortcuts button.

Click the plus to add a new keyboard shortcut. Search for the application, enter in the name of the menu item, the keyboard shortcut you want to assign and click Add.

The shortcut will now have been added. You may need to close and reopen the application before it appears.

In at least Snow Leopard, and possibly older versions, hot corners are nearly always hot. For example, if you setup a hot corner to show the desktop you can drag a file from a finder window to that hot corner and cause it to fire allowing you to place a file on the desktop or a folder on the desktop easily.

Last week I helped someone rescue their computer. The striped disk set had gone wonky and would only occasionally boot properly. If it booted at all it would run fine, but getting it to boot was the tricky part. They wanted me to fix the issue and as long as I was doing so, upgrade the system to Windows 7.

After some effort, I got the computer to boot and promptly created an image of it using my favorite disk imaging software. I then broke the raid set and used the one drive that was still good to install Windows 7. Once installed I copied the appropriate data from the old Vista system on to the new Windows 7 system. All seemed well until I got an email claiming the computer wouldn’t download files or play flash videos.

While attempting to download a file they’d get the following error.

Internet Explorer cannot download from
Internet Explorer was not able to open the Internet site. The requested site
is either unavailable or cannot be found. Please try again later.

After much trial and error I found the solution. Rename the Temp directory located at %userprofile%\AppData\Local. Once this was done IE was able to download files and play flash videos once again. I’m not sure what the real issue was but this fixed it.

This is a bit more advanced but I find it really useful. Open a terminal window and type in or copy paste the following and press enter:

defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'

Then type:

killall Dock

to restart your Dock. You will have a new stack item on your dock allowing you to access the ten most recent applications.

Source

Where I work we’ve had a long standing problem with the roadmap view in Trac with the Agilo plugin. We were seeing a “ticket 0 does not exist error” and after finally finding the right keywords to search with, I found my answer. Turns out that if you’re using PostgreSQL as your database backend, any Sprints that have a ‘ in the name will cause the roadmap to stop working. The fix is to simply rename any Sprints so they don’t have a ‘ in their name.

Here’s something a lot of Linux users probably overlook. If you manually create a partition or file system on a new hard drive but you want mount during each boot you should mount the drive based on its label instead of it’s device name. This will prevent the system from mounting a drive in the wrong place if you ever switch cables around or move the drive to a different machine.

Labeling a partition is simple, just use e2label /dev/

e2label /dev/sdb1 "NewDrive"

To mount this drive on boot, edit your /etc/fstab file as root with your favorite editor. Add a new line at the bottom with, based on the example above, the following:

LABEL=NEWDRIVE /mountpoint defaults 0 0

You can use the other entries in the file as a template. Use ‘man fstab’ and ‘man e2label’ to learn more about how to use e2label.