<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-us"><title>matterkkila.com / Recent Posts</title><link href="http://matterkkila.com/" rel="alternate" /><id>http://matterkkila.com/</id><updated>2009-08-18T19:54:43+00:00</updated><subtitle>Recent Posts from matterkkila.com</subtitle><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/matterkkila/atom" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="matterkkila/atom" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry><title>why coding in php is like watching gay porn</title><link href="http://matterkkila.com/2009/08/18/why-coding-php-watching-gay-porn/" rel="alternate" /><updated>2009-08-18T19:54:43+00:00</updated><author><name>Matt Erkkila</name><email>matt@matterkkila.com</email><uri>http://matterkkila.com/</uri></author><id>http://matterkkila.com/2009/08/18/why-coding-php-watching-gay-porn/</id><summary type="html">I was talking to a friend on IM tonight and the conversation eventually turned to coding and the different projects each of us was working on.  My friend, a long time PHP developer who is now working in Python, commented about how much he loves working in Python.
&lt;br /&gt;
&lt;br /&gt;What follows was my response:
&lt;br /&gt;
&lt;br /&gt;"Yeah, I feel so much cleaner when I get to code in Python.  Things just make sense to me.  At first you're like 'hrm, that's weird.'  Then a few days later you're like, 'oh yeah, that makes total sense.'  With PHP you only get the first part."
&lt;br /&gt;
&lt;br /&gt;To put it another way, coding in PHP is like watching gay porn and not knowing it.  You keep waiting for the girls to show up and they never do.  Then you're just a guy watching gay porn.
&lt;br /&gt;
&lt;br /&gt;Disclaimer: I make my living coding in PHP.</summary><category term="Conversations" /><category term="PHP" /><category term="Programming" /><category term="Python" /></entry><entry><title>security, you're doing it wrong</title><link href="http://matterkkila.com/2009/08/12/security-youre-doing-it-wrong/" rel="alternate" /><updated>2009-08-12T11:56:17+00:00</updated><author><name>Matt Erkkila</name><email>matt@matterkkila.com</email><uri>http://matterkkila.com/</uri></author><id>http://matterkkila.com/2009/08/12/security-youre-doing-it-wrong/</id><summary type="html">I was reading through a white paper today, I won't say which one it was or what company produced it, but one paragraph in particular caught my attention.
&lt;br /&gt;
&lt;br /&gt;"The system uses cryptographic hashing based on the popular MD5 algorithm. The algorithm is designed so that any changed byte of the hash propagates new changes throughout the remainder of the calculation. The result is a completely different hash that is nearly impossible to break."
&lt;br /&gt;
&lt;br /&gt;Um, really?  MD5 is secure?  Maybe you should read a little more into the subject.  Here's a link for you: &lt;a href="http://en.wikipedia.org/wiki/MD5" target="_blank"&gt;http://en.wikipedia.org/wiki/MD5&lt;/a&gt;
&lt;br /&gt;
&lt;br /&gt;People, really, please stop using MD5.  Switch to something stronger.  SHA-1 or SHA-2 maybe?
&lt;br /&gt;</summary><category term="General" /><category term="Programming" /><category term="Security" /></entry><entry><title>the almighty dollar</title><link href="http://matterkkila.com/2009/06/30/almighty-dollar/" rel="alternate" /><updated>2009-06-30T06:55:48+00:00</updated><author><name>Matt Erkkila</name><email>matt@matterkkila.com</email><uri>http://matterkkila.com/</uri></author><id>http://matterkkila.com/2009/06/30/almighty-dollar/</id><summary type="html">Yesterday, after pleading guilty to 11 criminal counts, including securities fraud, wire fraud, and money laundering, Bernard Madoff was sentenced by the federal courts to 150 years in prison.
&lt;br /&gt;
&lt;br /&gt;By comparison, the average sentence for a man convicted of rape is 9.75 years (117 months) and the average time served for rape is 5.4 years (65 months). (&lt;a href="http://ojp.usdoj.gov/ovc/ncvrw/1996/m-rape.htm" target="_blank"&gt;http://ojp.usdoj.gov/ovc/ncvrw/1996/m-rape.htm&lt;/a&gt;)
&lt;br /&gt;
&lt;br /&gt;I agree that what Madoff did was wrong, that he ruined countless peoples lives.  I agree he should spend the rest of his life in jail and pay restitution to his investors.  But when it comes down to it, it's just money.
&lt;br /&gt;
&lt;br /&gt;I am not sure if I am arguing that his sentence was too harsh or that rape sentences are too lenient, maybe a bit of both.  What I am really asking for is a bit of perspective on the matter.  The man was a cheat and crook but by comparison, is what he did 15x worse than rape?</summary><category term="General" /></entry><entry><title>stay classy</title><link href="http://matterkkila.com/2009/04/10/stay-classy/" rel="alternate" /><updated>2009-04-10T13:13:18+00:00</updated><author><name>Matt Erkkila</name><email>matt@matterkkila.com</email><uri>http://matterkkila.com/</uri></author><id>http://matterkkila.com/2009/04/10/stay-classy/</id><summary type="html">If you're a dumb person, surround yourself with smart people.  If you're a smart person, surround yourself with smart people who disagree with you.  I like disagreements, provided they are constructive.
&lt;br /&gt;
&lt;br /&gt;Last week Digg launched a new product, DiggBar, to a mixed response.  For a little background, the DiggBar is really two products in one:
&lt;br /&gt;
&lt;br /&gt;1. A URL shortener that turns long URL's like &lt;a href="http://matterkkila.com/2008/11/02/decisions-are-made-those-who-show/"&gt;http://matterkkila.com/2008/11/02/decisions-are-made-those-who-show/&lt;/a&gt; into shorter versions like &lt;a href="http://digg.com/u19nx"&gt;http://digg.com/u19nx&lt;/a&gt; that makes them easier to send across a number of platforms (i.e. email, im, twitter, etc).
&lt;br /&gt;
&lt;br /&gt;2. A frame bar that sits on top of websites you visit using a digg shortened url, that looks something like this:
&lt;br /&gt;
&lt;br /&gt;&lt;a href="http://www.flickr.com/photos/matterk/3429965856/" title="DiggBar by matterk, on Flickr"&gt;&lt;img src="http://farm4.static.flickr.com/3542/3429965856_ba5c078745.jpg" width="500" height="92" alt="DiggBar" /&gt;&lt;/a&gt;
&lt;br /&gt;
&lt;br /&gt;I have been using this product internally for a few months now and find it pretty awesome.  A lot of work went into it by a lot of people at Digg.  It is something we were and are really proud of.
&lt;br /&gt;
&lt;br /&gt;I have heard a number of arguments from people, some of them actually very interesting and speak to the very nature of what a URL is and how one should be used, while others have been less than constructive.  The most common ones I have heard center around the topics of SEO (Search Engine Optimization) and "Framing".
&lt;br /&gt;
&lt;br /&gt;While this post won't talk about these disagreements specifically I would like to point out two things I have come across this week.
&lt;br /&gt;
&lt;br /&gt;&lt;a href="http://www.flickr.com/photos/matterk/3429232481/" title="Classy by matterk, on Flickr"&gt;&lt;img src="http://farm4.static.flickr.com/3407/3429232481_4bd3a53c80.jpg" width="500" height="366" alt="Classy" /&gt;&lt;/a&gt;
&lt;br /&gt;
&lt;br /&gt;and
&lt;br /&gt;
&lt;br /&gt;&lt;a href="http://www.flickr.com/photos/matterk/3429220901/" title="Classy by matterk, on Flickr"&gt;&lt;img src="http://farm4.static.flickr.com/3376/3429220901_a442eb24b4.jpg" width="500" height="241" alt="Classy" /&gt;&lt;/a&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;To which I reply:  Stay classy.
&lt;br /&gt;&lt;br /&gt;</summary><category term="Digg" /><category term="General" /></entry><entry><title>it's hard to believe</title><link href="http://matterkkila.com/2009/03/06/its-hard-believe/" rel="alternate" /><updated>2009-03-06T13:48:39+00:00</updated><author><name>Matt Erkkila</name><email>matt@matterkkila.com</email><uri>http://matterkkila.com/</uri></author><id>http://matterkkila.com/2009/03/06/its-hard-believe/</id><summary type="html">It's hard to believe that we haven't been able to sustain the growth we have had over the last 10 years.
&lt;br /&gt;
&lt;br /&gt;&lt;a href="http://www.flickr.com/photos/matterk/3332803355/" title="The Dow - DJIA by matterk, on Flickr"&gt;&lt;img src="http://farm4.static.flickr.com/3632/3332803355_504b716492.jpg" width="500" height="142" alt="The Dow - DJIA" /&gt;&lt;/a&gt;
&lt;br /&gt;
&lt;br /&gt;The Dow Jones Industrial Average from January 9, 1970 to March 6, 2009.</summary><category term="Economy" /><category term="General" /></entry><entry><title>decisions are made by those who show up</title><link href="http://matterkkila.com/2008/11/02/decisions-are-made-those-who-show/" rel="alternate" /><updated>2008-11-02T16:06:40+00:00</updated><author><name>Matt Erkkila</name><email>matt@matterkkila.com</email><uri>http://matterkkila.com/</uri></author><id>http://matterkkila.com/2008/11/02/decisions-are-made-those-who-show/</id><summary type="html">November 4th is just around the corner and millions upon millions of Americans will converge on their designated polling places and cast a vote for the next President of the United States.  With all the turmoil in the world, the war, the economic meltdown, and the coming recession, the significance of this election hasn't escaped anyone's notice.  Every American, Man, Woman, child, Black, White, Asian, Jewish, Catholic, and Atheist alike will be looking to the next president to guide us.
&lt;br /&gt;
&lt;br /&gt;Democracy is all about compromise, about working together and solving differences, about everyone's voice being heard.  There are too many people who live in countries which don't allow their citizens to vote, don't allow woman to vote, that don't allow the press the freedom to write what they want, or people to say what they think.
&lt;br /&gt;
&lt;br /&gt;I am not going to tell you who to vote for, everyone needs to make that decision themselves but let me tell you this.  I don't care if you're a Republican or Democrat, an Independent or Libertarian.  I don't care if you pray to God or Allah, praise the Buddha or worship Satan.  I don't care if your first choice didn't make it to their parties primary, or isn't on the ballot.
&lt;br /&gt;
&lt;br /&gt;Decisions are made by those who show up.  Vote.</summary><category term="General" /><category term="Politics" /></entry><entry><title>./unfuck.sh</title><link href="http://matterkkila.com/2008/05/27/unfucksh/" rel="alternate" /><updated>2008-05-27T20:32:44+00:00</updated><author><name>Matt Erkkila</name><email>matt@matterkkila.com</email><uri>http://matterkkila.com/</uri></author><id>http://matterkkila.com/2008/05/27/unfucksh/</id><summary type="html">Any coder will tell you that sometimes things just don't work right.  The output isn't what you expected, the data isn't getting into the DB for some unknown reason, the cache isn't getting updated.  There are a number of things that can occur when you work on a large code base.
&lt;br /&gt;
&lt;br /&gt;Anytime something like this happens here at Digg we often joke about wanting a ./unfuck.sh script that will magically fix things.  This would have to be some magical piece of software with all sorts of machine learning and AI in order to find and fix the problems we have on any given day.
&lt;br /&gt;
&lt;br /&gt;Well the other day I gave a stab at writing one.  Turns out it only needed a few lines of code to get working.
&lt;br /&gt;
&lt;br /&gt;&lt;code&gt;
&lt;br /&gt;if ( committer.name == 'Joe Stump' ) { rollback(); } 
&lt;br /&gt;if ( committer.country == 'canadia' &amp;amp;&amp;amp;
&lt;br /&gt;     committer.species == 'dirtyfilthyhipster' ) { redoalljs(); }
&lt;br /&gt;&lt;/code&gt;
&lt;br /&gt;For those who might not know.  Joe Stump is the architect here at Digg and regardless of how often we joke about his code, he is pretty good at what he does.  The person from Canadia, or Canada as some like to say, and happens to be a hipster, who we joke about being dirty and filthy as most hipsters are, is Micah Snyder.  He is Digg's JS wizard.  He even has a wizard hat that he wears when he is coding.  One of these days I will remember to take a picture of it.</summary><category term="Digg" /><category term="Programming" /></entry><entry><title>kevin rose interviewed by a puppet</title><link href="http://matterkkila.com/2008/05/22/kevin-rose-interviewed-puppet/" rel="alternate" /><updated>2008-05-22T08:11:44+00:00</updated><author><name>Matt Erkkila</name><email>matt@matterkkila.com</email><uri>http://matterkkila.com/</uri></author><id>http://matterkkila.com/2008/05/22/kevin-rose-interviewed-puppet/</id><summary type="html">&lt;a href="http://www.youtube.com/watch?v=6Zsxjt4KOQE&amp;eurl=http://www.techcrunch.com/2008/05/22/the-puppet-interviews-diggs-kevin-rose/" target="_blank"&gt;Here is the video&lt;/a&gt;
&lt;br /&gt;
&lt;br /&gt;This is one of the funnier videos I have seen of Kevin.  It is amazing to work at a company where everyone have a great sense of humor and can laugh at themselves.  Absolutely hilarious.
&lt;br /&gt;
&lt;br /&gt;A few memorable quotes:
&lt;br /&gt;
&lt;br /&gt;Puppet:  Let me talk to you about another company of yours, Pownce.  Whats going on there?  You would think with Twitter being in such shit shape constantly that you would pownce on it?  No pun intended.
&lt;br /&gt;
&lt;br /&gt;...
&lt;br /&gt;
&lt;br /&gt;Kevin: Thats a nice little stash you got there.
&lt;br /&gt;Puppet: Thanks it took me 65 years to grow it.  When you grow up kid maybe you will have one too.
&lt;br /&gt;Kevin:  I still can't grow one, I wish I could.
&lt;br /&gt;
&lt;br /&gt;...
&lt;br /&gt;
&lt;br /&gt;Puppet:  Here's the question I really want to ask.  Running these three companies, how do you find the time to bang all the chicks you do?</summary><category term="Digg" /></entry><entry><title>official rules for fantasy kick ball and wiffle ball</title><link href="http://matterkkila.com/2008/05/17/official-rules-fantasy-kick-ball-and-wiffle-ball/" rel="alternate" /><updated>2008-05-17T13:56:39+00:00</updated><author><name>Matt Erkkila</name><email>matt@matterkkila.com</email><uri>http://matterkkila.com/</uri></author><id>http://matterkkila.com/2008/05/17/official-rules-fantasy-kick-ball-and-wiffle-ball/</id><summary type="html">Fantasy Kickball Rules and Regulations:
&lt;br /&gt;
&lt;br /&gt;1. dress up like a unicorn or pegasus or minotaur or wizard or some shit.
&lt;br /&gt;
&lt;br /&gt;2. Kick the ball with your foot. Or when applicable, your hoof.
&lt;br /&gt;
&lt;br /&gt;3. Flying lead-offs are prohibited. This means you, Pegasus.
&lt;br /&gt;
&lt;br /&gt;4. Wizards are limited to one magic spell per three innings.
&lt;br /&gt;
&lt;br /&gt;5. Instead of the normal two visits, cyclops pitchers are allowed four visits to the mound by the manager per inning before they must be removed from the game. This is because cyclopses can't see too good.
&lt;br /&gt;
&lt;br /&gt;6. If you are Mercury, a rolled kickball glancing off either foot wing shall be ruled a foul ball.
&lt;br /&gt;
&lt;br /&gt;7. If you are the San Diego Chicken, a kickball making any contact with you shall be ruled a fowl ball.
&lt;br /&gt;
&lt;br /&gt;8. If you are a giant letter A, E, I, O, or U, a kickball making any contact with you shall be ruled a vowel ball. In some cases, this rule also applies to the giant letter Y.
&lt;br /&gt;
&lt;br /&gt;9. If you like shitty puns, you're welcome.
&lt;br /&gt;
&lt;br /&gt;10. Giant Laser-Beam-Shooting MegaRobot 9000 can do whatever the hell he wants, including batting out of order, smashing foes, and committing credit-card fraud.
&lt;br /&gt;
&lt;br /&gt;11. Throwing the ball at runners is permitted; if a runner is hit while they're not on base, they're out. Invisible Man, we really need you to go by the honor system here.
&lt;br /&gt;
&lt;br /&gt;12. Hercules must replace all kickballs damaged by the power of his mighty kick.
&lt;br /&gt;
&lt;br /&gt;13. Participants are encouraged to be pitchers rather than belly-itchers, and batters rather than broken ladders.
&lt;br /&gt;
&lt;br /&gt;14. Reenactments of the film "Pterodactyl," starring Coolio, shall be strictly enforced.
&lt;br /&gt;
&lt;br /&gt;=====
&lt;br /&gt;
&lt;br /&gt;side games may include:
&lt;br /&gt;
&lt;br /&gt;1. "peg a pegasus," in which you throw a kickball as hard as you can at someone dressed like a pegasus. this will probably be me.
&lt;br /&gt;
&lt;br /&gt;2. "fantasy fantasy kickball," in which you draft players who play kickball and receive points based on their real in-game stats.
&lt;br /&gt;
&lt;br /&gt;3. "50 centaur," the rapping man-horse.
&lt;br /&gt;
&lt;br /&gt;4. "pipes of pan...demonium!" not sure what this is yet, i just like the sound of it.
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;courtesy of Tim Moynihan</summary><category term="General" /></entry><entry><title>how to make money and influence people</title><link href="http://matterkkila.com/2008/05/16/how-make-money-and-influence-people/" rel="alternate" /><updated>2008-05-16T09:17:09+00:00</updated><author><name>Matt Erkkila</name><email>matt@matterkkila.com</email><uri>http://matterkkila.com/</uri></author><id>http://matterkkila.com/2008/05/16/how-make-money-and-influence-people/</id><summary type="html">It has been almost a year since I moved out to Silicon Valley to become a programmer at Digg.  Before I left I continually worried if I was making the right decision.  I was moving away from my family, my friends, the cost of living in S.F. is so much larger than in Michigan that I would essentially be taking a pay cut to come here.
&lt;br /&gt;
&lt;br /&gt;I wasn't happy with the company I worked for.  The job I was doing was OK and the people I worked directly with I really liked but it was a company of 450+ people where I was just another cog in the machine.  The company itself was a family owned publishing/media company for B2B, they had been around for many generations and had never considered doing business on the web till around 2002.  So most of the staff outside the "internet" department had no idea what the internet was or how it worked or even how to make money with it.
&lt;br /&gt;
&lt;br /&gt;That in and of itself isn't a problem.  The real problem was that they were unwilling to admit they didn't know what they were doing and it was next to impossible to get them to listen to any of the suggestions that came out of our group.
&lt;br /&gt;
&lt;br /&gt;So after 3 years I was so frustrated with the "politics", and believe me there was a lot of it, I decided to look for a job somewhere else and the opportunity to work for a company like Digg was too good to pass up.
&lt;br /&gt;
&lt;br /&gt;So I packed up my entire car, left Michigan, and drove across country in 4 days.  I haven't looked back since.  Regardless to say that working at Digg is pretty much the best job I ever could have.  The people are all smart, fun to be around, motivated, and hard working.  I still keep in touch with a few friends from Michigan and even a few from my old company.
&lt;br /&gt;
&lt;br /&gt;In talking with my friends from my former, undisclosed, employer I am more convinced than ever that I made the right choice.  When I left the company, shortly after, a number of other people from the Internet group left as well, as much as 30% of the staff.  The only response from the CEO's was to hire faster.  Not once did they ask, "Why are so many people leaving?".
&lt;br /&gt;
&lt;br /&gt;With the current downturn in specific sectors of the economy, like the construction industry,  their profitability it taking a hit.  Now they are still profitable, they are still making money, but just not as much.  So what do they do to help fix this.  Send out an email that starts with the following lines:
&lt;br /&gt;
&lt;br /&gt;”Tardiness costs U.S. businesses more than $3 billion each year in lost productivity. The effect on the bottom line of the average business is significant: An employee who is late 10 minutes each day has, by the end of the year, taken the equivalent of a week’s paid vacation.”
&lt;br /&gt;
&lt;br /&gt;When I read stuff like this and hear about it from my friends, I know I absolutely made the right choice.  Working at a company like Digg, for people like Kevin Rose and Jay Adelson, people who "get it".  Not just the internet, but how to motivate people to work hard and foster creativity.  Allowing me to do things I never thought I could do before.  I consider myself a very lucky person.</summary><category term="Digg" /><category term="General" /></entry></feed>
