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
options: { | |
img_root: "img/content/pages/planSelect/fre/", | |
steps: [ | |
{top: 400, left: 400, img: "fre1_nextButton.png", parentSel: '.form-section:visible .nextButton'}, | |
{top: 500, left: 500, img: "fre2_viewPlans.png", parentSel: '.view-plans-button:visible'}, | |
{top: 600, left: 600, img: "fre3_beatrice.png", parentSel: '#subNavContainerTabbed .tab-button:nth-child(3)'} | |
] | |
} |
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
_initStatic: function () { | |
this._$currentImage = this._$content.find('> img.static'); | |
if(this._is('interstitial')) { | |
this._headerHeight -= 9; // Scallops | |
} | |
if(this.element.data('popup-editor')) { | |
var editorInfo = this.element.data('popup-editor'); | |
this.element.find('img.editing').on('click', function () { | |
$('#popup').popup('show', editorInfo.title, editorInfo.klass, editorInfo.steps, null, null, editorInfo.imagesDir); |
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
deploy@ideo-rcp:~$ tcpdump | |
tcpdump: no suitable device found | |
deploy@ideo-rcp:~$ sudo tcpdump | |
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode | |
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes | |
01:27:50.070277 IP ideo-rcp.ssh > mad0536d0.tmodns.net.9252: Flags [P.], seq 768374745:768374937, ack 3221391056, win 1258, options [nop,nop,TS val 128812 ecr 8768531], length 192 | |
01:27:50.070930 IP ideo-rcp.42572 > cachens1.ord1.rackspace.com.domain: 25744+ PTR? 173.5.54.208.in-addr.arpa. (43) | |
01:27:50.088970 IP cachens1.ord1.rackspace.com.domain > ideo-rcp.42572: 25744 1/6/8 PTR mad0536d0.tmodns.net. (397) | |
01:27:50.089416 IP ideo-rcp.44529 > cachens1.ord1.rackspace.com.domain: 63499+ PTR? 8.4.203.173.in-addr.arpa. (42) | |
01:27:50.089749 IP cachens1.ord1.rackspace.com.domain > ideo-rcp.44529: 63499 1/2/2 PTR cachens1.ord1.rackspace.com. (150) |
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
deploy@ideo-rcp:~$ dig +trace | |
; <<>> DiG 9.7.1-P2 <<>> +trace | |
;; global options: +cmd | |
;; connection timed out; no servers could be reached | |
deploy@ideo-rcp:~$ sudo dig +trace | |
; <<>> DiG 9.7.1-P2 <<>> +trace | |
;; global options: +cmd | |
. 478933 IN NS a.root-servers.net. |
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
var Goals = Backbone.Collection.extend({ | |
initialize: function () { | |
this.user_slug = this.options.user_slug; | |
this.url = '/goals.json?user=' + this.user_slug; | |
}, | |
model: Goal | |
}); |
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
Foo::Application.config.action_mailer.delivery_method = :smtp | |
ActionMailer::Base.smtp_settings = { | |
:address => "smtp.gmail.com", | |
:port => 587, | |
:domain => "foo.com", | |
:user_name => "status@foo.com", | |
:tls => true, | |
:password => "XXXXXXX", | |
:authentication => "plain", | |
:enable_starttls_auto => true |
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
1.9.3p0 :002 > Status.last_day_warning(User.first).deliver | |
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=unknown state: unknown protocol | |
from /home/foobar/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/smtp.rb:583:in `connect' | |
from /home/foobar/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/smtp.rb:583:in `tlsconnect' | |
from /home/foobar/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/smtp.rb:551:in `do_start' | |
from /home/foobar/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/smtp.rb:519:in `start' | |
from /home/foobar/.rvm/gems/ruby-1.9.3-p0@blah/gems/mail-2.4.1/lib/mail/network/delivery_methods/smtp.rb:144:in `deliver!' | |
from /home/foobar/.rvm/gems/ruby-1.9.3-p0@blah/gems/mail-2.4.1/lib/mail/message.rb:2033:in `do_delivery' | |
from /home/foobar/.rvm/gems/ruby-1.9.3-p0@blah/gems/mail-2.4.1/lib/mail/message.rb:229:in `block in deliver' | |
from /home/foobar/.rvm/gems/ruby-1.9.3-p0@blah/gems/actionmailer-3.2.0/lib/action_mailer/base.rb:414:in `block in deliver_mail' |
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
module Foo | |
def self.name | |
/foo/ | |
end | |
end | |
[1].first. |
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
1.9.3p0 :008 > module Foo | |
1.9.3p0 :009?> def self.name | |
1.9.3p0 :010?> /foo/ | |
1.9.3p0 :011?> end | |
1.9.3p0 :012?> end | |
=> nil | |
1.9.3p0 :013 > Foo.name | |
=> /foo/ | |
1.9.3p0 :014 > [1].first./home/esalazar/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/irb/completion.rb:182:in `block (2 levels) in <module:InputCompletor>': can't convert Regexp to String (TypeError) | |
from /home/esalazar/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/irb/completion.rb:175:in `each_object' |
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
def sign_in_and_redirect user, remember_me=true | |
user.generate_token | |
if remember_me | |
cookies.permanent[:auth_token] = user.auth_token | |
else | |
cookies[:auth_token] = user.auth_token | |
end | |
redirect_to current_user | |
end |