Skip to main content

Ben Cromwell

REST URL schemes in Ember

In Ember, the default is for the name of your model corresponds to a REST route of the same name. So what happens when you’re using hyphens in the URL? You can’t name your model to match, but the solution is quite simple, although it did take me a lot of searching before finding it. App.Store = DS.Store.extend({ revision: 1, adapter: DS.RESTAdapter.extend({ namespace: 'api', pathForType: function (type) { return Ember.String.dasherize(type); } }) }); More info on connecting to an HTTP server in Ember is here.

CVs

Style over substance may be a common phrase but frequently CVs possess neither. Layout Inconsistencies make CVs difficult to scan read. Sure, it’s not going to be a work of art (unless you’re a designer of some sort, in which case it should be: show off your talents) but it should be set out neatly and consistently. Fluff Don’t over-generalize. If you’re applying for “Widget Developer” and you list “Widget development” under the responsibilities in your employment history, that doesn’t tell anyone anything.

Qualitative vs quantitative experience

Frequently, companies will specify in job adverts that a potential candidate must have an arbitrary number of years’ experience. Such requirements amuse me, as the experience metric is flawed. For me, it shows a lack of understanding and a lack of thought. For the purposes of analogy, take football as an example. After an arbitrary five years, a player at a Premier League club is is going to have far greater experience in real terms than someone playing in League 2.

Tweaking Twitter with Firefox

A lesser known feature of Firefox, is its facility to allow the user to write custom CSS and have it apply to particular websites. userContent.css resides in your Firefox profile, under the chrome directory. Open it with a text editor and you can play around. Here’s a few very basic alterations for the new Twitter: @-moz-document url-prefix("http://twitter.com/") { //hide promoted tweets, and the favourites & lists areas in the sidebar .

Quick and easy translations with Firefox & Google

Google Translate has the following URL format: http://translate.google.com/#de|en|%s Where “de” is the language you’re translating from, “en” is the language you’re translating to, and “%s” represents the string to translate. This makes it very easy to create Firefox Quicksearches for various translations. You can find the short code for the language you want by changing the selected languages below the text area. When you select a different language and click off the drop down box the URL will update.