In Linux and similar operating systems using chroot is a way to put services and applications in a jail so they can’t access any file in filesystem but the ones contained in a single folder, called “chroot jail” becoming root folder from jailed application’s point of view. Unless compiled specially for this purpose applications in Linux etc. are used to depend on shared libraries. And nearly all of them need access on some special files, such as device nodes. Here is a little script conveniently achieving preparation of a chroot jail for your particular application. Continue reading »
Installing Contao
Contao is a powerful content management system taking little efforts to install on a server. This post is available to describe a way I’m frequently used to set it up on customer sites. It’s basically trying to prevent world-writability to any script, requiring special access to server. If you are trying to install Contao in a webspace provided by a major web hoster it might be as simple as uploading files to server and running install. But if you are running dedicated root server and know your webserver’s user and group it might be an option to try this guide for installing Contao in a more restrictive setup. Continue reading »
The DOM event click is frequently used to have custom action on user clicking selected elements of a web page. This event is available on iPad and iPhone as well, though it’s reacting less instantly as on a desktop computer. This is due to double-tap detection globally implemented in Safari for supporting convenient element zoom feature. After click has been detected as a sequence of touchdown and touchup events Safari/WebKit is waiting some milliseconds for another tap before deciding to pass single touch as a click event. This behaviour is disturbing when you want to support fast interaction, such as in providing numeric on-page pad for entering secret pin. Continue reading »