Skip to content

Instantly share code, notes, and snippets.

View matthewford's full-sized avatar

Matthew Ford matthewford

View GitHub Profile
#!/bin/bash
mkdir tmp/curl-ca-bundle
cd tmp/curl-ca-bundle
wget http://curl.haxx.se/download/curl-7.36.0.tar.gz
tar xzf curl-7.36.0.tar.gz
cd curl-7.36.0/lib/
./mk-ca-bundle.pl
echo
echo "Done! Check lib/ca-bundle.crt"
<cluster-user>admin</cluster-user>
<cluster-password>mypassword</cluster-password>
@matthewford
matthewford / nokogiri libxml homebrew lion
Created April 17, 2012 00:46 — forked from devpuppy/nokogiri libxml homebrew lion
How to fix: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.7.8
FIXME:
WARNING: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.7.8
or
libxml_ruby.bundle: dlsym(0x10fde1900, Init_libxml_ruby): symbol not found
gem uninstall nokogiri libxml-ruby
brew update
brew uninstall libxml2
@matthewford
matthewford / fixes.md
Created April 17, 2012 00:25 — forked from thbar/fixes.md
Getting rid of nokogiri segfaults

This readme is a mixture of everything I read on SO+nokogiri wiki, which ultimately worked out for me.

Here are the steps which worked for me to get rid of segfaults with Nokogiri 1.4.4, on both Lion and Snow Leopard, with Ruby 1.8.7 (patchlevel 334 and +).

First diagnose which version of libxml2 you're using:

bundle exec nokogiri -v

If you have 2.7.3 listed somewhere, you're in bad waters (known to segfault). Install this:

#how i'd imagine this working, and how to just deal with the ticket obj, although just tested and this doesn't quite work. will see if i can fix it tomorrow
class Ticket < Sequel::Model
set_schema do
foreign_key :ticket_detail_id, :table => :ticket_detail
# integer :ticket_detail_version
end
is(:versioned_fact, {:dimensions => [TicketDetail]})
one_to_many :ticket_details