Creating a new branch in Mercurial
A really good guide on branching is available here: http://stevelosh.com/blog/2009/08/a-guide-to-branching-in-mercurial/ In my case, I wanted to branch a previous version of my code to launch a...
View ArticleMozilla-specific CSS-hacks
Just two valuable links to information about how to avoid other browsers taking into account Mozilla-specific hacks: https://developer.mozilla.org/en/CSS_Reference/Mozilla_Extensions...
View ArticleManaging web colors
For one of our developments, Julio found an interesting JQuery library which allows you to change colours on the fly, find the other colours on a colour wheel, “summing up” colours (make yellow + blue...
View ArticleXhprof + PHP5.4 + Ubuntu + Chamilo 1.10dev
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...
View ArticleScreenshots of your website in many browsers
If you need to know what your website looks like in a browser that you don’t have available (for ethical, financial or other reasons), you can test you website (if public) using...
View ArticleDetect syntax errors in multiple PHP files with xargs
With the Command Line Interpreter for PHP (most of the time called php-cli or php5-cli), you can check if one single file contains syntax errors by simply calling php5 -l file.php The problem with that...
View ArticlePHP’s call_user_func_array() is slow
I just solved an issue that had me waking up in the middle of the night for weeks (just pushing it a bit) and I have to thank PHP’s community and in particular a guy named Brad Proctor for writing a...
View ArticleVideoconferencia nativa en el navegador con WebRTC
WebRTC (Comunicaciones en Tiempo Real para la Web) está madurando muy rápido. Para los muy interesados y algo pacientes, este vídeo de Google I/O 2012 les interesará un montón! Para los que, como...
View ArticleDatabase schema for Chamilo 1.9.4
A lot of people have been asking for a database schema of Chamilo 1.9. Here it is. The editable format can be found in the documents for Chamilo LMS: http://support.chamilo.org/documents/57 Chamilo LMS...
View ArticleBeezNest fixes new Chamilo security flaws in 48h
Secunia gave the Chamilo Security team full details of three security flaws detected in version 1.9.4 on Monday the 4th of March 2013. These flaws were detected by Fernando Muñoz, a regular contact for...
View ArticleGreat VIM regexp tutorial
Just a (great) reference: http://vimregex.com/ Read it = love it! Filed under: Development, Documentation, English, Free software, GNU/Linux, Techie Tagged: regexp, vim
View ArticlePHP’s @ hurts performance
Did you know…? As a “take away” information taken from this post https://gist.github.com/nikic/6699370 (by famous PHP core developer @nikita_ppv), it appears like the @ sign in PHP (used to “hide”...
View ArticleOn PHP and cache slams and solutions
While reading about Doctrine’s cache mechanism (which applies to other stuff than database queries, by the way), my eye was caught by a little message at the end (last section) about cache slams. I...
View ArticleCreating multiple forks using upstream branches
Working with Git is… complex. It’s not that it’s from another world, and the complexity is probably worth it considering the crazy things it allows you to do, but sometimes it’s just mind-bloggingly...
View Articlegem install mysql2 on Debian Wheezy with MariaDB 10
Just in case you would be in this situation (and given the fact I couldn’t find online information about it), if you are ever installing the mysql2 gem on a Debian Wheezy system with MariaDB 10 (I...
View ArticleHow to not write a condition for code readability
Sometimes you find a perl in some code and it might take you a while to understand. In the sessions management code of Chamilo, I found this the other day, then decided to leave it for later because I...
View ArticleUsing Chamilo juju charm to setup a dev environment on Digital Ocean
If you’re in a hurry/on speed, know this: this procedure is slightly more difficult (so longer) than installing the charm on Amazon you can skip directly to “Installing Juju” if you already have juju...
View ArticleUsing php5-memcached to store sessions on distributed servers
This article is an extension of the previous article about storing sessions in Memcached with PHP. Using Memcached for sessions storage is generally a matter of speed (storing them in memory is faster...
View ArticleCrowdin terms review for Chamilo LMS translations
As we migrate to gettext for Chamilo LMS v10, we are also looking for a platform to host our translation system (considering our current translation system does not support gettext). We will migrate...
View ArticleCan’t use function return value in write context
Did you ever develop some nice code, then simply wanted to check if a string was only composed of white spaces or tabs, and used something like this: if (!empty(trim($string))) { ... } …only to get a...
View Article
More Pages to Explore .....