Skip to content


E4X giving ‘not working’? Check the namespace.

If you are trying to run some e4x and getting no results, the problem may be that the XML you are working with is namespaced.

http://dispatchevent.org/roger/using-e4x-with-xhtml-watch-your-namespaces/

Posted in Development.


Rename partial files – command line

http://hints.macworld.com/article.php?story=20010509130450691

Posted in terminal.


OS X svn reference

To check out, navigate to target directory and:

svn ci "[repos uri]"

To add files to project, navigate to parent directory and:

svn add *

svn add [file and or directory path/names] works, as well, if you want to target a particular directory or file.

Also, the process will stop once it hits a file that is already under version control (this may be a new behavior in Lion). So, you have to add the –force argument:

svn add * --force

Discussion at StackOverflow.

To delete files:

svn delete or svn rm

To specifically target files that are missing (svn status prints them with a ‘!’):

svn rm $( svn status | sed -e '/^!/!d' -e 's/^!//' )

Found that here.

To commit files to project, navigate to parent directory and:

svn ci -m "[commit message]" [file and/or directory path/names]

To update:

svn update

Posted in Development, terminal.


Scripting Photoshop

Scripting Guide

Javascript Tools Guide

Javascript Scripting Reference

Posted in Development.


iceFaces and jQuery: colons in iceFaces ids breaks jQuery

iceFaces generates id values for all iceFaces tags, and the id values look something like this:

mainContentForm:j_idt117:1:j_idt118

If you want to select a given element, or set of elements, by id with jQuery, good luck – jQuery will break on the colons.

This means that anything you want to select by id requires an additional div/span wrapper that exists solely for providing a readable id value.

Posted in Ouch.


iceFaces and JS: loops break

I’m working on an iceFaces project at work – mostly just applying style, but some minor logic when needed. On a recent go-round, I found that JS written into a