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 ... 15
1
Beta / Re: version 2.4
« on: October 27, 2022, 11:07:51 PM »
. . . it just stops taking new connections, switching the server off and then on fixes it, i couldn't find why this happens and had to resort to run a script that checks 24x7 if hfs is not accepting downloads and kills it and runs it again.
Do you use the Watchcat2 script? https://rejetto.com/forum/index.php?action=dlattach;topic=12055.0;attach=9809

The stuck/off server is made worse by running limits (hfs menu > limits) that make HFS get more busy and stuck more often.
The Worst is Speed limit.  Instead of HFS speed limit, you could spend 3 dollars on a 100 megabit USB2 adapter, assign it a fixed address and assign HFS to the megabit>USB adapter's ip address.   If you were to accidentally get a gigabit adapter, (and therefore get stuck), just go to properties of the network adapter and manually set 100-half.  This also applies to single-thread versions of most web servers. 

Upload and download at the same time will probably get stuck If the connection speed is high.  Perhaps a clever programmer could figure out complete lockout/tagout logic to thoroughly prevent simultaneous uploads+downloads?  The problem is not severe at 100megabit and lower speeds. 

Edit: HFS2.4 RC7 has 'archive-only-selected' for overload protection; however, earlier versions can try to download the entire server with just one click on the archive button (stuck in 1 click).  Possible fixes include search and disable the recursive function. . . Or switch to the RC7 template or takeback or throwback or stripes.  Since the archive feature makes .tar files that the user doesn't want, removing the archive button is an option. 

EDIT:  See HFS 3 https://github.com/rejetto/hfs

2
HFS ~ HTTP File Server / Re: a new beginning...
« on: January 14, 2022, 02:45:11 PM »
...It's not even a problem of "it's hard to edit it" because you almost CAN'T do it. You are not supposed to, because it's against the kind of technology used there. That's why I'm trying to do the job through plugins.
Editing the template was a big plus of HFS2, but also a huge problem...with consequences on functionality...
I think that the plugins method in HFS3 is a great improvement.

Comparison, I think:
HFS2x standalone templates = get the new feature you wanted but lose 3 more, or
HFS3x plugins = get the new feature you wanted, without losing other features. 

That is a lot different.  Thanks!!


3
HTML & templates / Re: Stripes, the template for simple and easy.
« on: January 14, 2022, 02:08:16 PM »
What happened with Stripes4.6c_Black
The dark theme was anti-purpose; because Stripes is supposed to be a professional-looking clear clean easy view. 
It was also difficult to update 4 separate files.  For more options, on Line 5 is body{background:#E6EBFA where you could edit for any background... brown, purple, khaki, orange, chartreuse, zebra stripes, animated flying hydrants, and so much more.

Thanks for the reminder!  At the next update, I can containerize the menu so that the color theme is easier to modify; and, also at the next update, the icons can be inside the .tpl file; so, instead of 📁 there is 📁 (8K saved per each 1000 files listed). 


4
HTML & templates / Re: About "hits"
« on: January 13, 2022, 09:12:15 PM »
nice suggestion,  i will consider unicode icons as a fallback
It is the way. 
🐈

5
HTML & templates / Re: Stripes, the template for simple and easy
« on: January 13, 2022, 07:49:08 PM »
If you wanted to streamline/speed one folder (such as a Public/Guest folder or enormous/unorganized folder), you can so easily rename the Stripes template file to hfs.diff.tpl (if your Windows is not set to show .extensions then rename the template to hfs.diff); and then, save it into that particularly needy folder. 
This idea works even if the majority of your server didn't use Stripes.

6
HFS ~ HTTP File Server / Re: a new beginning...
« on: January 13, 2022, 06:11:47 PM »
can you tell me what is "server management menu" that you want to hide? i still fail to see

Just need a simple/grandma view, with much smaller-size simpler menu for guest/public.
Would also be good if 'simpleview' could be a user/folder rights flag option (and the default for guest/public). 

The default template has what I want to see; however, it may confuse my grandma/son/brother/guests too, because they don't own servers.  It is because of the purpose-difference:  I might like to manage the server; however, they might just want files/content.   So, there is 2 different purposes and thus need of 2 different views.

7
HFS ~ HTTP File Server / Re: a new beginning...
« on: January 13, 2022, 05:51:52 PM »
i don't know if you saw the new template, but is very similar to the one of hfs 2.4 . Is that simple enough? if negative, could you tell me what you would like to see removed?
Not simple enough for file server.  Because most users don't need to see server management menu. 
So, not really stuff to remove; but, there is stuff to Hide (to clear/clean the view, for the majority of users). 
 
The need is for a switchable view: 
Simple-Grandma mode (like Stripes), in light colors
Server-Manager mode (like hfs2.4),  in dark colors
. . . and default public/guest to use simple-grandma mode (it is right to use the Login button for mode/view switch). 

Per circa 1999 Orangebook and in regard to the Zenworks security module, the original background-color view switch was lightblue for basic users, darkblue for printer/backup manager, darkred for Administrator and lightgreen for inspector (business owner could see all but not accidentally disable the server). . . At login, the desktop icons as well as the program menu options would populate (or de-populate) to fit the user's access/experience level. 
Today, I think that can be translated into lightblue (colors like twitter, facebook, openmediavault, Stripes.tpl) for basic users, and then a dark theme for server managers. 

An example of menu for simple-grandma mode: 
HFS File Server
[sort][................................searchbox.............................][login]
A small thin menu, so that basic users (especially guest/public) are more likely to notice the file-listing/content, primarily. 

8
HTML & templates / Re: About "hits"
« on: January 13, 2022, 03:20:24 PM »
...Now struggling with adding an icon from Font Awsome. :-) ...
Alternatively, you can use a unicode icon, which is most efficient anyway (because it already exists at the client's browser).  The 6-digit versions are usually in full color.  🎥 

In order from best to worst:
1. Unicode icons (best--no shipping charge)
2. Fonts (costs a little bandwidth to send them)
3. Base64 encoded icon (very colorful icon is too big, but 16-color icon is okay)
4. Icon files (worst and slowest, because each file makes a separate trip).

Instead of storing the template as an ANSI encoded file, you can use UTF-8, which is editable with Notepad++ open source editor; And, a UTF-8 can store emoji's so much easier, just copy and paste from https://emojipedia.org/   Microsoft Notepad won't do; so, you'd need this:  https://notepad-plus-plus.org/  (click the Encoding menu) and save your icons directly in the template. 😺

9
HFS ~ HTTP File Server / Re: a new beginning...
« on: January 13, 2022, 03:02:13 PM »
Because somebody probably will use this on Gigabit,

I'd like a rights flag "SimpleView"
so that if "SimpleView" is assigned to a user, they would see a view that looks 'easier' like Stripes.tpl
. . . because not many users need to manage the server. . .  The majority just wanted files/content.
P.S. 
A "SimpleView" flag assigned to a folder or guest, could be very useful for public content.   
Not only for appearance, but also because a simple view can be ~5x more robust for high traffic.
P.P.S.
Additional request:  WatchDog feature included (to restart the server app, just in case it went unresponsive for x minutes).

10
HFS ~ HTTP File Server / Re: Why file system cleared?
« on: October 08, 2021, 05:09:00 PM »
In addition to Leo's good backup idea...

You could try the WatchCat script. 
If you hfs menu > save settings > to file
then the watchcat script will backup and then roll back to working settings if an error occurs while HFS is running
see that copy command (one in startup for backup and one in error for rollback) and notice that it could be expanded to first back up the vfs and then utilize the backup on the fly if errors occurred. 

Those features of the watchcat2 script are for the purpose of 'locking down' working condition.  So, you'd first get HFS running as you like. . . and afterwards start up the watchcat script to make HFS stay put. 

For example (watchcat edited to include vfs backup and restore):
Code: [Select]
@echo off
copy hfs.ini hfsini.bak /y
copy myvfs.vfs myvfs.bak /y
CLS
@echo       /\     /\
@echo      {  '''''  }
@echo     _{_ O   O _}_
@echo WatchCat is now running
:ONE
timeout /t 30 > nul
VER > nul
wget 127.0.0.1:80/favicon.ico --output-document=nul --quiet --wait=10 --tries=3
IF %ERRORLEVEL% NEQ 0 GOTO TWO
GOTO ONE
:TWO
@echo !
@echo HFS did not respond.
@echo Exiting...
date /T
time /T
TASKKILL /IM hfs.exe /F > nul
timeout /t 3 > nul
@echo ------------------------
copy myvfs.bak myvfs.vfs /y >nul
copy hfsini.bak hfs.ini /y > nul
timeout /t 2 > nul
@echo Starting HFS
start "" "hfs.exe" -c start-minimized=yes -c active=yes
GOTO ONE
if not port 80, be sure to put the actual port number
if not myvfs.vfs, be sure to use the actual file name
wget is in the zip file:  https://rejetto.com/forum/index.php?topic=12055.msg1065322#msg1065322


11
Bug reports / Re: HFS download speed slow for anything other than lan.
« on: October 08, 2021, 04:54:24 PM »
...mostly 1Mbps.... ports (currently using 9090...
Try 127.0.0.1:800 (because 9090 is high enough to be affected by QOS.)
Try temporarily loading the throwback template (to take advantage of the settings pack) and then put back the standard template if you like. 
Disable menu setting always search for better address (there is no better address than localhost if you are port forwarding normally)

1mbit is rather severe, so, it could be either qos or it could be if the single thread is wound up to max (sticky console ui). 
To find out the difference, get a friend to download while you play with the console ui (to see if it responds reasonably). 

If the console ui responds actively while downloading then the speed problem is external to HFS (not HFS). 

12
Programmers corner / Re: HTTP File Server on a Raspberry PI.
« on: August 29, 2021, 07:39:56 PM »
I would like to try a native HFS on arm hardware. 

13
Everything else / Re: Today is my 18th birthday :)
« on: August 29, 2021, 07:19:51 PM »
... Many ones say that I'm "pre-matured" "since i'm small"...
More swagger, better posture
That is good! 
...I coded many, but got few attention...
because you are smarter, and your audience is trying and wants to catch up.
That is good!

14
Everything else / Re: My new avatar
« on: August 29, 2021, 06:59:22 PM »
Good! 
But, can I make a try on a painting of the actual cuteness?  If so, make a picture (preferably several) and put them on a fileshare service, then send a link on private message.  If closer to real for a guy, then I might opt for navy blue hair.  Just sayin.  :D 

Edit1: 
Also, it was no secret that I was probably skilled in something other than coding.  :D

15
Bug reports / Re: Unable to archive/download all
« on: May 24, 2021, 03:18:39 PM »
You can use the .exec macro to run a batch file, which creates copies or archives. 

batch command for multi-tasking is in this format (so the program doesn't wait until the command finishes)
start "" "program.exe" -o options

In this case, program.exe is your choice of copy or command line zip utility.
For an example of batch file, see my WatchCat script (signature link)

Pages: 1 2 3 ... 15