projecteuler.net database problems

Announcements, comments, ideas, feedback, and "How do I... ?" questions
JohnMorris
Posts: 64
Joined: Sun Dec 23, 2007 6:38 am

Re: projecteuler.net database problems

Post by JohnMorris »

kotulek wrote:I'm happy to see that PE is back again. Thank you very much euler for you hard work :D
Seconded - and if you do get that donations link set up, I'd be more than happy to send in a few drinking vouchers, in gratitude for your work.
Image
balakrishnan_v
Posts: 13
Joined: Sun Jan 06, 2008 3:00 am
Location: Baltimore,USA
Contact:

Re: projecteuler.net database problems

Post by balakrishnan_v »

Kudos for getting the site back so soon!
I am extremely happy to see ProjectEuler back and working. However there is a small amount of disappointment that the forums have been disabled. The forums is one of the main beauties of projecteuler . I think this was essential to reduce the bandwidth consumption. However I would like to suggest that the forums should still be open for some selected problems(for instance the top 20 toughest problems). I think the forums that have a more number of solved users will consume huge amount of bandwidth(since more users will try to access the forums).
User avatar
euler
Administrator
Posts: 5094
Joined: Sun Mar 05, 2006 4:49 pm
Location: Cheshire, England
Contact:

Re: projecteuler.net database problems

Post by euler »

I agree with you entirely: the forums are indeed one of the jewels of Project Euler. However, I can assure you that disabling the forums is only a temporary measure. I am getting very close to a workable solution, but time is not on my side. I will have to work on it whenever I get a chance. But assuming my master plan is viable, I estimate that it will be up and running, in some form, by the end of this week.
Image
impudens simia et macrologus profundus fabulae
Robert_Gerbicz
Posts: 26
Joined: Sat Oct 13, 2007 2:44 pm

Re: projecteuler.net database problems

Post by Robert_Gerbicz »

The "solved by" column on the problems page isn't working, it says for example that p176 solved by 13 users, but there are 14 peoples who have solved all problems.
User avatar
daniel.is.fischer
Posts: 2400
Joined: Sun Sep 02, 2007 11:15 pm
Location: Bremen, Germany

Re: projecteuler.net database problems

Post by daniel.is.fischer »

Yep, number fourteen was for test purposes. Confirms a gremlin.
At least the Top1000 page seems to be correctly updated, the problems and statistics page updating will be looked into.
And we hope to find a comprehensive solution soon.
Il faut respecter la montagne -- c'est pourquoi les gypaètes sont là.
User avatar
hk
Administrator
Posts: 12831
Joined: Sun Mar 26, 2006 10:34 am
Location: Haren, Netherlands

Re: projecteuler.net database problems

Post by hk »

I was the one that put that to a test. I was doubting the updating of various semi static files.
To be sure I entrered a few solutions, one as hk (disturbing the competition, I know, but for the sake of testing) and a few using some testaccount.
Problem is defined now. I hope Colin (Euler) has time and energy to look into it after his heroic effort to get PE online again.
Image
War ruins the life and health of untold numbers of innocent children.
tinita
Posts: 1
Joined: Sun Jan 06, 2008 2:22 pm

Re: projecteuler.net database problems

Post by tinita »

BjornEdstrom wrote:For web apps, I'm a huge fan of the hybrid approach of using both static files and databases at the same time.
that won't work. you need to display the user status in the top right corner, for example.
any dynamic website like this won't work with the static file approach.

but why not cache data structures? it's a common practice, and the only thing it needs is
disk space or RAM, depending on how you cache. for example, there is memcache, quite popular,
really easy to use. i only know the perl API but i guess it's similar for php.
i wonder if you already do some caching like this or not. if not, i'm not surprised about the
problems, really.

things that can be cached very easily: the problems page. just cache the list of problems with
the number of people who solved this as a data structure. this caching even won't take much space.
for every logged-in user cache their stats that you would have to regenerate otherwise.
cache the country/language statistics page. easy. cache statistics for each country.
updating/expiring these caches is easy. as you said you have 2000 correct solutions every day
this would mean 1-2 cache expirations per minute. you expire the problems page, the logged-in
stats, the country/language statistics page and the statics page for the users country.
as soon as a user clicks on a page not cached it will be regenerated and cached. the
cache entry last recently used is thrown out of the cache if you reach your cache size limit.

if the website was written in perl i would certainly offer my help to implement this.
but as i said, it's easy, and the memcached server itself is easy to run.
User avatar
stijn263
Posts: 1505
Joined: Sat Sep 15, 2007 11:57 pm
Location: Netherlands

Re: projecteuler.net database problems

Post by stijn263 »

thanks for putting the forum back so quickly colin!
White-Gandalf
Posts: 1
Joined: Thu Jan 10, 2008 10:49 pm

Re: projecteuler.net database problems

Post by White-Gandalf »

If you combine the semi-static approach of the delivery of statistics with some little surrounding php, it would be possible to even highlight the current user rank and provide the other statistics pages (user solved tasks, national ranks). You could insert a little bit script into the pages to fill in the contents from a (statically annotated) script table while matching the logged on user against additionally notated user ids in that table.

Thus you keep website delivery a one-stage-process matter of the web browser, but the same time keep the "old good" service level. I would gladly help you with that.
User avatar
stijn263
Posts: 1505
Joined: Sat Sep 15, 2007 11:57 pm
Location: Netherlands

Re: projecteuler.net database problems

Post by stijn263 »

perhaps the google bot is taking up a lot of bandwidth also?
Post Reply