arfore.com | welcome to the foremind

One of the annoyances I have found with the Contribute Client is that in the Administration interface section, when adding a user, the menu of roles is not sorted for you. The list that appears when you reassign a user or when you create a new role, is sorted for you.

Each time that a new role is added, the client updates the hub file, adding the new role to the end of the list.

In investigating this I found that the hub file is just an XML file. This file is stored in the root _mm folder of the website that you are managing. Note that this file is connection specific, so if you are managing multiple websites, the location of this control file will vary. And if you are managing a large deployment by having multiple sites with a single directory structure, you will have a different _mm folder and hub file for each site, even though they are physically on the same server they are treated differently by the logic of the software.

The XML node list structure that controls this is as follows:

... ...

The name of the role shown in the Contribute client administration interface is controlled by the value assigned to the value attribute of the individual group_list_item nodes.

The last group_item_list node is the most recent role that has been added to the system.

What I ended up doing was using a pre-compiled perl program to sort the group_list_item nodes based on the content of the value attribute.

In order to use xmlsort, you will need the following Perl modules:

XML-Filter-BufferText-1.01 XML-Filter-Sort-1.01 XML-SAX-Writer-0.50

Text-Iconv-1.4

After installing those Perl modules you will be able to use the xmlsort command. This is essentially a precompiled Perl command that eliminates you from having to write a Perl script to do a simple sort. If you need to do more complex sorting or XML processing then you will need to roll your own code.

The necessary syntax for the command is:

xmlsort -i -r=group_list/group_list_item -k=@value cthubxxx.csi > out.xml

Replace the cthubxxx.csi is the command with the actually filename for your particular hub file. At this point you should backup your hub file then rename out.xml to the hub filename. This process doesn’t require a restart of CPS or the Contribute client, but it would be safer to do this at a time when there is low usage of Contribute just in case.

arfore – Mon, 2006 – 12 – 18 01:41

the foremind | all black, well stacked, goin' down the track clickity clack

Many jobs are still based on the mythical, 40-hour working week. But honestly how many hours do you really work for your job every week?

Many of us in the IT sector, whether it’s private or public, work more than 40-hours per week. Some of these extra hours are spent at the office, some are not. Do you count all the time that you check your work e-mail at home or when you are on vacation? How about the time that is spent discussing work problems when in the off hours with other people from work?

According to the statistics from the Families and Work Institute, the average work week for men has increased to 49 hours, and 43.5 hours for women.

foremind » Old code never dies…

Some people think that this is way too geeky…

Old code at LexisNexis is not only deleted, but the coders give it a proper burial.

I can see why people might consider this weird, but one of the reasons for funeral services is to provide a ritual of closing for a period in life. I can easily see why certain pieces of code would be so pernicious as to need a closing ceremony when they are retired.

The URI to TrackBack this entry is: http://arfore.com/wp-trackback.php/3

No comments yet.

RSS feed for comments on this post.

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed:

foremind » Are you wearing black?

Well, the collective will has spoken. John Kerry lost and now we have to endure four more years of President Bush II.

So, why did Bush win again? Maybe this story in the LA Times will shed some light on the problem.

Read it and weep, America.

The URI to TrackBack this entry is: http://arfore.com/wp-trackback.php/2

No comments yet.

RSS feed for comments on this post.

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed:

foremind

Looks like someone has finally had enough.

A poster by the name of Michael, has refused to include a direct link to a news story at washingtonpost.com:

although this story was written by the Washington Post and I have the URL to the original story available, I declined to link to washingtonpost.com because of their intrusive registration.

For more on the story he was talking about, have a look at the post on slashdot.org.

It’s about time that someone stood up and let their voice be heard over the registration process that so many news organization require for people to view their stories.

I have usually used Google to feret out a link that bypasses the registration, but it is high time that the news organizations stop requiring such onerous procedures.

I think that all U.S. Government officials that have not served active duty in a combat situation should be forced to watch movies and documentaries that deal with the subject.

I will start off the list:

What are your suggestions?

Every time that President Bush gets on stage, he always talks about the “War on Terror” and how we need to be vigilant so that we will win.

Has he not noticed that we have already lost? Yes, that’s right we have already lost.

According to Merriam-Webster, Terrorism is the systematic use of terror for coercion.

Can anyone point to a day in the last year or two that there wasn’t a news story about a bombing or killing or death in Iraq?

The main goal of any terrorist is to change the way their victim goes about their daily life. Sometimes it is through fear. Sometimes it is through tragedy, as in the destruction in New York. Sometimes it is through the actions taken by our very own government’s reaction.

In the U.S., our government has used to bullwhip of terror to enforce all sorts of infringements on the civil liberties of ordinary citizens. If you don’t support all the actions of the government, people call you un-patriotic. If you don’t approve whole-heartedly in the troop placement in Iraq, you are being disparaging of the good people of the armed forces, both past and present.

Does this ring a bell with anyone out there? Wake up people and smell the jackboots bearing down on your freedoms.

Next thing you know the Department of Homeland Security will be coming into ordinary stores and shop and enforcing complaints that have no validity. Oh wait, they already have as you can see in this story.

Some people think that this is way too geeky…

Old code at LexisNexis is not only deleted, but the coders give it a proper burial.

I can see why people might consider this weird, but one of the reasons for funeral services is to provide a ritual of closing for a period in life. I can easily see why certain pieces of code would be so pernicious as to need a closing ceremony when they are retired.

Well, the collective will has spoken. John Kerry lost and now we have to endure four more years of President Bush II.

So, why did Bush win again? Maybe this story in the LA Times will shed some light on the problem.

Read it and weep, America.

foremind » Computer Science and Culture

Looks like someone has finally had enough.

A poster by the name of Michael, has refused to include a direct link to a news story at washingtonpost.com:

although this story was written by the Washington Post and I have the URL to the original story available, I declined to link to washingtonpost.com because of their intrusive registration.

For more on the story he was talking about, have a look at the post on slashdot.org.

It’s about time that someone stood up and let their voice be heard over the registration process that so many news organization require for people to view their stories.

I have usually used Google to feret out a link that bypasses the registration, but it is high time that the news organizations stop requiring such onerous procedures.

foremind » Politics

Every time that President Bush gets on stage, he always talks about the “War on Terror” and how we need to be vigilant so that we will win.

Has he not noticed that we have already lost? Yes, that’s right we have already lost.

According to Merriam-Webster, Terrorism is the systematic use of terror for coercion.

Can anyone point to a day in the last year or two that there wasn’t a news story about a bombing or killing or death in Iraq?

The main goal of any terrorist is to change the way their victim goes about their daily life. Sometimes it is through fear. Sometimes it is through tragedy, as in the destruction in New York. Sometimes it is through the actions taken by our very own government’s reaction.

In the U.S., our government has used to bullwhip of terror to enforce all sorts of infringements on the civil liberties of ordinary citizens. If you don’t support all the actions of the government, people call you un-patriotic. If you don’t approve whole-heartedly in the troop placement in Iraq, you are being disparaging of the good people of the armed forces, both past and present.

Does this ring a bell with anyone out there? Wake up people and smell the jackboots bearing down on your freedoms.

Next thing you know the Department of Homeland Security will be coming into ordinary stores and shop and enforcing complaints that have no validity. Oh wait, they already have as you can see in this story.

foremind » General

I think that all U.S. Government officials that have not served active duty in a combat situation should be forced to watch movies and documentaries that deal with the subject.

I will start off the list:

What are your suggestions?

Some people think that this is way too geeky…

Old code at LexisNexis is not only deleted, but the coders give it a proper burial.

I can see why people might consider this weird, but one of the reasons for funeral services is to provide a ritual of closing for a period in life. I can easily see why certain pieces of code would be so pernicious as to need a closing ceremony when they are retired.

foremind » Slashdot Poster Rebels

Looks like someone has finally had enough.

A poster by the name of Michael, has refused to include a direct link to a news story at washingtonpost.com:

although this story was written by the Washington Post and I have the URL to the original story available, I declined to link to washingtonpost.com because of their intrusive registration.

For more on the story he was talking about, have a look at the post on slashdot.org.

It’s about time that someone stood up and let their voice be heard over the registration process that so many news organization require for people to view their stories.

I have usually used Google to feret out a link that bypasses the registration, but it is high time that the news organizations stop requiring such onerous procedures.

The URI to TrackBack this entry is: http://arfore.com/wp-trackback.php/8

No comments yet.

RSS feed for comments on this post.

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed:

foremind » Required Movies for Government Officials

I think that all U.S. Government officials that have not served active duty in a combat situation should be forced to watch movies and documentaries that deal with the subject.

I will start off the list:

What are your suggestions?

The URI to TrackBack this entry is: http://arfore.com/wp-trackback.php/6

RSS feed for comments on this post.

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: