Martin Prout monkstone

View rp5.bsh
1 2 3 4 5 6 7 8 9 10
/**
* rp5.bsh by monkstone 18 December 2013
* A jedit bean shell macro, to load environment, and call
* rp5 commando menu
*
* You must edit JAVA_HOME/GEM_HOME/GEM_PATH to match your system
*
*/
setenv("JAVA_HOME", "/opt/jdk1.8.0");
setenv("GEM_HOME", "/home/tux/.gem/ruby/2.0.0");
View ToDo.txt
1 2 3 4 5 6 7
For the last 5 years or so I've been a 100% linux user, so my knowlege of other OS is somewhat rusty (previously Microsoft up to about XP, and no real Mac experience, so I've been guessing). So any input from that side of things is very welcome. For the same reason I have been necessarily been less interested in video capture open kinect etc, so any input there would also be very useful (but I should really get tooled up with arduino too).
 
However in the first instance I was just thinking about you adding a link to you open kinect work.
 
The future for ruby-processing is intimately tied to both jruby (and some interesting things are happening there jruby 9000 and jdk8 will likely bring performance improvements) and processing (and I've a feeling that processing-2.10+ has yet to bed in on the Mac?).
 
For more radical experiments I've created a clean fork https://github.com/monkstone/JRubyArt, where I'm experimenting with the development version of processing and jruby. Lately I've been experimenting with pry
View .k9rc
1 2 3 4
# YAML configuration file for ruby-processing
# K9_HOME: "$HOME/ruby193 ... /ruby-processing" #windows users may need to set this
PROCESSING_ROOT: "/home/zen/processing/build/linux/work"
#PROCESSING_ROOT: "C:\Java\processing\build\windows\work" # if you follow PhiLhos suggestion for windoes
View .bashrc
1 2 3 4 5 6 7 8 9 10
#
# ~/.bashrc
#
 
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
 
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
export GEM_HOME="${HOME}/.gem/ruby/2.0.0"
View Rakefile
1 2 3 4 5 6 7 8 9
require 'rake/clean'
 
#JRUBY_VERSION = "1.7.8"
JRUBY_VERSION = "9000.dev"
 
CLOBBER.include("jruby-complete-#{JRUBY_VERSION}.jar")
 
desc "download, and copy to ruby-processing"
task :default => [:download, :copy_ruby]
View .rp5rc
1 2 3 4 5
#RP5_HOME: "" # windoes users should set this
PROCESSING_ROOT: "/usr/share/processing" # Works for ArchLinux
#PROCESSING_ROOT: "/home/tux/processing-2.1.0" # Other linux distros with user tux
#PROCESSING_ROOT: "/Applications/Processing.app/Contents/Java" # Path for Mac
#PROCESSING_ROOT: "C:\Java\processing-2.1.0" # if you follow PhiLhos suggestion for windoes
View build.xml
1 2 3 4 5 6 7 8 9 10
<?xml version="1.0"?>
<project name="ProcessingPythonMode" default="release" basedir="./">
<!-- Based on mode template http://github.com/martinleopold/TemplateMode -->
<!-- Note: now compiles two separate jars- one for python mode, and one that's a wrapper for the processing core that can run python files -->
<!-- You'll want to change these to compile. -->
<property name="processing.base" location="/usr/share/processing" /> <!-- The directory that you unpacked Processing into. -->
<property name="processing.sketchfolder" location="/home/tux/sketchbook" /> <!-- Your sketchbook folder. -->
<property name="java.target.bootclasspath" location="/opt/jdk1.7.0_45/jre/rt.jar" /> <!-- If you're using a newer jdk -->
View app.rb
1 2 3 4 5 6 7 8 9 10
# version without embedded or online
# This class is a thin wrapper around Processing's PApplet.
# Most of the code here is for interfacing with Swing,
# web applets, going fullscreen and so on.
 
require 'java'
require 'ruby-processing/config'
require 'ruby-processing/helper_methods'
require 'ruby-processing/library_loader'
# the processing root defined below is uniquely dependable on Archlinux, but something similar for OSX'
View app.rb
1 2 3 4 5 6 7 8 9
# version without embedded or online
# This class is a thin wrapper around Processing's PApplet.
# Most of the code here is for interfacing with Swing,
# web applets, going fullscreen and so on.
 
require 'java'
require 'ruby-processing/config'
require 'ruby-processing/helper_methods'
require 'ruby-processing/library_loader'
View control_panel.rb
1 2 3 4 5 6 7 8 9 10
# Here's a little library for quickly hooking up controls to sketches.
# For messing with the parameters and such.
# These controls will set instance variables on the sketches.
 
# You can make sliders, checkboxes, buttons, and drop-down menus.
# (optionally) pass the range and default value.
 
module ControlPanel
 
class Slider < javax.swing.JSlider
Something went wrong with that request. Please try again.