Ramblings on technology with a dash of social commentary
RSS icon Email icon Home icon
  • How to prevent iPhoto launching when connecting iPhone

    Posted on August 25th, 2013 phpguru No comments

    The solution is on the Apple forums:

    1. Plug in your iPhone.
    2. Launch Image Capture from your Applications folder
    3. Select your iPhone once it shows up under devices
    4. Look at the lower bottom pane where you’ll see “Connecting this iPhone opens”
    5. Set this preference to “No application”

     

    See also: How to prevent iTunes from launching when connecting your iPhone or iPad

  • How to prevent iTunes launching when connecting iPhone

    Posted on August 25th, 2013 phpguru No comments

    The solution is on the Apple forums:

    1. From the iTunes menu at the top go to iTunes>Preferences>Devices>Prevent iPods, iPhones and iPads from syncing automatically.
    2. Check the box at the bottom of that window.
    3. Click on [Your Phone's Button] to access the device. This is on the right side of the iTunes main window toward the top, just to the left of the store button. If you don’t see your phone here, unplug it, plug it in again.
    4. Scroll down and uncheck Automatically Sync when this iPhone is connected
    5. Click Done
    6. Quit iTunes.
    7. Unplug and re-plug in your phone. iTunes should not launch.

    If that doesn’t work, also try:

    1. See if iTunes Helper is in System Preferences > Users & Groups > Login Items
    2. If so, delete it (click it then press the minus button)

     

    See also: How to prevent iPhoto from launching when you connect your iPhone

     

  • How to Fix no acceptable C compiler found in $PATH on Mac OS X Lion

    Posted on May 16th, 2012 phpguru 33 comments

    If you have a need to compile Memcache or wget on Mac OS X Lion and are wondering why you are getting the error

    no acceptable C compiler found in $PATH

    on Mac OS X Lion, you’re not alone.

    Thanks to this post, I was able to fix my problem. Here are the steps.

    1. Run App Store
    2. Search for Xcode – it’s a free install from Apple
    3. Wait for awhile. Took 30min to download for me on a 20mbps connection
    4. Authenticate and let Xcode install. Once Xcode is installed you may be thinking you’re done. You would be wrong!
    5. Launch Xcode and run the mobile toolkit update (you can’t skip it, deal with it)
    6. Go to Xcode Preferences or press ⌘, (Command-comma)
    7. Click the Downloads tab -> Components list as shown below
      How To Fix C compiler error on Mac OS X Lion
    8. On the last row of the available downloads are the Command Line tools. Install them.

    You should be good to go after that!

  • How to use Setup Assistant to migrate to a new Mac

    Posted on May 15th, 2012 phpguru No comments

    I told you in a recent rant on this blog that I bought myself a new MacBook Pro.

    It truly is a glorious computer; perhaps the best laptop on the planet. It’s blazing fast, ultra quiet, and it’s built like a Sherman tank, but is as sexy as a Ferrari. With Unix under the hood, Apache, PHP and MySQL preinstalled, it’s a web developer’s dream machine.

    I always look forward to setting up a new computer for the first time, but instead of starting from scratch as is my normal approach, this time, I decided to use Apple’s built-in Migration Assistant.

    How to use Migration Assistant to transfer files from another Mac is the name of KB article HT4413 at Apple.com. If you’ve already created your account on your Mac for the first time, but want to migrate a profile (your user account, applications and files) from a different machine or Time Machine backup, using Migration Assistant is the way to go.

    But if you already created your login on your new Mac, read carefully:

    Important info not obvious on Apple’s KB article

    Using Migration Assistant, your old files will be copied to a new, alternate, secondary profile on your new Mac. In other words, if you logged in as ghoffman on your old Mac, and you already created a fresh, new profile ghoffman on your new Mac, you can’t use Migration assistant to get old ghoffman copied into new ghoffman. You can use Migration Assistant to restore ghoffman (old) to ghoffman2 or ghoffmanNEW or any other alternate named profile, just not the one you probably want.

    If you have not yet created your user account on your new computer, or if you are willing to format your Mac and restore it to factory default settings, there is a little-known startup configuration mode when you first boot Mac OS X. It’s called Setup Assistant.

    The first time you start up a new Mac, on one of the very first screens, even before entering your name for creating your account, you have the option of using Setup Assistant, which may be better named First-run Migration Assistant.

    Using Setup Assistant at first-run is by far the fastest way to get going on a new Mac. I was extremely impressed at how simple and complete it was. Just like Migration Assistant, you have a several options as far as the source and transfer method, including using your other computer (as a disk in target mode) or from a Time Machine backup. I chose to use my Time Machine backup over FireWire 800. Other transfer options include USB, Ethernet and Wi-fi.

    I was able to restore my Mac OS X Snow Leopard account on a 250GB MacBook Pro 17″ (Aug 2008) onto a new i7 processor 750GB MacBook Pro 17″ running Lion, in about 2 hours. Over 200 GB of data were restored, including my login username and password, all my keychain files, every document, every application – even Adobe Creative Suite, Microsoft Office, iTunes, iPhoto – everything! Even my ~/Sites folder for web development, with all my local MySQL databases, were perfectly restored.

    I’ve really got to hand it to you, Apple. Not only is this laptop amazing hardware, but your software is extremely good, too.

    Now I just need a new iPhone. And an iPad.

     

  • Spaces Are Very Cool – Keyboard shortcuts to switch between running apps

    Posted on July 13th, 2010 phpguru No comments

    spaces-icon

    If you have a Mac and aren’t using spaces for multi-tasking, you’re missing out on one of the great features of modern OSen. Encapsulation.

    Even novice computer users understand that a computer can run more than one program at once. Using many apps simultaneously is called Multitasking. For example, you can edit your vector artwork in Illustrator, import the .ai file into Photoshop and apply effects to it, and use the PSD in an InDesign layout. You can run all 3 programs at once, and edits are instantly available in the other softwares when saving. As a web developer, I’m routinely running multiple browsers, an IDE (I use NetBeans and Dreamweaver), a text editor (on PC I use UltraEdit and TextMate on Mac), plus Photoshop if I have to work on any design elements.

    Well, multi-tasking is one thing. But are you getting the most out of your 8GB of RAM and quad-core processor? Encapsulation, such as provided by Apple Spaces, takes it one step further and makes staying organized and more efficient easier than ever.

    If you’ve ever spent any time on a laptop after using a dual screen setup, you’ve gotten really friendly with Alt-Tab (application switching) and Control-Tab (tab switching in one browser, or window switching in applications like Photoshop or Microsoft Word).

    As a platform-agnostic PC-at-work / Mac-at-home kinda guy, I always think it’s great when Apple takes a killer feature from the PC world (the reverse applies, too, though less often) and makes it better. For the longest time on Mac, I yearned for an easy way to switch between applications like you could on a PC.

    Keyboard Shortcuts to Switch Between Applications on Windows

    To switch between running programs on Windows PC try these steps:

    1. Hold down the Alt key,
    2. and then press the Tab key,
    3. and press the Tab key to cycle forward through running apps,
    4. or hold the Shift key and press Tab to cycle backward,
    5. and let go of the Alt key to use the selected App

    Go ahead. Launch a few programs and practice. It sounds more complicated than it is and will become second nature to you in no time.

    Anyway, at some point in the past, Apple adopted this feature for OS X… and made it even better.

    Keyboard Shortcuts for switching between running applications on a Mac

    On a Mac, to switch between applications, you need to:

    1. Hold down the Command key,
    2. and then press the Tab key,
    3. and press the Tab key to cycle forward through running apps,
    4. or hold the Shift key and press the Tab key to cycle backward,
    5. and let go of the Command key to switch to the highlighted app,
    6. Or, while still holding the Command key, hover your mouse over any app you want to switch to before letting go of the Command key.

    Just by adding that single OR at the end, Apple made a fantastic productivity tool exceptional.

    For the record, on a Mac, from the running app, you can choose [Application name Menu] -> Hide [Application name] or [Application name menu] -> Hide Others… which applies to the running applications. And you can also option-click on the finder (background application) when you have an application open in the foreground to instantly hide the foreground application. And of course there’s the yellow minimize icon that stuffs the app into a spring-loaded folder in the dock, but I digress.

    appsutil_spaces20090608Now, for the frosting on the cake.

    What are Apple Spaces?

    Imagine having 4 or 8 Macs instead of one. Would you be more productive if had 4 Macs and you could switch between them instantly? Apple Spaces lets you have the appearance of several virtual machines (all copies of your Mac). What’s cool about spaces is now you can run a couple of different browsers in one space, iTunes in another space, and your web development tools in a third space, and all your design apps in a fourth space. This keeps all those floating palettes and application windows more organized and is a great new way to gain even more productivity. By utilizing Spaces, you’ll spend less time application switching because each Space contains its own list of programs assigned to that space. And all those seconds can really add up, especially if you’re on deadline.

    1. Enable Spaces by going to  -> System Preferences -> Exposé and Spaces
    2. Then, to activate Spaces, press fn+F8.
    3. With the Space selector activated, you can drag apps from one space to another,
    4. and to switch between Spaces, you can use Ctrl-Right-Arrow and Ctrl-Left-Arrow to move between spaces,
    5. or to instantly go to a space, hold Ctrl and type the number corresponding to the space, for example, Ctrl-2 instantly switches to the second space.

    Give that a try, Mac guy. If you don’t think Spaces and application switching is useful, you’re wasting time and missing out on the full potential of a modern computer’s power.

    References
    macworld.com
    discussions.apple.com

  • Developing Websites Using Mac OS X Snow Leopard

    Posted on November 3rd, 2009 phpguru 2 comments

    The latest Mac update, Snow Leopard, comes with pre-bundled with Apache 2.2, and PHP 5.3.

    Here’s what I did to enable it and start making websites.

    1. Turning on Apache
      To do this go to System Preferences -> click the checkbox by Web Sharing
    2. To check your Apache install
      You might like this post about how to create a quick document for testing.
    3. Editing Apache Virtual Hosts
      Paul Kukiel shares how to
    4. Turning on PHP
    5. Loading MySQL
      Before you rebuild MySQL, double check your processor speed. If you upgraded to Snow Leopard from an older install on an older PPC or Intel Mac, be sure to know which processor type you need to build MySQL for. These instructions are for my Generation 5 Macbook Pro, not one of the brand new 64-bit models. Download the installer from MySQL.com. Then follow this post that shows how to build MySQL from source.
    6. Loading phpMyAdmin
    7. Using Terminal

    I found this post useful. Here is another similar post.

  • How to get a Mac Pro for one third the cost

    Posted on June 21st, 2009 phpguru No comments

    Want the power and performance of a Mac but can’t aford the hefty price tag? Running Windows XP, dreading Vista, and wishing for the wonderful Linux kernel under the hood of Mac OS X?

    Psystar’s new Open and Open Pro systems run OS X on blazing-fast Intel hardware, for a fraction of the cost of a new Mac Pro workstation. Check it out!