Category Archives: Uncategorized

Set Background Colour with AngularJS

From the “I can’t believe I had to look it up” department: One can use ngStyle to programmatically set the background colour of an element. This is arbitrary ugly code that demonstrates the concept: The “gotcha” is if one wishes … Continue reading

Posted in Uncategorized | Leave a comment

Initializing Objects with $.extend()

If jQuery is available, $.extend() can be useful “quick and dirty” method for initializing an object with defaults, while allowing for the caller to provide values to override the defaults. The advantage is simplicity. One disadvantage is that there is … Continue reading

Posted in Uncategorized | Leave a comment

JavaScript Binding

Getting Out of Binding Situations is an old article, but worth the read.

Posted in Uncategorized | Leave a comment

AngularJS ngLocale Error

AngularJS, like all frameworks has its warts. Its documentation is spartan but adequate for most purposed. When AngularJS encounters an error, it tends to cough up a messy hairball of unhelpful information. For example, By all rights I read this … Continue reading

Posted in Uncategorized | 13 Comments

Installing Django on CentOS

Notes on installing Django on CentOS. Continue reading

Posted in SysAdmin, Uncategorized | Tagged , , , | Leave a comment

Remote control via ssh keys

Notes on how to remotely execute preconfigured commands by logging in with a ssh key. Continue reading

Posted in Uncategorized | 1 Comment

Using the Adafruit ArduinoISP shield to bootload a 8MHz standalone ATmega328

Programming an ATmega328 using an in-system programmer (ISP) is pretty straightforward. I was tasked with using an Adafruit ArduinoISP shield to make an ATmega328 run standalone using its internal 8MHz clock. These are my notes. Create A New Board Definition … Continue reading

Posted in Uncategorized | 4 Comments