Category Archives: Uncategorized

Punked!

It looks like some rather naughty individuals have found and exploited a vulnerability in my WordPress blog. This is an inconvenience but I’ll work to restore my notes so they can remain useful to the public.

Posted in Uncategorized | Leave a comment

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: [html light=”true”] <span ng-style="{background: item.color}"> [/html] … 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, [js] [$injector:nomod] Module ‘ngLocale’ is not … Continue reading

Posted in Uncategorized | 15 Comments

Installing Django on CentOS

Notes on installing Django on CentOS. Continue reading

Posted in SysAdmin, Uncategorized | Tagged , , , | 2 Comments

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