"What if? Why not? Challenge the Convention! Let's do some incredible things!" More Quotes
Home
About/Contact
Twitter
Aspire/J2EE
Github
Pro Android 4
Our Android Books
Lookup Meaning
look up
more ..
Stuff I used to do
java.net Blog
At O'Reilly
Articles
Humanities
Humanities Current
Humanities 2007
Telugu related
Shells
Books
Music
Letters
Recipes
Jax Restaurants
Java
J2SE/J2EE/JSP
Portlets
Research
OSCON 2004
Download OSCON 2004 Presentation
OSCON 2003
Magazines
Dotnet
FTP
Industries
Supply Chain
Health
More documents like this are at: Computer Hardware
3-May-06
winmerge windiff synchit (maybe) not free
More documents like this are at: 00.15-Research
29-Apr-06
How can one enable a website for better searching by search engines?
oai-pmh google sitemap dublin core eprints.org oai registries mod_oai oai gateway service
More documents like this are at: CS-JavaScript
28-Apr-06
<style> div.footerDiv1 { text-align:right; border-top:1px solid } div.footerDiv1 p { margin:0 0 0 0; } </style> <div class="footerDiv1"> <p>Test1 <p>Test1 kddkkkd ddd <p>Test1 kddkkkd ddd </div>
More documents like this are at: 05.03-Meta Principles
24-Apr-06
An escape character is an awful lot of fun in programming. It seem to have the ability to allow multiple dimensions where only one dimension is allowed. A disguise, a ruse, a ploy, almost always clever getting out of tight squeezes.
Here is a function that I am very fond of
escapedString = encode(oldString, escapeChar, oldCharacter, newCharacter);
The function will replace every old character with the new character with a preceding escape character. The function will also escape the escape character itself.
More documents like this are at: CS-SQLServer
22-Apr-06
Search Google for this
select st.statement as masterPageTemplate \ from reports r, sql_statements st \ where 1=1 \ and r.report_content_id = st.statement_id \ and r.report_short_name = 'print_master_page' \ and r.owner_user_id = {ownerUserId.quote} \ and {ownerUserId.quote} in ( \ select owner_user_id from reports r2 \ where r2.report_id = {reportId} )
or better yet, the following
select st.statement as masterPageTemplate \ from reports r, sql_statements st \ where 1=1 \ and r.report_content_id = st.statement_id \ and r.report_short_name = 'print_master_page' \ and r.owner_user_id = (select owner_user_id from reports r2 \ where r2.report_id = {reportId} )
More documents like this are at: 00.05-Articles
19-Apr-06
Read the article as part of Aspire documentation
Aspire in combination with Tomcat presents a very viable and cost-effective option for generating XML directly and declaratively from relational databases. Developers will start by choosing a set of SQL statements or stored procedures. Developers will then arrange these assets into a calling hierarchy in a configuration file. Aspire will execute this hierarchical data definition and returns a java based hierarchical data set. Aspire has pre-defined transformations that can convert this hierarchical data set into varieties of XML formats. Aspire also allows you to transform the resulting XML using XSLT via JAXP. The final XML or HTML can then be sent to the browser or consumed programmatically.
In addition to SQL and Stored-Procedures, you can also use File readers, java classes, and potentially others in their place. These assets are called relational adapters producing relational data sets. New relational adapters can be written quite easily for other enterprise data sources when needed.
The main focus of this article to allow programmers to quickly download Aspire and start generating XML from data bases. This is a cook-book/tutorial like approach that tells you everything you need to get started and be on your way to generate XML with very little coding. This article also encourages see-before-you-paint approach to web page development, meaning you can see your data on the web page as XML or text first before actually writing code for that page. This is very useful for debugging and discovering available fields in the data.
More documents like this are at: Humanities 2007
18-Apr-06
First Law
Technology is dominated by two types of people: those who understand what they do not manage, and those who manage what they do not understand.
Corollary
Every technical hierarchy, in time, developes a competence inversion
Borrowed from "Put's Law and the Successful Technocrat" and as quoted in April 2006 IEEE Spectrum
14-Apr-06
I met a traveller from an antique land Who said :-- Two vast and trunkless legs of stone Stand in the desert. Near them on the sand, Half sunk, a shatter'd visage lies, whose frown And wrinkled lip and sneer of cold command 5 Tell that its sculptor well those passions read Which yet survive, stamp'd on these lifeless things, The hand that mock'd them and the heart that fed. And on the pedestal these words appear: "My name is Ozymandias, king of kings: 10 Look on my works, ye mighty, and despair!" Nothing beside remains: round the decay Of that colossal wreck, boundless and bare, The lone and level sands stretch far away.
--- P. B. Shelley
More documents like this are at: Shells: My Writes
When I have read "Big Fish", unlike many others, I wasn't entirely moved. But I did have to look this word up as it sounded familiar but I was not sure of its meaning any more.
The journey that followed isquite interesting. As it turned out the "exotic" word actually means something that is common enough and something that occurs every day.
A related word "quota" is not only often used in English but also quite common in Telugu representing a "an ongoing or frequent allocation". Most likely this association was borrowed from English to Telugu. Odd, a word I found so foreign, could easily have been deduced by my Grandfather that never spoke a word of English. Worlds apart yet connected.
The later part of "quotidian", namely "dian" or "dias", apparently comes from a Latin/Sanskrit root meaning "day".
To top it off the word "quo" or "kwo" or "ko" is a familiar word in Hindi indicating how. A similar word "quis" still exists in Hindi meaning "who".
So the first part of quotidian quot is related to "how many".
Even quote seem to have been derived from a "sequence of numbers".
I also wonder now what the origin of "Koti" (10 million in Telugu) is. It will be interesting to know if the origin of that word is Sanskrit.
I have just checked and apparently it is a sanskrit number representing those millions. Here is the link
SANSKRIT NUMBERS: Ordinals
12-Apr-06
When "sendRedirect" is used, some times the relative url is being translated into an absolute url using wrong scheme (http vs https). This articles explores the problem and a possible solution using servlet filters.
More documents like this are at: People to watch in Technology
7-Apr-06
Here are some relevent urls for myself.
weblogs on java.net
Weblogs on AKC (covers much broader spectrum)
Articles at O'Reilly's onjava.com
Write web logs for java.net
4-Apr-06
http://www.checkupdown.com/status/E302.html
Will the java url libraries deal with this correctly?
>> Tuesday, April 04, 2006 6:44:53 PM - Comments by satya
Handling redirects manually through java api
301 Moved Permanently. HttpStatus.SC_MOVED_PERMANENTLY 302 Moved Temporarily. HttpStatus.SC_MOVED_TEMPORARILY 303 See Other. HttpStatus.SC_SEE_OTHER 307 Temporary Redirect. HttpStatus.SC_TEMPORARY_REDIRECT
More documents like this are at: CS-Java
Both of the following do the same
Given the following String somestring; void dosomething(){}
Consider the following code
if (somestring!=null&&!"".equals(somestring)) { //if the string is not empty dosomething(); }
Create a function as follows
boolean isValid(String somestring) { if (somestring == null) { //the string is null. so it is not a valid string return false; } //the string is not null //eliminate empty characters at both ends String newstring = somestring.trim(); if (newstring.equals("")) { //the string is an empty string //an empty string is (not) valid return false; } //it is a valid string because it is not null, it is not empty return true; }
Then you can do
if (isValid(somestring)) { //if the string is not empty dosomething(); }
if (somestring!=null&&!"".equals(somestring)) { //if the string is not empty dosomething(); } if (isValid(somestring)) { //if the string is not empty dosomething(); }
2-Apr-06
It is not uncommon in Telugu to come across the following or something suggestive of the same
Aaa kanulu Indra Neelala ganulu
That roughly translates to:
The adorning eyes, mine shafts of royal blue
At least that was my thought, as "gani" translates to a "mine" while "ganulu" stands for plural.
I wasn't sure though what is the equivalent of "Indra Neelam". I wasn't even sure the meaning of it in Telugu. So I looked up a small telugu dictionary. It literally, albeit quite unambitiously, says a blue stone.
It would have been interesting if the shade of blue referred by "Indra Neelam" and "Royal blue" are the same. Probably not. But if they were, "Indra" is the King of the Gods, and "Royal Blue" would have been an apt translation, translating not only the meaning but the importance of the color.
A blue stone reference brings up Sapphire in Websters, pointing to a bright blue, with the following synonyms
azure cerulean lazuline sky-blue
Being a "mine" refers to the intractable depth, in this case being applied to the eyes.
Speaking of deep and of vastness, here is a rough translation from a folk song
I have travelled far to the shores of the Ocean, unlike what I was told it is clearly no match to the vastness of my Venki's heart
26-Mar-06
http://www.sciam.com/askexpert_directory.cfm
An interesting avenue for the curious and perhaps the annoying.
http://www.webster-dictionary.org/definition/phylum
In the context of classification a phylum is a major taxonomic group of animals and plants; contains classes.
Now that an official words exists for such a concept, the word "package" in java or other computer languages seem so ordinary when compared to this "grand division"
http://www.webster-dictionary.org/definition/nematode
Apparently a study of unsegmented, silky bodied, upper crust, earthly worms.
http://www.reducedshakespeare.com/
"Irreverent yet informed, the three performers apply a steady stream of sight gags, sound gags, even smell gags to a broad canvas, turning sacred cows into laughing-stocks along the way. The deliberately loose edges of the show camouflage its careful structure, in the same way the trio's ease with improvisation hides years of rehearsal."
Jeanne Cooper - Boston Globe
http://www.hds.harvard.edu/faculty/king.html
These days it is becoming rarer and rarer to find reasonable thinkers irrespective of their chosen field of study, in this case being religion or perhaps "divinity".
I have heard her on NPR saying this morning that "to seek" is an important aspect, especially of truth. Got me interested in knowing more of her ideas.
Introduction to Karen King Other teachers at the Divinity School
21-Mar-06
Last night I was hoping I could work with Kavitha for an hour after the never-seem-to-end house chores of the eventing. I was too tired to plead, and cajole her into doing some of the workbooks she has. So I sat with her on her bed reading the hardships of 1930s in the Great American Dustbowl. The book was a fast read as I have always been interested in the larger factors in the environment that crafter much of the history and people with in it. Kavitha looked over a couple of times and duly noted what number I was at. Being on number 16 did not impress her too much. I subsequently ignored while she was trying a contraption by tearing apart the empty pages from a note book.
"I am making instructions to fold this map"
There went 1 page, 2, page and then 3 pages.
Around page 35, she interrupted.
"Dad, see if you can follow the directions and fold this paper as per the instructions".
I looked at the well creased a4 size paper. I took it in my hand and proceeded to fold it at the creases, while wondering why there was a large single headed arrow in the middle of the page running bottom to top.
"Dad, you cannot do that. You have to follow the arrow to fold!"
"Ok!" I said, and folded the paper up from top to bottom while bending the arrow right in the middle. She disagreed.
"No, you have to fold it from bottom to the top so that the tail of the arrow goes and meets the head and not the other way around."
So, I conceded. I folded the paper once.
I was surprised to see another arrow show up, now on the half folded paper. I folded it again. And another arrow. Finally the arrows led me to fold the paper to the size of a quarter, on which it was written.
"Good Job!"
http://www.mickmoloney.com/
Mick Moloney combines the careers of folklorist, arts presenter and advocate, professional musician, and radio and television personality. In 1999 he was awarded the National Heritage Award from the National Endowment for the Arts ? the highest official honor a traditional artist can receive in the United States
New album called McNally's Row of Flats reviwed on NPR
18-Mar-06
function getCursorPositionInTextField(textFieldObj) { //This is required if you were to be clicking on a button to invoke this //otherwise your selection is the button textFieldObj.focus(); textrange = document.selection.createRange().duplicate(); //You may have to make sure the selection and focus is with your object //because the selection is document level entity. //if (textrange.parentElement() != textFieldObj) //{ // alert("Sorry you are not the field"); //} var i=0; while(textrange.move("character",1) == 1) { i++; } return textFieldObj.value.length() - i; }
17-Mar-06
<html> <head> </head> <body> </body> </html>
4-Mar-06
Books to buy
The meaning of Tingo
undaunted courage - Steven Ambrose Mar 4th 2006
The worst hard time: The untold story of those who survived the great american dust bowl - Mar 4th 2006
How to talk to your dog - 11/3/05
One world One Child - 11/3/05
...more
Notes to help with JSP
27-Feb-06
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.
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.
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.."
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.".
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.
More documents like this are at: Health
31-Jan-06
http://www.hscj.ufl.edu/eye/contact.asp
Eye Specialist at UNF Jacksonville
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.
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.
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.
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.
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.
>>> Click here for the next set of documents
Page Menu
Visit my Library
Global Menu
My Web Logs
My Library
My Home
Other libraries
Author Content
data format