Recently changed documents

Florida prepaid website

More documents like this are at:  Just-Blogs

13-May-06

Cool css utilities

More documents like this are at:  CSS

12-May-06

http://web.tampabay.rr.com/bmerkey/examples/css-buttons2.html

css buttons
styling check boxes
Scrollable tables
Hovering
...

Struts questions

More documents like this are at:  CS-Java

8-May-06

Description to be entered

Like a picture, an example, is worth a thousand words. The following code retrieves all folders and files belonging to a user from a content management system.

Find a decent free synching software

More documents like this are at:  Computer Hardware

3-May-06

winmerge
windiff
synchit (maybe) not free

Search engines oai-pmh, google sitemap

More documents like this are at:  00.15-Research

29-Apr-06

How can one enable a website for better searching by search engines?

Keywords

oai-pmh
google sitemap
dublin core
eprints.org
oai registries
mod_oai
oai gateway service

References

Setting up a footer using CSS

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>

The Great Escape Character ..

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.

An encode function

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.

How to do subselects in a where clause

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} )

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.

Putt's first law and its corollary

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

Ozymandias

More documents like this are at:  Humanities 2007

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

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

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.

00.05 Satya Komatineni (myself)

More documents like this are at:  People to watch in Technology

7-Apr-06

understanding http 302 errors

More documents like this are at:  CS-JavaScript

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

Codes that need to be handled

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 

working with valid strings

More documents like this are at:  CS-Java

4-Apr-06

Both of the following do the same

Option1

Given the following String somestring; void dosomething(){}

Consider the following code


if (somestring!=null&&!"".equals(somestring))
{
	//if the string is not empty
	dosomething();
}

Option 2

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();
}

To contrast


if (somestring!=null&&!"".equals(somestring))
{
	//if the string is not empty
	dosomething();
}

if (isValid(somestring))
{
	//if the string is not empty
	dosomething();
}

Looking up 'Indra Neelam'

More documents like this are at:  Humanities 2007

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

Belaboring the translation

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.

Routed to sapphire

A blue stone reference brings up Sapphire in Websters, pointing to a bright blue, with the following synonyms

azure
cerulean
lazuline
sky-blue

On the "gani" part

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

Ask the experts at scienttific american

More documents like this are at:  Humanities 2007

26-Mar-06

http://www.sciam.com/askexpert_directory.cfm

An interesting avenue for the curious and perhaps the annoying.

Phylum

More documents like this are at:  Humanities 2007

26-Mar-06

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"

Nematology

More documents like this are at:  Humanities 2007

26-Mar-06

http://www.webster-dictionary.org/definition/nematode

Apparently a study of unsegmented, silky bodied, upper crust, earthly worms.

The Reduced Shakespeare company

More documents like this are at:  Humanities 2007

26-Mar-06

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

Karen L. King

More documents like this are at:  Humanities 2007

26-Mar-06

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

A surprising level of imagination

More documents like this are at:  Shells: My Writes

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!"

humanities: Mick Moloney

More documents like this are at:  Humanities 2007

21-Mar-06

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

Javascript notes

More documents like this are at:  CS-JavaScript

18-Mar-06

Description to be entered

js: How to get a cursor position in a text field

More documents like this are at:  CS-JavaScript

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;
}

js: sample html

More documents like this are at:  CS-JavaScript

17-Mar-06


<html>
<head>
</head>
<body>
</body>
</html>

Book log

More documents like this are at:  Humanities 2007

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

JSP Notes

More documents like this are at:  CS-Java

4-Mar-06

Notes to help with JSP