Or at least how I’m learning it. Much kudos to http://blog.thoughtram.io.
Continue reading
Ansible and Monit for simple server monitoring and documentation
A month ago a customer asked me to help him with his server monitoring. My first step was to evaluate what servers were running what services, so I turned to the customer’s developers for a list of services per host. Long story short – there wasn’t any kind of server documentation. So a second task emerged: Write a server documentation. Why not kill two birds with one stone? Continue reading
How to fix skewed system times on multiple vagrant instances
I’m having this problem with my local dev ceph cluster where the clocks on all my nodes would get heavily skewed after a while so rather than researching what’s going on here with virtualbox I just hit the problem with the unix hammer. So, were the guest tools installed? I don’t even know nor care.
Virtualbox is usually not my first choice with vagrant but https://github.com/ceph/ceph-ansible didn’t work out of the box with the vmware-fusion provider so I’m sticking with it for now.
GUIDs vs Autoincrement Integer
Found a great article with great links: http://blog.codinghorror.com/primary-keys-ids-versus-guids/
Rails-Sample: http://blog.arkency.com/2014/10/how-to-start-using-uuid-in-activerecord-with-postgresql/
Add a module to nginx on ubuntu the right way
Found a nice tutorial on adding custom modules to nginx without sacrificing the benefits of apt-get install:
https://serversforhackers.com/compiling-third-party-modules-into-nginx
Don’t forget to turn off updates for your self-compiled nginx with: sudo apt-mark hold nginx-full
.
You have to repeat the process for every update.
Boot2docker and inotify
I recently ran into a problem with a compile-on-filesystem-change application on boot2docker. Due to the layered structure of boot2docker (Host->VM->docker) the mechanics required for inotify are not working.
Luckily there exists a solution: https://github.com/brikis98/docker-osx-dev
I use docker-compose – so after installing docker-osx-dev, just run it in the folder containing the docker-compose.yml and docker-osx-dev finds the correct folders to watch.
11.663μs response time
String/Localization handling for iOS and Android
How to handle text localization without going insane?
Every application has those embedded texts: You need to display an error message, have some basic text, etc. When you want to use the same strings for both your iOS and android applications you typically have to do some nice and frustrating copy/pasting.
At least I did.
No more:
Test your UI on Android with Espresso – Damn you, ProgressBar!
When a user opens an app and the initial data gets fetched from the server, a good pattern is to display a ProgressBar.
When I wanted to test the presence of this loading screen, Espresso was causing me some trouble.
Continue reading
Migrate gitlab mysql to omnibus postgres
Migrating gitlab from mysql to postgres using omnibus is rather straight forward, thanks to the magnificent documentation. However, having the benefit of a brain dump helps most of the times. That’s what this post is for. If you went into troubles migrating gitlab, read on.