Tuesday, April 14, 2009

Text Completion feature in DOS

One day .. as I was using DOS ..suddenly found the text completion feature not working.. really had a tough time typing the complete directory path...

for all my problems ...google is the first solution .. searched google and found what to do to get the Text completion feature working.


1. Open registry Editor
by entering "regedit" in the run dialog box.
2. Go to the below mentioned path
HKEY_CURRENT_USER\Software\Microsoft\Command Processor
3. Click Command Processor and in the right pane double click "CompletionChar"
4. In the value data textbox, enter 9 and press ok.
5. exit regedit.

restart the command prompt.

Friday, February 29, 2008

DataBase Link

What is a DataBaseLink??

A database link connection allows local users to access data on a remote database.


So we had a design problem, our application had to get data from different databases and hence we thought about using this approach to get the data , on the downside , this approach was fine as long as u r reading data from them , but when u want to update or insert .. this is not the best approach as we can break few business rules .

We used a dataaccess layer which was using spring frame work to connect to the database...

Caching

Curam is an stateless application, and this is a concern where u have requirementswhere a state has to be maintained...

So in our application.. we are trying to use a enterprise cache like coherence or Teracotta.. each of this cache has its limitations...
Nice link to read on Terracotta
http://www.theserverside.com/news/thread.tss?thread_id=34294

CURAM UIM problem

I had this funny problem..in CURAM...

we had a requirement , where we had to develop a screen based on a particular type..

For example :- for type 1 we needed the screen to show 3 fields
for type 2 we needed the screen to show 4 different fields and so on .. and we had around 40 types... so it was a question how do we resolve this issue with Curam UIM limitations...


The Approach:--
Solution 1 :- Have a table that would map each type to a UIM and the metadata for that type(like fields to display and so on).and write code to generate the UIM screens and the facade methods and the structs for the facade mthods

The appoach.. was interesting as it involved some code generations.. but some how with the time constarint and not a scalable solution , we did not go by this approach.


Solution 2:- We decided to show all fields of all the type in a single UIM and then have a display indicator for each field..based on the type would display it.
And a single facade method that would have 3 attributes , that is the field type, new value and old value...as every filed is modified .. using AJAX call the facade method and then store each field in a cache and once all of them is done .. do the required server processing...

The approach was complex and was getting away from the UIM architecture.. had to use a lot of custom JSP to get it solved.. and there would be a lot of calls from the client to the server, which would cause a lot of network traffic.

Solution 3:- Have a single UIM with all fields and a display indicator for each field.Have a facade method with all the field value , field type .i.e we had around 40 fields of all types.. so he had this huge struct of 80 attrubtes used in the facade method to do the server side processing.

The approach is not the best solution to the design problem. as it is not scalable..but it was a simple one...and when u want to implement this on the client side.. we may have to forget the best way ..most times... and go for a simple approach as it involves cost and time :-).. time cannot be spent on identifying the best and the right approach.. so we decided to go with this approach...