Sometimes you need to use different Erlang versions for different projects. I personally have to use an old R12B-5 for one of my projects, which won’t compile on any of the latest Erlang versions. The question is then: How to switch from one version of Erlang to another one in a simple way? There are no … Continue reading
It happened to me several times to encounter a tedious bug on my iPhone. Suddenly, with no apparent reason, every non native application crashes immediately after the launch. A reboot in this case doesn’t help. The native applications (mail, safari, settings, etc) simply work fine. I’ve just realized that an update of ANY existing application … Continue reading
Have you ever heard about access keys? Well, I did. And I loved them. Your productivity can be so improved when surfing a web page by avoiding to use the mouse and by using shortcuts, instead. The bad thing about access keys is that they’re often hidden, by default, in the web pages. This doesn’t … Continue reading
Imagine that you’re using Emacs and you have a list of items that you would like to convert into a numbered list. We’re going from: first second third To: 1. first 2. second 3. third Obviously, there are many ways to achieve this, but one is to use the Emacs Keyboard Macro Counter. Put the … Continue reading
I always find flymake extremely useful when editing code in Emacs. In this period, I’m working a bit with PHP and I’ve immediately thought that enabling flymake for Emacs was indeed a good idea. Well, someone has apparently already thought about it, so everything you need to know about it is explained here. I tried … Continue reading
Google has just released a series of really interesting tips for Gmail. Some of them look extremely cool: Are you already using the full power of Gmail?
A couple of weeks ago, I decided to use Gmail as SMTP server to send emails from my Joomla website. Here is explained what I did to make everything working. First of all, I edited my configuration.php file to contain the following settings: var $mailer = ‘SMTP Server’; var $mailfrom = ‘MY_GMAIL_ADDRESS’; var $smtpauth = ’1′; … Continue reading
Sometimes you need to recursively set a specific UNIX permission for a whole set of files and/or directories. And you want to have a different permission for your files and for your directories. For example, when installing a CMS like Joomla (or Moodle), you might want to recursively set the UNIX permissions to 700 for … Continue reading
A really simple, still useful tip for php developers. It is possible to execute a php command directly from the command line by doing the following: php -r ‘COMMAND’ For example: php -r ‘echo substr(“hello world”, 6);’ Enjoy!
Name Black Box Also Known As ETS Driven Testing Intent When writing Quickcheck unit tests for an Erlang application, it usually happens that you require to stub some external application, since you’re not interested in System Tests, but you want to test your application as a mere black box. Motivation You want complete control on … Continue reading