Ember is famously known for its fast-paced release schedule (every 6 weeks) as well as its Rails-like “convention over configuration” approach thing development. Dependency injection was one of the things that saw some upgrade from its old “needs” and “initializer” approaches to the new services approach:
Ray Tiley wrote up an excellent article on the history and upgrade paths from the old style to the new. It’s probably the best article written on this particular subject. The methods mentioned in the article should work for Ember v1.10+ through v2.2.x.
PDF backup of Ray Tiley’s article in case the site/link goes dead.
Update 12/28/2015: Erik Hanchett wrote up a Ember Services Tutorial with some handy information. In addition to covering the new dependency injection service, he also talks about using Websockets.
PDF backup of Erik Hanchett’s article.
McAfee’s AntiMalware product can be a real resource hog for some people. Fortunately there’s a way to simply disable it via the command line. It can then be easily re-enabled the same way.
I made an alias in my profile to take care of that:
alias kill-mcafee='sudo /usr/local/McAfee/AntiMalware/VSControl stopoas'
Re-enabling it is just as easy:
alias unkill-mcafee='sudo /usr/local/McAfee/AntiMalware/VSControl startoas'
It’s a pain in the ass to have to look this up every time I do this. So here it goes:
Install Homebrew versions:
$ brew tap homebrew/versions
Look for the package you need:
That is going to return a list of packages with keywords matching “node”
$ leafnode node node010 node04 node06 node08 nodebrew nodenv
Install the package with the version you need:
$ brew link --overwrite node010
If you find yourself having to integrate an Ember CLI front-end with a Devise driven Rails backend, this is the tutorial for you to checkout.
Archived PDF version of the tutorial in case the blog disappears or the site goes down for any reason.
While googling for some syntax on Ember.js, I came across this incredibly helpful list of “lessons learned” from Landon Noss aptly named “Things I wish someone had told me when I was learning Ember.js“. He documented 28 tips learned from the battlefield. I love lists like that: Concise lessons distilled down to digestible bullet points, enough for others to go through the same troubles and speed up the learning curve. Kudos to Landon for the awesome list.
Just in case the article, the link or the site disappears, here’s a PDF version I generated for safekeeping.
One of RubyMine’s strongest features is its debugging tool. But it’s always been finicky to get it working for me. I finally got it to work since upgrading to Ruby 2.1.x. The situation was complicated by Ruby 2.x not yet supported by
debugger gem… etc.
To get everything to sing in harmony, here’s what I used:
And that was it!
Here’s a PDF backup of the article just in case the site or URL goes blind. You can’t be too safe!
Mac OSX Yosemite became publicly available today. Since my Mac is in-between projects, I decided to take a chance and upgrade.
I ran into three problems for my Ruby on Rails set up:
Other than those 3 things, pretty much everything else has worked as-is out of the box. I enjoy the crisp look of the fonts and icons in the new OS. And hopefully nothing crazy will happen going forward.
Chef is a great tool. I really love it. But to take full advantage of it, you need a Chef server (either build one yourself or have it hosted with Opscode (which we did at my last job). For small businesses and/or personal server(s) of very small scale (I’d suggest up to 3 to 5 servers at most), a nifty tool like LittleChef can really be quite useful. But if servers you manage ever grows more than a handful, I’d highly recommend hosted service like Chef to keep your sanity.
PHP was the first programming language I learned. But Ruby has been the language that I love. One of the patterns Ruby champions is the idea of Duck Typing. It’s a great way to avoid using