Simulador de factura de la luz

Googleando por ahí me he encontrado que la CNMC tiene un simulador de facturas y me he puesto a jugar con él.
La última factura que tengo del año pasado tiene es del 28 de octubre al 28 de diciembre, con un consumo de 231kWh. La potencia me la bajé el año pasado para ahorrar algo, de 4.4kW a 3.45kW.
Creo que tengo contador inteligente ya instalaado, pero como no he sido capaz de conseguir el fichero que me piden, he hecho la simulación con el contador tradicional.

Se desglosa así:
  • Potencia: 25.53€
  • Consumo: 31.24€
  • Impuestos: 2.90€
  • Contador: 1.08€
  • IVA: 12.76€
  • TOTAL: 73.51€
Según la calculadora, con la tarifa último recurso y sin cambiar de potencia:
  • Potencia: 24.24€
  • Consumo: 28.34€
  • Impuestos: 2.69€
  • Contador: 1.08€
  • IVA: 11.83€
  • TOTAL: 68.18€
Bajando la potencia a 2.3kW sin tarifa social se queda en:
  • Potencia: 16.16€
  • Consumo: 28.34€
  • Impuestos: 2.28€
  • Contador: 1.08€
  • IVA: 10.05€
  • TOTAL: 57.91€
Con la potencia de 2.3kW y la tarifa social se queda en:
  • Potencia: 16.16€
  • Consumo: 28.34€
  • Impuestos: 1.71€
  • Contador: 1.08€
  • IVA: 7.60€
  • TOTAL: 43.77€
Total, que si me bajo a 2.3kW me ahorro 30€ por factura!! Pero vamos, que aunque solo fuera la mitad, ya es bastante dinero al año...

International calling country codes

Today I needed a list of calling country codes identified by their ISO 3166-1 alpha-2 code. You can find some lists with the country name but not the ISO code, so I made mi own list based on the information available in the PhoneNumberMetaData.xml from Google's libphonenumber library.

International calling country codes

Enjoy!

Unable to load the SpatiaLite library extension "libspatialite.so.7"

Working with Django and Spatialite? If you updated recently to the last ubuntu version (15.10) and you're getting this error or similar:
Unable to load the SpatiaLite library extension "libspatialite.so.7" because: /usr/lib/x86_64-linux-gnu/libspatialite.so.7: undefined symbol: sqlite3_spatialite_init
You can fix it adding this line to your settings.py file:
SPATIALITE_LIBRARY_PATH = 'mod_spatialite' 
... and installing the package libsqlite3-mod-spatialte
sudo apt-get install libsqlite3-mod-spatialite 

Inspiration by https://lists.debian.org/debian-gis/2015/09/msg00000.html