Skip to content

Instantly share code, notes, and snippets.

View thomasv314's full-sized avatar

Thomas Vendetta thomasv314

View GitHub Profile
Event Load (0.5ms) SELECT "events".* FROM "events" WHERE "events"."slug" = 'suna2011' LIMIT 1
NetForumRegistration Load (0.2ms) SELECT "net_forum_registrations".* FROM "net_forum_registrations" WHERE "net_forum_registrations"."id" = ? LIMIT 1 [["id", 1]]
Event Load (0.4ms) SELECT "events".* FROM "events" WHERE "events"."id" = 1 LIMIT 1
NetForumHandler Load (7.8ms) SELECT "net_forum_handlers".* FROM "net_forum_handlers" WHERE "net_forum_handlers"."id" = 1 LIMIT 1
reg = {
"szObjectName" => "RegistrationDemographics",
"oNode" =>
{
"RegistrationDemographicsObjects" =>
{
"RegistrationDemographicsObject" =>
{
"rdm_key" => nil,
"rdm_add_user" => nil,
@thomasv314
thomasv314 / response.bash
Created November 1, 2011 16:15
Savon Client Request
NoMethodError: You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.[]
from /Users/thomasvendetta/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/savon-0.9.7/lib/savon/soap/fault.rb:33:in `to_hash'
from /Users/thomasvendetta/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/savon-0.9.7/lib/savon/soap/fault.rb:28:in `to_s'
from /Users/thomasvendetta/Code/RegApp/app/models/registrant.rb:277:in `rescue in nf_shopping_cart_insert'
from /Users/thomasvendetta/Code/RegApp/app/models/registrant.rb:273:in `nf_shopping_cart_insert'
from (irb):14
from /Users/thomasvendetta/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/railties-3.1.0/lib/rails/commands/console.rb:45:in `start'
from /Users/thomasvendetta/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/railties-3.1.0/lib/rails/commands/console.rb:8:in `start'
@thomasv314
thomasv314 / gist:1331698
Created November 1, 2011 19:47
DanceLessonsHamden.com
Spidered Text :
Arthur Murray Hamden, New Haven-Dance Lessons for Beginners, Ballroom Dancing, Wedding Dance Programs- Arthur Murray Hamden International Studio News Hamden Studio News Arthur Murray Hamden - Subscribe to our RSS Posts Comments E-mail Home Directions History New Student Offer Our Studio Programs 6 Slide 4 Slide 3-Weddings Slide 2- Arthur Murray inc. Slide 1 New Student Offer Private Dance Lesson Offers for BeginnersArthur Murray® Hamden, CT dancing instructors are specially trained and certified in social, salsa, ballroom dancing and many more styles. Our dance instructors can put you in touch with today’s most popular dances to make you comfortable in social dance scenes or if you are interested in becoming a competitive dancer. Whether you’re dancing at your wedding or in a dancing at a local ballroom dance competition, the Hamden dance instructors will have you dancing on your feet in no time!Click here to learn more Connecticut Dance Scene ARTHUR MURRAY INTERNATIONAL BIDS FAREWELL TO
<html>
<head>
<title>work!</title>
</head>
<body>
<h1>Congratulations! </h1>
<p> This has worked.</p>
<script type="text/javascript">
#1 /Applications/MAMP/htdocs/d7/includes/database/database.inc(664): DatabaseStatementBase->execute(Array, Array)
#2 /Applications/MAMP/htdocs/d7/includes/database/database.inc(2314): DatabaseConnection->query('SELECT expire, ...', Array, Array)
#3 /Applications/MAMP/htdocs/d7/includes/lock.inc(167): db_query('SELECT expire, ...', Array)
#4 /Applications/MAMP/htdocs/d7/includes/lock.inc(146): lock_may_be_available('schema:runtime:...')
#5 /Applications/MAMP/htdocs/d7/includes/bootstrap.inc(397): lock_acquire('schema:runtime:...')
#6 /Applications/MAMP/htdocs/d7/includes/bootstrap.inc(416): DrupalCacheArray->set('schema:runtime:...', Array, 'cache')
#7 [internal function]: DrupalCacheArray->__destruct()
#8 {main}
thrown in /Applications/MAMP/htdocs/d7/includes/database/database.inc on line 2135
[09-Jan-2012 16:11:49] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 71 bytes) in /Applications/MAMP/htdocs/d7/includes/database/database.inc on line 2135
cache: [POST /anna/step/2] invalidate, pass
cache: [GET /anna/step/3] miss
cache: [POST /anna/step/3] invalidate, pass
cache: [GET /anna/step/4] miss
cache: [POST /anna/step/4] invalidate, pass
cache: [GET /anna/step/5] miss
cache: [POST /anna/apply_discount] invalidate, pass
cache: [GET /anna/step/5] miss
E, [2012-01-11T15:27:59.085582 #13626] ERROR -- : worker=0 PID:26778 timeout (51s > 50s), killing
E, [2012-01-11T15:27:59.098175 #13626] ERROR -- : reaped #<Process::Status: pid 26778 SIGKILL (signal 9)> worker=0
<?php
/**
* @file
* Theme implementation to display a block.
*
* Available variables:
* - $title: Block title.
* - $content: Block content.
* - $block->module: Module that generated the block.
* - $block->delta: An ID for the block, unique within each module.
<script>
function readCookie(name){
var cookieValue = null;
if (document.cookie && document.cookie != '') {
var cookies = document.cookie.split(';');
for (var i = 0; i < cookies.length; i++) {
var cookie = jQuery.trim(cookies[i]);
[
: environment,
{
"SERVER_SOFTWARE"=>"Goliath",
"SERVER_NAME"=>"localhost",
"rack.version"=>[
1,
0
],
"rack.errors"=>#<IO: <STDERR>>,