Re: [fpc-pascal] FPImage and WebP support

2011-08-01 Thread Michael Van Canneyt
On Mon, 1 Aug 2011, Graeme Geldenhuys wrote: Hi, Has anybody started work on supporting WebP image format for FPImage? http://code.google.com/speed/webp/ Not yet. But it looks very interesting. Michael. ___ fpc-pascal maillist -

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Michael Van Canneyt
On Mon, 1 Aug 2011, Felipe Monteiro de Carvalho wrote: Hello, This is kind of a theorical question, but I though I'd ask before starting to code =) Basically I have a desktop app which I need to retrofit into a web-app. My idea is to cut it in a visual and a non-visual part and implement

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Michael Van Canneyt
On Mon, 1 Aug 2011, Andrew Brunner wrote: On Mon, Aug 1, 2011 at 10:43 AM, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: On Mon, Aug 1, 2011 at 5:23 PM, Andrew Brunner andrew.t.brun...@gmail.com wrote: I agree with this one.  The only thing I could add would be AJAX

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Michael Van Canneyt
On Mon, 1 Aug 2011, Andrew Brunner wrote: On Mon, Aug 1, 2011 at 12:05 PM, Michael Van Canneyt mich...@freepascal.org wrote: ..But it is not always supported by the browser (as Marco indicated) and many firewalls simply don't agree with websockets. Can firewalls detect websockets over

Re: [fpc-pascal] Is there a way to create a Firebird embedded database programmatically?

2011-08-03 Thread Michael Van Canneyt
On Wed, 3 Aug 2011, Reinier Olislagers wrote: When using the Firebird embedded database, it's nice to be able to create the database using only FreePascal/Lazarus. Why do you think this is not possible ? The CreateDB method of TIBConnection does exactly that. I've been using it for years.

Re: [fpc-pascal] Is there a way to create a Firebird embedded database programmatically?

2011-08-03 Thread Michael Van Canneyt
On Wed, 3 Aug 2011, Tony Whyman wrote: Michael, I will concede that backup/restore is vulnerable to rubbish in/rubbish out errors. But then if you don't test your backup before distribution Yes, of course. We have checklists and procedures for that when we do updates :-) I just

Re: [fpc-pascal] Is there a way to create a Firebird embedded database programmatically?

2011-08-03 Thread Michael Van Canneyt
On Wed, 3 Aug 2011, Tony Whyman wrote: I understand now what you are doing and would agree that for a simple demo, you really do want to create the DB in code. I am thinking more about distributing and supporting a fully supported application. Interesting that I seemed to get so much

Re: [fpc-pascal] FreeVision usable in a client/server database application?

2011-08-03 Thread Michael Van Canneyt
On Wed, 3 Aug 2011, Reinier Olislagers wrote: Hi list, I'm looking into converting a half-finished small timekeeping/billing application of mine from .Net to Lazarus/Freepascal. It runs on SQL Server 2008. I'm thinking about trying to separate out the database layer (using something like

Re: [fpc-pascal] Patch: new XML export for FCL-DB ready for inclusion, issue 19790 - includes Delphi Clientdataset

2011-08-15 Thread Michael Van Canneyt
On Mon, 15 Aug 2011, Reinier Olislagers wrote: On 28-7-2011 9:24, michael.vancann...@wisa.be wrote: On Thu, 28 Jul 2011, Reinier Olislagers wrote: On 27-7-2011 20:52, michael.vancann...@wisa.be wrote: Code like ftWideString: //fixed length or at least max length string begin

Re: [fpc-pascal] Redirecting heap trace output to stdout

2011-08-17 Thread Michael Van Canneyt
On Thu, 18 Aug 2011, Graeme Geldenhuys wrote: On 17 August 2011 19:13, Jonas Maebe wrote: assign(stderr,'somefile'); rewrite(stderr); I think you might be able to use the heaptrc environment variable for that as well. Not 100% sure if it will work in the case of a web app, but I can't see

Re: [fpc-pascal] DBF Field name length and fpdbfexport

2011-09-05 Thread Michael Van Canneyt
On Mon, 5 Sep 2011, Reinier Olislagers wrote: On 2-9-2011 14:38, Reinier Olislagers wrote: I think I've also found the solution to http://bugs.freepascal.org/view.php?id=20069 (patch attached), so if somebody would be so kind to review apply them, I'd be very happy. Turns out the dbf

Re: [fpc-pascal] DBF Field name length and fpdbfexport

2011-09-06 Thread Michael Van Canneyt
On Tue, 6 Sep 2011, Reinier Olislagers wrote: On 5-9-2011 23:20, Michael Van Canneyt wrote: On Mon, 5 Sep 2011, Reinier Olislagers wrote: Turns out the dbf export code needs at least another patch. DBF export missed support for ftfloat and other field types. Issue + patch at http

Re: [fpc-pascal] SIGPIPE avoid or catch

2011-09-27 Thread Michael Van Canneyt
On Tue, 27 Sep 2011, Mattias Gaertner wrote: Hi all, When I start under Linux a process with TProcess [poUsePipes], write stuff to Input and the process exits I get a SIGPIPE (broken pipe), which kills my whole program immediately. How can I catch or avoid the SIGPIPE with TProcess? Just

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Michael Van Canneyt
On Fri, 14 Oct 2011, Andrew Pennebaker wrote: Yeah, I know to chmod my scripts before dot-slashing them. It's just that fpc can't handle shebangs, and I don't want to have to choose either scripting or compiled. I like my Pascal code to be work in either mode. It's always compiled.

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-16 Thread Michael Van Canneyt
On Sun, 16 Oct 2011, Jonas Maebe wrote: On 16 Oct 2011, at 11:42, Jürgen Hestermann wrote: But hiding away the compilation step from the user does not turn a compiler language into an interpreter language. There is no benefit in doing so. You can simply compile your programs and then use

Re: [fpc-pascal] fpweb and reading the contents of a request

2011-10-17 Thread Michael Van Canneyt
On Mon, 17 Oct 2011, Felipe Monteiro de Carvalho wrote: Hello, I am trying to send data from javascript and read data back from my cgi module with this: SendSyncRequest = function(RequestURL, RequestContent) { var request = new XMLHttpRequest(); request.open('GET', RequestURL,

Re: [fpc-pascal] fpweb and reading the contents of a request

2011-10-17 Thread Michael Van Canneyt
On Mon, 17 Oct 2011, Felipe Monteiro de Carvalho wrote: On Mon, Oct 17, 2011 at 3:55 PM, Michael Van Canneyt mich...@freepascal.org wrote: As far as I know, this will always be empty, for the simple reason that the request is executed asynchronously. You must attach a callback which

Re: [fpc-pascal] fpweb and reading the contents of a request

2011-10-17 Thread Michael Van Canneyt
On Mon, 17 Oct 2011, Felipe Monteiro de Carvalho wrote: On Mon, Oct 17, 2011 at 4:01 PM, Michael Van Canneyt mich...@freepascal.org wrote: ? AFAIK xhttprequest is never synchronous... It is synchronous if the third parameter of open is set to false: http://www.w3.org/TR/XMLHttpRequest

Re: [fpc-pascal] fpweb and reading the contents of a request

2011-10-17 Thread Michael Van Canneyt
On Mon, 17 Oct 2011, Felipe Monteiro de Carvalho wrote: On Mon, Oct 17, 2011 at 4:11 PM, Michael Van Canneyt mich...@freepascal.org wrote: Ehm. I think that the problem is elsewhere. Content is only accepted with the POST method. Why? Is this a limitation from HTTP? Yes. If I change

Re: [fpc-pascal] fpweb and reading the contents of a request

2011-10-17 Thread Michael Van Canneyt
On Mon, 17 Oct 2011, Felipe Monteiro de Carvalho wrote: On Mon, Oct 17, 2011 at 4:33 PM, Michael Van Canneyt mich...@freepascal.org wrote: Yes. I see ... simply encoding the data differently from what I originally wanted and feeding it to a GET field worked fine. Also a solution

Re: [fpc-pascal] fpweb and custom debug log

2011-10-17 Thread Michael Van Canneyt
On Mon, 17 Oct 2011, Felipe Monteiro de Carvalho wrote: Hello, I see that when my CGI raises an exception we get a nice error message with a stack trace as a response. Is it possible to put some logging messages into this error response too? With some custom coding, it should be possible,

Re: [fpc-pascal] Reopen issue 20500: TSQLParser cant Parse Statements containing as

2011-10-17 Thread Michael Van Canneyt
On Mon, 17 Oct 2011, Reinier Olislagers wrote: The issue reporter gave this example: select ORDERNO as OrderNo from ORDERS as Orders; It does parse AS, but only for a field. Michael Van Canneyt replied: TSQLParser implements SQL syntax as used in Firebird, and firebird does not allow

Re: [fpc-pascal] CGI under Freepascal

2011-10-18 Thread Michael Van Canneyt
On Tue, 18 Oct 2011, Luciano de Souza wrote: Hello listers, I am trying to use CGI with Pascal. I don't have background in web development, but principles of CGI seems to be simple. [snip] The variety of projects under Freepascal is so big that I will be not surprised with other

Re: [fpc-pascal] Getting Hardware information in Linux

2011-10-18 Thread Michael Van Canneyt
On Tue, 18 Oct 2011, ik wrote: Hello list, I'm trying to figure out how to get hardware information about the machine i'm running at in Linux OS. For example: hard-drive size, manufacture etc... BIOS information, screen information (regardless of X, that is the hardware itself), cards that

Re: RE : [fpc-pascal] sqldb how to find a record fast with primary key

2011-10-21 Thread Michael Van Canneyt
On Fri, 21 Oct 2011, Felipe Monteiro de Carvalho wrote: On Fri, Oct 21, 2011 at 5:22 PM, Ludo Brands ludo.bra...@free.fr wrote: You can use indices and locate with TSQLQuery as follows:  SQLQuery1.AddIndex('idx_no_art','no_art',[]);  SQLQuery1.IndexName:='idx_no_art';  SQLQuery1.Open;  ...  

Re: [fpc-pascal] How to insert a record and get the primary key with sqldb?

2011-10-22 Thread Michael Van Canneyt
On Sat, 22 Oct 2011, Martin Schreiber wrote: On Saturday 22 October 2011 15.21:40 Marco van de Voort wrote: In our previous episode, Felipe Monteiro de Carvalho said: Ok, now I want to insert a record in my table and I would like to obtain the auto-generated PrimaryKey This is a classic

Re: [fpc-pascal] How to insert a record and get the primary key with sqldb?

2011-10-22 Thread Michael Van Canneyt
On Sat, 22 Oct 2011, Felipe Monteiro de Carvalho wrote: On Sat, Oct 22, 2011 at 3:33 PM, michael.vancann...@wisa.be wrote: 2. or sequences, which must be generated manually before the insert (DB2, Oracle, Firebird) using a special   API, but which may or may not be generated in an AFTER

Re: [fpc-pascal] How to insert a record and get the primary key with sqldb?

2011-10-22 Thread Michael Van Canneyt
On Sat, 22 Oct 2011, Marco van de Voort wrote: In our previous episode, michael.vancann...@wisa.be said: Ok, now I want to insert a record in my table and I would like to obtain the auto-generated PrimaryKey This is a classic problem, since SQL simply doesn't support this. So all DBs do

Re: [fpc-pascal] How to insert a record and get the primary key with sqldb?

2011-10-22 Thread Michael Van Canneyt
On Sat, 22 Oct 2011, Martin Schreiber wrote: On Saturday 22 October 2011 16.20:13 Michael Van Canneyt wrote: Note that I did not invest this stuff ... I just copied from stuff to create other tables which were already in the project. You must get a value first, and pass it along

Re: [fpc-pascal] Re: How to insert a record and get the primary key with sqldb?

2011-10-22 Thread Michael Van Canneyt
On Sat, 22 Oct 2011, Felipe Monteiro de Carvalho wrote: ugh, any ideas how I can obtain the next sequence value using sqldb and postgres then? I have never used sequence values before, and while I am googling I only found either answers which are specific for a particular framework (java,

Re: RE : [fpc-pascal] How to insert a record and get the primary key withsqldb?

2011-10-22 Thread Michael Van Canneyt
On Sat, 22 Oct 2011, Ludo Brands wrote: Afaik Zeos manages to abstract this for all these dbs by having a sequence object. I fail to see how it can do that. E.g. the mechanism by Martin is just a trick to update a field value after an insert/update. That's a fine/useful mechanism, but not

Re: [fpc-pascal] FPC has multiple HTTP server components

2011-10-23 Thread Michael Van Canneyt
(for use with tiOPF). I found the recent one Michael van Canneyt committed in fcl-web: fcl-web/src/base/fphttpserver.pp (TFPHttpServer component) I also found one in fcl-net: fcl-net/src/httpsvlt.pp(THTTPServer component) This one is deprecated. It was originally developed to create

Re: RE : RE : [fpc-pascal] Re: How to insert a record and get the primarykeywith sqldb?

2011-10-23 Thread Michael Van Canneyt
On Sun, 23 Oct 2011, Felipe Monteiro de Carvalho wrote: Hello, Ok, I figured it out =D The cannot open non-select error was not for that line! It was for something else afterwards =D I can get the next primary key correctly now =D I am writing a CGI WebServer, so I haven't yet managed to

Re: [fpc-pascal] FPC MemoryDataset

2011-10-26 Thread Michael Van Canneyt
On Wed, 26 Oct 2011, Fabio Luis Girardi wrote: Hi! Sometime ago I submitted a patch that makes the FPC Memory DataSet compatible with Delphi to make it usable on both IDE's by project PascalSCADA. The class TDataset was changed in D2009 (I don't know the exactly version) and TMemDataset is 

Re: [fpc-pascal] A linking error when compiling with FPC 2.4.4

2011-10-31 Thread Michael Van Canneyt
On Mon, 31 Oct 2011, Jonas Maebe wrote: On 31 Oct 2011, at 11:27, Luciano de Souza wrote: The executable was not generated. In its place, I found link.res. The compilation was successful, but for a unknown reason, the linkage was not completed. I don't understand what the statements in

Re: [fpc-pascal] A linking error when compiling with FPC 2.4.4

2011-10-31 Thread Michael Van Canneyt
On Mon, 31 Oct 2011, Felipe Monteiro de Carvalho wrote: On Mon, Oct 31, 2011 at 12:10 PM, Michael Van Canneyt mich...@freepascal.org wrote: This would add a whole list of unwanted dependencies to e.g. lazarus since it installs support for many databases by default. It loads the needed

Re: [fpc-pascal] A linking error when compiling with FPC 2.4.4

2011-10-31 Thread Michael Van Canneyt
On Mon, 31 Oct 2011, Marco van de Voort wrote: In our previous episode, Jonas Maebe said: On Mon, 31 Oct 2011, Jonas Maebe wrote: sqlite3 is not part of FPC. You probably have to install the sqlite3-dev package or something like that. Arguably, that should be a dependency of the fpc .deb

Re: [fpc-pascal] A linking error when compiling with FPC 2.4.4

2011-10-31 Thread Michael Van Canneyt
On Mon, 31 Oct 2011, Marco van de Voort wrote: In our previous episode, Michael Van Canneyt said: finer. (-dyn and static in separate packages, so that the static one alone gets the dependency. Lazarus then only depends on the dyn packages). That would be a regular nightmare, because

Re: [fpc-pascal] Premature end of headers using fcl-web and POST

2011-10-31 Thread Michael Van Canneyt
On Mon, 31 Oct 2011, Felipe Monteiro de Carvalho wrote: Hello, So I advanced my CGI using HTTP GET so far, but I'd like to migrate to HTTP POST. But I always get this error message in the apache logs: Premature end of script headers: openpoker3.cgi, referer:

Re: [fpc-pascal] Re: Delphi's anonymous functions in Free Pascal

2011-11-05 Thread Michael Van Canneyt
On Sat, 5 Nov 2011, Bernd wrote: 2011/10/25 michael.vancann...@wisa.be: targethread.queue(  procedure(targetobject:ttargetobject;a:integer;b:someobject;c:string)             begin               targetobject.destinationprocedure(a,b,c);             end; Note how common this looks compared

Re: [fpc-pascal] Re: Delphi's anonymous functions in Free Pascal

2011-11-05 Thread Michael Van Canneyt
On Sat, 5 Nov 2011, Bernd wrote: A closure has enclosed variables from the surrounding scope where it was created, hence the name 'closure'. You cannot do this with a procedure variable alone, you need an object on the heap to contain the enclosed variables. The Delphi compiler will behind

Re: [fpc-pascal] What is the difference between the declarations at the beginning of a class and those declared in the public section?

2011-11-06 Thread Michael Van Canneyt
On Sun, 6 Nov 2011, Jonas Maebe wrote: On 06 Nov 2011, at 15:34, Frank Church wrote: What is the difference between field declarations at the beginning of a class and those declared in the public section? There is no the public section. You can declare as many public (and private, and

[fpc-pascal] Alternative for Delphi and FPC's RTL and FCL

2011-11-08 Thread Michael Van Canneyt
Hi, There are again some threads concerning the RTL and FCL, and in particular the adherence to Delphi compatibility. This mail is intended to rally the 'not satisfied' people. I will therefor repeat an offer I already made several years ago on these lists. The solution to many problems is

Re: [fpc-pascal] Generics vs TCollection

2011-11-09 Thread Michael Van Canneyt
On Wed, 9 Nov 2011, tcoq wrote: It's also possible to create a generic descendent of TCollection, where the only duplicated code is the property override. This is probably the best of both worlds: reusing the TCollection while moving to generics. Hm. I fail to see this: Where is the gain

Re: [fpc-pascal] How to document fpcunit test cases, so that they appear in the XML

2011-11-11 Thread Michael Van Canneyt
On Fri, 11 Nov 2011, tcoq wrote: Hello, I would like to add additional information to the test cases. I'm using FPCUnit. Is there a way to document the test cases? For example, to describe the test case, to link to the verified requirement, to link to a (Mantis) defect, to link to a test

Re: [fpc-pascal] ioda joda fulltext search not working

2011-11-12 Thread Michael Van Canneyt
On Fri, 11 Nov 2011, nore...@z505.com wrote: On Wed, 9 Nov 2011, Graeme Geldenhuys wrote: On 9 November 2011 10:40, michael.vancanneyt@. wrote: It definitely works, I also use it in a commercial project to implement full-text-search on a firebird database. Now that would be

Re: [fpc-pascal] Is there an online tool for browsing library documentation and source code for FPC and Lazarus?

2011-11-12 Thread Michael Van Canneyt
On Sat, 12 Nov 2011, Frank Church wrote: Is there an online tool for browsing library documentation and source code for FPC and Lazarus? I am looking for something along these lines - http://stdlib.rubyonrails.org/, http://htmlunit.sourceforge.net/apidocs/index.html. Doesn't the FPC

Re: [fpc-pascal] Makeskel generation question

2011-11-18 Thread Michael Van Canneyt
On Fri, 18 Nov 2011, Reinier Olislagers wrote: Hi list, I've run makeskel on ibconnection.pp. This declaration: protected ... function GetHandle : pointer; override; gets output as: !-- function Visibility: protected -- element name=TIBConnection.GetHandle short/short descr /descr

Re: [fpc-pascal] IBConnection blobsegmentsize irrelevant performance

2011-11-19 Thread Michael Van Canneyt
On Sat, 19 Nov 2011, Reinier Olislagers wrote: Hi list, The Firebird/Interbase ibconnection.pp code has this code in its SetParameters procedure to upload blobs in segments (BlobSegmentSize property is set to 80 on object creation): while BlobBytesWritten (BlobSize-BlobSegmentSize) do

Re: [fpc-pascal] Patch/Test BlobSegmentSize was: IBConnection blobsegmentsize irrelevant performance

2011-11-19 Thread Michael Van Canneyt
On Sat, 19 Nov 2011, Reinier Olislagers wrote: On 19-11-2011 13:28, Reinier Olislagers wrote: Hi list, The Firebird/Interbase ibconnection.pp code has this code in its SetParameters procedure to upload blobs in segments (BlobSegmentSize property is set to 80 on object creation): while

Re: [fpc-pascal] Re: Patch/Test BlobSegmentSize was: IBConnection blobsegmentsize irrelevant performance

2011-11-25 Thread Michael Van Canneyt
On Fri, 25 Nov 2011, Reinier Olislagers wrote: On 21-11-2011 9:31, Reinier Olislagers wrote: On 20-11-2011 10:31, Reinier Olislagers wrote: On 19-11-2011 23:36, Michael Van Canneyt wrote: On Sat, 19 Nov 2011, Reinier Olislagers wrote: On 19-11-2011 13:28, Reinier Olislagers wrote: I

Re: [fpc-pascal] Re: Patch/Test BlobSegmentSize was: IBConnection blobsegmentsize irrelevant performance

2011-11-25 Thread Michael Van Canneyt
On Fri, 25 Nov 2011, Reinier Olislagers wrote: On 25-11-2011 10:07, Michael Van Canneyt wrote: On Fri, 25 Nov 2011, Reinier Olislagers wrote: Database patches by default get assigned to Joost, and Joost is busy. I'll have a look at it. You can always directly assign bugs to me if we've

Re: [fpc-pascal] How to poll for a byte in Input?

2011-12-09 Thread Michael Van Canneyt
On Fri, 9 Dec 2011, Jorge Aldo G. de F. Junior wrote: Thats an old problem on the way TStream was implemented. I for one needed to know the result size of a uncompress stream (IE.: i have a compressed stream and want to know in advance how many bytes the uncompress method would yield).

Re: [fpc-pascal] How to poll for a byte in Input?

2011-12-09 Thread Michael Van Canneyt
On Fri, 9 Dec 2011, Jorge Aldo G. de F. Junior wrote: I think the main problem is that TStream tries to abstract two kinds of resources : Character based resources and block based resources. The end result is that it is no good for neither of the two cases. You are not forced to use it :-)

Re: [fpc-pascal] How to poll for a byte in Input?

2011-12-09 Thread Michael Van Canneyt
On Fri, 9 Dec 2011, tcoq wrote: I have found and tried WaitForSingleObject, using the following syntax: ThereIsACharacterToRead := WaitForSingleObject(StdInputHandle,0) = 0; While ThereIsACharacterToRead do begin aByte := InputStream.ReadByte; ThereIsACharacterToRead :=

Re: [fpc-pascal] Free Pascal Programmer's Guide - where is the latest version?

2011-12-10 Thread Michael Van Canneyt
On Sat, 10 Dec 2011, Bernd wrote: This document: http://www.freepascal.org/docs-html/prog/prog.html is for the stable version 2.4 Does anybody know where I can find the development version of it (2.5.1 or soon 2.6.0)? I am digging around on the svn server in the fpc directories but I can't

Re: [fpc-pascal] Free Pascal Programmer's Guide - where is the latest version?

2011-12-11 Thread Michael Van Canneyt
On Sat, 10 Dec 2011, Bernd wrote: 2011/12/10 Michael Van Canneyt mich...@freepascal.org: Check the FTP server, somewhere in the 2.6 directory. Found it, Thanks. The reason I was looking for it was I wanted to know whether there has something changed with the optimization switches

Re: [fpc-pascal] Free Pascal Programmer's Guide - where is the latest version?

2011-12-11 Thread Michael Van Canneyt
On Sun, 11 Dec 2011, Bernd wrote: Where did you find this in the docs ? On the official ftp server: ftp://ftp.freepascal.org/pub/fpc/beta/2.6.0-rc1/docs/ I downloadad doc-pdf.zip (file dats inside the zip of all contained pdf files is 2011-10-9-18:01) The file I am referring to is the

Re: [fpc-pascal] initializing pointer values

2011-12-16 Thread Michael Van Canneyt
On Fri, 16 Dec 2011, dhkblas...@zeelandnet.nl wrote: On implementing a linked list I hit to some unexpected (doesn't mean incorrect though) behaviour.     ptest = ^test;   test = record     p: pointer;   end;     new(mytest);   When I allocate mytest the pointer variable p is

Re: [fpc-pascal] Testing applications with FPCUnit

2011-12-16 Thread Michael Van Canneyt
On Fri, 16 Dec 2011, Vincent Snijders wrote: 2011/12/16 luciano de souza luchya...@gmail.com: Hello listers, Navigating in FPC source codes, I found fpcunit. It's really wonderful. With the tTestCase class, we can  generate a report with the success or the failure of our tests. Is there

[fpc-pascal] JSON Dataset in FCL-DB.

2011-12-16 Thread Michael Van Canneyt
Hello, I just committed a JSON dataset in fcl-db. This is a dataset which stores its data in JSON objects (as in fpjson) in memory. The records are in a JSON array, each record can be a JSON object or array. (not mixed) The dataset is read-write. It can be used to create JSON data from

Re: [fpc-pascal] JSON Dataset in FCL-DB.

2011-12-16 Thread Michael Van Canneyt
On Fri, 16 Dec 2011, Leonardo M. Ramé wrote: From: Michael Van Canneyt mich...@freepascal.org To: FPC mailing list fpc-pascal@lists.freepascal.org; Lazarus mailing list laza...@lazarus.freepascal.org Sent: Friday, December 16, 2011 1:37 PM Subject: [fpc-pascal] JSON Dataset in FCL-DB

Re: [fpc-pascal] JSON Dataset in FCL-DB.

2011-12-16 Thread Michael Van Canneyt
On Fri, 16 Dec 2011, Leonardo M. Ramé wrote: What is missing currently is the delta to update data on the server, but that should be easily added. Michael. Thanks.  Btw. I've found this dependency related error when I tried to compile. Fixed in revision 19858.

Re: [fpc-pascal] Testing applications with FPCUnit

2011-12-17 Thread Michael Van Canneyt
; INITIALIZATION RegisterTest(TBugTest); END. Now, the runer: program apptest; {$mode objfpc}{$h+} uses test; begin end. Em 16/12/2011 11:44, Michael Van Canneyt escreveu: On Fri, 16 Dec 2011, Vincent Snijders wrote: 2011/12/16 luciano de souza luchya...@gmail.com

Re: [fpc-pascal] possible json parser memory leak

2011-12-18 Thread Michael Van Canneyt
On Sun, 18 Dec 2011, ik wrote: Hello, I'm using FPC 2.6 (rc) x86_64 on Linux with JSONParser. I've written the following code: --- uses fpjson, jsonparser, SysUtils, classes; var   parser    : TJSONParser;   json_file : TFileStream;  begin   json_file :=

Re: [fpc-pascal] where are the sources for rtl.chm, fcl.chm ref.chm etc.?

2011-12-24 Thread Michael Van Canneyt
On Sat, 24 Dec 2011, Bernd wrote: Hi, I am trying to build the chm help files (rtl, fcl, and ref) from source (to use them with Lazarus) and cannot find find them anywhere. I have found downloads of ready made chm files for rtl and fcl but I don't know how to build them myself and also I am

[fpc-pascal] Re: [Lazarus] Finished full JVM Android application

2011-12-26 Thread Michael Van Canneyt
On Mon, 26 Dec 2011, Sven Barth wrote: Hello together! Today I've finished my first JVM Android application. This could as well be the first (or at least one of the first) complete JVM Android app written in Pascal at all! A nice christmas present for the whole FPC team, thank you :-)

Re: [fpc-pascal] operator in

2011-12-27 Thread Michael Van Canneyt
On Tue, 27 Dec 2011, Marcos Douglas wrote: Why operator 'in' has a limit? It is limited to byte-sized types, i.e, max 256 elements. Michael. procedure TForm1.Button1Click(Sender: TObject); var t,r1,r2: Integer; begin t := 359; r1 := 252; r2 := 253; if r2 in [r1..t-1] then //

Re: [fpc-pascal] FPDoc visibility sections

2012-01-04 Thread Michael Van Canneyt
On Wed, 4 Jan 2012, dhkblas...@zeelandnet.nl wrote: Found some strange behaviour imho. For some reason there are extra visibility sections inserted in my documentation, instead of following the source. I expected fpdoc to respect the visibility directives instead of deciding autonomously

Re: [fpc-pascal] Group arguments from overloaded functions in fpdoc

2012-01-05 Thread Michael Van Canneyt
On Thu, 5 Jan 2012, dhkblas...@zeelandnet.nl wrote: When you have overloaded functions, fpdoc will group them on one page. The arguments however are listed in two separate arguments sections. It would be nice to have the arguments merged in one section. I do not know how to display the

Re: [fpc-pascal] Group arguments from overloaded functions in fpdoc

2012-01-06 Thread Michael Van Canneyt
On Fri, 6 Jan 2012, michael.vancann...@wisa.be wrote: On Fri, 6 Jan 2012, dhkblas...@zeelandnet.nl wrote: In our previous episode, michael.vancann...@wisa.be said: On a side note, 1) for overloaded functions it seems that only one result string is possible to define. As seen in the XML

Re: [fpc-pascal] FPCUnit without Lazarus

2012-01-08 Thread Michael Van Canneyt
Hello, After your previous mails about this, I have discussed this with Vincent Snijders, the author of the console runner class. The console runner class of the LCL does not really have any dependencies on the LCL, only on FCL. So, it will be moved to the FCL, Vincent has agreed to this.

Re: [fpc-pascal] FPCUnit without Lazarus

2012-01-08 Thread Michael Van Canneyt
Follow-up: I moved consoletestrunner unit to fcl. Revision 20010. Michael. On Sun, 8 Jan 2012, Michael Van Canneyt wrote: Hello, After your previous mails about this, I have discussed this with Vincent Snijders, the author of the console runner class. The console runner class of the LCL

Re: [fpc-pascal] How to get path to current theme icons on linux?

2012-01-09 Thread Michael Van Canneyt
On Mon, 9 Jan 2012, Krzysztof wrote: Hi, I need to load icon associated by file extension. On windows I done this by WinAPI function ExtractAssociatedIcon(). On linux is not so easy, because we have GNOME, KDE, XFCE, LXDE etc, but I noticed that icons are stored in this same place (like

Re: [fpc-pascal] Postscriptcanvas

2012-01-14 Thread Michael Van Canneyt
On Fri, 13 Jan 2012, David Copeland wrote: Hi, Is it possible to use the PostScriptCanvas unit in a non-gui program? If you are talking about the pscanvas unit of FPC: Yes, that is what it is for. Michael. ___ fpc-pascal maillist -

Re: [fpc-pascal] Postscriptcanvas

2012-01-14 Thread Michael Van Canneyt
On Sat, 14 Jan 2012, david.copel...@jsidata.ca wrote: Micheal, Thank you. I was referring to LCL Postscriptcanvas unit which I use in GUI programs. When I tried to use it in a non-GUI program, it could not be found. Are these two really the same thing, or at least similar to use? If not the

Re: [fpc-pascal] libQT4Pas - Why it is needed?

2012-01-29 Thread Michael Van Canneyt
On Sun, 29 Jan 2012, Krzysztof wrote: Hi, I am wondering. If I build application for linux using gtk2 widgetset for GNOME (or XFCE etc.) and send this program to my friend, then he can run it without any external librarys (of course if he have gnome too), this same thing on windows. But why

Re: [fpc-pascal] FormatDatetime is not respecting the specified pattern

2012-01-31 Thread Michael Van Canneyt
On Wed, 1 Feb 2012, Luciano de Souza wrote:     Hello listers,  A strange error came up when formating a date. See this code: writeln(formatdatetime('dd/mm/', now)); The answer should be: 31/01/2012 The answer was: 31-01-2012 I did one test else: writeln(formatdatetime('dd$mm$',

Re: [fpc-pascal] TStringStream.DataString returns garbage?

2012-02-01 Thread Michael Van Canneyt
On Thu, 2 Feb 2012, Graeme Geldenhuys wrote: Hi, What am I doing wrong in the following code? It always fails on test number 2. The DataString property is returning garbage, and not the value equal to the 'Graeme Geldenhuys' string. -- var

Re: RE : [fpc-pascal] Synapse: SSH client+cryptlib+private key

2012-02-04 Thread Michael Van Canneyt
Hello, I suspect more or less the same can be used to set up a HTTPS connection with a known certificate ? Maybe this is something to be added to the WIKI ? Michael. On Sat, 4 Feb 2012, Ludo Brands wrote: Hi all, I've been fiddling with connecting to an SSH server. Thanks to Ludo

Re: [fpc-pascal] TFPHTTPClient Post works with jetty, fails with tomcat

2012-02-09 Thread Michael Van Canneyt
On Thu, 9 Feb 2012, Mattias Gaertner wrote: On Tue, 7 Feb 2012 10:33:04 +0100 Rainer Stratmann rainerstratm...@t-online.de wrote: Am Monday 19 December 2011 01:22:18 schrieb Mattias Gaertner: Hi, For some reason TFPHTTPClient.Post hangs when accessing a solr server over tomcat. It works

[fpc-pascal] Adding Notes in FPDoc

2012-02-11 Thread Michael Van Canneyt
Hi, Seeing the discussions about annotating the documentation created by FPDoc, I added support for notes. (revision 20304) In short: At the level of the module, topic and element tags, you can now include a notes tag. Within the notes tag, you can include one or more note tags. They are

Re: [fpc-pascal] fpdoc and tab characters

2012-02-13 Thread Michael Van Canneyt
On Mon, 13 Feb 2012, Mattias Gaertner wrote: Hi,   How are tab characters handled by fpdoc and its output formats? Depends on the output format. See escapetext in the writer descendents. Function EscapeText(S : String) : String; override;

Re: [fpc-pascal] fphttpclient get an url with colon

2012-02-17 Thread Michael Van Canneyt
On Fri, 17 Feb 2012, Mattias Gaertner wrote: On Fri, 17 Feb 2012 22:03:25 +0200 Alberto Narduzzi albertonardu...@yahoo.com wrote: I doubt that mediawiki uses malformed urls. And any browser and http client uses it without warning. as I said, it was out of curiosity. Googling around

Re: [fpc-pascal] dbus in Pascal

2012-02-22 Thread Michael Van Canneyt
On Thu, 23 Feb 2012, Felipe Monteiro de Carvalho wrote: Hello, I haven't touched in dbus in ages, so I was wondering how people are using it. Did anyone write a wrapper around libdbus for Lazarus or is everyone using directly libdbus or something like dbus-glib? Do we have bindings for

Re: [fpc-pascal] (no subject)

2012-02-24 Thread Michael Van Canneyt
On Thu, 23 Feb 2012, Everton Vieira wrote: Is there any plans to implement public procedures/function of a class that can be used without been necessary to create the class? This exists: class functions. Given the declaration TMYClass = Class Class function doGLobal (Arg : ArgType)

Re: [fpc-pascal] OT: Amazing new development tools

2012-02-26 Thread Michael Van Canneyt
On Sun, 26 Feb 2012, Vinzent Höfler wrote: On Sat, 25 Feb 2012 19:15:54 +0100, ik ido...@gmail.com wrote: I found the following amazing lecture that present a new idea of a development tool, that I think will interest you all: http://vimeo.com/36579366 Impressive, indeed. And I am

Re: [fpc-pascal] OT: Amazing new development tools

2012-02-26 Thread Michael Van Canneyt
On Sun, 26 Feb 2012, ik wrote: On Sun, Feb 26, 2012 at 13:25, zeljko zel...@holobit.net wrote: On Sunday 26 of February 2012 11:43:38 Michael Van Canneyt wrote: I don't see him doing this in huge corporate administrative business programs where hundreds of database tables are involved

Re: [fpc-pascal] Data persistance in CGI projects

2012-02-26 Thread Michael Van Canneyt
On Sun, 26 Feb 2012, Luciano de Souza wrote: Hello all, For desktop environments, there are mature projects on data persistance. Press Objects, TiOPF... desktop developers can be proud of the tools they have. What about CGI environments? Is there something already developed? Yes, we can

Re: [fpc-pascal] Re: Where and how is the FPC documentation created?

2012-02-29 Thread Michael Van Canneyt
On Wed, 29 Feb 2012, Reinier Olislagers wrote: On 29-2-2012 17:07, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On Wed, 29 Feb 2012, Frank Church wrote: Another question, are you and Florian Klaempfl the main or only contributors? I am virtually the only one, but I do receive

Re: [fpc-pascal] @Michael Van Canneyt or others: exporting SQL (issue 19937)

2012-03-17 Thread Michael Van Canneyt
On Sat, 17 Mar 2012, Marco van de Voort wrote: In our previous episode, Michael Van Canneyt said: Checked and applied, thank you very much. Database related bugs are automatically assigned to Joost, that's why I don't see them in my list of assigned bugs. I happened to be walking over

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-28 Thread Michael Van Canneyt
On Wed, 28 Mar 2012, Marcos Douglas wrote: Hi, I think SysUtils.GetEnvironmentVariable has a problem. I tried to use GetEnvironmentVariable on WinXP and Win7. Sometimes works on WinXP, others not. But never worked on Win7. I asked some friends to test on Linux and did not work too. My FPC

Re: [fpc-pascal] XML parser (fwd)

2012-04-06 Thread Michael Van Canneyt
Mailed to me in person, probably meant for the mailing list. Michael. -- Forwarded message -- Date: Fri, 6 Apr 2012 13:24:58 +0200 From: David Butler djbut...@gmail.com To: michael.vancann...@wisa.be Subject: Re: [fpc-pascal] XML parser Hi You might want to have a look at

Re: RE : RE : RE : [fpc-pascal] Re: RE : RE : Re: SQLDB GetSchemaInfoSQLforindexesetc?

2012-04-19 Thread Michael Van Canneyt
On Thu, 19 Apr 2012, Ludo Brands wrote: There are other databases (mssql, oracle) where it is difficult to not use schemas. So even when not using the word 'schema' the concept should be represented somewhere. Ehm, the datadictionary is the schema ? Unless I misunderstand the meaning of

Re: RE : RE : RE : RE : [fpc-pascal] Re: RE : RE : Re: SQLDBGetSchemaInfoSQLforindexesetc?

2012-04-19 Thread Michael Van Canneyt
On Thu, 19 Apr 2012, Ludo Brands wrote: Schemas own more objects than just Tables, Sequences and Domains. So I wouldn't have guessed that one. Correct. fpDatadict is a work in progress. I use tables, sequences, domains, indexes and foreign keys. Exactly because indexes and foreign

Re: [fpc-pascal] Open vs dynamic arrays

2012-04-22 Thread Michael Van Canneyt
On Sun, 22 Apr 2012, Mark Morgan Lloyd wrote: cobines wrote: 2012/4/22 Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk: but I'm not sure why that works when it didn't earlier (i.e. before I'd started using array of const). You said you used DbgArray= array of integer then I assume

Re: [fpc-pascal] Handling with sources and exebutables with different names

2012-05-17 Thread Michael Van Canneyt
On Thu, 17 May 2012, luciano de souza wrote: hello all, I am compiling CGI modules with Freepascal in commandline mode. if I do: fpc test.pas the result is test.exe. But the source name needs to be different from the executable name. For this reason: fpc test.pas -oindex.cgi This command

Re: [fpc-pascal] Extend multiple classes with same code

2012-05-18 Thread Michael Van Canneyt
On Fri, 18 May 2012, Zaher Dirkey wrote: Hi, I have 2 objects inherited from the base one T_A = class(TObject); T_B1 = class(T_A); T_B2 = class(T_A); T_B3 = class(T_A); Now if I want to extend T_B1 it is easy to inherit it to T_C1 = class (T_B1) and add many functions to it, but. I want

Re: [fpc-pascal] Proposed FPC database example code: request for testing

2012-05-25 Thread Michael Van Canneyt
On Fri, 25 May 2012, Reinier Olislagers wrote: Hi list, I've created a small SQL*Plus/isql/osql/sqlcmd clone, pasql. It lets you connect to a database and run select queries as well as queries that don't return a dataset. It also shows how to use logging. Perhaps it's a nice candidate for

Re: [fpc-pascal] TList Notify count changed

2012-05-25 Thread Michael Van Canneyt
On Tue, 22 May 2012, Zaher Dirkey wrote: In TList how can i notify if Count is changed with New and Old values as like in SetCount, SetCount procedure not virtual? procedure SetCount(NewCount: Integer); You cannot. Be aware that setting the count does not mean items are actually added to

  1   2   3   4   5   6   7   8   9   10   >