Testing a Zend Framework 2 application across modules

A typical Zend Framework 2 application is built around modules. Usually these modules contain tests that you execute after introducing changes. Each module can run its own tests, but what if you want to test all your application at once, and obtain a global view of the status of your tests?

Hide server sensitive infromation sent with response headers

I have been using the Chrome Sniffer extension for a while now. It is useful for obtaining information about the software used by web applications. Recently the extension updated and now is showing some sensitive version information of components installed on my server like Apache or PHP...

Disable elements programatically in Moodle forms

The moodle forms library is a wrapper of the PEAR QuickForm library, easy to use and very straightforward. One of the problems I found myself with, while working with this libray, is disabling elements programatically. To do this there is a method called disabledIf() which allows disabling elements based on the state of another element from the form...

Fix 'git push' with ssh keys still requiring password

I have a private git project hosted on both Bitbucket and Github using git remotes. The "first world problem" that I had using this configuration, besides having to push two times, once for the Bitbucket repo, and once for the Github copy, was that although I had setup (correctly, I triple checked) my ssh key on Bitbucket it still asked me for a password on each push...

Fast increase/decrease for numerical values in vim

Vim comes with a useful feature that allows increasing or decreasing a numeric value using keyboard shortcuts. To use it, enter normal mode (press ESC), place the cursor on top of the number (anywhere), and press CTRL+A to increase or CTRL+X to decrease. The increase is made by one unit...

About me

I am a developer working on web and mobile applications. In my spare time I enjoy watching movies and series with my girlfriend, playing videogames and rocking the guitar.


Elsewhere