be made.
In fact, Inoussa Ouedraogo (hope I spelled that correct) made a complete SDO
implementation in FPC which should be powerful enough to able to handle this.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.free
On Wed, 27 Jul 2011, Sven Barth wrote:
On 27.07.2011 19:24, Michael Van Canneyt wrote:
On Wed, 27 Jul 2011, Sven Barth wrote:
On 27.07.2011 14:05, michael.vancann...@wisa.be wrote:
On Wed, 27 Jul 2011, Ludo Brands wrote:
2. Atom feeds as used by Google.
Feel free to take a shot at
emCounter].Field.Size)));
end;
Is dead wrong. It passes on 32-bit (but generating wrong data),
but fails to compile on 64-bit.
The compiler has a warning for this, so checking your warnings while
compiling for 32-bit may also be a good idea.
Michael.
.
I added your implementation to SVN.
Thanks, Michael.
I noticed your remark on a failing conversion of a longint to a string -
that code wouldn't have worked. Obviously a priority to increase the
test coverage.
But you may want to check your implementation on 64-bit prior to
submittin
know. Adding '>' to AttrSpecialChars seems to be a
save solution. Another issue in bugtracker?
Yes, and please assign it to sergei gorelkin.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
represented using the string " > ", and
MUST, for
compatibility, be escaped using either " > " or a character reference when it appears
in the string " ]]> " in content, when that string is not marking the end of a CDATA section.
So replacing >
entation
is actually overriding this.
Not in FPC, but in Delphi, IBX for instance overrides it.
Maybe mseide does it too.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
?
Probably, yes.
Someone in the core team with access to Sourceforge should probably upload
it.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
routines is to be able to export data without too
much dependencies.
Which does not mean that the opposite direction (importing data from a
dataset into a spreadsheet) is not useful in it's own right, far from it.
Michael.
___
fpc-pascal maillist -
x27;s not really possible for ODS. You will need to at least add a
dependency to paszlib and possibly to a xml library too.
Well, the exports are already dependent on fcl-XML.
So adding paszlib is not really a heavy burden...
Michael.
___
fpc-pascal mai
ted in the code
and documentation?
No.
The idea is that TMemDataset becomes a descendent of TBufDataset.
It has some methods that make operation more simple.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.o
this is not 100% correct.
It is extremely easy to create a corrupt backup in firebird.
Just add a required field to any table with data, create the backup.
This backup cannot be restored.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.free
),
What can be wrong with the code below?
I assume threads are used for these timers.
If so, then this is normal, signal USR1 is used
by the linux threading mechanism, if I remember correctly.
Michael.
___
fpc-pascal maillist - fpc-pascal
x27;t matter on which platform you're accessing a
database, so we should treat both #13#10 and #10 equally, so I'd choose
option 3.
Your thoughts?
Make it a property of the converter.
Michael.
___
fpc-pascal maillist - fpc-pascal@
On Mon, 15 Aug 2011, Reinier Olislagers wrote:
On 15-8-2011 11:44, Reinier Olislagers wrote:
On 15-8-2011 11:25, Michael Van Canneyt wrote:
I created a dataset with 2 fields. A ftString field with size 33, and a
ftWideString field with size 44.
Based on the following output from SaveToFile
out?
You can't inline virtual methods, since you don't know which method will be
called at runtime.
I suspect C++ simply ignores the directive in the case of a virtual method.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists
Hello,
WriteLn(FloatToStr(100 / 0));
This code prints on the screen "+Inf", but I think it should be "NaN".
Is this a bug or a special case in computer arithmetic?
thx
Michael
___
fpc-pascal maillist - fpc-pascal@lists
read only the german part of wikipedia.
Shame on me.
Michael
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
lipper DBF tables, Microsoft FoxPro DBF tables, and
dBASE III+ DBF tables:
may only contain the letters ‘a’-‘z’ and ‘A’-‘Z’, digits ‘0’-‘9’, and
the underscore ‘_’ character
Presumably the CheckExportFieldNames could be amended for that, too, right?
Presumably, yes
way):
If FormatSettings.AutoRenameFields and (FormatSettings.TableFormat in
[tfDbaseIII,tfDbaseIV,FoxPro]) then
CheckExportFieldNames;
Presumably, yes.
Michael.
Uploaded a patch, issue 20134
http://bugs.freepascal.org/view.php?id=20134
I think I've also found the solution to
http://bugs.freepascal.
, I don't even know what it's for or where it comes from)
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
ot used in FPC.
(in fact, I don't even know what it's for or where it comes from)
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
http://docs.embarcadero.com/p
even know what it's for or where it comes from)
Michael.
http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/DB_TField_AttributeSet.html
In short, Delphi also no longer uses it, as TTable and TQuery are BDE
components and they are depr
a type is being created.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
uld be one that
fails with 'operation not permitted'. (assuming your program exits straight
away after the failed command)
This way you'll know the actual cause of the failure.
Michael.
___
fpc-pascal maillist - fpc-pascal@
n't offer the commands to exexuteprocess in a
separated matter.
Try
Status:=ExecuteProcess('/path/to/oggenc',['-Q','--output="outputfile.org"','tempfile.wav']);
You must remove the quotes around 'outp
ile.wav']);
While better, this is afaik not required per se, the executing binary can
strip them also while doing cmdline parsing. It doesn't matter for
executeprocess.
In general, you can't expect that from the executing binary.
It's safe to assume that most d
Am Tuesday 13 September 2011 14:05:52 schrieb Mattias Gaertner:
> Hi,
>
> I'm searching some pascal code for file monitoring for Linux. That means
> getting notified if a file in a directory or its sub directories was
> modified.
> I found some hints that people started it, but I can't find the res
test for fcl-db
20268 [Patch] CSV export: new test for fcl-db
20163 [Patch] Dbase export: new test for fcl-db
(reopened, contains fixes suggested by Michael Van Canneyt)
They're all set up in a similar way: create a bufdataset with all the
field types I can cram in, fill them wit
pt up on us faster than we imagined)
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
tions, and left the existing
functions intact. The way it is now, we'd force everyone to use UTF-8.
I'll see if I can modify the patch.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
I've been trying to link to an external DLL which is unfortunately
compiled using MSVC in C++ mode. The functions itself do not use any C++
features, they are just not declared as extern "C" and thus use name mangling.
With MSVC name mangling, each symbol starts with a '?' character, which
seems t
hould at least get a documentation line somewhere.
Thanks,
Michael
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Am 10.10.2011 21:01 schrieb Sven Barth:
> So could you report one, so it's not forgotten?
Done: http://bugs.freepascal.org/view.php?id=20456
Michael
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org
read. Of course it would be nice to have
anonymous functions or even lambdas (think about integrated languages
like LinQ). But maybe Pascals strength of easy readable code gets lost.
Michael
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
son why
anonymous methods should differ here.
Allow both, like it is already allowed in Pascal:
if True then DoSomething;
if True then begin
DoSomething;
DoSomethingMore;
Etc;
end;
If a function only contains one statement it is
uld only work with HTTP as the transport layer.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
nage with FPC.
If you do, then I'd be very interested in hearing about your progress.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
the support is ready, but not widely advertized, because
lazarus lacks binary package support.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
JSON readability and the small size of
binary format.
That's exactly what we do also.
But in the case of large packages (we have datasets of 30.000 records),
the JSON is really slow.
The browser chokes already on a dataset of 3000 records, when using ExtJS =-)
Michael._
a
function and passing it with a reference to this function.
Sometimes I miss them in FPC, but I am also not sure if this feature
destroys the beauty of Pascal.
Not easy.
Michael
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.
ntirely ANSI or functions must
start with ANSI?
To my knowledge FPC does not support non-ascii identifiers ?
Only a-z, 0-9 and _ are allowed.
Michael.___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Martin Schreibers' implementation.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
s the indexes. It's just an additional index routine.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Am 22.10.2011 um 09:08 schrieb Frank Church:
>
>
> On 22 October 2011 07:20, Felipe Monteiro de Carvalho
> wrote:
> I understand Assigned as being the same as <> nil, so Assigned(Object)
> = Object <> nil
>
> I vaguely remember that it could be safer in some corner case, but I
> don't rememb
.
By reading the just created record, see my reply from yesterday.
If the table uses a sequence, first get the new sequence value, and then do
the insert with the generated value.
Didn't you get a copy of the Lazarus book ? There is a whole chapter on
database programming with Lazarus. Al
it's impossible to retrieve the sequence value after the
insert except by re-reading the record.
I don't know which mechanism postgresql follows.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal
=(
Use a TSQLQuery with SQL "select scope_identity() as theid" and read field 0.
I repeat, do not use ExecuteDirect.
Michael.___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
connection is the one for table 2, but you
need/expect the last id for table 1 :-)
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
were introduced in 5.0.2.
SQLServer's SCOPE_IDENTITY() returns table 1 (the trigger is out of scope)
and @@IDENTITY returns 2.
This mess is why I prefer sequences :-)
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://
fact they are not sequential by design.
You just discarded most Microsoft product designs =-)
They use GUIDs all over the place :-)
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc
n the need arises. I can't hear them doing that with a GUID :-)
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
ion, there is
precious little to support as it will in general be client code that
generates the GUID (unless I am much mistaken in what is common
practise) ?
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.free
field values anyway? (Unless you
primary keys are part of the data display in the UI I guess).
They don't see them as a matter of course.
But often the only way to correctly identify a record is the primary key.
And then it helps if this is an integer, not a GUID.
code block.
I don't know about you, but I have serious trouble reading the above
monstrosity.
It looks like you forgot the closing ) for the queue call.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
o
we can put that to rest.
Please note that I didn't question their use, just the syntax :)
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
7;t be
found, apparently an Excel reader library required by spatialite...
I'm going to ask the spatialite guys for clarification on this...
I'll upload the diff as a patch unless somebody has objections/a better
implementation...
Uploading the diff should be fine.
Michael.
them. Lazarus has tons of code that uses them.
There is no way that we're going to rewrite all that stuff.
So: yes, even if only for backwards compatibility.
Nothing stops people from not using it, and use generics instead, if they
are so inclined.
it. It has support for writing data packages
and deltas (even in XML, I think).
It has no support for transporting these packages. That can be done using
WST.
Or, you can use Data Abstract from RemObjects (a commercial product), which
works with FPC and Delphi alike
he expense of copying the whole TCollection code each time you create a
specialized descendent.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
a commercial project to implement
full-text-search on a firebird database. And it works with any FPC supported
database as storage.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
impressed :-)
(considering their question was 'we want to do like google search but
on the database')
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
eld2').Value:='Value2';
This should be:
MyTable.Append;
MyTable.FieldByname('Field1').AsString:='Value1';
MyTable.FieldByname('Field2').AsString:='Value2';
MyTable.Post;
MyTable.Applyupdates;
Michael.
t I'd like to use the
powerful lazutils package.
A dependency on the LCL TCanvas means that fpVectorial will not be
usable in a CGI (or web) environment.
Can you tell me what is missing in TFPCustomCanvas, so we can add it ?
Michael.
___
fpc-pasca
es"
feature?
It does not support this.
I am working on it, but I need to refactor a large part of the parser.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
On Tue, 15 Nov 2011, Graeme Geldenhuys wrote:
Hi,
What exactly is the difference (if any) between the parameter modifier
when you pass a class instance to a procedure?
It behaves exactly the same as if you would pass a typed pointer.
Michael
th/to/database
in your databasename.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
sumes a "shortstring" (by this I mean the compiler internal's idea of
"shortstring").
The definition of 'Shortstring' as shown above is just an aid, for Delphi
compatibility.
Michael.
___
fpc-pascal maillist - fpc-pas
On Wed, 16 Nov 2011, Stephane Carre wrote:
Hello Michael,
In the current stable release (fpc 2.4.4) the unit tests for fpjsonrtti fail
to compile because unit testcomps is missing.
I believe this is the unit with the test classes used for the destreamer
tests.
Where can I find this unit
it
in the official docs unless all identifiers in the unit
have been documented.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
it always for the initial file ? Given the proper parameters, it
creates a very usable initial file ?
Michael.___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
ments for which no tag was found.
So as far as I could see, none of the issues you quoted are with makeskel ?
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
iables are specified on startup, and are then immutable.
If you want to specify the environment for a process, you must do it at the
start.
Michael.___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
nctDelimiter property to true, in which case the space loses
its special meaning.
I recommend the second.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
ou should either enclose values with spaces in quotes, or set the
StrinctDelimiter property to true, in which case the space loses its special
meaning.
Typo, should be StrictDelimiter, of course.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
viour based on documented behaviour, not implementation behaviour?
Sure. See the 'CommaText' help.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
here to discuss the merits/disadvantages of the Delphi docs :-)
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
tl/classes/tstrings.delimitedtext.html
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
occurrences.
Michael.
On Mon, 21 Nov 2011, Dimitrios Chr. Ioannidis wrote:
Hi all,
i wanted to check the combined demo so i set it up to my server at
http://demo.artesoft.gr/combined .
As i'm newbie to javascript can someone check to see why doesn't work with IE
? With Firef
search for a , in front of } and ] and remove it.
Thx. I fixed the script and it worked.
Did you need to do additional fixes beyond the ones I did ?
Michael.___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org
.
Correct.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
u can make such a function that
returns the name when debug info is included in the binary.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
rs.
Obviously.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
identifiers in scope to strings (such as functions
names etc.)
But what is the use ? As far as I can see, it forces you to type more.
Typing
VarName:=nameofvar( counter );
is more work than
VarName:='counter';
So what's the point ?
Michael.
e, this is
different.
in TSQLConnector you say Type = 'IBConnection' (or something like it)
and then it searches in the list of registered types for the type it must
create, and creates it.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists
unter)
No, if I was to program it using varname, I would get the name of the parameter
in the function SendInteger.
You need the address of the variable that was passed to SendInteger.
Obviously, there is no way the compiler can know that.
Michael.
___
done with
search&replace, option whole word, so the text 'counter' should get changed
as well.
The name of a variable is of absolutely no use to the end user.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
e work than
VarName:='counter';
So what's the point ?
Compiler check of the name as Sven also mentioned. This check is very
important.
And as I answered, I can't possibly imagine why this would matter in the least.
Michael.
__
ther than something to do with connection pooling etc.
The end result is that you can write a database-independent program, add
run-time configuration and some drivers and let the client choose the
database server, right?
Exactly.
Michael.
___
fpc-
And since that's all you want the function for, I
consider the use totally marginal...
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
ooks up the name in the debug info.
But hey, if someone wants to implement this, why not. There are other things
in FPC of which I personally do not see the added value...
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
support classes.
That will simply not be possible. The C# class model is fundamentally
different from FPC's. Even the reverse (using C# classes from FPC) is
hardly possible (although crosstalk from atozed software does a good
effort in Delphi).
Mi
can be owned by the server component itself.
If you want still to have a "main program", you should use a thread and
create the component in the thread. Which is exactly what happens in a
service application, the intended environment for the component.
Michael.__
.Active:=False;
or implement
Procedure TMyServerThread.StopServer;
begin
MyServer.Active:=False;
end;
and call
MyServerThread.StopServer;
Since this will happen from another thread or from a request handler,
you can do this without problem.
Michael.
__
n
Active:=True
- Or the server must be made non-blocking and then you need to run an event
loop.
Either way is a significant architectural change.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman
.cgi extension, but that
depends on your webserver setup.
Now, how do i call the dispatcher handler ? I tried to change the uri like
this
You should append the module. I would think the URL is:
http://localhost/cgi-bin/demo.cgi/echo/dispatch
Michael.
_
more so
than Delphi, probably.
Jonas Maebe implemented it, I think, he can probably shed some more light on
this.
Michael.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
e hit, but I
understand that the FPC implementation is different. Does FPC have a
faster (comparable to Delphi) version of Random() too?
@Michael,
Should the FPC docs maybe mention the fact that the FPC version is
considerably slower that Delphi (with an explanation why of course) -
purely fo
// No content-length, so we read till no more data available.
Repeat
R:=Transfer(ReadBufLen);
until (R=0);
Is there a remedy?
Can you check what happens with strace?
It means that the server didn't send a 'content-length' header, which is
strange in itself.
Michae
strace?
It means that the server didn't send a 'content-length' header, which is
strange in itself.
Yes, it does not send the Content-Length.
The comment is right.
If I skip the repeat loop, it works, but I don't get the response.
The response is a small xml snippet.
Wha
401 - 500 of 3679 matches
Mail list logo