Coder’s Eye

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

Coder’s Eye header image 4

Entries Tagged as 'Best Practices'

Git SVN Error - Fixed

September 16th, 2008 · No Comments

While working on a SVN project using my new favorite tool, “git”, I ran into a small problem. A network bobble caused the subversion portion to fail. I stopped it, but then when I tried again, git said:
Cannot dcommit with a dirty index. Commit your changes firstor stash them with `git stash’.

[Read more →]

Tags: Tips · Open Source

How to send HTML Mail to a Mailing List

June 4th, 2008 · 1 Comment

Many stores use GNU Mailman to maintain a mailing list for store sales and newsletters. Satchmo has this as a built-in option, for example. It isn’t too bad an option, after all. You can easily set options so that it is “push only” and therefore only the mailing list owner can send mail.
(Yes, it really […]

[Read more →]

Tags: Best Practices · Linux

Free Code Signing Certificate from Adobe

May 28th, 2008 · 1 Comment

Score! I just got a free Adobe AIR code signing certificate from Thawte. Adobe is giving out 125 of these to the first people who upload to the new Adobe Air Marketplace.
This is a $300 value, and it is good thinking by Adobe, because while I enjoy making free apps for AIR, I wouldn’t have […]

[Read more →]

Tags: Adobe AIR · Best Practices

Setting up SSL for Lighttpd/Django

May 13th, 2008 · 2 Comments

My latest client Farinaz Taghavi is finally in beta on her site, and one of the last steps to push her live was to set up SSL for her.
Luckily, I’ve done this a number of times, so it was quick and easy to do, but still I had to refer to various reference sites and […]

[Read more →]

Tags: Lighttpd · Best Practices · Django · Linux

How To Kill nasty Word Garbage Characters in your CMS

January 9th, 2008 · No Comments

Recently I was doing a server move for a client. From an ancient slow system costing her too much money (and me too much bother dealing with a know-it-all-wrong admin) at Today.net, to a nice modern VPS reliably, competently and fully managed by LiquidWeb.
Last year, I wrote her a travel reservation & quoting app in […]

[Read more →]

Tags: Tips · Macintosh

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 configuration for smooth SSL

August 10th, 2007 · 4 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

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

Fixing Exim sender callout error

June 6th, 2007 · 1 Comment

On my new dedicated server, I’ve been getting reports of mail bounces. Looking more closely at them, I found they said “451: Deferred sender callout cannot be verified.”This is the result of an anti-spam measure that Cpanel enables by default for Exim.

[Read more →]

Tags: Hosting · Tips

Mass Import Yojimbo Passwords

May 12th, 2007 · No Comments

I searched all over the place last night and I couldn’t find anything that could import passwords into Yojimbo for me. I did see a lot of complaining about the lack of ability to do so, however.
Since I really like the app in most ways except for its lame import capabilities, I whipped one […]

[Read more →]

Tags: Tips · Open Source · Macintosh · Python