Skip to content

Instantly share code, notes, and snippets.

View thomasv314's full-sized avatar

Thomas Vendetta thomasv314

View GitHub Profile
<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>>,
@thomasv314
thomasv314 / drup.php
Created February 2, 2012 21:02
drupal 7 module example
function og_netforum_importer_start($form, &$form_state) {
// here I build the form
return $form;
}
/*
Validate the page by setting a form cache...
*/
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: http://localhost:8888/d7/ctools/context/ajax/add/page_manager_context%3A%3Apage-og_documents/context/page_og_documents_panel_context/entity:comment
StatusText: parsererror
ResponseText:
Notice: Undefined variable: id in /Applications/MAMP/htdocs/d7/sites/all/modules/ctools/includes/context-admin.inc on line 619
Notice: Undefined variable: object in /Applications/MAMP/htdocs/d7/sites/all/modules/ctools/includes/context-admin.inc on line 620
Notice: Undefined index: position in /Applications/MAMP/htdocs/d7/sites/all/modules/ctools/includes/context-admin.inc on line 655
Notice: Undefined index: id in /Applications/MAMP/htdocs/d7/sites/all/modules/ctools/plugins/contexts/entity.inc on line 135
class BusinessesController < ApplicationController
# GET /businesses/new
# GET /businesses/new.json
def new
@business = Business.new
@business_address = BusinessAddress.new
respond_to do |format|
format.html # new.html.erb
format.json { render json: @business }
Display all 109 possibilities? (y or n)
.DS_Store coffejq.js promotions/
BandMan/ config railsyardcms/
ConfMobileApp/ deck-host-app/ readme.txt
CrowdSurfer/ description reddit-api-gem/
DeckDesigner/ designerstoolkit/ refine/
DirectoryRails/ doit/ refs/
DrinkApp/ drupal modules/ regapp/
EveryMerchantRails/ eclipse 2/ resident/
EveryPropertyListing.tmproj em_time_app/ rowan/