Jim Cheung

Tuesday, July 02, 2013

reading Land Of Lisp, trying to find something new on it.

installed drupal 8 beta 2 and looked at the source code. I don't understand the plugin system, it's too complicated and they should drop hooks and switch to events, not using a plugin system to support a hook by using an event (but that will be too symfony i guess)

switching to php 5.4 is a joy, and i hope we could drop php 5.2 asap. also trying some parallel proccessing with php, using zeromq, still testing.

finished Introduction to the Art of Programming Using Scala, thick, text-book size. just a quick read, check my scala page.

Friday, July 19, 2013

create elasticsearch on openshift

  1. create a diy app
  2. go $OPENSHIFT_DATA_DIR, download elasticsearch and extract to elasticsearch
  3. modify config/elasticsearch.yml
    network.host: ${OPENSHIFT_DIY_IP}
    transport.tcp.port: 3306
    http.port: ${OPENSHIFT_DIY_PORT}
    discovery.zen.ping.multicast.enabled: false
    discovery.zen.ping.unicast.hosts: []
  4. checkout your repo, edit .openshift/action_hooks/start:
    nohup $OPENSHIFT_DATA_DIR/elasticsearch/bin/elasticsearch
  5. edit .openshift/action_hooks/stop, replace testrubyserver.rb with elasticsearch
  6. restart by ctl_app restart, wow
Blog Archive