This JQuery CSS validation tutorial explain how to do client-side validation using jQuery’s validation plugin. This is how the validation snapshot of the validation page. The link to download the code is at end of this tutorial.

Read more…
One of the pain areas for developers is looking for application errors when application has moved into production. It is not at all exciting to scan log files every day.
We can use one of the features provided by log4j which allows you to configure and send mail
log4j.appender.mail=org.apache.log4j.net.SMTPAppender
log4j.appender.mail.To=hello@domain.com
log4j.appender.mail.From=hello@domain.com
log4j.appender.mail.SMTPHost=localhost
log4j.appender.mail.Threshold=ERROR
log4j.appender.mail.BufferSize=1
log4j.appender.mail.Subject=Application Error
As soon as your application throws some exception[ERROR in this case], a mail will be send at hello@domain.com.
You can change this to send DEBUG, INFO , WARN or to any level you like. Of course you would not want the debug or info level in mail.
And do not forget to set
log4j.rootLogger=error,catalina, mail
Feedback appreciated.
For folks who are not aware and often ask Which programming language is twitter written in , the answer is, Scala. Developer at twitter had started with Rub on Rails but looks like they the high volume of traffic was too much for twitter or Ruby on rails ?
Their programmers have been saying
One of the things that I’ve found throughout my career is the need to have long-lived processes. And Ruby, like many scripting languages, has trouble being an environment for long lived processes. But the JVM is very good at that, because it’s been optimized for that over the last ten years. So Scala provides a basis for writing long-lived servers, and that’s primarily what we use it for at Twitter right now.
There could be other reasons which we are not ware of but there have been some real word applications build upon Ruby on rails, noticeably cookfood.com which went public last year. So it is not that Ruby on Rails sucks.
If it comes to poor garbage collection in Ruby on rails , then there is an option to use JRuby . One of the very well written comments on this topic can be found here .
Just because twitter uses Scala and has dumped Ruby on rails does not imply anything. The architect team has to decide what works for them. What may work for twitter does not mean it will work for everyone else.
resonpse.sendRedirect() will forward the request to a new location. You can see the new location in the url of the browser. resonpse.sendRedirect() will direct the request to new location.
for eg resonpse.sendRedirect(“http://www.yahoo.com”) will take you to www.yahoo.com and you can see this address change on your browser address bar.
Another example is in Skill-Guru.com If we do <%response.sendRedirect(“login/homepage.faces”);%> in index,jsp, the request will be directed a new page and the url will change to
http://www.skill-guru.com/skill/login/homepage.faces
The sendRedirect method of HttpServletResponse actually modifies response header and tells the browser (the client) that the requested page is relocated and header also contains the new location of the page Read more…
The Project Management Professional (PMP) certification is a credential offered by the Project Management Institute (PMI).
Eligibility Criteria for PMP Certification
To complete the PMP Certification process, candidates should satisfy the following criteria.
- A Bachelor’s or “global equivalent university degree”
- 4,500 hours of project management experience in which the last three calendar years experience in project management must be documented.
- Document at least 35 contact hours of formal training in project management.
- Thirty-five credit hours of project management education covering subjects like project quality, scope, time, human resources, communications, risk, procurement, and integration management
Pass the PMP Certification Exam.
If there is no degree then Candidate should have
- 7500 hours of project management experience in which the last five calendar years experience in project management must be documented.
Thirty-five credit hours of project management education covering the same subjects as an applicant with a college degree.
Read more…
The Tooltip is a common graphical user interface element. It is used in conjunction with a cursor, usually a mouse pointer. The User hovers the cursor over an item, without clicking it, and tooltip may appear – a small hoverbox with information about the being hovered over.
Ajax Tool tip : AJAX is the art of exchanging data with a server, and update parts of a web page – without reloading the whole page. By Using the Ajax tool tip we can show the content of the tooltip is retrieved by Ajax from external files.
- Files to be used in the Ajax Tool tip
- ajax-tooltip.html = Main HTML file
- js/ajax-tooltip.js = Main JS file for the script
- js/ajax.js = Ajax (SACK library)
- js/ajax-dynamic-content.js = The dynamic content script from this site
- css/ajax-tooltip.css = CSS for tooltip
- images/arrow.gif = Arrow used in the tooltip
- demo-pages = External files loaded by the tooltip
The files used for demo can be downloaded from here http://www.dhtmlgoodies.com/scripts/ajax-tooltip/ajax-tooltip.zip
Configuration : First, you need to include the js files and css files as in the demo (ajax-tooltip.html). Read more…
JSF developers have you ever worked on Spring webflow ? Do you miss the flash and Flowscope feature of Springwebflow ? Well if you have not used spring webflow , then you should consider post below to see how integrating JSF with Spring webflow enhance your application. Some of the notable enhancements are
- The ability to implement dynamic navigation rules that are changeable on-the-fly without a server restart
- Full forward, backward, refresh, redirect, and recursive navigation capabilities built into its flow definition language
- Modularization and encapsulation of navigation logic through the flow definition concept
Java Server Faces is a user interface component framework that consists of a standard API and two implementations – the Sun Reference Implementation and Apache MyFaces. Spring Web Flow is a controller framework that provides a language and runtime for implementing user interface control flow in a web application.
Combining both of them can do wonders for your web application. Look at the post below to find the details.
What Spring webflow offer JSF developers
Drupal is complete open source Content Management System (CMS) which can be used to run your website, set up forums, shopping carts etc In this post we will cover the following.
guides you step by step on downloading, installing and setting up the drupal content management system module in your local or remote php supported servers. Drupal will help you to manage the internet/intranet website contents.
Why should I use Drupal/ Advantages of Drupal
1) User authentication /registration individually (Add FB connect/OpenID)
2) User profiles (they can edit/update/view only their own profile and not the profile of any other users. Let’s call these users agents.
3) Client login
4) Clients can have campaigns. They can have one or more campaigns running at any given time. Campaigns have timeframe
5) When a campaign is available, the admin can send request to join to agents. Agents can choose to accept or decline campaigns.
6) Agents to be chosen for campaign based on target search criteria’s like demographics or any other criteria’s we choose. Number of agents/campaign to be fixed.
7) Agents take part in campaigns. As per of the campaigns they take part in offline activity and then they have to fill out online feedback reports, surveys, questionnaires etc and post campaign poll
8)The results of these campaigns are available to be viewed by the client. Different analytical reports required based on feedback/questionnaires/polls etc available to clients
9) All feedback has to be moderated through admin or campaign manager.
10) Point system for agents. They start with level 0 and each time they engage in feedback or any activity they are assigned points. If they don’t fill up something, points are deducted.
11) Clients can view profiles of agents who are part of their campaign individually and collectively in summarized reports. Read more…