• Installing Node.js and npm on a Mac

    Recently, I installed Node.js and npm on my Mac and thought of documenting the steps I followed for future reference, which will be helpful the next time I have to do it. ...read more
  • Installing Ruby on a Mac

    There are already quite a few guides and articles that explain how to install Ruby, so I don’t intend to write just another one. Instead, I’m going to document the steps I followed to install Ruby on my Mac, describe the approach I chose, and summarise the commands I used. These notes are meant to serve as my personal technical reference and to help clarify how the Ruby installation process works. ...read more
  • Migrating my website domain

    I have been using the blog subdomain for this website since I started my blog around 2013 (on Blogger, before I moved to GitHub Pages). I did not want to build something myself for publishing my articles and Blogger gave me the option of using my own custom domain. Since I was already using www on my main website, I decided to go with blog instead. ...read more
  • Lato 2.0 Font Family

    As part of a small redesign on this website, I wanted to use a high-quality and elegant font that also looked good with text in italics and displaying content in bold, but specially when combining both styles, which is something more difficult to find. After doing some research and comparing a few different fonts, I started to use the Lato Google font. However, even though it looked quite good, I was not fully convinced. ...read more
  • PyConES 2019 - A practical DDD approach to Nameko microservices

    Here you can find all the information about the talk that I gave at PyConES 2019 on the 5th of October, 2019: A practical DDD approach to Nameko microservices Slides: PyConES 2019 - A practical DDD approach to Nameko microservices ...read more
  • Nameko Eventlog Dispatcher

    Here at Sohonet, we build our products backend following a microservices architecture. Our services are built using Nameko, a microservices framework for Python that “lets service developers concentrate on application logic and encourages testability”. Nameko encourages the use of dependency injection and provides an easy way of adding dependencies to our services. ...read more
  • PyConES 2015 - Distributed services

    Here you can find all the information about the talk that I gave at PyConES 2015 on the 22nd of November, 2015: Having it All: Distributed services with Django, Boto, and SQS queues Slides: PyConES 2015 - Distributed Services ...read more
  • Unicode strings and bytestrings in Python 2

    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    UnicodeEncodeError: 'ascii' codec can’t encode character u'\u03b1'
    in position 0: ordinal not in range(128)
    
    Does this Python exception look familiar? Most Python developers have seen this at least once. Character sets, encodings, Unicode and all that stuff are hard to deal with until you fully understand what is going on behind the scenes. ...read more
  • Deploying Django with Apache and mod_wsgi

    The aim of this article is to explain how to deploy a Django site with Apache and WSGI on Linux (Ubuntu), considering that neither apache2 nor mod_wsgi have been previously installed in the system. I will use the deployment of my personal website as an example. ...read more