Fantastic capture of the cruise ship disaster off the coast of Giglio, Italy
Fantastic capture of the cruise ship disaster off the coast of Giglio, Italy
Convert Javascript to CoffeeScript. Get converting!
# rails < 3.1 new_record = old_record.clone #rails >= 3.1 new_record = old_record.dup
If you’re running a Rails app locally on pow and get an ‘unknown process error’ , I’ve found the following to be quite a reliable fix:
1. Try restarting pow
$ touch tmp/restart.txt
If that doesn’t work it’s likely something is broken in your code. Sometimes pow doesn’t catch basic syntax errors.
2. Run the native Rails server
$ rails s
This should output the errors (if any) from your code.
A quick reference for setting up a new rvm gemset ready for Rails 3.1.
Follow along, using Terminal or iTerm.
1. Install Ruby 1.9.3
rvm install 1.9.3
If you want, make this rvm the default.
rvm use 1.9.3 --default
2. Create your new Rails 3.1.3 gemset.
rvm gemset create rails313
3. Select the gemset.
rvm use ruby-1.9.3-p0@rails313 --default
4. Install Rails.
gem install rails
This will install rails, bound to the gemset we just created.
You can also optionally create an .rvmc file in various projects to ensure they run on the correct gemset. This is done by running the following in your individual project directory:
rvm --rvmrc --create use ruby-1.9.3-p0@rails313
Coming to a device near you.
Javascript templating from Twitter.

Spoooogett.

NYE.
Kidz on the internet
(via stella.io)
Despite how hilarious this guy sounds and acts, some of the points are pretty decent. I agree on thoughts regarding the state of the web, the current dominant players and where things might head. This made me crack…
The internet has become almost digital Detroit. If you look hard enough you can find really compelling things there. But if you’re not careful you can get mugged.
Interesting views from a respected source. Nothing overly exciting. Sounds like social will become the most overused word in 2012.
The ‘non’ year. Stepping stones. Grunt. James. Testing. 2011. A retrospective from my perspective.
In January this year, the Brisbane River broke its banks amid dire predictions of the biggest floods to hit Queensland’s capital since 1974. A gentle reminder of how unforgiving mother nature can be. Living in a flood zone, we opted to ship out and shack up. In the warmth and safety of ma and pa’s house we watched our beautiful city drown at the mercy of a swollen river, with king tides on ongoing rain thrown in. We spent a week flipping between TV stations, keeping an eye on the weather radar and tracking updates on the social networks.
When the water receded, around 15,000 homes and business were affected. Luckily, although our street saw a meter of water, we were spared. ABC’s website has some great before and after photos showing the extent of damage through the city.
Set it off.
It was ZHC’s second year in operation and proved to be the most challenging yet.
With optimism at an all time low, we were hit hard with an extremely slow start to the year, aka no work for January and February. This gave us the motivation check ourselves, pull our socks up, hit the think tank, re-invent and tap into new business. We emerged with a website redesign, a new mission statement and overall focus. Something must have worked, for within a month we were back to capacity workloads. Coming up Millhouse as it were.
We made a goal at ZHC to build products which give something back, promote efficiency and generally make the world better.
We set out to release 2 web applications in 2011. Both fit in the ‘productivity’ category and are used daily in our workflow. They are simple tools for people who want to get shit done.
Unfortunately it was not meant to be and neither were launched in 2011. While aware of the common pitfalls of not shipping and the rewards of failing often, we have a strong belief in quality and timing. The apps will see the day of light when we’re ready to give them the support and foundations they deserve. Stay tuned for 2012.
Perhaps the biggest lesson learned for 2011 is sometimes you have to ‘take what you can get’ (sorry Seth). With a twist though, we believe you must make it work for you. In an effort to build new foundations for the company to grow we set firm budgets and goals for income. As long as this was met it was ok to be doing work that didn’t align with us 100%. This required constant evaluation on our leads, often comparing whether a job will be purely for the folio (no money) vs income (mo money), or a little from both. Looking back I’m proud to say we managed a good balance. 70% of work from 2011 won’t make it to the folio, the upside is we made budget every quarter as well as refining our processes.
The projects that will be featured in our folio are Talabgaon Castle’s luxury brand identity (preview) and relaunching Apartment for version 3.0.
And I have to say, peace out to Tre Bartel for another solid year. It’s amazing to work alongside someone who shares your views on many things while having their own reservations, sensibilities and ethics.
It’s also worth noting that we managed to find ourselves a permanent residence this year. A place to call home. Another great milestone. Feels good.
Amidst the good times at the office, the Mackenzie’s added a new member to it’s clan. Proud as punch, on October 5th 2011, named after his great grandfather, James Mackenzie (benny b, jim-on-e-pa), was born. The raddest critter.
<cheese>Being a dad constantly grounds me. I’m super proud of my little ones and I’m thankful to have such a fantastic partner to create and share a family with. New beginnings are amazing and occasional late nights, smelly nappies and random crying don’t compare to the warmth in your heart a little earthling can bring.</cheese>
Hitting the books again this year, I did some hard yards towards expanding my repertoire as a programmer.
Alongside the development of our internal web apps I dove head first into Ruby on Rails (again). I’ve never considered myself a Rails programmer as I mainly just tinkered with experimental apps, none of any real value. This time I had a clear agenda and outcome making each concept more real and tangible. I had to take many steps backward with Rails 3 before getting forward momentum. I kept with and to help me along the way, bought the Agile book (again) and signed up for CodeSchool. Both proved highly useful as did having set goals, and I now have no problem touting myself as a Rails programmer.
Additionally, as a personal hobby I’ve been tinkering with Xcode and Cocoa trying to get my head around iOS applications. It’s a realm I want to move into as I believe there’s a solid future in mobile applications. That said, iOS development is a whole new kettle of fish. Learning without any experience in a C type language has made it difficult, but I now have a fairly good idea of the makings of iOS applications and how various pieces fit together.
If there were an overarching concept I can take away from this year (and probably life in general), it’s that persistence and repetition works. The more you keep jumping into the same problems and experiences the better you’re equipped are to solve them.
2011 was a year of great steps forward and only a few backward (albeit big ones). It was a year marred by a false start, but I believe this was symbolic and set the tone. A year of testing, building, establishing, persisting, growing.
Heres to 2012.
Late last night, inspecting Santa’s handiwork, a simple thought occurred to me. A decade or so from now, when, say, I’m waiting for my son to come home from college for his winter break, and, when he does, he wants to spend his time going out with his friends — how much will I be willing to pay then to be able to go back in time, for one day, to now, when he’s eight years old, he wants to go to movies and play games and build Lego kits with me, and he believes in magic?
How much then, for one day with what my family has right now? How much? Everything.
The truth is, I’m the luckiest person in the world today. I hope you are too.
Summed up my day completely.
(Via Daring Fireball)