My Recent Pastes (264531 and counting)

All Pasties (over 264,531 and counting)

Pages: 1 7871 7873 7875 13227

Below are summaries of the most recent pasties.

December 27, 2007
12:16PM EDT

1
2
3
4
5
rupert-fishers-macbook:property-project rupert$ rake rails:freeze:gems
(in /Users/rupert/Sites/property-project)
Freezing to the gems for Rails 1.2.6
ERROR:  While executing gem ... (Gem::Exception)
    Cannot load gem at [/Library/Ruby/Gems/1.8/cache/activesupport-1.4.4.gem] in /Users/rupert/Sites/property-project/vendor/rails

December 27, 2007
12:08PM EDT
by Sam Stephenson

1
2
3
4
5
module InheritableArrayAccessor
  def self.included(klass)
    klass.extend(ClassMethods)
  end
  

December 27, 2007
12:05PM EDT

1
2
3
4
5
2007.12.27 16:36:00

Ziel: The Lordship
Allianz: NICHTS
Corporation: Visual I.D

December 27, 2007
12:04PM EDT

1
2
3
4
5
2007.12.27 16:33:00

Ziel: The Lordship
Allianz: NICHTS
Corporation: Visual I.D

December 27, 2007
12:01PM EDT

1
2
3
4
5
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>items</key>

December 27, 2007
11:57AM EDT

1
2
3
4
5
describe City do
  
  before(:each) do
    @city = City.new
  end

December 27, 2007
11:45AM EDT

1
2
3
4
5
SteveBook:~/Code/utils steve$ rails foo
/usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:379:in `report_activate_error': RubyGem version error: activesupport(1.4.2 not = 2.0.2) (Gem::LoadError)
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:311:in `activate'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:337:in `activate'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:336:in `each'

December 27, 2007
11:30AM EDT

1
2
3
4
5
app/views/articles/all.html.haml:15
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:263:in `load_missing_constant'
    /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:453:in `const_missing'
    vendor/plugins/pagination/lib/pagination_helper.rb:38:in `paginate'
    (eval):55:in `_render_haml_1'

December 27, 2007
11:18AM EDT

1
2
3
4
5
<?
        include_once("conexion.php");
        $id_operacion = $_GET["id_operacion"];
        $filesize = $_POST["MAX_FILE_SIZE"];
        function chequea_file($path)

December 27, 2007
11:10AM EDT

1
2
3
4
5
sudo gem install postgres


Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)

December 27, 2007
11:09AM EDT

1
ddd

December 27, 2007
11:00AM EDT

1
2
3
4
5
#!/usr/bin/perl

use DBI();
use Socket;
use WWW::Google::PageRank;

December 27, 2007
10:58AM EDT

1
2
3
4
5
<?php

class User extends AppModel
{
    var $name = 'User';

December 27, 2007
10:56AM EDT

1
2
3
4
5
#Doing a search with the below items, apparently creates a new company (well, attempts to, and fails poorly, since it doesn't contain all the relevant information.

#---- index.html.erb

<h2 class="sep">Company List</h2>

December 27, 2007
10:52AM EDT

1
2
3
4
5
public static function getUserActions($user)
{
  $c = new Criteria();
  $crit0 = $c->getNewCriterion(self::ATTACKER, $user->getId());
  $crit1 = $c->getNewCriterion(self::VICTIM, $user->getId());

December 27, 2007
9:57AM EDT

1
2
3
4
5
#!/usr/bin/env ruby
def main
  now = Time.now
  lunch = Time.mktime(now.year, now.month, now.day, 11, 30)
  diff = lunch-now

December 27, 2007
9:52AM EDT

1
2
3
4
5
# an basic example
describe Article, 'Saving a new article' do
  
  before(:each) do
    @article = Article.new( :title => "My Article title")

December 27, 2007
9:44AM EDT

1
2
3
4
5
<ul class="pagination">
  <li class="inactive first-child previous">Previous</li>
  <li class="current">1</li>
  <li><a href="/attachments?page=2">2</a></li>
  <li><a href="/attachments?page=3">3</a></li>

December 27, 2007
9:42AM EDT

1
2
3
4
5
- paginate(Article.find(:all), :per_page => 5) do |articles|
  %table
    %tbody
      - articles.each do |article|
        %tr 

December 27, 2007
9:36AM EDT

1
2
3
4
5
## Plugin model schema

# == Schema Information
# Schema version: 2
#

Next page

Previous page