Posts in category 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...
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...
Major browsers insist on producing illegal json like
{ 'foo': undefined }
when objects contain an undefined value. It was pretty simple to monkey patch the json module to handle this case. I put the code on gist and include it here:
more...
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...
Our BigWords project needs Sets which are lists of Games and SetOrders which sequence the Sets.
Json References
seem perfect for this but the examples I could find online did not conform to my experience with the way it actually works.
more...
They dropped spidermonkey from Ubuntu with the Lucid release. This broke my jslint script.
more...
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...
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...
The iPhone and iPod Touch are very interesting platforms for enabling technology. Touch, accelerometers, portability, radio, coolness; they've got it all.
more...
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 ยป