Thursday, February 12, 2009

NUS Career Fair, SIngapore, Today and Tomorrow

NUS Career fair is held on to-day and to-morrow(12 and 13th Feb,2009) at Multi Purpose Sports Hall 1 & 2 .


Credit Suisse, AXA Life Insurance, JobStreet.com, JobsCentral, goverment agencies and many more companies participated in that... get the full list of the companies here

in many counters they are giving some free gifts like pen, note books and some more.

Monday, January 12, 2009

Exception Handling - Code for failures - Part-1

Exception Handling - Code for failures (Part-1)
This article is not about what is Exception Handling, this article is just providing some tips, do's , don'ts and sharing the knowledge about Exception Handling and designing of Exception Handling...


Exception Handling is nothing but preparation for failures, if we do not prepare for failures, then expect the more system failures.

Normally we the programmers do not bother much about failure cases while coding, programmers concentrate more on to code the funcationality, yes it is important to complete the optimistic path of the program but the world is not so perfect.
We write a program to run successfully in a conditionl environment, that means we define a program run successfully in this environemnt for this inputs and in this state, so we must concentrate on the Exception Handling to face when the program runs in improper environemt or inputs or states

Improper or poor exception handling will lead for the following things
1. Maitenance will be very difficult
2. Difficult to debug.
3. More turn around time.

Do we have any gauge for perfect Exception handling?
Never mind, as long as we are able to identify the reason for failures without looking the Stacktrace then the Exception Handling is done in good manner.

I will write more in the next part...

Wednesday, January 7, 2009

Core J2EE Patterns best practices and design strtegies e-book

Definition for Design Patterns in Wikipedia is
In software engineering, a design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.

Most of the time you are not the first person to face some problem in the world, some one might face this issue earlier, the solutions or method they find solution would be useful to resolve your problem. this is where patterns are important.

Design Patterns are not difficult to understand, I found the website javacomp.org explains the basics of Design pattern in a simple and easy to understand manner.

The above design pattern is common for OOAD, most of the time we look solutions on platform oriented, the sameway we need patterns for J2EE...

The Design Patterns Java Companion by James W. Cooper also simple to understand

I found that the book "Core J2EE Patterns best practices and design startegies" by Deepak Alur, John Crupi, Dan Malks is veryuseful.

you can download the softcopy of the book by clicking this link

In the book they mentioned abouot what this book is about and what this book is not about

What This Book is About?

This book is about:

• Using patterns for the J2EE Platform.
Based on our collective J2EE platform experience, we have assembled the
pattern catalog in this book. The J2EE Pattern Catalog describes various best
practices related to architecting and designing applications for the J2EE
platform. This book focuses on the following four J2EE technologies: Servlets,
JSP, EJB components, and JMS.

• Using best practices to design applications that use JSP, Servlet, EJB
components, and JMS technologies.

It is not sufficient to merely learn the technology and the APIs. It is equally
important to learn to design with the technology. We have documented what
we have experienced to be the best practices for these technologies.

• Preventing re-inventing-the-wheel when it comes to design and architecture
for the J2EE platform.
Patterns promote design reuse. Reusing known solutions reduces the cycle
time for designing and developing applications, including J2EE applications.

• Identifying bad practices in existing designs and refactoring these designs to
move to a better solution using the J2EE patterns.
Knowing what works well is good. Knowing what does not work is equally
important. We have documented some of the bad practices we have
experienced when designing applications for the J2EE platform.

What This Book Is Not?

This book is not about:
• How to program with Java or J2EE technologies
This book is not about programming. While this book is heavily based on the
J2EE technologies, we do not describe the specific APIs. If you wish to learn
about programming using Java or using any of the J2EE technologies, there
are a number of excellent books and online resources from which to learn.
The online tutorials on the official Java home page at http://java.sun.com
are highly recommended if you wish to learn about individual technologies.
The official specifications for J2EE technologies are also available from the
Java home page.

• What process and methodology to use
We do not suggest any type of process or methodology to use since the
material presented in this book is not related to either. Hence, this book does
not teach you about a process or methodology to follow in your projects. If
you would like to learn more about processes and methodologies, there are
a good number of books that deal with various object-oriented
methodologies and new books on lightweight processes, such as Extreme
Programming.

• How to use Unified Modeling Language (UML)
This book is not going to teach you about UML. We use UML extensively
(specifically class and sequence diagrams) to document the patterns and
describe the static and dynamic interactions. If you want to learn more about
UML, please refer to the UML User Guide [Booch] and the UML Reference
Manual [Rumbaugh] by Grady Booch, Ivar Jacobson and James Rumbaugh.

Sunday, December 28, 2008

Boost Performance with 5.1 and Query Analyzer

MySQL Live Webinar News


MySQL invites you to join our very exciting Live Webinar in January for Asia South. Space is limited, so register now!!

Title:Boost Performance with 5.1 and Query Analyzer (Asia South)

MySQL Live Webinar News


MySQL invites you to join our very exciting Live Webinar in January for Asia South. Space is limited, so register now!!

- Title:
Boost Performance with 5.1 and Query Analyzer (Asia South)
- Date:
Thursday, January 8, 2009
11:00 am in Singapore/Malaysia/Philippines
10:00 am in Bangkok/Indonesia/Vietnam
12:00 pm in Japan
- Presenter:
Robin Schumacher, Director of Product Management, Sun MySQL
Rob Young, Senior Manager of Product Management, Sun MySQL
- Register:
http://www.mysql.com/news-and-events/web-seminars/display-258.html


Join this webinar to learn how MySQL Enterprise now delivers higher performance for large-scale enterprise applications through Partitioning and Row-Based Replication - as well as the ability to further optimize database performance and manage scale with Query Analyzer; a must-have tool for DBAs and developers to identify and analyze problem SQL code causing performance issues and slow downs.


For recorded replays of our most popular live web seminars that cover a wide range of topics, please go to http://www.mysql.com/news-and-events/on-demand-webinars/.



Sincerely,

Sun Microsystems / MySQL
www.mysql.com
Thursday, January 8, 2009
11:00 am in Singapore/Malaysia/Philippines
10:00 am in Bangkok/Indonesia/Vietnam
12:00 pm in Japan
- Presenter:
Robin Schumacher, Director of Product Management, Sun MySQL
Rob Young, Senior Manager of Product Management, Sun MySQL
- Register:
http://www.mysql.com/news-and-events/web-seminars/display-258.html


Join this webinar to learn how MySQL Enterprise now delivers higher performance for large-scale enterprise applications through Partitioning and Row-Based Replication - as well as the ability to further optimize database performance and manage scale with Query Analyzer; a must-have tool for DBAs and developers to identify and analyze problem SQL code causing performance issues and slow downs.


For recorded replays of our most popular live web seminars that cover a wide range of topics, please go to http://www.mysql.com/news-and-events/on-demand-webinars/.

Monday, December 15, 2008

Firefox shows html not web page but IE Internet Explorer is fine

one of the simple portal page what we developed was rendering as HTML in IE browser, but mozilla firefox shows the HTML tags a text instead of rendering...

interesting and irritating, as we know that firefox is strictly checking HTML, we were looking DOCTYPE and every html tag in the page is well formed, tired... it is all well formed.... but still it works in IE and not in Firefox, we have gone through line by line the HTML source, yes yes content type is missing, then we added



But still not working in firefox, but IE it works fine…

Then we look our JSP’s again we added contentType="text/html; charset= utf-8 " in the jsp



But still not working in firefox, but IE it works fine…

I started scolding about firefox, just add a simple hellow world jsp and access that, it is working…….in IE and Firefox, but the real page is not working…

Then I access the page by calling jsp directly instead of calling from Servlet…. This is working…….in IE and Firefox also…

Then suddenly strikes out, is that the response content type issue which is not set in Servlet? this is a very basic thing, how do we miss it? Without much hope I look the servlet, oh ya… it is missing….

Just added response.setContentType("text/html"); in servlet, yehhhhh it works in firefox and IE, actually the cultprit is IE and not firefox,

Firefox display the out put as per the default “text/plain” , but the IE is ignoring the default “text/plain” and shows in HTML…

Sun tech days 2009 in Singapore

Early birds enjoy great discounts and stand to win iPOD Nanos and more! Register Now.


Date/Venue:

Sun Tech Days 2009, 20 - 21 Jan 2009 (Tue & Wed) Raffles Ballroom, Level 4 Raffles City

Convention Centre
Contact: June
Tel: 6273 9956
Fax: 6273 8277
Email:techdays_sg@sun.com

Sunday, November 2, 2008

When to leave a company?

1. Do you have some respect on your immediate boss?
2. Do you have some respect on your organisation?
3. Do you have some respect on the work you are doing?

If you say NO for all of the above three... right time to leave the organisation, do not think about anything else....do not try to resolve the problems... just leave it...

If you say NO for two of the above three... Be Ready to leave... but think twice before take any decision to leave... calculate the risk and benifits... Look for change within organisation

If you say NO only for one of the above three... Donot leave.... try to resolve the problems, talk to your bosses