Modify Mediaflux mflux package to install it into non-default schema








  1. copy the mflux.zip from /opt/mediaflux/ext/packages/ to /tmp
    cp /opt/mediaflux/ext/packages/mflux.zip /tmp/
    mkdir /tmp/mfpkg; cd /tmp/mfpkg; unzip /tmp/mflux.zip
  2. edit __install.tcl file
    vi /tmp/mfpkg/__install.tcl
    # HTTP processors:
    
    if { [info exists host] } {
        
        if { [xvalue exists [http.processor.exists :host $host :url /mflux]] == "false" } { 
          http.processor.create :host $host :app mflux :url /mflux :type asset :translate /www :authentication < :domain $domain :user $user > :view mflux-www
        }
    
        # Set the servlet entry points for the HTTP processors.
        http.servlets.set :host $host :url /mflux \
           :servlet -path portal.mfjp -default true arc.mflux.main \
           :servlet -path icon.mfjp arc.mflux.icon \
           :servlet -path iptile.mfjp arc.mflux.image.pyramid.tile \
           :servlet -path meta.mfjp arc.mflux.meta \
           :servlet -path content.mfjp arc.mflux.content \
           :servlet -path share.mfjp arc.mflux.share \
           :servlet -path output.mfjp arc.mflux.session.output \
           :servlet -path execute.mfjp arc.mflux.execute \
           :servlet -path transcode.mfjp arc.mflux.transcode \
           :servlet -path aterm.jar arc.mflux.aterm \
           :servlet -path aar.jar arc.mflux.aar
           
    } else {
    
        if { [xvalue exists [http.processor.exists :url /mflux]] == "false" } { 
          http.processor.create :app mflux :url /mflux :type asset :translate /www :authentication < :domain $domain :user $user > :view mflux-www
        }
    
        # Set the servlet entry points for the HTTP processors.
        http.servlets.set :url /mflux \
           :servlet -path portal.mfjp -default true arc.mflux.main \
           :servlet -path icon.mfjp arc.mflux.icon \
           :servlet -path iptile.mfjp arc.mflux.image.pyramid.tile \
           :servlet -path meta.mfjp arc.mflux.meta \
           :servlet -path content.mfjp arc.mflux.content \
           :servlet -path share.mfjp arc.mflux.share \
           :servlet -path output.mfjp arc.mflux.session.output \
           :servlet -path execute.mfjp arc.mflux.execute \
           :servlet -path transcode.mfjp arc.mflux.transcode \
           :servlet -path aterm.jar arc.mflux.aterm \
           :servlet -path aar.jar arc.mflux.aar
    
    }
    
  3. Re-package:
    cd /tmp/mfpkg; zip -r ../mflux-1.zip ./*
  4. Install the modified package in Aterm:
    package.install :in file:/tmp/mflux-1.zip :arg -name host daris.vicnode.org.au



PPSR search from Australian govenment








The PPSR is used to find out if there's any money owing on a car, or if it's previously been written off.


https://transact.ppsr.gov.au/ppsr/QuickVINSearch


TextMate 2: uses spaces instead of tabs and set tab size








  • Edit ~/.tm_properties and put:
    tabSize = 2
    softTabs = true
    softWrap = true
    
    [ source.java ]
    tabSize = 4
    softTabs = true
    
    [ source.python ]
    tabSize = 4
    softTabs = true
    
    [ source.tcl ]
    tabSize = 4
    softTabs = true