PHP, Zend Framework and Other Crazy Stuff
Archive for October, 2005
Broadband, AATraders, QS Changes and my usual ramble ;)
Oct 28th
I’m really looking forward to December. If all goes according to plan I will probably be the recipient of a Broadband connection. Since I live in a rural area, I’ll use the term “probably” because such schemes have a habit of falling apart in small countries with telecom companies (well, company) that are only interested in giving the large dense population areas a chance at the broadband revolution (they cost less, can be charged more). It sucks really.
I can see it now; an always on connection, ICQ/Jabber running in the background, people actually having a half chance of catching me live online. I might even be capable of holding a live bug kicking session – something brought home after realising the turnaround period on fixing a simple bug can be 2 days for me – 1 to actually get around to reading the report, 2 because uploading a fixed version is painful (to say the least) using my current slow connection – and takes time to arrange (it’s really slow…not joking).
In other news, have 2 more design changes to make in the base QS code. Small ones, both related to some assumptions I made which aren’t entirely accurate. Matt (aka Mibocote) is back working on Q-LIB, so I need a new SF project to provide a segregated development location for it as soon as possible. When Matt works, he works fast – he already has changes to be committed. Erick (over on the QS forums) has submitted some QS logos. Along with Omega’s and mine that makes a grand total of three, well we have to start somewhere!
I’m also dried up on testing AA Traders. As some will already know, in keeping with the space theme I’s hoping to host something to complement QS when its ready. TKI has now vanished into a merger with BNT (probably be a while until Proton). So I thought about giving AATraders new release a walk on my server.
Unfortunately their recent release has a few questionable requirements which I’m not about to change my server simply to accomodate (if you think like me it’ll be the very first thing you notice – since it will simply refuse to install and suggest you alter your PHP configuration; like that’ll ever happen). I think it’s safe to say it won’t be hosted any day soon on a server near me – we’ll see how 0.30 goes. I think BNT will make a far better choice when Proton, the next version, is ready. I’m pretty close to drawing PJ’s attention to an oddity I discovered while trying to get that blasted ShoutBox working. I’d read more of the code but I had trouble keeping my gaping mouth closed the last time I peeped at it – I even wound up posting at their forums which incidentally do indeed exist. Based on that post even SE might be safer in the long term – something I suspected was impossible, but apparently isn’t.
That’s another weird thing – for some reason IE can’t ever seem to find the AATraders website on my home PC (least under Windows when I use it). Firefox finds it, and returns a page of garbage. Not sure why – first time I’ve experienced it on any website. Doesn’t seem to be GZip since its returning as chunked – then again maybe it is and the chunked return is an error. Have a feeling I have Norton to thank for this – warrants a little investigation to appease my curiousity I suppose. I tested at work and it was fine. Still very odd as to why it’s the sole exception…
NaNoWriMo
Oct 24th
NaNoWriMo is a little bit nightmare, little bit fun, and a lot of effort. Ah hell, its pretty cool and this will make my second year of participation. For those who don’t know this is something of a competition to write a 50,000 word novel of questionable quality between the 1st and 31st of November. In this case Quantity far outweighs Quality. Be it a crap unreadable piece of rubbish or not – its irrelevant. Just wrote those 50,000 words.
So why do it? NaNoWriMo is the brainchild of a San Francisco Bay Area resident. After doing these with a group friends about 4 years ago it has turned into something of a cult. I heard about it back in 2002, joined up under an alias (We’ve established I’m in no mood to associate my Maugrim handle with the *other* one) but didn’t really give it a shot until last year. I got to 12k words last year – people may have noticed the sudden increase in rambling goodness I started posting in bits and pieces…
Unfortunately having lectures 4 nights a week limits writing time – I hope to go all the way this year, all 50,000 steps of the way.
The novel this year will be a Fantasy hack’n'slash Nemedia Novel (if you happen to be aware of the Talisman War plotline – if not, will be fun
). Entitled “Tales of a Travelling Rogue”. It’s subject to change. I suppose I could go with “Tales of a Professional Gambler and Mercenary for Hire” but Lugnar the daft old fool might not appreciate the gesture. Bad things happen when you make fun of Ye Gods.
Hopefully that 100k fund will get filled this time around!
Quantum Star SE 0.13 to CVS and ZIP
Oct 22nd
Well, after a week delay while working on something else I finally get around to updating the CVS.
QS 0.13 is now on CVS. It can also be downloaded as a zip archive at:
http://www.quantum-star.com/quantumstar_phpsource.zip
This is the second primary reorganisation, so many classes are grouped with the System directory (representing Partholan). Also added is an installer which should work, full input filtering, the savant2 templating engine I may be switching to in the near future, and assorted improvements to the Request/Response MVC cycle.
This version also adds future support for multiple View Systems including Smarty, Savant and straight XML.
I appreciate even a passing test of this – it does very little (most of the improvements are as always transparent to users) but the installer testing would be nice. QS is now also no longer dependent on user defined paths – it should correctly determine it’s location using some very simplified detection.
I’ve also added in a place to accumulate unit tests – something I decided to use here since I seem to be putting serious effort into QS these days – might as well throw all the best tools at it. No tests as yet – I have these but they are still being written to account for a few expected changes in Q-LIB.
Next up is 0.14, an updated database schema, installer translations, internationalisation, and the start of an Admin Panel. Sorry if holding up gameplay seems weird but I tested it back in April and it worked fine – will get added back in a few weeks for a few Developer releases leading into a Beta Stage.
The spanking new installer…
Oct 20th
After decided to dump the QS game (for a few weeks at least) and get the basic frontend functionality finalised as opposed to doing it in half measures) it is now just about complete. All it’s missing are translations – something I hope to arrange at the weekend.
So what differs between the installer in QS2 and the new QS v3?
For starters it no longer requires a user to define paths. Remember the hours spent staring at that first install page wondering what drugs the developer was on? No more. I’ve added an SQL parser that will read in a standard SQL dump file, and import the contents into a database. This is currently the standard method of updating our SQL schema – we don’t use a separate manually edited PHP file. The layout and design has been updated – it does in fact look very much like the Mambo Installer – which is a good thing, and what inspired the visual component. Attempted chmod’s by PHP have been pushed into a separate Auto-Fix command – iffy whether it works all that well given the various server configurations, but useful to some few.
Overall it’s briefer I think. QS3 requires less input from the user, which is good. The trade off is that some elements may be misjudged in extreme circumstances – usually badly configured hosts.
Final stage is to link an installation check to the front page of the game – so the installer is automatically invoked when the game is not yet installed.
QS3 will rock!…when its finished…
Oct 14th
One day from releasing QS 0.11 to CVS.
There are a few important improvements this time around. First of all the Installer Routine has been rewritten (no more ambiguous path definitions!). Because the QS2 installer relies on certain GPL code, I have also been pushed into writing my own SQL File parser. From what I can see it’s far simpler than the one we were using (sourced from phpMyAdmin) and it’s a lot faster – and I mean a lot! I had no idea the phpMyAdmin parser was so slow and bulky.
So 0.11 will see new installer, new SQL parser, new install theme, new Front Controller and View model, not to mention dozens of other changes such as our new Database Session Handler (we’re not using the ADODB one), Internationalisation Driver, and several other not so visible changes.
Still not playable – but adding that is so simple its frightening…![]()
As it stands I grow in confidence every day that QS3 will absolutely rock…

