Tuesday, November 9, 2010

Firefox useful plugins for Web developer

  • Firebug - Web development and debugging tools to debug HTML, Javascript and CSS
  • Firefox Throttle - Bandwidth utilization throttling plug-in
  • HTTP Fox - An HTTP protocol/packets/requests analyzer
  • User Agent Switcher - Tool to switch the user agents without switching the browsers

Tuesday, November 2, 2010

Microsoft Excel Useful Tips

Click the followings to see the solution (tested in Ms Excel 2007), these links will open in new popup window:
  1. Convert Column to Rows and vice versa
  2. Get started with PivotTable Reports
  3. Create a drop-down list from a range of cells
  4. Get started with PivotTable reports in Excel 2007
  5. Example of formatting a cell to percentage :: =TEXT(J5,"0.0%")
  6. Example of concatenating cells/texts :: =CONCATENATE(H3, "(",H6,")")

Friday, May 28, 2010

Side By Side Deployment for Applications

Why do we need "Side By Side Deployment" ?
In the past there has to be a downtime when a application needs to be deployed or a new version of the same application needs to be deployed.

Today application downtime has become zero. Zero downtime can be achieved in various ways. Oracle Weblogic Server provides a neat mechanism of deploying the new version of application without affecting the existing version of application and existing user sessions. At the same time it makes sure that once all the user sessions end (or after a specified timeout period) old version of application is retired automatically.

Once new version of application is deployed using "Side By Side Deployment" mechanism, all new user requests will be served by the new version of the application.

Prerequisite to deploy the application using "Side By Side Deployment" mechanism is that the previously deployed application has to be versioned. If previously deployed application is not versioned then the new application cannot be deployed using "Side By Side Deployment" mechanism. If attempted, it will throw weblogic.management.ManagementException: [Deployer:149081]You cannot deploy application, '[Your-App-Name]', with version '[App-Version]'. The application was previously deployed without version.

To version an application, the attribute "Weblogic-Application-Version: x.xx" should be present in manifest file.

Once the new version of application is deployed successfully and all user sessions requesting old version of application is closed, the old version of application will go into "Retired" state automatically. An application which is in "Retired" state can be made "Active" by clicking the "Start - Serving All Requests". If old version of application is made active, the new version of application will go into "Retired" state, provided all the user sessions requesting new application is closed.

Applications in "Retired" state has to be manually undeployed.

Thursday, January 14, 2010

How to encrypt password using weblogic?

Follow the following steps to encrypt a text using weblogic utility:



  1. Open a DOS or UNIX command prompt

  2. Change directory to the weblogic server domain home

  3. Set the weblogic server environment

  4. Run the command to encrypt text vinaybarnwal

  5. Command:/>java weblogic.security.Encrypt vinaybarnwal

  6. And it should print the encrypted value for vinaybarnwal

Tuesday, December 29, 2009

Wireless Internet Network (wifi) on American Airlines

Wifi is available on some of the American Airlines flight at the height of 31000 feet +, through gogo inflight wifi.

To access it for free using mobile device (including iphone), inflight, select the gogo wifi (available only on selected flights) and register for mobile device, enter the code MobileAA2009, good till december 31, 2009.

Thursday, December 24, 2009

Get a connection from datasource

Get a database connection from datasource:

Saturday, December 19, 2009

URL to Weblogic Portal 10.3 documentation

Generate a certificate using keytool

A trusted certificate can be generated and imported using the following command format:
To generate the trusted certificate:/>
keytool -genkey -keypass -keystore DemoIdentity.jks -storepass DemoIdentityKeyStorePassPhrase -keyalg rsa -alias

What is your first and last name?
[Unknown]:
What is the name of your organizational unit?
[Unknown]:
What is the name of your organization?
[Unknown]:
What is the name of your City or Locality?
[Unknown]:
What is the name of your State or Province?
[Unknown]:
What is the two-letter country code for this unit?
[Unknown]:
Is CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown correct?
[no]: yes

To import the trusted certificate:/>
keytool -export -keypass -keystore DemoIdentity.jks -storepass DemoIdentityKeyStorePassPhrase -keyalg rsa -alias -file

Sunday, November 22, 2009

Clipper Portlet, IFrame Portlet & WSRP Portlet

Clipper Portlet
A clipper portlet is a portlet that renders content (full or part) from another web site. A clipper portlet can include all or a subset of another web site’s content using a process called “web clipping.” You can clip all or part of another web site. Users can effectively view and interact with content from another web site without leaving the portal. The session of Clipper portlet is independent of session of the weblogic portal application.

IFrame Portlet
Also called Browser (URL) Portlets, display HTML content from an external URL; no development tasks are required to implement them. You can clip all or part of another web site. Users can effectively view and interact with content from another web site without leaving the portal.Browser portlets, also called Content URI portlets, are basically HTML portlets that use URLs to retrieve their content. Unlike other portlet types that are limited to displaying data contained within the portal project, browser portlets can display URL content that is outside from the portal project.

WSRP Portlet
Also called, remote portlets conform to the WSRP standard; they can be hosted within a producer application (simple producer or complex producer), and surfaced in a consumer application. WSRP Portlet (or Remote portlet or producer portlet) are the ones who are actually remote portlet and are supported by weblogic portal. All portlets that are created as part of weblogic portal application are by default remote portlets and available to be consumed by the consumer portal. Pages and Books can also be made remote and can be consumed as part of consumer portal. By setting the property "isRemote" for the portlet, it can be prohibitted to be available as remote portlet.

Which one to choose when?
Clipper and Browser porlets are not recommended to use for transactional purposes, they are meant to be for displaying view only contents from third party sites (part or full). However remote portlets (producer portlets) are available for the purpose of publishing as remote porltets and consuming them through consumer portlets. Separate sessions are maintained for each of these consumer and producer portal applications however Weblogic portal platform is responsible to maintain the session between the producer and consumer portals.