Re: HTML font size in percentages

2022-05-25 Thread J. Landman Gay via use-livecode

On 5/25/22 6:36 AM, Paul Dupuis via use-livecode wrote:
Anyway, here is the routine, While it works, if I was rewriting it, I would probably just do a 
loop with a match to the html font size attribute. This code does ensure that the size can't go 
below a minimum where LC's legacy font size values actually make the text bigger.


Thanks so much, very helpful. It's close to what I was thinking of doing. The other alternative 
is looping through style runs in the styledText property. The text I'm dealing with is pretty 
long, so I'll do some tests to see which method is faster.


Thanks again,

Jacque

--
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: HTML font size in percentages

2022-05-20 Thread J. Landman Gay via use-livecode
Thanks for verifying it Paul, that's what I was thinking too. I'm looking at replacing the 
sizes via the style runs, I have a handler Mark Waddingham gave me/us on the list last year 
that I think I can modify.


But I'd be grateful to see yours too. No big hurry, I just need to get an idea of how to 
estimate my time at this point. Thank you very much.



On 5/20/22 2:08 PM, Paul Dupuis via use-livecode wrote:

You have to do replacement of the size value in the field's htmlText (or 
perhaps styledText)

I have code that does this. I can provide it to you if you like. I don't claim it is the bets 
or most effiecent. Unfortunately, I am gone for the rest of today, s tomorrow is the earliest I 
could send code to you.




On 5/20/2022 12:32 PM, J. Landman Gay via use-livecode wrote:
I have a field whose HTMLtext is set to a heavily tagged HTML file that changes the font size 
repeatedly. We want to allow the user to adjust the size of the text. The easiest way would 
be to use percentages for the font sizes so that changing the field's textsize would change 
the markup proportionally, but LC fields don't seem to support that. Is there a trick or do I 
need to do a series of replacements? I'm afraid that will be too slow, there's a lot of text.


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




--
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: HTML font size in percentages

2022-05-20 Thread J. Landman Gay via use-livecode

On 5/20/22 11:45 AM, Devin Asay via use-livecode wrote:

It sounds like the HTML tags are setting the size for runs of text in the 
field, so you can’t just set the textSize of the field?


I did try setting the text size of the field, and all untagged chunks reflect the new size as 
expected (default field text is 20 points.) But there are exceptions embedded in the text that 
require superscripts and/or other sizes for chapter headings and other things. It looks like this:


TEXT HERE shift="-6">TEXT HERETEXT HERETEXT 
HERETEXT HERE, ETC ETC


The text is too long for a single field so I'm using Trevor's dataView (thank you so much 
Trevor!) The text sizes and superscripts are footnotes, references, and other supplementary 
info. They are scattered liberally around in the text.


Untagged text responds well to the field text size, which I can easily change in the dataView 
template. But the superscripts text size and offset, and other changes do not because they are 
specifically indicated with integers. If I could use percentages, then changing the field text 
size would proportionally change everything else. But percentages don't work in my tests.


I wish we could use CSS in LC fields, but it isn't supported. I can't use any type of browser 
because we need features that a browser doesn't support.




Are there varying sizes of text runs in the field? Could you set the textSize 
of the char 1 to -1 of the field to empty, then set it for the whole field? In 
one project I’ve implemented a feature similar to what Bob was talking about 
where I increment the textSize of the field by 1 point using Cmd/Cntl + or -.


This is a mobile app, so no keyboard is available. It's been in the app stores for about a year 
but our main complaint from users is that the text is too small on a phone. We'd like to fix 
that. The choice of font size would be a setting in user prefs and the text would accomodate 
that whenever the app runs.



--
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: HTML font size in percentages

2022-05-20 Thread J. Landman Gay via use-livecode
The text has to be in a field for lots of reasons. Browsers and widgets are 
too limited.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On May 20, 2022 11:40:12 AM Bob Sneidar via use-livecode 
 wrote:


I know that typically cmd +/- (or ctrl for Win) will increase or decrease 
the zoom of a web page. You can try that, or else use a browser widget. (I 
wonder if that trick would work in a widget?? It should...)


Bob S


On May 20, 2022, at 09:32 , J. Landman Gay via use-livecode 
 wrote:


I have a field whose HTMLtext is set to a heavily tagged HTML file that 
changes the font size repeatedly. We want to allow the user to adjust the 
size of the text. The easiest way would be to use percentages for the font 
sizes so that changing the field's textsize would change the markup 
proportionally, but LC fields don't seem to support that. Is there a trick 
or do I need to do a series of replacements? I'm afraid that will be too 
slow, there's a lot of text.


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


HTML font size in percentages

2022-05-20 Thread J. Landman Gay via use-livecode
I have a field whose HTMLtext is set to a heavily tagged HTML file that 
changes the font size repeatedly. We want to allow the user to adjust the 
size of the text. The easiest way would be to use percentages for the font 
sizes so that changing the field's textsize would change the markup 
proportionally, but LC fields don't seem to support that. Is there a trick 
or do I need to do a series of replacements? I'm afraid that will be too 
slow, there's a lot of text.


--
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: Movie text tracks

2022-05-17 Thread J. Landman Gay via use-livecode

Or you could use an OS 9 emulator like SheepShaver where the old version of QT 
is available.



On 5/17/22 1:02 PM, Richmond via use-livecode wrote:

Here's a thought:

Dig out an old mac that runs, say, MacOS 10.6 or 10.7 and then follow this:

https://synchrimedia.blogspot.com/2016/02/extracting-qt-text-tracks-from-movies.html

--
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: Sqlite and Monterey on M1

2022-05-12 Thread J. Landman Gay via use-livecode

On 5/12/22 1:01 PM, Klaus major-k via use-livecode wrote:

on the Mac we have write permissions here -> specialFolderPath("preferences")
Works on Monterey as well and is "out of sight" of the user. ;-)


Am 12.05.2022 um 19:56 schrieb Bob Sneidar via 
use-livecode:

Sandboxing. I don't think the latest Apple operating systems allow the writing 
to the App Support folder,


That's kind of strange, since Mac OS provides the Application Support folder specifically for 
apps to store their data. Has that changed?


--
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: Native Android input field

2022-04-28 Thread J. Landman Gay via use-livecode

Yes, that would be ideal. Let's see what the Great Reimagining brings.

In the chat I remember saying I couldn't use the widget but I couldn't 
remember why. The unexpected keyboard display was the reason. And unlike a 
normal LC field, you can't set it to allow copying without also allowing 
editing.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On April 28, 2022 4:04:31 PM Richard Gaskin via use-livecode 
 wrote:


The circumstance I introduced in the chat was something far more common: 
just scrolling a field, a normal non-editable LC field used to display text.




___
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


Native Android input field

2022-04-28 Thread J. Landman Gay via use-livecode
In the after-party that Richard set up on the last day of the conference, the question came up 
whether the native Android field widget would scroll. The answer is, yes it does.


There is one little glitch. If the widget is editable, and your finger lifts inside the widget 
after scrolling, the keyboard pops up. If you end the scroll while your finger is outside the 
field area, it does not.


This doesn't happen if the field is not editable. Also in either case, the scroll isn't as 
smooth as it is when constructed in a script.




--
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: devcon 2022 recap

2022-04-28 Thread J. Landman Gay via use-livecode
Same here, I'm really looking forward to seeing the iterations of the new 
IDE and features as they happen. The future looks very bright and I want to 
be there.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On April 28, 2022 10:41:12 AM matthias rebbe via use-livecode 
 wrote:


I was so impressed especially by the planned new features of LC that i 
subscribed right away to the upcoming  LC Global 22/23 which starts in May 
this year.
https://livecode.com/global/global2022/ 






___
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: Single Window LC IDE?

2022-04-27 Thread J. Landman Gay via use-livecode
In a later session they said it was just a mock up at this point. When 
asked about supporting multiple monitors they said it would, and they'd 
need to consider tear-off windows.


I like the new look very much, but most of us old timers have specific 
requirements which LC agrees they want to accommodate.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On April 27, 2022 8:20:01 AM Mike Kerner via use-livecode 
 wrote:



yeah, well, they not only discussed it, but they demo'd it, and seemed to
be amped about it, so i'm concerned.

On Tue, Apr 26, 2022 at 5:59 PM doc hawk via use-livecode <
use-livecode@lists.runrev.com> wrote:


tom tumbled,

>I wouldn't worry that they will pigeon-hole the ide in that way.
>That would be madness.

Was it StarOffie 4 (or 5?) that shipped such madness?

I recall it being *utterly* unusable, and staying with the prior version.

___
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




--
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
  and did a little diving.
And God said, "This is good."
___
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: optionKeyDown message broken

2022-04-21 Thread J. Landman Gay via use-livecode

On 4/21/22 10:55 AM, Paul Dupuis via use-livecode wrote:

In a new stack, place the following in the card script:

on optionKeyDown pKeyName
   if platform() = "MacOS" then
     put numToChar(charToNum(pKeyName)-128) into tKey1 -- original sample from 
Dictionary
     put numToCodePoint(codepointToNum(pKeyName)-128) into tKey2 -- trying using non-deprecated 
functions

     answer pKeyName,tKey1,tKey2
   else -- windows
     answer pKeyName
   end if
end optionKeyDown


The equivalent new functions for numToChar and charToNum is numToNativeChar and 
nativeCharToNum. Those return the same values as the originals. However, I'm still getting the 
wrong result. I can subtract 94 to get lower-case "f" but that isn't consistent; the amount to 
subtract varies depending on the value of pKeyName. So there's some trick I'm missing.


Tested on Mac.

--
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: Pixel 5

2022-04-20 Thread J. Landman Gay via use-livecode

On 4/20/22 4:58 PM, Richard Gaskin via use-livecode wrote:
All this time I thought Apple's message for orgs making apps for internal use was to use 
Android. I sometimes do medical apps, where iOS is strongly represented. I'd love it if Apple 
has a way to beat Android for ease of deployment.


The best you can do is to use Apple's corporate distribution. It allows up to a certain number 
of employees who can install your app in-house. The license is expensive.


For people like us, no dice.

--
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: Pixel 5

2022-04-16 Thread J. Landman Gay via use-livecode
You don't know what you're missing. :) There's so little freedom over on 
the other side. I could never go back.



--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On April 16, 2022 10:07:48 PM doc hawk via use-livecode 
 wrote:


For some reason, I feel a sudden urge to sprinkle my doorstep with Holy 
Water . . .




___
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: Encountering slow navigation to a card containing very large fields? Do this one simple trick.

2022-04-16 Thread J. Landman Gay via use-livecode

So fields are snakes and datagrids are mice.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On April 16, 2022 6:32:19 PM Bob Sneidar via use-livecode 
 wrote:
The Datagrid eats the Elephant, “One Bite At a Time.” The field tries to 
eat the Elephant all at once.




___
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


Pixel 5

2022-04-16 Thread J. Landman Gay via use-livecode

If anyone is interested in acquiring a Pixel 5 please contact me.

--
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: Standalone Error Dialog

2022-04-12 Thread J. Landman Gay via use-livecode
Double check the files in the Copy Files pane of the standalone settings 
and make sure that the file paths are correct. I'm not aware of a log file 
for the builder.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On April 12, 2022 4:19:16 PM Bob Sneidar via use-livecode 
 wrote:



Hi all.

Some time ago I began getting an error dialog reporting:

1 File to include in standalone not found: ""

This apparently is not causing any issues that I have found, but I would 
sure like to find out what is causing it and stop it.


Is there a Standalone Builder log I can look at?

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





___
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: Mobile Image Editing

2022-04-08 Thread J. Landman Gay via use-livecode
I'm not sure I understand. When you "downsize" do you mean you're scaling? Or are you creating 
a new image? Or cropping the original?


On 4/7/22 9:11 PM, Brian Milby via use-livecode wrote:

Greetings list people!

I am currently working on a project where we will be editing images on a
mobile device.  I'm running into an issue where the formatted height and
width of the image change.  Most of the images are natively 1600x1200 but
we initially display them scaled to fit on the screen.  When the user does
any edit action at a zoomed out level, the image is downsized to the
current zoom.  Once downsized, if you zoom in on the image and edit, the
formatted size doesn't change.

Is there any way around this?  What we would really like is to edit the
image and keep it at the full resolution.

We are currently using the native LiveCode paint/bucket tools.  Although
most of my testing is in the IDE at the moment, we do use resize handlers
to format for the actual device resolution.



--
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: drawingSvgCompileIcon(pIconName) always BLACK

2022-04-06 Thread J. Landman Gay via use-livecode

On 4/6/22 11:13 AM, Klaus major-k via use-livecode wrote:

Am 06.04.2022 um 17:59 schrieb J. Landman Gay via 
use-livecode:

The IDE supports importing SVG images from the Import As Control menu. Does 
that work any differently?

not tested (yet).

just tested and THAT works!?


There must be more to it than just running drawingSvgCompileIcon, but I can't 
recall what it is.

--
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: drawingSvgCompileIcon(pIconName) always BLACK

2022-04-06 Thread J. Landman Gay via use-livecode
The IDE supports importing SVG images from the Import As Control menu. Does 
that work any differently?


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On April 6, 2022 8:36:29 AM Klaus major-k via use-livecode 
 wrote:



Just made a test and it looks like the resulting images from
drawingSvgCompileIcon(pIconName) cannot even be screenshot-ted!?
Results in a greyish rectangle? WTF?

Tried as PNG and JPEG.

see screenshot here:


Am 06.04.2022 um 15:23 schrieb Klaus major-k via use-livecode 
:


Hi all,

drawingSvgCompileIcon(pIconName) is really great,
but the resulting images are always black.

I can of course add a "color overlay" but when I use them as
"imagesource" it uses the original black images.

Any hints on how to add color to them when using them
as "imagesource" in a field without screenshotting them or
exporting them, add color in an image editing app and
reimport them as images?

Thanks for any hint!


--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
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: Thank you

2022-03-30 Thread J. Landman Gay via use-livecode

On 3/30/22 3:36 PM, Bob Sneidar via use-livecode wrote:

On Mar 30, 2022, at 12:16 , J. Landman Gay via use-livecode 
 wrote:

On 3/30/22 11:21 AM, Guillaume Hédieu via use-livecode wrote:

Thank you for your "welcome". I'm pleased to see that there is a community
around Livecode :)


The best thing about our community is that we don't tolerate trolls,


AHEM! I'm sitting right here!


We tolerate the cute ones.
<https://www.ebay.com/itm/264877334138>

--
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: Thank you

2022-03-30 Thread J. Landman Gay via use-livecode

On 3/30/22 11:21 AM, Guillaume Hédieu via use-livecode wrote:

Thank you for your "welcome". I'm pleased to see that there is a community
around Livecode :)


The best thing about our community is that we don't tolerate trolls, so everyone here is kind 
and helpful. And we love to support each other, so ask anything and someone will answer. No 
question is too silly.


A big welcome to you.

--
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: IDE bait and switch ;-)

2022-03-26 Thread J. Landman Gay via use-livecode

On 3/26/22 10:26 AM, Paul Dupuis via use-livecode wrote:

An now I really want LC, Ltd. to add a "with tIndex" syntax to the repeat for 
each loop structure!


That would be awesome. Feature request, maybe?

--
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: destroystack/destroywindow not working?

2022-03-21 Thread J. Landman Gay via use-livecode
I've seen this occasionally, where the mainstack is removed but the substacks are still in the 
list of available stacks. I think the IDE list of stacks in memory isn't updated correctly 
unless all substacks are marked as destroyed. At least, that's what it looks like.



On 3/21/22 6:46 AM, Klaus major-k via use-livecode wrote:

Hi all,

I have a stack with its destroystack/destroywindow
properties set to true.

When I close it and open another stack which has a
substack with ther same name as a substack of the
previous stack, I get this really annoying dialog:
"A stack with that name is already in memory..."

Shouldn't setting destroystack/destroywindow prevent this?
Or am I misunderstanding the meaning of these props?



--
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: ArrayEncode/Decode broken??

2022-03-19 Thread J. Landman Gay via use-livecode

On 3/19/22 3:27 PM, Bob Sneidar via use-livecode wrote:

I’m so embarrassed.


I was too but I caught myself before I hit the Send button. We get so used to LC reading our 
minds we're surprised when it doesn't.


--
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: ArrayEncode/Decode broken??

2022-03-18 Thread J. Landman Gay via use-livecode
I made the same mistake a while ago, until I remembered that the encoded 
array is binary. You have to write and read it to/from a binary file. If 
you just use "open file" you get text only.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On March 18, 2022 6:40:40 PM Bob Sneidar via use-livecode 
 wrote:



Hi all.

I'm running 9.6.7 rc2. I have this code in a closeStackRequest handler:

  put the settings of me into tSettingsA
  put field "fldEAFilePath" into tSettingsA ["eafilepath"]
  put field "fldInvFilePath" into tSettingsA ["invfilepath"]
  put field "fldOutFilePath" into tSettingsA ["Outfilepath"]
  put the dgText [true] of group "dgVariance" into tSettingsA ["gridtext"]
  put arrayEncode(tSettingsA) into tSettingsText
  put the filename of this stack into tSettingsPath
  set the itemDelimiter to "/"
  put "settings.prefs" into item -1 of tSettingsPath
  open file tSettingsPath for write
  write tSettingsText to file tSettingsPath
  close file tSettingsPath

Then in the openStack handler I have this:

  put the filename of this stack into tSettingsPath
  set the itemDelimiter to "/"
  put "settings.prefs" into item -1 of tSettingsPath
  open file tSettingsPath for read
  read from file tSettingsPath until eof
  put it after tSettingsText
  close file tSettingsPath
  put arrayDecode(tSettingsText) into tSettingsA
  set the settings of me to tSettingsA

Instead of an array, I get the text "gr" which is the first 2 characters of 
the key "grid text" in the array. That can't be right!


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





___
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 overwriting itself in non wrapping field

2022-03-18 Thread J. Landman Gay via use-livecode

On 3/18/22 6:02 AM, David V Glasgow via use-livecode wrote:

However, looking more closely there are 3 visible characters where cr should 
be.   They are â9u except 9u is constant and the first character is almost 
always there, but varies wildly.  Often an underscore but also accented a, e or 
u.  Even more weirdly, if I search the field for ‘9u', several lines are found, 
but not any in the mutant line.

And yet more weirdly again, when the line is displayed in a field with wrap 
true, the weird three characters appear at the beginning of ‘new lines’ except 
they are not actually new lines because they highlight as a single block.  An 
invisible form feed?  or something else between 9 and u  that a wrapping field 
decides is a wrap point but confuses the hell out of a non-wrapping field?


The text came from a server, right? This sounds like it may be a text encoding issue. It's 
likely UTF8, so try textDecode(tText,"UTF8") and see if that resolves it.


--
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 to access scripts on a modal card that is stuck / not visible?

2022-03-18 Thread J. Landman Gay via use-livecode
Modes are only for stacks and can't be used for individual cards. It sounds 
like the whole stack is going modal. There are several ways to edit a 
script for a control.


1. Click the script lines in the project browser, or right click the 
control in the app browser and choose "edit script".

2. In the message box: edit script of . I.e., edit script of btn 1
3. Turn off messages in the toolbar. Then you can edit scripts as usual.
4. Choose the edit tool, right click the control, choose to edit the script.
5. If the stack is already in modal mode, use the message box to: toplevel 
. Or Cmd-Opt-Shift click the stack and choose toplevel from the 
Mode menu item. (I assume on Windows that's control-alt-shift.)


There are also other keyboard shortcuts but those should get you started. 
Since the mode doesn't change unless you click the button, you should be 
able to edit the script normally if you don't do that.


You can display a substack as a modal login, or use a group on the current 
card.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On March 18, 2022 5:31:04 AM Keith Clarke via use-livecode 
 wrote:


1. What’s the syntax needed to open the script of an un-open object via the 
message box, so I can break out of this loop?
2. Can anyone please suggest a worked example or lesson of a pop-up web 
service login dialogue, as I’m clearly doing something basic wrong!





___
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: Compiler Funding Options Update

2022-03-17 Thread J. Landman Gay via use-livecode
Anyone on the fence should decide pretty quick, as of now there are less 
than 6 hours left to contribute.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On March 17, 2022 8:11:29 PM Tom Glod via use-livecode 
 wrote:



Thanks Bob, I'm sure it will be honored.
This is pretty important for livecode itself, I hope a way will be found
even if target is not met.

On Thu, Mar 17, 2022 at 6:35 PM Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:


I originally popped for $198, but I just paid for a year's subscription.
If I do not get the $198 back, oh well.

Bob S


> On Mar 16, 2022, at 17:57 , Tom Glod via use-livecode <
use-livecode@lists.runrev.com> wrote:
>
> Well...I threw in $100 to help make it happen...fingers crossed.
>
> On Wed, Mar 16, 2022 at 8:53 PM Tom Glod  wrote:
>
>> I see the page I had bookmarked has a "-page" at the end of slug.
>>
>> https://livecode.com/script-compiler-project-page/
>>
>> Thank you.
>>
>> On Wed, Mar 16, 2022 at 7:27 PM J. Landman Gay via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>
>>> On 3/16/22 5:46 PM, Tom Glod via use-livecode wrote:
>>>> When I go ot the page I only see the 3 options how do I get to the
>>> $99
>>>> option?
>>>
>>> I see six options. Do you have any plugins that might disable some of
the
>>> javascript, or
>>> similar? Try a different browser, maybe?
>>>
>>> --
>>> 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


___
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 overwriting itself in non wrapping field

2022-03-17 Thread J. Landman Gay via use-livecode

On 3/17/22 10:58 AM, David V Glasgow via use-livecode wrote:

Examining it, it looks like it ought to be a number of separate lines, and it 
also contains weird visible and also white space that is not a simple space.  I 
can’t see any recognisable pattern to suggest where cr should be.


I usually copy the mysterious character and in the message box: put 
charToNum(the clipboarddata)

That gives me something to look up in an ascii or unicode table. Then you can replace all those 
characters with space or whatever seems reasonable for the data. That may give you a clue as to 
what the line should actually be.


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

2022-03-17 Thread J. Landman Gay via use-livecode
I think there's still time to support the project. No risk, you get your 
money back if it doesn't fund. I personally hope it does, the benefits 
would be big.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On March 17, 2022 11:47:05 AM "R.H. via use-livecode" 
 wrote:



I did not receive any letter regardings any funding.

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





___
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: Compiler Funding Options Update

2022-03-16 Thread J. Landman Gay via use-livecode

On 3/16/22 5:46 PM, Tom Glod via use-livecode wrote:

When I go ot the page I only see the 3 options how do I get to the $99
option?


I see six options. Do you have any plugins that might disable some of the javascript, or 
similar? Try a different browser, maybe?


--
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: Excel_Lib on Mac

2022-03-16 Thread J. Landman Gay via use-livecode

On 3/16/22 10:57 AM, matthias rebbe via use-livecode wrote:

Standalones built with 9.6.6 and at least 10 dp1 and dp2 (i did not test 9.67) 
won't run.
On your computer they would run if you set the bundle identifier under MacOS in 
the standalone settings to com.runrev.livecode. ;)


I wonder if this might affect remote debugging too. I've had an issue where it won't work on 
some LC versions. It isn't working for me now in either 9.6.6 or 10.0 dp 2. I always test with 
my phone cabled to the Mac and I've added the correct versions of LC to the firewall settings 
but it didn't make a difference.


--
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: Compiler Funding Options Update

2022-03-16 Thread J. Landman Gay via use-livecode

I really hope this gets funded, we need it.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On March 16, 2022 11:33:34 AM Rick Harrison via use-livecode 
 wrote:


This project really needs to be fully funded if
LiveCode is to move forward.




___
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: Excel_Lib on Mac

2022-03-15 Thread J. Landman Gay via use-livecode
I think it's been a while since any app can send AppleScript to any other 
app. Malware, you know. Some people ruin it for all of us.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On March 15, 2022 5:32:16 PM Bob Sneidar via use-livecode 
 wrote:


I did some research. The Macintosh can no longer send apple events to 
Excel, or indeed any other Microsoft product, due to the fact that Apple 
Sandboxing prevents it. There ought, I suppose, to be a way to grant this 
access, but Appleand/or Microsoft has decided to prevent it, making the 
excel_lib worthless on MacOS.


The more programmers and politicians set about to help me, the less I am 
able to help myself.


Bob S


On Mar 15, 2022, at 14:50 , Bob Sneidar via use-livecode 
 wrote:


Hi all.

I am trying to incorporate Excel_Lib into a project. There is a command to 
open a spreadsheet with Excel on a Mac, and ONLY Macs can use this command. 
It looks however like the library works with Windows too.


My issue is that I am getting an error, "XCELLibErr: Not authorized to send 
Apple events to Microsoft Excel." So first, is there an easy way, like a 
shell command to do this? And then if not, is using this library dependent 
on Apple events on a Mac?


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



___
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: Speed up a slow loop

2022-03-15 Thread J. Landman Gay via use-livecode

On 3/14/22 2:09 PM, J. Landman Gay via use-livecode wrote:
I've updated the zip file download to include the resources needed; icons for all platforms 
(but the Windows one is very old) and a copy of the font. Update your standalone settings to 
accomodate the paths you need.


Sorry, wrong link originally, here's the correct one:

<https://drive.google.com/file/d/14xSEhg_Icslky108xxVQ0WYIg7M37b1j/view?usp=sharing>

--
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: Speaking of Filter and Match...

2022-03-15 Thread J. Landman Gay via use-livecode

Good idea, thanks Dick. Your scripts are always so elegant.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On March 14, 2022 7:11:13 PM Dick Kriesel via use-livecode 
 wrote:


Since order must be maintained, it’s probably faster not to split and sort, 
and faster not to scan the list repeatedly using lineOffset or contains.

You could do it like this:

command removeDuplicates pDelimitedList, pDelimiter
  local tArray, tList
  set the lineDelimiter to pDelimiter
  repeat for each line tLine in pDelimitedList
 if not tArray[tLine] then -- i.e., if this line hasn't appeared already, 
 then ...

put true into tArray[tLine]
put tLine & pDelimiter after tList
 end if
  end repeat
  delete last char of tList
  return tList for value
end removeDuplicates

— Dick





___
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: Speed up a slow loop

2022-03-14 Thread J. Landman Gay via use-livecode
One last thing. Scott Morrow was good enough to build for iOS and send a screenshot. I was very 
pleased to see it went cross-platform without any significant problems (thank you LC!) but the 
custom font was missing, which makes sense since I didn't include any external resources. That 
reminded me that it probably didn't have an icon either.


I've updated the zip file download to include the resources needed; icons for all platforms 
(but the Windows one is very old) and a copy of the font. Update your standalone settings to 
accomodate the paths you need.


<https://drive.google.com/file/d/14wz_G6IvfnziY9U2w2Ypmh0JuqRCtK7N/view?usp=sharing>

Thanks guys.

On 3/12/22 3:32 PM, J. Landman Gay via use-livecode wrote:
I have to thank everyone who helped me figure out my Boggle game. I've put the current file on 
Google Drive for anyone who wants to take a look. The scripts are open and I think I've removed 
all the testing cruft that accumulated over the last couple of weeks.


I'd be interested in any feedback or improvements. There's a Read Me in the zip file with more 
info.


<https://drive.google.com/file/d/14wz_G6IvfnziY9U2w2Ypmh0JuqRCtK7N/view?usp=sharing>

Thanks so much to all! Contributors have been credited in the scripts.

Jacque




--
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 11 incompatible?

2022-03-13 Thread J. Landman Gay via use-livecode
That's good to know, I'm glad it worked for you. The app's UAC is set to "highest available." 
Should it be something else?


Thanks to both you and Colin for taking a look. Until this last week there were no complaints, 
but now support has had several. The app has been in use for a couple of years now.


On 3/13/22 5:44 PM, matthias rebbe via use-livecode wrote:

I've created a small sample Windows app and created 3 standalones using 
different settings in standalone settings for UAC execution level
With 'Default' and 'Same As Invoker' no message comes up running that app on Win 11, but 
with UAC execution level set to 'Highest Available' i get this message. Pressing Yes 
button to "allow any changes" opens the app without a problem.




Am 13.03.2022 um 23:04 schrieb matthias rebbe via use-livecode 
:


By the way that question comes normally from the UAC (user account control) 
prompt.
What UAC level did you select in LCs standalone settings under the Windows Tab?




Am 13.03.2022 um 22:38 schrieb J. Landman Gay via use-livecode 
:

I'm not sure, but I think it's a Windows 11 update released very recently 
within the last few days, and a few students have installed it. They say the 
app won't launch. Windows asks if the user wants to let it make changes to the 
computer, they click Yes, then nothing happens.

We think one student uninstalled and re-installed, and then it worked, but 
we're not sure about that either. The student asked if data would be lost if 
they uninstalled (no, it wouldn't) and after that the server started recording 
data from the student.

We can test ourselves tomorrow but I thought I'd find out if anyone else had an 
issue.

On 3/13/22 3:34 PM, Colin Holgate via use-livecode wrote:

You should check for an update, I’m on 22572.100, maybe that’s the update that 
showed a problem?

On Mar 13, 2022, at 2:27 PM, matthias rebbe via use-livecode 
 wrote:

What do you mean with new Windows 11 update? The update from 10 or lower to 11 
or from 11.xxx whatever build to a newer one?

I have here Windows 11 Build 22563, that's an insider preview build, installed 
and opening/running an LC standalone, created with LC 9.6.2, was not a problem.

Regards,
Matthias



Am 13.03.2022 um 20:31 schrieb J. Landman Gay via use-livecode 
:

We're getting reports that our LC app won't launch after the new Windows 11 
update. Anyone else seeing this? If so, do you know what the problem is?




--
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 11 incompatible?

2022-03-13 Thread J. Landman Gay via use-livecode
Would that be an offscreen window on any app, or just the one you're launching? I'll ask my 
client to try your trick, we do open a login screen from a substack. The mainstack isn't 
offscreen though, it's just made invisible.


You did get to the login screen though, so...?


On 3/13/22 4:56 PM, Colin Holgate via use-livecode wrote:

There is an issue on Windows that would show similar symptoms. That is, if a 
window is opened off screen it’s as if the application has frozen.

To see if that is the problem, type Alt-spacebar, M, any arrow key, and move 
the cursor. The offscreen window will be attached to the cursor, and a 
left-click will drop it off in the right place.



On Mar 13, 2022, at 3:40 PM, J. Landman Gay via use-livecode 
 wrote:

Well, you'd need an account with a school but since the problem is only on 
launch you might be able to test that part.
<https://thinkingstrings.com/interactive-explorations-downloads/>


On 3/13/22 2:52 PM, Colin Holgate via use-livecode wrote:

Do you have an app I can test?

On Mar 13, 2022, at 1:31 PM, J. Landman Gay via use-livecode 
 wrote:

We're getting reports that our LC app won't launch after the new Windows 11 
update. Anyone else seeing this? If so, do you know what the problem is?

--



--
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 11 incompatible?

2022-03-13 Thread J. Landman Gay via use-livecode
Well, you'd need an account with a school but since the problem is only on launch you might be 
able to test that part.

<https://thinkingstrings.com/interactive-explorations-downloads/>


On 3/13/22 2:52 PM, Colin Holgate via use-livecode wrote:

Do you have an app I can test?



On Mar 13, 2022, at 1:31 PM, J. Landman Gay via use-livecode 
 wrote:

We're getting reports that our LC app won't launch after the new Windows 11 
update. Anyone else seeing this? If so, do you know what the problem is?

--
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: Windows 11 incompatible?

2022-03-13 Thread J. Landman Gay via use-livecode
I'm not sure, but I think it's a Windows 11 update released very recently within the last few 
days, and a few students have installed it. They say the app won't launch. Windows asks if the 
user wants to let it make changes to the computer, they click Yes, then nothing happens.


We think one student uninstalled and re-installed, and then it worked, but we're not sure about 
that either. The student asked if data would be lost if they uninstalled (no, it wouldn't) and 
after that the server started recording data from the student.


We can test ourselves tomorrow but I thought I'd find out if anyone else had an 
issue.

On 3/13/22 3:34 PM, Colin Holgate via use-livecode wrote:

You should check for an update, I’m on 22572.100, maybe that’s the update that 
showed a problem?



On Mar 13, 2022, at 2:27 PM, matthias rebbe via use-livecode 
 wrote:

What do you mean with new Windows 11 update? The update from 10 or lower to 11 
or from 11.xxx whatever build to a newer one?

I have here Windows 11 Build 22563, that's an insider preview build, installed 
and opening/running an LC standalone, created with LC 9.6.2, was not a problem.

Regards,
Matthias



Am 13.03.2022 um 20:31 schrieb J. Landman Gay via use-livecode 
:

We're getting reports that our LC app won't launch after the new Windows 11 
update. Anyone else seeing this? If so, do you know what the problem is?

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



--
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: Speaking of Filter and Match...

2022-03-13 Thread J. Landman Gay via use-livecode

On 3/12/22 8:54 PM, Roger Guay via use-livecode wrote:

I have a field with about a thousand lines with many duplicate lines, and I 
want to delete the duplicates. Seems like this should be simple but I am 
running around in circles. Can anyone help me with this?


Making the list into an array is the easiest way but as mentioned, it will destroy the original 
order. If the order is important then you can restore it with a custom sort function. Here's my 
test handlers:



on mouseUp
  put fld 1 into tData -- we keep this as a reference to the original order
  put tData into tTrimmedData -- this one will change
  split tTrimmedData by cr as set -- removes duplicates
  put keys(tTrimmedData) into tTrimmedData -- convert to a text list
  sort tTrimmedData numeric by origOrder(each,tData)
  put tTrimmedData into fld 1
end mouseUp

function origOrder pWord, @pData
  set wholematches to true -- may not matter, depends on the data
  return lineoffset(pWord, pData)
end origOrder

Field 1 contains lines in random order with duplicates.

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


Windows 11 incompatible?

2022-03-13 Thread J. Landman Gay via use-livecode
We're getting reports that our LC app won't launch after the new Windows 11 update. Anyone else 
seeing this? If so, do you know what the problem is?


--
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 Player buffering data

2022-03-12 Thread J. Landman Gay via use-livecode
Someone who does a lot of audio work would know more than I do about it, but it used to be that 
files could be saved in either "normal" mode or "streaming" mode. I didn't make the files I 
used in a particular app, but they all streamed and playback started immediately while the rest 
loaded in the background. If things haven't changed, maybe the file format is the culprit?


On 3/12/22 12:35 AM, Peter Bogdanoff via use-livecode wrote:

I should have said, the audio files being played are typically 30MB to 100MB, 
and the freezing happens as soon as the filename URL is set and play is 
supposed to begin.



On Mar 11, 2022, at 10:28 PM, Peter Bogdanoff via use-livecode 
 wrote:

Hi, this is probably a question for Panos.

My application plays audio files from a server using the player. Some users in 
a academic environment are experiencing the application freezing when they play 
audio. These are people in a university in China, where it seems the wireless 
network gets choked up with simultaneous users doing things. When classes are 
over, all works well. Also using a cellular connection works normally (but data 
there is very expensive $$$ to use). Their Wifi seems to be underpowered. These 
are files typically 30K to 100K.

1. Does the player buffer data such that it allows the playing to start before 
the entire file is loaded?

2. If so, would reducing the minimum amount of buffering help with this issue?

3. If so, could there be a player setting to set the amount of required data 
before playing begins?

Thanks!

Peter Bogdanoff
ArtsInteractive
___
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: Problems with Filter?

2022-03-12 Thread J. Landman Gay via use-livecode

On 3/12/22 2:29 PM, Brian Milby via use-livecode wrote:

Filter removes non-matching lines.


Unless you use "filter x without y".

--
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: Speed up a slow loop

2022-03-12 Thread J. Landman Gay via use-livecode
I have to thank everyone who helped me figure out my Boggle game. I've put the current file on 
Google Drive for anyone who wants to take a look. The scripts are open and I think I've removed 
all the testing cruft that accumulated over the last couple of weeks.


I'd be interested in any feedback or improvements. There's a Read Me in the zip file with more 
info.




Thanks so much to all! Contributors have been credited in the scripts.

Jacque

--
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: use-livecode Digest, Vol 222, Issue 8

2022-03-11 Thread J. Landman Gay via use-livecode

Ditto Boggle, the longer the word the more points you get.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On March 11, 2022 8:03:20 AM Craig Newman via use-livecode 
 wrote:



I play Scrabble, not Boggle.

Regardless of which dictionary people use, there are many more words of  8 
- 10 characters than of 4 - 6 characters.



Craig


On Mar 10, 2022, at 5:25 PM, doc hawk via use-livecode 
 wrote:



jacqui jawed,



filter tHugeDict without regex pattern "[qkxyz]”


I expect that would be faster.

But it will also bring words that are too long, although I have no idea 
whether or not there would be enough to matter.


___
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: Speed up a slow loop

2022-03-10 Thread J. Landman Gay via use-livecode

On 3/9/22 5:09 PM, Alex Tweedly via use-livecode wrote:


  - you can reuse the same tile later in a word (e.g.
Y  L  A
X  E  T

would allow "lately" as a word.

OR

- you can double-up on a tile (e.g. M I L would allow 'mill')
(more important if you're British than if you're American :-)


That's CHEATING! :) But while I've been testing I thought of a way I'd like to play. You can 
get credit for a made-up word if you can supply a clever enough definition for it that the 
other players agree is good enough.


Something like these neologisms (winners in the 2005 neologism contest,) only not real words 
like these are:


1. Coffee (n.), the person upon whom one coughs.
2. Flabbergasted (adj.), appalled over how much weight you have gained.
3. Abdicate (v.), to give up all hope of ever having a flat stomach.
4. Esplanade (v.), to attempt an explanation while drunk.
5. Willy-nilly (adj.), impotent.
6. Negligent (adj.), describes a condition in which you
absentmindedly answer the door in your nightgown.
7. Lymph (v.), to walk with a lisp.
8. Gargoyle (n.), olive-flavored mouthwash.
9. Flatulence (n.) emergency vehicle that picks you up after you are
run over by a steamroller.
10. Balderdash (n.), a rapidly receding hairline.
11. Testicle (n.), a humorous question on an exam.
12. Rectitude (n.), the formal, dignified bearing adopted by
proctologists.
13. Pokemon (n), a Rastafarian proctologist.
14. Oyster (n.), a person who sprinkles his conversation with Yiddishisms.
15. Frisbeetarianism (n.), the belief that, when you die, your Soul
flies up onto the roof and gets stuck there.
16. Circumvent (n.), an opening in the front of boxer shorts worn by
Jewish males


--
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: use-livecode Digest, Vol 222, Issue 8

2022-03-10 Thread J. Landman Gay via use-livecode

On 3/9/22 3:42 PM, doc hawk via use-livecode wrote:

Something like


^[manl]\{2,5\}$

which matches all strings of length 2 to 5 composed exclusively of the letters m, 
a, n, & l ?


I want to eliminate all words contains any of the letters in the group. I didn't get 
confirmation that my regex is correct but it seems to work:


  filter tHugeDict without regex pattern "[qkxyz]"

--
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: revOpenDatabase over SSH tunnel?

2022-03-10 Thread J. Landman Gay via use-livecode

Google translate is pretty capable and can do whole web pages.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On March 10, 2022 9:54:47 AM Ben Rubinstein via use-livecode 
 wrote:



Hi Matthias,

That is (a) good news and (b) very kind!

Or if it's easier, I have a German colleague - less technical skills, but
excellent language skills - if you sent me the guide in German, I could ask
her to have a go at translating it. (I'd still be very interested in the macOS
additional info though.)

Many thanks,

Ben


On 10/03/2022 15:31, matthias rebbe via use-livecode wrote:

Hi,

I've used SSH tunneling in the past to connect SQLPro Studio with remote 
MySQL databases, but never with LC.


And although i was pretty sure that it will work with LC, i just did a 
quick test with LC to be 100 percent sure.


Yes it's possible.

I have created a small quick start guide for Windows some weeks ago, but 
unfortunately that is in German.


I could translate that to English and add some additional information for 
macOS. But it would take 1 or 2 days.


If you could wait i could send you that guide.

Regards,

Matthias

Am 10.03.2022 um 12:34 schrieb Ben Rubinstein via use-livecode 
:



I need to access a (MySQL) database on a remote service - which has to be 
done over an SSH tunnel.


Has anyone done this in LiveCode? Is it trivial/possible/impossible?

TIA,

Ben

___
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: Speed up a slow loop

2022-03-09 Thread J. Landman Gay via use-livecode
My memory checks on the Pixel 5 had a maximum app memory use of about 375 
MB of RAM. I think that was before I removed the duplicate copy of the 
dictionary data though, which if so would bring the total down.


That said, other apps had more. Chrome browser used over 300 MB, Play Store 
411 MB,  my mail client 211MB. Those do okay on the phone. And I still 
don't understand why my cheap tablet with half the RAM handled anything I 
threw at it, including SOWPODS, without blinking.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On March 9, 2022 6:53:46 PM Neville Smythe via use-livecode 
 wrote:



After button 2, the real memory used is 121 MB (second run 131 MB)
   So splitting a 2.5 MB file into an array with 275 K keys required 75 MB 
   (this figure was duplicated in the second run)




___
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: Speed up a slow loop

2022-03-09 Thread J. Landman Gay via use-livecode
I'm not sure I followed all that, but did you account for diagonals? It sounds like you'd need 
to calculate all the possible polygons in a 5x5 grid, starting from anywhere, and sometimes 
wrapping around itself.


I don't have the math skills to do that but when I get this thing presentable you could take a 
look and see what you think.



On 3/8/22 8:32 PM, Quentin Long via use-livecode wrote:

It occurs to me that any word which is valid in Boggle must consist of an 
uninterrupted run of letters which are *right next to each other* on the board. 
Hence, any digraph which *doesn't* consist of a pair of neighboring letters, 
*cannot* occur in any valid word.
Since the "filter out all words with LettersNotOnTheBoard" idea worked, it may be that an 
analogous "filter out" operation can speed things up more. When setting up a new board...
-- Construct a list of all 576 ( = 26x26 ) digraphs—"aa,ab,ac, … zx,zy,zz". Or, more likely, 
construct that list ahead of time, and store the list in a stack property.-- Remove all digraphs which 
contain at least one letter that's not on the board.-- Make a list of all pairs of neighboring letters on the 
board. Since you don't know which direction an arbitrary digraph is running in, you'll want to include ZA as 
well as AZ.-- Remove all the digraphs present on the board from the ListOfAllDigraphs.-- Replace all the 
"," in the ListOfAllDigraphs with "|". (i.e., replace commas with pipes)
-- Put "[" & ListOfAllAbsentDigraphs & "]" into RegexPattern.-- Filter WordList 
without RegexPattern.-- ???-- Profit.
Hmmm... since this starts out with a complete list of all 576 digraphs, there's 
no need to do a separate regex filter on individual letters; filtering out the 
full list of unused digraphs should encompass filtering out unused letters. 
Hence, just one regex filter should do the job. I think.
On a 4x4 Boggle board, there are 72 neighboring pairs, hence a maximum of 144 
valid digraphs; on a 5x5 board, there are 110 neighing pairs, hence a max of 
220 digraphs. Hopefully, this won't add too much overhead to board setup.

"Bewitched" + "Charlie's Angels" - Charlie = "At Arm's Length" Read the webcomic at [ 
http://www.atarmslength.net ]! If you like "At Arm's Length", support it at [ 
http://www.patreon.com/DarkwingDude ].
___
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: Speed up a slow loop

2022-03-09 Thread J. Landman Gay via use-livecode

On 3/8/22 5:56 PM, Neville Smythe via use-livecode wrote:

reducing the list to around 20K words evidently removes the issue, which 
suggests multiple copies of the array are being created somewhere in (Jacque’s 
original ) search algorithm.


Yeah, I was keeping two copies without realizing it. Once I cleared unused variables I was able 
to reduce the amount of RAM being used by about 5MB.


--
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: Requirements for display PDF in a browser on Windows?

2022-03-09 Thread J. Landman Gay via use-livecode

I believe it's the Chromium engine.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On March 9, 2022 4:47:26 AM Klaus major-k via use-livecode 
 wrote:


Is "Chrome" the web engine that LC is unsing in the "browser widget" on 
Windows?





___
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: Speed up a slow loop

2022-03-08 Thread J. Landman Gay via use-livecode

On 3/8/22 3:22 PM, Quentin Long via use-livecode wrote:

Does it*matter*  whether a genuine word isn't on the board? If the board has no "L" in 
it, any word with an "L" won't be on the board, right?


Right, but what happens is that your eye tricks you and you skip a tile inadvertently or use 
the same one twice. In Boggle, words are only valid if the tiles touch consecutively, and you 
can only use a particular tile once per word. So it's easy to use the same "e" twice, or to 
skip a tile to get to an "e".


Don't believe everything you (think) you see.

--
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: Speed up a slow loop

2022-03-08 Thread J. Landman Gay via use-livecode

On 3/8/22 1:27 AM, Neville Smythe via use-livecode wrote:

Jacque seems to have found a satisfactory solution to her problem with the help 
of the excellent suggestions we have seen here. Since there seems to have been 
a lot of interest, I thought I would take the opportunity to report on an 
alternative method I had been exploring with Jacque via email.


And it was appreciated. Neville and I had an off-list conversation where he really put some 
effort into solving the problem. In the long run I decided it would be better to keep 
everything in LCS if possible since the timings were fixed, but his help was one more example 
of how great our community is.


--
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: Speed up a slow loop

2022-03-08 Thread J. Landman Gay via use-livecode

On 3/8/22 10:30 AM, Alex Tweedly via use-livecode wrote:
I guess I'm not convinced about VM space thrashing being the problem, certainly not due to the 
wordlist. It's 2.5 Mb - i.e. 0.02% of the real RAM in a Pixel 5. There may be something else in 
the app making the total VM space very large - but the wordlist wouldn't do it on its own.


I'm not sure either. A few days ago I did some tests trying to track the total amount of RAM 
that was used by looking at the memory stats in the developer options. I started the game, did 
some quick word lookups, quit and removed from memory, then checked usage. It isn't very 
specific but while my app was running the Pixel 6 had a maximum usage of 368MB after three 
tests, and the Pixel 5 maxed at 255MB. This isn't near the top of the list, other apps use more.


On the Pixel 5 today, with only background apps running, I'm using 55% of RAM which leaves 
3.5GB free. The Pixel 6 is using 70% with 2.4GB free. The OS on the 6 is bigger and I have more 
background processes running there.


In trying to reduce the memory footprint I wanted to see how much RAM my script locals were 
storing. The easiest way was to get the value of all of them, write them consecutively to a 
file, and let Finder tell me the size. I found that Alex's brilliant script was holding 5MB of 
data that I didn't need, so I emptied out the variables that were only used to calculate the 
board and kept the single one I needed for lookups. That file was 3K.


I need to test more today. Last night I thought I was all set, got a great board and quickly 
found 125 words. Everything was snappy and worked great. Then suddenly the app froze solid, 
nothing responded, and I had to quit to the launcher. Which was a shame because it was a really 
good board. That was before I wiped out the extra 5MB of unnecessary variable data, and there 
may be more I can do trim it down. But you'd think 2-3GB of free RAM could accomodate it.


If I can't figure it out soon, I'll give it to all of you to see if you can.

--
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: bug in Standalone Only

2022-03-07 Thread J. Landman Gay via use-livecode
Remote debugging allows you to step through the script. But we do have an 
error lookup utility that will tell you what the error codes mean.




--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On March 7, 2022 6:17:28 PM Bob Sneidar via use-livecode 
 wrote:



Jacque, don't you have a utility that can debug standalones?




___
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: Speed up a slow loop

2022-03-07 Thread J. Landman Gay via use-livecode

On 3/7/22 12:30 PM, Alex Tweedly via use-livecode wrote:


The boardwalk will find all valid words on the board. So that list of words can be used as the 
"dictionary" for the user's guesses - and now you have a "dictionary" of only a few hundred 
words, rather than than the many thousands of either the original or the filtered dictionaries.


And it's worth saying that the fast boardwalk only explores those potential words that are on 
the board, so there's no need to filter the dictionary for it.


The caveat - a user guess which isn't in the word list found by the boardwalk can be either 
"not a word" or "a word, but not present on the board", and you don't know which. If your UI 
needs to distinguish between those cases, you'd need to do another step of checking these 
(hopefully very few) failure cases against the full dictionary.


Wow, that's something else that didn't occur to me. I do, of course, have the word list from 
your board walk. At present I use it to provide a hint on demand if the user gets stuck. It's 
cheating, but hey, this is a one-person game and you're only cheating yourself. Nobody says you 
have to click that button.


I do need to discriminate between non-words and words not on the board, but the dictionary 
check is now so fast that it isn't a problem. The most time-consuming part is now the 
boardwalk, but it will be instant when I check the word list your script creates.


Have you heard the joke about how a camel is a horse created by a committee? That's not always 
true. This game is getting better and 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: use-livecode Digest, Vol 222, Issue 8

2022-03-07 Thread J. Landman Gay via use-livecode
Funny you should bring this up, as I was playing with it last night. Turns 
out that multiple filters do slow down on the Pixel so I was looking for 
the One True Regex.


I'm not great at this so would like verification from those who know if 
this is what I need:


put "[" & tUnusedLetters & "]" into tRegex
filter tHugeDict without regex pattern tRegex

It seems to work but I'm not positive. Does that look right?

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On March 7, 2022 3:01:19 AM Quentin Long via use-livecode 
 wrote:



My first attempt at the regex is…
filter lines of WordList without "*[AbsentChars]*"
However, that will remove all words that contain at least one letter in the 
specific character string "absentchars", which is not what I want. So, 
bring out the "do" keyword…
do ("filter lines of WordList without" && quote & "*" & AbsentChars & "*" & 
quote)





___
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: Speed up a slow loop

2022-03-06 Thread J. Landman Gay via use-livecode

On 3/6/22 1:43 PM, Alex Tweedly via use-livecode wrote:
Another thought on this problem; I think worth discussing even if the various suggestions so 
far have already got you a solution. I think it's a general observation ...


You don't really care how long it takes to do this.
What you care about is how long the user has to wait for your (the app's) 
response.

So don't wait until the user has found all their possible words (i.e. the app is doing 
effectively nothing for the 30 seconds or so that the user gets for each board). Check each 
word as they type it, and store the result. Then, when the 30-sec timer is up, you will have 
only one or two last words to test - all the others have already been checked.


So you never care about how long it takes to check 50 or so words against the dictionary - you 
check 49 of them one-at-a-time during the time you are otherwise idle. And the user has only to 
wait for the negligible delay while you check one or two words.


Good point for later. I was just testing on my Pixel 5, which was slow as hell before, and it 
just verified and marked up a user list of 108 words in 0 ms. I'm astonished at what we've done 
here. The longest word list I've been able to produce has about 225 words, so if it takes an 
extra ms I'm okay with that.


If it ain't broke...

The board walk took 179 ms for all 108 words because I ditched my old, juvenile, inefficient 
code and swiped yours. :) As Bill requested, I've marked all the stuff I used with credits for 
the people who suggested or provided code, so you're in there. The two most impactful changes 
were your board walk and Quentin's filtered dictionary idea, but there are also other improvements.


The one thing I still dont understand is why responses were so fast on my old Android tablet 
before I made changes. It's happy with the new code but there's little discernable difference 
in response time.


--
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: Speed up a slow loop

2022-03-06 Thread J. Landman Gay via use-livecode

On 3/6/22 9:40 AM, William Prothero via use-livecode wrote:

I've been following this thread in wonder at the creative ways of optimizing 
this word search. I hope that the code will be published somewhere, available 
to all, with credits to the multiple idea authors.


I can upload it to Sample Stacks when it's done, there's nothing proprietary about it. There's 
no point to submitting it to any of the app stores since 1) the name "Boggle" is copyrighted as 
well as the game itself, and 2) there are a gazillion word search games there anyway.


I wrote it for myself and anyone else who wants to play with it.

--
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: Speed up a slow loop

2022-03-06 Thread J. Landman Gay via use-livecode

On 3/6/22 7:33 AM, Alex Tweedly via use-livecode wrote:

Could you maybe post the code that you're using that takes 5ms ?


It does a bit more than your test, and I only estimated the number of user words since I'd 
tried so many things. I just tested again and this list has 173 words. The dictionary array has 
been reduced as per Quentin's suggestion.


I need to get two lists, one for correct words and another for incorrect words. I used to hit 
the array directly but my current method uses the difference command. Here's the lookup I'm 
using, sDictFile is a script local array:


function checkDictionary pList -- check dictionary for valid words
  put empty into tNonWords
  split pList by cr and tab
  difference pList with sDictFile into tNonWords

  set wholematches to true
  put fld "wordList" into tWList -- no longer the same as pList
  lock screen
  repeat for each key k in tNonWords -- mark non-words in list
set the textcolor of word 1 of line lineoffset(k,tWList) of fld "wordList" to 
"red"
  end repeat
  unlock screen
  if tNonWords <> "" then put keys(tNonWords) into sStats["unknowns"] -- stats 
for reporting later

  difference pList with tNonWords
  return keys(pList)
end checkDictionary

I thought the extra time might be due to the field updates, but when I added 8 incorrect words 
the time didn't change. It remains steady at 5ms.


So I switched back to hitting the dictionary array directly, and the time for 173 valid words 
and 8 invalid words dropped (on Mac) to 1. :)


function checkDictionary pList -- check dictionary for valid words
  set wholematches to true
  repeat for each line l in pList
if sDictFile[l] = true then
  put l & cr after tValidWords
else
  put l & cr after tNonWords
end if
  end repeat
  lock screen
  repeat for each line l in tNonWords -- mark non-words in list
set the textcolor of word 1 of line lineoffset(l,pList) of fld "wordList" to 
"red"
  end repeat
  unlock screen
  if tNonWords <> "" then put tNonWords into sStats["unknowns"]
  return tValidWords
end checkDictionary

So there you have it. I'll go back to the original method. I'm glad you 
questioned this.


--
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: Speed up a slow loop

2022-03-05 Thread J. Landman Gay via use-livecode

On 3/5/22 8:36 PM, Quentin Long via use-livecode wrote:


When you create a new board:

-- Make a list of all the letters which *are not* on the board


-- Filter out any word that contains at least one letter on the "not on this 
board" list

-- Use the thus-reduced wordlist for all purposes as long as the board doesn't 
change

This would add a bit of overhead to the process of setting up a new board, but 
if it results in time savings during play, the extra overhead might be 
worthwhile anyway.


Clever. Why didn't I think of that?

I can create a new board, calculate all letters that don't exist on it, and filter out all 
dictionary words containing them in something like 170 ms. It doesn't impact the setup at all. 
It reduces the dictionary from 171,000+ words to around 20,000 give or take, depending on the 
current board distribution. On one board it reduced it to about 11,000 words.


Combined with Ken's suggestion to use "difference", looking up a list of about 50 words in the 
filtered dictionary reduces the time from 2-4 seconds to about 40 ms. It varies, depending on a 
lot of things, but it's fast enough that you don't notice. That's on my Pixel 5; on the Mac a 
lookup takes 5ms. And I can do it all in LC script.


I love these little speed contests we have here. Thank you.

--
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: Speed up a slow loop

2022-03-05 Thread J. Landman Gay via use-livecode
Interesting idea. There are 25 letters on each board, some are always repeats. I think I'd need 
a good regex so I wouldn't have to run the filter command multiple times. How's your regex?


On the other hand, I suppose filtering out even just 2 or 3 letters might make a dent. I'll try 
that first.



On 3/5/22 8:36 PM, Quentin Long via use-livecode wrote:


So… a Boggle game. Hm. Seems to me that anything you can do to reduce the 
number of words you need consider at any given time would be a win. Maybe not a 
*big* win, but still a win. So perhaps give this idea a shot:

When you create a new board:

-- Make a list of all the letters which *are not* on the board


-- Filter out any word that contains at least one letter on the "not on this 
board" list

-- Use the thus-reduced wordlist for all purposes as long as the board doesn't 
change

This would add a bit of overhead to the process of setting up a new board, but 
if it results in time savings during play, the extra overhead might be 
worthwhile anyway.



--
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: Speed up a slow loop

2022-03-04 Thread J. Landman Gay via use-livecode

On 3/4/22 2:33 PM, Neville Smythe via use-livecode wrote:

Jacque, are you trying to keep the whole of SOWPODS in memory the whole time? 
That’s a 2.5MB file. It sounds to me like you are getting virtual memory 
thrashing.


I'm thinking the same thing, it's the only explanation. I stopped using SOWPODS and things got 
a bit faster after I substituted a file half that size.


I'm sure you and Bob are right about using a database, but I'm not a database person and I 
wouldn't know where to start. If anyone wants to help, you can have a free copy of my 
already-free game...


Probably we shouldn't cluter the list with that, but there's email.

--
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: Speed up a slow loop

2022-03-03 Thread J. Landman Gay via use-livecode

On 3/3/22 2:00 PM, Tom Glod via use-livecode wrote:

But what prevents you from loading all your data into an array?  and just
iterating over the keys or index of an array?  vs the lines of a long list.?
That will yield the fastest performance.


Right, it's an array, and I don't iterate. I just check the array key directly 
for a value.

I realize I'm kind of monopolizing things here. I wrote the game for myself and I ignored the 
speed issues and just played it on my tablet where it works fine, but now someone else wants to 
include it in a distributed app so I need to figure it out.


--
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: Speed up a slow loop

2022-03-03 Thread J. Landman Gay via use-livecode

On 3/3/22 12:53 AM, Mark Waddingham via use-livecode wrote:


If the difference between `the milliseconds` before the loop, and then after is 0 or 1 
millisecond - then that is how long it is taking. This means the issue is somewhere else. Are 
you sure there isn't anything you are doing either before that loop or after that loop which 
doesn't wait for ages (due to the ANRs you mentioned).


Today I'm getting slightly faster results. Repeatedly creating new boards is not slowing down. 
Maybe some background processes were stopped (there was a system update last night.)


The scoring handler does three things with the user word list, calling out to 3 
different handlers:
  1. Remove any duplicates
  2. Check the dicionary for the remaining words
  3. Walk the board for each word to ensure it's a legal path

I just ran tests with LC 9.6.6 on a Pixel 5 that timed each callout independently. Times are in 
milliseconds. No words were longer than 4 letters.


Dupes Dictionary Boardwalk word counts
12   1954   1404   -- 5 wds + 2 dupes, 2 illegals (total 9)
 1   1934   2542   -- 9 wds, all legal
 0   1960   1966   -- 7 wds + 2 illegals (total 9)
 0   1921   1142   -- 4 wds, all legal
17   2015   8321   -- 30 wds + 1 dupe, 1 illegal (total 32)

My recursive board walk could probably be optimized but for now I'm just focusing on the 
dictionary lookup. For reference, here is the whole handler:


function checkDictionary pList -- plist is the user words
  repeat for each line l in pList
if sDictFile[l] = true then put l & cr after tCheckedList
else put l & cr after tNonWords
wait 0 with messages  -- prevent ANRs
  end repeat
  set wholematches to true
  put fld "wordList" into tWList -- no longer the same as pList since 
removeDupes has already run
  repeat for each line l in tNonWords -- mark non-words in list
set the textcolor of line lineoffset(l,tWList) of fld "wordList" to "red"
  end repeat
  if tNonWords <> "" then put tNonWords into sStats["unknowns"] -- for later 
display
  return tCheckedList
end checkDictionary

I suppose the delay could be updating the field? But updating a field for 2 or 3 entries 
shouldn't take too long, should it? Also note that in the 2 runs where there were no illegals, 
the timings didn't vary much. The checkDupes handler also colorizes duplicate words, which is 
why those 2 runs have longer times.


If there are only 3 reasonable length words in pList (I.e. 3 lines) then there's no way that 
loop can take 4 seconds.


When testing I don't have patience to think, so all words are usually 3-4 
letters each.



Even stranger: on my cheapo Android tablet with 4 megs of RAM running
Android 9 the response is nearly instantaneous, even if the user list
has 200+ words. On my Pixel phone with 8 megs of RAM and Android 12
the response is slow enough to trigger the ANR with only 3 words. I'm
building for ARM 64.


This strongly suggests it is something else either on your phone, or in your code which your 
phone doesn't like I think.


I have two Pixels, a 5 and a 6, and they both behave the same (slow) way, though the 6 has the 
new Tensor chip. Yesterday I was wondering if the delay isn't the calculations but rather the 
screen redraws. I have a lot of controls stacked up on the card, though many are not visible. 
However, I've run the handlers with the screen both locked and unlocked with no changes.


--
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: Speed up a slow loop

2022-03-02 Thread J. Landman Gay via use-livecode

On 3/2/22 11:41 PM, Richard Gaskin via use-livecode wrote:

Jacque wrote:

 > so I'm not really looping through the keys, just looking for
 > a matching one. The loop is for each user word I need to find.
 > If there's no key, then the word isn't legal.

What is the ratio of keys whose values are "true" and those which are "false"?


There are no false values. The list of words is split as a set, so the keys are the dictionary 
words and all values are true.



And what is the ratio of writes to that array vs reads?


No writes at all, read only. The dictionary is stored gzipped as a custom property. On launch 
it is decompressed, split into an array, and stored in a script local. It's about 1.8 MB 
decompressed, I think. Maybe the array structure adds a bit. Not huge, but not small either. 
The SOWPODS dictionary was twice that size, but my puny tablet had no problem with it.


When the user submits a list of words, the handler sees if the array[userWord] is true. I used 
to just see if the value was empty, but either way it works the same. If no key is available, 
the word is illegal.


BTW, there's another place with a similar slowdown, but one thing at a time. As before, this 
second thing works fine on the tablet but is slow on my phone. Maybe the reason is the same.


--
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: Speed up a slow loop

2022-03-02 Thread J. Landman Gay via use-livecode

On 3/2/22 8:14 PM, Rick Harrison via use-livecode wrote:

That sounds like a memory leak!


I was thinking the same thing, but you'd think it would leak on my old tablet too, the one with 
far less memory.


--
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: Speed up a slow loop

2022-03-02 Thread J. Landman Gay via use-livecode

On 3/2/22 6:40 PM, Phil Davis via use-livecode wrote:
Did it ever work as expected, or has it always behaved this way on all devices? (If it ever did 
work right, I guess that points to a change that happened outside your code.)


I'm trying to remember. I've mostly been testing on my tablet where the board has a big enough 
hit region. It's only recently I've tried testing on a phone. I'll go back to some of my 
earlier builds and see how they behave.


Good thought.

--
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: Speed up a slow loop

2022-03-02 Thread J. Landman Gay via use-livecode

On 3/2/22 7:44 PM, Jerry Jensen via use-livecode wrote:

Instead of putting the keys into tCorrWdList and using
“among the lines of tCorrWdList",
how about using “among the keys of tCorrWdList”?

Judging from no knowledge of the internals but guessing what it must do:
“among the lines” has to look for all the line endings (unicode!),
but “among the keys” can jump along by constant offsets since
the keys are all fixed length hashes ?
The lines happen to be all the same length, but “among the lines” can’t assume 
that and has to go look.

Maybe I’m missing something again . . .
.Jerry


Actually, this is what I do:

  if sDictFile[L] = true then...

which I thought would be pretty fast since it's accessing the array directly. The array looks 
like this:


sDictFile
  word1 -> true
  word2 -> true
  word3 -> true

And my loop does this, for each user word:

  if sDictFile["word2"] = true then...

so I'm not really looping through the keys, just looking for a matching one. The loop is for 
each user word I need to find. If there's no key, then the word isn't legal. I hope that makes 
sense.


--
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: Speed up a slow loop

2022-03-02 Thread J. Landman Gay via use-livecode

On 3/2/22 6:32 PM, Rick Harrison via use-livecode wrote:

Eon’s ago I had a similar problem in Fortran.

My solution was to break up my huge array into 3 smaller
alphabetical arrays.  I had to first determine with some
if statements which of the 3 arrays I had to search.

The solution turned a glacially slow search into a very acceptable one.

You may want to try a similar solution.


That's a thought, though I hate to go there. I was using the SOWPODS dictionary which has a 
gazillion words, and switched to a different, shorter word list and that did help a bit.


I noticed today though that there's a more general slowdown overall. When I first launch the 
app it takes only a second to set up the board display. If I keep hitting the "new board" 
button repeatedly, each setup takes a bit longer.


--
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: Speed up a slow loop

2022-03-02 Thread J. Landman Gay via use-livecode

On 3/2/22 5:06 PM, Rick Harrison via use-livecode wrote:

What happens if you wait longer than 0?


It gets slower. :(

--
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: Speed up a slow loop

2022-03-02 Thread J. Landman Gay via use-livecode

On 3/2/22 6:19 PM, Jerry Jensen via use-livecode wrote:

Could using “is among the keys of sDictFile” instead of the loop be another 
advantage?


I need to loop through all the user words, checking each one against the dictionary. I.e. the 
loop is going through a short list of user entries, not the entire dictionary.


Weird, isn't it?

--
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: Speed up a slow loop

2022-03-02 Thread J. Landman Gay via use-livecode

On 3/2/22 5:12 PM, Devin Asay via use-livecode wrote:

Have you tried

put the keys of sDictFile into tCorrWdList
repeat for each line I in pList
if I is among the lines of tCorrWdList then
   put I & cr after tCheckedList
else
   put I & cr after tNonWords
end if
end repeat


Yeah. No change. But I do appreciate the reply. I've been trying to figure this 
out for 2 days.

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


Speed up a slow loop

2022-03-02 Thread J. Landman Gay via use-livecode
In my Boggle game I have an array containing dictionary words as keys, split as set, so all 
values are "true". I need to compare those keys with a list of user words and get back a list 
of good words and a list of illegal words.


The loop takes forever. Here it is (sDictFile is a script local):

  repeat for each line l in pList -- pList is the user word list
if sDictFile[l] = true then put l & cr after tCheckedList
else put l & cr after tNonWords
wait 0 with messages  -- prevent ANRs
  end repeat

I added the wait because my Android phone was putting up an "app not responding" warning while 
the loop was running (or just after, hard to tell.) The loop should be much faster than that. 
When I added some timing checks though, the timer says the loop takes between 0 and 1 
millisecond, and yet the wait on screen remains.


With a 3-word user list, the loop takes 4 seconds. With an 8 word user list the loop takes 6 
seconds. The more user words, the longer the wait.


Even stranger: on my cheapo Android tablet with 4 megs of RAM running Android 9 the response is 
nearly instantaneous, even if the user list has 200+ words. On my Pixel phone with 8 megs of 
RAM and Android 12 the response is slow enough to trigger the ANR with only 3 words. I'm 
building for ARM 64.


I've tried any number of workarounds without luck, on both LC 9.6.6 and LC 10.0.0. Any ideas? I 
have a feeling it isn't the script per se, it's something else.


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

2022-03-01 Thread J. Landman Gay via use-livecode
Here's the good part. Once I realized my mistake it worked fine, I built 
the app and it vibrated as expected. I found it massively annoying so I 
took it out.


Such is life.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On March 1, 2022 10:28:01 AM Tom Glod via use-livecode 
 wrote:



I have activated vibrate on my android build for my StarterStack and it
worked fine.  My Phone is running android 8.1.
It mostly vibrates, but there are moments when it doesn't on one particular
button.
I hope that helps.

On Mon, Feb 28, 2022 at 7:49 PM scott--- via use-livecode <
use-livecode@lists.runrev.com> wrote:



>  I wish the docs would specify that you need to either include a library
or a permission for commands that require those.

+1
___
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: MobileVibrate

2022-02-28 Thread J. Landman Gay via use-livecode

On 2/28/22 12:50 PM, J. Landman Gay via use-livecode wrote:
So, no one has tried to use the mobileVibrate command on Android?  I don't want to submit a bug 
report if no one else can confirm.


Okay, I'm glad I posted here before submitting another "not a bug" report. There's a checkbox 
in Android standalone settings to allow permission for vibration. I hadn't noticed it before.


So duh.

This isn't the first time I've missed a requirement. I wish the docs would specify that you 
need to either include a library or a permission for commands that require those. The original 
docs did that but the new dictionary additions don't.


--
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 to install XCode essentials only for LiveCode builds

2022-02-28 Thread J. Landman Gay via use-livecode

On 2/28/22 1:42 PM, Klaus major-k via use-livecode wrote:

We do not have to install the complete (ca. 16 GB) Xcode package to create a 
standalone with LC.
Just install the neccessary command line tools via the TERMINAL, enter:
xcode-select --install

And it will download all neccessary stuff.


Also, you may need to use sudo, as per Panos:

sudo xcode-select --install

--
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: Extracting Unicode text from Oracle over ODBC

2022-02-28 Thread J. Landman Gay via use-livecode
With the caveat that I know nothing about it, the normalize and formSensitive functions sound 
related.


On 2/28/22 11:50 AM, Ben Rubinstein via use-livecode wrote:
I'm trying to extract text from an Oracle database, via ODBC, on Windows. (Using the 64 bit 
"Oracle in instantclient_19_5".)


Generally fine, except that where the text contains Unicode characters beyond the Windows 
Latin1/CP512 character set, I'm not getting them.


I'm not getting random garbage; I'm getting a sensible transliteration, e.g. "n" for "ň" 
(n-caron). So this isn't simply getting the bytes and misinterpreting them.


Per 
https://community.oracle.com/tech/apps-infra/discussion/2424496/issue-with-character-set-conversion-using-oracle-odbc-client, 




The conversion for the ODBC driver is performed by OCI to/from UTF-16 and
it is independent of the NLS_LANG character set. If the C++ application is
written in the ANSI mode (does not use wide character data types),
Microsoft ODBC Manager will convert between the application and the Oracle
ODBC driver, between system code page (Cp 1252) and UTF-16.


The ODBC driver has a checkbox "Force SQL_WCHAR Support". I've tried both settings of this 
checkbox. Depending on the setting, I have to take a different approach to retrieving the data 
in order not to get garbage (passing a variable name to revDatabaseColumnNumbered and then 
using uniDecode). But when I don't get garbage, I also don't get the characters with diacritics 
- but I do get the correct character.


Does anyone have experience of this? Do I need to modify the SQL Select statement in some way 
to get the correct version of the data?


TIA,

Ben


___
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: MobileVibrate

2022-02-28 Thread J. Landman Gay via use-livecode
So, no one has tried to use the mobileVibrate command on Android?  I don't 
want to submit a bug report if no one else can confirm.

--
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: Into the future

2022-02-28 Thread J. Landman Gay via use-livecode
Right. The blockage is in Gatekeeper, so any user running Mac Catalina or 
newer will get the warning regardless of how the app was created.


There's a way to download only the command line tools without needing to 
install Xcode. I wonder if that might work for you. I didn't save the info 
but someone here could probably tell you. Or you could search the list 
archives, I think it was Ralph DiMola who mentioned it.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On February 28, 2022 11:53:02 AM Paul Dupuis via use-livecode 
 wrote:



It isn't really a LiveCode ting. This is Apple placing these
requirements on their developers no matter what language you write code
in for the macOS.

On 2/28/2022 12:43 PM, Bob Sneidar via use-livecode wrote:
I guess the question now becomes, what is the last Livecode app that can 
create standalones without requiring these certificates? I may need to 
plant my flag there and go no further.


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


Re: Into the future

2022-02-28 Thread J. Landman Gay via use-livecode
Since the app is only for internal use, you might be able to use the bypass 
that opens an unnotarized app. You'd need to give directions to the users.


https://support.apple.com/en-us/HT202491

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On February 28, 2022 11:45:29 AM Bob Sneidar via use-livecode 
 wrote:


I guess the question now becomes, what is the last Livecode app that can 
create standalones without requiring these certificates? I may need to 
plant my flag there and go no further.


Bob S


On Feb 28, 2022, at 09:36 , Bob Sneidar via use-livecode 
 wrote:


It occurs to me that this may drive a lot of hobbyist Livecoders away, and 
discourage others from coming onboard. There ought to be some kind of 
disclaimer on the website, since it is a paid product only now. I'd be a 
bit miffed if I bought an application for developing new apps and didn't 
know that there would be more cash outlay required before it would work.


Bob S


On Feb 28, 2022, at 09:25 , Paul Dupuis via use-livecode 
 wrote:


No, you really have to go through all of that. The few helper stacks out 
there are just front ends (using the shell command to call command line 
utilities from xcode) that make it easier once you have everything set up.


Yes, it sucks.


On 2/28/2022 12:18 PM, Bob Sneidar via use-livecode wrote:
Okay, so I am at the point that I cannot build apps without codesigning and 
notarizing. Livecode will throw an error now if I try and don't have these 
certificates installed. Great.


So I have been going through the tutorial, and I see I have to be an Apple 
Developer, which means I have to shell out yet another $100 per year. Fine, 
I did that, even though my app is for internal consumption only.


Now It appears that for me to get the certificates needed to create a Mac 
standalone, I need xCode! Okay, I go to download xCode, and it will not 
install because my MacOS is too old! 10.15.1 is apparently ancient! So I am 
at the point now where I am asking myself, is this really worth it? After 
all the back and forth on the list where people's certificates expire, or 
the version of xCode they are forced to use isn't compatible with one thing 
or another, is building Mac standalones really worth it?


So my question is, do I really have to go through all this just to create a 
Mac standalone from livecode? Or do these other utilities, 
mrSignNotarizeHelperV3 for example, eliminate the need for all of that?


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



___
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: MobileVibrate

2022-02-27 Thread J. Landman Gay via use-livecode
Yeah, and the list gets longer all the time. I'm not sure what that binary 
conflict in the bug report means though.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On February 27, 2022 4:02:43 PM Ben Rubinstein via use-livecode 
 wrote:



Hi Jacque,

On 27/02/2022 21:00, J. Landman Gay via use-livecode wrote:

I didn't see an inclusion for it, so either I missed it or we don't need one.
(It would sure help if we could search for inclusions in that long list.)


According to this
https://quality.livecode.com/show_bug.cgi?id=18199

which you, me, and Mike Kerner have all commented on: Ali LLoyd apparently
submitted a PR to improve this situation, which has been awaiting a merge for
over four years??

It looks great in the gif here:
https://github.com/livecode/livecode-ide/pull/1809

Ben

___
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


MobileVibrate

2022-02-27 Thread J. Landman Gay via use-livecode

Does mobileVibrate work for anyone? It isn't working for me on Android 12.

I didn't see an inclusion for it, so either I missed it or we don't need one. (It would sure 
help if we could search for inclusions in that long list.)


--
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: ios redraws just stop

2022-02-22 Thread J. Landman Gay via use-livecode

An old standby from Panos:

set the backcolor of this card to the backcolor of this card

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On February 22, 2022 9:37:39 AM Mike Kerner via use-livecode 
 wrote:



is there a way to force lc to redraw on ios? iphonesetredrawinterval 1
doesn't do it.
it seems that i have managed to find a way to make lc stop redrawing.
it's difficult to test without forcing a redraw
___
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: Message box failure in 10.0.0?

2022-02-21 Thread J. Landman Gay via use-livecode

Probably not related, none of my test stacks call out to external files.

I relaunched LC 10.0.0 and everthing works again. The only difference is that I closed the App 
Overview before quitting and then reopened it manually after the new launch. I don't know if 
that made the difference, or if something just got screwy while running the IDE. The same issue 
happened in LC 10.0.0dp1 though and I went back to 9.6.6 rather than deal with it.


I'll see if the problem recurs over time.


On 2/21/22 7:20 AM, Paul Dupuis via use-livecode wrote:
We're tracking down a Big Sur "bug/feature" that I don't have a recipe stack for yet, but I'll 
explains as it *might* be related?


We've found that if a stack is internal to the .app under Big Sur (and presumably Monterey) 
that has a video player, the video in the player plays and pauses normally (i.e the UI is 
responsive to any messages to the player or menus that control the player). i.e it behaves as 
expected - normally.


However, if the player is in a LOCAL stack, but loaded from OUTSIDE the .app package (say from 
the desktop or elsewhere in the Applications folder, but outside the BUNDLE), then when the 
video is played, the UI becomes non-responsive until the video is finished playing.


We have seen other issues relating to file and folder actions that FAIL under Catalina and up 
if performed from a loaded external stack but work if loaded from a substack as part of the 
.app build. (Stacks in the app bundle, but external to the .app standalone may work - we've not 
tested)


We think this is due to Apple's permission scheme under Catalina and above and how it tries to 
detect resource access in real time and perhaps something about the stack being external sets 
the permissions system off.


I mention it in the unlikely case you are loading a external stack prior to your message box 
tests.




--
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: Message box failure in 10.0.0?

2022-02-20 Thread J. Landman Gay via use-livecode
Thanks, looks like it's just me. Glad I asked here first, but I have no 
idea what might be causing it. .


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On February 20, 2022 11:13:33 PM Terry Judd via use-livecode 
 wrote:



Just downloaded and tested and it works ok for me on Monterey.

Terry

From: use-livecode  on behalf of J. 
Landman Gay via use-livecode 

Date: Monday, 21 February 2022 at 3:26 pm
To: How to use LiveCode 
Cc: J. Landman Gay 
Subject: Re: Message box failure in 10.0.0?
Thanks for the reply. I should have mentioned I'm on Mac OS X Big Sur.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
On February 20, 2022 6:21:01 PM Paul Dupuis via use-livecode
 wrote:


These are working for me in the message box under LC 10.0.0dp2 (64bit)
under Windows 10

On 2/20/2022 6:48 PM, J. Landman Gay via use-livecode wrote:

I'm trying out LC 10.0.0dp2 and the message box doesn't seem to be
working. I'm just checking here before I report it, in case it's just
me. None of the following work, the message box doesn't error but no
response appears:

put the number of cds
put the number of cds of this stack
put the number of cards of stack "mystack"
the rect of stack "mystack"
edit script of 
etc.

This works sometimes:
set the rect of this stack to 

I'm not positive but it seems that "put" isn't working but "set" does.
Maybe.

Also, keyboard shortcuts do not open the script editor, nor do
contextual menus show when Cmd-Control-Shift clicking. The only way I
can currently get to scripts is via the property inspector button or
the Objects menu. Cmd-opt-click doesn't open scripts of controls, and
since those aren't in the Object menu I need to use the property
inspector since typing "edit script of btn 


___
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: Message box failure in 10.0.0?

2022-02-20 Thread J. Landman Gay via use-livecode

Thanks for the reply. I should have mentioned I'm on Mac OS X Big Sur.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
On February 20, 2022 6:21:01 PM Paul Dupuis via use-livecode 
 wrote:



These are working for me in the message box under LC 10.0.0dp2 (64bit)
under Windows 10

On 2/20/2022 6:48 PM, J. Landman Gay via use-livecode wrote:

I'm trying out LC 10.0.0dp2 and the message box doesn't seem to be
working. I'm just checking here before I report it, in case it's just
me. None of the following work, the message box doesn't error but no
response appears:

put the number of cds
put the number of cds of this stack
put the number of cards of stack "mystack"
the rect of stack "mystack"
edit script of 
etc.

This works sometimes:
set the rect of this stack to 

I'm not positive but it seems that "put" isn't working but "set" does.
Maybe.

Also, keyboard shortcuts do not open the script editor, nor do
contextual menus show when Cmd-Control-Shift clicking. The only way I
can currently get to scripts is via the property inspector button or
the Objects menu. Cmd-opt-click doesn't open scripts of controls, and
since those aren't in the Object menu I need to use the property
inspector since typing "edit script of btn 


___
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


Message box failure in 10.0.0?

2022-02-20 Thread J. Landman Gay via use-livecode
I'm trying out LC 10.0.0dp2 and the message box doesn't seem to be working. I'm just checking 
here before I report it, in case it's just me. None of the following work, the message box 
doesn't error but no response appears:


put the number of cds
put the number of cds of this stack
put the number of cards of stack "mystack"
the rect of stack "mystack"
edit script of 
etc.

This works sometimes:
set the rect of this stack to 

I'm not positive but it seems that "put" isn't working but "set" does. Maybe.

Also, keyboard shortcuts do not open the script editor, nor do contextual menus show when 
Cmd-Control-Shift clicking. The only way I can currently get to scripts is via the property 
inspector button or the Objects menu. Cmd-opt-click doesn't open scripts of controls, and since 
those aren't in the Object menu I need to use the property inspector since typing "edit script 
of btn 

I've double-checked the Messages button in the toolbar and toggled it a few times, but no 
change. I tested on a couple of stacks in case it was stack-related.


Just me?

--
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: Install LC on Chromebook

2022-02-19 Thread J. Landman Gay via use-livecode

On 2/17/22 5:40 PM, Mark Wieder via use-livecode wrote:

On 2/17/22 13:52, J. Landman Gay via use-livecode wrote:

Now I can't uninstall it. The tutorial says to use "sudo apt-get remove 


There's a tutorial?


Not exactly, I meant the web page I was reading when trying to get this to work.


Heh.
You installed for just you?


Yes. You and everybody else said that was the way to do it. :)


In that case
cd ~/.runrev/components
livecode/setup.x86_64 uninstall


Thank you, this seemed to work. I got the LC uninstaller dialog and it did its 
thing.

I still have the dream that someday the team will figure out that it's actually easy to create 
a real linux installer and then we won't need to jump through these hoops.


I'm just glad you know what to do. I do wish LC would give some attention to the 
Chromebook/Linux/Android universe. That's where the education market is. I didn't expect LC to 
run perfectly on Chromebook Linux, but I also didn't think it would crash so spectacularly. 
Teaching LC to students on Chromebooks is definitely right out. Which is a shame because there 
are so many of them now.


--
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: mobile scroll indicator position

2022-02-19 Thread J. Landman Gay via use-livecode
I've seen similar things if the target field isn't scrolled at 0,0 before the native scroller 
is created. If that's not the problem, it would be helpful to see your mobileControlCreate handler.


On 2/19/22 9:37 AM, Mike Kerner via use-livecode wrote:

also, indicatorInsets are 0,0,0,0
I tried setting hscroll, but it's stuck at -34

On Sat, Feb 19, 2022 at 10:25 AM Mike Kerner 
wrote:


I have an ios scroller overlaying a text field, but the scroll
indicator/thumb is pretty far to the left of the rect of the scroller and
of the contentRect. The scroller operates to the right of the indicator, so
it's obviously offset left, somehow. What am I missing?



--
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: Install LC on Chromebook

2022-02-17 Thread J. Landman Gay via use-livecode

On 2/17/22 3:35 PM, Mark Talluto via use-livecode wrote:

Has anyone tried the LC 10 web export feature on a Chromebook? Maybe that would 
be a path that is more friction free?


I haven't, but if it works on the Chrome browser it'd probably work on a Chromebook where the 
default browser is Chrome. But that won't give me the IDE I wanted to use.


Now I can't uninstall it. The tutorial says to use "sudo apt-get remove " but it 
can't find LC. I tried the name of the installer file, the name of LC in the app drawer, and 
just "LiveCode" but none of those find it. And the desk I put all the LC windows into is now 
blank and empty, though the LC app does show in the app drawer.


So, Linux gurus, what command do I use to get back the space that LC is using?

--
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: Install LC on Chromebook

2022-02-17 Thread J. Landman Gay via use-livecode

On 2/17/22 2:00 PM, Mark Wieder via use-livecode wrote:
Granted I know next to nothing about chromebooks, but it appears that root access is possible 
according to


https://www.howtogeek.com/210817/how-to-enable-developer-mode-on-your-chromebook/


I ran my old Lenovo in Developer mode exclusively because that used to be the only way to 
install third-party apps on a Chromebook, and I wanted to install the Android LC apps I built. 
Mostly they worked okay until recently.


But you do lose a lot of the security measures when you do that. Google recently provided a way 
to run in normal secure mode and install your own apps via adb. That does work, I'm happy to 
say. So I decided to keep my new Chromebook in normal mode which is largely unhackable.


But no go on the LC experiment. The machine went down in flames.

--
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: Install LC on Chromebook

2022-02-17 Thread J. Landman Gay via use-livecode

On 2/17/22 2:49 PM, J. Landman Gay via use-livecode wrote:

On 2/17/22 2:45 PM, J. Landman Gay via use-livecode wrote:

When I closed it I got a blank white screen with no native way to get rid of it.


Oh wait a sec. In the app overview I see that every single palette is in its own window. Is 
that normal? Is there a way to collect them into a single entity when launching the app?




Okay. The white screen was the backdrop. I put all the windows into their own desk, turned off 
the backdrop, made a new stack which also opened in a separate window which I had to move to 
the LC desk.


Even with the adjustable parts of the UI, the text is so tiny it's almost unreadable. Looks 
about 6-8 points.


I opened the old app browser and didn't see my stack. Opened prefs and the app browser jumped 
underneath it to a position above the top of the screen so I couldn't grab it and pull it back 
down. Closed prefs, opened the message box, typed "set the top of the mousestack to the 
mousev", positioned the mouse, hit return.


Nothing happened for a moment, then the fan went on, the mouse froze, the keyboard froze, the 
fan went wild, the screen went black, the power key didn't work until finally the machine shut 
itself off.


So much for that experiment. I guess I have to uninstall from the commandline.

I'm sad.

--
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: Install LC on Chromebook

2022-02-17 Thread J. Landman Gay via use-livecode

On 2/17/22 2:45 PM, J. Landman Gay via use-livecode wrote:

When I closed it I got a blank white screen with no native way to get rid of it.


Oh wait a sec. In the app overview I see that every single palette is in its own window. Is 
that normal? Is there a way to collect them into a single entity when launching the app?


--
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: Install LC on Chromebook

2022-02-17 Thread J. Landman Gay via use-livecode

On 2/17/22 12:51 AM, Mark Wieder via use-livecode wrote:

I haven't, but...
I'll assume this is an intel chromebook, not an arm processor.


Yes, Intel i3.


LC doesn't have a "normal" linux installer, i.e., .rpm or .deb file.
You have to download the installer then change the permission bits to allow it 
to be executable.
If you can change the permissions via the chromebook ui then do it that way. Otherwise from the 
commandline you could just say

chmod +x LiveCodeInstaller-9_6_6-Linux.x64

After that you can launch the installer. I assume (silly me) that you can double-click an 
application on a chromebook to launch it, but if not you can launch it via the commandline:


./LiveCodeInstaller-9_6_6-Linux.x64

Now you have the choice of installing for just you or for everyone. You'll make life a lot 
easier on yourself if you select "just you".


...don't get me started on the (lack of an) uninstaller.


This worked! :) I had to set the executable bit from the commandline, everything else worked 
fine. I found my license and got the Intro startup window. When I closed it I got a blank white 
screen with no native way to get rid of it. No palettes, interface, nothing. Just white.


I was pretty excited there for a minute.


--
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: Install LC on Chromebook

2022-02-17 Thread J. Landman Gay via use-livecode

On 2/17/22 12:35 PM, Stamatis Kapetanakis via use-livecode wrote:

I haven’t installed LC on chrombook. But I did install XOJO.

Only it turns out you can’t run XOJO in ChromeOS’ Linux because of missing 
dependencies and you don’t have access to install. The solution up to dual-boot 
in GalliumOS which is specifically tailored to chromebooks. Easy to find 
tutorials  online on how-to.
It was then easy to install the Debian package. I presume all of this holds 
true more or less for LC.

Ultimately I gave up on it because chrome hardware is underpowered - it runs 
ChromeOS beautifully but the cheap Asus chromebook I have just struggled with 
“proper” software. Plus storage is usually very limited on such devices and i 
ended up calling it a day on an interesting experiment.

This was 2-3 years ago and perhaps things may have changed. YMMV…
Stam


That fits what I saw too. The tutorial I was following suggested installing the Linux version 
of Slack. It did have a .deb file but when I tried to install it said there was a dependency 
(libappindicator3-1) and it wasn't installable. I even tried to apt-get it with the same 
result. I'm not sure why the tutorial, from XDA who should know, said it would install. It was 
a fairly recent post: 


I saw something about "FlatPack". I'll have to look it up again. I think it's supposed to get 
around some of these issues.


I didn't plan to actually do much programming with the Chromebook but there are lots of times 
when I'm using it and I want to look up something or test something quick.


ChromeOS has come a long way in the last few years. My new Chromebook has lots more RAM and a 
bit more storage, expandable to 256GB. It's running an Intel i3 CPU and is a lot snappier than 
my older Lenovo. I'd like to get LC running, even if it's a bit slow and dodgy.


And a note to the team: Education is using Chromebooks heavily, and the numbers of Chromebooks 
in education have exceeded all other laptops recently. If LC really wants to hit up education 
markets, some attention to Chrome OS would be a good start. I was building Android apps that 
ran on Chrome OS but they broke when LC updated the graphics library recently.


I haven't reported it because technically LC doesn't support Chrome OS. But I wish it did, and 
it would be an advantage to the company as well.


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


  1   2   3   4   5   6   7   8   9   10   >