Thursday 24 February 2011

Adding a "Copy Notes:// Link" button to Lotus Notes

To add a button to the Notes  toolbar which copies a notes:// style link to the current document to the clipboard

  • Go to File -> Preferences -> Toolbar -> Customise
  • Click New -> Button...
  • Set fields as follows:
Caption text - "Notes: Link"
Popup help "Copy  'notes:' link to clipboard"
Formula:

serverNameAbb := @Name([Abbreviate];@Subset(@DbName;1));
serverNameCommon := @Name([CN];@Subset(@DbName;1));
serverDNSName := @DbLookup(""; "":"names.nsf"; "Connections"; serverNameAbb; "OptionalNetworkAddress"; [FailSilent]);

REM {For server names that contain spaces, always use the DNS name instead, because notes:// links do not work when the server name contains spaces.};
serverNameCommon := @If( @Contains(serverNameCommon;" "); serverDNSName; serverNameCommon );

REM {Database, View and Document url links.};

serverNameCommonEncoded := @URLEncode("Domino";@LowerCase(serverNameCommon));
urlDatabase := @LowerCase( "notes://" + @URLEncode("Domino";serverNameCommon) + "/" + @WebDbName );
urlView := @LowerCase( urlDatabase + "/" + @URLEncode("Domino";@Subset(@ViewTitle;-1)) );
urlDocument := @LowerCase( urlDatabase + "/0/" + @Text(@DocumentUniqueID) );

urlDatabaseDNS := @ReplaceSubstring(urlDatabase; serverNameCommonEncoded; serverDNSName);
urlViewDNS := @ReplaceSubstring(urlView; serverNameCommonEncoded; serverDNSName);
urlDocumentDNS := @ReplaceSubstring(urlDocument; serverNameCommonEncoded;serverDNSName);

REM {Additional text to appear in the dialog box.};
databaseTitle := @Subset(@DbTitle;1);
documentTitle := @If( Title != ""; Title; Subject != ""; Subject; databaseTitle);
REM {Dialog Box messages};
dialogTitle := "Lotus Notes URL";
dialogMessage := "Press Ctrl-C to copy this URL.";
REM {Choices to appear in Dialog Box};
dialogChoices :=
@Unique(@Trim(
@If( Form=""; ""; ("(doc) " + documentTitle + " - " + urlDocument) ) :
("(db) " + databaseTitle + " - " + urlDatabase) :
("(view) " + databaseTitle + " - " + urlView)
));

REM {Display the Dialog Box};

@Prompt([OkCancelEditCombo]; dialogTitle; dialogMessage; @Subset(dialogChoices;1); dialogChoices)
  • Change the icon to something appropriate, I usethis one:
  • Finally, add the button to a toolbar which is widely used (e.g. Universal).
Thanks to Alex Lepofsky for this.

    Monday 21 February 2011

    Setting up Tesco Mobile on Android for Omnia 2

     Haven't quite got this working yet for the beta build of Android on my Omnia 2 (Feb 2011), but these look like they should be the correct settings based on other web comments
    •  Tap New APN
    • Tap Name then tap the text box and enter tesco then tap OK
    • Tap APN then tap the text box and enter prepay.tesco-mobile.com then tap OK
    • Tap Proxy then tap the text box and enter 193.113.200.195 then tap OK
    • Tap Port then tap the text box and enter 8080 then tap OK
    • Tap Username then tap the text box and enter tescowap then tap OK
    • Tap Password then tap the text box and enter password then tap OK
    • Skip past Server as this is preset as Not set
    • Tap MMSC then tap the text box and enter http://mmsc.mms.o2.co.uk:8002 then tap OK
    • Tap MMS proxy then tap the text box and enter 193.113.200.195 then tap OK
    • Tap MMS port then tap the text box and enter 8080 then tap OK
    • Tap MCC then tap the text box and enter 234 then tap OK
    • Tap MNC then tap the text box and enter 10 then tap OK
    • Authentication type: PAP / None
    • APN Type: default,supl,mms 
    • Press the Menu key
    • Tap Save
    • Tap your new account so a green dot appears next to it

    To set up SMS 
    Type *#*#4636#*#* into phone

    Choose phone information  and enter +447802092035 in the SMSC box (close to the end of the list).

    http://android.modaco.com/content/zte-blade-blade-modaco-com/319547/tesco-prepay-mobile-mms-problems/

    Wednesday 5 January 2011

    Essential Firefox Plugins

    Have experimented with Chrome and like it - particularly the amount of screen real-estate it renders - but am running into a number of sites without Chrome support, so it's back to Firefox, plus plugins to give a Chrome-like experience.

    The essential Firefox plugins for me are: 

    Adblock Plus - obviously :-)

    Tab Utils Lite - Adds tab duplication

    Easy DragToGo  - opens tabs by dragging links

    Pimpoflage - Hides top bars and status bars (also the menu bar can be hidden from standard Firefox toolbar customisation and displayed with the Alt key)  Mini-UI is a simple alternative which hides / reveals using rhe Ctrl key.

    LastPass - Password manager that syncs passwords across browsers


    Other invaluable add-ons: 

    Gmail manager - Shows number of messages for multiple gmail accounts (check here for latest fixes)

    Forecastfox weather -  Brilliant weather icons in the status bar


    Delicious Bookmarks - Social bookmarking at its best

    QuickProxy - Easily turn on/off proxy settings

    Kaboodle - Sharing shopping lists


    IBM add-ons:
    Foxear - IBM internal delicious equivalent
    IBM CCK - Internal search engines and password management