Command line eject CD for the Mac
drutil eject
drutil eject
Battling with a terribly designed HP 4520s (oh for a Thinkpad), I had enough of hitting the stupid touchpad accidentally when typing. The following will turn the touchpad on and off accordingly. The script comes with no warranty, use at your own risk:
#!/bin/bash
#
# Turn that pesky touchpad on and off
#
# ----------------------------------------------------------------------------
id=`xinput list | grep TouchPad | awk '{print $6}' | sed 's/id=//'`
if [ $1 = 'on' ]; then
xinput set-prop $id "Device Enabled" 1
else
xinput set-prop $id "Device Enabled" 0
fi
Recently discovered a new terminal emulator for Linux - terminator. After a bit of config:
[global_config]
focus = sloppy
title_transmit_fg_color = "#FFFF00"
title_transmit_bg_color = "#000000"
title_inactive_fg_color = "#A8A3A3"
title_inactive_bg_color = "#000000"
and some getting used to the keyboard commands, I'm really beginning to like it. I've tried window managers based on a similar tiling idea, but didn't like them. But this looks like it could become one of my main work tools.
Simple when you know how:
- Plug your iPhone into your Mac
- Launch Preview
- From the File menu navigate down and select “Import from iPhone…”
- Select “Import All” to get all the pictures, otherwise individually select pictures and click ‘Import’
From osx daily
This is great, from the apt-get man page:
remove - remove is identical to install except that packages are removed instead of installed.
Erm, so it's not identical then. In fact, it's completely the opposite.
Disable Google's ksurl from phoning home:
Edit ~/Library/Preferences/com.google.Keystone.Agent.plist with the Property List Editor and change checkInterval to 0.
From here.
Google is an advertising company, first and foremost. Never forget that.
Bookmarking this article by Dan Benjamin on the top 10 fonts for programming. As discussed in their recent Talk Shop Podcast it may not be completely up to date, but it's a nice place to start.
PEOPLE! Please, please stop falling for the waste of time email services provided by ISPs. I guarentee that you will change ISP at some point in the next couple of years, do you really want the hassle of updating all your friends and family with a new email address? Or loosing contact because you forgot to update someone? Use Gmail/Hotmail/Yahoo mail/whatever else, PLEASE!
You may now go back to your business, thank you for your attention.