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 - NaitLee

Pages: 1 2 3 4 5 6 ... 14
46
中文 - Chinese / HFS 相關的繁體中文資源(翻譯)
« on: August 17, 2021, 03:59:39 AM »
熱心網友 @MongWu.NeitherHowger.Long 為大家做了好多翻譯工作,包括 HFS 2.4 RC7(lng)、官方範本(template)、Takeback 範本的對應繁體中文翻譯!

附件有用於 HFS 2.4 RC7 的翻譯檔案,放在 hfs.exe 同目錄下、重啓 HFS 即可!

47
Here is the script, add to diff tpl of root folder.

Code: [Select]
[7z|public]
{.set|real_folder|{.vfs to disk|%folder%.}.}
{.set|command_line|7za.exe a -bd -y -ttar -o"{.^real_folder.}" "{.^real_folder.}\archive.tar" "{.^real_folder.}".}
{.add to log|{.^command_line.}.}
{.exec|{.^command_line.}|out=x.}
{.^x.}
{.redirect|%folder%archive.tar.}

And don't forget to download the console version of 7-zip, and extract "7za.exe" to the folder that contains hfs.exe.

After that, visit "http://localhost:8080/folder/?mode=section&id=7z".

The drawback is, it creates a new archive, maybe not what you want because it costs space.

Just remembered PHFS also creates a new archive in system %temp%.

So, HFS have advanced technique that stream an archive on-the-fly. The best solution is still wait rejetto to fix the 8GB issue in original HFS. :)

48
Seems an external file compressor is necessary now :D

We can archive files with HFS macro with external command-line software such as 7-zip. This will be a workaround for the tar problem.

If this problem affects you deeply, let me do it now :)

Also, please have a try on my PHFS? The link is in my signature, it uses Python libs to archive to tar format and is more stable.
I'm wondering is there also a problem with PHFS. Testing is welcome!

49
Everything else / Today is my 18th birthday :)
« on: August 09, 2021, 06:30:55 AM »
... But no one cares about this  :'(

Here is my most familiar place, so I speak something here :D

The age 18 means a lot at almost everywhere.

Many ones say that I'm "pre-matured" "since i'm small". But now that I have a reason to say "you are wrong" to them.

I coded many, but got few attention. I don't want to get polluted by proprietary, but I still want my creations to help ones get better, get more freedom to their computing rights.

I trust GNU philosophy, which will be a hard step in a world with surveillance. Rather than failure expected by eyes around me, I got a "victory" at here, created my own HFS template & HFS (yeah, see signature 8)), brought light to HFS world. Though this land is small, but with infinity fun!

I learnt JavaScript/TypeScript, Python, and now C#. I'm not one that always stick at one thing till die. I even bought a book that teaches anime drawing for game creation. A person should always follow "learning" in his life.

Everyday my mind echos some annoying stuff, somewhat like "you must use WINDOWS to complete your daily task here", "ActiveX is the most ADVANCED technology in this world, so we should use IE to surf the Internet"... ... Wrapped by these disgusting things, I really to escape, escape to a far-far land without control by so-called "big companies". Windows do good as a personal OS, AX is sure a fun thing in the past. But they should not be used as a reason to stop discovery. I used GNU/Linux for one year to complain about this, but who cares? ... ... All in all, I HATE them, that's why we should FIGHT against them.

Also ones say who talks too much **** is only saying, without any real effect. But, God knows how many kind persons enjoy giving to others, and also how many helpless persons enjoy them? 人之初,性本善。Do not get your eyes masked by a piece of leaf.

This is more like a presentation. But, these are what my heart thinks. Please, let's enjoy this day, which is another peace day to hack  ;D ;D ;D


Regards,
NaitLee

50
HFS ~ HTTP File Server / Re: HFS wont be faster than 1MB/s.
« on: July 28, 2021, 04:07:58 AM »
As far as I know, HFS macro execution relies on client side i.e. the window/UI code cycle. That means HFS page generation has a peak.
Also, HFS is developed in Delphi Pascal, a seems old-fashioned language that mainly focus on Windows desktop development, not so optimized for servers.

Since you've ensured all other possible reasons did not cause this, about solutions to HFS itself, I have almost no ideas...  :'(

But, Try PHFS, it is faster than HFS in file transferring.
If any problems with that, post again, we will handle them. ;)


P.S. I'm not willing to say PHFS everywhere, which will be considered annoying... I just hope it will be useful under some conditions. :D

51
After publishing your site to public internet (via static ip, ddns, port forwarding etc.), you can pick a domain name (if not have) for it using services like Freenom.

Further more, you can also add some SEO tweaks to your page via editing the template (for HFS) front page (the [] section), consult the Internet and HFS wiki for more help.

Also, you can populate, or simply monitor your site status by registering an account at Google/Bing webmaster tools and add details of your site.

Don't forget to spread the words on social medias!

Wish that helps~

52
Beta / Re: version 2.4
« on: June 27, 2021, 03:09:31 AM »
Question: An address  of this kind [fe80::2905:9029:e7c9:f31e] is not intended for external users, or have I configured something wrong? Thank you.
Yes, ipv6 FE80::/10 addresses are belong to LAN, not intended for external users.
Also, you can consult the Internet to know if that ipv6 is supported for your ISP. If not, then viewing your HFS server with ipv6 is not possible.

53
Bug reports / Re: file-extension-based-content-type ?
« on: June 25, 2021, 05:51:27 AM »
This is already built-in :)
In HFS: Enter Expert mode, Menu - Other options - MIME types..., add a row and fill with | *.mp4 | video/mp4 |

Also, I think feature request is not a bug... :D If no child board fits needs, post on general HFS board

54
TY Naitlee! ;)

Thank you also :D
See it's "trial" release for Windows, it works "right out of the box": https://github.com/NaitLee/PHFS/releases/tag/pre-21062900

55
It's a hard work till now and my Python version of HFS can work ;D
Now you can use it as a personal nas drive with your beloved raspberry pi (if you have) and template~

Here's it's repository: https://github.com/NaitLee/PHFS
Feel free to star it :D  or say this to geeks around you!

56
I've gone deeper at early time, and found that a vfs file is consisted of "chunks", for example, the char \x18 (DEC 24) marks a part of zlib compressed data.  ::)

Also in classesLib.pas, something named "tlv" manages to read vfs file, but it's a little complex...

I tried with python zlib module, by simply splitting the file content with b'\x18' and decompress the parts, also failed  :'(

57
In case the vfs is small, it is uncompressed. You can open that vfs file with Notepad++ (not plain notepad.exe), then edit it as a file, replace all "C:\" as "E:\", finally save it.

If it's bigger than 10kb, then it's compressed, and should decompress it with some methods before editing.

I've checked HFS source code, but cannot understand how vfs file "chunk" works, thus I have no idea to decompress a vfs file with external tool.
Maybe someone else can explain this to us... :D

58
Bug reports / Re: HFS2.3m reported as potential virus by antivirus
« on: May 28, 2021, 12:42:43 PM »
Some days ago there's also a report: http://rejetto.com/forum/index.php?topic=13447.0

HFS is of course not a virus, since it's completely Free Software, anyone could check whether it's good or bad, rather than report blindly.

Most reason of this false positive is that, HFS is a server software and gives users "remote access", which is "sensitive" to "normal user" in their eyes.

Just put heart down :D

59
My mind says:
- About a "captive portal" thing, it can be achieved with your raspberry pi. Some articles on internet may help you set it up :)
- Many browsers have no native support for streams, also "true" streaming is not possible with HFS. However, here is a workaround:
  - make a back-end, split video files with ffmpeg, then stream with video.js (front-end) in browser. people here may help you do with this.
- You can download HFS document by rightclick page -> save as... in a document page in a browser. This will save one single page, be sure do this in all page you desired.

Also, I have some questions:
- What do it mean by "stream"? Since HFS is a file server, it's mission is serving files, you can serve video files with it, or even "stream" with .m3u8 files, but not true stream. Making it clear would let us have a direct solution :D
- What's your video's format? If they are in .flv or other weird format, convert them to .ogg (.ogv) or .mp4 first. otherwise it may not played directly in browsers.

P.S. few months ago I cooperate with my friend made a .m3u8 streamer thing with python without hfs. if you want a streamer too, just "request", I will do it in free time ;)

60
Bug reports / Re: Unable to archive/download all
« on: May 13, 2021, 02:44:53 PM »
In an operating system, when a file is opened and changing, other programs cannot see changes, or cannot even access it.
I've successfully reproduced this, with 10 files, only 4 in archive, and their contents are all \x00.
Maybe it's the file just got "immutable" when writing. (I'm not a low-level os expert)

So the solution is, keep the files closed when trying to access (archive) them.
You can try to close your file-writing applications, locally or remotely.
With HFS, you can do with macros. Be sure to keep secure.

P.S. What I've tried is following python code:
Code: [Select]
files = []
for i in range(10):
    files.append(open(str(i) + '.txt', 'w', encoding='utf-8'))
while True:
    for i in files:
        i.seek(0)
        i.write('1')
It infinitely writes the file on the first byte (char) until Ctrl+C.

Pages: 1 2 3 4 5 6 ... 14