Re: [fpc-pascal] Implementing Factory Method with Pascal

2015-11-28 Thread Inoussa OUEDRAOGO
> There is no golden rule which encapsulates (sic) all situations. +1 > People should use their brain and choose a pattern or methodology > judiciously, +1, after all that is what engineering is all about. -- Inoussa O. ___ fpc-pascal maillist -

Re: [fpc-pascal] Parsers and Unicode

2015-07-25 Thread Inoussa OUEDRAOGO
2015-07-25 9:26 GMT+00:00 Michael Van Canneyt mich...@freepascal.org: On Fri, 24 Jul 2015, Mark Morgan Lloyd wrote: When writing something like a parser, does FPC have anything that exposes the properties of each Unicode codepoint? I'm thinking in particular of Unicode properties like

Re: [fpc-pascal] Parsers and Unicode

2015-07-25 Thread Inoussa OUEDRAOGO
2015-07-25 11:11 GMT+00:00 Michael Van Canneyt mich...@freepascal.org: That would be Inoussa Ouedraogo :) (hope I spelled it correctly) Definitely :) (ehm, you miss an é as the exact spell is Ouédraogo:) ) -- Inoussa O. ___ fpc-pascal maillist

Re: [fpc-pascal] WST SOAP HTTP CONTENT TYPE

2014-06-05 Thread Inoussa OUEDRAOGO
Hi 2014-06-03 10:17 UTC, Dimitrios Chr. Ioannidis d.ioanni...@nephelae.eu: Hi, FYI, in a wst soap client talking to a .net web service i find out, that for SOAP calls, if the CONTENT-TYPE http header ( i'm using fpc-http-protocol ) doesn't have the 'text/xml' plus the 'charset=UTF-8'

Re: [fpc-pascal] Web Service Toolkit (WST) release 0.6

2014-05-09 Thread Inoussa OUEDRAOGO
2014-05-09 9:45 UTC, Dimitrios Chr. Ioannidis d.ioanni...@nephelae.eu: Hi, Στις 9/5/2014 3:02 πμ, ο/η Inoussa OUEDRAOGO έγραψε: Hello, I am glad to announce the 0.6 release of the Web Service Toolkit. thank you very much for sucha great tool kit. PS: Could you plz create a 0.6 tag

[fpc-pascal] Web Service Toolkit (WST) release 0.6

2014-05-08 Thread Inoussa OUEDRAOGO
Hello, I am glad to announce the 0.6 release of the Web Service Toolkit. What is new in the 0.6 release : License change : * All the code in WST is now using the FPC' RTL license (modified LGPL see COPYING.modifiedLGPL) WSDL/XSD Parsers : * Referenced external schemes parsing :

Re: [fpc-pascal] Adding method dynamically to a class

2012-06-20 Thread Inoussa OUEDRAOGO
Think of a plug-able system. I have an engine, and code to execute. Instead of compile everything to an ELF/PE, I place code on dynamic shard library, and load it on run time when needed. The idea is that the engine will not be rewritten for every new request (that comes often), because

Re: [fpc-pascal] Why is Random(255) some 529x slower compared to Delphi 7?

2011-12-07 Thread Inoussa OUEDRAOGO
2011/12/7 Peter pe...@pblackman.plus.com: Graeme, I would recommend using Marsaglia's XORShift. Blisteringly fast, high quality statistically, and very easy to implement. http://en.wikipedia.org/wiki/Xorshift For those who want to test it here is an Object Pascal implementation. --

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

2011-10-22 Thread Inoussa OUEDRAOGO
Ok, searching some more I see that select scope_identity() could return the generated primary key. But how to get the value? Better use the RETURNING* clause** as it clearly state the column value you are expecting; The scope_identity() may be a source of subtle bugs that are difficult to

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

2011-07-27 Thread Inoussa OUEDRAOGO
Now you've made me curious... where is it available? You should ask Inoussa. I don't think he has published it yet. I have a first version available here, but I'm not sure if I can distribute it. Then I'll wait until it's ready. I'll contain my curiosity till then ^^ I just sent the live

Re: [fpc-pascal] Module or Plugin or similar howto implement?

2010-07-21 Thread Inoussa OUEDRAOGO
2010/7/21 Eduardo emor...@xroff.net: On Tue, 20 Jul 2010 10:21:01 + Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk wrote: Reimar Grabowski wrote: On Mon, 19 Jul 2010 17:13:15 +0200 Eduardo emor...@xroff.net wrote: I'm developing an app and need to extend its functionality via

Re: [fpc-pascal] INDY 10 for FPC

2009-07-04 Thread Inoussa OUEDRAOGO
2009/7/4 Henrik Genssen henrik.gens...@mediafactory.de: Hi, does someone know where to find a current indy port (or cvs / svn) for INDY10 for FPC / Lazarus? The Indy development source page is at http://www.indyproject.org/Sockets/Download/DevSnapshot.EN.aspx There daily snapshot at

Re: [fpc-pascal] If an Assert fails in constructor, then destructor called (?)

2009-06-30 Thread Inoussa OUEDRAOGO
2009/6/29 Tom Verhoeff t.verho...@tue.nl: While tracing a nasty bug (?), I discovered the hard way that when an Assert is done in a constructor, and it fails, then the destructor (Destroy) is automatically called. Indeed, when an exception is raised in the constructor, be it an assert

Re: [fpc-pascal] QWord/UInt64 and Range Check Errors

2009-06-25 Thread Inoussa OUEDRAOGO
2009/6/25 Jonas Maebe jonas.ma...@elis.ugent.be: On 25 Jun 2009, at 20:14, Inoussa OUEDRAOGO wrote: 2009/6/25 Jonas Maebe jonas.ma...@elis.ugent.be: On 25 Jun 2009, at 19:58, Ruediger Hahn wrote: I am just wondering if this is a bug: Can anyone tell me why I get a range check error while

Re: [fpc-pascal] QWord/UInt64 and Range Check Errors

2009-06-25 Thread Inoussa OUEDRAOGO
2009/6/25 Jonas Maebe jonas.ma...@elis.ugent.be: On 25 Jun 2009, at 20:33, Inoussa OUEDRAOGO wrote: 2009/6/25 Jonas Maebe jonas.ma...@elis.ugent.be: On 25 Jun 2009, at 20:14, Inoussa OUEDRAOGO wrote: as it makes one doubtfull about the correctness of the program( In my case I debugged

Re: [fpc-pascal] QWord/UInt64 and Range Check Errors

2009-06-25 Thread Inoussa OUEDRAOGO
2009/6/25 Jonas Maebe jonas.ma...@elis.ugent.be: On 25 Jun 2009, at 20:52, Ruediger Hahn wrote: So what do I have to do then? It seems that a cast is the best solution: code MyConst : UInt64 = UInt64($); /code Am I right? Yes, indeed. That will always work and is

Re: [fpc-pascal] QWord/UInt64 and Range Check Errors

2009-06-25 Thread Inoussa OUEDRAOGO
2009/6/25 Jonas Maebe jonas.ma...@elis.ugent.be: On 25 Jun 2009, at 20:58, Inoussa OUEDRAOGO wrote: 2009/6/25 Jonas Maebe jonas.ma...@elis.ugent.be: It's equally accurate. A hex number does not contain any sign information, so both interpretations are valid. so it could be parsed

[fpc-pascal] Rounding a Double to QWord

2009-06-17 Thread Inoussa OUEDRAOGO
Hi Is there a way to round a floating point (Double) value that is larger that High(Int64) to QWord ? Note that Round() returns a Int64. Best regards. -- Inoussa O. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] number of cpu cores

2008-12-15 Thread Inoussa OUEDRAOGO
2008/12/14 Marc Weustink m...@dommelstein.net: Mattias Gaertner wrote: At the moment I have the attached function. It returns only 4 on a 2 x quad core Mac. Maybe someone can test under windows? Return 2 on Intel Core Duo -- Inoussa O. ___

Re: [fpc-pascal] EOLESysError calling CreateOLEObject

2008-07-22 Thread Inoussa OUEDRAOGO
Apparantly when I converted the headers, I thought there only was one ID. However it seems that classids, and the ids in interfaces are different. I don't know enough from com to understand the difference, classids are used to identify implementation objects, while iid identify interfaces as

Re: [fpc-pascal] EOLESysError calling CreateOLEObject

2008-07-22 Thread Inoussa OUEDRAOGO
2008/7/22 Marco van de Voort [EMAIL PROTECTED]: Apparantly when I converted the headers, I thought there only was one ID. However it seems that classids, and the ids in interfaces are different. I don't know enough from com to understand the difference, classids are used to identify

Re: [fpc-pascal] Webservice from .Net

2008-07-10 Thread Inoussa OUEDRAOGO
Hi, 2008/7/9 [EMAIL PROTECTED] [EMAIL PROTECTED]: I build webservice app with .Net and connect to client app with fpc. I used wst unit. But i have problem with WSDL translate result using the Lazarus IDE. There is no parameter/function like wst samples. Can anyone help me? or give the

Re: [fpc-pascal] Trim db-fieldnames, or not?

2008-04-19 Thread Inoussa OUEDRAOGO
2008/4/18, Joost van der Sluis [EMAIL PROTECTED]: Hi all, In several places you can specify a list of fieldnames, seperated by semicolons. For example: 'field1;field2'. Question is: should this be allowed: 'field1; field2'? Or should a Field not found: ' field2' exception occur? (Note

Re: [fpc-pascal] Trim db-fieldnames, or not?

2008-04-19 Thread Inoussa OUEDRAOGO
2008/4/19, Joost van der Sluis [EMAIL PROTECTED]: Op zaterdag 19-04-2008 om 16:53 uur [tijdzone +0100], schreef Inoussa OUEDRAOGO: 2008/4/18, Joost van der Sluis [EMAIL PROTECTED]: Hi all, In several places you can specify a list of fieldnames, seperated by semicolons

Re: [fpc-pascal] XMLRPC in FPC

2008-04-14 Thread Inoussa OUEDRAOGO
I might be mistaken, but WST seems to be geared towards SOAP web services and XMLRPC seems to be a later adition. WST _does support_ XMLRPC, rigth now. Does anyone happen to know about other Pascal libraries that are implementing only XMLRPC , without the need to use WSDL or other

Re: [fpc-pascal] XMLRPC in FPC

2008-04-14 Thread Inoussa OUEDRAOGO
2008/4/14, [EMAIL PROTECTED] [EMAIL PROTECTED]: On Mon, Apr 14, 2008 at 02:07:15PM +0100, Inoussa OUEDRAOGO wrote: I might be mistaken, but WST seems to be geared towards SOAP web services and XMLRPC seems to be a later adition. WST _does support_ XMLRPC, rigth now. Does

Re: [fpc-pascal] Looking for a Firebird book?

2008-04-11 Thread Inoussa OUEDRAOGO
2008/4/11, Matt Emson [EMAIL PROTECTED]: Michael Van Canneyt wrote: And it is exactly why I can't use MySQL, MSSQL: they don't have sequences or generators. I need the ID BEFORE I insert the record, not after. YES!! This is also missing from SQL Server... or at least, using a GUID

Re: [fpc-pascal] Looking for a Firebird book?

2008-04-09 Thread Inoussa OUEDRAOGO
2008/4/9, Michael Van Canneyt [EMAIL PROTECTED]: I do it like that too, because the security model of any RDBM is ridiculous, firebird is no exception. Security must be specified at a functional level, never at the table level. Absolutely. And security model at the RDBM level prevents

Re: [fpc-pascal] fcl-db: oracle SP

2008-04-07 Thread Inoussa OUEDRAOGO
BTW... 'select sf from dual' despite the syntax very common is still not working, raising an unhandled AV. I think it's more than just syntax or parsing problem. :( For a pipelined function, the syntax is : select * from table( sf() ) The other syntax ( 'select sf from dual' ) is for simple

Re: [fpc-pascal] fcl-db: oracle SP

2008-04-07 Thread Inoussa OUEDRAOGO
2008/4/7, Bee [EMAIL PROTECTED]: I'm new to Oracle. For a pipelined function, the syntax is : select * from table( sf() ) The other syntax ( 'select sf from dual' ) is for simple function , which returns single value. What's pipelined function? select * from table(sf()) seems to

[fpc-pascal] Has someone succeded to make an apache 2.2 module on linux (x86) ?

2007-10-25 Thread Inoussa OUEDRAOGO
Hi, Using Ubuntu 7.04, Apache 2.2.3, fpc 2.3.1 r8922 In the request handler ( content generator handler ) I got some weird data in r^.handler. It does work on windows XP. Any tips? Thanks -- Inoussa O. mod_wst.lpr Description: Binary data wst-module.conf Description: Binary data

Re: [fpc-pascal] Has someone succeded to make an apache 2.2 module on linux (x86) ?

2007-10-25 Thread Inoussa OUEDRAOGO
Hi Michael I have it working with Apache 2.2.4, out of the box ? On what platform OS(Linux distribution and version?) + fpc(version ?) Thanks -- Inoussa O. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] Web Service Toolkit now has a newsgroup

2006-11-18 Thread Inoussa OUEDRAOGO
Hi, The Web Service Toolkit now has a newsgroup hosted at news://news.dxmachine.com/public.wst Best regards, Inoussa. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] memory leak detection using FPC

2006-09-19 Thread Inoussa OUEDRAOGO
hi I reported a bug for interface reference counting at http://www.freepascal.org/mantis/view.php?id=7281 Bellow is the test program. Regards, Inoussa. program test_intf; {$mode objfpc}{$H+} uses SysUtils; type ITest = interface procedure DoIt(AMsg : string);