Automate, everything.

About 18 years ago I was hired to lead an Automation Development team for Lotus Notes and Domino. Near the end of the 1990’s, the Lotus Notes and Domino product had become so complex that a single code change in an obscure place in the code could negatively impact any numerous API’s or applications. The directive of the automation development team was simple – provide an automation framework for API and regression testing. At the time “test driven development” was not really a wide spread thing and developers hated writing unit tests. So the automation team had a single directive, automate the 20 million lines of code across 7 platforms after each build, every single day. The task was daunting but we saw an immediate improvement in quality in the first year alone, winning us an IBM Corporate Award.

Continue reading


Becoming an IBM Cloud Developer, the easy way.

The IBM Cloud, previously know as IBM BlueMix, seems to be getting a lot of press lately. More and more of our commerce customers are asking about Watson and this development platform. The platform has been greatly expanded over the past few years and is now considered a first class cloud development platform. As outlined here, this has turned into $15 Billion of revenue for IBM and seems to be growing each quarter. The IBM Cloud is now ranked in the top 5 cloud platforms by Bob Evans, displacing Google and Oracle and Bob seems to hint it will probably be moving further up the list. It is no coincidence that one of the key elements to this platform is Watson and the cool API’s it brings to the table. I am seeing some amazing integrations being done into existing applications with some of these Watson API’s. But what is more interesting is the full life cycle development a team can do 100% in the cloud.


Continue reading

Watson Customer Engagement for Developers is here!

We have several offerings spanning Marketing and Commerce and many more coming this year. As a developer, you can now sign up to be notified when products and API’s become available on the IBM marketplace. Bookmark it and sign up today for notifications.

Check it out today.

Trilibis PSD to HTML converter


In this segment of Partner Connect I demonstrate how the Trilibis PSD2HTML API is used to create responsive HTML from three versions of the same PSD. The new Triblibis API can take a Web, Mobile, and Tablet version of the design along with a configuration file to identify HTML elements at a very granular level.  Watch this video to see the new API in action.


Node-RED : IBM developerWorks Open Tech Talk

Readers of my blog know I am a huge fan of Node-RED so now you can learn about it in the upcoming tech talk by IBM developerWorks. I most recently used Node-RED in an Eclipse application where I provide an automatic translation service for a tool called PET.

node-redIBM developerWorks Open Tech Talk
Categories: Cloud, Internet of Things

Wed June 22nd, 11 AM ET

Web Meeting link.

Node-RED is a tool for wiring together the Internet of Things in new and interesting ways, including hardware devices, APIs, and online services. Node-RED makes it easy to wire together real-world events, add in some intelligence, and access simple nodes to integrate them with existing messaging systems and social platforms such as Twitter, MongoDB, and Redis to create apps that can react to the world around them..  Learn more.

Enabling CORS for WebSphere Commerce REST

Commerce-CORSI have two servers, one application server (JSP based) and one WebSphere Commerce server. I want to be able to call the REST API’s on the Commerce server via JavaScript served up by the application server. So my JavaScript would look like this:

      url: myCommerceServerRestURL,
      method: "GET",
      crossDomain: true,
      contentType: "application/json",
      dataType: "json"

The problem is, if CORS is not enabled on the WebSphere Commerce server you will receive the infamous No ‘Access-Control-Allow-Origin’ header is present on the requested resource. And the call fails.

Now WebSphere Commerce can be a little tricky if your server has a web server in front of it. You essentially have to enable it in both places – or at least that is what I had to do. If I only had to do one of these please let me know – I got tired of testing the different tips from the netverse.

I have IHS in front of WebSphere Commerce, so, after hours of playing around with different configurations I came up with these steps:

First configure httpd.conf in the IHS/conf directory and add these lines  if you want all domains to be able to access your data:

 <IfModule mod_headers.c>
        Header set Access-Control-Allow-Origin "*"
        Header set Access-Control-Allow-Methods "GET, PUT, OPTIONS"
        Header set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token"

Remember, you can always override the Access-Control-Origin with a domain or multiple domains to prevent access for everyone.

Next, you have to update the WebSphere Commerce server. You can actually see the Commerce Insights enabling documentation for this (my colleague pointed me to this, thanks J).  You will be editing the WC configuration file and the WC Search configuration file.

 <_config:configgrouping name="HttpSecuritySettings_Rest">
          <_config:property name="CORSAccessControlAllowOrigin" value="*"/>
          <_config:property name="CORSAccessControlAllowMethods" value="GET, HEAD, POST, OPTIONS, PUT, DELETE"/>
          <_config:property name="CORSAccessControlAllowCredentials" value="true"/>
          <_config:property name="CORSAccessControlAllowHeaders" value="Origin,X-Requested-With,Content-Type,Accept,Authorization,cache-control,expires,pragma,wclogonid,wctoken,wctrustedtoken,wcuserid,X-RequestId"/>
          <_config:property name="CORSAccessControlExposeHeaders" value="Access-Control-Allow-Headers"/>
          <_config:property name="CORSAccessControlMaxAge" value="3600"/> 


If you found this useful follow this site! I also have a YouTube channel for IBM Commerce.

Using Watson Translation service in an Eclipse SWT application Part 2

The next follow-up to the last article is the code I used to communicate with the Watson Translation service. But first I want to show the flow of the data:

So basically the SWT client sends a JSON string to the server in the body of the message. You can do this as long as you specify application/json as the Content-Type. For JSON, I use the JSON library for Java over at and its been perfect. I have even begun using this library for all of my in memory objects because then I can easily serialize it out for storage or over the network.

Below you will see the primary code to send this message:

JSONObject payload = new JSONObject();
payload.put("toLang", obj.get("to"));
payload.put("text", obj.get("text"));
URL url = new URL(pet_bluemix_translation_service);
URLConnection connection = url.openConnection();
connection.setRequestProperty("Content-Type", "application/json");
OutputStreamWriter out = new OutputStreamWriter(connection.getOutputStream());
//Now get the response
BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
String n = in.readLine();
StringBuffer sbValue = new StringBuffer();
while(n != null){
	n = in.readLine();
final String value = sbValue.toString();