Saturday, October 04, 2014

Python 3.4 Classes Example

class d:
def __init__(self,dat):
def geta(self):
return self.dat
def seta(self,data):

Results Example of Python Class: dd=d(999) dd.dat 999 dd.seta(888) dd.dat 888


kind is class variable
dat is instance variable

Monday, September 29, 2014

Solving the Work Flow Programming Glitches of IRCTC Booking

So its wrong to ask customers to punch the details after a payment transaction fails.
So what are the ways around the glitch.


This is my favorite, use cookies or HTML 5 Local Browser Storage to store the form details & retrieve without making expensive ( Both for customers & Indian Railways ) server round trips.

2. JSF Managed Session Bean: 

Use sticky sessions & JSF managed session bean or plain session variables to solve the re data entry pain & time waster at time of tatkal booking.

3.Store In database:

If session is lost recover through form details thru database.

4. Policy based storage & payment re tries.

Give the option to user to decide one of or all the 3 ways to store details in policy of data persistence.
Also policy for bank gateway connection,
like try 3 times till booking succeeds or till funds last.

5.My Personal favorite is also have Cloud Hosting & never refuse a connection:

Any refused connection is like a lost business opportunity , good will & lack of professionalism,
with auto load based up scaling & down scaling of resources,
never refuse a festival rush for booking by site outages.
That's what the century is all about. 

Sunday, April 13, 2014

Work Flow Automation & Parallelization : Hollywood Beckons

Now the Blockbuster Billion Dollar Trans formative Idea.Who is behind this one.Sony,Pinnacle Adobe? Uh Plan your post production before even starting shooting. Reduce your time to market in this age of super plagiarism.
Workflow automation,libraries & reuse.So U can go about it this way, by using internal or external API's to generate video effects,animation & transformation filter script which can be used to start planning your post production even before beginning any
shoot. Well say what parallelizing production & post production may be the next big thing in Hollywood & Bollywood.SO a internal or External programming api to create the script which can be applied to a video with sliders to adjust the transition spot.In case of External Programming API users can have flash style control on the movie clip. Libraries could be created for using in TV serial,or movies. Create scripts to automate your video editing process & composting.Now say what I write a program to splice my video using programming interface & create custom continuous effects with ease & make my movie unique & a stand out & Or provide both for flexibility.