Useful Notes SmartIcons: Reformat text is my favorite  

By Daniel Nashed | 12/30/24 7:09 AM | Development - Notes / Domino | Added by Roberto Boccadoro

Notes formula are one of the lost arts. I am a big fan and have started to work with Notes at a time where we had no Lotus Script nor Java. Today formula language is still very powerful. I am using it in many ways including C-API and Lotus script. There are many @Commands for UI automation available. But there are also Lotus Script UI classes. The really cool part of formula language is that you can use the commands in SmartIcons. The following command selects the body text and sets the text to Default Sans Serif with 10pt. --- @Command([EditGotoField];"Body"); @Command([EditSelectAll]); @Command([TextSetFontFace];@GetMachineInfo ([EnvVariable];"NAMEDSTYLE1_FACE")); @Command([TextSetFontSize]; "10"); @Command([EditDeselectAll]); --- But there are more SmartIcons I use every day... .

Lotus Script - Check if a file or folder exists  

By Daniel Nashed | 12/13/24 9:01 AM | Development - Notes / Domino | Added by Roberto Boccadoro

There isn't a direct function in Lotus Script to check if files exist. Most of us have written a function like this multiple times as a helper. I am working on an application which will be available as open source soon and I needed one again... Here is a version of a check function, which should cover all cases and might be useful for you too. It doesn't handle hidden files -- I know. But I didn't want to add that logic.

Check the minimum client version for your Notes application  

By Daniel Nashed | 10/25/24 3:12 AM | Development - Notes / Domino | Added by Roberto Boccadoro

Notes provides new functionality in Lotus Script and there also Java classes added to the client. Lotus Script Named documents have been introduced in Notes/Domino 12.0.1. I have just written an application which needs a Java class which is introduced in Notes 12.0.2 as it turned out. So I came up with a simple check I am going to add to all my applications which use more current functionality. You can drop this code into the PostOpen script of any database and switch to the right constant

Pretty-Printing JSON in Notes Client and Domino  

By Daniel Nashed | 7/29/24 3:20 AM | Development - Notes / Domino | Added by Roberto Boccadoro

The Lotus Script class for reading and writing JSON is that easy. There are not many examples and some functionality is missing. JSON can be either condensed without any new lines and indentation. That's great when you use it for back-end processing or REST services. Why is pretty printing important But in some cases you need pretty formatted JSON. Specially when you want to maintain it manually and extend it. For example for Domino OTS JSON files :-) When you use JSON based configuration pretty printed JSON is very helpful. Condensed JSON is also difficult to check into Git. Everything looks modified when it is a single line.

Debugging program crashes with gdb on Linux  

By Daniel Nashed | 4/10/23 9:37 AM | Development - Notes / Domino | Added by Roberto Boccadoro

This bugged me for a while because I had no idea what was happening. One of my OpenSSL-based tools in C crashed once in a while. I was only able to find out once wrote my own small tool to check the server listener of my other application. The crash happened very intermittently in different places when I opened and closed the connection very quickly. Adding a delay of 1 ms stopped the crash. But if you are running a service on the internet with port scanners around, you better find out in detail. It turned out to be the SIGPIPE event causing my program to terminate. But the interesting part is how I found out about the crash.

Introducing Domino Container Script for Podman an Docker  

By Daniel Nashed | 1/18/21 1:30 AM | Development - Notes / Domino | Added by Andi Kress

This is a brand new script, which is the logical extension to the Nash!Com Domino Start script. A while ago I introduced Docker support for the start script inside the Domino container. It comes with an entry-point script we are also leveraging in out Domino Docker Github community script. This new script is intended to manage and run your Docker and Podman containers. It includes also a systemd script to run a Domino server on Podman in production using the new systemd options introduced in Podman 1.7+. Beside that it includes a simple framework to build and manage your own add-on images

Domino on Linux Start Script Sametime 11 support  

By Daniel Nashed | 1/18/21 1:29 AM | Development - Notes / Domino | Added by Andi Kress

Now that we have the Sametime Premium Meeting Server, there are more customers looking into Domino on Linux. In earlier days I had some issues getting the start script in combination with SLES working. So ST wasn't never on my support list.

Changed default Notes Client mailto: with attachment behavior in 11.0.1 FP1  

By Daniel Nashed | 8/20/20 9:29 AM | Development - Notes / Domino | Added by Andi Kress

There is a changed behavior with mailto: links for Notes Clients. Before this change Notes clients would allow attachments copied to the crafted mail message triggered by the mailto: link. With this change by default attachments are blocked. Here is an example: mailto:badboy@umbrella.corp?attach=c:\noclist.txt

Updated: C-API - NIFReadEntries with SIGNAL_MORE_TO_DO in combination with NIFFindByName  

By Daniel Nashed | 8/7/20 1:07 AM | Development - Notes / Domino | Added by Andi Kress

Yesterday I have been debugging an application issue in my sync tool. It was a very strange behavior which finally lead me to the following. This is only interesting for my C-API development friends in the community and if you use NIFReadEntries for more than 16351 entries you should check your application.

C-API Visual Studio 2017 Domino 10 and higher  

By Daniel Nashed | 5/31/20 3:15 PM | Development - Notes / Domino | Added by Andi Kress

Quite a long post, but I think important for many of my ISV friends. I will update my post once I get an official technote from HCL about this new compiler recommendation. This week I figured out that already Domino 10 is build with Visual Studio 2017 instead of the old Visual Studio 2010 SP1 (VS2010 SP1) compiler. For Linux we got the official info, that beginning with Domino 10 we have to switch to the GCC compiler CentOS 7.4.

Specifiying Notes.ini .location via =   

By Daniel Nashed | 5/20/20 12:43 AM | Development - Notes / Domino | Added by Roberto Boccadoro

The syntax of specifying the notes.ini via =/local/notesdata/notes.ini is a cross platform feature I was aware of. But I didn't know how deep this is hooked into the Notes/Domino code. For the Domino core server tasks and client programs this is build-in by skipping the parameter when it starts with a = And the core takes automatically care of it.

Converting Timedate Strings in @Forumula Language with different date formats  

By Daniel Nashed | 2/11/20 8:10 AM | Development - Notes / Domino | Added by Andi Kress

Maybe I am thinking to complicated.. But I did not find an easier solution .. I had an interesting issue yesterday when adding multi timezone and date-time format to my backup solution, because I cannot store everything in Notes native TIMEDATES. There are some text logs involved, when storing information about a backup. To ensure I have an unified format, I decided to change the internal storage to UTC (in Notes terms: GMT).

HCL Nomad V1.0.4 released  

By Daniel Nashed | 10/5/19 1:08 PM | Development - Notes / Domino | Added by John Oldenburger

There is a new iPad Application which has been released. This is the first version from HCL and Nomad V1.0.4 replaces the offering known as IBM Domino Mobile Apps. The new version also comes with some interesting new features.