
This web site collects together a few ideas, demos, and experiments.
I am interested in sailing, and electronics. I also have an interest in microcontrollers:-
I started using a PIC16F84 to turn on a cassette recorder to record the Radio 4 Shipping forecast while on a yacht away from the marina.
Please follow the links at the top of the page.
One idea is using JavaScript on Web browsers for tools and exprimental stuff
Download data wrapped in JavaScript functions.
Tryout SVG and CANVAS
My site on Plusnet. to be moved to my new site
Perl script to try out includes.
Source:-
Source: gbtxt2.pl - Perl script to try out includes.
Source: gbtxtInclude.pl - Perl script to try out includes.
CSS sampler using DIV - sailingclub
Here are some notes that would best be put on a sub-page
When we needed a website with a simple booking system, I only had access to a public webserver that did not support cgi scripts or php.
At the time BTinternet provided webhosting with it's dialup ISP service, back in 1997. This is a long time in the past
There is a big choice of web hosting options now. I still want HTML
The browser interprets HTML and uses CSS
You can open .htm files with the browser from the your PC's desktop.
I have backed up the files off the webserver to a folder on my Desktop.
I use the same folder structure.
If the htm files use href=/ or src=/ then the browser loads from c:/ , and the stylesheets and images do not load the local copies.
Using a subst helps so that the files open w:/
I have a .bat file that does a CD to my local folder, and do a subst
subst w: .
I change the drive to W: and open a .htm file and it now displays the styles and images.
.HTM files support ?query strings, but there are issues.
You cannot use ? in a DOS 8.3 file name or Windows filenames.
file:///W:/index.htm?name1=value
Working serverside is harder, if you are not allowed command line access
I can ssh on to the Raspberry Pi
The Raspberry Pi has nano and vi
Notepad++ has NppFTP plugin. I had to use a php script to chmod 755 file.pl on this server.
WinSCP has a good editor.
CPANEL has a good editor as well.
If you use .php, then you need a web server.
I installed PHP on my PC from the website.
You can convert a .htm file to .php, but then need a web server.
PHP can be start a local webserver on your PC or raspberry Pi with:
php -S 0.0.0.0:8080
This saves the FTP up to a remote server.
PHP supports server side includes, sessions and server side scripts.
You can use PERL
I can start a simple webserver on my raspberry pi using:
sudo busybox httpd -p 0.0.0.0:8086 -h /home/pi/www
If you use .pl, then the files need to be in cgi-bin.
Perl supports multiline strings of HTML snipets.
Using a framework is good for web teams, but is another item to learn.
Ruby On Rails provides a way to provide websites.
Ruby is a powerful language that needs additional learning.
Rails provides the webserver, and it is not Appache.
I tried to install Ruby On Rails on my Raspberry Pi PC and it failed
I have a Win 11 PC that is uptodate and I tried to follow the Ruby On Rails install documentation
I think it worked, but I need to run the book I brought from a charity shop.
It is likely you need to learn HTML and CSS.
Learn some javaScript that runs on the client.
My Guestbook idea tried to use data client side.
It used a simple CGI script, and simple FORM layout.
HTML does not provide include files since frams were depreciated
You can use JavaScript as a workaround to load common HTML, but Androide smartphones strongly cache javascript files.
Security like SESSIONS and login are best done on the server.