If you’re working with XML, as I currently am, XSLT can sometimes be a godsend. Something that would take ages to do in a structured, procedural way can be reduced to two or three lines of functional XSL code.
So it was with a growing sense of consternation that I noticed that adding XML namespaces to the original document seemed to break XSL’s ability to recognise elements! Consider:
<elem/>
Don’t get me wrong: I think that Stallman has contributed massively to the open-source movement. But Tim O’Reilly is right: he simply doesn’t get the problem that closed web services present. I think talking about open access to the data is missing the point too. Often I’ve no wish to access the raw data, and couldn’t understand if I did access it.
I couldn’t find this on the Goggle, so: if your Coldfusion template occasionally furnishes you with the unhelpful, lineless error:
can’t load a null
then this might be caused by the following. You may be trying to compile a function using something like this code:
Adding a helper framework that lets you unit-test your code can speed up development and refactoring no end. With this in mind, I decided to tame a recalcitrant new Coldfusion application by installing cfcUnit on my local Linux box. It was a sufficiently awkward experience that it’s worth sharing the problems I encountered here. I should stress that the safety cfcUnit brings to your coding is definitely worth these minor difficulties, so don’t let them put you off.
1. Requirements
A recent thread on the Drupal development list (started by me, I confess) led to Larry Garfield publishing his development environment online.
These have arisen in my recent workshops, and during programming....
Do you bank online? How are you asked for your secret code? Three randomly placed digits of it, hmm? The reason for the randomness is that any malicious keylogging software can’t see your screen, just your keyboard: so even if it logged every time you banked online, the fraudster it reported back to could never guess the order of the numbers in your secret code and hence the code would be useless.
The LAMP-stack community frequently shows their disdain for foreign and primary keys in databases, and sometimes with reason borne of experience. MySQL historically has been little more than a nice language for comparing a set of unrelated spreadsheets, so referential integrity has had to happen at the application layer or not at all. As such, careful MySQL users put a lot of work into ensuring referential integrity, without the help of the database.
To rename columns in a SQL Server database, you can use sp_rename. The syntax of the command, in Transact-SQL-ese, is:
sp_rename
[ @objname = ] 'object_name' ,
[ @newname = ] 'new_name'
[ , [ @objtype = ] 'object_type' ]
So say you have a table called t_est, with a column in it called est_client. You want to rename these to t_job and job_client respectively.
Lurking in a dry, legalistic and apparently quite specific page on the Drupal website, is the commendable result of a lot of hard work, both from the the Software Freedom Law Center and from the Drupal community.
Drupal.org have produced a Licensing FAQ to explain some of the subtler aspects of licensing under the GPL.