Category: Howto

  • CakePHP: Simple Google Analytics integration

    The easiest way to integrate Google Analytics’ JavaScript tracking code in your cake application is to add Google’s code snippet in the file app/views/default.ctp. To be a little more flexible you can store the tracker code in the application’s configuration file (/app/config/core.php). Moreover you can define a CakePHP (view) element that can be reused in […]

  • ActionScript 2: Create dynamic FLVPlaybacks with attachMovie

    There is a simple way in ActionScript 2 to dynamically create instances of the FLVPlayback component: Put the FLVPlayback component into your library (you can drag’n’drop the component from the components window into the library). Use the following two lines of code to attach the FLVPlayback to a MovieClip (_root in the simple example) and […]

  • Ubuntu: Fix slow ssh logins

    Slow SSH logins could be caused by DNS lookup on the server side. If it takes (too) long time to be prompted for a password the option UseDNS could by a solution (as suggested in the OpenSSH FAQ). On Ubuntu edit the file /etc/ssh/sshd_config and add the following line: UseDNS no Restart the SSH daemon […]

  • Feeds & IMAP: Feed2Imap aggregates feeds into IMAP folders

    Introduction Using the Internet Message Access Protocol (IMAP) for your email account(s) enables you to get an always up-to-date view of your inbox: You can use different mail clients (on different machines) to access your mails and all mails are stored on a server which makes restoring your mails very easy in case of the […]

  • Apache’s mod_rewrite & mod_proxy: Use “Reverse Proxy Request Headers” for rewrite rules

    Imagine the following scenario: The URL to your site is (hosted in a low-priced web package that only supports reroutings to other URLs). The “internal” URL to your site is (e.g. an DynDNS-URL to your home server). The hoster of uses apache’s mod_proxy that acts in a reverse proxy mode to redirect […]

  • Ubuntu 9.10: Setup APC for PHP5 and Apache2

    Update 2010-09-25: There is a new blog post (“Ubuntu 10.04: Setup APC for PHP 5.3 and Apache2”) for Ubuntu 10.04. To set up the Alternative PHP Cache (APC) just follow the instructions below: Install the required packages: # sudo apt-get install php-pear php5-dev apache2-threaded-dev Install APC: # sudo pecl install apc Create file /etc/php5/conf.d/apc.ini with […]