Recently changed documents

When all else fails: How to hide a div in JSF

More documents like this are at:  CS-Java

24-Jan-06

Majority of the JSF controls have a "rendered" property. If you set this to false, then that component and its children JSF components will not be rendered. Here is an example

How to work the HttpServletRequest in a JSF environment

More documents like this are at:  CS-Java

24-Jan-06

While programming in JSF one may need access to the request object and also its attributes. The managed beans of JSF are also available in the request or the session objects. The following utility class allows you work the request object and get to the managed beans directly if the need is there

os: ie active content javascript disabled

More documents like this are at:  Computer Hardware

12-Jan-06

http://weblogs.asp.net/jgalloway/archive/2004/08/20/218123.aspx

Apparently javascript in a standalone html could behave differently (disbled) starting in xp sp2

Understanding/using Cookies in javascript

More documents like this are at:  CS-JavaScript

10-Jan-06

http://www.quirksmode.org/index.html?/js/cookies.html

Where you find one, you find many

//************************************************
// createCookie
// Borrowed from the internet (Scott Andrew)
//************************************************
function createCookie(name,value,days)
{
   if (days)
   {
      var date = new Date();
      date.setTime(date.getTime()+(days*24*60*60*1000));
      var expires = "; expires="+date.toGMTString();
   }
   else var expires = "";
   //document.cookie = name+"="+value+expires+"; path=/";
   document.cookie = name+"="+value+"; path=/";
}

//************************************************
// readCookie
// Borrowed from the internet
//************************************************
function readCookie(name)
{
   var nameEQ = name + "=";
   var ca = document.cookie.split(';');
   for(var i=0;i < ca.length;i++)
   {
      var c = ca[i];
      while (c.charAt(0)==' ') c = c.substring(1,c.length);
      if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
   }
   return null;
}

Honda Odyssey riddled with transmission issues

More documents like this are at:  Just-Blogs

2-Jan-06

Servlet Based Reosurce Readers in J2EE applications

More documents like this are at:  00.05-Articles

8-Dec-05

In a j2ee web app one needs to read config files, test data files, or xml files or xslt files at run time. If you read them from a file directory, the directories may not be valid at run time inside the web app container. One can use the class loader instead to load these files. But I prefer to read them using the servlet context of an init servlet. The approach will also work for containers that only work with war files (WebSphere is an example).

How to figure out screen resolution in javascript

More documents like this are at:  CS-JavaScript

29-Nov-05

http://www.pageresource.com/jscript/jscreen.htm

How to figure out screen resolution in javascript

Example

if ((screen.width>=1024) && (screen.height>=768))
{
 window.location="highres.html";
}
else
{
  window.location="lowres.html";
}

CSS Styling a table for page lay outs

More documents like this are at:  CSS

15-Nov-05

Use tables to provide page layouts for master pages on web sites. Although divs with CSS is preferred there are some issues that I am not happy about using CSS

LINQ Notes

More documents like this are at:  CS-dotnet

14-Nov-05

Linq

A 5 minute guide/tutorial to JSF 1.1

More documents like this are at:  Java Server Faces

11-Nov-05

Quickly set up a base environment for JSF that can run under tomcat. The steps presented here are

Download jsf 1.1
Download jstl 1.0
Drop in the jar files in your web app
setup the web.xml
setup the faces-config.xml
create a hello-world.jsp
Access the page via a url
My first error before getting it to work

Taglib examples

More documents like this are at:  CS-Java

10-Nov-05

Taglib examples

js: How to encode decode strings in javascript

More documents like this are at:  CS-JavaScript

4-Nov-05

http://scriptasylum.com/tutorials/encdec/encode-decode.html

you will need to use the escape and unescape functions.

China wok: Take out chinese

More documents like this are at:  Jacksonville Restaurants

3-Nov-05

363-8933

Software consulting firms in India during late 80s enjoyed a rare advantage. The job market for graduating engineers in all disciplines was very depressed. Especially with regional language differences and the inability to communicate in English and in some case Hindi pushed many undergrads from the regional universities to pursue masters programs. As luck would have it, the central government instituted a scholarship (essentially a monthly salary) for most of the qualifying graduating programs. This further encouraged the migration to higher education. The poor job market and a very qualified talent pool provided a windfall for the consulting firms that had just started consulting in US and other countries abroad.

During those years I found myself sharing a cube with two more individuals at one of the consulting firms. One of these good friends is a copious programmer. He used to get quite irritated as the boss would demand his work sooner. His reason was that he might take longer but his code would run the first time. He was quite right in a good number cases. In contrast I might take ten runs before even compiling and then another ten runs to actually get it working. I have always looked upon a day when I would write code and it would somehow miraculously run the first time.

Well after all these years I have a small victory to report. Recently Pramod, a friend, asked me to provide a facility for him in Aspire/J2EE to set a parameter on every database connection he uses. So I have created this fairly involved facility based on "connection events" that did the following

  • Raise event when a connection is created
  • Raise event when a connection is closed
  • Raise event when a connection is requested from a pool
  • Raise event when a connection is put back into a pool
  • Provide an event distributor so that he can override any events
  • Provide a default event handler that can call an sql statement on all opened connections

I have also created a write up for him on my site on how to use the facility along with release notes for the jar file. I was gearing up to hear from Mahaveer, who is using this jar, all kinds of issues as I have not even unit tested the facility other than compiling it with eclipse.

Then I was talking to Pramod on a completely different subject and he mentioned the whole thing worked fine as he expected and Mahaveer is using it.

I am quite positive I may have to wait another few years for this to happen.

I am told a power nap is good for you. Sleep has a different pattern for me. If I am sleeping I really don't want to wake up and I want to get away with as much of it as possible. If I am awake I just don't find any time to go to sleep, the end result being I would be lucky if I get a 6 hour sleep on the average.

But I do try to sneak in a 30 minute walk usually after lunch. I am not sure what happens to others when they walk. In my case all kinds of ideas come to the surfaces mostly in a babble. Some of them, usually one or two get consolidated by the end of the walk. They are usually one liners, very similar to the title of this write up. This is most productive when I walk alone. Although quite enjoyable with company, a walk doesn't seem to be equally fruitful. A conversation seem to prefer a certain quiteness to the body such as a comfortable sofa.

Swollen upper eyelid

More documents like this are at:  Health

16-Oct-05

Could rubbing an eye cause this ...

How to treat chalazion

More documents like this are at:  Health

15-Oct-05

It has been difficult to treat this thing so far ...

This articles explores a couple of ways of hiding div sections in an html document. The discussion will apply to other html controls as well that exhibit "display" and "visibility" properties. The article also contains sample code.

r: News line

More documents like this are at:  00.15-Research

5-Oct-05

Technology news

A JSP Architecture for Oracle Stored Procedures

More documents like this are at:  00.05-Articles

4-Oct-05

http://javareport.com/java/toc.asp?mon=7&yr=2001

Stored procedures offer excellent design compromises between scalability and portability. Although the JDBC API provides a mechanism to call a stored procedure, a higher level abstraction is needed to treat the output as a hierarchical set of result sets. This is possible in Oracle only via REFCURSORS. This article shows readers how to write a stored procedure in Oracle using REFCURSORS, and how to access REFCURSORS from Java. Readers will also learn how to use stored procedures from a JSP page using a pattern called "Transparent Data Access" that eliminates middle-tier (data beans ) coding. July 2001

Developing Web Portals in Jetspeed Using JSP

More documents like this are at:  00.05-Articles

4-Oct-05

http://jdj.sys-con.com/read/45080.htm

A Web portal is an application that aggregates multiple Web applications on a single Web page. Popular examples of portals are My Yahoo (my.yahoo.com) and My MSN (my.msn.com). These portals allow users to aggregate multiple Web applications (like Stock Quote, News... Jun. 3, 2004

Evolving Functionality: Interfaces and Implementations

More documents like this are at:  00.05-Articles

4-Oct-05

http://jdj.sys-con.com/read/36295.htm

C++ brought into vogue the concept of interfaces, abstractness, and implementations. Java went a step further and formalized them with proper keywords for each of the concepts. There are a substantial number of patterns in which interfaces, abstract classes, and c... Jun. 1, 2001

Applying Java/XML/XSL Technology

More documents like this are at:  00.05-Articles

4-Oct-05

http://jdj.sys-con.com/read/40174.htm

XML/XSL are widely used for publishing and EDI. This article shows how XML/XSL can be used effectively for IT Web development by overcoming the disparities between relational data and XML. Apr, 2001

Exploring Laszlo Classes, Attributes, and Events

More documents like this are at:  00.05-Articles

4-Oct-05

http://www.onjava.com/pub/a/onjava/2005/06/15/laszlo.html

Laszlo offers an interesting option for rich client-side GUIs--XML markup of widgets and their event handling, which is then converted into a Flash executable that is run with the Flash plugin in the user's browser. Satya Komatineni introduces Laszlo and shows how to get started writing web applications with it. Jun. 15, 2005

http://www.onjava.com/pub/a/onjava/2004/05/05/jaxb.html

JAXB, now part of Sun's Web Services Developer Pack, offers a means of converting between Java objects and an XML representation. But is it the ideal solution? Satya Komatineni investigates what JAXB has to offer. May. 5, 2004

The Effective Use of Joins in Select Statements

More documents like this are at:  00.05-Articles

4-Oct-05

http://www.onjava.com/pub/a/onjava/2004/01/07/SQLJoins.html

A join construct helps you effectively use select statements to mine relational databases. This article examines syntax, surprises, and rules of thumb for the use of joins. Jan. 7, 2004

Dealing with Group By and Order By in .NET

More documents like this are at:  00.05-Articles

4-Oct-05

http://www.ondotnet.com/pub/a/dotnet/2003/01/14/groupbyds.html

In many situations, an ADO.NET developer will want to use the Order By and Group By semantic of SQL. This article by Satya Komatineni will show you how to do it. Jan. 14, 2003

Improve Your Career with Tomcat and Aspire

More documents like this are at:  00.05-Articles

4-Oct-05

http://www.onjava.com/pub/a/onjava/2002/12/04/tomcat-aspire.html

RDBMS staff can be easily trained to develop Web-based Java apps with Tomcat and Aspire. This article tells how. Dec. 4, 2002

Understanding the Nuances of Delegates in C#

More documents like this are at:  00.05-Articles

4-Oct-05

http://www.ondotnet.com/pub/a/dotnet/2002/11/04/delegates.htm

C# introduced a keyword called delegate for utilizing such things as function pointers and call backs. The syntax of a delegate can be confusing, but one sure way to get latched on to the syntactical nuances of delegates is to understand a delegate's dual nature -- it exhibits the qualities of both a class and a function. Nov. 4, 2002

For Tomcat Developers, Aspire Comes in a JAR

More documents like this are at:  00.05-Articles

4-Oct-05

http://www.onjava.com/pub/a/onjava/2002/10/30/aspire.html

Aspire.jar is a free, open source .jar file that can be used for declarative data access, configuration, logging and factory services needs. For Java developers who are continuing to adopt Tomcat as their primary development platform, this .jar file could save lot of time, while providing a highly-flexible data architecture. Oct. 30, 2002