Re: [fpc-pascal] Daemon doesn't work right at boottime.

2006-06-02 Thread Geno Roupsky
Well one difference between running the init script from shell and during boot is the environment. Are you using some shell commands or something else for let say GetDirList, because during boot the path variable is not initialized as it is when you are in shell (actually I think it is empty) and

[fpc-pascal] Re: a suggestion...

2006-06-02 Thread Jeff Pohlmeyer
My totally un-scientific test says that for the current fpc-2.0.2.i386-linux.tar archive, using bzip2 instead of gzip, it would take about one minute longer to create the archive, and shave about 4 MB off the size. That would cut about 15 minutes off the download time for most 56k dial-up users.

Re: [fpc-pascal] Comparing version numbers

2006-06-02 Thread Marco van de Voort
I have tried about a dozen different algorithms now, and I admit to being stumped because everyone I've tried fails SOMEWHERE. The task before me is to compare version numbers of software packages and determine which is higher. First try was to simply do a string comparison. This almost

Re: [fpc-pascal] Comparing version numbers

2006-06-02 Thread Vincent Snijders
A.J. Venter wrote: So the question is: 1) does somebody HAVE an algorithm for this already ? 2) If not, can somebody give me a hint about what approach to take ? Split the version string in several numbers: version := '4.0.12'; major := 4 minor := 0; patch := 12; versionnumber := major *

Re: [fpc-pascal] Comparing version numbers

2006-06-02 Thread Eduardo
At 23:03 02/06/2006, you wrote: I have tried about a dozen different algorithms now, and I admit to being stumped because everyone I've tried fails SOMEWHERE. The task before me is to compare version numbers of software packages and determine which is higher. First try was to simply do a string

Re: [fpc-pascal] Comparing version numbers

2006-06-02 Thread A.J. Venter
Simple, just a variation of your first try. Use ASCII comparation, but all parts must have the same digits, in your case, you padd the 3rd part (or any part) with any letter down the ascii code of 0, for example ' ' (a space) This was a brilliant idea as far as I can see. MUCH simpler than

[fpc-pascal] Limit concurrent connections to Firebird DB

2006-06-02 Thread Graeme Geldenhuys
Hi, Anybody know how I can limit concurrent connections to a Firebird DB via a FPC/Lazarus application. I am currently using FBLib as my database component, but info on any sql component will do. Interbase used to have a Licensing API build into the database. Did Firebird inherit that?

Re: [fpc-pascal] Comparing version numbers

2006-06-02 Thread Eduardo
At 01:41 03/06/2006, you wrote: Simple, just a variation of your first try. Use ASCII comparation, but all parts must have the same digits, in your case, you padd the 3rd part (or any part) with any letter down the ascii code of 0, for example ' ' (a space) This was a brilliant idea as far

Re: [fpc-pascal] Comparing version numbers

2006-06-02 Thread A.J. Venter
Your code can't work with these ones, 4.1.15 and 4.12.1 because you only pad the 3rd (15 and 1), you need to pad each part of the version, my pseudocode out 4.1[space].15 and 4.12.1[space]. You can call your function with the 4,4; again with 12,1 utnil you get a result but you need a

Re: [fpc-pascal] Comparing version numbers

2006-06-02 Thread Felipe Monteiro de Carvalho
On 6/2/06, Vincent Snijders [EMAIL PROTECTED] wrote: Split the version string in several numbers: version := '4.0.12'; major := 4 minor := 0; patch := 12; I think this is the winner solution. But you don´t have to do this: versionnumber := major * 1 + minor * 100 + patch It´s better

Re: [fpc-pascal] Comparing version numbers

2006-06-02 Thread A.J. Venter
Your code can't work with these ones, 4.1.15 and 4.12.1 because you only pad the 3rd (15 and 1), you need to pad each part of the version, my pseudocode out 4.1[space].15 and 4.12.1[space]. You can call your function with the 4,4; again with 12,1 utnil you get a result but you need a