ContentFull

Graphviz(dot) font problem on mac

Sunday, May 11th, 2008Hints & Tips Terminal

If you happened to have installed graphviz without first installing fontconfig (one is never told to do so, but supposedly one should) then you are probably seeing messages such as

Error: Could not find/open font : Times-Roman

To solve this annoying error you need to add the following extra parameter when calling any graphviz program

-Gfontpath=/System/Library/Fonts

Unexpected hummor in error message

Thursday, January 3rd, 2008Hummor Programming

While working with PHP4 thinking it was PHP5 I received the following error message

Parse error: parse error, unexpected t_paamayim_nekudotayim

Exactly, what on Earth does t_paamayim_nekudotayim mean?!
Answer: Hebrew for two (paamayim) colons (nekudotayim). More compilers and interpreters should incorporate humor into their products for it makes errors and hair-pulling situations much more relaxing.