April 28, 2010

CMIS notepad

CMIS 1.0 specification (HTML):
http://docs.oasis-open.org/cmis/CMIS/v1.0/cs01/cmis-spec-v1.0.html

CMIS Relationship object:
http://docs.oasis-open.org/cmis/CMIS/v1.0/cs01/cmis-spec-v1.0.html#_Toc243905402

CMIS Relationship Service:
http://docs.oasis-open.org/cmis/CMIS/v1.0/cs01/cmis-spec-v1.0.html#_Toc243905479

The Relationship Services (getObjectRelationships) are used to retrieve the dependent Relationship objects associated with an independent object.

April 21, 2010

Weak references in Java

there are actually four different degrees of reference strength: strong, soft, weak, and phantom

The important part about strong references — the part that makes them "strong" — is how they interact with the garbage collector. Specifically, if an object is reachable via a chain of strong references (strongly reachable), it is not eligible for garbage collection.

A weak reference, simply put, is a reference that isn't strong enough to force an object to remain in memory.

Understanding Weak References by Ethan Nicholas

April 13, 2010

Show/hide .classpath and other files in Eclipse Package Explorer

Click on the down arrow icon at the top of the toolbar, and open the Filters menu.

Firebug does not reload JavaScript properly

Workaround is to clear all breakpoints in the JavaScript file and Shift+F5 or Shift+reload the page.

See Firebug issue 207.

March 30, 2010

XML namespaces intro

XML:
Simple example without schema involvement
FILL IN

XML Schema:
targetNamespace

"targetNamespace is used in a schema to specify the namespace that the schema is intended to define" -David Peterson, at JavaRanch

"Each schema document has exactly one target namespace." -XML in a Nutshell

default namespace

noNamespaceSchemaLocation
noNamespaceSchemaLocation: schema to reference for elements that have no namespace prefix?
"The noNamespaceSchemaLocation attribute references an XML Schema document that does not have a target namespace. "

schemaLocation

Interface between XML document and its schema:
FILL IN

Note from w3schools:
The namespace URI is not used by the parser to look up information.

The purpose is to give the namespace a unique name. However, often companies use the namespace as a pointer to a web page containing namespace information.

March 16, 2010

Getting started with Groovy

http://docs.codehaus.org/display/GROOVY/Install+Groovy-Eclipse+Plugin
http://docs.codehaus.org/display/GROOVY/Create+Your+First+Groovy+Project

CSS positioning

http://stackoverflow.com/questions/2451043/change-an-absolutely-positioned-webpage-into-a-centered-one/2451067#2451067

FINISH POST