vrijdag 30 oktober 2009

iphone itouch

errorconsole.log('Something'); console.error('Oops'); console.warning('Beware!'); linkshttp://articles.sitepoint.com/article/iphone-development-12-tips/1

maandag 26 oktober 2009

nieuwe regel in dos of unix

Nieuwe regel enter is verschillend in UNIX of DOS unix: /n 0x0d dos: /n/m 0x0d0a dos document in unix geeft ^M aan het einde van de regel Emacs Emacs herkend of het een unix of dos document is en zet het document in (DOS) mode verwijderen Edit -> Find ->Find dos mode -> unix mode M-x set-buffer-file-coding-system RET and choose `undecided-unix'

vrijdag 23 oktober 2009

loadString

list.txt: a 1 b 2 c 3 String lines[] = loadStrings("list.txt"); println("there are " + lines.length + " lines"); for (int i=0; i < lines.length; i++) { String aap[] = split(lines[i]," "); String tekst = aap[0]; int aantal = int(aap[1]); println(tekst); println(aantal); }