-
DIY
DIY 3D Scanner
A friend and I decided to take on the DIY 3D Scanner this weekend. Full instructuions can be found here. Scroll down for videos of the result and photos of ... » Read more
posted on 17 Jan, 2010 to DIY » view comments -
General
First post!
Welcome to my brand new, Django-powered, site. A new attempt at blogging, mostly about Python, with the sole purpose of throwing code and ideas out there for the world to ... » Read more
posted on 25 Nov, 2008 to General » view commentsI can has Spotify invite?
Does anyone have a Spotify beta invite to share with this poor Python programmer? Thanks! Edit: Got one, thanks a million! » Read more
posted on 04 Feb, 2010 to General » view comments -
Internet
-
Javascript
Pythonic Javascript, it's Python with braces!
While coming across the release notes of Javascript 1.7 & 1.8, I noticed Javascript has gained some really Pythonesque features. I'm not saying these features originated from Python, it just ... » Read more
Javascript word clock
I saw this word clock on Gizmodo and loved the idea. It's a 5-minute interval, using written words, clock with a very nice design. Because I don't have the cash ... » Read more
posted on 05 Oct, 2009 to Javascript » view comments -
Project Euler
Project Euler problem 1
To start off the new blogging adventure, i'll post a little bit of code. A bit late to the game, I started doing the Project Euler puzzles. The first one ... » Read more
Project Euler problem 2
Problem 2 gives us the opportunity to play around with 2 nifty features of Python, generators and itertools. Project Euler asks us to find the sum of all the even-valued ... » Read more
Project Euler problem 3
Project Euler asks us to find the largest prime factor of the number 600851475143. The following code is fairly straightforward and probably The Simplest Thing That Could Possibly Work. It's ... » Read more
-
Python
Project Euler problem 1
To start off the new blogging adventure, i'll post a little bit of code. A bit late to the game, I started doing the Project Euler puzzles. The first one ... » Read more
Project Euler problem 2
Problem 2 gives us the opportunity to play around with 2 nifty features of Python, generators and itertools. Project Euler asks us to find the sum of all the even-valued ... » Read more
Simple Python decorator classes
Most examples of creating decorators in python, show a function returning an inline function. If you wanted to initialize the decorator in some way, you'd have to write a function, ... » Read more
posted on 14 Dec, 2008 to Python » view commentsTrying out Python 3 safely on Windows
Just a quick tip. I wanted to try out Python 3 on my Windows machine without messing up my current Python 2.5 installation. Some rumors exist that it will change ... » Read more
posted on 15 Dec, 2008 to Python » view commentsPython extended slice assignment
When you've been using a programming language for a long time, you like to think that syntax-wise, it has no more secrets left for you. Today I was proved wrong ... » Read more
posted on 24 Dec, 2008 to Python » view commentsProject Euler problem 3
Project Euler asks us to find the largest prime factor of the number 600851475143. The following code is fairly straightforward and probably The Simplest Thing That Could Possibly Work. It's ... » Read more
Python trick, sequence reversal
A small Python trick to reverse a a sequence is this: >>> (1,2,3)[::-1] (3, 2, 1) >>> [1,2,3][::-1] [3, 2, 1] >>> 'reversed'[::-1] 'desrever' The neat thing is it works ... » Read more
posted on 29 Dec, 2008 to Python » view commentsPythonic Javascript, it's Python with braces!
While coming across the release notes of Javascript 1.7 & 1.8, I noticed Javascript has gained some really Pythonesque features. I'm not saying these features originated from Python, it just ... » Read more
Python smtplib progress indication
A few days ago I was in wanted to send an email with attachments through Python's smtplib, when I realised there was no way of keeping track of the sending ... » Read more
posted on 21 Oct, 2009 to Python » view commentsPyQt Designer Video Tutorial
While working on an application I'm writing using PyQt, I was surprised by the lack of up-to-date PyQt tutorials showing a real project being created from start to finish. So ... » Read more
Python print performance
Perhaps this is kind of obvious, but I only realized this today: using the print statement in Python can cost you a lot of time! When I'm hacking on a ... » Read more
posted on 13 Feb, 2010 to Python » view commentsObfuscated Python
To entertain & challenge my co-workers, I asked them to figure out what the following Python one-liner did, without taking it apart or executing it in the interpreter. Try it ... » Read more
posted on 08 Dec, 2010 to Python » view comments -
Qt
PyQt Designer Video Tutorial
While working on an application I'm writing using PyQt, I was surprised by the lack of up-to-date PyQt tutorials showing a real project being created from start to finish. So ... » Read more
