Thursday, 25 October 2012

Getting resources in database as stream in XPages (SSJS / Java)

Some time back I was trying to get the resources in database (to be precise image resource) in my SSJS / Java code. I tried a lot of options like ClassLoader.getResourceAsStream, MyClass.class.getResourceAsStream but no success. Then today while going through the sample database of Extension Library I ran into a piece of code which got the image resource as stream using a single line of code.var inStream:java.io.InputStream = facesContext.getExternalContext().getResourceAsStream("<RESOURCE NAME>"); As simple as that. In case of Java you would...

Tuesday, 23 October 2012

iPad Mini arrives to battle other 7-inch tablets for dominance

Now that the iPad Mini has finally been unveiled, the real question is how it will fare among all the other small tablets on the market. Apple has given us a mini version of previous iPads, with an A5 dual-core chip, a 7.9-inch display, and a starting price of $329 for the 16 GB version. For the 32 GB and 64 GB models, you’ll need $429 and $529 for the latter. It also has a 10-hour battery life, LTE network capability, updated Wi-Fi performance,...

Friday, 19 October 2012

Using dijit.form.CheckBox in check box group in XPages

dijit.form.CheckBox adds a fancy styling to the plain check box, which I love. Adding it to a single check box is pretty straight forward. Just set the dojoType property of the check box to dijit.form.CheckBox. But in case of check box group its not that straight forward.When a check box group is rendered in browser it is rendered inside <fieldset> tag. So setting the dojoType property doesn't give the desired result. You need to set the dojoType property individually on each of the check boxes in the group. Fortunately, all the...

Wednesday, 17 October 2012

Windows 8 is coming; upgrading or a new device will need a plan

Windows 8 will be available for sale on Oct. 26 and can be pre-ordered now. So it’s time to start thinking about your game plan for upgrading your existing computers or pondering what kind of device you’ll want in a new purchase. But there is some confusion about which version of Windows 8 will work for you and the price you’ll pay, along with a long list of choices for new Windows 8 hardware coming down the pikes. Windows 8 will be available...

Monday, 15 October 2012

Japan's SoftBank in talks to acquire 70% stake in Sprint Nextel

SoftBank Corp. was founded Sept. 3, 1981, with headquarters in the Higashi-shimbashi area of Minato-ku, Tokyo. Masayoshi Son is chairman and CEO. A deal is in the works for SoftBank Corp,. a Japanese telecommunications conglomerate, to acquire a 70 percent in Sprint Nextel, the number three mobile company in the United States, behind AT&T and Verizon. This could be the ship coming in for Sprint, as SoftBank will put $12.1 billion on the table...

Tuesday, 9 October 2012

BlackBerry 10 developers hard at work on apps for new platform

As we wait on the BlackBerry 10 platform to arrive sometime early in 2013, Research In Motion says the developers are hard at work creating apps for the new upcoming devices. Developers have been issued 5,000 BlackBerry Dev Alpha test devices to put their apps through the paces on various BlackBerry 10 projects. We can expect apps from Cisco, Foursquare, Sencha, Gameloft, HalfBrick Studios, Madfinger Games, Funkol and others when the magic time...

Monday, 8 October 2012

Farseer Physics for Windows Store Apps using Monogame

  Last week I did a session on porting XNA Windows Phone 7.x games to Windows Store apps using MonoGame. I have to thank Dean Ellis from the MonoGame project team for all the help.  While XNA is not a framework directly supported by Microsoft for Windows Store apps the current version of MonoGame is compatible with Windows 8 and, the most important thing, the applications pass the WACK. There are already several games available in the Windows Store developed using MonoGame (Armed, Skiddy, Rune Legend and I guess there are more).  ...

Friday, 5 October 2012

Error of "Invalid field name" while saving form

While working on a legacy Lotus Notes client based application, I did some modifications on a form but while trying to save it I was getting error message "Invalid field name" and the form simply refused to be saved. I checked all the field names trying to find out any invalid character amongst them, but no luck.So I went to my faithful old friend — Google. And it took me to this discussion on Notes/Domino 8.5 Forum where a user was having the same issue. He resolved it by removing and adding existing sections. Why it happened, he didn't know.Continue...

Thursday, 4 October 2012

Facebook gets a 'Like' from one billion users; offers 'thanks' to us all

Facebook's announcement of reaching one billion users each month was the biggest "like" of their existence. This was big enough for CEO Mark Zuckerberg to sign his name at the top of the news release. He wanted to give a big "thank you for giving me and my little team the honor of serving you." I say "well done" to Zuckerberg for having the vision and innovation to make Facebook what it is today. But the toughest part is probably still yet to come,...