Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Dariusz Mazur
ExtPascal uses threads to handle multiple connections. I remember you don't accept this way, right? BTW, what is there wrong if ExtPascal uses threads? I accept using threads, but not the way ExtPascal does it. Threads should be optional. In extpascal, the thread is equal to the session: if y

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Michael Van Canneyt
On Wed, 1 Dec 2010, Marcos Douglas wrote: 2010/12/1 : On Wed, 1 Dec 2010, Marcos Douglas wrote: On Wed, Dec 1, 2010 at 1:05 PM, wrote: [snip] It never could. There is 1 connection, and all requests go through this connection. A week (or maybe 2) ago, I sent you a private mail about

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Michael Van Canneyt
On Wed, 1 Dec 2010, Joost van der Sluis wrote: On Wed, 2010-12-01 at 17:05 +0100, michael.vancann...@wisa.be wrote: On Wed, 1 Dec 2010, Joost van der Sluis wrote: On Wed, 2010-12-01 at 15:51 +0100, michael.vancann...@wisa.be wrote: On Wed, 1 Dec 2010, Joost van der Sluis wrote: Also c

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-12-01 Thread Mark Morgan Lloyd
zel...@holobit.net wrote: Quoting Mark Morgan Lloyd : Would it be possible to write a server-side PostgreSQL extension using Lazarus, including friendly debugging? Yes, feel free to do that :) [GRIN] Actually, it was a serious question: can Lazarus debug a .so and would it stand any chanc

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Marcos Douglas
On Wed, Dec 1, 2010 at 2:07 PM, Joost van der Sluis wrote: > On Wed, 2010-12-01 at 17:05 +0100, michael.vancann...@wisa.be wrote: >> >> On Wed, 1 Dec 2010, Joost van der Sluis wrote: >> >> > On Wed, 2010-12-01 at 15:51 +0100, michael.vancann...@wisa.be wrote: >> >> >> >> On Wed, 1 Dec 2010, Joost

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Joost van der Sluis
On Wed, 2010-12-01 at 17:05 +0100, michael.vancann...@wisa.be wrote: > > On Wed, 1 Dec 2010, Joost van der Sluis wrote: > > > On Wed, 2010-12-01 at 15:51 +0100, michael.vancann...@wisa.be wrote: > >> > >> On Wed, 1 Dec 2010, Joost van der Sluis wrote: > > Also check this: > > http://www.fastcgi.

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Marcos Douglas
2010/12/1 : > > > On Wed, 1 Dec 2010, Marcos Douglas wrote: > >> On Wed, Dec 1, 2010 at 1:05 PM, wrote: >>> >>> [snip] >>> >>> It never could. There is 1 connection, and all requests go through this >>> connection. >>> >>> A week (or maybe 2) ago, I sent you a private mail about using select() >>

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread michael . vancanneyt
On Wed, 1 Dec 2010, Marcos Douglas wrote: On Wed, Dec 1, 2010 at 1:05 PM, wrote: [snip] It never could. There is 1 connection, and all requests go through this connection. A week (or maybe 2) ago, I sent you a private mail about using select() on the connection handle.  This or the use o

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Luiz Americo Pereira Camara
Joost van der Sluis escreveu: The FastCGI process should return how many connection and requests it can handle. I'm not sure anymore if FastCGI of fpc can handle muliple requests at a time. (It could, but some parts ahve been changed) AFAIK at least Apache does not support multiplexing, so no

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-12-01 Thread michael . vancanneyt
On Wed, 1 Dec 2010, Joost van der Sluis wrote: On Wed, 2010-12-01 at 16:01 +0100, michael.vancann...@wisa.be wrote: On Wed, 1 Dec 2010, Joost van der Sluis wrote: Is there somewhere I can hook into the TSQLQuery to (a) see exactly what query was passed to the server (b) collect any error

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Marcos Douglas
On Wed, Dec 1, 2010 at 1:05 PM, wrote: > > [snip] > > It never could. There is 1 connection, and all requests go through this > connection. > > A week (or maybe 2) ago, I sent you a private mail about using select() > on the connection handle.  This or the use of threads could be used > to handle

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-12-01 Thread Mark Morgan Lloyd
Joost van der Sluis wrote: I am a firm proponent of putting a unified mechanism for a) and c) in TSQLQuery/TSQLConnection, and have, in fact, a patch ready for this (it implements a simple event mechanism for the log). That's a no-brainer. It could als use TCustomApplication.Log, if Customapp

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread michael . vancanneyt
On Wed, 1 Dec 2010, Joost van der Sluis wrote: On Wed, 2010-12-01 at 15:51 +0100, michael.vancann...@wisa.be wrote: On Wed, 1 Dec 2010, Joost van der Sluis wrote: The can do the same thing: By default, a fastcgi process is started by the webserver, passing it the socket on which it should

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-12-01 Thread Mark Morgan Lloyd
zeljko wrote: Well, these are tne ansi/sql transacion isolation levels. do you know a database which actually uses/supports these? (Except from Oracle) Yes, PostgreSQL supports all of them. With the same names? I know from some other db-servers, that they use Yes. http://www.postgresql.org/d

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-12-01 Thread Mark Morgan Lloyd
michael.vancann...@wisa.be wrote: On Wed, 1 Dec 2010, Joost van der Sluis wrote: Is there somewhere I can hook into the TSQLQuery to (a) see exactly what query was passed to the server (b) collect any error text and (c) get execution timing? a) Easiest is to use the database-client's log me

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-12-01 Thread Joost van der Sluis
On Wed, 2010-12-01 at 16:01 +0100, michael.vancann...@wisa.be wrote: > > On Wed, 1 Dec 2010, Joost van der Sluis wrote: > > > > >> Is there somewhere I can hook into the TSQLQuery to (a) see exactly what > >> query was passed to the server (b) collect any error text and (c) get > >> execution tim

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Michael Schnell
On 12/01/2010 03:52 PM, michael.vancann...@wisa.be wrote: But FastCGI is better, since it runs irrespective of the webserver. And given that IIS is losing market share, I would never code exclusively for IIS. +1, but we did hear bad rumors about FCGI, so we used ISAPI :(. -Michael --

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Joost van der Sluis
On Wed, 2010-12-01 at 15:51 +0100, michael.vancann...@wisa.be wrote: > > On Wed, 1 Dec 2010, Joost van der Sluis wrote: > > >> > >> The can do the same thing: > >> By default, a fastcgi process is started by the webserver, passing it the > >> socket on which it should listen. > > > > Most imporan

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-12-01 Thread michael . vancanneyt
On Wed, 1 Dec 2010, Joost van der Sluis wrote: Is there somewhere I can hook into the TSQLQuery to (a) see exactly what query was passed to the server (b) collect any error text and (c) get execution timing? a) Easiest is to use the database-client's log mechanism. (If there is any). Else

Re: [Lazarus] How to use environment variables in lazarus IDE config?

2010-12-01 Thread Bo Berglund
On Wed, 1 Dec 2010 10:12:00 +0100, Mattias Gaertner wrote: >> >> I entered the following as the FPC compiler path: >> >> >> >> $Env(FPCBASE)\2.4.2\bin\i386-Win32\fpc.exe >> > >> >Should work now. >> >> "Now" meaning what? Do I need to grab a newer version of lazarus and >> rebuild it? > >Yes. P

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread michael . vancanneyt
On Wed, 1 Dec 2010, Michael Schnell wrote: On 12/01/2010 02:16 PM, Joost van der Sluis wrote: My FastCGI process is running as a windows service. What is exactly the reason for this? Isn't it much easier when the webserver starts (and stops, when it is not used) the cgi-application, than doi

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread michael . vancanneyt
On Wed, 1 Dec 2010, Joost van der Sluis wrote: The can do the same thing: By default, a fastcgi process is started by the webserver, passing it the socket on which it should listen. Most imporant difference is that mod_fastcgi is deprecated and doesn't follow the FastCGI standard. In what

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Joost van der Sluis
On Wed, 2010-12-01 at 14:43 +0100, Michael Schnell wrote: > On 12/01/2010 02:16 PM, Joost van der Sluis wrote: > >> My FastCGI process is running as a windows service. > > What is exactly the reason for this? Isn't it much easier when the > > webserver starts (and stops, when it is not used) the cg

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-12-01 Thread Mark Morgan Lloyd
Joost van der Sluis wrote: Is there somewhere I can hook into the TSQLQuery to (a) see exactly what query was passed to the server (b) collect any error text and (c) get execution timing? a) Easiest is to use the database-client's log mechanism. (If there is any). Else you can change the TPQC

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Michael Schnell
On 12/01/2010 02:16 PM, Joost van der Sluis wrote: My FastCGI process is running as a windows service. What is exactly the reason for this? Isn't it much easier when the webserver starts (and stops, when it is not used) the cgi-application, than doing this in a Windows service? As creating proce

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-12-01 Thread zeljko
On Wednesday 01 December 2010 14:23, Joost van der Sluis wrote: > On Wed, 2010-12-01 at 14:17 +0100, zeljko wrote: > > On Wednesday 01 December 2010 13:48, Joost van der Sluis wrote: > > > On Tue, 2010-11-30 at 13:14 +0100, zeljko wrote: > > > > > I think we should not change a thing, until the pro

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-12-01 Thread Joost van der Sluis
On Wed, 2010-12-01 at 14:17 +0100, zeljko wrote: > On Wednesday 01 December 2010 13:48, Joost van der Sluis wrote: > > On Tue, 2010-11-30 at 13:14 +0100, zeljko wrote: > > > > I think we should not change a thing, until the problem is clear. Maybe > > > > we can come up with some 'general' transact

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-12-01 Thread zeljko
On Wednesday 01 December 2010 13:48, Joost van der Sluis wrote: > On Tue, 2010-11-30 at 13:14 +0100, zeljko wrote: > > > I think we should not change a thing, until the problem is clear. Maybe > > > we can come up with some 'general' transaction-isolation levels. The > > > reason they are not imple

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Joost van der Sluis
On Tue, 2010-11-30 at 14:52 +0100, michael.vancann...@wisa.be wrote: > > On Tue, 30 Nov 2010, Marcos Douglas wrote: > > > On Tue, Nov 30, 2010 at 10:23 AM, wrote: > >> > >> > >> On Tue, 30 Nov 2010, Marcos Douglas wrote: > >> > >>> On Wed, Nov 24, 2010 at 4:43 PM, Michael Van Canneyt > >>> wro

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-12-01 Thread Joost van der Sluis
On Tue, 2010-11-30 at 12:15 +, Mark Morgan Lloyd wrote: > Joost van der Sluis wrote: > > >> If I could ask: where can I find a description of how TSQLQuery etc. > >> should be used for non-trivial applications? For example, if I want to > >> set up an explicit transaction, insert a few hundr

Re: [Lazarus] What is a TSQLTransaction and why do I need one?

2010-12-01 Thread Joost van der Sluis
On Tue, 2010-11-30 at 13:14 +0100, zeljko wrote: > > > > I think we should not change a thing, until the problem is clear. Maybe > > we can come up with some 'general' transaction-isolation levels. The > > reason they are not implemented in a general way is that each DB has > > it's own locking-sty

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Michael Van Canneyt
On Wed, 1 Dec 2010, Michael Schnell wrote: On 11/30/2010 02:52 PM, michael.vancann...@wisa.be wrote: FastCgiExternalServer D:/counte/verbruik/server -host 127.0.0.1:2015 -idle-timeout 30 -flush AFAIK, fastCGI can use as well a TCP/IP socket as a pipe to do the communication between the W

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Vincent Snijders
2010/12/1 Michael Schnell : > a Browser, ...). As we are in a Pascal oriented list, here, only CIL-Pascal > is relevant. Actually this is a Lazarus list, so until FPC support CIL-pascal, CIL-pascal is irrelevant here. Vincent -- ___ Lazarus mailing lis

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Michael Schnell
On 12/01/2010 11:25 AM, waldo kitty wrote: i'm not saying that... i'm saying that if i had to code in .net, that i would quite coding... is that not what the first quote says? There are things that can't be done by most traditional programming frameworks but can be done by using either Java

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Michael Schnell
On 11/30/2010 02:52 PM, michael.vancann...@wisa.be wrote: FastCgiExternalServer D:/counte/verbruik/server -host 127.0.0.1:2015 -idle-timeout 30 -flush AFAIK, fastCGI can use as well a TCP/IP socket as a pipe to do the communication between the WebServer and the CGI program (not really a big

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread waldo kitty
On 12/1/2010 04:43, Michael Schnell wrote: On 12/01/2010 12:58 AM, waldo kitty wrote: No chance, I'd rather stop programming then using .net +1000~ Why exactly would you prefer Java over CIL Pascal ? i'm not saying that... i'm saying that if i had to code in .net, that i

Re: [Lazarus] GUI development for web UI

2010-12-01 Thread Michael Schnell
On 12/01/2010 12:58 AM, waldo kitty wrote: No chance, I'd rather stop programming then using .net +1000~ Why exactly would you prefer Java over CIL Pascal ? (This of course should rather be handled in the "other" list...) -Michael -- _

Re: [Lazarus] How to use environment variables in lazarus IDE config?

2010-12-01 Thread Mattias Gaertner
On Wed, 01 Dec 2010 09:23:23 +0100 Bo Berglund wrote: > On Tue, 30 Nov 2010 18:35:48 +0100, Mattias Gaertner > wrote: > > >On Tue, 30 Nov 2010 17:48:47 +0100 > >Bo Berglund wrote: > > > >> I would like to specify things like the base location of files using > >> environment variables rather th

Re: [Lazarus] changing some FPC units

2010-12-01 Thread Mattias Gaertner
On Wed, 01 Dec 2010 09:25:06 +0100 Alberto Manganaro wrote: > Well, but I don't want to install a new version fo the package, I just > want to modify something in the original code, recompile it and use the > unit in Lazarus. > > I tried again but I can't figure it out, so my question is: wher

Re: [Lazarus] How to use environment variables in lazarus IDE config?

2010-12-01 Thread Sven Barth
Am 01.12.2010 09:23, schrieb Bo Berglund: On Tue, 30 Nov 2010 18:35:48 +0100, Mattias Gaertner wrote: On Tue, 30 Nov 2010 17:48:47 +0100 Bo Berglund wrote: I would like to specify things like the base location of files using environment variables rather than entering full paths. In Delphi

Re: [Lazarus] changing some FPC units

2010-12-01 Thread Alberto Manganaro
Well, but I don't want to install a new version fo the package, I just want to modify something in the original code, recompile it and use the unit in Lazarus. I tried again but I can't figure it out, so my question is: where does Lazarus take the compiled FPC libraries to be linked with my pr

Re: [Lazarus] How to use environment variables in lazarus IDE config?

2010-12-01 Thread Bo Berglund
On Tue, 30 Nov 2010 18:35:48 +0100, Mattias Gaertner wrote: >On Tue, 30 Nov 2010 17:48:47 +0100 >Bo Berglund wrote: > >> I would like to specify things like the base location of files using >> environment variables rather than entering full paths. >> >> In Delphi this can be done by using the $

Re: [Lazarus] Form position and size not preserved

2010-12-01 Thread Vincent Snijders
2010/12/1 Darius Blaszyk : > Ahhh, found it. By setting the window option from "Default" to "Restore > window geometry" everything works fine now. I'm surprised though it used > to work by restoring the geometry. What does "default" mean? I think default means the designed position of those IDE fo

Re: [Lazarus] Form position and size not preserved

2010-12-01 Thread Bo Berglund
On Wed, 01 Dec 2010 00:15:59 +0100, Darius Blaszyk wrote: >On Wed, 2010-12-01 at 00:05 +0100, Darius Blaszyk wrote: >> > DB> Since some time the UI position and size of the forms of Lazarus are >> > not >> > DB> preserved anymore. If I for instance organize them in a certain way and >> > DB> the