![]() |
|
|
#166 |
|
"Alexander"
Nov 2008
The Alamo City
99110 Posts |
The PRPNet server outputs a ton of sub-standard and invalid HTML. It starts with the lack of a DOCTYPE string, ends with the totals row (which includes inappropriate header cells) sorting in between data rows, and hits everywhere in between. There is no bolding of the links table, which appears to be the intent, and there's a ton of presentational markup that was deprecated then and obsolete now. The markup is due for an update.
One issue I see with updating to HTML5 is that it requires UTF-8 encoding. I don't know if that means you'd have to restrict allowed user-generated data to ASCII or start using wide characters. |
|
|
|
|
|
#167 | |
|
"Mark"
Apr 2003
Between here and the
3×2,447 Posts |
Quote:
|
|
|
|
|
|
|
#168 |
|
"Alexander"
Nov 2008
The Alamo City
17378 Posts |
I can do that, though admittedly it won't be high on my to-do list. Can I also suggest serving the resources (CSS, JS) through the socket (edit: by reading them in and relaying them through) rather than on other ports? My network has a peculiar set-up (I configured my server to map the resources to use a custom hostname I have set up on my computers' /etc/hosts, but it's not set up on my phone, so no resources.), so being able to get those files through the server itself would be useful to me.
Last fiddled with by Happy5214 on 2021-06-24 at 01:11 Reason: Clarify |
|
|
|
|
|
#169 | |
|
"Mark"
Apr 2003
Between here and the
3·2,447 Posts |
Quote:
|
|
|
|
|
|
|
#170 |
|
"Alexander"
Nov 2008
The Alamo City
991 Posts |
First of all, this thread needs to be pinned, since I had trouble finding it.
How hard would it be to code the server to pull from an SQLite flat database? There are some really small assignments that would be overkill (both on the database server and on my SSD) to put on my main PRPNet servers, and I'd love to create a side server on a RAM drive to run these assignments. By the way, the solution to the above issue of loading the resources through the server would be to read the file (the path would presumably either be fixed or in prpserver.ini) and output its contents through the socket whenever an HTTP GET request for the file is received, and then updating the paths in the header functions in the HTMLGenerator classes. |
|
|
|
|
|
#171 | |
|
"Mark"
Apr 2003
Between here and the
3×2,447 Posts |
Quote:
If you are a programmer, I suggest you d/l the source and take a look. Start with the DBInterface and SQLStatement classes. |
|
|
|
|
|
|
#172 |
|
"Alexander"
Nov 2008
The Alamo City
17378 Posts |
I already have a copy of the PRPNet code from my project to port the HTML markup to HTML5 (still ongoing, though I lost some progress when my desktop died a couple of months ago). It appears there's an ODBC binding for SQLite, which I had to install separately on the Ubuntu package manager, but usually SQLite is linked into a program directly as a library. I've never used the C library directly (the only time I directly managed an SQLite database in my work was through the SQLAlchemy Python ORM package, and then using Perl DBI to export the data to flat files). I don't know which model you'd prefer. The ODBC package would have to be separately installed, but should be easier to code, while the library would require more coding work but would "just work" for the end user.
|
|
|
|
|
|
#173 | |
|
"Mark"
Apr 2003
Between here and the
3·2,447 Posts |
Quote:
Would love to see HTML5 own PRPNet. I could add you as a developer to the project in sourceforge. Last fiddled with by rogue on 2022-09-28 at 15:07 |
|
|
|
|
|
|
#174 | |
|
"Alexander"
Nov 2008
The Alamo City
991 Posts |
Quote:
I've never worked with SVN before as a developer, so I don't know how we'd do something like code review. I'd rather not directly commit changes if they don't fit with the vision you have for the code. |
|
|
|
|
|
|
#175 | |
|
"Mark"
Apr 2003
Between here and the
1CAD16 Posts |
Quote:
I appreciate your contribution. |
|
|
|
|
|
|
#176 | |
|
"Gary"
May 2007
Overland Park, KS
23×29×53 Posts |
Quote:
I saw TheCount's work around with the batch file for doing so. It works but it's a bit cumbersome. Mark, you imply here that you can pass command line options to LLR in PRPnet with llrexe=llr.exe -xxx in prpclient.ini. I'm running Windows and so have to use the cllr version. I could not get it to work with: Code:
llrexe=cllr.exe -t4 Code:
Could not find executable 'cllr.exe -t4'. What am I missing here? Last fiddled with by gd_barnes on 2023-03-10 at 09:35 |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PRPNet 4.0.0 Released | rogue | Software | 84 | 2011-11-16 21:20 |
| PRPNet 4.0.1 Released | Joe O | Sierpinski/Riesel Base 5 | 1 | 2010-10-22 20:11 |
| PRPNet 3.0.0 Released | rogue | Conjectures 'R Us | 220 | 2010-10-12 20:48 |
| PRPnet | mdettweiler | No Prime Left Behind | 80 | 2010-02-09 21:31 |
| PRPNet released! | rogue | Conjectures 'R Us | 250 | 2009-12-27 21:29 |