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
Category:code
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?
firsts – programming
I realized earlier this week that it’s been 19 years since I first started programming. Not my first exposure to computing, which was in about 1986 on my aunt’s Mac 512 .. but still a long time ago 🙂 My aunt gave me a Tandy 102 laptop that had a whole walloping 21446 bytes of …
Continue reading firsts – programming
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.
shell scripting
I’ve been playing around with bash scripting quite a bit recently in relation to my current job. Came up with one that’s really useful (imho) around chkconfig: # mass set all services known to chkconfig to be `on` or `off` at given level # written by warren myers – warren@warrenmyers.com # 28 sep 2009 echo …
Continue reading shell scripting
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
gold medallion
While certainly not as exciting as Tarus’ achievement, I did just roll to Gold status with Delta – and had I never cashed-in flier miles in the past, I’d be sitting in the neighborhood of 250k instead of 150. So yes, like him I’m in that group that everybody else hates – the folks who …
Continue reading gold medallion