Monday, March 11, 2013

three.js picking

when experimenting with three.js I had abit of a problem getting picking to work with a model loaded via the THREE.OBJMTLLoader loader.
the solution was to pass true in raycaster.intersectObjects( scene.children ,true);
so picking would recurse over the child objects as well.

Monday, March 04, 2013

php apache segfault

Had some weird segfaults in an apache/php segfaults. used to work.
  "child pid 1551 exit signal Segmentation fault (11)" in the logs,
connection reset by peer or only half a page getting transmitted etc.
The problem was that somehow both php-pecl-memcache and php-eaccelerator got installed.


selenium "Couldn't delete cookie"

Selenium is a great tool for testing websites. Ran into one little problem though: It doesn't like cookies without a name - those cause it to fail deleteAllVisibleCookies with "Couldn't delete cookie".
Took me a bit to figure out about the unnamed cookie. Helped me find another bug there.