Re: Is there a command to display number of seconds as hrs:min:seconds?

2019-10-17 Thread Bill Vlahos via use-livecode
All great suggestions. I mostly wanted to see if there already was such a function - which there obviously isn’t. But it is great to see several easy ways to built your own. Thanks all. Bill Vlahos > On Oct 17, 2019, at 8:51 AM, Bob Sneidar via use-livecode > wrote: > > The problem with

Re: LiveCode Server

2019-10-17 Thread Lagi Pittas via use-livecode
Hi Ralf, The problem isn't the sending of the headers but reading them using livecode server. We are using Linux servers so the Mac problem is not an issue. Via PHP the call is get_headers ( string $url [, int $format = 0 [, resource $context ]] ) : array Basically is there a way of doing that

Re: LiveCode Server

2019-10-17 Thread Lagi Pittas via use-livecode
Hi Everybody If anybody else (Mark? even) has any insights We have found this function libURLLastRHheaders, which seems to get the last headers set to the server. In the documentation, it indicates that it works on the Server version. We put it in the server code, but get the following error

RE: LC Server Session Cookies

2019-10-17 Thread Ralph DiMola via use-livecode
Panos, Thanks! I will try that for "put secure cookie". The first problem is the a "start session" creates a cookie on the client and I don't see a way to add the attributes. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net Phone: 518-636-3998 Ex:11 Cell:

Re: LiveCode Server

2019-10-17 Thread Ralf Bitter via use-livecode
Lagi, sorry for not expressing myself well. Of course I meant the whole process including reading HTTP headers on the server. This means $_SERVER["HTTP_Authorization"] should not be empty in your case Ralf > On 17. Oct 2019, at 15:51, Lagi Pittas via use-livecode > wrote: > > Hi Ralf, > >

Re: Is there a command to display number of seconds as hrs:min:seconds?

2019-10-17 Thread Bob Sneidar via use-livecode
I call it sqltime because it has to be formatted as hh:mm:ss. function formatTime theTime, theFormat /* accepts any valid time and returns the form of the time specified in the second parameter. The valid formats are: sql time: hh:mm:ss (Note: combining sql date from the

LiveCode Server

2019-10-17 Thread Todd Fabacher via use-livecode
Hello all, We are running LC Server Scripts to process some DB request and we want to do basic validation by passing a token from the App to the server script. The problem is I can not find where I can get the headers on the server. I looked in $_SERVER, but not there. I see the CONTENT_TYPE and

Re: LiveCode Server

2019-10-17 Thread Ralf Bitter via use-livecode
Todd, sending Authorization HTTP request headers to LC server on Linux should work. I have troubles with request headers too, but only on Mac OS. Ralf > On 17. Oct 2019, at 13:56, Todd Fabacher via use-livecode > wrote: > > Hello all, > > We are running LC Server Scripts to process some

Re: Is there a command to display number of seconds as hrs:min:seconds?

2019-10-17 Thread Klaus major-k via use-livecode
Hi all, > Am 17.10.2019 um 02:41 schrieb Terry Judd via use-livecode > : > > Not built-in but... > > function formatRemainingTime pTime > put trunc(pTime/3600) into tHours > put pTime mod 3600 into tTimeX > put trunc(tTimeX/60) into tMins > put tTimeX mod 60 into tSecs > if tHours <

Re: Is there a command to display number of seconds as hrs:min:seconds?

2019-10-17 Thread Klaus major-k via use-livecode
Hi Mark, > Am 17.10.2019 um 12:21 schrieb Mark Waddingham via use-livecode > : > > On 2019-10-17 10:50, Klaus major-k via use-livecode wrote: >> save some lines by setting the numberformat first (lazy moi :-) >> ... > Save even more lines by using format, div and mod... > > function

Re: LC Server Session Cookies

2019-10-17 Thread panagiotis merakos via use-livecode
Hello Ralph, Does it work if you append this attribute to the "cookieValue" param? Something like: put secure cookie "testcookie4" for "/products/" on "www.livecode.com" with "some_cookie_value; SameSite=None" until (the seconds + 60 * 60 * 24 * 365) Kind regards, Panos -- On Thu, 17 Oct 2019

Re: Is there a command to display number of seconds as hrs:min:seconds?

2019-10-17 Thread Mark Waddingham via use-livecode
On 2019-10-17 10:50, Klaus major-k via use-livecode wrote: save some lines by setting the numberformat first (lazy moi :-) ... Save even more lines by using format, div and mod... function formatRemainingTime pSeconds return format("%02d:%02d:%02d", pSeconds div 3600, (pSeconds mod 3600)

Re: Is there a command to display number of seconds as hrs:min:seconds?

2019-10-17 Thread hh via use-livecode
Save a lot of lines by using "format": on countdown t put format("%02d:%02d:%02d",t div 3600,(t mod 3600) div 60,t mod 60) into fld 1 subtract 1 from t if t < 0 then exit countDown send "countdown t" to me in (1000-the millisecs mod 1000) millisecs end countdown > > Terry J. wrote: > >

Re: Is there a command to display number of seconds as hrs:min:seconds?

2019-10-17 Thread Bob Sneidar via use-livecode
The problem with one-liners is that the genius is implicit, not explicit. ;-) Bob S > On Oct 17, 2019, at 08:44 , J. Landman Gay via use-livecode > wrote: > > Show-off. :-) > -- > Jacqueline Landman Gay | jac...@hyperactivesw.com ___ use-livecode

Merge PDF

2019-10-17 Thread FlexibleLearning.com via use-livecode
Has anyone got an LC-based method to merge pdf files? Just asking... Hugh Senior ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: LiveCode Server

2019-10-17 Thread Lagi Pittas via use-livecode
HI Ralph Basically the server script does this put arrayEncode($_SERVER) and sends back everything within the $_SERVER variable we then decode it in the App It gives us everything shown in the documentation but not the header info - GATEWAY_INTERFACE - SERVER_ADDR - SERVER_NAME

Re: Is there a command to display number of seconds as hrs:min:seconds?

2019-10-17 Thread J. Landman Gay via use-livecode
Show-off. :-) -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On October 17, 2019 5:22:44 AM Mark Waddingham via use-livecode wrote: On 2019-10-17 10:50, Klaus major-k via use-livecode wrote: save some lines by setting the

Re: LiveCode Server

2019-10-17 Thread Ralf Bitter via use-livecode
> On 17. Oct 2019, at 17:24, Lagi Pittas via use-livecode > wrote: > > There is no $_SERVER["HTTP_Authorization"] in the docs the closest is > $_SERVER["HTTP] but since > the code gives an error and the return is empty it's a moot point. Lagi, the original question was: > how to read an

Re: Merge PDF

2019-10-17 Thread doc hawk via use-livecode
On Oct 17, 2019, at 9:27 AM, FlexibleLearning.com via use-livecode wrote: > > Has anyone got an LC-based method to merge pdf files? LC business can’t even output a pdf widget save as low density raster at the moment. I’m currently working on an interim solution that creates a PyPdf2

Re: LiveCode Server

2019-10-17 Thread Ralf Bitter via use-livecode
> On 17. Oct 2019, at 19:27, Lagi Pittas via use-livecode > wrote: > > HI Ralph > > Basically the server script does this > > put arrayEncode($_SERVER) and sends back everything within the $_SERVER > variable > we then decode it in the App > > It gives us everything shown in the

Re: Merge PDF

2019-10-17 Thread hh via use-livecode
> Hugh Senior wrote: > Has anyone got an LC-based method to merge pdf files? Just asking... I'll publish this weekend on SampleStacks a pdfLib (split and merge) based on a JS library (via a browser widget). Already 95% are done. ___ use-livecode