This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'dm-core' | |
class Foo | |
include DataMapper::Resource | |
property :is_admin, Boolean, :default => false, :key => true | |
end | |
f = Foo.new |
This file contains hidden or 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
#!/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 |
This file contains hidden or 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 Resource | |
def save_attributes(attrs = {}) | |
begin | |
update attrs | |
rescue DataMapper::UpdateConflictError | |
self.attributes = attrs | |
save | |
end | |
end |
This file contains hidden or 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
(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 ?? () |
This file contains hidden or 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
$ 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 === |
This file contains hidden or 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
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' |
This file contains hidden or 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
// 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(); |
This file contains hidden or 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
*** 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] |
This file contains hidden or 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
# 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 |
This file contains hidden or 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
<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> |