Pragmatism in code

Michael Percy AKA DeeEmm - Waxing lyrical about life the universe and everything software related since lunchtime 2006.
DeeEmm AKA Michael Percy is an industrial software engineer specialising in language based programming. A long time supporter and contributor to the open source community, he can mostly be found tinkering about creating web sites and writing code for various CMS platforms as well as maintaining several websites of his own.

Only Buggin

You may have noticed from the news flash that the DMCMS.0.7.0.BETA release has a bug in the SQL database file. This has hopefully now been sorted out - the files in the download area have been updated and an updated file is available to download should you require.

The bug, whilst only a minor thing (I say this only because we are still in BETA) goes to show how difficult it is to cater for every platform and server software version. The bug didn't appear on any of my test installations that I carried out before uploading the code for public consumption but, was still there, none the less.

The bug partly originated from a relic of a past version stuck in the database and partly from an error in the database backup function, I guess I need to be more careful in future.


972 Hits

Hate Is A Strong Word

{jcomments off}Trying to get the latest incarnation of DMCMS ready for release seems to be a never ending battle. Just when I thought that I had it licked something else crops up - and guess what!! - it's yet another IE flaw / bug / idiosynchracy. After redesigning the admin interface into a nice tabbed affair that put everything on one page in an easy to digest format I then find that it doesn't work in explorer. Phah - seems to be about par for the course recently.

Now whilst this is really frustrating I wont declare to hate IE and it's odd renderings, after all, being a Firefox protagonist I am in the minority. IE is also the browser that I first discovered the internet on, so I must at least owe it something.

My day today is being spent at home, which is great as I get to spend some time trying to finish the 0.8.0.beta release off whilst heating is being installed in the house. It's also great as I am now within swearing distance of an internet connection so I can try out some of the stuff that requires connectivity to the world wide wobble (such as user registration verification).

I've decided to load the latest offerings onto my webserver at home and test everything out, first thing I wanted to do was create a new CVS branch for my source repository - pretty easy stuff. Then I check out the latest branch as a release so that I can load it onto the server and update the existing DMCMS test installation.

Continue reading
1128 Hits

Admin Style

{jcomments off}This weekend I've been taking a look at the administration interface and how it is presented to the user. The admin interface is probably the biggest part of any CMS, even though it may actually be the least used. The age old addage is in full effect here - 'first impressions last', new users trying a CMS for the first time will be more impressed with how something looks rather than how it functions and will probably mistake an average interface for a good one if it looks the part. If the interface doesn't at least look capable, then chances are that the user will not give it more than a cursory glance before moving on to the next demo.

Part of my thinking whilst developing DMCMS was to keep everything very simple - to try and only use basic, compliant HTML / CSS and as little fancy effects and javascript as possible. Javascript has unfortunately been employed for a few functions, which I don't think is too bad, and for the most part there are no frills with the basic template supplied with DMCMS.

To try and create some kind of image to the Admin interface I have changed the way that it is presented. Some functions have been fused together and are now presented in a tabbed navigation structure. Javascript will be required to be enabled, but not absolutely necessary as the interface will still function without it - it will simply not look as good.

Bringing the different admin functions together into a more condensed interface acheives the goal of improving the first impressions factor tenfold: Rather than having to scroll down the page to see all of the different functions, the user can instantly see scope of what is controlled from within the interface.

Continue reading
928 Hits


{jcomments off}Latest offerings for the upcoming release is a better method of integration for 3rd party web applications (forums, wikis, etc. etc...). The current method using the phpBB integration file has been changed and will be known under a more generic name.

The basic method of useage is the same - the integration files is called from within the 3rd party application, the relevent DMCMS bits are created and then assigned to a local variable allowing the DMCMS parts (header and/or footer) to be seamlessly stitched into the 3rd party app.

It may be necessary to modify the 3rd party app so that the DMCMS header / footer replaces existing logos etc, but this is entirely down to you.

I revisited this a short time ago due to wanting to add the site footer onto the bottom of the forum, I've since revisited integration again as I have now included the DMWiki.

Continue reading
1015 Hits

No Sleep Until 1am

{jcomments off}The automated user registration is now up and running on my test server. There are still some things to iron out and a few features to add to make administration easier but the basic system is in place and working.

I'm currently working on the backup / alternate method of user account activation so that, if required, activation can be done by administrators - this is usefull in cases where there is no access to a mail server or where site admins like to personally check and manually enable all registrations.


1024 Hits


I just surfed across reCAPTCHA whilst researching some code for DMCMS. reCAPTCHA is a site developed to make better use of the 'Captcha' security devices utilised on most web sites. Captcha's are those pictures with distorted words that you need to type into a box to validate your submission when posting information on the web. They are used to prevent spam by trying to prevent automated scripts from posting information. The basic idea behind reCAPTCHA is that it uses Captchas to convert text scanned from books (the captcha picture) by validating and then storing the result - thus allowing books that cannot be recognised with OCR software to be converted into the digital format. A great idea!

I am currently looking into integrating reCAPTCHA into DMCMS for user comment validation

984 Hits

New Features On Their Way

{jcomments off}Work has been progressing towards the next release of DMCMS which will likely be another major revision due to the amount of changes that have happened.

The template parsing methodology has completely changed, gone is the fixed layout and instead in it's place is a template based layout system that allow layouts to be configured within the template itself. configuration variables can also be set within a template configuration file allowing complete freedom to template writers.

The user commenting system is also now up and running, in fact the only thing stopping the next version from being released is the incomplete user admin system which is currently being finished off.

As usual I have discovered more IE related issues, this time relating to the layout, it's only a small bug and will be fixed by release time.

I have also spent some time tidying up the code - although there is still a lot to do.


965 Hits


{jcomments off}DMCMS.0.7.0.BETA is very nearly here. The files are finished and uploaded to SF.Net's servers but I just can't seem to add them to the download section.

It might be my dodgy wireless internet card :cry:

Hopefully I can finish the job when I get home later on.

The 0.7.0.Beta update is a major update from the previous version (hence it's jump from version 0.6.X to 0.7.X) practically all of the files have been changed. The changes are mostly to address problems with how the site is rendered in Internet Explorer. which for the most part I have not taken care of due to mostly developing in Firefox.

Hopefully now I have stopped alienating IE users by actually releasing something they can see/use the site traffic should go up and someone might actually join the forum.


All current bugs have been fixed in this version and some feature requests have also been incorporated. The main outstanding feature of user commenting has been postponed until a later release so that this release could be issued in a timely manner, work is already well underway on getting the next release finished.


1090 Hits

IE6 Display Issues

{jcomments off}It's just come to my attention that there are a few issues for Internet Explorer 6 users. This is mainly that the drop down menus do not work. A fix is being worked on at the moment, it will hopefully be ready for the 0.6.5 release this week.


908 Hits

Mac Database Client recent project using a remote database server forced me to go looking for a suitable database client for my Mac. Previously i had used EMMA on Linux, but as I only has my macbook to hand I decided to have a look into what was available.

A quick google turned up Sequel Pro - an open source project -

Sequel Pro is a very capable tool, that works flawlessly, it supports SSL connections and had a wide range of encoding options. The layout is instantly familiar to anyone who is used to using phpMyAdmin, and the interface is pretty intuitive to use.

The query editor allows easy query management with both a history feature as well as a favourites menu to keep track of your more frequently used querys, this alone is a great feature for anyone who needs to use the same querys over and over. The query editor also provides basic text editor functionality and syntax highlighting to make life a littel easier, it also includes auto complete.

Overall, if you need a remote database client, or simply want to use something other than phpMyAdmin, I would reccomend Sequel Pro. A great application, at a great price.

Continue reading
2760 Hits

IE6 Display Issues Fixed

{jcomments off}The IE6 display issued have been traced to a simple spelling mistake (actually incorrect case on one character in a javascript function). The site has been updated but the fix will not be available until the release of version 0.6.5.beta.

Work on 0.6.5.beta is currently progressing at a very fast rate, it is anticipated that it will be ready by the end of this week. Both the site and the demo site have been updated to the latest development ;evel.

The Demo site is now also using the DMCMS template. There are still some issues to sort out with the template (mostly relating to IE6 not being able to correctly display PNG transparency) these will be addressed before the 0.6.5.beta release.

For those of you who cannot wait until then for the IE6 drop down menu bugfix - simply make sure the term 'sfhover' is all lower case in the following files - /templates/.../banner.tpl & /templates/.../css/default.css

Also, for those who cannot wait for the rest of 0.6.5.beta - all current changes are commited to the CVS repository - so you can checkout your own version.



933 Hits