Author: Ezekiel Templin
Date: February 06, 2011
Summary: Comparing Nokogiri's parsers
Operating System: Mac OS X 10.6.6 (10J567)
CPU: Intel Core i7 2.66 GHz
| # routes.rb | |
| resources :clients do | |
| resources :payments | |
| end | |
| # views/clients/index.html.haml | |
| = link_to 'New Payment', new_client_payment_path(client) | |
| # controllers/payments_controller.rb | |
| def new |
| flat_namespace -lruby.1.9.1 -lsybdb -lpthread -ldl -lobjc | |
| ld: in /Developer/SDKs/MacOSX10.6.sdk/usr/local/lib/libiconv.2.dylib, missing required architecture x86_64 in file | |
| collect2: ld returned 1 exit status | |
| make: *** [tiny_tds.bundle] Error 1 |
| flat_namespace -lruby.1.9.1 -lsybdb -lpthread -ldl -lobjc | |
| ld: in /Developer/SDKs/MacOSX10.6.sdk/usr/local/lib/libiconv.2.dylib, missing required architecture x86_64 in file | |
| collect2: ld returned 1 exit status | |
| make: *** [tiny_tds.bundle] Error 1 |
| require "ohm" | |
| require "typhoeus" | |
| require "nokogiri" | |
| Ohm.connect | |
| class UserAgent < Ohm::Model | |
| attribute :user_agent | |
| index :user_agent |
| ruby-1.9.2-p180 :018 > class Ack | |
| ruby-1.9.2-p180 :019?> include ActionView::Helpers::DateHelper | |
| ruby-1.9.2-p180 :020?> end | |
| => Ack | |
| ruby-1.9.2-p180 :021 > dh = Ack.new | |
| => #<Ack:0x00000101dfb018> | |
| ruby-1.9.2-p180 :022 > dh.time_ago_in_words("2011-05-05 19:49:46") | |
| => "about 1 month" | |
| ruby-1.9.2-p180 :023 > dh.distance_of_time_in_words_to_now("2011-05-05 19:49:46") | |
| => "about 1 month" |
| #!/usr/bin/env bash | |
| mkdir -p /Library/Application\ Support/TextMate/ | |
| sudo chown -R $(whoami) /Library/Application\ Support/TextMate | |
| cd /Library/Application\ Support/TextMate/ | |
| if [[ -d Bundles/.svn ]] ; then | |
| cd Bundles && svn up |
| #!/usr/bin/env bash | |
| echo $1 + $2 | bc |
| Process: Color Picker Pro [35572] | |
| Path: /Applications/Color Picker Pro.app/Contents/MacOS/Color Picker Pro | |
| Identifier: com.fructivity.colorpickerpro | |
| Version: 1.0.1 (1.0.1) | |
| Code Type: X86-64 (Native) | |
| Parent Process: launchd [331] | |
| Date/Time: 2011-09-14 18:12:04.444 -0400 | |
| OS Version: Mac OS X 10.6.8 (10K549) | |
| Report Version: 6 |