Category Archives: Coding

Software code that I have written, or tips for doing computery type stuff.

If at first you don’t succeed

…copy somebody’s code. Or at least your own from the past that works. I finally got the map to work for my Exhibit exhibit. See.   First I copied the tutorial here. When that was working, I carefully copied it to the file I wanted it to be in and… nothing. Still broken. So next […]

Making SMF static

We have a few legacy forums powered by the good software SMF (SimpleMachines Forum). Like many of the WordPress installs, it’s a pain and a security risk to keep these up-to-date when they are no longer needed as content creation platforms. So, once again I need to convert a web app into static HTML pages. […]

Python, Trac, virtualenv and CentOS

I’ve just spent too much time figuring this out. I’ve had to piece it together from many other sites. I need to set up Trac .12 on CentOS 5, but want to do that without interfering with the current setup of Trac and Subversion on the system. So in comes virtualenv. This allows you to […]

Convert CSV file to directories

A fellow co-worker had a need to turn a CSV file into a series of directories and files where the columns of the CSV file were the directories, and the contents of the cells for each row were made into a text file and placed in the appropriate folder corresponding to the column. For example […]

Convert WP to static HTML – part 2

This is a followup to this previous post. So I’ve been converting some more blogs to static html files, and this time around things seemed to be so different, that I made up a new how to. Here are the steps that I’ve been using to convert blogs using the default Kubric theme. Update the […]

Major Update to Multiple SVN WordPress Installs

It’s been a while, but I thought it important to post an update to the wpupdate program I wrote to upgrade a whole mess of WordPress installs at one time. I took a cue from the program officially sponsored by WP, but think mine is much, much better. 🙂 Here are some of the features: […]

Zotero's code_swarm

I finally figured it all out, and got a working version of Zotero’s development on trunk for the past year in code_swarm. Next, I need to find or make some cool electronic music to play while watching it. [vimeo 2117995]

MediaWiki’s version information

I spent way too long looking for MediaWiki’s version information. Most applications store the version info in a file or in the database. MediaWiki is a HUGE mess of code and database. I finally found it in a file. It’s in includes/DefaultSettings.php and is stored as a variable – wgVersion.  This is for post 1.3.7 […]