Skip to content

Instantly share code, notes, and snippets.

@CootCraig
CootCraig / Readme.txt
Created December 20, 2011 16:46
VirtualBox failure 2011-12-20
First time trying VirtualBox. Host is older Xeon i686 server box. OS is Scientific Linux 6.1. Want to run Windows 2003 guest VM headless.
I've attached some info.
Got it working. 2 changes I think.
* Switched from a SATA controller to an IDE controller.
* Added --bridgeadpater1 to # VBoxManage modifyvm Windows2003 --nic1 bridged --bridgeadapter1 eth0
Also learned that X-windows is not needed to run headless.
@CootCraig
CootCraig / Readme.txt
Created December 21, 2011 13:03
VirtualBox 2011-12-21 RHEL 6.1 host Windows 2003 guest
Commands used for a successful virtualbox setup Scientific Linux 6.1 host, Windows 2003 guest.
The Windows 2003 guest is run headless. Use an RDP client to access the console.
$ VBoxManage --version
4.1.8r75467
$ createvm.sh
$ storage.sh
@CootCraig
CootCraig / 2011-01-10 Tests
Created December 23, 2011 02:04
Gem::RemoteFetcher::FetchError
fail: jruby 1.7.0.dev (ruby-1.9.3-p6) (2012-01-10 6886cc0) (Java HotSpot(TM) Client VM 1.7.0_02) [Windows 7-x86-java]
fail: jruby 1.6.5 (ruby-1.9.2-p136) (2011-10-25 9dcd388) (Java HotSpot(TM) Client VM 1.7.0_02) [Windows 7-x86-java]
fail: jruby 1.6.6.dev (ruby-1.9.2-p312) (2011-12-31 ef36279) (Java HotSpot(TM) ClientVM 1.7.0_02) [Windows 7-x86-java]
win: jruby 1.6.6.dev (ruby-1.9.2-p312) (2011-12-31 ef36279) (Java HotSpot(TM) ClientVM 1.6.0_29) [Windows 7-x86-java]
win: jruby 1.7.0.dev (ruby-1.9.3-p6) (2012-01-10 6886cc0) (Java HotSpot(TM) Client VM 1.6.0_29) [Windows 7-x86-java]
=======================================================================================
$ jruby -v
@CootCraig
CootCraig / env JAVA_HOME is needed
Created December 23, 2011 15:17
Multiple JRuby,JDK environments on Windows 7
declare -x JAVA_HOME="c:\\Program Files (x86)\\Java\\jdk1.6.0_29"
$ jruby -v
jruby 1.6.5 (ruby-1.9.2-p136) (2011-10-25 9dcd388) (Java HotSpot(TM) Client VM 1.6.0_29) [Windows 7-x86-java]
Notice "Java HotSpot(TM) Client VM 1.6.0_29"
@CootCraig
CootCraig / Contents of celluloid-io-0.8.0
Created February 8, 2012 17:59
celluloid-io TCPServer replacement
$ jruby -v
jruby 1.7.0.dev (ruby-1.9.3-p0) (2011-12-30 e80efe7) (Java HotSpot(TM) Client VM 1.6.0_30) [Windows 7-x86-java]
$ pwd
/c/Users/canderson/jruby/jruby-1.7.0.dev/lib/ruby/gems/1.8/gems/celluloid-io-0.8.0
$ ls -R
.:
CHANGES.md LICENSE.txt Rakefile lib
@CootCraig
CootCraig / undefined_SafeStringValue
Created March 3, 2012 15:34
Jruby Windows 7 win32-api build error
$ gem install win32-api --version '~> 1.4.8'
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing win32-api:
ERROR: Failed to build gem native extension.
c:/jruby/jruby-1.6.7/bin/jruby.exe extconf.rb
WARNING: JRuby does not support native extensions or the `mkmf' library very wel
l.
Check http://kenai.com/projects/jruby/pages/Home for alternatives.
@CootCraig
CootCraig / FFI_fail_log_20120426
Created April 26, 2012 22:13
FFI failing on JRuby on Windows Server 2008
FFI failing on JRuby on Windows Server 2008
== Installed JRuby / JDK
$ jruby -v
jruby 1.6.7 (ruby-1.9.2-p312) (2012-02-22 3e82bc8) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_31) [Windows Server 2008-amd64-java]
== RubyInstalled devkit is installed for jruby 1.6.7
DevKit-tdm-32-4.5.2-20111229-1559-sfx
@CootCraig
CootCraig / jruby traceback
Created September 20, 2012 21:43
Windows JRuby / Celluloid script unable to get thread
base::Celluloid ERROR 2012-09-20 12:03:18 :: Celluloid::SupervisionGroup crashed!
ThreadError: unable to create new native thread
org/jruby/RubyThread.java:301:in `initialize'
org/jruby/RubyThread.java:230:in `new'
c:/jruby/jruby-1.6.8.dev/lib/ruby/gems/1.8/gems/celluloid-0.12.0/lib/celluloid/internal_pool.rb:45:in `create'
c:/jruby/jruby-1.6.8.dev/lib/ruby/gems/1.8/gems/celluloid-0.12.0/lib/celluloid/internal_pool.rb:20:in `get'
org/jruby/libraries/ThreadLibrary.java:224:in `synchronize'
c:/jruby/jruby-1.6.8.dev/lib/ruby/gems/1.8/gems/celluloid-0.12.0/lib/celluloid/internal_pool.rb:17:in `get'
c:/jruby/jruby-1.6.8.dev/lib/ruby/gems/1.8/gems/celluloid-0.12.0/lib/celluloid/thread_handle.rb:10:in `initialize'
c:/jruby/jruby-1.6.8.dev/lib/ruby/gems/1.8/gems/celluloid-0.12.0/lib/celluloid/actor.rb:181:in `initialize'
@CootCraig
CootCraig / Gemfile.lock
Created September 25, 2012 17:14
Celluloid crash on Windows JRuby 1.7 Java 1.8
GEM
remote: http://rubygems.org/
specs:
celluloid (0.12.0)
timers (>= 1.0.0)
timers (1.0.1)
PLATFORMS
java
@CootCraig
CootCraig / Gemfile
Created December 4, 2012 23:48
jruby 1.7.1 windows debug celluloid crash
source "http://rubygems.org"
gem "celluloid"