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.
January 29, 2004
January 19, 2004
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.
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.
January 7, 2004
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…