Category Archives: Python
Finding Images with Python
Let’s say we wish to take a directory, the current directory in this example, and gather all the image files. This could be helpful if we were then going to use PIL or Image Magick to manipulate those files, or … Continue reading
Monty Hall Sneak Peak
Coming Soon: Monty Hall game player in Python. For now, here is a little teaser: The 10 billion iteration answer: >>> monty_hall.play(iter=10000000000) Ran 10000000000 iterations in 104833.082781s {‘wins’: 3333340564L, ‘losses’: 6666659436L} The code is hosted, of course, on GitHub and … Continue reading
Python – Dynamically Printing to Single Line of Stdout
It’s that time again; code snippet time. This is a short and sweet bit of a code that has some really practical and powerful implications. When handling large amounts of data processing, it’s often desirable to keep the user informed … Continue reading
Stumpy Updated – v1.4.3
The Mutaku URL shortener, Stumpy, has now been updated to version 1.4.3. You can find out more about Stumpy by clicking the first link in this post to read the initial write up on Mutaku, or you can go to … Continue reading
Uploading Images to imgur with Python
That time again. Code snippet time. UPDATE: See the bottom of the post for the most up-to-date version of the code. Another brief one. We are going to start working on a class to upload images to imgur.com. There are … Continue reading
Python Cookies
Code snippet time again. Today, let’s look at a few simple classes to handle cookies. We will create functionality to deal with some user tracking cookies so please note that these are NOT being used for security or authentication purposes. … Continue reading
Stumpy v1.4.1 – Critical bug fix
Stumpy has been updated to version 1.4.1 to fix a critical bug that was in all previous versions [Thanks, Erik!]. There was an issue with case-sensitivity in short url lookups that is now all patched up. For general information on … Continue reading
Stumpy v1.4 – Grab it now!
Stumpy has been updated to v1.4. UPDATE: v1.4 and prior has a bug in short url lookups. v1.4.1 fixes this bug and should used over previous versions. See post here. There are several fixes here which I will simple highlight … Continue reading
Stumpy is Now Available!
Stumpy has gone v1.0 and is now available on Github. The project is a URL shortener that I originally wrote in Python and have recently rebuilt from scratch to use the Django Python web framework. Now that I’ve reached what I … Continue reading
NeoCartman is LIVE!
After the teaser announcement, NeoCartman is finally live. You can check it out in action, and even participate in the project, at neocartman.com. There is also an ongoing discussion and feedback thread at Neo-Geo.com. If you have any questions or … Continue reading
