<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>The Tumblog of transatlantic entrepreneur, occasional raconteur, and code-slinger extraordinaire Stevie Graham.

Hit me via stevegraham at tumblr.com</description><title>Swaggadocio</title><generator>Tumblr (3.0; @stevegraham)</generator><link>http://swaggadocio.com/</link><item><title>Harry ‘bent as a nine bob note’ Redknapp reacts...</title><description>&lt;object width="400" height="336"&gt;&lt;param name="movie" value="http://www.youtube.com/v/xJBsI7RAuvk&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="wmode" value="transparent"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/xJBsI7RAuvk&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1" type="application/x-shockwave-flash" width="400" height="336" allowFullScreen="true" wmode="transparent"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Harry ‘bent as a nine bob note’ Redknapp reacts hilariously to being called a ‘wheeler dealer’&lt;/p&gt;
&lt;p&gt;The lady doth protest too much, methinks…&lt;/p&gt;</description><link>http://swaggadocio.com/post/1053808873</link><guid>http://swaggadocio.com/post/1053808873</guid><pubDate>Thu, 02 Sep 2010 17:09:00 +0100</pubDate></item><item><title>work life balance. strike it.</title><description>&lt;img src="http://27.media.tumblr.com/tumblr_l7z05fyvht1qzqoxro1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;work life balance. strike it.&lt;/p&gt;</description><link>http://swaggadocio.com/post/1037104497</link><guid>http://swaggadocio.com/post/1037104497</guid><pubDate>Mon, 30 Aug 2010 15:56:03 +0100</pubDate></item><item><title>NOT GUILTY</title><link>http://swaggadocio.com/post/1020180358</link><guid>http://swaggadocio.com/post/1020180358</guid><pubDate>Fri, 27 Aug 2010 16:38:57 +0100</pubDate></item><item><title>50 Tyson</title><description>&lt;object width="400" height="336"&gt;&lt;param name="movie" value="http://www.youtube.com/v/yM8jrvF5zYs&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="wmode" value="transparent"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/yM8jrvF5zYs&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1" type="application/x-shockwave-flash" width="400" height="336" allowFullScreen="true" wmode="transparent"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;50 Tyson&lt;/p&gt;</description><link>http://swaggadocio.com/post/1010302395</link><guid>http://swaggadocio.com/post/1010302395</guid><pubDate>Wed, 25 Aug 2010 21:07:01 +0100</pubDate></item><item><title>The Palace of Automorphic Delights (2009) - Terry Rodgers</title><description>&lt;img src="http://30.media.tumblr.com/tumblr_l7k9yy0Okm1qzqoxro1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;The Palace of Automorphic Delights (2009) - Terry Rodgers&lt;/p&gt;</description><link>http://swaggadocio.com/post/993199629</link><guid>http://swaggadocio.com/post/993199629</guid><pubDate>Sun, 22 Aug 2010 17:04:09 +0100</pubDate></item><item><title>The Symbol#to_proc myth</title><description>&lt;a href="http://github.com/rails/rails/commit/433d7a26fe4e68f78a2a606f1c1567c0597fc779#comments"&gt;The Symbol#to_proc myth&lt;/a&gt;: &lt;p&gt;Symbol#to_proc performing like a dog is simply just not true anymore.&lt;/p&gt;</description><link>http://swaggadocio.com/post/957293487</link><guid>http://swaggadocio.com/post/957293487</guid><pubDate>Sun, 15 Aug 2010 13:57:00 +0100</pubDate><category>ruby</category><category>symbol</category><category>to_proc</category><category>rails</category></item><item><title>Yeezy’s Versace sofa. So lurid it’s dope.</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_l6u66k0Ssa1qzqoxro1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Yeezy’s Versace sofa. So lurid it’s dope.&lt;/p&gt;</description><link>http://swaggadocio.com/post/922344935</link><guid>http://swaggadocio.com/post/922344935</guid><pubDate>Sun, 08 Aug 2010 14:44:43 +0100</pubDate></item><item><title>Stabby Lambdas &amp; Curried Functions</title><description>&lt;p&gt;Starting a new project at work in Ruby 1.9, I noticed there is a new syntax for creating lambdas:&lt;/p&gt;
&lt;pre class="brush: ruby;"&gt;a = -&gt;(a,b) { a**b }&lt;/pre&gt;
&lt;p&gt;This is equivalent to the conventional&lt;/p&gt;
&lt;pre class="brush: ruby;"&gt;b = lambda { |a,b| a**b }&lt;/pre&gt;
&lt;p&gt;Thus:&lt;/p&gt;
&lt;pre class="brush: ruby;"&gt;a[2,5] == b[2,5]&lt;/pre&gt;
&lt;p&gt;My opinion is split on the aesthetic appeal of this new syntax, sure it’s brief but it’s also &lt;em&gt;erlang-y&lt;/em&gt;. Fortunately it does have a useful feature, i.e. the ability to give default values to block parameter. This is not possible:&lt;/p&gt;
&lt;pre class="brush: ruby;"&gt;lambda { |a,b=2| a**b }&lt;/pre&gt;
&lt;p&gt;This is:&lt;/p&gt;
&lt;pre class="brush: ruby;"&gt;-&gt;(a,b=2) { a**b }&lt;/pre&gt;
&lt;p&gt;Currying, i.e. partial application of functions also appear&lt;/p&gt;
&lt;pre class="irb"&gt;pow = -&gt;(a,b) { a**b }.curry
=&gt; #&lt;Proc:0x00000100b021b8 (lambda)&gt;
square = pow[2]
=&gt; #&lt;Proc:0x00000100aff2b0 (lambda)&gt;
square[2]
=&gt; 4
square[4]
=&gt; 16
square[16]
=&gt; 256
&lt;/pre&gt;
&lt;p&gt;Proc#call has also been aliased as Proc#=== meaning one can use lambdas in case statements… WUUUUUTTT!&lt;/p&gt;
&lt;p&gt;S&lt;/p&gt;</description><link>http://swaggadocio.com/post/918865257</link><guid>http://swaggadocio.com/post/918865257</guid><pubDate>Sat, 07 Aug 2010 20:54:00 +0100</pubDate><category>ruby</category><category>functional programming</category><category>lambda</category><category>proc</category><category>stabby</category><category>currying</category></item><item><title>dopest shit ever… #nohyperbole</title><description>&lt;object width="400" height="336"&gt;&lt;param name="movie" value="http://www.youtube.com/v/L53gjP-TtGE&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="wmode" value="transparent"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/L53gjP-TtGE&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1" type="application/x-shockwave-flash" width="400" height="336" allowFullScreen="true" wmode="transparent"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;dopest shit ever… #nohyperbole&lt;/p&gt;</description><link>http://swaggadocio.com/post/917858802</link><guid>http://swaggadocio.com/post/917858802</guid><pubDate>Sat, 07 Aug 2010 15:48:48 +0100</pubDate></item><item><title>Ruby in Dictionary.app
Dope</title><description>&lt;img src="http://26.media.tumblr.com/tumblr_l6pfsenAaC1qzqoxro1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Ruby in Dictionary.app&lt;/p&gt;
&lt;p&gt;Dope&lt;/p&gt;</description><link>http://swaggadocio.com/post/909999000</link><guid>http://swaggadocio.com/post/909999000</guid><pubDate>Fri, 06 Aug 2010 01:24:14 +0100</pubDate></item><item><title>Taking back my day.
I love the anti-procrastination feature on...</title><description>&lt;img src="http://30.media.tumblr.com/tumblr_l6p05cbEb61qzqoxro1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;strong&gt;Taking back my day.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I love the anti-procrastination feature on &lt;a target="_blank" href="http://news.ycombinator.com/"&gt;Hacker News&lt;/a&gt;. The calibre of engineering and entrepreneurial related content is excellent, so it’s all too easy to spend too much time on there. &lt;/p&gt;
&lt;p&gt;Sidebar: Also I have removed all Twitter and Facebook clients from my computer. I check them once via the respective websites and then logout. The inherent cumbersomeness of this process keeps me from wasting too much time on bullshit.  &lt;/p&gt;
&lt;p&gt;s&lt;/p&gt;</description><link>http://swaggadocio.com/post/908661664</link><guid>http://swaggadocio.com/post/908661664</guid><pubDate>Thu, 05 Aug 2010 19:46:24 +0100</pubDate></item><item><title>Apple’s App Store is a “Warehouse of Shit” -...</title><description>&lt;script src="http://video.bigthink.com/player.js?width=400&amp;embedCode=F5bzRtMTqcyvX4UxNONSuPzRUZLJxNch&amp;height=245&amp;autoplay=0&amp;deepLinkEmbedCode=F5bzRtMTqcyvX4UxNONSuPzRUZLJxNch"&gt;&lt;/script&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Apple’s App Store is a “Warehouse of Shit” - David Heinemeier Hansson&lt;/p&gt;</description><link>http://swaggadocio.com/post/907841035</link><guid>http://swaggadocio.com/post/907841035</guid><pubDate>Thu, 05 Aug 2010 15:39:00 +0100</pubDate></item><item><title>chilling in lisbon</title><description>&lt;img src="http://26.media.tumblr.com/tumblr_l6mwdmU8DJ1qzqoxro1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;chilling in lisbon&lt;/p&gt;</description><link>http://swaggadocio.com/post/903253852</link><guid>http://swaggadocio.com/post/903253852</guid><pubDate>Wed, 04 Aug 2010 16:29:46 +0100</pubDate></item><item><title>I’m going to wallpaper one of the walls in my crib with...</title><description>&lt;img src="http://26.media.tumblr.com/tumblr_l6jhbpThw41qzqoxro1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;I’m going to wallpaper one of the walls in my crib with the &lt;a target="_blank" href="http://en.wikipedia.org/wiki/Hubble_Ultra_Deep_Field"&gt;Hubble Ultra Deep Field&lt;/a&gt;.&lt;/p&gt;</description><link>http://swaggadocio.com/post/894269783</link><guid>http://swaggadocio.com/post/894269783</guid><pubDate>Mon, 02 Aug 2010 20:11:49 +0100</pubDate></item><item><title>Adam Lisagor makes incredible video demonstrations of apps.</title><description>&lt;object width="400" height="336"&gt;&lt;param name="movie" value="http://www.youtube.com/v/v2vpvEDS00o&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="wmode" value="transparent"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/v2vpvEDS00o&amp;rel=0&amp;egm=0&amp;showinfo=0&amp;fs=1" type="application/x-shockwave-flash" width="400" height="336" allowFullScreen="true" wmode="transparent"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a target="_blank" href="http://adamlisagor.com/"&gt;Adam Lisagor&lt;/a&gt; makes incredible video demonstrations of apps.&lt;/p&gt;</description><link>http://swaggadocio.com/post/890457957</link><guid>http://swaggadocio.com/post/890457957</guid><pubDate>Mon, 02 Aug 2010 00:13:35 +0100</pubDate></item><item><title>hermès cardholder
dope</title><description>&lt;img src="http://26.media.tumblr.com/tumblr_l6g7h2W7X41qzqoxro1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;hermès cardholder&lt;/p&gt;
&lt;p&gt;dope&lt;/p&gt;</description><link>http://swaggadocio.com/post/886334467</link><guid>http://swaggadocio.com/post/886334467</guid><pubDate>Sun, 01 Aug 2010 01:46:14 +0100</pubDate></item><item><title>ricky rozay ft yeezy - live fast, die young
this beat is so...</title><description>&lt;embed type="application/x-shockwave-flash" src="http://swaggadocio.com/swf/audio_player.swf?audio_file=http://www.tumblr.com/audio_file/877045455/tumblr_l6cd8zsXYD1qzqoxr&amp;color=FFFFFF" height="27" width="207" quality="best"&gt;&lt;/embed&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;ricky rozay ft yeezy - live fast, die young&lt;/p&gt;
&lt;p&gt;this beat is so RIDICULOUS that when it comes to the instrumental part after ye’s verse I look over both shoulders, and if there is no one there &lt;a target="_blank" href="http://www.youtube.com/watch?v=irb335ThCdo#t=2m20s"&gt;i do this dance…&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;sidebar: j.u.s.t.i.c.e. league are also ill as fuck&lt;/p&gt;</description><link>http://swaggadocio.com/post/877045455</link><guid>http://swaggadocio.com/post/877045455</guid><pubDate>Fri, 30 Jul 2010 00:00:00 +0100</pubDate><category>the beat is so ill</category><category>that i look over both shoulders</category><category>and do a little dance if the coast is clear</category></item><item><title>George Gershwin - Rhapsody in Blue</title><description>&lt;embed type="application/x-shockwave-flash" src="http://swaggadocio.com/swf/audio_player.swf?audio_file=http://www.tumblr.com/audio_file/867320496/tumblr_l68g3ykCcy1qzqoxr&amp;color=FFFFFF" height="27" width="207" quality="best"&gt;&lt;/embed&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;George Gershwin - Rhapsody in Blue&lt;/p&gt;</description><link>http://swaggadocio.com/post/867320496</link><guid>http://swaggadocio.com/post/867320496</guid><pubDate>Tue, 27 Jul 2010 21:11:58 +0100</pubDate></item><item><title>1100 Biscayne Blvd, Miami, FL
3 Bedrooms, 2.5 Bathrooms -...</title><description>&lt;img src="http://29.media.tumblr.com/tumblr_l62rylubmr1qzqoxro1_400.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;&lt;img src="http://26.media.tumblr.com/tumblr_l62rylubmr1qzqoxro2_400.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;&lt;img src="http://24.media.tumblr.com/tumblr_l62rylubmr1qzqoxro3_400.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;&lt;p&gt;1100 Biscayne Blvd, Miami, FL&lt;/p&gt;
&lt;p&gt;3 Bedrooms, 2.5 Bathrooms - $850,000&lt;/p&gt;
&lt;p&gt;Real Estate in Miami is crazy cheap. I’ve seen really nice places for less than $100k. This place for example is fucking huge, try getting a comparable place in London or New York for less than $2 mill. Good luck. If I had the right to reside in the US, I’d be getting a mortgage right now and posting up in Miami.&lt;/p&gt;
&lt;p&gt;Peace&lt;/p&gt;
&lt;p&gt;S&lt;/p&gt;</description><link>http://swaggadocio.com/post/853501220</link><guid>http://swaggadocio.com/post/853501220</guid><pubDate>Sat, 24 Jul 2010 19:42:21 +0100</pubDate></item><item><title>Quick Tip: Ruby Class Definition</title><description>&lt;p&gt;Everyone knows this syntax&lt;/p&gt;
&lt;pre class="brush: ruby;"&gt;class Foo

end&lt;/pre&gt;
&lt;p&gt;This is cleaner when you just need to quickly define an empty class:&lt;/p&gt;
&lt;pre class="brush: ruby;"&gt;Foo = Class.new&lt;/pre&gt;
&lt;p&gt;I’m writing this ActiveRecord compliant in memory model implementation called &lt;a target="_blank" href="http://github.com/stevegraham/Glamazon"&gt;Glamazon&lt;/a&gt; for this secret project I’m on &lt;a target="_blank" href="http://football.picklive.com/"&gt;at work&lt;/a&gt;. I used Class.new’s ability to take a block as the class body to include my library into a testable class, e.g.&lt;/p&gt;
&lt;pre class="brush: ruby;"&gt;Mule = Class.new { include Glamazon::Base }&lt;/pre&gt;
&lt;p&gt;In other Ruby code you might frequently see this used to define error classes:&lt;/p&gt;
&lt;pre class="brush: ruby;"&gt;class SpecialError &lt; StandardError
end&lt;/pre&gt;
&lt;p&gt;This is way cleaner:&lt;/p&gt;
&lt;pre class="brush: ruby;"&gt;SpecialError = Class.new StandardError&lt;/pre&gt;
&lt;p&gt;s&lt;/p&gt;</description><link>http://swaggadocio.com/post/851804788</link><guid>http://swaggadocio.com/post/851804788</guid><pubDate>Sat, 24 Jul 2010 02:13:00 +0100</pubDate><category>ruby</category></item></channel></rss>
