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

Wednesday, 12 June 2013

Raspberry pi firmware update

New  version (was #371)
Linux raspberrypi 3.6.11+ #464 PREEMPT Thu Jun 6 18:17:55 BST 2013 armv6l GNU/Linux
Also set
gpu-mem=128
Then trying TVheadend with XBMC
http://myatus.com/p/watching-tv-on-your-android-via-a-raspberry-pi/

XMBC PVR addiin via  http://michael.gorven.za.net/raspberrypi/xbmc#comment-636

Decoder: PCTV Systems DVB-T2 290e nanoStick HD TV Tuner

I tried to install the 290e driver on the T42 with lubuntu. Produced the error:

 CC [M]  /home/andy/media_build/v4l/v4l2-async.o
  CC [M]  /home/andy/media_build/v4l/v4l2-of.o
/home/andy/media_build/v4l/v4l2-of.c: In function 'v4l2_of_parse_csi_bus':
/home/andy/media_build/v4l/v4l2-of.c:38:4: error: implicit declaration of function 'of_prop_next_u32' [-Werror=implicit-function-declaration]
/home/andy/media_build/v4l/v4l2-of.c:38:9: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/andy/media_build/v4l/v4l2-of.c: In function 'v4l2_of_get_next_endpoint':
/home/andy/media_build/v4l/v4l2-of.c:172:3: error: implicit declaration of function 'of_get_child_by_name' [-Werror=implicit-function-declaration]
/home/andy/media_build/v4l/v4l2-of.c:172:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/andy/media_build/v4l/v4l2-of.c: In function 'v4l2_of_get_remote_port_parent':
/home/andy/media_build/v4l/v4l2-of.c:237:2: warning: passing argument 1 of 'of_parse_phandle' discards 'const' qualifier from pointer target type [enabled by default]
include/linux/of.h:230:28: note: expected 'struct device_node *' but argument is of type 'const struct device_node *'
/home/andy/media_build/v4l/v4l2-of.c: In function 'v4l2_of_get_remote_port':
/home/andy/media_build/v4l/v4l2-of.c:261:2: warning: passing argument 1 of 'of_parse_phandle' discards 'const' qualifier from pointer target type [enabled by default]
include/linux/of.h:230:28: note: expected 'struct device_node *' but argument is of type 'const struct device_node *'
cc1: some warnings being treated as errors
make[3]: *** [/home/andy/media_build/v4l/v4l2-of.o] Error 1
make[2]: *** [_module_/home/andy/media_build/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-3.2.0-48-generic'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/andy/media_build/v4l'
make: *** [all] Error 2
build failed at ./build line 452.

This suggests  http://pastebin.com/48W5Da20 that  Building a vanilla kernel 
is the way to go, but that looks to much for now.

Saturday, 1 June 2013

Android Star s5: installing debian and java

Following my adventures with the Raspberry Pi, I decided it was time for a new phone. I went for:

Star One S5 5.0 inch (1280*720) HD capacitive 720P screen Android 4.2 OS 3G Smart Phone MTK6589 1.2GHz Quad Core 1G RAM 8G ROM 12MP back camera.

Looking good so far:

 Here is the result running BaseX via vnc:



Monday, 27 May 2013

photos to velvet

 Updates pics
Number of files: 15306
Number of files transferred: 14379
Total file size: 29500109603 bytes
Total transferred file size: 29500109603 bytes
Literal data: 29500109603 bytes
Matched data: 0 bytes
File list size: 296644
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 276934
Total bytes received: 29510922538

sent 276934 bytes  received 29510922538 bytes  1088110.89 bytes/sec
total size is 29500109603  speedup is 1.00