Separate Code from Layout

Don't mix PHP code and HTML in your scripts. There are several templating systems for PHP, one of which is the Pear package HTML_Template_IT. It is easy to use and allows the complete separation of HTML and code in your scripts, therewith making both the PHP code and the HTML easier to maintain.

Debugging LDAP operations on a Lotus Domino server

If you are trying to find out why your LDAP add (or search or delete) operations aren't working against a Domino directory, I warmly recommend setting LDAPDEBUG=7 in your notes.ini. You can also perform a log analysis. These are described in the Lotus knowledgebase for R6 here and here

Don't Pull


This picture reminds me of the very amusing account of the magic switch

NIIOMTPLABOPARMBETZHELBETRABSBOMONIMONKONOTDTEKHSTROMONT

I'm tinkering around with a small acronym database for internal use and glanced at the Wikipedia entry for acronyms where I found this lovely Soviet initialism:

The laboratory for shuttering, reinforcement, concrete and ferroconcrete operations for composite-monolithic and monolithic constructions of the Department of the Technology of Building-assembly operations of the Scientific Research Institute of the Organization for building mechanization and technical aid of the Academy of Building and Architecture of the USSR.

I wonder how that is pronounced… :-)

Less is More

When coding, ensure that your program requests only as many resources as are required by the application. A small C program I wrote which assists during automagic installation of Lotus Notes R6 clients, queries the registry to find the installation directory, using RegOpenKeyEx(hive, path, 0L, KEY_ALL_ACCESS, &hKey).

We then discovered (obviously), that the program doesn't run correctly when invoked by and end user, if group policies limit access to the Windows Registry. Obviously: the fourth parameter to the RegOpenKeyEx function should be KEY_READ at most, if you only want to read. Duh!

You have been warned!

Don't click on the image.
Tchibo

Google facts

Google facts

The prime reason the Google home page is so bare is due to the fact that the founders didn't know HTML and just wanted a quick interface. Infact it was noted that the submit button was a long time coming and hitting the RETURN key was the only way to burst Google into life.

via

Nagios rocks

We've been using Nagios for just over a year, monitoring just over 1500 systems, the largest of which is a Z/OS mainframe and the smallest is a POS terminal (actually, the smallest are probably the printers). The 5.700 service checks for these productional systems include such for SMTP, LDAP, HTTP, disks, CPU and quite a number of custom made checks. Apart from the fact that Nagios is FLOSS, the beauty of the program is the simplicity with which the most exclusive of wishes can quite easily be implemented by writing a new plugin in almost any desired language. Je repète: Nagios rocks.