Archive for the ‘Programming’ Category:

Generating Random Session IDs

{ Posted on Sep 13 2009 by david }
For any online service you must login so you can gain access to your stuff. So that you only have to put in your password once, the website must maintain a special unique character sequence called a session key ...Read More »

KryptoPhoto Photo Viewer is Released

{ Posted on Aug 11 2009 by david }
Tags :
Categories : Flex, Photography
I have released my new photo viewer, so now I can once again show my photography on this site. It currently supports the API at SmugMug.com, but I have plans for compatibility with other photo-sharing sites. I built it using the ...Read More »

How to do custom chart annotations in Flex

{ Posted on Mar 03 2009 by david }
Hunting around the ‘Net, I found a few good examples of creating chart annotations in Flex. One example app which helped me greatly was from a blog posting by Ely Greenfield. If you’re interested, you can view it on his website: ...Read More »

Trying to do MVC in pure Flex

{ Posted on Feb 01 2009 by david }
Tags : ,
Categories : Flex, Programming
I was looking for some examples of how to structure a Flex application using MVC, but using only the Flex framework. In the long run I think I’ll be using PureMVC, but right now I am anxious to get my ...Read More »

Converting journal entries from Outlook to MacJournal

{ Posted on Jun 24 2007 by david }
Comments Off
Categories : Python
I wrote a Python script to convert a journal file export from Microsoft Outlook to one which can be read by MacJournal. It requires the Python module csv (included with Python 2.3 or later) Run the script like so: ./outlook2macjournal.py [input_file] [output_file] If no ...Read More »

Searching for Artificial Intelligence

{ Posted on Apr 30 2006 by david }
Categories : Programming
Over the past week I have been doing some research on the Internet to learn a little about AI. I want to create an intelligent scheduling algorithm, so figured I would delve into the world of AI ...Read More »

Template Method pattern handout now available

{ Posted on Apr 19 2006 by david }
Categories : Programming
I have posted a PDF of the handout I made for my design patterns workgroup. The information came mostly from the O’Reilly book Head First Design Patterns. The layout and typography are roughly based on the format of the book as ...Read More »

Design Pattern: A decorator in the wild

{ Posted on Mar 24 2006 by david }
Categories : Programming
I’ve been looking over a lot of Javascript code lately, mostly in the various AJAX libraries. It’s been interesting to see the ways in which the different projects are using the language to enable them to coexist peacefully. Though, one such ...Read More »

My first `case` statement in 60 months.

{ Posted on Mar 22 2006 by david }
Categories : Programming
The first time flipping through my O’Reilly Javascript Definitive Guide, I was pleasantly surprised to read that Javascript had a case statement. I’m not sure why I was surprised, but I guess I forgot about it considering that I have ...Read More »

Doing Python-style imports in JavaScript

{ Posted on Mar 15 2006 by david }
Categories : Programming, Python
Lately at work I’ve been doing a lot of programming in JavaScript. Among other things, I have been learning about using the prototype object to do object oriented programming. One thing that I missed was the feature in Python used ...Read More »