Recently changed documents

Generic Transformations Pattern: Code Examples

More documents like this are at:  OSCON-2004

20-Jul-04

URL definition
Asking for generic transformation
Generic transformation api
Excel example generic transform
Ideas on language binding transforms
References

Pluggable transformations: Code Examples

More documents like this are at:  OSCON-2004

19-Jul-04

Declarative URLs
Transformation definition
Data definition
JSP transform example
XSLT transform example
References

Tier-less computing pattern: Code Examples

More documents like this are at:  OSCON-2004

17-Jul-04

Business logic
Solved using horizontal parts
Solved using vertical typed parts
Both solutions enabled for remoting
Tier-less computing demonstrated
Referenes

Typed interface Pattern: Code Examples

More documents like this are at:  OSCON-2004

16-Jul-04

Start with a declarative api
Why declarative
Why not declarative
Adding discoverability with wrapper modules
Auto generate modules
Benefits of typed interfaces
References

Transactional Pipelines Pattern: Code Exampes

More documents like this are at:  OSCON-2004

16-Jul-04

A pipeline of parts
Transaction aware work flow part
Connection ownership
Alternate strategies

Declarative Part Pipelines: Code Examples

More documents like this are at:  OSCON-2004

16-Jul-04

Sample list of parts
Work flow parts
IOC further explored for parts
Beginings of interoperable parts between frameworks

Declarative Software Part: Code examples

More documents like this are at:  OSCON-2004

16-Jul-04

A pipelined web transaction
A database query part
A text substitution part
A database update part
Substitution part example
Substitution part example using IOC

Declarative Relational Datasets: Example code

More documents like this are at:  OSCON-2004

16-Jul-04

Declaring relational data sets
Typed relational data sets
Data from sql
Data from stored procedures
Data from files
Container managed Transactions
Pipelines
Writing your own adapter

Even with XP you may need a cd burner software

More documents like this are at:  Computer Hardware

16-Jul-04

I was quite naive when I thought XP could copy data cds without needing an external software such as a cd to cd copy.

Well the spell was broken yesterday. Somehow the xp cd copy thinks that a source CD that is less than 700mb is actually containing 715mb. So it won't copy the cd

I had to go back to an older copy of Nero and install it to actually copy this large cd

I am sure there is perfectly a good reason for this but I have no clue what it is

Problems with Windows Installer in windows XP

More documents like this are at:  Computer Hardware

15-Jul-04

http://support.microsoft.com/default.aspx?kbid=315353

Symptoms

Windows Installer won't work

The Windows Installer Service Could Not Be Accessed

Installation Problems

Fix

Look at the above microsoft support url. Briefly you need to run c:\windows\system32\msiexec.exe /regserver to re register this service

Unified Object Server Factory Pattern: Code Examples

More documents like this are at:  OSCON-2004

14-Jul-04

Simple object instantiation
Simple object instantiation: using IMultiInstance
Simple object instantiation with parameters
Simple object instantiation with parameters and IOC
Untyped creator pattern
Untyped creator pattern with configuration parameters
Abstract typed factory
Abstract typed factory 1
Abstract typed delegate

Transparent Data Pipelines Pattern: Code Examples

More documents like this are at:  OSCON-2004

14-Jul-04

What is TDP
TDP Specification
TDP Data model
TDP Usage
TDP Reusable parts
References

Typed Hierarchical Data Sets: Code Examples

More documents like this are at:  OSCON-2004

14-Jul-04

A hierarchical data set data model
Equivalent class definition
Data specification
Language bindings
Language class generation

Unified Abstract Configuration Pattern Examples

More documents like this are at:  OSCON-2004

13-Jul-04

Contains example code for working with configuration
XML configuration files
Property file configuration files
Reading mandatory keys
Providing default values
Reading objects from configuration files
Configuration as a data source for objects
XML Child, attribute equivalence
Multiple configuration files treated as a single configuration source

Hierarchical Datasets: Code examples

More documents like this are at:  OSCON-2004

13-Jul-04

Structure
Code usage
Data Definition
APIs
References

Understand and research this a bit more

More documents like this are at:  CS-JavaScript

12-Jul-04

tbd


<script language="JavaScript" type="text/JavaScript">
function setHTML(e) {
	if (e) {
		document
		.getElementById("example_area")
		.innerHTML
		=document
		   .getElementById(e)
		   .innerHTML;
	}
	else {
		document
		 .getElementById("example_area")
		 .innerHTML=" ";
	}
}
</script>

tbd

"deetee" in child-speak

More documents like this are at:  05.10-Letters To My Daughter

12-Jul-04

Child-speak is quite interesting. Either it is the element of surprise for an adult to decipher a parallel sound or just an evolutionary slavery that was inculcated into the brains of a parent. Narayan, 19 months, has a little bit of vocabulary now.

Not to offend the pains caused to his mother he started off with Mom. For the superstitious he woke up on Dad's day and clearly said Dad. Well a good excuse for the rest of the family not to get me anything else.

In fact before he remembered Mom or Dad, his favorite object and word is ball. He has variations on this word. While he seeks it he calls a round object a "ball". When he gets hold of it it becomes "baa-laa" with a clear glee.

The other day I was sweeping the kitchen. Then I saw this diaper clad otherwise buck naked little figure running through the kitchen start saying "deedee" with his mouch curled up into a surprise-o. I acknowledge thinking he is calling me Daddy, "deedee" being close. "I am sure there are other activities that Daddy does, and wants to be recognized other than sweeping floors" is really what is going through my mind.

Now he takes his little finger and points to the to the trash and insistently calls it this time "deetee" with a discernable frown and a left to right head shake. Well it is child-speak for "Clue-less-grown-up I mean to say Dirty".

It is quite familiar now to hear "deetee" around kitchen sinks and also in public sometimes, referring to various inanimate and animate objects at which time I translate it to "Daddy" and sport a courteous smile.

URL to my session at OSCON 2004

More documents like this are at:  OSCON-2004

9-Jul-04

Ingredients as they turned out

2 to 3 large onions, sweeter the better
1 potato
A can of peas and carrots
half a can of tomato sauce
hot water
Oil and south indian condiments

Prepare the oil

If you know south indian cooking, you know what to do here. Otherwise, heat the oil and chenna dal until the dal is reddish. Add mustard seeds and fennel seeds (I think) and curry leaves.

Add onions

With in a few seconds add cut onions. Use more onions for sweetness and content. Let them brown

Add potato

Peel, Cut and add the potato. Fry it until it softens.

Add the can of peas

Add the can of peas after draining the water. Fry them for a 5 minutes or so

Add the tomato sauce

Add the tomato sauce and hot water. Boil on medium for 10 to 15 minutes. Add turmeric, salt and pepper.

More stuff

I suppose you can add a couple of fresh peppers for spice

Eat with

Tastes very good with long grained basmati rice. Roti would be my second choice

General introduction to server side java patterns

More documents like this are at:  OSCON-2004

7-Jul-04

Most of today's web is driven by server side programming. PHP, ColdFusion, J2EE, Asp.Net, are all frameworks that allow server side programming. To say that server side programming is multi-disciplinary is an understatement. It is more like skating on a field of spikes. The spikes are many. There are tiers to cross, there are protocols to follow, there are multiple programming languages to learn, there are sessions to deal with, there are transactions to manage, security to worry about, scalability to plan for. The goal of the server side programming practice is to deliver a smooth platform on top of these spikes so a developer may perform a programming ballet with freedom.

Server side programming practice is increasingly converging on a set of similar patterns for solving these problems. Although there are distinctions in the provided solutions, it is possible to slice the techniques into recognizable, identifiable patterns. Understanding these patterns will benefit a developer in the following ways:

  • Ease the transition between ever changing and numerous server side frameworks
  • Enhance an existing framework with the additional patterns for a much smoother ride
  • Understand the problem space of server side programming better

Most of the presented patterns here came from developing a server side declarative framework and a tool. I believe these patterns have a value of their own irrespective of the tool in which they are nurtured.

I have divided the patterns in to the following 5 catgories

  • Applicaton Patterns
  • Data Access Patterns
  • Business Logic Patterns
  • Presentation Patterns
  • http/html patterns

Not too dry, not too soggy: A decent trail mix

More documents like this are at:  Recipes

3-Jul-04

It is hard to find a good snack that is reasonably healthy and at the same time edible.

"Fruit & Nut Almond, raising, peanut & cranberry" snack bars from Nature valley is pretty decent.

An easy way to fill a combo box or a list box from an enum.

More documents like this are at:  CS-dotnet

2-Jul-04

Credits: Paul Montgomery

To set a combo box ( or list box ) to all of the values in an enum, do the following.


this.ComboBox1.DataSource 
   = Enum.GetNames( typeof ( YourEnum ));

Then to get it back out.


YourEnum val 
   = (YourEnum) Enum.Parse(typeof(YourEnum)
          ,comboBox1.SelectedItem.ToString());

My notes on file upload size limits in Dotnet

More documents like this are at:  CS-dotnet

2-Jul-04


HttpPostedFile postedFile		= Request.Files["fieldname"];
if (posterFile != null)
    fileUpload.SaveAs(filePath);

Read the full story for limitations and work arounds for file sizes greater than 4M.