Skip to content

Instantly share code, notes, and snippets.

@lylejohnson
lylejohnson / gist:1028075
Created June 15, 2011 20:48
Stack trace for attempting to require 'zip/zip'
C:\IPS_CONFIG\data>jirb
irb(main):001:0> require 'zip/zip'
LoadError: no such file to load -- zip/zip
from org/jruby/RubyKernel.java:1038:in `require'
from (irb):1:in `evaluate'
from org/jruby/RubyKernel.java:1088:in `eval'
from C:/IPS_PROGRAMS/jruby-1.6.2/lib/ruby/1.8/irb.rb:158:in `eval_input'
from C:/IPS_PROGRAMS/jruby-1.6.2/lib/ruby/1.8/irb.rb:271:in `signal_status'
from C:/IPS_PROGRAMS/jruby-1.6.2/lib/ruby/1.8/irb.rb:155:in `eval_input'
;;
;; I like several kinds of ice cream:
;;
;; 1. Chocolate
;; 2. Vanilla
;; 3. Peach
;;
;; but Chocolate is my **favorite**.
(defn my-function
"Docstrings for functions are displayed alongside the function's body
in the documentation output by Marginalia."
...)
# Attempt to locate JAVA_HOME, code borrowed from jabref package
if [ -z $JAVA_HOME ]
then
t=/usr/lib/jvm/java-6-openjdk && test -d $t && JAVA_HOME=$t
fi
dpkg -i --force-depends openfire_3.6.4_all.deb
==> Build Environment
CC: /usr/bin/cc => /usr/bin/gcc-4.2
CXX: /usr/bin/c++ => /usr/bin/c++-4.2
LD: /usr/bin/cc => /usr/bin/gcc-4.2
CFLAGS: -O3 -march=core2 -w -pipe
CXXFLAGS: -O3 -march=core2 -w -pipe
MAKEFLAGS: -j2
==> Downloading http://www.openscenegraph.org/downloads/developer_releases/OpenSceneGraph-2.9.9.zip
File already downloaded and cached to /Users/lyle/Library/Caches/Homebrew
require 'formula'
class Openscenegraph <Formula
url 'http://www.openscenegraph.org/downloads/developer_releases/OpenSceneGraph-2.9.9.zip'
homepage 'http://www.openscenegraph.org/'
md5 '0d18aa6ccb8f0fc75ed7ebec1ac3b010'
depends_on 'cmake'
def install
#!/usr/bin/env ruby
require 'fox16'
include Fox
class MainWindow < FXMainWindow
def initialize(app)
super(app, "Example", :opts => DECOR_ALL, :width => 600, :height => 400)
mainFrame = FXVerticalFrame.new(self, LAYOUT_FILL_X|LAYOUT_FILL_Y)
require 'fox16'
include Fox
class MainWindow < FXMainWindow
def initialize(app)
super(app, "Example", :opts => DECOR_ALL, :width => 600, :height => 400)
mainFrame = FXVerticalFrame.new(self, LAYOUT_FILL_X|LAYOUT_FILL_Y)
text = FXText.new(mainFrame, :opts => TEXT_WORDWRAP|LAYOUT_FILL_X|LAYOUT_FILL_Y)
text.text = "Repeated Text " * 1000
(use '(clojure.contrib.str-utils :only (str-join)))