Re: [fpc-pascal] "Double" specialization of generic class

2014-04-14 Thread Xiangrong Fang
Hi Sven, I am using fpc 2.6.2. I am very sorry that I don't have time to compile and install 2.7.1 at this time. It's good to know that it works, at least in 2.7.1. I will report the problem again while I start using 2.7.1 or when it is released as 2.8 :-) For now, another suggestion regardin

Re: [fpc-pascal] "Double" specialization of generic class

2014-04-14 Thread Sven Barth
On 15.04.2014 03:51, Xiangrong Fang wrote: Hi, I got strange ppcx64 error: -139, which I found is caused by this: type TNodeStack = specialize TVector; where TNodeHash itself is a specialization: type PNode = ^TNode; //TNode is a plain record TNodeHash = specialize TTreap; Is it tru

[fpc-pascal] "Double" specialization of generic class

2014-04-14 Thread Xiangrong Fang
Hi, I got strange ppcx64 error: -139, which I found is caused by this: type TNodeStack = specialize TVector; where TNodeHash itself is a specialization: type PNode = ^TNode; //TNode is a plain record TNodeHash = specialize TTreap; Is it true that specialization of a generic class using a

Re: [fpc-pascal] Just a question about OAuth 2.0 implementation

2014-04-14 Thread silvioprog
2014-04-14 9:39 GMT-03:00 silvioprog : > Hello, > > Just a question, anyone here has implemented some code for OAuth 2.0? (FPC > or Delphi) > > I implemented with 1.0 in my new TDropbox class, but now I'm trying to > implement it with 2.0, because I'm needing to make an automatic > authorization i

Re: [fpc-pascal] Just a question about OAuth 2.0 implementation

2014-04-14 Thread silvioprog
2014-04-14 17:52 GMT-03:00 Dariusz Mazur : [...] > I does one. > If You interested I public it on github. > I'm interested! :) -- Silvio Clécio My public projects - github.com/silvioprog ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org htt

Re: [fpc-pascal] Just a question about OAuth 2.0 implementation

2014-04-14 Thread silvioprog
2014-04-14 10:41 GMT-03:00 silvioprog : [...] > Now I'm finding any code implementing 2.0. I'm almost getting to do, my > problem now is just a 400 error that I am trying to solve. > Done: https://duallsistemas.com.br/cgi1.bf -- Silvio Clécio My public projects - github.com/silvioprog

Re: [fpc-pascal] Just a question about OAuth 2.0 implementation

2014-04-14 Thread Michael Van Canneyt
On Mon, 14 Apr 2014, Dariusz Mazur wrote: On 2014-04-14 14:39, silvioprog wrote: Hello, Just a question, anyone here has implemented some code for OAuth 2.0? (FPC or Delphi) I does one. If You interested I public it on github. Yes please !! Michael._

Re: [fpc-pascal] Just a question about OAuth 2.0 implementation

2014-04-14 Thread Dariusz Mazur
On 2014-04-14 14:39, silvioprog wrote: Hello, Just a question, anyone here has implemented some code for OAuth 2.0? (FPC or Delphi) I does one. If You interested I public it on github. Darek I implemented with 1.0 in my new TDropbox class, but now I'm trying to implement it with 2.0,

Re: [fpc-pascal] how to use macros on linux?

2014-04-14 Thread waldo kitty
On 4/14/2014 12:54 PM, Mattias Gaertner wrote: On Mon, 14 Apr 2014 12:29:00 -0400 waldo kitty wrote: when i try to compile a program on my non-GUI linux, it tells me that it can't find the programs... hunh? fpc -FUlib/$(TargetCPU)-$(TargetOS) foo.pas These are Lazarus macros. oh! hummm.

Re: [fpc-pascal] how to use macros on linux?

2014-04-14 Thread Sven Barth
On 14.04.2014 18:54, Mattias Gaertner wrote: so how do i use macros to tell fpc where to place the unit libraries on linux like i do for winwhatever?? fpc macro example: fpc -FUlib/\$fpctarget foo.pas And just for explanation: the "\$" is needed so that the shell does not treat the $fpctarge

Re: [fpc-pascal] how to use macros on linux?

2014-04-14 Thread Mattias Gaertner
On Mon, 14 Apr 2014 12:29:00 -0400 waldo kitty wrote: > > when i try to compile a program on my non-GUI linux, it tells me that it > can't > find the programs... hunh? > > > fpc -FUlib/$(TargetCPU)-$(TargetOS) foo.pas These are Lazarus macros. > so how do i use macros to tell fpc where to

[fpc-pascal] how to use macros on linux?

2014-04-14 Thread waldo kitty
when i try to compile a program on my non-GUI linux, it tells me that it can't find the programs... hunh? fpc -FUlib/$(TargetCPU)-$(TargetOS) foo.pas fpc is trunk installed via fpcup... [quote] user@machine:~/development/projects/misc$ ~/fpc -FUlib/$(TargetCPU)-$(TargetOS) foo.pas Targe

Re: [fpc-pascal] Just a question about OAuth 2.0 implementation

2014-04-14 Thread silvioprog
2014-04-14 10:20 GMT-03:00 Reinier Olislagers : > On 14/04/2014 15:02, silvioprog wrote: > > 2014-04-14 9:49 GMT-03:00 Michael Van Canneyt > > > >: > > > > On Mon, 14 Apr 2014, silvioprog wrote: > > > Very nice. For 1.0 was easy, beca

Re: [fpc-pascal] Just a question about OAuth 2.0 implementation

2014-04-14 Thread Reinier Olislagers
On 14/04/2014 15:02, silvioprog wrote: > 2014-04-14 9:49 GMT-03:00 Michael Van Canneyt > >: > > On Mon, 14 Apr 2014, silvioprog wrote: > Very nice. For 1.0 was easy, because I found a base code in PHP: Or in cough... open sou

Re: [fpc-pascal] Just a question about OAuth 2.0 implementation

2014-04-14 Thread silvioprog
2014-04-14 9:49 GMT-03:00 Michael Van Canneyt : > > On Mon, 14 Apr 2014, silvioprog wrote: > >> Hello, >> Just a question, anyone here has implemented some code for OAuth 2.0? >> (FPC or Delphi) >> >> I implemented with 1.0 in my new TDropbox class, but now I'm trying to >> implement it with 2.0,

Re: [fpc-pascal] Just a question about OAuth 2.0 implementation

2014-04-14 Thread Michael Van Canneyt
On Mon, 14 Apr 2014, silvioprog wrote: Hello, Just a question, anyone here has implemented some code for OAuth 2.0? (FPC or Delphi) I implemented with 1.0 in my new TDropbox class, but now I'm trying to implement it with 2.0, because I'm needing to make an automatic authorization in a serve

[fpc-pascal] Just a question about OAuth 2.0 implementation

2014-04-14 Thread silvioprog
Hello, Just a question, anyone here has implemented some code for OAuth 2.0? (FPC or Delphi) I implemented with 1.0 in my new TDropbox class, but now I'm trying to implement it with 2.0, because I'm needing to make an automatic authorization in a server side app. So, if you prefer no need to sho

Re: [fpc-pascal] Watching for file change

2014-04-14 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 04/11/2014 09:53 PM, Henry Vermaak wrote: You can use the inotify* functions in linux unit. See the man pages or Wikipedia for how they work. inotify is nice because - like anything in Linux - it is just a file. Like "most anything". In particular, named network

Re: [fpc-pascal] Watching for file change

2014-04-14 Thread Michael Van Canneyt
On Sun, 13 Apr 2014, Graeme Geldenhuys wrote: On 2014-04-12 20:16, Henry Vermaak wrote: No, the linux solution isn't distro dependent, since it's in the kernel. inotify came in 2005-ish to deprecate dnotify, but even dnotify still OK, but does FCL include a cross-platform API that covers a

Re: [fpc-pascal] Watching for file change

2014-04-14 Thread Michael Schnell
On 04/11/2014 09:53 PM, Henry Vermaak wrote: You can use the inotify* functions in linux unit. See the man pages or Wikipedia for how they work. inotify is nice because - like anything in Linux - it is just a file. Of course it would be nice if the rtl would provide an arch independent e

Re: [fpc-pascal] https support; call for testers

2014-04-14 Thread Reinier Olislagers
On 13/04/2014 22:29, Michael Van Canneyt wrote: > On Sun, 13 Apr 2014, Reinier Olislagers wrote: >> On 11/04/2014 15:27, Reinier Olislagers wrote: >>> On 11/04/2014 15:00, Michael Van Canneyt wrote: >> If you want to use client side certificates with httpclient, how would >> you do specify that? >

Re: [fpc-pascal] Building fpcdocs from svn release

2014-04-14 Thread Michael Van Canneyt
On Fri, 11 Apr 2014, Seweryn Walentynowicz wrote: I want to build docs from latest svn version : $ svn co http://svn.freepascal.org/svn/fpcbuild/trunk/ $ cd trunk $ svn update Updating '.': Fetching external item into 'fpcsrc': External at revision 27536. Fetching external item into 'fpcdocs