Thursday, 30 June 2011

MarkLogic/XCC: Copying a Module with User Content Permissions

To get xcc to copy modules over with (execute) permissions pre-applied, you can do the following:

And you can test by running this against the Modules database in CQ:

And you should see something like this

Wednesday, 22 June 2011

MarkLogic: clearing a forest in a database programatically

Quick example for clearing everything in the "Modules" forest - I've renamed the string to protect anyone doing a quick copy/paste on their dev environment:

MarkLogic: Enabling debug options when using the Search API

Adding the following to your options element gives you access to a wealth of incredibly useful information when working with the Search API (search:search):

Tuesday, 21 June 2011

Linux: SCP syntax and structure note

The syntax looks like this:

Monday, 13 June 2011

MarkLogic/XCC: Installing Modules Programatically

A quick example detailing how XCC can be used to install modules:

Saturday, 4 June 2011

Eclipse: Installing XQDT (and DLTK) on Eclipse Indigo [3.7 RC3]

Some brief notes regarding getting set up with XQDT on Eclipse for XQuery app development...

Start by installing the Eclipse IDE for Java Developers from (N.B. this is the link for the Release Candidate version of Eclipse 3.7 - for the current release, the link is

For everything else, you can use the Eclipse Install manager (Help > Install New Software...)

At outset, there are a couple of dependencies. First, the WST Server Adaptors from the Web, XML, Java EE and OSGi Enterprise Development section within

Then you need to install the DLTK 2.0 Core framework. To do this, add the update site repository to the "Work with" field and select Dynamic Languages Toolkit (DLTK) 2.0 and choose the package Dynamic Languages Toolkit - Core Frameworks

Finally, add the XQDT update site repository (also paste into the "Work with" input field) and select all the necessary components: