Powerful searches in DDE: Regex for ‘all bar that don’t start with foo’

Regexes are wonderful. There’s a learning curve, and they are very cryptical to be able to read, let alone write, but once you get the hang of it they are wonderful. I was doing some refactoring and I wanted to see all instances of a function called ‘AddButton’ – and my results got saturated with … Read more Powerful searches in DDE: Regex for ‘all bar that don’t start with foo’

Leave Code in the state you would like to find it in.

It’s been one of my principles since I started being an independent developer. Much of my work is maintaining old codebases, and there are many horror stories that I could recount. The temptation is there to do a quick-and-dirty modification, a quick patch, but one should resist the temptation. Customers generally do not understand the … Read more Leave Code in the state you would like to find it in.

calling Word’s Find and Replace using LotusScript

There are two syntaxes to call OLE objects, one is using := like this: Set myRange = ActiveDocument.Content myRange.Find.Execute FindText:=”hi”, ReplaceWith:=”hello”, Replace:=wdReplaceAll Unfortunately LotusScript does not know how to deal with this, so you have to list the arguments exhaustively and in their correct order, including arguments which one does not really need. Usually I … Read more calling Word’s Find and Replace using LotusScript

Notes Client Performance optimization with Notes RPC Parser: new Version 1.0.13 available

A new version of the Notes RPC is now available for download. Have a look here: Lars Bentrop-Bos contacted me last week with a couple of bugs he had found in the application. Since I was already updating things, I made a large release, with many small improvements that I had been thinking of: New … Read more Notes Client Performance optimization with Notes RPC Parser: new Version 1.0.13 available

NSF/NIF transactions : Names which appear in the Debug_Outfile.

Buried deep inside neterr.h is this gem of a table: /* Strings which are the names of the various NSF/NIF transactions. Used to display them for debugging (CLIENT_CLOCK). */ #define STR_GET_MULT_NOTE_INFO_UNID_RQST PKG_NETWORK+144 stringtext(STR_GET_MULT_NOTE_INFO_UNID_RQST,”GET_MULT_NOTE_INFO_BY_UNID”) #define STR_ASYNC_NIFOPENNOTE_RQST PKG_NETWORK+145 stringtext(STR_ASYNC_NIFOPENNOTE_RQST, “ASYNC_NIF_OPEN_NOTE”) #define STR_ASYNC_READ_ENTRIES_RQST PKG_NETWORK+146 stringtext(STR_ASYNC_READ_ENTRIES_RQST, “ASYNC_READ_ENTRIES”) #define STR_ASYNC_CANCEL_RQST PKG_NETWORK+147 stringtext(STR_ASYNC_CANCEL_RQST, “ASYNC_CANCEL”) #define STR_ASYNC_OPEN_NOTE_RQST PKG_NETWORK+148 stringtext(STR_ASYNC_OPEN_NOTE_RQST, “ASYNC_OPEN_NOTE”) #define STR_ASYNC_READ_OBJECT_RQST … Read more NSF/NIF transactions : Names which appear in the Debug_Outfile.

LotusScript Comment Templates for lsdoc.org (aka LotusScript.doc, aka Javadoc for LotusScript)

I am a big fan of Mikkel Heisterberg’s lsdoc.org for automatic help-page generation for LotusScript code. If you are not familiar with lsdoc.org, it’s similar to javadoc, but for LotusScript. Ever since the advent of Code Templates, I’ve been using lsdoc-compatible syntax for my comments, and I wanted to share it with you here: Comment … Read more LotusScript Comment Templates for lsdoc.org (aka LotusScript.doc, aka Javadoc for LotusScript)