Skip to content

Instantly share code, notes, and snippets.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:443:in `load_missing_constant'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in `const_missing'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:92:in `const_missing'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/inflector.rb:361:in `constantize'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/inflector.rb:360:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/inflector.rb:360:in `constantize'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gem
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/record_identifier.rb:76:in `dom_id'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_view/helpers/record_identification_helper.rb:16:in `dom_id'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_view/helpers/form_helper.rb:293:in `apply_form_for_options!'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_view/helpers/form_helper.rb:277:in `form_for_without_haml'
/Library/Ruby/Gems/1.8/gems/haml-3.0.24/lib/haml/helpers/action_view_mods.rb:235:in `form_for'
/Users/Shea/Dropbox/mypizza/admin/app/views/admins/new.html.erb:1:in `_run_erb_app47views47admins47new46html46erb'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_view/renderable.rb:34:in `send'
/Syst
@shlevy
shlevy / messages_controller.rb
Created December 8, 2010 05:19
Messages Controller and Controller Spec
class MessagesController < ApplicationController
def create
Message.new(params[:message])
redirect_to :action => "index"
end
end
@shlevy
shlevy / Nix Trace
Created March 5, 2011 18:13
nix-build nixos/release.nix -A iso_minimal.iso --show-trace
error: while evaluating the builtin function `derivationStrict':
while instantiating the derivation named `iso9660-image' at `/home/play/nixos/lib/make-iso9660-image.nix:36:3':
while evaluating the derivation attribute `sources' at `/home/play/nixos/lib/make-iso9660-image.nix:43:3':
while evaluating the builtin function `derivationStrict':
while instantiating the derivation named `grub.cfg' at `/home/play/nixpkgs/pkgs/build-support/trivial-builders.nix:10:14':
while evaluating the derivation attribute `text' at `/home/play/nixpkgs/pkgs/build-support/trivial-builders.nix:21:29':
while evaluating the attribute `extraEntries' at `/home/play/nixpkgs/pkgs/lib/attrsets.nix:108:41':
while evaluating the function at `/home/play/nixpkgs/pkgs/lib/modules.nix:191:43':
while evaluating the attribute `result' at `/home/play/nixpkgs/pkgs/lib/modules.nix:303:11':
while evaluating the builtin function `addErrorContext':
diff -Naur orig//nixos/modules/profiles/base.nix changed//nixos/modules/profiles/base.nix
--- orig//nixos/modules/profiles/base.nix 2011-03-05 18:41:45.031108002 +0000
+++ changed//nixos/modules/profiles/base.nix 2011-03-05 18:45:08.301108003 +0000
@@ -1,6 +1,7 @@
{config, pkgs, ...}:
{
+ boot.kernelPackages = pkgs.linuxPackages_2_6_37;
# The initrd has to contain any module that might be necessary for
@shlevy
shlevy / nix-build output
Created March 5, 2011 20:19
sudo nix-build ./nixos/release.nix -A iso_minimal.iso
the following derivations will be built:
/nix/store/1rhnqsy48a5clf4ps2lwhpw4znf25qba-upstart-network-interfaces.conf.drv
/nix/store/2lkqyw46szizrdpmkab5d5axjjhr9r3a-modprobe.drv
/nix/store/2vqwh59xds4kjqshc4rg7xprfkbn9f7r-kernel-modules.drv
/nix/store/5l0pclvgbb4gsd7zsw396ll4hg7kqyjy-udev-rules.drv
/nix/store/694fic60vqd0n9c3b46am6w9cx7mxcj5-upstart-dhclient.conf.drv
/nix/store/7rfx892mmwjkswqs0c4ydq8ffq9iminc-system-path.drv
/nix/store/9g4lkhg8nmv1vdzzn7nl4s9qkchpgk5i-upstart-alsa.conf.drv
/nix/store/9vniqzklv7yy2i2krj4hfzm5mpniiawg-aufs2-20100522.drv
/nix/store/a6l6lzmqhz3lhlwyzwqj9pz8shq8zg50-stage-1-init.sh.drv
# Edit this configuration file which defines what would be installed on the
# system. To Help while choosing option value, you can watch at the manual
# page of configuration.nix or at the last chapter of the manual available
# on the virtual console 8 (Alt+F8).
{config, pkgs, ...}:
{
require = [
# Include the configuration for part of your system which have been
@shlevy
shlevy / trace
Created March 6, 2011 14:14
NIXOS_CONFIG=/mnt/etc/nixos/configuration.nix nix-instantiate /etc/nixos/nixos
warning: you did not specify `--add-root'; the result might be removed by the garbage collector
error: while evaluating the builtin function `derivationStrict':
while instantiating the derivation named `system' at `/etc/nixos/nixos/modules/system/activation/top-level.nix:146:5':
while evaluating the derivation attribute `buildCommand' at `/etc/nixos/nixos/modules/system/activation/top-level.nix:147:5':
while evaluating the builtin function `derivationStrict':
while instantiating the derivation named `etc' at `/etc/nixos/nixos/modules/system/etc/etc.nix:41:5':
while evaluating the derivation attribute `sources' at `/etc/nixos/nixos/modules/system/etc/etc.nix:46:5':
while evaluating the builtin function `derivationStrict':
while instantiating the derivation named `upstart-tty-backgrounds.conf' at `/etc/nixos/nixpkgs/pkgs/build-support/trivial-builders.nix:10:14':
while evaluating the derivation attribute `jobText' at `/etc/nixos/nixos/modules/system/upstart/upstart.nix:113:43':
@shlevy
shlevy / build output
Created March 16, 2011 02:35
nixos-rebuild switch --show-trace
fetching list of Nix archives at `http://nixos.org/releases/nixpkgs/channels/nixpkgs-unstable/MANIFEST.bz2'...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
31610 store paths in manifest
building Nix...
building the system configuration...
@shlevy
shlevy / Firefox 4.0rc1 Strace
Created March 16, 2011 05:30
firefox-strace
execve("/var/run/current-system/sw/bin/firefox", ["firefox", "--display=:0.0"], [/* 41 vars */]) = 0
brk(0) = 0x175a000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f209a1c9000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/var/run/opengl-driver/lib/tls/x86_64/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/var/run/opengl-driver/lib/tls/x86_64", 0x7fff970f0ef0) = -1 ENOENT (No such file or directory)
open("/var/run/opengl-driver/lib/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/var/run/opengl-driver/lib/tls", 0x7fff970f0ef0) = -1 ENOENT (No such file or directory)
open("/var/run/opengl-driver/lib/x86_64/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/var/run/opengl-driver/lib/x86_64", 0x7fff970f0ef0) = -1 ENOENT (No such file or directory)