Gear We Love: Nite Ize iOS accessories for your bike, desk, and bag

There’s a lot of gear out there for your Apple devices, but how do you know which are worth your time and what’s not worth your money? In our Gear We Love column, Macworld’s editors tell you about the products we’re personally using—and loving.

One of my favorite things about the annual Macworld/iWorld show is checking out the unique gear from smaller, lesser-known vendors and from the “We make so many different things that you’re bound to find something you like” companies. Nite Ize is one of the latter. I first encountered Nite Ize many years ago, when the company concentrated on nifty flashlights and flashlight accessories. But the company has since expanded to the mobile-accessory market, and the Nite Ize booth at Macworld/iWorld is a veritable gadget-geek’s gallery.

To read this article in full or to leave a comment, please click here

How to Power Up Quick Look

Quick Look is an under-appreciated OS X gem. Before its arrival, you had to laboriously open a document to see what it contained, often after first launching the app it was created in. Imagine! But in the last few versions of OS X, you merely select the file in Finder and tap the space bar to get a preview.

This much you’re probably familiar with, but Quick Look has a slew of hidden tips that can power up previews on your Mac. Keyboard shortcuts can provide fast access to functions and hidden information, and Quick Look’s extensibility means that if it can’t properly preview a file, chances are someone’s written a plug-in to get around that problem.

The technology is also dotted around OS X, providing the means to save you time. For example, you cannot open items in the Trash—OS X first wants you to drag them elsewhere. But if you just want to check that you’re about to destroy the right thing, you can use Quick Look. And in Mail, attachments can be previewed using the Quick Look button, but you can also hover the cursor near any link and then click the little arrow that appears to get a preview of the associated web page. The remainder of this tutorial shows many more hints and tips to make the most of Quick Look.

 

1. Preview Images

Drag a large photo to Finder and use Quick Look to preview it. The cursor keys can be used to navigate the Finder window in the background, to view other images. Hold Option in OS X Mavericks to zoom the image to full-size. Use two-finger drags to scroll the zoomed photo.

 

2. Check Multi-Page Docs

Preview multi-page docs, such as a PDF of Mac|Life or a Pages file, to read and two-finger swipe between pages. Or, click a thumbnail to go to a page. On the keyboard, this works with Page Up/Down keys (fn + up/down on keyboards without a number pad).

 

3. Try to Preview a Zip

Although Apple has added support for lots of file types, Quick Look doesn’t accommodate them all. Try previewing a Zip archive in Quick Look and you’ll only see a massive icon, the file name, the archive’s size, and its modification date.

 

4. Install a Plug-In

Quick Look plug-ins are here to help. Go to http://bit.ly/ML_BZQLgen and download the plug-in. In ~/Library (Option-click Go in Finder to access it), create a folder called “QuickLook” (no space) and copy the plug-in to it. Zip previews now display more.

 

5. Find More Plug-Ins

Many plug-ins are available. Some you pay for, such as Code Line’s Art View (http://bit.ly/ML_CLartview) for Adobe Creative Cloud, but many are free (see www.qlplugins.com). To remove one, delete it from the QuickLook folder. To install one for every user, put it in /Library/QuickLook.

 

6. Text Copying

Quick Look is read-only, but you can use Terminal to allow you to copy. Open the Terminal window, then type this:

defaults write com.apple.finder QLEnableTextSelection -boolean true

Then type the following to reset the Finder:

killall Finder

You will now see the selection bar when you hover over text in a previewed item. Type the same statement into Terminal but ending with “false” instead of “true” to revert back to read-only mode.

 

7. Preview from Spotlight

Hover over a Spotlight results list item to get a Quick Look preview. This isn’t as full as the standard one, but you can still navigate multi-page documents by swiping. Hover over the preview and hold Command and Option to display the path to the document.

 

8. Use the Trackpad

You can use the Trackpad, with any modern Mac, to bring up Quick Look. Go to System Preferences and click Trackpad. In the Point & Click tab, note the gesture for Look up. Return to Finder, perform that action on a file, and Quick Look activates!

Review: Moshi SenseCover for iPhone 5/5s

It’s somewhat ironic the iPhone has made many owners less reliant on traditional means of communication like talking on the phone, instead favoring messaging, surfing, or social networking. But if your iPhone winds up glued to your ear all day, there’s a new case on the market that will have you swiping for joy.

Available in steel-black or brushed titanium, Moshi SenseCover is a portfolio-style iPhone cover combining a protective polycarbonate back with a stylish leatherette front that magnetically latches for maximum protection while closed. This hybrid design allows iPhone 5 or iPhone 5s owners to answer calls and even talk on the phone without actually opening the cover.

With wraparound protection for the iPhone 5/5s, Moshi’s SenseCover allows the phone to be used without actually opening the cover.

Moshi accomplishes this feat by embedding four proprietary “SensArray” pads into the cover’s face, capable of picking up the swipe of a thumb or finger in the same way a naked iPhone display does while sliding to unlock. It’s a pretty neat technical accomplishment, but ultimately one that’s of little utility if you’re one of those people who can go days without receiving a single phone call thanks to email and messaging.

That’s not to say SenseCover is without merit: there’s a perfect cutaway on the front to catch a glimpse of time and date, and SensArray comes in handy for dismissing alarms, too. The entire front can fold up behind the polycarbonate back, but doing so blocks the camera lens entirely and tends to get in the way of the volume and mute buttons.

There’s also the matter of the iPhone 5s and its Touch ID–enabled home button, which is completely obscured by the front of the SenseCover. We unlock our handset numerous times throughout the day, so the added step of first swinging open the front cover wound up being one too many for us.

Weighing only 26 grams, Moshi has managed to produce an attractive, feather-light wraparound cover that doesn’t add unnecessary bulk to the svelte iPhone. The package also includes optional backside buffer film with a microfiber cloth for application, which is presumably intended to keep the handset from getting scuffed up while being snapped into SenseCover, but we had no such problems without it.

The bottom line. Costly though it may be, there’s no denying Moshi’s SenseCover is a unique and stylish portfolio case for the iPhone, but its appeal is limited for those who use Apple’s handset for everything except talking.

Review Synopsis

Product: 

Moshi SenseCover

Company: 

Moshi

Contact: 

Price: 

$45

Requirements: 

iPhone 5 or iPhone 5s

Positives: 

Lightweight front and back protection for iPhone. Quick access for incoming calls or alarms without opening cover. Stylish design with magnetic latch.

Negatives: 

Not ideal for frequent Touch ID users. Case gets in the way when taking pictures. Expensive.

Score: 
3.5 Good

The best iPhone lens kit: Put a little DSLR on the front of your iPhone

Thanks to the ubiquity of our smartphone cameras, we’re all taking more photos than ever. But those photos are largely confined to the iPhone’s one-size-fits-all, somewhat wide angle lens; gone are the days when most of us were willing to schlep around an SLR with multiple lenses, or even a single bulky zoom lens. You can recapture some of your SLR’s interchangeable lens flexibility, however, with a set of add-on lenses for your iPhone. We’ve rounded up 6 of the most popular options and put them to the test: Here are our recommendations.

iPro Lens System: The best glass for DSLR-quality results

ipro hardware

Some lenses attach directly to the iPhone; others work in conjunction with a custom case. iPro’s Lens System is an example of the latter—after you slide your iPhone into the sleek two-piece sleeve-style case, you attach the lenses via a bayonet mount that is secured with an easy quarter-turn of the lens.

To read this article in full or to leave a comment, please click here

Staff Picks: Sketch a little here and there with Skitch

Ask: Keeping Contacts When Deleting Old Email Accounts

Got an Apple, Mac, or iOS tech question? We have the answer. In this week’s installment of Ask, we’ll teach you how to hang on to your contacts even if you’re deleting the old email accounts they’re associated with.

Question: I have maintained multiple email accounts, several for work, and have recently retired. I would like to delete the work email account from my iPhone and iPad; however, I need to retain many of the contacts. Will the contacts go away when I delete the email accounts? Is there a way to save all of the contacts? 

Answer: The easiest way to download a copy of your iOS contacts to your Mac is to use an application called iExplorer (available from http://bit.ly/ml_iexplorer). Using this application, you can easily extract all of the contacts stored on your device (regardless of their origin). This is especially helpful since iTunes 11 no longer syncs contacts with iOS devices. 


iExplorer will allow you to easily view and export your contacts from your iOS device without having to sync through other means.

After downloading and installing iExplorer, launch it, then select your iOS device. Once there, select Data > Contacts. In this section, you’ll be able to view all of your contacts. Click the “Export All” button that appears in the Contact details view, and the contacts can be exported to the location of your choosing on your computer. Once your contacts have been exported, you can easily import them into iCloud for syncing back to your iOS device. You can then finally delete your old email accounts. 

iExplorer is paid software, but it has a free trial that will allow you to view your contacts, though you won’t be able to export them to your computer.


When exporting through iExplorer, by default, all of your contacts will go directly into the Contacts app on your Mac.

 

Ask is written by Cory Bohon, a freelance technology writer, indie Mac and iOS developer, and amateur photographer.

Got a tech question? Email ask@maclife.com.

Tylt Energi 2K battery pack

Backup batteries are gaining ground as one of the devices that, for many users, must be carried around every day. With lives connected to smartphones and entwined with social media, many people end up facing a shortage in battery power from constant us…

Loop Fob Review

Despite the best efforts of mobile wallet providers, consumers continue to largely ignore technology in favor of old-fashioned payment methods. The folks at Loop think they’ve found a better way, but can it become the one solution to pay everyone?

The Loop Fob is a plastic widget that works in conjunction with the free Loop Wallet app to securely read (and store) credit or debit card info using a swiper on the back. Instead of requiring a near-field communication (NFC) chip, Loop sends a magnetically charged signal to credit card readers, emulating the swipe of real plastic.

The Loop Fob looks a lot like a Square Reader dongle, but it’s nearly twice as big and too bulky to carry on a keychain. We scanned nearly 30 credit, debit, and loyalty cards into the Loop Fob, and only one failed to read. Loop couldn’t determine why, especially when two others from the same bank (Chase) worked. 

Card data is securely stored on the Fob itself and only accessible from a linked iPhone, which is used to switch payment methods on the fly. The Fob can also make payments independently of the smartphone by assigning a single card as the default, making it a more practical solution for handing over to a server, bartender, or retail clerk.

At the register, simply hold Loop Fob against the magnetic card reader and press the transmit button on the side. The first time we used it at a local restaurant, the staff looked at us as if we were time travelers from a distant future. Unlike NFC-based solutions like Google Wallet, Loop claims its magnetic secure transmission technology is compatible with 90 percent of retailers, although our luck was hit-or-miss, especially with businesses that didn’t have a computer tied to older payment terminals.

While it may ultimately be more compatible, Loop isn’t yet polished enough for us to rely on for everyday use. The Fob won’t work on recessed terminals used by gas stations, and the process of switching cards requires too many steps while standing at the register, making it ultimately faster to open a real wallet and pay the old-fashioned way.

The bottom line. Loop makes the mobile-wallet dream a reality, assuming consumers and retailers can adapt to it.

Review Synopsis

Product: 

Loop Fob

Company: 

LoopPay

Contact: 

Price: 

$39

Requirements: 

iPhone 4 or higher running iOS 7.0 or later; credit or debit cards

Positives: 

Mobile wallet payments without an NFC chip. Loop Fob can be used independently of iPhone. Stores unlimited number of credit or debit cards. Works in more places than NFC-based solutions.

Negatives: 

Not compatible with all retail POS terminals. Time-consuming to switch cards. Loop Fob too chunky for keychains.

Score: 
3.5 Good

25 Terminal Tips Every Mac User Should Know

[UPDATED!] The Mac is full of great utilities, and the Terminal is no exception. From customizing your Mac’s secret system preferences to remotely controlling another Mac to manipulating text files in a handful of sly ways, the Terminal utility is more than just a Mac geek’s home base — it’s also place where, with a few expert tricks, all Mac users can feel right at home. Keep on reading as we present to you the 25 Terminal tips and tricks that every Mac user should know how to use in their daily workflows.

Almost every OS has a command-line utility, but none are more misunderstood by users than the OS X Terminal utility (located in /Applications/Utilities/). In an age where Apple’s iOS devices offers the most intuitive graphical user interface the world has ever seen, turning to a text-only command-line window can seem stubbornly retro, reminding us of audiophiles who vociferously insist that vinyl records sound better than music CDs.

But there are plenty of reasons for using the command line beyond mere nostalgia: speed, flexibility, and familiarity with OS fundamentals, to name a few. We’ve collected 25 Terminal-based solutions for common Mac workflows, because knowing these tricks is an invaluable addition to any Mac user’s toolbox. And while there is no reason to abandon the Finder and other system applications, you can think of mastering the Terminal as learning to drive a car with a manual transmission. Once you’ve mastered driving a stick, you can drive anything. The same fundamental learning can be applied to the Terminal application and the Mac. The best part is that most of the basic tips can be applied to other UNIX-based operating systems like Linux.

 

The Basics

The first thing to know about the Terminal is how to launch it, which you do by 
going to \Applications\Utilities\Terminal. Also, you’re no longer in graphical user-interface land: Most of what you’ll do in the Terminal is enter specific text strings, then press Return to execute them. When you see generic references like name-of-file or path-to-file throughout this article, replace that text with your file name or path.

 

1. Handy Terminal Pointers

  • Only text commands are accepted—you won’t use your mouse much inside of the Terminal, with a few exceptions like select games and other user interfaces.
  • After typing in a command, you can execute the command by pressing Return.
  • Every keystroke matters, including spaces, special symbols, and control keys.
  • Interrupt any running command by pressing Control-C.
  • Recall previously entered commands without retyping them by pressing the up arrow. For more information on using the Terminal history, check out this article.
  • Curious about a new command? Type man command (where ‘command’ is the name of the command you’re having questions about), then press Return to read its instruction manual pages. For instance, man SSH will produce the manual for SSH. Press ‘q’ on the keyboard to exit the manual pages.
  • For a list of all commands available in the Terminal, hold down Escape, then press Y when prompted. Use the space bar to load more commands, and press ‘q’ to exit this view.
  • Page down through multipage results by pressing the space bar.
  • For commands that require the path to a file or folder, save yourself some typing by dragging and dropping the file or folder at the end of the command. The Terminal will automatically copy the dropped item’s path and name.
  • When typing out the path to a file, you can use the tab key to complete your typing. Simply type the first few characters of the name, then press tab. It’ll auto-complete the next letters for you.

2. Getting Around

When you first launch the Terminal application, your working directory (the directory you’re currently inside of) is your user’s Home Directory (the same directory that you can access in the Finder by clicking your name in the sidebar). You can test this by typing pwd (or ‘print working directory’) into the Terminal, then pressing enter. You’ll see the current directory printed out to the screen.

You can move to other directories by typing cd path/to/other/directory, replacing “path/to/other/directory” with the path name to the other folder that you wish to navigate to. When you press return, you’ll be taken to that directory (if it exists).

If you get lost, you can always return to your Home Directory by simply typing cd ~/ no matter where you’re at in the Terminal.

3. Anatomy of a Terminal Command

Unlike the sentences you were forced to diagram in sophomore English, Terminal commands only have three parts: the command, which calls a specific command-line utility; the options, which modify the command’s output; and the argument, which is typically the website, file, or other resource that the command will be operating on.

Remembering how the Terminal commands are created will help you in the future when experimenting with new commands and command line programs that take additional options and arguments.

4. Get Comfortable in Your Shell

The Terminal app is Apple’s implementation of a traditional UNIX command-line environment, called the shell. Since the introduction of OS X, Apple has used a particular shell instance called the Bash shell, and this is what you see by default when opening the Terminal application. You can verify this in Terminal | Preferences | Startup, and checking the option for “Default login shell”.

There are a myriad of different shells that you can use with the Terminal application; however, you will need to install most custom ones that don’t ship with OS X. You can read our article on installing and using the Zsh shell here.

It is important to note that if this article inspires you to Google even more command-line tricks, remember that some command-line utilities are shell-specific, meaning that what works in Tcsh on that helpful blogger’s Linux box might not work in Bash on your Mac.

5. Clearing the Screen

After you begin typing a lot of commands into the Terminal, the scrolling history becomes longer and longer as all of the content for a single session (a session is created each time you open a new Terminal window or tab), it may become necessary to clear the screen to get a fresh view of what you’re trying to accomplish.

There are two ways in the Terminal application to clear the screen.

The first way is using the UNIX command called clear. When you type this into the Terminal, followed by the enter key, all of the content will be removed, and you’ll be presented with a new prompt, ready to type in more commands without the distractions.

Using the clear command, however, will keep all of the original content and you can still access this by scrolling up. To completely irradiate the content from previous commands in this scroll view, simply press Command + K. This Terminal-specific command will reset the Terminal window, giving you a pristine working area.

A different approach to this is to use Option + Command + K to clear only the scrollback. When you type this command, all of the scroll back content will be erased, while the currently visible command will still be viewable.

 


 

OS X’s Hidden Preferences

When it comes to customizing the look and feel of your Mac, the options listed in System Preferences only scratch the surface. Hiding throughout the OS are dozens of hidden preferences that can only be changed through the defaults command. Too many exist to list them all here, so we’ve compiled our five favorites. Always remember to quit an application before modifying its defaults. You can reset any of these commands by replacing TRUE with FALSE and executing the same command again.

6. Disable the Auto-Restore Feature of OS X

With OS X Lion, Apple introduced a feature that auto-restored files when opening up applications (such as opening up Preview and having all of your recently accessed PDFs appear), and this can sometimes happen even if you closed the application correctly. Both Preview and QuickTime are two main culprits here, and you can disable this auto-restore feature in both of these applications.  

To do this, open the Terminal and type the following command: 

defaults write com.apple.Preview NSQuitAlwaysKeepsWindows -bool false

That will disable the feature in Preview, but if you also want this feature disabled in QuickTime Player, then you can type this command as well: 

defaults write com.apple.QuickTimePlayerX NSQuitAlwaysKeepsWindows -bool false

You’ll need to quit and restart the apps to see this change take effect, and if you want to reverse this, then run the same commands above, replacing “false” with “true.”

7. Show Hidden Files in The Finder

Believe it or not, the files you see listed on your Desktop in the Finder do not represent all of the files contained in your Desktop folder. In almost every folder, the OS hides system files that Apple considers too important for the likes of us to mess with (or too mundane for us to be bothered with). Now and again, though, it’s useful to view these files. To see the full contents of all folders in the Finder, execute the following command:

defaults write com.apple.finder AppleShowAllFiles TRUE

You should note here, however, that any files that begin with a dot are, by UNIX nature, hidden files. These files can be system files that are necessary to handle folder and file management. Be sure to keep this in mind before deleting or editing any files that don’t look familiar to you.

8. Change the File Format for Screenshots

Have you ever taken a screenshot on the Mac and gotten back a PNG file, but longed for a different file format instead? Fortunately, you can save them in a variety of formats, including PDF, JPG, and GIF just to name a few. Switching to your preferred format by executing the following command in the Terminal:

defaults write com.apple.screencapture type extension

Replace the “extension” word in the command above with the name of the file extension that you actually want as a screenshot. For instance, if we wanted JPG, you could type the following command:

defaults write com.apple.screencapture type JPG

When you press return, then log out of your Mac and back in, screenshots will taken using this new format instead of PNG. Pretty nifty, eh?

9. Disable the Dashboard

As with most Mac users, we’ve always had a love-hate relationship with the Dashboard. Released on OS X Tiger (10.4), we’ve always had a soft spot for this feature, but these days, it’s mostly just a waste of space on the Dock. Fortunately, you can remove this feature from OS X with ease. Simply open the Terminal and type in the following command:

defaults write com.apple.dashboard mcx-disabled -boolean YES

When you press return, you’ll need to enter one more command to make this new change take effect immediately. Type in the following command to restart the Dock and rid your Mac of the Dashboard feature:

killall Dock

If you don’t wish to enter the above command, then you can simply log out of your Mac and back in to see the change take effect.

 


 

Mac Security, Terminal Style

The Unix command line is where many (if not most) of OS X’s security practices were born — and it’s still the place to go to lock down files, resolve system conflicts, and erase your tracks. After all, UNIX gives the Mac it’s strong security foundation, and provides the basis for the Terminal command line.

10. Compress and Password-protect a File or Folder

Password-protected archives can’t be expanded by the Finder, a limitation that adds another layer of hassle, er, security.

The Finder can make ZIP archives from files and folders in one click from the File menu or the right-click contextual menu. When security is an issue, the Terminal’s zip command supersedes that with its ability to encrypt archived files and folders. The encryption standard is relatively weak by military or industrial standards, but it should be more than enough to defeat a nosy boss or family member.

To create an encrypted archive from a folder in the current directory, execute the following command:

zip -re archiveName name/of/folder

In the above command, replacing name/of/folder with the path and name of the folder you’d like to compress and archiveName with the name you’ve chosen for the zipped file. To retrieve the contents of an encrypted archive, execute unzip archiveName.

11. Fix File Permissions

In a multiuser system such as OS X, file permissions ensure privacy and security. Now and again, though, they can cause problems, especially when different users are swapping things through a shared folder on the same machine. If the permissions controls in the File Info dialog fail to resolve a problem, chmod and chown are certain to.

Generally, chmod is used to assign role-based permissions for users other than the owner. To ensure that anyone can open and modify a file, execute this command:

sudo chmod 777 path-to-file

Replace path-to-file with the actual file path and name of the file, which you can generate automatically by dragging a file from the Finder window into the Terminal window. When run, this command assigns full permissions to anyone who uses that machine, which is bad for security but good for convenience.

For more limited permissions, execute this command instead of the one above:

sudo chmod 644 path-to-file

Using this second command allows anyone to access and open the file, but only the file’s owner can modify it. To modify permissions on a folder and all of its contents, add the -R option after the command name.

Chown, on the other hand, assigns ownership of a file to particular user. If a file you’ve copied from someone else’s account refuses you access, execute the following command:

sudo chown your-short-user-name path-to-file

12. Securely Erase Free Space on Your Mac

It may sound strange, but deleted files aren’t actually deleted. Emptying the trash merely tells the operating system to mark the space as available, without actually removing the data that occupies that space on the drive. When new data needs the space, it writes over the old data, but until then, anyone with the right software can still recover the original data, and sometimes this recovery can still happen long after you’ve actually emptied the Trash on your Mac.

Disk Utility offers a one-line Terminal command to scrub free space of existing data. Execute this command:

diskutil secureErase freespace 3 /Volumes/name-of-drive

You can get the name of your drive by using the following two basic commands to look up the available system drives:

cd /Volumes/

ls

This will list the available drives, which you can copy and paste into the above command for the “name-of-drive” path.

diskutil is the command line equivalent of using the Disk Utility application on your Mac (located in /Applications/Utilities).

The utility will write to each drive sector 35 times, using a special algorithm. Thirty-five passes is well above the U.S. Department of Defense’s own standard for erasing data, which requires only seven passes for wiping data from a drive.

Note that with large capacity drives, this process may take a long time (perhaps days) to complete due to the capacity and work that needs to take place to do a 35-pass wipe of the data.

13. A Note About Sudo

Note that chmod, chown, and several other commands in this tutorial are running under sudo, which requires an administrator’s password before executing the proceeding command.

Sudo is a super user account that is built into UNIX-based systems, and because it executes commands as the administrator, overriding the system’s usual warnings and precautions, you should be extremely careful when using this command.

Be extremely cautious with this. If sudo tells the system to erase the entire hard drive, for example, the system will happily do it, no questions asked. You should always double-check what you’ve typed when performing a sudo command. The commands using sudo in these tutorials are relatively safe, but you can get into trouble if you don’t know what you are doing here.

 


 

Remotely Control Another Mac

Terminal commands aren’t limited to just the local computer sitting in front of you. One of their most practical applications is controlling other Macs through remote shell connections (or SSH). Continue reading, and we’ll show you how to do this and possibly cause mischief with your co-workers and roommates with this functionality.

14. Establishing a Secure Shell Connection

SSH, or secure shell, opens a Terminal session on a remote machine, so all commands are then executed in the remote Terminal rather than the local one. The connection is encrypted, meaning none of the traffic passing between the two machines can be read if intercepted.

To get started, first make sure that SSH log-ins are enabled on the remote Mac by opening System Preferences and selecting the Sharing pane. Check the box next to Remote Login, and the SSH service will activate.

To connect to a remote computer via SSH, open the Terminal on the local machine and execute this command:

ssh -l username remote-address

Replace username with your username on the remote Mac and remote-address with the remote Mac’s IP address. (The remote IP address is listed in the remote machine’s Sharing pane when you click on Remote Login.) Press Return, and enter the remote username’s password at the prompt. SSH will connect you to the remote machine. (If you’re asked to add the remote machine to a list of known hosts, press Y for yes.) Once you’re connected, you can execute any Terminal command remotely.

This tutorial assumes you only want to connect to other machines on your local network, but you can also connect to Macs across the Internet using SSH. Follow our existing guide here to learn about creating remote SSH connections.

15. Freak Out Your Roommates

There are hundreds of useful remote commands, but let’s get you started with a good gag. If you know that someone else is using the remote computer, SSH into the machine, and execute:

say “Ouch. Don’t press the keys so hard.”

The remote machine’s default voice will read the statement over the speakers. This is even funnier if can do it from a laptop in the next room. (Please use this power responsibly. Impersonating deities or the NSA is bad form.)

Pranks aside, say can quickly create a machine-read audio book from a text file. Execute say -o savedaudio.aiff -f file-to-read.txt. Say will convert the file and save it as savedaudio.aiff in the Terminal’s current directory.

Read our full guide on using the say command here.

16. Troubleshoot a Remote Server’s Network Connection

Remote servers are great — until they stop responding. Then one of the first questions to answer is whether the entire machine has gone offline or whether a particular service (such as remote log-in) has stopped responding.

To find out, execute the following command in the Terminal:

ping remote-address

Replace “remote-address” with the domain name, hostname, or IP address of the remote server. For instance, to ping our server from work, we execute:

ping maclife.com

The utility will send a generic knock-knock to the server. If the server is still operating and attached to the network, ping will display each response, along with the time it took to receive it.

Note that in order for this to work properly, the server on the receiving end must be able to respond to ICMP packets. With modern server architecture, and for security purposes, many server administrators have turned these features off on servers, so your mileage may vary.

17. Copy Files Across a Secure Network Connection

The next time you leave your thumb drive at home, grab the files you need over the network with secure copy, or SCP, which piggybacks on SSH, so you’ll need Remote Login enabled on the remote machine. The syntax for this command can get a bit long — in addition to the remote machine’s address and log-in info, you’ll need the names and locations of the files you want to copy — but it’s well worth the effort if it saves your bacon for that big client presentation. Like SSH, SCP transfers data over an encrypted connection.

To copy a file from a remote machine by executing the following command:

scp username@remote-address:path-to-file target-file

For instance, to copy a file called rental_agreement.doc from our remote machine to a new file called agreement.doc on our local machine, we’d execute:

scp tandorra@10.0.1.5:/Users/tandorra/Desktop/rental_agreement.doc agreement.doc

Obviously, the burden in this situation is knowing the exact location and name of the file before transferring it. Copying a file from your local machine to a remote one is a little easier. In that situation, we’d execute this command instead:

scp file-to-copy user@remote-address:path-to-new-saved-file

In our example, we could also replace our originally copied file–agreement.doc–to the remote machine with this command: scp agreement.doc tandorra@10.0.1.5:/Users/tandorra/Desktop/agreement.doc.

18. Turn Off a Mac Remotely

If you need to turn off a Mac after leaving the house, SSH into the machine, and execute the following command:

sudo shutdown -h now

You’ll be required to enter your admin password because this command will kick all of the users off of the system and restart the machine at all cost. So, be sure that you don’t have any important work being performed on the Mac you’re about to switch off.

To read more about using the shutdown command, visit our guide to learn how to restart and perform other actions using this same command.

 


 

Manage and adjust text

If you like Spotlight and Search on your Mac, then you’ll love grep. This is an old-school pattern-matching utility that comes standard on many UNIX-based machines, including the Mac.

Like Spotlight, grep searches the full contents of files. Unlike Spotlight, however, grep specializes in locating patterns, which makes it ideal for analyzing text documents. Meanwhile, diff, fmt, and textutil offer other ways to quickly compare, format, and manage text files.

19. Find Patterns in Text Docs

One of our favorite uses of grep is checking finished documents for words and phrases we use too frequently. For instance, we tend to overuse compound sentences joined by “but.” The following command tells us how many lines in article.txt contain the offending word:

grep -ic but article.txt

In this example, the i option tells grep to ignore case (counting both uppercase and lowercase instances), and the c option tells it to return only the number of matches, not all of the lines in which the search term appears. For details, execute man grep.

20. Compare the Differences Between Two Text Files

Here’s one for writers, office workers, and coders who deal with a lot of document revisions and file revisions. The next time you need to quickly compare the differences between two text files, execute this command:

diff -y firstfile secondfile

Replace “firstfile” with the path and name of the first file (remember that you can drag and drop files into the Terminal to have their paths automatically inputted for you). Next, replace “secondfile” with the path and name of the file that you wish to compare with the first.

The -y option tells diff to split the output into two columns, one for each file, so the differences can be seen more easily.

Read more about using the diff command here in our previous article.

21. Combine and Convert Documents of Any Type

Not everyone wants or needs a copy of Microsoft Word. Unfortunately, we all sometimes need to work with Word documents. Textutil can convert between Word, rich-text, and plain-text formats — and it can combine multiple documents, change fonts, and adjust font size while doing it.

To convert and combine all Word documents in the current directory to a single rich-text document called combined.rtf, execute this command:

textutil -cat rtf -output combined.rtf *.doc

Sometimes, of course, you only need to convert a single file. Use this command to do so while changing the font to 12pt Helvetica:

textutil -cat rtf -font Helvetica -fontsize 10 -output converted-file.rtf file-to-convert.doc

 


 

OS X Tweaks

One of the reasons we use Macs is how self-sufficient OS X tends to be. Most of the time, system maintenance occurs in the background, and mundane tasks that do require user participation (backups, for instance) are made as painless as possible (thank you, Time Machine.) For those times when we want or need more system-level control, these are the Terminal commands to rely on.

22. Backup in a Snap

Time Machine is a great way to make sure that all of your files and the entire operating system is always backed up in case anything should happen to your Mac. But, did you know that you can also back up on-demand with Time Machine using the tmutil commands available in the command line?

To back up your Mac, simply execute this command in the Terminal:

tmutil startbackup

After pressing enter, your Mac will go to work and begin creating a new backup. You can also stop the backup at any time by executing this command instead:

tmutil stopbackup

23. Identify and Eliminate Memory Hogs

When sluggish performance slows your desktop to a crawl, a runaway application might be the culprit. Check CPU and memory usage in all open applications by executing top. The command returns a list of every running process our your Mac, along with its allocated resources. The CPU field is easy enough to interpret–any process using more than half is sure to slow others down. The memory fields are a bit more complicated but, in general, the bigger the numbers, the greater the drain on your system.

If the problem app is visible on the Desktop, quit it as you normally would, using Command + Q or, if that fails to respond, using Force Quit (Command + Option + Escape).

But if the culprit is a lower-lever utility that runs behind the scenes, you’ll need more Terminal magic to end its misadventures. Make note of the problem process’s number in the PID column, and execute this command:

sudo kill PID-number

In the command above, replace PID-number with the application’s actual process number. The targeted process will terminate, freeing up its system resources.

Be extremely careful when killing background processes. Some are necessary for OS X to function properly. Only kill process when you know for a fact that they are bogging down your Mac, and that you started the process and it’s not a system process.

24. Find Free Space on All of Your Drives

If you have a Mac with multiple drives, with specific drives for iTunes, movies, music, and photos, then it may be hard to see exactly how much free space is available on your Mac at a single glance. Fortunately, the Terminal can help out quite a bit with this investigative process.

To see all of your free space available to you, execute this command inside of the Terminal application:

df -hl

When you do this, you’ll get a listing of the drives available to your Mac, and the percent capacity remaining on those drives. You might find that you have a lot more space than originally thought.

25. Generate Screenshots

If OS X’s default screenshot settings don’t meet your needs, you can assign image formats and file names for screenshots on the fly with screencapture, which lets you take shots of DVD Player (usually forbidden by the Finder at the insistence of the movie industry’s copyright lawyers). To create an instant, noiseless capture, execute this command:

screencapture -x -t jpg capture.jpg

Replace jpg with the 3-digit abbreviation for your chosen file format (PDF, TIF, GIF, and PNG are also available) and capture.jpg is the name of the saved file.

Using this command, you can also grab hard-to-get screenshots like screenshots of the login screen on OS X.

Zoom iQ5 Microphone Review

For those who capture audio out in the field — reporters, podcasters, musicians, etc. — a nice recorder is a must. It’s important that the audio comes through loud and clear, and isn’t drowned out by background noise. One of the most trusted brands in the audio-recorder world is Zoom, whose H4n is the go-to gadget for podcasters such as Marc Maron and Chris Hardwick. Recognizing that folks may not want to carry a bulky recorder with them in addition to their iOS devices, Zoom has released the iQ5.

The iQ5 is a stereo condenser microphone that can fit easily in your pocket, yet has a lot of the bells and whistles you’d expect from a Zoom product. You can adjust the gain, for example, or alter the range of the recording area (90 or 120 degrees). The iQ5 is plugged into the Lightning port, but it has to sit flush against the bottom of your iPhone/iPad, which often means removing any cases you might have. Once it’s connected, though, it works as advertised with the default Voice Memos and Camera apps. You get the most out of the mic by using the free HandyRecorder app—the combination of the iQ5 and the app basically turns your iOS device into a full-fledged Zoom recorder.

My only slight qualm with the iQ5 is its build quality. It never broke on me during my time with it, but it felt a tad fragile due to its lightweight plastic construction — it’s a double-edged sword as the lightness is what helps make it so portable.

The bottom line. Despite its minor issues, the Zoom iQ5 is a good option for those who don’t want to carry a bulky audio recorder out into the field.

Review Synopsis

Product: 

Zoom iQ5

Company: 

ZOOM

Contact: 

Price: 

$99.99

Requirements: 

iPhone 5/5s/5c, iPad Air/Mini/4th gen, or iPod touch (5th gen)

Positives: 

Good sound quality. Includes almost all of the functionality of a Zoom recorder, especially when used in conjunction with the free HandyRecorder app.

Negatives: 

Must remove the cases from your iOS devices in order to use it. Build quality feels slightly less than solid.

Score: 
4 Great

How to Manage Contacts for iPad and iPhone

The Contacts app and settings in iOS 7 make it easy to access and organize your address books. You can import details from various sources, then find people from any group, quickly create a correctly addressed email, and more. Getting it all organized can take some effort, however; but don’t worry — we’ll guide you through it.

You can add contacts in a variety of ways, including directly on your iPad, or you can sync them over the Internet using various services. If you’re using iCloud, you can sync with your computer and iPhone using your Apple ID; if you use Google Contacts or lots of other online services, you can keep your contacts in sync using them — through Settings, you can choose to include those contacts. 

Contacts is now integrated with Facebook, so the Contacts app on all your devices can be populated with information from Facebook, including birthdays and photos of your friends. This means email addresses or phone numbers you’re missing can be added in automatically by iOS with barely any effort from you. The Contacts app also syncs with Twitter, pulling in people’s Twitter handles, and again bringing in photos of them.

As we mentioned, it’s possible to sync contacts from a number of online services, including Yahoo and Microsoft Hotmail (now Outlook.com), as well as Microsoft Exchange, LDAP or CardDAV accounts: simply link to the account in question by tapping Settings > Mail, Contacts, Calendars > Add Account and then choose the appropriate service. If prompted, make sure you opt to keep your existing iPad contacts. You can view and search your third-party contact lists, and in some cases — specifically, Yahoo and Outlook.com — you can even edit, create, and delete entries directly from your iPad and then sync them with your online service. Look out, too, for an option to link entries, which allows you to combine duplicates into one unified entry. The Contacts app integrates with other apps and can make many tasks faster, including sending emails and messages or initiating a FaceTime call (see step 6 below). You can tap a contact’s address to view it in Maps. And, if you enter a contact’s birthdate and enable the option in the Calendar app, it appears on your calendar, too. 

 

1. Get into iCloud

In previous versions of iOS, you could sync your contacts using a wired connection to iTunes on your PC or Mac. However, Apple now expects all syncing to be performed using its iCloud service, with the option removed in iTunes. When you first set up your iPad, you would have been prompted to create a new Apple ID or enter your current one. If you did so, you’re already set for syncing contacts between iOS devices (such as your iPad and iPhone), and also with your Mac.

 

2. Other Services

iCloud isn’t the only option for syncing your contacts over the Internet. Go to the Settings app, then tap the Mail, Contacts, Calendars option. At the top, you see your iCloud account is there, with the option to add a new account beneath. Tap it, and you see you can sync with many popular online services, including Google, Yahoo, and Microsoft Exchange and Outlook. Choose one, type in your details, and you can pull in your contacts from that service.

 

3. Import vCard Contacts

If you have contacts stored in a service or application that can’t easily sync online, you can always manually import your contact list into iCloud, provided you’re able to export your contacts as vCards. When you have a vCard file, you can import it into iCloud from any PC or Mac by visiting iCloud.com and signing in. Go to Contacts, click the cog in the bottom-left corner, and click Import vCard. Then just select the file. It syncs across all of your iOS devices.

 

4. Edit a Contact

To make changes to a contact’s entry in the Contacts app, tap the name you want, then tap the Edit button at the top-right of the screen. Scroll down for many more options, such as assigning the contact a custom ringtone or adding the person’s birthday. Tap the Add field if you want to add something that’s not covered in the default list—there’s lots more available than the fields you can initially see. You can also delete a contact from the bottom of the entry.

 

5. Add an Image

Add a photo to someone’s profile and it‘s used in the Messages app next to their name. To add one, tap the contact’s entry, then Edit, and Add Photo. You can take a new photo using your iPad if you wish, or tap Choose Photo if you already have a pic of the person. Select the shot, adjust it to fit, and tap Use. You can edit the photo by tapping it. Contacts now automatically updates with Facebook or Twitter profile pics, though, so you may not have to do anything!

 

6. Stay in Touch

When you tap on a contact, you can see all your options clearly—just tap one to trigger the default action. Usually, though, you see little symbols to the right of each class of information. This indicates that there’s more than one way to contact someone. Tap a camera or handset to start FaceTime video or voice call, or the speech bubble to send a text. Some of these options only work if the recipient also has an iOS device or a Mac.

Easy Mac Hacks: Disable the Pop-up Accent Window when typing

Every Monday we show you how to do something quick and cool using built-in OS X utilities such as Terminal, Apple’s command line application. These easy hacks can make life better and simpler, and don’t require any knowledge of coding — all you need is a keyboard to type ’em out!

In OS X Lion, Apple incorporated the pop-up accent typing tool that was first introduced in iOS, which allows you to easily access accented characters by holding down the corresponding letter key. But if you don’t regularly use accented characters, it might be best to disable this function with a little Terminal hackage.

To disable the pop-up accent window when typing in OS X, open up the Terminal application (located in /Applications/Utilities), then type in the following command followed by the enter key:

defaults write -g ApplePressAndHoldEnabled -bool false

 

After typing in this command, log out of your OS X account, then log back in for the changes to take effect. After doing this, you’ll notice that the pop-up accent window no longer appears when you press and hold down certain keys.

If you ever want to have this menu appear again, type in this command:

defaults write -g ApplePressAndHoldEnabled -bool true

Then, once again, log out of your OS X account, and then back in for the changes to take effect. After doing this, the accent window will appear again while typing.

Cory Bohon is a freelance technology writer, indie Mac and iOS developer, and amateur photographer. Follow this article’s author on Twitter.

TriggerTrap Mobile review: Control your camera’s shutter with your iOS device

A camera captures a photograph in a fraction of a second, but many creative opportunities open up when you manually control the shutter speed. Getting luscious photos of star trails, for example, requires keeping the shutter open for longer than most camera controls allow. To get that shot, you need to switch to Bulb mode and use a manual-release cable to open and close the shutter with the help of a newfangled technology called “your thumb.”

Of course, we’re talking about photography, so there are plenty of devices and gadgets that give you this and many other options. An intervalometer, for example, fires the camera’s shutter at a steady rate over a period of time.

To read this article in full or to leave a comment, please click here

Ulysses III review: Document writing and management in one

I didn’t use to be a fan of Markdown, a plain-text syntax that’s designed to be easy to write and read while letting you easily publish to HTML. I write to HTML for several blogs and websites, but I’ve been fluent enough in that language over the years to be comfortable typing the code directly. (I also use a number of TextExpander shortcuts to handle some of that code for me, so I don’t need to remember the details of certain tags.) In addition, Markdown handles only a subset of HTML tags for styling text, and I often need other, more-complex tags. But if you’ve read my reviews of Mac writing apps here at Macworld, you may have noticed that I’ve slowly been coming around to Markdown—for much of what I write, it does what I need with little complication.

To read this article in full or to leave a comment, please click here

Ask: Why Is FaceTime Not Working on All My Devices?

Got an Apple, Mac, or iOS tech question? We have the answer. In this week’s installment of Ask, we’ll help you figure out how to get FaceTime running (or not) on all your iOS devices.

Question: How can I receive FaceTime calls on my iPad but not my iPhone? Right now only the iPhone rings. 

Answer: You can turn off FaceTime on a device-by-device basis. To turn off all FaceTime calls on your iPhone, navigate to Settings > FaceTime. Once here, move the switch from on to off. This will completely disable FaceTime calls on your device. By the same token, make sure that FaceTime is activated on your iPad.

You can also disable certain phone numbers and email addresses that can receive FaceTime calls by unchecking the contact numbers listed in this section. Note that if you have an iPhone, you cannot disable FaceTime calls to the phone number of the device unless you completely disable all FaceTime calls. 


No more FaceTime calls will come in on the device after disabling this option.

To get your iPad (or any other device that you wish to receive FaceTime calls on) set up properly, you’ll want to make sure that a few things are configured correctly: 

1. Make sure that you’re signed into the proper Apple ID. If you’re not, you can tap the Apple ID in this section to sign out and sign into the correct one. 

2. Make sure that the people calling you are using one of the numbers that are listed in the “You can be reached by FaceTime at” section, and that those numbers are checked. Unchecked emails and numbers in this section means that you cannot be contacted using those emails or numbers. 

3. If you’re still not receiving FaceTime calls, then ensure that you’re connected to Wi-Fi (if your cellular plan doesn’t support FaceTime), and that your Internet connection speed can support FaceTime. FaceTime requires a minimum of 100Kb/s connection upstream and downstream for non-HD video.

 

Ask is written by Cory Bohon, a freelance technology writer, indie Mac and iOS developer, and amateur photographer.

Got a tech question? Email ask@maclife.com.