Thursday, August 2, 2012

Date format in iNotes 8.5.x

iNotes is a rather wonderful thing.  It integrates nicely with Sametime and whatnot but what had frustrated me for some time was the date format in users' Inboxes.

The date was in American format MM-dd-yyyy and we wanted dd-MM-yyyy.
Granted, a user can change this for themself but this is not what I want, dammit!

Anyway, after some searching around in conjunction with the excellent scanEZ from Ytria, I stumbled upon the following solution.

Create a button with the following formula


@SetField("$DWADateFormat";"dd-MM-yyyy");
@SetField("$DWADateFormat$UP";"2")
  Select the appropriate Mail Policy Settings document (assuming you've already got one) and click your button.

The next time the mail policy is applied, the default date setting will be be dd-MM-yyyy for the users that use that Mail Policy Settings document.

To further explain this, a user's setting in iNotes are (mostly) controlled by a profile document in their mail file called inotesprofile.

There are a number of fields in this profile document that don't have a corresponding UI setting in the Mail Policy Settings document.

To set the field, prefix it with $DWA, so in relation to the above code the field DateFormat in the inotesprofile document will be set to dd-MM-yyyy.

To determine how the setting is applied prefix the field with $DWA and suffix it with $UP.  So, as above $DWADateFormat$UP is set to 2 in the Mail Policy Settings document.  This equates to the setting Set value and prevent changes

If you require a different setting, use the mapping below:
  • Don't set value - set the $DWADateFormat$UP to "1"
  • Set initial value - set the $DWADateFormat$UP to "3"
  • Set value whenever modified - set the $DWADateFormat$UP to "5"
  • Set value and prevent changes - set the $DWADateFormat$UP to "2"

Saturday, March 24, 2012

Un-minify JS, CSS or HTML

I've just found this cool resource for turning minified JS or HTML back into readable source code.

http://jsbeautifier.org/

To illustrate what I mean, the following code is the content of Evernote's bookmarklet.

javascript:(function(){EN_CLIP_HOST='http://www.evernote.com';try{var%20x=document.createElement('SCRIPT');x.type='text/javascript';x.src=EN_CLIP_HOST+'/public/bookmarkClipper.js?'+(new%20Date().getTime()/100000);document.getElementsByTagName('head')[0].appendChild(x);}catch(e){location.href=EN_CLIP_HOST+'/clip.action?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);}})();


Running it through JS Beautifier results in


javascript: (function () {
    EN_CLIP_HOST = 'http://www.evernote.com';
    try {
        var x = document.createElement('SCRIPT');
        x.type = 'text/javascript';
        x.src = EN_CLIP_HOST '/public/bookmarkClipper.js?' (new Date().getTime() / 100000);
        document.getElementsByTagName('head')[0].appendChild(x);
    } catch (e) {
        location.href = EN_CLIP_HOST '/clip.action?url='
        encodeURIComponent(location.href)'&title='
        encodeURIComponent(document.title);
    }
})();


Nice!

Sunday, October 3, 2010

Being washed with Notes

Google has added Latin to their list of languages.

Now we can write "Romans go home!" without fear of correction from a pedantic centurion.

Interestingly enough Lotus translates as "being washed with"


Thursday, September 30, 2010

XMarks soon to be ex-marks

Terrible news. The Xmarks service will be discontinued.

I've found this to be one of the most useful browser add-ons I've ever encountered. I add a bookmark on my work PC and I can refer to it at home, I add a bookmark while on my PC at a customer site, I can refer to it at work and at home, I re-install the OS on my PC I can re-populate my favourites / bookmarks in a minute or 2.....and many more.

Anyway, here is a list of alternatives that the nice people at Xmarks have provided to help us all get over the pain and start the grieving process.

Thursday, August 12, 2010

IBM OneUI Developer Documentation

You may very well know about this already, but here's a link to the full OneUI developer documentation for your perusal and delectation

XPages training in Wellington

Attending the Beginner's session for XPages with Stephan Wissel

I am loving it

Can't wait for the Advanced session tomorrow.

Monday, October 19, 2009

Free Domino Designer

The headline is not a call to release Domino Designer from its shackles.

Domino Designer is now free, as in beer or the non existent lunch.

This is a bold move by IBM and will hopefully encourage sites to do more in the Domino development space without having to worry about the cost of licensing a Domino Designer seat.

Download it from here.