Tuesday, June 19, 2012

Editable authors field will auto-populate with current user's name

While working on a Notes client based application, I came across an interesting scenario. Let's say you have an editable Authors field on your form. If you open that form in Lotus Notes client then the current user name automatically appears in the field. But if you put in the field's name itself in the Default value formula then the field appears blank. My tests concluded that, this behavior is shown only by Authors field and not Readers field. Plus, I couldn't find this behavior documented in the help documentation.

Tuesday, June 12, 2012

Improving battery life of HTC One X

HTC One X is an amazing phone and has got pretty good reviews from The Verge, Engadget and Gizmodo with Sharif Sakr from Engadget even going on to say that "No matter how hard it[Samsung Galaxy SIII] tries, it just isn't greater than the sum of the HTC One X's parts". I bought it myself and have been using for around 3 months now. But one really troubling aspect with this phone is its battery life which is further exacerbated by the fact that you cannot remove the battery of this phone. While HTC claims significant performance improvement in its battery, the phone seems to discharge very quickly and charge very slowly. So here are some tips to improve and conserve your battery life.

Updated 22 Jun 2012: Avoid using live wallpapers
Updated 5 Oct 2012: Limiting background processes and Setting network mode

1. Fully charge your phone before turning it on for the first time

This is is very important and there are people who have suffered because of this. If you didn't there is a good chance that your battery life would be poor. But all is not lost, follow these simple instructions to recalibrate your battery.

Monday, June 4, 2012

Displaying common names of user with Name Picker

I have been trying out Extension Library and I must say I am really impressed with it. One of my favorite control there is Name Picker. The only problem with that is the input control whose value is set by name picker needs to be in edit mode and it shows the selected names in abbreviated format. In one of our application we wanted to show common names and the input control to be non-editable so that user could not play around with values.