mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > PrimeNet

Reply
 
Thread Tools
Old 2015-04-25, 12:53   #507
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

65358 Posts
Default

Quote:
Originally Posted by Madpoo View Post
Batalov just PM'd George and I about a similar error when doing a submit.
It was his submission that clued me into the errors that I fixed. But I can't fix the problem in 0.95_database.inc.php since that's George's domain.

I inadvertently "stole" credit for submitting his factor for M32057 when testing the submission, if someone wants to twiddle the database. There is another factor for M31481 awaiting submission for when the problem is fixed.
James Heinrich is online now   Reply With Quote
Old 2015-04-25, 15:45   #508
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

1D7016 Posts
Default

Quote:
Originally Posted by James Heinrich View Post
@George: I just fixed some undefined errors in the code I added a couple days ago, but I've run into this when inserting a factor of unknown origin
My initial guess is that the call you just added to manual_post_processing wasn't quite right. Have a look at that and step through manual_post_processing, both of which should be in the www/manual_result directory and not in 0.95 PHP code.
Prime95 is online now   Reply With Quote
Old 2015-04-25, 17:17   #509
Mark Rose
 
Mark Rose's Avatar
 
"/X\(‘-‘)/X\"
Jan 2013

2·5·293 Posts
Default

.

Last fiddled with by Mark Rose on 2015-04-25 at 17:17
Mark Rose is offline   Reply With Quote
Old 2015-04-25, 23:22   #510
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

11·311 Posts
Default

Quote:
Originally Posted by Prime95 View Post
My initial guess is that the call you just added to manual_post_processing wasn't quite right.
I've worked around the problem by initializing t_user to the anon_user[2] if there's no currently-logged-in user submitting the results and the user can't be found from the result line.

The other factor he found was now (after the above code change) submitted and properly credited to Batalov this time. If it's easy for you, please change the userid for 3266726955200737164011629254842087 on M32057 from "James Heinrich" to "Serge Batalov".
James Heinrich is online now   Reply With Quote
Old 2015-04-28, 19:27   #511
garo
 
garo's Avatar
 
Aug 2002
Termonfeckin, IE

22×691 Posts
Default Uncwilly will like this and madpoo will not

http://www.reddit.com/r/javascript/c..._right/cqn8vpn

Quote:
Why is this difficult?
Because it's not a blog full of content - it's a revolutionary interactive animated graphical UI paradigm which merely happens to deliver textual content to users.
They aren't really on your site to read your article or check what time their train leaves - they're really there to marvel at your buttery-smooth, hardware-accelerated 60fps animations and 1337 client-side javascript skillz that mean you can browse the entire site without ever once touching the server after the first page-load... just as long as you don't mind that first page-load being 3MB in size, crapping out on unreliable mobile connections and taking whole seconds between DOM-ready and the UI actually appearing.
But it's ok, because the ToDo app I wrote to test this approach performed pretty well with just me and my mum using it, and I don't care whether Google indexes it or not or whether blind people can see it because fuck them - they should just get some eyes, amirite?

Last fiddled with by garo on 2015-04-28 at 19:28
garo is offline   Reply With Quote
Old 2015-04-28, 21:00   #512
TObject
 
TObject's Avatar
 
Feb 2012

34×5 Posts
Exclamation

Dear Poo,

The mersenne.org is currently using self-closing tags on non-void HTML elements. Some browsers treat those as open tags instead. You should change from:
Code:
<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-2.1.1.min.js" />
To:
Code:
<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-2.1.1.min.js"></script>
And all the other similar self-closing script tags too.

HTH

Last fiddled with by TObject on 2015-04-28 at 21:04
TObject is offline   Reply With Quote
Old 2015-04-28, 21:17   #513
Mark Rose
 
Mark Rose's Avatar
 
"/X\(‘-‘)/X\"
Jan 2013

2×5×293 Posts
Default

Since disk space is cheap now, when someone is doing duplicate TF work, why don't we store the submitted results?

For instance, some of the TF work done on 79299719 doesn't give ranges, so I decided to rerun the TF work to 72. While I don't expect credit it for it, it would be useful to store lines such as

Code:
no factor for M79299719 from 2^1 to 2^67 [mfaktc 0.21 75bit_mul32_gs]
no factor for M79299719 from 2^67 to 2^68 [mfaktc 0.21 barrett76_mul32_gs]
no factor for M79299719 from 2^68 to 2^69 [mfaktc 0.21 barrett76_mul32_gs]
...
to show that the TF work was double checked.
Mark Rose is offline   Reply With Quote
Old 2015-04-28, 22:42   #514
Madpoo
Serpentine Vermin Jar
 
Madpoo's Avatar
 
Jul 2014

3,313 Posts
Default

Quote:
Originally Posted by TObject View Post
Dear Poo,

The mersenne.org is currently using self-closing tags on non-void HTML elements. Some browsers treat those as open tags instead. You should change from:
Code:
<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-2.1.1.min.js" />
To:
Code:
<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-2.1.1.min.js"></script>
And all the other similar self-closing script tags too.

HTH
That's funny because when I was doing the updates to the site, I ran it through a validator and although I know there are some funky things, that one in particular seemed a little iffy as to what it should be. Maybe I didn't consult enough sources at the time. Any idea what browsers would do such a horrible thing? Without jquery there are some table related fun things that won't work. I think the table sorting javascript relies on jquery... I don't remember now.
Madpoo is offline   Reply With Quote
Old 2015-04-28, 23:46   #515
Mark Rose
 
Mark Rose's Avatar
 
"/X\(‘-‘)/X\"
Jan 2013

1011011100102 Posts
Default

Quote:
Originally Posted by Madpoo View Post
That's funny because when I was doing the updates to the site, I ran it through a validator and although I know there are some funky things, that one in particular seemed a little iffy as to what it should be. Maybe I didn't consult enough sources at the time. Any idea what browsers would do such a horrible thing? Without jquery there are some table related fun things that won't work. I think the table sorting javascript relies on jquery... I don't remember now.
Most browsers?

Since the script tag can contain other tags (for JS-disabled content), it can't self-close, much like a div tag. This has always been the HTML spec. I guess some browsers guess at closing it when they encounter a closing tag for the parent element, just like an unclosed em or strong tag.

However, any tag can be self-closing in XHTML, because that's a feature of XML in general. To trigger XHTML parsing, the HTTP headers must indicate a Content-Type of application/xhtml+xml. Decent browsers will then strictly interpret the content as well-formed XHTML, dying on any error, and IE will helpfully offer to save the document instead of rendering it.

XHTML never went anywhere because many developers can't produce valid HTML let alone valid XML and rely on sloppy parsing (IE's tolerance of sloppy code made this practice wide spread, especially when IE became the dominate browser in the late 90's). XHTML also prohibits inline JavaScript, so you can't do things like Document.write, which broke a lot of ads and whatnot.

I once wrote an interactive site that generated XHTML about five years ago. It used user-agent sniffing to change the mime-type to text/html for IE, and in the other browsers, it rendered in milliseconds since the parsing was so much faster (all the images also had defined sizes, so there were zero reflow/repaints). I doubt I'll ever do it again :)
Mark Rose is offline   Reply With Quote
Old 2015-04-29, 02:13   #516
TObject
 
TObject's Avatar
 
Feb 2012

34×5 Posts
Cool

jQuery actually works, as it is the first of such tags. It is scripts following a self-closed tag that may suffer.

Firefox for Windows 37.0.2, for example, never loads the /scripts/apy5/menu.js?v=20140927.1 script from the home page. Where Internet Explorer 11 does so.

Last fiddled with by TObject on 2015-04-29 at 02:29
TObject is offline   Reply With Quote
Old 2015-04-29, 03:26   #517
Madpoo
Serpentine Vermin Jar
 
Madpoo's Avatar
 
Jul 2014

3,313 Posts
Default

Quote:
Originally Posted by TObject View Post
jQuery actually works, as it is the first of such tags. It is scripts following a self-closed tag that may suffer.

Firefox for Windows 37.0.2, for example, never loads the /scripts/apy5/menu.js?v=20140927.1 script from the home page. Where Internet Explorer 11 does so.
Figures.

Okay, okay, mercy. I just changed it.
Madpoo is offline   Reply With Quote
Reply



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

All times are UTC. The time now is 21:27.


Sun Aug 1 21:27:33 UTC 2021 up 9 days, 15:56, 0 users, load averages: 1.38, 1.46, 1.51

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.