Docbrokers in the Cloud

Randy Watson once sang the cloud is our future and so it is especially on Google Cloud which I love dearly. Anyway putting Documentum onto a cloud platform seems like a good idea and avoids all sorts of corp IT complications.

The Docbroker provides the address of a Docbase and its port. If the Documentum server is running on an cloud server it will be running on an internal network address. You need to translate that and its easy enough.  If you dont you will probably get this helpful message:

[DFC_SESSION_DOCBASE_UNREACHABLE] 

[DOCBROKER_CONFIGURATION]
secure_connect_mode=dual

[TRANSLATION]

' Documentum Ports
port = '47625=47625'
port = '47626=47626'
host = '45.324.124.45=10.156.0.2'

So what you need to do is provide the internal and external IP address and port.  The format here is; external=internal

Thats it

 

Advertisements

Freeboard Stuff

Freeboard is one of these things that works really well and you want to bite the back of your hand when you get stuff working.

I had this issue though when developing some local web services with SparkJava and testing them on my local machine with localhost

I was using Chrome. Seems like Chrome doesnt support CORS on localhost. I used IE and Edge and it worked. I was building some simple web services and Java and by adding the following headers it worked fine.

res.header(“Access-Control-Allow-Origin” ,”*”);
res.header(“Access-Control-Allow-Credentials”,” true “);
res.header(“Access-Control-Allow-Methods”,” OPTIONS, GET, POST”);
res.header(“Access-Control-Allow-Headers”, “Content-Type, Depth, User-Agent, X-File-Size, X-Requested-With, If-Modified-Since, X-File-Name, Cache-Control”);

http://stackoverflow.com/questions/3136140/cors-not-working-on-chrome
http://stackoverflow.com/questions/10883211/deadly-cors-when-http-localhost-is-the-origin

DAXCAD Lives on Ubuntu 14.10

My good friend John Lawson is planning to port DAXCAD to the Raspberry Pi..  I have ported this  now  https://bitbucket.org/DaveRobertson/daxcad/branch/LinuxPort – I’ll merge it all back again when I get it fully working..  The current version of gfortran 4.9 looks good and on a Linux machine the whole thing builds in less than a minute.  I seem to remember a full build on an Apollo DN400 would be at least an hour.  Anyway still a testament to Fortran and C for being reasonably portable.

DAXCAD on Ubuntu 14
DAXCAD on Ubuntu 14

Install Documentum 6.7 on Linux

Everything looks good but do these please

yum install libXtst.i686 libselinux.i686 audit-libs.i686 cracklib.i686 db4.i686 pam.i686 libstdc++.i686 zlib.i686 ksh -y

yum install bc

bashrc

# Uncomment the following line if you don’t like systemctl’s auto-paging feature:
# export SYSTEMD_PAGER=

# User specific aliases and functions
export ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1
export ORACLE_SID=orcl
export TNS_ADMIN=/u01/app/oracle/product/11.1.0/db_1/network/admin
export LC_ALL=C
export JAVA_HOME=/home/ec2-user/documentum/shared/java/1.6.0_17
export DOCUMENTUM=/home/ec2-user/documentum
export DM_HOME=/home/ec2-user/documentum/product/6.7
export DOCUMENTUM_SHARED=$DOCUMENTUM/shared
export CLASSPATH=$DOCUMENTUM_SHARED/dctm.jar:$DM_HOME/dctm-server.jar:$DOCUMENTUM_SHARED/config
@

Amazon EC2 – putty timeouts

I’m getting into this EC2 stuff – its pretty good. But on a putty session – the default session timeouts are like 2-3 mins after inactivity.

I added this to an Ubuntu 13.10 build

sudo vi /etc/ssh/sshd_config

ClientAliveInterval 30
ClientAliveCountMax 5

Works…

DAXCAD 2013 – Eclipse

I have been working a bit on Daxcad this year – if only to get it into GIT and Bitbucket.  My repo is here

https://bitbucket.org/DaveRobertson/daxcad/overview

So I have an eclipse project set up with the original source -this is for CYGWIN 32 bit only -so you will need to download Cygwin with X although other X servers can be used – I used this one as well as cygwin X server which is actually quite good if you use their seamless mode ( startxwin )

http://mobaxterm.mobatek.net/download-home-edition.html

Eclipse Kepler - 2013 using CDT and Fortran perspective
Eclipse Kepler – 2013 using CDT and Fortran perspective

Daxcad drawings are supplied in the build – you can read in DXF and IGES… not for the faint of heart – mind you never was.  This picture is from the mobXterm server.  Looks fast enough.

Daxcad drawing from around 1989
Daxcad drawing from around 1989

Serial Port Mini RS232 to TTL Converter Adaptor Module Board MAX3232 with Arduino

So I buy 5 of these little things when I find out I am dealing with RS232 device instead of a TTL device.  They arrive quick and I am delighted only to find I dont quite know how to wire them up.  The project is to use an Arduino – which I love dearly – to drive an LED rolling display. I am not an electronics expert – so I struggled a little and popped 2 of them good and proper..

Never mind.  I’ll buy this instead http://www.ebay.co.uk/itm/RS232-Serial-Port-to-TTL-Converter-Module-Board-MAX232-for-PIC-ATMEL-MCU-5V-/260995809488?pt=UK_Computing_Other_Computing_Networking&hash=item3cc49000d0

I am as always standing on the shoulders of giants – http://www.sundh.com/blog/2012/04/arduino-library-for-led-message-display/comment-page-1/#comment-93629

T2k60XXmhOXXXXXXXX_!!12774208

So my experience is:

From the RS232 Port – RX, TX and GND.  Thats the -> -<and the – signs.  Easy enough

– GND

-> RX

<- TX

On the TTL (Arduino)  side – DO NOT USE 5V use 3.3V as this toasts the device and heats up and like tops itself.  It certainly got very toasty when I put 5V across it.  This could be because I messed up somewhere in the wiring but it certainly works well for me.  I can also use the SoftwareSerial library as well so I don’t need to use TX/RX on the TTL Serial pins 0 and 1

So TTL is

– GND

-> – PIN X

<- PIN Y

For my device I used PIN 0 and PIN 1 – TX/RX – but I guess you can use other pins.

TTL RS232 Pinouts
TTL RS232 Pinouts

 

 

Hope this helps – it does work!