MySphere Posts

LotusScript button to remove individual names that have been cached in $users view of local address book. This script is from TN 139749

Sub Click(Source As Button)
        Dim sess As New NotesSession
        Dim db As NotesDatabase
        Dim view As NotesView
        Dim doc As NotesDocument
        Dim contact As String
        Dim tempInternetAddress As String
        Dim tempMailAddress As String
        Dim result As Integer
        Dim confirmResult As Integer
       
        ‘ Getting local names.nsf
        Set db = sess.GetDatabase(“”,”names.nsf”,False)
        If db Is Nothing Then
                Messagebox “Unable to find local name.nsf.  Exiting…”
                Exit Sub
        End If
        ‘ Getting recent contacts view
        Set view = db.GetView(“RecentCollaborators”)
       
        contact = “”
        ‘ Prompting user for name
        contact = Lcase(Cstr(Inputbox(“Please input an internet address Notes adress, examples:” + Chr(13) + Chr(10) + “[email protected] or User/Org”)))
        If contact = “” Then
                Messagebox “You must enter in a value. Exiting…”
                Exit Sub
        End If
       
        ‘ Getting first document in view
        Set doc = view.GetFirstDocument
       
        ‘ If the document is of an smtp (internet address) then search the InternetAddress field other wise search the MailAddress (Notes Name) field
        If Instr(contact,”@”) Then
                While Not doc Is Nothing
                        tempMailAddress = “”
                        tempInternetAddress = “”
                        tempInternetAddress = Lcase(doc.InternetAddress(0))
                        If tempInternetAddress <> “” Then
                                If Instr(tempInternetAddress,contact) Then
                                        tempMailAddress = doc.MailAddress(0)
                                        result = Messagebox (“Do you want to delete user (” + tempMailAddress + “) with internet address (” + tempInternetAddress + “) or cancel serach?”,3 + 32)
                                        If result = 2 Then ‘ Canceling Search
                                                Exit Sub
                                        Elseif result = 6 Then ‘ Requesting deletion
                                                confirmResult = Messagebox (“Confirm deletion” , 4)
                                                If confirmResult = 6 Then ‘ Confirm Deletion
                                                        Call doc.Remove(True)
                                                        Messagebox “Message deleted.  Exiting….”
                                                        Exit Sub
                                                End If
                                        Else ‘ Otherwise continue search
                                                Print “Continuing to search….”
                                        End If
                                End If
                        End If
                        Set doc = view.GetNextDocument(doc)
                Wend
        Else
                Dim tempName As NotesName
                Set tempName = sess.CreateName(contact)
                contact = Lcase(tempName.Canonical)
                While Not doc Is Nothing
                        tempMailAddress = “”
                        tempInternetAddress = “”
                        tempMailAddress = Lcase(doc.MailAddress(0))
                        If tempMailAddress <> “” Then
                                If Instr(tempMailAddress,contact) Then
                                        tempInternetAddress = doc.InternetAddress(0)
                                        result = Messagebox (“Do you want to delete user (” + tempMailAddress + “) with internet address (” + tempInternetAddress + “) or cancel serach?”,3 + 32)
                                        If result = 2 Then ‘ Canceling Search
                                                Exit Sub
                                        Elseif result = 6 Then ‘ Requesting deletion
                                                confirmResult = Messagebox (“Confirm deletion” , 4)
                                                If confirmResult = 6 Then ‘ Confirm Deletion
                                                        Call doc.Remove(True)
                                                        Messagebox “Message deleted.  Exiting….”
                                                        Exit Sub
                                                End If
                                        Else ‘ Otherwise continue search
                                                Print “Continuing to search….”
                                        End If
                                End If
                        End If
                        Set doc = view.GetNextDocument(doc)
                Wend
        End If
End Sub

Uncategorized

How to Enable Windows 7 GodMode

I found this tip at www.sitepoint.com

Here’s a neat Windows 7 trick that’s been doing the rounds on the Internet. It enables “GodMode,� a term devised by the Microsoft development team, which provides a single place to access all Windows settings without needing to browse options and folders in the Control Panel.

To use it:
1.        Create a new folder.
2.        Rename the folder to

GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}

(note that you can change the “GodMode� text, but the following period and code number are essential).
3.        The folder icon will change — double click it to show the GodMode window:

Image:Windows 7 God Mode

Uncategorized

Achei este link ontem no PlanetLotus. O curso é da TLCC.
Já peguei o arquivo e o curso é introdutório mesmo, para iniciantes,  mas não deixa de ser bom.
Vale a pena

Link

Uncategorized

What are the Lotus Notes/Lotus Domino naming conventions and standards?

Name
Maximum length
Valid character
Organization Certifier Name

3 to 64 characters (recommended limit is 32 characters if possible)

A – Z, 0 – 9, -.  _ ‘ (dash, period, space, underscore, and apostrophe)

See Note below.

Organization Unit Certifier Name

64 characters

A – Z, 0 – 9, -.  _ ‘ (dash, period, space, underscore, and apostrophe)

See Note below.

Country Code

0 or 2 characters

A – Z

Password:
   Organization   ————->
   OU   ————————–>
   Server/User   ————–>

32 characters
at least 12 (recommended) to 32
63 characters

A – Z, 0 – 9, & -.  _ ‘ (ampersand, dash, period, space, underscore, and apostrophe)

Server Name

59 characters

A – Z, 0 – 9, & –   ‘ (ampersand, dash, space, and apostrophe)

Using a space is not recommended but if you use one, enter the Server Name in quotes (“”) when you enter a command set at the server console.

Do not use periods (.) or underscores (_) in Domino Server names because of the current BIND server code 8.1.2. DNS standards demoted underscores in host names.*

*See Note below.

Notes Network Name

31 characters

Refer to Document #1096391 for additional information.

A – Z, 0 – 9, -, _ (a space is also a valid character)

Notes Port Name

31 characters

A – Z, 0 – 9, -, _

User First Name + User Last Name

Must not be greater than 80 characters

A – Z, 0 – 9, & -.  _ ‘ (ampersand, dash, period, space, underscore, and apostrophe)

User Middle Initial

2 characters

A – Z, 0 – 9, & -.  _ ‘ (ampersand, dash, period, space, underscore, and apostrophe)

Notes Domain Name

31 characters (minimum of 3)

A – Z, 0 – 9, & –  _ ‘ (ampersand, dash, space, underscore, and apostrophe)

Do not use periods (.) in a domain name as they are reserved characters.

Server Title

Colon “:”,   Cannot be used in a server title.

Uncategorized

Last Saturday i scheduled an maintenance for one of the our Domino Server. The server performance was not great and the problem was related to I/O.
Using Defraggler the analysis show us that the disk was 98% fragmented. After 3 hours, with Domino out of service, the disk was defragmented and the analysis show us 1% fragmented.
So i see a lot of databases with ODS 43, very old, and then i start a compact -c for all databases.
I ran Defraggler again and the analysis show than 58% of fragmentation, compact -c fragments databases.

Today at OpenNtf there is an article about DominoDefrag, the solution to my problem, i don’t have the maintenance  window.
DominoDefrag can defrag t databases online, and it works great !

No último sábado programamos uma manutenção em um de nossos servidores devido a problemas de performance, claramente I/O.
O diagnóstico preliminar foi o disco muito fragmentado. Inciamos a desfragmentação parando o Domino e usando o programa Defraggler.
O disco estava 98% fragmentado. Após 3 horas de operação o disco ficou com 1% fragmentado, nada mal.
Porém observei que alguns bancos de dados estavam com o ODS na versão 43, resolvi então compactar todas as bases para que ficassem com o ODS 48 (R8).
O comando para converter o ODS é compact -c.
Até aqui tudo normal e funcionando. Só que li um artigo em alguns blogs informando que o compact  -c desfragmenta o disco.
Olhei novamente o disco e estava fragmentado novamente 59%. Desta vez o problema era pior pois não tinha mais janela para manutenção.
Encontrei então o projeto DominoDefrag no OpenNtf que resolveu o problema desfragmentando o disco com o Domino ativo.

Look at the figures bellow, DominoDefrag works !
Vejam como realmente o DominoDefrag funciona !

Before DominoDefrag
Antes do DominoDefrag

Image:Windows Disk Fragmentation

After DominoDefrag
Depois do Domino Defrag.

Image:Windows Disk Fragmentation

Uncategorized

Ontem iniciamos a instalação de um ambiente Lotus Domino 64bits utilizando Windows 2008 64bits.  A instalação é tranquila e não foge do normal.
A versão que estamos utilizando é 8.5.1 FP1 pois são servidores novos e fazem parte de um projeto de migração Domino 7 -> 8.5.1.
Ontem foi publicado um TN sobre crashes que acontecem no HTPP justamente com este ambiente.

Yesterday i started a setup of an environment Lotus Domino 64bits over Windows 2008 64bits.
The setup is quiet and not run away from normal Domino setup

IBM published a TN about crashes just with this environment.  A hotfix is needed

Uncategorized

If you install the traveler 8.5.1.1 you can accept meetings on iPhone

The fix cam be download using this link

New function for Apple Devices (Optional)

The functions listed here were added in Lotus Notes Traveler 8.5.1.1 and are not enabled by default. The Lotus Notes Traveler server administrator must explicitly enable these functions for them to become active. Follow the procedures outlined below to enable.

  • Meeting attendee invitation actions for Apple devices.

    When this feature is enabled, attendees to meetings will now receive meeting notices on their Apple device and the mobile user will be able to accept, tentatively accept, or decline the meeting invitation. Using the Settings application on the Apple device, the user can enable or disable meeting notice alerts by selecting the Mail, Contacts, Calendars settings and then changing New Invitation Alerts to On or Off.

Uncategorized

Uncategorized

Two weeks ago I went to Lotusphere in Orlando. I forgot that the electrical connections in the U.S. are different from those of Brazil. I did not find an adapter to connect the charger to my cell phone, left me to improvise with a wire and electrical tape.

Duas semanas atrás eu fui para o Lotusphere em Orlando. Eu esqueci que as conexões elétricas nos EUA são diferentes das do Brasil.
Não encontrei um adaptador para ligar o carregador do meu telefone celular, me restou improvisar com um fio e fita isolante.

Image:Lotusphere a wire and my cell phone.

Uncategorized

If you want to merge 2 mail dabases you can use this TN

Uncategorized