This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2012-04-03 19:13:27 | |
Full thread dump Java HotSpot(TM) Client VM (21.0-b17 mixed mode): | |
"RMI TCP Connection(2)-127.0.0.1" daemon prio=10 tid=0x090ec400 nid=0x7513 runnable [0x8d5ee000] | |
java.lang.Thread.State: RUNNABLE | |
at java.net.SocketInputStream.socketRead0(Native Method) | |
at java.net.SocketInputStream.read(SocketInputStream.java:150) | |
at java.net.SocketInputStream.read(SocketInputStream.java:121) | |
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
arturas@zeus:~/.rvm/rubies/jruby-head-n16$ git bisect skip | |
There are only 'skip'ped commits left to test. | |
The first bad commit could be any of: | |
2ce71d5fa87465e8839f78c4029cc0129382b4cb | |
887972985e1692889fdc0b26a2cff0aaba51071e | |
aa191e7731581f2e7a407dd0afcbd8fef0a0233f | |
76b40d503a30f733a99d02e2e14f1dd4d4dcb618 | |
We cannot bisect more! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'java' | |
require 'libssrckdtree-j-1.0.2.jar' | |
GenericPoint = Java::com.savarese.spatial.GenericPoint | |
KDTree = Java::com.savarese.spatial.KDTree | |
def generate_points(tree, size) | |
size.times do | |
x = rand(100) | |
y = rand(100) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void nearest( | |
final int index, final float x, final float y, final int depth, | |
final Result result | |
) { | |
if (index == -1) return; | |
final Node node = nodes[index]; | |
// final Node node = (Node) unsafe.getObject( | |
// nodes, Unsafe.ARRAY_OBJECT_BASE_OFFSET + | |
// Unsafe.ARRAY_OBJECT_INDEX_SCALE * index | |
// ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spacegame@gnat:~/web/current/www$ bundle show authlogic | |
fatal: Not a git repository (or any of the parent directories): .git | |
fatal: Not a git repository (or any of the parent directories): .git | |
fatal: Not a git repository (or any of the parent directories): .git | |
/home/spacegame/web/shared/bundle/ruby/1.9.1/bundler/gems/authlogic-a087ad0cba3c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Author: Arturas Slajus <[email protected]> 2012-04-18 23:08:34 | |
Committer: Arturas Slajus <[email protected]> 2012-04-18 23:08:34 | |
Parent: f0cc63550a0bb0ca4f60a8a8fc1682d196d57087 (Merge remote-tracking branch 'origin/stable2' into stable2) | |
Branches: remotes/origin/stable2, stable2 | |
Follows: many_scopes | |
Precedes: | |
Use EM instead of celluloid-io for now. | |
----------------------------------- Gemfile ----------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def checkin(conn) | |
synchronize do | |
conn.run_callbacks :checkin do | |
conn.expire | |
@queue.signal | |
end | |
release conn | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RaidSpawner | |
# It's a regular planet. | |
KEY_PLANET = 'planet' | |
# It's a battleground planet. | |
KEY_BATTLEGROUND = 'battleground' | |
# Apocalypse is raging in the galaxy. | |
KEY_APOCALYPSE = 'apocalypse' | |
def initialize(planet) | |
@planet = planet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check-in a database connection back into the pool, indicating that you | |
# no longer need this connection. | |
# | |
# +conn+: an AbstractAdapter object, which was obtained by earlier by | |
# calling +checkout+ on this pool. | |
def checkin(conn) | |
synchronize do | |
conn.run_callbacks :checkin do | |
conn.expire | |
@queue.signal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def iterator = { | |
val rubyIter = raw.directEntrySet().iterator() | |
new Iterator[(IRubyObject, IRubyObject)] { | |
def hasNext = rubyIter.hasNext | |
def next() = { | |
val key = rubyIter.next.asInstanceOf[IRubyObject] | |
val value = raw.fastARef(key) | |
(key, value) | |
} |