Personal tools

You are reading the articles stored in Turtle's life

Jan 07, 2015

New Year's Python Meme 2015

Kilroy was here (╯°□°)╯

New Year's Python Meme 2015

Filed Under:

The beginning of the year is the time for the "Python meme". This is the second time I am partecipating to this "game". Let's enjoy the #2015pythonmeme!

Since some years, at the beginning of the year, it is common for Pythonista to answer a short questionnaire. It seems the whole thing is Tarek's fault... :)

What’s the coolest Python application, framework or library you discovered this year?

Probably the coolest library I started using this year is Pathlib. Pathlib allows to easily and sanely manipulate files and folder. This library became part of Python standard library since version 3.4, but is available as an add on even for Python 2.6.

What new programming technique did you learn this year?

read more

Nov 19, 2014

BIG K vs. tiny k - lo staff di RedTurtle evita una tragedia!

Cronaca di un ritorno annunciato...

BIG K vs. tiny k - lo staff di RedTurtle evita una tragedia!

La contemporanea presenza del Dottor K e del suo doppelgänger dOTTOR k è culminata in una furibonda colluttazione prontamente sedata dagli indomiti ragazzi di RedTurtle

Coraggio, generosità, soccorso, aiuto ai più deboli: queste sono le classiche qualità del personale RedTurtle, selezionato anche per la capacità di gestire qualsiasi situazione.

DrK - scene 1

read more

Nov 12, 2014

Scraping cheap airline tickets

Filed Under:

It all started with a bet long time ago. One of my friends couldn't believe that it is actually possible nowadays to travel around the world with low-cost airlines.

Because the term low-cost airline is difficult to define we have agreed that we should bet on something easy to check - like the ticket price per kilometer. After some rough checks the bet was on: travel around the world, flying always in one direction (west or east) for less than €0.03 (3 euro cents) per kilometer (imagine Bologna-New York trip for less than €180).

TL;DR

I think I won. With some python help and many hours of coding I was able to find all the necessary tickets and stay below the price criterion. I have learnt a lot about airlines sales strategy... and something about ant colony optimization algorithm. The trip starts on November 15th, maybe you will meet me in the following months ;-)

Problem

Now the long story. Searching for cheap plane ticket is relatively easy task if you have strict dates and simple route (one or two stops). It starts to be more complicated if you want to stop in 3 places. But what if you have 6 stops or more? None of the existing online tools allows you to make such a query (if you know one - let me know). Things get more fuzzy if you don't have specific dates and just want to travel cheap. Searching manually is not an option: ticket price is likely to change daily and number of possible queries is quite big, I mean really big. Imagine you want to take 5 stops and search with margin of ± 10 days. It gives you 9765625 queries (5^10). Grabbing that data directly from airline database is also not doable. There is no standard approach, most of the small companies have their own system - others use providers that are much too expensive for a single user.

Sooner or later you will start to write a script.

read more

Nov 06, 2014

Bristol Plone Conference 2014: RedTurtle was there for you

from bristol with love

Bristol Plone Conference 2014: RedTurtle was there for you

Filed Under:

If the Plone Conference returns to Bristol after four years, RedTurtle returns to the Plone Conference as every year! This is the detailed report of what happened

Every year the Plone conference is an amazing experience. We have been there to tell you what's going on.

read more

Oct 22, 2014

2014, viaggio a BetterSoftware

BetterSoftware, BetterPeople, BetterLego

2014, viaggio a BetterSoftware

Filed Under:

Giusto una settimana fa ho partecipato a BetterSoftware 2014; ecco le mie impressioni sulle (tante) luci e le (poche) ombre della kermesse fiorentina.

Per il quinto anno consecutivo ho deciso di partecipare a Better Software e il rischio di rivivere l'ennesima edizione uguale a sé stessa era ovviamente dietro l'angolo.

E' successo esattamente il contrario. Già l'anno passato un team di loschi figuri, tra cui @ziobrando, @fullo, @giovannipuliti, @BlackMouseLAB e @spleenteo, hanno ri-pensato l'evento in una chiave ancora più innovativa; quest'anno hanno fatto un ulteriore passo avanti. Il software è assolutamente diventato marginale, si parla di organizzazione e di management, si parla di portare valore, si parla di comprendere le persone.

read more