Re: standalone loading script-only stacks

2016-02-18 Thread J. Landman Gay
On 2/18/2016 10:58 PM, Matt Maier wrote: The log works just fine in the IDE, but it doesn't start in the standalone...at least not right away. If I start poking at the controls the log might spontaneously start working for some reason. The quickModeSetup handler has no "end" statement so it

Re: Programmatically determine the average greyscale

2016-02-18 Thread Sannyasin Brahmanathaswami
  Ha! I figured this out just before seeing this email..this is a match for Scott Rossi's method, which is right from the dictionary on ImageData on mouseUp put (39 * 4 * 205 ) into tRowsToSkip # takes us down the pixel map 39 rows put tRowsToSkip + (39 *4) +2 into tRedTarget # now we are in

standalone loading script-only stacks

2016-02-18 Thread Matt Maier
I'm trying to put most of the logic into script-only stacks, so I've got the first handler in the mainstack. It's supposed to load all those stacks in the list. The following handlers are the chain it should follow to start logging. The log works just fine in the IDE, but it doesn't start in the

Re: local and do - what NOT to do

2016-02-18 Thread Mike Kerner
I skipped a few in the middle, here, but one case where I use do and value is in lieu of having pointers, something that is not very easily replaced by an array. Using value and do allow me to write generic routines for populating forms and updating database tables afterwards, using the field

Re: mergExt Acquisition

2016-02-18 Thread Monte Goulding
> On 19 Feb 2016, at 2:06 PM, Sannyasin Brahmanathaswami > wrote: > > Does the FTP external do SFTP? No, sorry, I wouldn’t use it if it were transferring sensitive data to and from the phone ___ use-livecode mailing list

Re: mergExt Acquisition

2016-02-18 Thread Sannyasin Brahmanathaswami
Does the FTP external do SFTP? BR On February 18, 2016 at 4:58:38 PM, Monte Goulding (mo...@appisle.net) wrote: On 2/18/2016 6:35 PM, Clarence P Martin wrote: > I hope the MergExt will include all systems, ie.

Re: Programmatically determine the average greyscale

2016-02-18 Thread J. Landman Gay
On 2/18/2016 8:44 PM, Sannyasin Brahmanathaswami wrote: Thanks that could be useful... BTW where to you store this kind of snippet In an old HC stack I made 20 years ago that I've converted to LC. It's not fit for public consumption but it has all my stuff in it so I keep using it. how do

Re: mergExt Acquisition

2016-02-18 Thread Monte Goulding
> On 19 Feb 2016, at 12:04 PM, Roger Eller wrote: > > I agree with you, Clarence. The words "cross platform where appropriate" > leaves it unclear just how much or how little will be ported. I expect if > it is difficult to do it will remain iOS only. I believe

Re: Programmatically determine the average greyscale

2016-02-18 Thread Sannyasin Brahmanathaswami
HH, thanks for the suggestion to use inks, though if it means the "label" will changes across all the buttons in the group, it may not be acceptable. OTOH, perhaps for my audience it would be "interesting" I will try it. your other memo on use a field is an option as well, as fiddling with the

Re: Programmatically determine the average greyscale

2016-02-18 Thread Sannyasin Brahmanathaswami
Thanks that could be useful... BTW where to you store this kind of snippet We need an online repository for scripts like this... something simpler than GIT, Actually determining the luminance algorithm is pretty straight forward... even easier than this formula.. but how do you get the color a

Re: Programmatically determine the average greyscale

2016-02-18 Thread J. Landman Gay
On 2/18/2016 5:05 PM, Sannyasin Brahmanathaswami wrote: But if I use white type on top of the image and the sky appears there in the top left area of the image is a light color, then we have a problem with contrast/readability. Is there a way to get the "average" grayscale value of a small area

Re: mergExt Acquisition

2016-02-18 Thread J. Landman Gay
On 2/18/2016 6:35 PM, Clarence P Martin wrote: I hope the MergExt will include all systems, ie. Android also? The announcement says they will aim for that. I'm waiting with anticipation, since all my mobile apps so far have been cross platform, which has prevented me from using almost all of

Re: Livecode University & Linux

2016-02-18 Thread Jim Byrnes
On 02/18/2016 05:34 PM, Devin Asay wrote: On Feb 17, 2016, at 7:44 PM, Jim Byrnes wrote: I recently discovered Livecode and have worked through a couple of tutorials. I would be interested in taking the two courses I found but the faq says windows or mac required. I

RE: mergExt Acquisition

2016-02-18 Thread Roger Eller
I agree with you, Clarence. The words "cross platform where appropriate" leaves it unclear just how much or how little will be ported. I expect if it is difficult to do it will remain iOS only. On Feb 18, 2016 7:36 PM, "Clarence P Martin" wrote: > I hope the MergExt will

Re: Programmatically determine the average greyscale

2016-02-18 Thread [-hh]
BR, I now saw, late -- sorry, that you are using button's showName, that is, the text colour has to be adjusted, not the pattern. Then using a text field instead of 'showName' and setting the field's ink to "notSrcAndReverse" should do what you want (incl. nice effects). OR: Here's a

RE: mergExt Acquisition

2016-02-18 Thread Clarence P Martin
I hope the MergExt will include all systems, ie. Android also? Sincerely, Clarence Martin Email: chi...@themartinz.com Cell: 626 6965561 -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Kevin Miller Sent: Thursday, February 18, 2016 9:46

Re: "could not find a valid identity to use for the selected profile"

2016-02-18 Thread panagiotis merakos
Oops Scott was faster :) On Fri, Feb 19, 2016 at 1:37 AM, panagiotis merakos wrote: > Hi Ben, > > Scott posted this in a different thread a couple of days ago: > > http://comments.gmane.org/gmane.comp.ide.revolution.user/222816 > > Panos > -- > > On Fri, Feb 19, 2016 at 1:34

Re: "could not find a valid identity to use for the selected profile"

2016-02-18 Thread panagiotis merakos
Hi Ben, Scott posted this in a different thread a couple of days ago: http://comments.gmane.org/gmane.comp.ide.revolution.user/222816 Panos -- On Fri, Feb 19, 2016 at 1:34 AM, Scott Rossi wrote: > Did you catch this thread? I suspect it might be your issue. > < >

Re: "could not find a valid identity to use for the selected profile"

2016-02-18 Thread Scott Rossi
Did you catch this thread? I suspect it might be your issue. Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 2/18/16, 3:18 PM, "use-livecode on behalf of

Re: Livecode University & Linux

2016-02-18 Thread Devin Asay
> On Feb 17, 2016, at 7:44 PM, Jim Byrnes wrote: > > I recently discovered Livecode and have worked through a couple of tutorials. > I would be interested in taking the two courses I found but the faq says > windows or mac required. > > I asked over on the forums if

Re: Programmatically determine the average greyscale

2016-02-18 Thread [-hh]
Hi BR (thanks for the abbreviation), First you have to decide in detail what you want. 1. What is an average for you? Usual arithmetic mean is one option, other simple ones are a weighted mean of rgb (used by Photoshop etc.) or median values. 2. How to use the alphavalues? Max, min, median,

"could not find a valid identity to use for the selected profile"

2016-02-18 Thread Ben Rubinstein
Aaaagh. It was working (I was building an app and deploying it to a device)... now it's not, with the infuriating message from the subject line. Xcode can still build a (different) app and deploy it to the same device. What's changed in the interim? I've added some other devices in the

Programmatically determine the average greyscale

2016-02-18 Thread Sannyasin Brahmanathaswami
Use case: I want to import images as patterns for buttons. This always works as they are centered and made the correct size will fill the button area, regardless of the margins (setting the icon takes the margins position) Buttons are big squares 205 X 205 on a mobile interface (design adopted

Re: [ANN] mergExt News

2016-02-18 Thread Monte Goulding
> On 19 Feb 2016, at 5:30 AM, Matt Maier wrote: > > That's awesome, congrats Monte and Livecode. Thanks Matt > > Can you clarify the uses of mergExt? Since mergExt is closed source, does > that mean we just can't use any of those widgets if we want to release open >

leap to future

2016-02-18 Thread -hh
Kevin M. wrote: > see in detail https://livecode.com/leap-to-future/ Yes, LC is great, worth its pricing, even if one is not using any of Monte's iOS externals: The other core-developers will have more time for their valuable work by that personal expanding. But sadly your explanations to the

Livecode University & Linux

2016-02-18 Thread Jim Byrnes
I recently discovered Livecode and have worked through a couple of tutorials. I would be interested in taking the two courses I found but the faq says windows or mac required. I asked over on the forums if Linux could be used to take the courses but never really received a definitive answer.

Re: [ANN] mergExt News

2016-02-18 Thread Matt Maier
That's awesome, congrats Monte and Livecode. Can you clarify the uses of mergExt? Since mergExt is closed source, does that mean we just can't use any of those widgets if we want to release open source, or is there a way to separate them out as some kind of binary bundle? Can they be used from a

mergExt Acquisition

2016-02-18 Thread Kevin Miller
Dear All, As Monte mentioned on this list yesterday, we are delighted to announce a very exciting acquisition for LiveCode: we have purchased the full suite of the invaluable mergEXT externals for iOS. These will shortly be included with your Indy or Business license purchase. We will also be

RFQ: Controllable Browser

2016-02-18 Thread Mike Kerner
I'm looking for someone to help me with my scraping projects. I want to be able to control a browser, including navigating, pulling all the goodies off of a page, click links, buttons, etc., fill forms, and scrape. Think of this as RoboBrowser for LC. -- On the first day, God created the

Re: local and do - what NOT to do

2016-02-18 Thread Richard Gaskin
Kay C Lan wrote: On Thu, Feb 18, 2016 at 7:52 PM, Mark Waddingham wrote: Okay so this kind of code pattern originates from HyperCard which did not have arrays. Upshot: There's no reason to use 'local' in do if you are initializing the variable at that point. Indeed, one could argue that

Re: local and do - what NOT to do

2016-02-18 Thread [-hh]
Mark Wadd. wrote: > > [-hh] wrote: > > local a1=1, a2=false > > -- local a[1]=1, a[2]=false #<-- currently not allowed > > > > For such default-constructs variable names and using "do" > > are really helpful. > > Although you can do the above as: >local a -- only needed if in strict

Re: local and do - what NOT to do

2016-02-18 Thread Kay C Lan
On Thu, Feb 18, 2016 at 7:52 PM, Mark Waddingham wrote: > >> Okay so this kind of code pattern originates from HyperCard which did not > have arrays. > > Upshot: There's no reason to use 'local' in do if you are initializing the > variable at that point. Indeed, one could

Re: local and do - what NOT to do

2016-02-18 Thread Mark Waddingham
On 2016-02-18 12:46, [-hh] wrote: Just now I can't think of an example for *generating* variable names only. But there are very simple and important ones for *using* variable names: local a1=1, a2=false -- local a[1]=1, a[2]=false #<-- currently not allowed For such default-constructs

Re: local and do - what NOT to do

2016-02-18 Thread Mark Waddingham
On 2016-02-18 09:03, Kay C Lan wrote: The Dictionary entry for 'local' has this Example: -- To make a numbered list of variables: repeat with x=1 to 20 do "local tVar_" & x & "; put empty into tVar_" & x end repeat Okay so this kind of code pattern originates from HyperCard which did not

Re: local and do - what NOT to do

2016-02-18 Thread [-hh]
> Peter B. wrote: > > The Dictionary entry for 'local' has this Example: > > > > -- To make a numbered list of variables: > > repeat with x=1 to 20 > > do "local tVar_" & x & "; put empty into tVar_" & x > > end repeat > > > > Which 'apparently' runs fine if you copy and paste it into the msg

Re: local and do - what NOT to do

2016-02-18 Thread Peter TB Brett
On 18/02/2016 08:03, Kay C Lan wrote: The Dictionary entry for 'local' has this Example: -- To make a numbered list of variables: repeat with x=1 to 20 do "local tVar_" & x & "; put empty into tVar_" & x end repeat Which 'apparently' runs fine if you copy and paste it into the msg box.

Re: local and do - what NOT to do

2016-02-18 Thread [-hh]
Kay C. L. wrote: > Moving right along, for those Slack Moders, if you run the same statements: > > repeat with x=1 to 20 > do "local tVar_" & x > do "put x*x into tVar_" & x > end repeat > put tVar_5 into msg --not hidden in > > For reasons I do NOT understand, you get a runtime error: >

local and do - what NOT to do

2016-02-18 Thread Kay C Lan
The Dictionary entry for 'local' has this Example: -- To make a numbered list of variables: repeat with x=1 to 20 do "local tVar_" & x & "; put empty into tVar_" & x end repeat Which 'apparently' runs fine if you copy and paste it into the msg box. For the purposes of this discussion and so we