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 ... 13
46
Programmers corner / Re: Halp! missed the target for the 404
« on: April 13, 2021, 09:15:17 AM »
macro string processing to hit target of 1 folder higher...

In takeback 0.3 preview:
Code: [Select]
        {.if|{.=|{.cut|-1||%url%.}|/.}|
            <a href="../">⇦ {.!Back.}</a>
        |
            <a href="./">⇦ {.!Back.}</a>
        .}
if what not found is a dir, then go to parent-dir; if a file, then go to its dir.

Is this what we need?

47
compact lazyload script...

In takeback 0.2 I used your script, it works well
In new version I used native lazyload because I want to keep it simple

48
Takeback 0.3 is done :) see first post

Features:

Basic things
File Preview, comment
Music player, lyric support (.lrc)
Login, Logout, Change password
File/Folder Manipulation
anti-file-corrupt
thumbs, slideshow
Generator
Localize

49
RAWR-Designs / Re: cant install theme on 2.4.0 RC 6
« on: April 10, 2021, 04:56:44 AM »
HFS themes ("Templates") are version-sensitive. Generally, templates be used in HFS 2.3m can't be used in 2.4 RC, and vise versa.

So there are choices:
- HFS 2.3m: try Throwback for 2.3, RAWR Template series etc.
- HFS 2.4 RC: try Throwback for 2.4, mobil-light, Takeback, Fuh 2.0 etc.

Technically explained:
In templates' source code, there is an [api level] section in 2.4 templates, which is used to identify new templates
In 2.4 if there is no such a section with value >= 2, will raise an error.

50
Beta / Re: 2 login targets
« on: April 10, 2021, 04:50:43 AM »
How do I alter this form to:  refresh same page if url is not /~login? 

I think we can pass current page (%encoded-folder%) through urlvar (/~login?redirect=%2Fsome%2Ffolder%2F)
Then redirect in /~login page with javascript etc.

51
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).

What in my mind is: we serve a web UI, thus everything is handled by http handler.
Multi-threading for both serving requests and macros are possible.
If python is yet not possible for such a server, we can try others... what we make is just an interpreter :)

52
May 13, 2021:
Now the basic part is done, see the table and image below :)
Now worksNow doesn't work
file listing, downloading, uploading, archiving, searching
accounts & login
some symbols and macros
special:strings for translation
file actions
multi-threading
seems slower, sadly
virtual file system
limits, ban, ......

53
HTML & templates / The Python Template Interpreter (PTI) Plan: suggestions?
« on: February 14, 2021, 10:52:45 AM »
I just think python is a good choice to make a cross-platform HFS template interpreter.
After struggling for days, now we can truly make such a thing out: core macro parser has been made, in a different way.

So this time I'm searching for some tips and suggestions, more is good :)

Also, here's it's repo and site :D, it's named phfs because it also has a server!

Poll: Which priority should I choose?

54
HTML & templates / The "white" template: FTP-like, fewer functions
« on: February 12, 2021, 03:50:49 AM »
Suggested by my friend, I've made this simple template.
It's like an FTP page, without login and file-operation functions, for ones that need simplicity.

Enjoy ;)

55
This has been already reported many times. See my answer to another report.

Switch to older/other templates helps. :)

56
HTML & templates / Re: The "Takeback" template - A different & modern taste
« on: February 09, 2021, 09:13:01 AM »
Learn Nodejs and do further work on HFS3 :D

Ah, for some reasons I don't want to learn Node.
And by the way, I'm not really a tech-master, cannot do large projects with multiple files relied to each other, at least for now.
Sorry for that.

Besides, I just trying to make a template interpreter for a minimal "HFS" in Python, cross platform and lightweight for template making & debugging.
It's been a long time since last trial and I've messed up... Now trying to re-write...

P.S. I worry about that if anything unfortunate happened then we cannot use our beloved HFS 2, so I had such an idea. I'm not wondering to replace it. Don't think too much :)
P.S.2. I want to get away from the hand of Windows, should I write my Linux experience on this forum/elsewhere like GitHub Pages to help other guys who want so?

Would be better if all functions were inside a scheduler (task-swapper) module so that all get near-equal cpu time.

@Rapid has a version of HFS 2 that splitted server and client code. Have a try on that?

57
Beta / Re: version 2.4
« on: February 04, 2021, 10:50:34 AM »
Bug v2.4-rc07

When to Enable Anyone Upload Feature, and test files upload, not show upload progress bar.

But, I using v2.4-rc06 to v2.4-rc01, It works.

It's because in HFS 2.4 RC7 its template is removing JQuery dependency, and some features doesn't work properly after that.
It's been reported here

So, it's not a problem of HFS itself, but the default template :)
If you need upload work, you can change the template to RC6's one or those by the community.

58
HTML & templates / Re: The "Takeback" template - A different & modern taste
« on: December 15, 2020, 01:43:51 PM »
Want Fuh-2.0-Liked grid filelist in Takeback? Use the diff tpl in attachment :D

59
HTML & templates / Re: How to Speed up Rendering
« on: December 09, 2020, 02:33:18 AM »
how can I speed up the rendering of a page?

You can try those templates pinned on this child-board. They are all for new HFS 2.4 RC7. They are faster than default template. Pick your favorite one! :)

I've tried, my music folder with 569 big files and long names are rendered by default template within 4.5s, but with Takeback it decreased to 2s. Throwback and Mobil-light maybe even quicker than this.

Besides, you can manually sort your files to additional folders, ensure there are few files in a single folder.

60
其实这样的例子应该有很多了。但是让我碰见一个:http://193.42.26.37:85/

这货貌似盗了我一个朋友的 Skype 账号,给我发了个“协助商户流程.chm”。这是编译的 HTML 帮助文档,Windows 默认用嵌入的 IE 打开。

我把它拆开,草草解密了一下里面的 JavaScript,是调用 ActiveX 对象来下载上面网站的 Host.exe 病毒程序——毕竟 ActiveX 正是 IE 的不安全所在。

所以,保持警惕!不要乱打开文件!



后记:

1、这货居然用的不是我的 HFS 翻译版本?有点小生气耶…… 🙃
2、我只是个高三党,哪里来的商户?🤪
3、所以话说 HFS “降低了犯罪成本”?真荒唐……呵呵……
4、那个 CHM 文件我给附在下面,你们可以深入地研究研究……解压密码:"virus?" (不包含引号)
    ( I attached that CHM virus file below, have a hack with that ;) unzip password: "virus?" (quote signs not included) )

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