S E R V E R   S I D E
View current page
...more recent posts

As usual, just more notes to myself.

I run qmail with virtual domains. To pipe incoming emails for a certain account (foo@example.com) through a PHP script you have to:

1) create a .qmail-foo file in /home/vpopmail/domains/example.com which contains the following line:

|/usr/bin/php -f /path/to/phpscript.php


2) the php script can read the raw email message from stdin like this:
$fd=fopen("php://stdin","r"); 
while(!feof($fd)){
$email.=fread($fd,1024);
}
fclose($fd);

This only works (I think this is right) if foo@example.com is *not* an actual mailbox in qmail. Also I did a qmailctl restart which I'm guessing is needed as well (after creating .qmail-foo file.)

- jim 1-08-2008 7:19 pm [link] [4 comments]

The NSA had a backdoor into Crypto AG machines for decades? That's pretty shocking if it turns out to be true. Why would any country trust an encryption mechanism without understanding the algorithm?
- jim 12-29-2007 7:23 pm [link] [1 ref] [add a comment]

Great story of inventive IT problem solving during a spending freeze: ITAPPMONROBOT

We could build an admin robot...

- jim 12-19-2007 6:44 pm [link] [add a comment]

LM turned me on to a browser webshot service a while ago (you submit a URL and they give you back screen shots of the page taken in a bunch of different browsers on a bunch of different platforms.) Pretty much essential if you're doing serious web design. Lately I've been using browsershots.org which, amazingly, is a free service. Not quite as fast as it's payed brethren, but I can wait a couple minutes.
- jim 12-19-2007 6:09 pm [link] [1 ref] [add a comment]

If these numbers are to be believed (and it's a little hard, I admit, although I'm doing it,) the iPhone already leads Windows Mobile in US marketshare. The iPhone, a single very new device, locked to one wireless carrier's network, already has a larger marketshare (in the US) than *all* Windows Mobile devices, made by multiple vendors, available on all wireless carriers.

Tons of charts and other info at the link.
- jim 12-19-2007 4:42 pm [link] [3 comments]

Great munin tutorial I'm sure I'll need to refer to again.
- jim 11-29-2007 1:08 am [link] [add a comment]

In Microsoft Word (from Office 2004 Mac edition, at least) if you try to sum a column of numbers with either =SUM(above) or =SUM(below) it will just stop counting at 85 rows no matter how many rows you have! And it gives no error! Holy shit. What a pile of crap. Why can't they be sued for something like this? I wonder how many people have billed incorrectly because of this bug?
- jim 11-27-2007 8:53 pm [link] [add a comment]

Very clever javascript date library: datejs.
- jim 11-27-2007 6:17 pm [link] [add a comment]

Full Apache, PHP, and MySQL stack coming to the S60 mobile environment (Nokia is calling it PAMP.)

In addition, there will be PHP extension modules that provide access to the core functionality of the phone. And on top of PAMP you can basically install any LAMP based content management system. For instance, Drupal can be installed off the shelf.
This is exactly what I thought the iPhone was going to allow, and the reason for my initial jaw droppery over that device. Now if only the N95 wasn't like $1000!
- jim 11-27-2007 5:38 pm [link] [1 ref] [add a comment]

Crap. Spent all morning trying to (re) install MySQL server on my somewhat new OS X 10.5 system (the 10.4 mysql package does work.) What a pain. Still not sure what the issue was, but it kept ending on startup. The useful clue I found was to look in the file ending with .err in the mysql data directory. This is where error messages get written, and indeed it informed me that I already had something (another instance of mysqld) running on port 3306. So I just killed that and then restarted the new server. Would have been more helpful if that error was directed to stdout as well as the file but I guess you can't have everything.
- jim 11-21-2007 6:37 pm [link] [add a comment]

older posts...