This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/opt/local/lib/ruby/gems/1.8/gems/dm-validations-0.9.3/lib/dm-validations/numeric_validator.rb:17:in `send': undefined method `product_id' for #<Shirt:0x25d9628> (NoMethodError) | |
from /opt/local/lib/ruby/gems/1.8/gems/dm-validations-0.9.3/lib/dm-validations/numeric_validator.rb:17:in `call' | |
from /opt/local/lib/ruby/gems/1.8/gems/dm-validations-0.9.3/lib/dm-validations/contextual_validators.rb:48:in `execute' | |
from /opt/local/lib/ruby/gems/1.8/gems/dm-validations-0.9.3/lib/dm-validations/contextual_validators.rb:46:in `each' | |
from /opt/local/lib/ruby/gems/1.8/gems/dm-validations-0.9.3/lib/dm-validations/contextual_validators.rb:46:in `execute' | |
from /opt/local/lib/ruby/gems/1.8/gems/dm-validations-0.9.3/lib/dm-validations.rb:87:in `hookable__valid_ques_before_advised' | |
from /opt/local/lib/ruby/gems/1.8/gems/extlib-0.9.3/lib/extlib/hook.rb:294:in `valid?' | |
from /opt/local/lib/ruby/gems/1.8/gems/extlib-0.9.3/lib/extlib/hook.rb:292:in `catch' | |
from /opt/local/lib/ruby/gems/1.8/gems/extlib-0.9.3/lib/extli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "openssl" | |
require "net/smtp" | |
require "openssl" | |
require "net/smtp" | |
Net::SMTP.class_eval do | |
private | |
def do_start(helodomain, user, secret, authtype) | |
raise IOError, 'SMTP session already started' if @started |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This version works | |
$('#account_info_form').submit(function() { | |
$.facebox(function() { | |
$("#account_info_form").ajaxSubmit(function(respText, statusText) { | |
$.facebox((statusText == "success")?"Account Information successfully update": | |
"Failed to update Account Information."); | |
}) | |
}); | |
return false; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/opt/local/lib/ruby/gems/1.8/gems/randexp-0.1.1/lib/core_ext/array.rb:3:in `rand': wrong number of arguments (1 for 0) (ArgumentError) | |
from /opt/local/lib/ruby/gems/1.8/gems/randexp-0.1.1/lib/core_ext/array.rb:3:in `pick' | |
from /opt/local/lib/ruby/gems/1.8/gems/dm-fauxtures-0.0.4/lib/dm-fauxtures/fauxturator.rb:26:in `attributes' | |
from /opt/local/lib/ruby/gems/1.8/gems/dm-fauxtures-0.0.4/lib/dm-fauxtures/fauxturator.rb:15:in `create' | |
from /opt/local/lib/ruby/gems/1.8/gems/dm-fauxtures-0.0.4/lib/dm-fauxtures/model.rb:11:in `gen' | |
from /Users/williamsmith/code/sites/desired-hearts/script/populate_db.rb:28 | |
from /opt/local/lib/ruby/gems/1.8/gems/randexp-0.1.1/lib/core_ext/integer.rb:3:in `of' | |
from /opt/local/lib/ruby/gems/1.8/gems/randexp-0.1.1/lib/core_ext/integer.rb:3:in `map' | |
from /opt/local/lib/ruby/gems/1.8/gems/randexp-0.1.1/lib/core_ext/integer.rb:3:in `of' | |
... 13 levels... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "populate_db.py", line 30, in <module> | |
supplier.save() | |
File "/Library/Python/2.5/site-packages/django/db/models/base.py", line 274, in save | |
self.save_base() | |
File "/Library/Python/2.5/site-packages/django/db/models/base.py", line 342, in save_base | |
result = manager._insert(values, return_id=update_pk) | |
File "/Library/Python/2.5/site-packages/django/db/models/manager.py", line 127, in _insert | |
return insert_query(self.model, values, **kwargs) | |
File "/Library/Python/2.5/site-packages/django/db/models/query.py", line 870, in insert_query |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/opt/local/lib/ruby/gems/1.8/gems/twitter-0.3.4/lib/twitter/user.rb:15:in `new_from_xml': undefined method `innerHTML' for nil:NilClass (NoMethodError) | |
from /opt/local/lib/ruby/gems/1.8/gems/twitter-0.3.4/lib/twitter/status.rb:18:in `new_from_xml' | |
from /opt/local/lib/ruby/gems/1.8/gems/twitter-0.3.4/lib/twitter/base.rb:185:in `statuses' | |
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/inflector.rb:283:in `inject' | |
from /opt/local/lib/ruby/gems/1.8/gems/twitter-0.3.4/lib/twitter/base.rb:185:in `each' | |
from /opt/local/lib/ruby/gems/1.8/gems/twitter-0.3.4/lib/twitter/base.rb:185:in `inject' | |
from /opt/local/lib/ruby/gems/1.8/gems/twitter-0.3.4/lib/twitter/base.rb:185:in `statuses' | |
from /opt/local/lib/ruby/gems/1.8/gems/twitter-0.3.4/lib/twitter/base.rb:23:in `timeline' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Michael Phelps is a 7-foot man mountain who can palm a medicine ball. | |
Michael Phelps swam the Atlantic Ocean…for fun. | |
There is no ‘ctrl’ button on Michael Phelps’ computer. Michael Phelps is always in control. | |
Michael Phelps once ate a whole cake before his friends could tell him there was a stripper in it. | |
While urinating, Michael Phelps is easily capable of welding titanium. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module DataMapper | |
module Is | |
module Commentable | |
def is_commentable | |
include DataMapper::Is::Commentable::InstanceMethods | |
has n, :comments, :child_key => [:object_id], :object_type => "#{self}" | |
end | |
module InstanceMethods | |
def build_comment(attrs = {}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module DataMapper | |
module Is | |
module Commentable | |
def is_commentable | |
include DataMapper::Is::Commentable::InstanceMethods | |
has n, :comments, :child_key => [:object_id], :object_type => "#{self}" | |
end | |
module InstanceMethods | |
def build_comment(attrs = {}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'twitter' | |
require 'randexp' | |
EMAIL = "" | |
PASSWORD = "" | |
while true do | |
begin |
OlderNewer