Happenings

PHP Challenge #4

Welcome to another PHP challenge! This time we’re looking at something fundamental to all programming languages (for practical purposes: sorting. I want a script that takes in an array of strings and sorts it (the strings will probably be filenames without paths). The rules?

  • You must not use any of PHP’s predefined sorting functions,
  • It must be case-insensitive (“imagic – 1” and “ImAgic – 1” are the same thing) but preserve case structure in the returned array,
  • All scripts must return a sorted array and be named CISorter,
  • All functions submitted are considered public domain and hence can be reproduced and used with or without credit to anyone by anyone (so no bitching if someone rips off your script after the challenge finishes),
  • The winning script will be archived here for prosperity and to help others,
  • New rules may be added here at any time and my decision is final,
  • All functions should be submitted to solitude@vkps.co.uk,
  • The deadline for all entries is 12pm GMT on the 26th March 2003,
  • The winning script will be the one deemed the most efficient (mostly based on time efficiency but, if two entrants are close, spacial efficiency will be looked at.

Hope this one is challenging and can be reasonably done (unlike the last one). Good luck!

Success Or Failure

I’ve partially fixed the problems outlined in the article, “Failure”. Unfortunately a new one has creeped up: I can’t delete or edit any files at all. The last post I made was a test to check if everything was working. I can’t get rid of it. Very frustrating.

The changes that work (hopefully) are:

  • The RSS has moved. To find it, either use standard auto-discovery or click the orange XML button on the navigation bar. This was done to facilitate future changes that are in motion,
  • I finally added an accessibility statement to the site. This has been done for a long time but I didn’t have a link to it. Read at your leisure,
  • The archives still work but, since updating, are a bit twitchy. If you notice anything odd, notify me.

I’m also going to be gone for a few days; probably Tuesday before any more updates are available. The next PHP challenge should go live around then too.

PHP Challenge #3 Update

For those waiting on responses regarding PHP challenge #3, my apologies. I’ve been too busy to reply properly. This will be rectified by this time tomorrow! I’ve set a deadline now, so I’ll have some motivation to meet it. Most likely, I’ll extend the challenge deadline by a few days to allow for the amount of time I’ve not been answering people with regards to the challenge. Watch this space and the challenge entry itself for more details.

UPDATE: I’m abandoning this challenge. Too many different configurations of server exist (among other factors) for this to work properly all the time. Since the point of these challenges was to test people and provide code to the public (hence everything submitted is public domain), and I can’t helpfully do either, it’s over. Apologies to the people who submitted scripts already. I hope this unfortunate incident won’t stop anyone joining in next time.

Google Graphs

The Google Browser is a fantastic Java applet that takes in a URI and returns a graph of related sites. Related sites comes from the Google index of related sites e.g. here are the related links for this site.

I’m not entirely sure how Google creates this related list, but it doesn’t really matter. Try out the Google Browser to see some bouncy graphs.

The Internet Is Stupid

World Of Ends is a site talking about why the simplicity of the net is its strongest “selling” point.

By keeping all of the detail out of the lowest belly of the internet (the Internet Protocol), we can build all kinds of complex (or simple) systems on top of it, without going to stupid lengths.