It’s probably just me, but tipping the valet parking guy always feels like paying ransom to get my car back.
I just read a short chapter in the book Effective Java, and realized I was doing something pretty dumb in my own code by always creating my own custom exceptions instead of using other exceptions already intended to be reused in the Java API.
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.”
One of five tips on writing in journalism, from this article.
Problem: You want to create an iTunes playlist of all your favorite songs. You've rated all your songs using the Rating field in your main iTunes Library, but you don't know how to turn all these song ratings into a great playlist.
I just accidentally discovered an easy way (the easiest way) to delete an email message while using an iPhone.
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:
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.
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:
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: