Articles

Advertisement Talescape
08.03.2017

Automated Drupal Updates using Drush

Drupal updates can be a real pain. Either the update path from one of the modules is broken, you need to reapply a patch for a bug, which still isn't fixed or something else goes wrong. In seven years of Drupal development I basically had it all and I grew so accustomed to it, that I started to do updates one module after another. I also create a separate commit for every single updated module. This way I can revert the update immediately, if something goes wrong. Luckily I found a way to automate this process.

03.03.2017

Use MAMP's PHP Version in Terminal

MAMP is a commercial server stack developed and sold by appsolute. On Mac OS its pretty much the best LAMP stack you can find. MAMP comes as a free version with limited functionality and a fee-based version (MAMP PRO). In MAMP PRO you have some additional features. For example you can easily change the used PHP version and you can also use this PHP version in the Terminal. But with a little script I wrote, this can also be accomplished with the free version.

09.02.2016

jQuery Teamspeak 3 Status

Things you should never do: Creating a PHP script which connects to a different server, to retrieve some information and display it on your website. And you should most certainly not do this on every single page request, without even caching the results. Recently I have been asked to help my brother with a module he downloaded, which did exactly this. So I created this jQuery Plugin instead.

25.06.2015

Drupal: Insert PHP

Drupal's PHP filter enables users to use raw PHP code in text fields. While this is an extremely powerful ability, it quickly leads to serious security issues. Users with the ability to insert PHP code into your site, can practically do anything they want with your site. Also the PHP code is stored in the database and lives outside of your normal workflow. My Insert PHP module tries to fix the limitations of the PHP filter and provides a safer way to include raw PHP in your Drupal site.

28.02.2014

Setting up the Alternative PHP Cache on Ubuntu

As some of you might know, PHP scripts are compiled to bytecode right before they are executed. This process costs time and server resources. Also this is done all over again every single time your script gets executed, even if your script hasn't been changed in years. So what could be more obvious than caching the results of the compilation to reduce load on your server. Today I want to show you one way of achieving this, with a little help from the Alternative PHP Cache (APC).

21.02.2014

Protect Folders and Files using .htaccess

Not all folders and files in your webfolder should be accessible to anyone. Configuration or debug informations should be kept secret. Also it can be pretty annoying if crawlers keep ignoring the rules from your robots.txt and just index and list all files they find. In this article I will explain to you how you can restrict access to files and folders.

10.02.2014

Google PageSpeed
Installation on Ubuntu

Since 2011 Google provides an Apache module called Google PageSpeed. This module has some nice features, which can reduce the load time of your website significantly. In this article I want to show you how to install PageSpeed on Ubuntu, give you an example of a configuration and some tips, which may help you get going.

20.01.2014

Drupal: Maintenance Node

Drupal has somewhat limited options, when it comes to displaying information during site maintenance. By default admins may enter a simple maintenance message. Most of the times this is just enough, but sometimes you want to be able to make the maintenance page look more appealing. For this reason I developed a Maintenance Node module.

15.01.2014

RPG Creator Battles Revisited

I can't help it. Every once in a while the RPG Creator pops up in my head and I need to work on it a little. Sooner or later I get distracted by something else, but most of the times I actually make a few steps towards completion. This time I revisited the battle script and turned it into a class.

23.06.2013

Capslock Detection via JavaScript

DO YOU KNOW THAT FEELING? YOU JUST TYPED IN YOUR USER CREDENTIALS AND INSTEAD OF LOGGING IN, YOU JUST GET AN ERROR MESSAGE. YOU WONDER IF YOU HAD A TYPO AND THAN YOU REALIZE THAT THIS RELICT OF ANCIENT TIMES SCREWED YOU OVER AGAIN... CAPS LOCK. To prevent this from happening to your users you can provide a little hint to your login forms. This article tells you how to do this in JavaScript, with and without jQuery.

16.06.2013

jQuery Github Widget
Easy Repository Inclusion

In search of a widget that could display Github repositories, I had to realize that Github itself does not provide something like that. After a little bit of googling around I finally found a nice piece of software by New Media Campaigns. Today I want to show you how to add this plugin to your website.

02.06.2013

jQuery Dice

Don't look at me like that. I know what you're thinking... "Seriously a dice game? How creative. How do you come up with all those new ideas?" Yeah, I know. It might not be the holy grail of game development. But I was bored and I had nothing better to do. So here it comes. Yet another jQuery Dice game the world hasn't been waiting for.