AuthorWilliam Beh

HomeArticles Posted by William Beh (Page 2)

IBM Worklight

Coming from IBM Smarter Solutions conference, they were promoting Mobility Computing and one of the highlighted product was IBM Worklight.

IBM have recently acquired a mobile application platform, Worklight. It provides an open, comprehensive and advanced mobile application platform for smartphones and tablets, helping organizations of all sizes to efficiently develop, connect, run and manage HTML5, hybrid and native applications.

It consist of 4 main components

  • IBM Worklight Studio – An Eclipse-based IDE, allowing developers to perform all the coding and integration tasks that are required to develop a fully operational application.
  • IBM Worklight Server – The Java-based Server is a scalable gateway between applications, external services, and the enterprise backend infrastructure. The Server contains security features to enable connectivity, multi-source data extraction and manipulation, authentication, direct update of web and hybrid apps, analytics and operational management functions.
  • IBM Worklight Device Runtime Components – Client-side runtime code that embeds server functionality within the target-environment of deployed apps.
  • IBM Worklight Console – A web-based UI dedicated for the ongoing monitoring and administration of the Worklight Server and its deployed apps, adapters and push notifications.

I’ve been working with a lot of web application running on Lotus & Websphere products. It will be interesting how Worklight will integrates or work alongside with those especially with WebSphere Portal.

Continue Reading

When will Nexus 7 land in Malaysia?

iPad have been dominating the tablet space and it is continue growing. With the launch of Nexus 7, will Android be able to turn it around? Amazon Kindle have been selling quite well since it’s launch, but it is only available in a few countries only. This does not help to grow Android table market share. So if Google wants to increase Android tablet market share, they need to ship it worldwide fast. I manage to order the new iPad online on Apple’s Malaysia Store less than a month since it was sold in the US. So how long it takes for Nexus 7 to be sold here?

Continue Reading

XPages get value from profile document field

Instead of hardcoding values, we can store them in profile documents.

Using Lotus formula language, we can use @GetProfileField(profilename; fieldname; username) to retrieve field values from profile document.

In Xpages controls property, you can set computed value from profile document. Sample code is as below

[code]

var profileDoc:NotesDocument = database.getProfileDocument(“ProfileDoc”,””);

return profileDoc.getItemValue(“AppPath”)[0];

[/code]

 

Continue Reading

jQuery JSON YQL issue

I’ve been working on YQL (Yahoo Query Language). Using jQuery to retrieve the JSON result, it managed to retrieve the response from Yahoo but would not execute the success function.

[code]

var url = “http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20html%20where%20url%3D’http%3A%2F%2Ffinance.yahoo.com%2Flookup%3Fs%3Dknm%20and%20xpath%3D’%2F%2Fdiv%5B%40id%3D%22yfi_sym_results%22%5D%2Ftable%2Ftbody%2Ftr’&format=json&env=http%3A%2F%2Fdatatables.org%2Falltables.env&callback=cbfunc”;

$.getJSON( url, function(data){
alert(data.query.results);
})

[/code]

After some search, the issue is cause by the callback in the URL. Changing the url to &callback=? solve the problem

Continue Reading

Android Design

Android team launched “Android Design” to help developers adapt to the look and feel Android 4.0, Ice Cream Sandwich.

Android’s system UI provides the framework on top of which you build your app. Important aspects include the Home screen experience, global device navigation, and notifications.

The site provide guideline to style, patterns and building block. Following that may provide end user with a more consistent user interface. Read more about it here.

Android Design

Continue Reading

Redbooks Wiki: Lotus Domino Development Best Practices

IBM published a new redbook wiki on Lotus Domino Development Best Practises.

Lotus and IBM® Redbooks® have partnered together to share best practices for developing Domino applications.

This wiki covers what is needed to build or enhance an application, regardless of client, and the general practices to make development easier, less time consuming, and easy to support changes within the lifecycle of an application. It also includes instructions on infrastructure and operational improvements which can benefit performance and maintainability of your environment.

Check it out here.

Continue Reading

REST Service Call Builder Cookie

I was working on a portlet that does a REST service call to Lotus Quickr ATOM feed. Initially I was having issue with the Single Sign On (SSO) from the portlet calling the Quickr ATOM. When signing into the portal, a LtpaToken cookie will be generated and I need to pass this when making the REST request.

In the REST Service Call Builder you can put in cookie to be pass along under Advance section in the Forward HTTP Cookies field. I’ve added the cookie name LtpaToken into the field but still getting error 401 authentication error on the server.

Thanks to the reply on the Web Experience Factory forum, found that the issue is cause by the Result Schema.

If Auto Create Schema is enabled, it will make a call first without passing over the cookie under Forward HTTP Cookie field. This cause the error 401. I change the URL in the Schema to a ATOM feed that can be access by anonymous. Another way is to fill in the authentication fields for the schema. That solve the 401 issue that I encountered.

Android 4.0 ICS : Android OS usage for battery

I’ve just upgraded my Nexus S to Android 4.0.3 Ice Cream Sandwich yesterday. Initial impression is quite good. The interface and navigation is smooth. Good statistic for data usage. Wifi signal seems to be weaker and the browser does lag a bit (showing white boxes).

At a few forum including XDA Developer, there’s quite a few complain about the battery life after upgrading to ICS. It’s still too new for me to judge the battery life. Looks relatively the same as when on 2.3.6 Gingerbread. Maybe just slightly less battery life or maybe I used the phone more.

One of the top usage shown on the battery statistic is Android OS. One of the culprit could be the security settings. The security Automatically Lock setting makes a lot of difference on the Android OS stats.

For testing, my Display settings, Sleep after 1 Minute. I’ve set Automatically Lock to “Immediate”. I’m using Pattern Lock. The initial Android OS keep awake is 35m 11s. I let the phone to go on standby on it’s own.

imageimage

After about 30 Minutes of not using the phone (maybe 1 SMS and a mail in between), the Android OS keep awake 37m 40s. Not much changes. I’ve change the security Automatically Lock to “10 Minutes”. I let the phone to go on standby on it’s own.

imageimage

After 30 minutes of not using the phone, the Android OS keep awake went up to 48m 38s.

imageimage

So I suspect that increasing the Automatically Lock will increase the Android OS keep awake time. But does it affect the battery life? I’m not too sure, from the test above, the battery discharge 1% each 1/2 hour. It’s too short to tell. I’ll test with Automatically Lock at “10 Minutes” for a few days. If the battery is about the same as before, I’ll keep it that way for convenience. If not, then I’ll test with the settings “5 seconds”

What’s your experience with regards to ICS battery life?

Continue Reading