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
var MyQuickie = {}; | |
MyQuickie.defaultAttrs = { | |
controller: 'false', | |
autoplay: 'true', | |
loop: 'true', | |
enablejavascript: 'false' | |
}; | |
MyQuickie.getContainerAttributes = function(container) { |
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
link_to 'Logout', session_path, :method => :delete | |
<a href="/session" data-method="delete" data-url "/session" rel="nofollow">Logoout</a> | |
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
http://ipindex.homelinux.net/index.php?action=show_class | |
Asia Pacific | |
------------ | |
58.0.0.0/7 | |
58.0.0.0 | |
59.255.255.255 | |
60.0.0.0/6 | |
60.0.0.0 |
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
Clone rails. | |
$ cd ~/repos | |
$ git clone [email protected]:rails/rails.git | |
Clone the SQL Server adapter. | |
$ cd ~/repos | |
$ git clone [email protected]:rails-sqlserver/2000-2005-adapter.git sqlserver_adapter |
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
# First requst to homepage. | |
70.169.150.166 - - [07/Mar/2010:17:52:52 -0500] "GET / HTTP/1.1" 200 7792 "-" "Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_1_3 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7E18 Safari/528.16" | |
70.169.150.166 - - [07/Mar/2010:17:52:53 -0500] "GET /stylesheets/my.css HTTP/1.1" 200 3750 "http://metaskills.net/" "Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_1_3 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7E18 Safari/528.16" | |
70.169.150.166 - - [07/Mar/2010:17:52:53 -0500] "GET /lytebox/lytebox.css HTTP/1.1" 200 1268 "http://metaskills.net/" "Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_1_3 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7E18 Safari/528.16" | |
70.169.150.166 - - [07/Mar/2010:17:52:53 -0500] "GET /stylesheets/meta_pagestructure.css HTTP/1.1" 200 2280 "http://metaskills.net/" "Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_1_3 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version |
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
--- sqlserver_adapter.rb 2010-02-26 12:30:50.000000000 -0500 | |
+++ sqlserver_adapter_new.rb 2010-02-26 12:44:51.000000000 -0500 | |
@@ -410,7 +410,12 @@ | |
vars = variables.map{ |v| quote(v) }.join(', ') | |
sql = "EXEC #{proc_name} #{vars}".strip | |
select(sql,'Execute Procedure',true).inject([]) do |results,row| | |
- results << row.with_indifferent_access | |
+ if row.kind_of?(Array) | |
+ #we have a result set here, not a row | |
+ results << row.inject([]) { |rs,r| rs << r.with_indifferent_access } |
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
>> o = ArObject.first; o.fooed_at = Time.now; o.save ; o.reload.downtime | |
=> Tue, 30 Mar 2010 20:07:40 EDT -04:00 | |
>> o = ArObject.first; o[:fooed_at] = Time.now; o.save ; o.reload.downtime | |
=> Tue, 30 Mar 2010 16:07:41 EDT -04:00 |
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
p = "<html>\n<head>\n<title>Foo</title>\n</head>\n<body>\n<div></div>\n<div></div>\n</body>\n</html>" | |
Harmony::Page.new(p) | |
ArgumentError: wrong number of arguments (0 for 1) | |
from /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/envjs-0.3.1/lib/envjs/runtime.rb:325:in `load' | |
from /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/envjs-0.3.1/lib/envjs/runtime.rb:325:in `extended' | |
from /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/envjs-0.3.1/lib/envjs/runtime.rb:11:in `instance_eval' | |
from /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/envjs-0.3.1/lib/envjs/runtime.rb:11:in `extended' | |
from /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/harmony-0.5.5/lib/harmony/page.rb:22:in `extend' | |
from /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/harmony-0.5.5/lib/harmony/page.rb:22 | |
from (irb):11 |
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
var DecisivZipcodeInput = Class.create({ | |
initialize: function(input) { | |
this.input = input; | |
this.fivePattern = /^\d{5}$/; | |
this.fiveFourPattern = /^\d{5}-\d{4}$/; | |
this.maxLength = 10; | |
this.message = "Zipcode must be a 5-digit number with an optional 4-digit suffix seperated by a hyphen."; | |
this.input.writeAttribute('maxlength',this.maxlength); | |
this._initEvents(); |
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
Latest SQL Server Adapter Failures Using IronRuby ADONET Mode. | |
2005 tests, 6674 assertions, 11 failures, 9 errors | |
1) Error: | |
test_marshalling_extensions(AssociationsExtensionsTest): | |
ArgumentError: undefined class/module DeveloperProjectsAssociationExtensioo | |
IronRuby.Libraries:0:in `ReadClassOrModule' | |
IronRuby.Libraries:0:in `ReadExtended' |