Saturday, 22 March 2014

A very rough guide to running BaseX on Openshift

Update: 24Apr2014 see openshift-basex-quick-start

I hope to release an Openshift quick start cartridge for BaseX soon. Until then here are some quick notes that completely ignore the right way to do this.

1. Use putty to access your gear: https://www.openshift.com/blogs/access-your-application-gear-using-ssh-with-putty

2. Install BaseX

cd app-root/data
wget http://files.basex.org/releases/BaseX-latest.zip
unzip *.zip


3. In jetty.xml change the host and port settings to use Env values

<New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
    <Set name="port"><Env name="OPENSHIFT_DIY_PORT" default="8080" /></Set>
    <Set name="host"><Env name="OPENSHIFT_DIY_IP" default="127.0.0.1" /></Set>
    <Set name="maxIdleTime">60000</Set>
    <Set name="reuseAddress">true</Set>
    <Set name="Acceptors">2</Set>
    <!-- Support for SSL connections . <Set name="confidentialPort">8986</Set> -->
</New>

4. If the default server, (ruby?) is running kill it.

5. Start the BaseX httpserver
 #!/bin/bash

# start basex
cd ${OPENSHIFT_DATA_DIR}basex
nohup bin/basexhttp -X -Dorg.basex.SERVERHOST=$OPENSHIFT_DIY_IP \
                    -X -Dorg.basex.SERVERPORT=$OPENSHIFT_DIY_PORT \
                    -p 15005 -e 15006 -s 15007 -U admin -P admin &


Wednesday, 12 March 2014

Sunday, 23 February 2014

Friday, 7 February 2014

Schematron resources

At the beginning of the week I needed to create a Schematron sample in a hurry. I had done it before, a long time ago, on another machine. It did not help that http://www.schematron.com was, and still is, down. This article is a record of the resources I found at the time and later.

First https://code.google.com/p/schematron/ seems to be the place to get an implementation of ISO Schematron. This comes as a set of XSLT files. The wiki suggests a number of options for running these, which led me to the excellent tutorial at http://www.dpawson.co.uk/schematron/.

 In a hurry and not wanting to set up a batch file  I remembered that Kernow has a Schematron option. Sadly I could not find any documentation for this and the Web start option seems to have become a victim of enhanced security policies.
Another useful tutorial, with example business logic from the Ark, is data2type schematron introduction

XML Database Schematron support

 Other tools

It seems to me it would be nice to have a  http://expath.org/ module that wrapped up the Schematron functionality and made it easy to install. Something like ML-Schematron that could run in BaseX or ExistDb.

Sunday, 2 February 2014

New gadget and updates

Pipo M9Pro

 

Just bought one, looking good so far
Flashed with Pipo-M9-Pro-Finless-1-5-ROM , The KitKat ROM looks a bit rough at the moment.
Installed Linux Deploy and how-to-install-oracle-java-7-in-debian.html

 

 

Other updates

Friday, 19 July 2013

raspberry pi tvheadend

Tvheadend Updates

  • Firmware updated:Linux raspberrypi 3.6.11+ #502
  • tvheadend: old 3.5.201~g2a9ccdd, new 3.5.232~g7ac5542
Seems much better.

Flash drive and SD card Read timing


pi@raspberrypi /media/usbstick/recordings $ sudo hdparm -t /dev/sda1

/dev/sda1:
 Timing buffered disk reads:  44 MB in  3.02 seconds =  14.59 MB/sec
pi@raspberrypi /media/usbstick/recordings $ sudo hdparm -t /dev/root

/dev/root:
 Timing buffered disk reads:  46 MB in  3.10 seconds =  14.86 MB/sec
pi@raspberrypi /media/usbstick/recordings $ 

Wifi Timings

The Passenger.ts 100% 1873MB 339.5KB/s 1:34:11 The Portrait of a Lady.ts 100% 1759MB 588.4KB/s 51:01 Still requires burstmode off

Thursday, 11 July 2013

Ralink RT5370 chip

To find chipset: lsusb -v
Devices with RT5370 chipset do not work out of the box in Ubuntu 11.10 to 12.04. They work automatically in Ubuntu 12.10. 
https://help.ubuntu.com/community/WifiDocs/Device/Tenda_W311M

 http://ubuntuforums.org/showthread.php?t=1800178&highlight=rt5370sta