<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>Ruby, Javascript, Coffeescript, Development Processes and Coffee. Not necessarily in that order. xoxo</description><title>DerekBender.me</title><generator>Tumblr (3.0; @djbender)</generator><link>http://derekbender.me/</link><item><title>"The corn city central
is where we play
corn city central
fructose all day
run that ball, plow that..."</title><description>“The corn city central&lt;br/&gt;
is where we play&lt;br/&gt;
corn city central&lt;br/&gt;
fructose all day&lt;br/&gt;
run that ball, plow that field&lt;br/&gt;
all the sugars is what we yield”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;This hymnal of corn , brought to you by &lt;a href="//chefkittie.com" target="_blank"&gt;chefkittie.com&lt;/a&gt;.&lt;/em&gt;</description><link>http://derekbender.me/post/21342966020</link><guid>http://derekbender.me/post/21342966020</guid><pubDate>Wed, 18 Apr 2012 16:45:00 -0500</pubDate></item><item><title>How Not To Sort By Average Rating</title><description>&lt;a href="http://evanmiller.org/how-not-to-sort-by-average-rating.html"&gt;How Not To Sort By Average Rating&lt;/a&gt;: &lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;PROBLEM&lt;/strong&gt;: You are a web programmer. You have users. Your users rate stuff on your site. You want to put the highest-rated stuff at the top and lowest-rated at the bottom. You need some sort of “score” to sort by.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The solution:&lt;/p&gt;
&lt;blockquote&gt;&lt;img align="middle" alt="lolmath" height="64" src="http://evanmiller.org/rating-equation.png" width="460"/&gt;&lt;/blockquote&gt;
&lt;p&gt;Algorithm discussed and a Ruby implementation provided! Love this sort of applied statistics. Discussion in link below on HN.&lt;/p&gt;</description><link>http://derekbender.me/post/20410032579</link><guid>http://derekbender.me/post/20410032579</guid><pubDate>Tue, 03 Apr 2012 10:19:39 -0500</pubDate><category>algorithm</category><category>ruby</category><category>statistics</category><category>average rating</category></item><item><title>Unsecured Mass Assignment is Bad</title><description>&lt;p&gt;&lt;div&gt;A slew of github gists. I don&amp;#8217;t understand why people don&amp;#8217;t make these blog posts, I can only imagine the traffic they&amp;#8217;re getting. Embedding gists is easy.&lt;/div&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href="https://gist.github.com/1975738" target="_blank"&gt;Homakov shows us how he was able to compromise Github.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://gist.github.com/1976133" target="_blank"&gt;Jbarnette shows us how to make your Rails app warn on ActiveRecord::Base#update_attributes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://gist.github.com/1974187" target="_blank"&gt;Wycats creates a Proposal for Improving Mass Assignment&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://gist.github.com/1975644" target="_blank"&gt;DHH on how 37signals commonly avoids Mass Assignment vulnerabilities. &lt;/a&gt;Should be used in addition to attr_accessible.&lt;/li&gt;
&lt;/ul&gt;&lt;/p&gt;</description><link>http://derekbender.me/post/18915042658</link><guid>http://derekbender.me/post/18915042658</guid><pubDate>Wed, 07 Mar 2012 15:06:31 -0600</pubDate><category>ruby</category><category>rails</category><category>mass assignment</category><category>vulnderability</category><category>security</category></item><item><title>The 10 Rules of a Zen Programmer</title><description>&lt;a href="http://www.grobmeier.de/the-10-rules-of-a-zen-programmer-03022012.html"&gt;The 10 Rules of a Zen Programmer&lt;/a&gt;: &lt;p&gt;Seriously Zen. Topics include:&lt;/p&gt;
&lt;blockquote&gt;&lt;ol&gt;&lt;li&gt;Focus&lt;/li&gt;
&lt;li&gt;Keep your mind clean&lt;/li&gt;
&lt;li&gt;Beginners mind&lt;/li&gt;
&lt;li&gt;No ego&lt;/li&gt;
&lt;li&gt;There is no career goal&lt;/li&gt;
&lt;li&gt;Shut up&lt;/li&gt;
&lt;li&gt;Mindfulness. Care. Awareness&lt;/li&gt;
&lt;li&gt;There is no boss&lt;/li&gt;
&lt;li&gt;Do something else&lt;/li&gt;
&lt;li&gt;There is nothing special&lt;/li&gt;
&lt;/ol&gt;&lt;/blockquote&gt;
&lt;p&gt;I already see myself improving from some of these values.&lt;/p&gt;</description><link>http://derekbender.me/post/18644991600</link><guid>http://derekbender.me/post/18644991600</guid><pubDate>Fri, 02 Mar 2012 22:14:42 -0600</pubDate><category>zen</category><category>coding</category><category>programmer</category></item><item><title>Rails Went Off The Rails: Why I&amp;#8217;m Rebuilding Archaeopteryx In CoffeeScript 
What’s the waiter...</title><description>&lt;p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://gilesbowkett.blogspot.in/2012/02/rails-went-off-rails-why-im-rebuilding.html" target="_blank"&gt;Rails Went Off The Rails: Why I&amp;#8217;m Rebuilding Archaeopteryx In CoffeeScript&lt;/a&gt; &lt;iframe frameborder="0" height="17" scrolling="no" src="http://www.instapaper.com/e2?url=http://gilesbowkett.blogspot.in/2012/02/rails-went-off-rails-why-im-rebuilding.html&amp;amp;title=Rails%20Went%20Off%20The%20Rails:%20Why%20I'm%20Rebuilding%20Archaeopteryx%20In%20CoffeeScript" width="78"&gt;&lt;/iframe&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://javlaskitsystem.se/2012/02/whats-the-waiter-doing-with-the-computer-screen/" target="_blank"&gt;What’s the waiter doing with the computer screen?&lt;/a&gt; &lt;iframe frameborder="0" height="17" scrolling="no" src="http://www.instapaper.com/e2?url=http://javlaskitsystem.se/2012/02/whats-the-waiter-doing-with-the-computer-screen/&amp;amp;title=Whats%20the%20waiter%20doing%20with%20the%20computer%20screen?" width="78"&gt;&lt;/iframe&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/jfirebaugh/skim" target="_blank"&gt;Skim&lt;/a&gt; Fat-free client-side templates with Slim and CoffeeScript&lt;/li&gt;
&lt;li&gt;&lt;a href="http://railsapps.github.com/" target="_blank"&gt;“Crazy Deep” Rails 3.2 Example Apps and Tutorials&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/moviepilot/chaplin" target="_blank"&gt;Chaplin&lt;/a&gt; - &amp;#8220;Chaplin is an example architecture for JavaScript applications using the Backbone.js library. The code is derived from moviepilot.com, a large single-page application.&amp;#8221;&lt;/li&gt;
&lt;/ul&gt;&lt;/p&gt;</description><link>http://derekbender.me/post/18198528510</link><guid>http://derekbender.me/post/18198528510</guid><pubDate>Fri, 24 Feb 2012 13:00:06 -0600</pubDate></item><item><title>Mou</title><description>&lt;p&gt;&lt;a href="http://static.tumblr.com/qjueruy/XhBlubjzj/screen_shot_2011-11-07_at_7.48.33_pm.png" target="_blank"&gt;&lt;img src="http://media.tumblr.com/tumblr_lubjusczMX1qzwieh.png" alt="Mou"/&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you use &lt;a href="http://daringfireball.net/projects/markdown/" target="_blank"&gt;Markdown&lt;/a&gt;, stop what you&amp;#8217;re doing and check out &lt;a href="http://mouapp.com" target="_blank"&gt;Mou&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Biggest features is as you type preview window, but it&amp;#8217;s full of awesome features like custom color themes, fullscreen mode, and exporting to html.&lt;/p&gt;</description><link>http://derekbender.me/post/12512478811</link><guid>http://derekbender.me/post/12512478811</guid><pubDate>Tue, 08 Nov 2011 08:37:00 -0600</pubDate></item><item><title>Converting flac to alac using ffmpeg</title><description>&lt;p&gt;In my &lt;a href="http://derekbender.me/post/11946893232/bash-one-liner-to-convert-a-directory-of-flac-audio" target="_blank"&gt;last post&lt;/a&gt; I showed how to convert flac to mp3 using the lame encoder. In this post, I&amp;#8217;ll show how to convert your flac audio files to alac (Apple Lossless Audio Codec). The main reason to convert flac to alac is to preserve lossless audio files in iTunes and even play them on your iPod/iPhone, &lt;em&gt;natively&lt;/em&gt;. All that you need is to install &lt;a href="http://ffmpeg.org/" target="_blank"&gt;ffmpeg&lt;/a&gt;, via &lt;a href="http://mxcl.github.com/homebrew/" target="_blank"&gt;Homebrew&lt;/a&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ brew install --use-gcc ffmpeg
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This can take a couple minutes as it installs all of its dependencies and compiles. Note that the &lt;code&gt;--use-gcc&lt;/code&gt; flag is used because as of this writing ffmpeg does not compile with LLVM, and there are &lt;a href="https://github.com/mxcl/homebrew/issues/7780" target="_blank"&gt;several&lt;/a&gt; &lt;a href="https://github.com/mxcl/homebrew/issues/8456" target="_blank"&gt;issues&lt;/a&gt; &lt;a href="https://github.com/mxcl/homebrew/issues/8494" target="_blank"&gt;already&lt;/a&gt; open about it.&lt;/p&gt;

&lt;p&gt;And then to change a directory full of flac files to alac, run this bash one-liner:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ for file in *.flac; do ffmpeg -i "$file" -acodec alac "`basename "$file" .flac`.m4a"; done;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This process didn&amp;#8217;t take long at all. It appears that there isn&amp;#8217;t any transcoding happening, more likely just a repackaging of data.&lt;/p&gt;

&lt;p&gt;I found several other solutions of interest like &lt;a href="http://code.google.com/p/flukeformac/" target="_blank"&gt;Fluke&lt;/a&gt; to play flac files in iTunes but you would still need to convert them inside iTunes to alac, and, as of this writing, Fluke does not work with iTunes on OS X 10.7 (Lion) in 64-bit mode. You can how ever bypass that by running iTunes in 32-bit mode.&lt;/p&gt;

&lt;p&gt;Another tool I found was &lt;a href="http://tmkk.pv.land.to/xld/index_e.html" target="_blank"&gt;XLD&lt;/a&gt; but I did not test this option since the ffmpeg option was so simple and easy.&lt;/p&gt;</description><link>http://derekbender.me/post/12493684319</link><guid>http://derekbender.me/post/12493684319</guid><pubDate>Mon, 07 Nov 2011 19:45:00 -0600</pubDate><category>music</category><category>flac</category><category>alac</category><category>apple lossless audio codec</category><category>lossless</category><category>ffmpeg</category><category>apple lossless</category><category>bash</category><category>cli</category><category>homebrew</category></item><item><title>Bash one-liner to convert a directory of flac audio files to mp3 V0</title><description>&lt;pre&gt;&lt;code&gt;$ for file in *.flac; do flac -cd "$file" | lame -h -V0 - "${file%.flac}.mp3"; done&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;V0 just because `-b 320` can be rather silly.&lt;/p&gt;



&lt;p&gt;On a Mac using &lt;a title="Homebrew" target="_blank" href="http://mxcl.github.com/homebrew/"&gt;Homebrew&lt;/a&gt;, just do the following:&lt;/p&gt;



&lt;blockquote&gt;&#13;
&lt;p&gt;brew install lame flac&lt;/p&gt;&#13;
&lt;/blockquote&gt;</description><link>http://derekbender.me/post/11946893232</link><guid>http://derekbender.me/post/11946893232</guid><pubDate>Wed, 26 Oct 2011 07:00:00 -0500</pubDate><category>bash</category><category>cli</category><category>flac</category><category>mp3</category><category>music</category><category>homebrew</category></item><item><title>"The reason I don’t have a plan is because if I have a plan I’m limited to today’s options."</title><description>“The reason I don’t have a plan is because if I have a plan I’m limited to today’s options.”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;&lt;p&gt;&lt;a href="http://www.newyorker.com/reporting/2011/07/11/110711fa_fact_auletta#ixzz1R9R7XLbw" target="_blank"&gt;Sheryl Sandberg profiled in The New Yorker&lt;/a&gt; (via &lt;a href="http://blog.garychou.com/" target="_blank"&gt;garychou&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;100% agree. It’s the same reason why I don’t like to schedule meetings in advance. I much prefer to do them on the fly because there are a million variables in a day that change constantly.&lt;/p&gt;
&lt;p&gt;What appears to be organization is actually just a restriction on the most valuable thing in the world: time. &lt;/p&gt;&lt;/em&gt;</description><link>http://derekbender.me/post/9488790071</link><guid>http://derekbender.me/post/9488790071</guid><pubDate>Sat, 27 Aug 2011 23:32:26 -0500</pubDate><category>time management</category><category>meetings</category><category>lifehack</category><category>planning</category><category>time</category></item><item><title>Reblogged for truth! Why settle for anything...</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_lq3jujxEMM1qz6pqio1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Reblogged for truth! Why settle for anything less? &lt;/p&gt;
&lt;p&gt;&lt;a href="http://onceuponamanda.tumblr.com/post/9057373480" target="_blank"&gt;onceuponamanda&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;If I could hug a quote, I would.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://startupquote.com/post/9057337917" target="_blank"&gt;startupquote&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Your work is going to fill a large part of your life, and the only way to be truly satisfied is to do what you believe is great work. And the only way to do great work is to love what you do.&lt;/p&gt;
&lt;p&gt;- Steve Jobs&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/blockquote&gt;</description><link>http://derekbender.me/post/9057745065</link><guid>http://derekbender.me/post/9057745065</guid><pubDate>Wed, 17 Aug 2011 19:06:41 -0500</pubDate><category>Steve Jobs</category><category>love</category><category>passion</category><category>work</category><category>job</category><category>attitude</category></item><item><title>Matt explains why you should keep your SSH keys on a new installation</title><description>Matt J.: it's like you have a specific call that you use to bring your falcon back to your arm&lt;br /&gt;&#13;
Matt J.: but then you go and buy a new jeep to get to the aviary&lt;br /&gt;&#13;
Matt J.: just because you have a new jeep, your falcon doesnt need a new call&lt;br /&gt;&#13;
Matt J.: he still knows the same call</description><link>http://derekbender.me/post/8952084328</link><guid>http://derekbender.me/post/8952084328</guid><pubDate>Mon, 15 Aug 2011 09:36:59 -0500</pubDate></item><item><title>giant robots smashing into other giant robots: 2011 Rubyist's guide to a Mac OS X development environment</title><description>&lt;a href="http://robots.thoughtbot.com/post/8700977975"&gt;giant robots smashing into other giant robots: 2011 Rubyist's guide to a Mac OS X development environment&lt;/a&gt;: &lt;p&gt;&lt;a href="http://robots.thoughtbot.com/post/8700977975" target="_blank"&gt;thoughtbot-giantrobots&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;It’s been &lt;a href="http://robots.thoughtbot.com/post/159805668/2009-rubyists-guide-to-a-mac-os-x-development" target="_blank"&gt;two and a half years&lt;/a&gt; since my last laptop. It’s neat to look back and see how much has improved since then for setting up a Ruby development environment.&lt;/p&gt;
&lt;p&gt;Of particular note, Homebrew, RVM, and Bundler did not exist back then.&lt;/p&gt;
&lt;p&gt;Here’s how I set up an OS X 10.7 (Lion) thoughtbot laptop…&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://derekbender.me/post/8951379200</link><guid>http://derekbender.me/post/8951379200</guid><pubDate>Mon, 15 Aug 2011 09:04:28 -0500</pubDate><category>ruby</category><category>laptop</category><category>mac os x</category><category>os x lion</category><category>rvm</category><category>bundler</category><category>xcode</category><category>install</category><category>rails</category></item><item><title>About this video:

In early 1984 the Imagine team were working...</title><description>&lt;iframe width="400" height="299" src="http://www.youtube.com/embed/Yt9BsZCifgU?wmode=transparent&amp;autohide=1&amp;egm=0&amp;hd=1&amp;iv_load_policy=3&amp;modestbranding=1&amp;rel=0&amp;showinfo=0&amp;showsearch=0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;About this video:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;In early 1984 the Imagine team were working on a spectacular project known as Bandersnatch. The game was to come in an A4 sized box containing around 30 ‘goodies’ including a required additional piece of hardware for your Spectrum computer. The retail price of Bandersnatch was expected to be around £40 and it was to be a completely new concept in computer games. Apparently 10 professional artists were working on the graphics alone. Bandersnatch was never released. On the 9th of July 1984, Imagine went bust after only 18 months of operation. Interestingly, its demise was documented by a BBC television program.&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;span&gt;This is an incredible piece of game industry history. A must watch.&lt;/span&gt;&lt;/p&gt;</description><link>http://derekbender.me/post/8386349842</link><guid>http://derekbender.me/post/8386349842</guid><pubDate>Tue, 02 Aug 2011 10:39:00 -0500</pubDate><category>game development</category><category>programming</category><category>nostalgia</category></item><item><title>kung fu grippe: The (Imperfect) Art of Sending Sensitive Stuff</title><description>&lt;a href="http://www.kungfugrippe.com/post/3786441300/dbox-trick"&gt;kung fu grippe: The (Imperfect) Art of Sending Sensitive Stuff&lt;/a&gt;: &lt;p&gt;&lt;a href="http://www.kungfugrippe.com/post/3786441300/dbox-trick" target="_blank"&gt;merlin&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a href="http://www.practicallyefficient.com/2011/03/11/securer-file-sharing-with-dropbox/" target="_blank"&gt;Securer file sharing with Dropbox « practically efficient&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;ul&gt;&lt;li&gt;Zip your files &lt;/li&gt;
&lt;li&gt;Put the zip file in your Dropbox ‘Public’ folder &lt;/li&gt;
&lt;li&gt;Email the file link, not the file &lt;/li&gt;
&lt;/ul&gt;&lt;/blockquote&gt;
&lt;p&gt;Great advice on sending sensitive stuff via &lt;a href="http://www.dropbox.com/" target="_blank"&gt;Dropbox&lt;/a&gt; . And pretty close to what I do. With this handful of paranoid additions…&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://derekbender.me/post/3848020745</link><guid>http://derekbender.me/post/3848020745</guid><pubDate>Sun, 13 Mar 2011 22:44:42 -0500</pubDate></item></channel></rss>

