News for hackers. Stuff that matters.

MikeOnFire

Re:A Guide to Python's Magic Methods on Saturday March 17, 2012 @11:26AM (#3717258)
For each special method, you should show what syntax magically invokes it. Something like this:

foo.__iter__() is invoked by for x in foo a.__iadd__(b) is invoked by a += b a.__rmult__(b) is invoked by b * a when b * a fails. foo.__len__() is invoked by if foo when foo.__bool__ or foo.__nonzero__ is not defined. foo.__repr__() is invoked by '%r' % foo, also by pprint.pprint(foo) and deprecated `foo`. It's also invoked by __str__ magic when foo.__str__ is not defined. etc. Putting the above info in a table would also be helpful.

Re:Why Finish Books? on Thursday March 15, 2012 @09:54PM (#3711573)
I think the answer for this is different for fiction and non-fiction. If I don't finish a non-fiction book, I still sometimes consider it "read", if I have gotten the gest of it. This is especially true if the author goes into more detail towards the end of the book after making their point. Non-completed fiction books I usually don't recommend to friends.
Re:ISPs to start policing copyright by July 12 on Thursday March 15, 2012 @09:16PM (#3711460)
sounds like a bullshit article, thought up to scare people. go fuck yourself PR firms, i'll believe it when i see it
Re:Testing Netflix on Android on Wednesday March 14, 2012 @11:22PM (#3706611)
Good read. Netflix works well on my ps3, sgs2 and PC.
Not a great policy, but the article goes on to do a good job demonstrating how harmful the software patents have become.
Re:Richard Stallman's Computer Setup on Sunday February 05, 2012 @12:09AM (#3553348)
Walking the talk is a big thing with RMS.
Re:Facebook hit git performance issue on large repository on Sunday February 05, 2012 @12:08AM (#3553347)
My first thought, as suggested by some on the list, was modularization. Redstone's response (that the 1.3 million files are essentially all interdependent) terrifies me.