I Remember

November 11, remembrance day. 

Never forget.

I Remember

Installing .deb files on Linux

The Apple Macintosh has been heralded as one of the most user friendly computing platforms ever, with its full vertical integration of hardware, software, and peripheral devices. The Apple Macintosh, and Mac OS, are typically the epitome of user friendliness and accessibility. But, Apple being a business, effectively locks out older hardware from modern software bliss. Ironically, I had to install the most open source operating system in the world, one targeted at tech-heads and developers, to get my 2006 MBP running again at decent speed with more modern applications.

That said, one of my go-to apps is Remember the Milk, which I use to manage my day to day activities. Luckily, RTM has a Linux version. I run Debian, and RTM offers an Ubuntu version. This makes sense since Ubuntu is arguably one of the friendlier and more accessible Linux distributions. But, Ubuntu is built on Debian, so when RTM releases their app as a .deb package, this means I can download it. Woot!

Conventionally, I use apt-get.. I’m still wading in the shallow end of the Debian pool, but you can install a .deb file manually (i.e. without apt-get); this is mainly because apt-get is a front end to the Debian package manager, dpkg.

That said, thank you Ask Ubuntu @ Stack Exchange:

sudo dpkg -i DEB_PACKAGE

sudo dpkg -r PACKAGE_NAME

Now, RTM is happily running on a 11 year old laptop that the manufacturer has all but abandoned, thanks to some great open source software.

Installing .deb files on Linux

Mercury; offline reading.

With all of my at-home time, I’ve been reading a lot of stuff online.  One major challenge is picking up where I left off, or taking stuff offline to read elsewhere (e.g. on the streetcar to work).   Many browers have a Reader Mode which strips down a page to the bare essentials for easy consumption…  Currently to make this offlineish the workflow is:

  1. Switch to reader mode
  2. Print to PDF
  3. Export PDF to my BB Priv (Android) or iPad Mini (iOS)
  4. Read offline

Okay, that is very cumbersome.. Four steps, including an export and an import. And iOS is so crappy that the import is a daunting task.

I found out that Safari’s reader mode is based off of something called Readability.  I’ve never heard of Readability, but they are gone, replaced with Mercury.  This bears some more looking into.  Maybe an app that can slurp content via Mercury, and pump it to a datastore for consumption by other devices?  True, you’d need some cloud type stuff to sync stuff, but since I do this from home anyways, a one time wifi sync would be preferred to the hacking steps above to export to PDF, etc.

Mercury; offline reading.

Linux hacking

With our little one here, I’ve been looking for ways to become more mobile, especially with regards to development. At my disposal I have:

  • An 2006 15″ Macbook Pro (with a Core Duo processor, i.e. the 32-bit one) with a dead battery, so it is essentially a static machine
  • An aging ThinkPad X200, dual boot Win7 and Ubuntu.

Now, the MBP has a great 15″ screen with lots of resolution, but the X200 is truly mobile (e.g. it has a working batter), although the screen is on the small side.   So ultimately I will use both machines, but I have to baseline them with regards to development..

To date my development has been using Eclipse CDT on my Mac Mini.  The MBP only runs Snow Leopard (10.6.x) and the X200 runs Windows; both of these OSs are unusable for (modern) development.  Yes, the X200 also has Ubuntu, but that was just to fuck around, so the entire install is spotty at best.  Solution?  Fresh installs of Linux on both machines.

I managed to get Debian 8.0 (Jessie) installed on the MBP, and except for the buggy graphics driver, the machine is pretty nice to work on.  I worked on that for a week, and today I sat down to wipe Ubuntu from the X200.  It was a pretty simple install, with the following caveats:

  • Debian installer asks for non-free drivers for the wifi, so I had to install over Ethernet and install wifi after the fact. Instructions were found here
  • The X200’s TrackPoint didn’t work, out of the box, so I had to follow the instructions here to get the middle button to allow for scrolling: instructions.

Because the Internet never seems to keep pages forever, I’m jotting notes down here for future reference. For installing the wifi drivers on the ThinkPad X200, instructions for getting wifi to work were pretty simple after the install was complete.  Log in, switch to root (or sudo everything), and:

  • Add a “non-free” component to /etc/apt/sources.list, for example:

    # Debian 8 "Jessie"
    deb http://httpredir.debian.org/debian/ jessie main contrib non-free
  • Update the list of available packages and install the firmware-iwlwifi package:

    # apt-get update && apt-get install firmware-iwlwifi
  • As the iwlwifi module is automatically loaded for supported devices, reinsert this module to access installed firmware:

    # modprobe -r iwlwifi ; modprobe iwlwifi
  • Configure your wireless interface as appropriate.

For the latter (TrackPoint), you had to:

  • Install xinput via:
    apt-get install xinput
  • And then to enable vertical scrolling

    xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 1
    xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 2
    xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Timeout" 200

As I type this Eclipse CDT is installing in the background, after which point I can start hacking again on PART.


Linux hacking

The SINs of Birth Certificates.

Well, fucked that up.

Ontario has a lovely 4-in-1 process for registering your newborn, getting a SIN, birth certificate, the works.  This process combines four things:

  1. Newborn registration
  2. Birth certificate
  3. SIN registration
  4. CRA credits registration

It’s a great idea: you leverage economies of scale when doing Step 1, and this information automagically feeds into Steps 2, 3, and 4.  To do the latter three items you normally have to have a wack of certified documentation to prove that you are who you say you are.  Understandably, this prevents fraud, etc.

However, if you only complete Step 1 and have to abort to continue later, you can not use the same service for Steps 2, 3, or 4.  This is nonsensical to me.  While I can appreciate not building the infrastructure to “save and continue later,” Step 1 does give you a confirmation number.  It should be trivial to use that confirmation number as an input to Step 2, and continue where you left off.  Alas, this is not the case.

This means, I have to wait 4-8 weeks for Step 1 to complete (i.e. receive the requisite documentation in the mail), before I can proceed with Steps 2, 3, and 4.  And then each of those steps takes 16 weeks..  In total, an 8 week process has now expanded to:

  • 8 weeks for Step 1
  • 16 weeks for Step 2
  • 8 weeks for Steps 3 and 4 (which can presumably be done in parallel); worst case: 16 weeks, 8 weeks each

This is a far cry from:

  • 8 weeks for Steps 1-4 if done at the same time (i.e. not aborting to continue later)

By aborting to continue later, I have effectively added 32 weeks to the process.


The SINs of Birth Certificates.

40 Years, 40 Days, 40 Nights

I turned 40 last week.  I hate the notion of being 40.  I keep thinking of “over the hill”.  But on the flipside, if 30 is the new 20, 40 is the new 30.  So I guess I’ve jumped into my DeLorean and traveled back 10 years by becoming 1 day older.  That’s plogic for you.

Anyhoo, time to get healthy again.  I will admit that the past year+ I have let my health go to shit.  This has been a rancid combination of destroying my shoulder in January 2015 trying to do handstand pushups, to the point where I can no longer do many over-the-head exercises, and leaving  my previous employer because my former boss is a vindictive self serving bitch who threw me under the bus for doing my job.  But, I digress.

When I did Paleo a few years back, the results were fantastic.  Caveat: I was also doing crossfit at the time.  For now, I am going to start in adjusting my diet.  A workout is useless if you end up eating crap.  So, after a weekend of drinking and eating whilst celebrating the new 30, I will now do the whole 40 and go on Paleo for 40 days and 4o nights.

Today is day 2.  Let’s see if I make it to day 3.

40 Years, 40 Days, 40 Nights