Skip to content

Instantly share code, notes, and snippets.

View mremolt's full-sized avatar

Marc Remolt mremolt

  • ALTEN GmbH
  • Nürnberg
View GitHub Profile
#require 'rubygems'
require 'pp'
#require 'ap' # Awesome Print
class Object
# expects [ [ symbol, *args ], ... ]
def recursive_send(*args)
args.inject(self) { |obj, m| obj.send(m.shift, *m) }
end
end
@mremolt
mremolt / gist:5566882
Created May 13, 2013 08:18
embercasts.com error messages
Unable to post message to http://www.youtube.com. Recipient has origin http://www.embercasts.com.
2
Unsafe JavaScript attempt to access frame with URL http://www.embercasts.com/ from frame with URL https://www.youtube.com/embed/?autoplay=0&controls=0&disablekb=1&iv_load_po…l=0&wmode=transparent&enablejsapi=1&origin=http%3A%2F%2Fwww.embercasts.com. The frame requesting access has a protocol of 'https', the frame being accessed has a protocol of 'http'. Protocols must match.
Unable to post message to http://www.youtube.com. Recipient has origin http://www.embercasts.com.
Unable to post message to http://www.youtube.com. Recipient has origin https://www.youtube.com.
Unsafe JavaScript attempt to access frame with URL http://www.embercasts.com/ from frame with URL https://www.youtube.com/embed/?autoplay=0&controls=0&disablekb=1&iv_load_po…l=0&wmode=transparent&enablejsapi=1&origin=http%3A%2F%2Fwww.embercasts.com. The frame requesting access has a protocol of 'https', the frame being accessed has a protocol of 'htt
@mremolt
mremolt / spec_performance.txt
Created May 26, 2011 07:49
Some suggestions on spec performance
Referencing http://twitter.com/#!/refinerycms/status/73536619038261248
Depends, do you want to speed up single test runs/running one spec file or speeding up the whole suite?
Speeding up a single test == shorten init time
-------------------------
Reduce the number of requires:
When running on 1.9.2, require is an extremely costly operation. @xshay is currently working on this, should be better in 1.9.3.