Interestings
XP at Pivotal Labs
Will Read & ex-pivot Josh Susser talk with folks like Avdi Grimm about XP and what it looks like at Pivotal Labs. ~1hr.
http://rubyrogues.com/109-rr-extreme-programming-with-will-read/
Will Read & ex-pivot Josh Susser talk with folks like Avdi Grimm about XP and what it looks like at Pivotal Labs. ~1hr.
http://rubyrogues.com/109-rr-extreme-programming-with-will-read/
If you have a password on the keyfile lobot is using for git, jenkins will fail to checkout
ciborg always upload the keyfile as id_rsa even if yours has a different name, it copies the correct file but drops it as id_rsa and has the reference to your correct name in the ciborg.yml.
Easily access view helpers from your controller, without including modules. Use view_context.some_url_helper for example.
Sometimes you need to use the controller / view_context to access methods you could not in the presenter.
When it's the case, don't put them as a parameter of the method that need them.
This is not a value object (remember Domain Driven Design? :), this is a dependency you should inject when creating your presenter.
Yesterday we were trying to send multipart requests with Faraday. It doesn't work. Why?
Would you use this gem? https://pivotal.quandora.com/pivots/q/0ff16a428a404ef2aeca274956848c4a/Would-you-use-this-Jasmine-Backbone-fixtures-gem-if-we-extracted-it
We need a certain amount of buy-in before we can extract it on client time.
Not that you should probably ever have multiple after blocks at the same level, but we found out when collapsing multiple after blocks down into a single one, that the teardown happened in the opposite order than the order in which the after's were declared
We're going to watch: "The Value of Values" by Rich Hickey.
Alexander has transferred the super powers. So send suggestions to me or add it to the wiki page: https://sites.google.com/a/pivotallabs.com/pivotalwiki/officesandfacilities/sanfranciscooffice/sf-lunch-videos
If you write a UIImage’s PNG representation to disk, read it back, and get the PNG representation again, you’ll get a different representation. In our case, we got 21 extra octets after the PNG header.
NSData *png1 = UIImagePNGRepresentation(image1);
[png1 writeToFile:file atomically:YES];
UIImage *image2 = [UIImage imageWithContentsOfFile:file];
NSData *png2 = UIImagePNGRepresentation(image2);
// png1 and png2 differ by 21 octets
If you're using date/time formats in Ruby, Python, C or PHP, this website is pretty slick for testing your formats.
If you are using heroku_san with a ruby 2.0.0 app and you get deployment failures and the message is:
"Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0"
You need to edit /usr/local/heroku/bin/heroku
and change the shebang line:
#!/usr/local/heroku/ruby/bin/ruby
to
#!/usr/bin/env ruby
So that the heroku toolbelt runs with the ruby version invoked locally in your rbenv/rvm environment.
Ruby enforces that any assignment returns the RHS. Or at least it does when you call it normally.
class Foo
def bar=(x)
42
end
end
Foo.new.bar = "sup"
"sup"
Foo.new.send(:bar=, "sup")
42
(looks like its fixed in newer versions of 2.0)
Summer of Design is 12-week series of emails. The learning material is designed to help developers, hackers, and makers of any kind really understand the “whys” of design. Sign up for free until June 3.