JavaScript – Timed Auto-Refresh Image

*I had to hack up the html because im too lazy to figure out how to handle it with jinja right now. (take out the #’s)* Very simple JavaScript to refresh html every 3 seconds (there are probably better ways to do this but) function updateImage() { document.getElementById(‘picM’).innerHTML = ‘‘; setTimeout(updateImage, 3000); return; } window.onload=updateImage()

Connect to MySQL from R

I initially attempted to install via: sudo apt-get build-dep r-cran-rmysql But I received an error trying to access MySQL from R: Error in library(RMySQL) : there is no package called ‘RMySQL’ colin@mikrojenkins:~/mikroR$ cat installer.r #!/usr/bin/r install.packages(‘RMySQL’,type=’source’, repos=’’) *It hosed on me if I didn’t specify a repos arg* Once RMySQL was installed, I was able[…]

Call R from Python

colin@mikrojenkins:~$ mkdir mikroR colin@mikrojenkins:~$ cd mikroR colin@mikrojenkins:~/mikroR$ virtualenv . New python executable in ./bin/python Installing setuptools, pip…done. colin@mikrojenkins:~/mikroR$ . bin/activate (mikroR)colin@mikrojenkins:~/mikroR$ pip install rpy2 …. error: Setup script exited with Error: Tried to guess R’s HOME but no R command in the PATH. (mikroR)colin@mikrojenkins:~/mikroR$ sudo apt-get update [sudo] password for colin: (mikroR)colin@mikrojenkins:~/mikroR$ sudo apt-get install[…]