sending email in python with gmail

A {{Python}} nugget from {{Programming Your Home}} (review) I wanted to share from p97: import smtplib def send_email(subject, message) recipient = ‘your_email_recipient@domain.tld’ gmail_sender = ‘your_gmail_account@gmail.com’ gmail_password = ‘your_gmail_password’ #use tls gmail_smtp = smtplib.SMTP(‘smtp.gmail.com’, 587) gmail_smtp.ehlo() gmail_smtp.starttls() gmail_smtp.ehlo() #login gmail_smtp.login(gmail_send, gmail_password) #message formatting mail_header = ‘To: ‘ + recipient + ‘\n’ + ‘From: ‘ + gmail_sender …
Continue reading sending email in python with gmail

setting up an unreal irc server on centos 6

Ever want to run an IRC server? I recently set one up at irc.datente.com using a Digital Ocean VM running CentOS 6.5 x64. Here’s what I did, if you want to replicate the process for yourself (full documentation available from Unreal’s website): acquire CentOS 6.5 x64 server (as I mentioned, I used Digital Ocean) `yum …
Continue reading setting up an unreal irc server on centos 6

what is the “new” python?

9 years ago, {{Paul Graham}} made a controversial statement: [W]hen you choose a language, you’re also choosing a community. The programmers you’ll be able to hire to work on a {{Java}} project won’t be as smart as the ones you could get to work on a project written in {{Python}}. And the quality of your …
Continue reading what is the “new” python?

the deadly sins of programming – again?

InfoWorld this week published yet another article on “The 7 deadly sins of software development”. For those who don’t care to read the ~1 page article (that’s split unless you use the “print” option that puts it all on one page), here’s the list: Lust – overengineering Gluttony – not refactoring Greed – cross-team competition …
Continue reading the deadly sins of programming – again?

wordpress plugins

I’ve started writing [simple] plugins for WordPress – the blogging tool I use to manage antipaucity.com. As I write more, if I think they’re worth sharing, I’ll write about them here. A full list will also be available at http://antipaucity.com/plugins.

tiny code

I ran across the Tiny Code site recently, and was reminded of how many of us started programming on ancient machines that barely had enough horsepower to handle typing – yet we’d spend hours on end writing little games and whatnot that had to be small or they wouldn’t run. I’d love to see a …
Continue reading tiny code