Note to self

If you want to chroot a sftp-user to the home dir, then you must do a “chmod 701 ..” while in the home dir.

Or else these two guides won’t do any good at all!!

http://www.serverubuntu.it/SFTP-chroot

http://www.cyberciti.biz/tips/vsftp-chroot-users-limit-to-only-their-home-directory.html

Bioshock Infinite

bioshock

In approx 10 hours! :)

How to determine which row a function was called from in PHP

Here it helps me to determine exactly where an MySQL error has occured.
Really helpful when having several thousands lines of code in each file.

    private function sqlerror()
    {
        $debug = debug_backtrace();
        return "<pre>" . $debug[1]['file'] . "\nRow: " . $debug[1]['line'] . "\n\n" . mysql_error() . "</pre>";
    }