Writings mostly about Lotus Notes/Domino...by me :
Jesper Kiaer

Looking for a Notes/Domino developer? I'm available


RSS 2.0 Feed
Bookmark and Share
Creating a folder from a view design, easy right?
You would think that it would be possible to create a folder from a certain view design in LotusScript, right?.

Creating a folder in LS is very easy:

  Setdb=session.Currentdatabase
 db.Enablefolder(
"MyNewFolder")

But where does the design come from? The default view?

I haven't checked, but it is very clear that there should of course have been another parameter in the
"EnableFolder" call indicating which view the folder should be created from to make it any useful.

Fortunately there is an undocumented call to fix the problem. From version 5.03 a hidden formula function exists:

@UpdateViewDesign("foldertarget";"viewsource")

So by calling:

Dim session As New NotesSession
Dim db As NotesDatabase

Setdb=session.Currentdatabase
db.Enablefolder(
"MyNewFolder")
Evaluate(|@UpdateViewDesign("MyNewFolder";"SourceView")|)     

the folder is "created" from a sourceview.

Published by: Jesper B. Kiær at 28-06-2010 00:01:00 Full Post

Nice when your kids still think your are a hero
Yesterday I was ranked by my young sons (age 6 and 7) to be the best guitarist in the world!


This is their ranking:

1. Me (Dad)
2. Eddie Van Halen (Van Halen)
3. Tim Christensen (Dizzy Miss Lizzy)

That warms my heart :-)

I few strokes ....and anyone else would question this ranking I am sure .... :-)

Published by: Jesper B. Kiær at 31-05-2010 23:53:49 Full Post

SMTP Server: Listener failure: bindsock is missing
Suddenly my Domino server wasn't receiving mail anymore.


I had upgraded from Centos 5.4 to version 5.5 via Webmin. It all went well.

This morning I found out to my surprise, I was not receiving mail anymore, so I looked in the Log database.

ERROR: bindsock' helper application is missing, not executable, not setuid root, or no sticky bit set
SMTP Server: Listener failure: 'bindsock' is missing, not executable, not owned by root, not setuid root or user needs net_privaddr privilege.

I quickly did a Google search which indicated that Sendmail could be the issue.

And yes it was. The Sendmail had been re-enabled as a startup service and was "Bogarting" the SMTP port.

Annoying!

Why are Centos (Red Hat) setting Sendmail to start at boot when it was disabled?

I thought it was only "the another company" who would do such a stupid thing...

Published by: Jesper B. Kiær at 20-05-2010 09:53:38 Full Post

Those where the days, when RNext, Garnet was coming out soon and everything look shiny and bright

Sorry,.. just a flashback.... when I stumbled upon these old presentations.....

DevCon 2001 - TS108 Domino Designer Rnext A Quantum Leap for Domino Development.pdf
DevCon 2001 - TS108 Domino Designer Rnext A Quantum Leap for Domino Development.pdf


DevCon 2001 - TS113 The Architecture of the New Web Programming Model in Rnext.pdf
DevCon 2001 - TS113 The Architecture of the New Web Programming Model in Rnext.pdf

DevCon 2001 - TS104 Building Rnext Domino Applications Using Layers & CSS (Cascading Style Sheets).pdf
DevCon 2001 - TS104 Building Rnext Domino Applications Using Layers & CSS (Cascading Style Sheets).pdf

DevCon 2001 - HC114 Tools and Tips for Working with JSPs in Rnext.pdf
DevCon 2001 - HC114 Tools and Tips for Working with JSPs in Rnext.pdf

Published by: Jesper B. Kiær at 02-05-2010 15:37:41 Full Post

8.5.2 - loosing my working sets completely
I have installed the 8.5.2 Beta on 3 computers. All 3 went well, but when I opened the designer yesterday one of them, the working set just looked like this. ...




and all the working sets were gone and this error message was shown...

Maureen Leland suggested that I renamed the workplace directory and the Designer would start again, but all the workings sets and other things would be gone.

It is a Beta version I know.....but still not a nice thought though...

Why does the designer not keep a simple xml file containing simple information for each application in the working sets like

dbpath, rep. id, server, working sets.

If anything goes wrong like this, it would be possible to rebuild the working sets form scratch again from push of a button.

Published by: Jesper B. Kiær at 23-04-2010 14:23:37 Full Post

Annoying Windows bug,feature,limit : Directory name is too long - and the fix.
One day I discovered that some program had created a very deep directory structure on my disc, recursively.


The same 3 folders beneath one of the folders. I then tried to deleted it in the Explorer, but I would get an error "File name is too long". I could not delete any folders.

The problem is that the Explorer has short limit on how long a file/directory name can be, 256 I think.
I tried using DEL from a command prompt, but I would get the same error.

I was of course afraid of the structure of the NTFS file system somehow was messed up

But the actual problem is that NTFS is allowing a much deeper folder structure than the 256 characters, so the structure was OK.

....you just can't delete it again with the standard tools in Windows (XP)

So you need to remove them yourself by creating a program which runs through the folders in recursive manner and deletes folder and files on its way (sorry grandma).

Like this:

import java.io.File;
import java.util.StringTokenizer;

public class Main {

public static void main(String[] args) {
deleteDir(new File("c:\\badfolder"));
}

public static boolean deleteDir(File dir) {
if (dir.isDirectory()) {
String[] children = dir.list();
for (int i = 0; i < children.length; i++) {
//System.out.println()
boolean success = deleteDir(new File(dir, children[i]));
if (!success) {
return false;

}
}
}

System.out.println(dir.getName());
return dir.delete();
}
}

Published by: Jesper B. Kiær at 23-04-2010 13:54:55 Full Post