Re: system call, passing multiple files to an app

2015-01-14 Thread marmorine
this works perfectly (sorry for the delay in the answer!). here is the code where I use it for any interested. its in a small flash-card like program which uses feh in the pc terminal and fbi in the framebuffer console (pics or slideshows). (de show_pic (L) (show_txt pic) (if (= (gopt

Re: A Minimal PicoLisp DB/GUI Application, Telephone field

2015-01-14 Thread Rowan Thorpe
On 2015/01/14-14:37, Luis P. Mendes wrote: Hi, 2015-01-14 12:09 GMT+00:00 Alexander Burger a...@software-lab.de: I see. So Norway has different systematics with telephone numbers. I don't understand them, though. In Germany we have the rule that both 0049 123 456 and +49 123 456 are

Re: A Minimal PicoLisp DB/GUI Application, Importing

2015-01-14 Thread Jon Kleiser
Hi Alex, On 13. Jan, 2015, at 15:37, Alexander Burger a...@software-lab.de wrote: . . . How difficult would it be to create export and import functions, e.g. to and from tab-separated files? This could be separate utilities, i.e. not a part of the GUI. That's very easy. There is a report

Re: A Minimal PicoLisp DB/GUI Application, Telephone field

2015-01-14 Thread Luis P. Mendes
Hi, 2015-01-14 12:09 GMT+00:00 Alexander Burger a...@software-lab.de: I see. So Norway has different systematics with telephone numbers. I don't understand them, though. In Germany we have the rule that both 0049 123 456 and +49 123 456 are the same as 0123 456. The 00 to + conversion is of

Re: A Minimal PicoLisp DB/GUI Application, Telephone field

2015-01-14 Thread Jon Kleiser
Hi Alex, On 14. Jan, 2015, at 13:09, Alexander Burger a...@software-lab.de wrote: Hi Jon, I don’t quite get this. I have done as you suggested, (locale NO no) and leading 0, so I can now enter a phone number as 099887766. You say it will be stored internally with leading 47 instead of that

Re: A Minimal PicoLisp DB/GUI Application, Importing

2015-01-14 Thread Alexander Burger
On Wed, Jan 14, 2015 at 05:54:17PM +0100, Alexander Burger wrote: A simple example would be (in myAdrDB.csv (while (split (line) ^I) (dbSync) (let Obj (request '(+Prs) 'nm (pack (car L))) (put Obj 'adr (pack (cadr L))) (put Obj ...)

Re: A Minimal PicoLisp DB/GUI Application, Telephone field

2015-01-14 Thread Alexander Burger
Hi Jon, Luis, Rowan, thanks! I see that this problem is non-trivial. We need to extend the localization files loc/??.l Probably some functional expression or pattern needs to be stored there, in addition to (or as a replacement of) the country code '*CtryCode'. Perhaps the Google library gives

Re: A Minimal PicoLisp DB/GUI Application, Importing

2015-01-14 Thread Alexander Burger
Hi Jon, I’ve got the dump and load working, but I have not yet figured out how to use the 'csv’ function for import from a file (I took a look at The 'csv' function can only generate the CSV file (TAB-separated data). It is not suitable for import. To import a CSV file, you need to write

Re: A Minimal PicoLisp DB/GUI Application, Telephone field

2015-01-14 Thread Henrik Sarvell
Isn't this a non-issue, simply enter and store all numbers regardless of location with country code + number without leading zero, eg 4912345678? Will work for all countries everywhere, I never store numbers without the country code in my mobile nowadays and always works regardless if I'm in said

Re: A Minimal PicoLisp DB/GUI Application, Telephone field

2015-01-14 Thread Alexander Burger
On Wed, Jan 14, 2015 at 05:52:02PM +0100, Henrik Sarvell wrote: Isn't this a non-issue, simply enter and store all numbers regardless of location with country code + number without leading zero, eg 4912345678? Yes, as I said, simply use +TextField instead of +TelField. However, local

Re: A Minimal PicoLisp DB/GUI Application, Telephone field

2015-01-14 Thread Alexander Burger
Hi Jon, I don’t quite get this. I have done as you suggested, (locale NO no) and leading 0, so I can now enter a phone number as 099887766. You say it will be stored internally with leading 47 instead of that 0, but Right. You see that if you look directly into the DB. when I put the mouse

Re: A Minimal PicoLisp DB/GUI Application, Telephone field

2015-01-14 Thread Alexander Burger
On Wed, Jan 14, 2015 at 01:09:12PM +0100, Alexander Burger wrote: The '+TelField' (based on the functions 'telStr' and 'expTel') handles this. What are the exact rules for Norway? And how can we handle this flexibly? Alternatively, of course, you could replace '+TelField' with '+TextField'.