Powered by Syntax Highlighter scripts!

JQuery - crossing the Javascript barrier

In my recent project I had my first love with JQuery javascript library. earlier I used to afraid and escape from javascript for its complex coding and now I am a big fan to it. Thanks a ton to JQuery :).
JQuery makes a javascript developer's life easy in many ways
  • Selecting the HTML elements and manipulating them.
  • Making AJAX calls in an cross-browser compatible way.
  • Processing the AJAX response using the JQuery selectors which include XPath expressions as a subset.
  • Traversing the HTML elements, attributes using the Selectors.
For me processing the JSON response sent from the server for building a huge table dynamically is a cake walk and cannot imagine doing this without JQuery.

To know the full power of what you can do with JQuery watch out these links where JQuery is the core of making these
Spinning 3D Universe
JQuery Tetris
Color Picker


and last but not the least, JQuery comes with full documentation, and tutorials. An interesting visual documentation for JQuery is very handy.

Remote Desktop Error on Local Security Policy

Recently I got a laptop which has a crappy small keyboard and awful 14" small display added to it. I got accustomed to my 17" wide screen with a normal keyboard and my personal lappy is of 15" screen... I wanted to access my laptop remotely from my desktop itself for first few days.

Problem in accessing remote desktop through "Remote Desktop" getting the following error "Local Policy of this computer does not allow you to logon interactively". I've surfed through the web and found the following links are very helpful in resolving the issue.
1) To get an overview of the issue
2) To actually resolve the issue

Steps I followed to resolve the issue in the desktop that I wanted to connect to remotely

In the desktop that you want to be accessed remotely.
1. Start -> Control Panel
2. In Control Panel, Administrative Tools -> Local Security Policy
3. In Local Security Settings, Expand the tree option:
Local Policy -> User Rights Assignment
4. Check the values for the following two Policies in the right pane:
a) Allow Logon through Terminal Services
Ensure that your id or any group that you belong to is present in this list.
b) Deny Logon through Terminal Services
Ensure that your id or any group that you belong to is not present in this list.

In the desktop that you want to run the "Remote Desktop" client to access any system remotely
1. Run the "mstsc" command to start the Remote Desktop client.
2. Give the user credentials to login

The steps above resolved my issues. Some pre-requisites to be met to actually access any system remotely are:
1. The system should be enabled for remote access.
Steps for enabling a system for remote access are given below:
Right click on "My Computer" icon and click on "Properties"
select the "Remote" tab.
select the check box agianst "Allow users to Remotely connect to this computer".
2. Following services should be enabled on the system
Run the "services.msc" command.
Ensure that the "Terminal Services" service is running"

:) Happy problem solving.

Getting started with "Integration Services in Business Intelligence Development Studio"

Recently got my hands dirt on "Integration Services in Business Intelligence Development Studio". Planning to put an example on the above soon with snapshots. It is easy and fun when I used it for my small data migration requirement.

:)

Getting a site homepage working on MOSS 2007

We have recently worked on a POC for developing the Home page of a site in MOSS 2007 portal.
Following links are very helpful in getting the work done.

Change the default page when site is created
http://wcornwill.wordpress.com/2007/03/29/change-the-default-page-when-site-is-created/

News Aggregator web part MOSS 2007
http://blogs.msdn.com/markarend/archive/2006/07/25/678445.aspx

Customizing the Content Query Web Part and Custom Item Styles
http://www.heathersolomon.com/blog/articles/customitemstyle.aspx

:)

Best Practices for Caching in ASP.NET

Following links very useful for getting the Best practices for Caching in ASP.Net applications.

ASP.NET 2.0: http://msdn2.microsoft.com/en-us/library/ms379559(VS.80).aspx
ASP.NET 1.0: http://msdn2.microsoft.com/en-us/library/aa478965.aspx

:)

Google Mail missing a Key feature

Recently I found that the junk forward mails that I forgot to clean have piled up and are contributing significant % age of my mailbox consumption. But I felt crippled to see that gmail does not provide any feature to sort the mails on size, or search mails based on size of the attachments.

Well Google advocates against sorting of mails, agreed, but searching the mails based on size of the attachments is a much needed feature in special cases where gmail is certainly falling back.


Though this feature might be intentionally dropped back, this is still a major limitation of the offering.

MOSS 2007 - Introduction to WebParts

Useful links for Developing Custom Web Parts in MOSS 2007

A Developer's Introduction to Web Parts
http://msdn2.microsoft.com/en-us/library/ms916848.aspx

Customizing Calendar Control web-part
http://www.datasprings.com/Resources/ArticlesInformation/Sharepoint2007CustomWebParts/tabid/775/Default.aspx

:)

MOSS 2007 - Exporting and Importing Sub-Sites

Recently I was working with Microsoft Office Sharepoint Server 2007 (Moss 2007) and the link below is very useful for exporting and importing the Sites/Sub-sites from one site to another.
http://technet2.microsoft.com/Office/en-us/library/16a7e571-3531-4a4e-baa7-f348a9f9d1d11033.mspx?mfr=true

Following are the main steps for import/export a site or site collection:
1. Export the subsite or site collection by using the following command:
Stsadm.exe -o export -url -includeusersecurity
2. Import the subsite or site collection by using the following command:
Stsadm.exe -o import -url -includeusersecurity

The includeusersecurity parameter specifies that you want to import the security settings for the subsite or site collection. If you do not need the security settings, you can omit this parameter.
For more information about using import/export, see
Stsadm.exe command-line utility .

:)

Tag files in JSP 2.0

Tag files are one of the best features for code re-use in JSP 2.0

Tag files ensure quicker development of tag functions that are re-usable in JSP
Tag files eliminate the use of Java code for writing the Custom tags.

Encapsulating Reusable Content Using Tag Files
Easy Custom Tags with Tag Files
Custom Tag Files

Happy Tagging :)

Open Source UML modelling tools

Few days back, when I posted on Rational Rose tutorial, one of my friend asked if there are any UML modelling tools that he can get started on designing of class diagrams and sequence diagrams. Well I never thought in these lines as I already have Rational rose Enterprise installation in my company PC. Now i got answer to his question - The Open source UML tools.

You can get a good list of Open source UML tools @ java-source.net. The ones recommended on personal experiences from my friends are

StarUML
  • Drawing Class Diagrams and Sequence diagrams
  • Reverse engineering classes from Java code
  • Copy Paste of diagrams to MS Word
Omondo EclipseUML - The free edition provides the following features
  • Plugin to the Eclipse IDE
  • Drawing Sequence diagrams and Class Diagrams
  • Class Diagram reverse engineering
  • But Sequence diagram reverse engineering feature is available only with enterprise edition.
AgroUML, MagicDraw and UMLet are other tools which are worth to mention here. Hope these are useful for new comers to get starting with Designing.

:)

Good article on sitemesh

While searching on Google for Sitemesh information I found the following url to be very informative.


Katmai!

Microsoft releases Microsoft SQL Server 2008 (formerly known with code name 'Katmai'). Key features showcased are
  • Scalable for Mission-critical applications
  • Store and Consume any type of data from any Device
  • Pervasive Business Insight (Enabling users make informed decisions with relevant insight)
  • Dynamic Development for Data Management Solutions
See more about these features here

The Community Technology Preview version is also ready for download here. Those who are interested in hearing abt Microsoft SQL Server 2008 can keep an eye on this link.

Enterprise Architecture Methodologies

Enterprise Architecture explained from Simple to Complex while comparing the top four Enterprise Architecture Methodologies, a good session to start with for an intermediate EAI enthusiast.
A Comparison of the Top Four Enterprise-Architecture Methodologies

:)

Works in Progress!!!

Right now I am working on multiple tasks, will soon post something on these lines here

  • Internationalization and Localization in JSTL using Spring framework
    Locale Resolver, Local Interceptor and other stuff
  • Understanding SiteMesh configuration

C U soon with updates on above tasks and some more techie stuff

:)

Head to Head with < c : import >

Well today its tough time with the <c:import> tag of jstl.
I need to assign a dynamic value to the url attribute of tag and i constantly kept on getting the error "This attribute does not support request time values" from the JSP. Compilation of the jsp file is failing as it expects the url attribute to be assigned a value at compile time itself, which is ridiculus and against our requirement.

Well our friend Google is always there to point out to the solution and I got this url from the springframework forums which solved the issue
http://forum.springframework.org/showthread.php?p=52979#post52979

The reason behind the error is that the servlet 2.4 deployment descriptor which uses JSP 2.0 built-in EL has problems interacting with JSTL 1.0 tag library and mixes well with JSTL 1.1 tag library.

Thanks to mks99, though the form shows he is a Junior member, he is really time-saver for me today!!!

:)

JSTL Primer by IBM

Though the Primer is an old one it is very useful for the starters and quick grabbers...

IBM's primer explaining JSTL from its origin
Part - 1: http://www.ibm.com/developerworks/java/library/j-jstl0211.html Focusses on the expressiveness of the JSTL language
Part - 2: http://www.ibm.com/developerworks/java/library/j-jstl0318/ Focusses on explaining the JSTL syntax
Part - 3: http://www.ibm.com/developerworks/java/library/j-jstl0415/ Explains the localization and internationalization topics
Part - 4: http://www.ibm.com/developerworks/java/library/j-jstl0520/ Explains accessing the SQL and XML resoruces.

Part 4 can be skipped as JSTL is not widely used for this purpose.
XMl tags can be used for parsing the XMLs.
SQL tags look similar to the concept of ASP.NET Data controls where accessing DB from presentation layer is mainly used.
All in all a very good resource for the quick grabbers and new comers to have a look at JSTL.

:)

Learn MVC Architecture and Spring

A Very effective and useful yet very very simple article to learn MVC pattern and Spring framework. Pre-requisite: Java, JSP and Servlets.
The Complete Spring Reference Documentation is here
:)

ServingXML for Data transformations

ServingXML is a very good opensource framework for data flat/XML transformations.
It defines extensible markup vocabulary for expressing flat-XML, XMl-flat, flat-flat and XML-XML processing.
The examples in this link give code snippets for handling most of them common data transformations.

J

JavaFX

A Very good coverage on JavaFX here.
JavaFX –Future for Heavyweight Java Swing components?

Hope it will be a tough competitor for Microsoft SilverLight and Adobe Flex in Rich Internet application development.

:)

Search-Results

Google Gears???

Though there is no news in Google there is news all around on Google Gears!!!

http://www.eweek.com/article2/0,1895,2139083,00.asp

http://www.smh.com.au/articles/2007/05/31/1180205350391.html?page=fullpage#contentSwap1

Check out this innovative cool technology... Anywayz Google once again keeps innovation on top of all others and is Bang n Bang n Bang on Microsoft! Is it media that is creating hype or is MS really lacking innovation? for past few years MS has been shown by media as merely a follower of the innovations coined by Google... hmmm.......

WinHttrack and Xenu

Few tools that kept me busy from last week.

WinHttrack - For downloading the Offline copy of a website
Xenu - For finding the Broken links in websites

Well, how these tools can be used in a live scenario? Here is the solution that is proposed for a live project using the tools above.

The overall project involves much more things to do, but on a short note the tasks that to be done with the above tools include Migration of static content from one website to another website.

Step 1: Use WinHttracker to get the offline copy of the website
Step 2: Ensure that the Folder structure is according to the Site's relative link structure
Step 3: Create a new website in IIS
Step 4: Deploy the Folder into IIS virtual root
Step 5: Check the Site for broken links using Xenu
Step 6: Manually fix all the error links/images or other files reported by Xenu

Thus we have the new site deployed in IIS which has the static content from the previous site.
Well don't worry the owner himself wants to migrate the static content from one platform to another platform in a quick timeframe and this is the solution proposed. So this is not a Site-content stealing exercise here :)

Surface Computing: Innovative User interaction from Microsoft

Microsoft going for another Technical adventure after XBOX aiming common places like restaurants, Hotels and Retail locations.
Wondering how different it is from the Touch-computing we already had in ATMs? Take a look at this link What’s Surfacing at Microsoft.
:)

Introduction to Rational Rose - for Design new-comers

Well, that's it for today... Posted lot of entries that I've browsed to day... with satisfactory note, I am logging off giving a good link on "Introduction to Rational Rose" for those who are newly using Rational Rose...
http://www.slideshare.net/jignesh/cs554-introduction-to-rational-rose



:)

J2EE: Struts-to-Spring Migration

Good comparison between Struts and Spring frameworks.
Struts-to-Spring Migration

J

Java - AntiPatterns

MOSS 2007: Quickly develop your Site home page

Some useful links on MOSS 2007 that we used in one of my previous projects to develop the Site Homepage...
Using SharePoint metadata in webcontent
http://www.sharepointblogs.com/tonstegeman/archive/2006/06/30/8791.aspx
News Aggregator web part MOSS 2007
http://blogs.msdn.com/markarend/archive/2006/07/25/678445.aspx
Customizing the Content Query Web Part and Custom Item Styles
http://www.heathersolomon.com/blog/articles/customitemstyle.aspx
Change the default page when site is createdhttp://wcornwill.wordpress.com/2007/03/29/change-the-default-page-when-site-is-created/

Reference: Introduction to Generics in Tiger

A Good book on “Generics in Java Programming Language” available @ http://java.sun.com/j2se/1.5/pdf/generics-tutorial.pdf

Interview tips for Struts preparation

Some more links on Interviews with Struts primarily in focus…

 

·         A High level yet useful introduction to Struts...

http://www.developer.com/java/ent/article.php/10933_1495931_1

http://www.developer.com/java/ent/article.php/10933_1495931_2

 

·         A Presentation discussing the code samples of an Action Form, Action class, strutcs-config.xml

http://ftpna2.bea.com/pub/downloads/UserGroupPresentations/2004PartnerPresos/struts-introduction.pdf

 

·         The Official apache user guide....

A High level understanding of Struts with good code snippets..

This contains just 5 chapters.. do not go to the pages referred in these pages. just content in these 5 pages is sufficient...

See only the sections that I’ve mentioned, the other sections are not required as they are a bit advanced….

For ex: 4.8 means only 4.8 and not all sub-sections inside it.

This user guide contains 5 pages… take printout and read them…

 

http://struts.apache.org/1.x/userGuide/introduction.html

            Everything in this page

 

http://struts.apache.org/1.x/userGuide/building_model.html

Look at the following sections (sub-sections not included) : and others if you have time...

            2.1 Overview

            2.2 JavaBeans and Scope

            2.3 ActionForm Beans

            2.4 System State Beans

http://struts.apache.org/1.x/userGuide/building_view.html

Look at the following sections (sub-sections not included) : and others if you have time...

            3.1 Overview

            3.2 Internationalized Messages

            3.3 Forms and FormBean Interactions

            3.3.1 Automatic Form Population

            3.3.2 Automatic Form Validation

 

http://struts.apache.org/1.x/userGuide/building_controller.html

Look at the following sections (sub-sections not included) : and others if you have time...

            4.1 Overview

            4.2 The ActionServlet

            4.3 ActionForm Classes

            4.4 Action Classes

            4.4.1 Action Class Design Guidelines

            4.8 Writing Action Mappings

            4.8.1 ActionMapping Example

            4.9 Using ActionMappings for Pages

 

http://struts.apache.org/1.x/userGuide/configuration.html

            (You can skip this sections as most of the topics here are not generally used in all the proejcts. I have done 2 projects and have not touched any thing in this page)

 

All the Best for your Interview!!!

J

Interview tips for J2EE aspirants

Following are the kind of links that are preferred for any one preparing for Interviews… Right to the point, No deviation, Stick to Basics and Get understanding that is required for interviews. No head-banging with deep-dwelling theory books with thousands of pages to cover!!!

 

If you practice the things in these links, you can be confident and dwell deep into these topics when you are actually into the project later…and that too if required.

 

http://j2ee.masslight.com/Chapter1.html (J2EE introduction)

http://j2ee.masslight.com/Chapter2.html (JSP and Servlets)

http://j2ee.masslight.com/Chapter3.html (Tag Libraries)

http://j2ee.masslight.com/Chapter4.html (Struts)

http://j2ee.masslight.com/Chapter5.html (Advanced Struts) - Do not study

http://j2ee.masslight.com/Chapter6.html (EJB - Introduction) - Can go through for getting a lighter idea

 

J

What is EAI for Me?

EAI is my most interesting topic off late as my experience is mainly in this area. I started off with the Big Brother IBM's Websphere Portal server where I first learnt of a Portal application and what collaboration means.
I witnessed the Enterprise Application Integration to its fullest when I was onsite where I saw an architecture with IBM Websphere Portal being the Kep player and Fatwire Content Server, eTrust SiteMinder, Sun LDAP servers, Lotus Notes Sametime server and Google's Search Engine are integrated to the Portal collaboratively to offer the user with a Rich set of features in a single site.
Well as i was all good words and praising IBM all the way I was put into another architecture where Vignette Portal server forms the Key and Vignette Content Management, Autonomy Search Engine, Microsoft Exhange Server and Sun LDAP servers are integrated collaboratively to offer the same set of features for an intranet environment.
And Now I am dusting my hands on MOSS 2007 and its features for EAI and you may see most of my views on MOSS 2007 and comparing it with the earlier said EAI environments.
As you can see my Footer down there, these are just my views and are limited to the perspective of what I see or learn from the resources that I have access to.