Me

Hi, I'm Marcus, I'm a software developer living in Stockholm, Sweden.

I've been programming since the early eighties and building stuff for the web since the nineties. I get paid to help organizations with technology and processes around software development.

Latest Posts

  • 2018-05-15 For the Fun Of It

    I came upon this awesome TED talk on “Why You Should Make Useless Things” by Simone Giertz thanks to Mikael Pawlo. The talk really resonated with me and articulated thoughts I have had for a long time. I learned how to program BASIC from a book 37 years ago, one year before I actually saw and touched a real computer. A few months later I got my first computer, a Commodore VIC20. Read More …

  • Emacs brings REPL-driven development to SQL using sql-mode, so you can have a SQL buffer running and send commands to it. Today however sql-mode didn’t show a prompt when connecting to my local dev database. It turns out that sql-mode has a regexp looking for the prompt, which expects the database name to be all alphanumerics for some reason. It seems to be fixed but is not in the version I get from Arch Linux. Read More …

  • 2017-03-09 Connman and DNS

    I’ve been running Connman instead of NetworkManager for a week since it is supposed to be more lightweight. Lightweight is good. However, I had really weird problems with DNS, where some hosts wouldn’t resolve. $ ping outlook.office365.com PING outlook.office365.com (40.101.40.226) 56(84) bytes of data. 64 bytes from 40.101.40.226 (40.101.40.226): icmp_seq=1 ttl=238 time=44.7 ms 64 bytes from 40.101.40.226 (40.101.40.226): icmp_seq=2 ttl=238 time=44.6 ms 64 bytes from 40.101.40.226 (40.101.40.226): icmp_seq=3 ttl=238 time=44.8 ms ^C --- outlook. Read More …

  • It might be that pythonistas really don’t like monkey patching, but as I couldn’t find a quick answer on how to mock time in Python I thought I write down here how I did it. It’s no big deal really, just replace datetime in the module tested with a local implementation. In my case I wanted to to mock datetime.utcnow and to match the call I created a class with utcnow as a static method. Read More …

  • I have a Lenovo X1 Carbon that has a 14 inch screen with a 2560x1440 resolution. While not quite Retina Display quality, it still has enough pixels to make everything on the screen appear tiny with a regular 96 DPI setting. Trying to fix this in browsers by increasing font sizes breaks quite a few sites, while custom DPI settings works better. Firefox Open about:config and set the property layout. Read More …

Speaking

Contact Info