Convert text to an image with Javascript and HTML5

Hello! Working with frameworks like Django and with CMS’ like Drupal and WordPress we come across a wide variety of requirements for manipulating, sanitizing and importing data from all different sources and formats. Recently we had the requirement to take a text field that was defined in a Django model and convert that text string to an image. There are many reasons for this type of requirement. You could argue that this requirement would be the first (of many) steps towards implementing your own custom captcha solution. Well we did some research and found some solutions out there and implemented it our self in Django and we thought we’d share here as well! I’ll go through each of the components necessary to implement this. This type of implementation can very easily be integrated into WordPress or Drupal through a custom module or custom plugin or function perhaps. Additionally you can […]

Brand new company site : shift8 + django

Hello! We have recently completely re-vamped our company website : www.shift8web.ca. We have decided to move away from a conventional CMS and towards a web framework called django. Some of the challenges encountered were from a systems administration perspective (nginx + varnish + php-fpm). Other challenges faced were migrating all our content / data into a completely different CMS than what we were used to. Django provides many advantages, namely being a very versatile, customizable, scalable and robust web framework. We created a static html template, integrated the content models and tweaked it until we were happy. I’ll break down the aspects from a high level to give a brief overview of whats involved in transitioning to django models We defined models for as much of the website as possible. Models in django are where you define your dynamically changing data (such as a page title). You can define how […]