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

Pages: 1 2 3 ... 130
Beta / Re: version 2.4
« on: September 02, 2020, 10:34:20 PM »
I found a problem on both of my PC's. When I right-click a file and click "Add to HFS" the file does not go to the share list. Also I found that "drag and drop" also can't put it there. The only way is to click on "Add files" in the program.
I am using 2.4.0 RC6, build 318 and the default template.

the problem with using "Add to HFS" is that a second instance of the program is started concurrently with the first, when the "only 1 instance" option is not checked.

when multiple instances are active from different directories, "Add to HFS" can only work for exe from one directory but appears installed for all instances

I suggest this modification so that it is possible to know the exe and therefore the directory which is actually attached to "Add to HFS"

function isIntegratedInShell():boolean;
result:=(pos(exepath,loadregistry('*\shell\Add to HFS\command', '', HKEY_CLASSES_ROOT)) > 0)
  and (pos(exepath,loadregistry('Folder\shell\Add to HFS\command','',HKEY_CLASSES_ROOT)) >0)
  and (loadregistry('.vfs', '', HKEY_CLASSES_ROOT) > '')
  and (pos(exepath,loadregistry('.vfs\shell\Open\command', '', HKEY_CLASSES_ROOT)) > 0)
end; // isIntegratedInShell

Beta / Re: version 2.4
« on: September 02, 2020, 09:27:21 PM »
yours is a good idea, but i mean it as a plugin.
Someone packs a tpl or a diff-tpl, and an 'events' file that will {.load tpl.} based on a logic like the one you wrote.
The only limit at the moment is that this "plugin" may overwrite your existing file, but in the future i mean to let you have multiple events files, so you don't risk overwriting.

some events of the are specific to the correct functioning of the program and cannot in any case be overridden by any linked to another template loaded by the macro {.load tpl.}

it is important to first establish a list of events that cannot be overloaded as Timed events, start, quit, server start, server stop, .... and probably a few others.

 So those that would be specific to a template could simply be added in the template or any diff template as a section such as [event NAME] to override any event of the same name in the or [+ event NAME] to add this event recursively as for diff sections

Bug reports / Re: duckdns
« on: August 15, 2020, 08:48:54 PM »
I don't know how to answer, these dlls provide SSL, is it for duckdns or for hfs, maybe rejetto would be able to answer.

Bug reports / Re: duckdns
« on: August 13, 2020, 08:52:00 PM »
duckdns". the page is reachable but I don't see it in hfs-> menu-> ip address.

Hi, I misunderstood the request
only CJB no-ip and Dyndns are predefined, you have to use custom to use another provider and use the remote update url
for duckdns it is this form you have to put in the custom popup
replace mysubdomain and xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx with your values

%ip% is automatically replaced by the same value obtained by selftest

Bug reports / Re: duckdns
« on: August 13, 2020, 11:57:11 AM »
would your second hfs not be in easy mode? which could block access to the dns config

very possible that it is the antivirus which puts the exe in quarantine by considering hfs as a false positive,
you have to create an exception so that the antivirus leaves it alone, unless the program is infected after installation by a virus present on the machine

otherwise hfs is only allowed to delete itself when a more recent version exists, and when updating it.

Beta / Re: thumbnails
« on: August 11, 2020, 09:41:49 AM »
what you would like are macros like "load bin" and "save bin" using a buffer variable

load and save only deal with text files, and besides this can create some problems when used with different encoding formats (ansi utf8 utf16 ...)

Beta / Re: 2.4 beta unicode problem
« on: July 27, 2020, 02:51:19 PM »
it is the same when you want to attach an external text file it can be in ANSI, UTF8 with or without BOM or UTF16, the result can give distorted characters. almost everything should be converted into a same single format

Bug reports / Re: Icons sometimes are hidden
« on: July 08, 2020, 04:16:12 PM »
in the same idea that we use a session cookie with a unique value to limit the connection time over time,
why not use a token system associated with the loaded web page generated to current user and generated for the current user (ident or  ip) and cached, whose value changes with each main page request or when a requested resource does not send the correct tocken
this token added to the headers orin url  would be used for any resource depending on it would not count these resources as additional connections

   <link rel="shortcut icon" href="/favicon.ico?token=%token%">
   <link rel="stylesheet" href="/?mode=section&id=style.css&token=%token%" type="text/css">
 <script type="text/javascript" src="/?mode=jquery&token=%token%"></script>

another solution would be to not count the connections for certain recurring resources which are cached in the browser, but only the main requests

it is always possible to reduce the number of requests by replacing the web links with their equivalent in sections, but this risks partially overloading the content of the pages.

   <link rel="stylesheet" href="/?mode=section&id=style.css" type="text/css">
replaced by

Français / Re: Problème avec Google Nest
« on: July 01, 2020, 06:26:22 PM »
est-ce que l'ip de ton pc est fixe ou attribuée dynamiquement par le dhcp, car elle devrait etre en 192.168.86.x

sous win 10  tu vas dans parametres > reseau et internet puis sur la page ouverte tu recherches la ligne  "modifier les options de l'adaptateur  , en cliquant dessus ca ouvre la liste des cartes réseaux,

sur celle qui est connectée clic droit  > Etat puis sur details

Français / Re: Problème avec Google Nest
« on: July 01, 2020, 05:53:28 PM »
non ca ne repond pas à ma question

 tu es sous quel systeme windows?

sur ton pc dans les propriétés réseaux il faut regarder l'état de la carte pour y trouver son ip locale sur le reseau

j'ai omis de poser une question importante:
quand ton pc est connecté sur le hub as tu un acces normal à internet avec le navigateur?

Français / Re: Problème avec Google Nest
« on: July 01, 2020, 04:14:54 PM »
enfin un peu de travail avec un compatriote  ;D

j'ai regardé ce qu'était ce NEST HUB pour pas poser des questions idiotes  ;)

tu pourrais faire un schéma du cablage avec tes différents appareils connectés box, cpl, nest, et ordi  (pas les autres) en les liant avec des lignes en indiquant aussi  les ip à chaque point de jonctions

ton reseau  box est en dhcp 192.198.1.x  donc  le NEST prend aussi  une ip similaire lorsque qu'il es connecté à la box ( le mieux est de lui affecter une ip statique ou un bail statique avec son adresse mac dans la config de la box,

  mais est-ce que le hub fournit aussi un dhcp pour les appareils qui se connectents dessus?? il ne faut pas dans ce cas que l'ip soit du meme type que la box mais par exemple en 192.168.2.x

voir la configuration du hub en mode pont

ensuite sur la config du nest établir des routages avec les mêmes ports en entrée et sortie du NEST

je conseille toujours de mettre le PC sur lequel est le serveur avec une ip fixe V4

desactiver l'utilisation de l'IP V6 pour maitriser la chaine de test

dans la situation précédente  le pc sera en  192.168.2.x masque , les dns et dans cet ordre

en cas de pc equipé à la fois en rj45 et wifi , il est possible de tester en wifi direct sur la box ou en rj45 par le hub en choisissant bien sur l'ip en fonction du point de connexion

pour tester l'acces à hfs il faut utiliser une tablette ou pc relié direct à la box et utiliser l'url  http://pc-HFS:port/ pour controler que la regle nat du hub est bonne

tu dis que t'utilise le cable du pc pour alimenter le hub, le cable va du hub direct à la box ou branché sur le cpl, s'il reste un port rj45 de libre sur la box te manque-til simplement un cable pour y brancher ton pc?

autre solution , l'utilisation d'un petit switch 10/100/1000 sur  le cable venant de la box et y brancher le hub et le pc  en rj45
 d'ou la necessité d'un bon shéma explicatif  ;)

à lire aussi

Programmers corner / Re: Encrypt password between client and server
« on: June 18, 2020, 01:19:22 AM »
Currently when we change our password, the password sent to client is not encrypted.
When we login, the password is dealt with sha256. But if hacker hijacked the result, he can still do things with correct ajax method.

So beside https, how to get the best effect of encryption between client and server?
I think, The message sent between client and server should be hard to deal.
And we should find a way, to send password/encryption-related message without/cannot fully seen by hacker.

Scripting command: Data manipulation maybe useful as there are some mathematical things.
Additionally, {.get account||password.} can get original password, {.sha256|A.} can make it undiscoverable, {.time|yyyymmddhhMMss.} can get a timestamp...

Anyone can share a bit suggestions? :)

look at this post

Beta / Re: 2.4 template-making guide
« on: June 18, 2020, 12:39:28 AM »
you are right, but there's a reason for it: i marked them public in case other templates want to use them by url

~ is a valid character for files, so introducing this feature was a debatable decision, i prefer to not extend it to folders.
it is also not necessary because you can use use ?mode=section with folders.

add attached file ( which contain "this is the file" ) to root of vfs

add this section in the tpl

this is a section

go to this url 

pay attention to the result: a recording is proposed, record in any directory and then examine the content

the file has priority over the section  whatever the chosen location.

among others:
"because we must  use use ?mode=section with folders", the name must appear in the url like all names starting with ajax.
but  all ajax sections can be made non-public for the benefit of a single section by using some changes

[ajax|public|no log]
{.check session.}

[ajax.mkdir|public|no log]

[ajax.rename|public|no log]

[ajax.move|public|no log]

[ajax.comment|public|no log]

[ajax.changepwd|public|no log]

function ajax(method, data, cb) {
    if (!data)
        data = {};
    data.method = method;   
    data.token = HFS.sid; // avoid CSRF attacks
    // calling this section 'under' the current folder will affect permissions commands like {.get|can delete.}
   return $.post("?mode=section&id=ajax", data).then(function(){
        if (cb)
    }, ajaxError);

also added an example of a new method for changing the password, including the need for the old password and confirmation of the new one to validate the action, naturally the old password is encrypted when sent and compared by hfs to validate the new one.
it is not possible to use complex encryption for the new one but it does not appear in plain text when sent

the big advantage is that it avoids accidentally changing the current password
moving the mouse over the eyes to the right of the input fields allows you to view their content

Beta / Re: 2.4 template-making guide
« on: June 17, 2020, 05:49:27 PM »
some sections do not need to be with public attribute because they are already included by a macro call in a public section ~style.css, ~lib.js

[icons.css|public|no log|cache]  --> {.$icons.css.}
[normalize.css|public|no log|cache]  --> {.$normalize.css.}
[sha256.js|public]  --> {.$sha256.js.}

another thing needs probably to be extended

public sections are called mainly with the reference / ~ sectionname, however in a diff template this type of section may have to be completely redefined.
Due to the inheritance principle this section is available from anywhere in the vfs using the macro {.section | sectionname.} But should also be available by adding ~ sectionname to the url of any folder element vfs as example

Pages: 1 2 3 ... 130