Code Koala

Article Category: Programming RSS Feed

Python Tip: Conditional Expressions

Posted 23 hours, 38 minutes ago by wheaties
I learned something new today about Python 2.5 and newer. I thought it was so nifty that I decided to write a blog article about it. Hopefully someone out there finds it as interestingly useful as I do.
2 comments | read more...

Miscellaneous Site Updates

Posted 2 days, 6 hours ago by wheaties

I figured I should probably post something since I haven't done so yet this year. I've been making several changes to the site lately. Most of them are pretty subtle, but I hope they're useful to you. Updates include

  • You can now send an article to some friends by clicking on the "envelope" icon in the top-right corner of each article. It's a pretty simple mechanism.

  • You can save any of...

GIT-SVN on Slackware 12.2

Posted 1 week ago by wheaties

With all of the hype that git has been receiving lately, I started playing with it a while back to see if it suited me and my wants/needs. I found it to be an interesting utility. I won't go into any details simply because I'm not really all that knowledgeable about all the ins and outs of version control systems, but I will say that I have decided I like...

0 comments | read more...

Announcing django-smileys 0.1.0-rc1

Posted 3 weeks, 5 days ago by wheaties

I've released yet another absurdly useless application today. With all of my dirty finals lately, I needed something a little more leisurely to think about. I noticed that I put a lot of those funky smiley codes in my articles and whatnot, so I decided to beautify them a little by replacing the codes with emoticon images a la those silly forum sites I used to be crazy about as a kid.

It was...

In PHP's Defense

Posted 4 weeks, 1 day ago by wheaties

So the other day I wrote up an article that sarcastically compared PHP and Python syntax a little. While I am completely serious when I say that I prefer Python's syntax a heck of a lot more than that of PHP, I thought it might be a good thing for me to demonstrate that the code I posted before could have been more appealing had it been thought out a little...

0 comments | read more...
Filed in PHP and Programming

Syntax Highlighting, ReST, Pygments, and Django

Posted 1 month ago by wheaties

Some of you regulars out there may have noticed an interesting change in the presentation of some of my articles: source code highlighting. I've been interested in doing this for quite some time, I just never really got around to implementing it until last night.

I found this implementation process to be a bit more complicatd than I had anticipated. For my own benefit as well as for anyone else who wants to do...

Beautiful, Beautiful Python

Posted 1 month ago by wheaties

Today I was working on a USA ePay payment module for Satchmo. I had access to some work done by another chap, but I wanted to get a better feel for what needed to be happening in the payment module, so I examined some of the stuff that other people had done as well. I studied the "official" PHP version of the payment module...

0 comments | read more...

Announcing django-axes 0.1.1-rc1

Posted 1 month ago by wheaties

I've released a new version of django-axes this morning. This project allows you to keep track of failed login attempts on your Django-powered sites quickly and easily. It pays attention to the built-in login functions for the Django administration utility as well as the stock django.contrib.auth.views.login method. If a particular user fails to login successfully after 3 tries (this number is customizable), a record is made...

0 comments | read more...

Installing Python 3.0 Alongside an Existing Python

Posted 1 month ago by wheaties

With the recent release of Python 3.0 final, I've had a crazy itch that needed to be scratched. That itch, my friends, was to do a write-up of how to install Python 3.0 alongside my existing Python 2.5.2 installation without borking things up. The reason I thought it would be useful is that I'm running a Debian-based distribution of Linux called sidux right now, and neither Python...

7 comments | read more...

django-watermark 0.1.5-pre1

Posted 1 month ago by wheaties

I've been making several updates to django-watermark during my more boring classes the past couple days. I have just released a new version for your pleasure.

Changes include:

  • A lot of code refactoring. There was a lot of logic in the watermark filter itself. I decided this logic should be placed elsewhere so as to make the utils.watermark function easier to use outside the...

django-watermark 0.1.2-pre1

Posted 1 month ago by wheaties

I've added a few updates to django-watermark and figured it was time to announce another release. Updates include:

  • the ability to place watermarks randomly on the target image
  • updated the way relative positioning works. Now, position=50%x50% will center the watermark image on the target image. Previously django-watermark placed the top-left corner of the watermark image in the center of the target image.
  • the ability to convert the watermark...

New Comment Notification by E-mail

Posted 1 month, 1 week ago by wheaties

This little trick certainly isn't anything special. Several other folks have posted about how to have Django send out an e-mail automagically when a new comment has been posted on your site. However, a lot of these other posts seem to be pre-Django 1.0. Some groovy changes took place with the signal system slightly before Django 1.0 was released, so I thought I'd share my method of having Django notify me by...

4 comments | read more...

Adding Captcha To Django's Built-in Comments

Posted 1 month, 1 week ago by wheaties

I recently had a good friend of mine ask for some help in adding a captcha field to his comments form. I gave him some pointers, but before he could put them into action he had to leave for a Thanksgiving roadtrip home. I didn't give much mind to the idea of putting captchas on my own site since it's not all that popular amongst spammers yet. When I woke up this...

Project Release: django-watermark 0.1.0-pre1

Posted 1 month, 1 week ago by wheaties
Django-watermark is a fast way for you to apply watermarks to "any" image on your Django-powered Web site.
0 comments | read more...

ReStructured Text

Posted 1 month, 3 weeks ago by wheaties

I've been working on updating all of my articles to use ReStructured text formatting these past couple of days. Basically ever since I started using Django on my personal sites, I used Textile formatting to make my articles look pretty, and it treated me well. However, I found myself with a few extra minutes to do some research this weekend, and the topic I happened to research was the difference between ReStructured text,...

0 comments | read more...
Filed in Design, Internet, and Programming

Django 1.0.1

Posted 1 month, 3 weeks ago by wheaties

The Django team has once again announced a new release of their absolutely amazing framework. Right on schedule, version 1.0.1 has been made available to the world. This release packs over two hundred fixes over the original Django 1.0 codebase. I'm in the process of upgrading my sites right now!

For more information, see the following links:

Pendulum Screenshots!

Posted 1 month, 3 weeks ago by wheaties
I've posted some screenshots for my django-pendulum application!

Project Release: django-reploc 0.1.0-pre1

Posted 1 month, 4 weeks ago by wheaties

Here's yet another application to help you make your site more useful to your users. django-reploc is a "representative locator" for Django-powered Web sites. It uses the Google Maps API to offer your users an interactive map of your representatives, vendors, friends, houses, etc.

I built this application to be a dealer locator for one of my clients. The application provides a way for you to create "representatives," and each...

Setup a favicon.ico in Django

Posted 2 months ago by wheaties

Up until a couple weeks ago, I had never installed a FavIcon on any of my Django sites. I never really thought about it until one day I enabled the SEND_BROKEN_LINK_EMAILS setting for one of my sites. As soon as I did that, I was able to track down links to broken pages very quickly. It also notified me that I didn't have a favicon.ico file...

Project Release: django-axes 0.1-pre

Posted 2 months ago by wheaties

Ever curious to see information about failed login attempts on your site? This morning I threw together a small, simple Django application that allows you to do just that. I'm calling this project django-axes, which is pronounced as "jango access".

I've only tested it on my own site, so it must still undergo some more in-depth testing before I can call it a stable application. From my testing, however, it...

django-pendulum news

Posted 2 months ago by wheaties
Several updates made to django-pendulum.

Project Release: django-pendulum 0.1

Posted 2 months ago by wheaties
I've released my personal time clock application on Google Code!

Python 2.6 Is Available

Posted 3 months ago by wheaties
This kinda caught me off guard, but apparently Python version 2.6.0 final has been released!
0 comments | read more...

Project Release: Seasonal Stylesheets

Posted 3 months, 3 weeks ago by wheaties
Ever in the mood to have your Web site change colors depending on what day of the year it is (kinda the way Google's logo changes on holidays and such)? Well now you can do it a lot easier.

Installing Django on Shared Hosting (Site5)

Posted 4 months ago by wheaties
In continuation of a previous article, now you can learn how to install Django on a shared hosting provider. I know for a fact that this HOWTO works with Site5 because I used it to setup a friend's account with Django a few minutes ago.

Django 1.0 Final!!

Posted 4 months ago by wheaties
Django 1.0 final is here at last!

My First Firefox Extension

Posted 4 months, 1 week ago by wheaties
Finally, I have created my very first extension for Firefox. It's simple and to-the-point, but I think it does its job well!
0 comments | read more...

Django's New Comment System

Posted 4 months, 1 week ago by wheaties
Django's newly merged comments application seemed to break a lot of things for me. Here are some tips in case you're in the same boat.

Project Release: django-tracking 0.1

Posted 4 months, 3 weeks ago by wheaties
Now all Django users have a simple way to keep track of active users on their Django-powered websites. Installs in less than 5 minutes!

Using Django to Design Your Database Schema

Posted 4 months, 3 weeks ago by wheaties
Use Django's Object-Relational Mapper to design your database quickly and easily--regardless of the programming language/framework used in your final product.

Step-by-Step: Installing Django

Posted 4 months, 4 weeks ago by wheaties
Learn how to get started with Django on Windows, Linux, and Mac OS X.

django-clevercss v0.1

Posted 5 months ago by wheaties
My newest project: django-clevercss, an interface to CleverCSS for those of us who are somewhat lazy or bored.

Code Koala is now on Django 1.0 Alpha

Posted 5 months ago by wheaties
Bigger and better things are always on the way!

By George, I Think They've Got it!!

Posted 5 months, 3 weeks ago by wheaties
The awesome Django developers and contributors have finally merged the newforms-admin branch into trunk!!!

Freelance Work and Unprepared Clients

Posted 5 months, 3 weeks ago by wheaties
Reflections on a recent experience as a freelance developer.
3 comments | read more...

New Website!

Posted 6 months ago by wheaties
Yes folks, I have launched yet another website.

Sad Day for Religious Nerds

Posted 6 months, 3 weeks ago by wheaties
The details on the verdict concerning the legality of my PyScriptures program.

Windows XP: command != cmd

Posted 6 months, 3 weeks ago by wheaties
Yet another frustipation concerning Windows.
1 comment | read more...

Introducing PyScriptures 0.3a

Posted 7 months ago by wheaties
The latest release of PyScriptures is ready!

PyScriptures Has a New Home

Posted 7 months, 1 week ago by wheaties
PyScriptures has moved to Google Code in order to allow more people access to the program.
0 comments | read more...

PyScriptures 0.2a Is Here!

Posted 7 months, 1 week ago by wheaties
The first "official" public release of PyScriptures.

Why I Like Python

Posted 10 months, 2 weeks ago by wheaties
Some thoughts about my preference for the Python programming language.

Big Day in My Career

Posted 11 months ago by wheaties
I finally made my first contribution to an open source project!

How To Compile and Install a 2.6.x Series Linux Kernel

Posted 1 year, 11 months ago by wheaties
Learn how to compile and install your own Linux kernel so you can tweak your system to the max!
0 comments | read more...

How to Upgrade a NetBeans Project to JDK 6

Posted 2 years ago by wheaties
For those of you who love Java as much as I do, you might be wondering if your existing netbeans projects can be upgraded to JDK 6. This will explain how to do it.
0 comments | read more...
Filed in How To, Java, and Programming

How To Create A Subversion Repository

Posted 2 years, 3 months ago by wheaties
Ever started a project that involved multiple developers, or wanted to keep track of changes that you make to your files? Learn how to effectively use a Subversion (SVN) repository to ease the burden of manually merging or backing up files.
0 comments | read more...
Copyright © 2009 Josh VanderLinden. All rights reserved.
Home : My Ramblings : Projects : About Code Koala : Terms of Use
Design inspired by Free CSS Templates

A Django site.
Powered by Django 1.1 pre-alpha SVN-9699 and Python 2.5.1
1 of 4 active users is reading this page