Re: LiveCode Server is sleeping?

2023-06-22 Thread harrison--- via use-livecode
Hi Matthias,

To answer your questions:

MacintoshHD/Library/WebServer/CGI-Executables/livecode-server

The hard drive is the internal SSD drive.

Apache server and the livecode server are both installed on the same hard drive.

Scripts are in:

Library/Webserver/Documents

and some are forwarded to:

Users/(username)/Sites

Since I’m not using spinning hard drives, that is probably not the issue.

I do get an error in the error log of: XType: Using static font registry 
(sometimes)
but that seems too minor to be causing this problem.  Not quite sure how to
fix the the font problem.

Ideas?

Thanks,

Rick


> On Jun 22, 2023, at 3:59 PM, matthias rebbe via use-livecode 
>  wrote:
> 
> I am also running Livecode Server with Apache on 13.4 without a problem so 
> far.
> 
> Where did you install the software (Apache/Livecode Server)?
> Is Livecode Server installed on the same hard drive as Apache server is 
> installed?
> Where are your scripts stored? 
> 
> I had once problems with external hard drives which had built in power 
> management. 
> So although i had disabled the "Hard disk standby" (don't know the correct 
> English expression) in the energy settings of macOS the external hard drives 
> went to sleep after some time.
> 
> I solved this with a little free tool called Keep Drive Spinning
> http://jon.stovell.info/software/keep-drive-spinning/
> 
> 
> Regards,
> Matthias

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Android Push Message Icon

2023-06-22 Thread Dan Friedman via use-livecode
Is anyone seeing the icon in a push notification on Android 13?   We have an 
app built using LC 10.0.0 (dp-5).  The icon seems to show in a Push Message on 
Android Version 10 and 12, but NOT 9 or 13.   I don’t know about 11 as I don’t 
have a device running 11.   I believe this is an issue with LC, but I would 
like to confirm that others are experiencing the same issue.

-Dan
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LiveCode Server is sleeping?

2023-06-22 Thread matthias rebbe via use-livecode
I am also running Livecode Server with Apache on 13.4 without a problem so far.

Where did you install the software (Apache/Livecode Server)?
Is Livecode Server installed on the same hard drive as Apache server is 
installed?
Where are your scripts stored? 

I had once problems with external hard drives which had built in power 
management. 
So although i had disabled the "Hard disk standby" (don't know the correct 
English expression) in the energy settings of macOS the external hard drives 
went to sleep after some time.

I solved this with a little free tool called Keep Drive Spinning
http://jon.stovell.info/software/keep-drive-spinning/


Regards,
Matthias
> Am 22.06.2023 um 18:04 schrieb harrison--- via use-livecode 
> :
> 
> I am running LiveCode Server version 9.6.9,
> with apache 2.4.56 under Mac OS 13.4 Ventura 
> with a Postgresql database.
> 
> All of my energy saver settings in the OS are
> set so nothing ever sleeps.
> 
> When my server hasn’t been getting incoming
> connections for a time, for some stupid reason
> it goes to sleep and stops serving pages!
> 
> I’ve tried to track down the problem, and it
> appears that apache is running fine as
> proved by when asking for a strict HTML
> webpage, and everything works!
> 
> Anything that needs the LiveCode server
> doesn’t work for a couple of minutes,
> and only after a half dozen requests does
> it start responding normally.
> 
> I have checked my error logs, and it shows
> timeouts for livecode-server.
> 
> I don’t know if livecode is waiting to get
> a response from Postresql or not.
> 
> The interval between failures varies, so
> it is difficult to know how often I have to
> tell an automatic application to access the
> website in order to keep everything running
> correctly.
> 
> Ideas?  Suggestions?
> 
> Thanks,
> 
> Rick
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


LiveCode Server is sleeping?

2023-06-22 Thread harrison--- via use-livecode
I am running LiveCode Server version 9.6.9,
with apache 2.4.56 under Mac OS 13.4 Ventura 
with a Postgresql database.

All of my energy saver settings in the OS are
set so nothing ever sleeps.

When my server hasn’t been getting incoming
connections for a time, for some stupid reason
it goes to sleep and stops serving pages!

I’ve tried to track down the problem, and it
appears that apache is running fine as
proved by when asking for a strict HTML
webpage, and everything works!

Anything that needs the LiveCode server
doesn’t work for a couple of minutes,
and only after a half dozen requests does
it start responding normally.

I have checked my error logs, and it shows
timeouts for livecode-server.

I don’t know if livecode is waiting to get
a response from Postresql or not.

The interval between failures varies, so
it is difficult to know how often I have to
tell an automatic application to access the
website in order to keep everything running
correctly.

Ideas?  Suggestions?

Thanks,

Rick



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: signature widget

2023-06-22 Thread G.W.Gaich via use-livecode

Mike,

in one of my applications I use this code:

command saveSign
   show grc "UnterschriftRect"  -- lies behind the widget for a white 
background

   show widget "Unterschrift"

   lock screen
   if the pathData of widget "Unterschrift" is empty then exit to top
   thickenSignature "Unterschrift", 8  -- the signature is often too thin
   put 1200 into aMeta["density"]
   export snapshot from widget "Unterschrift" at size 140,70 with 
metadata aMeta["density"] to file "sign.png" as PNG


   hide grc "UnterschriftRect"
   hide widget "Unterschrift"

   unlock sceen
end saveSign

command thickenSignature pSignature,pFactor
   put the pathData of widget pSignature into tPathData
   repeat for each key tKey in tPathData
  multiply tPathData[tKey]["width"] by pFactor
   end repeat
   set the pathData of widget pSignature to tPathData
end thickenSignature

Hope this helps

Best regards
Günter
E-Mail: gwolfg...@gaich.de




Am 21.06.2023 um 22:52 schrieb Mike Kerner via use-livecode:

i finally have a use-case for the signature widget.
* has anyone used it?
* does anyone have experiencing transporting the signature data, then
recreating it, say, by adding it to a document, or generating an svg
file?

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode