Coder’s Eye

A site about one of the three passions in my life.

Coder’s Eye header image 4

Entries Tagged as 'Languages'

Importing Wordpress to Banjo

October 22nd, 2007 · 2 Comments

Thanks to Andy C I’ve finished the Wordpress import script for Banjo.
That article gives instructions for direct SQL loading of a somewhat different blog database. I couldn’t use it directly for Banjo, partially because I’m through with using MySQL. I just can’t take all the UTF problems any more. I’ve gone all […]

[Read more →]

Tags: Banjo · Django · Wordpress

Banjo Blog nearing 0.1 release

October 19th, 2007 · 13 Comments

I’m nearing release 0.1 for Banjo, a blog app written in Python on the Django framework. If you look at the mailing list, you’ll see plenty of people asking about a blog app, and the standard reply is that it is just so easy, almost trivial, to write your own that there is not […]

[Read more →]

Tags: Django · Open Source · Python

Oohgabooga launched

October 2nd, 2007 · 1 Comment

My premiere e-commerce client, Oohgabooga Island Traders launched yesterday. After doing a little dance of happiness, I sat down to think through all that went into it.
I used the Satchmo e-commerce framework for Django to build it. Of course I did, because I am a core developer on Satchmo, and a peripheral contributor […]

[Read more →]

Tags: Django · Open Source

Setting up Satchmo on a Debian Server

August 23rd, 2007 · 3 Comments

At the request of people on the satchmo-users mailing list, here’s my step-by-step guide to installing Satchmo on a Debian server.Debian is a wonderful base for Satchmo, much easier to set up and maintain than RedHat in my opinion.

[Read more →]

Tags: Satchmo · Lighttpd · OS · Hosting · Linux · Django · Python

Why you should use Caching in your webapp.

August 21st, 2007 · 5 Comments

For my Django apps, I use a cache manager application I wrote in a brainstorm fugue state a couple months ago. I really needed it for my still-in-testing InvisibleCastle gaming site rewrite, since I do so many lookups and repetitive viewing of the same information.Once I’d written and debugged it - which took longer than I’d have liked, of course - I started using it as a matter of course in all my client projects. Then last week I had another brainstorm and actually wrote a quick set of management pages for it. Now I can observe the cache in operation, clear it, or even a subsection of it.

[Read more →]

Tags: Best Practices · Django · Python

Django and Lighttpd init script and config for SSL.

August 20th, 2007 · No Comments

I’ve gotten a lot of interest in my posting about my SSL configuration for Django/Lighttpd.

[Read more →]

Tags: Lighttpd · Django · Linux

How to do HTTP Basic Auth in Ajax

August 16th, 2007 · 7 Comments

You can use HTTP Basic Authentication with Javascript/Ajax in just three steps. I’ll give you them in just a moment.
The Background
This morning, I was experimenting with Adobe AIR, writing a client to tell me whether I have games waiting for me to make a move on Weewar, and I needed to be able […]

[Read more →]

Tags: AJAX · Javascript

Django and Lighttpd configuration for smooth SSL

August 10th, 2007 · 3 Comments

I use and prefer Lighttpd for serving my Django applications. Tonight I worked out a nearly perfect configuration which allows me to serve the app through fastcgi in both http, and SSL-enabled https. The media files are directly served by Lighty, without hitting the django backend at all, for maximum speed.
Better yet, this […]

[Read more →]

Tags: Hosting · Tips · Django

Why I’m moving from jQuery to ExtJs

August 9th, 2007 · 34 Comments

This week, I’ve switched favorite Javascript frameworks. I was a heavy jQuery user, and still think that the framework is very nice. As part of a discussion on the Satchmo-Developers list about what Javascript framework to use as the default for the Satchmo web shop framework, I ended up doing a survey of […]

[Read more →]

Tags: Reviews · Javascript

Cross-browser safe, readable Javascript style

July 12th, 2007 · No Comments

Over time and thousands of lines of professional Javascript programming, I’ve developed an almost bulletproof Javascript layout style. It is important to have one, even if you are the only person working on your script, because:

it helps you read the code more quickly
it helps you not forget browser "gotchas"
it makes your code more reusable […]

[Read more →]

Tags: Tips · Javascript