This Lotusscript class is using the Google REST API for geocoding an address. You simply instantiate the class by passing the address broken down into four arguments (street, city, state, zip). If you lack data, pass an empty string. Note: The code is currently written for US addresses. The class will submit the address to Google and get information back. The class exposes the same information you sent (street, city, state and zip) as well as latitude and longitude and "accuracy", a number describing how accurate the latitude/longitude is (street level, intersection, city, etc). The class can be used not only to retrieve the latitude and longitude for a location, but also to verify that a particular address exists, or look up the zip code based on the street, city and state. Simply take the code in GeoCode.txt and paste it into a (new) script library. I call it Class.GeoCode. Then you can use it everywhere you like. I am working on an updated/expanded version that will let you generate KML data for Google Maps/Google Earth as well.
Люди добрые! Сами мы не местные... Поможите!!! Возможно плохо искал - не нашел. Извиняйте. Вопрос вот в чем. При отправке письма указываем внешнего адресата и кого-нибудь внутреннего (например, начальника) ставим в копию. Получается примерно так: КОМУ: firstname.lastname@example.org КОПИЯ: user1/Org/ru Внешний адресат хочет отправить ОТВЕТ ВСЕМ, т.е. по логике и отправитель и user1 должны получить письма. Но! До адресата(user2) письмо доходит с лотусовым адресом юзера1 т.е. user1/Org/ru который по честному копируется в поле КОПИЯ при ответе и соответственно ничего не отправляется. Начальство бьет копытом... Эта шняга стала проявляться после перетаскивания сервака с 6.5.5 на 8.5. Назад пререехать пока нет никакой возможности, а решить надо. сейчас настройки стоят такие:
Основные для маршрутизатора и SMTP Число почтовых ящиков: 3 Использование SMTP для отправки сообщений во внешние домены Интернета: ВКЛ. Разрешается использование SMTP в локальном домене Интернета: ВЫКЛ. Доступность серверов локального домена Notes для SMTP по TCP/IP: Всегда Просмотр адреса: Полное имя, затем локальная часть Исчерпывающий поиск: ВКЛ. Узел передачи сообщений, исходящих из локального домена Интернета: Метод аутентификации, используемый при отправке сообщений хосту передачи: ВЫКЛ.
Смарт-узел локального домена Интернета: Использование смарт-узла локального домена Интернета для всех адресатов локального домена Интернета: ВЫКЛ. Поиск имени узла: Динамический, затем локальный
WANT THE TOP LOTUS EXPERTS BY YOUR SIDE WITHOUT PAYING HEFTY CONSULTING FEES? LOOK NO FURTHER. Like having a team of consultants by your side -- ones who have all the answers and never make mistakes -- THE VIEW gives you immediate access to field-tested instruction, guidance, and best practices from the brightest Lotus professionals around.
Andy Donaldson didn't want to hold back on his R8 client rollout. So he's rolled out the integrated Sametime client with all the functions of the stand-alone Sametime client enabled. He lists the steps you need to take.
Part of the Gears work I've been doing involved generating a random string to use as a "Sync ID" for a device. The server then knows where data has been taken offline to. It can then decide whether to allow it be either taken down to or sent back from a device with a different Sync ID.
This worked well and I was happy that the Sync ID format I'd come up with was suitably random. Then I happened to read Google's advice on the matter and noticed they recommend using GUIDs. This got me interested, so I read more on Wikipedia, where they say of their uniqueness:
... consider the observable universe, which contains about 5x1022 stars; every star could then have 6.8x1015 unique GUIDs.
That's the kind of geeky over-the-topness I love. Not just that it was over the top but also that they look so much more professional than some random string. Where the Sync IDs used to look something like this:
Now they look like:
Makes no difference to anybody but me really, but I like to be happy with the work I've done, no matter if other people will every appreciate the details or not.
Generating a UUID
What niggled me was that I didn't understand what the code was doing and I don't like to just paste in any old code off the Google without really knowing what it's doing.
The logic of the code was simple -- perform a loop 36 times and build a string of random "hex" characters (0 to 9 and A to F), with a dash ("-") here and there. What had me perplexed was the following line which chose the character to insert:
In particular it was the single pipe (|) and single ampersand (&) that through me. Not to mention the odd-looking 0xf and stuff.
If like me of last week you don't just don't get it, then it's probably worth me writing a quick layman's guide.
A Quick Guide To Binary Counting
Here's a table with the numbers 1 to 9 in binary form:
Given any binary string you can convert it to a real number by working from the right-most "bit" (a 1 or a 0) and working towards the left. If the first bit is a 1 then you add one (to zero at this point, so you have 1). If the bit to the left of the first bit is a 1 you add 2 (now you have 3). If the bit to the left of that bit is 1 then you add 4 (now you have 7). This carries on. Notice each time you move one bit to the left the number you add doubles.
Doing bitwise operations simply means you put the binary form of two numbers next to each other and compare the bits in each position of each binary string. For example, let's take the bitwise operation (5 | 2). This is a "bitwise or" and means we compare the bits in each number and if either of them are a 1 then we put a 1 in the same position in the resulting binary number. Otherwise we use a 0 in that position.
Here's an example of a bitwise Or operation.
Now let's look at a "Bitwise And" comparison of two numbers. In this case the resulting binary only has a 1 in each position where both the binary numbers we're inspecting also have a 1.
So, 5 | 2 = 7 whereas 5 & 2 = 0. Hope that makes sense?
The other thing which threw me was the hex number format. Although it looked familiar it took a while to work out that 0x3 is just another way (hex notation) of writing the number 3. Same goes for 0x8 being 8. While 0xf is 15, which is 00001111 in binary (8+4+2+1).
With this knowledge I was ready to port the code.
Porting to LotusScript
Although I had now ported the code and felt happier that I understood what it was doing I still had no idea why it was doing it!
Even with my new-found knowledge of Bitwise operators I still didn't know why it was comparing with 3 and then 9 for the 20th character in the string. Even after a glance at the spec it made no sense. That's the point where I decided I didn't need to go to that level and stopped worrying about it. Although, if anybody can enlighten me...
r = 0 | rnd()*16;
A "bitwise or" with 0 always just returns the number being compared with it. I can only guess that it acts like a Round() function and removes the decimal part, which can't exist in the resulting binary number. Anybody?
Whether you need to use GUIDs in your LotusScript or not or even if you ever need to use other random strings of any length, hopefully, like me, you'll have learnt something if you've read this far? Even if all you've learnt it that Jake doesn't know the first thing about Computer Science...
To programmaticaly add a todo item, a callendar item or something is a big challange, even if you know the scriptlibs in the mailfile. Please add a api (either as a build in or as a template to inherit in my app) to work with calendar items, task and contacts, so that adding or manipulating them becomes easy. It should be available in LS and in xPages.
To programmaticaly add a todo item, a calendar item or contact is a big challange, even if you know the scriptlibs in the mailfile. Please add a api (either as a build in or as a template to inherit in my app) to work with calendar items, task and contacts, so that adding or manipulating them becomes easy. It should be available in LS and in xPages.
We need to up both the quantity and quality
of the posts on the OpenNTF blog, and whilst we try and keep up to date
with all new projects, new releases etc via the OpenNTF
twitter channel, we need to do
more. So we want to help you publicize your ...
A Domino 5.0.3 or later server is configured to send SMTP messages outside the local Internet domain via a Sendmail relay server. A secondary Sendmail server is set up to provide failover in the event the primary relay is down. Creating a failover SMTP Connection document that references the secondary Sendmail host does not appear to work. When the primary relay host is unresponsive, the dynamic cost is set to "1," and the message is queued in MAIL.BOX, pending the next scheduled retry interval. This behavi
You want to sign design elements related to the Out Of Office (OOO) agent to a specific ID in the Lotus Domino Web Access DWA) release 7 template. What security access is required for this to function properly?
In IBM® Lotus Notes® 8.5 and IBM Lotus® Expeditor 6.2, the composite application infrastructure has been enriched with a generic application container framework. It comes with a set of components that allow for creating powerful and flexible applications without the need to write a single line of code. This article describes the generic application container framework and provides a step-by-step tutorial to create a composite application using the browser and spreadsheet container components. Weather data, such as average rainfall, is extracted from www.worldclimate.com and visualized in a chart defined in an IBM Lotus Symphony™ spreadsheet.
IBM® Lotus® Forms 3.5 provides support for XML digital signatures (XMLDSig) from W3C XML Signature Syntax and Processing. An XML digital signature for a Lotus Forms document can cover markup for the presentation layer and XML data managed by the XForms markup within the Lotus Forms document. This ability enables the signature to protect the full human context of a contract or agreement between the signing parties.
In Lotus Notes/Lotus Domino, when a group with "Access Control List only" access is listed in the Owner Only restriction field, members of that group receive an error message when trying to book the room to which the owner restrictions apply. No user in the group can book the room or resource.
The IBM Lotus Notes and Domino team hosed an Open Mic call titled "Customizing the Lotus Notes install kit" on Wednesday, June 24th at 10:00 am eastern US time (2:00 pm GMT). This document contains a link to a recording and questions and answers from that session. Note: Answers to additional questions asked will be added to this document as they become available.