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
NameVirtualHost 127.0.0.1:80 | |
NameVirtualHost 10.0.0.1:80 | |
<VirtualHost 127.0.0.1:80> | |
DocumentRoot /Users/robaldred/Sites/app/public | |
RewriteEngine On | |
ServerName app | |
RailsEnv development | |
</VirtualHost> |
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 'spec/expectations' | |
require 'rack/test' | |
require 'webrat' | |
require 'ruby-debug' | |
Webrat.configure do |config| | |
config.mode = :selenium | |
#optional: | |
config.application_port = 4555 # defaults to 3001. Avoid Selenium's default port, 4444 | |
config.application_framework = :sinatra # could also be :merb. Defaults to :rails |
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
class MyJob < ActiveRecord::Base | |
def bulk_task | |
start() | |
task_work() | |
@log.info("Errors missing: #{errors.inspect}") | |
finish() | |
end | |
private |
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
response = { | |
:avs_result => { | |
:street_match' => 'Y', | |
:postal_match' => 'Y' | |
}, | |
:cvv_result => 'Y' | |
} |
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
def update_attributes_with_seed_products(params) | |
return false if params.empty? | |
if params[:seed_all_products] || params[:seed_selected_products] | |
return seed_products(params) | |
end | |
update_attributes_without_seed_products(params) | |
end | |
def update_with_params(params) | |
return false if params.empty? |
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
package AuthControl::auth_control; | |
#use FindBin; | |
#use lib $FindBin::Bin . '/../../../cgi-bin'; | |
use Data::Dumper; | |
use strict; | |
use Digest::MD5 qw(md5 md5_hex md5_base64); | |
# ::logGlobal("Loaded AuthControl Library"); |
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
class Foo | |
class << self | |
private | |
def bar | |
end | |
end | |
end | |
class Foo |
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
--- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | |
+++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | |
@@ -187,7 +187,7 @@ module ActiveRecord | |
# Drops a table from the database. | |
def drop_table(table_name, options = {}) | |
- execute "DROP TABLE #{quote_table_name(table_name)}" | |
+ execute "DROP#{' TEMPORARY' if options[:temporary]} TABLE #{quote_table_name(table_name)}" | |
end | |
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
> _xmpp-server._tcp.setfiremedia.com | |
Server: 192.168.3.10 | |
Address: 192.168.3.10#53 | |
Non-authoritative answer: | |
_xmpp-server._tcp.setfiremedia.com service = 20 0 5269 xmpp-server4.l.google.com. | |
_xmpp-server._tcp.setfiremedia.com service = 5 0 5269 xmpp-server.l.google.com. | |
_xmpp-server._tcp.setfiremedia.com service = 20 0 5269 xmpp-server1.l.google.com. | |
_xmpp-server._tcp.setfiremedia.com service = 20 0 5269 xmpp-server2.l.google.com. | |
_xmpp-server._tcp.setfiremedia.com service = 20 0 5269 xmpp-server3.l.google.com. |
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
ignoring attempt to close link with head | |
opened at byte 162, line 7 | |
closed at byte 1220, line 24 | |
attributes at open: {"href"=>"/stylesheets/print.css?1237826131", "rel"=>"stylesheet", "type"=>"text/css", "media"=>"print"} | |
text around open: "ype=\"text/css\">\n <link href=\"/stylesh" | |
text around close: "]]>\n </script>\n </head><body class=\"" |