Phil Massyn # 012 – Fri, 30 Jul 2010 11:31:07 GMT
Bietjie updates oor potgooi.com en Kurt Darren.[ Download ] enclosure
SDU 005 – Ek chat met Kurt Darren
Luister na ‘n vinnige chat met Kurt Darren in Sydney.. Die man was redelik gejetlag, maar dit was ‘n great show.
[ Download ] enclosure
Where do I come from
The father answers, ‘Well, son, I guess one day you will need to find out anyway!
Your Mom and I first got together in a chat room on Yahoo.
Then I set up a date via e-mail with your Mom and we met at a cyber-cafe.
We sneaked into a secluded room, and googled each other.
There your mother agreed to a download from my hard drive.
As soon as I was ready to upload, we discovered that neither one of us had used a firewall,
and since it was too late to hit the delete button, nine months later a little Pop-Up appeared that said:
You’ve got MALE
Nigerian goal
He said he just needs their bank details and pin numbers to complete the transaction.
SDU 004 – Kurt en Arno
Kurt Darren en Arno Jordaan is op julle Australie toer.

[ Download ] enclosure
Reading an RSS feed in Perl with XML::Twig
There are many ways to read XML files in Perl. There is an XML::RSS module, great, but when your hosting provider doesn’t provide these modules, you run into some problems.
Uploading them into a seperate lib directory also doesn’t help.. I’ve done that, and believe me, it is more of a pain than anything else. Apart from uploading the modules to a lib file, I found that XML::RSS also relies on some of the other XML modules, which now has incompatibility issues with my hosting provider… It is such a pain, because my development machine at home (also running Linux) obviously has much more updated modules than those of the hosting provider.
Anyway, XML::Simple doesn’t cut it.. When you’re dealing with RSS feeds that have <!CDATA, XML::Simple has a heart attack, and everything crashes. I decided to use XML::Twig simply because it is available on my hosting provider, and it seems to kinda do the job. So I set out, and wrote the following script last night that is currently in use on my potgooi.com website. It will download the RSS feeds from various podcasts, update it’s mySQL backend, at which point the front end script simply reads the database and presents it to the user.
So far I am very happy with XML::Twig. It is a little tricky to configure. I didn’t find it’s pod file all to helpful. After looking at various examples on the web, and fiddling a bit, I managed to get it working. So here I present my code to read an RSS feed with XML::Twig.







