Skip to content

Instantly share code, notes, and snippets.

[Tue Sep 03 08:15:48 2013] [error] [client 172.16.189.3] PHP Notice: Undefined index: resources in /var/www/apieceocake.com/library/Jnj/Application/Resource/Acl.php on line 130
[Tue Sep 03 08:15:48 2013] [error] [client 172.16.189.3] PHP Catchable fatal error: Argument 1 passed to Users_Model_Mapper_Identity_IdentityMap::_mapIdentity() must be an instance of Users_Model_Identity, null given, called in /var/www/apieceocake.com/application/modules/users/models/mappers/Identity/IdentityMap.php on line 119 and defined in /var/www/apieceocake.com/application/modules/users/models/mappers/Identity/IdentityMap.php on line 264
<VirtualHost *:80>
ServerName apieceocake.com
ServerAlias www.apieceocake.com
DocumentRoot /var/www/apieceocake.com/public
<Directory /var/www/apieceocake.com/public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Notice: Undefined index: resources in /var/www/apieceocake.com/library/Jnj/Application/Resource/Acl.php on line 130
Notice: Undefined index: resources in /var/www/apieceocake.com/library/Jnj/Application/Resource/Acl.php on line 130
Notice: Undefined variable: this in /var/www/apieceocake.com/library/Jnj/View/Helper/User.php on line 122
Notice: Undefined variable: value in /var/www/apieceocake.com/library/Jnj/Model.php on line 177
Notice: Undefined variable: value in /var/www/apieceocake.com/library/Jnj/Model.php on line 177
Notice: Undefined variable: value in /var/www/apieceocake.com/library/Jnj/Model.php on line 177
Notice: Undefined variable: value in /var/www/apieceocake.com/library/Jnj/Model.php on line 177
Notice: Undefined variable: value in /var/www/apieceocake.com/library/Jnj/Model.php on line 177
Notice: Undefined variable: value in /var/www/apieceocake.com/library/Jnj/Model.php on line 177
Notice: Undefined variable: value in /var/www/apieceocake.com/library/Jnj/Model.php on line 177
Notice: Undefined index: resources in /var/www/apieceocake.com/library/Jnj/Application/Resource/Acl.php on line 130
Fatal error: Uncaught exception 'Exception' with message 'null' in /var/www/apieceocake.com/application/modules/users/models/mappers/Identity/IdentityMap.php:119
Stack trace: #0 /var/www/apieceocake.com/application/modules/users/models/mappers/Identity/Decorator.php(165): Users_Model_Mapper_Identity_IdentityMap->fetchById(1)
#1 /var/www/apieceocake.com/application/modules/static/models/Page/Factory.php(103): Users_Model_Mapper_Identity_Decorator->fetchById(1)
#2 /var/www/apieceocake.com/library/Jnj/Model/Entity/Factory.php(156): Static_Model_Page_Factory->aggregateEntity(Object(Static_Model_Page))
#3 /var/www/apieceocake.com/library/Jnj/Model/Entity/Factory.php(237): Jnj_Model_Entity_Factory->createEntity(Object(Zend_Db_Table_Row))
#4 [internal function]: Jnj_Model_Entity_Factory->createArray(Object(Zend_Db_Table_Rowset))
#5 /var/www/apieceocake.com/library/Zend/Filter/Callback.php(150): call
@rubylaser
rubylaser / organization.rb
Created October 11, 2013 18:20
Many to Many
class Organization < ActiveRecord::Base
has_many :projects
has_many :contacts
end
# Organizations would have many projects that they are the Owner for (a university with many projects)
# or the Organization could be a firm that is working on the project (A/E, or Construction Manager)
# In both cases, these are roles again.
# contacts will also have roles both at the organization (position title) and on the project (Owner's Rep, etc.)
#! /bin/bash
#######################################################################
# this is a helper script that keeps snapraid parity info in sync with
# your data. Here's how it works:
# 1) it first calls diff to figure out if the parity info is out of sync
# 2) if there are changed files (i.e. new, changed, moved or removed),
# it then checks how many files were removed.
# 3) if the deleted files exceed X (configurable), it triggers an
# alert email and stops. (in case of accidental deletions)
# 4) otherwise, it will call sync.
# Ignore my Unsorted Folder
Unsorted/*
$(".markdown_link").live("click", function(e) {
$(this).next(".markdown_examples").slideToggle();
});