CakePHP 2.7 – Download file via Media View (c&p example)

A common task in every application can be the download of a file. CakePHP gives us some nice possibilities to do this, and I will show one of them here as a copy & paste example. The code public function download($filename = null) { // define the folder where the file is located $folder =…




Let’s encrypt free SSL – HowTo for vServer (apache2)

We all know that SSL is a very important feature these days. But SSL-certificates can be expensive, escpecially if you have plenty of domains to secure. To make things a lot easier, the Let’s encrypt Project is starting their service as a certificate authority (CA) to give out SSL-certificates – for FREE! Please note that…




Javascript & browser back – Quick solution

You developed your new killer-app and made it responsive, so your users can use desktops, tablets or even smartphones to use it. Everything works well, and since Bootstrap and similar CSS frameworks evolved, it’s fairly easy to control the view depending on the given viewport. But if you run your app as a combination of…



Markdown in seconds – Meet dillinger.io

Writing (and styling!) a wiki can be a massive pain in the a**. You need to edit your sections over and over again so your texts and code-snippets look nearly acceptable, and you loose so much time. At a several point you will get so angry that you might need some new hardware (keyboard, monitor,…




VestaCP /Amazon SES / Firewall – Open outgoing connections for SMTP

When dealing with a VPS, most people prefer a nice GUI-based system to control and manage their machine. VestaCP is a good tool for this, as you can install it in no time and manage all you need for hosting websites and other services like email, database and so on. When utilizing other services with…




phpMyAdmin – Maximum execution time

phpMyadmin (pma) can become quite handy when you set it up right. It is a fast way to check on the current layout and content of your database(s), and it it’s installed in seconds. When importing large amounts of data, it can run into a really detailed error 500 – Internal server error So you…




Apache/PHP – maximum execution time of scripts

Normally scripts on a webserver need to run as fast as possible. A website that needs more than 1 second to load is a perfect why to drinve your visitors crazy. However, there might be situations in which a longer runtime is required. Exmaples for this could be a data-migration, a synchronisation with other services…




Quick Tip – Recursively delete specifics files

So you have a problem: A service like iTunes or a bad software (like Windows) flooded your harddrive(s) with those nagging little files like .AppleDouble, .DS_STORE or thumbs.db. Personally, I hate those files and like to keep my folders clean, so I needed a solution to get rid of them with just one command from…




MySQL – Activate the query cache

We all have been in this sweet situation: The project is growing fast, a lot of code was added and the database gets bigger every day. Suddenly you notice a remarkable drop of request times – your database takes ages to return query-results. BUT there might be a fast & easy option for you to…




Redmine 2.5 – Setup email notifications

So you managed to install redmine and got it up and running – congratulations! Now would be a good moment to also activate the email-notifications of redmine, so you get informed when new comments, issues or wiki-entries have been made. And the most important thing is: this will only take about 2 minutes and it’s…