Re: [fpc-pascal] FCL-WEB and PostgreSQL Support: Current Status

2017-09-29 Thread Daniel Gaspary
On Fri, Sep 29, 2017 at 5:37 AM, Michael Van Canneyt wrote: > FPC really has all you need, even in 2017 ;) > I agree, just needed some details. :) Thank you for the help. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepas

Re: [fpc-pascal] FCL-WEB and PostgreSQL Support: Current Status

2017-09-28 Thread Daniel Gaspary
On Thu, Sep 28, 2017 at 6:11 PM, Michael Van Canneyt wrote: > 1. You can perfectly start the fastcgi in the debugger if you use proxy > server > or if you use mod_fastcgi confgured with fastcgiexternalserver configuration > setting. I believe nginx only uses the proxy mechanism. Nice to know abou

Re: [fpc-pascal] FCL-WEB and PostgreSQL Support: Current Status

2017-09-28 Thread Daniel Gaspary
On Wed, Sep 27, 2017 at 12:53 PM, Michael Van Canneyt wrote: > Apache, indeed using FastCGI. Used both mod_fastcgi as mod_fcgid. mod_proxy > should work as well. What do you use to debug this environment, just log messages / log server..? Sometime ago I have seen someone mentioned developing wi

Re: [fpc-pascal] Coroutines and VirtualAlloc

2017-04-19 Thread Daniel Gaspary
So.. Any chance of an Official implementation ? On Wed, Apr 19, 2017 at 10:50 AM, Marco van de Voort wrote: > In our previous episode, Ryan Joseph said: >> > Your example is simply broken. A few points: >> >> Thanks for the description. Yeah, I assumed the stack would be restored but >> that is

Re: [fpc-pascal] Coroutines and VirtualAlloc

2017-04-18 Thread Daniel Gaspary
On Sat, Apr 15, 2017 at 6:20 AM, Ryan Joseph wrote: > I was curious about possible ways coroutines could work in FPC and found this > example that claims to implement just that. It appears to be designed for > Windows though and makes use of a function called VirtualAlloc which I don’t > unders

Re: [fpc-pascal] WebAssembly Target

2017-03-17 Thread Daniel Gaspary
On Fri, Mar 17, 2017 at 2:55 PM, Michael Van Canneyt wrote: > Forgot to say that there will of course be some classes to manipulate the > DOM at will. Thank you, Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepasc

Re: [fpc-pascal] WebAssembly Target

2017-03-17 Thread Daniel Gaspary
On Fri, Mar 17, 2017 at 5:16 AM, Michael Van Canneyt wrote: > In fact, there is an alternate approach, transpiling pascal to Javascript. > > It's much farther ahead than the webassembly target, already produces > programs running in the browser and the first web-based components are > already bein

[fpc-pascal] WebAssembly Target

2017-03-11 Thread Daniel Gaspary
Hi, Is there something planned in this matter for FPC? I was reading about the new Firefox making WebAssembly publicly available ("On Tuesday Firefox 52 became the first browser to support WebAssembly

Re: [fpc-pascal] raw socket example

2015-11-18 Thread Daniel Gaspary
Need to change the fpsocket function call. >From fpSocket(AF_INET,SOCK_STREAM,0) to fpSocket(AF_INET,SOCK_RAW,0); Is possible that the "0" needs to be changed too. On Wed, Nov 18, 2015 at 3:20 PM, leledumbo wrote: > FPC docs has them: > http://www.freepascal.org/docs-html/rtl/sockets/fpaccep

Re: [fpc-pascal] XML Canonicalization Support

2015-10-16 Thread Daniel Gaspary
On Fri, Oct 16, 2015 at 8:11 AM, Michael Van Canneyt wrote: > Not to my knowledge. The TDomParser has an option to cannonical form: Parser := TDOMParser.Create; Parser.Options.CanonicalForm:=True; TXmlWriter seems to have support too. ___ fpc-pascal

[fpc-pascal] Misleading Statement at Comparison Operator Description

2015-08-25 Thread Daniel Gaspary
Hi, I believe the statement[1] bellow is not accurate: "The result type of a comparison operator is always a boolean." Because this code compiles and works: program Project1; type TMyType1 = class(TObject); TMyType2 = class(TObject); TMyType3 = class(TObject); operato

Re: [fpc-pascal] NTP

2015-01-29 Thread Daniel Gaspary
Synapse has a unit for the protocol: http://www.ararat.cz/synapse/doku.php/features On Thu, Jan 29, 2015 at 6:10 AM, Torsten Bonde Christiansen wrote: > Hi, > > Does anyone have experience on how to get the current date/time of an NTP > server? > > Regards, > Torsten. > > __

Re: [fpc-pascal] SDL_Net vs Synapse

2015-01-05 Thread Daniel Gaspary
On Mon, Jan 5, 2015 at 4:55 PM, Brian wrote: > SDL2 Headers also available here ... > > http://sourceforge.net/projects/sdl2fpc/ We'll end the day knowing new two up to date SDL2 binding projects. Thank you, Brian ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] SDL_Net vs Synapse

2015-01-05 Thread Daniel Gaspary
On Mon, Jan 5, 2015 at 2:44 PM, Sandro Cumerlato wrote: > Pascal-SDL-2-Headers can be found on GitHub at: > > https://github.com/ev1313/Pascal-SDL-2-Headers Good to know. Thank you for sharing, Sandro. Is it a fork from another older version that was posted here?

Re: [fpc-pascal] SDL_Net vs Synapse

2015-01-05 Thread Daniel Gaspary
On Mon, Jan 5, 2015 at 1:23 PM, Brian wrote: > Any opinions/experience pro/con using SDL2 (SDL_Net) vs Synapse > (http://synapse.ararat.cz/doku.php) ? Does SDL2 net FPC binding exist? The non-existence would be a big con. ___ fpc-pascal maillist - fp

Re: [fpc-pascal] TDomNode to text and/or document

2014-09-22 Thread Daniel Gaspary
On Mon, Sep 22, 2014 at 8:21 AM, Felipe Monteiro de Carvalho wrote: > Ummm, this doesn't seam to help much... but I eventually found googling. > > The error is EDOMWrongDocument, which makes sense since I want to > insert a TDOMNode from another document ... so I have to first import > and then at

Re: [fpc-pascal] Fast HTML Parser

2014-08-08 Thread Daniel Gaspary
On Fri, Aug 8, 2014 at 9:40 AM, Marco van de Voort wrote: > There is xpath support in fcl-xml? Yes. But HTML files used to be very irregular XML. Some files can raise an error when trying to open. Things like "" without closing element were easy to find.

[fpc-pascal] Junior Tasks

2014-06-08 Thread Daniel Gaspary
Hi, is this page[1] up to date? I believe would be interesting to have a page(a dedicated system, bugtracker tag?) where people can volunteer to help with small, well defined tasks. Maybe something similar to this[2], but more elaborate and covering not only conversion. I know that

Re: [fpc-pascal] Database Metadata proposal

2014-06-03 Thread Daniel Gaspary
On Tue, Jun 3, 2014 at 2:46 AM, LacaK wrote: > TSQLConnection.GetTableNames(List: TStrings; SchemaName : String; Options : > TSchemaOptions); > > Which IMO fits better in existing frame. Using this method, to take all tables, from all schemas, the user would need to run multiples queries, one for

Re: [fpc-pascal] Database Metadata proposal

2014-06-02 Thread Daniel Gaspary
On Mon, Jun 2, 2014 at 10:38 AM, Michael Van Canneyt wrote: > While this is correct, the collection approach is much easier to use: > With the metadataset, you must know which fields exist and type them > correctly: FieldByName('XYZ').AsString > > With collections, the IDE codetools will tell you

Re: [fpc-pascal] Database Metadata proposal

2014-06-02 Thread Daniel Gaspary
On Mon, Jun 2, 2014 at 10:27 AM, LacaK wrote: > (for SQLConnection which support schemas. I have used public method > SetSchemaInfo not GetDBInfo) It's not public in SqlConnection, it's public in SqlQuery. Anyway, I don't see why avoid a dedicated method to do this instead of 3 steps which are n

Re: [fpc-pascal] Database Metadata proposal

2014-06-02 Thread Daniel Gaspary
On Mon, Jun 2, 2014 at 3:01 AM, LacaK wrote: > IMO very similar result you can get also with existing implementation, when > you use: Yes, this is the way GetDBInfo do, but it's not public, and never return schema. What I did was to copy and modify this method. I have sent a patch: http://bugs.f

Re: [fpc-pascal] Database Metadata proposal

2014-06-01 Thread Daniel Gaspary
An Issue was created with the patch: http://bugs.freepascal.org/view.php?id=26254 On Sun, Jun 1, 2014 at 11:28 AM, Daniel Gaspary wrote: > I see no problem. It was just a wrong impression that I had about > TCollectionItem. ___ fpc-pascal ma

Re: [fpc-pascal] Database Metadata proposal

2014-06-01 Thread Daniel Gaspary
On Sun, Jun 1, 2014 at 11:18 AM, Michael Van Canneyt wrote: >> But I was thinking that TSqlObjectIdenfier could be reused at Data >> Dictionary Units. As a TCollectionItem could be harder to reuse, as it >> will depend of the existence of a TCollection. > > I don't understand what you mean with th

Re: [fpc-pascal] Database Metadata proposal

2014-06-01 Thread Daniel Gaspary
On Sun, Jun 1, 2014 at 5:27 AM, Michael Van Canneyt wrote: > Make this a TCollection/TCollectionItem. Generics are not used in the DB > units, and they should not be used for consistency. But I was thinking that TSqlObjectIdenfier could be reused at Data Dictionary Units. As a TCollectionItem cou

[fpc-pascal] Database Metadata proposal

2014-05-31 Thread Daniel Gaspary
Hi. In December 2012, this[1] thread has brought some ideas about Database metadata, in special the retrieving of Schema names. This[2] wiki page summarizes what was discussed. Some further conclusion after that thread? I agree that using Information schema, wherever is supported, is t

Re: [fpc-pascal] AnsiStrupper Error

2014-05-26 Thread Daniel Gaspary
On Mon, May 26, 2014 at 3:04 AM, Jonas Maebe wrote: > And that corruption is now caught: > http://wiki.freepascal.org/User_Changes_Trunk#Literal_storage_memory_has_been_made_read-only Thank You, Jonas. ___ fpc-pascal maillist - fpc-pascal@lists.freep

[fpc-pascal] AnsiStrupper Error

2014-05-25 Thread Daniel Gaspary
The code bellow is throwing an exception and I don't know why. It used to work. program Project1; uses sysutils; var s : AnsiString; begin s := 'a'; AnsiStrupper(PAnsiChar(s)); end. It works fine with FPC 2.6.4 (Linux x86-64 bits). I'm using FPC trunk (Revision 27818): An unha

Re: [fpc-pascal] From deflate to gzip

2014-04-01 Thread Daniel Gaspary
On Tue, Apr 1, 2014 at 4:12 AM, Michael Van Canneyt wrote: > No, currently you need a file, unless you are willing to duplicate the > tgzstream class using an in memory-approach. > (that would be a welcome addition, BTW) TZipper has similar problem, you cannot write direct to the destination file

Re: [fpc-pascal] XMLWrite looses data

2014-03-24 Thread Daniel Gaspary
On Sun, Mar 23, 2014 at 2:58 PM, Graeme Geldenhuys wrote: > I'm using FPC 2.6.2 under 64-bit FreeBSD, but will be compiling this > application for Windows 32-bit and 64-bit tomorrow at work. If you can, try also the "Laz2_" XML units: Laz2_Dom, Laz2_xmlwrite and read. They seem to work better wi

[fpc-pascal] Issue 25114 needs to be assigned

2014-02-21 Thread Daniel Gaspary
Hi, Could someone assign the issue[1] to Sergei (Gorelkin)? I want to fix the problem, but I need his input on the subject. Thank you, Daniel [1] http://bugs.freepascal.org/view.php?id=25114#c71108 ___ fpc-pascal maillist - fpc-

Re: [fpc-pascal] gtree - Freeing a nil Root without error

2014-01-08 Thread Daniel Gaspary
On Wed, Jan 8, 2014 at 3:31 AM, leledumbo wrote: > As in the data structure theory, a tree is just a graph without cycle. > So I guess it should be made that way. There are a lot of graph and tree > variations though, so I think I need to take some time to design before > implementing. I don't kn

Re: [fpc-pascal] gtree - Freeing a nil Root without error

2014-01-07 Thread Daniel Gaspary
On Tue, Jan 7, 2014 at 6:55 PM, Daniel Gaspary wrote: > Thank you, Marco. > > I was searching in stl package for a "Graph" type. is there such type? Answering to myself... I believe the Graph types exist only in Lazarus LazControls package

Re: [fpc-pascal] gtree - Freeing a nil Root without error

2014-01-07 Thread Daniel Gaspary
On Tue, Jan 7, 2014 at 6:27 PM, Marco van de Voort wrote: > Free only calls the destructor if self isn't nil. Thank you, Marco. I was searching in stl package for a "Graph" type. is there such type? ___ fpc-pascal maillist - fpc-pascal@lists.freepasc

[fpc-pascal] gtree - Freeing a nil Root without error

2014-01-07 Thread Daniel Gaspary
Hi, gtree.TTree type has the following code: constructor TTree.Create; begin FRoot := nil; end; destructor TTree.Destroy; begin FRoot.Free; end; How is possible then that the following program don't raise an error when the destructor (via free) is called? program Project1; {$mode objf

[fpc-pascal] Re: Proposal for a XPath Namespace Resolver

2013-10-14 Thread Daniel Gaspary
On Sat, Oct 5, 2013 at 2:08 PM, Daniel Gaspary wrote: > Today the XPath Ns Resolver is marked as "Experimental" and is just an > alias for TDomNode: I have sent a patch: http://bugs.freepascal.org/view.php?id=25183 ___ fpc-pascal

Re: [fpc-pascal] Helpers: Implementation Location influencing the result

2013-10-06 Thread Daniel Gaspary
On Sun, Oct 6, 2013 at 8:09 AM, Sven Barth wrote: > No. Whenever you call a method (either inside a class using (implicit) Self > or outside using a variable) the compiler checks whether a helper for that > type is in scope and uses that if it is. It has nothing to do with object > instantiation (

Re: [fpc-pascal] Helpers: Implementation Location influencing the result

2013-10-05 Thread Daniel Gaspary
On Sat, Oct 5, 2013 at 8:27 PM, Sven Barth wrote: > At location A the helper is not yet declared, thus GetAnotherString uses the > GetString function of its own class. On location B the helper is already > declared and thus the implementation of GetAnotherString will pick up the > helper's GetStri

Re: [fpc-pascal] Proposal for a XPath Namespace Resolver

2013-10-05 Thread Daniel Gaspary
On Sat, Oct 5, 2013 at 5:59 PM, Benito van der Zander wrote: > Alternatively, just use the XPath implementation of my Internet Tools > (http://www.benibela.de/sources_en.html#internettools). > > Works perfectly there. > > E.g. process(' > ', '//@u1:AnAttribute' ).toString > returns 'AttValue' I

[fpc-pascal] Helpers: Implementation Location influencing the result

2013-10-05 Thread Daniel Gaspary
I have created an example to show the different results I got due to where the implementation of a object is . The code is at http://pastebin.com/wY2qmZFm If you cut and paste the code block at "Location A" to the "Location B" the result of the program changes. At Location A the method of the he

[fpc-pascal] Proposal for a XPath Namespace Resolver

2013-10-05 Thread Daniel Gaspary
(Let me know if bugtracker is better to discuss the idea) Today the XPath Ns Resolver is marked as "Experimental" and is just an alias for TDomNode: TXPathNSResolver = TDOMNode {!!! experimental}; [1] The problem happens when the Namespace definition is not at the root of the XML being process

Re: [fpc-pascal] Re: RFD: CardDAV support library for FreePascal, call for ideas

2013-09-25 Thread Daniel Gaspary
On Wed, Sep 25, 2013 at 12:22 PM, Lukasz Sokol wrote: > CalDAV itself is used on the CRM I use, but I've no demand for interacting > with it. Yet.* I have just taken a look at the RFC* and it seems simple to implement. I don't need CardDav right now, but I believe I will need it soon. Can you t

Re: [fpc-pascal] RFD: CardDAV support library for FreePascal, call for ideas

2013-09-25 Thread Daniel Gaspary
Thank you for applying the patch, Michael. As soon as I have some time I will send another one related to the same case. On Wed, Sep 25, 2013 at 4:31 PM, Michael Van Canneyt wrote: > > > On Wed, 25 Sep 2013, Lukasz Sokol wrote: > >> Hello, >> >> since I have not found anything on CardDAV related

Re: [fpc-pascal] Re: RFD: CardDAV support library for FreePascal, call for ideas

2013-09-25 Thread Daniel Gaspary
On Wed, Sep 25, 2013 at 2:18 PM, Daniel Gaspary wrote: > I was talking about the dom/laz2_dom feedback. I was talking about the dom/laz2_dom DEVELOPERS feedback. (Just Correcting myself) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org h

Re: [fpc-pascal] Re: RFD: CardDAV support library for FreePascal, call for ideas

2013-09-25 Thread Daniel Gaspary
On Wed, Sep 25, 2013 at 11:45 AM, Lukasz Sokol wrote: >> >> By the way, feedback (is a viable suggestion, no, why..?) on this >> subject would be appreciated. > > Of course I will give feedback when (and if) I get any. I was talking about the dom/laz2_dom feedback. But your feedback will be welc

Re: [fpc-pascal] RFD: CardDAV support library for FreePascal, call for ideas

2013-09-25 Thread Daniel Gaspary
On Wed, Sep 25, 2013 at 8:03 AM, Lukasz Sokol wrote: > Seems like the more complicated elements of DOM level 3 will need DOM.pas > modifications too. What kind of modification ? I have sent this patch [1] to allow create custom descendants of TDomElement. You can check whether this could be use

Re: [fpc-pascal] Parser bug or what?

2013-09-15 Thread Daniel Gaspary
I cannot update my Environment at the moment, so I will just close the bug. Thank you, Paul On Sun, Sep 15, 2013 at 11:52 PM, Paul Ishenin wrote: > 15.09.13, 21:14, Daniel Gaspary wrote: >> >> On Sun, Sep 15, 2013 at 6:37 AM, Sven Barth >> wrote: >>> >>&

Re: [fpc-pascal] Parser bug or what?

2013-09-15 Thread Daniel Gaspary
On Sun, Sep 15, 2013 at 6:37 AM, Sven Barth wrote: > Seems to be a bug related to scoped enums (in your example that would be > "TMyEnum.me1"). Please report it as a bug with the example mentioned above > as a file. Done: http://bugs.freepascal.org/view.php?id=25029 Thank you. __

[fpc-pascal] Parser bug or what?

2013-09-14 Thread Daniel Gaspary
Can anybody tell me whether I stepped on a bug or I am just forgetting some Set / Enum property? I made a Set to iterate with For..in, but I accidentally used a Dot instead of a Comma between the elements. The result was that the For "sees" only the item(s) after the Dot as the Example What's H

[fpc-pascal] "class of" variables typecasts

2013-08-22 Thread Daniel Gaspary
> learn about class references (i.e. "class of" declarations) and constructors. Since "class of" was on topic of other thread... Is possible(How?) to perform typecasts like: AClassType(obj); ?? Example: type TClass1 = class(TObject); TClass2 = class(TClass1); TClass3 = class(TClass

[fpc-pascal] Failed manual page

2013-03-21 Thread Daniel Gaspary
The page "Command-line options and switches Reference chart.. "[1] referenced at Manuals page[2] seems to be buggy. [1] http://www.freepascal.org/docs-html/chart/chart.html [2] http://www.freepascal.org/docs-html/ ___ fpc-pascal maillist - fpc-pascal@l

Re: [fpc-pascal] a proposal about "with" syntax

2013-03-16 Thread Daniel Gaspary
On Sun, Mar 17, 2013 at 12:07 AM, 印場 乃亜 wrote: > On 2013/03/17, at 11:37, Flávio Etrusco wrote: >> Daniel, I find this hack as ingenious as atrocious ;-) >> But thinking about it a bit, when FPC gets generic methods you can >> make this kind of workable! I was thinking about this, not specifical

Re: [fpc-pascal] a proposal about "with" syntax

2013-03-16 Thread Daniel Gaspary
On Sat, Mar 16, 2013 at 7:55 PM, Xiangrong Fang wrote: > I don't think a class helper is worth for this stuff, if I need to write a > helper I would rather do this: I am not sure that I understand your point. The Class helper was a way to show how it's possible. And with that helper, ALL objects

Re: [fpc-pascal] a proposal about "with" syntax

2013-03-16 Thread Daniel Gaspary
On Sat, Mar 16, 2013 at 3:02 PM, 印場 乃亜 wrote: > With BigLongThingIDontWantToWriteOutEverySingleTime do > begin > Height := 100; > Width := 200; > ... > SomeOtherObject.Submit(BigLongThingIDontWantToWriteOutEverySingleTime); > end; > > Notice how I have to write the long thin

Re: [fpc-pascal] fcl-xml

2013-03-12 Thread Daniel Gaspary
On Tue, Mar 12, 2013 at 11:17 AM, Daniel Gaspary wrote: > Using Xpath I believe would be something like this: I was missing an If: function ElementById(id: string; doc: TXMLDocument): TDOMElement; var v: TXPathVariable; begin result:=nil; try v:=EvaluateXPathExpress

Re: [fpc-pascal] fcl-xml

2013-03-12 Thread Daniel Gaspary
Using Xpath I believe would be something like this: function ElementById(id: string; doc: TXMLDocument): TDOMElement; var v: TXPathVariable; begin result:=nil; try v:=EvaluateXPathExpression('//*[@id=' + QuotedStr(id)+']', doc.DocumentElement); result:=TD

Re: [fpc-pascal] Set size limit

2013-03-11 Thread Daniel Gaspary
On Mon, Mar 11, 2013 at 10:43 AM, Jonas Maebe wrote: > A set is basically a bitpacked array of boolean. Element X is set to true if > you add X to the set, and to false if you remove it again. That means that > if you have a set with 600 possible values, you need at least 600 bits, > regardless of

Re: [fpc-pascal] Set size limit

2013-03-11 Thread Daniel Gaspary
On Mon, Mar 11, 2013 at 7:09 AM, Mark Morgan Lloyd wrote: > That was pretty much my gist. Since these days Unicode is larger than 65536 > codepoints I don't think there's any advantage to expanding sets from 256 to > 65536 elements, efficient operations on sparse arrays of 256-element sets > would

Re: [fpc-pascal] Set size limit

2013-03-10 Thread Daniel Gaspary
On Sun, Mar 10, 2013 at 11:12 AM, Jonas Maebe wrote: > For larger sets, especially if they are sparse, a simple hashtable-based class > would probably be much faster and memory efficient Just some background.. I was using a Set because I needed a initialized constant "container" with a variable

[fpc-pascal] Set size limit

2013-03-09 Thread Daniel Gaspary
Hi, I am trying to create a Set Type... TMyEnum = (me1, me2, me3); // more than 500 elements TMySet = set of TMyEnum; ...but I get the following error: "Error: illegal type declaration of set elements" [1] The problem seems to be that TMyEnum has more than 256 elements. Can I specif

Re: [fpc-pascal] Virtual Constants

2013-03-03 Thread Daniel Gaspary
On Sun, Mar 3, 2013 at 11:13 AM, Joao Morais wrote: > Afaik no, but you can override class virtual methods which might give > you the correct value: Exactly what I was trying to avoid. :) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http:

[fpc-pascal] Virtual Constants

2013-03-01 Thread Daniel Gaspary
The idea is strange. But here it is: Is possible to have a Class constant with different values in class descendants ? Would be something like that: TA = class const c1: integer; virtual; class function GetC1: integer; //returns c1 end; TB = class(TA) const c1: integer

Re: [fpc-pascal] abstract classes

2013-01-21 Thread Daniel Gaspary
On Mon, Jan 21, 2013 at 10:59 PM, Graeme Geldenhuys wrote: > As I said in the other thread - it is a bug! Completely defeats the > design principal of what "abstract class or method" means. > > FPC should raise an error. I don't care what Delphi does - it's wrong. I agree, it's awkward to just le

Re: [fpc-pascal] Unit testing aid...

2012-08-22 Thread Daniel Gaspary
On Wed, Aug 22, 2012 at 2:08 PM, Michael Van Canneyt > I would appreaciate feedback and suggestions. I believe could be interesting to have a similar tool to generate "annotations" to a unit(or set of units). The obvious example: insert calls to logging procedures at the enter and exit of each m

Re: [fpc-pascal] WeekDay outdated?

2012-08-12 Thread Daniel Gaspary
On Sun, Aug 12, 2012 at 2:05 PM, Jürgen Hestermann wrote: > I am not able to use this function: > http://www.freepascal.org/docs-html/rtl/dos/weekday.html > nor can I find it in the sources. > Does it still exist? > If yes, how to use it? Which unit? DOS does not work. You will find what you need

Re: [fpc-pascal] [OT] GPL Lisence help

2012-07-27 Thread Daniel Gaspary
On Fri, Jul 27, 2012 at 5:39 PM, Dimitrios Chr. Ioannidis wrote: > Hi all, > > first let me express my apologies for the off topic question. > > I'm having trouble to choose the correct gpl lisence for a new open > source project that i'm starting. I want the project to be open source > gpl'ed

Re: [fpc-pascal] DOM and namespaces with prefix

2012-06-22 Thread Daniel Gaspary
On Tue, Jun 19, 2012 at 10:11 AM, Torsten Bonde Christiansen wrote: >  DDIInstance := XMLDoc.CreateElementNS('ddi:instance:3_0', 'DDIInstance'); >  DDIInstance.Prefix := 'ns1';        // this gives me: xmlns:ns1="ddi:instance:3_0"> which is great. > >  // now I would like to expand with eg: xmlns

Re: [fpc-pascal] DOM and namespaces with prefix

2012-06-21 Thread Daniel Gaspary
I have created a bug report[1] with an example of malformed file. [1] http://bugs.freepascal.org/view.php?id=22299 On Thu, Jun 21, 2012 at 3:51 PM, Daniel Gaspary wrote: > On Tue, Jun 19, 2012 at 10:11 AM, Torsten Bonde Christiansen > wrote: >> How can i get the "xmlns:a

Re: [fpc-pascal] DOM and namespaces with prefix

2012-06-21 Thread Daniel Gaspary
On Tue, Jun 19, 2012 at 10:11 AM, Torsten Bonde Christiansen wrote: > How can i get the "xmlns:a="ddi:archive:3_0" without the additional > attribute AND maintain the namespace + prefix in later elements? Hi. It's hard to test without a (small please) comlete XML example because the NS attribute

Re: [fpc-pascal] have anyone binded librsync to pascal yet ?

2012-05-25 Thread Daniel Gaspary
On Fri, May 25, 2012 at 6:55 AM, ik wrote: > Hello, > > Is there anyone who binded librsync into Pascal/FPC ? > > Thanks, > > Ido Last week I have googled about it and found no results. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://

Re: [fpc-pascal] How to use pam?

2012-02-06 Thread Daniel Gaspary
On Mon, Feb 6, 2012 at 14:37, Mattias Gaertner wrote: > Hi, > > I need to authenticate user name and password under Linux. These are normal > accounts so I guess "libpam" is the weapon of choice. But I can't find any > pam binding in the FPC sources. > > Is there a better way or has really no one

Re: [fpc-pascal] Redis client for object Pascal

2012-01-21 Thread Daniel Gaspary
On Fri, Jan 20, 2012 at 18:18, ik wrote: > The code is released under LGPL 3. I do wish to allow open/free and > commercial usage, but to > have any changes, additions etc, contribute back for everyone. With LGPL (non modified) the only (commercial, closed) way to use the project is with DLL's. A

Re: [fpc-pascal] detecting if a socket is open in synapse

2012-01-21 Thread Daniel Gaspary
On Sat, Jan 21, 2012 at 09:28, ik wrote: > Hello, > > How can I detect if a tcp socket is open or not in synapse ? Trying to send and detecting if an error was raisen: http://www.ararat.cz/synapse/doku.php/public:howto:activeconnection ___ fpc-pascal m

Re: [fpc-pascal] detect the version of fpc that a feature added to it

2012-01-19 Thread Daniel Gaspary
On Thu, Jan 19, 2012 at 17:17, ik wrote: > Another question, should I open a bug for documentation, to add when a > specific feature like so was added in the documentation itself ? Do This issue cover this topic? http://bugs.freepascal.org/view.php?id=15492 __

Re: [fpc-pascal] Advanced Records - Why not available by default?

2012-01-15 Thread Daniel Gaspary
On Sun, Jan 15, 2012 at 11:44, J.-c. Chu wrote: > There is a listing, despite not up-to-date, of new language features > since Delphi 7, at .  Not all > of them are currently implemented in FPC. I believe could be really useful to have a grid style in jus

Re: [fpc-pascal] Advanced Records - Why not available by default?

2012-01-15 Thread Daniel Gaspary
On Sun, Jan 15, 2012 at 04:43, J.-c. Chu wrote: > For one thing, class variables, class methods, and class properties are > subject to visibility controls and inheritance. > > So you can, for example, have a private class variable initialized with > class constructor (which avoids code in the INIT

Re: [fpc-pascal] Advanced Records - Why not available by default?

2012-01-14 Thread Daniel Gaspary
On Sat, Jan 14, 2012 at 21:59, Lars wrote: > Personally, I'm getting sick of all the new features added to delphi that > don't add anything meaningful, and just add complexity to the compiler. I agrre with you. I like some features of advanced records. But a lot of things seems a big redundancy.

[fpc-pascal] Advanced Records - Why not available by default?

2012-01-13 Thread Daniel Gaspary
Any special reason to Advanced Records be available only in Delphi Mode ? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Redis client for FPC

2012-01-11 Thread Daniel Gaspary
On Wed, Jan 11, 2012 at 15:32, ik wrote: > Here is a new request for the new year/version of FPC :) > > Additional way beside dataset to control databases, even if they are not > table/structure based. A Redis specialized TDatasource Descendant Could work. Is there any problem with this aproach?

Re: [fpc-pascal] How to get path to current theme icons on linux?

2012-01-10 Thread Daniel Gaspary
On Mon, Jan 9, 2012 at 18:45, Krzysztof wrote: > I need to load icon associated by file extension. On windows I done > this by WinAPI function ExtractAssociatedIcon(). On linux is not so > easy, because we have GNOME, KDE, XFCE, LXDE etc, but I noticed that > icons are stored in this same place I

[fpc-pascal] XML - How to set and use a Namespace Prefix?

2011-10-28 Thread Daniel Gaspary
I'm trying to create an XML Document with multiple Namespaces. With the code below[1] a get as result the following XML: http://www.w3.org/2000/svg"; /> How can I set a second Namespace, should I use SetAttribute or SetAttributeNS ? : root.setattribute('xmlns:xlink', 'http://www.w3.org/1999/xli

[fpc-pascal] sdlutils on linux 64 bits

2011-08-01 Thread Daniel Gaspary
Hi, I was trying to run the example from [1], but I have noticed fpcmake from sdl package does not compile sdlutils for my environment, Linux (ubuntu 11.04) 64 bits. sdlutils is the only unit with restrictions in fpmake.pp . Tyring to compile myself I got errors like the following: "Ty