Tuesday, July 31, 2012

The Gurgaon Toll Plaza

If you commute between Gurgaon and Delhi on the NH-8, you would know what it feels like to be stuck at the toll gates.  During peak hours, the heat index of the toll plaza on the Delhi-Gurgaon border is at its peak.  Waiting times go up to intolerable levels.  Even patient men (and women) turn rude and intolerant.  There is no respect for tag only lanes.  

For the uninitiated, tags are prepaid passes that you can purchase in advance and drive through the toll gate by scanning the card or using the “Smart Tag” that get affixed to your vehicle and is read wirelessly by sensors on the gate.  Every time you use the toll plaza, the pre-paid amount on your card gets deducted.  No more giving the attendant 500 Rupee notes and fretting and fuming while he counts out the change.

There have been many suggestions that the concessionaire - Delhi Gurgaon Super Connectivity Limited (DGSCL) is the culprit for all that that ails the toll plaza.   Though there are a few things that the company could improve that come to my mind, I don’t believe the company is completely at fault for all that ails this stretch of road.  The fault lies with DGSCL, the concerned governmental bodies and organisations and users of the expressway.

The Company’s Fault

I have one question for DGSCL.  First you take the money in advance from and then want it to be spent in a fixed amount of time.  That is completely unacceptable.  It is not surprising that most users of the expressway have not opted for tags.  

If like the Delhi Metro, DGSCL would also make their cards never expire, people would have a greater incentive to purchase these and pay for them in advance.  They would have the flexibility to use the cards as and when they pass through the toll gates without counting every day and rueing the wastage of money because they took a couple of days off that month.  

There are options where the tag’s validity is one year - but why have any limit on the usage at all?  You have been paid the money in advance.  Let the money be used over any period of time.

Have pre-paid cards but add post-paid options as well.  Make the tariff structure simpler.  One flat rate for every pass at each of the toll plazas.  Push the Government to make it happen. Your customers will appreciate it.

Penalty and enforcement

Our Governments are spineless.  They cannot enforce a fine on people who insist on paying cash on the tag only gates.

Enforce a fine for people entering tag only lanes without tags.  The penalty should be equal to two trips for 30 days for that class of vehicle.  The violator should get a tag in return for the fine.  Make the tags readily available at all the tag only toll gates.  No delays.  No running from window to window.  Make it really simple and quick.  Take help from the local police to implement and enforce this rule.  Advertise the penalty prominently. This step will slowly increase the number of people with tags and over a small period of time, people will stay away from the tag lanes.  This will make the tag lanes quicker to navigate.  People in cash lanes will see the shorter lanes and the quicker clearance times and will be incentivised to purchase tags.  

Worst Offenders

The worst offenders are users of the highway.  I have already written about how users do not respect the tag only lanes.  There should be strict penalties for getting into tag lanes without tags.  Penalise by making tag purchase compulsory every time someone gets into tag lanes without tags.

State transport buses and taxi cabs should not be allowed without tags.  All radio taxis are run by some form of corporate entity.  They should all be forced as part of their contracts to purchase tags for the vehicles and use the tag lanes.

There are some who cannot wait for their turn to get past the toll.  They prefer to force their way into existing queues.  This behaviour should be heavily penalised.  Marshalls must be equipped with technology and be empowered and supported with security to stop such elements.

The bottom line is that if users were to cultivate a little bit of common sense, navigating this and other toll plazas will be an easier and less stressful task.

Cheers

Thursday, June 28, 2012

Retrieve Dell Warranty Information From VB.Net

Hi

At work, we have been wanting to populate an internal IT asset database with warranty information from our major vendors Dell and HP.

I decided to write a VB.Net application that would use the Dell web service found at http://xserv.dell.com/services/assetservice.asmx.

This web service has one operation GetAssetInformation.

Here is the code.  Note that this sample is a synchronous call.

The iData.Entitlements has one element in the array for each year warranty was renewed post purchase.  For my purpose, I only require the current information.  That is the reason I have exited the "For Each item" loop.

Hope this helps

Cheers

Iyer



Dim myGuid As Guid = Guid.NewGuid()  'create a new GUID
Dim applicationName As String = "AssetService" 'anything will work here
Dim oAssetServiceProxy As New DellServiceReference.AssetServiceSoapClient 'instantiate the proxy
Dim oData = oAssetServiceProxy.GetAssetInformation(myGuid, applicationName, "xxxxx") 'call the service



 For Each iData In oData
            ListBox1.Items.Add("System Mode : " + iData.AssetHeaderData.SystemModel)
            ListBox1.Items.Add("System Ship Date : " + iData.AssetHeaderData.SystemShipDate)
            ListBox1.Items.Add("System ID: " + iData.AssetHeaderData.SystemID)
            For Each item In iData.Entitlements
                ListBox1.Items.Add("Warranty Start Date: " + item.StartDate.ToLongDateString)
                ListBox1.Items.Add("Warranty End Date: " + item.EndDate.ToLongDateString)
                ListBox1.Items.Add("# of days Left : " + item.DaysLeft.ToString)
                Exit For
            Next
            'ListBox1.Items.Add(iData.
 Next

Sunday, June 24, 2012

Interoperable Volumes - Apple, Windows, Linux

Hi

At our organisation, we use Apples, Windows and Linux based systems for a variety of high-end work.  Moving material within them was always a challenge - but we managed to with a combination of FTP, SMB and WebDAV access.  It was rather slow and painful but it worked.

Finally, when our XSAN reached end of life and we had to replace it, we replaced it with a Quantum StorNext system running on top of a Fiber Channel SAN from a leading vendor.  Any FC SAN will work - just check with Quantum for compatibility - though I do not expect any problems with any FC SAN that follows standards.

It works like a dream - Windows, Linux and Apple users can all mount and share the same volume - not just transfer files - they can seamlessly read/write to the same volume from multiple platforms - no more FTP / WebDAV access to shared folders.

The whole user experience of sharing files has become seamless and transparent.  Help desk calls from those departments have disappeared.

Quantum StorNext is a good solution for organisations with a variety of platforms that need to share data with each other.

Cheers

Iyer

Cheap Storage - Reliable, too

Hi

At the place I work, we generate a lot of video content that is huge in size and numbers.  We have been on the lookout for a cost-effective NAS solution for a while and finally decided to take the jump by buying storage boxes from Super Micro.

In addition to the HDD storage with a lot of RAID level options, we also got two Flash drives in RAID-1 for the operating system.

We chose http://www.openfiler.com/ as our NAS operating system.  This is a very mature product now with tons of features to make your NAS and its data accessible from a variety of platforms.

Active Directory Integration
One of our most important requirements was the ability to allow folder access using Windows Active Directory groups.  It took a while for us to get this configured but we managed to in the end and it is working seamlessly.

FTP Server
We are also using the same OpenFiler storage box as our FTP server for the hundreds of video files we receive daily over the Internet using FTP.

SMB Access
As OpenFiler exposes all volumes as CIFS/SMB as well, our internal Windows and Apple clients can easily share and access videos and images from this NAS from around the organisation.

NIC Bonding
The storage box supports teaming of upto 6 1Gbps network interfaces for  performance that exceeds our needs for this application.

Openfiler supports many other features that allow for high availability and data protection.

Check it out.

Good combination - Super Micro storage and OpenFiler.

Cheers

Iyer

Mobile Web Development

Hi

It's been a while since I posted.  For the past month or so, I have been dabbling with developing mobile web applications.  As I always want something useful to try out anything new, I decided to take my organisation's internal processes - approvals of various requests by heads of departments and team leaders - mobile by writing a mobile friendly web application.

I tried out a couple of mobile frameworks but finally settled on jQuery Mobile.  You can check this out at http://jquerymobile.com/.

I find this an excellent work in progress library that is built on top of the super jQuery JavaScript library.

There are some who say that jQuery Mobile is not suited to development of dynamic sites - but I have found that to be not completely true.

The application I have built is completely dynamic, talks to a bunch of .ashx pages that run on our internal IIS web server and reads and updates our internal, production database in real time.

The jQuery Mobile application uses jQuery AJAX calls to ASHX (Generic Handlers) that return JSON data to display and process user actions.

Here is a screenshot of the home screen



And here is a screenshot of the page where leave applications can be approved.


While processes like leave applications may not be time critical and not really required to be available at all times but there are other time critical processes that benefit from being mobile and accessible to employees around the clock and from a device of their choice.

Try out jQuery Mobile.  It's good fun.

Cheers!

Iyer

Thursday, June 9, 2011

ASP.NET 4.0 System.DirectoryServices.DLL

Hi

While trying to use Active Directory from within a web service to authenticate users, I simply could not get the statement

Imports System.DirectoryServices

to work from within my ASMX file.

I would add the reference to the DLL to the project but the Imports statement simply would not work.

I, then, copied the System.DirectoryServices.dll from this path

c:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\

on my laptop - it may be different on your system

and put it into the BIN folder of my project.

And presto, the  Imports statement works!

Wonder why this happens

Let me know if you find an answer

Cheers

Wednesday, April 13, 2011

Titanium, Android, passwordMask does not work

Hi


Titanium Developer SDK version 1.60


I struggled for days with Titanium.UI.createTextField and its passwordMask property.  The passwordMask simply would not work.


Finally, a fluke worked.  I set the autocorrect  : false property and the passwordMask also started working.

The createTextField looks like this now


var tfPassword = Titanium.UI.createTextField({
    color        :'#336699',
    height       :35,
    top          :50,
    left         :100,
    value        : '',
    font         : {fontSize:12,fontFamily:'Helvetica Neue'},
    hintText     :'Enter Password',
    autocorrect  : false,
    passwordMask :true
}) ;


Cheers