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
| def scrub(env) | |
| rack_input = env["rack.input"].read | |
| params = Rack::Utils.parse_query(rack_input, "&") | |
| raise params.inspect | |
| return false if params.has_key?("utf8") && params["utf8"] != "✓" | |
| return true | |
| ensure | |
| env["rack.input"].rewind | |
| 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
| {"------WebKitFormBoundaryLtQAVJj5Z8b0zeJx\r\nContent-Disposition: form-data; name"=>"\"utf8\"\r\n\r\n✓\r\n------WebKitFormBoundaryLtQAVJj5Z8b0zeJx\r\nContent-Disposition: form-data; name=\"_method\"\r\n\r\nput\r\n------WebKitFormBoundaryLtQAVJj5Z8b0zeJx\r\nContent-Disposition: form-data; name=\"authenticity_token\"\r\n\r\nzV/9 76byDeHMVCDhR5RcDs7Z6MhPpD/YxljneM9Kas=\r\n------WebKitFormBoundaryLtQAVJj5Z8b0zeJx\r\nContent-Disposition: form-data; name=\"product[name]\"\r\n\r\nHammer time\r\n------WebKitFormBoundaryLtQAVJj5Z8b0zeJx\r\nContent-Disposition: form-data; name=\"product[category_id]\"\r\n\r\n\r\n------WebKitFormBoundaryLtQAVJj5Z8b0zeJx\r\nContent-Disposition: form-data; name=\"product[brand_id]\"\r\n\r\n\r\n------WebKitFormBoundaryLtQAVJj5Z8b0zeJx\r\nContent-Disposition: form-data; name=\"product[cached_slug]\"\r\n\r\nhammer-time\r\n------WebKitFormBoundaryLtQAVJj5Z8b0zeJx\r\nContent-Disposition: form-data; name=\"product[image]\"; filename=\"\"\r\nContent-Type: application/octet-stream\r\n\r\n\r\n--- |
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
| *** Exception SignalException in Class (SIGABRT) (process 19033, thread #<Thread:0x000000017ea490>): | |
| from /usr/local/rvm/gems/ruby-1.9.2-p290@global/gems/passenger-3.0.8/lib/phusion_passenger/abstract_request_handler.rb:440:in `block in install_useful_signal_handlers' | |
| from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/uri/common.rb:778:in `call' | |
| from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/uri/common.rb:778:in `decode_www_form_component' | |
| from /var/www/gangaroo/shared/bundle/ruby/1.9.1/gems/rack-1.3.2/lib/rack/utils.rb:36:in `unescape' | |
| from /var/www/gangaroo/shared/bundle/ruby/1.9.1/gems/rack-1.3.2/lib/rack/utils.rb:71:in `block (2 levels) in parse_nested_query' | |
| from /var/www/gangaroo/shared/bundle/ruby/1.9.1/gems/rack-1.3.2/lib/rack/utils.rb:71:in `map' | |
| from /var/www/gangaroo/shared/bundle/ruby/1.9.1/gems/rack-1.3.2/lib/rack/utils.rb:71:in `block in parse_nested_query' | |
| from /var/www/gangaroo/shared/bundle/ruby/1.9.1/gems/rack- |
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
| [Mon Aug 15 17:18:43 2011] [error] [client 72.130.145.202] Premature end of script headers: users, referer: http://www.gangaroo.com/users/f0bf4c98 | |
| [ pid=3176 thr=140379928966928 file=ext/apache2/Hooks.cpp:822 time=2011-08-15 17:18:43.71 ]: The backend application (process 4062) did not send a valid HTTP response; instead, it sent nothing at all. It is possible that it has crashed; please check whether there are crashing bugs in this application. | |
| [ pid=4062 thr=11309640 file=utils.rb:176 time=2011-08-15 17:18:43.071 ]: *** Exception PGError in application (server closed the connection unexpectedly | |
| This probably means the server terminated abnormally | |
| before or while processing the request. | |
| ) (process 4062, thread #<Thread:0x00000001592490>): | |
| from /var/www/gangaroo/shared/bundle/ruby/1.9.1/gems/activerecord-3.1.0.rc4/lib/active_record/connection_adapters/postgresql_adapter.rb:272:in `exec' | |
| from /var/www/gangaroo/shared/bundle/ruby/1.9.1/gems/activerecord-3.1.0.rc4/lib/active_recor |
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
| def summary_string(language_type) | |
| incident_type_name = self.translated(:incident_type, language_type, self.incident_type) | |
| if self.event_participant.participant | |
| event_participant_name = self.translated(:participant, language_type, self.event_participant.participant) | |
| 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
| tell application "iCal" | |
| activate | |
| repeat with aWindow in (get every window) | |
| if aWindow is visible then | |
| set index of aWindow to 1 | |
| tell application "SizeUp" | |
| send to space 1 | |
| send to monitor 1 | |
| do action Full Screen | |
| end tell |
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
| tell application "Adium" | |
| activate | |
| repeat with aWindow in (get every window) | |
| if aWindow is visible then | |
| set index of aWindow to 1 | |
| tell application "SizeUp" | |
| send to space 2 | |
| send to monitor 1 | |
| end tell | |
| end if |
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
| a = FacebookAccount.find_all_by_name("Rob Kaufman").last | |
| b = FacebookAccount.find_all_by_name("Plato Newton").last | |
| # Setup session with Rob | |
| @fb = MiniFB::OAuthSession.new(a.password) | |
| # Post on Plato's wall | |
| @fb.post(b.username, :type => :feed, :params => {:message => "You dog, whats up"}) |
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
| (401): Unauthorized - This method requires authentication. | |
| /var/www/measured_voice/shared/bundle/ruby/1.8/gems/twitter-0.8.1/lib/twitter/request.rb:75:in `raise_errors' /var/www/measured_voice/shared/bundle/ruby/1.8/gems/twitter-0.8.1/lib/twitter/request.rb:63:in `make_friendly' /var/www/measured_voice/shared/bundle/ruby/1.8/gems/twitter-0.8.1/lib/twitter/request.rb:42:in `perform' /var/www/measured_voice/shared/bundle/ruby/1.8/gems/twitter-0.8.1/lib/twitter/request.rb:6:in `get' |
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
| <div id="site" class="landing"> | |
| <h1>GSK Service Bench User Guide</h1> | |
| <div class="clear"></div> | |
| <div class="guide" id="Service Bench"> | |
| <div style="float: left;"> | |
| </div> | |
| <div class="clear"></div> |