Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
add to Gemfile.rb
gem 'execjs'
gem 'therubyrhino'
Monday, October 24, 2011
Saturday, October 15, 2011
getting around the great chinese firewall
The easiest way to get around the Great Firewall is to use TOR. However TOR can be slow. The best way is to run your own http proxy and tunneling traffic encrypted through SSH.
Mac/Linux/Unix distributions usually already have an ssh client installed.
Create the ssh tunnel to the proxy server using the following command line:
% ssh -C username@server -L 8080:localhost:8000
Once you've successfully logged in, start a proxy server:
% ./proxy.py
You will see something like:
Next configure your web browser to use the proxy server which is browser dependent. Google on how to do this. You will need to configure your web browser to use "localhost" and port "8080" for the proxy server host and port.
Mac/Linux/Unix distributions usually already have an ssh client installed.
Create the ssh tunnel to the proxy server using the following command line:
% ssh -C username@server -L 8080:localhost:8000
Once you've successfully logged in, start a proxy server:
% ./proxy.py
You will see something like:
Any clients will be served...
Serving HTTP on 0.0.0.0 port 8000 ...
Next configure your web browser to use the proxy server which is browser dependent. Google on how to do this. You will need to configure your web browser to use "localhost" and port "8080" for the proxy server host and port.
Monday, September 19, 2011
grails tomcat plugin sym links
create scripts/Event.groovy:
eventConfigureTomcat = {tomcat ->
def ctx = tomcat.host.findChild(serverContextPath)
ctx.allowLinking = true
}
However when grails.app.context = "/", this doesn't work because the TomcatServer.groovy replaces "/" with ""
therefore, must change tomcat.host.findChild(serverContextPath) to tomcat.host.findChild("")
eventConfigureTomcat = {tomcat ->
def ctx = tomcat.host.findChild(serverContextPath)
ctx.allowLinking = true
}
However when grails.app.context = "/", this doesn't work because the TomcatServer.groovy replaces "/" with ""
therefore, must change tomcat.host.findChild(serverContextPath) to tomcat.host.findChild("")
Sunday, September 18, 2011
dojo build script
cp ~/sync/workspace/fulicious/fulicious.profile.js profiles/;./build.sh profile=fulicious action=clean,release releaseName=fulicious-dojo
Wednesday, August 3, 2011
Friday, April 15, 2011
GeoPoint -> screen pixel
// Convert geo coordinates to screen pixels
Point screenPoint = new Point();
mapView.getProjection().toPixels(geoPoint, screenPoint);
Point screenPoint = new Point();
mapView.getProjection().toPixels(geoPoint, screenPoint);
Monday, March 7, 2011
rotate vertically ati graphics driver on ubuntu 10.10
proprietary ati graphics driver on ubuntu 10.10 is quirky. It prevents ubuntu from booting back up if dual monitor is rotated vertically.
The following message pops up on reboot:
udevd-work[110]: inotify_add_watch(6, /dev/dm-2, 10) failed: no such file or directory
Someone else had a similar problem
http://art.ubuntuforums.org/showthread.php?t=1524495
My solution was to boot with the monitors horizontally, make a backup copy of /etc/X11/xorg.conf. Ubuntu boots up fine when the monitors are set to horizontal position. Once booted, manually rotate the monitor using the ATI Catalyst Control Center. When the system is rebooted in this configuration, the udevd-work error message will show up again and prevent the system from booting.
To boot the system again, boot into recovery mode, replace /etc/X11/xorg.conf with the good backup.
Reboot and the udevd-work error message will go away. Now you can boot and log in as usual and manually rotate the monitors
The following message pops up on reboot:
udevd-work[110]: inotify_add_watch(6, /dev/dm-2, 10) failed: no such file or directory
Someone else had a similar problem
http://art.ubuntuforums.org/showthread.php?t=1524495
My solution was to boot with the monitors horizontally, make a backup copy of /etc/X11/xorg.conf. Ubuntu boots up fine when the monitors are set to horizontal position. Once booted, manually rotate the monitor using the ATI Catalyst Control Center. When the system is rebooted in this configuration, the udevd-work error message will show up again and prevent the system from booting.
To boot the system again, boot into recovery mode, replace /etc/X11/xorg.conf with the good backup.
Reboot and the udevd-work error message will go away. Now you can boot and log in as usual and manually rotate the monitors
Subscribe to:
Posts (Atom)