Summer 2017 Website Update

Announcements, comments, ideas, feedback, and "How do I... ?" questions
User avatar
euler
Administrator
Posts: 3000
Joined: Sun Mar 05, 2006 4:49 pm
Location: Cheshire, England
Contact:

Summer 2017 Website Update

Post by euler » Thu Aug 10, 2017 2:17 pm

A major rewrite of the main website back end has been taking place on my local machine for some time and on 10 August 2017 the updated scripts were uploaded. It is hoped that the changes made will provide a little more fluidity and robustness to the functionality of the website. Sadly, very little has been done in terms of cosmetics, so you are unlikely to notice much on the surface, but I can assure you that significant changes have been made to the way the website handles data.

With any update there is only so much testing that can be done locally before the changes are made to the production website. So it would be very helpful if this thread is used to report any bugs that you might identify. I would ask for your patience if any bugs or issues come to light as I hope the necessary changes will benefit all of us in the long term.
Image
impudens simia et macrologus profundus fabulae

khalil_fazal
Posts: 3
Joined: Mon Jan 23, 2017 6:27 am

Re: Summer 2017 Website Update

Post by khalil_fazal » Thu Aug 10, 2017 10:44 pm

What if the code had many eyes looking at it? That way more bugs can be found.
Last edited by khalil_fazal on Sat Aug 26, 2017 9:51 am, edited 1 time in total.
Image

User avatar
euler
Administrator
Posts: 3000
Joined: Sun Mar 05, 2006 4:49 pm
Location: Cheshire, England
Contact:

Re: Summer 2017 Website Update

Post by euler » Thu Aug 10, 2017 11:07 pm

The scripts have been checked and tested extensively on a local machine. The issue is that we cannot know how it will perform until it goes live on a website where multiple users will be trying to access the same scripts simultaneously. Currently it has many eyes looking at it and it is experiencing the most rigorous testing any developer could hope for.
Image
impudens simia et macrologus profundus fabulae

MuthuVeerappanR
Posts: 335
Joined: Sun Mar 22, 2015 2:30 pm
Location: India
Contact:

Re: Summer 2017 Website Update

Post by MuthuVeerappanR » Fri Aug 11, 2017 8:38 am

So far, almost all of the changes I've noted so far has been on the Statistics page.

Anyway, the 'Cached at' info and the time stamp overlaps atleast while on phone. Not a big deal, not a show stopper. Noticed it, hence reporting it.

Also, the 'members at Level 1+' and 'mean number of problems solved' does not make much sense in some places as there are very few data points (South Sudan in Countries is an example). Introducing a cutoff as an eligibility criteria could be an alternative way.
Image
It is not knowledge, but the act of learning, not possession but the act of getting there, which grants the greatest enjoyment.

User avatar
euler
Administrator
Posts: 3000
Joined: Sun Mar 05, 2006 4:49 pm
Location: Cheshire, England
Contact:

Re: Summer 2017 Website Update

Post by euler » Fri Aug 11, 2017 10:03 am

If I've done my job properly you shouldn't notice any changes. Apart from those small changes on the Countries page, it's all back end stuff to do with the way that caching takes place. Because there shouldn't be any particularly notable changes, I was informing members in case any unexpected bugs crept in, so that they would understand why and could help by reporting any they noticed.

Where are you seeing Cached at? The top of the statistics pages have a very short message saying something like, "Cache update: X minutes". It's not a very long message so it shouldn't overlap with anything. Having said that, I don't use a mobile phone so I only design the site for desktop. If it works on phones, then that's a bonus. I have neither the time (nor the interest) to invest any time making the site mobile phone friendly.
Image
impudens simia et macrologus profundus fabulae

User avatar
hk
Administrator
Posts: 10158
Joined: Sun Mar 26, 2006 9:34 am
Location: Haren, Netherlands

Re: Summer 2017 Website Update

Post by hk » Fri Aug 11, 2017 10:13 am

When a country has no members at level 1 or higher and you click on that country you get the following message:
The requested statistics page is currently unavailable.
It seems that the cache is currently being rebuilt. This should resolve shortly.
If this problem persists, then please report it at http://projecteuler.chat.
I'm afraid that the problem will persist until there is at least one member at level 1 or higher for that country.
Image

User avatar
euler
Administrator
Posts: 3000
Joined: Sun Mar 05, 2006 4:49 pm
Location: Cheshire, England
Contact:

Re: Summer 2017 Website Update

Post by euler » Fri Aug 11, 2017 10:46 am

Thanks, Hans. It should be fixed now.
Image
impudens simia et macrologus profundus fabulae

MuthuVeerappanR
Posts: 335
Joined: Sun Mar 22, 2015 2:30 pm
Location: India
Contact:

Re: Summer 2017 Website Update

Post by MuthuVeerappanR » Fri Aug 11, 2017 11:59 am

euler wrote:
Fri Aug 11, 2017 10:03 am
...If it works on phones, then that's a bonus. I have neither the time (nor the interest) to invest any time making the site mobile phone friendly.
Okay.. Seems I said something wrong which I never intended.

I'll continue to visit the site on my laptop then. Thanks :)
Image
It is not knowledge, but the act of learning, not possession but the act of getting there, which grants the greatest enjoyment.

User avatar
euler
Administrator
Posts: 3000
Joined: Sun Mar 05, 2006 4:49 pm
Location: Cheshire, England
Contact:

Re: Summer 2017 Website Update

Post by euler » Fri Aug 11, 2017 1:45 pm

Sorry if it sounded like that. You never said anything wrong and I've always appreciated your feedback. It's just that personally I have no interest in making the website mobile friendly. However, if someone wishes to create a CSS so that it renders better on narrow screen devices, then they are more than welcome. I would recommend that they PM me first.
Image
impudens simia et macrologus profundus fabulae

MuthuVeerappanR
Posts: 335
Joined: Sun Mar 22, 2015 2:30 pm
Location: India
Contact:

Re: Summer 2017 Website Update

Post by MuthuVeerappanR » Fri Aug 11, 2017 2:34 pm

Apologies euler. Maybe I misinterpreted your reply.
Image
It is not knowledge, but the act of learning, not possession but the act of getting there, which grants the greatest enjoyment.

User avatar
euler
Administrator
Posts: 3000
Joined: Sun Mar 05, 2006 4:49 pm
Location: Cheshire, England
Contact:

Re: Summer 2017 Website Update

Post by euler » Fri Aug 11, 2017 6:00 pm

MuthuVeerappanR wrote:
Fri Aug 11, 2017 8:38 am
Also, the 'members at Level 1+' and 'mean number of problems solved' does not make much sense in some places as there are very few data points (South Sudan in Countries is an example). Introducing a cutoff as an eligibility criteria could be an alternative way.
I forgot to address this. I've modified the scripts to only highlight the top five values if the total number of members is 30 or higher. I know it's fairly arbitrary, but generally results below 30 are considered to be statistically insignificant.
Image
impudens simia et macrologus profundus fabulae

User avatar
jaap
Posts: 525
Joined: Tue Mar 25, 2008 3:57 pm
Contact:

Re: Summer 2017 Website Update

Post by jaap » Fri Aug 11, 2017 7:27 pm

MuthuVeerappanR wrote:
Fri Aug 11, 2017 8:38 am
Anyway, the 'Cached at' info and the time stamp overlaps atleast while on phone.
Not just on a phone. Here it is in Firefox on a PC:
eulerbug.png
eulerbug.png (8.55 KiB) Viewed 6097 times
The "Cache update" text overlaps the time. Something overlaps the time on most of the pages:
Statistics, News, Account, Progress, Recent, and Archives page.

Edit: It also happens in Chrome. It turns out however that when you widen the window, the overlapping items separate.

User avatar
euler
Administrator
Posts: 3000
Joined: Sun Mar 05, 2006 4:49 pm
Location: Cheshire, England
Contact:

Re: Summer 2017 Website Update

Post by euler » Fri Aug 11, 2017 8:01 pm

I don't know how to fix that. The central section is 1000 pixels wide. I can't imagine any desktop being less than 1280 pixels, so it shouldn't overlap. If someone is a CSS wizard and can make some suggestion then I'll gladly do something about it.
Image
impudens simia et macrologus profundus fabulae

User avatar
hk
Administrator
Posts: 10158
Joined: Sun Mar 26, 2006 9:34 am
Location: Haren, Netherlands

Re: Summer 2017 Website Update

Post by hk » Fri Aug 11, 2017 8:03 pm

It happens in IE too.
When the window isn't wide enough overlaping occurs.
@Colin: sometimes people don't use the full width of the screen.
For the time being there seems to be a simple solution: print those data below each other.
Image

User avatar
euler
Administrator
Posts: 3000
Joined: Sun Mar 05, 2006 4:49 pm
Location: Cheshire, England
Contact:

Re: Summer 2017 Website Update

Post by euler » Fri Aug 11, 2017 10:19 pm

The problem is that the cache update information is not available when the sign-in information panel is output to the page. So what I've done is placed the cache info division absolutely on the screen to the right, just below the sign-in information panel.
Image
impudens simia et macrologus profundus fabulae

MuthuVeerappanR
Posts: 335
Joined: Sun Mar 22, 2015 2:30 pm
Location: India
Contact:

Re: Summer 2017 Website Update

Post by MuthuVeerappanR » Sat Aug 12, 2017 5:04 am

This seems to be a bug.

When we click the link to our posts from the Progress page, it usually links to our post.

Now when I click one of my posts for the first time, it just goes to the first post on that thread. From then on, it works properly.
Image
It is not knowledge, but the act of learning, not possession but the act of getting there, which grants the greatest enjoyment.

User avatar
euler
Administrator
Posts: 3000
Joined: Sun Mar 05, 2006 4:49 pm
Location: Cheshire, England
Contact:

Re: Summer 2017 Website Update

Post by euler » Sat Aug 12, 2017 8:14 am

I've made some changes. Let me know if it is working for you now.
Image
impudens simia et macrologus profundus fabulae

User avatar
hk
Administrator
Posts: 10158
Joined: Sun Mar 26, 2006 9:34 am
Location: Haren, Netherlands

Re: Summer 2017 Website Update

Post by hk » Sat Aug 12, 2017 8:19 am

euler wrote:
Fri Aug 11, 2017 10:19 pm
The problem is that the cache update information is not available when the sign-in information panel is output to the page. So what I've done is placed the cache info division absolutely on the screen to the right, just below the sign-in information panel.
Perhaps you can place it above that sign-in information panel?
Image

MuthuVeerappanR
Posts: 335
Joined: Sun Mar 22, 2015 2:30 pm
Location: India
Contact:

Re: Summer 2017 Website Update

Post by MuthuVeerappanR » Sat Aug 12, 2017 8:58 am

euler wrote:
Sat Aug 12, 2017 8:14 am
I've made some changes. Let me know if it is working for you now.
Seems alright now..
Image
It is not knowledge, but the act of learning, not possession but the act of getting there, which grants the greatest enjoyment.

User avatar
hk
Administrator
Posts: 10158
Joined: Sun Mar 26, 2006 9:34 am
Location: Haren, Netherlands

Re: Summer 2017 Website Update

Post by hk » Sat Aug 12, 2017 10:31 am

When viewing the Archives I get:
The problems archives table shows problems 1 to 608. If you would like to tackle the 10 most recently published problems then go to Recent problems.
Currently there are 608 problems so it should read:
The problems archives table shows problems 1 to 598. If you would like to tackle the 10 most recently published problems then go to Recent problems.
Image

Post Reply