>
> 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 nee
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
> 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
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 f
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?
Regard
> 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
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
Actually I found my answer just now after asking a friend who is a debian
user.
Turns out debian documents the pseudocode for their method in the manpages.
So I am just busy translating the pseudo to pascal now.
1. take any initial string of non-digits from each, remove, and compare
ASCIIbetica
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 * 1
> 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
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 worked,
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
I will be out of the office starting 06/02/2006 and will not return until
06/05/2006.
I will respond to your message when I return.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
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 i
14 matches
Mail list logo