My Recent Pastes (141 and counting)

All Pasties (over 141 and counting)

Pages: 1 2 4 5 10

Below are summaries of the 15 most recent pasties by Brian Donovan.

July 12, 2007
7:52PM EDT
by Brian Donovan

1
2
3
4
$ git config --global --get alias.wip
commit -a -m 'WIP'
$ git config --global --get alias.uncommit
reset --soft HEAD^

June 27, 2007
7:46PM EDT
by Brian Donovan

1
2
3
4
5
require 'rubygems'
require 'active_record'

class RegisteredModels
  cattr_accessor :models

June 14, 2007
1:31PM EDT
by Brian Donovan

1
2
3
4
5
Setting timeout at 15.91943 seconds.
Initial tests pass. Let's rumble.

**********************************************************************
***  Event#cached_attendee_user_ids loaded with 14 possible mutations

June 06, 2007
11:16PM EDT
by Brian Donovan

1
2
3
4
5
user donovan;
worker_processes  1;
error_log  logs/error.log debug;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

June 06, 2007
10:31PM EDT
by Brian Donovan

1
2
3
4
5
describe "Generating FBML" do
  include ActionView::Helpers::TagHelper
  include FacebookHelper
  
  def capture

June 03, 2007
7:01PM EDT
by Brian Donovan

1
2
3
4
5
  SELECT COUNT(*) INTO triggers from (pg_trigger join pg_class on tgrelid=pg_class.oid)
  join pg_proc on (tgfoid=pg_proc.oid) WHERE tgname = 'compute_best_prices_for_amazon_item_on_update';
  
  if triggers > 0 then
    DROP TRIGGER compute_best_prices_for_amazon_item_on_update ON amazon_items;

June 01, 2007
4:11AM EDT
by Brian Donovan

1
2
3
4
5
## LOC per action that uses respond_to

common 1
html 0
json 5

May 29, 2007
10:24PM EDT
by Brian Donovan

1
2
3
4
5
a -> b -> a

M = 

  a  b

May 29, 2007
7:09PM EDT
by Brian Donovan

1
2
3
4
5
http://maps.google.com/maps/geo?q=San+Francisco&output=xml&key=abcde

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.0">
  <Response>

May 29, 2007
6:45PM EDT
by Brian Donovan

1
2
3
4
5
sudo port install p5-svn-simple
--->  Fetching perl5.8
--->  Verifying checksum(s) for perl5.8
--->  Extracting perl5.8
--->  Applying patches to perl5.8

May 29, 2007
6:39PM EDT
by Brian Donovan

1
2
3
4
5
def pbpaste
  `pbpaste`
end

def pbcopy(object)

May 29, 2007
6:05PM EDT
by Brian Donovan

1
2
3
--->  Extracting p5-svn-simple
--->  Configuring p5-svn-simple
Error: Target com.apple.configure returned: configure failure: shell command " cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_perl_p5-svn-simple/work/SVN-Simple-0.27" && /opt/local/bin/perl Makefile.PL INSTALLDIRS=vendor " returned error 9Command output: Checking if your kit is complete...Looks good===> Warning: SVN::Core missing or outdated.Please manually install SVN::Core by compiling Subversion(version 0.31.0 or above) with SWIG/Perl bindings,and try this installation process again.Writing Makefile for SVN::Simple::EditError: The following dependencies failed to build: p5-svn-simpleError: Status 1 encountered during processing.

May 29, 2007
6:03PM EDT
by Brian Donovan

1
2
3
4
5
$ sudo port install git-core -no_svn +svn
--->  Fetching p5-html-parser
--->  Attempting to fetch HTML-Parser-3.56.tar.gz from http://ftp.ucr.ac.cr/Unix/CPAN/modules/by-module/HTML
--->  Verifying checksum(s) for p5-html-parser
--->  Extracting p5-html-parser

May 23, 2007
10:49PM EDT
by Brian Donovan

1
2
3
4
5
require 'drb'

class JobProcessor
  WAIT = 3
  

May 23, 2007
6:29PM EDT
by Brian Donovan

1
2
3
4
5
    def self.old(attributes={})
      returning new(attributes) do |object|
        object.instance_variable_set("@new_record", false)
      end
    end

Next page

Previous page