Detecting similar news

I was faced with an interview question recently that sounded like a nice puzzle to play with. If my memory's right, the question was something of the following: You are a teacher, your students have been given the task to write a paper of a 1000 words on a subject…

Building a simple crawler

Well, turns out for one of my articles I need data from a couple websites. I could have copy/pasta the content of those websites but I guess it was also the occasion to write my own little crawler. I won't go too complex though and this thing might as…

Flask-SQLAlchemy Caching

As my career evolves, I'm dealing more and more with restful APIs. While endpoint caching made a lot of sense when rendering rich Jinja templates output, (and still does for API) it is not as efficient when your client queries your objects database one by one and through listings. Object…

Micro ajax library

I've been spending couple of months now building static pages interacting with SodaHead's API for some of our partners (ESPN, Fox...) and I'm always looking to shorten the amount of code on the page. The following is a cross browser compatible micro Ajax library (handeling GET/POST/DELETE...) in just…

Palindrome

We've been recently going through a recruiting process at work and my colleague came up with this simple exercise to see how a candidate organizes his development: Write a function that returns true when it's passed a palindrome. To me in coding there is two ways to look at problems…

JavaScript i18n

As SodaHead extended over the ocean and opened a new website in germany we were faced with a massive translation integration. We are using Jinja2 on the backend, i18n is part of the batteries. JavaScript on the other side, doesn't provide anything to handle i18n so I had to come…