Creative Hiring: Solve the puzzle in this jobs page and get an interview
weebly.com
weebly.com
http://www.icfpcontest.org/ And ICFP contests are always fun
And actually, I couldn't get curl to work... I'm guessing I wasn't setting the referrer or user agent right or something.
Obviously.
Firebug rocks.
function solvePuzzle() {
var t = new Date()
var time = t.getTime();
var params ="";
params += 'pos=solvepuzzle';
params += "&";
params += 'auth=' + time.toString();
new Ajax.Request('/weebly/publicBackend.php', {parameters:params, onSuccess:handlerSolvePuzzle, onFailure:function() { alert('Transmition error. Please try again.'); }});
}
solvePuzzle(); - Divided by 1000.
- Changed the clock to Pacific time
- rounded using either parseInt, Math.round and Mouth.ceil
All failed.You only have to be close by 60 seconds give or take, so just hard code in the timestamp: http://www.unixtimestamp.com/
It's a pain in the ass to change every minute, but it works and you'll get on with the rest of it.
I changed the timezone in my computer, calculated time differences. Everything. What is getting on me is precisely the fact that this is supposed to be so trivial.
But still not enough.
- write a screenscraper to get the answer from here: http://www.google.com/search?hl=en&q=1000+milliseconds+t...
- or perhaps hook your function up to the search API to get the answer that way (not sure if you can access the calculator through the API, though)
- or maybe just divide by 1000.
'pos=solvepuzzle&auth='+(new Date()).getTime()
edit: yes, that's milliseconds
I broke down so that I could change the string more easily.
YWxlcnGZvbGxvd2luZzogQoJ1zZWNyZXQgY29kZSB1zZWNyZXQgGZvbGxvd2luZzogY29pczYioyK==