Two new interesting open-source Objective-C frameworks bookended our week this week:
First, Peter Kim sent a message to the Cedar-discuss mailing list to introduce us to his new matcher framework Expecta. Now, instead of OCHamcrest’s
assertThatBool(maybe, equalToBool(NO)) shenanigans one can simply
expect(2+2).toEqual(4); There’s also a nice DSL for implementing custom matchers for objects.
Excited about the possibilities, Kurtis and I spiked on implementing a set of custom matchers for commonly-used Cocoa structs such as CGPoint, something we have found lacking in current tools and testing patterns. Our entire project team looks forward to writing more tests using Expecta.
Also, Twitter Engineering just announced TwUI, a new Core Animation-based UI framework for OS X. Fun times.
“What does it take to get formtastic and paperclip working together out of the box?”
An enquiring Pivot would like to know.
*”Did you know Skype history is regex-aware?”
Now go ahead and correct yourself before resending that message…
heroku_san + autotagger >>> anyone? anyone? Ken wants to talk to you.
Half help, half interesting
versions in .rvmrc — use them. If you’re simply using ree@gemset things might fall apart after an upgrade. A better practice would be to use bundler, which will be more reliable in reinstalling your required gems if your ruby is upgraded.
Pair eXchange at Pivotal SF tonight. Bring your side project and your thinking brain, and look forward to some fun pair programming!
Open Source Development Workshop
Thursday, October 28 at 6:30PM
Pivotal Labs is hosting and our own Sarah Mei is leading an open source workshop for developers interested in learning about contributing to open source projects. Sarah will be using the Diaspora project as an example, and the Diaspora team will be on hand to assist. Email Sarah at sarahmei at pivotallabs dot com for more info, or view the meetup page here
Standup 2010-10-26 and 2010-10-27
“How do I use RVM on the server?”
RVM on the server can be fraught with peril. Be sure that your (or your process’s) shell is being invoked in a way which plays nice with RVM, for instance bash -lc or bash -ic in cron.
“Why does Google Street View give me a grey dead area instead of a picture of some dude’s house?”
Most likely this is due to having requested a view for an area where none is available. The Google docs have been found to be a bit misleading on this, however there is an api call to see if there is an available street view for a given radius — try increasing this radius near your lat & long until you get success in order to avoid a useless response.
- Running MySql in ramdisk does not yield any discernable performance boost for small to medium-sized rails projects, for test suites or the app itself. This is probably due to the fact that most projects’ code and data are already small enough to fit in cache.
- Looking for a real perf boost? Try REE with the Twitter GC tweaks
- Edit: followup to delayed_job job logging failures
Switching to resque might help, but not without first rewriting the jobs.
More research yielded the fact that delayed_job reopens all files (including the log files) when it spins up. Under Ruby 1.8, File#reopen defaults file mode to last set, while 1.9 defaults to read only. This could easily cause logging failures. (with a nod to Davis W. Frank for the followup info)