Tuesday, March 5, 2013

a basic /etc/init.d/rserve (start Rserve at boot time)


#!/bin/sh
#
# chkconfig: 2345 20 80
# description: rserve startup script
#
RSERVE=/usr/local/lib64/R/bin/Rserve

. /etc/rc.d/init.d/functions

test -f /etc/Rserv.conf

export R_HOME=/usr/local/lib64/R

RETVAL=0

case "$1" in
   start)
      echo -n "Starting Rserve: "
      [ -f $RSERVE ] || exit 1

      $RSERVE
      RETVAL=$?
      echo
      [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rserve
      ;;

  stop)
      echo -n "Shutting down RServe: "
      killproc $RSERVE
      RETVAL=$?
      echo
      [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/rserve
      ;;

  restart|reload)
      $0 stop
      $0 start
      RETVAL=$?
      ;;
  status)
      status $RSERVE
      RETVAL=$?
      ;;
  *)
      echo "Usage: $0 {start|stop|restart|status}"
      exit 1
esac

exit $RETVAL

Sunday, March 3, 2013

Paranumeral is back under new ... everything

Ok maybe not new management. Still old me running the whole thing. But lots (if not all) has changed both on the inside and outside. What you will see first is the outside - all new Ruby/Rails web with fancy (ok maybe not so fancy but definitely) interactive d3.js charts. Oh yeah and now you'll definitely need to sign up so I can start adding personalization features such as portfolios, quotes, alerts etc. The models have gotten more powerful using more features, more data points, more history, though as always one always wants more cowbell.