<?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>Corey A. Spitzer</title>
	<atom:link href="http://coreyspitzer.com/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://coreyspitzer.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 02 Nov 2011 19:43:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Starburst Poker</title>
		<link>http://coreyspitzer.com/blog/?p=202</link>
		<comments>http://coreyspitzer.com/blog/?p=202#comments</comments>
		<pubDate>Wed, 02 Nov 2011 19:41:47 +0000</pubDate>
		<dc:creator>coreyspitzer</dc:creator>
				<category><![CDATA[Math]]></category>

		<guid isPermaLink="false">http://coreyspitzer.com/blog/?p=202</guid>
		<description><![CDATA[I&#8217;ve recently had access to a lot of Starburst &#8220;fun size&#8221; packets, the packages that holds two Starburst candies. So what else was there to do but to invent Starburst Poker. Since there are four Starburst colors &#8212; yellow, orange, pink, red &#8212; and assuming order doesn&#8217;t matter and allowing for repetition, we can use [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://coreyspitzer.com/blog/wp-content/uploads/2011/11/starburst.jpg"><img src="http://coreyspitzer.com/blog/wp-content/uploads/2011/11/starburst-300x300.jpg" alt="" title="starburst" width="200" height="200" class="alignright size-medium wp-image-205" /></a>I&#8217;ve recently had access to a lot of Starburst &#8220;fun size&#8221; packets, the packages that holds two Starburst candies.  So what else was there to do but to invent Starburst Poker.  Since there are four Starburst colors &#8212; yellow, orange, pink, red &#8212; and assuming order doesn&#8217;t matter and allowing for repetition, we can use the combinatorial formula: </p>
<p>C(n + r &#8211; 1, r) </p>
<p>to find out that with n = 4 color possibilities and r = 2 colors per packet, there are: </p>
<p>C(4 + 2 &#8211; 1, 2) = C(5, 2) = 5! / (2! * (5 &#8211; 1)!) = 10 </p>
<p>possible combinations of colors you can receive.  </p>
<p>Now assuming (by educated guess), the popularity of Starburst flavors in order from least to most popular is yellow, orange, pink, red, we can list out these 10 poker hands in order from worst to best:</p>
<p>The &#8220;high card&#8221; hands:<br />
Yellow, Orange<br />
Yellow, Pink<br />
Yellow, Red<br />
Orange, Pink<br />
Orange, Red<br />
Pink, Red<br />
and the &#8220;pair&#8221; hands:<br />
Yellow, Yellow<br />
Orange, Orange<br />
Pink, Pink<br />
Red, Red</p>
<p>So assuming a uniform distribution, there is a 10% chance of getting any of the above hands.  That also means a 40% chance of getting a pair of colors, a 40% chance of getting at least one yellow, and a 40% chance of getting at least one red.</p>
<p>Happy playing.</p>
]]></content:encoded>
			<wfw:commentRss>http://coreyspitzer.com/blog/?feed=rss2&#038;p=202</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>On Social Media</title>
		<link>http://coreyspitzer.com/blog/?p=129</link>
		<comments>http://coreyspitzer.com/blog/?p=129#comments</comments>
		<pubDate>Mon, 02 May 2011 00:53:35 +0000</pubDate>
		<dc:creator>coreyspitzer</dc:creator>
				<category><![CDATA[Business]]></category>

		<guid isPermaLink="false">http://coreyspitzer.com/blog/?p=129</guid>
		<description><![CDATA[I&#8217;m not a social media person. I personally find it boring to talk about it for more than a couple minutes and there are already too many talking heads in that space. But I have a few observations and unorganized thoughts that might be worth sharing. Take it or leave it. I find it interesting [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not a social media person.  I personally find it boring to talk about it for more than a couple minutes and there are already too many talking heads in that space.  But I have a few observations and unorganized thoughts that might be worth sharing.  Take it or leave it.</p>
<p>I find it interesting that businesses decided it was best practice to speak in broad, ambiguous, extra cheesy, extra cheery, overenthusiastic, broadcast-mode-only, politically correct, extra-safe PR-speak in the first place.  My guess is customers never suggested, requested, or desired that businesses go so far down the PR-speak rabbit hole that they would become a parody of themselves.  </p>
<p>I find it interesting that even with the rise of the Internet, discussion forums, chat rooms, blogging, MySpace, Second Life, and (pre-Twitter) Facebook, where on relatively rare occasions businesses would respond to individual people, the phoniness continued.  And I find it extremely interesting that it took Twitter to be popularized for businesses to start <strong>considering</strong> conversing with their customers in a genuinely human sort of way.  </p>
<p>And even more interesting is that many hire &#8220;social media experts&#8221; to teach them how to talk like a human being.  </p>
<p>So we&#8217;ve come full circle: people who founded brands sort of gave up their humanity so they could market like a conventional business and now they&#8217;re looking to go back to acting like the humans they are &#8212; except they&#8217;re clumsy and fumbling or just don&#8217;t remember how.  </p>
<p>I like to meet new people from many different backgrounds and so I often find myself in the company of marketing types who don&#8217;t get/like social media.  Though it&#8217;s easy to dismiss these kinds of people as putting their heads in the sand because they irrationally can&#8217;t accept change and you just want to say &#8220;stop whining and deal with it; evolve or die&#8221; I recently came to a realization:  there&#8217;s another aspect to this.  It&#8217;s not <strong>just</strong> that some people don&#8217;t know how to be transparent and genuine and human and it&#8217;s not <strong>just</strong> that they&#8217;re in denial about where the eyeballs are or the habits and behaviors of certain large chunks of the population (in my experience this is a &#8220;well I don&#8217;t like/do this so the majority of people don&#8217;t like/do it either&#8221; mindset).</p>
<p>There&#8217;s another <strong>fundamental</strong> reason as to why traditional media marketers are having trouble.  These people are used to TV and radio commercials, newspaper and banner ads, billboards and flyers.  What all of these things have in common is you create it one time, put it out there, and move on to the next thing.  I call it set-it-and-forget-it marketing.</p>
<p>But with new media (and even with web 1.0 websites), the media and effort is all organic and it needs to evolve and be maintained over time, pivoting and tweaking based on gathered measurements, responses, new data, and experimentation.  This is a long-term proposition, not a shotgun blast.  It&#8217;s more work and the payoff isn&#8217;t immediate.  I think this is what is hard for people to accept.  </p>
<p>It&#8217;s a big, global cocktail party out there.  You wouldn&#8217;t go to a cocktail party screaming about savings and blasting a volume-inappropriate jingle like a used car salesperson on the radio.</p>
<p>My guide to social media:<br />
1. Do awesome work.<br />
2. Be yourself.<br />
3. Have conversations.</p>
<p>That&#8217;s it.</p>
]]></content:encoded>
			<wfw:commentRss>http://coreyspitzer.com/blog/?feed=rss2&#038;p=129</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The Soap Problem</title>
		<link>http://coreyspitzer.com/blog/?p=33</link>
		<comments>http://coreyspitzer.com/blog/?p=33#comments</comments>
		<pubDate>Sun, 20 Mar 2011 05:50:57 +0000</pubDate>
		<dc:creator>coreyspitzer</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://coreyspitzer.com/blog/?p=33</guid>
		<description><![CDATA[Recently an old friend of mine who enjoys making soap as a hobby called me with a programming problem.  He was essentially going to catalog the different qualities soaps had with different proportions of ingredients.  So he said the problem was that given a list of ingredients (of an unknown size), he needed to generate [...]]]></description>
			<content:encoded><![CDATA[<p>Recently  an old friend of mine who enjoys making soap as a hobby called me with a  programming problem.  He was essentially going to catalog the different  qualities soaps had with different proportions of ingredients.  So he  said the problem was that given a list of ingredients (of an unknown  size), he needed to generate a list of every combination of proportions  of ingredients; in other words, each ingredient in the list was to be  assigned some percentage and all the percentages had to add up to 100%  &#8230; for every way you can assign a percentage to each ingredient that  adds up to 100%.  So for example, if you had a list of ingredients A, B,  and C, you could mix them in the following ways:</p>
<p>A = 100%, B = 0%, C = 0%<br />
A = 99%, B = 1%, C = 0%<br />
A = 99%, B = 0%, C = 1%<br />
A = 98%, B = 2%, C = 0%<br />
A = 98%, B = 1%, C = 1%<br />
A = 98%, B = 0%, C = 2%</p>
<p>&#8230;and so on.</p>
<p>I  spent a few minutes toying with different approaches, but nothing  obvious jumped out.  Then I realized that in cases like this, it helps  to rephrase the problem into something simpler, an equivalent problem that  can be more easily modeled (or attacked algorithmically).  I took the  perspective that what we&#8217;re really trying to do here is distribute 100  percentage points amongst a collection of ingredients standing in a  line.  The first ingredient takes some amount of percentage points from  the proverbial bucket, then passes the bucket to the next ingredient;  the last ingredient in the line is stuck with the remaining percentage  points passed to it (i.e. the entire contents of the bucket).  Some  ingredient will take all 100 some of the time, leaving none for any  other and that&#8217;s ok; other times, an ingredient will take 0 percentage  points when it could take a lot more and that&#8217;s ok too.</p>
<p>After  I approached the problem with this  100-points-in-a-bucket-passed-down-a-line model, the code started to  flow.  And this is what I gave to my friend (in PHP):</p>
<pre class="brush: php; title: ;">
    function distribute($distribution_array, $current_index, $rest_count)
    {
        // if the current ingredient is at the last one in the line...
        if($current_index == count($distribution_array) - 1)
        {
            // take the rest
            $distribution_array[$current_index] = $rest_count;

            // print the array's contents
            print_r($distribution_array);
            echo '&lt;br/&gt;';
        }
        else
        {
            // for every possible amount of percentage points I am able to take...
            for($take_count = $rest_count; $take_count &gt;= 0; $take_count--)
            {
                // take the amount of percentage points
                $distribution_array[$current_index] = $take_count;

                // and distribute the remaining down the line
                distribute($distribution_array, $current_index + 1, $rest_count - $take_count);
            }
        }
    }

    // distribute to a line of 3 ingredients, starting at the first ingredient, 100 percentage points
    distribute(array(0, 0, 0), 0, 100);
</pre>
<p>Of  course the number of combinations grows exponentially as the number of  ingredients increases. That, taken with the facts that even three  ingredients produces far more combinations than anyone should actually  try and that a one percent difference in any given ingredient probably  won&#8217;t affect the end result much, I suggested to my friend to look at  varying the proportions by intervals of ten or twenty percent rather  than one percent (i.e. change &#8220;$take_count&#8211;&#8221; on line 15 to &#8220;$take_count  -= 10&#8243;).</p>
]]></content:encoded>
			<wfw:commentRss>http://coreyspitzer.com/blog/?feed=rss2&#038;p=33</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Designers vs. Web Developers</title>
		<link>http://coreyspitzer.com/blog/?p=21</link>
		<comments>http://coreyspitzer.com/blog/?p=21#comments</comments>
		<pubDate>Sun, 20 Mar 2011 05:50:33 +0000</pubDate>
		<dc:creator>coreyspitzer</dc:creator>
				<category><![CDATA[Developer Work Life]]></category>

		<guid isPermaLink="false">http://coreyspitzer.com/blog/?p=21</guid>
		<description><![CDATA[In my experience working with web designers it would seem that, in general, writing HTML and CSS is often simply not in their DNA.  They don’t tend to enjoy it and when I look at a page written by a designer, it’s often a typical product of Dreamweaver; i.e. riddled with inline styles, class and [...]]]></description>
			<content:encoded><![CDATA[<div>In my experience working with web designers it would seem that, in general, writing HTML and CSS is often simply not in their DNA.  They don’t tend to enjoy it and when I look at a page written by a designer, it’s often a typical product of Dreamweaver; i.e. riddled with inline styles, class and id attributes that are not descriptive and/or semantically meaningful, horrible table abuses, the same code repeated across 40 different files, and other worst practices that make it hell for developers to work with.</p>
<p>Of course there are always exceptions.  Some designers do actually write clean, maintainable pages that work in all popular browsers; and some even enjoy doing it.  I think that’s great and I’m *always* for generalism, but I worry when I see job ads looking to hire web designers that require knowledge of HTML, CSS, and sometimes even Javascript and PHP/ASP/etc!  Unless I’m totally underestimating the number people out there who can design well *and* code well, it’s pretty insane.</p>
<p>Sometimes you just have to let the designers design and the developers develop. If that’s the case then the designers who just want to design are happy and certain developers are happy &#8212; the kind who don’t mind the grunt work resulting from a stream of unchallenging “Make a web page that looks like this Photoshop document.” requests.</p>
<p>Now I’m not trying to put down designers because what they do is extremely impressive, valuable, and something I could never do (it’s just not in *my* DNA).  Naturally everything about this  works both ways: developers don’t tend to be great designers and if you were to ask me to design a webpage, you would probably get something decidedly uninspired, unappealing, and unartistic.  But you don’t see job postings for developers requiring InDesign experience.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://coreyspitzer.com/blog/?feed=rss2&#038;p=21</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

