My Recent Pastes (245364 and counting)

All Pasties (over 245,364 and counting)

Pages: 1 6922 6924 6926 12269

Below are summaries of the most recent pasties.

December 26, 2007
12:54PM EDT

1
2
3
4
5
<?php
class parse {

        private $words = array();
        

December 26, 2007
12:48PM EDT

1
#42S02Table 'goalhub_development.taggings' doesn't exist: SELECT tags.id, tags.name, COUNT(*) AS count FROM tags  INNER JOIN taggings ON tags.id = taggings.tag_id INNER JOIN goals ON goals.id = taggings.taggable_id WHERE (taggings.taggable_type = 'Goal')  GROUP BY tags.id, tags.name HAVING COUNT(*) > 0 

December 26, 2007
12:38PM EDT

1
2
  map.resources :messages,
                           :collection => {:received => :get, :sent => :get, :respond => :get}

December 26, 2007
12:38PM EDT

1
2
  map.resources :messages,
                           :collection => {:received => :get, :sent => :get, :respond => :get}

December 26, 2007
12:35PM EDT

1
2
3
4
5
##View
<%= link_to_remote "Read", {:url => message} %>
##Generated JS by the helper [javascript]
<a href="#" onclick="new Ajax.Request('/messages/2', {asynchronous:true, evalScripts:true, parameters:'authenticity_token=' + encodeURIComponent('f588bd4b38049ad5b52b39b2c2738a75676749aa')}); return false;">Read</a></p>
<div id="message_2">

December 26, 2007
12:25PM EDT

1
2
3
4
5
server {
listen 80;
client_max_body_size 50M;
server_name blog.mydomain.com;  #this is your name of the domain you want to respond
access_log  /var/log/nginx.vhost.access.log  main;

December 26, 2007
12:24PM EDT

1
2
3
4
5
fastcgi_param  QUERY_STRING       $query_string;
fastcgi_param  REQUEST_METHOD     $request_method;
fastcgi_param  CONTENT_TYPE       $content_type;
fastcgi_param  CONTENT_LENGTH     $content_length;
fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;

December 26, 2007
12:07PM EDT

1
2
3
4
5
11:49:32 <mrshlee> Hey, quick question regarding ripping
11:49:44 <keseldude> regarding ripping...
11:49:45 <keseldude> ok
11:50:20 <mrshlee> I have atleast 300+ albums not included in the what.cd collective
11:50:36 <keseldude> awesome

December 26, 2007
12:02PM EDT

1
2
3
4
5
using terms from application "Colloquy"
        on process user command c with arguments for view
                if c is "safari" then
                        if arguments is "" then
                                tell view to send message my get_current_link()

December 26, 2007
12:00PM EDT

1
2
3
4
5
2007-12-26T16:54:50 [exception]: Message: ":ChanServ!ChanServ@services. MODE #ebbsfleet -o bakert " User bakert is not listed in #ebbsfleet (ArgumentError)
--> /usr/local/lib/ruby/gems/1.8/gems/butler-1.8.3/lib/butler/irc/user.rb:194:in `delete_flags'
--> /usr/local/lib/ruby/gems/1.8/gems/butler-1.8.3/lib/butler/irc/parser/rfc2812.rb:81:in `load'
--> /usr/local/lib/ruby/gems/1.8/gems/butler-1.8.3/lib/butler/irc/parser/rfc2812.rb:71:in `each'
--> /usr/local/lib/ruby/gems/1.8/gems/butler-1.8.3/lib/butler/irc/parser/rfc2812.rb:71:in `load'

December 26, 2007
11:58AM EDT

1
2
3
4
5
##Koden med fel:
$user_q = mysql_query("SELECT * FROM poker WHERE ip = '" . $_SERVER['REMOTE_ADDR'] . "';")
        or die(mysql_error());
if (mysql_num_rows($user_q) < 1) {
        mysql_query("INSERT INTO poker VALUES (NULL, '" . $_SERVER["REMOTE_ADDR"] . "', 1000, NULL")

December 26, 2007
11:38AM EDT

1
2
3
4
5
#Twisted Shootout
#Copyright (C) 2007  Han Dao
#
#This program is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by

December 26, 2007
11:29AM EDT

1
2
3
4
5
Processing CategoriesController#show (for 76.18.34.235 at 2007-12-26 07:12:52) [GET]
  Session ID: BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo%0ASGFzaHsABjoKQHVzZWR7AA%3D%3D--7064ae310934b514dc66e391e402d5d5d99642ef
  Parameters: {"action"=>"show", "id"=>"columnas-de-especialistas-2", "controller"=>"categories"}
Rendering template within layouts/application
Rendering categories/show

December 26, 2007
11:11AM EDT

1
2
3
4
5
#Twisted Shootout
#Copyright (C) 2007  Han Dao
#
#This program is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by

December 26, 2007
10:57AM EDT

1
2
3
4
5
20 Dell 1955 Blades; 16G ram; 70GB SAS 10K drive (one) on which ESX 3.0 is hosted (or a variety of Xen flavors); four gigabit ethernet controllers per blade; CISCO 4948 48 port switch, with 4 ethernets per blade bonded; CISCO 6504e core with Sup-32; Net App 3020 and 3050 for NFS and iSCSI; some EMC Clarion units, likewise.

For CPU we used SPEC CPU 2006 and score about 5-6ish % on VMWare as the same test done on those blades in hard metal. Xen is undiscernably different to the subjective eye than hard metal. I would have to break out large batch testing methodology and run the results through inferential statistics to conclude that there was a difference at all.

I/O is a different story.

December 26, 2007
10:56AM EDT

1
  SERVICES = []

December 26, 2007
10:52AM EDT

1
2
3
4
5
Delayed::Job
============

Delated_job encapsulates the common pattern of asynchronously executing longer tasks in the background. 

December 26, 2007
10:37AM EDT

1
2
3
4
5
  def auto_complete_for_entity_display_name
    like = '%' + params[:entity][:display_name].downcase + '%'

    if entity_id = params[:entity_id] and entity_type = params[:entity_type]
      conditions = ['id != ? AND entity_type = ? AND LOWER(display_name) LIKE ?',

December 26, 2007
10:35AM EDT

1
2
3
4
5
#!/opt/local/bin/ruby

%w{rubygems id3lib}.each {|lib| require lib}
require '/opt/local/lib/ruby/gems/1.8/gems/MP4Info-0.3.1/lib/mp4info'

December 26, 2007
10:11AM 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>

Next page

Previous page