What to do on those days when you just can’t meditate

This morning I’m reminded of a favorite meditation tip: Some days when you try to meditate, it just doesn’t work. On those days just put in your time on the cushion, or try to make game of it. Get up when the timer goes off, have a cookie, but don’t punish yourself for being a “bad meditator.” New wrinkles in the brain aren’t easily made.

But then on those days when it comes easily and naturally, turn off the timer/alarm, think, “Surf’s up, dude,” and ride that wave as long and as hard as you can. Good rides like these make those struggles worthwhile.

Happy New Year & Namaste

How to schedule an automatic Mac wake up time

Summary: How to schedule a Mac automatic wake up time (or sleep time).

While answering a reader's question about an unrelated Mac issue, I stumbled onto a solution of how to wake up my Mac at a specific time every day. This is very cool for me, because it fits in very well with my Mac AppleScript iTunes alarm clock.

A simple Mac Meditation application

Today I'm releasing Version 1.0 of a very simple, free Mac OS X application named "Meditation".

This Mac Meditation application is really just a very simple timer that plays a "gong" sound at the end of the time period you specify. (So, if you want a Mac OS X timer application for some other reason, Meditation may fit your needs.)

AppleScript timer - run a script on a schedule with cron

Once you know that you can run an AppleScript program from the Unix command line it's easy to run it at scheduled intervals using the Unix cron facility. Here's an example of how to run my Safari script at the 7:30 a.m. every day.

30 7 * * * /Users/al/tmp/OpenUrls.scpt

I'm not going to get into the cron facility in any detail here, I just wanted to show how this is done. I will say that I modify the cron script by using this command:

Java performance tuning: putting timers in code to benchmark performance

With a programming language/environment such as Java the performance of our Java code may be a concern. I often use an old-fashioned "quick-and-dirty" way to measure the performance of Java code, and I'll share that method in this brief article.

An old-fashioned manual method

I must confess, the method I use is as old-fashioned as they come. Generally it requires three steps: