278 Lotus blogs updated hourly. Who will post next? Home | Blogs | Search | About 
 
Latest 7 Posts
Use equal for string literal, rather than for an object
Tue, Mar 22nd 2016 19
Typical mistakes with String in Java
Fri, Jan 8th 2016 14
SOAP and passing session
Thu, Jan 7th 2016 12
Java web-consumer in Domino and cookie session
Wed, Jan 6th 2016 12
DSAPI for Domino
Tue, Jan 5th 2016 17
Format datetime object in Lotus Script
Mon, Jan 4th 2016 15
Locale settings for date and time in IBM Domino and Notes
Tue, Oct 27th 2015 16
Top 10
Insufficient memory - NSF pool is full
Mon, Jun 15th 2015 21
Setup Play Framework and TypeSafe on centOS
Wed, Oct 14th 2015 21
Domino and No trusted certificate found
Tue, Jan 28th 2014 19
Use equal for string literal, rather than for an object
Tue, Mar 22nd 2016 19
Disabling certificate validation in Java
Mon, Apr 28th 2014 17
Refresh embedded view solutions
Mon, May 4th 2015 17
DSAPI for Domino
Tue, Jan 5th 2016 17
ColumnValuesIndex property of NotesViewColumn
Tue, May 5th 2015 16
Locale settings for date and time in IBM Domino and Notes
Tue, Oct 27th 2015 16
Format datetime object in Lotus Script
Mon, Jan 4th 2016 15




Recent Blog Posts
19
Use equal for string literal, rather than for an object
Tue, Mar 22nd 2016 6:19a   Dmytro Pastovenskyi
When you wanna compare String object with string literal, we often disregard what we compare with what, however there is one and safe way to do it. It's much better to use equals() and equalsIgnoreCase() for a string literal, instead of Object, because it helps to avoid possible NullPointerException. Here is an example: String a = null; System.out.print("123".equals(a)); // false System.out.print(a.equals("123")); // java.lang.NullPointerException
14
Typical mistakes with String in Java
Fri, Jan 8th 2016 5:33a   Dmytro Pastovenskyi
Just few typical mistakes developers do when dealing with Strings. It's common stuff and everybody knows that, but for some reasons I still find such things (even written by myself :-)). 1. Checking empty string In old days (version 1.5 and lower) we used String.equal(""), but 1.6 brought us String.IsEmpty which is better and faster. // wrong/slow if (name.equals("")) { // correct/fast if (name.isEmpty()) { 2. Concatenation Method String.concat creates new String object, it's OK to
12
SOAP and passing session
Thu, Jan 7th 2016 6:00a   Dmytro Pastovenskyi
Here is an example how to pass session using SOAP envelope approach. I was starlight with it for some time. That is why people use REST our days :) and not SOAP approach. // Create SOAP Connection SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.newInstance(); SOAPConnection soapConnection = soapConnectionFactory.createConnection(); // connect to webserivce SOAPMessage soapResponse = soapConnection.call(connect(username, password), url); // read cookie from respons
12
Java web-consumer in Domino and cookie session
Wed, Jan 6th 2016 3:00a   Dmytro Pastovenskyi
Recently I've faced with few mistake that drain hours from me. I had to make integration with web-serivce. I imported WSDL file and got java classes generated, than I according to documentation I checked connect method with credentials...Error connecting to 'endpoint' on port '443', SSL invalid certificate, may need to cross-certifySpend some time and found very detailed answer on stackoverflow: Create cross certificate for Domino Java agent? Tried connect method again - it worked! Gonna b
17
DSAPI for Domino
Tue, Jan 5th 2016 3:00a   Dmytro Pastovenskyi
This post is about to make short summary about DSAPI filter. I've finished my project some time ago and it looks like I'm not going to do any work with it in near future. What is DSAPI?The Domino Web Server Application Programming Interface (DSAPI) is a C API that lets you write your own extensions to the Domino Web Server. DSAPI extensions, or filters, are notified whenever a particular event occurs during the processing of a request.I've written few articles about DSAPI before and now it i
15
Format datetime object in Lotus Script
Mon, Jan 4th 2016 4:06a   Dmytro Pastovenskyi
Sometimes datetime output become tricky in Lotus Notes. F.x. imagine you have code like this and you have german or any another locale on user's PC. Set dt = New NotesDateTime("") Call dt.SetNow msgbox Format$(dt.LSLocalTime, "dddd, dd. MMMM yyyy") Out would be Tuesday, 22. December 2015 But what if you want output in german i.e.? 22. Dezember 2015 In such case you may want to use LS2J approach to display it properly to user Below you will find a solution that either allow to set
16
Locale settings for date and time in IBM Domino and Notes
Tue, Oct 27th 2015 10:59a   Dmytro Pastovenskyi
Recently we setup 2 new IBM Domino servers and today I found an issue related to how we display time in our application. The 12-hours format was used (with AM or PM). I've checked OS date settings and they were right so I started to google and found out that in order to change locale settings to 24-hours you have either update notes.ini with a ClockType variable or change register. I went with notes.ini (feel more safe with it). Below few variables that control date/time format output. DateO
12
Using preceding-sibling and following-sibling in xpath
Mon, Oct 19th 2015 5:54a   Dmytro Pastovenskyi
In this article I will show few examples about how to use following-sibling and preceding-sibling Our XML example we are going to use. France Paris UK London Manchester Liverpool Denmark Copenhagen Ukraine Kiev Odessa Taking all city elements after element UK /div/country[.='UK']/following-sibling::city London Manchester Liverpool Copenhagen Kiev Odessa Taking all city elements before element Denmark /div/country[.='Denmark']/preceding-sibling::cit
21
Setup Play Framework and TypeSafe on centOS
Wed, Oct 14th 2015 10:51a   Dmytro Pastovenskyi
I'm going to setup simple project based on Play Framework together with Cassandra on two centOS servers. Installing Java//1. go to opt folder cd /opt //2. download java wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u60-b27/jdk-8u60-linux-x64.tar.gz" //3. extract java archive tar xzf jdk-8u60-linux-x64.tar.gz //4. installing java cd /opt/jdk1.8.0_60
6
Transformation of String into Date respecting Locale
Sat, Jul 4th 2015 3:49p   Dmytro Pastovenskyi
Let's say you need to parse a string into date and it is localized string (f.x. name of month on local language). In past I would definitely define an array with months and then parse a String to get a number of my month and then build a Date object. In Java it's pretty simple (almost 1 line of code). Locale approachpackage parser; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; public class parser { public static void ma




Created and Maintained by Yancy Lent - About - Planet Lotus Blog - Advertising - Mobile Edition