Register FAQ Search Today's Posts Mark Forums Read

2016-11-11, 20:36   #1156
Dubslow

"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3·2,399 Posts

Quote:
 Originally Posted by ric Apparently, since a couple of days the page My Account/Assignments returns exponents randomly, rather than ordered by ascending exponent as before. Emptied and refreshed cache, changed browser, another OS - all the usual stuff, but this sneezing behavior remains... is it just me?
Confirmed just now for me. Strange.

 2016-11-11, 21:26 #1157 James Heinrich     "James Heinrich" May 2004 ex-Northern Ontario 13×239 Posts For me it shows in exponent ascending order. I can click the column header to reorder to any column, but on page reload it returns to exponent order (as expected?)
2016-11-12, 00:49   #1158
0PolarBearsHere

Oct 2015

2×7×19 Posts

Quote:
 Originally Posted by ric Apparently, since a couple of days the page My Account/Assignments returns exponents randomly, rather than ordered by ascending exponent as before. Emptied and refreshed cache, changed browser, another OS - all the usual stuff, but this sneezing behavior remains... is it just me?
Mine's in order. Are you sure you're not accidentally clicking one of the other column headers?

2016-11-12, 03:44   #1159
Serpentine Vermin Jar

Jul 2014

29·113 Posts

Quote:
 Originally Posted by 0PolarBearsHere Mine's in order. Are you sure you're not accidentally clicking one of the other column headers?
Funny... when I updated the site, I made that list sortable by the column headers but I didn't use the option to show the arrows to indicate they could be sorted. Whoops... or did I do that on purpose?

Anyway, as you point out, they can be sorted.

As far as I know, it *should* be sorting on the exponent field by default, but if there was a problem loading jquery, for instance, then the sorting code wouldn't load and it may display in whatever order they came out of SQL, which may be assignment date or something else.

The 3rd party jquery library is needed for the sorting, and a few weeks ago I noticed it was failing to load for a short time. It's setup to load it from the shared ASPNet CDN cache (Microsoft's setup). I use that for other projects and it's the fastest across the board although Google's cache is pretty close behind. I guess if there are issues I can switch it to the Google location instead.

2016-11-12, 11:11   #1160
retina
Undefined

"The unspeakable one"
Jun 2006
My evil lair

578810 Posts

Quote:
 Originally Posted by Madpoo I use that for other projects and it's the fastest across the board although Google's cache is pretty close behind.
I think speed/fastness is completely the wrong metric to use here. I'd imagine reliability is far more important than the measure of milliseconds in latency difference.

But anyhow I don't use JS so I don't notice when it is down. So I take it all back, the proper metric for me is <null>. :P

2016-11-12, 19:55   #1161
ric

Jul 2004
Milan, Ita

22·32·5 Posts

Quote:
 Originally Posted by 0PolarBearsHere Mine's in order. Are you sure you're not accidentally clicking one of the other column headers?
Yes, me sure <g>. I made my homeworks before bothering the forum (fresh login to the site, cleaned cookies+cache, fresh browser instance, and the like). And, yes, I've been using as well click-headers-and-sort-accordingly since quite a bit.

Nothing more than a minimal annoyance, after all - what surprised me was its sudden appeareance around mid of current week.

2016-11-14, 02:21   #1162
Serpentine Vermin Jar

Jul 2014

29×113 Posts

Quote:
 Originally Posted by ric Yes, me sure . I made my homeworks before bothering the forum (fresh login to the site, cleaned cookies+cache, fresh browser instance, and the like). And, yes, I've been using as well click-headers-and-sort-accordingly since quite a bit. Nothing more than a minimal annoyance, after all - what surprised me was its sudden appeareance around mid of current week.
If it's still doing that, let us know. I hope it was just a one-time thing due to failure to load the jquery external library or something.

2016-11-14, 16:40   #1163
ric

Jul 2004
Milan, Ita

22×32×5 Posts

Quote:
 Originally Posted by Madpoo I hope it was just a one-time thing due to failure to load the jquery external library or something.
Unfortunately not: this same behaviour still happens. What amazes me is that other pages (account results, GIMPS milestones/Active assignments, recent results, and so on) behave as they are supposed to.

Assignment details are returned "unsorted" (i.e. not sorted accordingly to any in-page criteria), so your point about a failure/delay to load an external library might be the cause (on "this side" of the Atlantic pond, maybe?)

In any case, I made a diff of the <head> sections for account results and assignments page, showing a missing stylesheet and two missing scripts on assignments' side:
Code:
4c4
<   <title>Account Results Details - PrimeNet</title>
---
>   <title>GIMPS Assignment Details - PrimeNet</title>
17c17
<   <meta name="description" content="GIMPS is the Great Internet Mersenne Prime Search, an organized search for Mersenne prime numbers. Free software provided.">
---
>   <meta name="description" content="View your account's current assignments and work in progress.">
55,56c55
---
58,59d56
<   <script type="text/javascript" src="/scripts/tablesorter/js/jquery.tablesorter.widgets.js"></script>
63,72c60
<         sortLocaleCompare: true,
<         theme : 'blue',
<         widgetOptions: {
<         }
---
>         sortLocaleCompare: true
No idea if the above is relevant in this context, though.

2016-11-16, 18:15   #1164
Serpentine Vermin Jar

Jul 2014

29·113 Posts

Quote:
 Originally Posted by ric Unfortunately not: this same behaviour still happens. What amazes me is that other pages (account results, GIMPS milestones/Active assignments, recent results, and so on) behave as they are supposed to. Assignment details are returned "unsorted" (i.e. not sorted accordingly to any in-page criteria), so your point about a failure/delay to load an external library might be the cause (on "this side" of the Atlantic pond, maybe?) In any case, I made a diff of the sections for account results and assignments page, showing a missing stylesheet and two missing scripts on assignments' side: ... No idea if the above is relevant in this context, though.
Probably not. The table sorting options between the two pages are slightly different, but should still be functional. Other people are getting the correct sorting and are able to sort on different columns by clicking their headers.

Maybe it's a browser specific thing... what browser are you using? In Chrome you can hit F12 and bring up the debugging pane. Look at the "console" tab and refresh the page to see what errors show up or if some resources failed to load.

I don't get any errors and all of my 481 assignments show up.

I do note that with a large # of assignments, that tablesorter javascript can be a little sluggish if you sort on a different column. There was a lag of maybe 2 seconds when I click to sort on the % done column, for instance.

---- Side note ----

Actually now that I look at that page, maybe I never did add in the same table sorting code as the others (it's there, just with a more basic setup)... It looks like I started working on an update of it which includes the category info, when assignments will expire, etc but somehow since I started that work back in March I lost track of it.

Try that out here, and note it's a work in progress:

Last fiddled with by Madpoo on 2016-11-16 at 18:17

2016-11-17, 09:25   #1165
ric

Jul 2004
Milan, Ita

2648 Posts

Quote:
 Originally Posted by Madpoo Other people are getting the correct sorting and are able to sort on different columns by clicking their headers.
<AOL>Me too</AOL>, once page is loaded. FWIW, I get the same "unsorted" behavior when I disable JS on that page, and of course in that case I can't sort once that page is loaded. JS is genereally enabled, however.

Quote:
 Originally Posted by Madpoo Maybe it's a browser specific thing... what browser are you using? In Chrome you can hit F12 and bring up the debugging pane. Look at the "console" tab and refresh the page to see what errors show up or if some resources failed to load.
Latest Chrome, Firefox, Vivaldi, both on a Server 2012 box and a Debian derivative (Mint 18), Chromium + Firefox on a Debian 7 box (all of those fully patched), an older Chrome (29.something) on a tablet, latest Chrome + native browser on an Android 4.1 phone.

All of those in bare metal mode (= no VMs), in different locations (= different connection providers, to reduce risk of implausible glitches) and showing the same behavior. Regarding the Chrome console thing, the only messages I get are related to not loading Google analytics, due to an adblocker/do not track options. And, naturally, disabling that adblocker (Ublock)/re-enabling tracking does not change results.

I know that triaging an apparently random thing is not for the faint of heart <g>, but I'm used to. And appreciate your patience.

Quote:
 Originally Posted by Madpoo I don't get any errors and all of my 481 assignments show up.
Mine as well. Only in "wrong" order <g>

Quote:
 Originally Posted by Madpoo Actually now that I look at that page, maybe I never did add in the same table sorting code as the others (it's there, just with a more basic setup)...
Pls refer to my former diff...

Quote:
 Originally Posted by Madpoo Try that out here, and note it's a work in progress: http://www.mersenne.org/workload/default.mock.php
FWIW, this other page sorts as it should. Made another diff of head sections between current and mock page, and again current assignments page does not load the following styles/JS. I'm asking myself whether including at least the Ajax ones into the current assignments page could do the trick - shouldn't harm anyone.

Code:
55a56,58
>   <script src="//ajax.aspnetcdn.com/ajax/jquery.ui/1.10.4/jquery-ui.min.js"></script>
56a60,61
>   <script type="text/javascript" src="/scripts/tablesorter/js/jquery.tablesorter.widgets.js"></script>
60c65,75
More generally, it is my understanding that present workload is fetched from the DB, passed "the way it comes" to the html page, then sorted at rendering time by the browser. If I'm mistaken, please correct me; this "view from the Moon" could help finger-pointing either "fetch" or "render" roles, and act accordingly.

And, yes, I've learnt from experience that speculating on someone's else artifacts is a risky thing, so please keep your flamethrower in the drawer <vbg>.

One last thing: I tend to clean caches/cookies frequently - I'm wondering if this can have any impact on "this happening to me only". No idea, indeed.

As I said, thanks again for your patience and support

2016-11-17, 13:16   #1166
James Heinrich

"James Heinrich"
May 2004
ex-Northern Ontario

1100001000112 Posts

Quote:
 Originally Posted by ric More generally, it is my understanding that present workload is fetched from the DB, passed "the way it comes" to the html page, then sorted at rendering time by the browser.
@Aaron: Is there any reason there's no ORDER BY exponent when fetching from the database? Or if that adds appreciable overhead to the query for some reason then it should be easy to sort by exponent in PHP between fetching it from the database and displaying as HTML.

 Similar Threads Thread Thread Starter Forum Replies Last Post ewmayer Lounge 39 2015-05-19 01:08 ewmayer Science & Technology 41 2014-04-16 11:54 cheesehead Soap Box 56 2013-06-29 01:42 cheesehead Soap Box 61 2013-06-11 04:30 Dubslow Programming 19 2012-05-31 17:49

All times are UTC. The time now is 11:28.

Wed Oct 21 11:28:47 UTC 2020 up 41 days, 8:39, 0 users, load averages: 1.48, 1.49, 1.51