Powered by Syntax Highlighter scripts!

Getting Server name in a cluster - Websphere Solution

When we work on a cluster environment of 2 or 3 nodes, Debugging an issue will become nightmare if we have to trace the recent page hit manually to a particular server name for looking logs.

Best way to attack this issue is by printing the server name as META data in the page HTML or to print the required information in HTML comments of the page.

You can use the code snippet below in a JSP page to print the server node name in a cluster.
<!-- Server Display Name: <%=ServerName.getDisplayName()%> -->
<!-- Server Full Name: <%=ServerName.getFullName()%> -->

Do not forget to add import statement as "com.ibm.websphere.runtime.ServerName".


Blogging from Flock Browser

Blogging from the Flock Browser.
A totally new experience of blogging.

I just downloaded the Flock browser and was going through the features.
One of the impressive features is to create new blog entries directly from the browser window with out even opening the blog site.

Download the Flock Broser
Login to your blogger account (Flock stores your account unless you signout)
Flock gives you the message that the browser is now configured to your blog account.
Click on the "Open Blog Editor" icon on the toolbar
(The toolbar is present just below your address bar)
And thats it, start writing the blog... and you can publish the blog entry from with in the browser window.


Blogged with the Flock Browser

Embed Picasa web private albums as Slide show into your Blog

I was trying to share my picasa web album in my blog and was exploring the functionalities provided by Picasa.
Earlier I used to show the Album cover photo and manually give a link to it to point to the Slideshow url of the picasa album.
The New Embed feature is really very helpful as it allows viewing of the Picasa album from with in the site.

It all happens in few steps as below

1) Add photos to your Web album as you do regularly.
2) Open the Album by clicking on the album.
3) The Right Side bar will be displayed as below

4) Click on "Link to this album" link. The option for Embed slideshow is displayed as below:

If youdo not  have "EN- US" as the language in your picase settings, then the "Embed Slideshow" option does not appear.

5) Click on the "Embed Slideshow" link. A dialog box opens as below

Select the options as you link, I always prefer to disable the "Autoplay" feature.
As it is the user of the site, who has to decide if a particuler media component has to be played automatically. Initially with out knowing this feature, I added six albums which resulted in un-acceptable behaviour as all sx albums  started playing automatically.

6) Copy the HTML code snippet given in Step 5 and paste it into your blog.

Hurray, the process is done,,, and you now have the album that can be displayed as slideshow direcly on your site.


Embed Google Map in your Blog

Ever wonder how the Store location of a super market displays the stores on a map with customized details? or the Branch Locator of Bank of America shows the Bank branches with full details?

Adding interactive maps to your blog can be very easy than you imagine - Google does all the underhood work for you :)

Step 1
1 - Login to Google Maps 
2 - "Create new Map" - enter basic details
3 - Add locations to your new map

While adding the locations to the map you can select the image from the images that are available (or) you can upload your own icon.

Once the locations are added, the My Maps screen should display something like this image.

Step 2
1 - Login to map.google.com
2 - Click on My Maps and select the Map that you want to show in your blog
3 - When the map is open with the locations in the selected map
          Click on "Link to this page" link located on Right top of the map. A popup window opens as in the image.
4 - Copy the HTML code snippet present in the "Paste HTML to embed in website" and paste inside your blog
5 - When you open/preview the blog, you should see the Google map embedded in your site as below.

Lets put a thought on the applications that are involved and the service orientered architecture concepts that went through in making this happen...

My Analysis on Google Chrome

Well to my surprise today,, the When I logged into Google Search Home page I saw the ad for "New! Download Chrome (BETA) - the new browser from Google" instead of the regular ad promoting the Mozilla firefox.

As a Google gadget fan, I downloaded the new browser immediately and found it is worth to download and use it.

On first look the browser 
- Had a very light weight user interface giving more space for the site content instead of the toolbars, address bars and all.
- Google innivation can be seen at every inch of this browser, for example when you open the browser.
Instead of opening a blank screen, it opens up the frequently used site home page for you.
Effective use of the Title bar to show multiple tabs - saves space for user...
- The most striking point is its speed, it is lightening fast when compared to IE or Firefox on my system.
- Another noteworthy feature of this brand new browser is the "Task Manager".
- It can list all the sites that are currently open with in-depth technical details for nerds.

Well it is also equipped with a DOM inspector and a javascript debugger.. I am yet to explore these 2 features... Having said all this I cannot use this browser for my project activities as the tools that I use do not support these beta versions. (Documentum Web Publisher, HP Quality Center, etc.,). 

Overall it is going to be a very useful browser and have all features to become a shining star in google sky. I am going to use this for my personal activities and surfing for sure.

Backup and Restore Site Collections in MOSS 2007

The stsadm command can be very helpful in getting the backup of a site and restoring it back to the same server or to another server. It can be used to take 2 types of Backups.
The regular backups which are termed as "Site Collection Backup/Restore" and the second type called "Catastrophic Backup/Restore" for backup or restore across MOSS installations.

Syntax for BACKUP
For site collection backup:

stsadm.exe -o backup

For catastrophic backup:
stsadm.exe -o backup
[-item ]
[-percentage ]
[-backupthreads ]

Syntax for RESTORE
For site collection restore:
stsadm.exe -o restore
[-hostheaderwebapplicationurl ]
For catastrophic restore:
stsadm.exe -o restore
[-backupid ]
[-item ]
[-percentage ]
[-username ]
[-password ]
[-newdatabaseserver ]

Following stsadm commands should be executed from the path"C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>"
Taking the version backup of a site collection:
stsadm.exe -o backup -url "http://localhost:5815/" -filename "D:\Sharepoint Backups\Naga5815_5Feb2008\backup.dat" -backupmethod full
In this case the url of the site collection is given.

Restoring the version backup of a site collection:
The web application should be present and running for restoring the site collection.
stsadm.exe -o restore -url "http://localhost:5815/" -filename "D:\Sharepoint Backups\Naga5815_5Feb2008\backup.dat" -restoremethod overwrite

Taking Catastrophic Backup of a site collection
stsadm.exe -o backup -directory "D:\Sharepoint Backups\Naga5815_5Feb2008" -backupmethod full -item "Farm\Windows SharePoint Services Web Application\Naga - 5815"

Restoring the Catastrophic Restore of a site collection
stsadm.exe -o restore -directory "D:\Sharepoint Backups\Naga5815_5Feb2008" -restoremethod overwrite -item "Farm\Windows SharePoint Services Web Application\Naga - 5815"

Innovative idea to keep users within Site premises

Observe the portion enclosed in "red" circle which lists topics that are related to current topic and found by Google with in the site.
This can be an internal search results as all results are within the Data Springs site. But the prominent impact of the sentence on users is that the sentence makes user not to leave the site for searching on related topics.
And as all the results are from with in the site. It also gives the depth of knowledge this site possesses on the current and relevant topics.
Very good innovative idea to improve Site's name :)