Do not adjust your eyes; it’s just a new theme.
I’ve just gone live with a different WordPress theme. So, if you’re feeling a bit lost, don’t panic. This is a new theme, iTech, which was just released last month. I’ve tailored the CSS, fixed a bug...
View ArticleUpdate of Forked SyntaxHighlighter
As promised, I’ve updated this site’s fork of the SyntaxHighlighter software by Alex Gorbatchev. I’ve merged in many of the changes that Alex included in his 2.1.364 release, but with the following...
View ArticleSyntaxHighlighter: Easier to load; faster to boot?
SyntaxHighlighter has a relatively high surface area, typically requiring two CSS files and at least two JavaScript files to be linked into a web page. Here’s a truncated example: <html>...
View ArticlePython: Decorating with class through descriptors
Update: If you find this article helpful, you may want to read the follow-up. As a fairly new Python developer, my first attempt at decorators hit a snag: my simple class-based decorator failed when...
View ArticlePython: Decorator Classes On The Edge
OK, I cheated. In yesterday’s post on writing decorator classes that decorate methods, I left out two edge cases that can’t be completely ignored: static methods and class methods. To illustrate, I’ll...
View ArticleAndroid: AutoCompleteTextView, SQLite, and Dependent Fields
Update: Subclassing from SimpleCursorAdapter isn’t necessary after all. Please see my follow-up post for a simpler way of using AutoCompleteTextView together with database queries. I recently...
View ArticleAndroid: Simpler AutoCompleteTextView with SimpleCursorAdapter
Sometimes it seems like nothing brings enlightenment as swiftly as publishing the results of one’s own confusion. Earlier today, I published a lengthy examination of the work needed to supply an...
View ArticleAndroid: Spinners, SimpleAdapter, and (maybe) ViewBinder
The question came up on StackOverflow yesterday: Can a Spinner be configured to use a SimpleAdapter (and if so, how?) The user who asked the question, Chromium, ran into a couple of problems; the last...
View ArticleAndroid: Using DatabaseUtils.InsertHelper for faster insertions into SQLite...
AndroidOS includes the DatabaseUtils.InsertHelper class for speeding up insertions into an SQLite database. However, very little documentation or examples seem to be available to show how to use this...
View ArticleAndroid: Closing those database objects
(Or, what the Notepad tutorial never told you.) If you’ve used Android’s Notepad tutorial (Version 3) , or modeled your own Activity on Notepadv3, then you’ve probably seen log messages that look...
View Article