News for hackers. Stuff that matters.
Re:Just compile some Scala code to get an interview by CodeMage on Monday May 02, 2011 @11:14AM (#2506517)
I haven't run this, but the code seems to have an error. As far as I can tell "k.size" will return 19 and you need to subtract 20 from the ASCII code to get the real thing. Otherwise you would get gibberish.

EDIT: I actually went and ran the thing, just to make sure I wasn't crazy. You definitely need to change "(c - k.size)" to "(c - k.size - 1)".

Re:Just compile some Scala code to get an interview by jorgeortiz85 on Monday May 02, 2011 @11:19AM (#2506534)
Reply to your edit: No, they meant for the string to have two backslashes, not one. Otherwise the domain is wrong.
Re:Just compile some Scala code to get an interview by gojomo on Monday May 02, 2011 @12:43PM (#2506856)
Identifying such a bug could very well be an intentional part of their filter. Was it your intent to post part of the solution for GetGush applicants to crib?
Re:Just compile some Scala code to get an interview by petervandijck on Monday May 02, 2011 @01:14PM (#2506993)
No that was just me messing up the blog post.
Re:Just compile some Scala code to get an interview by antiterra on Monday May 02, 2011 @11:16AM (#2506522)
gWU`UAXYjT[ig\\eBWca looks like 20 characters to me, why would k.size return 19?
Re:Just compile some Scala code to get an interview by CodeMage on Monday May 02, 2011 @11:17AM (#2506526)
Because \\ is an escape for \.
Re:Just compile some Scala code to get an interview by jorgeortiz85 on Monday May 02, 2011 @11:18AM (#2506529)
Because Java/Scala strings use \ as an escape character, so the string "\\" parses as a string with a single backslash character, not two.