News for hackers. Stuff that matters.
Re:Gild to donate $5 to EFF fo each coder that solves our pr... by jc4p on Tuesday December 27, 2011 @06:00PM (#3397817)
Clever idea to generate buzz while making an impact.

Edit, took a shot at it:

Is there something wrong with how you're running the scripts? My Python script seems to die saying:

    No such file or directory: '/opt/puzzles/*.in'
But your example on how you're going to run it on the bottom says you will specify an actual file rather than a wildcard. Running it locally on my machine on all your tests results in this:

    $ python test.py d.in > d_me.out
    $ md5 d.out 
    MD5 (d.out) = c6dc722a7020baacebd876d4377065ad
    $ md5 d_me.out
    MD5 (d_me.out) = c6dc722a7020baacebd876d4377065ad
So I doubt it's a silent failure in my code.
Re:Gild to donate $5 to EFF fo each coder that solves our pr... by federicof on Tuesday December 27, 2011 @06:32PM (#3397906)
Yup, your script should receive the path to a single file, not a wildcard. I'll take a look at the logs. :) Thanks for your feedback.
Re:Gild to donate $5 to EFF fo each coder that solves our pr... by jc4p on Tuesday December 27, 2011 @06:49PM (#3397960)
Works now, thanks!
Re:Gild to donate $5 to EFF fo each coder that solves our pr... by federicof on Tuesday December 27, 2011 @07:13PM (#3398037)
Great!
Re:Gild to donate $5 to EFF fo each coder that solves our pr... by davidw on Tuesday December 27, 2011 @05:59PM (#3397813)
How long does it take? I earn an hourly rate such that $5 is not a lot of my time - perhaps it'd be more efficient simply to send them $5.
Re:Gild to donate $5 to EFF fo each coder that solves our pr... by federicof on Tuesday December 27, 2011 @06:29PM (#3397896)
It's a fairly easy puzzle, for an average programmer it should take at most half an hour. Give it a shot :)
Re:Gild to donate $5 to EFF fo each coder that solves our pr... by davidw on Tuesday December 27, 2011 @06:33PM (#3397912)
That's valuing my time at $10 an hour. No grazie:-)
Re:Gild to donate $5 to EFF fo each coder that solves our pr... by federicof on Tuesday December 27, 2011 @06:41PM (#3397931)
Sure in this case you better send them the 5$, nevertheless please share this with friends or colleagues that may want to give their contribution while having fun for half an hour.

By the way, if you're an experienced programmer the solution is quite obvious, it should take less than 15 minutes. :)

Re:Gild to donate $5 to EFF fo each coder that solves our pr... by TwistedLogic on Wednesday December 28, 2011 @08:05AM (#3399631)
I solved the puzzle :) $5 to EFF for my solution
Re:Gild to donate $5 to EFF fo each coder that solves our pr... by federicof on Thursday December 29, 2011 @12:31PM (#3404381)
Thanks!