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 ... 6 7 8 9 10 ... 16
106
HTML & templates / Re: Tiles and Stripes, the gallery view
« on: September 15, 2020, 01:51:54 PM »
it's my "legacy" audioplayer :)
it happens, if you set shuffle=0
the player remembers last played song and position, so you can later continue with your hearbook, but it's not perfect.
to fix it, remove if(!shuffle) audio.currentTime=tmp[1];

alternativly after {audio.src=that; add audio.currentTime=0;

P.S. this player should also work with the default template
Thanks DJ!!

107
Beta / Re: version 2.4
« on: September 06, 2020, 10:26:09 AM »
I forgot to say a problem after posting this, sth about dual-core browsers.

That is, while many ones (most ones in China) are using commercial dual-core browsers, which use IE core by default, webpages provided by the 2.4 default tpl will not work properly as expected unless they switch core -- the page is broken in old browsers.

And we should know, users who are tricked to use these browsers have no ability to do something "high-tech" like switching core or switching browser.
And again, those browser makers, saying that a programmer that cannot do IE-compatible codes are stupid. I'm angry. Maybe you too.

Neither requesting users to change browsers nor requesting browser makers to switch core is possible. Made my head ache.

Btw adapting 2.3 tpl to 2.4 seems easy. Let's do this?
Likewise, I've identified an overage of javascript reliance for drawing the page. 
Mobil-Light and the Standard/Default template fail to list a quarter million files on a single page.
But, both Throwback and Takeback can do it routinely.  So, why are the others unable? 

P.S. What is the ususal browser-level support needed?   

108
Beta / Re: version 2.4
« on: September 04, 2020, 07:45:35 AM »
...a second instance of the program is started concurrently with the first, when the "only 1 instance" option is not checked.
I thought that only 1 instance was the default setting? If not, then that could made default easily. 

Therefore, Housekeeping:  {.set ini|use-system-icons=no.}  {.set ini|only-1-instance=yes.}

Mainly, I'm very pleased with RC7! 

109
Beta / Re: version 2.4
« on: September 02, 2020, 07:37:09 PM »
i don't understand the reason of your statement. I made my test on a gigabit.
There is, for no reason that I can think of, a very huge difference between a momentary test on gigabit LAN versus long-term use on really fast internet WAN.  In the latter case, the majority of 'stuck' problems were resolved by Disabling speed limits and replacing it by of the following external limiter solutions:  1) NetLimiter, 2) 150n WiFi, 3) el-cheapo usb to 100 megabit ethernet adapter (or set existing adapter to 100 megabit). 

@Rejetto:  Use netlimiter keyword search to find the speed limit troubleshooting threads. 

P.S. Trouble with limits is more likely to occur when more than one limit is used.  The stuck problem with speed limit is more likely to occur after a day or a couple of days.   The other trouble with speed limit is that 1) misbehavior/overwork if more than one limit is used, aaaand 2) downloads per ip is a highly desirable limit to use (which works even better when other limits aren't used simultaneously). 

110
Beta / Re: version 2.4
« on: August 29, 2020, 06:19:25 AM »
i made a few tests, and it seems i solved my freezing problems by setting a 50MBps speed limit ...
I did find that downloads limits worked nicely.  But, speed limits are more likely to get stuck on a fast Internet connection. 

111
Beta / Re: thumbnails
« on: August 19, 2020, 08:40:55 AM »
...
The feature works like this: you append ?mode=thumb to the url of a jpg file.
The thumbnail itself is served as a file. If not available you'll get a 404...
Can you change to If not available then send whole jpg file?

This piece is missing?:  I wonder if there is a 3rd party thumbnail generator, which could add thumbnails into the jpgs without re-encoding the original photo data?  If that was available and commandline, then @sunday exec thumbgen.bat.  Hopefully it could skip jpgs which already contain thumbnail data.

In this case, 'thumbgen.bat' can run multithread by
start "" "my.exe" -c start-minimized=yes -c active=yes
So, hfs, exec doesn't have to wait on it to finish (For Windows 7,8,8+1,10, by using start, then a batch file can end in a couple of milliseconds).

112
Beta / Re: version 2.4
« on: August 15, 2020, 09:35:07 PM »
Looks like the default template's delete script needs edited/replaced. 

Also, upload counters/metrics are restricted to the [upload] section.

113
Beta / Re: version 2.4
« on: August 04, 2020, 09:43:57 PM »
i always try to take my time in preparing the next release, but in the end i often make mistakes like this.  I'm not pissed off for the mistake itself, but because now the release is compromised and i have to make another.  irony appreciated tho.
  I saw a change to much better quality menu arrangement and I really do like it.

P.S.
Since HFS2.3, including HFS2.4, the speed limits makes stuck worse if fast internet; so,
the only helpful limits are max downloads and max download from single address.

114
Beta / Re: version 2.4
« on: August 02, 2020, 11:04:10 PM »
https://github.com/rejetto/hfs2/releases/tag/v2.4-rc07
For load testing, I asked of it several impossible things simultaneously.  It worked really well.  It did large file-list, large searches, photos, music, etc... That was just the initial test. 

Also checked with the default template and see that it was revised to archive selected.  This is good.  However, I did not get any archives.    And, then I tried again, selecting just 2 files for archive.  Didn't get an archive.   Also it didn't get stuck.   So, mostly good news. 

115
Beta / Re: 2.4 beta, freezes when there are many files
« on: August 01, 2020, 11:18:29 AM »
I can't solved it and i missed one thing, if i add other files under the real folder, problems occur. also v2.3 is fine.
To see if the difference was template, can you try HFS 2.4 RC7 + Throwback template?

116
Beta / Re: 2.4 beta, freezes when there are many files
« on: July 31, 2020, 10:45:09 PM »
Freezes when browsing if there are many files in the Real folder (about 250 files and folders). v2.3 is fine. in more detail, the thinking state continues almost infinitely and freezing or lagging.
To fix, just make a new VFS, and also clean/default the settings.
And this is a problem from previous version, if upload speed is more than about 30MB/s and there are many connections (about 10), often server is dead without error message.
but the menu interface works normally. and minimizing instead of tray icon is a little less. my ram is 16GB and internet line is 500Mbps. in Korea, 200~500Mbps is common.
For HFS, you can use a 2nd network interface, such as PCI or USB to ethernet set to 100 megabits, fix address, use just for HFS. Or use netlimiter software.  Also, to automatically get unstuck, use the WatchCat script--it has fair documentation so you can adjust the activities and timeframes to suit. 

117
HFS ~ HTTP File Server / Re: Controlling the Cache-Control header
« on: July 29, 2020, 10:19:26 PM »
Throwback for HFS 2.3 has used headers like these:
main
{.add header|Cache-Control: public, max-age=200.} and this <meta http-equiv=CACHE-CONTROL content=PUBLIC>

error messages and upload
{.add header|Cache-Control: no-cache, max-age=0.} and this <meta http-equiv=CACHE-CONTROL content=no-Cache>

See how they are equal yet opposite?  The 'mirror image' commands are necessary for the countermand/override concept to work. 
This is more common with style = old-way; new-way, and in that order; so, the browser gets as far as it can go.  The concept is actually the same.


For HFS2.4 there was slight difficulty in caching main page and then not caching login-name (some odd battle).   And, I know that those meta tags aren't right for XHTML nor HTML5 (those metas need a wee update).  Also there is no </meta> thus no /> because meta are not closable.
I got the caching to work for HFS2.4 with some experiments.  Somehow, the old style %login-link%%loggedin%%upload-link% was resistant to caching (some difference), so, it didn't cache wrong login data.  Would be nice if I had done that on purpose.  Unfortunately, I don't know how to repeat that yet.  Will investigate.


Usually there is no problem, with turning caching on--the problem is turning it off, such as for new folder (make it show) and login name (change when login) because the file-list page which should be cached (for a couple of minutes), also should change if new folder or login difference.  Very puzzling! 

I can report that caching headers work and that the problem of mixed data-to-cache + data-not-to-cache on the same page is not specific to HFS.

118
Except using old-old coding standard, anyway to solve these tough problems?
You could change doctype to XHTML transitional.  And, also close a few tags for compatibility. 
After that, if anything causes breakage is was: the client's javascript is too old.  For that problem, you can put an else message:  Please update browser.

Edit (forgot to mention): 
You can do style = old way ; newer way ; newest way
In that order. 
So, if 'newest way' was rejected, then fallback can catch it. 

119
HTML & templates / Tiles and Stripes, the gallery view
« on: July 26, 2020, 11:51:14 AM »
For HFS 2.4 RC5/6/7...

Tiles-n-Stripes template is for development/testing purposes (not for main server). 
Tiles/Gallery layout may cause a couple of problems:
1).  On a fast connection, the amount of data (if page scroll+download/archive) can jam the ui and get stuck.
2).  On a slow connection, the amount of incomplete requests can snowball an overlarge 'todo' list; also stuck.

For problem#1, it was rewritten with micro-delay timers between retries and between rows of lazyload photo tiles.  This avoids the fast-connection-stuck problem, by providing some slack-time for other functions to run (ui-screen-update, list, uploads, multiple-users, etc.).   So, it can work for localhost/local-lan test and other fast connections.  Do see the updated lazyload script.

For problem#2, your clients have a variety of connection speeds, so this template might not be suitable for use over the internet. 
Possible fixes include ondemand (not implemented) whereby no tiles are shown until user clicks to see tiles on current page.  And, speed adaptive tile size, whereby the tiles get much larger size and margins for slow connections, so they could load faster if fewer fit on screen (not implemented because no client speed measure available).  If you want to put it to work, you could use the WatchCat script. 

120
HTML & templates / Re: Responsive small screen template
« on: July 26, 2020, 11:23:00 AM »
Tiles/Gallery layout is particularly difficult for HFS, with at least 2 problems: 
On a fast connection, the amount of data (if page scroll+download/archive) can jam the ui and get stuck.
On a slow connection, the amount of incomplete requests can snowball an overlarge 'todo' list; also stuck. 

Main fix (for template):  Ondemand--no tiles shown until user clicks button to enable higher load for only current page. 
-If ondemand, then you don't need to block tiles for mobile.  Sometimes, even mobile users want to see tiles (just not every page).

Is there a javascript method to Coarsely estimate client speed individually?   If that was possible, then the gallery view can be made adaptive to speed by regulating image and margin sizes (adapting to how many can load in ~2 seconds).   

Pages: 1 ... 6 7 8 9 10 ... 16