Monday, December 3, 2012

City Union Bank Right Issue Subscription

City Union Bank's Right Issue Hard Copty Form will be sent by Second ( 2nd ) week of december to the mailing address of Shares holder.
Shares holder has been already determined ,( people who held shares on 23 Nov 2012).
We have to fill in and send it back to Karvy.
This has been confirmed by Karvy over email. Their email id is einward.ris@karvy.com

 

Saturday, December 1, 2012

Mobile Specific Routing in IBM WCS

Step 1:-
Crete a sub package com.ibm.commerce.foundation-ext

Step 2:-
Navigate to the WC_eardir/xml/config/com.ibm.commerce.foundation directory and copy the wc-devices.xml file into the extensions directory you created in the preceding step.

Step 3:-Add your devices to the wc-devices.xml extension file
(a) Open the new wc-devices.xml, located in your extensions directory.
(b) Replace the default device mappings with your own mappings
(c) Also add  your new devices

Step 4:-
For testing:-
When we try to test the above things with simulator .It won’t pick the Mobile Browser ID (User-Agent) Strings for the actual device.
It always picking a User-Agent value of that browser, on the browser we have opened a simulator.
For testing with simulator or normal browser we need to make a below entry in wc-devices.xml.
For Google Chrome:-
<_config:device name="Apple WebKit" useragentpattern=".*AppleWebKit/535.11.*">
<_config:device name="Apple WebKit1" useragentpattern="AppleWebKit/535.11">
Now browser will act as mobile device and siumulator will also work
For Internet explorer:-
<_config:device name="MSIE 9.0" useragerntpattern=".*MSIE 9.0.*">
Now internet browser will act as mobile device and simulator will also work
Best approach to print a user agent string for your browser on console and the add userAgentPattern accordingly
.Then same browser works as mobile device. We can use below code for the same
String userAgent= request.getHeader("User-Agent").
If value of userAgent comes  Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0) then we can specify
userAgerntPattern=".*MSIE 9.0.*" as above
We can get details about Mobile Browser ID (User-Agent) Strings using below URL
http://www.zytrax.com/tech/web/mobile_ids.html





 

AccountIQ install Certificate

Installing certificates-


1. C:\Users\[user]>keytool -importcert -file D:\ofbiz\ecom_Urgent_Docs\AccountIq\appdb.visor.ie.crt -keystore D:\ofbiz\ecom_Urgent_Docs\AccountIq\keystore.txt -storepass admin1


2. add to java


// System.setProperty( "javax.net.ssl.trustStore", "D:/ofbiz/ecom_Urgent_Docs/AccountIq/keystore.txt" );


// System.setProperty( "javax.net.ssl.trustStorePassword", "admin1" );

IBM WCS Shipping by Weight

Research Shipping
how to change SKU and find out its weight
2. select * from CATENTSHIP where catentry_id=11729;
3. Select * from catentry where catentry_id=11729;
4.   Marker -
5. Select * from POLICY where storeent_id = (Select Store_id from Store where directory =
5.
6. 'MarkerStorefrontAssetStore') ;
7.
8. select * from policycmd where policy_id in ( Select policy_id from POLICY where storeent_id =
9. (Select Store_id from Store where directory = 'MarkerStorefrontAssetStore'));
10.
11.select CALSCALE_ID,CODE from CALSCALE with ur; 12204 'us_ground_na '
12.
13.select * from CALRANGE;
14.update CALRANGE set CALMETHOD_ID=-33 where CALSCALE_ID=12204 with ur;
15.
16.sHIPPING-
17.select * from calmethod;
18.SELECT * FROM CALRULE;
19.select * from calscale;
20.select * from calrange;
21.select * from CALUSAGE; // TAX , SHIPPING , SHIPPINGDISCOUNT ETC
22.select * from crulescale;
23.
24.
25.select * from SHiPMODE;
26.select * from SHPMODCLCD;
27.
28.//select * from calrange where calscale_id=13701 ;
29.
30.// WEIGHT ,HEIGHT ETC DETAILS
31.CATENTSHIP

Swith User Agent of Browser


Will be very useful for testing purpose.
1       . Install add on “User agent switcher”
2        . Now go to tools and swith user agent. See following screen shot

Saturday, May 5, 2012

Disadvantages of Alfresco

1. Enrichment of existing content is not straight forward. You have to reload the content.
2. No support for XQuery.
3. Content transformation is not there.

XML-RPC Vs SOAP Vs REST

SOAP
SOAP was the acronym ofSimple Object Access Protocal but this acronym was dropped in the version of 1.2 of SOAP. It is method for exchanging XML based message over the Internet for providing and consuming web services. SOAP message are transferred forming the SOAP-Envelope.You can view the typicalSOAP Message articture from here. SOAP is widely criticized for it’s design complexity.
In PHP 5, there is built-in extension for the providing and consuming web services. But, I personally preferNusoap toolkit of PHP for providing and consuming web services using SOAP in PHP.
XML-RPC
XML-RPC (remote procedure call) another way of providing and consuming web services. It uses XML to encode and decode the remote procedure call along with it’s parameter. Compared to the articture of SOAP, it has simpler architecture. You can even define data type of parameters of procedure in XML-RPC. You can visit the official websitewww.xmlrpc.com to know more about XML-RPC.
In PHP, there is extension which contain various functions for facilating XML-RPC request and response. But the functionsxmlrpc_encode_request() andxmlrpc_decode_request() available in PHP is very useful for when it comes to encode and decode XML-RPC request and response.
REST
Representational State Trasfer(REST) is comparatively simpler method for providing and consuming web services. Nowadays, this method is becoming popular in the arena of web services. Unlike above two method, it is not necessary to use XML as a data interchange format in REST. REST architecture is basically focused on two things :Resources andInterface.RESTful is another term to define REST web services .
Resources are application’s state and functionality which is represented by a unique URL. The resources share a uniform interface to transfer the state between the client and server.
For example the URL, http://example.com/product/11 can be aresource.Suppose, GET method is used to retrieve product detail from that URL, POST method is used to modify the production information and DELETE method can be used to delete the product from the same URL. Here, the HTTP methods works as a interface to access the resources.
Talking about PHP, the format of information(representation) returned can be in XML, JSON or even in HTML format.DOM functions, SimpleXML functions and JSON functions comes handy when you are handling RESTful interfaces in PHP.
Ref:
http://en.wikipedia.org/wiki/REST

Tips and Tricks

1. What is a Templating language?
More:
Velocity is a viable alternative to Java Server Pages (JSPs) or PHP - http://velocity.apache.org/engine/releases/velocity-1.5/user-guide.html
2. What is a Vortal (vertical portal)?
Different types of portals - http://en.wikipedia.org/wiki/Web_portal

4. What is a sticky session? -
Sticky session refers to the feature of many commercial load balancing solutions for web-farms to route the requests for a particular session to the same physical machine that serviced the first request for that session. This is mainly used to ensure that a in-proc session is not lost as a result of requests for a session being routed to different servers. Since requests for a user are always routed to the same machine that first served the request for that session, sticky sessions can cause uneven load distribution across servers.
5. What is Denial of Service?
Denial of service (DoS) usually refers to an attack that attempts to make a computer resource unavailable to its intended users by flooding a network or server with requests and data. It can also simply refer to a resource, such as e-mail or a Web site, that is not functioning as usual. Often, the denial is accidental rather than a planned attack, resulting from too many legitimate requests. However, malicious DoS attacks are still prevalent against network devices, and a newer breed of DoS attack targeted specifically at applications is becoming more and more common.

6. Are UNIX and Linux same?
Linux has never been certified as being a version of UNIX, so it is described as being "Unix-like." http://www.cyberciti.biz/faq/what-is-the-difference-between-linux-and-unix/

7. Load balancing -
Most commonly, the term load balancing refers to distributing incoming HTTP requests across Web servers in a server farm, to avoid overloading any one server. Because load balancing distributes the requests based on the actual load at each server, it is excellent for ensuring availability and defending against denial of service attacks.
More:
8. Is JSP technology considered to be a deprecated presentation technology?
JSP technology is considered to be a deprecated presentation technology for JavaServer Faces. Facelets is a part of the JavaServer Faces specification and also the preferred presentation technology for building JavaServer Faces technology-based applications (Source: http://docs.oracle.com/javaee/6/tutorial/doc/giepx.html)

8.Is there something like a super version of Java? - http://groovy.codehaus.org/
More:
Groovy Web Console: Guillaume Laforge, the project lead of the Groovy scripting language created a Groovy Web Console (http://groovyconsole.appspot.com/) which is public for all on Google's App Engine. It allows everybody to quickly try out some scripts.

Monday, April 9, 2012

Tips and Tricks