News for hackers. Stuff that matters.

aralib

It supports a reStructuredText format as well, which is explained in the last paragraph of the "Example Documents and Input Formats" section <http://www.mos6581.org/introducing-rinohtype#example-documen....
Re:Interesting C code on Saturday July 09, 2011 @12:37AM (#2745024)
Now I really want to learn ray tracing (and computer graphics in general).
Re:Do I need to go to a big-name university? on Sunday January 30, 2011 @05:26PM (#2159371)
It seems that the commenter was saying that the most impressive students were from those three schools, not that most (or even many) of the interns at Microsoft were from those three schools.
Re:Pi% * 1337 = 42 on Monday January 17, 2011 @03:06PM (#2113233)
It simply rounds percentages to two decimal digits, and when those two digits are zero, they are hidden. For example, see: http://www.wolframalpha.com/input/?i=%28e^pi-pi%29*100%25
Re:Pi% * 1337 = 42 on Monday January 17, 2011 @02:42PM (#2113150)
Well, it's not quite "fractional". I think we'd call it a decimal approximation. Pi is irrational (http://en.wikipedia.org/wiki/Proof_that_%CF%80_is_irrational).
Re:Build a better spell checker, win $10,000 on Friday December 17, 2010 @06:45AM (#2015947)
This seems much worse that the original excerpt you posted.
Re:Some fun mathematical puzzles on Sunday November 21, 2010 @11:48AM (#1927303)
Your solution is not correct. For example, if the counterfeit pile is initially measured with one coin and Delta is -1 (29 modulo 30), you set D1 to 1, but D2 will be 28, 29, or 30. You cannot determine Delta or the counterfeit pile with such values of D1 and D2 using your algorithm.

It's certainly not the case that D{1,2} <= 20 as your comments suggest, and you seem to realize this by checking for D1 >= 25. Also, you ignore the case of 20 < D1 < 25.

Note that Delta is strictly between -5 and 5, so it can't be equal to -5 or 5.

There is actually a really elegant solution to this problem. I'll send you an email so you can let me know if you'd like a hint.

Re:Remind HN: Vote on Tuesday November 02, 2010 @03:06PM (#1861833)
hm.. "the problem of having prisoners live" doesn't sound right.
Re:Four days in the life of HN on Tuesday October 26, 2010 @04:03AM (#1833438)
Though fierarul's comment leads to a natural question. The original comment explaining the graph is really necessary for the link to make sense. Explaining the graph in a comment seems to break the (apparent) convention of submissions being self-contained.

I thought the reason for disallowing both a URL and text in a submission was to avoid this. Though, if a submission that requires a comment is acceptable, why not allow submitting both a URL and text?

Re:The Second Serve Problem on Sunday September 19, 2010 @01:22AM (#1705646)
Tennis is not about winning individual points, but about stringing points together to win games (and sets). I find that first-serve faults tend to happen a lot in the same game. I think employing this "two first-serves" strategy and double-faulting a few times in a game could cost you a break of serve and lose you the set. Winning more points on average over the course of the entire match doesn't necessarily help.
Re:Call phones from Gmail on Friday August 27, 2010 @12:12AM (#1637974)
I doubt they're her teeth.
Re: Review my site: AwesomenessReminders on Thursday August 19, 2010 @12:49AM (#1616545)
Or you could send an email. Wouldn't it be worth more if you reminded them rather than a hired stranger reminding them, even if you can't remind them every day or every month?
Re:Conway's Game of Life in HTML 5 on Friday July 09, 2010 @02:28AM (#1499943)

  {"width": 52, "cells": "AAAAABgAAABgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAAACIAAAEEAAAEEAAAAgAAACIAAABwAAAAgAAAAAAAAAAAAAHAAAAHAAAAIgAAAAAAAAYwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGAAAAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}
Re:Everything I Know About Tennis I Learned from Cow Paths on Wednesday July 07, 2010 @12:10AM (#1493288)
Technology is making people taller?