Monthly Archives: February 2009

Scripts to alter DNS settings

My NetGear router has been acting more and more weird the last months. I don’t really know why, but sometimes the DNS resolver inside just locks up and misbehaves something wicked. It would be a lot easier if it could just forward the DNS settings through DHCP, but it doesn’t do that, it just always [...]

Code folding in Netbeans PHP

I recently found out a tip that C#-style #region and #endregion-style declarations work in NetBeans for PHP too, although with a slightly different syntax. The trick was making it work in HTML, since I use it mostly for defining different sections of my .phtml templates, which can get pretty long: <? // <editor-fold defaultstate=”collapsed” desc=”JavaScript [...]