Another photo from the tv series Doc Martin. I was laughing out loud by the point of this clip, where there was a misunderstanding about Al and a pregnant woman (Louisa).
Scala, Java, Unix, MacOS tutorials (page 305)
To create an order by query using the find method of the MongoDB Casbah driver (Scala), use the sort method, as shown in this example:
dig command FAQ: Can you share some dig command examples?
I was just trying to help a friend troubleshoot some email server problems at his company, and had to use the Linux dig command a lot to try to determine what was wrong. In the end it turned out that his company bought a block of IP addresses that were blacklisted, but in the middle I had some fun trying to remember how to use the dig command again.
To specify the rows and columns in a Play Framework 2.1.x form field, use a syntax like this:
@textarea(
urlForm("notes"),
'_label -> "Notes",
'placeholder -> "Any notes you want to add",
'rows -> 5,
'cols -> 60
)
The textarea documentation shows that you can also specify the textarea size like this:
A nice thing about having written a book for O’Reilly is that they keep sending me swag. I checked the mail today and found this package, which contained some mini Moo cards, and nice O’Reilly-branded hardware.
Data on mobile device usage by the last 100,000 website visitors.
A flat tire in Alaska. I think I saw this posted on the Seavey family Ididaride Facebook account.
Here’s a quick look at recent visitors to this website, first by Operating System and then by Browser.
I saw these characteristics posted in a story on the Seeking Alpha website, and since they mirror my own thinking, I wanted to post these characteristics here as well.
I saw this story posted a few weeks ago. The polar bear didn’t eat the guy, so it’s cute. Original story at kbhr.co/0
I recently wrote my own URL-redirection service at kbhr.co, and a quick surprise when using my own service is how many “Twitter Bots” are out there. When I used goo.gl for my URL-redirects, it didn’t show data for any of these, but once I made my first post using kbhr.co, I found that at least 80% of the click-thrus were from bots, and many of them happen immediately.
I use MongoDB for my kbhr.co database, and this is a little peek at the “user-agent” field from the headers of the bots that followed one link I posted:
My Kindle eBook, “How I Sold My Business”, is free, today only (August 30, 2013): http://kbhr.co/6
Okay, Parallels Access looks pretty cool: “Parallels Access ‘applifies’ your Windows and Mac applications, letting you remotely access and experience them as if they were made for iPad. Tap, swipe, pinch and scroll any Mac or PC software application – even if they were not optimized for the iPad.”
Lately I’ve been deploying a Play Framework 2.1.x application to a production Linux server once a day, and I’ve kept a few notes as I’ve been going along. My notes may be a little cryptic, but here they are.
Step 1) Packaging the application
To package my Play application, I follow these steps.
In programming, semantics can be important. While in many cases I don’t care too much how developers name classes and variables, in some cases monikers can cause problems. (Perhaps even in that sentence.)