Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Big Book of Apple Hacks
Preface
How to Use This Book
How This Book Is Organized
Chapter 1, Before You Hack
Chapter 2, Hacks for the Net
Chapter 3, Hacking Mac OS X
Chapter 4, Command-Line Fun
Chapter 5, Customizing the OS X Look and Feel
Chapter 6, Network and Security Hacks
Chapter 7, Hacking the iPod
Chapter 8, Maximize Your Mac with Multiple Operating Systems
Chapter 9, Hacking the iLife
Chapter 10, Hack the Apple TV
Chapter 11, Hack the Latest and Greatest: Leopard
Chapter 12, Hack the iPhone
Chapter 13, Hacks for Laps
Chapter 14, Multimedia Hacks
Chapter 15, Hack Some Hardware
Conventions Used in This Book
Using Code Examples
Acknowledgments
We’d Like to Hear from You
1. Before You Hack
HACK 01: Back Up Now with Disk Utility
Backing Up with Disk Utility
That’s Great, But I’ve Got One Mac and No External Hard Drive!
HACK 02: Create an Emergency Bootable Flash Drive
Creating a Bootable Disk
Using the Emergency Boot Disk
HACK 03: Install Developer Tools
What You’ll Get
Installing Xcode
HACK 04: Understand Your User Account
What’s in a Name?
Your Home Directory
Who’s the Boss?
Deleting an Account
HACK 05: Become an Administrator for a Moment
Desktop Root
Command-Line Root
Enabling the Root Account
Logging in as root
HACK 06: Behold the Power of PLIST
PLIST Files for Hackers
2. Hacks for the Net
HACK 07: Change Your Browser
Firefox
Google Browser Sync
Greasemonkey
Trim Firefox’s fat on Intel Macs
Opera
Search your history—every last word of it
Shiira: A WebKit-Based Safari Alternative
All your bookmarks belong to Shiira
Better options for viewing page source
Change Your Default Browser
HACK 08: Safari: More Than Meets the Eye
Safari Tricks
Retroactive private browsing
Put your Activity to work
Safari Add On: Saft—The Do-It-All Sidekick
HACK 09: Browser Agnosticism
Portable Passwords
Liberate Your Bookmarks
Make your mark
Make a better mark
Another bookmark menu option
HACK 10: Enable Safari Debug Menu
HACK 11: Roll Your Own Web Server
Define Your Needs
Using Pre-OS X Macs
Using OS X Hardware
Getting Your Domain
Opening Your Router So Your Web Server Can Peek Out
Setting Up Your Web Server on Older PowerPC Equipment
Let’s configure your new web server
Pulling It Off with OS X
HACK 12: Two Ways to Reset Safari
HACK 13: Ditch That Hidden Data
Viewing Metadata
Ditching the Metadata
HACK 14: Scrape the Web for Images
HACK 15: User-Initiated Privacy for Web Applications
3. Hacking Mac OS X
HACK 16: Know Your Cats
HACK 17: Kill Dashboard
Unhacking the Hack
HACK 18: Move a Widget to the Desktop
Later
HACK 19: Turn Your Desktop into a Font of Useful Information
HACK 20: Tame the Finder
Undoing the Hack
HACK 21: Use That Software Restore Disk on (Almost) Any Mac
Target-Disk Mode Approach (Not 100% Safe)
Install bundled software
Installing operating system
Why isn’t this procedure 100% safe?
Two old machines
Installation of Single Packages (Safe but Complicated)
Change the Requirements (Safe)
HACK 22: Get Things Done with Automator
Quit All Applications Workflow
Access the Media Browser
Watch Me Do
Locating Your Workflows
HACK 23: A Context Menu for Moving Files
HACK 24: Free Up Gigabytes of Space on Your Hard Drive (and Never Miss the Data)
Removing Unneeded Language Files
Getting Rid of Unneeded Printer Drivers
Slimming Down iPhoto
HACK 25: Create an Encrypted USB Drive
Getting Started
Using Your New Image
HACK 26: Capture That Screen
Capturing the Whole Screen
Capturing a Portion of the Screen
The Next Level in Screenshots
HACK 27: Launch in a Different Way
LaunchBar
Quicksilver
Spotlight
Plenty More Where That Came From
HACK 28: Meet the Dictionary: Your Hidden Wikipedia Browser
4. Command-Line Fun
HACK 29: Meet Unix
HACK 30: Getting Things Done with the Command Line
HACK 31: Get More Out of Your Mac with Fink and MacPorts
Getting Started with Fink
MacPorts
Example: Three Ways to Install Gimp
HACK 32: Make Life Easy With Shell Scripts
Variables and Aliases
Avoid Drudgery with Shell Scripting
Doing Real Work with Loops and Ifs
Hacking the Hack
Old-fashioned ways
New-fangled ways
HACK 33: Fun with MacFUSE, or Mount Nearly Everything as a Virtual Hard Drive
Use Gmail for File Storage
Get More Out of Spotlight
HACK 34: Starting and Stopping Unix Daemons
The Startup Script
The Property List
HACK 35: Image Management with ImageMagick
Converting File Formats
Create Thumbnails in an Instant
Rotate a Set of Images
To Add a Subtitle or Text Caption
Create a Text Banner
Create a Montage
Get Information About an Image
Bulk Actions on Image Files
HACK 36: Tapping Into Mac OS X from the Command Line
AppleScript
Clipboard
Open
QuickLook
Spotlight
Take a Screenshot from the Command Line
5. Customizing the OS X Look and Feel
HACK 37: Customize the Login Window
Unhacking the Hack
Hacking the Hack
HACK 38: Change Safari’s Error Page
Hacking the Hack
HACK 39: Convert Audio Files with iTunes
HACK 40: Replace Mail Sounds
The GUI Approach
Hacking the Hack
HACK 41: Rename the Unrenameable
Unhacking the Hack
HACK 42: Create Custom Screensavers
The iPhoto Mosaic Screensaver
Build Your Own Screensaver with Quartz Composer
Preparing for the hack
Extending the Hack
HACK 43: Create Custom Icons
Changing Icons the Easy Way: Cut and Paste
Designing Your Own Icons
Generating the image
Composing the icon
HACK 44: Clean Up That Desktop with AppleScript
Creating the Script
Hacking the Hack
HACK 45: Change the Boot Image
Change the Boot Image the Easy Way
Change the Boot Image Super Hack Style
HACK 46: Empower the Finder Window
See the Path
More Control Over the Sidebar
Add Apple-Built Searches
6. Network and Security Hacks
HACK 47: Automate Your Download Folder
HACK 48: Approximate a Static IP with NoIP for Mac
Getting the Hack to Pay Off
Hacking the Hack
HACK 49: Surf Anonymously
HACK 50: Monitor the Data Leaving Your Mac
Using Mac OS X’s Firewall
Little Snitch 2
HACK 51: Resurrecting the IPFW Firewall in Leopard
Part I: Configure the Shell Script
Part II: Install the Firewall Shell Script
HACK 52: Physical Security Measures for Your Mac
Kensington Cable
Screensaver/Sleep Password
Use a Login Password
Use a Firmware Password
Target-disk mode
Single-user mode
Password-reset
Safer Still, Especially with a PowerPC
Circumventing Firmware Passwords
Safer Still
HACK 53: Keep Your Traffic Private with Secure Shell
Tunnels: What and Why?
Configuring the Tunnel
HACK 54: Secure Your Wireless Network
Basic Steps (Even if You Opt Not to Protect Your Wireless Network)
Disable SSID Broadcast
Restrict MAC addresses
WEP and WPA-PSK
Unhacking the Hack
HACK 55: Share Your Wi-Fi
Configuring the Open Access Router
Physically Configuring the Routers
HACK 56: Use Your Mac as an Access Point
Pulling Off the Hack
HACK 57: Hide Sensitive Files in OS X
The Quick and Easy Way: Bury It in Your Library
Hide It with a Dot
Hiding Files in a Disk Image
It’s Better to Be Better
7. Hacking the iPod
HACK 58: Home Folder to Go
Burn Up Your iPod? The Debate Rages!
What Your Home Folder Means to You
Enabling iPod Data Storage
Transferring your account (pre-Leopard)
Transferring your account with Leopard
One account or an account to go?
Using your Home folder on the go
HACK 59: Boot from Your iPod
Methods to Turn Your iPod into a Startup Disk
Making the iPod bootable with Carbon Copy Cloner
HACK 60: Manage Your Shuffle Sans iTunes
Before You Get Started
Installing iPod Shuffle Database Builder
Hacking the Hack
HACK 61: Uncap Your iPod’s Volume
Undoing the Hack
HACK 62: The 2¢ iPod Case
HACK 63: The Ultimate Zen Hack: iPod Video Cable
HACK 64: Good as New: Clean Your iPod
Getting Clean
Getting Rid of Scratches
The Ugly Truth About Pretty Chrome
HACK 65: Read Wikipedia on an iPod
Using the Script
8. Maximize your Mac with Multiple Operating Systems
HACK 66: Nondestructively Partition Your Hard Drive
HACK 67: Run Windows on Your Mac
Boot Camp or Virtualization?
Installing Windows with Boot Camp
Installing Windows on a Virtual Machine
Using VMware or Parallels with Boot Camp
Creating a Virtual Machine from Scratch
Crossover Mac
HACK 68: Suck Windows Onto Your Mac
Prepping the Windows Box
HACK 69: Move from Windows to Mac OS X Painlessly
Modifier Key Definitions
HACK 70: Panic Swap
Required Items
Swapping the Disks
Booting the Mac
Getting Everything Working
HACK 71: Using Windows Keyboards with OS X
Out of the Box
HACK 72: Boot Another OS Without Losing Uptime in Mac OS X
Is Your Mac Safe Sleep–Enabled?
The Easy Way (PowerPC and Intel)
On a PowerPC-based Mac
On an Intel-based Mac
The Open Firmware method (PowerPC only)
HACK 73: Run Classic Mac Applications with SheepShaver and Basilisk II
Running Classic Operating Systems with SheepShaver
Extending the hack
Running Older Versions of Mac OS with Basilisk II
HACK 74: Build a Screaming Fast Darwin Machine for $935 (or Less)!
The Parts
Tweaking the BIOS
Installing Darwin
Hacking the Hack
9. Hacking the iLife
HACK 75: Get More Out of iTunes
Get Out of Sorts with Your Music
Lose the DRM on iTunes Tracks
The long, tedious DRM workaround
Give iTunes Better Ears
Overlooked iTunes Features
See the music
Control your library with Smart Playlists
Add album art to iTunes
Fixing bad track information and tags
Add lyrics for music
HACK 76: Build a Custom Visualizer with Quartz Composer
Connect to iTunes
Elaborating the Hack
Pumping Things Up with the Inspector
Tighten up the Design
Publish the Hue Inputs
Hook the Hues Up to Various Frequencies
HACK 77: Get More Out of iChat
Buddy Control
Go Invisible or “Don’t Call Us, We’ll Call You”
Free .Mac Screen Names for iChat Accounts
Changing Your Own iChat Buddy Picture
Secure Your Chats
Improve That Video
Fix a Remote Computer with iChat
HACK 78: Use a Chatbot with iChat
Target a Chatter
Hacking the Hack: Get Chatbots Chatting
HACK 79: Quick iPhoto Tips and Tricks
Print N-Up Pages
Print to a Given Size
Get at Those Photos Without iPhoto
HACK 80: Tips for Pics
How Much Camera Do You Need?
HACK 81: Get More Out of iWeb
An Aerial View of iWeb
Starting Off with iWeb
Backing Up an Existing Site
Templates and Themes
iWeb’s Basic Interface
Themes
Text Box
Shapes
Web Widgets
One step forward, two steps back
Unmask
Sit on it and...
Media
Adjust
The Inspector
And the rest...
Inspecting the Inspector (Expect the Unexpected)
Site tab: Site and Password
Page tab
Photos tab
Blog and Podcast tab
Text tab
Graphic tab
Metrics tab
Link tab
Hyperlink
Format
QuickTime Tab
You’ve Got the Theory, Time to Practice
Faking Master Pages
Size matters
Site navigation
Not doing it the Apple Way
What else do I need?
iWeb’s Welcome Page
What’s Next?
HACK 82: Fun with Photo Booth
Better Movies
Add Backdrops and Effects to Photo Booth
Create an Animated GIF with Photo Booth
HACK 83: Optimize iMovie HD for YouTube
HACK 84: Tips for Making Great Movies
Get Some Headphones
Spring for a Microphone
Get a Tripod
Light Up the Subject
10. Hack the Apple TV
HACK 85: Use Your Apple TV with Standard Definition Sets
Getting Color to the Composite Video Plug the Easy Way
HACK 86: Upgrade Your Apple TV Hard Drive
HACK 87: Configure the Apple TV for Remote Shell Access
HACK 88: Gain Remote Shell Access to the Apple TV (Running Take 2) Without Opening the Case
Required Items
Before You Get Started
The Hard Work, No 10.4.9 Machine Handy Method
Patching the Apple TV Box
HACK 89: Browse from the Couch
Installing Couch Surfer
11. Hack the Latest and Greatest: Leopard
HACK 90: Make Mail Templates Yours
Modifying Existing Templates
Undoing the Hack
Heavily Modifying or Creating Your Own Stationery
Create the World’s Most Annoying Email
HACK 91: A Brighter Spotlight
Spotlight as a Calculator or a Dictionary
Use Boolean Searches with Spotlight
A More Refined Spotlight Search
Set Limits for Spotlight
Use the Spotlight Index from the Command Line
HACK 92: Time Machine: How to Back Up Different Folders to Different Disks
HACK 93: Two Ways to Make a Widget
Create a Widget with Dashcode
HACK 94: Tweak an Existing Widget
HACK 95: Beer Goggles for Leopard
A Different Dock
Get the Tiger Dock Back
Sometimes You Just Want to Be Different
More Discernable Folders
Unhacking the Hack
HACK 96: Install Leopard on Unsupported Hardware
The Fairly Obvious FireWire Target Disk Mode Method
The Less Intuitive but Universal Method to Get Leopard to Install on Older Machines
HACK 97: Burn Leopard to a Single Disk; Install Leopard from an Image
Burning Leopard to a Single-Layer DVD
HACK 98: Approximate .Mac with Free Tools
Mail
File Sharing
Syncing
Back to My Mac
Hacking the Hack
Sharing the screen
12. Hack the iPhone
HACK 99: Jailbreak Your iPhone
iPhone Hacking Terms
Using Different Firmware Versions
HOWTO Jailbreak Each Firmware Version
1.0.0-1.0.2
1.1.1
1.1.2
1.1.3 and 1.1.4
How to Jailbreak Each Firmware Version
Bypassing Activation
HACK 100: After You Jailbreak
HACK 101: Add a Hard Drive to Your iPhone (Kind of)
Pulling Off the Hack
Accessing Your Media
HACK 102: The iPhone as a Mobile Educational Tool
Web Resources
Facebook
PogoNotes
Vitalist
Miscellaneous Resources
Voice Notes
iTunesU
Keynote and iPhone AV Cables
HACK 103: The iPhone as a Mobile Blog Machine
Get the Right Tools
Gathering Content
Manipulating Content
Creating a Blog Post
Organizing Additional Media
Promoting Content with Bookmarklets
HACK 104: Going Mobile with PasswordWallet
13. Hacks for Laps
HACK 105: Three Ways to Disable a Built-in iSight
If iSight Bugs You...
If You’re Surrounded by the Paranoid...
Pretend You Have an iBook or a PowerBook
HACK 106: Two Hacks for the iBook
Two Finger Scrolling
Monitor Spanning
HACK 107: Demobilize Your iBook
HACK 108: Build a Perfect Laptop Cooler for Your Machine
Determining Your Laptop’s Internal Temperature
Building the Custom Cooler
HACK 109: Dual Drive MacBook Pro
Results
Extended Use Update
HACK 110: Upgrade a Macbook Pro Hard Drive
Process
HACK 111: SmackBook: The Most Fun You’ll Ever Have Beating Your ’Book
Hacking the Hack
14. Multimedia Hacks
HACK 112: Let Your TiVo Meet Your Mac
Share Your Media
Access Your TiVo with Safari
Hacking the Hack
HACK 113: View AVI Movies on Your Mac
For One-Off Conversions
For More Regular Viewing
For Batch Conversions
HACK 114: Master BitTorrent with Xtorrent
Sharing Torrents
HACK 115: Legal Online Sources for Music (Besides iTunes!)
Amazon
eMusic
MP3Tunes
Obtaining Free and Legal Music and Video
Download.com
Google Video
iTunes podcasts and videocasts
Quick mentions
Getting your acquisitions into iTunes
HACK 116: Play Songs Sans iTunes
Getting the Software Installed
Copying the files from the Terminal
Listen to the Music
HACK 117: Play Classic Games on Your Mac with MacMAME
HACK 118: Connect Your Mac to an Xbox 360
What Is Connect 360?
How Does It Work?
Configure Xbox 360
Configure your Macintosh
Summary
HACK 119: Grab and Convert Video from YouTube
HACK 120: Keep Your iTunes Library on an External Hard Drive
The Setup
Configuring iTunes
The Gotchas
Adding Media to Your New Setup
Be One with Your External iTunes Library
HACK 121: Building a Digital Movie Collection from Your DVD Collection
Fun with Your New Files
The Payoff
HACK 122: Create a Screencast!
The Tools
Recording video
Recording audio
Say It Loud and Clear
Getting Their Attention
Where the Magic Happens
HACK 123: Manipulate Audio From the Command Line
Rip CDs to MP3 with lameit
The code
Running the hack
Rip CDs to FLAC with flacit
The code
Running the hack
Label Your Tunes with id3hack
The code
Running the hack
Add Metadata with vchack
The code
Running the hack
Fix your Metadata with vctool
The code
Running the hack
Convert Metadata to ID3 with vcid3
The code
Running the hack
Convert from FLAC to MP3 with flacmp3
The code
Running the hack
Simplify Your Table of Contents with striptoc
The code
Running the hack
Final Thoughts
15. Hack Some Hardware
HACK 124: Awesome Mini in a Car Hack!
Choosing the Equipment
Finding a Home for the Mini
The Problem with the Power Switch
Powering the Mini
Housing the Monitor
Strip things down to the essentials
Mount the monitor
Fabricate some parts for finishing
HACK 125: Repair Scratched DVDs and CDs
Repairing CDs and DVDs
HACK 126: Use Your Mac as a Weather-Monitoring Station
HACK 127: No Lights? No Power? Still Got the Net!
HACK 128: Hacks for Smart Homes
Get to Know MisterHouse
Installing MisterHouse
Getting Connected
Adding X10 Devices
Scheduling Events
Responding to Events
Using the MisterHouse Logs
Diving In
HACK 129: Twittering Your Home
Why Twitter?
My First Implementation
Getting Started
Implementation Details
Hacking the Hack
HACK 130: Create Custom Video Cables
Decide What You Want
The Required Tools
Making a Custom Length Cable for a Cable Modem
Custom Video Cables
HACK 131: Clean the Mighty Mouse
Option 1
Option 2
Reassembling the Mighty Mouse
A. Credits
About the Author
Contributors
Index
About the Author
Copyright
← Prev
Back
Next →
← Prev
Back
Next →