Skip to content

Instantly share code, notes, and snippets.

Avatar

Chuck Remes chuckremes

View GitHub Profile
View gist:147122
Assertion failed: (pos >= 0 && pos < vmm_->stack_size), function stack_position, file vm/llvm/jit_operations.hpp, line 328.
Abort trap
View gist:147134
def write_file filename
File.open(filename, "w") do |file|
file.puts "#\tSUMMARY"
file.puts "#\tWINNER%\tPRODUCT\tDURATION\tPROFIT GOAL\tTIME\tAVG PROFIT\tAVG RISK\tBREAKOUT%\tRISK RATIO\tAVG ENTRY\tAVG EXIT\tAVG MAX EXIT\tAVG DRAWDOWN"
winner_summary.each do |line|
file.puts("#\t" + line.join("\t"))
end
file.puts "#\tLOSER%\tPRODUCT\tDURATION\tPROFIT GOAL\tTIME\tAVG PROFIT\tAVG RISK\tBREAKDOWN%\tRISK RATIO\tAVG ENTRY\tAVG EXIT\tAVG MAX EXIT\tAVG DRAWDOWN"
loser_summary.each do |line|
View README
Executed the script:
time /Users/cremes/Documents/development/ruby/rubinius/rubinius/bin/rbx -Xjit.enabled rewinder.rb mr_gc
It reads the file (mr_gc), does some work on it, then outputs back to a new file with the same name. Since it
crashes midway through writing the file, make a backup of it first.
The output prior to the assertion looked like:
3a. building sub arrray for [GC, 7m, 4, 10, 50]...
View internal_logger.rb
module Util
module InternalLogger
class Base
def log; raise NotImplementedError; end
# since we provide a null object that drops all messages on the floor, we need a simple
# way to inquire if the particular active instance is null or not
def null?; raise NotImplementedError; end
def sync; raise NotImplementedError; end
View vm-bt.20091006
(gdb) bt
#0 kind_of<rubinius::Module> [inlined] () at kind_of.hpp:190
#1 try_as<rubinius::Module> [inlined] () at kind_of.hpp:143
#2 try_as<rubinius::Module> [inlined] () at kind_of.hpp:143
#3 rubinius::Primitives::object_kind_of (state=0xf00e00, call_frame=0xbfff8a60, msg=@0xfbcc80, args=@0xbfff8a30) at vm/primitives.cpp:15628
#4 0x0527ebbb in ?? ()
#5 0x0228e569 in ?? ()
#6 0x0228ef91 in ?? ()
#7 0x000cd744 in rubinius::BlockEnvironment::call (this=0x1006000, state=0xfdefe0, call_frame=0xfdefe0, args=@0xfdefe0, flags=16642016) at vm/primitives.cpp:15628
#8 0x001315a6 in rbx_yield_stack (state=0xf00e00, call_frame=0xbfff8cb4, block=0x1d5ee40, count=16642016, args=0xbfff8cd4) at vm/primitives.cpp:15628
View gist:258263
- (void)mouseDown:(CPEvent)theEvent
{
var event_location = [theEvent locationInWindow],
local_point = [self convertPoint:event_location toView:nil];
console.log(event_location);
console.log(local_point);
clicked_row = [self rowAtPoint:location];
console.log("clicked row " + clicked_row);
View gist:259068
Window for <MyWindowController 0x0020dd> could not be loaded from Cib or no window specified. Override loadWindow to load the window manually.
View gist:261823
charles-remess-mac-pro:traveling_salesman cremes$ ant distrecursive
Buildfile: build.xml
osmnavigation:
libosm:
compile:
[mkdir] Created dir: /Users/cremes/Documents/development/java/h2test/libosm/classes
[mkdir] Created dir: /Users/cremes/Documents/development/java/h2test/libosm/classes.tests
View gist:262566
org.openstreetmap.osmosis.core.OsmosisRuntimeException: Unable to create database prepared statement.
SQL=MERGE INTO street (id, defaultName, centerLat, centerLon, radius) VALUES (?, ?, ?, ?, ?)
DB-URL=jdbc:h2:file:/Users/cremes/.openstreetmap/map/streets
Schema-Version=4
at org.openstreetmap.osm.data.h2.DatabaseContext.prepareStatement(DatabaseContext.java:339)
at org.openstreetmap.osm.data.searching.advancedAddressDB.WaysIndex.indexWay(WaysIndex.java:204)
at org.openstreetmap.osm.data.searching.advancedAddressDB.AdvancedAddressDBPlaceFinder.indexWay(AdvancedAddressDBPlaceFinder.java:206)
at org.openstreetmap.travelingsalesman.actions.LoadMapFileActionListener$AddToMapSink.process(LoadMapFileActionListener.java:450)
at org.openstreetmap.osmosis.core.xml.v0_6.impl.WayElementProcessor.end(WayElementProcessor.java:116)
at org.openstreetmap.osmosis.core.xml.v0_6.impl.OsmHandler.endElement(OsmHandler.java:107)
View gist:262696
charles-remess-mac-pro:dist cremes$ java -Xmx1500m -jar traveling_salesman-1.0.2.jar > output
Dec 23, 2009 12:28:16 PM org.openstreetmap.osm.data.searching.advancedAddressDB.CitiesIndex indexNode
WARNING: We found a city with no name. Refusing to index it. nodeID=246672650
Dec 23, 2009 12:28:16 PM org.openstreetmap.osm.data.searching.advancedAddressDB.CitiesIndex indexNode
WARNING: We found a city with no name. Refusing to index it. nodeID=247486543
Dec 23, 2009 12:28:38 PM org.openstreetmap.osm.data.searching.advancedAddressDB.CitiesIndex indexNode
WARNING: We found a city with no name. Refusing to index it. nodeID=258190347
Dec 23, 2009 12:28:48 PM org.openstreetmap.osm.data.searching.advancedAddressDB.CitiesIndex indexNode
WARNING: We found a city with no name. Refusing to index it. nodeID=266536865
Dec 23, 2009 12:28:50 PM org.openstreetmap.osm.data.searching.advancedAddressDB.CitiesIndex indexNode