Miles to go …

February 23, 2007

“India Poised” by Amitabh Bachchan

Filed under: General — arungupta @ 8:00 am

Read about "India Poised" campaign here.

Amitabh Bachchan, Big B, is a Bollywood superstar. In my opinion, and many others (Greatest Star of the Millennium by BBC where he beat Charlie Chaplin and Marlon Brando, Most powerful Indian star by Forbes, Goodwill Ambassador for UNICEF),  he is the best actor Bollywood has ever produced so far and it’s really nice to see him reciting this anthem. My childhood is full of his movies such as Mr Natwarlal, Muqaddar Ka Sikandar, Amar Akbar Anthony, Don, Do Aur Do Paanch, Shaan, Naseeb, Satte Pe Satta, Coolie and many more.

If you understand Hindi, then I’d recommend to watch that one since, to me, that connects directly to the heart.

 

English Version

Hindi Version

Technorati: Amitabh Bachchan India IndiaPoised

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • email
  • StumbleUpon
  • Technorati
  • Twitter
  • Slashdot

February 22, 2007

This week is Engineers Week

Filed under: General — arungupta @ 6:14 pm

Read the Presidential Message for National Engineers Week, Feb 18-24 2007. There are various activities planned around this event.

As part of that effort, today is Introduce a Girl to Engineering Day. The idea is to reach out K-12 girls with positive message about math and science education and engineering careers. This would hopefully increase women representation in engineering profession. Here is another website celebrating Women in Engineering.

Technorati: engineers eweek women

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • email
  • StumbleUpon
  • Technorati
  • Twitter
  • Slashdot

Screencast #WS3: Reliable and Interoperable Web service using WSIT plug-in, NetBeans and GlassFish

Filed under: webservices — arungupta @ 8:00 am

In the third part of the screen cast series (#ws1, #ws2), I show how a reliable and interoperable Web service can be developed and invoked using NetBeans IDE and WSIT plug-in. This screencast also shows how WSIT plugin can be manually installed in NetBeans.

Enjoy it here.

Here is a preview of screen casts that are plannned in the next few weeks.

  1. #WS4: Developing a Secure Web service using WSIT plug-in, NetBeans and GlassFish
  2. #WS5: Developing a Transactional Web service using WSIT plug-in, NetBeans and GlassFish
  3. #WS6: Invoking a .NET 3.0 endpoint using WSIT plug-in, NetBeans and GlassFish
  4. #WS7: Developing a simple Web service using WSIT plug-in, NetBeans and Tomcat
  5. #WS8: Based upon user requirement, Using GlassFish-bundled Derby database within a Web service built from JSPs.

 Feel free to post suggestions on what would you like to see in terms of Web services development using NetBeans.

UPDATE: See why/when a module may be installed globally versus locally here.

Technorati: Web services NetBeans GlassFish WSIT JAX-WS screencast

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • email
  • StumbleUpon
  • Technorati
  • Twitter
  • Slashdot

February 21, 2007

Polar F11 and Marathon Training

Filed under: Running — arungupta @ 7:09 pm

I’ve started uploading my running log using Polar F11 to their website.

A monthly view provides a summary for the entire month and shows the days on which any kind of physical activity was recorded by F11.

A weekly view provides more detail in terms of finish times, high and low limit of heart rate and total time spent in the week so far.

A daily view allows you to specify the different types of Activity ("Running" below). It shows the timing to the exact second. If I wear the heart rate monitor during the activity, then it calculates the calories burned, fat consumption, maximum heart rate (HRmax) and average heart rate (HRavg, aka resting heart rate).

I’m planning to use this for tracking my marathon training this year. 

I wish, and hope, Polar define a Web service so that users can access their data programmatically or at least allow the data to be exported in a usable format.

Technorati: Running Training Polar Heart Rate Monitor

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • email
  • StumbleUpon
  • Technorati
  • Twitter
  • Slashdot

Dilbert on management “help”

Filed under: General — arungupta @ 1:40 pm

Technorati: dilbert management

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • email
  • StumbleUpon
  • Technorati
  • Twitter
  • Slashdot

February 19, 2007

Week 1 Mileage – Low mileage last week

Filed under: Running — arungupta @ 9:07 pm

Mon: 5 miles
Tue: Rest
Wed: 8.5 miles
Thu: Rest
Fri: 7 miles
Sat: None
Sun: None

Started marathon training last week with a low mileage. The low mileage is mainly because of travel over the President’s Day weekend but I hope to recover this week. Well, one day already gone so will need to run extra mileage in the remaining 6 days.

Technorati: running training fitness runninglog

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • email
  • StumbleUpon
  • Technorati
  • Twitter
  • Slashdot

February 16, 2007

Web Services Features in GlassFish v2 or Application Server 9.1

Filed under: webservices — arungupta @ 2:46 pm

Want to know what powerful and highly-performant Web Services features are supported in GlassFish v2 or Application Server 9.1 ?

Now they are all summarized here.

Technorati: GlassFish Web services

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • email
  • StumbleUpon
  • Technorati
  • Twitter
  • Slashdot

February 14, 2007

Virtual CD-DVD Rom for Windows Vista

Filed under: General — arungupta @ 3:57 pm

Microsoft has a virtual CD control panel that allows to mount CD and DVD images as virtual drives on Windows XP. This tool does not seem to work on Windows Vista Enterprise. I could start the tool, mount a drive but the drive does not show in Explorer. I found the answer in Vista newsgroup

I downloaded and installed Virtual Clone Drive. The tool creates file associations for .ccd; .img; .dvd; .iso; .udf formats. So if I have an ISO image, all I need to do is to locate the image in Explorer and double-click. Such a useful and handy tool.

Technorati: Tools WindowsVista Vista WindowsXP VirtualCD

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • email
  • StumbleUpon
  • Technorati
  • Twitter
  • Slashdot

February 13, 2007

GlassFish and Vista – Interoperable out-of-the-box

Filed under: webservices — arungupta @ 12:00 am

GlassFish v2 M4 and Windows Vista were released two weeks ago. I installed GlassFish M4 on my machine and Vista Enterprise on a different machine. In this blog, I explain the steps followed to invoke a Web service deployed on GlassFish by Vista client and vice versa.

First, lets deploy a service on GlassFish and invoke it using a client on Vista.

  1. Using screencast WS#1, I developed a trivial Web service using NetBeans IDE and deployed on GlassFish.
  2. On Vista machine, I generated the client-side artifacts using the command:

    svcutil /config:Client.exe.config http://129.145.133.129:8080/WebApplication11/NewWebServiceService?wsdl

  3. Then I coded the client code to invoke the service endpoint as:

    using System;
    using System.Collections.Generic;
    using System.Text;

    namespace ConsoleApplication1
    {
       class Program
       {
           static void Main(string[] args)
           {
               NewWebServiceClient client = new NewWebServiceClient();
               string response = client.sayHello("Duke");
               Console.WriteLine("Response from WSIT endpoint: " + response);
           }
       }
    }

  4. Next step is to compile the client code using the command:

    csc.exe /r:"C:\WINDOWS\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\System.ServiceModel.dll"
            /r:"C:\WINDOWS\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\System.Runtime.Serialization.dll"
            Client.cs AddNumbersImplService.cs

    I wonder if there is a way by which csc.exe compiler can be made smarter to recognize WCF assemblies by default. But for now, I need to explicitly specify the assemblies during compilation otherwise the compiler throws bunch of errors like:

    NewWebServiceService.cs(100,63): error CS0234: The type or namespace name 'ServiceModel' does not exist in the namespace 'System' (are you missing an assembly reference?)

  5. After a successful compilation, invoking the client shows the result:

    Response from WSIT endpoint: Hello Duke

Now let’s deploy a similar Web service on Vista and invoke it using GlassFish.

  1. There are multiple ways a WCF Web service can be created from scratch but I find the following steps easiest. Create  service endpoint service.svc as:

    <%@ServiceHost language=c# Debug="true" Service="WCFEndpoint.Hello" %>

    using System.ServiceModel;

    namespace WCFEndpoint
    {
       [ServiceContract]
       public interface IHello
       {
           [OperationContract]
           string sayHello(string name);
       }

       public class Hello : IHello
       {
           public string sayHello(string name)
           {
               return "Hello " + name;
           }
       }
    }

  2. In the same directory create Web.config as:

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
       <system.serviceModel>
           <behaviors>
               <serviceBehaviors>
                   <behavior name="MetadataBehavior">
                        <serviceMetadata httpGetEnabled="true" />
                   </behavior>
               </serviceBehaviors>
           </behaviors>
           <services>
               <service behaviorConfiguration="MetadataBehavior" name="WCFEndpoint.Hello">
                   <endpoint address="" binding="basicHttpBinding" bindingConfiguration=""
                       name="Hello" contract="WCFEndpoint.IHello" />
               </service>
           </services>
       </system.serviceModel>
    </configuration>

  3. I installed IIS after installing Vista so WCF extensions need to be explicitly registered as shown here.
  4. Create a virtual directory, say wsit, in IIS mapping to the directory where service.svc and Web.config are present. You should now see the default WCF/IIS page as shown here. The service endpoint now should be hosted at http://localhost/wsit/service.svc.
  5. Using screencast #WS2, create a JAX-WS client to invoke the Web service.

This is an example of a trivial interoperable Web service between GlassFish M4 and Vista but the key fact is that, as a developer, this is provided as out-of-the-box experience. No extra tweaks or no special configurations required.

I plan to build upon this Web service by adding enterprise Web services features such as Reliable Messaging, Security etc. and show how WSIT enables interoperability with WCF.

Technorati: WSIT Web Services Interoperability GlassFish Vista

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • email
  • StumbleUpon
  • Technorati
  • Twitter
  • Slashdot

February 12, 2007

Running Training Tips

Filed under: Running — arungupta @ 1:17 pm

Great running training tips.

Technorati: Running Training

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • email
  • StumbleUpon
  • Technorati
  • Twitter
  • Slashdot
« Newer PostsOlder Posts »

The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.
Powered by WordPress