This file contains 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
peterv@ASUS:~/b/github/petervandenabeele/shoes$ cucumber | |
/home/peterv/.rvm/gems/ruby-1.9.3-p0/gems/json-1.6.3/lib/json/common.rb:66: [BUG] unknown type 0x22 (0xc given) | |
ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux] | |
-- Control frame information ----------------------------------------------- | |
c:0032 p:---- s:0115 b:0115 l:000114 d:000114 CFUNC :initialize | |
c:0031 p:---- s:0113 b:0113 l:000112 d:000112 CFUNC :new | |
c:0030 p:0099 s:0110 b:0108 l:000107 d:000107 METHOD /home/peterv/.rvm/gems/ruby-1.9.3-p0/gems/json-1.6.3/lib/json/common.rb:66 | |
c:0029 p:0090 s:0099 b:0098 l:000097 d:000097 CLASS /home/peterv/.rvm/gems/ruby-1.9.3-p0/gems/json-1.6.3/lib/json/ext.rb:17 | |
c:0028 p:0011 s:0096 b:0096 l:000095 d:000095 CLASS /home/peterv/.rvm/gems/ruby-1.9.3-p0/gems/json-1.6.3/lib/json/ext.rb:12 |
This file contains 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
new@ASUS:~/github/shoes/shoes$ rvm upgrade ruby-1.9.3-rc1 ruby-1.9.3 | |
Are you sure you wish to upgrade from ruby-1.9.3-rc1 to ruby-1.9.3-p0? (Y/n): y | |
Installing new ruby ruby-1.9.3-p0 | |
Are you sure you wish to upgrade from ruby-1.9.3-rc1 to ruby-1.9.3-p0? (Y/n): y | |
Installing new ruby ruby-1.9.3-p0 | |
Installing Ruby from source to: /home/new/.rvm/rubies/ruby-1.9.3-p0, this may take a while depending on your cpu(s)... | |
ruby-1.9.3-p0 - #fetching | |
ruby-1.9.3-p0 - #downloading ruby-1.9.3-p0, this may take a while depending on your connection... | |
% Total % Received % Xferd Average Speed Time Time Time Current |
This file contains 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
So, sqlite3 was not really running _in-memory_ here | |
(thanks @xavierdefrang for the hat tip). | |
At the bottom I document what I did to try to get it | |
running in-memory. | |
~/b$ # with mysql 5.1.58 | |
~/b$ time rspec spec | |
................................................................................................................................................................................................................................................................................................................................................................................................................ |
This file contains 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
peterv@ASUS:~$ rvm cleanup repos | |
Cleaning up rvm directory '/home/peterv/.rvm/repos' | |
peterv@ASUS:~$ rvm cleanup sources | |
Cleaning up rvm directory '/home/peterv/.rvm/src' | |
peterv@ASUS:~$ rvm install ruby-head | |
Installing Ruby from source to: /home/peterv/.rvm/rubies/ruby-head, this may take a while depending on your cpu(s)... | |
ruby-head - #fetching |
This file contains 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
RAILS_ROOT/lib/templates/rails/scaffold_controller$ cat controller.rb | |
<% module_namespacing do -%> | |
class <%= controller_class_name %>Controller < ApplicationController | |
# GET <%= route_url %> | |
# GET <%= route_url %>.xml | |
def index | |
@<%= plural_table_name %> = <%= orm_class.all(class_name) %> | |
respond_to do |format| | |
format.html # index.html.erb |
This file contains 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
peterv@ASUS:~/data/temp/github/petervandenabeele$ git clone git@github.com:petervandenabeele/petervandenabeele.github.com.git | |
Initialized empty Git repository in /home/peterv/data/temp/github/petervandenabeele/petervandenabeele.github.com/.git/ | |
remote: Counting objects: 4084, done. | |
remote: Compressing objects: 100% (1438/1438), done. | |
remote: Total 4084 (delta 2327), reused 4064 (delta 2307) | |
Receiving objects: 100% (4084/4084), 997.31 KiB | 232 KiB/s, done. | |
Resolving deltas: 100% (2327/2327), done. | |
peterv@ASUS:~/data/temp/github/petervandenabeele$ ls -l | |
total 4 |
This file contains 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
max 100 bins | |
n = 2 | |
SIZE | |
1000_000 | |
user system total real | |
Ralph Shneiver: 0.350000 0.000000 0.350000 ( 0.352159) | |
Sigurd: 0.400000 0.000000 0.400000 ( 0.400920) | |
Keinich #1 0.290000 0.000000 0.290000 ( 0.291612) | |
Keinich #2 0.350000 0.000000 0.350000 ( 0.349191) |
This file contains 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
In response to https://gist.github.com/1657737 | |
peterv@ASUS:~$ java -version | |
java version "1.6.0_26" | |
Java(TM) SE Runtime Environment (build 1.6.0_26-b03) | |
Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode) | |
peterv@ASUS:~$ javac -version | |
javac 1.6.0_26 |
This file contains 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 'benchmark' | |
n = 2 | |
#ar = [4,5,6,4,5,6,6,7] | |
maxval = 1000 | |
ar = [].tap{|a| 1_000_000.times {a << rand(maxval)}} | |
puts "SAMPLE of ar" | |
puts ar[0...20] | |
puts "SIZE" | |
puts ar.size |
This file contains 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
$ rvm install ruby-1.9.3 | |
Already installed ruby-1.9.3-p0. | |
To reinstall use: | |
rvm reinstall ruby-1.9.3-p0 | |
$ rvm use 1.9.3 | |
Using /home/peterv/.rvm/gems/ruby-1.9.3-p0 |