Thursday 28 July 2011

graphviz

npm graphviz
Discovered no fonts installed.
Solution:
copy fonts from  urw-fonts.tar.gz to /usr/local/share/fonts




Saturday 23 July 2011

basex as service

  • Got it to run as service on basex account.
  • got xslt1 to work
  • wrote simple php sandbox
Not working:
  • packages
  • xslt2


basex@velvet:/etc/init.d$ cat basex
#! /bin/sh
### BEGIN INIT INFO
# Provides:     basex-server
# Required-Start:   $syslog
# Required-Stop:    $syslog
# Should-Start:     $local_fs
# Should-Stop:      $local_fs
# Default-Start:    2 3 4 5
# Default-Stop:     0 1 6
# Short-Description:    basex-server - Persistent key-value db
# Description:      basex-server - Persistent key-value db
### END INIT INFO


PATH=/opt/redis/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

case "$1" in
  start)
    echo -n "Starting $DESC: "
    su -c "basexserver -s " - basex
    ;;
  stop)
    echo "Stopping $DESC"
    basexserver stop
   ;;

  restart|force-reload)
    ${0} stop
    ${0} start
    ;;
  *)
    echo "Usage: /etc/init.d/$NAME {start|stop|restart|force-reload}" >&2
    exit 1
    ;;
esac

exit 0

Wednesday 20 July 2011

basex

Installed debian 6.7.1 deb package on velvet


basex  ..........  Standalone local XML database. Command line interface.
basexgui  .......  Standalone local XML database. Graphical user interface.
basexserver  ....  BaseX XML Database Server.
basexclient  ....  BaseX XML Database Client.

 velvet:/etc/rc3.d# basexserver -help
BaseX 6.7 [Server]
Usage: basexserver [-dpsz] [-c] [stop]
  stop     Stop existing server
  -c  Execute initial database command(s)
  -d       Activate debugging mode
  -e  Set event port
  -i       Enter interactive mode
  -p  Set server port
  -s       Start as service
  -z       Suppress logging

Tuesday 19 July 2011

success

Got retwis working using Predis (0.6.6)

Key is to use download not the pear install

Monday 18 July 2011

redis twitter clone retwis

The php version  is not working for me. source and docs

Thinking of switching PHP Redis client to phpredis

Installing phpredis
  1. phpize
  2. configure
  3. Libraries have been installed in:
       /usr/local/nicolasff-phpredis-f4030ea/modules
    
php -v
PHP Warning:  PHP Startup: redis: Unable to initialize module
Module compiled with module API=20060613
PHP    compiled with module API=20090626
These options need to match
 in Unknown on line 0
PHP 5.3.6-11 with Suhosin-Patch (cli) (built: Jun 12 2011 13:57:38) 
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
    with XCache v1.3.2, Copyright (c) 2005-2011, by mOo

Giving up, to try..
predis
https://github.com/nrk/predis/
velvet:/usr/bin# pear channel-discover pearhub.org
Adding Channel "pearhub.org" succeeded
Discovery of channel "pearhub.org" succeeded
velvet:/usr/bin# pear install pearhub/predis
downloading predis-0.6.6.tgz ...
Starting to download predis-0.6.6.tgz (40,757 bytes)
...........done: 40,757 bytes
install ok: channel://pearhub.org/predis-0.6.6

Wednesday 13 July 2011

redis

nice tutorial

trying node retwis

Will try init.d script here
working after using update-rc.d


Delete all redis keys
redis-cli keys  "*" | while read LINE ; do TTL=`redis-cli ttl $LINE`; if [ $TTL -eq -1 ]; then echo "Del $LINE"; RES=`redis-cli del $LINE`; fi; done;

Monday 11 July 2011

Dev tools

Git installed from here.  tools at /opt/rfw/bin
Projects below /opt/git show up https://velvet/gitweb/gitweb.cgi

installed graphviz 2.8 and node.js
velvet:~# node -v
v0.4.10-pre
installed redis
velvet:/# redis-server --version
Redis server version 2.2.11 (00000000:0)
and mercurial on ubuntu

Sunday 10 July 2011

More new nas

installed (via readynas extras..
- php
- phpadmin
- python
- git
installed via apt
- gcc

installed via manual
- Fuskei 0.2.0
cd /usr/local/Fuseki-0.2.0
./fuseki-server --update --mem /dataset

Friday 8 July 2011

New NAS

 Got this installed...

Model: ReadyNAS Pro 2 [X-RAID2]
Serial: 2K21140D000F5
Firmware: RAIDiator 4.2.17 
Memory: 1024 MB [DDR3]

Disks: SAMSUNG HD204UI [1863 GB]    1858 GB allocated

And Java using these instructions
velvet:~# java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)

fffff