This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://m.onkey.org/2009/7/7/nested-layouts | |
# The "no block given" error crops up in lib/action_view/render/rendering.rb in actionpack. | |
# The #_render_template method # is failing to pass a block to template.render on line 101. | |
# The problem appears to already be fixed in edge, but until then you could try this: | |
#config/initializers/duck_punch_rendering.rb | |
require 'active_support/core_ext/object/try' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 8dadcddb93013dcd565d8e8b2964d8ccdff0a793 Mon Sep 17 00:00:00 2001 | |
From: Phil Smith <phil.h.smith@gmail.com> | |
Date: Mon, 3 May 2010 19:52:54 -0700 | |
Subject: [PATCH] Don't assume MyApp::Application is defined in initializer | |
http://github.com/rspec/rspec-rails/issues#issue/43 | |
--- | |
.../config/initializers/rspec_generator.rb.tt | 2 +- | |
1 files changed, 1 insertions(+), 1 deletions(-) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
module Mixin | |
def self.included(mod) | |
mod.extend ClassMethods | |
end | |
module ClassMethods |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Adapt a dalli client to fit OpenID::Store::Memcache's expectations. | |
# | |
# See https://github.com/openid/ruby-openid/issues/#issue/8 | |
class DalliAdapter | |
attr_accessor :dalli_client | |
def initialize(dalli_client) | |
@dalli_client = dalli_client | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
configure:22196: checking for the Boost thread library | |
configure:22250: g++ -c -g -O2 -I/usr/local/include conftest.cpp >&5 | |
configure:22256: $? = 0 | |
configure:22317: re-using the existing conftest.o | |
configure:22323: g++ -o conftest -g -O2 -I/usr/local/include -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/local/lib conftest.o -lboost_thread-xgcc42-mt-1_49 -lboost_system-mt >&5 | |
ld: unknown option: -R/usr/local/lib | |
collect2: ld returned 1 exit status | |
configure:22329: $? = 1 | |
configure:22317: re-using the existing conftest.o | |
configure:22323: g++ -o conftest -g -O2 -I/usr/local/include -L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/lib conftest.o -lboost_thread-xgcc42-mt-1_49 -lboost_system-mt >&5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
configure:20615: checking boost/system/error_code.hpp usability | |
configure:20632: g++ -c -g -O2 -I/usr/local/include conftest.cpp >&5 | |
configure:20638: $? = 0 | |
configure:20652: result: yes | |
configure:20656: checking boost/system/error_code.hpp presence | |
configure:20671: g++ -E -I/usr/local/include conftest.cpp | |
configure:20677: $? = 0 | |
configure:20691: result: yes | |
configure:20724: checking for boost/system/error_code.hpp | |
configure:20731: result: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew install log4cplus | |
==> Downloading http://sourceforge.net/projects/log4cplus/files/log4cplus-stable/1.0.4/log4cplus-1.0.4.tar.bz2 | |
######################################################################## 100.0% | |
==> ./configure --prefix=/usr/local/Cellar/log4cplus/1.0.4 | |
==> make install | |
Making install in include | |
make[2]: Nothing to be done for `install-exec-am'. | |
test -z "/usr/local/Cellar/log4cplus/1.0.4/include" || /usr/local/bin/gmkdir -p "/usr/local/Cellar/log4cplus/1.0.4/include" | |
/usr/local/bin/gmkdir -p '/usr/local/Cellar/log4cplus/1.0.4/include/log4cplus/spi' | |
/usr/local/bin/ginstall -c -m 644 log4cplus/spi/appenderattachable.h log4cplus/spi/factory.h log4cplus/spi/filter.h log4cplus/spi/loggerfactory.h log4cplus/spi/loggerimpl.h log4cplus/spi/loggingevent.h log4cplus/spi/objectregistry.h log4cplus/spi/rootlogger.h '/usr/local/Cellar/log4cplus/1.0.4/include/log4cplus/spi' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Open up Terminal.app, cd to the directory containing Library.xml, then paste this bad boy. | |
# | |
# What's going on: | |
# 1. find: recursively print the names of all files under /iTunes/Music | |
# 2. sed: Strip off the leading '/iTunes/Music/' prefix, since it probably won't be in Library.xml | |
# 3. while: for each such filename.. | |
# 4. grep: see if it appears in Library.xml | |
# 5. ||, echo: if not, print it out. | |
find /iTunes/Music -type f | sed 's|/iTunes/Music/||g' | while read filename; do grep -q "$filename" Library.xml || echo "$filename"; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Thanks https://github.com/ptb/Mac-OS-X-Lion-Setup/blob/965b6b93e378da580aae554e95624d9891ca0756/setup.sh | |
/bin/echo -n 'a' | /usr/bin/sudo /usr/bin/tee /private/var/db/.AccessibilityAPIEnabled > /dev/null 2>&1; /usr/bin/sudo /bin/chmod 444 /private/var/db/.AccessibilityAPIEnabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "App Store" | |
activate | |
delay 5 -- wait for it to start | |
end tell | |
tell application "System Events" | |
tell window "App Store" of process "App Store" | |
-- Search for Xcode | |
tell text field 1 of group 7 of tool bar 1 |
OlderNewer