Over the last few months (and probably for quite a while before then too), a few issues have been raised on the Requests GitHub page asking how to select the version of SSL used by Requests. This is actually simple once you know how, so I thought I’d write a short post to show you […]
New Year’s Python Meme 2012
Via Tarek Ziadé. Right after the break. Here it comes: 1. What’s the coolest Python application, framework or library you have discovered in 2012? A lot of them. Requests by the ever-awesome Kenneth Reitz, for example. 2. What new programming technique did you learn in 2012? Python and Pythonic code is the answer for this […]
Writing A Transport Adapter
Last post I briefly mentioned that Python Requests went v1.0. This involved a huge code refactor and a few changes in the API. One of these changes was the inclusion of something Kenneth (and others) have been thinking about for a while as part of the future of Python HTTP ‘project’. This something is the […]
New Year’s Python Meme 2012
This is my entry for Tarek Ziadé’s New Year’s Python Meme, a tradition I have come to enjoy. Both to reflect on the current year and look back on previous years. So here it is. I did this in 2009 & 2011. Let’s try it again. 1. What’s the coolest Python application, framework or library […]
Not All Opinions Are Equal
This blog post is a reaction to this blog post by David Hansson. If you have the time, I highly recommend reading it. If you don’t, I’ll summarise the most relevant bits as I go. Having Things Your Way David Hansson has recently written a blog post about Rails, and in particular about how Rails […]
PyCon Uruguay 2012
Last November 10th and 11st we enjoyed the first Python Conference in Uruguay. The event was developed by the Python community in Uruguay as a result of the great success of the PyDay that took place in August 2011. In the event participated several speakers from Uruguay, Argentina, Brasil and Denmark with talks ranging from Biopython, Machine Learning to […]
Not Everyone Needs To Be A Rockstar
Getting started in open-source software is intimidating. I know, I’ve been there: it’s always a little scary to have someone you’ve never met before critique your code, particularly if it’s someone whose work you respect and admire. More than that, though, I suspect that at least part of the fear most people (myself included) feel […]
Pycon Canada – the SQLAlchemy Session In Depth
Video is up for my Pycon.ca talk, The SQLAlchemy Session – In Depth. In this talk, I delve into the key philosophies behind the design of SQLAlchemy’s Session system. Starting with a brief review of the ACID model, I contrast the approach of the so-called “active record” pattern to that of the more explicit Session […]
Generating image thumbnails with django-thumbnail-works.
Uploading images to our Django application can be as easy as adding an ImageField to our model. However, ImageField falls short in one key aspect, thumbnails. Usually when uploading images, we want to create smaller versions for them, for using in for example, galleries or previews. This however, has to be done manually using the appropriate imaging […]
Pillow 1-7-8
Pillow is the friendly PIL fork. Initially just a packaging fork, now considering image code bug fixes and Python 3 support. To be friendly, we attempt to track changes against upstream tickets in PIL. Pillow 1.7.8 is out! Read about it here: http://pypi.python.org/pypi/Pillow/1.7.8 Features It’s PIL (Python Imaging Library) It installs on all modern systems […]
Django Hello
Django doesn’t really need a hello world style introduction, its documentation speaks for itself. But this is what “Hello, world!” in Django looks like to me. I hate boilerplate and I love reducing software down to its core components; just enough to start the server. setup.py: from setuptools import setup setup( name=’hello’, ) requirements.txt: Django==1.4.1 […]
Recompile Vim with Python/Ruby Support on Arch Linux
Update 2014-08-21: The vim packages in Arch Linux have been reorganized: https://www.archlinux.org/news/reorganization-of-vim-packages/. The standard vim package should now contain Python support, so the recompile is not necessary anymore. For my vim configuration, I need a version of Vim that was built with Python and Ruby support. Unfortunately, the default version of Vim that is installed […]
Looking For Projects
With pythonpackages.com winding down, I am now actively seeking projects for Q4 2012 and beyond. I am good at: Deploying Plone sites: http://blog.aclark.net/2012/10/03/plone-4-3-alpha-1-in-production/ Maintaining and releasing Python packages: http://pypi.python.org/pypi?%3Aaction=search&term=aclark&submit=search Cat herding volunteers: http://lists.plone.org/pipermail/plone-com/Week-of-Mon-20120903/000039.html Writing documentation: http://docs.pythonpackages.com/en/latest/index.html Writing narrative text: http://www.packtpub.com/plone-33-site-administration/book Writing Python code: https://github.com/aclark4life Also, I’ve put together a list of projects I am involved […]
PythonPackages: One Year Later
We are rolling up on the one year anniversary of pythonpackages.com (in October). This is an exciting milestone (for me at least) because I’ve had a tremendous amount of fun building the site, not to mention how much I learned about GitHub, PyPI, Pyramid, Stripe, Redis, Bootstrap, and more. We are hovering around 200 signups […]
Sorry for the blog spam
Just learning Pelican As I’m just learning Pelican, Dirkjan Ochtman pointed out that I can have “fancy” URLs via the ARTICLE_PERMALINK_STRUCTURE setting. So the blog spam you are seeing is a result of my publishing the same two articles with two different URLs (fancy and non-fancy). My apologies for the noise. publishconf.py And actually, I […]