One too many WordPresseseses
No wonder I have a head ache. locate wp-config.php | cat -n reports fifty WordPress installs. If only WP-Mu was any good.
The Beauty of Old Code
A client of mine needed a quick image upload feature to a custom administration app. We have jQuery and AJAX and all sorts of modern niceness. Screw that.
Bring back PEAR's HTTP_Upload. Its ancient, but justified, if you install the Stable version it was last updated 11-08-2004, five whole years ago.
NTLM Authentication for apt-get’ed Ubuntu
Following on from NTLM Authentication on Ubuntu and Apache2 Revisited this morning, this is how we modify the Apache2 configuration provided by apt in Ubuntu.
NTLM Authentication on Ubuntu and Apache2 Revisited
It's been a while since I've had to build an NTLM integrated Apache2 server.
So I thought I'd take help from Ubuntu's packages and install LAMP from there like most people seem to be doing these days.
Once all that is up and running, you will need to download mod_ntlm_winbind. Its an ancient package I complied years ago from the samba source tree, good news is it still works.
VTEC Love
I did a photo shoot at the new VTEC Direct workshop last weekend. Lots of Honda related excitement!
Cleaning up Deleted Items Automatically from Exchange
Do you want to automatically delete Deleted Items in Outlook/Exchange or delete any type of mail over a certain age?
You can use Mailbox Manager to create a recipient policy to automatically delete all messages from users Deleted Items folder, at an interval you specify.
Exchange Server Journaling
I've recently had to setup Journaling on an Exchange Server for a client - it was quite an experience. So I've made these notes that will hopefully help.
Microsoft Exchange Server journalling lets you record a copy of, or journal, all email communications in your
organisation and send them to a dedicated mailbox on an Exchange Server.
Insert Coin
Bored at work? This script connects to a JetDirect equipped HP printer and uses HP's control language to set the ready message on the LCD display. Takes an IP address and message on the command line. My favorite message is "INSERT COIN".
Keep in mind the limitations of the display when composing your clever verbiage.
#!/usr/bin/perl
# $Id: hpsetdisp.pl 11 2006-03-22 01:21:03Z yaakov $
# hpsetdisp.pl
use strict;
use warnings;
unless (@ARGV) { print "usage: $0 \"\"\n" ; exit }
if ($ARGV[3]) { print "Did you forget the quotes around your clever
message?\n" ; exit }
my $peeraddr = $ARGV[0];
my $rdymsg = $ARGV[1];
chomp $peeraddr;
use IO::Socket;
my $socket = IO::Socket::INET->new(
PeerAddr => $peeraddr,
PeerPort => "9100",
Proto => "tcp",
Type => SOCK_STREAM
) or die "Could not create socket: $!";
my $data = <
\e%-12345X\@PJL JOB
\@PJL RDYMSG DISPLAY="$rdymsg"
\@PJL EOJ
\e%-12345X
EOJ
;
print $socket $data;





