It Burns! It Burns!

month

April 2012

10 posts

It Is Not Safe to Break Up in a Burger King Any More → gawker.com

These kids must be 21, tops. His main complaint? She doesn’t clean the dishes when his mom asks her to.

Andy Boyle lives tweets a breakup at a Burger King. (via Future Jess Kimball)

Apr 20, 20120 notes
Apr 20, 20120 notes
Fix income inequality with $10 million loans for everyone! - The Washington Post → washingtonpost.com

Under my plan, each American household could borrow $10 million from the Fed at zero interest. The more conservative among us can take that money and buy 10-year Treasury bonds. At the current 2 percent annual interest rate, we can pocket a nice $200,000 a year to live on.

Apr 18, 20120 notes
Famous Technology Acquisitions → docs.google.com

Two things stand out to me: Instagram’s efficiency at 2.6M users per employee, and the relatively small userbases of some of the acquisitions (Jaiku only had 50k?).

Apr 16, 20120 notes
Adding a Method Into a Python Class or Instance at Runtime

Dan Crosta says:

I write code where I’m given an object of some class (usually from a library call), but I wish to use additional methods on that class as though they had been defined there.

He’s a little light on the details of what he’s trying to accomplish exactly — the solution he provides ends up leaving the original instance untouched. If it’s ok to modify the original instance (or its class), then a more elegant solution might be:

class Base(object):
    def __init__(self):
        self.base_init = True

    def foo(self):
        return 'base foo'

    def bar(self):
        return 'base bar'


def child_bar(self):
    return 'child bar'


b = Base()

# this overwrites all instances of from this point on.
Base.bar = child_bar
print b.bar() # prints 'child bar'



# this overwrites the foo function of just an instance of Base

import types

def child_foo(self):
    return 'child foo'

b.foo = types.MethodType(child_foo, b, b.__class__)
print b.foo() # prints 'child foo'

b_orig = Base()
print b_orig.foo() # prints 'base foo'

In the first example, I’ve overwritten the bar method for all instances of class Base. In the second example, I’ve overwritten the foo method for just a single instance of Base. Admittedly, the types.MethodType call is a bit clunky (and I’ve never been able to commit it to memory, thank goodness for Google), but you could easily throw that into a handy function or decorator.

Apr 16, 20120 notes
Apr 10, 20120 notes
1.0 Is the Loneliest Number — Matt Mullenweg → ma.tt

[Having the first 1G iPhone] felt like I was on Star Trek and this was my magical tricorder… a tricorder that constantly dropped calls on AT&T’s network, had a headphone adapter that didn’t fit any of the hundreds of dollars of headphones I owned, ran no applications, had no copy and paste, and was as slow as molasses.

Classic essay, and origin (as far as I know) of the phrase, “if you’re not embarrassed by your first version, you’ve waited too long to launch”. Apple products are usually held up as pinnacles of product and industrial design, so it’s easy to forget they were once (and still are) flawed.

Apr 09, 20120 notes
Subtle Patterns | Free textures for your next web project → subtlepatterns.com

Really fantastic collection of textured backgrounds, free for any use. I looked around for something like this a little while ago and couldn’t find anything that looked particularly good. Very glad to see this!

(via Swissmiss)

Apr 05, 20120 notes
Performance Impact of CSS Selectors | High Performance Web Sites → stevesouders.com

Turns out optimizing the CSS selectors on a page doesn’t make much of a difference in real world cases.

Apr 02, 20120 notes
Music Upstart Songza Co-Founders On Battling Pandora, Spotify | TechCrunch → techcrunch.com

Long overdue recognition!

Apr 02, 20120 notes
Next page →
2012 2013
  • January 24
  • February 9
  • March 3
  • April 5
  • May 4
  • June 3
  • July
  • August
  • September
  • October
  • November
  • December
2011 2012 2013
  • January 20
  • February 22
  • March 13
  • April 10
  • May 26
  • June 21
  • July 30
  • August 17
  • September 6
  • October 14
  • November 4
  • December 2
2010 2011 2012
  • January 20
  • February 17
  • March 15
  • April 14
  • May 6
  • June 15
  • July 6
  • August 9
  • September 12
  • October 19
  • November 16
  • December 16
2009 2010 2011
  • January 2
  • February 2
  • March 6
  • April
  • May
  • June
  • July
  • August 2
  • September 5
  • October 12
  • November 20
  • December 7
2008 2009 2010
  • January 5
  • February 1
  • March 3
  • April 4
  • May 4
  • June 3
  • July 11
  • August 5
  • September 24
  • October 12
  • November 5
  • December 1
2008 2009
  • January
  • February
  • March
  • April
  • May
  • June
  • July
  • August
  • September
  • October 9
  • November 12
  • December 7