A while back ago I realized the importance of variable types and code optimization. I was working on an interactive installation using an Arduino and a Mac Mini. The Mac was communicating with the Arduino through an XMLSocket and was getting data probably about one hundred times per second. The first version of the datahandler [...]
A code snippet I tend to use quite often. And one that I tend to forget how I wrote the last time i used it.
A useful little snippet of code for when you want to copy text to the clipboard: Where source is the id of e.g. a text field.