Typo in the manual

2014-02-02 Thread Christophe Gragnic
At http://software-lab.de/doc/ref.html#errors
In the last sentence «An arbitrary error can be thrown explicitly with quit.»
quit links to http://software-lab.de/doc/refC.html#quit
but should link to http://software-lab.de/doc/refQ.html#quit

Happy hacking.

-- 

http://profgra.org/lycee/ (site pro)
http://delicious.com/profgraorg (liens, favoris)
https://twitter.com/profgraorg
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Typo in the manual

2014-02-02 Thread Alexander Burger
Hi Christophe,

 quit links to http://software-lab.de/doc/refC.html#quit
 but should link to http://software-lab.de/doc/refQ.html#quit

Many thanks! I've fixed it :)

♪♫ Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Calculating age based on DOB

2014-02-02 Thread me
Thank you Alex.  I cannot seem to find httpGate anywhere in the
distribution 3.1.5.  I know this is terribly noob-ish but where is httpGate
located?


On Mon, Jan 27, 2014 at 2:02 AM, Alexander Burger a...@software-lab.dewrote:

 Hi David,

  If I load the app by going to localhost:8080 I see the button and can
 click
  on it but nothing happens and the button becomes disabled.  If I then
  refresh the page (it now has a long session string in the address bar)
 the
  button is enabled and I can click on it, the desired Alert dialog pops up
  working correctly.

 Indeed, this is a known problem.

 The reason lies with the same server orgigin policy of JavaScript's
 XMLHttpRequests. Because PicoLisp uses a separate HTTP port for each
 session, JavaScript (wrongly) believes this is a new server, and refuses
 to execute :(


  How can I get the button to work the first time without reloading the
 page?

 The right way to handle this is to run web applications in combination
 with 'httpGate'. The best way is to start (as user 'root')

/usr/lib/picolisp/bin/httpGate 80 8080

 and (if you like to use HTTPS)

/usr/lib/picolisp/bin/httpGate 443 8080 path-to-PEM

 I have similar lines in my /etc/rc.local file. For a local
 installation, adjust the pathes to 'httpGate' accordingly.


 With httpGate you also have the advantage that you don't need to specify
 :8080 in the browser (and that you can use HTTPS, of course).

 ♪♫ Alex
 --
 UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe



Re: Calculating age based on DOB

2014-02-02 Thread Alexander Burger
Hi David,

 Thank you Alex.  I cannot seem to find httpGate anywhere in the
 distribution 3.1.5.  I know this is terribly noob-ish but where is httpGate
 located?

Not really your fault, because httpGate is not yet well documented. Only
some fragments in this Mailing list and in the Wiki.

The binary 'httpGate' is either in /usr/lib/picolisp/bin/httpGate (if
you install the picolisp package with 'apt-get'), or in your bin/
directory (if you install it locally).

The local executable is built if you make PicoLisp as described in
the INSTALL file.

Instead of

 /usr/lib/picolisp/bin/httpGate 80 8080
 /usr/lib/picolisp/bin/httpGate 443 8080 path-to-PEM

you call it as e.g.

 /path/to/picolisp/bin/httpGate 80 8080
 /path/to/picolisp/bin/httpGate 443 8080 path-to-PEM

As you see, no big thing.
♪♫ Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Calculating age based on DOB

2014-02-02 Thread me
Correction, it's available when I install pico from my distribution but I'm
then back on 3.1.2.  How can I build the latest on x86-64 LMDE?


On Mon, Jan 27, 2014 at 2:02 AM, Alexander Burger a...@software-lab.dewrote:

 Hi David,

  If I load the app by going to localhost:8080 I see the button and can
 click
  on it but nothing happens and the button becomes disabled.  If I then
  refresh the page (it now has a long session string in the address bar)
 the
  button is enabled and I can click on it, the desired Alert dialog pops up
  working correctly.

 Indeed, this is a known problem.

 The reason lies with the same server orgigin policy of JavaScript's
 XMLHttpRequests. Because PicoLisp uses a separate HTTP port for each
 session, JavaScript (wrongly) believes this is a new server, and refuses
 to execute :(


  How can I get the button to work the first time without reloading the
 page?

 The right way to handle this is to run web applications in combination
 with 'httpGate'. The best way is to start (as user 'root')

/usr/lib/picolisp/bin/httpGate 80 8080

 and (if you like to use HTTPS)

/usr/lib/picolisp/bin/httpGate 443 8080 path-to-PEM

 I have similar lines in my /etc/rc.local file. For a local
 installation, adjust the pathes to 'httpGate' accordingly.


 With httpGate you also have the advantage that you don't need to specify
 :8080 in the browser (and that you can use HTTPS, of course).

 ♪♫ Alex
 --
 UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe



Re: Calculating age based on DOB

2014-02-02 Thread Mattias Sundblad
Hi,

I think you need to run 'make all' or 'make gate' to build httpGate along
with the interpreter. That should create a binary and place it in the 'bin'
directory of the distribution.

best wishes,
Mattias


On 2 February 2014 18:16, me yanosh...@gmail.com wrote:

 Thank you Alex.  I cannot seem to find httpGate anywhere in the
 distribution 3.1.5.  I know this is terribly noob-ish but where is httpGate
 located?


 On Mon, Jan 27, 2014 at 2:02 AM, Alexander Burger a...@software-lab.dewrote:

 Hi David,

  If I load the app by going to localhost:8080 I see the button and can
 click
  on it but nothing happens and the button becomes disabled.  If I then
  refresh the page (it now has a long session string in the address bar)
 the
  button is enabled and I can click on it, the desired Alert dialog pops
 up
  working correctly.

 Indeed, this is a known problem.

 The reason lies with the same server orgigin policy of JavaScript's
 XMLHttpRequests. Because PicoLisp uses a separate HTTP port for each
 session, JavaScript (wrongly) believes this is a new server, and refuses
 to execute :(


  How can I get the button to work the first time without reloading the
 page?

 The right way to handle this is to run web applications in combination
 with 'httpGate'. The best way is to start (as user 'root')

/usr/lib/picolisp/bin/httpGate 80 8080

 and (if you like to use HTTPS)

/usr/lib/picolisp/bin/httpGate 443 8080 path-to-PEM

 I have similar lines in my /etc/rc.local file. For a local
 installation, adjust the pathes to 'httpGate' accordingly.


 With httpGate you also have the advantage that you don't need to specify
 :8080 in the browser (and that you can use HTTPS, of course).

 ♪♫ Alex
 --
 UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe





Re: Calculating age based on DOB

2014-02-02 Thread me
When I run make from src64 nothing happens.  When I run make from src it
compiles but no httpGate.  Weird.  I'll stick to packaged version for now
as I may wind up testing it on PC-BSD 10 for fun.


On Sun, Feb 2, 2014 at 1:27 PM, Alexander Burger a...@software-lab.dewrote:

 Hi David,

  Thank you Alex.  I cannot seem to find httpGate anywhere in the
  distribution 3.1.5.  I know this is terribly noob-ish but where is
 httpGate
  located?

 Not really your fault, because httpGate is not yet well documented. Only
 some fragments in this Mailing list and in the Wiki.

 The binary 'httpGate' is either in /usr/lib/picolisp/bin/httpGate (if
 you install the picolisp package with 'apt-get'), or in your bin/
 directory (if you install it locally).

 The local executable is built if you make PicoLisp as described in
 the INSTALL file.

 Instead of

  /usr/lib/picolisp/bin/httpGate 80 8080
  /usr/lib/picolisp/bin/httpGate 443 8080 path-to-PEM

 you call it as e.g.

  /path/to/picolisp/bin/httpGate 80 8080
  /path/to/picolisp/bin/httpGate 443 8080 path-to-PEM

 As you see, no big thing.
 ♪♫ Alex
 --
 UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe



Re: Calculating age based on DOB

2014-02-02 Thread me
Thank you Mattias that's what I needed.



On Sun, Feb 2, 2014 at 1:41 PM, Mattias Sundblad mattias@gmail.comwrote:

 Hi,

 I think you need to run 'make all' or 'make gate' to build httpGate along
 with the interpreter. That should create a binary and place it in the 'bin'
 directory of the distribution.

 best wishes,
 Mattias


 On 2 February 2014 18:16, me yanosh...@gmail.com wrote:

 Thank you Alex.  I cannot seem to find httpGate anywhere in the
 distribution 3.1.5.  I know this is terribly noob-ish but where is httpGate
 located?


 On Mon, Jan 27, 2014 at 2:02 AM, Alexander Burger 
 a...@software-lab.dewrote:

 Hi David,

  If I load the app by going to localhost:8080 I see the button and can
 click
  on it but nothing happens and the button becomes disabled.  If I then
  refresh the page (it now has a long session string in the address bar)
 the
  button is enabled and I can click on it, the desired Alert dialog pops
 up
  working correctly.

 Indeed, this is a known problem.

 The reason lies with the same server orgigin policy of JavaScript's
 XMLHttpRequests. Because PicoLisp uses a separate HTTP port for each
 session, JavaScript (wrongly) believes this is a new server, and refuses
 to execute :(


  How can I get the button to work the first time without reloading the
 page?

 The right way to handle this is to run web applications in combination
 with 'httpGate'. The best way is to start (as user 'root')

/usr/lib/picolisp/bin/httpGate 80 8080

 and (if you like to use HTTPS)

/usr/lib/picolisp/bin/httpGate 443 8080 path-to-PEM

 I have similar lines in my /etc/rc.local file. For a local
 installation, adjust the pathes to 'httpGate' accordingly.


 With httpGate you also have the advantage that you don't need to specify
 :8080 in the browser (and that you can use HTTPS, of course).

 ♪♫ Alex
 --
 UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe