A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. Nulla nulla lorem, suscipit in posuere in, interdum non magna.

New Windows desktop computer with full C drive? Check OS hibernate settings.

On my new work desktop computer with Windows 7, I noticed a 30Gb file hiberfil.sys filling drive C. Since I don’t use the hibernate function, I can disable it.

From a command shell as Administrator
G:\> PowerCfg.exe -H off

The file disappears.

lineman-angular updated to ng-annotate

We use LinemanJS to automate the build process of various AngularJS projects. Two newer projects use the most excellent UI-router package, and I had some issues. The resolve section required manual protection for minification; ngmin, the automatic minify protector included with lineman-angular, did not handle resolves correctly. So this code:

resolve: {
     liveConfig: function(ServerConfigService) {
       return ServerConfigService.fetchFutureConfig();
     liveLocations: [ "PickSchoolService", function(PickSchoolService) {
        return PickSchoolService.fetchSchools();

would not work, as the minifier would convert the ServerConfigService object to, say, a, and that would obviously not match the injected service. Blam.

 liveConfig: function(a) {  // what the heck is a??
      return a.fetchFutureConfig();

There has been a feature request outstanding on this for a while, So yesterday on a longer car ride, I finally got ng-annotate to work on my local project. I was all ready to grab the source for lineman-angular and submit a PR, and found davemo beat me to it:

davemo authored replaces ngmin with ng-annotate 2386ab76016b485a03dfbf684c4639e9235f8a4d

updated my local package.json to 0.3.0 and lineman build. Nice. Now I can rip out all that icky brackety stuff.

Now to make sure – I found that chaining

angular.module("app", ["ui.router", "", "ngStorage"])

.run(function ($rootScope) {
.run(function($log, $state, $localStorage, $timeout) {
.run(function ($rootScope, $state, $log, PickSchoolService) {
.config(['$logProvider', function ($logProvider) {
.config(['$httpProvider', function ($httpProvider) {

also had issues in minification. I had to break some files up with the explicit module statement for it to work.

angular.module("app")  // require redeclaring for ng-min support
    .config(function($httpProvider) {

angular.module("app")  // require redeclaring for ng-min support
    .run(function ($rootScope) {

I mashed them back together. Seems to work great now. Nice work, all.

Wise counsel, indeed

“If you are going to eat shi*, don’t nibble,” he says, in a phrase that should be immortalised in corporate finance textbooks.

Quoted from a Horowitz financial controller, from the review of The Hard Thing About Hard Things by Ben Horowitz, venture capitalist, in The Economist, 15 March 2014.


17 pounds and 4 inches of Carbon Neutral

Bing bong! Who is that disturbing my workout? After opening the door, I hear the UPS getaway truck speeding into the distance. Look down. See the shrink wrapped pile.

8 catalogs. 17 pounds. 4 inches thick – at least two Sears Catalogs thick from the good ol’ days.

And the phrase below the barcode: UPS CARBON NEUTRAL SHIPMENT.

The shipment may be carbon neutral. I don’t see how 17 pounds of glossy paper is anything but a ridiculous waste.


Morning Phase

After listening to Beck’s Morning Phase on Rhapsody non-stop for the last few days, I have to say: best album of 2014.

Now make it stop.

Intellij IDEA SCSS File Watcher

I use IntelliJ IDEA on a Centos VM for AngularJS development at work, and I have a FileWatcher configured to compile the SCSS files from the designer into CSS when they change. It stopped working one day.

After days of bad behaviour because I did not have the correct CSS, I compared configs. Mine looked like (from the exported file):

<option name="arguments" value="compile $ModuleFileDir$/src/main/webapp/ui/src" />
<option name="checkSyntaxErrors" value="true" />
<option name="description" value="Compiles .scss files into .css files" />
<option name="exitCodeBehavior" value="ERROR" />
<option name="fileExtension" value="scss" />
<option name="immediateSync" value="false" />
<option name="name" value="SCSS" />
<option name="output" value="$ModuleFileDir$/src/main/webapp/ui/src" />
<option name="outputFromStdout" value="false" />
<option name="passParentEnvs" value="true" />
<option name="program" value="/usr/bin/compass" />
<option name="scopeName" value="Project Files" />
<option name="trackOnlyRoot" value="false" />
<option name="workingDir" value="$ModuleFileDir$/src/main/webapp/ui" />

Hers, as it turns out, did not check for syntax errors:

<option name="checkSyntaxErrors" value="false" />

And as it turns out, the designer just started delivering SCSS files with errors last week. So mine never got compiled. Fixed. Duh.

Yet another Airlink 101 DD-WRT adventure

Client needs a cheap Wi-Fi and router. Fast trip to eBay and for $5 plus $6 shipping, I get an Airlink101 AR690w with Wireless-N. Three antennas. Looks good.

AR690w is on the supported list, with an older version and a new version. I tried the current release, and the uploader for the stock firmware was not happy. So I uploaded the factory firmware upgrade, buried on the first page, to start it off.

Bam! DD-WRT is on the air. But I cannot connect via the router Ethernet ports. I connect via Wi-Fi, the console is up, but there is no way to enable the wired ports.

Some quick reading in the DD-WRT forum on Airlink AR690w BS 14473 switch not working. Turns out the firmware listed as working does not work. Some dude Brainslayer figured it out, and created new firmwares for the device. So why is it on the working download page? Dunno.

So after registering with DD-WRT forum, I was able to download the Brainslayer stock firmwares. Tried the factory. Nope. Tried the other one. Nope. No connect, no Wi-Fi. Brick? The router puts up an emergency upload page for new firmwares. Nice.

Found Airlink AR690w Brainslayer switch not working. Some more tries. Then in another post, I was able to download the stock firmware. Reflashed, and it came up singing!

Now try the factory Brainslayer version.  Success!

I might keep this one and give the client the AR430W. With DD-WRT of course.

Why doesn’t my #!@$#$%@ console show my variables?

Given: Google Chrome, Dev Tools open, Console open. Paused at breakpoint.


Nothing prints. Why?

Give me a few hours.

Finally, consider the log level selector bottom right of the console panel. Note the current selection is “Debug”. Click the “All” button.

undefined  (should be)
WebSource {dbName: "name", dbIcon: "name.gif", hasMoreResults: undefined, dbTotalHitCount: "500", dbID: "id"…}


Flashing an AirLink router again and again with DD-WRT

I got an Airlink 101 AR430w router from a dude at a McHenry County Software Craftsmanship meeting. He had already flashed it with DD-WRT and like a moron I tried a web firmware upgrade to the latest build 21061 – without knowing what it fixed. Then you turn it on, it powers up, and sits there. Reading: Airlink AR430w flashing instructions


After 2 days of on-and-off messing around, I finally got a telnet session going into the router. You need to have an isolated network so DHCP doesn’t play tricks – I used a laptop on WiFi with an unused Ethernet port and manually set the IP to, to play in a different subnet than the WiFi 192.168.0.X. Power up the router, telnet 9000 and Putty supplied the Ctrl+C when needed.

I downloaded the new flash files (for the one release older, 14896), set up the Windows TFTP32 server, and killed the laptop firewall. Then I started getting this timeout error. Flashes would not work.

DD-WRT> load -r -b 0x80041000 linux.bin
Using default protocol (TFTP)
TFTP timed out 1/15
Can't load 'linux.bin': operation timed out

Over and over. Read OpenWRT pages, Could not get it to work. As I read, most folks blamed network issues – maybe I had too much going on in my laptop with Virtual Box virtual NICs. I even tried the recommended DrayTek Router Tools from this article on DD-WRT – which worked great, but STILL timed out.

Finally took my brother’s Linux box I am configuring as a firewall – another fun project. It has two NICs, eth0 to 192.168.0.X, internal net, and eth1 I configured as

eth0      Link encap:Ethernet  HWaddr 70:71:bc:77:XX:XX
          inet addr:  Bcast:  Mask:
          inet6 addr: fe80::7271:bcff:fe77:6140/64 Scope:Link

eth1      Link encap:Ethernet  HWaddr 00:22:3f:e9:YY:YY
          inet addr:  Bcast:  Mask:
          inet6 addr: fe80::222:3fff:fee9:4973/64 Scope:Link

I installed tftp and tftpd, and added this config (based on this thread in the DD-WRT instructions)

mike@filter:~$ cat /etc/xinetd.d/tftp
service tftp
 protocol = udp
 port = 69
 socket_type = dgram
 wait = yes
 user = nobody
 server = /usr/sbin/in.tftpd
 server_args = /tftpboot
 disable = no

This crashed the router again. Was in one of the instructions. Not sure why

DD-WRT> ip_address -l -h

Reset the IP and tried to use the TFTP client to load linux.bin back into the home dir. Worked, so the server was up.

So try yet again…following the flash instructions, but starting after the :

root@filter:/home/mike# telnet 9000
DD-WRT> load -r -b 0x80041000 linux.bin
...  YAHOO IT WORKS!!!! not sure why...
Raw file loaded 0x80041000-0x803d2fff, assumed entry at 0x80041000-
DD-WRT> fis create linux
. Erase from 0xbfc30000-0xbffc2000: 
. Program from 0x80041000-0x803d3000 at 0xbfc30000: 
. Erase from 0xbffe0000-0xbfff0000:
. Program from 0x80ff0000-0x81000000 at 0xbffe0000: 
DD-WRT> fconfig boot_script true
boot_script: Setting to true
Update RedBoot non-volatile configuration - continue (y/n)? y
. Erase from 0xbffe0000-0xbfff0000:
. Program from 0x80ff0000-0x81000000 at 0xbffe0000:
DD-WRT> fconfig boot_script_timeout 3
boot_script_timeout: Setting to 3--
Update RedBoot non-volatile configuration - continue (y/n)? y
. Erase from 0xbffe0000-0xbfff0000:
. Program from 0x80ff0000-0x81000000 at 0xbffe0000:
DD-WRT> fconfig
Run script at boot: true
Boot script:
Enter script, terminate with empty line
>> fis load -l linux
>> exec
Boot script timeout (1000ms resolution): 3
Use BOOTP for network configuration: true
Default server I
Use BOOTP for network configuration: true
Default server IP address:
Console baud rate: 9600
GDB connection port: 9000
Force console for special debug messages: false
Network debug at boot time: false
Update RedBoot non-volatile configuration - continue (y/n)? y
... Erase from 0xbffe0000-0xbfff0000: .
... Program from 0x80ff0000-0x81000000 at 0xbffe0000: .
DD-WRT> reset

Router starts up. I get a website at



Eric dropped Dave off at the airport at 5:00AM (thanks, Eric) and we met him for breakfast at 8AM. He was the worse for wear, at 12:30AM, the floor fire alarm went off, scaring the heck out of us. The worst is the mechanical voice stating. “We are investigating”. You just lay there and hope you don’t die, and listen to the fire trucks come. The you go back to sleep. Turns out Dave went downstairs, and it was some control system that wasn’t right. Eric couldn’t sleep anyway, and being waken up by an alarm is not good.

After breakfast, we headed off to Jasper. Of course, we have to make it thru the traffic on 97 St and 1, which was so backed up with construction it took us an extra half hour to get out of Edmonton. After the escape, we made good time all the way to Jasper, stooping for gas once in Niton Junction. We stopped at the gate to Jasper National Park and a pleasant woman asked our plans and charged us for two days in Jasper and Banff. (35CAD)

On the way, we discussed attractions. We wanted to be frugal, but heck, we were on vacation and wanted to see everything. Tina had recommended the Maligne Lake tour in Jasper, and based on the pictures on the Web, I wanted in. We called on the way – no reservations on the phone, and only two slots each in the two cruises remaining in our arrival timeframe.

POINT: From Edmonton, go directly to the lake – they sell tickets there too.

We stayed at the Athabasca Hotel in Jasper, centrally located and loaded with personality. It looked like an old Western hotel, and Eric’s room certainly did with a single washstand, and bed – and that’s it. He had a common washroom, which saved money but was not going to work for Bette.

We went to the visitor center first, looking for the Maligne Lake tour. They directed us to the Brewster center down XXX street, but we had trouble finding it. We managed to walk down most of the streets downtown – it is small and very manageable, and eventually found the office, and signed up for the 3PM tour. We first stopped at the hotel, found our rooms not ready, and headed out to the Maligne Lake road, a bit XXX of Jasper. Well, the road is, but you drive at least a half hour to get to the lake from the main road.

We of course missed the big “P” sign and had to U-Turn to get into the parking lot. Ran into the ticket office, exchanged our vouchers for boarding passes and went into the visitor center / gift shop / snack shop to try to eat a bit.