I'm a member of the copyleft FAT Lab and study the internet at Rocketboom
I also teach the Internet Famous Class at Parsons, where your grade depends on your online popularity.
As seen on
NBC,
TIME,
CurrentTV,
Gawker,
BuzzFeed
, ArtNews
posts tagged 'programming'

Been neck-deep in Ruby on Rails the last few months, here’s my first nugget o’ code wisdom:
With unobtrusive javascript all of my Rails views may or may not be getting called via AJAX. Adding “:layout => :false if request.xhr?” all the time was bad code smell.
Here’s a 4 liner to extend the ‘render’ method and check if the view, partial, EJS etc. are being called via an XmlHttpRequest, in which case we want to ignore the layout unless explicitly asked to. Throw it in your ApplicationController and degrade away!
def render(*args)
args.first[:layout] = false if request.xhr? and args.first[:layout].nil?
super
end
Might package this little guy into a plugin I find it so handy
Suitable out-of-box in a myriad of programming languages, web friendly, translate your web app today!
This is the 15 we do at Rocketboom... plus a few others.
Update: Chinese, Portuguese, and Japanese were incorrect. Also I spelled Portuguese wrong, peço desculpa_.
'en => 'English', #American 'es' => 'español', #Spanish 'fr' => 'français', #French 'de' => 'Deutsch', #German 'pt' => 'português', #Portuguese 'nl' => 'Nederlands', #Dutch 'se' => 'Svenska', #Swedish 'no' => 'Norsk', #Norwegian 'po' => 'polski', #Polish 'dk' => 'dansk', #Danish 'fi' => 'suomi', #Finnish 'zh' => '中文', # chinese 'ja' => '日本語', # japanese 'ko' => '한국어', # korean 'in' => 'हिन्दी' => #hindu (india) 'ar' => 'العربية', # arabic 'fa' => '(fārsī)' => #persian (farsi) 'il' => 'עברית / עִבְרִית', #Hebrew 'ru' => 'Русский язык', #russian 'cz' => 'čeština', #czech 'ro' => 'română, #romanian 'eo => 'Esperanto', 'x-klingon' => 'tlhIngan', 'x-leet' => '31337' # don't ask
Reconciled from: