Re: LC, Mac Mail & Rules

2021-02-24 Thread J. Landman Gay via use-livecode

On 2/24/21 10:29 AM, Rick Harrison via use-livecode wrote:

Hi Matthias,

Ok, so Mojave is good and macOS Mail in Catalina is the problem.

I don’t know if we can come up with an LC solution work around
for this problem, or if I need to be looking at some other email
client software.  Is anyone using Thunderbird or another
program that has Rules or Filter auto-respond capability
that might work?


You're not alone:


There are a couple of work-around suggestions there, and a bug report has been filed. But 
they're talking about forwarding mail, not auto-responding.


--
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: How do I interpret this Build Error dialog?

2021-02-15 Thread J. Landman Gay via use-livecode

I should have said "the first line with an error code."

I also should have looked at the images before I answered...

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On February 15, 2021 7:56:47 PM Mark Wieder via use-livecode 
 wrote:



On 2/15/21 5:29 PM, J. Landman Gay via use-livecode wrote:

In Sample Stacks, search for LiveCode Error Lookup. I keep it my Plugins
folder. You can paste the whole list of errors into it and it will tell
you what they mean.

However, usually you only need the first line which is where a break
would happen in the IDE. The other lines are, in reverse order, the
messages that led up to the topmost error.


Actually, in this case the second line has more info.
Line #1 (error #219: error in function handler) is a more generic error
message that I find singularly unuseful.
Line #2 (error #118: Operators &: error in left operand) gives a more
specific reason.

At any rate, the problem seems to be on line 236 in the function
getDesktopFolderPath, and is probably around char 8, although that isn't
always accurate.

The stack frames leading up to the error were triggered by the build
process invoking preOpencard:

preOpenCard
--> initFirstLoginScreen
> checkForLastLogInFile
--> getDesktopFolderPath

--
 Mark Wieder
 ahsoftw...@gmail.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





___
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: How do I interpret this Build Error dialog?

2021-02-15 Thread J. Landman Gay via use-livecode
In Sample Stacks, search for LiveCode Error Lookup. I keep it my Plugins 
folder. You can paste the whole list of errors into it and it will tell you 
what they mean.


However, usually you only need the first line which is where a break would 
happen in the IDE. The other lines are, in reverse order, the messages that 
led up to the topmost error.


The first item in each line is the error code, the second is the script 
line number, and the third is the character offset in the line.


An advantage of this stack is that it reads the error descriptions from the 
currently running copy of LiveCode so it is always up to date. New errors 
are added as the language expands.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On February 15, 2021 5:26:44 PM William Prothero via use-livecode 
 wrote:



Folks:

I have a pretty complex app that I’ve been adding onto for awhile and now 
I’m getting a seemingly informative error dialog when I try to build it. It 
works fine in the IDE. The app consists of numerous stacks and libraries 
launched with a splash stack. I get an error dialog but have no idea how to 
interpret its info. It’s not clear to me how to interpret the error dialog 
and what made it fail. It seems to fail at the login stack, which is called 
when the user clicks the Start button.


Was the failure point at the end of the error message? I haven’t actually 
tried to build this app for a couple of years and its complexity has grown. 
All of the stacks in the project have been entered into the “Stacks” 
section of the standalone properties dialog. I’ve obviously done something 
wrong and it would help a lot if I could interpret the error message (I hope).


The following two links will display the first part of the error message 
and the second (scrolled) part.
https://www.dropbox.com/s/brlvvtrbb8xeh6j/buildFail-1.png?dl=0 



https://www.dropbox.com/s/5cyq3huunp7wnl3/buildFail-2.png?dl=0 



Any wisdom on how to proceed would be much appreciated.

Thanks,
Bill

William Prothero
waproth...@gmail.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





___
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: [OT] Poll: What does it mean for 1 rect to be 'within' a certain distance of another rect?

2021-02-15 Thread J. Landman Gay via use-livecode
I think the natural definition would be distance between the respective boundaries; i.e., edge 
to edge distance, but also the distance between corners. That is, if any of r1's corners is d 
distance from any one of r2's closest corners.


On 2/15/21 4:53 PM, Paul Dupuis via use-livecode wrote:
This is an Off Topic informal poll of sorts, but related to LiveCode as I am writing a LiveCode 
expression to determine if 2 arbitrary rectangles (r1,r2) are with some distance d (in px) of 
one another. In considering this problem, the questions comes up: What is meant by rectangles 
being within a distance d of one another. What is the 'd' measured from?


center to center? Easiest is many ways, but I don't think this is what most 
people would think of.

adjacent edge to adjacent edge? This is harder (I think), but I think this is what more people 
intuitively think of. To me, implicit in the visual concept of 2 rects being within some 
distance of one another is that they are NOT overlapping, but that some gap exists between the 
nearest adjacent edges?


Something else? What does 2 rects  being 'within' d pixels of one another mean to you, if not 
one of the two above options?


Maybe there is a exact mathematical definition of what 2 rectangles being within distance d of 
one another is, but, if there is, I am unfamiliar with it.



___
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



--
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: LC Roadmap

2021-02-15 Thread J. Landman Gay via use-livecode
Initial setup is a bit of a journey because Apple likes to make developers jump through hoops 
to prove they're worthy. But every subsequent notarization is a one-click wonder.


On 2/15/21 4:25 PM, William Prothero via use-livecode wrote:

Jacqueline:
Thanks. Yes, I have it. Haven’t tried it yet. But I’ve downloaded it.
Best,
Bill



On Feb 15, 2021, at 1:35 PM, J. Landman Gay via use-livecode 
 wrote:

Do you use his notarization stack? Once you get it set up it's a huge 
time-saver. No more Terminal commands.

On 2/15/21 2:21 PM, William Prothero via use-livecode wrote:

Codesigning is always a trudge for me because I don’t do it very often and 
Apple is regularly changing the parameters. So I also very much appreciate 
Matthias’ lesson.
Thanks from me too!
Bill



--
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


William Prothero
waproth...@gmail.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




--
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: LC Roadmap

2021-02-15 Thread J. Landman Gay via use-livecode
Do you use his notarization stack? Once you get it set up it's a huge time-saver. No more 
Terminal commands.


On 2/15/21 2:21 PM, William Prothero via use-livecode wrote:

Codesigning is always a trudge for me because I don’t do it very often and 
Apple is regularly changing the parameters. So I also very much appreciate 
Matthias’ lesson.
Thanks from me too!
Bill



--
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: LC Roadmap

2021-02-15 Thread J. Landman Gay via use-livecode
I agree, the lesson is fantastic. I was just there minutes ago helping a client set up his 
stack. And now we have entitlements added; that's new and much appreciated. Matthias put a lot 
of work into that lesson. We use it for every new Mac release.


On 2/15/21 1:32 PM, Roger Guay via use-livecode wrote:

I definitely owe an apology to Matthias Rebbe for not recognizing his 
outstanding lesson “Codesigning and notarizing your LC standalone for 
distribution outside the Mac Appstore- “, including the fact of the recent 
update of Feb 9th. The amount of work involved in creating this lesson is 
mind-boggling to me.

Thank you, Matthias!!

Roger


On Feb 14, 2021, at 3:01 PM, Roger Guay via use-livecode 
 wrote:

I just noticed that the "Codesigning and Notarizing your LC Standalone etc” 
lesson was updated on Feb 9, 2021. Perhaps I misrepresented the real situation in my 
previous post.

Roger



On Feb 14, 2021, at 2:35 PM, Roger Guay via use-livecode 
 wrote:

Well, permit me to chime in here with full knowledge that I may be out of date 
with what’s already available.

Arguably the most important feature of LC is its muliplatformness. Recognizing 
that it is a moving target, We/I need and want up to date easy to use lessons 
on how to build standalones for all the platforms. Since it is moving target 
these lessons should have revision cycles with clear up front indication of 
what OS and LC versions are being  used in each lesson. One of the problems I 
encounter is the bewildering platform jargon in existing lessons. I wish more 
simple language could be used to perhaps explain the jargon.

I am an Apple user (not a bigot) and it annoys the hell of me that I can no 
longer build distributable standalones for the Mac. It’s not reasonable to 
expect to change Apple, so we need to make it easier for us LC users. I briefly 
looked at the current lesson for this some time ago and at first glance it 
seemed unnecessarily complicated. I admit I might be me at fault here but here 
we are…

Just trying to help,

Roger


On Feb 14, 2021, at 1:52 PM, Richard Gaskin via use-livecode 
 wrote:

What do you want to learn?

Let's identify topic areas, and then it will become much simpler to sort out 
how they get addressed.



___
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




--
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: LC Roadmap

2021-02-14 Thread J. Landman Gay via use-livecode
BTW, I like the idea of putting a reference link to the lessons in the 
"This Week in LiveCode" newsletter. It's an easy thing to do and I think it 
would help.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On February 15, 2021 12:26:30 AM "J. Landman Gay via use-livecode" 
 wrote:



I had to check and the lessons are in fact in both the Help and Resources
menus but they are called Tutorials. Both link to the lessons site. I never
actually looked at those before, I only knew about the lessons from
elsewhere and I always use a bookmark to get there.

Like you, I don't want to go through a long tutorial, I just want to know
the bits that apply to a particular problem I need to solve. The lessons do
that for me. It seems like there should be a different name for the menu
item but I can't think what. "Tutorial" sounds time consuming.

But renaming the menu wouldn't solve the fact that I never actually
explored it. My bad.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On February 14, 2021 7:47:43 PM William Prothero  wrote:


Jacqueline:
I didn’t know about http://lessons.livecode.com
<http://lessons.livecode.com/>. Thank you for letting me know of that
resource. It looks very useful and I like the user feedback part.

To be clear, it is my intent to stimulate thought toward opportunities, not
to complain.

In a way, my ignorance of the lessons link illustrates my point. Where is
the marketing? Why aren’t these contributions mentioned in the “This Week
In Llivecode” mailing? I am busy with many things other than programming. I
read all of the emails from this list. Yet, I didn’t know about this
compilation. These could be promoted/marketed, not only to potential new
users, but to existing ones.

I think if folks would check out the example site I mentioned, they would
see more what I’m suggesting. http://macmost.com <http://macmost.com/>

Andre Garza’s post about his planning to write a book on some aspect of
Livecode programming got me thinking about this. First, I think writing
books is useful, but the way many busy folks access information on the
internet is in more as smaller more targeted bites. I play jazz keyboard. A
couple of years ago, I subscribed to a site that gave me access to jazz
song sheet music included in video lessons lasting 30-60 minutes each. At
the same time, from a couple other  authors, I got regular (about once a
week) emails with short free improv techniques that took me 5-10 minutes to
read, but with offers (at a cost) that include more in-depth lessons. I
find that I use the short lessons a lot and the longer lessons, that I have
already paid for with my one year subscription, very little if at all.
Perhaps I’m unusual with a very short attention span, but I suspect I'm
more typical. I’m suggesting that there are unused marketing and support
strategies that could be beneficial to the Livecode enterprise. Check out
the macmost site to see what I’m talking about.

Peace to you all and thanks for all the help you have given me in my projects,

Be well,
Bill Prothero




On Feb 14, 2021, at 10:43 AM, J. Landman Gay via use-livecode
 wrote:

There is a whole lot more at http://lessons.livecode.com. While these
aren't videos, the amount of info there is impressive and lessons are added
all the time.

Personally I find written instructions much easier to follow and they don't
require me to spend extra time watching a video and needing to
run/pause/run/search for the section I want to review.

The lessons site should be prominently displayed in the Help menu.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On February 14, 2021 11:27:24 AM ELS Prothero via use-livecode
 wrote:


Curry,
Your comments echo some of my experiences with Livecode. In olden times,
when I realized that I could significantly improve my students’ learning by
enlisting computers, I began with HyperCard, went to Supercard, and when it
failed at cross platform, I went to Macromedia Director.  I’ve programmed
in FORTRAN, Pascal. When Adobe bought and killed Director, I switched my
coding to LiveCode.



William Prothero
waproth...@gmail.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





___
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: LC Roadmap

2021-02-14 Thread J. Landman Gay via use-livecode
I had to check and the lessons are in fact in both the Help and Resources 
menus but they are called Tutorials. Both link to the lessons site. I never 
actually looked at those before, I only knew about the lessons from 
elsewhere and I always use a bookmark to get there.


Like you, I don't want to go through a long tutorial, I just want to know 
the bits that apply to a particular problem I need to solve. The lessons do 
that for me. It seems like there should be a different name for the menu 
item but I can't think what. "Tutorial" sounds time consuming.


But renaming the menu wouldn't solve the fact that I never actually 
explored it. My bad.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On February 14, 2021 7:47:43 PM William Prothero  wrote:


Jacqueline:
I didn’t know about http://lessons.livecode.com 
<http://lessons.livecode.com/>. Thank you for letting me know of that 
resource. It looks very useful and I like the user feedback part.


To be clear, it is my intent to stimulate thought toward opportunities, not 
to complain.


In a way, my ignorance of the lessons link illustrates my point. Where is 
the marketing? Why aren’t these contributions mentioned in the “This Week 
In Llivecode” mailing? I am busy with many things other than programming. I 
read all of the emails from this list. Yet, I didn’t know about this 
compilation. These could be promoted/marketed, not only to potential new 
users, but to existing ones.


I think if folks would check out the example site I mentioned, they would 
see more what I’m suggesting. http://macmost.com <http://macmost.com/>


Andre Garza’s post about his planning to write a book on some aspect of 
Livecode programming got me thinking about this. First, I think writing 
books is useful, but the way many busy folks access information on the 
internet is in more as smaller more targeted bites. I play jazz keyboard. A 
couple of years ago, I subscribed to a site that gave me access to jazz 
song sheet music included in video lessons lasting 30-60 minutes each. At 
the same time, from a couple other  authors, I got regular (about once a 
week) emails with short free improv techniques that took me 5-10 minutes to 
read, but with offers (at a cost) that include more in-depth lessons. I 
find that I use the short lessons a lot and the longer lessons, that I have 
already paid for with my one year subscription, very little if at all. 
Perhaps I’m unusual with a very short attention span, but I suspect I'm 
more typical. I’m suggesting that there are unused marketing and support 
strategies that could be beneficial to the Livecode enterprise. Check out 
the macmost site to see what I’m talking about.


Peace to you all and thanks for all the help you have given me in my projects,

Be well,
Bill Prothero



On Feb 14, 2021, at 10:43 AM, J. Landman Gay via use-livecode 
 wrote:


There is a whole lot more at http://lessons.livecode.com. While these 
aren't videos, the amount of info there is impressive and lessons are added 
all the time.


Personally I find written instructions much easier to follow and they don't 
require me to spend extra time watching a video and needing to 
run/pause/run/search for the section I want to review.


The lessons site should be prominently displayed in the Help menu.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On February 14, 2021 11:27:24 AM ELS Prothero via use-livecode 
 wrote:



Curry,
Your comments echo some of my experiences with Livecode. In olden times, 
when I realized that I could significantly improve my students’ learning by 
enlisting computers, I began with HyperCard, went to Supercard, and when it 
failed at cross platform, I went to Macromedia Director.  I’ve programmed 
in FORTRAN, Pascal. When Adobe bought and killed Director, I switched my 
coding to LiveCode.




William Prothero
waproth...@gmail.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: LC Roadmap

2021-02-14 Thread J. Landman Gay via use-livecode
There is a whole lot more at http://lessons.livecode.com. While these 
aren't videos, the amount of info there is impressive and lessons are added 
all the time.


Personally I find written instructions much easier to follow and they don't 
require me to spend extra time watching a video and needing to 
run/pause/run/search for the section I want to review.


The lessons site should be prominently displayed in the Help menu.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On February 14, 2021 11:27:24 AM ELS Prothero via use-livecode 
 wrote:



Curry,
Your comments echo some of my experiences with Livecode. In olden times, 
when I realized that I could significantly improve my students’ learning by 
enlisting computers, I began with HyperCard, went to Supercard, and when it 
failed at cross platform, I went to Macromedia Director.  I’ve programmed 
in FORTRAN, Pascal. When Adobe bought and killed Director, I switched my 
coding to LiveCode.


I still miss Director. It’s animation capabilities and web deployment with 
a plug-in were excellent. Of course, plug-ins are obsolete and mobile 
support has become mandatory. The big selling point that is front and 
center is: English like language. I find that a very weak claim, unless all 
I want to do is write “Hello World” when I click a button. To do anything 
non-trivial, you need to delve into coder world. Yes, it is enormously 
helpful at building user interfaces. Deployment is an enormous pain, with 
ever changing security challenges. The help files are great at the most 
trivial tasks, but to do beyond can be challenging. That said, I am 
committed to Livecode and congratulate the dev team for their accomplishments.


I would like to see:
Better help files that go deeper. Have you seen MacMost.com? This is a guy 
who produces quicky videos for free, and offers more detailed courses for a 
modest subscription fee. I don’t know whether there are enough potential 
clients for this, but what if a small team of live coders created something 
like this that would create modest size youtube videos that both bring in 
new users and take them to the next level with video, sample projects, and 
text materials? Perhaps the mothership could support and advise while user 
Fees pass to the authors. Just thinking.




___
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: Close Stack Cleanup

2021-02-04 Thread J. Landman Gay via use-livecode
I did a test before answering and the message was sent to the card of my 
otherwise blank stack, after dismissing the IDE dialog. That makes me think 
something is going on with your particular stack. What happens if you try 
it with a plain new stack?


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On February 4, 2021 6:07:32 PM Bob Sneidar via use-livecode 
 wrote:


Thanks Ralph. Actually what I am looking for is a message that gets sent 
when the close button of a window gets clicked. The Message Watcher seems 
to indicate not (or rather fails to indicate). I think this is a bug, or at 
least an oversight. This means that anyone can close a stack, and 
closeStackRequest will not get triggered. This seems contrary to what 
closeStackRequest is for.


I will submit a feature request, but I suspect it’s going to be low on the 
totem pole.


Bob S


On Feb 4, 2021, at 3:53 PM, Ralph DiMola via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:


Is this what you're looking for?

revIDESetEdited pStackName
revIDESetUnedited pStackName

Interrogate it with: revIDEStackIsEdited pStackName

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

___
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


RE: Close Stack Cleanup

2021-02-04 Thread J. Landman Gay via use-livecode
That looks like it would work though it isn't the variable I remember. 
Probably that's what changed. Nice sleuthing.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On February 4, 2021 5:52:14 PM Ralph DiMola via use-livecode 
 wrote:



Is this what you're looking for?

revIDESetEdited pStackName
revIDESetUnedited pStackName

Interrogate it with: revIDEStackIsEdited pStackName

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net



-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf 
Of J. Landman Gay via use-livecode

Sent: Thursday, February 04, 2021 5:53 PM
To: How to use LiveCode
Cc: J. Landman Gay
Subject: Re: Close Stack Cleanup

There used to be a gREV* global variable that tracked the dirty status and 
if the stack was dirty it put up the "do you want to save?" dialog. I can't 
find it now so something has changed. When it existed, you could toggle 
that variable via script and the IDE wouldn't bother you.


The IDE does pass the closeStackRequest to your stack after it checks the 
stack status. The docs are correct that you don't get that message when a 
script closes the stack but you can use closeStack instead; however, first 
we need to find out where that variable went to. It used to be in the 
globals pane of the message watcher, and I'd recognize it if I saw it, but 
I can't remember now what it was.


On 2/4/21 12:59 PM, Bob Sneidar via use-livecode wrote:

Hi all.

I know we have tread this ground before, but I am trying to clean up my 
stack (i.e. clear the fields), then save it when I close it BY ANY MEANS. 
That means by script, by menu OR by clicking the red dot (of for WIN users 
the red X) in the title bar. I need this to work in the IDE as well as in 
standalone.


You would think closeStackRequest gets sent when I click the red dot or X. 
You would be mistaken.


The dictionary reads,

The closeStackRequest message is only sent if the request to close a stack 
is initiated by the user (eg by clicking file -> close in the LiveCode 
menu). If the request is initiated from a script (eg "close this stack" ) 
then the closeStackRequest message is not sent.


Apparently clicking the red dot is not considered, “initiated by the user.” 
It ought to be.


If I use “CloseStack” instead, I cannot save the stack because a script is 
currently running, and I do not want to be presented with the dialog to 
save, do not save, or cancel. I just want it to be saved. I can force quit 
if I mess something up.


Bob S

___
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




--
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


___
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


Re: Close Stack Cleanup

2021-02-04 Thread J. Landman Gay via use-livecode
There used to be a gREV* global variable that tracked the dirty status and if the stack was 
dirty it put up the "do you want to save?" dialog. I can't find it now so something has 
changed. When it existed, you could toggle that variable via script and the IDE wouldn't bother 
you.


The IDE does pass the closeStackRequest to your stack after it checks the stack status. The 
docs are correct that you don't get that message when a script closes the stack but you can use 
closeStack instead; however, first we need to find out where that variable went to. It used to 
be in the globals pane of the message watcher, and I'd recognize it if I saw it, but I can't 
remember now what it was.


On 2/4/21 12:59 PM, Bob Sneidar via use-livecode wrote:

Hi all.

I know we have tread this ground before, but I am trying to clean up my stack 
(i.e. clear the fields), then save it when I close it BY ANY MEANS. That means 
by script, by menu OR by clicking the red dot (of for WIN users the red X) in 
the title bar. I need this to work in the IDE as well as in standalone.

You would think closeStackRequest gets sent when I click the red dot or X. You 
would be mistaken.

The dictionary reads,

The closeStackRequest message is only sent if the request to close a stack is initiated by 
the user (eg by clicking file -> close in the LiveCode menu). If the request is initiated 
from a script (eg "close this stack" ) then the closeStackRequest message is not 
sent.

Apparently clicking the red dot is not considered, “initiated by the user.” It 
ought to be.

If I use “CloseStack” instead, I cannot save the stack because a script is 
currently running, and I do not want to be presented with the dialog to save, 
do not save, or cancel. I just want it to be saved. I can force quit if I mess 
something up.

Bob S

___
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




--
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


Terminal timeout?

2021-02-01 Thread J. Landman Gay via use-livecode
My AirLaunch app uses shell commands to create .ipa files for iOS. One customer is experiencing 
problems with a large app, which is about 250MB. This is due to thousands of short audio files 
that are included in the build. When she builds without the audio files it works fine.


She sent me a test copy and it built without any problem on my iMac. I suspect her Mac isn't up 
to the task and is taking too long to process all those 22,541(!) files. I couldn't find much 
info about Terminal timeouts but it looks like it's about 1-2 minutes. Does anyone have any 
ideas about how to get around this?


I've already suggested that she put the audio files on a server and download them when her app 
first starts up, but she'd prefer it if she could set the timeout period to a longer duration. 
She will need to add more audio files in the future...


I should mention that we think it's a timeout, but it might be something else. The error she 
gets is too generic to know -- it just says "an error occurred" and then stops. Might be a 
memory thing. If she builds on her MacBook instead it does work, but completes just seconds 
before our assumed timeout period. If she adds more files, it will probably fail there too.


--
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: Double sided PDF Problem

2021-01-28 Thread J. Landman Gay via use-livecode
Right after I sent the message below, I think I understand what you meant. 
You want to print double-sided pages of all the cards in a stack. Is that 
right? On a regular printer you don't have to do anything special; if the 
printer driver supports double-sided printing then it just works.


For PDFs, I'd have to check. What OS are you on?
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On January 28, 2021 11:59:01 PM "J. Landman Gay via use-livecode" 
 wrote:



I'm confused. Are you writing a card game with decks of cards? Or do you
mean the cards in a lC stack? What is "flipping the page"?

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On January 28, 2021 11:15:51 PM "Brian K. Duck via use-livecode"
 wrote:


I’d like to print decks of cards, front and back

The front page is always easy.
Cards print left to right: 1-3

Flipping the pages, in portrait layout, the cards are now face down, in
order but reversed: 3,2, 1.

The problem is, printing 3 wide by 4 tall, aligining the two.

Any existing solutions or discussions?

Thanks for your time,
Brian Duck
Bduck at m@c dot 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





___
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


Re: Text field in Windows standalone not receiving keyboard focus

2021-01-28 Thread J. Landman Gay via use-livecode
Try comparing the properties of a group that works with the one that 
doesn't. Also compare individual field properties, in particular check the 
traversalOn, autoHilite, and lockText. That alone wouldn't explain why it 
appears to fix itself occasionally, but could point to a script that 
changes one of these properties.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On January 28, 2021 3:33:39 PM Andrew at MidWest Coast Media via 
use-livecode  wrote:


I have an app with a group of fields who are struggling to accept keyboard 
input. It seems to just be 1 group of 4 fields on a single card (that has 
been noticed). You can click in the field and the blinking I-bar is 
inserted, but typing on the keyboard does nothing. Pasting text into any of 
these fields seems to unlock the ability to type, as does switching to 
another application and switching back, but only until you leave the card 
and come back again.


This ONLY happens in executable on Windows, not in IDE and never on Mac 
(where I am developing which is why I missed the bug in testing). Once you 
unlock 1 of the 4 fields in the group they all unlock until you leave the 
card and come back where the problem manifests again.There is another group 
of text files (hidden so not on screen the same time as the offending 
group) that accepts keyboard input fine without any hacks which points to a 
problem with the group. There are no scripts on the field or group itself. 
I have already tried a “focus on nothing” without any luck.


-Andrew Bell
___
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


Re: Double sided PDF Problem

2021-01-28 Thread J. Landman Gay via use-livecode
I'm confused. Are you writing a card game with decks of cards? Or do you 
mean the cards in a lC stack? What is "flipping the page"?


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On January 28, 2021 11:15:51 PM "Brian K. Duck via use-livecode" 
 wrote:



I’d like to print decks of cards, front and back

The front page is always easy.
Cards print left to right: 1-3

Flipping the pages, in portrait layout, the cards are now face down, in 
order but reversed: 3,2, 1.


The problem is, printing 3 wide by 4 tall, aligining the two.

Any existing solutions or discussions?

Thanks for your time,
Brian Duck
Bduck at m@c dot 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





___
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: OT Friendly customers....

2021-01-27 Thread J. Landman Gay via use-livecode

On 1/26/21 12:29 PM, doc hawk via use-livecode wrote:


There was a great website years ago that I can no longer find, in which a women 
strung along one of these guys, posting what she was doing and the 
correspondence.


If you like that, you'll absolutely love this:


Hysterically funny.

--
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: OT Friendly customers....

2021-01-26 Thread J. Landman Gay via use-livecode
Can you contact him on LinkedIn to verify he sent that email? If it isn't 
fraudulent he may be looking for a free copy by requesting a refund and 
then using the app anyway. But it sounds like a fake email to me.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On January 26, 2021 11:18:25 AM matthias rebbe via use-livecode 
 wrote:



Hi all,

today i had a really unfriendly email from a customer
and i would like to show what independent developers sometimes have to deal 
with.


First some information...
i am selling a Win/Mac/Linux tool through Fastspring for years.
The software is protected using Zygodact from Jacqueline Landman Gay.
Btw. a really great tool.

The purchase process is quite easy. After successful purchase/payment 
Fastspring contacts post some data to a Livecode Server Script. If the 
Fastpring call contains all needed information the Livecode Server scripts 
call the Zygodact stack to generate the registration data for that order  
and then returns that information. T he customer then get's an automated 
email from Fastspring which contains the details to unlock the software 
from demo mode to full mode. This works for years now and worked before 
Fastspring for years with KAGI.


Today this email arrived:

<
I plugged in the registration code and received a message that it was not 
valid for the current version that I had downloaded and that I had to send 
more money.


Either send me a valid code or refund my money.

Unless I hear from you today I will contact my bank and my credit card 
company and report this as a fraudulent charge.


Let me know what are your intentions.





The funny part is, my software does not return such a message. If the code 
is not accepted because email address and key code do not match, it just 
returns the message "Name or Key incorrect."


So what should i conclude from this? Did the customer try to unlock a wrong 
program? Or did he just interpret the message "Name or Key incorrect" as 
"You have to send more money"?


But what annoys me the most is the way he wrote the support request.

As the friendly person i am, i tried his unlock data here w/o problem. I 
replied to him that the unlock data is definitely working and if that is 
not the case at his side, then i would assume that he either tried to use 
the unlock details with an other program not mine or that he did not 
exactly enter the unlock details.

I even offered a free one2one remote session to do the unlock process for him.

Until now i did not receive any answers.

Btw. according to his LinkeIn profile he is a Digital Journalist and Web 
Designer and is working for a US University


Anyway.

Regards,

Matthias








-
Matthias Rebbe
Life Is Too Short For Boring Code


___
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


Re: lock screen

2021-01-22 Thread J. Landman Gay via use-livecode

Eww. Speak for yourself.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On January 22, 2021 10:01:45 AM doc hawk via use-livecode 
 wrote:



Not so much either/or as it’s a counter, with 0 being unlocked.

Lock increments the counter, and unlock excrements.

The counter gets set to 0 when the engine idles, as well

--
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
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


Re: Trying to use the Segmented Control

2021-01-20 Thread J. Landman Gay via use-livecode

On 12/4/20 3:32 AM, Niggemann, Bernd via use-livecode wrote:

Ralf Bitter wrote



See: https://github.com/revig/universal-button-widget/releases/tag/1.0.1



Thank you Ralf for this brilliant widget.

Kind regards
Bernd


I finally had a chance to look at this widget. Thank you Ralf for your generous contribution, 
this is very useful!


--
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


In-app purchasing

2021-01-19 Thread J. Landman Gay via use-livecode

Has anyone done in-app purchasing on iOS and Android? Does it work?

We're looking into possibly implementing this but I've never done it before. 
Any tips welcome.

--
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: background images

2021-01-18 Thread J. Landman Gay via use-livecode
That's what I do too. Each card has a custom property containing the name 
of the image that loads in preopencard.


You may be remembering shared fields which can contain different text per 
card even if they're part of a group.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On January 18, 2021 8:02:06 PM Tim Selander via use-livecode 
 wrote:



Thanks, Peter.

I added a little opencard script to load the image for each card,
which is fine and solves the immediate problem.
But I was quite certain that in the past, I had a stack, with an
image control in a background that would keep a unique image for
each card without scripting. I must be dreaming/getting forgetful
in my old age!

Tim Selander

On 2021.01.19 10:20, Peter Bogdanoff via use-livecode wrote:
That’s where a image that is not part of the group is useful; it’s only on 
that card. Otherwise you would have to set the background image dynamically 
on preOpenCard based on stored data about that image/card combination.


Peter Bogdanoff

On Jan 18, 2021, at 4:44 PM, Tim Selander via use-livecode 
 wrote:


Right, which is why this is so confusing. I do not want a 'shared text' image.
Each card should keep it's own unique image, but when I change the image on 
one card, all the cards end up with the same image. That is what I want to fix.


Tim Selander

On 2021.01.19 3:21, Klaus major-k via use-livecode wrote:

Hi Tim,

Am 18.01.2021 um 19:12 schrieb Tim Selander via use-livecode 
:


This is driving me nuts.

Have a 'background' group with an image. If I change the filename of an 
image on one card, ALL the cards change to that image. Yet a field in the 
same group properly will take unique values for each card.


I know I've done this before... what setting am I missing??
Dropbox link to test stack: 
https://www.dropbox.com/s/0r0ku3fw2i2pen7/test.livecode?dl=0


fields can have a "sharedtext" property, so they can hold different text on 
each card if part of a group.

Images can NOT!


Any help appreciated!

Tim Selander
Tokyo, Japan


Best

Klaus

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
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




___
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


Re: Considering work with livecode server

2021-01-18 Thread J. Landman Gay via use-livecode

That's right. Apps that are just portals to web content are forbidden.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On January 18, 2021 8:07:08 PM Mark Wieder via use-livecode 
 wrote:



On 1/18/21 2:20 PM, William Prothero via use-livecode wrote:

Building a single web-based app that avoids the world of all the mobile 
apps and desktop idiosyncrasies is attractive.


I thought mobile stores (Apple, etc) explicitly disallowed apps that
were essentially just web browsers to external content.

Am I wrong about this?

--
 Mark Wieder
 ahsoftw...@gmail.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





___
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: Audioclips overlapping

2021-01-09 Thread J. Landman Gay via use-livecode

See the "prepare" entry in the dictionary. It's specifically designed to allow 
instant playback.

--
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: Field ID clash

2021-01-02 Thread J. Landman Gay via use-livecode
When you check the property inspector for each field do they really have 
the same ID? I didn't think that was possible.


If the IDs are different then there are other reasons why the wrong field 
responds. It could be a number of things.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On January 2, 2021 5:06:30 AM David V Glasgow via use-livecode 
 wrote:



Using 9.6.0 on Mac 10.13.6

I duplicated a field and found a third field responded to the mouseup of 
the duplicate.  It seems the duplication generated a clash of IDs between 
the duplicate and third field.  I could just select and start again, but I 
was wondering whether there is a safe way to manually (or force automatic) 
change the ID of one pr other of the fields.  I also wondered how this 
might happen in the first place.  Is my stack OK, or might a more serious 
problem be developing?


Any thoughts or suggestions?

Best wishes,

David Glasgow


___
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


Re: Encoding puzzle

2020-12-29 Thread J. Landman Gay via use-livecode

On 12/29/20 5:24 PM, Paul Dupuis via use-livecode wrote:

On 12/29/2020 6:07 PM, J. Landman Gay via use-livecode wrote:

Original text: Révéler l'archéologie
LC urlEncoded string: R%8Ev%8Eler+l%27arch%8Eologie 


URLEncode(textEncode(,"UTF8")) -> gets you a properly URL encoded string where 
the server is expecting UTF8


Thank you, that works (though I need to replace the + with %20.) I had my 
encoding backwards.


--
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


Encoding puzzle

2020-12-29 Thread J. Landman Gay via use-livecode
I need to send a string in French to a server. The server expects one kind of encoding and LC's 
URL encoding is producing something different. Not only that, but after sending the LC encoded 
text, the server receives something unrelated. I can't identify why. Details:


Original text: Révéler l'archéologie
LC urlEncoded string: R%8Ev%8Eler+l%27arch%8Eologie
LC string arrives at server as: R%EF%BF%BDv%EF%BF%BDler+l%27arch%EF%BF%BDologie
Server expects: R%C3%A9v%C3%A9ler%20l%27arch%C3%A9ologie

So why does the LC encoding arrive at the server in a different form, and why does neither the 
LC variable or the text the server receives match each other? And what encoding is it exactly 
that the server expects?


I played around with textDecode and a few other things but didn't get anywhere. I know the 
server wants UTF8.


--
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: Encrypting Stack Breaks Field References

2020-12-22 Thread J. Landman Gay via use-livecode
Rather, I didn't mean the team invented script-only stacks for Trevor in 
particular, but rather than they moved to git and needed text files.


English is such a positional language.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On December 22, 2020 8:51:36 PM "J. Landman Gay via use-livecode" 
 wrote:



Trevor uses git, which is why script-only stacks were invented. The LC team
uses git too.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On December 22, 2020 6:24:22 PM Bob Sneidar via use-livecode
 wrote:


Hmmm… Isn’t Levure almost completely based on script only stacks?

Bob S



On Dec 22, 2020, at 4:09 PM, J. Landman Gay via use-livecode
 wrote:

Unless you specifically need text files for git or some other reason, you
don't really need script-only stacks. Put the script in a button and then
put it in use or use it as a backscript. It will be encrypted when the
stack is. Another advantage to keeping scripts in the stack is that they
work with remote debugging, unlike text based scripts.

Brian Milby's script tracker is also a way to get the best of both worlds.
It saves scripts out to text files for uploading to github while keeping
the advantages of stack-based scripts.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On December 22, 2020 3:24:11 PM Bob Sneidar via use-livecode
 wrote:


What he said. The promise of creating standalones and encrypted stacks
containing code sounds promising, but there are caveats. It begs the
question, how do we encrypt script only stacks or libraries? I don’t use
encrypted stacks because my code is for internal use only, but if I ever
went commercial, this would be something I would need.

Bob S



On Dec 13, 2020, at 4:02 PM, Richard Gaskin via use-livecode
 wrote:

Ron Noice wrote:

? My program (built with LC 9.6.1 Indy Windows) contains a large number
> of references to fields by variables.
...
> only when I encrypt it does it fight back. Here's a simplified example
> of what I'm doing:
>
> create group "grpTree"
> ...
> copy fld "baseBox" to grp "grpTree"

^ that's your issue.

Copying objects is disallowed in an encrypted stack, since of course once
an object is copied it could be pasted into an unencrypted stack, and thus
expose the source.

You might consider moving the code from the encrypted stack to an encrypted
behavior object, leaving the stack where copying must be done unencrypted.

But if these objects are being copied only by script for the purpose of
automatically building out a UI, without a need to alter the user's
clipboard, you might consider using the clone command instead.

--
Richard Gaskin
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web


___
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





___
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


Re: Encrypting Stack Breaks Field References

2020-12-22 Thread J. Landman Gay via use-livecode
Trevor uses git, which is why script-only stacks were invented. The LC team 
uses git too.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On December 22, 2020 6:24:22 PM Bob Sneidar via use-livecode 
 wrote:



Hmmm… Isn’t Levure almost completely based on script only stacks?

Bob S


On Dec 22, 2020, at 4:09 PM, J. Landman Gay via use-livecode 
 wrote:


Unless you specifically need text files for git or some other reason, you 
don't really need script-only stacks. Put the script in a button and then 
put it in use or use it as a backscript. It will be encrypted when the 
stack is. Another advantage to keeping scripts in the stack is that they 
work with remote debugging, unlike text based scripts.


Brian Milby's script tracker is also a way to get the best of both worlds. 
It saves scripts out to text files for uploading to github while keeping 
the advantages of stack-based scripts.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On December 22, 2020 3:24:11 PM Bob Sneidar via use-livecode 
 wrote:


What he said. The promise of creating standalones and encrypted stacks 
containing code sounds promising, but there are caveats. It begs the 
question, how do we encrypt script only stacks or libraries? I don’t use 
encrypted stacks because my code is for internal use only, but if I ever 
went commercial, this would be something I would need.


Bob S


On Dec 13, 2020, at 4:02 PM, Richard Gaskin via use-livecode 
 wrote:


Ron Noice wrote:

? My program (built with LC 9.6.1 Indy Windows) contains a large number
> of references to fields by variables.
...
> only when I encrypt it does it fight back. Here's a simplified example
> of what I'm doing:
>
> create group "grpTree"
> ...
> copy fld "baseBox" to grp "grpTree"

^ that's your issue.

Copying objects is disallowed in an encrypted stack, since of course once 
an object is copied it could be pasted into an unencrypted stack, and thus 
expose the source.


You might consider moving the code from the encrypted stack to an encrypted 
behavior object, leaving the stack where copying must be done unencrypted.


But if these objects are being copied only by script for the purpose of 
automatically building out a UI, without a need to alter the user's 
clipboard, you might consider using the clone command instead.


--
Richard Gaskin
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web


___
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





___
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: Encrypting Stack Breaks Field References

2020-12-22 Thread J. Landman Gay via use-livecode
Unless you specifically need text files for git or some other reason, you 
don't really need script-only stacks. Put the script in a button and then 
put it in use or use it as a backscript. It will be encrypted when the 
stack is. Another advantage to keeping scripts in the stack is that they 
work with remote debugging, unlike text based scripts.


Brian Milby's script tracker is also a way to get the best of both worlds. 
It saves scripts out to text files for uploading to github while keeping 
the advantages of stack-based scripts.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On December 22, 2020 3:24:11 PM Bob Sneidar via use-livecode 
 wrote:


What he said. The promise of creating standalones and encrypted stacks 
containing code sounds promising, but there are caveats. It begs the 
question, how do we encrypt script only stacks or libraries? I don’t use 
encrypted stacks because my code is for internal use only, but if I ever 
went commercial, this would be something I would need.


Bob S


On Dec 13, 2020, at 4:02 PM, Richard Gaskin via use-livecode 
 wrote:


Ron Noice wrote:

? My program (built with LC 9.6.1 Indy Windows) contains a large number
> of references to fields by variables.
...
> only when I encrypt it does it fight back. Here's a simplified example
> of what I'm doing:
>
> create group "grpTree"
> ...
> copy fld "baseBox" to grp "grpTree"

^ that's your issue.

Copying objects is disallowed in an encrypted stack, since of course once 
an object is copied it could be pasted into an unencrypted stack, and thus 
expose the source.


You might consider moving the code from the encrypted stack to an encrypted 
behavior object, leaving the stack where copying must be done unencrypted.


But if these objects are being copied only by script for the purpose of 
automatically building out a UI, without a need to alter the user's 
clipboard, you might consider using the clone command instead.


--
Richard Gaskin
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web


___
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


Re: Android Keystore signing problem

2020-12-20 Thread J. Landman Gay via use-livecode
If it was working before then it should still work now. Check the Android 
settings and make sure that the path to the file is correct. The error 
sounds like LC can't find it.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On December 20, 2020 7:07:05 PM scott--- via use-livecode 
 wrote:


When trying to create an update for an app on Google Play I am getting this 
message when attempting to create the standalone .apk.


"There was an error while saving the standalone application
signing failed - Certificate chain not found for: .
 must reference a valid KeyStore key entry containing a 
private key and corresponding public key certifcate chain."


(Where  is actually my keystore alias.)

This is the same keystore file that I have used in the past. My 
understanding (and failed attempts) indicate that creating a new keystore 
file won’t work if I’m using it to update an existing app on the Play Store.
I’m quite inexperienced with android builds. Any suggestions would be most 
welcome as I’ve about run out of ideas (and Google search queries.)


--
Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   https://elementarysoftware.com/
email sc...@elementarysoftware.com
booth1-360-734-4701
--








___
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


Re: Slow performance on Big Sur

2020-12-16 Thread J. Landman Gay via use-livecode
The screen is already locked on closeCard and unlocked on openCard. In between a bunch of stuff 
happens. Maybe that sequence of lock/unlock isn't working in Big Sur?


On 12/16/20 3:46 AM, Pi Digital via use-livecode wrote:

What about using ‘lock screen’? Then go card. For preopen it ‘shouldn’t’ make a 
difference but I have found this to be a cause for stammering in the past. 
Don’t bother putting an ‘unlock screen’ at the end of the preopencard  or 
opencard as it will unlock itself at the end of the open sequence anyway (as 
I’m sure you’re already aware).

Sean



On 16 Dec 2020, at 05:55, J. Landman Gay via use-livecode 
 wrote:

I had my client try it. Adding "wait 0 milliseconds" after a "go card" didn't 
make any difference really. The first four card changes were pretty fast, and after that it got 
slower and slower with each subsequent card change. I was watching her screen remotely but I 
couldn't see it due to how remote viewing works, but she said the redraw was quite noticeable.


On 12/14/20 4:45 PM, merakosp via use-livecode wrote:
Hello all,
Does adding a  after the  command make
any difference?
Cheers,
Panos



--
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

___
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




--
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: Slow performance on Big Sur

2020-12-15 Thread J. Landman Gay via use-livecode
I had my client try it. Adding "wait 0 milliseconds" after a "go card" didn't make any 
difference really. The first four card changes were pretty fast, and after that it got slower 
and slower with each subsequent card change. I was watching her screen remotely but I couldn't 
see it due to how remote viewing works, but she said the redraw was quite noticeable.


On 12/14/20 4:45 PM, merakosp via use-livecode wrote:

Hello all,

Does adding a  after the  command make
any difference?

Cheers,
Panos



--
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: Slow performance on Big Sur

2020-12-14 Thread J. Landman Gay via use-livecode
I also populate a field and adjust its rect from custom properties, as well as adjust some 
controls based on stored custom property settings. I also load an image from an unplaced 
background. So, lots of setup on preOpenCard.


On 12/14/20 1:14 PM, Marty Knapp via use-livecode wrote:

I have a customer with a brand new Mac Pro with tons of memory (and two 49 inch 
curved screens!) running Big Sur and he sent a video showing slow performance 
when populating a half dozen text fields from a custom property - took about 3 
seconds (in a standalone).

Marty


On Dec 14, 2020, at 11:04 AM, J. Landman Gay via use-livecode 
 wrote:

My client is running Big Sur and says that changing cards in a stack causes a 
very slow, stuttering display. The background image appears in chunks and text 
in the fields comes in as sequential pieces. The order of the display varies, 
sometimes the text appears first, sometimes the background image. The first few 
cards are fairly normal, but as she pages through the stack it gets slower.

I had her watch Activity Monitor and CPU usage goes up as she navigates through 
cards. At first the display is fairly normal but each successive card change 
increases CPU useage a little bit. She stopped when usage got to about 50% when 
she said it was unusable. This was in the IDE. She says the standalone is even 
slower.

Has anyone seen this? On Mojave and Catalina everything is fine.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | 
https://www.google.com/url?q=http://www.hyperactivesw.com=gmail-imap=160857754500=AOvVaw3zEkEOx8Qa_NdgiKshX9KD



___
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




--
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: Slow performance on Big Sur

2020-12-14 Thread J. Landman Gay via use-livecode

On 12/14/20 2:46 PM, Paul Dupuis via use-livecode wrote:

On 12/14/2020 2:04 PM, J. Landman Gay via use-livecode wrote:
My client is running Big Sur and says that changing cards in a stack causes a very slow, 
stuttering display. The background image appears in chunks and text in the fields comes in as 
sequential pieces. The order of the display varies, sometimes the text appears first, 
sometimes the background image. The first few cards are fairly normal, but as she pages 
through the stack it gets slower.


I had her watch Activity Monitor and CPU usage goes up as she navigates through cards. At 
first the display is fairly normal but each successive card change increases CPU useage a 
little bit. She stopped when usage got to about 50% when she said it was unusable. This was 
in the IDE. She says the standalone is even slower.


Has anyone seen this? On Mojave and Catalina everything is fine.



I had a weird display issue where a transition between two cards left with one card 
semi-transparent behind the new card. It was also slow. I have a visual effect dissolve between 
these two cards I removed the visual effect and changing between the cards was fast and clean.


Examine any visual effect transitions you may have between cards.


Thanks. There are no transition effects, just "go card". Each card has an image, and I tried 
toggling off alwaysBuffer but that didn't help. CloseCard sends some data off to a server but 
by the time the card is rendering, that's done I think. Also, it's odd that the delay 
accumulates. If it was due to something in navigation it should happen all the time at the same 
rate, but instead it gets slower as you go.


--
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


Slow performance on Big Sur

2020-12-14 Thread J. Landman Gay via use-livecode
My client is running Big Sur and says that changing cards in a stack causes a very slow, 
stuttering display. The background image appears in chunks and text in the fields comes in as 
sequential pieces. The order of the display varies, sometimes the text appears first, sometimes 
the background image. The first few cards are fairly normal, but as she pages through the stack 
it gets slower.


I had her watch Activity Monitor and CPU usage goes up as she navigates through cards. At first 
the display is fairly normal but each successive card change increases CPU useage a little bit. 
She stopped when usage got to about 50% when she said it was unusable. This was in the IDE. She 
says the standalone is even slower.


Has anyone seen this? On Mojave and Catalina everything is fine.

--
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: Encrypting Stack Breaks Field References

2020-12-13 Thread J. Landman Gay via use-livecode

On 12/13/20 6:02 PM, Richard Gaskin via use-livecode wrote:

Copying objects is disallowed in an encrypted stack, since of course once an object is copied 
it could be pasted into an unencrypted stack, and thus expose the source.


Except, copying via script using "copy x to y" doesn't involve the clipboard. I think this 
could be categorized as a bug, the original script should work.



--
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: return "error" code from standalone compile

2020-12-11 Thread J. Landman Gay via use-livecode
I use the online dictionaries (LC's and Brian Milby's) when I'm reading the 
list or the forums, or any other time I'm curious about something, and I'm 
on my tablet, phone, or Chromebook. None of the online resources are 
perfect, though Brian's is the most up to date. Often I want to check 
syntax or copy an example when composing an answer.


I wish LC would always show complete info from the latest release. 
Sometimes I just want to know something. Like, say, error codes on quit.


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

Mark Wieder wrote:


Why are you looking at the web version of the documentation instead of
the local one?




___
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: return "error" code from standalone compile

2020-12-09 Thread J. Landman Gay via use-livecode
I don't know much about this but it looks interesting. Is there a list of 
exit codes somewhere? When the OS receives the exit code, what happens? 
I.e., how would I use it?

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On December 9, 2020 7:48:10 PM Mark Wieder via use-livecode 
 wrote:



On 12/9/20 5:32 PM, Douglas A. Ruisaard via use-livecode wrote:

On the completion of a stack, can the compiled executable return an error
code like the old DOS ErrorLevel value(s)?  If so, how do you specify the
error code?  in the on closeStack call?


See the quit command in the dictionary.

quit 42

--
 Mark Wieder
 ahsoftw...@gmail.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





___
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: Keeping soft line break and using clipboard data

2020-12-04 Thread J. Landman Gay via use-livecode
LC uses ascii 11 as a soft break. If you can replace the character in the clipboard with ascii 
11 it would probably work.


On 12/4/20 6:18 AM, R.H. via use-livecode wrote:

I am using Windows 10, LiveCode Indy 9.6.1

Here is a question I tried to solve using clipBoardData, fullClipBoardData
and rawClipboardData. I am aware that there is nothing in Livecode that
represents soft line breaks, for example as a Unicode character (unless I
could not find anywhere). But I need to preserve such existing soft line
breaks since I need to copy text from a word processor into other programs
that support such soft returns.

For example, in most email apps the key-combination Shift-Return breaks the
line, but it is not a hard LFCR (depending on platform) and the paragraph
is not touched. It HTML it would be a " instead of .  But pasting
such text into LCS will only convert those soft returns to hard returns.

So, I thought to use the clipboard, getting the binary data of the text
file (UTF8-encoded including soft returns) with an URL(binfile:),
encoding them in one way or the other, and the user will then be able to
paste the copied text including those hidden soft returns into the target
application. In this way, I hoped to circumvent the LCS text representation.

Unfortunately, I did not get it to work one way or the other. Is it
possible at all? Did anybody ever had such a need and solved it?

Roland
___
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




--
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: Printing To Pdf Linux Rendering

2020-12-04 Thread J. Landman Gay via use-livecode
Back in the MetaCard days, I was told that problems like this were often 
caused by the printer driver. If there's an update, I'd install it.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On December 4, 2020 10:42:50 AM "Sean Cole \(Pi\) via use-livecode" 
 wrote:



Alas, I am still getting the same results with both duplicated and brand
new fields. Even in a whole new stack. I'm not getting very far with this.
What is making the text get so screwed up? Does anyone have any insight?

Thanks again, Richard.

Sean Cole
*Pi Digital *

On Fri, 4 Dec 2020 at 06:42, Pi Digital via use-livecode <
use-livecode@lists.runrev.com> wrote:


That’s a possibility. Interesting. I’ll give it a go when I’m more awake.
Thanks Richard

Sean Cole
Pi Digital


> On 4 Dec 2020, at 06:16, Richard Gaskin via use-livecode <
use-livecode@lists.runrev.com> wrote:
>
> Sean Cole wrote:
>> I've got a CentOS7 server that I am printing reports from as PDFs. No
>> matter which font or style I use I get occasional anomalies where
>> characters from words get placed over each other like a kerning issue
gone
>> mental.
>> Bad rendering:
>>
https://www.dropbox.com/s/v09vacw8x3873qh/Screenshot%202020-12-04%20at%2005.53.47.png?dl=0
>> Good rendering:
>>
https://www.dropbox.com/s/ehbdofm3nusgzyh/Screenshot%202020-12-04%20at%2005.54.08.png?dl=0
>> It's very random. Sometimes it's ok. the next report will come out bad.
>> There's no real pattern I can identify. I've been going at it for a few
>> days trying different font types and styles but they are all very hit
and
>> miss. I can't work out if it is Cairo, Cups or something else. From the
>> print card dialogue I get the same issue. I'm so tired and frustrated
from
>> trying to sort it out. Anyone have a fix/workaround/suggestion?
>
> It's been a while since I've seen that, but when I did it was with an
older stack brought forward through many versions to v9.
>
> IIRC I replaced the fields that showed the issue one by one until the
problem went away.
>
> --
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.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
___
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


Re: OT: Android, MotoG6, ./adb devices I can't to attach itself

2020-12-02 Thread J. Landman Gay via use-livecode

When that happens I do:
./adb kill-server
./adb start-server
./adb devices

If that doesn't work try sudo:


Sometimes you have to restart LC.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On December 1, 2020 4:55:38 PM Sannyasin Brahmanathaswami via use-livecode 
 wrote:



Even If I Upgrade to Sur. Even from terminal


cd /Users/brahmanathaswami/Library/Android/sdk/platform-tools


brahmanathaswami@Sannyasins-MacBook-Pro-2 platform-tools % ./adb devices

List of devices attached

Why doesn’t it show as devices -  USB debugging as connected ?

It should say

Z………. attached

But it does show

Location of Android development SDK root:

/Users/brahmanathaswami/Library/Android/sdk

JDK Path: /Library/JavaVirtualMachines/jdk1.8.0_221.jdk

Does I have it installed correctly?

Is there a “trick” to get it showing

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


Re: Chromebook apps?

2020-11-26 Thread J. Landman Gay via use-livecode
Android apps run in an emulator on Chromebooks. I forgot to mention that 
the emulator is only 32-bit so you have to build ARM 7 apps for Chromebook. 
I haven't needed to build an x86 app, my tests have all run okay on three 
different models.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On November 26, 2020 7:32:50 AM Richmond via use-livecode 
 wrote:



Is a Chromebook app an Android app?

Or, to put things another way . . .

I thought I'd be clever and design something for kids at my school to
use on their Android
phones and tablets . . .

Fantastic idea that foundered badly when I worked out that a lot of
ANdroid tablets ran on INTEL chips
so LiveCode builds for Android wouldn't run on them.

Sorry to be damp squish.

On 26.11.20 7:52, prothero--- via use-livecode wrote:

Folks:
My son is a 5’th grade teacher. He tells me that apps for elementary school 
learning must run on ChromeBooks to be used in elementary school. I just 
want to verify that this means I would be developing an Android app for a 
Chromebook.


I also wonder if there are minimal requirements for a Chromebook that will 
run Android apps. I’m in the “thinking about it” stage right now, but would 
like to hear about any experience or gotchas I need to be aware of for 
Chromebook apps.


Thanks,
Bill

William A. Prothero
Santa Barbara, CA. 93105
http://earthlearningsolutions.org/


___
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


Re: Chromebook apps?

2020-11-25 Thread J. Landman Gay via use-livecode
Right, for Chromebooks you'd develop an Android app. I've been testing two 
different client projects on Chromebooks. For the most part they run okay, 
depending on the hardware. One of my apps in particular runs beautifully in 
tablet mode, but if you rotate the screen to desktop mode it loses its 
window coordinates and draws incorrectly. That's probably my fault, since 
the app is locked to portrait orientation. In portrait mode, with 
fullscreenMode on, it looks great and behaves well. If you launch it in 
desktop mode it opens in a window the size of the original stack and works 
fine as long as you don't try to resize the window.



But appearance and behavior can vary depending on the Chromebook. I'm 
having pretty good luck with my Lenovo but my client's Asus sometimes 
doesn't draw the content quite right. I can't recall the details, something 
about color I think. I'd love it if LC could look at Chromebook support at 
some point. It's almost there already, and as you say, Chromebook support 
is almost mandatory if you are developing for the education market. In 
fact, with so many schools closed down and students working remotely, 
Chromebooks are in such high demand that they've become harder to find. 
They're very popular. Our market is college and university students and a 
lot of them use Chromebooks. When they ask, we tell them the app may run on 
their Chromebook but we can't provide support.



On a more personal note, I love my Chromebook. They're very fast (they wake 
from sleep before the lid is fully opened,) virtually immune to malware, 
lightweight, inexpensive, and extremely portable. They've come a long way 
from the time when they were basically just a big web browser.



--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On November 25, 2020 11:54:54 PM prothero--- via use-livecode 
 wrote:



Folks:
My son is a 5’th grade teacher. He tells me that apps for elementary school 
learning must run on ChromeBooks to be used in elementary school. I just 
want to verify that this means I would be developing an Android app for a 
Chromebook.


I also wonder if there are minimal requirements for a Chromebook that will 
run Android apps. I’m in the “thinking about it” stage right now, but would 
like to hear about any experience or gotchas I need to be aware of for 
Chromebook apps.


Thanks,
Bill

William A. Prothero
Santa Barbara, CA. 93105
http://earthlearningsolutions.org/


___
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


Re: Google and OpenSource apps

2020-11-23 Thread J. Landman Gay via use-livecode

On 11/23/20 11:59 AM, Richard Gaskin via use-livecode wrote:
The issue with deploying apps governed specifically by the Gnu Public License (GPL, which is 
used for LC Community distribution) has to do with Apple's limitation on the number of 
downloads per account.


That restriction is viewed as rendering Apple's ToS logically incompatible with the freedoms 
guaranteed in the GPL, which expressly require no limitations on usage. 



The restriction is only for the number of beta testers though. Is that enough to qualify for 
the restriction?


--
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: reading QR-code on Mac from an imported image

2020-11-23 Thread J. Landman Gay via use-livecode
Right, no idea. I've heard the barcode reader can read QR codes but that 
requires camera access and is for scanning external images. I've never 
heard of a utility that can read the binary content of an image to 
interpret a code.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On November 23, 2020 8:27:03 AM Klaus major-k via use-livecode 
 wrote:



No idea? Anyone?

Am 20.11.2020 um 19:16 schrieb Klaus major-k via use-livecode 
:


Hi all,

ist is possible to read the QR-code from an imported image
on the Mac? If yes, how?
The dictionary did not really enlighten me...

Thanks in advance!


Best

Klaus


--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
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


Re: Google and OpenSource apps

2020-11-23 Thread J. Landman Gay via use-livecode
With the caution that apps made from open source libraries usually can't 
charge money. It depends on the license. Libraries aren't the same as 
development IDEs.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On November 23, 2020 11:42:26 AM Klaus major-k via use-livecode 
 wrote:



Hi Jaque,

Am 23.11.2020 um 18:17 schrieb J. Landman Gay via use-livecode 
:


I don't know. But I see a lot of free apps in the Play Store that are based 
on open source libraries. The information might be buried in the developer 
term of service docs.


thank you, so the answer is probably yes. :-)


--
Jacqueline Landman Gay | jac...@hyperactivesw.com


Best

Klaus

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
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


Re: Google and OpenSource apps

2020-11-23 Thread J. Landman Gay via use-livecode
I don't know. But I see a lot of free apps in the Play Store that are based 
on open source libraries. The information might be buried in the developer 
term of service docs.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On November 23, 2020 8:27:21 AM Klaus major-k via use-livecode 
 wrote:



No idea? Anyone?

Am 21.11.2020 um 11:57 schrieb Klaus major-k via use-livecode 
:


Hi friends,

quick question:
Does Google allow apps that have been created with the Community Version of LC?

Apple does definitively not, as I know.


Best

Klaus


--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
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


Re: Big Sur bugs

2020-11-18 Thread J. Landman Gay via use-livecode

On 11/18/20 12:06 PM, Paul Dupuis via use-livecode wrote:
Has any experienced any problems playing back media (.mp3 audio files or .mp4 video) under 
macOS Big Sur?


I just ran into an issue where none of my media is playing (at all) in a LC9.6.1 built 
stand-alone under Big Sur.


I haven't built an app in Big Sur yet, but an app built in Mojave plays audio 
when run in Big Sur.

--
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: Suspend in iOS, or when is a mobile app running?

2020-11-18 Thread J. Landman Gay via use-livecode

That's good to know. Now all we need is an Android equivalent.

On 11/17/20 4:39 PM, Mark Smith wrote:
And just a reminder that, under iOS, you’ll have to register to receive a “ 
UIApplicationWillResignActiveNotification” message, and then write a handler to respond to that 
(PS only register once in your stack script — I learned the hard way). It’s documented under 
mergNotify in the dictionary (with credit to Elanor for pointing this out to me when my “on 
shutdownRequest” handlers were being ignored).


Jacque, I believe this is what you are looking for to be notified when you go into the 
background. I do some db cleanup at that time and it seems to work.



--
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: Suspend in iOS, or when is a mobile app running?

2020-11-17 Thread J. Landman Gay via use-livecode
Android has always acted like this and now that iOS apps run in the 
background like Android does, it behaves the same way. At least our 
problems are cross-platform now.


An app will stay in RAM until the user specifically quits or until the OS 
needs the memory. When that happens, the OS wipes the app and it 
effectively shuts down. We get no warning, except for a shutDown message. 
Android recommends we store the last state of the app and restore it when 
it starts up again.


I'd love to get a message when the app goes into the background but so far 
there is none. Storing every little change as it happens seems tedious and 
wasteful. I haven't had much luck with storing changes on shutdown but it's 
worth a try, it's been a while since I did it.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On November 17, 2020 9:27:50 AM Graham Samuel via use-livecode 
 wrote:



Sorry if this is documented somewhere but I can’t find it.

On desktop platforms, LC gives us “suspend” which is fired when the app 
goes into the background. I seem to be having some problems with iOS, in 
that when the screen locks (triggered by  user action or a time limit), my 
app seems to stop getting messages from the OS, so is in some sense 
suspended. This seems to call for something like “suspend” for mobiles. 
Does such a message exist?


Another thing that happens with iOS apps that use Location Services is that 
the user is sometimes asked via a popu-up on the screen of the device 
whether the app should be allowed to use these services when it’s not 
running. I don’t know what triggers these user messages, nor am exactly 
certain what ‘not running’ means - presumably if the app has been properly 
quit, that’s something other than ‘not running’. In the Standalone Settings 
for mobile, one can set Location Services as being a requirement, but there 
doesn’t seem to be a setting corresponding to this user choice.


Has anyone a clear understanding of all this? I would love to see an 
explanation.


TIA

Graham
___
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


Re: Standardizing codepoints

2020-11-15 Thread J. Landman Gay via use-livecode
See the normalizeText entry in the dictionary, I think that might be what 
you mean.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On November 15, 2020 4:17:14 AM scott--- via use-livecode 
 wrote:


I’m a little over my head in this area so I may not be describing this 
quite right…
Some unicode glyphs seem to be describable with different (arrangements of) 
codepoints.  Is it possible to coerce the glyph to be described in a 
“standard” way?


--
Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   https://elementarysoftware.com/
email sc...@elementarysoftware.com
booth1-360-734-4701
--








___
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


Re: How do I shorten this script? Use 'repeat with'?

2020-11-13 Thread J. Landman Gay via use-livecode

Here's another way:

  set the loc of grc "k1" to the loc of this cd
  repeat with x = 2 to 4
set the topleft of grc ("K" & x) to the topright of grc ("k" & x-1)
set the left of grc ("k" & x) to the left of grc ("k" & x) - 1
  end repeat

I find it easier to move the graphic one pixel in a second line of script than to mess around 
with all those "item 1 of ..."s.



On 11/12/20 7:48 AM, William de Smet via use-livecode wrote:

Hi there,

Another question today.
How do I shorten this script?

set the loc of grc "k1" to cardWidth/2,cardHeight/2
set the topleft of grc "k2" to (item 1 of topright of grc "k1" -1, item 2
of topright of grc "k1")
set the topleft of grc "k3" to (item 1 of topright of grc "k2" -1, item 2
of topright of grc "k2")
set the topleft of grc "k4" to (item 1 of topright of grc "k3" -1, item 2
of topright of grc "k3")
set the topleft of grc "k5" to (item 1 of topright of grc "k4" -1, item 2
of topright of grc "k4")


I know I should use 'repeat with' but I am stuck.
repeat with x = 2 to 4
put "k" & x into tName
set the topleft of grc tName to (item 1 of topright of. grc? , item
2 of topright of grc ...?)
end repeat


Any help is appreciated!



greetings,

William
___
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




--
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: Best way to add an image to an oval graphic?

2020-11-11 Thread J. Landman Gay via use-livecode
Patterns are drawn from the top left so you'd need to create an image with 
the same dimensions as the oval with its content already centered. This 
will only work if the oval never changes its size.


Another way is to place the image behind the oval graphic and group them.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On November 11, 2020 10:22:38 AM William de Smet via use-livecode 
 wrote:



Hi Graig,

I think I understand it a bit better now.
The image I used has different dimensions than the graphic oval.
See screenshot: https://ibb.co/0tXkLHy

I could scale the image down to the same size (width) as the oval graphic
but then I don;t get the center of the image.
Because it is a pattern?
Is it possible to get the center of the image in the oval graphic?

LC 9.6.1



greetings,


William




Op wo 11 nov. 2020 om 15:51 schreef Craig newman via use-livecode <
use-livecode@lists.runrev.com>:


Hi.

I made an oval graphic and set the backGroundPattern to the ID of a random
image I imported to the card. It filled the grc perfectly. Do you have a
screenshot of what you are seeing?

Craig

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On
Behalf
Of William de Smet via use-livecode
Sent: Wednesday, November 11, 2020 6:38 AM
To: How to use LiveCode 
Cc: William de Smet 
Subject: Best way to add an image to an oval graphic?

Hi there,

When I set the BackgroundPattern of an graphic oval to the image ID, the
image is not centered inside the oval graphic.
What is a better way to add an image to a graphic oval (and center it?


greetings,

William
___
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





___
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: Windows startup issue

2020-11-10 Thread J. Landman Gay via use-livecode
I just saw your execution error image, I haven't seen an empty dialog 
before. Did you include a prompt?


I'll try a test tomorrow.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On November 11, 2020 12:55:22 AM "J. Landman Gay via use-livecode" 
 wrote:



Sorry, I meant execution errors. You're supposed to read my mind. I keep
telling my husband that but he doesn't always get it either. ;)

I've used the built-in error reporting mechanism in the past and it worked
well; I usually choose the email option and it works on both deaktop and
mobile. I wasn't aware it was broken. I think it would be difficult to
include that automatically since it requires some input, at least an email
address and ideally a prompt. I suppose a default file could be generated
but the user wouldn't know it unless they were notified.


Lately I've been catching the errorDialog message and handling it myself.
But thinking back to the built-in method, I think it did include the
definitions. It's been a while since we got one of those, but I vaguely
recall reading an email and understanding the problem without needing to
look up any numbers. In that case we just need to include error handling in
standalone settings, which apparently adds the definitions to the app.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On November 10, 2020 8:34:57 PM Richard Gaskin via use-livecode
 wrote:


Compiler errors or execution errors?





___
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


Re: Windows startup issue

2020-11-10 Thread J. Landman Gay via use-livecode
Sorry, I meant execution errors. You're supposed to read my mind. I keep 
telling my husband that but he doesn't always get it either. ;)


I've used the built-in error reporting mechanism in the past and it worked 
well; I usually choose the email option and it works on both deaktop and 
mobile. I wasn't aware it was broken. I think it would be difficult to 
include that automatically since it requires some input, at least an email 
address and ideally a prompt. I suppose a default file could be generated 
but the user wouldn't know it unless they were notified.



Lately I've been catching the errorDialog message and handling it myself. 
But thinking back to the built-in method, I think it did include the 
definitions. It's been a while since we got one of those, but I vaguely 
recall reading an email and understanding the problem without needing to 
look up any numbers. In that case we just need to include error handling in 
standalone settings, which apparently adds the definitions to the app.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On November 10, 2020 8:34:57 PM Richard Gaskin via use-livecode 
 wrote:


Compiler errors or execution errors?





___
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: Windows startup issue

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

On 11/10/20 3:28 PM, Richard Gaskin via use-livecode wrote:
But at the time it seemed to me the tool was for edge cases where one might encounter raw error 
data with no UI.  It never occurred to me to ship an application without error handling, and 
back then I'd never used LC's so I just assumed it was at least as good as my own.



We shouldn't confuse our own error handling with compiler errors. I include extensive logging 
and error reporting when "the result" or something similar in my scripts fail. As developers, 
it's our job to do that.


The cryptic numbers only occur when a compiler error happens. A well-tested stack won't have 
many of those by the time it's distributed. The one in question here is an odd one-off which 
only happened for one user.


So it sounds like you're asking LC to translate its compiler errors in standalones. These are 
infrequent enough for me that the numbers aren't much of a concern; they largely happen during 
development and those are translated for us. But Paul's suggestion that standalones include the 
entire error list isn't a bad one, though I'd like it to be optional. Users don't care what the 
descriptions are and I can look them up, but some might want those included.



--
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: Windows startup issue

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

On 11/10/20 1:14 AM, Richard Gaskin via use-livecode wrote:

J. Landman Gay wrote:

 > On 11/9/20 3:54 PM, Richard Gaskin via use-livecode wrote:
 >> And WTH happened to LC's error reporting dialog?
 >
 > Standalones have always reported this way on both desktop and mobile.
 > It is up to the developer to include the translated references if
 > they want to see those. Generally I don't bother, I provide the
 > optional built-in ability to send email to support or save a file.
 > I can translate the numbers myself since the meanings usually mean
 > nothing to the end-user anyway.

I've been using my own error-reporting for so long I can't recall seeing the default standalone 
handling.


I have made a couple of quickies where I just used LC's error reporting, but clumsy as that 
design is at least the output from the "Send Report" button is more useful than the raw list of 
triplet integers. >

How has such ungraceful error handling become acceptable?

Why is the least useful thing the easiest for new developers to do?

Shouldn't it be easy for LC devs to deliver a great application experience?



I can't remember a time when it *didn't* report the triplets outside of the IDE. That's why you 
and I wrote the Error Lookup stack. ;)


--
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: Windows startup issue

2020-11-09 Thread J. Landman Gay via use-livecode
That should work, I don't see anything in those three lines that would fail -- except maybe if 
"the fontnames" couldn't be retrieved on that machine. It almost looks like the engine thinks 
"the fontnames" is a custom function since it's reporting it can't find the handler.


I'm not sure how you'd fix that. I suppose you could wrap the clause in a "try" structure and 
if it errors, assume the font isn't there.



On 11/9/20 4:10 PM, Marty Knapp via use-livecode wrote:

The errors show up in a dialog window.

The section of code referenced is just checking the status a a custom font. On 
Windows we install the font with an Inno installer (and on Mac we just start 
using an embedded font). Here's my code with the line numbers added. 67 being 
referenced several times in the error:

67) if "MyCustomeFontName" is in the fontNames then
68)   put "installed" into tFontStatus
69) else put "loaded" into tFontStatus

---
Marty


On Nov 9, 2020, at 1:54 PM, Richard Gaskin via use-livecode 
 wrote:

Marty Knapp wrote:


I have a customer who is having a weird issue with a Windows app built in LC 
(9.6.1). It worked fine for about a month, it works fine here for me all the 
time and it works fine for all our other customers.
On startup is begins to launch then gets a bunch of errors:
269,76,1
262,67,1
252,67,1
241,67,1
353,0,0
573,68,1
253,68,1
241,67,1
353,0,0


Where do those appear?

And WTH happened to LC's error reporting dialog?

I see more and more error info reports like this in recent years. Presenting 
anything like this to either devs or end-users is a horrible experience.

We can do better.

--
Richard Gaskin
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web

ambassa...@fourthworld.comhttp://www.FourthWorld.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




--
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: Windows startup issue

2020-11-09 Thread J. Landman Gay via use-livecode

On 11/9/20 3:54 PM, Richard Gaskin via use-livecode wrote:

Where do those appear?

And WTH happened to LC's error reporting dialog?


Standalones have always reported this way on both desktop and mobile. It is up to the developer 
to include the translated references if they want to see those. Generally I don't bother, I 
provide the optional built-in ability to send email to support or save a file. I can translate 
the numbers myself since the meanings usually mean nothing to the end-user anyway.


The IDE does still translate for us.

--
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: Windows startup issue

2020-11-09 Thread J. Landman Gay via use-livecode
Right, the first number is the error code and the second is the line number in the script. It 
does look like a permissions error:


269 Operators is: error in right operand
262 import: can't open file, mask file or display
252 if-then: error in condition expression
241 Handler: error in statement
353 Object Name:
573 Handler: can't find handler
253 if-then: error in statement
241 Handler: error in statement
353 Object Name:

The top line is the one that is usually the main error, the second line in this case indicates 
a file couldn't be opened. The remainder of the lines indicate the message path that led to the 
error, in reverse order.


The list was generated by a free utility called "LiveCode Lookup Errors" which you can find in 
Sample Stacks in LC's tool bar.



On 11/9/20 3:27 PM, Paul Dupuis via use-livecode wrote:
The first things is to determine what the error codes mean. I forget off teh top of my head, 
but I things of the first 2 numbers one is a line number and the other an error code?


Hopefully someone can chime in who knows for sure. Knowing the errors will tell you more about 
what the likely cause may be.


I suspect it is some sort of permissions issue. In all most all instances where we have run 
into a weird startup issue with just one customer, it has turned out to be permissions related. 
For example, does you application create any preferences or license files or temporary files? 
Or try to save anything to disk behind the scenes (i.e. not a user driven file save dialog)? If 
so, chances are the place you are trying to write to is read-only.


It could be many other things, but this has been the most common issue like 
this we've run into.


On 11/9/2020 4:10 PM, Marty Knapp via use-livecode wrote:
I have a customer who is having a weird issue with a Windows app built in LC (9.6.1). It 
worked fine for about a month, it works fine here for me all the time and it works fine for 
all our other customers.


On startup is begins to launch then gets a bunch of errors:

269,76,1
262,67,1
252,67,1
241,67,1
353,0,0
573,68,1
253,68,1
241,67,1
353,0,0

But it only happens for this *one* person. They have the latest version of Windows 10, have 
tried multiple installs and uninstalls, turned off virus software, etc. I have downloaded 
from the same link I've sent him, installed and it runs fine for me and all our other customers.


I know it's along shot, but has anybody seen anything like this or offer any 
advice?
---
Marty
___
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



--
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: New Google PlayStore Console

2020-11-09 Thread J. Landman Gay via use-livecode
I *think* I was using the "new and improved" console when I submitted but I can't be positive. 
I did switch over before the deadline but I did some hopping back and forth and can't quite 
remember which I was using when I finally hit the Submit button. I don't care for the change, 
to be honest. I thought they were unimprovements.


On 11/9/20 1:48 PM, Ralph DiMola via use-livecode wrote:

I submitted a week earlier with the same widgets/externals using the
"classic" console and only received the first one. This seems to be
connected to the "new and improved" console.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of J. Landman Gay via use-livecode
Sent: Monday, November 09, 2020 12:45 PM
To: How to use LiveCode
Cc: J. Landman Gay
Subject: RE: New Google PlayStore Console

I've never seen the last two, but that might imply you're using widgets or
other extensions I've never used. The last submission I made about a month
ago only got the first one.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software |
http://www.hyperactivesw.com On November 9, 2020 8:12:57 AM Ralph DiMola via
use-livecode  wrote:


No it isn't. Apparently no one on the list has any input on the
implications of this is. I will have to take this to the mother ship
and file a QCC report.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On
Behalf Of Riko Abadi via use-livecode
Sent: Monday, November 09, 2020 7:17 AM
To: How to use LiveCode
Cc: Riko Abadi
Subject: Re: New Google PlayStore Console

Hai Ralph,

whether this problem has been resolved?

.

Pada tanggal Jum, 6 Nov 2020 00.46, Ralph DiMola via use-livecode <
use-livecode@lists.runrev.com> menulis:


I received these 3 warnings when uploading APKs using the new Google
Play Console. The first one I've been seeing for a while. Anyone know
about the last 2? I assume the second one is LCs use of the JVM.

Warning
This APK results in unused code and resources being sent to users.
Your app could be smaller if you used the Android App Bundle. By not
optimizing your app for device configurations, your app is larger to
download and install on users' devices than it needs to be. Larger
apps see lower install success rates and take up storage on users'

devices.


Warning
This APK contains Java/Kotlin code, which might be obfuscated. We
recommend you upload a deobfuscation file to make your crashes and
ANRs easier to analyze and debug. Learn More

Warning
This APK contains native code, and you've not uploaded debug symbols.
We recommend you upload a symbol file to make your crashes and ANRs
easier to analyze and debug. Learn More

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net




--
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: New Google PlayStore Console

2020-11-09 Thread J. Landman Gay via use-livecode
I've never seen the last two, but that might imply you're using widgets or 
other extensions I've never used. The last submission I made about a month 
ago only got the first one.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On November 9, 2020 8:12:57 AM Ralph DiMola via use-livecode 
 wrote:



No it isn't. Apparently no one on the list has any input on the implications
of this is. I will have to take this to the mother ship and file a QCC
report.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Riko Abadi via use-livecode
Sent: Monday, November 09, 2020 7:17 AM
To: How to use LiveCode
Cc: Riko Abadi
Subject: Re: New Google PlayStore Console

Hai Ralph,

whether this problem has been resolved?

.

Pada tanggal Jum, 6 Nov 2020 00.46, Ralph DiMola via use-livecode <
use-livecode@lists.runrev.com> menulis:


I received these 3 warnings when uploading APKs using the new Google
Play Console. The first one I've been seeing for a while. Anyone know
about the last 2? I assume the second one is LCs use of the JVM.

Warning
This APK results in unused code and resources being sent to users.
Your app could be smaller if you used the Android App Bundle. By not
optimizing your app for device configurations, your app is larger to
download and install on users' devices than it needs to be. Larger
apps see lower install success rates and take up storage on users'

devices.


Warning
This APK contains Java/Kotlin code, which might be obfuscated. We
recommend you upload a deobfuscation file to make your crashes and
ANRs easier to analyze and debug. Learn More

Warning
This APK contains native code, and you've not uploaded debug symbols.
We recommend you upload a symbol file to make your crashes and ANRs
easier to analyze and debug. Learn More

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


___
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





___
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: Segmented Control Widget

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

On 11/5/20 1:47 AM, Terence Heaford via use-livecode wrote:

I have been messing about with the Segmented Control Widget and have been 
trying to apply a tooltip.

I noted that the tooltip can only be applied to the whole control, it does not 
appear possible to have a tooltip for each segment.

Is this possible and if so could someone please advise.


I've done this with a custom control group, it should work with a widget too. Calculate the 
rectangles (or at least the left and right edges) of each segment and in a mouseEnter handler 
compare the mouseLoc to the rectangles to see which one it's in. Then set the tooltip to the 
appropriate string. You can also add a mouseMove handler to do the same thing if you want to 
change tooltips as the mouseLoc changes inside the widget.


If the updated tooltip doesn't display reliably, set the tooltip to empty, wait a millisecond 
or so, and then set it to the new string.


--
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: Updated NotarizeHelperStack now with entitlements support

2020-11-02 Thread J. Landman Gay via use-livecode
I concur, it's an amazing tool. Thanks for making Apple useable for us mere 
mortals.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On November 2, 2020 5:52:57 PM scott--- via use-livecode 
 wrote:



Awesome. That stack is SO helpful! Thank you.
--
Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   https://elementarysoftware.com/
email sc...@elementarysoftware.com
booth1-360-734-4701
--

On Nov 2, 2020, at 8:37 AM, matthias rebbe via use-livecode 
 wrote:


Hi,

just a quick note that i've upgraded the NotarizeHelperStack in the 
Livecode lesson

https://lessons.livecode.com/m/4071/l/1122100-codesigning-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore

The stack now allows to add entitlements for code signing an app.
And i added Xcode 11 support for fetching the ASC provider.

Hope this is of any help for the one or other.

Regards,

Matthias

-
Matthias Rebbe
Life Is Too Short For Boring Code


___
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


Re: IOS Screen resizing /EXACT FIT not working as before

2020-11-02 Thread J. Landman Gay via use-livecode
Try fullscreenMode "showAll" or "noBorder". I generally use showAll. There will be black bars 
at the sides or top/bottom on some devices depending on which mode you choose but the advantage 
is that it retains the stack ratio. At least one dimension will always fit.


You can obscure the black bars by setting the backcolor of the stack to a matching or 
complimentary color. The unused areas will fill with that color instead of showing black.


On 11/2/20 1:30 PM, Lagi Pittas via use-livecode wrote:

Hi,

On an IOS app we have been using the

setfullscreenmode of stack "XYZ" to exactfit.

Although it isn't perfect in the sense it doesn't try to use the "notch" it
has been working well.

We have compiled with the latest livecode stable and the latest XCODE and
now the there is
a greater margin on either side and the top (especially on the iphone plus)

We did notice this happened randomly and very very rarely on the previous
version of xcode and the previous stable livecode but it
wasn't a "HARD" error and not on everybody's IPHONE 8 plus

Anybody have any ideas the best way to make the App resize well on all the
new ones?

The dimensions of the stack are 414 by 736 (the logical resolution of the
iphone 8 plus) .

To date it has scaled pretty well down and up but now on the iphone we have
more of it is not scaling up properly.

Any suggestions for making this work SIMPLY ie we don't need it to bother
too much about the notch  as long as it uses as much
real estate for the different sizes. The App looked fine on the X as well
even if it didn't go right down to the bottom.

I am not one to follow the latesdFads ghis is a business program so there
is no dark mode or other stupid ideas to make
people upgrade for no reason other than its different.

Any ideas or help appreciated.


Lagi




--
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: Is the DateFormat read only?

2020-10-30 Thread J. Landman Gay via use-livecode
Good point. For our situation, hours were enough so I guess I ignored the rest (it was a long 
time ago and the code is old.)


On 10/30/20 3:24 PM, Alex Tweedly via use-livecode wrote:

But that will only work for those time zones whose variation from UTC is an 
exact number of hours.

the internet date has 4 digits so that it can handle hour and minute variations 
- you could change

   subtract (char 1 to -3 of last word of the internet date) from item 4 of 
tTime

to

   put the last word of the internet time into tmp
   subtract (char 1 to -3 of tmp) from item 4 of tTime
   subtract (char 1 of tmp & char -2 to -1 of tmp) ) from item 5 of tTime

and then you would be handling all cases correctly.

Alex.

On 30/10/2020 20:06, J. Landman Gay via use-livecode wrote:

On 10/29/20 4:33 PM, Graham Samuel via use-livecode wrote:
The only souci with this format is that it gives the month in alpha, presumably according to 
the nationality of the OS. But it’s easy to get the numeric month in other ways. Still, it 
is just a little bit fiddly to create a full UTC date of the format:


-MM-DDThh:mm:ssTZD


Here's something I use:

  put the seconds into tTime
  convert tTime to dateitems
  subtract (char 1 to -3 of last word of the internet date) from item 4 of tTime
  convert tTime to dateitems
  set the numberformat to "00"
  put item 1 of tTime &"-"& (item 2 of tTime)+0 &"-"& (item 3 of tTime)+0 & "T" & (item 4 of 
tTime)+0 &":"& \

    (item 5 of tTime)+0 &":"& (item 6 of tTime)+0 & "Z" into tTimestamp



___
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



--
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: Is the DateFormat read only?

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

On 10/29/20 4:33 PM, Graham Samuel via use-livecode wrote:

The only souci with this format is that it gives the month in alpha, presumably 
according to the nationality of the OS. But it’s easy to get the numeric month 
in other ways. Still, it is just a little bit fiddly to create a full UTC date 
of the format:

-MM-DDThh:mm:ssTZD


Here's something I use:

  put the seconds into tTime
  convert tTime to dateitems
  subtract (char 1 to -3 of last word of the internet date) from item 4 of tTime
  convert tTime to dateitems
  set the numberformat to "00"
  put item 1 of tTime &"-"& (item 2 of tTime)+0 &"-"& (item 3 of tTime)+0 & "T" & (item 4 of 
tTime)+0 &":"& \

(item 5 of tTime)+0 &":"& (item 6 of tTime)+0 & "Z" into tTimestamp

--
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: Is the DateFormat read only?

2020-10-29 Thread J. Landman Gay via use-livecode
You can get the time zone, or at least the zone offset, by using "the 
internet date".


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 29, 2020 8:21:46 AM Graham Samuel via use-livecode 
 wrote:


I understand it, but the Dictionary is misleading and in one case actually 
wrong: when it says the ’time’ form gives the seconds - it doesn’t. You 
need to use the ‘long time’, at least so it seems to me. I have submitted a 
bug report.


I also thought that I could use the ToUniversalTime function, but that 
assumes you already know the time zone. Although LC has a Time Zone 
library, I haven’t found any documentation explaining how an app can find 
out which Time Zone it’s actually in. In fact my app doesn’t care that 
much, so will stick to UTC.


The documentation around all this needs a bit of tidying up, IMHO.

Graham

On 29 Oct 2020, at 12:07, Tore Nilsen via use-livecode 
 wrote:


If you only use a date and  convert it, dateItems will assume the time to 
be midnight on that particular date.


Tore

29. okt. 2020 kl. 12:04 skrev Graham Samuel via use-livecode 
:


Just FYI, I think the dictionary is wrong or misleading in respect of what 
the dateItems does. If you script this in the LC Message Box:


put the date into t1
convert t1 to dateItems
put t1

You get, e.g.
2020,10,29,0,0,0,5


but if you script

put the english time into t1
convert t1 to dateItems
put t1

You get e.g.
2020,10,29,11,40,0,5

i.e if you specify the date, you only get the date; but if you specify the 
time, you get the date thrown in. I could not deduce this from the 
Dictionary, but maybe I am just poor at reading what it says.


Graham

On 29 Oct 2020, at 09:29, Graham Samuel via use-livecode 
 wrote:


Thanks Tore - I had forgotten the existence of dateItems. That of course 
will do the trick. BTW I was trying to create dates in standard UTC format, 
and now I can.


Graham

On 28 Oct 2020, at 23:18, Tore Nilsen via use-livecode 
 wrote:


You can convert any given date to dateItems. Then you can use dateItems to 
present the date in any format you like. A date converted to dateItems will 
give you the following list of items:


the year
the month number
the day of the month
the hour in 24-hour time
the minute
the second
the numeric day of the week where Sunday is day 1, Monday is day 2, and so 
forth

All according to the Dictionary.

To be sure that any valid date format is recognized as a date when you read 
in the date you will like to convert, it is best to ask for the system date 
or set the useSystemDate to true, as this will make all valid date formats 
convert to dateItems.


Best regards
Tore Nilsen
28. okt. 2020 kl. 22:58 skrev Graham Samuel via use-livecode 
:


A quick test seems to show that the DateFormat can’t be changed by a ‘set’ 
command.


How then can I force a date to be in a given format? I’m really thinking of 
the difference between US and European dates, i.e


d/m/y versus m/d/y

Obviously for some types of use, an LC program should be able to force the 
format for consistency’s sake, regardless of where in the world it’s being run.


Can it be done?

Graham
___
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


___
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





___
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: How to divide card with/in 3 vertical lines?

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

On 10/28/20 1:04 PM, William de Smet via use-livecode wrote:

I need 3 vertical lines in my iOS app with equal distance and from top to
bottom.


  put the width of this cd/4 into tHLoc
  put the height of this cd/2 into tVLoc
  set the loc of grc "line1" to tHLoc,tVLoc
  set the loc of grc "line2" to tHLoc * 2,tVLoc
  set the loc of grc "line3" to tHLoc * 3,tVLoc

This works best if the width of the card is evenly divisible by 4. Fractional locations don't 
always work, the engine will just round them to the nearest pixel. I also tried div instead of 
"/" which on my test stack worked a little better.


--
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: New to Get a Copy of Scaled Down Version of an Image

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

Try changing this line:

  put tImageData["image"] into image "currentpuzzle"

to this:

  set the imageData of image "currentpuzzle" to tImageData["image"]

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 28, 2020 6:06:39 AM Sannyasin Brahmanathaswami via use-livecode 
 wrote:



Take for example

[command] resizeToWidth tImage, 400

on resizeToWidth pImage,pSize
  local tOrigImgWidth, tOrigImgHeight, tRatio, tNewWidth, tNewHeight
  set the itemdel to "x"
  put item 1 of sCurrentGraphicRect into tOrigImgWidth
  put item 2 of sCurrentGraphicRect into tOrigImgHeight

  if tOrigImgWidth is 0 then exit resizeToWidth

  put pSize/tOrigImgWidth into tRatio
  put (tOrigImgHeight * tRatio) into tNewHeight
  put (tOrigImgWidth * tRatio) into  tNewWidth

  set the rect of  pImage to 0,0,tNewWidth,tNewHeight

end resizeToWidth

How do I get a copy, with the image scaled down, which is visible on screen?

[coded]
 if (the width of tImage > the heigth of tImage )  then
 # portrait
 resizeToWidth tImage, 400
  else
 # landscape
 resizeToHeigth tImage, 400
  end if

  # now we set the img to the img "currentpuzzle"
  set the name of the last image to "currentpuzzle"

  # and copy the data, at 400px wide
  put the rect of the last image into tImageData["rect"]
  put the imageData of the last image into tImageData["image"]

  put tImageData["image"] into image "currentpuzzle"


  BUT the full scaled copy of the image "currentpuzzle" comes into view. I 
  wanted to get a scaled down version?


How do we implement this, from the dictionary


The imageData, unlike the contents of the image 
container, is based on the picture as it's presented on the 
screen, not stored in the image object. 
This means that if you resize an image, the content of the 
image does not change, but its imageData does. If you create an 
image and then reduce its size, its imageData reflects the 
scaled-down, displayed image, not the original full-scale 
image. If you create a second image and set its 
imageData property to the imageData of the original 
image, resizing the first image back to the 
original dimensions displays the original image at full 
resolution, but resizing the second image does not, because 
setting its imageData transferred only the scaled-down version of the original.



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


Re: DG outcomes on desktop vs mobile

2020-10-23 Thread J. Landman Gay via use-livecode
Well it's about time. All the rest of us have felt pretty dumb on multiple 
occasions and you were the only outlier.  ;)



But seriously, mobile apps are their own kind of animal. There's a learning 
curve. And each OS has its own idiosyncrasies.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 23, 2020 9:04:45 PM Phil Davis via use-livecode 
 wrote:



Well, I'm feeling pretty dumb about now.




___
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: DG outcomes on desktop vs mobile

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

What is the path you use to get the files?

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 23, 2020 12:26:34 PM Phil Davis via use-livecode 
 wrote:



That's a good question. On desktop, the array variable is full of data.
On the iPad it's apparently empty. I'll drill down further and see
what's going on.

Thanks for the idea.
Phil


On 10/23/20 1:03 AM, JeeJeeStudio via use-livecode wrote:

What do you see when you answer the data you set the dgdata to? Does it
show the values?

Op vr 23 okt. 2020 08:44 schreef Phil Davis via use-livecode <
use-livecode@lists.runrev.com>:


I'm building an iPad app that reads a bunch of files into an array and
then sets the dgData of a form DG to that array. The array is
well-formed for DG use. After setting the dgData of the DG, the result
is empty. Only one problem: the DG now contains no data. (I also tried
setting the dgText of the DG to a flat version of the same data and got
the same outcome.)

I can then create another array from custom property data and set the
dgData of the same form DG to that array and it works.

On the desktop, however, the same DG loading process never fails.

The data being loaded is all text - nothing esoteric.

Does anyone have any ideas how I can find & fix the problem(s)? Or have
you run into this before?

Thank you -
Phil Davis

--
Phil Davis
503-307-4363


___
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



--
Phil Davis
503-307-4363


___
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


Re: Textsize of label of copied btn changes

2020-10-18 Thread J. Landman Gay via use-livecode
If the text properties in the property inspector are italic, they are 
inheriting from another control with a lower layer, or inheriting from the 
IDE itself. If the property is not italic, it's been set specifically on 
the control.


Regardless, there will always be a number in the text size.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 18, 2020 5:15:48 PM William Prothero via use-livecode 
 wrote:



Richard:
I found that when I created a button, the textsize property had not been 
set, even though the IDE showed it to be 13. I then went to the IDE to 
click the size up to `4, then back down to 13 and then, when I did:

put the texsize of btn “mybutton”, it showed the textsize correctly.

It’s just one of those frustrating mysteries one encounters. The copied btn 
textsize was probably picking up the textsize from the fields that I had 
already imported.


I’d have to call it a bug, I guess??

Best,
Bill

William A. Prothero
https://earthlearningsolutions.org

On Oct 13, 2020, at 10:59 AM, Richard Gaskin via use-livecode 
 wrote:


William Prothero wrote:

> I am copying a button from one card to another. The font size of the
> label changes from that of the original to a large font and I can’t
> figure out how to change the textsize of the label. I keep getting an
> error.

set the textSize of btn "SoAndSo" to 14

The curious part is that it changed when you pasted it.  If you have a 
textSize specified for the card it came from but not the card it was pasted 
in, that would govern all controls that do not have their own testSize 
property explicitly set.


--
Richard Gaskin
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web

ambassa...@fourthworld.comhttp://www.FourthWorld.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



___
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


Re: Odd data in message box

2020-10-18 Thread J. Landman Gay via use-livecode
When you build a standalone there's an option to report errors in an email 
or a file. The purpose is to allow users to send error info to the 
developer. These are raw error messages like Dan saw and are of no use to 
the user, so translating them makes no sense.


But you're right that new users probably don't have an errorDialog handler. 
I've seen error lists appear in the message box too, but I do have that 
handler in the stack script.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 18, 2020 11:45:01 AM Richard Gaskin via use-livecode 
 wrote:



True, but what would anyone go out of their way to write an error
handler that provides less useful information than what LC provides if
left alone?

And some of the error info I see shared in the forums is from newer
users, who seem unlikely to have ventured into the relatively arcane
world of custom error processing.

I hope I simply misunderstand what I've been seeing, that perhaps there
isn't something broken in recent versions of the IDE's error handling.

In Dan's message from yesterday he wrote:

  1. Why didn't the debugger throw an error?  Instead, it put this error
 chunk in the message box?

@Dan: Do you have a custom errorDialog handler in your message path?

--
 Richard Gaskin
 Fourth World Systems



J. Landman Gay wrote:

If there's an errorDialog handler, errors bypass the IDE. That's one way it
could happen.

--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 17, 2020 4:06:03 PM Richard Gaskin via use-livecode
 wrote:


J. Landman Gay wrote:

On 10/17/20 12:13 PM, Dan Friedman via use-livecode wrote:

Where did Jacque get that list of codes?


 From a plugin Richard and I wrote some years ago. It dynamically loads the
 error list based on
the version of LC you're using. You can look up individual codes, or paste
in a list of errors
which is what I did with your report.


Tools like that can be useful at runtime to help fill out logs and such.

But I've been seeing a surprising number of conversations here and in
the forums suggesting that people are seeing raw error info in the IDE.

If that's true, what broke with the IDE's more guided error handling?

--
 Richard Gaskin



___
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


Re: Odd data in message box

2020-10-17 Thread J. Landman Gay via use-livecode
If there's an errorDialog handler, errors bypass the IDE. That's one way it 
could happen.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 17, 2020 4:06:03 PM Richard Gaskin via use-livecode 
 wrote:



J. Landman Gay wrote:

On 10/17/20 12:13 PM, Dan Friedman via use-livecode wrote:

Where did Jacque get that list of codes?


 From a plugin Richard and I wrote some years ago. It dynamically loads the 
 error list based on
the version of LC you're using. You can look up individual codes, or paste 
in a list of errors

which is what I did with your report.


Tools like that can be useful at runtime to help fill out logs and such.

But I've been seeing a surprising number of conversations here and in
the forums suggesting that people are seeing raw error info in the IDE.

If that's true, what broke with the IDE's more guided error handling?

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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





___
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: Odd data in message box

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

On 10/17/20 12:13 PM, Dan Friedman via use-livecode wrote:

Where did Jacque get that list of codes?


From a plugin Richard and I wrote some years ago. It dynamically loads the error list based on 
the version of LC you're using. You can look up individual codes, or paste in a list of errors 
which is what I did with your report.


You can get the plugin from Sample Stacks in the LC toolbar; search for "LiveCode Error 
Lookup". Or in your browser here: 



--
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: Odd data in message box

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

On 10/16/20 10:46 AM, Dan Friedman via use-livecode wrote:


There is no problem with this function, and it's producing the correct time.   
However, when it's all said and done, I get this in the message box:

394,2185,1
465,2185,1
253,2185,1
241,2181,1,convertToLocalTime
353,0,0,stack "/Users/Dan1/Desktop/Ignite/MY App/App/main.livecode"
219,2130,9,convertToLocalTime
465,2130,9
253,2130,9
241,2129,1,convertKevinDate
353,0,0,stack "/Users/ Dan1/Desktop/Ignite/MY App/App/main.livecode"
219,38,41,convertKevinDate
119,38,41
118,38,41
118,38,41
465,38,41
241,38,1,FillInData
353,0,0,button id 1410 of card id 1406 of stack "Data Grid Templates 1571787360744" of 
stack "/Users/Dan1/Desktop/Ignite/MY App/App/main.livecode"
675,3536,1,FillInData
253,3536,1
253,3536,1
490,3536,1
253,3536,1


Here's a translation of the first few lines of the error codes (down through 
fillInData):

394 Operators +: error in left operand
465 put: error in expression
253 if-then: error in statement
241 Handler: error in statement
353 Object Name:
219 Function: error in function handler
465 put: error in expression
253 if-then: error in statement
241 Handler: error in statement
353 Object Name:
219 Function: error in function handler
119 Operators &: error in right operand
118 Operators &: error in left operand
118 Operators &: error in left operand
465 put: error in expression
241 Handler: error in statement



--
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: SSL cPanel mySql setup

2020-10-16 Thread J. Landman Gay via use-livecode
When I get a stack like that it's usually easier to figure out what it does 
and just rewrite it from scratch.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 16, 2020 12:16:52 PM Pi Digital via use-livecode 
 wrote:



Bill

Thanks for this. We were just discussing the same solution. I already have 
some php scripts I’m using for the HTML5 deployment of a LC stack as a 
portal to the same database.


The whole thing needs an overhaul. I’ve inherited this world of pain that 
has been 10-15years of amateur coding. A testament to LCs ease of learning 
for my client who had no coding background before. But, boy, is it a mess. 
The call to the server along with all the credentials had been copy pasted 
over 900 times inside 700 objects. That’s just counting each time it opens 
a connection to the database. Bonkers!


I think we’ve got a plan of attack now and some light at the end of this 
very long tunnel. Let’s see how much speed I can get out of this chuff 
chuff in the tunnel.


Sean Cole
Pi Digital


On 16 Oct 2020, at 17:31, William Prothero via use-livecode 
 wrote:


Sean:
You might find this download interesting, perhaps useful:
http://earthlearningsolutions.org/wp-content/uploads/2018/07/RemoteDbEncryption.livecode.zip 



It is a demo of AES encryption that I use. The livecode app encrypts it, 
sends to a php file, which decrypts it and posts to a mysql database. You 
could even store the data encrypted if you want, but I like to access the 
db with phpMyAdmin.


Best,
Bill

William A. Prothero
https://earthlearningsolutions.org

On Oct 16, 2020, at 2:51 AM, matthias rebbe via use-livecode 
 wrote:


Hi Sean,

there was a discussion a few weeks ago with the topic "Strange behavior 
between Mysql, MariaDB and SSL."

I am not sure if the information in that discussion will solve your problem.

Another approach is the following. For security reasons we do not let 
communicat our LC apps directly with MySQL Databases, if the Database is 
hosted on a public server.


We using a Livecode Server Script on the Webserver for doing the complete 
DB communication.
Our standalones (Mobile and Desktop) send the requests (password encrypted 
string) either as POST or GET to the LC Server script. The script encrypts 
the  request string and executes it. The return from the DB is then 
returned to our standalone.


Another way would be to use an LC server api HostM is providing for free.
https://www.hostm.com/tutorials/livecode/api-mariadb-mysql


Regards,
Matthias

-
Matthias Rebbe
Life Is Too Short For Boring Code

Am 16.10.2020 um 10:34 schrieb Pi Digital via use-livecode 
:


Hi

I’ve found myself out of my depth and in need of advice.
We have a cPanel webspace with mySQL running on a phpMyAdmin layer within 
the cPanel setup. Communicating with it from LC has been a breeze. However, 
doing a traffic scan we noticed that our queries and responses from the 
database are completely visible. Obviously a high security risk.


Using an ssl certificate set, how do I implement this? How do I get cPanel 
to allow for it and get LC to make use of them when using revOpenDatabase? 
I have the useSSL flag set to Boolean ‘true’. I’ve tried using the set 
certificates pointing it at the three ssl files. But the data still is 
fully readable as plaintext in both direction when checked by our traffic 
scanner.


Thanks

Sean

___
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

___
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


Re: Interface Resolution

2020-10-16 Thread J. Landman Gay via use-livecode
Since it's just a stack, open it normally in LC. You can do that either 
from the Open file menu or since it's open already it should be in the 
Windows menu. Edit the script normally. Apply and save the stack. The next 
time LC starts up, the handlers should run.


The plugin dialog only manages how and when the stack opens.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 16, 2020 11:05:17 AM John McKenzie via use-livecode 
 wrote:



Jacqueline, thank you for adding to my thread about the interface on
4k monitors.

I did as suggested but there is no persistence with the plugins
dialogue box. If there is a save, OK, or apply type functions I cannot
find them. Closing the window does not appear to save the changes as
there are not there later, including after quitting and restarting.

After fooling around with it all your post caused me to think of it
different and after a bit I got it working when picking my plugin from
the development menu. That is to I run the IDE, go to the development
menu and manually run my plugin script. Takes only a second so not bad.

So getting it to run upon startup will be nice if I do, but I can
live with this setup. Making the text in the drop down menus legible
is something important I still have to do, but thanks to Jacqueline,
Peter, Richard and Ralph for getting me to this mostly usable point.

Work arounds are not as good as things working but having the ones I
have make things better than before and good enough to have bought me
time to get everything in good order.


___
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


Re: Interface Resolution

2020-10-16 Thread J. Landman Gay via use-livecode
Plugins are just normal stacks that appear in the plugins folder. When you 
open the stack, which opens automatically  and invisibly on startup in this 
case, it will just sit there. It needs an activation handler, which can be 
on openstack or opencard or whatever is appropriate. Add whatever you need 
it to do in one of those handlers.


In the plugin manager you'll see a list of special "rev" messages. This is 
an alternate way to trigger the actions the plugin should perform. Instead 
of using an openCard or preOpenCard handler, you can select the 
revPreOpenCard message from the list. That message will be sent to the 
plugin when it opens and if you have a handler in the stack with that name, 
it can perform the activities it needs to do.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 16, 2020 12:16:25 AM John McKenzie via use-livecode 
 wrote:



Never mind, I got the plugin to appear in the list in the plugins
dialogue window.

I selected it, set it to "LiveCode starts up" and "Invisible". Quit
the IDE and restarted it. Nothing happens.

Typing each command into the message box affects things though. I can
kind of work with doing that while I try to find out the connection
between the OS interface settings and Livecode reading them (if it
does).

One big issue still is the text on the drop down menus remains the
same size. If anyone happens to know which file controls that I would
be glad to hear the details. At some point I may scale each one of them
one at a time until I discover what it is, if any. Maybe the font size
is not even controlled by a stack script.


Thanks for the help all that posted.

___
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


Re: Android PlayStore Warning APK v1 signature scheme

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

On 10/14/20 11:18 AM, Ralph DiMola via use-livecode wrote:

I just got this message when submitting a new app to the PlayStore

Your APK is only signed using the APK v1 signature scheme. This will fail to 
install in versions of Android equal or higher to 11 if the 
android:targetSdkVersion is set to 30 or higher. Please use apksigner to sign 
your APK or switch to the Android App Bundle to fix this.

Does anyone know what the deal is here?


Google explains it here:
https://developer.android.com/studio/command-line/apksigner

Apps already published in the Play Store can continue to use the v1 scheme, created with 
keytool, because updates aren't possible if the signature changes. But new apps should use the 
v2 scheme which is done with apksigner.


I got a little lost in that web page when determining what the variables should be in the 
terminal command. Some guidance on that would be helpful. I do remember when I created the 
signature for an app a few months ago, I got a warning that I was using v1 and I should 
consider using v2 instead, but Google did not reject the app with the v1 signature.


--
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: Android Status Bar

2020-10-12 Thread J. Landman Gay via use-livecode
I think "status bar" may be a misnomer and it's referring to the three (or 
two on Android 10) buttons that are always available at the bottom of the 
screen. Those are the Back, Home, and (sometimes) the Recents buttons. 
Virtually all Android devices use these "soft buttons" now.


I could be wrong but I've never seen those buttons at the top of the screen 
in the status bar area.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 12, 2020 3:11:18 PM scott--- via use-livecode 
 wrote:


I seem able to hide or show the Android status bar using the radio button 
in the Standalone Application Settings. I don’t seem able to to this on the 
fly using  mobileHideStatusBar  or  mobileShowStatusBar once the app is 
running.


Dictionary:
   "mobileHideStatusBar does not have any effect
on any Android devices with "hardware buttons”
embedded in the status bar.

I don’t think what I’m testing has these buttons in the status bar, though 
I’m new to android, so I could be confused.  Even so, the fact that I can 
hide or show the Android status bar from the Standalone Application 
Settings seems to indicate that it should be possible…


I didn’t see anything in bugzilla. Has anyone else run into this?
--
Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   https://elementarysoftware.com/
email sc...@elementarysoftware.com
booth1-360-734-4701
--








___
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


Re: The iOS "Files" folder

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

There's this, though it's up to the user:

https://9to5mac.com/2017/06/07/ios-11-automatically-delete-unused-apps/

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 12, 2020 5:11:48 PM John Balgenorth via use-livecode 
 wrote:



On the iPad each app is sandboxed and that means each app has
its own Documents Folder.  You can get a url to the Documents
Folder for  your app but not other apps.  Using that url you can
read, write, append, move, and delete files that are in your apps
Documents Folder.  A BIG PROBLEM comes when you delete an
app.  All the files in the Documents Folder for your app also  get
deleted.  So if you have a Note application  and have saved a lot
of notes, those notes are saved while your app exists but when
that Note taking app  is deleted  all of your information you’ve
saved is deleted  with it.  Most likely it will not be saved to the
icloud independently so the files you have for that app even
though they exist with the app on your icloud backup will be
deleted with the app.

To me this makes the iPad a poor device for children to be
using for school because  they should be allowed to keep
their school work without keeping outdated apps over the
years they go to school.

JB


On Oct 12, 2020, at 7:50 AM, Bob Sneidar via use-livecode 
 wrote:


It is my understanding that each app has it’s own storage are and that 
this is sandboxed from other apps. That being said, there is obviously a 
way for an app to request permission from the iOS to access another app’s 
storage. I’m not sure if Livecode has that mechanism though. it’s probably 
some kind of Xcode library.


Bob S


On Oct 10, 2020, at 8:42 AM, Graham Samuel via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:


Is it possible to access (write to) the iOS “Files” folder from an iOS app? 
I see that there is no specialFolderPath entry for it, but it appears that 
some apps do allow saving to the folder, and one is then allowed to open 
such files with an appropriate app. Basically I am thinking of giving the 
user a chance to save a text file there for processing by other apps. The 
alternative would involve the internet with all the tedious privacy rules 
etc. and my particular app doesn’t have any other use for the internet at all.


Anyone tried it?

Graham

___
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


Re: Select text question

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

Untested, but try this:

on keyboardActivated
 select text of fld 
end keyboardActivated

If you get a selection flash when it sets twice, remove the command from 
the openField handler.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 8, 2020 7:47:46 AM Graham Samuel via use-livecode 
 wrote:


I want a user to key a number in a field in an iOS app. Normally the field 
will already contain data which the user will be replacing, so I coded this


on openField
  set the keyboardType of me to "numeric"
  select text of me
end openField

What happens is that the selection can be seen taking place briefly (this 
is in the Simulator) and then reverts to a flashing cursor with the 
original data still in the field and no selection shown. (The numeric 
keyboard does open BTW, but I can’t see that as relevant).


What did I do wrong?

Graham
___
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


Re: Compress/Decompress Inclustion?

2020-10-07 Thread J. Landman Gay via use-livecode
Compression is part of the engine so you shouldn't need an inclusion. I've 
seen this error before and usually it's because the string has been altered 
in some way or wasn't compressed with LC or a compatible app.


Do you use binfile when retrieving the file from disk?

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 6, 2020 10:02:00 PM Bill Vlahos via use-livecode 
 wrote:



In InfoWallet I store attachments as encrypted and compressed files on disk.

When I build InfoWallet in LiveCode 9.6.1 and attempt to decompress and 
decrypt the file, I get an error that the data is not compressed. The file 
is definitely compressed.


I’m manually selecting inclusions. Do I need to add compress and decompress 
as an Inclusion? If so, which Inclusion would it be?


Here is the error:
Executing at 2:45:53 PM on Saturday, October 3, 2020
Type: decompress: string is not compressed data
Object: button 'ViewA' of card 'Records' of stack 'Bill Vlahos.ifw'
Line: put decompress(vFile) into vFile
Line Num: 16
Hint: mouseUp


Thanks,
Bill Vlahos
___
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


Re: formattedwidth/height does not work with some fonts

2020-10-07 Thread J. Landman Gay via use-livecode
I see this when the margins are too small to accommodate the ascenders of 
the font. What happens if you set the margins larger?


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 7, 2020 9:05:25 AM Klaus major-k via use-livecode 
 wrote:



Hi all,

looks like formattedheight/formattedwidth does not work with some fonts!?

See screenshot, I even added a little generous offset to make sure the text 
does not
get cut off, but e.g. "Damascus Light" (and others) do not respect 
formattedXXX?



Any hints and workarounds very welcome!


Best

Klaus
--
Klaus Major
https://www.major-k.de
kl...@major-k.de


___
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


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: Slightly OT: downloading Xcode

2020-10-04 Thread J. Landman Gay via use-livecode
After a certain age you're about as compressed as you get. I've lost 2 
inches since I was 20.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 4, 2020 11:55:14 AM Mark Wieder via use-livecode 
 wrote:



On 10/4/20 9:35 AM, Richmond via use-livecode wrote:


And as to "download yourself", all I can say is that while I have tried
many, many daft things in my life I have
never tried to either download or upload myself . . .


Heh.
If I ever tried to upload myself I suppose I'd probably try to compress
me first to remove the redundant redundancies.

--
 Mark Wieder
 ahsoftw...@gmail.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





___
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-02 Thread J. Landman Gay via use-livecode
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.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 2, 2020 7:03:59 PM Neville Smythe via use-livecode 
 wrote:



Confirmed here on macOS 10.14.5.  The CPU load is indeed quite dramatic
with modal dialogs.

I also checked on Linux (Ubuntu 18.04), and LC does not exhibit the
problem there.



Thanks Richard for confirming, and testing on Linux. Yes I will file a bug 
report.


It occurred to me that LC shouldn’t be using as much as 34% cpu when it is 
just idling anyway, even when not running a modal stack. Testing just now 
shows that is down to around 16%; of course LC’s time share will depend on 
lots of OS factors and other running apps, but that’s still way too high 
for an app supposedly doing nothing but waiting for events. Turning off the 
Rinaldi revSmartSave plugin brings it down to between 4 and 7%, which is 
more reasonable; presumably something to do with displaying its progress 
bar, perhaps another wait side effect.


Neville Smythe
___
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


Re: What Causes "##string##"

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

Does this work?

##string##
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 2, 2020 12:56:10 PM Sannyasin Brahmanathaswami via use-livecode 
 wrote:



Words of Our Master
By
Siva Yogaswami
textAlign does not work it gets 'wiped' clean ??  Devin Asay Probably when 
the textAlign property of a line is set to “center”? 
___ 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


Re: What Causes "##string##"

2020-10-02 Thread J. Landman Gay via use-livecode
It looks a little like a place holder for a merge function, only it's 
missing the square brackets.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 2, 2020 10:11:28 AM Sannyasin Brahmanathaswami via use-livecode 
 wrote:



When setting  htmltext??

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


Re: iOS app erratically freezing up when loading audio files

2020-09-29 Thread J. Landman Gay via use-livecode
Some video problems can be solved by setting the filename of the player to 
empty, waiting a few milliseconds, and then setting the new filename. I'm 
not sure it will work in this case but it's worth a try.


Also, if you aren't using the latest version of LC, try that.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On September 29, 2020 3:48:55 PM Andreas Bergendal via use-livecode 
 wrote:



Hi folks,

I really need your help now. I’m developing a simple app for a client, to 
be run on iPads in an exhibition starting 8th Oct. It consists of two cards:

a gallery card, with 16 photos
a profile card which you go to by clicking a photo on the gallery card

On the profile card this is loaded:
the photo again, larger
a short text in a field
an audio file (mp3), which starts playing

All resources are included in file folders with the app, no internet 
needed. The audio files are central to the app. They are recordings of 
people on Guernsey speaking Guernesiais, and sizes range from 1.6Mb to 2.6Mb.


In iOS a player is created with mobileControlCreate, and the audio 
controller is visible, so the user can pause, fast fwd etc.


The app design and coding is done and it works perfectly in the IDE, as Mac 
standalone (with standard player) and in the iOS simulator (iOS 13.3).


It works on the client’s iPads too (iOS 13.6), but irregularly freezes 
(rarely crashes), preventing further interaction until the app is killed 
and restarted. The freeze occurs at (or during)

”mobileControlSet "voicePlayer", "filename", sAudioPath”

In the simulator I get a crash (app quits) if I don’t put ”wait 20 ticks 
with messages” after setting the file path, but never a freeze. I’ve tried 
to give the audio loading a full second wait, in case iPads are slower than 
simulator, and it prevents crash but not the random freezing.


The iPad user can sometimes load the same profile (or different ones, we 
see no pattern) 30-40 times before freeze occurs, sometimes just 3. So it 
doesn’t seem to have anything to do with cache build-up or so.


So, has anyone experienced similar problems with playing mp3 files on iOS?
Any obvious pitfalls?

The frustrating thing is that I cannot reproduce the problem in simulator 
(it works perfectly there), and have no iPad myself to hook up for Remote 
debugging. So I have to try various solutions, then upload a new build to 
TestFlight and wait for the client’s ”Sorry, it’s still freezing randomly”…


Help!

Hopeful greetings,
Andreas
WhenInSpace

___
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


Re: Has anyone published an iPhone app that works on iOS 14?

2020-09-28 Thread J. Landman Gay via use-livecode

I have two iOS apps in the app store and they both run fine on iOS 14.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On September 28, 2020 3:46:13 AM Graham Samuel via use-livecode 
 wrote:


Sorry if this has been asked before, but a quick search of the list didn’t 
reveal anything, and I have only been semi-lurking lately.


The subject says it all. At this point I don’t know if I can create an app 
in LC that runs reliably with iOS 14. I know there have been high volume 
grumbles from some non-LC developers that they weren’t ready when Apple 
started the rollout of 14 earlier than expected, but I don’t know the 
substance of the complaints.


Anyone just sailing along with no problems? I ask because I’m about to 
revive an earlier app project and don’t want to crash and burn the moment I 
restart.


Graham
___
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


Re: Converting from unicode to ASCII

2020-09-26 Thread J. Landman Gay via use-livecode

On 9/24/20 12:09 PM, J. Landman Gay via use-livecode wrote:

My original goal was to get the canonical version directly from LC somehow.


Neville Smythe contacted me privately with this brilliant solution, posted here 
with his consent:

function stripAccents pInput
  local tDecomposed
  local tStripped

  replace "'" with space in pInput -- illegal in sql queries, (my requirement)

  -- Separate the accents from the base letters
  put normalizeText(pInput, "NFD") into tDecomposed
  repeat for each codepoint c in tDecomposed
-- Copy everything but the accent marks
if c="Æ" then put "AE" after tStripped
else if c="Œ" then put "OE" after tStripped
else if codepointProperty(c, "Diacritic") is false then
  put c after tStripped
end if
  end repeat
  return tStripped
end stripAccents

This works great for my needs and is exactly what I was looking for. I had no idea we had a 
codepointProperty function, which makes this all possible.


This will work for most European Latin alphabets with a few exceptions. Neville found that 
German, Polish and Dutch may not be completely compatible, there may be some others. There is a 
list of special characters that may need specific replacements here:


<https://maximilian.schalch.de/2018/05/complete-list-of-european-special-characters/>

For now I only need French, so I can probably omit the specific replacements. Maybe Neville 
will chime in if I've left out anything, he's done quite a bit of research into the problem.


--
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: I Have a Problem With a Plug-In

2020-09-26 Thread J. Landman Gay via use-livecode
Click the Messages icon in the toolbar. That will prevent the handler from 
running when the stack opens and you can delete the line in the script.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On September 26, 2020 9:06:33 AM Sannyasin Brahmanathaswami via 
use-livecode  wrote:



I have? CollectMyStacks.rev, close itself after opens the card

on opencard
send "mouseUp" to button  "Position IDE" in  1 seconds
close this stack
end opencard

Now, this was a bad idea. How to get the message

close this stack

how to delete that?

set the lockMessages to true

it has no affect.

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


Re: Accessing files on a local network file server - BEST PRACTICE?

2020-09-25 Thread J. Landman Gay via use-livecode
I know very little about Windows network addresses, but from the example you gave, I'd check to 
see if (slash-delimited) item 1 of the path is a single letter followed by a colon.


On 9/24/20 3:53 PM, Paul Dupuis via use-livecode wrote:

This question may have an obvious answer, but I am brain dead today, so here 
goes:

I have a app installed with some customers in a Windows network environment. They have all 
their laptops set so that their Home directories are on a local network server.


So, where as on a local laptop, specialFolderPath("documents") might return 
"C:/Users//Documents" as the path, for them specialFolderPath("documents") returns 
something like "//s1.somedomain.com/mountPoint//Documents"


We save a number of folders and files in the user's Documents folder. In some cases, if the 
file is not present (i.e. if there is a file tFile is false) we regenerate the file from a 
default.


Sometime, the server is offline or the user is disconnected from the network.

What is a good way to differentiate between:

1) one of these files is not present so must be regenerated, i.e

if there is not a file (specialFolderPath("documents")) then
   -- regenerate the file tFile at location specialFolderPath("documents")

Versus

2) The Server (//s1.somedomain.com/ is disconnected to down?

So that in case (1) , we regenerate the file and in case (2) we present a warning that the 
server is disconnected or down?


Mu gut says this should be simple, but I just can not wrap my brain around it 
today.

___
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



--
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: Some problems with an old stack that gets regular updates

2020-09-24 Thread J. Landman Gay via use-livecode
The ability to preserve the original stack file version is a setting in 
Preferences. I have that turned on too. You can either turn it off, or 
override it in the Save dialog by choosing a version from the pop up button 
at the bottom of the dialog.


I also looked at system prefs when trying to resolve the problem to make 
sure LC was permitted to use internet or sockets or whatever Apple calls 
it, I can't remember exactly. That didn't fix it though.


Like you, I also asked on the list here but no one knew the answer. I know 
that's not much help.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On September 24, 2020 2:28:21 PM matthias rebbe via use-livecode 
 wrote:



Jacque,

thanks for your answer.

I tried 'Save As' already, but interestingly the value of the 
stackfileversion property  remains unchanged.


I've tried all variations. Including tsNet and Internet, only tsNet   and 
also just Internet after disabling  tsNet using

dispatch "revunloadlibrary" to stack tsnetliburl

Regarding the remote debugger... First i thought a protected substack 
(Zygodact register stack) would cause this. But even without the sub tack i 
do not get Remote Debugger working.




-
Matthias Rebbe
Life Is Too Short For Boring Code

Am 24.09.2020 um 18:12 schrieb J. Landman Gay via use-livecode 
:


I haven't had the internet problem but I went a whole year once where I 
couldn't get remote debugging to work. I never did figure out why. Then it 
started to work again by itself. I never thought to check the stack file 
version. You could Save As with the latest LC version and see if that helps.


I always include both the internet library and TSNet when I need internet 
connections. Did you try using both?


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On September 23, 2020 6:40:58 PM matthias rebbe via use-livecode 
 wrote:



Hello,

i have some problems with a stack which i update very often. The stack was 
created 4 or 5 years ago, maybe even some more years ago. The gets regular 
updates as my time allows.


In Standalone Settings i have set the option to manually select inclusions. 
I am working with LC 9.6.1, but tried also with 9.6.0 and 9.5.1 on Mac OS 
10.14.6


1. I've added some code to call a url using
put URL "https:.." into tInfo

This works in the IDE, but not in the standalone, although i have selected 
INTERNET and SSL to be included in the standalone
In the standalone the URL is not fetched and tInfo always is empty. I tried 
also with http:// instead of https:// but also without success.

Tried with tsNet and without.

Trying this with a new stack works w/o problems.


2. Trying to use the remote debugger, regardless if  in a "real" 
standalone" or using the test button, does not work. The debugger is not 
initiated, although i have set red breakpoints and even used the Breakpoint 
keyword in the script and selected RemoteDebugger to be included in 
Standalone Settings.


Trying to use the Remote Debugger with a newer stack works w/o a problem.


Did anyone else ever ran into any of these problems with an older stack. Or 
does anyone have an idea what might cause this?


What i noticed is, that in the cRevGeneral Property Set of the stack there 
is a property stackfileversion with a value of 5.5.

But changing this or removing that property completely does not help either.


Regards,
Matthias



-
Matthias Rebbe
Life Is Too Short For Boring Code


___
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





___
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: Converting from unicode to ASCII

2020-09-24 Thread J. Landman Gay via use-livecode
That's what I was hoping for when I started this thread, and it was 
suggested (without the ID) a while back, but then I'd need another lookup 
table. Probably one for each language.


My original goal was to get the canonical version directly from LC somehow.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On September 24, 2020 11:56:09 AM Alex Tweedly via use-livecode 
 wrote:



You could even decide that, rather than strip out non-ascii characters,
you would convert (reduce?) each one to a canonical equivalent (where
there is one), and hence instead of

l’Académie française--->  lAcadmiefranaise_1234.livecode

it would become

l’Académie française--->  lAcademiefrancaise_1234.livecode

Marginally more readable, and much more typeable :-)

Alex.



On 24/09/2020 17:26, Dave Cragg via use-livecode wrote:


That's what I was thinking. So the filename for " l’Académie française" 
might becomes something like  lAcadmiefranaise_1234.livecode. Kind of 
readable, but guaranteed unique. (And also allows identifying the database 
record from the filename if that is needed.)


(Apologies if this appears twice.)

I'm pretty sure each record has an ID. This would be for ensuring unique 
file names, right?


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On September 24, 2020 2:00:50 AM Dave Cragg via use-livecode 
 wrote:



Jacqueline,

You said earlier you don't have a field in the database for the file name. 
But does the database table have a unique numerical ID field for each 
record?  If so, could you strip out the non-ASCII characters and then 
append the numerical ID to the file name?


On 23 Sep 2020, at 20:59, J. Landman Gay via use-livecode 
 wrote:


I'm drifting toward the idea of removing non-ascii characters. That might 
satisfy all requirements, at least for now. We don't do Sanskrit or Chinese 
yet. Or alternately I could bite the bullet and convert my build tool to 
insert metadata into the clickable lists. That isn't terribly difficult, I 
was just wondering if there was a different way using what we already have.


___
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


___
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


  1   2   3   4   5   6   7   8   9   10   >