Sunday, October 23, 2011

Sending mail through gmail using Python

The more I use Python the more I like it. Thanks to its immense user base there are libraries available to do practically anything you can think of. For instance, the following very simple code snippet sends mail using an existing gmail account:

import smtplib

fromA = 'your_account@gmail.com'
to = raw_input("Destination Mail: ")

username="your_account@gmail.com"
password=raw_input("Introduce your password: ")

msg="Subject: Test Subject\n\n"
msg=msg+raw_input("Message: ")
server=smtplib.SMTP("smtp.gmail.com:587")
server.starttls()
server.login(username,password)
server.sendmail(fromA,to,msg)
server.quit()

AI applets

I am following the online Introduction to AI course provided by Stanford University. At the moment we are "playing" with Bayesian Networks, a very interesting and powerful probabilistic tool.

I have found a very interesting set of applets that let you play with different concepts related to AI, including Bayesian Networks:


Enjoy the ride!!!

Running pictures collection


Thursday, October 13, 2011

R.I.P. Dennis Ritchie

http://cm.bell-labs.com/who/dmr/



There are may kinds geniuses but I praise those who make visionary's visions possible. We need more engineers and scientists like Dennis Ritchie to make the world a better place for everyone.

Friday, October 07, 2011

Online Audio Converter

I needed to convert a wav file to mp3 format, to upload a test to my myspace, and my brand new linux distro does not have any mp3 encoder. No problem, in this era of cloud computing there is a service to convert audio files online:


Good stuff!!!

Sunday, October 02, 2011

Galway Bay Half Marathon 2011 Video

Look carefully, I am in the middle of the image in the second 47


Saturday, October 01, 2011

Galway Bay Half Marathon 2011 Results

Not bad at all, considering that I didn't do any specific preparation:

1:39:11

This is my second best time ever, so I am delighted. I would have been happy with a 1:45:00, so 6 minutes faster means a lot to me :)