Open Source, Packages, GitHub - Welcome to the 21st century

GitHubI'm in the process of turning most of my projects into open Source projects using GitHub, mainly because the company I'm working for finally started developing new projects as modular packages which brought back the fun into my everyday work as a web application developer.

Before, we had to implement all new features within a legacy code base which feels like it dates back to a time where dinosaurs where still around and which imposed strict limits on what could be done without becoming imcompatible to that code base. Combined with having to use an antique versioning system named CVS, I couldn't stand creating software in my free time anymore.


Enable "Media device (MTP)" USB mode on Android 4.4 (KitKat) and 5.0 (Lollipop)

"Media Device (MTP)" mode notificationSince I only wanted to charge my new Nexus 5 at work rather than having my phone content exposed to company hardware, I disabled "Media device (MTP)" USB mode there. This is actually easy since there is a shortcut in the notifications which let's you do just that.

The tricky part is to turn that back on when you are back home and want to connect your KitKat phone to your private computer. The system won't find the phone unless "USB computer connection" on your Android is either set to "Media device (MTP)" or "Camera (PTP)". The notifiction which used to be there in MTP mode is gone so there is no shortcut to get back to that setting.


How to find software bugs

BugsI'm really not trying to find bugs in software but for some reason, I keep finding them.

By now, I figured out some rules which seem to make it much more likely to find bugs in software even though it is marked as being stable or production ready:


Apache 2, referer spam and .htaccess "deny from" statements

Referer SpamReferer spam seems to be a huge problem nowadays, especially when you'd like to know where your blog visitors are coming from. If you have thousands of fake referrer strings in your logs, you might get the idea that there must be a way to keep the most common spam patterns out of your log files.

Luckily, there is one, but it might have security implications as I'll explain here.


Subscribe to RSS
served by