My Recent Pastes (173350 and counting)

All Pasties (173,219 and counting)

Pages: 1 2 3 4 ... 6934

Below are summaries of the most recent pasties.

July 06, 2008
12:29PM EDT

1
2
3
4
5
dirkjan@mrkrabs ~/Documents/projects/rubinius/vm $ rake
(in /Users/dirkjan/Documents/projects/rubinius/vm)
DEP llvm.cpp
CC llvm.cpp
llvm.cpp: In static member function ‘static void rubinius::VMLLVMMethod::init(const char*)’:

July 06, 2008
12:27PM EDT

1
2
3
4
5
var museo100 = { src: '/flash/museo100.swf' };
var museo300 = { src: '/flash/museo300.swf' };
var museo500 = { src: '/flash/museo500.swf' };
var museo700 = { src: '/flash/museo700.swf' };
var museo900 = { src: '/flash/museo900.swf' };

July 06, 2008
12:21PM EDT

1
2
3
4
5
require 'scrubyt'

class FooWorker < BackgrounDRb::MetaWorker
  set_worker_name :foo_worker
  #  reload_on_schedule true

July 06, 2008
12:19PM EDT

1
2
3
4
5
; ============== COMPUTER CHEATING - In long scenario games, a CP can run out of resources. This magically gives him more.  Delete if you don't like your AI to cheat.

(defrule
        (true)
=>

July 06, 2008
12:16PM EDT

1
11111

July 06, 2008
12:00PM EDT

1
2
3
4
5
t=32; n=[t]; u=[0]*t;
[[19, 6, proc {|v| n.push v+97 }, [[197, 92116], [817, 84115]], ], 
 [19, 4, proc {|v| n.push v+46 }, [[1, 57656]], ],
 [ 2, 8, proc {|v| u.unshift v }, [[0, 424]], ],
 [17, 5, proc {|v| print((n[v] - t * u.shift).chr)}, [

July 06, 2008
11:53AM EDT

1
2
3
RAILS_ROOT = /home/atom/html/testapp
require RAILS_ROOT + "/config/environment" 
Dependencies.load_file("application.rb")

July 06, 2008
11:42AM EDT

1
2
3
4
5
/usr/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/scraping/filters/text_filter.rb:25: warning: don't put space before argument parentheses
/usr/lib/ruby/gems/1.8/gems/scrubyt-0.3.4/lib/scrubyt/core/scraping/filters/text_filter.rb:25: warning: don't put space before argument parentheses
###### tag variable = rails
http://del.icio.us/tag/rails
30

July 06, 2008
11:33AM EDT

1
2
3
4
5
require 'scrubyt'

class DeliTagScrapingWorker < BackgrounDRb::MetaWorker
  set_worker_name :deli_tag_scraping_worker
  def create(args = nil)

July 06, 2008
11:31AM EDT

1
2
3
4
5
## the table container is a draggable instance. 

## doesn't work

<%= link_to_function "Fermer","close(event)" %>

July 06, 2008
11:22AM EDT

1
2
3
4
5
require 'metaid'

class I
  def shared
    self.class.metaclass.shared

July 06, 2008
11:21AM EDT

1
2
3
4
5
        <div id="navigation">
                <ul>
                        <li id="chat" class="front">Chat</li>
                        <li id="private" class="back">Private</li>
                        <li id="files" class="back">Files</li>

July 06, 2008
11:18AM EDT

1
2
3
4
5
<?php

echo '
{"records":
    [ {"name": "Jobs",

July 06, 2008
11:13AM EDT

1
2
3
4
5
$ gcc -v
Using built-in specs.
Target: powerpc-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --disable-softfloat --enable-secureplt --enable-targets=powerpc-linux,powerpc64-linux --with-cpu=default32 --with-long-double-128 --enable-checking=release --build=powerpc-linux-gnu --host=powerpc-linux-gnu --target=powerpc-linux-gnu
Thread model: posix

July 06, 2008
11:06AM EDT

1
2
3
4
5
/**
 * copy character stream with given buffer size
 */
static void copy( Reader from, Writer to, int bufferSize ) throws IOException {
  char[] buffer = new char[ bufferSize ];

July 06, 2008
11:02AM EDT

1
2
3
4
5
/**
 * recursive directory deletion
 */
static void deleteDirectory( File dir ) {
  File[] files = dir.listFiles();

July 06, 2008
10:56AM EDT

1
2
3
4
5
require 'scrubyt'

class DeliTagScrapingWorker < BackgrounDRb::MetaWorker
  set_worker_name :deli_tag_scraping_worker
  def create(args = nil)

July 06, 2008
10:56AM EDT

1
2
3
4
5
<?php

class Rejestracja extends Controller {

        function Rejestracja()

July 06, 2008
10:45AM EDT

1
2
linuxmce@dcerouter:/usr/src/linux-headers-2.6.22-14-generic/drivers/usb$ ls serial/
ezusb_convert.pl  Kconfig  Makefile  Makefile-keyspan_pda_fw

July 06, 2008
10:44AM EDT

1
2
3
4
5
2008-Jul-06 09:44:01:456 - ERROR [pool-1-thread-6]: Unable to process com.electr
otank.eup.messaging.transactions.createcharacter.CreateCharacterRequest@174f6ce
for test10. ExceptionExecutingTransaction
org.hibernate.PropertyValueException: not-null property references a null or tra
nsient value: com.electrotank.eup.entity.PlayerCharacter.characterType

July 06, 2008
10:43AM EDT

1
2
3
4
5
class DeliTagScrapingWorker < BackgrounDRb::MetaWorker

        require 'scrubyt'

  set_worker_name :deli_tag_scraping_worker

July 06, 2008
10:43AM EDT

1
2
3
4
<gnufied> look ruby Net::* libs on which tools like scrubyt are built aren't very reliable. So, you must always rescue whenever you are doing content scrapping with them.
<gnufied> you should be ready to handle Timeout::Error and other all sort of exceptions
* christian2 (n=christia@6-162.vpn.RWTH-Aachen.DE) has joined #backgroundrb
<gnufied> begin; scrap_the_damn_page(); rescue Timeout::Error; puts "Boy, i am bored!"; rescue; puts "Boy, that was weird!"; end

July 06, 2008
10:30AM EDT

1
2
3
4
5
@interface ServersController : NSObject {
        @private
        NSString *list = @"Norman, Stanley, Fletcher";
        NSArray *listItems = [list componentsSeparatedByString:@", "];
}

July 06, 2008
10:15AM EDT

1
2
3
4
5
application.rb

  before_filter :auth
  
  helper_method :current_user

July 06, 2008
9:48AM EDT

1
2
3
4
5
    UIButton* infoButton = [UIButton buttonWithType:UIButtonTypeInfoLight];
    [infoButton addTarget:self action:@selector(infoButtonAction:) forControlEvents:UIControlEventTouchUpInside];
    UIBarButtonItem *modalButton = [[UIBarButtonItem alloc] initWithCustomView:infoButton];
    [infoButton release];
    [self.navigationItem setLeftBarButtonItem:modalButton animated:YES];

Next page

Previous page