Re: Modal stacks cpu usage

2020-10-05 Thread Andreas Bergendal via use-livecode
Indeed, when I open the Message box and click the Pending messages tab, two 
messages always keep running there:
_EnsureAccept (seems to have to do with the remote debugger library?)
_revInternal_SavePreferences

Just LC 9.6.1 running, no stacks. I’m also on Mojave.


J. Landman Gay via use-livecode 
<https://www.mail-archive.com/search?l=use-livecode@lists.runrev.com=from:%22J.+Landman+Gay+via+use%5C-livecode%22>
 Mon, 05 Oct 2020 10:02:14 -0700 
<https://www.mail-archive.com/search?l=use-livecode@lists.runrev.com=date:20201005>
> I'm fairly sure the IDE is sending some pending messages 
> in the background which would account for the CPU usage. 
___
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


[ANN] This Week in LiveCode 239

2020-10-05 Thread panagiotis merakos via use-livecode
Hi all,

Read about new developments in LiveCode open source and the open source
community in today's edition of the "This Week in LiveCode" newsletter!

Read issue #239 here: https://bit.ly/33xvnKf

This is a weekly newsletter about LiveCode, focussing on what's been
going on in and around the open source project. New issues will be
released weekly on Mondays. We have a dedicated mailing list that will
deliver each issue directly to your e-mail, so you don't miss any!

If you have anything you'd like mentioned (a project, a discussion
somewhere, an upcoming event) then please get in touch.

-- 
Panagiotis Merakos 
LiveCode Software Developer

Everyone Can Create Apps 
___
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: Modal stacks cpu usage

2020-10-05 Thread J. Landman Gay via use-livecode

On 10/3/20 8:36 PM, Neville Smythe via use-livecode wrote:

Jacque wrote

If the Project Browser is open, try closing it. On my Mac, the CPU usage
while idle is usually close to 0 when in the background.


Interesting. I would indeed have expected a good-citizen app doing nothing in the background to use less than 1% cpu: Mail, Safari. Finder, BBEdit, Keyboard Maestro are currently all close to 0% But I never see LC using less than 4.3% with no user stacks open, no palettes, no plugins, no scripts, just the IDE. 


I just checked again with LC 9.6.1, because the last time I looked was with a previous version. 
With no open stacks of my own and only the Application Browser open, it hovers around 2%. When 
I closed the App Browser, it dropped to about 1.5% and then hovered in the 1.5-2.0 range. While 
writing this email it jumped to 3.5% momentarily, then dropped back to 2.5%.


I'm still on Mojave if that matters. I'm fairly sure the IDE is sending some pending messages 
in the background which would account for the CPU usage.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
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: Getting URL to Work in specialFolderDocuments

2020-10-05 Thread Andre Garzia via use-livecode
Aloha,

The last "put" command is wrong. This one:

>   put URL (tHttpsServerRoot & sStoryTitle & "/" & sStoryTitle &
".livecode") into tLocalDocumentsStories & sStoryTitle & "/" & sStoryTitle
& ".livecode"

It should have been:

   put URL (tHttpsServerRoot & sStoryTitle & "/" & sStoryTitle &
".livecode") into ("binfile:" & tLocalDocumentsStories & sStoryTitle & "/"
& sStoryTitle & ".livecode")

Also, there is a strange comment before the word "into" when you're setting
tHttpsServerRoot.

Best
A

On Fri, 2 Oct 2020 at 19:01, Sannyasin Brahmanathaswami via use-livecode <
use-livecode@lists.runrev.com> wrote:

> on dataServerStack
>local tHttpsServerRoot,tLocalDocumentsStories
>put "https://dev.himalayanacademy.com/media/stories/; --into
> tHttpsServerRoot
>put specialFolderPath("Documents") & "/SivaSivaApp/media/stories/" into
> tLocalDocumentsStories
>put URL (tHttpsServerRoot & sStoryTitle & "/" & sStoryTitle &
> ".livecode") into tLocalDocumentsStories & sStoryTitle & "/" & sStoryTitle
> & ".livecode"
> end dataServerStack 
>
> it goes badly to documents folder,
>
> ?
>
> BR
>
> ___
> 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
>


-- 
https://www.andregarzia.com 
Want to support me? Buy me a coffee at https://ko-fi.com/andregarzia
___
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: Getting URL to Work in specialFolderDocuments

2020-10-05 Thread Bernard Devlin via use-livecode
 Hi

I get a headache looking at concatenations like this.  I don't use them
unless I'm constructing a simple string.

  put URL (tHttpsServerRoot & sStoryTitle & "/" & sStoryTitle &
".livecode") into tLocalDocumentsStories & sStoryTitle & "/" & sStoryTitle
& ".livecode"

It will be a cold day in hell when I don't use Merge() to construct
non-simple strings.

*put* "blurb1" into sStoryTitle

*put* "https://dev.himalayanacademy.com/media/stories/; into
tHttpsServerRoot

*put* specialFolderPath("Documents") & "/SivaSivaApp/media/stories/" into
tLocalDocumentsStories

*if* char -1 of tHttpsServerRoot is "/" *then* *delete* char -1 of
tHttpsServerRoot ## deleting "/" to make merge() template clearer

*if* char -1 of tLocalDocumentsStories is "/" *then* *delete* char -1 of
 tLocalDocumentsStories

*put* merge(  "[[tHttpsServerRoot
]]/[[sStoryTitle]]/[[sStoryTitle]].livecode" ) into tSourceURL

*put* merge( "binfile:[[tLocalDocumentsStories]]/[[
sStoryTitle]]/[[sStoryTitle]].livecode" ) into tDestURL
put URL  tSourceURL into URL tDestURL


On each of the above lines one can use breakpoints to check the values of
the variables and at the last line check that the URLs to use are correct.

Merge() will ignore spaces within [[]] and outside of the quotes around the
template string, so one can line up placeholders to check that all the
template parts match visually.

HTH
Bernard

On Fri, Oct 2, 2020 at 11:00 PM Sannyasin Brahmanathaswami via use-livecode
 wrote:

> on dataServerStack
>local tHttpsServerRoot,tLocalDocumentsStories
>put "https://dev.himalayanacademy.com/media/stories/; --into
> tHttpsServerRoot
>put specialFolderPath("Documents") & "/SivaSivaApp/media/stories/" into
> tLocalDocumentsStories
>put URL (tHttpsServerRoot & sStoryTitle & "/" & sStoryTitle &
> ".livecode") into tLocalDocumentsStories & sStoryTitle & "/" & sStoryTitle
> & ".livecode"
> end dataServerStack
>
> it goes badly to documents folder,
>
> on dataServerStack
>local tHttpsServerRoot,tLocalDocumentsStories
>put "https://dev.himalayanacademy.com/media/stories/; into
> tHttpsServerRoot
>put specialFolderPath("Documents") & "/SivaSivaApp/media/stories/" into
> tLocalDocumentsStories
>put URL (tHttpsServerRoot & sStoryTitle & "/" & sStoryTitle &
> ".livecode") into tLocalDocumentsStories & sStoryTitle & "/" & sStoryTitle
> & ".livecode"
> end dataServerStack
>
> it goes badly to documents folder,
>
> ?
> put URL (tHttpsServerRoot & sStoryTitle & "/" & sStoryTitle & ".livecode")
> into tLocalDocumentsStories & sStoryTitle & "/" & sStoryTitle & ".livecode"
>
> Compile error line 119 (Handler: bad command) near "&", char 84
>
>
> BR
>
>
> ___
> 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
>
___
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