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 ... 11 12 13 14
181
Programmers corner / Re: delphi 10
« on: May 11, 2020, 03:43:47 PM »
NaitLee
If rejetto's link is always problematic for you ... you can use the link I gave you yesterday ... I updated it.

Okay!
I will be not here and unable to do new tests these days, just hope 2.4 will be accomplished perfectly!

----
Edit: I had a test with alpha7, perfect!

Something mentioned by Leo before: After logout, the user's login information expires after the last marked connection (username@IP) ends.
If I login as a user who have only access to a folder, then enter that folder, logout, back, there leaves an idle connection, and I still opened that page. This keeps the user not truly logged out.
 After this, I copied that page to another tab, and I can access that one too.
 So, if I keep refreshing the half-logged out page (eg. with a setInterval()), I can still access other pages with my session before logout, the session never expires until that connection is kicked.

Is this thing necessary?

182
Programmers corner / Re: delphi 10
« on: May 11, 2020, 12:53:30 AM »
I did a easy test with alpha6, no messcode anymore ;)

But the login problem seems severe, just like everyone said here.

In Leo's login system, with a English username it says password incorrect; with a Chinese username it leaves a "receiving" connection.
In browser login form, with a English username it succeeds; with a Chinese username I got a deadly "400 - Bad request".

183
Programmers corner / Re: delphi 10
« on: May 10, 2020, 05:59:32 PM »
naitlee, can you guide me on how to reproduce the problem?
do you think it's possible to do also with default template?

I just tried to apply my translation to default template. Attached as hfs.diff.tpl, encoded as utf-8. With the 2 ways I got different result:
 Open that file with notepad, copy-paste all things to diff template in root, it worked perfectly;
 place that file to real folder and bind to root, the file seems got corrupted at some points in its raw data.

So is the function of reading files of HFS or Windows API got wrong?

184
Programmers corner / Re: delphi 10
« on: May 10, 2020, 05:44:39 PM »
I downloaded alpha5 via SilentPliz's link and gave it a try.

The problem is still there, again; but I found something interesting:
 there are just a part of characters got corrupted here, ex. 夹,件,as well as that 會 and some of "\( •̀ ω •́ )✧ ♫"
 but others seems well, ex. 页,期,小
see the screen shot below.

and, when I login as a username with those characters seems well, I succeed; with corrupted ones, I fail with a "receiving" stay there.

We still don't know what caused that problem. I will do tests in another OS tomorrow.

185
Programmers corner / Re: delphi 10
« on: May 10, 2020, 03:15:52 PM »
I run these alpha versions mostly with Ctrl & Shift pressed, thus no configuration was loaded.

I tried many times to download alpha5 but failed, since the speed is too slow.
I switched my system language to English just now and did a test with alpha4, but the previous problems are still there with same behavior...

I'm using Windows 10 now. If needed I will do tests in other OS, like Windows 7 and wine/Linux, with different localization set.
Wait me for half one month before I can deal with this problem again...

186
About your translation of HFS to chinese. I forgot to say that (if you have some spare time) you could also translate the default template

I have just done that, and modified (added) that in my post in Chinese Board ;)

NaitLee

I've sticked your topic, and also that of the Chinese board. :)


Ah, thank you! :D

187
Programmers corner / Re: delphi 10
« on: May 10, 2020, 02:23:06 AM »
If you find the latest version to not work like this, please tell me.

Should we start a new topic for the Unicode problem? If we are really going to say this here, it may confuse many ones due to how complex the encode problems are...

The previous tests I done are did with alpha3, not so well; but with the new alpha4, it looked better.
As the encode problem should be tested in a full environment, install several versions of Windows with various language(sub-encodes of ANSI), it's really hard for us to summary a solution to solve these things.

Grammar here may not good...

First is the page encode problem, on alpha4 with Takeback (saved as utf8 without BOM), it will not mess-code, but the last utf8 char in a string seems got sliced from its raw data...
 On alpha3, saving template with utf8 w/o BOM will cause messcode(characters without meanings), with BOM/ANSI will not, and works well;
 On alpha4, saving with utf8 w/o BOM will cause the last utf8 char sliced, with BOM/ANSI will cause messcode(almost fullscreen of ? in a diamond shape)...

There's also another thing I want to say: the end of line sequence (Windows as CRLF, Unix as LF)
 before alpha4 the eol sequence is not so necessary, but in alpha4 when I save my template with LF it also gets a messcode(same as with BOM or ANSI)...

Second is the username problem,
Currently I tested 2 usernames: 會 and 老八,

In Original(default) template:
 with a English username I successfully logged in, but with both the usernames I got a "400 - Bad request".

In Takeback:
 On alpha3, try to login as 會 will cause a connection stay in HFS connection list with a status "receiving", and as 老八 it says user not exist;
 When the username data storaged in alpha3 "take a trip" to alpha4, they are shown as masscodes. I renamed them as they can show correctly in alpha4.
 On alpha4, as 會 it still stays there with "receiving", but as 老八 I successfully logged in.

... Ahh, let me take a break from these weirdies...

Edit: I see the login(signin) of my template is unstable in certain condition in alpha4, sometimes the logout works, sometimes cannot login... But give me more time to test them again first...

188
Programmers corner / Re: delphi 10
« on: May 09, 2020, 02:38:11 PM »
It seems that currently the work of rejetto on hfs 2.5 is access on the rewriting of the basic functions, in order to find the good functioning of hfs not only in unicode, but also it aims to adapt it to the new 'compiler' requirements.

Yes, with several tricks these problems can be avoided. It's a wise choice to adapt the application itself to a stable environment first, then go ahead for these tough but not-so-necessary things.

If this is really hard-as-rock, the Unicode username problem can be put off, since a person with a wide-enough knowledge and technical skill will always try to adapt to a thing rather than always require the thing to change.
But be aware at the login/logout problem, it seems unadaptable to most ones...

189
I just got a good new that I can still be here for 2 days, then back here to have a look... Really thanks Leo ;)

If you add a settings panel, you could add the option to customize the style of your template (doing conditional loading of CSS files).
...
What kind of captcha is most used in China?.
...
I forgot to say that (if you have some spare time) you could also translate the default template,
...

I would like to insert a thing to my to-do list: Ajax file searching. This will break the encode problem currently HFS have, but unable to show date & size of the search results(files).

For a settings panel, this is a great idea. Since I have done several VB6.0 applications before I know HFS, I can make such a thing outside the template easily, and it will be useful for both people here and my friends, as well as my another project...

For the captcha here, the mostly used one is dragging-a-puzzle. This is rather easier than Google's one. And there are also other ways,
more can be found at Netease YiDun, this is a captha service from China, with global ranged.
It also comes with a free trial, and seems needs money... More for it can tap on Contact Us in its page and chat directly to the service.

The strings in default template is rather few, too. I'll consider that  :)

190
Programmers corner / Re: delphi 10
« on: May 09, 2020, 01:23:02 PM »
save your tpl as "UTF8 with BOM" helps (working example of my tpl)

Yes it really helps...
It's a pity that I have not know something about BOM before this. But here in Stack Overflow says utf-8 with BOM is not recommended...
Should these tough encode problems solved by keeping the compatibility to HFS or following the national standard (a pdf, something is in section 2.6 and 2.13)?

191
Programmers corner / Re: delphi 10
« on: May 09, 2020, 12:21:40 AM »
Hey, I did a simple test with 2.4 rc5 (alpha 3) for the Unicode problem with my takeback template, but still found something worked wrongly:

  • The takeback template with Chinese language set even works well in rc4, but get a mess-code problem in rc5: File names are still well, even Korean file names are shown because of the Unicode update, but GUI (built-in) texts got mad. Setting the meta charset of the template/webpage is useless to the problem. This problem got fixed after I save the template with ANSI encoding (keeping meta charset as utf-8), but this is neither we want nor the template makers want, this will cause some symbols which are utf8-only get disappeared.
  • Though the usernames in HFS now saved as Unicode, when I attempting to login as a Chinese username, with takeback template (comes with the alternative login form ver2 by Leo) I got "this user does not exist" again as the same as in 2.3m, and with the default template I got a "400 - bad request" then no page on my site can be accessed with that error code...

With problems above users may feel more uncomfortable than using old version... :( Sorry that I know nothing about Pascal and can do no help to the source code... :-[
Wish these problems can be dealt successfully...

192
Life comes busier and busier, and I may not here for at least half one month... As the last post before I go, I'd publish some of my plans and questions:

Going to do:
  • Multi-file selection & edition of filelist page. Many templates support this.
  • Reduce the data cost of loading a filelist page.
  • Code structure sort. I want it be better for everyone to read, learn, and take away any function they want to their own template/webpage.

Questions:
  • Which license should I use for this template? Better a free (as in freedom) one without too many limitations. Mostly the result is based on @danny 's throwback template, because my template is based on this.
  • Should I make this template available on GitHub or anywhere similar?
  • There are several ways for reducing data cost: Put scripts/css in file sections (as [auth.js|no log] rather than [sym-auth]), or make them as files, for caching and used by other ones. Which one should I use?
  • Do I need make several skins for this template? Like which one turning this takeback to throwback again? :P
  • Is this template compatible to HFS 2.4? I simply checked a few features on 2.4 rc4, and seems file controlling is not as stable... Maybe it's just because of my anti-virus software...

Just leave message anywhere, including mails. I'm sure I'll check them, but working hard with template seems impossible these days...

Loves,
NaitLee

193
you can't animate display, but you can animate height
for fadeIn this can help

I have successfully done the work! No jQuery anymore! See the new version!

194
a little mistake in 0.12c:
Code: [Select]
<!-- Jquery is included in this HFS link -->
<script src="/js/jquery1.11.js"></script>
you can't animate display, but you can animate height
for fadeIn this can help

Ahh, really sorry for that, but I'm doing my work really late at that "day" (4am, you may noticed that),
at that time I'm finding why my jQuery stopped working, replaced it as my local one, then ignored this problem...

I didn't even sleep yesterday, forgive my fault...

And thank you for this link :D, no tiring mimic to jQuery anymore!

195
5). You could consider updating to the new login form for the [unauthorized] section so it can be used in cases where basic auth is unavailable (some phones and tablets).

Just have done that perfectly. A new update is uploaded. See the first post.

And... I tried many times to make animations in FaikQuery, but always fails. I only need something can do live show/hide animations to an element. Is there anything can do (just) this? Better with CSS3, or anyone please help me about that...

My holiday seems going to be end... Updates may not be as frequent as now...

Pages: 1 ... 11 12 13 14