Re: [fpc-pascal] pas2js mailing list

2018-01-17 Thread Michael Van Canneyt



On Tue, 16 Jan 2018, AB wrote:


I still can not enter anything there that is accepted.
For example: Writeln('def'+'@abc.com');
gives an error. No matter what I enter there it just gives an error 
"Anti-abuse result is wrong.". Small letters, capital letters, 
semicolon, simple letters, all variations of the above, does not matter.




The anti-abuse line is a question to which you must answer.
You must not enter a new expression, you must enter the result of the writeln 
statement that you see there.
in my case that was abCD

The anti abuse is supposed to be a simple measure against spam bots
subscribing a lot of email addresses automatically.

Michael.



AB

On 01/16/2018 12:52 PM, James Richters wrote:
Technically the anti-abuse field would produce the output of:  Fatal Syntax 

error, ";" expected but "identifier WRITELN" found
because there is no semicolon following the sample code.  :DI guess 
maybe it's after an if statement and before an else so it doesn't need a 
semicolon?


Silliness aside

Writeln ('String1'+'String2');  merges the strings together and will 
output:  String1String2, it makes more sense if some strings are in 
variables, like Writeln(prefixstring+'string here'+suffixstring);

So given writeln('ab'+'CD'); you would get output of:  abCD

Jim

-Original Message-
From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf 

Of AB

Sent: Tuesday, January 16, 2018 1:09 PM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] pas2js mailing list

OK,  WTH am I supposed to enter into the anti-abuse field?
I tried a few dozen variations of everything and nothing is accepted.

I might be too old and senile :)  can we get some small explanation there?

AB

PS: BTW, Great work guys on pas2js

On 01/15/2018 07:42 AM, Mattias Gaertner wrote:

Hi,

There is now a public mailing list for pas2js. You can subscribe here:

http://lists.freepascal.org/mailman/listinfo/pas2js/


Mattias
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org 

http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] pas2js mailing list

2018-01-17 Thread James Richters
I think you are overcomplicating it,  the answer is always:abCDfor 
everyone... quite literally, just put in:

abCD

it will not accpt anything but abCD  make sure lowercase ab and uppercase CD
it's not a trick question, it's just a way of keeping bots from auto 
registering.If it won't accept abCD then try another browser perhaps.

Jim

-Original Message-
From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of 
AB
Sent: Tuesday, January 16, 2018 5:30 PM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] pas2js mailing list

I still can not enter anything there that is accepted.
For example: Writeln('def'+'@abc.com');
gives an error. No matter what I enter there it just gives an error "Anti-abuse 
result is wrong.". Small letters, capital letters, semicolon, simple letters, 
all variations of the above, does not matter.

AB

On 01/16/2018 12:52 PM, James Richters wrote:
> Technically the anti-abuse field would produce the output of:  Fatal Syntax 
> error, ";" expected but "identifier WRITELN" found
> because there is no semicolon following the sample code.  :DI guess maybe 
> it's after an if statement and before an else so it doesn't need a semicolon?
> 
> Silliness aside
> 
> Writeln ('String1'+'String2');  merges the strings together and will 
> output:  String1String2, it makes more sense if some strings are in 
> variables, like Writeln(prefixstring+'string here'+suffixstring); So 
> given writeln('ab'+'CD'); you would get output of:  abCD
> 
> Jim
> 
> -Original Message-
> From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On 
> Behalf Of AB
> Sent: Tuesday, January 16, 2018 1:09 PM
> To: fpc-pascal@lists.freepascal.org
> Subject: Re: [fpc-pascal] pas2js mailing list
> 
> OK,  WTH am I supposed to enter into the anti-abuse field?
> I tried a few dozen variations of everything and nothing is accepted.
> 
> I might be too old and senile :)  can we get some small explanation there?
> 
> AB
> 
> PS: BTW, Great work guys on pas2js
> 
> On 01/15/2018 07:42 AM, Mattias Gaertner wrote:
>> Hi,
>>
>> There is now a public mailing list for pas2js. You can subscribe here:
>>
>> http://lists.freepascal.org/mailman/listinfo/pas2js/
>>
>>
>> Mattias
>> ___
>> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org 
>> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>>
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org 
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
> 
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org 
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
> 
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org 
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] pas2js mailing list

2018-01-17 Thread AB

Ahh, ok,  I see now.
Can we change the field caption to "Security question: What would be the 
result of writeln(...)" then please, so even idiots like me can 
understand what is expected in there? :)


AB

On 01/17/2018 12:49 AM, James Richters wrote:

I think you are overcomplicating it,  the answer is always:abCDfor 
everyone... quite literally, just put in:

abCD

it will not accpt anything but abCD  make sure lowercase ab and uppercase CD
it's not a trick question, it's just a way of keeping bots from auto 
registering.If it won't accept abCD then try another browser perhaps.

Jim

-Original Message-
From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of 
AB
Sent: Tuesday, January 16, 2018 5:30 PM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] pas2js mailing list

I still can not enter anything there that is accepted.
For example: Writeln('def'+'@abc.com');
gives an error. No matter what I enter there it just gives an error "Anti-abuse 
result is wrong.". Small letters, capital letters, semicolon, simple letters, all 
variations of the above, does not matter.

AB

On 01/16/2018 12:52 PM, James Richters wrote:

Technically the anti-abuse field would produce the output of:  Fatal Syntax error, ";" 
expected but "identifier WRITELN" found
because there is no semicolon following the sample code.  :DI guess maybe 
it's after an if statement and before an else so it doesn't need a semicolon?

Silliness aside

Writeln ('String1'+'String2');  merges the strings together and will
output:  String1String2, it makes more sense if some strings are in
variables, like Writeln(prefixstring+'string here'+suffixstring); So
given writeln('ab'+'CD'); you would get output of:  abCD

Jim

-Original Message-
From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On
Behalf Of AB
Sent: Tuesday, January 16, 2018 1:09 PM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] pas2js mailing list

OK,  WTH am I supposed to enter into the anti-abuse field?
I tried a few dozen variations of everything and nothing is accepted.

I might be too old and senile :)  can we get some small explanation there?

AB

PS: BTW, Great work guys on pas2js

On 01/15/2018 07:42 AM, Mattias Gaertner wrote:

Hi,

There is now a public mailing list for pas2js. You can subscribe here:

http://lists.freepascal.org/mailman/listinfo/pas2js/


Mattias
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org 
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] FPC 3.0.4 on Ubuntu Trusty

2018-01-17 Thread Darius Blaszyk
As I don't have Trusty installed I thought I would ask here instead.
What is the most convenient way to install FPC 3.0.4 on Ubuntu Trusty?
Is it as simple as downloading and installing the deb/rpm package from
the website or is there a ppa somewhere for me to use? Does FPC 3.0.4
work on Trusty? The default on Trusty seems to be 2.6.4.

 Rgds, Darius___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC 3.0.4 on Ubuntu Trusty

2018-01-17 Thread Victor Campillo

On 17/01/18 21:05, Darius Blaszyk wrote:
As I don't have Trusty installed I thought I would ask here instead. 
What is the most convenient way to install FPC 3.0.4 on Ubuntu Trusty? 
Is it as simple as downloading and installing the deb/rpm package from 
the website or is there a ppa somewhere for me to use? Does FPC 3.0.4 
work on Trusty? The default on Trusty seems to be 2.6.4.

Hi,

My system is Ubuntu trusty (Xubuntu actually) and I have installed FPC 
2.6.2, 2.6.4, 3.0.0, 3.0.2, 3.0.4 and trunk, all of then work without 
problems.


About the best way to install it, I highly recommend to compile it from 
sources, it is the best way without any doubt.


Best Regards.

--
Victor Campillo

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC 3.0.4 on Ubuntu Trusty

2018-01-17 Thread Darius Blaszyk
> About the best way to install it, I highly recommend to compile it from 
> sources, it is the best way without any doubt.

Thanks Victor! However, compiling from sources is not very practical for
me. I need to install the latest FPC for a Travis-CI build. So therefore
I need a binary distribution preferably. I did find this PPA btw:
https://launchpad.net/~ok2cqr/+archive/ubuntu/lazarus, which provides
FPC 3.0.0 for now. Is there an "official" PPA anywhere?

Rgds, Darius___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC 3.0.4 on Ubuntu Trusty

2018-01-17 Thread Michael Van Canneyt



On Wed, 17 Jan 2018, Darius Blaszyk wrote:


About the best way to install it, I highly recommend to compile it from 
sources, it is the best way without any doubt.


Thanks Victor! However, compiling from sources is not very practical for
me. I need to install the latest FPC for a Travis-CI build. So therefore
I need a binary distribution preferably. I did find this PPA btw:
https://launchpad.net/~ok2cqr/+archive/ubuntu/lazarus, which provides
FPC 3.0.0 for now. Is there an "official" PPA anywhere?


No.

We sometimes have .deb downloads on the website, but not always.

You're better off taking the .tar.gz. It should work on any linux system.

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC 3.0.4 on Ubuntu Trusty

2018-01-17 Thread Graeme Geldenhuys

On 2018-01-17 20:05, Darius Blaszyk wrote:

What is the most convenient way to install FPC 3.0.4 on Ubuntu Trusty?


In the years that I still used Linux (Ubuntu) as my primary OS, I ALWAYS 
used the official Free Pascal console installer (never the bundled 
packages for FPC or Lazarus). Then simply used the apt-get package 
manager to install the dependencies:


  sudo apt-get install libX11-dev
  sudo apt-get install libXft-dev

That pulled in everything I needed to get a working development 
environment on Ubuntu. That way I could also install multiple version of 
FPC for testing.


Regards,
  Graeme

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Strange issue with TXMLConfig

2018-01-17 Thread Darius Blaszyk
All of a sudden I get a crash in my app trying to read a path from an
XML file. The crash comes from the function TDOMNamedNodeMap.Find that
crashes on this line: 

C := TDOMNode(FList.List^[I]).CompareName(name);

The strange thing is that a simplified example app does not crash! In
any case I'm 100% sure the path exists and either way even if it didn't
XMLConfig should not crash. The message form the lazarus code inspector
is: Type TDOMNODE has no component named COMPARENAME.The code also never
reaches the CompareName function when I set a breakpoint.

I'm at a loss. Is any one capable to understand what is happening?

Rgds, Darius

My code is:

c := cache.GetValue('filelist/item_1/crc', 0);

The XML is:



  

  


The BT is:

An unhandled exception occurred at $000100033BA4:
EAccessViolation: Access violation
  $000100033BA4 line 1783 of fcl-xml/src/dom.pp
  $000100033C75 line 1802 of fcl-xml/src/dom.pp
  $00010003707D line 3159 of fcl-xml/src/dom.pp
  $00010002EC28 line 195 of xmlconf.pp___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Strange issue with TXMLConfig

2018-01-17 Thread Vojtěch Čihák

Hi, I can only say that TDOMNode from Laz2_DOM in trunk has function 
CompareName.
 
V.
__

Od: Darius Blaszyk 
Komu: FPC-Pascal users discussions 
Datum: 18.01.2018 00:11
Předmět: [fpc-pascal] Strange issue with TXMLConfig


All of a sudden I get a crash in my app trying to read a path from an XML file. 
The crash comes from the function TDOMNamedNodeMap.Find that crashes on this 
line: 

C := TDOMNode(FList.List^[I]).CompareName(name);

The strange thing is that a simplified example app does not crash! In any case 
I'm 100% sure the path exists and either way even if it didn't XMLConfig should 
not crash. The message form the lazarus code inspector is: Type TDOMNODE has no 
component named COMPARENAME.The code also never reaches the CompareName 
function when I set a breakpoint.

I'm at a loss. Is any one capable to understand what is happening?

Rgds, Darius


My code is:

    c := cache.GetValue('filelist/item_1/crc', 0);

The XML is:



  
    
  


The BT is:

An unhandled exception occurred at $000100033BA4:
EAccessViolation: Access violation
  $000100033BA4 line 1783 of fcl-xml/src/dom.pp
  $000100033C75 line 1802 of fcl-xml/src/dom.pp
  $00010003707D line 3159 of fcl-xml/src/dom.pp
  $00010002EC28 line 195 of xmlconf.pp

--

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal 

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Strange issue with TXMLConfig

2018-01-17 Thread Vojtěch Čihák

The second TDOMNode from unit DOM (fcl-xml) has that function too, in FPC 3.0.4.
V.
__

Od: Vojtěch Čihák 
Komu: FPC-Pascal users discussions
Datum: 18.01.2018 00:30
Předmět: Re: [fpc-pascal] Strange issue with TXMLConfig


Hi, I can only say that TDOMNode from Laz2_DOM in trunk has function 
CompareName.
 
V.
__
> Od: Darius Blaszyk 
> Komu: FPC-Pascal users discussions 
> Datum: 18.01.2018 00:11
> Předmět: [fpc-pascal] Strange issue with TXMLConfig
>

--

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal  


--

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal 

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal