My Recent Pastes (238123 and counting)
All Pasties (over 238,123 and counting)
Pages: 1 … 6075 6076 6077 6078 6079 … 11907
Below are summaries of the most recent pasties.
January 30, 2008
8:17PM EDT
by James Tucker
View more (73 lines)
1 2 3 4 5 |
require 'irb' # mercilessly borrowed from: http://errtheblog.com/posts/9-drop-to-irb # # I've cleaned up a few things and moved some stuff around, not tested at all of course. |
January 30, 2008
8:11PM EDT
View more (8 lines)
1 2 3 4 5 |
<% remote_form_for :message, :url => user_messages_path, :html => { :method => :post, :style => "display: inline" }, :update => 'button_response', :loading => "Element.show('spinner')", |
January 30, 2008
8:10PM EDT
by halorgium
View more (23 lines)
1 2 3 4 5 |
rule ipv4_address
octet "." octet "." octet "." octet {
def value
IPAddr.new(text_value)
end
|
January 30, 2008
8:08PM EDT
View more (9 lines)
1 2 3 4 5 |
#Emailing from this user def send_email(recipients, subject, body) if self.facebook_install.infinite_session_key self.facebook_install.establish_infinite_session! FacebookEmailPublisher.mass_message(self.user, self.campaign, recipients.map(&:facebookid), subject, body, self.facebook_app.attributes) |
January 30, 2008
8:02PM EDT
View more (18 lines)
1 2 3 4 5 |
echo "1 minuto para empezar.......<br/>";
sleep(60);
$query = mysql_query("SELECT * FROM Cities");
|
January 30, 2008
7:57PM EDT
View more (23 lines)
1 2 3 4 5 |
# suggestee_id # suggestor_id # suggested_id # suggested_type |
January 30, 2008
7:57PM EDT
View more (14 lines)
1 2 3 4 5 |
<<>> DiG 9.4.1-P1 <<>> @127.0.0.1 test.localhost ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 60570 |
January 30, 2008
7:53PM EDT
View more (45 lines)
1 2 3 4 5 |
Core was generated by `./freeswitch'. Program terminated with signal 11, Segmentation fault. #0 0x008c5c53 in strlen () from /lib/i686/nosegneg/libc.so.6 (gdb) bt #0 0x008c5c53 in strlen () from /lib/i686/nosegneg/libc.so.6 |
January 30, 2008
7:52PM EDT
View more (162 lines)
1 2 3 4 5 |
/** * Programming Assignment #1 (MEANS) * Anthony Yates * For CSCE 1040 (Spring 2008) */ |
January 30, 2008
7:51PM EDT
View more (30 lines)
1 2 3 4 5 |
test=# create table foo (a int, b int, c int); CREATE TABLE test=# create table foo_2004 (like foo) inherits(foo); NOTICE: merging column "a" with inherited definition NOTICE: merging column "b" with inherited definition |
January 30, 2008
7:51PM EDT
View more (20 lines)
1 2 3 4 5 |
require File.join(File.dirname(__FILE__), '..', 'spec_helper.rb') describe "Users Controller", "autneticate action via REST" do before(:each) do opts = fake_request(:post_body => { |
January 30, 2008
7:45PM EDT
View more (232 lines)
1 2 3 4 5 |
#!/usr/bin/env ruby # (c) 2007 camico A7 users.sourceforge.net # License: GNU General Public License V2 |
January 30, 2008
7:44PM EDT
View more (26 lines)
1 2 3 4 5 |
def globalObjectThread @globalObjectThread = Thread.new() { Thread.exit } end |
January 30, 2008
7:43PM EDT
View more (71 lines)
1 2 3 4 5 |
# WARNING - THIS IS PURELY EXPERIMENTAL AT THIS POINT # Courtesy of Brian Takita and Yurii Rashkovskii $:.unshift File.join(File.dirname(__FILE__), *%w[.. .. .. .. rspec lib]) if defined?(ActiveRecord::Base) |
January 30, 2008
7:42PM EDT
View more (17 lines)
1 2 3 4 5 |
def weird_sum(l, storage) the_start = 0; the_end = l.length-1; n_l = [] the_start.upto(the_end) do |n| forward_end = n-1; forward_record = n; reverse_end = ((n - the_end) * -1) + 1;reverse_record = reverse_end - 1 storage[(the_start..forward_record)] = (storage[(the_start..forward_end)] ||= 1) * l[forward_record] |
January 30, 2008
7:41PM EDT
View more (9 lines)
1 2 3 4 5 |
_\m/ ub | piston update vendor/plugins/test_assertions/ Skipping 'vendor/plugins/test_assertions/': pending updates -- run "svn update vendor/plugins/test_assertions/" A 0 vendor/plugins/test_assertions/test A 0 vendor/plugins/test_assertions/test/test_assertions_test.rb A 0 vendor/plugins/test_assertions/Rakefile |
January 30, 2008
7:41PM EDT
View more (159 lines)
1 2 3 4 5 |
/** * Programming Assignment #1 (MEANS) * Anthony Yates * For CSCE 1040 (Spring 2008) */ |
January 30, 2008
7:40PM EDT
View more (19 lines)
1 2 3 4 5 |
_\m/ test_assertions | piston up . /opt/local/lib/ruby/gems/1.8/gems/piston-1.3.3/lib/piston/commands/update.rb:37:in `update': Unable to parse status (RuntimeError) A 0 . A 0 test A 0 test/test_assertions_test.rb |
January 30, 2008
7:38PM EDT
View more (110 lines)
1 2 3 4 5 |
=INFO REPORT==== 30-Jan-2008::19:19:26 ===
I(<0.38.0>:ejabberd_rdbms:37) : ejabberd has not been compiled with relational database support. Skipping database startup.
(ejabberd@localhost)1>
=PROGRESS REPORT==== 30-Jan-2008::19:19:26 ===
supervisor: {local,ejabberd_sup}
|
January 30, 2008
7:35PM EDT
View more (158 lines)
1 2 3 4 5 |
(ejabberd@localhost)1> mysql:502: failed starting first MySQL connection handler, exiting (ejabberd@localhost)1> =CRASH REPORT==== 30-Jan-2008::19:19:31 === crasher: |
Pastie