Xhprof + PHP5.4 + Ubuntu + Chamilo 1.10dev

(Read the update below before starting to copy-paste) To install Xhprof on PHP5.4 on Ubuntu (assuming you've already got PHP5.4 from Andrej or somewhere safe) in order to measure the load of Chamilo 1.10 dev (you need to have a mercurial clone, otherwise the "tests" directory will not exist), follow this procedure (all lines prefixed with # are comments):
cd /tmp
sudo apt-get install php5-dev php-pear
pecl bundle xhprof
cd xhprof
# Here you will have to apply the patch mentioned here: https://bugs.php.net/bug.php?id=61674 to your extension/xhprof.c file (otherwise it won't compile

Migrating from Redmine 1 to Redmine 2.1.0 on Debian Squeeze

This is a draft (but unlikely to be improved quickly, so published just in case it might help someone out there). First: see previous post to install Redmine 2.1.0 (just don't execute the second half of data filling and stuff: http://beeznest.wordpress.com/2012/09/20/installing-redmine-2-1-on-debian-squeeze-with-apache-modpassenger/ Second: get inspiration from the upgrade guide here: http://www.redmine

Installing Redmine 2.1 on Debian Squeeze with Apache modPassenger

This article is co-authored by Jérôme Warnier, from work mostly done by him with my occasional support. Kudos go to him. We couldn't find any valuable manual to install Redmine 2.1 on Debian Squeeze, and we sure met a lot of resistance along the way, so we came up with the following step-by-step guide...

Sources of inspiration

We used the following resources as a starting point.

Drupal 7 + HTTPS + Nginx + Varnish + Apache + Boost + APC + Securepages + Drupal

If you happen to develop large sites in Drupal, you might fall upon a case like this one, where different servers (namely at least one reverse proxy and one web server) interact, causing a series of chain reactions every time you change something. It might be frustrating, at times, to try and boost a coordinated system like this, and end up getting your users frustrated because part of it doen't work, when the rest (the part that *does* work) is super-fast.

Firefox 15 PDF Reader preview

In Ubuntu, the shipped Firefox 15 comes with the new embedded HTML5 PDF reader disabled. It is easy to enable though. Go to "about:config", search on "pdf" and switch the "pdfjs.disabled" entry to "false". Restart Firefox and test it pointing to some PDF URL. In case it does not work, have a look at the "Portable Document Format (PDF)" type to action association in "Edit->Preferences->Applications" and set it to the internal Firefox preview.

What HTTP headers do browsers send on CTRL+F5?

If you've been into website development, and in particular website optimization, you probably have stumbled upon that question at least once: what HTTP headers do the different browsers send when the user presses F5 or (even better) CTRL+F5, to make the web server bypass the cache system? Well, the user "some" on Stackoverflow answered that in a very complete way here: http://stackoverflow.com/questions/385367/wha