Read Mac Hacks Online

Authors: Chris Seibold

Tags: #COMPUTERS / Operating Systems / Macintosh

Mac Hacks (36 page)

BOOK: Mac Hacks
8.83Mb size Format: txt, pdf, ePub
ads

Next, strip your 8 GB flash drive of its casing, wrap it in tape
or heatshrink, and then attach it to the hub. Then glue the hub down in
the corner of your empty optical drive bay so it’s out of the way. Take
this time to tape your touchscreen controller to the bottom of the LCD
panel. Keep it out of the way, shorten the USB cable that attaches to
the hub to the shortest length possible without making it ballshard to
connect when you’re reattaching the top case.

Now it’s time to install your rear-facing camera! For this part, I
used an iSight from a 17” Intel iMac. You can use an iSight from any 15”
or 17” iMac G5, or 17” or 20” white Intel iMac, or just about any iSight
camera—or even just a USB webcam like
Macam
where the pinout
is available. Since almost all iSights are just USB, it’s fairly easy to
ascertain the pinout.

Grab your iSight and pop out the clips for the plastic bezel
holding the lens. Gently detach the lens from the bezel (it may be glued
on; I’ve encountered some that were and some that weren’t). Again, go
slowly—the lens and ribbon can be damaged very easily. Next, cut the
bezel using snips so it can be turned down at a 90 degree angle instead
of forward. Drill a hole in your optical bay roughly the size of the
glass lens protector (this piece doesn’t help with image modulation, it
just protects the lens from debris/dust), and then pop the bezel/lens
protector in. Check your orientation and then glue the bezel in place.
Since the glass is a cube rather than a sphere, there may be some space
in between the two. If so, use a little Sugru and neaten it up. I also
used a couple of foam pads to lift up the board to the right height; use
your best judgment to determine that. Once everything is dry, attach the
board!

Now, it’s time to wire it up. I know it’s tempting to plug that
iSight into an iLink (FireWire) cable and fire it up, but
don’t do it
. The board is not actually FireWire;
despite its connector, it’s
USB
. Check the wire
colors if you don’t believe me! You can actually just snip off that end,
since we’re not going to use it. Get a male USB A end, and solder it
onto the iSight, matching the wire colors (
Figure 11-29
). Done! For
sanity, you should boot up your system and plug your iSight in to
double-check that the port works. If everything’s good, tack your lens
to the plastic bezel, tack the board down, and then clean up those
wires!

Figure 11-29. The iSight in place and wired up to a USB cable.

Tip: I seal all of my solder connections with hot glue, just to
prevent shorts and give the wires some strain relief. I use a
full-size hub to make components and wires easy to change, but it does
occupy a significantly larger amount of space. You could do better by
removing all of the USB female A ports and just soldering directly to
the hub PCB.

Now, I’m sure you’re thinking “Where are we putting the inverter?”
I’m getting to that. I moved my inverter to the empty optical drive bay
with the rest of the components. It’s a four-wire connection, and can be
extended without knowing the pinout. Cut a single wire at a time, and
attach it to your extension. Seal the connections with heatshrink
tubing. IDE/floppy ribbon cables are the perfect size for these
extensions, and are quite easy to deal with. (40-pin and 80-pin cables
don’t work very well.)

Next, we need to make sure the top case has four magnetic objects
to attach itself to when we close the case. I took a water-damaged scrap
top case that I had and popped off the two metal alloy pads that the lid
uses to grip the bottom case. I then glued them in their respective
places on the bottom case. That covers the lower area. For the top...I
used razor blades with tape over the blades. I don’t recommend that
method. Any rectangular piece of metal (preferably
not
sharp) will work, but not all alloys are
magnetic! Glue them in place in the corners of the fan strut. Done! (See
Figure 11-30
.)

Figure 11-30. Razor blades taped in place to act as catches for the
case.

We’re in the home stretch here. Solder two wires onto the pins of
the sleep switch as shown in
Figure 11-31
. Then run these
two wires to your toggle switch. Now, when the switch is in the on
position, the system will think the lid is closed and go into sleep
mode. Open the switch, and the computer wakes up.

Figure 11-31. The switch used to sleep and wake the MessagePad.

I used Sugru to seal the optical drive slot and smooth out the
side of the case, as well as seal the areas where the hinges previously
were. You can also protect the bottom of the user-facing iSight with a
bit of Sugru. It really works wonders.

Finally, install your SSD (see
[Hack #48]
), RAM cover, and
battery. Then attach all of the cables for your top case, route the
cables so they aren’t stressed when the bezelid is shut. Let the magnets
hold the two pieces together and...you’re done! Boot it up. Revel in the
glory and wonders of your own Mac OS X tablet.

After
all that, it’s time to install some software that’ll make
using this thing easier (and possible). You’ll want a copy of
MacFlip
, a free,
accelerometer-based screen-orientation app made for the Axiotron
Modbook. You
may also want to install
smcFanControl
,
which lets you tweak the speed of the device’s fans so they vary based
on power state.

To enable the onscreen keyboard, head to System
Preferences→Language & Text, click the Input Sources button, and
then check the box next to Keyboard & Character Viewer. Once that’s
done, you’ll see a keyboard-like icon in the menu bar. Click that icon
and, in the drop-down menu, select Show Keyboard Viewer. Voilà—an
onscreen keyboard will appear!

Now you’re
all done!
Hug pandas. Eat cake and
initiate a sugar coma.

The MessagePad in Use

This device isn’t perfect, but it’s pretty cool. Here are some
things I’ve learned from using it:

  • Pecking at the onscreen keyboard is a bit of a bother. As
    mentioned earlier, the touch overlay doesn’t support multitouch, so
    you can’t use modifier keys.

  • The tablet’s battery life is about 4 hours of active use.
    Later generations have better sleep-power consumption, and should be
    able to sleep for long periods of time. The generation I used does
    not, but can sleep for a week or so before depleting its
    battery.

  • The system is surprisingly light, and definitely comfortable
    to hold. It’s large, but nice. I enjoy using it.

  • Tap-to-click is an absolute must; double-clicking on things is
    tiresome using the touchscreen.

  • The LCD should be protected under a layer of lexan. Without
    that, pressing on the overlay means pressing on the screen’s glass,
    which is very bad for the screen. This configuration works, but
    could be much better with some protection. It could even be made
    waterproof with a significant amount of work.

  • Speakers don’t quite reflect sound towards the user without
    the lid. When placed on a surface, though, it’s very loud.

  • The device gets moderately warm, but nothing
    uncomfortable.

  • MacFlip can’t do vertical screen orientation (it just
    scrambles everything). It will also bury the menu bar in the dead
    zone if it’s flipped the opposite direction.

  • A higher quality overlay would make this even more
    awesome.


Phil Herlihy

Index
A note on the digital index

A link in an index entry is displayed as the section title in which that entry appears. Because some sections have multiple index markers, it is not unusual for an entry to have several links to the same section. Clicking on any link will take you directly to the place in the text in which the marker appears.

Symbols
@ (at sign), representing Command key in
keybindings,
Speed Things Up with Keybindings
^ (caret), representing Control key in
keybindings,
Speed Things Up with Keybindings
{ } (curly brackets), enclosing
keybindings,
Speed Things Up with Keybindings
$ (dollar sign), representing Shift
key in keybindings,
Speed Things Up with Keybindings
.. (dots, double), indicating
parent directory,
Navigating Around Your Mac
-- (hyphens, double),
indicating comments in AppleScript,
Creating the Script
// (slash, double), preceding
comments in keybindings,
Speed Things Up with Keybindings
~ (tilde)
indicating home directory in Terminal,
PLIST Files for Hackers
,
Harmless Unix Tricks
representing Option key in keybindings,
Speed Things Up with Keybindings
A
access point, Mac as,
Use Your Mac as an Access Point

Pulling Off the Hack
Activity Monitor,
Force quitting greedy processes
,
Harmless Unix Tricks
administrator account
changing to standard account,
Turning Your Administrator Account into a Standard
Account

Turning Your Administrator Account into a Standard
Account
setting up,
Get to Know Your User Account
Adobe Flash
alternatives to, forcing use of,
Trick sites into not needing Flash
disabling,
Disable Flash
in Google Chrome,
Open Safari Pages in Chrome
uninstalling,
Uninstall Flash
afplay command,
Using Terminal Commands: A Better Way?
All My Files option, desktop files in,
Getting Things Done with AppleScript

Hacking the Hack
Amazon, free music from,
Get Free and Better-Sounding Music for iTunes
anonymity,
Achieve Network Anonymity

Control Those Cookies
(see also privacy)
anonymizers,
Control Those Cookies

Control Those Cookies
anonymouse,
Control Those Cookies
Apache web server
enabling,
Resurrect Web Sharing in Mountain Lion

Resurrect Web Sharing in Mountain Lion
starting in the background,
Automating Apache

Automating Apache
APNS (Apple Push Notification Service)
certificate,
Setting Up Profile Manager
Apple technical support,
Troubleshooting Mac OS X
,
Squeeze Some Speed out of an Aging MacBook Pro
AppleScript Editor
alternatives to,
Creating the Script
compiling scripts,
Creating the Script
creating scripts,
Creating the Script

Creating the Script
running scripts,
Creating the Script
AppleScripts
automatically storing files on desktop,
Getting Things Done with AppleScript

Hacking the Hack
comments in,
Creating the Script
running when Bluetooth device in range,
Preparing Bluetooth Proximity Tasker

Putting It in Action
Application folder,
What Your Home Folder Means to You
applications
CPU and resources used by,
Force quitting greedy processes
force quitting,
An application stops responding

Force quitting greedy processes
full-screen capability for,
Full Screen for (Almost) Any App

Full Screen for (Almost) Any App
help on, in Terminal,
Harmless Unix Tricks
not responding,
An application stops responding

An application stops responding
portability of,
What Your Home Folder Means to You
pushing to devices,
Device Management

Device Management
recent, showing in Dock,
Add a Recent Applications Stack

Add a Recent Applications Stack
resources used by,
Force quitting greedy processes
resuming at startup, disabling,
Turn Off Resume

Turn Off Resume
running, showing in Dock,
Have the Dock Display Only Running Apps

Have the Dock Display Only Running Apps
at sign (@), representing Command key in
keybindings,
Speed Things Up with Keybindings
Autocorrect, turning off,
Turn Off Autocorrect
automatic recognition of Bluetooth device,
Have Your Mac Automagically Recognize You

Putting It in Action
Automator
creating services using,
Create a Service with Automator

Create a Service with Automator
ejecting iTunes library using,
Eject iTunes

Step 5: Make Your Utility Useful
keyboard shortcuts for created actions,
Step 5: Make Your Utility Useful
playing startup sound using,
Change the Startup Sound
saving applications from,
Keeping everything synced
,
Change the Startup Sound
,
Step 4: Save Your Utility
synchronizing folders,
Keeping everything synced
B
backups
bootable,
Backing Up with Disk Utility
Disk Utility for,
Backing Up with Disk Utility

Backing Up with Disk Utility
importance of,
Create a Great Backup
Time Machine for,
Time Machine

Time Machine
when not needed,
What Makes a Good Backup?
bandwidth of Internet connection,
Do You Have the Bandwidth?

Do You Have the Bandwidth?
bash shell,
Harmless Unix Tricks
battery
cycles of, checking,
Squeeze Some Speed out of an Aging MacBook Pro
replacing,
Squeeze Some Speed out of an Aging MacBook Pro
,
Preparing for the Hack

Preparing for the Hack
BitTorrent client,
Get the Apps

Master Torrents
blogging,
Blog with Your Mac
bookmarklets for,
Get a bookmarklet

Get a bookmarklet
content of,
Step 1: Why Are You Here?
,
Step 3: Start Blogging
creating a blog,
Step 2: Get Set Up

Step 3: Start Blogging
hosting sites for,
Step 2: Get Set Up

Step 2: Get Set Up
media, adding,
Get the full Mac blogging experience with MarsEdit
writing and editing posts,
Step 4: Make Blogging Easier

Get a bookmarklet
Bluetooth device
automatic recognition of,
Have Your Mac Automagically Recognize You

Putting It in Action
checking signal strength of,
The Hardware You Need
home automation using,
Putting It in Action
pairing with Mac,
Mac, Meet Phone
running scripts when in range,
Preparing Bluetooth Proximity Tasker

Putting It in Action
Wii Remote as,
Use a Wiimote with Your Mac
Bluetooth Proximity Tasker,
Preparing Bluetooth Proximity Tasker

Putting It in Action
bookmarklets,
Get a bookmarklet

Get a bookmarklet
bookmarks, syncing,
All Your Bookmarks Everywhere
Boot Camp Assistant,
Partition that Drive Nondestructively
bootable backup disk, creating,
Backing Up with Disk Utility
bootable flash drive, creating,
Create a Bootable Flash Drive

Create a Bootable Flash Drive
bootable installer, creating,
Copy the Mountain Lion Installer to a Flash Drive

Copy the Mountain Lion Installer to a Flash Drive
brew command (see Homebrew)
browser
Adobe Flash for
alternatives to, forcing use of,
Trick sites into not needing Flash
disabling,
Disable Flash
uninstalling,
Uninstall Flash
bookmarks, syncing,
All Your Bookmarks Everywhere
cookies stored by
blocking,
Control Those Cookies
deleting,
Control Those Cookies
privacy,
Achieve Network Anonymity

Control Those Cookies
anonymizers,
Control Those Cookies
Tor software,
Control Those Cookies

Control Those Cookies
RSS support, enabling,
Help Safari Get its RSS Groove Back
Safari Reader, printing from,
Safari Reading List
C
caret (^), representing Control key in
keybindings,
Speed Things Up with Keybindings
cat command,
Create a Service with Automator
cd command,
Navigating Around Your Mac
certificate signing request (CSR),
Preparing for Profile Manager
certificates
APNS certificate, for Profile Manager,
Setting Up Profile Manager
SSL certificate, for Profile Manager,
Preparing for Profile Manager
changeip command,
Preparing for Profile Manager
,
Preparing for Profile Manager
chflags command,
Reveal Your Library Folder
chown command,
Automating Apache
Chrome, Google, opening Safari pages in,
Open Safari Pages in Chrome
ChronoSync,
Move Your iTunes Library
CIDTracker software,
Putting It in Action
clean install of Mountain Lion,
A Clean Install of Mountain Lion

Clean Install with One Mac
ClickToFlash plug-in,
Disable Flash
Cocoa Packet Analyzer,
More Information with Private Eye

More Information with Private Eye
code examples, permission to use,
Using Code Examples
color of MacBook, changing,
Give Your Polycarbonate Mac a Dye Job

Finished Project
Command key, in keybindings,
Speed Things Up with Keybindings
commands
for keybindings,
Speed Things Up with Keybindings
Unix commands,
Navigating Around Your Mac

Fancy Command-Line Moves
(see also specific commands)
arguments and options for,
Fancy Command-Line Moves
help on,
Harmless Unix Tricks
,
Fancy Command-Line Moves
warnings for commands that affect files,
Creating Directories and Working with Files
comments
in AppleScript,
Creating the Script
in keybindings,
Speed Things Up with Keybindings
configuration file, editing,
Resurrect Web Sharing in Mountain Lion
contact information for this book,
How to Contact Us
Control key, in keybindings,
Speed Things Up with Keybindings
conventions used in this book,
Conventions Used in This Book
convert command,
Manipulate Images with ImageMagick

Manipulate Images with ImageMagick
cookies
blocking,
Control Those Cookies
deleting,
Control Those Cookies
Cover Flow view, Finder,
Manipulate Images with ImageMagick
cp command,
Creating Directories and Working with Files
,
Creating Directories and Working with Files
CPU used by applications,
Force quitting greedy processes
CSR (certificate signing request),
Preparing for Profile Manager
cURL command,
Install Homebrew
curly brackets ({ }), enclosing keybindings,
Speed Things Up with Keybindings
D
Dashboard
Developer mode for,
Move a Widget to the Desktop
moving widgets to desktop from,
Move a Widget to the Desktop

Move a Widget to the Desktop
quitting,
Quit Dashboard for Real
running again after quitting,
Unhacking the Hack
Debug menu, Disk Utility,
PLIST Files for Hackers
DefaultKeyBinding.dict file,
Speed Things Up with Keybindings
defaults command,
Transferring your user account
,
PLIST Files for Hackers
,
Make Those Keys Repeat
,
Reveal Your Library Folder
desktop
automatically cleaning up files on,
Getting Things Done with AppleScript

Hacking the Hack
displaying information on,
Turn Your Desktop into a Fount of Useful Info

Turn Your Desktop into a Fount of Useful Info
moving widgets to,
Move a Widget to the Desktop

Move a Widget to the Desktop
devices
Bluetooth (see Bluetooth device)
enrolling in Profile Manager,
Enrolling into Profile Manager

Automating Enrollment and Random Management Tips
forcing passcode on,
Device Management
pushing applications to,
Device Management

Device Management
wiping,
Device Management
on wireless network, list
of,
Secure Your Wireless Network
df command,
Beyond the Hack
diff command,
Fancy Command-Line Moves
directories (see folders or directories)
disk image, hiding files in,
Hiding Files in a Disk Image
Disk Utility
creating backups using,
Backing Up with Disk Utility

Backing Up with Disk Utility
creating bootable installer using,
Copy the Mountain Lion Installer to a Flash Drive

Copy the Mountain Lion Installer to a Flash Drive
Debug menu for,
PLIST Files for Hackers
encrypting external drive using,
Encrypt a USB Drive

Using Your New Drive
S.M.A.R.T. status of drive,
Your hard drive is making noises

Your hard drive is making noises
diskutil command,
Beyond the Hack
,
Beyond the Hack
DiskWarrior,
Startup troubleshooting
dmg files,
Hiding Files in a Disk Image
DNS, using with Profile Manager,
Preparing for Profile Manager
Dock
customizing with Terminal,
Customize the Dock with Terminal

Have the Dock Display Only Running Apps
displaying only running applications,
Have the Dock Display Only Running Apps

Have the Dock Display Only Running Apps
highlighting items at mouse pointer,
Highlight that Item
organizing with spaces,
Organize Your Dock with Spaces
Recent Applications stack for, adding,
Add a Recent Applications Stack

Add a Recent Applications Stack
reflective glass effect, removing,
Get Rid of the Glass
dollar sign ($), representing Shift key in
keybindings,
Speed Things Up with Keybindings
Dolphin, Wii emulator,
Play Wii Games on Your Mac

Play Wii Games on Your Mac
dots, double (..), indicating parent directory,
Navigating Around Your Mac
drives (see flash drive; hard drive)
Duplicate command, keyboard shortcut for,
Get Save As Back the Way You Expect It
DVR, using Mac as,
Turn Your Mac into a DVR

Install TVShows 2
dynamic IP address,
Fake a Static IP
BOOK: Mac Hacks
8.83Mb size Format: txt, pdf, ePub
ads

Other books

The Angel Maker - 2 by Ridley Pearson
The Corpse Wore Tartan by Kaitlyn Dunnett
Absorbed by Crowe, Penelope
Really Something by Shirley Jump
Royal Wedding by Meg Cabot
The Dead Zone by Stephen King
The Space Between Us by Jessica Martinez
Return to Harmony by Janette Oke