FileZilla 3 development diary

Moderator: Project members

Message
Author
User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

#286 Post by botg » 2004-12-14 14:57

The queue now gets saved and reloaded. The inter process mutex class is making progress, already works on Windows and now I'm writing the Linux version.

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

#287 Post by botg » 2004-12-14 17:14

After two hours googling for an interprocess mutex on linux I finally found out that lockfiles are the thing I want. But why has it to be so complex? Windows has an idiot proof interprocess mutex, but on better operating system I've to use ancient lockfiles.
I wonder if there's a book "Linux/Unix programming for expert open source Windows developers" :D I know all concepts but just don't know how to use them under Linux.

AlmightyMaximus
450 Internal Error
Posts: 39
Joined: 2004-08-18 15:53

#288 Post by AlmightyMaximus » 2004-12-14 18:23

botg wrote:"Linux/Unix programming for expert open source Windows developers" :D I know all concepts but just don't know how to use them under Linux.
I think that's the paradox all developers face when coding in a new envirorment (OS or language)... "I know how to do this in abc language, but why is this so hard in def language?"

For example, I know instantly how to alter the page-instance of server variables in PHP, but a friend of mine trying to figure out the same thing in ASP is daunting.

It's just the fate you've choosen as a programmer ;)

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

#289 Post by botg » 2004-12-14 20:04

Good news, xml file locking now works under Linux and hopefully all other Unix(-like) systems as well. And if not, adding support for other systems should be easy.

kieran776
504 Command not implemented
Posts: 6
Joined: 2004-12-07 02:00

#290 Post by kieran776 » 2004-12-15 19:31

botg, im really glad you havn't abandoned this project even though your life is not as free as you probably hope. I know many projects (not FTP though) that get abandoned because the creator's life became too busy. And Im glad you havn't because this FTP is really great. I used it on windows and it worked perfectly, and now I have switched to mandrake linux, I now need to figure out how to compile it. (downloading wxWidgets and libidn now :) )

wxWidgets: I have a program called wxGTK installed. Is this the same thing but a linux name?? Need to know urgently so I can download the right pack for it.

The project is progressing along quite nicely. But do you think you could do an upload of all changes you make like every friday or something to the Change log?? I like to read them, and it hasn't been updated for a while.

Moving on........... the project is great and I cant really give any suggestions until I see screenshots of the new version. Got any to share?? I do like the suggestions that alimalik gave. It gives it even more of a professional look :)

Anyway, let me know about wxWidgets and if its the same as wxGTK that I can download on the site.
kieran776

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

#291 Post by botg » 2004-12-15 23:00

wxWidgets consists of many ports for the different platforms it supports. wxGTK is just one of them, you should be able to use it for FZ3.
However, I'm fixing some bugs in wxWidgets, so versions older than current CVS HEAD of wxWidgets may not work with FZ3.

kieran776
504 Command not implemented
Posts: 6
Joined: 2004-12-07 02:00

#292 Post by kieran776 » 2004-12-16 04:06

ok, well, I'll wait till FZ3 comes out before upgrading then. Any ETA or SDL??
kieran776

alimalik
504 Command not implemented
Posts: 8
Joined: 2004-12-08 17:21

#293 Post by alimalik » 2004-12-16 20:56

Hi botg,
Could you also ad a "cut" and "paste" item to the context menu. It would make shifting files from directories very easy.
thanks

Flyen
504 Command not implemented
Posts: 8
Joined: 2004-09-04 17:45

#294 Post by Flyen » 2004-12-18 10:05

botg wrote:After two hours googling for an interprocess mutex on linux I finally found out that lockfiles are the thing I want. But why has it to be so complex? Windows has an idiot proof interprocess mutex, but on better operating system I've to use ancient lockfiles.
I wonder if there's a book "Linux/Unix programming for expert open source Windows developers" :D I know all concepts but just don't know how to use them under Linux.
From http://www.meta.net.nz/~daniel/index.php?p=15:
Futex implements the POSIX synchronisation primatives, and provides both intra- and inter-process synchronisation.

Is that what you were looking for? It's only in the 2.6 kernels, but 2.4 is in the past anyway :)

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

#295 Post by botg » 2004-12-18 11:42

Thx Flyen, though that's not exactly what I wanted, either. Take a look at the FZ3 source (especially ipcmutex.h/cpp, file locks provide exactly what I need.

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

#296 Post by botg » 2004-12-18 19:17

Some progress: Downloading directories now works, though in case of connection errors, FZ3 might stall. Should not be that difficult to fix.
If everything goes well, I might release a working alpha version by the end of the year which has all mandatory features required for a FTP client.

uniQ

#297 Post by uniQ » 2004-12-18 21:57

Now, why, did you change the installer/uninstaller icos for FZ3?

Thanx, it's a great app.

-uniQ

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

#298 Post by botg » 2004-12-20 00:16

FZ3 is making good progress, I can now delete files on the server.
Now I'll have to focus on the automatic file list refresh, so that transferred or removed files will also (dis)appear in the file list.

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

#299 Post by botg » 2004-12-24 11:12

I had to work around an interesting problem: The resolution of the time class in wxWidgets is not high enough, so wxDateTime::Now() can return the same time if called multiple times in a row. This did cause problem with the cache based file list updates.
To solve this, I wrote a small class which has two variables: A wxDateTime instance and an offset integer. Whenever I call Now() for my class, the time object is updated and if it matches the previous value, offset is increased, else offset is reset to 0.
That way, each time Now() is called, a different value is returned.

Enlightenment
500 Command not understood
Posts: 5
Joined: 2004-08-23 22:46
Location: The Netherlands

#300 Post by Enlightenment » 2004-12-26 07:56

Sounds like a similar problem i had with unique SQL values: the datetime/timestamp doesnt always generate a unique date. It's accurate to the second, but if you press F5 lots it will generate more than 1 pageview per second, which will cause an SQL error because the table column field is not unique anymore. ;)

Merry X-mas everyone! :)

Post Reply