Tag Archives: python

How Python Decorators Work

The more I use StackOverflow the more I love it. Its rammed full of gems like this: Understanding Python Decorators. In answer to a users question about how decorators work, e-satis has gone way beyond the call of duty and written a full blown tutorial complete with exercises. Its by far the best explanation of [...]

History of Python – Guido van Rossum

Here’s a video of Guido giving a talk on the history and philosophy of Python. Total length: 1hr:50m.

PyQuery – Bringing jQuery Syntax to Python

If BeautifulSoup has ever felt unwieldily or you’ve looked upon Ruby’s NokoGiri with envy then you may find this funky Python library interesting. PyQuery brings jQuery selector syntax to Python. If you’re already familiar with jQuery selectors you’ll be right at home. Even if you don’t its easy enough to pick up. Here’s a quick [...]

Finally – A Python HTTP Lib that’s as nice as…

…Ruby. One thing I envy in Ruby is the simplicity of so many of their libraries – both core and 3rd party. Python’s urllib2 never really felt natural but here is a solution. Requests: “HTTP for humans”. An example will do it justice: r = requests.get(‘http://www.straw-dogs.co.uk’) r.content Wow – clean, simple and quick. Add to [...]

Halloween Python

Seems fitting for today. Credit to rkem’s wife via Reddit.

Macs Make Terrible Development Platforms

Mac’s are not a panacea for programming/web development. There! I said it. I feel like an alcoholic finally admitting he has a problem. So desperate to cling to the ideal that Macs make the perfect development machines but I was kidding myself all along. As a web developer/coder I used Windows and Linux (mainly Debian, [...]

Python: Beginner to Expert

This was lifted mainly from a Stack Overflow thread which I discovered from one of my favourite sites: Reddit /r/python. It details a few paths people can take to go form Python beginner to expert. Its one of the most insightful answers/postings I’ve come across on SO. Here’s the summary – link at the end: [...]

Tabs vs. Spaces

Every time I’ve seen one of these “vs” posts its gone into great length about the philosophy behind such and such.  You’ll never convince someone based on ‘religious argument’. So I’m going to take a different approach here and state who does what and hopefully the weight of ‘who does what’ will make the point [...]

Python’s Beards and Ruby’s ‘Cool’ Guys

I was having a chat on the MicroSoft Networks fancy comms protocol. Aka: MSN. Along came someone with an opinion. As is customary I shot it down with wild abandon!! The quickie backstory: I suggested Python is better than Ruby. They argued using two example pictures – see below. Rubyists I Said: The Ruby pic: [...]

Excellent Apache Log Analyser & Monitor

I’ve been looking up hill and down dale for a good (Python-based – fanboy!! Woo!!) log analyser and monitor for Apache. It looks like I’ve found one – and awesome it is too! wtop is by far the best I’ve come across of the options available and I’m not just saying that because its Python [...]