Skip to content

Instantly share code, notes, and snippets.

View xxx's full-sized avatar

Michael Dungan xxx

View GitHub Profile
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<style type="text/css">
p, li {
color: white;
font-family: 'Trebuchet MS', Arial;
}
</style>
<a id="top" name="top" style="color:#ffffff"></a>
<table border="0" cellpadding="0" cellspacing="0" class="zeroBorder" style="color:#ffffff;font-family:Garamond" width="100%">
<tbody>
# Logfile created on Fri May 21 23:10:06 +0000 2010 by /
[05/21/10 23:10:06 +0000 domU-12-31-38-00-48-82 (3882)] INFO : Dispatcher: passenger
[05/21/10 23:10:06 +0000 domU-12-31-38-00-48-82 (3882)] INFO : Application: Timber
[05/21/10 23:10:06 +0000 domU-12-31-38-00-48-82 (3882)] INFO : New Relic RPM Agent 2.12.0 Initialized: pid = 3882
[05/21/10 23:10:06 +0000 domU-12-31-38-00-48-82 (3882)] INFO : Agent Log found in /data/timber/releases/20100521230543/log/newrelic_agent.log
[05/21/10 23:10:21 +0000 domU-12-31-38-00-48-82 (3910)] INFO : Resolved collector.newrelic.com to 65.74.177.213
[05/21/10 23:10:43 +0000 domU-12-31-38-00-48-82 (3910)] ERROR : Terminating worker loop: NoMemoryError: failed to allocate memory
/data/timber/releases/20100521230543/vendor/plugins/newrelic_rpm/lib/new_relic/agent/agent.rb:633:in `invoke_remote'
/data/timber/releases/20100521230543/vendor/plugins/newrelic_rpm/lib/new_relic/agent/agent.rb:377:in `connect'
/data/timber/releases/20100521230543/vendor/plugins/newrelic_rpm/li
*** glibc detected *** Rails: /data/timber/current: double free or corruption (!prev): 0x0000000001839f20 ***
======= Backtrace: =========
/lib/libc.so.6[0x2ac554904aad]
/lib/libc.so.6(cfree+0x76)[0x2ac554906796]
/usr/lib64/libruby18.so.1.8[0x2ac553f2e031]
/usr/lib64/libruby18.so.1.8(ruby_xmalloc+0x7c)[0x2ac553f2e79c]
/usr/lib64/libruby18.so.1.8[0x2ac553f75887]
/usr/lib64/libruby18.so.1.8[0x2ac553f1073b]
/usr/lib64/libruby18.so.1.8[0x2ac553f159aa]
/usr/lib64/libruby18.so.1.8[0x2ac553f15cc1]
// there are problems with fadeIn and fadeOut becoming confused and
// thinking the end is partway through the fade.
jq.fn.stippleDisappear = function (speed) {
var self = jq(this);
if (typeof speed === 'undefined') {
speed = 'fast';
}
self.stop().fadeTo(speed, 0, function () {
self.hide();
Read error: #<NoMethodError: undefined method `call' for nil:NilClass>
/usr/lib/ruby/gems/1.8/gems/unicorn-0.97.0/lib/unicorn.rb:634:in `process_client'
/usr/lib/ruby/gems/1.8/gems/unicorn-0.97.0/lib/unicorn.rb:707:in `worker_loop'
/usr/lib/ruby/gems/1.8/gems/unicorn-0.97.0/lib/unicorn.rb:705:in `each'
/usr/lib/ruby/gems/1.8/gems/unicorn-0.97.0/lib/unicorn.rb:705:in `worker_loop'
/usr/lib/ruby/gems/1.8/gems/unicorn-0.97.0/lib/unicorn.rb:596:in `spawn_missing_workers'
/usr/lib/ruby/gems/1.8/gems/unicorn-0.97.0/lib/unicorn.rb:593:in `fork'
/usr/lib/ruby/gems/1.8/gems/unicorn-0.97.0/lib/unicorn.rb:593:in `spawn_missing_workers'
/usr/lib/ruby/gems/1.8/gems/unicorn-0.97.0/lib/unicorn.rb:589:in `each'
/usr/lib/ruby/gems/1.8/gems/unicorn-0.97.0/lib/unicorn.rb:589:in `spawn_missing_workers'
$ make test
python tools/test.py --mode=release
[00:00|% 0|+ 0|- 0]: release test-assert
[00:00|% 1|+ 1|- 0]: release test-buffered-file
[00:00|% 3|+ 2|- 0]: release test-byte-length
[00:00|% 4|+ 3|- 0]: release test-chdir
[00:00|% 6|+ 4|- 0]: release test-delayed-require
[00:00|% 7|+ 5|- 0]: release test-dns
=== release test-dns ===
(gdb) bt
#0 0x080c963f in node::Connection::ReadyStateGetter ()
#1 0x36597a1f in ?? ()
#2 0xbfbfcedc in ?? ()
#3 0xbfbfcef8 in ?? ()
#4 0xbfbfcf0c in ?? ()
#5 0x00000000 in ?? ()
#6 0xbfbfcf01 in ?? ()
#7 0x00000002 in ?? ()
#8 0x365979c1 in ?? ()
module DataMapper
module Resource
def save_attributes(attrs = {})
begin
update attrs
rescue DataMapper::UpdateConflictError
self.attributes = attrs
save
end
end
#!/usr/bin/env ruby
require 'dm-core'
require 'dm-validations'
class Foo
include DataMapper::Resource
property :id, Serial
property :age_check, Boolean # change this to String and the validation works as expected
#!/usr/bin/env ruby
require 'dm-core'
class Foo
include DataMapper::Resource
property :is_admin, Boolean, :default => false, :key => true
end
f = Foo.new