Category: Tips and Tricks
-
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…
-
Architecting Websites for the HTTP/2 Era
As I’ve written before, HTTP/2 will force us to change many assumptions and re-define good practices. Mattias Genar is trying to keep an up-to-date summary of the most important questions, changes and benchmarks on Architecting Websites For The HTTP/2 Era.
-
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…
-
HTTP2 for front-end developers
HTTP2 is literally a game-changer for the world of web development, so it shouldn’t be a surprise that some of your best established good practices are bound to change. For a good starting point, check HTTP2 for front-end developers
-
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…
-
git doge
https://twitter.com/MarkSchmidty/status/547092134684540930
-
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?
-
Online regex tester and debugger: JavaScript, Python, PHP, and PCRE
Online regex tester and debugger: JavaScript, Python, PHP, and PCRE — regular expressions are among the most powerful skills you can add to your own toolset. Learn by doing with this powerful and didactic tool.
-
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: