UK Companies Act 2007

General No Comments »

Limited companies in the UK must include certain regulatory information on their websites and in their email footers before 1st January 2007 or they will breach the Companies Act and risk a fine.

Whether in hard copy, electronic or any other form:

A company must state its name, in legible lettering, on the following -

  • all the company’s business letters;
  • all its notices and other official publications;
  • all bills of exchange, promissory notes, endorsements, cheques and orders for money or goods purporting to be signed by, or on behalf of, the company;
  • all its bills of parcels, invoices, receipts and letters of credit
  • on all its websites

On all of its business letters, order forms or any of the company’s web sites, the company must show in legible lettering:

  • its place of registration
  • registered number
  • its registered office address
  • and if it is being wound up, that fact,

Whenever an email is used where its paper equivalent would be caught by the stationery requirements then that email is also subject to the requirements

The above also applies to Limited Liability Partnerships.

Above information taken from http://www.companieshouse.gov.uk/promotional/busStationery.shtml

This regulation seems to have come out of nowhere - but it is true, no wind-up or early April fools. The important part to note for webmasters is:

For websites, contrary to the fears of some, the specified information does not need to appear on every page. Again, many websites will already list the required information, perhaps on their ‘About us’ or ‘Legal info’ pages.

As quoted here: http://www.out-law.com/page-7594

Get your site updated!

Cron for Windows IIS

General No Comments »

First, a lesson in the real implementation of cron

The crontab command, found in Unix operating systems, is used to schedule commands to be executed periodically. It reads commands and collects them into a file also known as a “crontab” which is later read by the operating system which carries out the instructions contained within.

One of the most useful cron commands, particularly from a web developers point of view, is the ability to call up a webpage silently, in the background, at intervals or at a specified time. Think of the possibilites:

  • Running a routine check on users in a database (deleting inactive accounts for example)
  • Scheduling an email, several days after a user has purchased an item from a site
  • Checking a site is functioning correctly

So how can you get Windows to perform cron-like tasks?

It’s very simple once you know how - which I do, you’ll be happy to learn. You have probably found that several web sites offer programs that cost around $100 that promise to emulate cron. Don’t bother; especially if all you want to do is call up a web address.

This is how you do it…

  1. Download wget (GnuWin32 is a good, clean, harmless one)
  2. Install wget
  3. Fire up the command line (Start > Run > then type “cmd”)
  4. Run a command as shown below:

schtasks /create /tn "Test Cron" /tr "C:\wget.exe http://www.site.com/cron.asp" /sc minute /mo 5 /ru "System"

Where

“Test Cron” is the name of your cron job (useful for reference purposes)
“C:\wget.exe” is the location of the wget.exe file
“http://www.site.com/cron.asp” is the URL for wget to fetch

More Examples

Let’s take a look at some more examples, that way you will understand the different options available…

Run a cron job every week

schtasks /create /tn "Test Cron" /tr "C:\wget.exe http://www.site.com/cron.asp" /sc weekly /ru "System"

Run a cron every week on a Friday

schtasks /create /tn "Test Cron" /tr "C:\wget.exe http://www.site.com/cron.asp" /sc weekly /d FRI /ru "System"

Run a cron every friday at 11:00am

schtasks /create /tn "Test Cron" /tr "C:\wget.exe http://www.site.com/cron.asp" /sc weekly /st 11:00:00 /d FRI /ru "System"

Run a cron every day at 17:00pm

schtasks /create /tn "Test Cron" /tr "C:\wget.exe http://www.site.com/cron.asp" /sc daily /st 17:00:00 /ru "System"

Run a cron every hour, on the hour

schtasks /create /tn "Test Cron" /tr "C:\wget.exe http://www.site.com/cron.asp" /sc hourly /st 00:00:00 /ru "System"

So what’s happening exactly?

Well, all your are doing is utilising Windows’ “Scheduled Tasks” program - using a command line interface, which I find easier to use. If you have installed wget and ran one of the commands above, you will be able to see your cron in action by going to “Start > Programs > Accessories > System Tools > Scheduled Tasks”.

And of course, your not just limited to fetching URL’s (using wget) - you can also execute a whole load of other programs - providing you know the right commands (or parameters, or both)!

The best thing about this Windows Cron method is you don’t need to have access to your web server for it to work - just any PC that is connected to the Internet (note: it needs to be connected when the Cron is scheduled to “fire”!). It’s also free and, because it runs as standard in Windows, it doesn’t use up any additional memory resources.

I hope this has helped you out! :)

The alternative of course is to host on a linux server, like this great host offers

Web Standards Solutions

General No Comments »

Today my book arrived; Web Standards Solutions by Dan Cederholm.

I’ve read this book already (University was good for something at least - a well stocked library!), but I wanted to get a copy of it. I managed to get a copy for around £10 from Amazon Marketplace - and believe me, its worth every penny.

I’ve read dozens of books on usability, accessibility and web standards and have to say this is the best, from a technical perspective. Dan gives solutions to common CSS problems and discusses methods of overcoming them - giving the pro’s and con’s of each.

It’s the kind of book I would like to write - I would call mine “position:relative or height:1% usually fixes IE”.

PHPBB’s (lack of) Security

General No Comments »

If you own a PHPBB (www.phpbb.com), you will know how useless they are at preventing robots from signing up and posting links to spam sites.

The spamming on my board at CJ Webmaster Forums had become such a big problem, I decided to do something about it. Firstly, I updated to the latest version (2.0.21). I then installed “Anti-Spam ACP v1.1.0a” which disables the website/msn/icq/aol form fields on registration and to top it all off, I improved the CAPTCHA by installing a PHPBB “advanced” CAPTCHA that I found somewhere on Google.

The new CAPTCHA is so good, even I have trouble to figure out what the letters/numbers are:

I’d like to see them write an OCR tool to read that.

Introducing IE7

General No Comments »

So, IE7 was released on the 18th of October. Yes, I know the Beta has been out for some time now.

Naturally, the first site I browsed to was CJ Website Design only to discover the margins had messed up on all of the pages. I have fixed it now but it seems that IE7 is very strict with standards - and so it should be. The problem was, I wasn’t floating the containing element which had a margin set at 0, 5%. To fix it, I added another container for this container and floated the new container - problem solved in 2 mins. Now I am happy to report that my site looks great in all browsers; IE6, IE7, Firefox, Opera and the rest.

All in all, I’m quite impressed with IE7 - its basically Firefox with all the good things about IE6 built in and the bad things thrown out (fingers crossed - it is only day 1 of installation after all).

Welcome to my Blog!

General No Comments »

Welcome to my blog, I have no idea what to put here at this present moment I’m still figuring out WordPress.

I was looking for a decent theme earlier but had no looks so I’ll probably just make my own. I also want a calendar and contact form..hmm…

Anyway, stay tuned.


© James Crooke 2000-2008
Entries RSS Login