![]() |
|
|
#12 |
|
Romulan Interpreter
Jun 2011
Thailand
258A16 Posts |
Thanks James, meantime I clarified it by myself, as I edited my previous post to put the link to your page in the "notes", then I saw the "show source" button on your page (I am not using it very often). Looking into the source I saw the "$scaling" variable. The time limit forbade me to edit the post.
|
|
|
|
|
|
#13 |
|
1976 Toyota Corona years forever!
"Wayne"
Nov 2006
Saskatchewan, Canada
111048 Posts |
Or you could have checked for a v24 client. It did not have the sanity check.
|
|
|
|
|
|
#14 | |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
2·5·7·139 Posts |
Quote:
Could I ask people check that this works across all browsers and OSs? It works fine under Firefox on Linux, but I'm not sure the HTTP Header MIME type ("application/force-download") will work under Internet Exploder. I'll also add this abiliity to each of the worktype reservation pages, so it will be available after someone reserves work initially. This is obviously so they don't have to go through the extra steps of Viewing Assignments, selecting the new ones, regenerating and then downloading. |
|
|
|
|
|
|
#15 | |
|
"James Heinrich"
May 2004
ex-Northern Ontario
3×5×227 Posts |
Quote:
Unsurprisingly, it works perfectly under Windows on Firefox 3, Opera, and Chrome. IE fails to download (just displays as HTML, as in line breaks ignored). It would probably be better to do this: Code:
header('Content-type: text/plain');
header('Content-Disposition: attachment; filename="worktodo.txt"');
echo $worktodo;
|
|
|
|
|
|
|
#16 | |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
2·5·7·139 Posts |
Quote:
Of course, I had to modify the PHP to be Perl.... ![]() Can you test it again, and make sure it works under Internet Exploder? |
|
|
|
|
|
|
#17 |
|
"James Heinrich"
May 2004
ex-Northern Ontario
D4D16 Posts |
|
|
|
|
|
|
#18 |
|
Romulan Interpreter
Jun 2011
Thailand
2×5×312 Posts |
@James Heinrich && chalsall :
Good job! p.s. still waiting for my visualization-related request, see OP.... ![]() edit: didn't realize this is first-in-last-served list (just kidding). Last fiddled with by LaurV on 2012-04-23 at 02:23 |
|
|
|
|
|
#19 | |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
947610 Posts |
Quote:
That is a fairly poor excuse to effectively waste it. Instead, it is a good idea to let the hardware run something useful and mainstream software -- and in parallel let your brain "run" some new and exciting ideas and possibly find something for the hardware. That's my two cents, but of course you can do whatever you desire if your h/w. |
|
|
|
|
|
|
#20 |
|
Romulan Interpreter
Jun 2011
Thailand
226128 Posts |
|
|
|
|
|
|
#21 |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
2×5×7×139 Posts |
Indeed. You certainly saved me a great deal of Googling (and head bashing). It is annoying how Micro$oft still delude themselves that they're so dominate that their Internet browser does just about everything differently than everyone else...
![]() To hopefully help others who have a need for the cross-browser ability to force a download rather than rendering the returned data, the Perl needed (using the CGI Perl module) is: Code:
$q = new CGI; print $q->header( -type => "text/plain", -Content_Disposition => "attachment; filename=\"worktodo.txt\""); Plus, I took the opportunity to implement a request from Dubslow from quite some time ago -- the P-1 assignment page now offers Number of CPUs / Number per CPU / [Worker #n] functionality. |
|
|
|
|
|
#22 | |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
230028 Posts |
Quote:
Work on your and Dubslow's requests are already underway in the Mersenne.Info development and testing environment. Plus a couple of other things I've been wanting to implement for quite some time....
|
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| AVX? (Other new features?) | Dubslow | Software | 6 | 2011-10-16 14:03 |
| A little request | 10metreh | Aliquot Sequences | 8 | 2009-10-07 18:13 |
| Upcoming features | Xyzzy | Forum Feedback | 1 | 2007-11-26 18:57 |
| New features in Prime95 v22.9 | guido72 | Software | 4 | 2003-03-02 23:54 |
| Desired Features/Addins | Complex33 | Software | 5 | 2002-09-05 06:13 |