With the help of about ten different pages, I created a simple handler module and installed it on to a virtual host by throwing stuff into my .htaccess file. I even have @INC pointing to a custom libs location so that I don't have to put it all into the root folder.
Check out mp.ben2.com. Try sticking stuff on the end of the URL.
3:58, Thursday October 2nd, 2003 • feeling webmasterly • no comments
I've got a job coming up where I'll be writing a bunch of Perl. I had a look at the response of the web server I'll be running on and found that it's running mod_perl. Ooh I thought, I'll go and have a look at that and see what it looks like.
What I found is a tutorial that tells you at great length that you will fall on your arse if you dare to use closures, or destructive subroutines in any way.
Duh!
Closures are interesting, I never really use them. Destructive functions however: that way leads pain. Welcome to the functional age, coders! By functional, I don't just refer to Lisp et al, I mean any code where a function is a black box.
Anyway, I just want to know how to write mod_perl programs that make pages. A great long page that tells me about the traps isn't actually very much use unless I'm in one. This is often a problem with educators. They know the gotchas are more important, but they assume that their students have a large capacity to remember a block of knowledge that doesn't relate to anything else yet.
Once I've written and run my first mod_perl script, I'll have a reference point. Then I will appreciate this advanced knowledge. But until it has something to link to, it's just a discussion on the nature of Perl, and therefore not what I need at all.
And I signed up for an exam to become a Sun certified J2SE programmer.
I've been working on Hypothetical today! I eschewed Lisp for a change and embraced PHP. I got quite a lot done. It's getting to the point now where it's pretty much succeeded the abortive v2, which isn't saying much, but there you go.
Features I implemented today:
Replies
Viewing individual messages
Trucking back through days of messages, a la v2
My messages in the My Hype area, though this is just a raw dump of message data ATM and will suffer the same problems as the v1 version. My profile page in v1 has grown to several megabytes!
13:45, Tuesday September 30th, 2003 • feeling relaxed • no comments
Are really easy to setup! No really:
Open Internet Connect
Choose "New VPN Connection" from the file menu
Enter your VPN server, user name and password details
Hit connect
This gave me a connection, but it also jiggered my routing table so that I couldn't see the internet. route made short work of this problem however:
route delete default
route add default $ROUTER_IP
route add $FOREIGN_NETWORK $VPN_IP
Luckily the network I'm connecting to uses a different class C IP range, so the routes were easy to add. If there had been an address space clash I would have had to specify routes for the individual hosts in their network I guess.