Envelopes is a tiny library I wrote to make working with Python's email and smptlib packages simple and fun.
The other day I was tasked with adding tagging functionality to one of the projects I'm working on. While this is quite basic functionality it comes with a few challenges - from properly configuring relations in the DB and the ORM, through properly handling operations on tags to properly handling connections between tags and tagged entities.
Announcing BTHLabs 2.0!
tune-control is a tiny command line program for Mac OS X that makes controlling iTunes or Spotify from shell a walk in a park. I wrote it because I often find myself working remotely on my MacBook and I need a way to control Spotify without physical access to the machine.
How often do you need to limit access to a Web app to few people? Very often, right? Sometimes it doesn't make sense to implement full-blown users management and authorization. All you need is login and password prompt and credentials storage for a few people. I faced the same problem in an ongoing pet project of mine and decided to go with basic HTTP auth with a plain old htpasswd file storing user credentials.
I'm cooking something special, here in my lab. One of things the project requires is generating random and totally fake users, complete with e-mail address, username and other details. Some time ago I've used Forgery Ruby gem to generate such data and it worked quite well. So, I thought I'd port it to Python. A few hours later, here it is.
One of my last tasks before leaving Weeby was to release StatusBoard on GitHub. I was very happy to see the app being open-sourced as I had a lot of fun (and did some magic) during its development and wanted to use it outside the company. For more info please see the app's GithHub page.
I was asked by one of fellow devs why I use accessors for instance vars in Python. Because I'm used to accessors after coding in Ruby and Objective-C, I replied and went with my own business. But today a post by Dropbox about optimizing Python code popped into my head. It states that Python function calls are slow. I coded a small snippet to see how accessors perform compared to just accessing an instance variable. Here it is: