rejetto forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - danny

Pages: 1 2 3 ... 11
HFS ~ HTTP File Server / Re: favicon HFS ?
« on: Yesterday at 09:15:00 PM »
Other way (base64): 
Code: [Select]
<link rel="shortcut icon" href="data:image/gif;base64,R0lGODlhEAAQALMAABYAABMmTDZXa2ZkVRxeqzl7zkZvmkJ71m6DLWKPsah+Ko5zV5WUZ8alc/zsKtPU1CH5BAEAAAEALAAAAAAQABAAAARfMMhJq00vv2GlYVrWDBxlGOFzjAhiGkd2EOSALNNJEEVvkK0FLrArHhKGVrBU3B2VAiGzSUgIrjVBAMDter9cRxjgKIsV5jF53RV7zWKzAoB2zNlxMH7sDpfvehJgEQAAOw==">-data use not cachable (because it is not a file)
-16 colors or less, else huge (must compress)
+no additional http request (because it is not a file)
+the favicon file is never requested (thus no delays)

Or, for off (no data use) (does not request file)
Code: [Select]
<link rel="icon" href="data:,">-boring
+useful for HFS2.4's login page (especially if web-root has password)
+useful to decrease workload of frequently-hit error page (use only html file instead of html And ico file)

Single-threaded Windows HTTP servers (there's many to choose from) have a requirement:  more-cpu-than-ethernet
This is done by setting properties of the ethernet port to 100mbit (to prevent gigabit flooding crashes).
No gigabit because, more-ethernet-than-cpu = crash 
So, if you need faster than 100mbit, (if you want a no-crash gigabit server) then you need Linux. 

Exception:  It is possible to buy multi-threaded windows server software that works almost as well as paying nothing for Linux.

Options list:
Free single thread windows server software (HFS and many others) with ethernet set to 100mbit
or Paying for multi-thread windows server software, for gigabit aka 1000mbit
or Linux (NAS or DIY)

Here's a version of Throwback,
with the fast scripts from Stripes.

More of the scripts load-only-as-needed, so it uses less data.
Using compression has resulted in a smaller file size and using less data.
It also inherited more music types to play (added wma and Flac)
14.4 update:  xhtml, unobtrusive workload indication, nicer photo button

HTML & templates / Re: Responsive small screen template
« on: Yesterday at 05:10:16 AM »
Can the new audioplayer 5 or 6 do Shuffle+Repeat (can find and play a cached file when I drive through a no-signal area)? 

HTML & templates / Re: Responsive small screen template
« on: February 24, 2021, 05:35:44 PM »
For your 'classic' audioplayer in Stripes.tpl, how do I....?
something like <script> function ap(){
if(!document.querySelector('a[href$=".mp3"]')) return...

Well, how do I load the audioplayer6.js with the existing retry; but, only if files like these are present?:  '.mp3','.ogg','.m4a','.aac','flac','.MP3','.OGG','.M4A','.AAC','FLAC'

P.S.  Existing loader script is: 
<script defer src="/~audioplayer6.js" onerror="setTimeout(()=> this.src='/~audioplayer6.js',509)"></script>
So, that's the part that needs filtered to, load the audioplayer, only if music exists.  Halp? 

Having fun with my new Stripes template, which  I made for"unconfuse" to help users focus. 

Even with Throwback, a relative asked me: "What is this for?" and then she said: "I can't use this."  Wow.
I tried again with the Stripes template, with different results:  Same person merrily downloaded files. 

It is an interesting puzzle that a different appearance changes users' expectations of what they should be doing.

For example, other templates with server-management top menu causes all users to expect that they Should be doing server-management.   :o
Stripes template does the opposite, by causing the user to expect that they should be downloading files. 

HTML & templates / Stripes, the template for simple and easy
« on: February 20, 2021, 11:56:39 AM »
Stripes has a very clean layout that helps focus the users. 
Anyone will be able to use it easily.

+ High efficiency for multi-user workload.  Caching.  Exceptionally Sturdy.
+ Support for:  Phone/PC, large folders, basic users, any connection type.
+ Data savings because adaptive scripts aren't sent until they are needed.

Template Install:  HFS menu, HTML Template, Change file.
Kudos to DJ for the login, delete, and music shuffle player.

Beta / Re: version 2.4
« on: February 19, 2021, 08:02:16 PM »
Slight bug in "Please wait server busy"

Error:  Blocks multi-user browsing 
It is slightly too aggressive, and probably should be based on connections-per-second. 
Also the please wait delay is a little bit longer than necessary (delays real humans, often). 

Feature request:  Upload status available on Every page (available on the same page as the menus) so we can 'if uploading then no archive'
Feature request:  Archive status available on any page (available on the same page as the menus) so we can 'if archiving then delay upload'
Purpose is:
I'd like these with numeric result as %number-addresses-uploading% (on Every page, not just special upload section) and %number-addresses-archiving% (just packing the .tar file); so that I can throttle/delay other activities so that they don't clash.   Could also limit the # archive ongoing to 1 (by refusing to start another until the first is finished) and not doing either while uploading (to avoid interrupted upload). 

Bug reports / Re: HFS stops receiving connections until program restarted
« on: February 18, 2021, 11:27:22 PM »
On very fast internet connections the speed-limit is especially likely to cause the quasi-off condition.
One limit increases reliability:
Max simultaneous downloads from single address  (is good)
Use only that one.   Try setting it to 1 or 2

My suggestion doesn't stop the old retry-flood = exit, nor the newer quasi-off condition.   We still need a "watchdog" in Events, which would test the loopback for alive (with .load; and if no response, server off, then slightly into the future server on. 

Edit:  5 second time before server on, so that the overload cause/bot has given up or gone elsewhere?
Edit2:  Also, server off server on = server off.  (not useful)  So, I think that we have to quote server on to make it run last.
Maybe this:  server off, if not server off then server off, else {:server on {.if not server on then {:server on:}.}:} can run in the correct order to change the quasi-off condition to server on?   For server on, it may be necessary to check&loop until server is really on?
The key is this order:  server off, Look Over There!!!, server on{:server on:}
Edit3:  Only the .load macro + loopback can be used for watchdog purpose (must make an http request for watchdog test). 

I'm not versed in this programming, but do have suggestions about where to prevent macro: 
Prevent macro execution at drive root and  OS critical (c:/ & c:/windows* & c:/progra*) folders.
Prevent macro execution at same folder that contains HFS.exe, because takeover risk.
Prevent archive at webroot (./) because archive all is overload (archive can't work then).

Also a question:  Can macros be run non-block/async? 
I ask because, if you run a macro loop in HFS then it is completely stuck until loop end (this condition serves 1 or zero users). 

Beta / Re: version 2.4
« on: February 13, 2021, 04:04:04 PM »
Feature request:
new symbol only for smallest possible date format, like 12.12.21
(also, please set ISO date as default)

HTML & templates / Re: The "white" template: FTP-like, fewer functions
« on: February 12, 2021, 10:29:21 AM »
Bold Folders, added label folder
added graceful auto error handler
added back label for easier navigation
HFS2.4: unauth forwards to Login  (no login buttons shown)
Upload & new folder (only shows for users that can upload)

Looks almost same, except easier.

HTML & templates / Re: Responsive small screen template
« on: February 10, 2021, 06:46:38 AM »
...Select files: click date...
to fix the 'easter egg', it needs tiny date (no time), and the word 'Select' so that the user knows
such as
select   12.12.21

...folders are counted as files: should be named items?...
can change the word 'files' to the word 'items'

...use ISO-Date-Format and set dateopt = { year: '2-digit', month: 'short', day: 'numeric' } ...
ISO date format:
Code: [Select]
{.set ini|use-iso-date-format=yes.}

mobil-lightV5.6.old-fashioned(demo only).tpl  browse and file list functions work Much Better than any version which requires hfs.filelist.tpl.  In fact mobil-lightV5.6.old-fashioned(demo only).tpl is the only mobil-light that I could use (because very large folders). 

HTML & templates / Re: Responsive small screen template
« on: February 09, 2021, 07:10:22 PM »
For test, I set speed-limit to 1  And then I went to a folder with 6280 files. 
Success!  mobil-lightV5.6.old-fashioned(demo only).tpl  can stream the file list (load-while-draw-async works fine). 
No hangs and still good speed!  Awesome!!!

mobil-lightV5.6.old-fashioned(demo only).tpl is much better in a broad variety of real-life conditions.  THANKS!!!   
The old fashioned demo version is the Only mobil-light that I can use with large folders.

HTML & templates / Re: Responsive small screen template
« on: February 09, 2021, 07:16:13 AM »
Would like to see a Mobil-Light 5x with 'live list' like standard, throwback, takeback, Mobil-Light 3x. 

If you put the list back in the template, then it is more responsive in rough conditions, such as wifi, dish, high traffic, very large folders, multiple-users, etc... and no need for a wait animation because live list can stream the page load (like throwback/takeback), so it looks 'alive' even on slow connections. 

Even with 5k more page overhead live list looks Much faster on large folders.
Also, easier to install if only 1 file (not using hfs.filelist.tpl).   

Pages: 1 2 3 ... 11