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 11:11 GMT+00:00 Michael Van Canneyt : > 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 mail

Re: [fpc-pascal] Parsers and Unicode

2015-07-25 Thread Inoussa OUEDRAOGO
2015-07-25 9:26 GMT+00:00 Michael Van Canneyt : > > > 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 BidiMirroring,

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

2014-06-05 Thread Inoussa OUEDRAOGO
Hi 2014-06-03 10:17 UTC, Dimitrios Chr. Ioannidis : > 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' > like this 'text/xml;

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 : > 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

[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 : and

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), becaus

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

2011-12-07 Thread Inoussa OUEDRAOGO
2011/12/7 Peter : > 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. -- Inoussa O. hrandom.pas

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

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

2010-07-21 Thread Inoussa OUEDRAOGO
2010/7/21 Eduardo : > On Tue, 20 Jul 2010 10:21:01 + > Mark Morgan Lloyd wrote: > >> Reimar Grabowski wrote: >> > On Mon, 19 Jul 2010 17:13:15 +0200 >> > Eduardo wrote: >> > >> >> I'm developing an app and need to extend its functionality via >> >> external modules or plugins. Currently i'm t

Re: [fpc-pascal] INDY 10 for FPC

2009-07-04 Thread Inoussa OUEDRAOGO
2009/7/4 Henrik Genssen : > 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 http://indy.fulgan.com/ZIP/ ( e

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

2009-06-30 Thread Inoussa OUEDRAOGO
2009/6/29 Tom Verhoeff : > 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" exception or not, the

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

2009-06-25 Thread Inoussa OUEDRAOGO
2009/6/25 Jonas Maebe : > > On 25 Jun 2009, at 20:58, Inoussa OUEDRAOGO wrote: > >> 2009/6/25 Jonas Maebe : >>> >>> It's equally accurate. A hex number does not contain any sign >>> information, >>> so both interpretations are valid. >>

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

2009-06-25 Thread Inoussa OUEDRAOGO
2009/6/25 Jonas Maebe : > > 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: >> >> MyConst : UInt64 = UInt64($); >> >> Am I right? > > Yes, indeed. That will always work and is completely safe. Agreed.

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

2009-06-25 Thread Inoussa OUEDRAOGO
2009/6/25 Jonas Maebe : > > On 25 Jun 2009, at 20:33, Inoussa OUEDRAOGO wrote: > >> 2009/6/25 Jonas Maebe : >>> >>> On 25 Jun 2009, at 20:14, Inoussa OUEDRAOGO wrote: >>> >>>> as it makes one doubtfull about >>>> the correctness

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

2009-06-25 Thread Inoussa OUEDRAOGO
2009/6/25 Jonas Maebe : > > On 25 Jun 2009, at 20:14, Inoussa OUEDRAOGO wrote: > >> 2009/6/25 Jonas Maebe : >>> >>> 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 &g

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

2009-06-25 Thread Inoussa OUEDRAOGO
2009/6/25 Jonas Maebe : > > 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 evaluating constants" with the following simple >> program: >> >> >> program Project1; >> >> const >> MyVar : UInt64 = $F

[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 http://lists.freepascal.org

Re: [fpc-pascal] number of cpu cores

2008-12-15 Thread Inoussa OUEDRAOGO
2008/12/14 Marc Weustink : > 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. ___ fpc-pascal maillis

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

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

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 tu

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 pla

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?

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. > > > &g

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] 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,

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

2008-04-09 Thread Inoussa OUEDRAOGO
Hi, 2008/4/9, Graeme Geldenhuys <[EMAIL PROTECTED]>: > On 09/04/2008, Bee <[EMAIL PROTECTED]> wrote: > > > > I used to think that way too. But, based on my personal experience, in > > certain conditions and requirements, implementing logic in database is > > inevitable. That's why many databa

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
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(s

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 simpl

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 http://lists.freepascal.org/mailm

[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 _

[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); end;