My Recent Pastes (151814 and counting)

All Pasties (307 and counting)

Pages: 1 2 3 ... 6073

Below are summaries of the most recent pasties.

May 13, 2008
9:09PM EDT

1
2
3
4
5
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
  msg = instance.error_message
  errors = msg.is_a?(Array) ? msg.join(" ") : msg
  "<span class=\"error_message\">#{errors}</span><span class=\"error_field\">#{html_tag}</span>"
end

May 13, 2008
9:07PM EDT

1
2
3
4
5
[18:07:56] EclipticDB$ script/console
Loading development environment (Rails 2.0.2)
/usr/local/lib/ruby/gems/1.8/gems/ferret-0.11.6/lib/ferret_ext.bundle: Failed to load /usr/local/lib/ruby/gems/1.8/gems/ferret-0.11.6/lib/ferret_ext.bundle (LoadError)
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'
        from /Users/evan/Development/NetBeansProjects/EclipticDB/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:496:in `require'

May 13, 2008
9:03PM EDT

1
2
3
4
5
## Right now

Built-in tasks: thor install
Thorfile tasks: thor meta:install

May 13, 2008
9:00PM EDT

1
2
3
4
5
=> Booting Mongrel (use 'script/server webrick' to force WEBrick)
=> Rails application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 0.0.0.0:3000

May 13, 2008
8:57PM EDT

1
2
3
4
5
2008.05.14 00:54:00

Victim: Akira117
Alliance: Pandemic Legion
Corp: Sniggerdly

May 13, 2008
8:48PM EDT

1
2
3
4
5
package org.exploid;

public class Foo {

    public void bar(String asdf) {

May 13, 2008
8:48PM EDT
by robotpoke

1
2
3
4
5
077_create_wiki.rb
7:      t.column "description", :text


lms_development=# \d wikis

May 13, 2008
8:47PM EDT
by silkcom

1
2
3
4
5
## code
                  <label for="keyword_selected">Select a Keyword:</label>
                  <%= collection_select ('keyword', 'selected', [{:id => 0, :word => "New Keyword"},@books].flatten, :id, :word) %>

## question

May 13, 2008
8:44PM EDT

1
2
3
4
5
function navigate(n:Number):Void {
        trace("navigate: " + n);
        if(n == 0) {
                home_mc._visible = true;
        }

May 13, 2008
8:30PM EDT

1
2
3
4
5
function navigate(n:Number):Void {
        trace("navigate: " + n);
        if(n == 0) {
                home_mc._visible = true;
        }

May 13, 2008
8:29PM EDT

1
2
3
4
5
# this fixes polymorphic assignment relationships so the _type field is set when you assign an object to the association.

module ActiveRecord
  module Associations
    class BelongsToPolymorphicAssociation < AssociationProxy #:nodoc:

May 13, 2008
8:20PM EDT

1
2
3
4
5
# in extension lib/ranged_hash.rb
class RangedHash
  def initialize(hash)
    @ranges = hash
  end

May 13, 2008
8:13PM EDT

1
2
3
4
5
jhalickman11: I disagree with this "the desirability of eliminating fire departments"
jhalickman11: more likely the "desirability of eliminating government funded fire departments"
Daniel McKinley: what's the difference
Daniel McKinley: god you're retarded
jhalickman11: private fire depts

May 13, 2008
8:12PM EDT

1
2
3
4
5
function('s:savewinopts')                                                                                                                                                                                           
Error detected while processing function ZoomWin..windowlayout#GetLayout:
line   13:
E117: Unknown function: <SNR>41_func
function('s:savewinopts')

May 13, 2008
8:12PM EDT

1
2
3
4
5
<tr>
  <td><img src="/images/interior_blueCurveTop.gif" width="1006" height="23"/></td>
</tr>
<tr>
  <td class="bodyBack" align="center">

May 13, 2008
8:08PM EDT

1
2
3
4
5
function! windowlayout#GetLayout()
  call windowlayout#SaveWindows()
  let savewiw = &wiw
  let savewmw = &wmw
  let saveei  = &ei

May 13, 2008
8:03PM EDT

1
2
3
4
5
  def search 
    @states = Community.states 
    if request.post? 
      conditions = [] 
      if params[:community][:approval_status] == "pending"

May 13, 2008
8:03PM EDT

1
2
3
4
5
2008.05.13 23:49:00

Victim: Karasumiko D
Alliance: Executive Outcomes
Corp: The Galactic Empire

May 13, 2008
8:03PM EDT
by brough

1
2
3
4
5
  session[:cart] << inventory_item << inventory_item << inventory_item

  customer adds inventory to cart. Calculate total price taking into account volume discounts on the fly. When they checkout, formalize this on the order and line item tables:

May 13, 2008
8:02PM EDT

1
2
3
4
5
Error detected while processing function ZoomWin..windowlayout#GetLayout:
line   12:
E117: Unknown function: <SNR>54_func
E117: Unknown function: <SNR>54_func
E117: Unknown function: <SNR>54_func

May 13, 2008
7:59PM EDT
by celeretaudax

1
2
3
4
5
  def test_ham_exclamation_point_updates_spam_status_to_ham
    @comment = Comment.create!(SPAM_COMMENTS[2])
    assert @comment.spam?
    @comment.ham!
    assert @comment.ham?

May 13, 2008
7:57PM EDT

1
2
3
4
5
# UBUNTU-CONKY
# A comprehensive conky script, configured for use on
# Ubuntu / Debian Gnome, without the need for any external scripts.
#
# Based on conky-jc and the default .conkyrc.

May 13, 2008
7:53PM EDT
by rsl

1
2
3
4
sneaky:acts_as_snook rsl$ git push
To git@github.com:rsl/acts_as_snook.git
 ! [rejected]        master -> master (non-fast forward)
error: failed to push some refs to 'git@github.com:rsl/acts_as_snook.git'

May 13, 2008
7:43PM EDT

1
2
3
4
5
require 'johnson'

ruby_1_9_code = 'puts "fooooo"'
ctx = Johnson::Context.new
ctx.evaluate('Johnson.require("HotRuby")')

May 13, 2008
7:27PM EDT

1
2
3
4
5
 -------------------------------------------------------------------------------
Class / Object      Routine                Nature of exception           Effect
-------------------------------------------------------------------------------
ARRAYED_LIST        item @5                index_small_enough:          
<00000000B7A6CBEC>                         Runtime check violated.       Fail

Next page