Using Multi-Byte Character Sets in PHP (Unicode, UTF-8, etc)
Development Resource Project
Using PHP pspell Spell Check Functions with a Custom Dictionary
A Simple ISAPI Filter for Authentication on IIS
Microsoft Office Open XML
Dynamically Adding Elements to a Form with JavaScript
Most web forms are static, as it's known in advance exactly what fields the form should show. In some cases however, you need a form that permits the user to enter a variable number of fields. Using JavaScript, you can add a button which the user can press when they need extra form fields. The button must trigger a JavaScript function to add the extra elements using the JS DOM.
Making Multiple Simultaneous Requests with AJAX in JavaScript
This article looks at how we can iterate through a set of different items on a page using JavaScript, and get further information on each in the background via AJAX. Once the AJAX calls get the extra information, we can update the items on the page. What is different about the approach shown here to others you may be accustomed to is that multiple AJAX requests are made simultaneously, allowing us to retrieve information for an indeterminate number of page items at once, allowing us to keep multiple content zones independently updated.
Graphs and Charts in PHP using PEAR Image Graph
There are many 3rd party solutions out there for drawing charts and graphs in PHP. Some are a little ropey, many are over-priced (particularly for commercial users). My research into what is available boiled down to the Image_Graph package in the PEAR repository, and a PHP class called PHPlot from a guy named Miguel de Benito Delgado. Miguel's code offers the benefits of compactness - you only need add a single PHP file to your site in order to use his drawing functions. This single file defines the PHPlot class, and is admittedly over 4000 lines long. To draw charts with PEAR on the other hand, you need all the associated base PEAR classes, and set up is a fair bit more drawn out. However, the PEAR solution is considerably more versatile allowing a huge range of charts.
Selected JavaScript Fun and Goodness
Here's a sample of JS code for allowing users to choose multiple items from a list of available options. There are many examples of code like this, however this example has the enhancement of keeping the lists well organised. To do this, we need to find the parent OPTGROUP that contains a selected OPTION, and we also need to insert a new OPTION in a specific OPTGROUP of a SELECT list.
Useful Ubuntu Linux Commands
Linux commands can be far from intuitive, with files related to a single application seemingly scattered throughout various locations, such as usr, bin, etc, var. This can make it difficult to recall how to invoke certain essential but not every-day commands. This page lists these commands in a single place.
Installing and Configuring Zen-Cart
Zen Cart is an Open Source e-commerce solution. It includes an admin CMS, which allows a non-tech end-user to change many options on their site. This article looks at the low-level tasks that must be completed before a site is ready to be finalised by the end-user.
Reformat PHP code with Dreamweaver
Dreamweaver's support for regular expressions in search and replace is immensely powerful and useful. It makes otherwise tedious replacement tasks a breeze. In this article, a few expressions for some useful search / replace tasks are illustrated. Dreamweaver's regular expression search and replace is particularly handy for developers because you can do multi-line search and replace, and you can seach and replace over an entire site or selected files in the site at once.
MySQL's Greatest Date and Time Functions
A quick run down of MySQL's date and time functions. These can be a little confusing, and there is a little overlap between several of them. This article looks at the most useful ones. Note that in all the following functions, "date" denotes a column which can usually be of DATE, TIME, TIMESTAMP or DATETIME type.
Could a Machine Fix Errors in its own Rationality?
This question was one I chose to tackle during my University degree, as part of a Philosophy of Cognitive Science module. The assessed component involved devising a suitable question to use as the subject of an essay. Rather than trying to answer the question, students were required to propose six possible theories which might apply.
Play.com
Are you a UK ebayer? If so, never buy any music, games or DVDs without checking the price on play.com first. Based in Jersey, Play can sell most of their products VAT free, and consequently offer lower prices than just about anywhere else. <click to read more...>
Animated Optical Illusion
This optical illusion is pretty neat: it's a very simple animation, and when you first look at it you should see a ring of pink circles. One of the circles is missing, creating a gap - this gap appears to be moving around the ring. <click to read more...>
'How Cars Work' Guide
Well-written and presented guide to some technological areas relating to modern cars. The text is concise but backed up with plenty of good diagrams. <click to read more...>
'As-you-type' Domain Name Checker
Handy for quickly checking out domains. As you type each letter, the availability of 5 or so TLDs (.com, .org etc) is displayed.
Time to get busy with MySQL
Very basic introduction to MySQL's date functions. MySQL has 40-odd functions for manipulating dates - this article only looks at a couple of them. <click to read more...>
More hidden secrets of MySQL
MySQL has a built-in data type, FULLTEXT, especially designed for use with searches. Quite how it works I don't know, but the manual page linked above is pretty thorough as you'd expect. <click to read more...>
Newgrounds - Everything By Everyone
This site is one of the most popular existing sites for entertainment, with a forum, a flash area, and an audio area. Newgrounds gives you the chance to vote for your favourite movies and games with its voting system and when they are first submitted, you can choose to vote for them or against them. <click to read more...>
The Elegant Universe
"The fundamental particles of the universe that physicists have identified—electrons, neutrinos, quarks, and so on—are the 'letters' of all matter. Just like their linguistic counterparts, they appear to have no further internal substructure. <click to read more...>
Introduction to WINE
I was pretty skeptical of WINE up until I tried it. It seemed unlikely that a fake Windows could be able to cope with any degree of reliability or performance. <click to read more...>
About This Page