Where Amazon's EC2 Falls Down

Wired Top Stories

The very best basketball free throw shooters can sink the ball about 90 percent of the time. What would it take to get to 95 percent? WIRED's Robbie Gonzalez steps up to the foul line with top shooter Steve Nash to find out.

30 March 2012

Python file with closing automatically

Planet Mozilla

Perhaps someone who knows more about the internals of python and the recent changes in 2.6 and 2.7 can explain this question that came up today in a code review. I suggest using with instead of try: ... finally: to close a file that was written to.…

27 March 2012

String length truncation optimization difference in Python

Planet Mozilla

We have a piece of code that is going to be run A LOT on a server infrastructure that needs to be fast. I know that I/O is much more important but because I had the time I wanted to figure out which is fastest: def a(s, m): if len(s) > m: s =…

27 March 2012

Integrate BrowserID in a Tornado web app

Planet Mozilla

BrowserID is a new single sign-on initiative lead by Mozilla that takes a very refreshing approach to single sign-on. It's basically like OpenID except better and similar to the OAuth solutions from Google, Twitter, Facebook, etc but without being tied to…

27 March 2012

When to __deepcopy__ classes in Python

Planet Mozilla

When using mutables in Python you have to be careful: >>> a = {'value': 1} >>> b = a >>> a['value'] = 2 >>> b {'value': 2} So, you use the copy module from the standard library: >>> import copy >>> a = {'value': 1} >>> b = copy.copy(a) >>> a['value'] =…

27 March 2012

Luis de Bethencourt: Donald Knuth and Steve Jobs

Planet Ubuntu

It is always fascinating when two brilliant minds meet... Steve Jobs had managed to get Donald Knuth, the legendary Stanford professor of Computer Science, to give a lunchtime lecture to the Mac team. Knuth is the author of at least a dozen books,…

26 March 2012

Building a GSM network with open source (The H)

LWN.net

The H has posted a look at the OpenBTS and OpenBSC projects. "The next stroke of genius came in [OpenBTS's] approach to engineering the air interface. In a proprietary base transceiver station (BTS) this would typically be done via a heady mix of analogue…

26 March 2012

New iPad 1080p camera put to the test with prototype Padcaster rig

TUAW - The Unofficial Apple Weblog

Filmmakers Josh Apter and Peter Olsen like to tackle new technology as soon as they can get their hands on it -- but they don't really have a choice in the matter. As the proprietor of NYC's Manhattan Edit Workshop, Josh is obligated to get ahead of the…

25 March 2012