Three ways to do some quick math in OS X

I often find myself in the situation where I need to do some quick math. Calculator.app and the calculator widget are pretty basic and a pain to use as they try to mimic the paradigm of a physical device.

There are other ways…

Spotlight

Did you know you could use Spotlight as a calculator? Just type away and it’ll give you the result instantly.

terminal.app (bc)

I’m a regular terminal user. Most of the time I have at least two terminal windows open and guess what there’s a command line app for calculations. It’s called bc.
Just type bc into to prompt and hit enter. Now you can type things like 2+2, or 2*(20-40)^2. Enter.
If you’re done, type quit and hit enter. bc can do a lot more than that, you might want to take a look at its manpage.

AppleScript

Another option is AppleScript. There’s a pretty handy OS X service, you can use. Open System Preferences -> Keyboard -> Keyboard Shortcuts and mark “Get Result of AppleScript” under Development.
Now you can use any text input area as your calculator, just type and select the term and press ⌘*

General things

You’re allowed to use brackets.
Use sqrt(n), or (n)^(1/2) to get the square root of n
Use x^(1/n) to get the nth root of x

A lazy man’s guide Smart Folders and Labels

I never really used Smart Folders in OS X, just as I never really cared about labels or stationery pads.

A lot of Mac users don’t even know what these things are. In fact I assume most don’t know. But it’s really not some obscure diabolical ritual. Just select a file and hit ⌘I
What the labels do should be pretty self-explanatory. A stationery pad is comparable to templates you might know from Microsoft Office. When you open a file that’s that has this checkbox checked Continue reading

Posted in Mac

My First Mac

Looking for a new laptop I decided to get a Mac, a MacBook Pro 13″. First I was hesitating, cost, unfamiliar OS and the fear of the lack of interoperability left me doubtful. The problem of price sort of solved itself as I stumbled over a coupon code on the web and so I could save about 150€ (~$212 as of 25th January). I had to act quick and decided to get it before the offer would expire.

A couple of days later the MacBook arrived. The unpacking, the packaging being premium to say the least, reminded me of boxing day as a child. Continue reading