Skip to content

Instantly share code, notes, and snippets.

Ubuntu 10.04.3 LTS 64-bit
pwd: /home/jjones/Projects/gemini/castor
>>> environment <<<
$TORQUEBOX_HOME: /home/jjones/Projects/torquebox-1.1.1
$JBOSS_HOME: /home/jjones/Projects/torquebox-1.1.1/jboss
$JRUBY_HOME: /home/jjones/.rvm/rubies/jruby-1.6.5
$GEM_HOME: /home/jjones/.rvm/gems/jruby-1.6.5@gemini
@rurounijones
rurounijones / Gemfile
Created November 30, 2011 07:45
Bootstrap-rails
source 'http://rubygems.org'
gem 'rails', '3.1.3'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
gem 'json'
@rurounijones
rurounijones / boot.log
Created December 26, 2011 04:35
Torquebox 2.0-Beta1 Boot log
13:31:45,252 情報 [org.jboss.modules] JBoss Modules version 1.1.0.CR4
13:31:45,736 INFO [org.jboss.msc] JBoss MSC version 1.0.1.GA
13:31:45,783 INFO [org.jboss.as] JBoss AS 7.1.0.Beta1 "Tesla" starting
13:31:45,783 DEBUG [org.jboss.as.config] Configured system properties:
awt.toolkit = sun.awt.windows.WToolkit
file.encoding = MS932
file.encoding.pkg = sun.io
file.separator = \
java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.awt.printerjob = sun.awt.windows.WPrinterJob
"C:\Program Files\Java\jdk1.6.0_30\bin\jar.exe" tvf %JBOSS_HOME%\modules\org\torquebox\bootstrap\main\torquebox-bootstrap.jar
0 Fri Dec 02 16:25:38 JST 2011 META-INF/
825 Fri Dec 02 16:25:36 JST 2011 META-INF/MANIFEST.MF
0 Fri Dec 02 16:25:22 JST 2011 META-INF/services/
0 Fri Dec 02 16:25:24 JST 2011 org/
0 Fri Dec 02 16:25:24 JST 2011 org/torquebox/
0 Fri Dec 02 16:25:24 JST 2011 org/torquebox/bootstrap/
0 Fri Dec 02 16:25:24 JST 2011 org/torquebox/bootstrap/as/
46 Fri Dec 02 16:25:22 JST 2011 META-INF/services/org.jboss.as.controller.Extension
@rurounijones
rurounijones / gist:1558672
Created January 4, 2012 05:41
Torquebox Out of Memory Error
14:23:56,020 INFO [org.apache.catalina.core.AprLifecycleListener] (MSC service thread 1-1) The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_29\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\torquebox-current\jruby\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;.
14:23:56,036 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-1) null null
14:23:56,036 INFO [org.jboss.as.mail.extension] (MSC service thread 1-1) JBAS015400: Bound mail session [java:jboss/mail/Default]
14:23:56,067 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) Coyote HTTP/1.1を http--192.168.56.101-80 で起動します
14:23:56,114 INFO [org.jboss.as.remoting] (MSC service thread 1-1) Listening on /127.0.0.1:9999
14:23:57,317 WARN [jacorb.codeset] (MSC service thread 1-1) Warning - unknown codeset (MS932) - defaul
actionmailer (3.1.3)
actionpack (3.1.3)
activemodel (3.1.3)
activerecord (3.1.3)
activeresource (3.1.3)
activesupport (3.1.3)
addressable (2.2.6)
akami (1.0.0)
anjlab-bootstrap-rails (1.4.0.9)
arel (2.2.1)
@rurounijones
rurounijones / gist:1604031
Created January 13, 2012 00:40
Nokogiri est failures
jjones@jjones-desktop:~/Projects/nokogiri/nokogiri$ ../jruby-1.6.5.1/bin/jruby -S rake
(in /home/jjones/Projects/nokogiri/nokogiri)
install -c tmp/java/nokogiri/nokogiri.jar lib/nokogiri/nokogiri.jar
/home/jjones/Projects/nokogiri/nokogiri/../jruby-1.6.5.1/bin/jruby -w -I.:lib:bin:test:. -e 'require "rubygems"; require "minitest/autorun"; require "test/test_memory_leak.rb"; require "test/test_encoding_handler.rb"; require "test/test_convert_xpath.rb"; require "test/test_nokogiri.rb"; require "test/test_xslt_transforms.rb"; require "test/test_css_cache.rb"; require "test/test_reader.rb"; require "test/test_soap4r_sax.rb"; require "test/xslt/test_exception_handling.rb"; require "test/xslt/test_custom_functions.rb"; require "test/html/test_named_characters.rb"; require "test/html/test_node_encoding.rb"; require "test/html/test_node.rb"; require "test/html/test_builder.rb"; require "test/html/test_document_encoding.rb"; require "test/html/test_document_fragment.rb"; require "test/html/test_document.rb"; require "
@rurounijones
rurounijones / test.rb
Created January 13, 2012 10:37
JMuPDF BufferedImage color problem
require 'java'
require 'lib/jmupdf.jar'
java_import com.jmupdf.pdf.PdfDocument
java_import com.jmupdf.exceptions.DocException;
java_import com.jmupdf.exceptions.DocSecurityException;
java_import com.jmupdf.page.Page;
java_import com.jmupdf.page.PageRenderer;
java_import java.awt.image.BufferedImage;
@rurounijones
rurounijones / initializer-monkey-patch.rb
Created January 20, 2012 00:35
Mongoid monkey-patching
# Monkey-patch the mongo ruby driver to expose socket information so that we can
# interrogate it for port information
module Mongo
class Pool
def sockets
@sockets
end
end
end
@rurounijones
rurounijones / log
Created February 6, 2012 07:04
JRuby build failure - Ubuntu 10.04
build-jruby-cext-native:
[exec] make[1]: Entering directory `/home/jjones/jruby-1.6.6/cext/src'
[exec] cc -m64 -DNDEBUG -fno-omit-frame-pointer -fno-strict-aliasing -W -Wall -Wno-unused -Wno-parentheses -Werror -Wundef -I"/home/jjones/jruby-1.6.6/cext/src/../..//build" -I"/home/jjones/jruby-1.6.6/cext/src" -I"/home/jjones/jruby-1.6.6/cext/src/../..//build"/jni -I"/home/jjones/jruby-1.6.6/cext/src"/include -I"/home/jjones/jruby-1.6.6/cext/src"/include/ruby -fPIC -I"/usr/include" -I"/usr/include/linux" -D_REENTRANT -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -pthread -c /home/jjones/jruby-1.6.6/cext/src/st.c -o /home/jjones/jruby-1.6.6/cext/src/../..//build/st.o
[exec] In file included from /usr/include/sys/select.h:46,
[exec] from /usr/include/sys/types.h:220,
[exec] from /home/jjones/jruby-1.6.6/cext/src/include/ruby/ruby.h:18,
[exec] from /home/jjones/jruby-1.6.6/cext/src/include/ruby.h:2,
[exec] from /home/jjones