Skip to content

Instantly share code, notes, and snippets.

6/11/12 9:43:48.563 AM LaunchBar[75305]: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString objectForKey:]: unrecognized selector sent to instance 0xaee37c0'
*** Call stack at first throw:
(
0 CoreFoundation 0x91f907ab __raiseError + 219
1 libobjc.A.dylib 0x9311c602 objc_exception_throw + 230
2 CoreFoundation 0x91f9441d -[NSObject(NSObject) doesNotRecognizeSelector:] + 253
3 CoreFoundation 0x91edcab7 ___forwarding___ + 487
4 CoreFoundation 0x91edc862 _CF_forwarding_prep_0 + 50
5 LaunchBar 0x000c2682 LaunchBar + 792194
6 LaunchBar 0x000c3e5a LaunchBar + 798298
class CasesController < ApplicationController
include KeywordsHelper
before_filter :init, :only => [:index, :create, :new, :edit, :update]
def new
@case = LegalCase.new
end
def index
Funways.Views.Groups ||= {}
class Funways.Views.Groups.NewView extends Backbone.View
template: JST['backbone/templates/groups/new']
id: 'new_group'
events:
'click a.save' : 'save'
'change input:file' : 'putImage'
'click .actions a.message' : 'newMessage'
# Get from form:
# params[:date]
# params[:categories]
def index
quote_requests_in_context
end
private
# FWF60C Modem Config Example with Sierra Aircard 312 on FortiOS v4.2
config system modem
set status enable
set mode redundant
set holddown-timer 45
set interface "wan1"
set phone1 "*99**1#"
set extra-init1 "AT+CGDCONT=1,\"IP\",\"telstra.internet\""
end
@nathanscott
nathanscott / fox_news.rb
Created February 7, 2012 06:05
If Fox News ran the universe...
class FoxNews < UniverseController
def initialize
raise HellOnEarth
end
end
body {
background: black;
color: white;
font: normal 100 16px/1.4 "Helvetica Neue", Helvetica, sans-serif;
letter-spacing: .1em;
}
h2 {
font: normal 200 28px/1.2 "Helvetica Neue", Helvetica, sans-serif;
}
@nathanscott
nathanscott / gist:1233780
Created September 22, 2011 01:01
clearfix
#lol:after {
clear: both;
content: " ";
display: block;
height: 0;
overflow: hidden;
visibility: hidden;
}
## DEFINE DIT ROOT/BASE/SUFFIX ####
## uses RFC 2377 format
## replace example and com as necessary below
## or for experimentation leave as is
## dcObject is an AUXILLIARY objectclass and MUST
## have a STRUCTURAL objectclass (organization in this case)
# this is an ENTRY sequence and is preceded by a BLANK line
dn: cn=users,dc=win,dc=inspire9,dc=local
@nathanscott
nathanscott / lion-libpng
Created July 30, 2011 01:49 — forked from mtcmorris/lion-libpng
Fix lion libpng
Fixing Lion libpng issues
-------------------------
Until this issue https://github.com/mxcl/homebrew/issues/4468 is resolved installing Lion screws up ImageMagick's png support. The following steps are a hacky work around to get things going again. `identify: memory allocation failed` is the error message you'll receive before applying the fix.
brew uninstall imagemagick
cd /usr/X11R6/lib
sudo mv libpng.dylib libpng.old.dylib
sudo ln -s libpng12.0.dylib libpng.dylib
brew install imagemagick