Syntax Highlighting in Drupal
Syntax highlighting improves the readability of the code.There are multiple ways to add this feature to Drupal, so there is no excuse to mistreat your readers. Let's go through some solutions for...
View ArticleQR Codes on the fly with JavaScript
Let's go through some steps to create dynamically a QR Code of the current URL a user is visiting.I will use the Google API to generate the QR code, and then (optionally) Google Analytics to track the...
View Article"Time ago" date format in Drupal
The time ago format it's known as fuzzy timestamp, and they were popularized some years ago specially by Facebook and Twitter.At first you may think PHP could do this work, and even Drupal has a core...
View ArticleJavaScript defined by the ECMA-262
There is a lot of JavaScript articles teaching the basics of JavaScript and its prototype-based inheritance, but many of them result confusing. Surprisingly, I found much better explained and easier to...
View ArticleJavascriptocalypse
What is happening? How is possible jQuery is overtaking JavaScript in Google popularity ? The world will now implode on itself ?Look this chart: Do you want a close-up? Yes you do. This is a chart of...
View ArticleDrupalCon Munich highlights and Backbone.js
I landed in Munich, jumped in the first cab I saw and I started to talk with the friendly Turkish taxi driver that had a rusty English. After some laughs I told him that was my first time in Munich,...
View ArticleDebounce and Throttle: a visual explanation
For people that knows alrady some JavaScript, I recommend this book about Functional JavaScript, to get more familiar with concepts in underscore.js and lodash.js Debounce and throttle are two concepts...
View Article