January 29, 2004

wxWindows Example Overview

Filed under: ResearchAndDevelopment — Ryan Wilcox @ 11:15 am

Two days ago I began working with wxWindows, which is a tool that allows the user to code a program for one platform (i.e. Mac and port their code to various other platforms.

My first assignment was to learn the language by looking at the â??minimalâ? project that came as one of the samples with wxWindows. With this entry, I hope to give the reader a better understanding of what wxWindows is and how it works.

(more…)

January 19, 2004

Better MT RSS Template

Filed under: ResearchAndDevelopment — Ryan Wilcox @ 9:34 pm

Today, in a creative outburst, I created a better RSS 2.0 Template for Movable Type. Unlike the SixApart supplied MT RSS 2.0, this template uses all built-in RSS elements.

The thing about MT’s RSS 2.0 template was that is used RSS namespaces to provide functionality that was provided in the RSS spec. That seems pointless, and very wrong.
(more…)

Less Comment Spam

Filed under: General Information — Ryan Wilcox @ 8:21 pm

I’ve updated my install of MT-Blacklist to version 1.6.2. This blog got hit with lots of comment spam today, and I had to get rid of it all.

A great addition to MT-Blacklist is Luke Reeves’ MTBlacklist Updater 1.0 python script. Set up is fairly simple, the config file is easy to write (note: spaces are the delimiters), and it’s easy to put a shell script in /etc/periodic/daily that calls the script (and thus updating your blacklist) automatically.
(more…)

January 7, 2004

cgiwrap, OS X, and AppleEvents

Filed under: ResearchAndDevelopment — Ryan Wilcox @ 1:16 am

Sometimes you want a CGI script to run as a different user than what the web server process is running as. This could be for added security, or to allow a certain script to have capabilities you’d never let the web server user have.

Cut back to OS X. In OS 9 and earlier, CGIs were controlled (mostly) by Apple Events. Apple Events were the (primary) Interapplication Communication method on OS 9, and, as a lesser extent, on OS X.

On OS 9, if a web user accessed a CGI script, Apple Events would be dispatched from the webserver to the appropriate CGI, and the CGI would do something. Now, if this was an Applescript CGI, it would (usually) talk to other applications via Apple Events.

In the brave new world of OS X, we have other ways of talking to processes, but some applications (ie: GUI applications) can only talk to external programs via Apple Events.

This poses a problem. Most routines in the Apple Event Manager require a window manager session – except, if you’ve been good, security-savvy admins, the currently logged in user is not the owner of the web server (usually Apache).

There is however a solution…
(more…)