[fpc-pascal] sqldb, oracle, and mac os x

2009-11-26 Thread Bee Jay
Hi all, I'm writing a program which connects to a remote Oracle server using sqlDB (TOracleConnection). TOracleConnection keeps telling me that Oracle client library (libociei.dylib) is not yet installed. However, I'm pretty sure that it's already installed correctly since Oracle's

Re: [fpc-pascal] Forum merger

2009-12-13 Thread Bee Jay
We have already merged the wikis, what about merging the forums? I would propose merging into the Lazarus forum. Why don't we make our own forum application using fpWeb (or Powtils or ExtPascal)? Specially dedicated for FPC and Lazarus users. It can be a showcase that pascal (FPC/Lazarus in

Re: [fpc-pascal] Forum merger

2009-12-13 Thread Bee Jay
Then it would be possible to make a userfriendly forum and to add useful functions. Of course, since we have all the source code that we are fluent at. :D Another thing is... it could also be a test suite for fpWeb both on performance and maintenance which both usually become main

Re: [fpc-pascal] Forum merger

2009-12-13 Thread Bee Jay
if someone appear with the native pascal forum solution we will create a site based on it and merge everything there :) Is there someone out there had done this (pascal forum)? AFAIK, I only knew one: Powtils forum (which is now closed). Honestly, I never used fpWeb because I was a Powtils

Re: [fpc-pascal] Forum merger

2009-12-13 Thread Bee Jay
Time? I believe I could make a basic forum application within a few days, in my spare time, using ExtPascal. But I myself don't think ExtPascal would be the correct tool to be used since it creates a non search engine friendly application (because of Ajax). I think fpWeb would be the

Re: [fpc-pascal] Forum merger

2009-12-14 Thread Bee Jay
When we planned to move the lazarus forum the same discussion was started. It took months without result. Because not many people know how to build a web application using pascal. That's why I propose some of us who have experience with that to build one. This project can be used to

Re: [fpc-pascal] Forum merger

2009-12-15 Thread Bee Jay
So Bee, register a project on SourceForge or GitHub and start coding. Maybe somebody will contribute at some stage. Like they said in some old movie: Build it and they will come. If I made one, then I'll make it using Powtils (fully CGI) or ExtPascal (fully Ajax) because that's what I

[fpc-pascal] midlet pascal and fpc

2009-12-16 Thread Bee Jay
Hi all, I just knew recently that Midlet Pascal went open source, through FPC wiki. Quite a good news, IMO. Since it's now open source, is it possible to start working on java byte code generator in FPC based on Midlet Pascal code? This will help FPC targetting mobile devices that only

Re: [fpc-pascal] Forum merger

2009-12-17 Thread Bee Jay
So I would recommend going with something closer to home (part of FPC) - like fpWeb. This gives much better certainty that it will be continuously maintained - even if that only means no new feature but at least compilable with latest FPC. Yes, that's also the main reason of mine to build

Re: [fpc-pascal] Forum merger

2009-12-17 Thread Bee Jay
Well, fpWeb is winner, yes? Bee can create a sourceforge project? If it would use fpWeb then I refuse to be the project owner because I almost know nothing about fpWeb. I even intend to study fpWeb from this project. The project owner should be someone who knows how to build (at least)

Re: [fpc-pascal] Forum merger

2009-12-17 Thread Bee Jay
The advantage of fpweb is that it doesn't matter whether you want to use an apache module, plain cgi or fastcgi, or in a standalone server. It works with all 4 types. Is there any demo or documentation about them, especially the FCGI? I only saw CGI demos and very lack of documentation

[fpc-pascal] mixin feature

2009-12-23 Thread Bee Jay
Hi all, I'm now studying Qooxdoo (JS framework) to make ExtPascal-like tool based on it. Qooxdoo's OO implementation has mixin feature (http://en.wikipedia.org/wiki/Mixin ). Since this feature is not provided by object pascal language, I have trouble writing the library wrapper. For the

Re: [fpc-pascal] mixin feature

2009-12-24 Thread Bee Jay
I don't think class helpers are a real language instrument. They are more a workaround for certain cases when other classes are set in stone. I know, class helper is only a work around until pascal supports real mixin feature. But, with that I'm still able to see a workaround. I think I

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-24 Thread Bee Jay
On 24 Mei 2010, at 22:13, Leonardo M. Ramé wrote: With CGI you have one advantage over Apache Modules or Embedded web servers, as far as your actions do their work without errors, you don't have to worry about possible memory leaks related to concurrency problems or threads or anything

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-24 Thread Bee Jay
On 25 Mei 2010, at 24:10, Marcos Douglas wrote: If it's already running, the CGI app acts as request proxy for the FCGI app Would not the oposite? Because FCGI app is the true worker app. CGI proxy is lightweight app. It does nothing but redirecting incoming request and outgoing response,

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-24 Thread Bee Jay
On 25 Mei 2010, at 02:15, Marcos Douglas wrote: On Mon, May 24, 2010 at 3:58 PM, Lee Jenkins l...@datatrakpos.com wrote: Why do you need verification? That information is readily available on ExtPascal's wiki. http://code.google.com/p/extpascal/wiki/GettingStarted Bee said something

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-24 Thread Bee Jay
On 25 Mei 2010, at 11:29, Bee Jay wrote: On 25 Mei 2010, at 02:15, Marcos Douglas wrote: On Mon, May 24, 2010 at 3:58 PM, Lee Jenkins l...@datatrakpos.com wrote: Why do you need verification? That information is readily available on ExtPascal's wiki. http://code.google.com/p

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-25 Thread Bee Jay
On 25 Mei 2010, at 11:32, Bee Jay wrote: Oh, did I mention live debugging? ;) Oh, did I mention that FCGI is an open standardized protocol that is supported by virtually any web servers? That means you could avoid vendor technology locked-in, such as Apache mod or IIS ISAPI. ;) -Bee

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-25 Thread Bee Jay
On 25 Mei 2010, at 14:06, Graeme Geldenhuys wrote: I have never looked at FastCGI before, but what you are descibing is exactly what I wanted to do with CGI. Create a GUI or Service/Daemon application (application server) that the CGI apps talks to. The application server would setup the DB

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-25 Thread Bee Jay
On 25 Mei 2010, at 14:43, Graeme Geldenhuys wrote: My major concern is vendor lock-in. Something we want to avoid at all costs - we have been burnt too many times. So I'll stay away from ExtPascal because that requires ExtJS which is a commercial product you have to purchase (starting at

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-25 Thread Bee Jay
On 25 Mei 2010, at 01:43, Marcos Douglas wrote: On Mon, May 24, 2010 at 3:30 PM, Leonardo M. Ramé martinr...@yahoo.com wrote: Marcos, nobody is saying that you don't have to destroy instances when programming CGI apps. Okay, but if there is not memory leaks... I ever free my objects!

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-25 Thread Bee Jay
On 25 Mei 2010, at 15:12, Michael Van Canneyt wrote: Seems like Graeme is not the only one who is not always listening: Hahahaha... I know. :D When you point a finger, there are three fingers pointing back at you! ;) I said several times before, FastCGI exists since a long time in Free

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-25 Thread Bee Jay
On 25 Mei 2010, at 15:55, Michael Van Canneyt wrote: The CGI gateway is on my todo list, as you know. Now everybody knows. ;) Obviously. I think ExtPascal is promising, but sadly suffers from some major design flaws (garbage collect, thread model); which prevent me from using it: they can

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-25 Thread Bee Jay
On 25 Mei 2010, at 17:36, Michael Van Canneyt wrote: Here I can reliably reproduce the memory corruption. It crashes the output regularly. (with random use, it happens 10-15 times a day, in a test enviromnent). Would you share the test code? The bug is in the garbage collector, which

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-25 Thread Bee Jay
On 25 Mei 2010, at 20:31, Michael Van Canneyt wrote: But maybe the new garbage collector no longer has the problem; in that case, my remarks are void. I hope so. I haven't try the latest SVN either. :D Tell him he should also get rid of the one-thread-per-session model, because it is

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-25 Thread Bee Jay
On 25 Mei 2010, at 23:37, Marcos Douglas wrote: My only doubt is: why to use CGI proxy, not a FCGI? The main purpose of CGI proxy existence is to provide solution for some environments where FCGI setup isn't possible. The other advantages are bonuses. ;) -Bee-

Re: [fpc-pascal] Powtils Apache and Windows Seven 64bits

2010-05-25 Thread Bee Jay
On 26 Mei 2010, at 24:12, Marcos Douglas wrote: If the environment allows use FCGI, you would not CGI gateway? No, because I WANT to use those bonuses. However, by able to use the bonuses, you can't negate the main purpose of its existence. -Bee-

[fpc-pascal] fpweb fcgi: auto shutdown feature

2010-05-28 Thread Bee Jay
Hi all, After a bit studying fpWeb package, especially the FCGI application, I have a feature request to it. Would you (Joost? Michael?) please add auto shutdown (after some idle time) feature to TFCGIApplication? If you had looked at ExtPascal's FCGI implementation, it offers this feature.

Re: [fpc-pascal] fpweb fcgi: auto shutdown feature

2010-05-29 Thread Bee Jay
On 28 Mei 2010, at 23:18, Michael Van Canneyt wrote: Unless Joost does it first, I'll have a look at it next week. But it will be under control of an option, and this option will be 'off' by default. Of course. I agree with that. It'd be nicer if the option can be set from the config file,

Re: [fpc-pascal] fpweb fcgi: auto shutdown feature

2010-05-29 Thread Bee Jay
On 29 Mei 2010, at 15:36, Michael Van Canneyt wrote: The FCL FastCGI class does not have a config file. If you want that, you must implement that yourself. Alright then. It is one of the flaws of ExtPascal's implementation: everything is tied together, using fixed formats for config files.

Re: [fpc-pascal] fpweb fcgi: auto shutdown feature

2010-05-29 Thread Bee Jay
On 29 Mei 2010, at 16:52, Michael Van Canneyt wrote: Yes, but he chooses a very restrictive approach. As it is, you must convince him to change something. With the modular component approach, you don't need to wait. Why should I have to wait? I got the source code, all of them. If I need

Re: [fpc-pascal] fpweb fcgi: auto shutdown feature

2010-05-30 Thread Bee Jay
On 28 Mei 2010, at 23:18, Michael Van Canneyt wrote: I'll have a look at it next week. But it will be under control of an option, and this option will be 'off' by default. Another thought about this feature. I think it'd be nice if there's an option to shutdown the app gracefully. What I

[fpc-pascal] time_fractionBetween bug?

2010-05-30 Thread Bee Jay
Hi all, Try the following code snippet: uses DateUtils; var a,b: TDateTime; i: integer; begin a := EncodeDateTime(2010, 1, 1, 0, 0, 0, 0); for i := 0 to 9 do begin b := EncodeDateTime(2010, 1, 1, 0, 0, i, 0); Writeln(SecondsBetween(a,b):3); end; end; I think the result

Re: [fpc-pascal] fpweb fcgi: auto shutdown feature

2010-05-30 Thread Bee Jay
On 30 Mei 2010, at 19:06, Michael Van Canneyt wrote: But if you want it, it's really easy to do in fcl-web. Create a webmodule, implement the OnRequest handler of the module, and add Application.Terminate:=True; Handled:=True; in the handler. Then register the module with the name

Re: [fpc-pascal] time_fractionBetween bug?

2010-05-30 Thread Bee Jay
On 30 Mei 2010, at 19:18, Marco van de Voort wrote: IIRC this is normal and delphi compatible and due to TDatetime being a floating point type. No, it's not Delphi compatible. Delphi's result is alot worst, at least on Delphi 7. And I didn't ask to make it truly compatible with Delphi. ;)

Re: [fpc-pascal] time_fractionBetween bug?

2010-05-30 Thread Bee Jay
On 30 Mei 2010, at 19:28, Jonas Maebe wrote: Then it shouldn't use floating point. Ever. Well... then it shouldn't be using FPC? ;) Ok, forget about the rocket launcher. The important note that I think need to be addressed is the bug only occurs if the milisecond part of a or b is 0. Other

Re: [fpc-pascal] time_fractionBetween bug?

2010-05-31 Thread Bee Jay
On 30 Mei 2010, at 19:47, Jonas Maebe wrote: They should not be using any FPC functionality relying on floating point. Any person who uses floating point should know that by definition it is inexact (ranging from a little to enormously, depending on what you do). I understand. That last

Re: [fpc-pascal] time_fractionBetween bug?

2010-05-31 Thread Bee Jay
But if I changed the milisecond part of a or b or both to anything but 0 then the result is correct. Correction... the bug arises NOT only if the msec part is 0. The bug arises if msec part of both variables are EQUAL. If they are different, at least 1 msec, then those functions produce

Re: [fpc-pascal] PChar AnsiString

2010-06-02 Thread Bee Jay
On 1 Jun 2010, at 22:13, spir ☣ wrote: (*) And to some more constructs in other languages, like foreach (*the* feature I miss in freepascal): foreach name in names do ... end; http://wiki.freepascal.org/for-in_loop -Bee- ___ fpc-pascal maillist

Re: [fpc-pascal] PChar AnsiString -- for-in loop enumerator

2010-06-02 Thread Bee Jay
On 2 Jun 2010, at 20:09, spir wrote: http://wiki.freepascal.org/for-in_loop Is this implemented? (unable to make it work -- the compiler refuses the for...in notation) AFAIK, yes. At least, I know it's already in trunk since a while ago. Never use it myself though. -Bee-

Re: [fpc-pascal] The new book: WEB and database programming with fpc and Lazarus for newbies and professionals

2010-06-17 Thread Bee Jay
On 18 Jun 2010, at 02:58, Burkhard Carstens wrote: What about ExtJS being GPL licensed? Got a developer license? Yes, if you make commercial apps. Here you refere to the ExtJS components of fpweb, right? IOW. if those are (or will be) universal, they should get renamed? (see, you are in