Skip to content

Instantly share code, notes, and snippets.

http://files.me.com/mike.bulmer/w4oi6m
require 'rubygems'
require 'active_record'
module A
class B < ActiveRecord::Base
def self.a
self.name + ' -- ' + self.object_id.to_s
end
end
end
bin/mspec tag --list fails
(setq browse-url-browser-function 'browse-url-generic
browse-url-generic-program "google-chrome")
; highlighting
(setq erc-current-nick-highlight-type 'nick)
(setq erc-keywords '("whatever you want to highlight goes here"))
(setq erc-track-faces-priority-list
'(erc-current-nick-face erc-keyword-face))
(setq erc-track-priority-faces-only 'all)
; disable tracking most events
(setq erc-track-exclude-types '("JOIN" "PART" "QUIT" "NICK" "MODE"))
;; redefine generic url browser to whatever you want it to be
(setq browse-url-browser-function 'browse-url-generic
browse-url-generic-program "chromium-browser")
sbryant@chani:~/src/rubinius$ bin/rbx gem install httpclient json mailfactory mysql rails-sqlserver-2000-2005-adapter
rbx: Precompiling 12 files...
Successfully installed httpclient-2.1.5.2
Building native extensions. This could take a while...
rbx: Precompiling 26 files...
0: passed_arg 1
2: goto_if_true 10
4: push_const_fast 0 1
7: set_local 1
9: pop
sbryant@chani:~/src/rubinius$ bin/rbx gem install soap4r
rbx: Precompiling 366 files...
Successfully installed soap4r-1.5.8
1 gem installed
Installing ri documentation for soap4r-1.5.8...
Updating ri class cache with 1216 classes...
Installing RDoc documentation for soap4r-1.5.8...
ERROR: While executing gem ... (Errno::EBADF)
Bad file descriptor - read(2) failed
sbryant@chani:~/src/ruby-odbc-0.9997$ make
gcc -I. -I. -I/home/sbryant/src/rubinius/vm/capi -I. -DHAVE_SQL_H -DHAVE_SQLEXT_H -DHAVE_TYPE_SQLTCHAR -DHAVE_TYPE_SQLLEN -DHAVE_TYPE_SQLULEN -DHAVE_ODBCINST_H -DHAVE_SQLINSTALLERERROR -ggdb3 -O2 -fPIC -c odbc.c
odbc.c: In function ‘start_gc’:
odbc.c:854: error: ‘rb_mGC’ undeclared (first use in this function)
odbc.c:854: error: (Each undeclared identifier is reported only once
odbc.c:854: error: for each function it appears in.)
odbc.c: In function ‘do_fetch’:
odbc.c:5960: error: incompatible type for argument 1 of ‘rb_ll2inum’
/home/sbryant/src/rubinius/vm/capi/ruby.h:601: note: expected ‘long long int’ but argument is of type ‘SQLBIGINT’
odbc.c:5969: error: incompatible type for argument 1 of ‘rb_ull2inum’
From c1b2240dde8c3bc214cc41705579f66bd97dec2b Mon Sep 17 00:00:00 2001
From: Sean Bryant <sean@hackinggibsons.com>
Date: Thu, 25 Mar 2010 17:02:46 -0400
Subject: [PATCH] finish implemented frozen semantics for capi layer
---
vm/capi/object.cpp | 23 ++++++++++++++++++++---
vm/capi/ruby.h | 6 ++++++
2 files changed, 26 insertions(+), 3 deletions(-)