Skip to content

Instantly share code, notes, and snippets.

16:47 ~/code/basho/riak/rel/riak $ bin/riak console
Exec: /Users/hornbeck/code/basho/riak/rel/riak/erts-5.7.4/bin/erlexec -boot /Users/hornbeck/code/basho/riak/rel/riak/releases/0.8/riak -embedded -config /Users/hornbeck/code/basho/riak/rel/riak/etc/app.config -args_file /Users/hornbeck/code/basho/riak/rel/riak/etc/vm.args -- console
Root: /Users/hornbeck/code/basho/riak/rel/riak
Erlang R13B03 (erts-5.7.4) [source] [smp:2:2] [rq:2] [async-threads:5] [kernel-poll:true]
=ERROR REPORT==== 3-Feb-2010::16:47:48 ===
Error loading "spidermonkey_drv": "dlopen(/Users/hornbeck/code/basho/riak/rel/riak/lib/erlang_js-0.1/priv/spidermonkey_drv.so, 2): no suitable image found. Did find:\n\t/Users/hornbeck/code/basho/riak/rel/riak/lib/erlang_js-0.1/priv/spidermonkey_drv.so: mach-o, but wrong architecture"
=INFO REPORT==== 3-Feb-2010::16:47:48 ===
9:09 bingeldac: I can't wait
09:13 bingeldac: i can't wait
9:27 bingeldac: very stoked
# mongo_template.rb
# remove unneeded defaults
run "rm public/index.html"
run "rm public/images/rails.png"
run "rm public/javascripts/controls.js"
run "rm public/javascripts/dragdrop.js"
run "rm public/javascripts/effects.js"
run "rm public/javascripts/prototype.js"
=== Epic Snow Leopard Upgrayyyyd Guide ===
Son, you’re now living in the land of 64-bit systems.
That means that some of your 32-bit shit is now broken.
Not all is lost.
== Fixing MySQL weirdness
build-project:
[echo] apache-cassandra-incubating: /Users/hornbeck/code/cassandra/cassandra/build.xml
[javac] Compiling 288 source files to /Users/hornbeck/code/cassandra/cassandra/build/classes
[javac] /Users/hornbeck/code/cassandra/cassandra/src/java/org/apache/cassandra/cli/CliClient.java:45: cannot access org.apache.thrift.TException
[javac] bad class file: /Users/hornbeck/code/cassandra/cassandra/lib/libthrift.jar(org/apache/thrift/TException.class)
[javac] class file has wrong version 50.0, should be 49.0
[javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
[javac] public void executeCLIStmt(String stmt) throws TException, NotFoundException, InvalidRequestException, UnavailableException
[javac] ^
[javac] 1 error
#!/bin/env ruby
require 'fileutils'
config_opts = ["--with-jpeg=no", "--with-gif=no", "--with-tiff=no", "--with-ns"]
source_dir = "#{ENV['HOME']}/code"
repo_dir = "#{source_dir}/emacs"
install_dir = "#{repo_dir}/nextstep/Emacs.app"
install_target = "/Applications/Emacs.app"
1> Failure to start Mochiweb: eaddrinuse
1> [error] [<0.58.0>] {error_report,<0.25.0>,
{<0.58.0>,crash_report,
[[{initial_call,{mochiweb_socket_server,init,['Argument__1']}},
{pid,<0.58.0>},
{registered_name,[]},
{error_info,{exit,eaddrinuse,
[{gen_server,init_it,6},
{proc_lib,init_p_do_apply,3}]}},
{ancestors,[couch_secondary_services,couch_server_sup,
class Blogs
include CassandraMapper
CassandraMapper.connection(:keyspace => 'Multiblog', :column_family => 'Super Cool guy')
attr_accessor :title, :body
end
>> require 'Blogs'
=> true
>> foo = Blogs.new
=> #<Blogs:0x112e55c>
>> foo.create(:title => "hello from CassandraMapper", :body => "This is a new blog post using CassandraMapper")
=> nil
>> foo.find("hello from CassandraMapper")
=> "This is a new blog post using CassandraMapper"
>> foo.all
=> #<OrderedHash {"super new title"=>"super body", "this is the best title ever"=>"this is the body to the best post ever", "this is my brand new title"=>"this is the best new awesome body", "title"=>"new title", "body"=>"new body", "very super new title"=>"yes this is a super new title", "a new title"=>"a new body", "this is awesome"=>"super cool", "this is my best title yet"=>"this is the best body yet too", "this is a new title"=>"this is a new body", "hello from CassandraMapper"=>"This is a new blog post using CassandraMapper"}>
ERROR: NameError: Cannot find Chef::Resource::IfAppNeedsRecipe for if_app_needs_recipe
Original: /usr/lib/ruby/gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/extensions.rb:206:in `const_missing': uninitialized constant Chef::Resource::IfAppNeedsRecipe
/usr/lib/ruby/gems/1.8/gems/chef-0.6.0/lib/chef/recipe.rb:196:in `method_missing'
/etc/chef-custom/recipes/cookbooks/mongodb/recipes/default.rb:11:in `from_file'
/usr/lib/ruby/gems/1.8/gems/chef-0.6.0/lib/chef/cookbook.rb:139:in `load_recipe'
/usr/lib/ruby/gems/1.8/gems/chef-0.6.0/lib/chef/recipe.rb:76:in `include_recipe'
/usr/lib/ruby/gems/1.8/gems/chef-0.6.0/lib/chef/recipe.rb:63:in `each'
/usr/lib/ruby/gems/1.8/gems/chef-0.6.0/lib/chef/recipe.rb:63:in `include_recipe'
/usr/lib/ruby/gems/1.8/gems/chef-0.6.0/lib/chef/recipe.rb:82:in `require_recipe'
/etc/chef-custom/recipes/cookbooks/main/recipes/default.rb:15:in `from_file'