• About

    Swaroop C H is 27 years of age. He graduated in B.E. (Computer Science) from PESIT, Bangalore, India. He has previously worked at Yahoo! and Adobe.


    Email: swaroop (at) swaroopch.com

    Read more about him

  • Subscription

    If you want to know when new stories and articles appear on this website, you can subscribe to the RSS feed or have them emailed to you.

  • Want me to write about something?

  • I'm a Wannabe Hacker

    The Glider: A Universal Hacker Emblem

Archive for the ‘Apple’ Category

Crouching Tiger Hidden Productivity

Sunday, June 26th, 2005

Introduction

I’ve been using Apple’s Mac OS X 10.4 Tiger on my Apple PowerBook since nearly a month now….. I can’t help but think “this is how computers should be”.

I’m trying to understand and jot down my thoughts on why it has made me more productive and why it is such a pleasure to use.

Disclaimer

Note that whatever I am writing here is from the point of view of a Linux user and a non-geeky one at that too. I like using Linux because it gives me many advantages and features that are suited to me but I don’t compile kernels or ./configure every application that I want to install. I’m not an advanced user by any means (see my blog’s tag line for more information).

What is Mac OS X ?

For the uninitiated, what is Mac OS X? Well, Mac OS X is the operating system (similar to Windows) that runs (only) on Apple Macintosh computers.

Mac OS X 10.4 Tiger is claimed to be the “most advanced operating system in the world”. Hmm, not quite. Why? Because it is more like a Linux distribution rather than a core operating system like Windows. Distributions contain lots of applications bundled so that you have almost everything you need when installing a distribution. On the other hand, when you install an operating system (in the true definition of the term), you need to install all your required applications separately such as photo software, bluetooth software, calendar, addressbook and email applications, office suites, DVD player software and so on. Tiger has most of this stuff as part of the system, these applications are not core of the operating system but are certainly central to getting your work done.

The lines are certainly blurring about where an operating system starts and the applications begin. For example, Microsoft Longhorn (the next generation of Microsoft Windows) is adding RSS capabilities to the core system which also means Internet Explorer (following the example set by Firefox and Safari browsers).

User Experience

First and foremost, every user expects the computer to be simple and usable. Needless to say, Mac OS X is miles ahead of the competition here. Simplicity just oozes out of the system. I find that aspect more appealing than any other “feature”.

For example, there is no Start menu and there is no taskbar. To run applications, open the Finder application (which is sort of like Windows Explorer), click on Applications folder and then double-click the application you want to run. Browsing your hard disk follows the exact same paradigm. Notice, that applications are treated just like files and are no different.

Under the hood, applications are just folders with .app extension – they show up as “applications” in the GUI. It can’t get more simpler than that and retains the Unix tradition of ‘treat everything like a file’.

Without a taskbar, how do you see what all you’re running? Press F9 and it shows you all the windows that you are running, and you can select the one you want to look at. There are keyboard shortcuts to cycle through applications as well as cycle through windows of the current application.

That reminds me that Mac OS X makes a distinction between application and windows of the application. For example, if I can start the Safari browser and close the window that opens up, the Safari application is still running. I can press Command-N to open a new window and continue. To completely quit Safari, you have to press Command-Q. This paradigm is consistently followed by all software. One of the advantages of this approach is that opening new windows are a snap compared to opening the full application every time. Also, you can have applications running even without a window open, such as the iTunes music player.

The Help functionality has radically improved over the previous Mac OS X 10.3 “Panther” where it used to take 6-7 minutes to just open! In Tiger, it opens instantly and the find functionality makes it really usable. I know that most developers sneer on the mention of documentation, but I feel a good to-the-point documentation is very important and has certainly solved many issues for me as a user.

The Devil is in the details

There are many applications that come with the Mac OS X such as the iCal calendar application (which I particularly like), QuickTime audio/video software, iTunes music player, Mail application, iPhoto photo software, Garage Band professional music-making software, iMovie HD for making home movies, etc.

What I like in most of them is the level of attention to detail. Mail.app is a good example. Mail has threads like every other modern email client, but what made it useful for me is the ability to move threads (which I was never able to do in Thunderbird). Similarly, the preferences section is to-the-point and makes it very easy to add new accounts, etc. without confusing the user.

Another thing I really really liked was the Activity Viewer. Press Command-0 (command-zero), and it pops up a window which shows you exactly what Mail is doing. You can even cancel operations in this Activity Viewer.

Keyboard shortcuts are a different story, though – Command-Shift-D for sending email is not very convenient.

Built on Open Source – great for developers

Remember that I mentioned that Mac OS X retains Unix traditions? That’s because it is based on BSD Unix. The core of Mac OS X is open source and is called Darwin. Mac OS X builds on top of Darwin and adds many features like the GUI and many other technologies.

This is undoubtedly appealing to many people like me, and is certainly one of the reasons that lot of researchers and students are switching to Mac OS X. As Paul Graham says:

If you want to know what ordinary people will be doing with computers in ten years, just walk around the CS department at a good university. Whatever they’re doing, you’ll be doing.

Mac OS X has many open source software that comes as part of the system including programming languages such as Perl, Python and Ruby. In fact, Mac OS X makes a big list of open source software part of the system including SQLite and wxWidgets and even Apache!

If you think Apple only takes from open source and does not give, you are mistaken. For example, Apple has something called kdrive that makes rendering of the screen very fast (which is why it is called an accelerator). This has been provided as open source and now Trolltech is porting kdrive to X.org to replace the existing outdated accelerator architecture which will make composition managers like xcompmgr really fast and able to do some of the ‘display tricks’ Mac OS X has been doing for awhile.

Apple has also recently made WebKit a fully open source community-involved project. WebKit is based on the open source KHTML and other KDE-based technologies. WebKit is the core of the Safari browser and other technologies that are part of Mac OS X. What’s remarkable is that Apple has managed to make it platform-independent and enabling Nokia to port it to their Series 60 mobile phones!

MS-land is nearby

If you really need MS-office, there’s the official Microsoft Office on Mac.

I have Windows Media Player 9 for Mac installed so that I can see all those great Channel 9 videos.

Integration – great for everyone

Spotlight

What makes Mac OS X wonderful is the integration of all the parts. The best example is Spotlight – the search engine for your desktop. Spotlight, by itself, was not impressive for me (you already have Google’s and Yahoo!’s version of it for Windows, and you have Beagle for Linux). What did impress me was the integration into the system. For example, I was browsing my Music directory in Finder and I wanted to look for that old song that I had made a few years ago. I just searched for my name in the search tab and voila, Finder/Spotlight fetched it for me in a couple of seconds!

Screenshot of Spotlight integration into Finder

The next thing I discovered about Spotlight was that there are hooks built in to Mac OS X such that every time you close a file after editing it, Spotlight comes into action instantly and indexes it. As a result, I was able to search in Spotlight for the email that dropped in my inbox a mere second ago.

Spotlight also provides a command line client called mdfind which you can use to search for files in shell scripts.

iPhoto and Mail

Another good example is iPhoto and Mail. In iPhoto, I can select a few photos, and click on Share -> Email, it automatically creates a new mail with the resized photos (to save bandwidth; and it is configurable) and all I have to do is enter the email address and click on Send. I haven’t found a similarly easy tool on Linux or Windows.

Not impressive? Well, Share -> Burn Disc writes to a CD in a couple of clicks.

The “Just Works” factor

  • Bluetooth is built-in to the system. Just click on the icon in the top bar and and click on ‘Set up Bluetooth device’ and voila! You can start transferring files from/to your bluetooth-enabled mobile phone. It works with printers, mice, etc. in the same manner.

  • Plug in your digital camera into the USB port – iPhoto starts up, click on ‘Import’ and you have the photos on your computer.

  • Plug in your iPod and iTunes opens up the same way. This one works seamlessly because Mac OS X, iPod and iTunes are all from Apple.

  • Software management is easy as well. The Windows-style installers are used, otherwise it is a simple unzip, double-click and run style of working. For OSS lovers, Fink allows you to apt-get install anything for Mac OS X. If you ever want to get rid of Fink, just do rm -rf /sw and you have a clean system again. Now, that is really cool. (Note that you have to install Fink separately)

  • If you download a zip file using Safari, it automatically unzips the archive for you and puts it in a folder.

  • PDFs are part of the system just like text files. The Preview software makes it a joy to read PDFs. Also, the Quartz rendering engine is based on PDF technology, so the rendering is lightning fast. In the print dialog of any application, you can choose to create a PDF.

Dashboard and the Dictionary

The dictionary feature is usually ignored by most people when they talk about Tiger, but it is one of those small but incredibly useful things for me, especially when combined with Dashboard. Dashboard is like a separate desktop that runs whenever you open it. You have “widgets” running in Dashboard that are like mini-applications. If I just move the mouse to the lower right corner (as per my settings), Dashboard opens up and I click on the dictionary widget and start reading meanings of some words I came across while reading. Similarly, I use the calculator and the Wikipedia widget in the Dashboard.

The flip side

Not everything is hunky-dory though. For example, in the print menu, if I click on Mail PDF, it used to give me an ‘unknown error’. It was fixed when I upgraded to Mac OS X 10.4.1, though. There are a few glitches here and there but I haven’t hit a roadblock yet.

Help

The Apple user forums have been very helpful to me. There are tons of sites out there with useful info including MacZealots and MacDevCenter.

Concluding remarks

There is a much more to explore but I’ll stop here for now. The combination of Mac OS X 10.4 Tiger and PowerBook has been an incredible experience for me, I have truly begun to appreciate the value of good design and attention to detail.

It also has made me believe that computers can work as you would expect them to, and it doesn’t have to be hard to get your work done.

Relatedly, I’m looking forward to a Leopard vs Longhorn vs Linux comparison next year.

Further reading material

Update : Added MS-land section

The Second coming of Steve Jobs

Friday, June 10th, 2005

I had been to the library to look for a copy of Lee Iacocca’s autobiography, but all the copies had gone out. Then, I chanced upon this book called The Second coming of Steve Jobs in the same section. Honestly, how could I resist that? The timing couldn’t have been better since I was impressed after watching this year’s SteveNote.

The book was quite a revelation. There have been many “Whoa, really?!” moments when reading that book. Most of all, the book reveals how much of a maniac Steve really is (and I mean that in a nice way).

I remember watching the Toy Story movie a long time ago, but reading the history behind it was incredible. Yes, Pixar company is owned by Steve Jobs (if you didn’t know already).

Some interesting passages:

About Steve’s attitude:

Steve’s executives knew that there were only two ways to deal with him: either submit entirely to his will or have the intelligence and courage to survive his brutal confrontations. “Steve tests you, challengs you, frightens you,” explains Todd Rulon-Miller, who worked closely with Steve for six years. “He uses this as a tactic to get to the truth. Behind the profanity, it’s his way of asking: ‘Do you believe what you’re saying?’ If you wither or blather, you’re lost. I thought those were character-building moments for me.”

Love for his creation:

His perfectionism raged. He was obsessed with minute details that no one else in the computer business was even slightly concerned about. Even the hidden electronic guts of the Next computer – the “motherboard” – had to have a clever, visually appealing design. “Who’s ever going to see the inside?” one of the Next designers asked. “I will,” Steve said.

Double dating with BillG:

Heidi, who was single and had a crush on Steve, realized that she could exploit his fascination with Bill Gates as a way of drawing Steve into accompanying her on social occasions. At the time, Bill was in a long-distance romance with one of Heidi’s closest friends, Ann Winblad, a brilliant self-made software entrepreneur who had sold her startup company for $15 million. When Bill was in town, the foursome – Bill and Ann, Steve and Heidi – would meet in the city and go out for what Ann thought of as “double dates.”

The right people:

Steve was fanatical about hiring the best people. He said that they would interview one hundred people for every one whom they finally chose. And he would fill positions with people who were massively overqualified. The example that everyone talked about was a reputedly brilliant guy named Alex, a young hipster who had made it to the middle ranks at Apple. He had an undergraduate degree from Harvard. He was an art collector. His colleagues found him fascinating. He came to Next. Maybe he would become a marketing executive? A project manager? Steve made him the receptionist. The offer was something of an insult, but he took the job just to get in the door.

Apple of his eye:

His Pixar shares remained the sole source of Steve’s wealth. By turning down the board’s repeated offers of large blocks of Apple stock, Steve Jobs forfeited a paper profit of upward of $1 billion. He still worked at Apple for $1 a year, saying that he only took that dollar so his family would qualify for the company’s health plan. his old friends said that Steve was intent on making a statement, showing that he was saving Apple because of love, not money.

They’re actually many more passages that I liked, but I think I’ll stop here.

If you’re even remotely interested in Apple/Steve Jobs or simply have an iPod, then this book is definitely worth a read. It’ll make you appreciate your Macs and iPods that much more :)

G4Swaroop

Wednesday, April 27th, 2005

A close friend of mine had been to the US for work in his company’s headquarters. I had asked him to get me a laptop and I’ve been playing with it since the night before yesterday.

What kind of laptop? It is a 12-inch Apple Powerbook with Mac OS X 10.3.9. It has a 1.5 GHz RISC processor (apparently, equivalent to a 3GHz CISC processor such as Intel/AMD ones) with 512 MB DDR RAM, 60 GB hard disk, Combo drive which can read DVDs and write CDs, a GeForce video card with 64 MB dedicated video RAM, Airport Extreme for wireless networking, Bluetooth built-in, very clear speakers, keyboard with big keys (really like that keyboard), and much more. I haven’t been able to grok all the features, let alone explore all of them…

![11150079][Small][]

I have never used Mac OS before in my life, so, it’s difficult exploring the computer. My previous experience with computers is not helping and the keyboard shortcuts are a bit different and they depend on the special Apple key (which they call ‘Command’ key).

The first thing I tried was to get online. After 20 min of exploring, I finally figured out how to change the IP address, netmask, etc. I think I am getting the hang of using the menus.

![11150080][Small][photo] ![11150081][Small][photo]

The graphics in Mac OS, needless to say, are very appealing. The rollover effects for the tray (or whatever they call it in Mac), the genie effect when minimizing a button, etc. are nice. Pressing F9 causes all the windows to be rearranged such that you can see all of them, click on the window you want to see and it comes up in front. Very nifty; after all, there is no taskbar.

The software installed is amazing as well. I hope to get used to Garage Band soon so I can make starting songs again (I had made one song using FruityLoops a long time ago). The DVD player immediately popped up when I inserted the Yahoo! 10th Birthday Videos DVD (I was so inspired when seeing those videos but that’s another story). All the interpreted languages like Python, Perl, Ruby, PHP were already present. That reminds me that Mac OS X is built on top of Darwin, an open source core based on BSD. iTunes provides a one-click import interface for my Audio CDs. It was a breeze to transfer the songs to my iPod.

![11152077][Small][photo] ![11152076][Small][photo]

If you are still wondering about the “g4swaroop”, my friend joked that I should change my handle from g2swaroop to g4swaroop (because of the G4 processor of the PowerBook) – I thought that was an appropriate title for this post since this is the first post using the PowerBook :)

I still have a lot to explore. I hope to get the hang of it before my copy of Mac OS X 10.4 Tiger arrives. I also have to figure how to “install” software – I have to figure out what the .sit, .dmg and .mpkg extensions mean… that means time to explore the Help (Command-?).

W.r.t. Powerbook and Mac OS X, I would appreciate any words of advice from the Mac veterans :)

The Apple bites back

Wednesday, March 30th, 2005

The webosphere is all about design and aesthetics these days, which is of course, just what the doctor ordered and mainly thanks to Google and Apple (yes, I know you were waiting for me to say that).

And when Paul Graham says we are now witnessing the return of the Mac, people sit up and take notice (my iPod agrees with me too).

I especially liked this part:

So what, the business world may say. Who cares if hackers like Apple again? How big is the hacker market, after all?

Quite small, but important out of proportion to its size. When it comes to computers, what hackers are doing now, everyone will be doing in ten years. Almost all technology, from Unix to bitmapped displays to the Web, became popular first within CS departments and research labs, and gradually spread to the rest of the world.

That reminds me of the Shufflephones hack that my friend Jim has made. Now, that is something really designer-ish but very usable at the same time:

Shufflephones

He even has a whole blog dedicated to shuffle hacks.

I try to always keep in mind that ‘Usability and Simplicity’ are the two most important factors for anything to succeed. It almost feels like Apple invented that concept.

This also means that I’m getting a Powerbook soon. I can’t wait.

iPod!

Monday, March 21st, 2005

My manager went to our Sunnyvale office recently and came back today. I had asked him to get an iPod Mini for me… when he gave it to me in the morning, I was grinning away to glory. I am not much of a gadget guy, but I was craving for an iPod being such a music buff. I forced myself not to open up the package in the morning (otherwise I wouldn’t get any work done). So, when I came back home in the evening, I tore open the package and went total gaga over it.

Packaging of My iPod! Packaging of My iPod!

First of all, it is so compact, I wonder how Apple managed to squeeze so much into something so small… this is the 4 GB version, so I can store approximately 1000 songs on this baby! Oh, and I can use it as a huge floppy drive as well ;)

Coming to life!

The first song I copied to it and listened was the instrumental version of the title track of Roja. For me, there is simply no other song that is as good as that one…

Listening to Roja See how really cute it is!

Just compare the sizes of the iPod Mini and my watch in the last snap above… :)

Now, I just have to find enough good songs to fill it….

P.S. The reason I had to get it ‘imported’ was that it costs $200 == 9 grand rupees that way whereas it costs 18 grand rupees in the Apple store in Forum, Koramangala, Bangalore.