Posts in category Programming

Site Search Using Whoosh

| tags: random, programming

I tried Google custom search for my updated site but I was unhappy with the control I had over what got indexed, so I decided to implement my own.

A quick search revealed the awesome Whoosh search library. It is very well documented and super easy to use.

more...


Site Update

| tags: random, programming

Mike Pirnat's post Why I Switched to Blogofile inspired me to give Blogofile a look. The nice documentation and especially the migration strategy from Wordpress inspired me to give it a try.

Now after about 3 days of reading and enjoyable hacking, I've got my site converted with a new theme and color scheme. I'm impressed at how straightforward the conversion has been. I hacked up the wordpress2blogofile.py script to modify the paths (I wanted to change my permalinks) and to insert paragraph tags into the extracted text.

more...



Visually Comparing Python Objects

| tags: python, programming

I had two Python objects consisting of nested dictionaries, lists, strings, and numbers. These were the original and an automatically edited version of a JSON data structure we are using in a game. I wanted to make sure the automatic editing did what I really wanted before I wrote it to the live database.

This Python code did the trick.

more...




Programming for kids?

| tags: programming, ideas, enabling technology

I want 10 year old game programmers working on games for kids with disabilities (and themselves). Given some tools, kids could write simple games that kids who have NO GAMES would enjoy. And maybe get drawn to CS at the same time.

more...


Connecting a Dojo Data Grid to a JsonRestStore

| tags: tornado, python, dojo, javascript, programming

I looked high and low and couldn't find a working example of connecting a dojox.grid.DataGrid to a dojox.data.JsonRestStore so I puzzled out parts of it myself. This code probably has errors and omissions but it seems to work for me with dojo 1.4.1.

I would appreciate any corrections or pointers to other examples from those of you who know better. I haven't included any error checking and the references to items by key break down after deletions because of the simple minded implementation of the "database".

more...



CVtypes status

| tags: programming

I haven't used CVtypes recently so it hasn't gotten any of my (very limited) attention. I see that Minh-Tri Pham has forked a version that he is maintaining over at Google Code. I recommend folks use and support his version. Next time I need it, I'll probably adopt his.

more...


Next Page ยป