tip

Gratitude helps shut down distractions during meditation

I had to get away from it for a while, so I forgot how good the book Right Concentration: A Practical Guide to the Jhanas is. I tend to be more interested in the science behind mindfulness and meditation (as opposed to specific religions and their rituals), and as a result, from my own practice I can confirm the last sentence in this paragraph from that book. (See the attached image.)

Depending on the day, and especially the time of day, the first 5-10 minutes of any meditation session are the hardest for me, because it takes a while to get my mind to settle down. Since I learned this practice, I do settle down more quickly.

Tipping the valet parking guy

It’s probably just me, but tipping the valet parking guy always feels like paying ransom to get my car back.

How to use anonymous CVS to access a CVS repository

I can never remember the command-line syntax to access a remote CVS repository via anayonymous CVS access, so just as a reminder to myself, here are the commands I used recently to access an OpenBSD CVS repository:

Show the method signature with control-space keystroke

Using Eclipse, if your cursor is positioned in between the parentheses of a method call, the [Control][Spacebar] keystroke will show you the signature of the method, i.e., the parameters that the method accepts. I just read where the documentation shows that you should use the [Control][Shift][Spacebar] keystroke to see method parameters, but I've found that [Control][Spacebar] works fine for me.

AppleScript tip: script a program that isn't scriptable

If you ever want/need to use AppleScript to drive another program that doesn't have AppleScript support, there are a few things you can do. Here's a snippet of code where I'm opening new tabs in Safari, and typing text into the location field:

Create an AppleScript list with the every keyword

AppleScript “list” FAQ: How do I do something for every item in an AppleScript list? (or, How do I loop over an AppleScript list?)

Loop over an AppleScript list with the every keyword

I've shown examples of the AppleScript every keyword in other posts, so rather than create anything new, here's a repeat of one of those examples: