<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>This is the Green Room &#187; Data</title>
	<atom:link href="http://www.thisisthegreenroom.com/category/data/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thisisthegreenroom.com</link>
	<description>in stereo where available</description>
	<lastBuildDate>Tue, 07 Feb 2012 21:43:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<cloud domain='www.thisisthegreenroom.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>Data does not make decisions</title>
		<link>http://www.thisisthegreenroom.com/2012/data-does-not-make-decisions/</link>
		<comments>http://www.thisisthegreenroom.com/2012/data-does-not-make-decisions/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 21:29:14 +0000</pubDate>
		<dc:creator>J</dc:creator>
				<category><![CDATA[Data]]></category>
		<category><![CDATA[gets it]]></category>

		<guid isPermaLink="false">http://www.thisisthegreenroom.com/?p=4517</guid>
		<description><![CDATA[Darren Herman gets it: This is important.  Data alone does not make decisions. An organization built for the next century is one who has to be able to wonk through large datasets, find insights and action them.  Just having data alone is not a winning proposition.  It’s the application of data, the extrapolation, and understanding that [...]]]></description>
			<content:encoded><![CDATA[<p></p><div class="googlePlusOneButton"><g:plusone href="http://www.thisisthegreenroom.com/2012/data-does-not-make-decisions/"  size="small"   annotation="none"  ></g:plusone></div><p>Darren Herman <a href="http://www.darrenherman.com/2012/02/07/data-alone-is-not-a-winning-proposition/">gets it</a>:</p>
<blockquote><p>This is important.  <strong>Data alone does not make decisions.</strong></p>
<p>An organization built for the next century is one who has to be able to wonk through large datasets, find insights and action them.  Just having data alone is not a winning proposition.  It’s the application of data, the extrapolation, and understanding that will lead to competitive differentiation.</p></blockquote>
<p>(Emphasis his.)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thisisthegreenroom.com/2012/data-does-not-make-decisions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I can chartjunk and so can you!</title>
		<link>http://www.thisisthegreenroom.com/2012/i-can-chartjunk-and-so-can-you/</link>
		<comments>http://www.thisisthegreenroom.com/2012/i-can-chartjunk-and-so-can-you/#comments</comments>
		<pubDate>Mon, 06 Feb 2012 16:46:32 +0000</pubDate>
		<dc:creator>J</dc:creator>
				<category><![CDATA[Data]]></category>

		<guid isPermaLink="false">http://www.thisisthegreenroom.com/?p=4513</guid>
		<description><![CDATA[Here's a brilliant post by Andrew Gelman, highlighting a tutorial that will actually destroy information in 25 steps, allowing you (yes, you!) to create this anti-masterpiece: People who treat chartjunk infographics as real data visualizations should be redirected to a GeoCities archive every time they access Wikipedia.]]></description>
			<content:encoded><![CDATA[<p></p><div class="googlePlusOneButton"><g:plusone href="http://www.thisisthegreenroom.com/2012/i-can-chartjunk-and-so-can-you/"  size="small"   annotation="none"  ></g:plusone></div><p><a href="http://andrewgelman.com/2012/02/turn-a-boring-bar-graph-into-a-3d-masterpiece/">Here's a brilliant post</a> by Andrew Gelman, highlighting a tutorial that will actually destroy information in 25 steps, allowing you (yes, you!) to create this <a href="http://vector.tutsplus.com/tutorials/designing/turn-a-boring-bar-graph-into-a-3d-masterpiece/">anti-masterpiece</a>:</p>
<p><img class="alignnone" title="ChartJunk" src="http://dsmy2muqb7t4m.cloudfront.net/tuts/69_Quality_Bar/Picture-26.jpg" alt="" width="600" height="518" /></p>
<p>People who treat chartjunk infographics as real data visualizations should be redirected to a GeoCities archive every time they access Wikipedia.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thisisthegreenroom.com/2012/i-can-chartjunk-and-so-can-you/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook au lait</title>
		<link>http://www.thisisthegreenroom.com/2012/facebook-au-lait/</link>
		<comments>http://www.thisisthegreenroom.com/2012/facebook-au-lait/#comments</comments>
		<pubDate>Sun, 05 Feb 2012 17:48:04 +0000</pubDate>
		<dc:creator>J</dc:creator>
				<category><![CDATA[Data]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.thisisthegreenroom.com/?p=4503</guid>
		<description><![CDATA[The NYT's Bits section, which up until now I thought was doing a wonderful job of evolving technology reporting to a higher, "post-blog" level, has left me stunned with a bizarre editorial in which the author requests compensation for his contribution to Facebook's success. Is it just a tongue-in-cheek opinion designed to attract eyeballs and -- yes [...]]]></description>
			<content:encoded><![CDATA[<p></p><div class="googlePlusOneButton"><g:plusone href="http://www.thisisthegreenroom.com/2012/facebook-au-lait/"  size="small"   annotation="none"  ></g:plusone></div><p>The NYT's Bits section, which up until now I thought was doing a wonderful job of evolving technology reporting to a higher, "post-blog" level, has left me stunned with a <a href="http://www.nytimes.com/2012/02/05/opinion/sunday/facebook-is-using-you.html?_r=1&amp;hp&amp;pagewanted=all">bizarre editorial</a> in which the author requests compensation for his contribution to Facebook's success.</p>
<p>Is it just a tongue-in-cheek opinion designed to attract eyeballs and -- yes -- goad bloggers into responding? Probably. But it inadvertently highlights how seriously people are taking the alien business of social networking -- so seriously, in fact, that as usual they appear unable to understand it at all.</p>
<p>Take, for example, this opinion:</p>
<blockquote><p>“The idea that a business benefits from social interaction is not so strange or new. A lot of cafes and small restaurants will let people hang out because they attract other people,” said Yannis M. Ioannides, a professor of economics at Tufts University. “What is unusual and new is that Facebook takes access to information about these people to make its business more powerful.” He added: “The proprietor of a cafe doesn’t use personal information about me and my friends to make money.”</p></blockquote>
<p>Really? Cafes don't use your personal information to make money? Find me a cafe that doesn't tailor its menu, prices, inventory, background music, specials, wifi, tables arrangement, etc. etc. based on the interests of its customers. Tell me that Starbucks has never once run a focus group (yes, Internet, there actually was A/B testing before there were computers). My preferred cafes in New York are those where the people behind the counter greet me by name and have my order ready before I have a chance to ask for it.</p>
<p>The difference between Facebook and your average cafe isn't that the experience (and more importantly, the key inventory) is tailored to the customer; it's that Facebook's inventory is virtual (unlimited) and their profit margins are insane. The fact that user-created content draws people in is no different than a cafe hanging paintings by local artists, or people being attracted to busy establishments. The social aspect, as the professor does point out, is not new. And therefore (among other reasons), the op-ed's entire point -- that because the author contributed to the social aspect, he deserves compensation -- is absolutely ridiculous.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thisisthegreenroom.com/2012/facebook-au-lait/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>High tech&#039;s hottest calling</title>
		<link>http://www.thisisthegreenroom.com/2012/high-techs-hottest-calling/</link>
		<comments>http://www.thisisthegreenroom.com/2012/high-techs-hottest-calling/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 23:45:26 +0000</pubDate>
		<dc:creator>J</dc:creator>
				<category><![CDATA[Data]]></category>
		<category><![CDATA[Math]]></category>

		<guid isPermaLink="false">http://www.thisisthegreenroom.com/?p=4480</guid>
		<description><![CDATA[The NYT's Bits blog has a new post on "high tech’s hottest calling:" statistical analysis. The article isn't just about the jobs market, focusing as well on students' increased demand for statistics classes at top universities. The opening anecdote will be familiar to anyone in the field: “Most of my life I went to parties [...]]]></description>
			<content:encoded><![CDATA[<p></p><div class="googlePlusOneButton"><g:plusone href="http://www.thisisthegreenroom.com/2012/high-techs-hottest-calling/"  size="small"   annotation="none"  ></g:plusone></div><p>The NYT's Bits blog has a <a href="http://bits.blogs.nytimes.com/2012/01/26/what-are-the-odds-that-stats-would-get-this-popular/?pagewanted=all">new post</a> on "high tech’s hottest calling:" statistical analysis. The article isn't just about the jobs market, focusing as well on students' increased demand for statistics classes at top universities.</p>
<p>The opening anecdote will be familiar to anyone in the field:</p>
<blockquote><p>“Most of my life I went to parties and heard a little groan when people heard what I did,” says Robert Tibshirani, a statistics professor at Stanford University. “Now they’re all excited to meet me.”</p></blockquote>
<p>But the observation that follows it is quite serious:</p>
<blockquote><p>Computing has become cheap and available enough to process any number of formulas.... What no one has are enough people to figure out the valuable patterns that lie inside the data.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.thisisthegreenroom.com/2012/high-techs-hottest-calling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&quot;Big Data&quot; is meaningless</title>
		<link>http://www.thisisthegreenroom.com/2012/big-data-is-meaningless/</link>
		<comments>http://www.thisisthegreenroom.com/2012/big-data-is-meaningless/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 15:40:08 +0000</pubDate>
		<dc:creator>J</dc:creator>
				<category><![CDATA[Data]]></category>
		<category><![CDATA[gets it]]></category>

		<guid isPermaLink="false">http://www.thisisthegreenroom.com/?p=4459</guid>
		<description><![CDATA[Roger Ehrenberg gets it: Every so often a term becomes so beloved by media that it moves from “instructive” to “hackneyed” to “worthless,” and Big Data is one of those terms.... Every business generates data, but it is a far smaller number that view data as a strategic asset that is actively managed for the benefit [...]]]></description>
			<content:encoded><![CDATA[<p></p><div class="googlePlusOneButton"><g:plusone href="http://www.thisisthegreenroom.com/2012/big-data-is-meaningless/"  size="small"   annotation="none"  ></g:plusone></div><p>Roger Ehrenberg <a href="http://informationarbitrage.com/post/16121669634/whats-the-big-deal-about-big-data">gets it</a>:</p>
<blockquote><p>Every so often a term becomes so beloved by media that it moves from “instructive” to “hackneyed” to “worthless,” and Big Data is one of those terms....</p>
<p>Every business generates data, but it is a far smaller number that view data as a strategic asset that is actively managed for the benefit of their customers and the bottom line....</p>
<p>Whether the data is big, small, fast, slow, structured or unstructured, everything that is going on now is attempting to do one thing: <strong>making data smart and actionable</strong>.</p></blockquote>
<p>[Emphasis his.]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thisisthegreenroom.com/2012/big-data-is-meaningless/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stanley Kubrick: data scientist?</title>
		<link>http://www.thisisthegreenroom.com/2012/stanley-kubrick-data-scientist/</link>
		<comments>http://www.thisisthegreenroom.com/2012/stanley-kubrick-data-scientist/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 05:28:08 +0000</pubDate>
		<dc:creator>J</dc:creator>
				<category><![CDATA[Data]]></category>

		<guid isPermaLink="false">http://www.thisisthegreenroom.com/?p=4443</guid>
		<description><![CDATA[Here's a fascinating essay by Mike Kaplan, who oversaw marketing for the movies 2001 and A Clockwork Orange, which explains how Stanley Kubrick became one of the first commercial data scientists. In 1971, as Kaplan and Kubrick were trying to determine which theaters should show the new movie, they realized that Variety published box office totals for individual cinemas in [...]]]></description>
			<content:encoded><![CDATA[<p></p><div class="googlePlusOneButton"><g:plusone href="http://www.thisisthegreenroom.com/2012/stanley-kubrick-data-scientist/"  size="small"   annotation="none"  ></g:plusone></div><p>Here's a <a href="http://news.moviefone.com/mike-kaplan/stanley-kubrick-box-office_b_1195323.html?ref=moviefone">fascinating essay</a> by Mike Kaplan, who oversaw marketing for the movies <em>2001 </em>and <em>A Clockwork Orange</em>, which explains how Stanley Kubrick became one of the first commercial data scientists. In 1971, as Kaplan and Kubrick were trying to determine which theaters should show the new movie, they realized that <em>Variety</em> published box office totals for individual cinemas in every city. The data would potentially reveal people's preferences for different theaters, if only the two men could come up with a way to access it. In the days of manual databases, that meant spending six weeks collecting volumes of carefully curated notebooks to tally 18 months of back data. The payoff, however, was enormous: the studio was able to show the new film exclusively in theaters with the perfect mix of margins and demographics.</p>
<p>Rumors even presaged today's computer-driven industry:</p>
<blockquote><p>Word quickly spread that Stanley had a computerized system to track theaters and grosses based on technical information he had acquired while developing HAL 9000, the all-knowing computer in <em>2001</em>. For months these stories persisted in the trades as the roster of <em>Clockwork</em> cinemas was refined. They were neither confirmed nor denied.</p></blockquote>
<p><em>(via <a href="http://daringfireball.net/linked/2012/01/17/kubrick-box-office">Daring Fireball</a>)</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thisisthegreenroom.com/2012/stanley-kubrick-data-scientist/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Call &#039;em like you see &#039;em</title>
		<link>http://www.thisisthegreenroom.com/2012/call-em-like-you-see-em/</link>
		<comments>http://www.thisisthegreenroom.com/2012/call-em-like-you-see-em/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 21:18:42 +0000</pubDate>
		<dc:creator>J</dc:creator>
				<category><![CDATA[Data]]></category>
		<category><![CDATA[cnn]]></category>
		<category><![CDATA[social media]]></category>

		<guid isPermaLink="false">http://www.thisisthegreenroom.com/?p=4434</guid>
		<description><![CDATA[Anderson Cooper, on air, referring to CNN's nonsensical "Social Media Screen": The social media screen, again with the social media screen. My Lord. This is the third hit, I still don't understand what the hell this thing shows! It's a shame that it takes a 3am broadcast for someone to let the emperor know his clothes are missing. [...]]]></description>
			<content:encoded><![CDATA[<p></p><div class="googlePlusOneButton"><g:plusone href="http://www.thisisthegreenroom.com/2012/call-em-like-you-see-em/"  size="small"   annotation="none"  ></g:plusone></div><p>Anderson Cooper, on air, <a href="http://www.huffingtonpost.com/2012/01/04/anderson-cooper-cnn-team-election-coverage_n_1183005.html">referring</a> to CNN's nonsensical "Social Media Screen":</p>
<blockquote><p>The social media screen, again with the social media screen. My Lord. This is the third hit, I still don't understand what the hell this thing shows!</p></blockquote>
<p>It's a shame that it takes a 3am broadcast for someone to let the emperor know his clothes are missing.</p>
<p><em>(via <a href="http://www.huffingtonpost.com/2012/01/04/anderson-cooper-cnn-team-election-coverage_n_1183005.html">The Huffington Post</a>)</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thisisthegreenroom.com/2012/call-em-like-you-see-em/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>...and not a drop of value</title>
		<link>http://www.thisisthegreenroom.com/2012/and-not-a-drop-of-value/</link>
		<comments>http://www.thisisthegreenroom.com/2012/and-not-a-drop-of-value/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 20:19:59 +0000</pubDate>
		<dc:creator>J</dc:creator>
				<category><![CDATA[Data]]></category>
		<category><![CDATA[big data]]></category>
		<category><![CDATA[gets it]]></category>
		<category><![CDATA[presentation]]></category>
		<category><![CDATA[value]]></category>

		<guid isPermaLink="false">http://www.thisisthegreenroom.com/?p=4431</guid>
		<description><![CDATA[Bryce Roberts gets it: Here’s the thing. Data, big, medium or small, has no value in and of itself. The value of data is unlocked through context and presentation.]]></description>
			<content:encoded><![CDATA[<p></p><div class="googlePlusOneButton"><g:plusone href="http://www.thisisthegreenroom.com/2012/and-not-a-drop-of-value/"  size="small"   annotation="none"  ></g:plusone></div><p>Bryce Roberts <a href="http://bryce.vc/post/15300645787/data-data-everywhere-and-not-a-drop-of-value">gets it</a>:</p>
<blockquote><p>Here’s the thing. Data, big, medium or small, has no value in and of itself. The value of data is unlocked through context and presentation.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.thisisthegreenroom.com/2012/and-not-a-drop-of-value/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stat is magic</title>
		<link>http://www.thisisthegreenroom.com/2011/stat-is-magic/</link>
		<comments>http://www.thisisthegreenroom.com/2011/stat-is-magic/#comments</comments>
		<pubDate>Thu, 13 Oct 2011 16:40:48 +0000</pubDate>
		<dc:creator>J</dc:creator>
				<category><![CDATA[Data]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[copula]]></category>
		<category><![CDATA[magic]]></category>
		<category><![CDATA[statistics]]></category>

		<guid isPermaLink="false">http://www.thisisthegreenroom.com/?p=4401</guid>
		<description><![CDATA[I really love the latest post on Lessons from my Twenties, called Stat Is Magic. Sometimes, things are better left as magic.]]></description>
			<content:encoded><![CDATA[<p></p><div class="googlePlusOneButton"><g:plusone href="http://www.thisisthegreenroom.com/2011/stat-is-magic/"  size="small"   annotation="none"  ></g:plusone></div><p>I really love the latest post on <a href="http://lessonsfrommytwenties.tumblr.com/">Lessons from my Twenties</a>, called <a href="http://lessonsfrommytwenties.tumblr.com/post/11397955349/lesson-12-stat-is-magic">Stat Is Magic</a>.</p>
<p>Sometimes, things are better left as magic.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thisisthegreenroom.com/2011/stat-is-magic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick sepia images in WordPress</title>
		<link>http://www.thisisthegreenroom.com/2011/quick-image-manipulation-in-wordpress/</link>
		<comments>http://www.thisisthegreenroom.com/2011/quick-image-manipulation-in-wordpress/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 11:08:41 +0000</pubDate>
		<dc:creator>J</dc:creator>
				<category><![CDATA[Data]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[consulting]]></category>
		<category><![CDATA[data science]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[sepia]]></category>
		<category><![CDATA[startup]]></category>
		<category><![CDATA[TimThumb]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.thisisthegreenroom.com/?p=4373</guid>
		<description><![CDATA[The other day, I was unexpectedly asked, "What's the easiest way to make a sepia-toned image in WordPress?" The questioner has a blog with an "antique" theme, and wanted to use the sepia images inline. However, the blog is quite image-heavy and she (understandably) didn't want to dive into Photoshop for every single post. She [...]]]></description>
			<content:encoded><![CDATA[<p></p><div class="googlePlusOneButton"><g:plusone href="http://www.thisisthegreenroom.com/2011/quick-image-manipulation-in-wordpress/"  size="small"   annotation="none"  ></g:plusone></div><p>The other day, I was unexpectedly asked, "What's the easiest way to make a sepia-toned image in WordPress?"</p>
<p>The questioner has a blog with an "antique" theme, and wanted to use the sepia images inline. However, the blog is quite image-heavy and she (understandably) didn't want to dive into Photoshop for every single post. She wanted a "plugin" approach: just tell WordPress to make the image sepia-toned, and let the software work its magic.</p>
<p>Unfortunately, that plugin doesn't exist... so I hacked one up. I'm posting the code here for future reference and in case anyone finds this useful.</p>
<p><strong>Objective: </strong></p>
<p><strong></strong>A drop-dead simple way to create sepia-toned images for a WordPress blog, performing three actions:</p>
<ol>
<li>Resize the source image to a standard size</li>
<li>Apply the sepia tone</li>
<li>Add a CSS class</li>
<li>Remove any "width" and "height" settings from the original HTML</li>
</ol>
<p><strong>Solution:</strong></p>
<p>I started with the <a href="http://www.binarymoon.co.uk/projects/timthumb/">TimThumb PHP script</a>. TimThumb was originally conceived as an idiot-proof image resizer for WordPress (to automatically generate post thumbnails). It does so by dynamically generating a new image from a source image based on provided dimensions. More recently -- and more interestingly, for my purposes -- a hook was added for PHP's <a href="http://php.net/manual/en/function.imagefilter.php">imagefilter</a> function. Imagefilter can apply a variety of simple effects to an image, including grayscale, colorize, blur, etc.</p>
<p>With TimThumb in hand, I needed an easy way to apply it. For this, I created a WordPress shortcode. Shortcodes allow bloggers to execute PHP functions (with arguments!) without ever leaving the text editor or seeing a word of code. To make the execution as smooth as possible, I wanted to pass a standard WordPress-inserted image to TimThumb, but this meant I would have to do some parsing, because WordPress wraps the image with all the required HTML and TimThumb accepts just the source URL.</p>
<p>The following function takes in the HTML code that WordPress automatically generates for an image, replaces the source image with one dynamically-generated by TimThumb, and parses the HTML to add a new class (sepia) and remove width and height parameters. The sepia-toning is accomplished by combining imagefilter's contrast, grayscale, and colorize functions.</p>
<pre class="brush: php; title: ; notranslate">
function sepia($attr, $content = null) {
    preg_match('/&lt; *img[^&gt;]*src *= *[&quot;\']?([^&quot;\']*)/i', $content, $matches);
    $old_src = $matches[1];
    $new_src =  home_url(&quot;/wp-content/timthumb/timthumb.php?src=&quot;).$old_src.&quot;&amp;w=375&amp;h=275&amp;q=100&amp;f=2|4,-10|5,50,20,0&quot;;
    $content = str_replace($old_src, $new_src, $content);

    preg_match('/class[ \t]*=[ \t]*&quot;[^&quot;]+&quot;/', $content, $matches);
    $old_class = substr($matches[0], 0, -1);
    $new_class = $old_class . &quot; sepia\&quot;&quot;;
    $content = str_replace($old_class, $new_class, $content);

    preg_match('/width[ \t]*=[ \t]*&quot;[^&quot;]+&quot;/', $content, $matches);
    $old_width = $matches[0];
    $new_width = &quot;&quot;;
    $content = str_replace($old_width, $new_width, $content);

    preg_match('/height[ \t]*=[ \t]*&quot;[^&quot;]+&quot;/', $content, $matches);
    $old_height = $matches[0];
    $new_height = &quot;&quot;;
    $content = str_replace($old_height, $new_height, $content);

    return $content;
}
add_shortcode('sepia', 'sepia');
</pre>
<p>And the following line creates the WordPress shortcode:<br />
<code><br />
add_shortcode('sepia', 'sepia');<br />
</code></p>
<p>By adding these two bits of code to the blog's <code>functions.php</code> file, a blogger can create a perfect sepia-toned image simply by placing a normal WordPress image in between two tags, like this:</p>
<p><code>[sepia]</code> (the image goes here) <code>[/sepia]</code>.</p>
<p>And voila: a foolproof way to create sepia-toned images without ever leaving the post editor! Moreover, the applied "sepia" class allows these images to be easily styled with CSS.</p>
<p>Here's an example, from the beach in Tel Aviv. Original:</p>
<p><img class="aligncenter size-full wp-image-4380" title="beach1" src="http://www.thisisthegreenroom.com/wp-content/uploads/2011/09/beach1.jpg" alt="" width="300" height="200" /></p>
<p>And with the sepia shortcode (note that I'm not running the code on TGR, so this is just a screenshot!):</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-4383" title="beach2" src="http://www.thisisthegreenroom.com/wp-content/uploads/2011/09/Screen-Shot-2011-09-30-at-2.26.11-PM.png" alt="" width="317" height="218" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thisisthegreenroom.com/2011/quick-image-manipulation-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eloquent JavaScript: an interactive programming tutorial</title>
		<link>http://www.thisisthegreenroom.com/2011/eloquent-javascript-an-interactive-programming-tutorial/</link>
		<comments>http://www.thisisthegreenroom.com/2011/eloquent-javascript-an-interactive-programming-tutorial/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 07:54:15 +0000</pubDate>
		<dc:creator>J</dc:creator>
				<category><![CDATA[Data]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.thisisthegreenroom.com/?p=4366</guid>
		<description><![CDATA[Via my friend Will Gaybrick (@gaybrick), I discovered an excellent programming tutorial called Eloquent JavaScript. Not only is it extremely well-written, clear and friendly, but it features a completely interactive console allowing readers to run and experiment with every single example. You'll never have to struggle to decipher what a piece of code is doing [...]]]></description>
			<content:encoded><![CDATA[<p></p><div class="googlePlusOneButton"><g:plusone href="http://www.thisisthegreenroom.com/2011/eloquent-javascript-an-interactive-programming-tutorial/"  size="small"   annotation="none"  ></g:plusone></div><p>Via my friend Will Gaybrick (<a href="http://twitter.com/#!/gaybrick">@gaybrick</a>), I discovered an excellent programming tutorial called <a href="http://eloquentjavascript.net/contents.html">Eloquent JavaScript</a>. Not only is it extremely well-written, clear and friendly, but it features a completely interactive console allowing readers to run and experiment with every single example. You'll never have to struggle to decipher what a piece of code is doing -- just hit the arrow next to the code block, and it jumps into the console and prints its output.</p>
<p>Obviously, the guide is about JavaScript but the concepts apply almost universally to any language, making this by far the best interactive tutorial I've seen. (That's from a completeness standpoint -- for user-friendliness the hands-down winner is <a href="http://tryruby.org/">tryruby.org</a>!)</p>
<p>I actually found myself enjoying reading the text despite covering topics I was intimately familiar with, and certainly learned a thing or two in some of the more advanced chapters. I can't recommend this enough for anyone looking for a gentle introduction to programming.</p>
<p>Also, I want to mention that Will will be teaching <a href="http://hackyale.com/">HackYale</a>, a semester-long course at Yale focused on new web technologies like HTML5, JavaScript and Ruby. Unfortunately, it isn't an open enrollment like Stanford's new <a href="http://www.ai-class.com/">AI class</a>, so the rest of us will have to watch enviously from afar.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thisisthegreenroom.com/2011/eloquent-javascript-an-interactive-programming-tutorial/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Unknown unknowns</title>
		<link>http://www.thisisthegreenroom.com/2011/unknown-unknowns/</link>
		<comments>http://www.thisisthegreenroom.com/2011/unknown-unknowns/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 06:09:59 +0000</pubDate>
		<dc:creator>J</dc:creator>
				<category><![CDATA[Data]]></category>
		<category><![CDATA[Risk]]></category>
		<category><![CDATA[badge]]></category>
		<category><![CDATA[BMW]]></category>
		<category><![CDATA[Finance]]></category>
		<category><![CDATA[investing]]></category>
		<category><![CDATA[known knowns]]></category>
		<category><![CDATA[lie]]></category>
		<category><![CDATA[M5]]></category>
		<category><![CDATA[Mercedes]]></category>
		<category><![CDATA[Rumsfeld]]></category>
		<category><![CDATA[unknown knowns]]></category>
		<category><![CDATA[unknown unknowns]]></category>

		<guid isPermaLink="false">http://www.thisisthegreenroom.com/?p=4292</guid>
		<description><![CDATA[After observing a pair of poorly-rebadged cars, a series of thoughts about Rumsfeld's "known knowns," "known unknowns," and "unknown unknowns."]]></description>
			<content:encoded><![CDATA[<p></p><div class="googlePlusOneButton"><g:plusone href="http://www.thisisthegreenroom.com/2011/unknown-unknowns/"  size="small"   annotation="none"  ></g:plusone></div><p>I've been observing an interesting phenomenon here in Tel Aviv: people who lie about their cars. I'm not talking about lying in conversation; I mean physically altering their vehicles to make them appear to be other (generally more expensive) cars. The practice is known as "rebadging", since it involves manipulating the model numbers typically found on the back of a vehicle. This is hardly a behavior unique to Tel Aviv -- I noted it regularly in New York -- but I think that because I drive regularly here, I'm more attuned to driving behavior.</p>
<p>Anyway, I was motivated to write this after seeing two different examples on a single drive: an E39 BMW 5 series rebadged as an M5 and a Mercedes SL 500 rebadged as an SL55 AMG. Both cars were masquerading as their "racing spec" big brothers. To someone passionate about cars like myself, the lie was obvious.</p>
<p>In both cases, the badge was simply wrong: the M5 badge was on the left side of the car (it should be on the right) and, more obviously, the owner <em>left the other badge on the car. </em>In other words, the car proclaimed that it was simultaneously an M5 and a 530i.</p>
<p>The SL's lie was more subtle -- the letters "AMG" had been added to the right side of the car, as Mercedes does with their true racing models, and the original badge was left on the left. However, on its AMG models Mercedes removes the last digit of the identifier -- instead of an SL500, there is an SL55 AMG.</p>
<p>Anyway, what I really started wondering was, "What's the point!?" This type of rebadging targets an extremely narrow audience: people who know enough about cars to be impressed by an M or AMG badge, but not so much that they would see through the ruse. That's a very slim intersection on which to focus, especially since with very little effort the lie could be made so much stronger (just get rid of the other badge!), leaving only cues like the number of exhausts to the true nature of the cars.</p>
<p>In other words, people who know a bit about cars will see that this driver is lying; everyone else won't even care in the first place. So why bother?</p>
<p>It made me think of Donald Rumsfeld's <a href="http://en.wikipedia.org/wiki/There_are_known_knowns">famous quote</a>, which I like very much as a characterization of knowledge:</p>
<blockquote><p>There are known knowns; there are things we know we know.<br />
We also know there are known unknowns; that is to say we know there are some things we do not know.<br />
But there are also unknown unknowns – the ones we don't know we don't know.</p></blockquote>
<p>Cars are an excellent domain for studying the implications of these characterizations. Even someone with basic knowledge can recite what they know: at the least, some idea of the basic interaction between the gas pedal and the steering wheel, or just the fact that gas is required to travel. And those same people can quickly volunteer the things they don't know, even if the information is readily available: how the engine works; how many gallons the tank holds; what is "horsepower", exactly? Finally, there are things we don't know and it would never even occur to us to find out (these vary more strongly with experience): how far can you <a href="http://en.wikipedia.org/wiki/The_Dealership">drive on empty</a>? What is unique about a <a href="http://en.wikipedia.org/wiki/Hofmeister_kink">BMW's C-pillar</a>?</p>
<p>Back to the point, sloppily rebadging a car indicates a few things. First, the fact that there are different tiers of cars is one of the owner's known knowns, and he (or she) presumes that is also true of other drivers. However, he must also believe that other drivers don't know how to tell those cars apart except to look for an explicit declaration (that is their known unknown).</p>
<p>The problem is that the owner himself must have a giant unknown unknown regarding <em>other</em> distinguishing features of those cars. So he didn't set out to target those few individuals who respect nice cars but haven't bothered to learn much about them -- he's<em> </em>one of those people himself!</p>
<p>And, because I know my audience, I known I need to tie this back to finance. Fortunately, that's pretty easy. Assume that everything is an unknown unknown.</p>
<p>More specifically, everything you think you know is irrelevant because the market already knows it.</p>
<p>Everything you know you don't know is incredibly important -- how can you possibly make an investment when you're aware that you don't have all the information about it?</p>
<p>And everything else is impossible to find out because you wouldn't know where to start.</p>
<p>The investing game is all about minimizing the things that could remain in your unknown unknowns -- even if you can't know what they are. That's why the "information advantage" of a trader at a large bank (rogue or otherwise) is so critical, and that's why every article that tells you "how to pick stocks!" is ludicrous. The exploration of an investment idea -- turning it around, looking at it in different light -- illuminates facets you would never have seen otherwise.</p>
<p>If you go in with a checklist, you'll never reduce the unknown unknowns: the idiosyncratic risks, the ones you get paid to hold.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thisisthegreenroom.com/2011/unknown-unknowns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&quot;Highly skilled, nerdy-cool&quot;</title>
		<link>http://www.thisisthegreenroom.com/2011/highly-skilled-nerdy-cool/</link>
		<comments>http://www.thisisthegreenroom.com/2011/highly-skilled-nerdy-cool/#comments</comments>
		<pubDate>Thu, 15 Sep 2011 08:04:43 +0000</pubDate>
		<dc:creator>J</dc:creator>
				<category><![CDATA[Data]]></category>
		<category><![CDATA[data science]]></category>
		<category><![CDATA[data scientist]]></category>
		<category><![CDATA[unemployment]]></category>

		<guid isPermaLink="false">http://www.thisisthegreenroom.com/?p=4247</guid>
		<description><![CDATA[More good news for data scientists, this time from Fortune: The unemployment rate in the U.S. continues to be abysmal (9.1% in July), but the tech world has spawned a new kind of highly skilled, nerdy-cool job that companies are scrambling to fill: data scientist.]]></description>
			<content:encoded><![CDATA[<p></p><div class="googlePlusOneButton"><g:plusone href="http://www.thisisthegreenroom.com/2011/highly-skilled-nerdy-cool/"  size="small"   annotation="none"  ></g:plusone></div><p>More good news for data scientists, this time from <a href="http://tech.fortune.cnn.com/2011/09/06/data-scientist-the-hot-new-gig-in-tech/">Fortune</a>:</p>
<blockquote><p>The unemployment rate in the U.S. continues to be abysmal (9.1% in July), but the tech world has spawned a new kind of highly skilled, nerdy-cool job that companies are scrambling to fill: data scientist.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.thisisthegreenroom.com/2011/highly-skilled-nerdy-cool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Syncing settings across computers</title>
		<link>http://www.thisisthegreenroom.com/2011/syncing-settings-across-computers/</link>
		<comments>http://www.thisisthegreenroom.com/2011/syncing-settings-across-computers/#comments</comments>
		<pubDate>Thu, 15 Sep 2011 07:06:45 +0000</pubDate>
		<dc:creator>J</dc:creator>
				<category><![CDATA[Data]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Dropbox]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Terminal]]></category>

		<guid isPermaLink="false">http://www.thisisthegreenroom.com/?p=4240</guid>
		<description><![CDATA[Using Dropbox and shell scripts to automatically sync settings and configurations.]]></description>
			<content:encoded><![CDATA[<p></p><div class="googlePlusOneButton"><g:plusone href="http://www.thisisthegreenroom.com/2011/syncing-settings-across-computers/"  size="small"   annotation="none"  ></g:plusone></div><p><em>Please note this is intended for a Mac audience (all Unix users may of course apply... but I'm sure they've all cooked up something more sophisticated than this already). Windows users, I'm afraid you may be out in the cold.</em></p>
<p>One problem I've had while traveling (especially since my first laptop died and has been replaced) is needing to keep files and settings synced across computers. When I return home in a few months, I'll have a computer that is not only running a different operating system (Lion) from my main computer (Snow Leopard), but has a host of different tools and settings stored on it. I'm not talking about typical files like images and documents, I'm talking about system-level files, settings, configurations, and tools like Python which lack friendly icons.</p>
<p>I thought about a few ways to tackle this problem, ultimately settling on a Dropbox-based solution which I'm quite happy with. I'm detailing it here in case anyone is interested, or has any suggestions for improvement. This will work for any Unix-based system (including any Mac)... I'm not too sure about Windows. I imagine some adjustments might be required. <del>The only caveat is that I think <code>.bash_profile</code> would be <code>.bash_rc</code> on a Linux box,</del> but the spirit here is the same regardless: stick the global settings in a shared synced directory, and symlink them to wherever the computer expects to find them.</p>
<p>Before I begin, I should note that I considered using a version-control system, like GitHub, but decided not to because I don't want all of my files to be publicly available and I don't want to have to waste a private repository just for this purpose. Furthermore, I'm more interested in syncing the files; I don't care too much about retaining their history. As I become more comfortable with git, I can foresee my opinion changing.</p>
<p>The default Dropbox folder is at <code>~/Dropbox</code>. Since this is the same across my computers, that suits me fine.</p>
<p>First, I need a repository for my configuration files. I created a hidden directory at <code>~/Dropbox/.system</code> and moved the following files into it (for example): .bash_profile, .vimrc, .gvimrc, the entire .vim folder, etc.</p>
<p>Next, I need to actually do something with those files. I created another directory at <code>~/Dropbox/Scripts</code> and wrote a few shell scripts to symlink the computer's configurations to the Dropbox ones. For example, my script for Terminal configuration looks something like this:</p>
<pre>#!/bin/bash

# Symlink .bash_profile and other profiles
echo "Making Terminal symlinks..."
cd ~; rm .bash_profile; ln -s ~/Dropbox/.system/.bash_profile .bash_profile
cd ~; rm .bash_ps1; ln -s ~/Dropbox/.system/.bash_ps1 .bash_ps1

echo ""
echo "Finished!"
read -p "Press any key to exit."</pre>
<p>It's important to note that only two lines of this script actually do anything -- the rest is just user-friendly filler (except the shebang in the first line). The line beginning with a <code>#</code> is a comment. The lines starting with <code>echo</code> are telling the system to print something to the screen, as is the line beginning <code>read -p</code>, which simply waits for a keypress before continuing.</p>
<p>The two lines beginning <code>cd</code> are doing the heavy lifting. First, they navigate to the home folder (<code>cd</code> stands for "Change Directory" and <code>~</code> represents the home folder). Then, they delete their target files (<code>rm</code> stands for "ReMove"). Finally, they create the symlinks. To create a symlink, use the <code>ln</code> ("LiNk") command with a <code>-s</code> argument, standing for "Symbolic link". Next, provide the symlink target in the Dropbox folder and give the link a name in the current directory.</p>
<p>By the way, Mac users, you may recognize the new symlinks as alias files -- in fact, that's all they are. You could accomplish this as easily with Apple-L, but what's the fun in that? (It's also terribly non-algorithmic, wouldn't save you time at all!)</p>
<p>If you save the script as a <code>.command</code> file (i.e. <code>Terminal_symlinks.command</code>), your Mac will execute it when you double-click it, no need to muck around in the command line. For me, this means I can execute all my scripts just by opening them all, like any other file. Some of them have dependencies (i.e. the SciPy script needs NumPy, which needs Python, which needs Homebrew), so I put numbers in front of those to indicate they should be run in order.</p>
<p>Now, when I move to a new computer, I just run the main script (that nests all the other scripts) and it links the current computer's settings to the stored ones. I never need to run the scripts again as long as the location of the files doesn't change. Any updates are saved and synced automatically, no need for commits. If I make a change on computer A, the file is automatically updated and computer B reflects it immediately.</p>
<p>As another example, the following script walks through the Homebrew installation process (or see my post <a href="http://www.thisisthegreenroom.com/2011/installing-python-numpy-scipy-matplotlib-and-ipython-on-lion/">here</a>) -- <strong>note that this gives root access to </strong><code>/usr/local</code><strong>, which I'm fine with but you may not be!</strong></p>
<pre>#!/bin/bash

# Install Homebrew
echo "Installing Homebrew..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
export PATH=/usr/local/bin:$PATH

# Get root access to /usr/local
echo ""
echo "Getting root access to /usr/local..."
sudo chown -R `whoami` /usr/local

# Warn about PATH
echo ""
echo "Add the following to ~/.bash_profile to use Homebrew:"
echo ""
echo "# Homebrew path"
echo "export PATH=/usr/local/bin:\$PATH"

echo ""
echo "Finished installing Homebrew!"
read -p "Press any key to exit."</pre>
<p>I've seen many different people with as many different opinions on how to do this "best" -- what are your suggestions?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thisisthegreenroom.com/2011/syncing-settings-across-computers/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>&quot;The application of data is what is fascinating&quot;</title>
		<link>http://www.thisisthegreenroom.com/2011/the-application-of-data-is-what-is-fascinating/</link>
		<comments>http://www.thisisthegreenroom.com/2011/the-application-of-data-is-what-is-fascinating/#comments</comments>
		<pubDate>Thu, 15 Sep 2011 06:45:22 +0000</pubDate>
		<dc:creator>J</dc:creator>
				<category><![CDATA[Data]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[big data]]></category>
		<category><![CDATA[refine]]></category>

		<guid isPermaLink="false">http://www.thisisthegreenroom.com/?p=4237</guid>
		<description><![CDATA[My friend Darren Herman recently tweeted a statement I couldn't agree more with (I'm linking to his blog post rather than the tweet itself; as we all know, attempting to take advantage of Twitter's disastrous data model is like trying to catch water in a sieve): ”The data itself isn’t overly interesting.  The application of data is what [...]]]></description>
			<content:encoded><![CDATA[<p></p><div class="googlePlusOneButton"><g:plusone href="http://www.thisisthegreenroom.com/2011/the-application-of-data-is-what-is-fascinating/"  size="small"   annotation="none"  ></g:plusone></div><p>My friend Darren Herman recently <a href="http://www.darrenherman.com/2011/09/11/examples-of-applied-data-visualizations/">tweeted a statement</a> I couldn't agree more with (I'm linking to his blog post rather than the tweet itself; as we all know, attempting to take advantage of Twitter's disastrous data model is like trying to catch water in a sieve):</p>
<blockquote><p>”The data itself isn’t overly interesting.  The application of data is what is fascinating.”</p></blockquote>
<p>Data is just a bunch of numbers -- the raw material. It has to be refined in order to extract value and prepare it for consumption. I've written along those lines <a href="http://www.thisisthegreenroom.com/2010/the-data-supply-chain/">here</a>.</p>
<p>However, I will confess that I'm a little worried about how the "big data" buzzword is increasingly tossed out by the media when describing predictive analytics, as during the spate of data company fundraising and acquisition announcements over the last week. As I've noted, the two <a href="http://www.thisisthegreenroom.com/2011/data-science-vs-business-intelligence/">are not the same</a>, though they are of course related.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thisisthegreenroom.com/2011/the-application-of-data-is-what-is-fascinating/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

