Nick

This user hasn't shared any biographical information


Posts by Nick

WebSense and their lack of sense

December 19, 2009 - 21:54

Tags:
Posted in Uncategorized | No comments

As I was browsing my lighttpd logs (something fun to pass time), I noticed a few weird entries. 62% of the visitors to my site use Firefox, so seeing quite a few IE visitors set off some alarm bells.

::ffff:208.80.193.40 nick125.com – [22/Sep/2009:07:47:52 -0600] “GET / HTTP/1.0″ 200 15810 “-” “Mozilla/4.0 (compatible; MSIE 6.0; Windows NT [...]

A neat little render_to_response trick

August 17, 2009 - 23:02

Tags: ,
Posted in Uncategorized | No comments

If you’ve used Django long enough, you will have noticed that render_to_response uses Context rather than RequestContext as the context instance. This is just no fun if you want to use things like auth, MEDIA_URL, etc in your templates. You could just add context_instance=RequestContext(request) to every render_to_response call, or you can use this little code [...]

The “Better” settings.py

August 17, 2009 - 20:30

Tags: ,
Posted in Uncategorized | No comments

While working on my CRM, I had a bit of an issue: I wanted to keep my setup specific settings (Database information, timezone, secret key, etcs) separate from application settings (INSTALLED_APPS, ROOT_URLCONF, etc). This is useful since it keeps development configurations and production configurations separate and it keeps your setup specific settings out of your [...]

Upgraded to WP 2.8.4

August 13, 2009 - 09:54

Posted in Uncategorized | No comments

Ah, it seems that Wordpress 2.8.3 has a nasty password reset issue, so I’ve upgraded to the new and shiny and password-reset-vulnerability-lacking 2.8.4. Wordpress makes it fairly easy to upgrade, so why not?

Archive.org

August 11, 2009 - 20:13

Posted in Uncategorized | No comments

I just looked at the old versions of my site at Archive.org, and it’s kind of depressing. Oh, how immature I seem, looking at the old sites. I guess age does bring something to the party.
I’m going to go reminisce for a bit…..
Cheers,
Nick

Hello!

August 4, 2009 - 18:03

Tags:
Posted in Site News | 2 comments

Here’s a new blog. Maybe this time I’ll actually update it with useful information. Ah well.
Cheers,
Nick