r/adventofcode • u/topaz2078 (AoC creator) • Dec 02 '15
AoC is fragile; please be gentle
Please don't build auto-downloaders, auto-solvers, auto-requesters, etc. The site is running on a single server I have and it's getting a lot of traffic. I'm afraid of someone writing a script that makes lots of requests, distributes it, and overwhelms the site. If it goes down, nobody gets to play, so please be gentle!
Only send one request every few seconds. Some of the endpoints are now throttled at "human" speeds, and will reject your requests if you send them too quickly (faster than one request per ten seconds).
Save the inputs. They don't change, so you can request them exactly once and store them.
Save your correct answers. They don't change, so once you know an answer is correct, you don't have to keep sending those requests.
In some cases, the "correct answer" pages contain more information that you can only get once from submitting that answer. If you solve a puzzle using a script and it doesn't save that output, everything not saved will be lost. (If you're a human, don't worry - it's obvious when the answer page is different.)
13
u/mmix2000 Dec 05 '15
That's because your leaderboard ranking system is geared that way, you are actively stimulating people to pound your server at midnight. Not to mention it's very US centric, Adventofcode is fast becoming very popular in Europe and we usually tend to sleep at the time you release new questions :)
6
u/stuntguy3000 Dec 04 '15
Are you planning to do another next year? This seems like it can be a lot of fun in teams.
5
u/neogodless Dec 09 '15
Eric,
Thank you for all of your contributions here. Great idea and execution. I do have one question - my login through Twitter only kind of works. The issue is that my "stars" are not sync'd. If I login at home, I've got 7.5 days completed, 15 stars. But at work, there are only stars where I've re-entered answers. Is this by design? Should I re-enter all my answers in each new browser instance? (For example, if I switch to completing puzzles on my laptop this weekend, I'll need to re-enter about 20 answers by that point to fill up the stars of my tree.)
3
u/setnicka Dec 08 '15
Small bugreport: Font on the webpage is broken for latin extended languages (see http://i.share.pho.to/03aeaaa4_o.png).
Adding "&subset=latin,latin-ext" to the Google Fonts link will be nice :-)
2
u/olivervscreeper Dec 05 '15
I made a script which simply takes the session variable and does one request per day (so five requests over about two seconds). Is that alright for me to distribute on here? It's just a little easier than making someone fetch 25 input strings.
2
u/certifiedshitl0rd Dec 06 '15
As a side question, have you thought of having a leaderboard for most occurrences of a user on a day's leaderboard. An analogy to this would be how Mario Kart has points given to racers for how they finish each race and then at the end they have an overall score. There could be points earned for each day's top 100 and then have a overall leaderboard.
2
u/drwxrxrx Dec 11 '15
Glad to donate, thanks for building this!
2
u/badcoder123 Dec 19 '15
Your stats page gives 1 gold count more than the leaderboard page.
2
u/rabiedenharn Dec 19 '15
As for the time a new puzzle is released, I note that there are 24 hours in a day and 24 days in December prior to Christmas on the 25th. So, if there were a new puzzle released every 25 hours instead of every 24, by the time you reached Christmas you'd have skipped forward a full day and could take a day "off".
(edit for formatting)
2
u/deds_the_scrub Dec 21 '15
Enjoying this so far. I hope you'll keep the site up after Christmas for those of us that started late or can't get to them all this week.
57
u/Philboyd_Studge Dec 02 '15
1
u/tragicshark Dec 11 '15
Are the stats wrong somehow?
More people have done puzzle 10 than puzzle 9?
1
u/FFormulas Dec 12 '15
Fantastic site and i really love those daily puzzles:) Wanted to ask whether or not is it posible to see the ranking of players by how many total stars they have achieved?
1
u/[deleted] Dec 13 '15
Are the puzzles going to be available after Dec 25th? I got a late start and I'm totally new to programming, so I really can pretty much only get through one puzzle a day right now but I don't want to miss out!
3
u/Liquidmantis Dec 04 '15
Donated a few bucks as I'm really enjoying it. If it's that popular hopefully enough people contribute to make hosting (and future challenges!) an option.
1
u/LoLz14 Dec 08 '15
This isn't fair towards Europeans :/
We can never get on ladder (except for those who get up around 6 AM)
2
u/daggerdragon Dec 14 '15
AoC is temporarily down, sit tight, we'll be back ASAP
2
u/adytzu2007 Dec 16 '15
Great idea and execution. Some of the puzzles are challenging enough to make you think about how to solve them efficiently (at least until you open the input and realize that a brute force solution will do just fine).
I have two suggestions. First, make the input more terse. If I choose any other language than Python, the input parsing gets tedious very fast. Second, since these are meant as sort of an introduction to programming, for challenges where it make sense, after a user has solved the challenge point him to some resources about how an efficient solution would look.
2
u/Jushak Dec 19 '15
Must add my thanks for this site to the list of others well-wishers. Very nice way to get myself to do some programming exercises when I don't feel like doing any of my own projects. Helps keeping my skills fresh while looking for work.
1
u/TomP Dec 14 '15
Is the site down? Safari is telling me it can't connect to "adventofcode.com" right now.