Hello World written in Kotlin using Android Studio

March 15, 2014

Published: 2014-03-15

Kotlin is Jetbrains successor to Java, it’s evolving rapidly and what documentation there is for writing Android apps is pretty soon out of date to the point where even getting the canonical Hello World up and running can be a frustrating experience.

Here’s how to get a Kotlin version Hello World running on Android using Android Studio 0.5.1.

Read the rest of this entry »

Writing Android event handlers in Kotlin

July 8, 2013

Updated: 2013-08-20: For Kotlin M6 compatibility.
Published: 2013-06-08

Kotlin is Jetbrains successor to Java, this brief post illustrates how Kotlin’s SAM conversions can simplify Android event handlers.

Read the rest of this entry »

Configuring NUT for the Eaton 3S UPS on Ubuntu Linux

February 27, 2013

Published: 2013-02-27

This post explains how to configure Network UPS Tools (NUT) to work with an Eaton 3S UPS on a stand-alone Ubuntu 12.04 PC.

Read the rest of this entry »

Building heterogeneous TypeScript libraries

November 20, 2012

Published: 2012-09-21

A technique for compiling one or more TypeScript source files to a single JavaScript library file that can be used in both the browser and by Node.js applications.

Read the rest of this entry »

Bash completion for Grunt files

November 10, 2012

Published: 2012-09-11

I modified my cake bash completion script for Grunt.

All you need to do is add this completion function and command to your ~/.bashrc file:

Read the rest of this entry »

Reclaiming the Windows 8 Desktop

October 26, 2012

Updated: 2013-02-05
Updated: 2013-01-21
Published: 2012-10-28

Window 8 has a touch-screen user interface designed for media consumption on small-screen devices (phones and tablets) — the default Metro user interface is unusable for content creation tasks on desktop PCs. If you are new to Windows 8 and you plan to use it on a desktop PC with existing desktop applications you will find the out-of-the-box experience miserably frustrating. This article will help you transform your Windows 8 desktop into a sane Windows 7 style desktop.

Read the rest of this entry »

Blogger Backend for AsciiDoc

September 11, 2012

Published: 2012-09-11

The AsciiDoc backend plugin for Google’s Blogger blog hosting service is hosted on Github, it generates Blogger friendly HTML markup from AsciiDoc source.

Read the rest of this entry »

Bash completion for Jake files

June 17, 2012

Published: 2012-06-18

To implement bash(1) tab completion for Jakefile task names all you need to do is add this completion function and command to your ~/.bashrc file:

See also my previous post Bash completion for cake files.

Read the rest of this entry »

TypesScript and CoffeeScript ports of the Meteor Leaderboard

April 22, 2012

Published: 2012-04-23
Updated: 2012-04-29
Updated: 2012-11-05

I added a TypeScript port and login authenication — changes that made the original post out of date.

Read the rest of this entry »

Bash completion for cake files

November 1, 2011

Updated: 2012-08-19
Updated: 2012-06-18
Updated: 2012-04-06
Published: 2011-11-01

To implement bash(1) tab completion for Cakefile task names all you need to do is add this completion function and command to your ~/.bashrc file:

Read the rest of this entry »