Compound Theory

v2.0

Categories

  1. Transfer
  2. ColdFusion
  3. JRuby
  4. Java
  5. ColdSpring
  6. Squabble
  7. JavaLoader
  8. ColdDoc
  9. 2ddu
  10. AsyncHTTP
  11. OO Analysis and Design
  12. Flex
  13. Railo
  14. XML / XSL
  15. Hibernate
  16. ColdFusion Builder
  17. Fall
  18. Ubuntu
  19. XHTML / CSS
  20. Eclipse
  21. Git
  22. Oracle Database
  23. Usability / UI Design
  24. webDU
  25. cf.Objective()
  26. LWJGL
  27. cf.Objective(ANZ)
  28. Captcha
  29. MAX
  30. Melbourne CFUG
  31. Martial Arts
  32. Random Things
  33. Conduit

Recent Posts

Projects

Recent Comments

19 October 2004 09:46 AM 3 Comments

CFEclipse Presentation on Thursday For CFUG Melbourne

Just a note to let anyone who doesn't know -

I'm doing a presentation this Thursday to the Melbourne CFUG on using Eclipse as a IDE for developing ColdFusion.

To c/p from the notice that was sent out to the CFAUSSIE mailing list, I will be presenting:

I will basically be taking a clean computer - and installing Eclipse, and then going through installing plugins piece by piece, so if you are new to Eclipse, it should (hopefully) leave you with a good idea about how to set up Eclipse for yourself as a good IDE for developing ColdFusion - which can be a bit of a hurdle if you have never used Eclipse before.

The plugins I will be installing (for reference)

I hope to see some people there!

15 October 2004 11:43 AM 11 Comments

Javascript escape() and UTF-8

Something I came across today when dealing with Chinese languages -

the javascript escape() function only works for ASCII characters, so if you are using another language things tend to go wonky pretty quick.

The function you want to use is encodeURIComponent() which will handle Unicode quite happily.

For a bit more reading: WorldTimZone's article on UTF-8 encoding for older browsers.

 

08 October 2004 11:42 AM 29 Comments

CASE in ORDER BY statement

This was one of those things where I've just gone 'I wonder if this works..' and strangely enough it DID!

Situation was something like the following (okay - something is a very broad term, because it wasn't really like this at all) -

I have a document management system - and each document has a document_createdDate and a document_releaseDate - however if the user chose to release a document 'Now' the document_releaseDate would be set to NULL.

So when I went to order a document list by document_releaseDate, obviously that would be rather hard, as values could be NULL in a date list.

So I figured - why not sort such that, if is document_releaseDate is NULL, then sort by the document_createdDate - that would provide a able solution to my sorting issue.

Then I discovered I could put CASE statements into my ORDER BY clause - and that made things real easy - e.g.

select *
from
tbl_document
order by
case
WHEN document_releaseDate IS NULL then
document_createdDate
else
document_releaseDate
end DESC

And presto - a conditional sort! Of course there are other ways to solve the same problem, but I thought that was nifty.

This was done a Oracle 9i database.