Re: [fpc-pascal] Download EmbWeb sources

2011-07-25 Thread Lee Jenkins
On 7/25/2011 11:17 AM, Marco van de Voort wrote: In our previous episode, Lee Jenkins said: M:\lazarus_current\lazarus\fpc\2.5.1\bin\i386-win32>fppkg install embweb The FPC Package tool encountered the following error: [embweb] Package fcl-web is not available M:\lazarus_current\lazarus\

Re: [fpc-pascal] Download EmbWeb sources

2011-07-23 Thread Lee Jenkins
On 7/23/2011 10:41 PM, Lee Jenkins wrote: On 7/23/2011 8:27 PM, Lee Jenkins wrote: I've tried again to use fppkg to download embweb and I guess I still need 2.5.1 or something for it to work. Can I download the embweb source and package independently? Looking around the svn I don't

Re: [fpc-pascal] Download EmbWeb sources

2011-07-23 Thread Lee Jenkins
On 7/23/2011 8:27 PM, Lee Jenkins wrote: I've tried again to use fppkg to download embweb and I guess I still need 2.5.1 or something for it to work. Can I download the embweb source and package independently? Looking around the svn I don't see embweb anywhere. I see there is

[fpc-pascal] Download EmbWeb sources

2011-07-23 Thread Lee Jenkins
I've tried again to use fppkg to download embweb and I guess I still need 2.5.1 or something for it to work. Can I download the embweb source and package independently? Looking around the svn I don't see embweb anywhere. Thanks, -- Warm Regards, Lee _

[fpc-pascal] Request Suggestions - XML Interface

2011-07-22 Thread Lee Jenkins
I'm writing a small program which utilizes PascalScript. All objects provided to scripts are Interface instances with reference counting. I am making available to scripts, the basic functionality most would need to use in the script such as HTTPClient, JSON, StringBuilder, etc. I would lik

Re: [fpc-pascal] Re: Object Files

2011-07-19 Thread Lee Jenkins
On 7/19/2011 9:40 AM, leledumbo wrote: since he's changing the OS but not the processor/architecture Right, I forgot this one. Thanks for clarifying. COFF IS cross-OS but not cross architecture, though many other object formats aren't. OK, from a practical standpoint, I can't interchange obj

[fpc-pascal] Object Files

2011-07-18 Thread Lee Jenkins
Are object files platform dependent? Can you use object files created on Windows with a project compiled on Linux? Never used them before. Something tells me they ARE platform independent since they have to be linked in. -- Warm Regards, Lee __

Re: [fpc-pascal] JSON - RTTI streaming.

2011-05-17 Thread Lee Jenkins
On 1/5/2011 6:12 PM, Michael Van Canneyt wrote: Hello, For those of you that need JSON support: I have committed support for streaming published properties (properties for which RTTI is generated) from objects to JSON and vice versa, in a unit fpjsonrtti. Not the full streaming as implemented

[fpc-pascal] OLE & COM Support

2011-04-29 Thread Lee Jenkins
Hey guys, How is the COM support in FPC nowadays? I have a project coming up that I may use FPC for. -- Warm Regards, Lee ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Pascal Scripting Engines

2010-12-10 Thread Lee Jenkins
On 12/10/2010 2:18 PM, Andrew Brunner wrote: Hi there, I'm considering pascal scripting engines in stead of hot-swaped compiled stored objects/dlls for server back-end development for clients (namely WebSocket/JS). I came across a few relatively recent solutions and wanted to know if there are a

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

2010-05-25 Thread Lee Jenkins
Marcos Douglas wrote: Hi Michael, On Tue, May 25, 2010 at 2:19 PM, Michael Van Canneyt wrote: You can do this with CGI or FastCGI proxies. It does seem elaborate, though. How often do you need to restart the FastCGI proxy ? Not often, I would think. I never used FastCGI. I know it stay in me

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

2010-05-25 Thread Lee Jenkins
Marcos Douglas wrote: On Tue, May 25, 2010 at 12:23 PM, Lee Jenkins wrote: Personally, I don't see a problem with the static nature of a apache_mod,ISAPI if you're doing your debugging locally on an embedded server first and then deploying your executable (apache, isapi, fcgi) la

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

2010-05-25 Thread Lee Jenkins
Marcos Douglas wrote: On Tue, May 25, 2010 at 4:14 AM, Bee Jay wrote: 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) t

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

2010-05-24 Thread Lee Jenkins
Marcos Douglas wrote: On Mon, May 24, 2010 at 3:55 PM, Lee Jenkins wrote: LOL. Well, you should always manage your resources regardless, though I think you question was tongue in cheek. I was talking more about the model of how it works. Sorry... what do you mean "model of how it

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

2010-05-24 Thread Lee Jenkins
Marcos Douglas wrote: On Mon, May 24, 2010 at 3:58 PM, Lee Jenkins wrote: Why do you need verification? That information is readily available on ExtPascal's wiki. http://code.google.com/p/extpascal/wiki/GettingStarted I do not need verification. Bee said something and Leonardo resp

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

2010-05-24 Thread Lee Jenkins
Marcos Douglas wrote: On Mon, May 24, 2010 at 3:45 PM, Leonardo M. Ramé wrote: Yes, but some times your FCGI app must run on one of those cheap shared hostings where you can't touch the Apache's httpd.conf file to configure the FCGI application. That's why the CGI proxy/gateway approach is us

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

2010-05-24 Thread Lee Jenkins
Marcos Douglas wrote: On Mon, May 24, 2010 at 2:24 PM, Lee Jenkins wrote: It is more or less a console application. 1. Request come in. 2. CGI Application starts and handles request through stdin/stdout. 3. CGI Application shuts down and release its resources. One application is started and

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

2010-05-24 Thread Lee Jenkins
Marcos Douglas wrote: On Mon, May 24, 2010 at 12:42 PM, Felipe Monteiro de Carvalho wrote: On Mon, May 24, 2010 at 5:26 PM, Marcos Douglas wrote: Don't worry about memory leaks?! But if a do not freed an object e.g. this is continues in memory, even after app ends. No, it doesn't continue in

Re: [fpc-pascal] fpc-xml: SAX_HTML parsing "script" tags

2010-05-16 Thread Lee Jenkins
dmitry boyarintsev wrote: Hello Is there any known way to parse html files with: some script with tricky symbols , like "< >" that ruins the parsing tag? What about using CDATA section? -- Warm Regards, Lee ___ fpc-pasca

Re: [fpc-pascal] a few trivial questions

2010-05-12 Thread Lee Jenkins
Michael Van Canneyt wrote: On Wed, 12 May 2010, spir ☣ wrote: Hello, * TFPList Is there another way to traverse a list than for i :=0 to (list.count - 1) do ... You can use an enumerator with the latest SVN: foreach P in List do That's good news. I wasn't aware that that had been i

Re: [fpc-pascal] fpDoc Question

2010-05-08 Thread Lee Jenkins
Graeme Geldenhuys wrote: On 8 May 2010 15:53, Lee Jenkins wrote: Does fpDoc per chance understand the markup used by pasdoc? Specifically, I used comments like this: fpdoc doesn't use comments from inside the source code. Instead it reads the comments from an external XML file and me

[fpc-pascal] fpDoc Question

2010-05-08 Thread Lee Jenkins
Does fpDoc per chance understand the markup used by pasdoc? Specifically, I used comments like this: {: Particularly useful when applied to THusband or TBoyfriend. } ICleaner interface procedure CleanAfterSelf; end; {: Particularly useful when applied to TWife or TGirlfriend. } IGymnast =

Re: [fpc-pascal] TCgiApplication in cgiapp unit - mostly deprecated

2010-05-03 Thread Lee Jenkins
Marcos Douglas wrote: Lee Jenkins wrote: My goals in its development has been to ensure that the framwork overall: A) Not tied to any particular GUI front-end, they should be swappable. I should be able to present my Model/Controller (or other business logic) in different UI's such as

Re: [fpc-pascal] TCgiApplication in cgiapp unit - mostly deprecated

2010-05-03 Thread Lee Jenkins
Graeme Geldenhuys wrote: Our CGI applications (three of them) are just one part of our complete product. We have a desktop GUI part as well. The CGI applications reuse a lot of code from the desktop. We implement the Model-GUI-Mediator design pattern, to split UI code from Business Domain code.

Re: [fpc-pascal] TCgiApplication in cgiapp unit - mostly deprecated

2010-05-03 Thread Lee Jenkins
Lee Jenkins wrote: Here is a short screencast of the framework using the Flex UI layer. Note that its pretty old and the framework has come a long way since this screencast and as I said, I'm going through some refactoring now since I have to change some things for the customer a

Re: [fpc-pascal] TCgiApplication in cgiapp unit - mostly deprecated

2010-05-03 Thread Lee Jenkins
Marcos Douglas wrote: Hi Lee, So I'm taking advantage of the extra time and refactoring the framework a bit and implementing a DHTML UI layer now. We looked at ExtJS as well as YahooUI, OpenLaszlo and a few of the others and eventually decided on Dojo javascript tookit, but different UI layer

Re: [fpc-pascal] XML Iteration

2010-05-02 Thread Lee Jenkins
Frank Church wrote: When I try it the /bookstore/book[price>35.00]/title I get the error Conversion from node set to number not possible. The error is the same whether I use a // or a / . Are we using the same version? Marco's notes refer to updates made in FPC 2.4.1 and I am using 2.2.4 wi

Re: [fpc-pascal] XML Iteration

2010-05-02 Thread Lee Jenkins
Frank Church wrote: I have run it with some success. What I find missing now is the ability to give the correct output for a an index value, such as //bookstore/book[1]/title. It works on the w3schools version but not in the FPC one. Try changing to only using one front slash instead of tw

Re: [fpc-pascal] TCgiApplication in cgiapp unit - mostly deprecated

2010-05-02 Thread Lee Jenkins
Graeme Geldenhuys wrote: On 2 May 2010 17:17, Marcos Douglas wrote: I need to rewrite a Desktop app, coded in Delphi 7, to Web. The options: PHP, Java, C# and Pascal. For me, FreePascal would be a good Some reasons: * Free Pascal is open source (always available and no vendor lock-in) * Fre

Re: [fpc-pascal] XML Iteration

2010-05-02 Thread Lee Jenkins
Frank Church wrote: I am having some problems with XPath. EvaluateXPathExpression raises exceptions with some search strings and I am not sure if it is my limited knowledge of XPath, or a buggy XPath implementation. The attached demo uses the example from http://www.w3schools.com/xpath/xpat

Re: [fpc-pascal] XML Iteration

2010-04-28 Thread Lee Jenkins
Luiz Americo Pereira Camara wrote: Frank Church escreveu: I am glad to see someone with an interest in FPCs XML. Do you have some experience with XPath usage in PFC/Lazarus? Luiz, In Unit1.pas: XPathResult := EvaluateXPathExpression('//Descricao', XmlTree.DocumentElement); if (XPathR

Re: [fpc-pascal] XML Iteration

2010-04-27 Thread Lee Jenkins
Frank Church wrote: I am glad to see someone with an interest in FPCs XML. Do you have some experience with XPath usage in PFC/Lazarus? No, other than some cursory google searches. I figured I'd be asking about that myself soon. -- Warm Regards, Lee _

[fpc-pascal] XML Iteration

2010-04-27 Thread Lee Jenkins
This isn't still true for latter version of FPC like 2.4.1, right? http://wiki.freepascal.org/XML_Tutorial#Printing_the_names_of_nodes "A quick note on navigating the DOM tree: When you need to access nodes in sequence, it is best to use FirstChild and NextSibling properties (to iterate forwa

Re: [fpc-pascal] ReadXMLFile() fails reading a xml file

2010-02-02 Thread Lee Jenkins
Michael Van Canneyt wrote: On Tue, 2 Feb 2010, Graeme Geldenhuys wrote: Hi, Part of creating a new cross-platform installer application, I'm trying to read an XML file that contains UTF-8 characters, but I get the following error. Unicode support is very important, because the setup progra

Re: [fpc-pascal] Forum merger

2009-12-22 Thread Lee Jenkins
Graeme Geldenhuys wrote: Bee Jay wrote: Yes, and it would take forever if no one dare to start it. ;) 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". Was "Fie

[fpc-pascal] Enhanced RTTI?

2009-10-23 Thread Lee Jenkins
I don't have Delphi 2010 yet and not sure if I'll sit this version out or not, since I'm quite happy with D2009 so I haven't had a chance to play with it yet. Here's a great blog post on it: http://robstechcorner.blogspot.com/2009/09/delphi-2010-rtti-basics.html Has there been any discussion

Re: [fpc-pascal] Who said Pascal isn't popular

2009-10-16 Thread Lee Jenkins
章宏九 wrote: I don't agree with the idea that "BEGIN...END" determines the failure of Pascal, as syntax completion is for that. Both "BEGIN...END" and "{...}" are finished in the same time if they were done by computer. On the contrary, it is part of the way of Pascal being elegant. Its very am

Re: [fpc-pascal] A question or two regarding the FPC

2009-05-09 Thread Lee Jenkins
fpcl...@silvermono.co.za wrote: The dentist's reply was that this was a special version of windows specifically designed to run medical related critical software. Not being an offensive character, I gave him the benefit of the doubt. While he was attempting to start the 'tooth profiling' Pr

Re: [fpc-pascal] Credit Card validation unit

2009-04-13 Thread Lee Jenkins
ik wrote: Hello, I have created a credit card validation unit written in Pascal. At the moment you can find it (only) in the following address: http://github.com/ik5/credit-card-library/tree/ I hope that later this week I'll create an archive with a first beta release. Please also read the

Re: [fpc-pascal] for .. in loop implementation

2009-01-23 Thread Lee Jenkins
leledumbo wrote: OK, I've read http://wiki.freepascal.org/Modernised_Pascal this (and the FAQ as well). I disagree with any statement saying that for .. in loop is only a type-saver. It's a good language extension and should be included (since Delphi already have this, it will also be a good id

Re: [fpc-pascal] Create appending data to existing exe file?

2008-12-14 Thread Lee Jenkins
Tomas Hajny wrote: On 13 Dec 08, at 10:40, Lee Jenkins wrote: Is it possible to append data to an existing executable file and have that file run correctly? I'm adding scripting features to one of our products and I wanted it so that our software can create a standalone executable fo

[fpc-pascal] Create appending data to existing exe file?

2008-12-13 Thread Lee Jenkins
Hi all, Is it possible to append data to an existing executable file and have that file run correctly? I'm adding scripting features to one of our products and I wanted it so that our software can create a standalone executable for the end user. My plan was to create the base executable fi

Re: [fpc-pascal] Regular expressions

2008-11-19 Thread Lee Jenkins
Michael Van Canneyt wrote: On Wed, 19 Nov 2008, Graeme Geldenhuys wrote: Hi, I'm taking up the challenge in writing a Free Pascal & fpGUI newsgroup reader. The main reason is really to archive the news content for off-line processing, so that I can extend the WebNews (cgi application) used by

Re: [fpc-pascal] Pascal equivalent to split/explode commands?

2008-08-11 Thread Lee Jenkins
Francisco Reyes wrote: Is there anything simmilar to the functions other languages have split/explode? I will be reading a delimited file, usually tabs, and want to parse it into variables or some form of array. var SL: TStringList; begin SL := TStringList.Create; try SL.Delimiter

Re: [fpc-pascal] XML DOM and HTML

2008-06-17 Thread Lee Jenkins
Johannes Nohl wrote: Dear list, dear Michael! There are multiple problems with HTML parsing: HTML is not a well-formed XML document, because - the tags are case insensitive (in XML they are case sensitive) - Not all tags must be closed. If the HTML is XHTML, then the DOM unit can be used to par

[fpc-pascal] Installing 2.3.1

2008-06-17 Thread Lee Jenkins
Hey, all is there a snapshot available for 2.3.1? I tried downloading the fpbuild kit and go woefully lost :) I'd like to upgrade, but not sure how get a good binary installation on my Win32 box. Thanks a bunch. -- Warm Regards, Lee ___ fpc-p

Re: [fpc-pascal] IPC on Windows?

2008-06-11 Thread Lee Jenkins
Lee Jenkins wrote: Vincent Snijders wrote: Lee Jenkins schreef: Does the FPC IPC implementation work on windows? I have not used it, but yes, it works. Vincent I fished around and found the ipc demo in fpc directory, work great. I'm curious if anyone can tell me in abou

Re: [fpc-pascal] IPC on Windows?

2008-06-11 Thread Lee Jenkins
Vincent Snijders wrote: Lee Jenkins schreef: Does the FPC IPC implementation work on windows? I have not used it, but yes, it works. Vincent I fished around and found the ipc demo in fpc directory, work great. I'm curious if anyone can tell me in about the SendMessage m

Re: [fpc-pascal] IPC on Windows?

2008-06-11 Thread Lee Jenkins
Vincent Snijders wrote: Lee Jenkins schreef: Does the FPC IPC implementation work on windows? I have not used it, but yes, it works. Vincent Thanks Vincent. I'm going to be using it on linux box but want to write and test on my Windows machine. Thanks again, -- Warm Regards,

[fpc-pascal] IPC on Windows?

2008-06-11 Thread Lee Jenkins
Does the FPC IPC implementation work on windows? -- Warm Regards, Lee ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC scripting suport

2008-05-29 Thread Lee Jenkins
MihaiR wrote: Hello all, Is there any component for FPS/Lazarus I can succesfully use for scripting? I'd like to build an application that can be enhanced by some simple functions stored into an external script file so that functions can be edited. There are simple functions with few parameters