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.

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.

There’s also a phrase I read in the book Turning The Mind Into An Ally that is very helpful. As you’re getting ready to meditate, explicitly say out loud to yourself, “And now I am placing my mind upon the breath.” This helps set your intention and your focus, and I also find it calming.

On a related note, it helps me to put a time limit on this last statement, so I say something like, “For just the next 30 minutes, I will focus my mind upon the breath,” something like that. It’s almost like my brain hears that and calms down, thinking, “Oh, okay, I can begin worrying about everything again in 31 minutes. So I’m good, go ahead and start meditating.”

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 alvin November 9, 2007 - 3:58pm

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: