The most complete localization data you’ll ever need
The Unicode Common Locale Data Repository it’s “the largest and most extensive repository of locale data available”, so it’s pretty much the perfect solution when you need information such as: Currency values, with ISO codes and visualization formats Dates and times patterns, including timezones List of “territories”, countries, continents, etc. with their corresponding languages, currencies…
Backups are simple
… or they should be, anyway. I think that one of the more popular excuses around for not having backups it’s “I haven’t gotten to it”; usually because you don’t have the time to try that fantastic tutorial you found for encrypted-incremental-automatic-deduplicated-control-versioned-backups on Amazon S3. The thing it’s… it’s ok if you don’t have time…
Adding a new panel to the WordPress Debug Bar plugin
You can extend the WordPress Debug Bar plugin adding new custom panels to fit your needs; for instance, showing responses from external APIs or webservices, or for other custom features. That’s an extremely simple example. You can check a more complex and complete one by viewing the source of one of the Debug Bar extender…
Are you boy-scouting your code?
Simple, humble and effective. Whenever you’re reviewing old code, or other people’s code, apply one simple rule: Leave it better than you found it Are you a boy scout?
Troubleshooting gitolite SSH connection issues
We’re all agree that GitHub it’s pretty much the next best thing since sliced bread, but there will be times that we’ll need to host some repositories on our own server, and for that cases Gitolite it’s probably the best tool. There are, however, several issues that you might find when trying to connect or…
Using anonymous functions and closures for user-defined array sorting
Anonymous functions and closures are relatively new in PHP, but they’re extremely welcome. Whenever you need to sort an array with a custom order (that is, with a user-defined comparison function such as usort, uasort or uksort) you can use anonymous functions and closures in an easy and very straight-forward way. For instance: