Squirrel at the window alvin October 12, 2017 - 10:34am

I’m sitting here working this morning when I start to hear that familiar scratching, crawling sound outside. In a few moments, the squirrel’s head appears from the right side of the window. He’s hanging sideways, three stories off the ground, and looking in, about twelve inches from my face. It’s cold outside so I had the window closed, but I slide it open.

“Dude, Cheerios,” he says.

“Oh shoot, I forgot,” I say.

By the time I walk to the kitchen, get the box of Cheerios, and open the door to the deck, he’s already there, waiting.

Designers choosing form over function

One of my gripes with both MacOS and Ubuntu is that it’s harder than it needs to be to grab a window corner or edge to resize it. IMHO, designers are choosing form over function.

Android N multi-window support alvin March 9, 2016 - 11:54am

Per the Android Developer’s Blog, Android N will support multi-window views.

How to show an HTML WebView in an Android AlertDialog alvin January 3, 2016 - 2:55pm

If you want to show a WebView component in an Android AlertDialog, the following method shows how to do it:

How to size (or resize) application windows in AppleScript

AppleScript FAQ: How can I size or resize an application window using AppleScript?

To resize an application window with AppleScript, use a command like this:

tell application "Safari"
    set bounds of front window to {300, 30, 1200, 900}
end tell

That command tells the Safari browser to have the following size and location properties:

Window of the Poet alvin October 3, 2014 - 9:49am

Window of the Poet, by Pyotr Konchalovsky.

Website visitors by Operating System and Browser alvin August 31, 2013 - 6:18pm

Here’s a quick look at recent visitors to this website, first by Operating System and then by Browser.

How to center a window/frame with Scala Swing alvin June 12, 2013 - 9:39pm

To center a window/frame in a Scala Swing application, add this line to your frame definition:


Here’s what this looks like in the top method definition inside a SimpleSwingApplication: