Recently changed documents

Learned me

Narayan is 3. He is an imitator. That is an understatement. He is a great imitator. Even before he was 2, right after he could walk, this is what he did. I was washing dishes and Kavitha was doing her home work at the kitchen table. I would interrupt once in a while, turn around and talk to Kavitha about her work. At times I have a habit of standing on my left leg and crossing the right leg over. After a couple of times of this routine, I notice a diminutive disturbance around the kitchen entrance which has no doors but just a wide partition wide enough to pass the widest of our relatives.

I turn my head around to register the view with attention. I see Narayan smiling and his lips quivering to stop an impending giggle. I have noticed his one hand rested on one side of the entrance while his body leaned away straight and supported by one leg. He is now working his other leg to get it crossed over. In a couple of tries he got that pat. He now says with the tone of a satisfied comedian "Whadu think!".

Now the other day, I was helping him with his dinner. With out supervision he would make the kitchen a war zone. So I make it a point to sit with him on an adjacent contraption (Usually this is a chair, but could vary to include any makeshift replacement, as he broke two of them already) and help him with his dinner. Having grown up with so very few chairs, I have a tendency to assume the lotus position when presented with a flat surface. If I can't turn both feet in, I will make do with one and assume "half a lotus" position. So there I was sitting half lotus and feeding him his dinner.

Through this I am watching him wiggle in his chair with one leg down and one leg up. I tell him "Narayan, stop the wiggles and eat your dinner." It occurs to me barely after that he is trying to imitate me in his chair. Soon after he says "I am sitting like you.." obviously admonishing a clueless grownup. I change my position. He changes his and asking me again if he was sitting like me. Having explored this imitation until I am fully tired, he turns his attention to his next curiosity. He seem to be preoccupied with the "genesis" of all ideas. He has to know where things came from. For instance in this case he asks "Dad, who learned me this!". He is yet to distinguish between "learn" and "teach" otherwise the sentence is perfectly formed. Nevertheless I tell myself the established equivalence of "learn" and "teach" is profound.

Raned out

Got to be quite frustrating to his sister that he won't leave her for anything. When her friends see him approaching they all yell "Oh, No!". Anyway he went to a neighbor's house the other day to spend a couple of hours. He came back with lots of stories and how he and another boy stole their marbles and "Raned out fast" before they could catch them. He didn't say "runned out..". So as early as 3 they already distinguish the idea of tense and the disonance of a regular verb and the need for an irregular verb.

Kidnapped beans

Recently he has been introduced to the saltiness of boiled peanuts. Both Kavitha and him love to chew (if not eat) on these peanuts. They consume a few cans every week. It wasn't hard for us to run out of these. The other day he wanted peanuts. I told him we ran out. "Ahan! I see them.." he says. He goes and grabs a can of Kidney beans, and walks out "Here they are".

"Narayan, they are kidney beans, they are not peanuts!"

"What are they? Kidnapped beans! I love kidnapped beans. They make me strong.."

The lazy bone

Getting him dressed after a shower is a daily ritual. First of all he wants me to carry upside down from down stairs to upstairs. He is mildly (I think and I hope) obsessive. So this routine is a must. While upside down he would try to capture whatever objects he could capture and carry them to the shower. These objects included clothes, a rubic cube, a number of abandonded dinosaurs on the floor etc. After the shower he has a specific way for me to carry him to the bed and so on and so forth.

For a few months now, he wants to pick the clothes himself. And he doesn't want to wear any night clothes. He dresses himself in jeans and proper shirt. I let him do it, and most of the days he ends up going to the day care in the same clothes. Bystanders think that I could do better. I am not so sure.

Last night, he is in a relaxing mood. He said he wanted me to pick the clothes. I get him his jeans. He didn't like the particular jeans I have picked. He didn't want them. I said very nicely, in a non-threatning way, "Narayan, then get up from the bed and pick your own clothes". He looked at me a couple of times, weighed the situation that would require him to get off the bed and pick his clothes. He said "Ok give those jeans, I will put them on.".

JSF: Sample code for using datatable tags

More documents like this are at:  Java Server Faces

1-Feb-06

One can use this page to cut and paste data table related code in your jsf pages.

Opthomology: K.V. Chalam

More documents like this are at:  Health

31-Jan-06

http://www.hscj.ufl.edu/eye/contact.asp

Eye Specialist at UNF
Jacksonville

The new face of email and collaboration

More documents like this are at:  Just-Blogs

25-Jan-06

I have this notion more and more that the new face of email is actually a web page, albeit secured, and enabled with the directness of a wiki.

Individual Communication

Two individuals rarely speak on a topic using a single email. It is usually a thread of communication. The idea of a "subject", "to", "from" all become implied for that thread of communication. Although these semantics lie in the heart of a POP server, as far as the UI is concerned it can just be a conversation on a webpage that is visible only to the specified parties.

Group communication

Samething is true with groups or teams working on a project. Most of the times that communication needs to take place with the project as the background. Here again the communication can be on a web page with the email and the wiki integrated where the items are stored in a pop server where as displayed as a set of group items.

Seek and not react

Email is a perfect reactionary vehicle. We are used to the mode where if it is not in the email it will not be worked on. This is quite reactionary. An effective individual can rather monitor a set of activities that he/she is in control of and not necessarily driven by someone else.

Integrating pop and ui

The storage mechanism for this idea can still be pop and the existing email systems can be used perfectly well except that the vehicle for interaction with the pop is a web page or a collection of web pages that are secure and enabled for wiki. For instance when an email is sent it can just be part of the web page or when the web page is updated it can send an email.

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