Category: Coding
-
Web fonts and dynamic height calculation issues on jQuery
Recently we’ve nice fonts on web pages like Google Fonts and other web fonts. Take this case, you have to set two divs to the same height. One (div.funny) has some text with Google Fonts, the other is empty. On Chrome console you type something like: Div.very and div.funny are now at the same height. […]
-
Create nice unicode PDF using Python
Today I started one of the less motivating activities in Python 2.x: encoding. In Python 3 unicode will be everywhere, but as of the 2.6 version I’ve on one of the server I have to endure. Objective: get data from a UTF-8 encoded json and print a nice PDF. Tools: json, urllib2, fpdf, cgi What […]
-
Unified login in Django and Drupal
I’m working on a project that has two hearts: a Django for a custom CRM with thousands of imported users, and Drupal, where those users should login. This howto apply on: Drupal 7.x (slave) Django 1.5 (master) There are many single/centralized sign-on solutions around, like OpenID, OAuth CAS and external services like SecurePass to do the […]
-
Django development on Virtualbox: step by step setup
I had a bad morning trying to repair my Cygwin installation from a virtualenv mess. It’s time to get a Debian and install it on a Virtualbox for my new django project! Windows: host Debian: guest Choosing the distro: what I want Python 2.6 Django 1.4 Apache + Mysql I’m a Debian fan from years […]
-
Joomla Webform alternative: JForms
I don’t use Joomla, but sometimes a friend or a colleague of mine ask me some tips. My answer could be: in Drupal it will take 5 minutes. Since I’m very open-minded, today instead of replying in that awkward way I try to found an alternative to a very useful module for Drupal called Webform. […]