FileZilla 3 development diary
Moderator: Project members
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" I know all concepts but just don't know how to use them under Linux.
I wonder if there's a book "Linux/Unix programming for expert open source Windows developers" I know all concepts but just don't know how to use them under Linux.
-
- 450 Internal Error
- Posts: 39
- Joined: 2004-08-18 15:53
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?"botg wrote:"Linux/Unix programming for expert open source Windows developers" I know all concepts but just don't know how to use them under Linux.
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
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.
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
From http://www.meta.net.nz/~daniel/index.php?p=15: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" I know all concepts but just don't know how to use them under Linux.
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
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.
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.
-
- 500 Command not understood
- Posts: 5
- Joined: 2004-08-23 22:46
- Location: The Netherlands
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!
Merry X-mas everyone!