Bosch IXO Repair

In 2006 I bought my first Bosch IXO. It did a wonderful job over the last years and helped a lot assemble and disassemble mostly furniture. (I moved 3 times in the last ten years)

But when we started to renovate our  bureau at home the switch for changing directions started to get a slack joint. Here You can see the misery:

After a bit of a web search I finally found a replacement part and soldered it in:

Works like a charm!

Next steps:

  • Replace battery
  • Replace LED with brighter one

New Year’s Resolutions & Technology Learning Roadmap 2017 – Update 3

Updateception!

I registered for the event “The Mobility Quotient” which features Steve Wozniak and Jimmy Wales as keynote speaker! It will take place on September 7th/8th in Ingolstadt. I am stoked!

I started to learn knockout.js therefor I will drop MeteorJS from my list. Instead of dealing with npm,  I will try out yarn for a couple of projects. Grunt seems to be quite handy to handle client site development and bootstrap looks promising as well. Roll with the punches 🙂

New Year’s Resolutions and Technology Learning Roadmap 2017

Python 3 – there shall be just int

Trying to contribute to the Flask plugin flask-login I just added these lines:

if isinstance(duration, (int, long)):
    duration = timedelta(seconds=duration)

Looking quite plausible, isn’t it? But lo and behold: it doesn’t work under Python 3.x. Dang!

The reason: Python 2 has two integer types: int and long. In Python 3 there is only int, which makes it necessary to distinguish between these two major versions. I’ve found a nice page which deals with this issue. Here is what You must do to make it work in both Python 2 and 3:

import sys
if sys.version_info < (3,):
    integer_types = (int, long,)
else:
    integer_types = (int,)

isinstance(1, integer_types)