Category Archives: Coding

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

OSSEC, Suhosin, and WordPress

I had a problem show up on some of our servers. Visiting sites would work fine, but as soon as you log in to a WordPress site, then your IP was blocked at the firewall level. It took a bit of hunting around the OSSEC logs to figure out the cause, and then finally tipped […]

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. […]

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 […]

Multiple PHP Instances With One Apache

  Long-winded Introduction It took me a couple of days to figure this out due to lack of decent tutorials and not enough confidence in my Linux skills to build programs from source. I think I have the hang of it now, and write this up with the intent on providing another, or the only, […]

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: […]

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 […]