exit codes

2014-05-06 Thread Christophe Gragnic
Hi,
Say I have a PicoLisp script named tests.l. Is there a way to have an
exit code for:
pil -bye tests.l

I couldn't find anything about this in the «invocation» section of the docs.
Thanks.

chri

-- 

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: exit codes

2014-05-06 Thread Alexander Burger
Hi Christophe,

 Say I have a PicoLisp script named tests.l. Is there a way to have an
 exit code for:
 pil -bye tests.l

Yes, though the above would never reach tests.l, because 'bye' is
called before it.

You could call (bye 7) at the end of tests.l, or

   pil test.l -bye 7

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


Re: exit codes

2014-05-06 Thread Christophe Gragnic
On Tue, May 6, 2014 at 2:48 PM, Alexander Burger a...@software-lab.de wrote:
 Hi Christophe,

Hi Alex,
Thanks (again…) for your quick reply.

 Say I have a PicoLisp script named tests.l. Is there a way to have an
 exit code for:
 pil -bye tests.l

 Yes, though the above would never reach tests.l, because 'bye' is
 called before it.

This explains some issues I got. Two birds in one shot for you.

 You could call (bye 7) at the end of tests.l, or

pil test.l -bye 7

I'll take the former since I want my tests to decide the exit code.
A drawback: if we (bye 1) in case of failure of the tests, post-mortem
inspection is now not possible. Anyway, I never needed inspection.
If ever, I'll take another think.

Message for Jon:
Now there is a good reason to add (bye) at the end of the EmuLisp tests!
Of course with some more work to handle the arg (I didn't even read the
docs for this one: http://www.software-lab.de/doc/refB.html#bye !!).


chri
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Using OpenStreetMap Geo-Data with PicoLisp

2014-05-06 Thread Alexander Burger
Hi all,

after a lot of procrastination, I crunched out today an article about
PicoLisp canvas programming, and the handling of geographic data from
the OpenStreetMap project:

   http://picolisp.com/wiki/?osmGeoData

I incorporated some short video sequences for better illustration.

Perhaps this was not a good idea, as the picolisp.com server doesn't
have a good upstream connection. There are in total four videos embedded
in the document, and it seems that whenever the page is opened or
refreshed, all those videos get reloaded.

Any ideas? Is there some other way, i.e. having the videos loaded only
when really needed?

Anyway, I hope the article is useful :)
♪♫ Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Using OpenStreetMap Geo-Data with PicoLisp

2014-05-06 Thread Joe Bogner
Hi Alex, I look forward to reading the article. To load the videos only
when needed, you could take a screenshot of video and use that as the image
on the page. You could have a javascript click event that replaces the
image HTML with the video tag.  That's the first idea that came to mind.
I don't know if javascript is an option


On Tue, May 6, 2014 at 2:17 PM, Alexander Burger a...@software-lab.dewrote:

 Hi all,

 after a lot of procrastination, I crunched out today an article about
 PicoLisp canvas programming, and the handling of geographic data from
 the OpenStreetMap project:

http://picolisp.com/wiki/?osmGeoData

 I incorporated some short video sequences for better illustration.

 Perhaps this was not a good idea, as the picolisp.com server doesn't
 have a good upstream connection. There are in total four videos embedded
 in the document, and it seems that whenever the page is opened or
 refreshed, all those videos get reloaded.

 Any ideas? Is there some other way, i.e. having the videos loaded only
 when really needed?

 Anyway, I hope the article is useful :)
 ♪♫ Alex
 --
 UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe



Re: Using OpenStreetMap Geo-Data with PicoLisp

2014-05-06 Thread Alexander Burger
Hi Joe,

 Hi Alex, I look forward to reading the article. To load the videos only
 when needed, you could take a screenshot of video and use that as the image
 on the page. You could have a javascript click event that replaces the
 image HTML with the video tag.  That's the first idea that came to mind.
 I don't know if javascript is an option

This would be possible, just changing the 'render' function in
wiki/lib.l. The videos won't work in a text browser anyway, so JS is
not an obstacle.

However, I'd like to see what else turns out (i.e. if it is really a
problem) before changing the wiki.

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


Re: Using OpenStreetMap Geo-Data with PicoLisp

2014-05-06 Thread Christian Kellermann
* Alexander Burger a...@software-lab.de [140506 20:27]:
 Hi all,
 
 after a lot of procrastination, I crunched out today an article about
 PicoLisp canvas programming, and the handling of geographic data from
 the OpenStreetMap project:
 
http://picolisp.com/wiki/?osmGeoData
 
 I incorporated some short video sequences for better illustration.
 
 Perhaps this was not a good idea, as the picolisp.com server doesn't
 have a good upstream connection. There are in total four videos embedded
 in the document, and it seems that whenever the page is opened or
 refreshed, all those videos get reloaded.

Have you tried with the preload=none attribute? As I read the
spec it should make preloading the videos unattractive for the
browser...

HTH,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Using OpenStreetMap Geo-Data with PicoLisp

2014-05-06 Thread Alexander Burger
Hi Christian,

  in the document, and it seems that whenever the page is opened or
  refreshed, all those videos get reloaded.
 
 Have you tried with the preload=none attribute? As I read the
 spec it should make preloading the videos unattractive for the
 browser...

Indeed! This sounds like the perfect solution!

I tried it, but unfortunately now it doesn't load _anything_, the video
player frame isn't even displayed.

So I tried preload=metadata instead. This seems to be a little better.
The intial loading still takes rather long, but subsequent reloads seem
faster.

Let's stay with this for now.

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