Android Notebook, page 2

Monday, January 19th, 2009

There’s a tab character in the Notepadv1.java sample file. Tab characters should not be used.

Android has an embedded SQL database, Useful.

I wish XML layout files would open in XML view by default rather than layout view.

The tutorial is a little flaky with XML terms. It’s an XML declaration, not an “XML header”.

Some things that look like XPath expressions at first glance, aren’t.

Trying to read a tutorial in one window and use Eclipse in the other is painful. Maybe if I put my laptop on the desk?

The tutorial’s naming conventions aren’t following Java standards. Someone likes to put “m” in front of all the instance fields.

XML localization and UI construction: nice.
(more…)

Android Notebook, Page 1

Sunday, January 18th, 2009

Had to upgrade to Eclipse 3.4.1 to to get the SDK working. No big deal.

Hello World is now running. The emulator took a while to start up.

“Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz.” Oh well, it’s just an emulator. No big deal.

It is nice that the emulator works well on a Mac.

transpose

Sunday, January 18th, 2009

Real World Haskell, Exercise 4, p. 84:

Write a program that transposes the text in a file. For instance, it should convert “hello\nworld\n” to “hw\neo\nlr\nll\nod\n”.
(more…)

Turning Off Captions

Friday, January 16th, 2009

Let’s see if this worked. If you don’t see a caption it worked:

A Jumping spider on top of my monitor
(more…)

2008 Birding Retrospective

Thursday, January 15th, 2009

2008 was a year I moved to a new state on the other side of the country, and a part of that state I’d only been to once before. It also featured trips to China and Louisiana. The net result was one of the biggest years I’ve had in a long time. According to eBird, my year total was somewhere over 300 species. I don’t know exactly because I don’t enter the China data there. Even more impressively, 2008 saw 61 life birds, 12 from China, 3 from Louisiana, and 46 from California. That’s not even counting some new exotics like this Red-whiskered Bulbul from Huntington Library and Gardens:

Crested bird, perched
(more…)

A Constitutional Thought Experiment for California

Thursday, January 15th, 2009

Suppose the voters of this state passed a ballot resolution banning marriage between doctors and lawyers, and further invalidating existing marriages between doctors and lawyers. Would such a resolution be binding, or would it rightly be rejected by the courts? Are there any limits on the power of a ballot resolution beyond those set by the Federal Constitution?