Dave’s Blog

A simple extension to my memory….

Documentum Webtop on Eclispe with debug

ok, Documentum good, really good.  WDK very sophisticated, Webtop good web app for ECM and such stuff.  All good.  Except when it comes to writing apps.  Say you want to mod webtop - can you debug it live in an app server ?  Sure – well not so easy I found.   But here is what I did and it does work.

I am using Documenutm 6.5 with Eclispse 3.1 and tomcat 6 on Windows 2008 64 bit… yeah – 64.  Tried various combos with Tomcat 5.x but seems to have difficulty with 64 bit. 

Read this – works fine.  Very very good actually.  Good job and many thanks

http://dmnotes.wordpress.com/2007/10/10/configuring-wdk-development-environment-in-eclipse/

Now you need to configure Eclispse to debug.  I used Run > Debug Configurations. 

Added a new server – Tomcat 6.

For the arguments, I copied in the once from the tomcat configure dialog

For the source, I added the webtop project

The run – it does run – pretty cool – you can now debug

One issue for 6.5 seems to be an error in a java source – About comparable types on ids.append.  You need to go back to the webtop project properties in Eclispse.  java build path – The on the order and export  of the libs tab - put the JRE System Library right at the top.  Dont mess with anything else.   The error went away immediately.  I think this is only on 6.5 related.

 Then you can do your usual.  If you want to mod a class – then do it in the custom/src area or decompile a class and do same. 

I was writing a bit of stuff to add a watermark stamp to a webtop PDF delivered doc on the fly.  So that when you view, you can see the time it was generated.  I did this for the virtual link handler by decompiling the virtual404handler – adding in a method after the object is pulled from the docbase and before its sent to the client. 

Did all this with debug – so its pretty handy.

Paul Warren is the definitive source for all things to do with this sort of stuff – pure genius – but lots of other very smart folks out there – many thanks for their posts on this as well

February 6, 2010 Posted by daverobertson63 | Documentum | | 2 Comments

Windows 7

Windows 7 i s the cat’s ass alright

I can forgive all Vista’s faults – Windows 7 does the business.  And Silverlight ? Brilliant.

December 5, 2009 Posted by daverobertson63 | Windows | | No Comments Yet

XSLT – Sorting a Date

Have been doing a bit of work with XSLT lately.  Want to sort by date ?  Have a Date attribute ?

Add this:

<xsl:sort select=”substring-after(substring-after(./Date,’-'),’-')”/>
<xsl:sort select=”substring-before(substring-after(Date,’-'),’-')”/>
<xsl:sort select=”substring-before(./Date,’-')”/>

June 18, 2009 Posted by daverobertson63 | Home | | No Comments Yet

Kerberos on AIX 1.6

This might help.  Saw a few posts when trying to get Kerberos from MIT compiled up on AIX 5.2/5.3

I had a problem with libs – couldn’t find shared libs.  I added this to config/shlib.conf

RPATH_FLAG=-Wl,-brtl,-blibpath:

Its the -brtl that makes the linker see the .so files as well as the .a files.  Dont know why its not added already – but anyway thats what I did.  I also had to load the AIX Berkley Embedded DB package - I just loaded the RPM from the IBM http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/download.html toolbox

Once loaded – the whole thing ran and I was able to use the kinit.c source for an embedded Documentum application to authenticate against an Active Directory.

A bit obscure but it may save you a couple of days getting Kerberos compiled and running on AIX

March 25, 2009 Posted by daverobertson63 | Documentum | | No Comments Yet

SQL Sorting by date column stored as a string

Right so you have a column in Oracle table thats stores a date field – trouble is that its stored as a CHAR.  How can I Sort it then ?

This is how….

COLUMN metadataname FORMAT A16;

COLUMN metadatavalue FORMAT A20;

select metadataname, metadatavalue fromectd_prod_3x.ectd_metadata where metadataname = ‘Submission Date’ order by to_date(metadatavalue,’dd/mm/yyyy’);

February 5, 2009 Posted by daverobertson63 | Home | | No Comments Yet

Moving Forwards ?

Two years ago I bought a Dell PC with Vista on it.  I thought I should move forward with the times.  For a million reasons – most of which seem to be logged on the net anyway, I have to say Vista sucks big time.   Today I just had it – no more of a wasted life with it.  No more waiting and waiting for copy of this and that or for apps to appear – so I installed XP again – back to where I was 2 years ago and I have to say – great.  Unless Microsoft can fix this junk with Windows 7 – then I say make sure your next “PC” is a Mac – simple as that.  Its not worth wasting your life on.  Oh I did give it a good chance – I bought 4Gb of mem to run just in case it was a mem issue – nope.  Just the same.  I will have a look at Windows 7 – maybe in a couple of years but only when I read at least one good post about it….

December 28, 2008 Posted by daverobertson63 | Home | | No Comments Yet

Rowset not Found VB

MSBIND.DLL not registered – sod

December 16, 2008 Posted by daverobertson63 | Home | | No Comments Yet

dm_crypto – DFC and API Function

To decrypt a password in Documentum

1. Fetched the server config object
2. Got the value for ldap_config_id.
3. initcrypto,c
4. decrypttext,c,<Encrypted String>
5. encryptpass,c,<Original String> ( Does passwords for DFC)

October 28, 2008 Posted by daverobertson63 | Home | | No Comments Yet

Velleman USB Board – MIDI Controller…

Anyone who knows about the Velleman USB experimental board knows two things that make it briliant.   The first is that they are superbly designed and the other is that they are made in Belgium.

I used to live in Brussels and it is the worlds finest city.

Anyway, I had a great little project for it – simple but effective.  I wanted to use a Boss dual foot switch to drive a laptop based Midi sequencer.  I use Cakewalk audio Virtual Jukebox to do that.  The foot switchmeans that during a performance you can start and stop the sequencer.

Ok, so its only two switches but it was a useful thing to do..

Stage 1 was to write a small VB app to get the inputs.  Simple enough to do – it uses the DLL to monitor the status if the Velleman digital inputs.  It then executes a SendKeys to the Vitrual Jukebox app.

This app also launches the Cakewalk Jukebox.

Connect the Velleman to the Laptop – USB – nice and easy. Works on Vista, 2003 and 2000.

Now to connect the footswitch.  I use a Boss FS-6. I was using this for a DR880 drum machine, however I wanted a more complex rig.  I drive a keyboard and a drum machine from the laptop now – which means I need the footswitch to control the sequencer.

I use USB to MIDI devices to drive the drum machine and Piano from the laptop – two of these little things.

Thats it – The Cakewalk Virtual Jukebox can now be activated by a footswitch…

October 11, 2008 Posted by daverobertson63 | Home | | No Comments Yet

Mac… There is no substitute

A little while ago I was lambasting Vista for lots of blue screens.  It just got worse to the point where Vista is so slow and cumbersome.  I wanted a Mac.  But the cost… I have a great PC wont run Vista but why not Mac.  So here is what I did with my 2Gb Dell Inspiron 530

1. I bought MAC OSX – for the licence

2. I downloaded Kalyway Distro 10.5.2

3. Using Acronis Disk Director – created partitions – also loaded the OS Selector

4. Installed MACOS to a 55Gb partition – keeping Vista intact

5. Installed a Realtek ( TP-LINK 3239D ) Dont use the DLINK 530TX – didnt work for me at all

6. Booted and configured – Note Video works but fixed at 1024 x 768 – ok but a bit cramped

7. Downloaded 10.5.3 Plus Kalyway Kernel mods

8. FOLLOW INSTRUCTIONS!

9. Found an Nvidia GE Force 6200 – stuck it on…

10 Using NVinject – 03 Version for my card

2 hours of using

Yes Unix is better than windows in every respect.  Tell me why its not…..

September 10, 2008 Posted by daverobertson63 | Home | | No Comments Yet