Aug 23, 2015

Microsoft Band- My Health Companion

I was looking for a kind of monitor or tool to track my varies health related things. Doctor recommended me to walk at least 3 km &  workout 15mins daily.  I want to track my sleeping patterns as well.  ( Note: This is not to diagnose something, but to stay healthier)

I found Microsoft Band is satisfying my needs. Also it provides additional cool features. (As always Microsoft gives us something more additionally) It stands among similar products. So, three weeks ago, I bought a Microsoft Band.

20150808_105256

Now I can

  1. keep an eye on my sleeping pattern.
    20150808_105316
  2. see the distance I made so far
    20150808_124937
  3. see details about my workout session
    20150808_125121

Microsoft Band require Microsoft Health App which sync through Bluetooth 4.0 and App will sync to Microsoft Health web dashboard where you see drilled-down data.

image
image

Why don’t you try it?

Feb 25, 2015

Add Scrip Map error in IIS 7

Error:

The specified module required by this handler is not in the modules list. If you are adding a script map handler mapping, the IsapiModule or the CgiModule must be in the modules list.

image

Background:

I had this error message when configuring BTSHTTPReceive.dll into Handler Mappings  of IIS 7 in my development machine.

Solution:

Windows 7 64 bit:

  1. Go to the “Control Pannel” –> “Programs and Features”
  2. Click on “Turn Windows features on or off”
  3. Make sure “Application Development Features” are enabled.

image

Mar 26, 2014

WSO2 Con 2014

wso2con-asia-2014-inner-logo
Picture Courtesy: http://asia14.wso2con.com/ 

I’ve participated to WSO2 CON 2014 conference, 2nd time, held in Colombo. The theme for the conference is “Connected Business”. This is the current trend in the industry.

Interesting 5 keynotes by 5 experts, took my attention.

Everybody will be there in the Cloud after next 5 years. During this cloud transition period, businesses will evaluates the technologies. Being a open source company WSO2 provides complete middleware product stack to achieve “Connected Business”.

How to Display Loading Image with AJAX-Auto Complete

After long time I had a chance to update my Blog.

In this post I’m going to show you how to display data fetching progress with AJAX Auto Complete extender.

image

This is very simple.

  1. Add ASP Text box to the page (ID=TextBox1)
  2. Add AJAX AutoCompleteExtender
  3. Insert following javascript code to the web page
    <script type="text/javascript">
        function ShowImage() {
            document.getElementById('TextBox1')
                 .style.backgroundImage = 'url(images/loader.gif)';
     
            document.getElementById('TextBox1')
                               .style.backgroundRepeat = 'no-repeat';
     
            document.getElementById('TextBox1')
                               .style.backgroundPosition = 'right';
        }
        function HideImage() {
            document.getElementById('TextBox1')
                                 .style.backgroundImage = 'none';
        }
    ript>



  4. Set OnClientPopulating=ShowImage and OnClientPopulated=HideImage events of AutoCompleteExtender. Complete markup as below.



    <asp:AutoCompleteExtender ID="TextBox1_AutoCompleteExtender" runat="server"  
        DelimiterCharacters="" Enabled="True" ServicePath="WebService1.asmx" TargetControlID="TextBox1"
        ServiceMethod="GetCompletionList" MinimumPrefixLength="2"
        OnClientPopulating="ShowImage" OnClientPopulated="HideImage"  />

Jun 19, 2013

HTTPTimeOutException in ASP.net application

ASP.net application will throw HttpTimeOutException, if it’s request executing more than 100 seconds.

If you need execution time more than that, set following setting in web.config file.

<system.web>
<!-- in seconds-->
<httpRuntime executionTimeout="300"/>
</system.web>

Feb 11, 2013

Convert a Double to String : M3

Since M3 java code is similar to RPG and use MvxString rather than String, here it is the code to convert/format numeric value to alpha value in M3.

   1:  this.PXNUM = dSUM;
   2:  this.PXALPH.clear();
   3:  SRCOMNUM.COMNUM();
   4:  WQT[tempIdx].moveRight(this.PXALPH);



In line number:


1. assign double value which is to be converted.
2. clear any previous value of PXALPH.
3. actual conversion . The SRCCOMNUM is an object of cSRCOMNUM class declared in mvx.app.util
4. gets converted alphanumeric value.


Let, dSUM= 38.05580 and if we want



  • to display dSUM with 2 decimal:

   1:  this.PXNUM = dSUM; 
   2:  this.PXALPH.clear();   
   3:  this.PXDCCD = 2; // setting number of decimals.
   4:  SRCOMNUM.COMNUM(); 
   5:  WQT[tempIdx].moveRight(this.PXALPH);




Output> 38.05






  • to display negative value: Here we have a option, to which character to be used for negative representations. (i.e. –38.05, (38.55), 38.05- etc)

   1:  this.PXNUM = dSUM; 
   2:  this.PXALPH.clear();   
   3:  this.PXDCCD = 2; 
   4:  SRCOMNUM.PXPNVB='('; // Left character if negative
   5:  SRCOMNUM.PXPNVA=')'; // Right character if negative
   6:  SRCOMNUM.COMNUM(); 
   7:  WQT[tempIdx].moveRight(this.PXALPH);






Output> (38.05)

Jan 24, 2013

Move to Movex (M3)

From 2012-12-10, I’ve engaged with M3 , development. Now, I’m playing Senior Technical Lead role.  But I’m still interesting .net development which is my core strength.

What is M3

It is an ERP (Enterprise Resource Planning) solution for, specially, the fashion industry known as Movex. Originally it was developed by Intentia, a Sweden company and somewhere around 2008 it was acquired by Lawson. In late 2012, Infor1 has acquired M3.

Technology

To discuss about the technology, it will take pages. In this post, I’m only going to talks about briefly.

  1. M3BE (M3 Business Engine) is the core component in M3. It is Java. It’s encapsulates ERP functionalities and Data Access Layer. Main data base is DB2, but new versions supports multiple data sources, including MS SQL server.
  2. ISO (Infor Smart Office)- is the front end for the users and client based application. It is WPF  (Microsoft Presentation Foundation) client application.

ISOFigure 1: Infor Smart Office