![]() |
|
|
#254 |
|
"James Heinrich"
May 2004
ex-Northern Ontario
D6316 Posts |
An alternate approach is to feed the browser the correct UTC time on pageload, then just increment the time every second. Undoubtedly the time will drift from absolutely correct over time (and, in fact, will be off by page-load time right from the start), but should be generally "correct enough" for the amount of time a page is likely to remain open, and more reliably correct than depending on the user's computer to have an accurate clock/timezone.
|
|
|
|
|
|
#255 | |
|
Serpentine Vermin Jar
Jul 2014
63618 Posts |
Quote:
http://www.timeanddate.com/worldcloc...en.html?n=1440 The websites I work on are spread across 21 different countries and something like 12 timezones... that website is great since you can build a custom URL that shows your current time plus the local time in a bunch of other cities. |
|
|
|
|
|
|
#256 |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
100110001101102 Posts |
|
|
|
|
|
|
#257 | |
|
"James Heinrich"
May 2004
ex-Northern Ontario
342710 Posts |
Quote:
Code:
<div>Current time: <span id="current_utc_time">2014-10-13 19:57:55 UTC</span><span style="font-size:8pt;"> - Page rendered in 0.0426s</span></div>
<script type="text/javascript">
function incrementUTCtimestamp() {
var current_time = new Date(document.getElementById('current_utc_time').innerText);
var updated_time = new Date(current_time.getTime() + 1000);
var Y = updated_time.getUTCFullYear();
var M = updated_time.getUTCMonth() + 1; // getUTCMonth return 0-11
var D = updated_time.getUTCDate();
var h = updated_time.getUTCHours();
var m = updated_time.getUTCMinutes();
var s = updated_time.getUTCSeconds();
M = ((M < 10) ? '0' : '') + M; // add zero-padding where needed
D = ((D < 10) ? '0' : '') + D; // add zero-padding where needed
h = ((h < 10) ? '0' : '') + h; // add zero-padding where needed
m = ((m < 10) ? '0' : '') + m; // add zero-padding where needed
s = ((s < 10) ? '0' : '') + s; // add zero-padding where needed
document.getElementById('current_utc_time').innerText = Y + '-' + M + '-' + D + ' ' + h + ':' + m + ':' + s + ' UTC';
setTimeout(incrementUTCtimestamp, 1000);
}
setTimeout(incrementUTCtimestamp, 1000);
</script>
|
|
|
|
|
|
|
#258 |
|
Aug 2012
Mass., USA
2·3·53 Posts |
What I really care about is the UTC when the data was generated. If the hourly reports all display that specially, then having the footer include the UTC of the time the page was downloaded is fine. I would not want to have the value updated in real time to try to indicate the current time.
Another little point: I don't care about how long it took to render the page. I am guessing that is useful to Madpoo while working on these changes, but it seems to me that it's unnecessary information for the typical user. |
|
|
|
|
|
#259 |
|
Apr 2014
12810 Posts |
http://www.mersenne.org/assignments/...et+Assignments
Doesn't sort by percentage. It separates the data into two sets: tests which have been started and tests which have not been started. Last fiddled with by flagrantflowers on 2014-10-14 at 01:53 Reason: EDIT: sorted->started |
|
|
|
|
|
#260 | |
|
Serpentine Vermin Jar
Jul 2014
3,313 Posts |
Quote:
It may have provided more insight on the old server if a SQL query was taking a long time to return data. There are currently a few custom reports that pull some SQL backend stuff that take a while, but all in all having that on the page isn't terribly useful most of the time. But all in all, it's in the footer and I shrunk the size of it so I guess it's harmless enough.
|
|
|
|
|
|
|
#261 | |
|
Serpentine Vermin Jar
Jul 2014
3,313 Posts |
Quote:
To have it sort by the actual % progress, I'd have to look at how that data is generated and remove the text in front of it. I'm not sure why but it only seems to add "LL," for the LL tests, not double-checks. I'm going to assume there was a reason though. I think the sorting gets confused if there's a mix of #'s and text... I might just be able to force that column to sort only by text and see if that's any better. EDIT: Oh, I get why it shows "LL" for example. It's showing the stage + the % done of that stage. LL assignments might have to do factoring first so it might show that % progress. That's not likely to happen now that the GPU's are racing ahead with factoring, far ahead of any LL ranges, but I guess it could still happen. And speaking of GPU72... once all exponents below 1E9 are TF'd will the project get a name change to GPU73 and go back to make sure everything is factored at least that high (increasing the TF depth one bit all along the way)? Kidding... I think... Last fiddled with by Madpoo on 2014-10-14 at 03:02 Reason: Oh... |
|
|
|
|
|
|
#262 |
|
Jun 2005
USA, IL
193 Posts |
Notice: Undefined variable: etacolor in C:\inetpub\www\assignments\default.php on line 126
Notice: Undefined variable: etacolor in C:\inetpub\www\assignments\default.php on line 130 |
|
|
|
|
|
#263 | |
|
Jun 2014
23×3×5 Posts |
Quote:
Especially those < 1M
|
|
|
|
|
|
|
#264 | |
|
"James Heinrich"
May 2004
ex-Northern Ontario
23×149 Posts |
Quote:
)
|
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Database design | xilman | Astronomy | 1 | 2017-04-30 22:25 |
| Theoretical Experiment Design | c10ck3r | Homework Help | 7 | 2015-02-03 08:54 |
| Digital Logic Design | henryzz | Puzzles | 9 | 2014-12-04 20:56 |
| new intel design | tha | Hardware | 5 | 2007-04-19 11:38 |
| design factoring algorithms | koders333 | Factoring | 14 | 2006-01-25 14:08 |