Seriously brain-dead way to round off numbers in Python
import decimal
def Round(value, precision = 3):
decimal.getcontext().prec = precision
return float(str(decimal.Decimal(str(value))
/decimal.Decimal('1')))
Labels: python
Views and opinions expressed on this website are entirely my own, and do not reflect the views and opinions of any organization or entity that I am associated with. Facts, views, opinions and figures are provided "as-is", and might not be consistent with reality. In fact, I reject your reality and substitute my own.
import decimal
def Round(value, precision = 3):
decimal.getcontext().prec = precision
return float(str(decimal.Decimal(str(value))
/decimal.Decimal('1')))
Labels: python
A professional 8-dan player has been defeated by MoGo, a computer Go program that uses Monte Carlo tree search algorithms, in a 9-stone handicap game on a 19x19 board. [usgo.org] [slashdot.org]
Labels: computer science, games
Why aren't there more open source text summarization projects?
Labels: computer science
While the hot new thing from Google is knol, defined as a unit of knowledge, I believe there is something else pretty darn hot was just announced too which can, hopefully, identify hot spots (you knew that pun was coming) - Predict and Prevent at google.org.
Rapid ecological and social changes are increasing the risk of emerging threats, from infectious diseases to drought and other environmental disasters. This initiative will use information and technology to empower communities to predict and prevent emerging threats before they become local, regional, or global crises.
Labels: Google
Google has open sourced protocol buffers.
Protocol Buffers are a way of encoding structured data in an efficient yet extensible format. Google uses Protocol Buffers for almost all of its internal RPC protocols and file formats.
Labels: computer science, Google
Went shopping. To make this.

Labels: cooking