Mikael's blog

A developers seventh time trying to maintain a blog

Tag #linux

The Tiling Truth | May 14, 2012 at 08:33

Form, function and flexibility. I find that these three concepts are not always easy to rank. Sometimes I feel that form trumps functionality, sometimes I don't. When it comes to window managers however, function is king! ## The Form Junkie I have to admit, I've been totally ignorant about tiling window managers up until now. I've always wanted my desktop to look nice and I've sometimes gone to great lengths to customize my desktop to be pixel perfect the way I want it. But lately I've come to a realization; mouse pointers suck! Well most mouse pointers do anyway. I'm a trackball user so I think all regular mice sucks anyway, but now I've started hating trackpads. I've been planning on picking up a new laptop soon (well as soon as the X230 gets released) but I want to be able to use it

Progress at Last | May 7, 2012 at 19:33

Sometimes you need more than your operating system gives you. That's when a text editor comes in handy. ````bash #!/bin/bash EXPECTED_ARGS=2 E_BADARGS=65 E_BADPATH=66 if [ $# -ne $EXPECTED_ARGS ] then echo "Usage: `basename $0` {source} {dest}" exit $E_BADARGS fi if [[ ! -f "$1" ]]; then echo "Source file does not exist or is not a regular file." exit $E_BADPATH fi DESTSIZE=`du -b "$1" | awk '{print \$1; }'` DESTFILENAME=`basename "$1"` if [[ -d "$2" ]]; then DESTPATH="$2/$DESTFILENAME" else DESTDIR=`dirname "$2"` if [[ ! -d "$DESTDIR" ]]; then echo "Dest dir does not exist." exit $E_BADPATH fi DESTPATH="$2" fi cat "$1" | pv -s $DESTSIZE -p -e -r > "$DESTPATH" exit 0 ```` Copying large files to my NAS becomes so much more fun when I actually KNOW that it's doing

Screw You Ubuntu - I'm Going Home | March 4, 2012 at 13:49

Ignoring a short play date with Red Hat around '95, my first Linux love was Slackware. Slackware was fast and awesome but it somewhat lacked in the package discovery department. I installed most things from source and after learning about all the bad things that can happen when you install new versions of software on top of the old, I setup a package manager, but Slackware still lacked a central package repository. ## All Your Source Are Belong To Us The central source repository led me to switch to Gentoo. Being able to just install things without having to find the source code online first was great, but again I grew tired. The long compile times eventually wore me out and this time the switch was made to Ubuntu. ## Out of The Box Experience Ubuntu was nice in a everything-just-wor

The Development Environment Enigma | March 3, 2012 at 10:22

As you might have noticed, there hasn't been much work done on the blog these last few months. It kind of boils down to complexity. ## The Old Setup When I started building this blog my main workstation was running Windows 7. Everything ran as well on Node.js on Windows as it did on my Linux server. It was a nice and simple setup; develop locally, test locally, deploy on server. ## Enter CouchDB Then I added a database. Specifically CouchDB that only worked on Linux. This meant a new, more complex development routine; develop locally, deploy on server, test on server, rince and repeat in case of error. This worked for a while but lately as the code has gotten more complex and it does a lot of pre-caching on startup, I've been longing for a locally deployed test version again. ## The

Sorry, sharing is not available as a feature in your browser.

You can share the link to the page if you want!

URL