Subscribe to RSS Feed

I had issues defining a js template in haml where the attribute was a javascript variable.  Example and solution: Haml kept escaping < & > into &lt; and  &gt; in the following javascript template:   %script( type=”text/html” id=”itemTemplate”) .name( data-id=”\<%= item_id %\>” ) <%= item_name %>   In your Sinatra app you can change this…

Continue Reading »
No Comments

I recently tried getting Backbone.Paginator working with a custom API of mine and was puzzled when I couldn’t get a response after substituting my API url into one of the examples.  The problem is that Backbone.Paginator is designed to be used with JSONP, which makes sense since it”ll likely be used for cross-domain api services….

Continue Reading »
No Comments
Stop buying overpriced cables

When buying cables, one thing to keep in mind is that if you’re using it to transfer digital data, the quality doesn’t matter.  It either works, or it doesn’t.  You’ll absolutely notice any degradation of quality, which was not always so obvious with analog signals.  Mint.com had a great info-graphic and article about it: http://www.mint.com/blog/trends/the-rip1/

Continue Reading »
No Comments

Xbox CD tray jam

November 25, 2011 by
Xbox CD tray jam

My roomie’s Xbox 360 had a CD stuck in it the other day, and I had the delight trying to get the machine to work again. With the jammed CD, the console wouldn’t even boot. We went to the Microsoft forums and found that the solution is to poke a bent paperclip or bobby…

Continue Reading »
No Comments

Recently had an issue of Rmagick gem throwing errors after I upgraded to Lion.  Uninstalling Rmagick, ghostscript, and imagemagick ( ‘brew remove’) then doing a ‘brew update’ and reinstalling everything fixed my problem. I believe this was one of the many issues: https://github.com/mxcl/homebrew/pull/6516  

Continue Reading »
1 Comment