usage: if beset with an uncontrollable,
irrational, masochistic urge to tinker with arcane code, try any item below
Creating a todo list is the only route to sanity when trying to finish and release a project.
I rejected each of these items in favor of project completion.
Some lines of code are too long for the screen width. These lines are
continued with the Unicode symbol "Heavy Minus Sign"
(U+2796, ➖
).
After copy-paste, delete this symbol and any following white space.
- /
- The default scheme should be "https" instead of "http"
(Google will sometime stop serving "http" pages.)
Steps include: Change the <:base> to use https,
Uncomment the redirect in .htaccess,
Change default in admin/redirect.php to https.
Fix the fact that when addressed as https://physpics.com, the template layout is omitted.
- /
- screen layout should adapt for mobile sizes
- /about/
- Create an /about/ page
- /admin/com/physpics/admin/MapManage.java
- Check (again!) that redirection is to an existing file or folder
(by checking filesList.txt).
- /admin/command.php
- Add to display a total count of all count fields from urlmap
- /admin/urlHandler.php
- Pictures were once viewed with
library/viewpix.php?dir=/$1/➖
&cap=/$1/localcaptions.cap➖
&image=$2&ext=$3 [L]
urlhandler could be coded to convert such a request to
library/servepicture.php?cap=/$1/localcaptions.cap➖
&image=$2.$3 [L]
- /admin/urlHandler.php
- Sometimes I put out a picture and then change my mind and delist it. If a webcrawler notes it in between, it get errors many times for revisits. If the pictures is still in the /pictures directory, there ought to be a way to display it instead of an error. urlHandler could try such for requests in form /annals/yyyy/.../ppppdddd.eee, where yyyy is a year,ppp is arbitrary, dddd is four digits, and eee is an extension.
- /admin/urlHandler.php
- Some checks for webscum are redundant. In each of these lists,
the first covers the items in parentheses:
- */admin* (/admin/*)
- */login* (/login/*)
- *xmlrpc* (*/xmlrpc.php /xmlrpc.php)
- *wp-* (/wp-admin/* /wp-content/* /wp-login.php /wp-login/*)
- /master/* (/master/login.aspx)
- /member/* (/member/space/company/info.txt)
- /admin/urlHandler.php
- need to test file_readable instead of file_exists
- /admin/urlHandler.php
- if a 403 goes to name w/ .../javadoc/...
urlHandler.php should remove the second ...
the only index.html in javadoc is .../javadoc/index.php
- /admin/urlHandler.php
- prefer redirect to sendpage
if use sendpage, include() calls in the sent file do not work
they get the wrong base URL
- /admin/urlHandler.php
- problem occurs if fetching /Java/apps/indexer/...png
& get redirected to /Java/apps/indexgofer/
then the browser is reading text as the contents of an image
could check for this in urlHandler as part of redirection
if redirecting gif jpg or png,
fail if not redirecting to gif png or jpg
- /error.php
- Use
urlmap
in error.php
to ignore 404 errors
for apple-app-site-association
(which requires https
!)
and /.well-known/
...
- /index.php
- Adapt for mobile devices
- /Java/tools/…/PropCon.java
- visit jardir/Pictools.properties, foreach jar; after visiting projdir and parents
- /Java/tools/…/PropCon.java
- link to propcon.c
- /Java/tools/selfinstall
- When installing multiple Pictools.properties in one directory, merge them. (They will anyway be merged as they are read in.)
- /library/dirbar.php
- the dirbar overflows for "> Java > apps > fontviewer > FontViewer-tour > FontViewer-notes" Ideally, in case of overflow, the dirbar should get thicker.
- /library/displayCode.html
- Replace /library/displayCode.html with code on the server to build a page that embeds the calls to syntaxhighlighter and the requested file.
- /library/displayCode.html
- Find a displayCode strategy that allows embedding code segments within HTML. Perhaps Prism.
- /library/pkscripts.php
- Allow slash in "file:" value in captions files ???
- /library/servepicture.php
- For
showpicture
, send redirect if warranted,
but do redirect at the image dir level,
and do not redirect to showpicture
- /library/titleandlogo.php
- In pages where the right column is small, the "by ZweiBieren" field is shortened to "by Zwei". one solution is to change the title bar to overlay the "by ZweiBieren" over colored rectangles
- /Pictools.properties /pictools/*
- pictools: remove scp and scpupload.xml. Setting
picscp=fakescp
is futile because files are transferred with tar|ssh-tar. It would be nice to have a replacement for ftp-only site hosts.
- /pictools/doc/*
- Improve docs:
add list of class invoked by page components;
add styles list to component pieces;
add list of properties and styles definitions employed
- /pictools/doc/*
- add docfile="file.php" to <a>, as needed;
for example <a href="error.php" docfile="error.php">
- /pictools/doc/directories.php
- there are three home directories
c:/Users/Fred WINDOWS home directory - unused
/home/Fred linux home directory; only .login is used
/cygdrive/u/Fred set as HOME by /home/Fred/.login
scripts and libraries refer to $HOME
- /pictools/doc/index.php scripts.php
- if
xmlhttp
is false, just fallback to reloading Components.php
- /pictools/doc/localdefs.php
- Make it possible to download all pieces documented in
pictools/doc
; the object file reference in the bottom right of the title bar should be an active link
- /pictools/doc/login.php
- rewrite login.php to describe its file location
- /pictools/doc/pages.php
- Describe in
doc/pages.php
that some extensions (e.g.
doc
. xls
. ppt
)
need to be listed in the downloadable
property
- /pictools/doc/pictd.php
pictd.php
should remind the reader that relative links must not be used
- /pictools/doc/PIXetc.php (new)
- Somewhere describe how to use BLOG, PIX, MAP: <a ...> space <span></span>link text</a>
- /pictools/doc/propcon.php
- doc/propcon.php - document the order files are visited.
Include a link to Java propcon. Note that propcon.c visits HOME/Pictools.properties. Note that PropCon.java visits jardir/Pictools.properties.
- /pictools/doc/propcon.php
- link to PropCon.java
- /pictools/genhtml.c
genhtml
could be taught about properties; it could also fetch properties where it currently calls getenv()
- /pictools/genhtml.c
- genhtml.processdollar and genhtml.expandcaptionstohtml implement (two different) syntaxes for setting and using variables. But genhtml does not process captions themselves so neither mechanism works.The simplest approach would be to abandon both syntaxes.
- /pictools/genhtml.c /scripts/pkscripts.php
- Define comments for cap files; lines starting w/ #
- /pictools/logo.php (new)
- Add a generalized logo script based on the logos constructed in
dirbar.php
and slidescontrol.php
; It should accept a single icon, a string, or both (ala Java's JLabel)
- /pictools/Makefile
- fix "make updateall" in pictools so it fully installs pictools
- /pictools/MakeHelpers
- Possibly revise MakeHelpers to be
included rather than made with $(shell);
have build depend on helpersinstalled;
MakeHelpers then has helpersinstalled depend on the .exe files and the shell scripts. The scripts
buildnumber might be part of the recipe for the tar
but it must precede the call to
procon.exe
.
(All these approaches have problems. propcon MUST be built before including MakeVars.)
- /pictools/MakeTargets
- On some hosts, the initial directories for
ftp
and ssh
may differ;
in such cases picsdir
should be one of them
and a new property introduced for the other
- /pictools/MakeTargets
MakeTargets
ought to write to PICTOOLSDEBUG
someimes.
And report the size of PICTOOLSDEBUG at the end of a run.
- /pictools/propcon.c
- should visit installdir/Pictools.properties after visiting projdir and parents. But this requires defining install for c programs
- /pictools/propcon.c /Java/tools/…/propcon.Java
- Add to
propcon
a pragma
that says this properties file is in SRCROOT
;
test for it in propcon parent scan
(instead of looking for robots.txt
)
- /pictools/propcon.c /Java/tools/…/PropCon.java
- A pragma should apply only to the next line,
and not (as now) until the next property definition
(otherwise commenting out a property definition requires extra care
- /pictools/propcon.c /Java/tools/…/PropCon.java
- Should
propcon
evaluate $xxx
in property values?
- /pictools/propcon.c et al.
- Remove propsource from Pictools.php;
use $! private for page.maintitle
- /pictools/rgb2hex.c .h
- Oughta have
rgb2hex
- /pictools/strtbl.c
- Use binary search in
strtbl
- /pictools/tocyg
- tocyg: convert /home, /usr/, ... by prepending cygwin.dir
- /script/download.php
- use urlhandler on destination of scripts/download
- /scripts/* /library/*
- Use extension .p0p on scripts and include files to distinguish them from page files.
- /scripts/download.php
- Consider always allowing downloadable if MIME
image/
or text/
(it can already be viewed)
- /scripts/mimetype.php
- Consider teaching mimetype.php that some items (which ones??)
should be downloaded instead of served
- /scripts/mimetype.php
- If ever xsendfile has an option to send a Content-Encoding value the code in mimetype:sendpage that checks maybeGzip() should be tested and uncommented. Then files will be compressed and sent faster.
- /tarpit.php
- Tarpit does tie up villain's resources, but it also ties up mine; better
would like to simple go mute and not reply;
there does not seem to be a way to do this in php
- cloudfare.com
- I reported to DreamHost that some bad-actors
send bursts of probes looking for pages that allow disruptive access.
They replied:
You should be able to implement CloudFlare
https://help.dreamhost.com/hc/en-us/articles/7087974733332
For more details as to what you can implement with CloudFlare,
https://developers.cloudflare.com/support/troubleshooting/general-troubleshooting/troubleshooting-surges-or-spikes-in-web-traffic/
- dreamhost.com
- Switch to fastcgi; it seems far better when using sqlite3.
(But it requires a separate test environment; which should be done anyway.)