Re: [Lazarus] fcl-web or BrookFramework queryfields array

2016-04-15 Thread silvioprog
On Fri, Apr 15, 2016 at 4:37 PM, Leonardo M. Ramé wrote: [...] > Sorry, nevermind. I've found a way to configure KendoUi Grid to send > queries as POST using JSON, so, problem solved. Awesome. :-) tip: you can use jQuery $.param before sent the JSON filter to FCL-web/Brook, and decode it with

Re: [Lazarus] fcl-web or BrookFramework queryfields array

2016-04-15 Thread silvioprog
On Fri, Apr 15, 2016 at 4:33 PM, silvioprog wrote: [...] > This filter can be easily parser ... > I meant: "This filter can be easily parsed ... ". -- Silvio Clécio -- ___ Lazarus mailing list Lazarus@lists.lazarus.fre

Re: [Lazarus] fcl-web or BrookFramework queryfields array

2016-04-15 Thread silvioprog
On Fri, Apr 15, 2016 at 4:25 PM, Leonardo M. Ramé wrote: [...] > It works pefectly por param=value&..., but I don't know how to parse array > type values. > > example: ?filters[0]['filter']=name&filters[0]['value']=john This filter can be easily parser if you send it as: ?filters[0].filter=nam

Re: [Lazarus] fcl-web or BrookFramework queryfields array

2016-04-15 Thread silvioprog
On Fri, Apr 15, 2016 at 2:47 PM, Leonardo M. Ramé wrote: > Hi, I need to extract the field values of a GET query of type: > > http://127.0.0.1/cgi-bin/test.cgi?fields[1]=f1value&fields[2]=f2value > > Is there a way to handle this apart from HttpRequest.QueryFields? > Yes. Supposing you have an

Re: [Lazarus] [FEATURE REQUEST] Source Editor: jump to the marked line by clicking on it

2016-04-14 Thread silvioprog
On Thu, Apr 14, 2016 at 12:27 PM, Ondrej Pokorny wrote: > On 14.04.2016 17:22, silvioprog wrote: > >> The new Source Editor shows small marks as illustrated in the attached >> picture. These marks are put in the exactly source line when it has >> warning, hints, errors

[Lazarus] [FEATURE REQUEST] Source Editor: jump to the marked line by clicking on it

2016-04-14 Thread silvioprog
Hello, The new Source Editor shows small marks as illustrated in the attached picture. These marks are put in the exactly source line when it has warning, hints, errors, notes etc. However, in the current trunk version, you need to roll the scrollbar to go to the marked line. It would be nice if

Re: [Lazarus] [fpc-pascal] PDF generator: please test

2016-04-09 Thread silvioprog
On Fri, Apr 8, 2016 at 3:22 PM, Michael Van Canneyt wrote: [...] > Graeme has fixed a number of errors that should hopefully solve the > problems with > codepages; Changes have been tested on windows/linux/bsd but on Windows > only > with a system that has an english locale. After this update,

Re: [Lazarus] PDF generator, try 2

2016-04-06 Thread silvioprog
On Wed, Apr 6, 2016 at 2:14 PM, Michael Van Canneyt wrote: [...] > Why is this patch needed ? It should not be needed at all ? > Sorry, I sent a wrong patch, please consider this new one in attachment. My patch just fix wrong chars in the generated PDF, eg, before the apply it, I got: ... Engl

Re: [Lazarus] PDF generator, try 2

2016-04-06 Thread silvioprog
On Wed, Apr 6, 2016 at 1:57 PM, silvioprog wrote: > On Thu, Mar 31, 2016 at 1:13 PM, Michael Van Canneyt < > mich...@freepascal.org> wrote: >> >> On Thu, Mar 31, 2016 at 11:18 AM, silvioprog >>> wrote: >> >> [...] > >> Greek: Ge?? s?? ?

Re: [Lazarus] PDF generator, try 2

2016-04-06 Thread silvioprog
On Thu, Mar 31, 2016 at 1:13 PM, Michael Van Canneyt wrote: > > On Thu, Mar 31, 2016 at 11:18 AM, silvioprog wrote: > > [...] > Greek: Ge?? s?? ??s >> Polish: Witaj swiecie >> Portuguese: Ol? mundo >> Russian: ??? >> Vietnamese: Xin ch?o th?

Re: [Lazarus] PDF generator, try 2

2016-04-06 Thread silvioprog
On Thu, Mar 31, 2016 at 1:17 PM, Michael Van Canneyt wrote: [...] > Please, don't do {%H-} etc: > > procedure CreateTTFCIDSystemInfo(const {%H-}EmbeddedFontNum: > integer;{%H-}FontDef: TFontDef);virtual; > {$HINTS OFF} instead of it? > Typecasts like this should also not be done: > > +Font

Re: [Lazarus] PDF generator, try 2

2016-04-06 Thread silvioprog
On Thu, Mar 31, 2016 at 1:26 PM, Graeme Geldenhuys < mailingli...@geldenhuys.co.uk> wrote: [...] > On 2016-03-31 17:13, Michael Van Canneyt wrote: > > I had a look at your PDF. I did not extract the embedded FreeSans font > you have embedded, so don't know the font file version, but based on its >

Re: [Lazarus] PDF generator, try 2

2016-04-06 Thread silvioprog
On Thu, Mar 31, 2016 at 1:13 PM, Michael Van Canneyt wrote: [...] > No, I have one of ~1Mb. But probably logical if the file is not there ? > > It's not quite clear what to think of your report ? > > For me > > "PDF was succefully generated" > > does not compute with > > "Unable to open file "fon

Re: [Lazarus] PDF generator, try 2

2016-03-31 Thread silvioprog
On Thu, Mar 31, 2016 at 12:45 PM, silvioprog wrote: > On Thu, Mar 31, 2016 at 11:18 AM, silvioprog wrote: > >> On Thu, Mar 31, 2016 at 11:02 AM, Michael Van Canneyt < >> mich...@freepascal.org> wrote: >>> >>> Hello >>> >>> In revision

Re: [Lazarus] PDF generator, try 2

2016-03-31 Thread silvioprog
On Thu, Mar 31, 2016 at 11:18 AM, silvioprog wrote: > On Thu, Mar 31, 2016 at 11:02 AM, Michael Van Canneyt < > mich...@freepascal.org> wrote: >> >> Hello >> >> In revision 33401 of FPC subversion, a lot of fixes have been committed >> for Font >

Re: [Lazarus] PDF generator, try 2

2016-03-31 Thread silvioprog
On Thu, Mar 31, 2016 at 11:02 AM, Michael Van Canneyt < mich...@freepascal.org> wrote: > > Hello > > In revision 33401 of FPC subversion, a lot of fixes have been committed > for Font > handling in the PDF generator: e.g. Unicode fonts should now render > correctly. [...] Great news! :-) I'm goi

Re: [Lazarus] PDF generator

2016-03-05 Thread silvioprog
On Sat, Mar 5, 2016 at 3:19 PM, Michael Van Canneyt wrote: > On Sat, 5 Mar 2016, silvioprog wrote: > >> On Sat, Mar 5, 2016 at 2:27 PM, Michael Van Canneyt < >> mich...@freepascal.org> >> wrote: >> [...] >> >>> >>> Optionall

[Lazarus] Terminal Output window: problem with Crt unit on Linux

2016-03-05 Thread silvioprog
Hello, Open your (useful) "Terminal Output" window (Ctrl+Alt+O), now compile and run the example below: === code === program project1; {$mode objfpc}{$H+} //uses Crt; begin WriteLn('Hello world'); end. === /code === OK, it will print: Hello world However, uncomment the line "//uses Crt"

Re: [Lazarus] PDF generator

2016-03-05 Thread silvioprog
On Sat, Mar 5, 2016 at 2:27 PM, Michael Van Canneyt wrote: [...] > > Optionally: > - PDF Forms ? > - Archive format ? > - Signatures ? - File attachments? [1] [1] https://github.com/libharu/libharu/blob/master/demo/attach.c -- Silvio Clécio -- ___ L

Re: [Lazarus] PDF generator

2016-03-05 Thread silvioprog
On Sat, Mar 5, 2016 at 2:27 PM, Michael Van Canneyt wrote: > Hi, > > I have committed a PDF generator to FPC Subversion: fcl-pdf. Great news of this weekend. I'm going to test that ... Congrats for your job! -- Silvio Clécio -- ___ Lazarus mailing

Re: [Lazarus] Is there any alternative to PPL (Parallel Programming Library) on FPC?

2016-02-26 Thread silvioprog
On Thu, Feb 25, 2016 at 9:55 PM, Kostas Michalopoulos < badsectorac...@gmail.com> wrote: > Check the MTProcs unit in the multithreadprocs package (part of Lazarus, > but you need to manually install it from the Install/Uninstall Packages > box). This wiki page describes how to use it: > > http://w

[Lazarus] Is there any alternative to PPL (Parallel Programming Library) on FPC?

2016-02-25 Thread silvioprog
Hello, Just a quote from Embarcadero doc : The RTL provides the Parallel Programming Library (PPL), giving your > applications the ability to have tasks running in parallel taking advantage > of working acros

Re: [Lazarus] Lazarus Release 1.6

2016-02-18 Thread silvioprog
On Thu, Feb 18, 2016 at 12:16 PM, Mattias Gaertner < nc-gaert...@netcologne.de> wrote: > The Lazarus team is glad to announce the release of Lazarus 1.6. [...] Great job! \o/ (SF still "Looking for the latest version? Download lazarus-1.4.4-fpc-2.6.4-win32.exe") -- Silvio Clécio -- __

Re: [Lazarus] Lazarus on my ancient computer?

2016-02-14 Thread silvioprog
On Sun, Feb 14, 2016 at 4:10 PM, silvioprog wrote: [...] > [2] https://img42.com/B9Y5b > [3] https://img42.com/U3hnt > Oops, it seems that img42 is offline now. I meant: [2] http://i.imgur.com/Ifd4vft.png [3] http://i.imgur.com/SDYg6Pi.png -- Silv

Re: [Lazarus] Lazarus on my ancient computer?

2016-02-14 Thread silvioprog
On Sun, Feb 14, 2016 at 12:14 PM, leledumbo wrote: > > So, do you have tips on which Linux flavour to install on this machine? > [...] > Anything with a WM instead of DE. I suggest Manjaro as it's Arch rolling > release philosophy managed under Debian style package repository > versioning, > try

[Lazarus] [ISSUE] Lazaus doesn't work on Windows with the latest FPC version from trunk

2016-01-30 Thread silvioprog
Hello, Issued as #29545 . That problem... -.-' -- Silvio Clécio -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Is the TTabControl.OnDrawTab working on Windows?

2016-01-30 Thread silvioprog
On Sat, Jan 30, 2016 at 10:55 AM, silvioprog wrote: > On Sat, Jan 30, 2016 at 10:34 AM, Bart wrote: > >> On 1/29/16, silvioprog wrote: >> >> > Now set True in the TabControl1.OwnerDraw and try the tests above again, >> > you can't see any message

Re: [Lazarus] Is the TTabControl.OnDrawTab working on Windows?

2016-01-30 Thread silvioprog
On Sat, Jan 30, 2016 at 10:34 AM, Bart wrote: > On 1/29/16, silvioprog wrote: > > > Now set True in the TabControl1.OwnerDraw and try the tests above again, > > you can't see any message btw. > > > > So, is the OnDrawTab event working on Windows? > >

[Lazarus] Is the TTabControl.OnDrawTab working on Windows?

2016-01-29 Thread silvioprog
Hello, Just try the following steps: . Open Lazarus IDE with its empty Form1; . Put a TabControl1 in the Form1 and add one or more tabs; . Implement the OnDrawTab event with this code: procedure TForm1.TabControl1DrawTab(Control: TCustomTabControl; TabIndex: Integer; const Rect: TRect; AAc

Re: [Lazarus] [OT] Why Mantis doesn't notify the changes?

2016-01-27 Thread silvioprog
On Wed, Jan 27, 2016 at 4:57 PM, Bart wrote: > On 1/27/16, Juha Manninen wrote: > > > In fact I did not receive notifications about that issue. I receive > > them about many other issues though. I don't know what is the logic > > here. > > I get notifications of issues that are assigned to me.

Re: [Lazarus] [OT] Why Mantis doesn't notify the changes?

2016-01-27 Thread silvioprog
On Wed, Jan 27, 2016 at 2:50 PM, Juha Manninen wrote: > On Wed, Jan 27, 2016 at 7:43 PM, silvioprog wrote: > > For example, I can't receive any notification related to this issue: > > http://bugs.freepascal.org/view.php?id=29483 > > And I think that Juha can'

Re: [Lazarus] [OT] Why Mantis doesn't notify the changes?

2016-01-27 Thread silvioprog
On Wed, Jan 27, 2016 at 2:47 PM, Dmitry Boyarintsev < skalogryz.li...@gmail.com> wrote: > On Wed, Jan 27, 2016 at 12:43 PM, silvioprog wrote: > >> I can't receive any Mantis notification, even using this configuration: >> > > Maybe Mantis is not configured

Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-27 Thread silvioprog
On Wed, Jan 27, 2016 at 9:30 AM, Fabrício Srdic wrote: > 2016-01-27 0:19 GMT-02:00 silvioprog > >> To summarize my opinion: if I am java programmer, would be better if I >>> can solve my problem via Java classes than using C library binds. If i am a >>> Pascal pr

[Lazarus] [OT] Why Mantis doesn't notify the changes?

2016-01-27 Thread silvioprog
Hello, I can't receive any Mantis notification, even using this configuration: https://img42.com/l8Nog For example, I can't receive any notification related to this issue: http://bugs.freepascal.org/view.php?id=29483 And I think that Juha can't receive any notification too. :-/ So, is Mantis

Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-26 Thread silvioprog
On Tue, Jan 26, 2016 at 10:51 PM, Fabrício Srdic wrote: > Em 26/01/2016 23:23, "silvioprog" escreveu: > > > > On Tue, Jan 26, 2016 at 1:01 PM, Fabrício Srdic < > fabricio.sr...@gmail.com> wrote: > >> > >> Em 26/01/2016 11:30, "silviop

Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-26 Thread silvioprog
On Tue, Jan 26, 2016 at 9:54 PM, Marc Santhoff wrote: > On Mo, 2016-01-25 at 22:09 -0300, silvioprog wrote: > > > But, unfortunatelly, even with this pros, Pascal programmers avoid to use > > external libraries, that's a real fact. :-/ > > Speaking of the cor

Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-26 Thread silvioprog
On Tue, Jan 26, 2016 at 1:01 PM, Fabrício Srdic wrote: > Em 26/01/2016 11:30, "silvioprog" escreveu: > > > > As I said: "... But the one of the basic steps before chosing a library > (from any language) is read its specification, and know if it provides th

Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-26 Thread silvioprog
On Tue, Jan 26, 2016 at 9:17 AM, Fabrício Srdic wrote: > 2016-01-25 23:09 GMT-02:00 silvioprog : > >> But, unfortunatelly, even with this pros, Pascal programmers avoid to use >> external libraries, that's a real fact. :-/ >> >> > This issue is not restrict

Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-25 Thread silvioprog
On Mon, Jan 25, 2016 at 7:02 PM, Dmitry Boyarintsev < skalogryz.li...@gmail.com> wrote: > On Mon, Jan 25, 2016 at 3:08 PM, Michael Van Canneyt < > mich...@freepascal.org> wrote: > >> On Mon, 25 Jan 2016, silvioprog wrote: >> >>> >>> Many units

Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-25 Thread silvioprog
On Mon, Jan 25, 2016 at 5:08 PM, Michael Van Canneyt wrote: > On Mon, 25 Jan 2016, silvioprog wrote: >> >> Many units in Free Pascal and Delphi uses C libraries... when aren't using >> a C library (an API system call, an third party library call, etc.), are >>

Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-25 Thread silvioprog
Oops, On Mon, Jan 25, 2016 at 11:56 AM, silvioprog wrote: [...] > Just an example, the Embarcadero Delphi provides support for BJSON > I meant: "... provides support for BSON ..." .. so I don't see a problem > "... I don't have problem .

Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-25 Thread silvioprog
On Mon, Jan 25, 2016 at 8:54 AM, Jy V wrote: > On Mon, Jan 25, 2016 at 4:59 AM, silvioprog wrote: > >> >> Yes, it can be easily implemented in TP comps. ASA nghttp2 get a pascal >> header, BTW with a ng header in hands, you can use this one with any pascal >> code.

Re: [Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-24 Thread silvioprog
On Sat, Jan 23, 2016 at 8:37 AM, Jy V wrote: > Hello Silvio, > > Are you considering to use TurboPower HTTP components to implements HPACK > and HTTP/2 ? > Hello Jy, Yes, it can be easily implemented in TP comps. ASA nghttp2 get a pascal header, BTW with a ng header in hands, you can use this o

[Lazarus] [PATCH] components/turbopower_ipro: added the Iphttpbroker and its example

2016-01-22 Thread silvioprog
Hello, Issue ID: #29483. [1] This patch implements the HTTP support in the TurboPower IPro component. Thank you! [1] http://bugs.freepascal.org/view.php?id=29483 -- Silvio Clécio -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http:

Re: [Lazarus] MouseAndKeyInput package and scroll up/down with whell button

2016-01-17 Thread silvioprog
On Sun, Jan 17, 2016 at 12:37 AM, silvioprog wrote: [...] > So, I think that MouseAndKeyInput package should implement the scroll > support (triggered via up/down whell button). > Patch sent to: http://bugs.freepascal.org/view.php?id=29437. -- Silv

[Lazarus] MouseAndKeyInput package and scroll up/down with whell button

2016-01-16 Thread silvioprog
Hello, First, thanks to Tom Gregorovic for sharing this awesome package! :-) So, I think that MouseAndKeyInput package should implement the scroll support (triggered via up/down whell button). I took a look at its code, and it seems implemented to compile on Linux, Mac OS and Windows. Nice! :-)

Re: [Lazarus] How to find out the public IP in code?

2015-11-07 Thread silvioprog
On Sat, Nov 7, 2015 at 12:13 PM, fecske fecske wrote: > or see this > > http://forum.lazarus.freepascal.org/index.php/topic,17506.msg110917.html#msg110917 If you just want to get your external IP using some service like dyndns, you should use pure FCL: === begin code === uses fphttpclient, R

Re: [Lazarus] An online package manager

2015-08-10 Thread silvioprog
On Sat, Aug 8, 2015 at 10:27 AM, Aradeonas wrote: > [Cross posted on forum so if you want answer there > :http://forum.lazarus.freepascal.org/index.php/topic,29284.0.html > ] > > > Hi, > > I saw Embarcadero's Getit >

Re: [Lazarus] LazReport - Feature questions

2015-07-09 Thread silvioprog
o Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Compiler Options - Conditionally add a package dependency?

2015-07-09 Thread silvioprog
On Thu, Jul 9, 2015 at 4:05 PM, silvioprog wrote: [...] > This option also enables the 'UseUnitScopeNames' directive, so you can use >> a unit declaration like 'uses {$IFNDEF >> UseUnitScopeNames}MyCompany.{$ENDIF}SysUtils'. > > Oops, "... so you c

Re: [Lazarus] Compiler Options - Conditionally add a package dependency?

2015-07-09 Thread silvioprog
n/Delphi_Compiler -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] [TIP] LazSqlX!

2015-06-03 Thread silvioprog
On Wed, Jun 3, 2015 at 12:22 PM, Michael Van Canneyt wrote: > On Wed, 3 Jun 2015, silvioprog wrote: > >> Hello, >> >> Do you know LazSqlX?: >> >> https://lazsqlx.wordpress.com/ >> >> I found it yesterday on Google, and now it will be one of my wo

[Lazarus] [TIP] LazSqlX!

2015-06-03 Thread silvioprog
- github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Base64 broken in json?

2015-05-30 Thread silvioprog
; j := TJSONObject.Create; j.Add('var1', b64); ShowMessage(j.AsJSON + ' - ' + DecodeStringBase64(j.Strings['var1'])); j.Free; end; Result: [Window Title] project1 [Content] { "var1" : "bGVvbmFyZG8=" } - leonardo [OK] But after take a look at your cod

Re: [Lazarus] Getting common documents folders

2015-05-27 Thread silvioprog
ntains the necessary constants and > calls to retrieve the location. > > Michael. Here in Brazil, on Lazarus-BR group, an member (Joao Marcelo Vaz) sent an very nice tip: uses windirs; ... ShowMessage(GetWindowsSpecialDir(CSIDL_COMMON_DOCUMENTS)); =) -- Silvio Clécio My public proj

Re: [Lazarus] New preprocessor directive

2015-05-24 Thread silvioprog
({$I %CURRENTROUTINE%}); > end. > > Which produces something like > > Entering $main > Entering DoSomething > Doing something in DoSomething at line 44 > Entering DoNested > Nested handling in DoNested > Exiting DoNested > Exiting DoSomething &g

Re: [Lazarus] Feature request/inquiry

2015-04-30 Thread silvioprog
On Sun, Apr 26, 2015 at 5:07 PM, Dmitry Boyarintsev < skalogryz.li...@gmail.com> wrote: > On Sun, Apr 26, 2015 at 3:17 PM, silvioprog wrote: > >> >> I implemented this feature in an old project that I maintain, >> LazSolutions, and it was cross-platform. >>

Re: [Lazarus] Feature request/inquiry

2015-04-26 Thread silvioprog
implemented this feature in an old project that I maintain, LazSolutions, and it was cross-platform. -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] [Release 1.4.0]: is the Identifier Completation compatible with generic?

2015-04-22 Thread silvioprog
Oops... On Wed, Apr 22, 2015 at 2:49 AM, silvioprog wrote: > [...] > In Lazarus 1.2.4 it works fine. > ... In Lazarus 1.2.6 ... I'd downgrade while I not get why it does not work. XD -- Silvio Clécio My public projects - github.

[Lazarus] [Release 1.4.0]: is the Identifier Completation compatible with generic?

2015-04-21 Thread silvioprog
6,17) Error: identifier not found: specialize" In Lazarus 1.2.4 it works fine. Thank you! -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/

Re: [Lazarus] How to write an eficient lexical scanner/parser?

2015-03-13 Thread silvioprog
he direct code generation approach anymore as I found the > abstract syntax tree to be usable for more than just code generation. > Buddy, thanks alot for that information. I'll take a look at this! =) -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] How to write an eficient lexical scanner/parser?

2015-03-10 Thread silvioprog
d some ideas after seeing your code. Thank you! -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] How to write an eficient lexical scanner/parser?

2015-03-10 Thread silvioprog
rge.net/xidel.html > http://www.benibela.de/sources_en.html#internettools > > Ara > I think that it uses regex as parser. I'll check when I have a free time. Thank you! -- Silvio Clécio My public projects - github.com/silvioprog -- _

Re: [Lazarus] How to write an eficient lexical scanner/parser?

2015-03-10 Thread silvioprog
09fc40 > > For general theory you can look on recursive descent parsers (they're the > simplest to implement and AFAIK most compilers use them, either to build > the token list or directly). > I downloaded the PDF with all ar

Re: [Lazarus] Play video from memory

2015-03-08 Thread silvioprog
ffmpeg.com/downloads/ -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] How to write an eficient lexical scanner/parser?

2015-03-06 Thread silvioprog
o write lexical parsers' using Object Pascal? I need any material about this subject, and I'm very grateful for any tip. Thanks in advance! -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list L

Re: [Lazarus] Play video from memory

2015-03-06 Thread silvioprog
On Fri, Mar 6, 2015 at 2:02 PM, aradeonas wrote: > Anyway if anyone know a way or library please tell me. > > Ara > You can get some video libraries here: http://wiki.freepascal.org/Video_Playback_Libraries -- Silvio Clécio My public projects - github.co

Re: [Lazarus] bittorrent

2015-03-06 Thread silvioprog
code.google.com/p/transmisson-remote-gui/ -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] How can I configure "unit scope names" in Lazarus?

2015-02-26 Thread silvioprog
On Thu, Feb 26, 2015 at 5:57 PM, Sven Barth wrote: > On 26.02.2015 21:50, silvioprog wrote: > >> Is this feature - unit scope names - implemented in FPC? If so, the >> Lazarus IDE has a window to configure that in my project? >> > > FPC does not support that yet. &

[Lazarus] How can I configure "unit scope names" in Lazarus?

2015-02-26 Thread silvioprog
that in my project? Thank you! -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] [OT] HTTP/2 is Done!

2015-02-19 Thread silvioprog
Just sharing: https://www.mnot.net/blog/2015/02/18/http2 Enjoy reading! =) -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman

Re: [Lazarus] Inversion of control (IoC) and Dependency injection (DI)

2015-01-11 Thread silvioprog
On Mon, Jan 5, 2015 at 5:07 PM, luiz americo pereira camara < luiz...@oi.com.br> wrote: > Starting a new thread. > > 2015-01-05 15:16 GMT-03:00 silvioprog : > >> On Mon, Jan 5, 2015 at 12:54 PM, Marco van de Voort >> wrote: >> >>> >>> A

Re: [Lazarus] HEADS UP: FPC 3.0.1 stable branched off.

2015-01-05 Thread silvioprog
html -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Is FPDoc Editor working?

2014-12-22 Thread silvioprog
path > > Now I can place the cursor on FooBar and click the 'Create Help Item' > button in FPDoc Editor. > Yes! Following this steps it worked fine here. Thanks alot! (y) -- Silvio Clécio My public projects - github.com/silvioprog -- _

Re: [Lazarus] Is FPDoc Editor working?

2014-12-21 Thread silvioprog
Lazarus list rejected my e-mail because my attachments > 100 KB. ¬¬' Attachment 1: http://tinypic.com/r/zko60n/8 ; Attachment 2: http://tinypic.com/r/2yo77v6/8 Please see my message below: On Sat, Dec 20, 2014 at 6:33 PM, silvioprog wrote: > On Sat, Dec 20, 2014 at 5:38 AM, Matti

[Lazarus] [ISSUE] "Complete Code" does not work with dotted unit

2014-12-20 Thread silvioprog
Hello, Please see in: http://bugs.freepascal.org/view.php?id=27193 Thank you! -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman

Re: [Lazarus] FPDoc Editor vs Lazarus Documentation Tool

2014-12-20 Thread silvioprog
On Sat, Dec 20, 2014 at 7:21 PM, Graeme Geldenhuys < mailingli...@geldenhuys.co.uk> wrote: > On 2014-12-20 22:06, silvioprog wrote: > > The documentation generated by the FPDoc is not responsive (e.g: > > http://goo.gl/bCJoPM), i.e., it does not open well on a mobile devic

Re: [Lazarus] FPDoc Editor vs Lazarus Documentation Tool

2014-12-20 Thread silvioprog
://getbootstrap.com/) in FPDoc and all generated documentation could have a better appearance and be compatible with any device that can render HTML. =) -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.

Re: [Lazarus] FPDoc Editor vs Lazarus Documentation Tool

2014-12-20 Thread silvioprog
ct > > > > Describes the name of the object > > > > > > == > > > Doing it manually with code templates, I'm just as fast as the built-in > editor, so it's note a speed thing. ;-) So why not add this option

Re: [Lazarus] FPDoc Editor vs Lazarus Documentation Tool

2014-12-20 Thread silvioprog
On Sat, Dec 20, 2014 at 8:18 AM, Graeme Geldenhuys < mailingli...@geldenhuys.co.uk> wrote: > On 2014-12-19 21:58, silvioprog wrote: > > What is the most recomended tool to make documentation?: > > I simply use my favourite text editor (EditPad Pro) and code templates. > I

[Lazarus] FPDoc Editor vs Lazarus Documentation Tool

2014-12-19 Thread silvioprog
ou! -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Is FPDoc Editor working?

2014-12-19 Thread silvioprog
e it? I saw the (wrong) step by step in this link: http://wiki.lazarus.freepascal.org/LazDoc. Thank you! -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepas

Re: [Lazarus] Thanks to FPC team: Record helper for primitive types!

2014-11-29 Thread silvioprog
On Sat, Nov 29, 2014 at 5:55 PM, silvioprog wrote: > On Sat, Nov 29, 2014 at 4:54 PM, Michael Van Canneyt < > mich...@freepascal.org> wrote: >> >> On Sat, 29 Nov 2014, silvioprog wrote: >> >>> On Sat, Nov 29, 2014 at 2:04 PM, Sven Barth >>> wrote:

Re: [Lazarus] Thanks to FPC team: Record helper for primitive types!

2014-11-29 Thread silvioprog
On Sat, Nov 29, 2014 at 4:54 PM, Michael Van Canneyt wrote: > > On Sat, 29 Nov 2014, silvioprog wrote: > >> On Sat, Nov 29, 2014 at 2:04 PM, Sven Barth >> wrote: >> On 29.11.2014 16:54, silvioprog wrote: >> Hello, >> >> T

Re: [Lazarus] Thanks to FPC team: Record helper for primitive types!

2014-11-29 Thread silvioprog
On Sat, Nov 29, 2014 at 2:04 PM, Sven Barth wrote: > On 29.11.2014 16:54, silvioprog wrote: > >> Hello, >> >> Today I compiled my FPC from trunk and saw the following possibility: >> > > This feature is available since February 2013 already, you just had t

[Lazarus] Thanks to FPC team: Record helper for primitive types!

2014-11-29 Thread silvioprog
to Sven!) =D -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] UTF8 RTL for Windows

2014-11-20 Thread silvioprog
nd how to adapt their code. > > Please test and tell what you find out. > > > Mattias The best news of the year! \o/ \o/ \o/ Thanks thanks thanks Lazarus/FPC team! (y) -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] TSQLQuery: Getting autoincremented ID value after insert (MySQL)

2014-11-14 Thread silvioprog
> taking the sequence name as an argument it fetches the value of the last > sequence used by nextval in the current session. It is an error to call > lastval if nextval has not yet been called in the current session. And PostgreSQL provides the RETURNING feature too. =) -- Sil

Re: [Lazarus] TSQLQuery: Getting autoincremented ID value after insert (MySQL)

2014-11-14 Thread silvioprog
abela `test` -- CREATE TABLE IF NOT EXISTS `test` ( `id` int(11) NOT NULL, `foo` varchar(20) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; -- -- Indexes for dumped tables -- -- -- Indexes for table `test` -- ALTER TABLE `test` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `test` -- ALTER TABLE `test` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5; -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] TSQLQuery: Getting autoincremented ID value after insert (MySQL)

2014-11-14 Thread silvioprog
On Fri, Nov 14, 2014 at 12:49 PM, silvioprog wrote: > On Fri, Nov 14, 2014 at 11:43 AM, Michael Van Canneyt < > mich...@freepascal.org> wrote: > [...] > >> AFAIK Only sqlite does not (maybe it does today). But that is not a DBMS >> :-) > > > Yes. It would

Re: [Lazarus] TSQLQuery: Getting autoincremented ID value after insert (MySQL)

2014-11-14 Thread silvioprog
rningclause); > TDBCapabilities = set of TDBCapability; > > and > > Class function DatabaseCapabilities : TDBCapabilities; > > I don't really like using interfaces when things can be done more simple. Good too dude. =) Protected virtual methods would be welcome too. =) --

Re: [Lazarus] TSQLQuery: Getting autoincremented ID value after insert (MySQL)

2014-11-14 Thread silvioprog
ttp://stackoverflow.com/questions/17112852/get-the-new-record-primary-key-id-from-mysql-insert-query === -- Silvio Clécio My public projects - github.com/silvioprog -- __

Re: [Lazarus] TSQLQuery: Getting autoincremented ID value after insert (MySQL)

2014-11-14 Thread silvioprog
class(..., ISQLSequence) .. function GetLastId: int64; // implemented in programmer project, using X feature TXSequence = class(..., ISQLSequence) .. function GetLastId: int64; So: PQConnector1.SetSequencer(TPGSequence.Create); or: XYZConnector1.SetSequ

Re: [Lazarus] TSQLQuery: Getting autoincremented ID value after insert (MySQL)

2014-11-14 Thread silvioprog
On Fri, Nov 14, 2014 at 10:40 AM, Michael Van Canneyt < mich...@freepascal.org> wrote: > > On Fri, 14 Nov 2014, silvioprog wrote: > >> On Fri, Nov 14, 2014 at 10:15 AM, Michael Van Canneyt < >> mich...@freepascal.org> wrote: >> [...] >> Connect

Re: [Lazarus] TSQLQuery: Getting autoincremented ID value after insert (MySQL)

2014-11-14 Thread silvioprog
nice new feature in SQLdb! =) Currently I use it via cursor from the database driver. It is very very fast and is transaction independent. =) -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freep

Re: [Lazarus] TSQLQuery: Getting autoincremented ID value after insert (MySQL)

2014-11-14 Thread silvioprog
e of some fields fro the DB, > but it is not implemented yet. Awesome news! =) Some branch to follow this new implementations? (trunk?) Thanks! -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.

Re: [Lazarus] TSQLQuery: Getting autoincremented ID value after insert (MySQL)

2014-11-14 Thread silvioprog
On Fri, Nov 14, 2014 at 9:53 AM, Reimar Grabowski wrote: > On Thu, 13 Nov 2014 11:33:58 -0300 > silvioprog wrote: > > > I use an own "TPreparedStatement" (equivalent to TSQLQuery prepared + > > Params, but my structure does not uses TDataset) that I get the la

Re: [Lazarus] TSQLQuery: Getting autoincremented ID value after insert (MySQL)

2014-11-13 Thread silvioprog
actory.GetInstance(Context).Insert(MyObject); [/code] or: [code] TConnectionFactory.GetInstance(Context).Insert(MyObject); WriteLn('The generated ID is: ', MyObject.Id); [/code] or with on conflict: [code] TConnectionFactory.GetInstance(Context).UpdateW

Re: [Lazarus] Detecting if a remote web server is running

2014-10-30 Thread silvioprog
to see if it is servicing requests... the > easiest and smallest would be to request the headers (only) from the root... +1 Like this: http://lists.lazarus.freepascal.org/pipermail/lazarus/2014-October/089112.html -- Silvio Clécio My public projects - github.com/silvioprog -- _

Re: [Lazarus] Detecting if a remote web server is running

2014-10-30 Thread silvioprog
27;) else ShowMessage('Fail'); finally VHeaders.Free; VHttp.Free; end; end; -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

  1   2   3   4   5   6   7   8   >