October 27, 2011
Via careful use of nroff directives and comments, it’s possible to make a Ruby script that works both as a command line utility you can run, and as a man page. It’s a floor wax and a dessert topping. This is handy, as it means you can distribute both the utility and the documentation in [...]
Filed under: Ruby |
Comments (0)
September 19, 2011
Using NotesViewEntryCollection to iterate through NotesViewEntry objects? You shouldn’t be. Here’s the new way to do it…
Filed under: Domino, LotusScript |
Comments (0)
September 19, 2011
A quick FYI: IBM DB2 9.7 isn’t compatible with DB2 9.5 or 9.1 servers by default. The symptoms of the incompatibility are that some (but not all) queries result in an error which looks like: SQL0805N Package “NULLID.SQLC2H21 0X4141414141504161″ was not found. The solution is that the servers must be made compatible with the newer [...]
Filed under: Java |
Comments (0)
July 19, 2011
How to get your IBM Lotus Domino server to send its logs to syslog.
Filed under: Domino, Linux, Ruby, System administration |
Comments (0)
July 1, 2011
I think this may be the best JavaScript error I’ve ever been given: Uncaught TypeError: Object [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object [...]
Filed under: JavaScript |
Comments (0)
June 7, 2011
Recent versions of DB2 have support for Unicode, if your databases are flagged as Unicode-enabled. This is a good thing, so you may have done it without thinking too much about the consequences. After all, i18n is good, right? Unfortunately there are some major snags to be aware of. In particular, in Unicode-enabled databases the [...]
Filed under: Java |
Comments (0)
April 27, 2011
I just became aware of an interesting JavaScript ‘feature’. The code y = x % 1; is equivalent to y = x – Math.floor(x); because ECMA-262 says: … the floating-point remainder r from a dividend n and a divisor d is defined by the mathematical relation r = n − (d * q) where q [...]
Filed under: JavaScript |
Comments (1)
March 29, 2011
When you have IBM Lotus Domino in your organization, sooner or later you come up with a requirement to move data between Domino and some other system–often a relational database. There are many ways to do this, and not much guidance is offered as to which to pursue, so here’s a summary of my own [...]
Filed under: Domino, Java, Linux, LotusScript, Programming |
Comments (0)
January 18, 2011
My attention was drawn to a trainwreck of a discussion on Reddit, which was triggered by another trainwreck of a discussion on an enterprise Java community web site. The vexed question: Is Java pass by value, or pass by reference? My short answer, carefully phrased: Java passes both object references and primitive types by value. [...]
Filed under: Java, Programming, Uncategorized |
Comments (0)
December 31, 2010
Recently on the ruby-core mailing list, someone asked why Ruby doesn’t have multi-line comments. I did a few searches, and didn’t find much discussion of the evils of multi-line comments. I thought it was common knowledge that they were a bad thing and a historical mistake made by Kernighan and Ritchie, but apparently not. So, [...]
Filed under: Annoyances, Java, Programming, Ruby |
Comments (2)