RubyMotion – PullToRefresh

To add Sam Vermette’s SVPullToRefresh to your RubyMotion project: Add the SVPullToRefresh podAdd the Quartz Framework# Rakefile Motion::Project::App.setup do |app| # … app.frameworks += [‘QuartzCore’] app.pods do pod ‘SVPullToRefresh’ # … end end # Then in your controller def viewDidLoad

Using NUI with RubyMotion

NUI is an open-source library that allows you to style your iOS applications using CSS-like files and syntax. In my opinion, NUI carries few benefits over its commercial, KickStart backed, competitor Pixate. First; NUI allows you to style your application

Consultancy Masterclass

Last weekend, I sat through the two-day Consultancy Masterlcass by Brennan Dunn & Obie Fernandez. Both Brennan and Obie have extensive experience building their own successful consultancy firms. The class was insightful and full of those ‘from the trenches’ experiences.

Rails and inner query choices

Consider that we have two models; Well and SurveryPoints . A Well represent an oil/gas/water well, each with multiple SurveyPoints. A SurveyPoint represent the well’s coordinate at a certain depth. class Well < ActiveRecord::Base has_many :survey_

JRuby – can’t convert Hash into String

I’ve recently upgraded a JRuby/Rails application from JRuby 1.6.3 (1.8 compatibility mode) to 1.6.8 (1.9 mode). Everything was working out fine except for actions relying on internal CSV library (FasterCSV in 1.

newrelic – undefined method `-’ for nil:NilClass

Using JRuby with trinidad (developer mode) – I was intermittently getting this error. Apparently thrown as estimated_time for the transaction was returning nil. I was also having all sorts of other issues (undefined method `metric_name’ for nil:NilClass) with

JRuby/Rails Streaming in development environment (and beyond)

Rails streaming is a great feature that allows you to optimize on server resources when dealing with large generated content. However – it might be a bit tricky to validate and test in local development. First off – a local server that