My Recent Pastes (264510 and counting)

All Pasties (over 264,510 and counting)

Pages: 1 8018 8020 8022 13226

Below are summaries of the most recent pasties.

December 13, 2007
11:06AM EDT

1
2
3
4
5
paine# autoconf
paine# ./configure --with-lang=en
checking for php... /usr/local/bin/php
checking php version... PHP 5.2.3 with Suhosin-Patch 0.9.6.2 (cli) (built: Jun 16 2007 23:34:48) 
Copyright (c) 1997-2007 The PHP Group

December 13, 2007
11:06AM EDT

1
yo

December 13, 2007
11:05AM EDT

1
2
3
4
5
class CreateStations < ActiveRecord::Migration
  def self.up
    create_table :stations do |t|
      t.column :name,           :string,    :null => false
      t.column :web_url,        :string,    :null => false

December 13, 2007
11:05AM EDT

1
2
3
4
5
/Users/debug/foobar

ll
total 24K
drwxr-xr-x 2 debug debug 4.0K 2007-12-13 16:52 components/

December 13, 2007
10:57AM EDT

1
2
3
./bin/backbite tl set
foobar is not a valid repository.
lib/ruby/1.8/pathname.rb:958:in `open': No such file or directory - /Depot/j/backbite-d9822382fe7f/skel/components (Errno::ENOENT)

December 13, 2007
10:56AM EDT

1
2
3
4
5
./bin/backbite tl set
there's no default tumblog
./bin/backbite:122: undefined method `repository' for nil:NilClass (NoMethodError)
        from ./lib/backbite/arguments.rb:48:in `call'
        from ./lib/backbite/arguments.rb:48:in `parse'

December 13, 2007
10:53AM EDT

1
2
3
4
5
def paginate(page=1, page_size=3, find_options={})
  page=1 if page.nil?
  page_size=10 if page_size.nil?
  r = find(:all, find_options.update({:page => {:current => page, :size => page_size}}))
  [r[2],r[0],r[1]]

December 13, 2007
10:48AM EDT

1
2
3
4
5
gem install Backbite-0.2.3.0.gem
ERROR:  could not find Backbite-0.2.3.0.gem locally or in a repository

stat Backbite-0.2.3.0.gem
  File: `Backbite-0.2.3.0.gem'

December 13, 2007
10:46AM EDT

1
2
3
4
5
require 'socket'
  
  server = TCPServer.new('', 25000)
  server1 = TCPServer.new('', 26000)
  connections = []

December 13, 2007
10:33AM EDT

1
2
3
4
5
(?P<name>...)
    Similar to regular parentheses, but the substring matched by the group is accessible via the symbolic group name name. Group names must be valid Python identifiers, and each group name must be defined only once within a regular expression. A symbolic group is also a numbered group, just as if the group were not named. So the group named 'id' in the example above can also be referenced as the numbered group 1.

    For example, if the pattern is (?P<id>[a-zA-Z_]\w*), the group can be referenced by its name in arguments to methods of match objects, such as m.group('id') or m.end('id'), and also by name in pattern text (for example, (?P=id)) and replacement text (such as \g<id>).

December 13, 2007
10:30AM EDT

1
2
3
4
5
gem install hpricot
Building native extensions.  This could take a while...
Successfully installed hpricot-0.6
1 gem installed
Installing ri documentation for hpricot-0.6...

December 13, 2007
10:02AM EDT

1
2
3
4
5
require "rubygems"
require "eventmachine"

module Client
  def receive_data data

December 13, 2007
9:54AM EDT

1
2
3
4
5
# Filters added to this controller apply to all controllers in the application.
# Likewise, all the methods added will be available for all controllers.

class ApplicationController < ActionController::Base
  # AuthenticatedSystem must be included for RoleRequirement, and is provided by installing acts_as_authenticates and running 'script/generate authenticated account user'.

December 13, 2007
9:50AM EDT

1
2
3
4
5
require 'socket'
server = TCPServer.new('192.168.24.10', 25000)
while (session = server.accept)
  request = session.gets
  puts request

December 13, 2007
9:44AM EDT

1
2
3
4
5
The Form:

<% form_tag :controller => 'protocols', :action => 'pdf' do -%> 
<table>
<tr><td class="label">Neue Token-Nr:</td><td><%= text_field_tag :new_token, :size => 10, :maxlength => 10, :class => 'text_field' %></td></tr>

December 13, 2007
9:39AM EDT

1
2
3
4
5
class Object
  private
  def method_name
    p caller.first.match(/in `(.+?)'/)[1]
  end

December 13, 2007
9:38AM EDT

1
2
3
4
5
# API proposal: prepared statements in Sequel
#
# Use _ as placeholder for parameters. If you're in an IRB session, you can use
# __ instead.
#

December 13, 2007
9:33AM EDT
by headius

1
2
3
4
5
Index: src/org/jruby/evaluator/ASTInterpreter.java
===================================================================
--- src/org/jruby/evaluator/ASTInterpreter.java (revision 5244)
+++ src/org/jruby/evaluator/ASTInterpreter.java (working copy)
@@ -1427,7 +1427,9 @@

December 13, 2007
9:29AM EDT

1
2
3
4
5
<h1>Create a New Page</h1>

<%= error_messages_for :page %>

<%= render :partial => 'form_page' %>

December 13, 2007
9:19AM EDT

1
2
3
4
5
mysql> use servicedes_production
ERROR 1049 (42000): Unknown database 'servicedes_production'
mysql> use servicedesk_production
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Next page

Previous page