June 8, 2005

Regular expressions suck.

Those of you that have visited in the past 12 hours might have noticed that the links that I had been using in my posts on the blogs didn’t work properly. The reason? The pure, unadulterated sheer joy of regular expressions.

Basically, instead of typing etc I have a safer alternative to including HTML in my posts. It involves the use of bbcode-style tags, and as a result, my link tags are written in a similar fashion. The simpler ones work great, but I decided that for the link tag, I’d make it a bit more complex.

Big mistake. One lesson that I’ve learnt from this is: never mess around with regular expressions if you actually value your life. It’s fixed now, thank god, but I need a sodding vacation after that. Now that I’ve said not to touch them, of course, I’m going to go off and try and implement a proper list code. Whoop-de-doo!

In other, vaguely related news, I decided that I’d go and play around with Tiger. I was up until 4am attempting (in vain) to get the damn thing working with PearPC. In fact, the best place I got to was:

JITC Warning: Invalid expression at 00800000 00000000
JITC Warning: Invalid expression at 00800000 00000000
JITC Warning: Invalid expression at 00800000 00000000
JITC Warning: Invalid expression at 00800000 00000000

Over, and over, and over again. Eventually, this morning, I eventually got the bastard to boot up, only to discover that the install process got about as far as a big, flashing “no” sign. After that, I decided to give up for a bit, so I have the joy of beating Apple software when I get back home.

Incidentally, I’m planning on visiting the Bull Ring Apple store, which promises to be good. However, I’m semi-dreading it, since I fear that much money may actually be spent buying an iBook. On the other hand, I don’t really want to buy one; Intel-powered stuff is coming out in less than a year, and I’d like to think that the price on this existing PPC stuff would be dropped to accommodate the changeover, and get the PowerPC stuff out of the door. Hell, the PowerMac G5 is still a stonking computer; if they were selling them off cheap, I’d probably buy one. Beats my PC any day of the week.

Right, I need to revise. I’m still in the Maths department, and I have yet to actually open my notes (which probably isn’t good). Have fun all, and I shall probably post something a bit later - presuming, of course, that I’m in a blogging kind of mood.

7:13 pm | Posted in Apple, Computing, Hardware, PHP/MySQL

No Comments »

No comments yet.

RSS feed for comments on this post.

Leave a comment