Re: On API keys...

2022-06-24 Thread Mark Wieder via use-livecode

On 6/24/22 10:04, Mark Waddingham via use-livecode wrote:

The only way to use these keys is from server scripts running on a 
server which you do your best to maintain the security of. Ideally these 
keys should be stored in files which are only readable by specific users 
- usually the web-server user which is running the backend scripts which 
needs to make the requests.


Or as server environment variables retrieved only by server scripts 
which are not user-accessible.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Would anyone miss convertOctals?

2022-06-10 Thread Mark Wieder via use-livecode

On 6/10/22 10:12, Phil Davis via use-livecode wrote:

"saw"... heh

I was thinking along those lines as well. Heck, I just saw my 
octalmologist last week.


Phil Davis


On 6/10/22 8:16 AM, Bob Sneidar via use-livecode wrote:
So it has nothing to do with eye surgery?? Dang. I thought I was going 
to get a prize or something.


Bob S


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Would anyone miss convertOctals?

2022-06-09 Thread Mark Wieder via use-livecode

On 6/9/22 05:44, Mark Waddingham via use-livecode wrote:
So I'm currently sitting here about to embark on fixing 
<https://quality.livecode.com/show_bug.cgi?id=23653> (which is the final 
thing to sort out before being able to merge my constant expression 
patch) and I was reminded of 'convertOctals'.


Wow... we have a convertOctals feature.
I obviously need to spend more time with the dictionary.

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Generating Random numbers to conform a distribution

2022-06-07 Thread Mark Wieder via use-livecode

On 6/7/22 20:24, J. Landman Gay via use-livecode wrote:

I don't have an answer. But apparently it's a common problem:

https://xkcd.com/2626/


Chortle.

Back in the day I would generate a random number by back-biasing a 
germanium diode and hook it up to an analog-to-digital converter. Great 
white noise generator too.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Case sensitivity in Livecode ??

2022-06-07 Thread Mark Wieder via use-livecode

On 6/7/22 17:55, Alex Tweedly via use-livecode wrote:

So you cannot put "constant k = 17" in an included file (outside of a 
handler) and have it take effect anywhere except within the included 
file !?!


Ah. I see I must be projecting my desired expansion of the "include" 
command onto what I expect that command to do in the server context.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Case sensitivity in Livecode ??

2022-06-07 Thread Mark Wieder via use-livecode

On 6/7/22 10:55, Mark Waddingham via use-livecode wrote:

I don't buy the 'cognitively different' argument


Mark-

Thanks for the longish explanations there. I think we'll just have to 
disagree on the cognitive thing then - I normally would expect functions 
to return the result of some action, not just hand me back a constant.
No worries though. Ruby deals with this very neatly: even though 
everything is an object the syntactic sugar allows you to code them like 
"normal" constants, the same way we can refer to xtalk global functions 
as "the capsLockKey" instead of "capsLockKey()".


FWIW, I'm not entirely sure whether what you (Mark) want from 'global 
constants' is quite the same as what Alex wants from 'global constants', 
and I'm not entirely sure whether what I *think* you both mean when you 
ask for 'global constants' is what you are actually thinking of when you 
ask for 'global constants'...


Hah! Well, whatever anyone else means, I'd like constants to obey the 
inheritance of the message path. An 'effective' constant if you will. 
But *PLEASE* don't implement that particular syntax.




In that vein, what would be helpful is, instead of just going 'can we 
have global constants', propose problems you need to solve / would like 
to solve and use-cases you have encountered where the existing xTalky 
feature set is not sufficient to solve it in some reasonably elegant 
fashion without 'global constants'.*


Thankfully I think there is nothing in this regard that is not 
expressible in the existing xtalk syntax. I use getter functions in my 
stack scripts (I don't think I've ever done that for a constant in a 
backscript) and sometimes I also just copy and paste constant declarations.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Case sensitivity in Livecode ??

2022-06-07 Thread Mark Wieder via use-livecode

On 6/7/22 00:18, Mark Waddingham via use-livecode wrote:

How is that any better than putting something like this in a library or 
back script:


     function gkMyMagicValue
     return 17
     end gkMyMagicValue

Including the global declaration its the same number of lines (indeed 
less, as you'd need to put a global declaration in every script which 
wanted to use said global constant...).


1. Because it's a function, not a constant.
  put gkMyMagicValue() into tVar
is cognitively different from
  put gkMyMagicValue into tVar

Something like 17 is a trivial case. Something more like real world 
usage would be


constant kRootURL="http://example.com/aUrlThatMightChange/api/v2;

2. Because the server already build supports the "include" keyword which 
would neatly solve the issue, but none of the other platforms do. Why?


3. Because every other language I've used has global constants and makes 
this easy. It's only xtalk that makes this hard. If an LC goal is to 
provide a tool for learning coding then multiple definitions of the same 
constant is a paradigm that is not transportable to other languages, and 
indeed will probably result in a compiler error.


4. Because it gets tiresome having to explain to new developers that you 
have to declare constants in multiple scripts even though it's the same 
constant you already declared and the workaround is to use a getter 
function as you described.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Substacks

2022-06-05 Thread Mark Wieder via use-livecode

On 6/5/22 05:51, General 2018 via use-livecode wrote:

Hi,

So using real substacks being opened by go to from mainstack and then closing 
from substack returning to mainstack all working well, thanks for the previous 
suggestions.

Just found some odd behaviour :-

The mainstack and substacks have items in PreOpenStack.

The substack has for example,

On preopenstack
Set the foregroundcolor of fld “xyz” to red
End preopenstack

This works on the first pass of go to substack from mainstack. But if the 
substack is closed and go to substack from mainstack is used again the fld 
“xyz” is not found.

To get round this I added the cd in the substack - fld “xyz” of cd “123” .

Two questions :-
1. Is this the expected behaviour ?
2. Why does it work on the first pass without using - of cd “123”


A little hard to diagnose from a distance but here are some thoughts:

First of all, per the docs, the preOpenStack handlers should be in the 
first card of the stacks, not in the scripts of the stacks themselves.


Then it sounds like maybe you have multiple cards in your substack and 
the currently selected card is not card "123" at the time you invoke the 
goto command the second time. If the (badly-named) destroyStack property 
of the substack is set to false (the default) then the substack will 
still be in memory and your preOpenStack handler will be triggered at 
its current card setting.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Substacks

2022-05-28 Thread Mark Wieder via use-livecode

On 5/28/22 07:15, General 2018 via use-livecode wrote:

Hi ,

New to substacks - I have a “mainstack” used as a menu page for 2x “substacks”

When “substacks” opened from “mainstack” they open fine using — go to stack 
“xyz”

The problem is closing of the “substacks” using - close stack, go to 
“mainstack” or close this stack it always closes (quit) everything. Need 
“mainstack” to reappear/remain ?

Looked at docs and other posts. But stuck no doubt I have missed something.


Do you have a closeStack handler in the script of the mainstack?


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: A test, move along

2022-05-27 Thread Mark Wieder via use-livecode

On 5/27/22 16:03, doc hawk via use-livecode wrote:

As a professor, I’ll grade it a B-.


I thought that was a pessimistic blood type.

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: devcon 2022 recap

2022-04-28 Thread Mark Wieder via use-livecode

On 4/28/22 12:54, Richard Gaskin via use-livecode wrote:

To clarify:

"low code" is just a modern term for what LC's been providing the whole 
time.


"no code" is what Appli does, an adjacent but very different market for 
those whose needs can be satisfied without the nuance scripting provides.




I think what I saw in Mark's keynote is the ability in appli do some 
coding, just not to any extent the deep capabilities of LiveCode. Thus 
"low code".


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: devcon 2022 recap

2022-04-28 Thread Mark Wieder via use-livecode

On 4/28/22 12:02, Mike Kerner via use-livecode wrote:


* The whole low-code piece...meh. It feels like they're chasing another
dead end.


Oh, I gotta disagree there. Just a different target audience.

Maybe not for those of us already in the flock, but I think what's been 
missing from LiveCode is that first-user experience. The one when you 
first launched HyperCard and were able to connect a button to a new card 
without doing anything more than point and click and bang! you had a 
working application. I think appli can be the gateway drug to LC that 
expands the subscriber base, and that's good for everybody.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: devcon 2022 recap

2022-04-28 Thread Mark Wieder via use-livecode

On 4/28/22 08:39, 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/ 
<https://livecode.com/global/global2022/>


Same here. I misjudged the time so I overslept and missed Mark 
Waddingham's keynote but I'll catch it on the rebound. I do think Appli 
gives LC what's been missing to draw in new users, so check out Mark 
Talluto's keynote on day 3 for the details. And I highly recommend Craig 
Newman's lightning talk.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


ANN: PowerTools 2.2.0

2022-04-27 Thread Mark Wieder via use-livecode

Hi-

It's been some four years since a major new release of PowerTools, and 
with the 2022 LiveCode conference out of the way for now, I think it's 
time to release PowerTools 2.2.


What's in PowerTools:

* Logical separation of tools from objects
* Double-click to minimize/restore size
* Non-blocking optional date/version check

Objects:
* Gives unique names for newly-created objects
* More built-in tools (H/V field splitters, menubar, progressbars, etc)
* Stack factory (built-in and custom sizes)

Paint/Graphic tools:
* Paint/Graphic tools retain individual properties

Widgets:
* Support for LCB widgets and LCS group controls
* Organize widgets into folders
*  Supports file links cross-platform

As always, PowerTools registrations will never expire, so you always 
have access to the latest versions.


<https://www.ahsoftware.net/PowerTools/PowerTools.lc>

--
 Mark Wieder
 ahsoftw...@gmail.com

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


ANN: PowerDebug 2.3

2022-04-22 Thread Mark Wieder via use-livecode

Hi-

It's been some three years since a major new release of PowerDebug, and 
with the 2022 LiveCode conference right around the corner, I think it's 
time to release PowerDebug 2.3.


NOTE: in order to get responsive speed out of this thing, it's now only 
backwards-compatible to LiveCode 8.0.


What's in the new build:

* Much faster, especially viewing array variable elements.
Yes... expanding big arrays in debug mode was painful before.
Faster code colorization as well.

* Faster and more robust standalone debugging.
Still works locally or in the same subnet using sockets. Debug 
standalone applications with two lines of code.


* Code profiling.
If you don't already have the Pro package from LC, PowerDebug will add a 
new menuItem to the Development menu to toggle profiling on/off. Note 
that profiling *will* slow down your code considerably, but PowerDebug 
will display execution times down to the microsecond.


* Improved error reporting, update checking, and more.

Note that the usernames and passwords have changed for the new version. 
The url remains the same, but you'll need the new information to 
download the new version. And as always, your registration will never 
expire, so you have access to the latest versions.


Documentation is at 

url:


Known issues:

LiveCode on Windows still doesn't support the long milliseconds, so I'm 
extrapolating to microseconds over multiple iterations.


I don't have an iPhone or associated Apple developer account to test 
with, so I can't verify that standalone debugging works on iOS. Any help 
testing this would be appreciated. As long as iOS supports socket 
communications I assume this would work, but you never know.


NOTE: I announced the new build to registered users earlier but I have 
several bounced messages. If you've previously registered PowerDebug but 
haven't gotten an email from me about it, get in touch. You won't be 
able to grab the new version without updated registration info.


___
use-livecode mailing list
use-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: widget properties

2022-04-06 Thread Mark Wieder via use-livecode

On 4/6/22 19:04, Neville Smythe via use-livecode wrote:


Unfortunately LC doesn’t respond with a “object does not have this property” 
error message if you query any old reserved property key for a widget.

It's actually even worse. The clock widget, for instance:
The exported array contains special color options.
These appear in the property inspector colors pane.

You can set the backgroundColor.
You can query the backgroundColor.
But it doesn't appear in the property inspector colors pane.
It also doesn't appear in the custom properties pane.
It does maintain a reasonable value, but it doesn't do anything.
But it *is* serializable.

So does that qualify as a "property" of the widget?

Seems like it might be useful as a way to store "secret" information: 
passwords, api keys, etc. that won't appear anywhere and you have to 
know about them to query for them in the first place.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Widget properties

2022-04-06 Thread Mark Wieder via use-livecode

On 4/6/22 16:39, Richard Gaskin via use-livecode wrote:


 > ...there has never been any intention of supporting the properties
 > for widgets as far as I’m aware...

If the company wants widgets to be seen as first-class citizens, a 
little more conformity with existing object syntax would go a long way 
to making that happen.



Adding to that is the incoming LCS widget architecture, so I'm not 
putting deep learning time into something I'll just have to unlearn when 
the next wave hits.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Flash Talks - 3 slots remaining

2022-04-05 Thread Mark Wieder via use-livecode

On 4/5/22 14:28, Ralph DiMola via use-livecode wrote:

Go for it. Get a headset and use a tablet. This is cool. Not as cool as a
"pancake printer" but cool none the less.


Oooo... they had one of those pancake printers set up at the Maker Faire 
a few years ago. Takes a bit of time, but... fancy pancakes. *Almost* 
hated to eat mine.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Flash Talks - 3 slots remaining

2022-04-05 Thread Mark Wieder via use-livecode

On 4/5/22 14:25, Craig Newman via use-livecode wrote:


But much of the underlying power behind each of my machines is based on a small 
I/O hardware gadget that has no particular relevance to LC per se, apart from a 
software framework that supports it.

The front end is a LC stack, running in the IDE, a control panel that reads and 
writes to the gadget. The gadget reads the state of things like switches and 
controls things like motors. Perhaps this might suggest to some that a hardware 
project could be assembled using Raspberry Pi or Arduino or even a PIC, since 
my particular hardware gadget is no longer supported.


All right - now I'm hooked.
Looking forward to you talking about the LC interface to the real world.

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Flash Talks - 3 slots remaining

2022-04-05 Thread Mark Wieder via use-livecode

On 4/5/22 10:36, Craig Newman via use-livecode wrote:



But I do use LC to control three very different machines in our shop. Would it 
be of any interest to anyone to see one of these in operation?


Add me to the list of interested folks.

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Confirm sort container order...

2022-03-30 Thread Mark Wieder via use-livecode

On 3/30/22 12:39, Paul Dupuis via use-livecode wrote:

Is this "correct"? This is what the dictionary entry is referring to as 
a "stable sort"?


That's correct. Here's something I do to sort the executionContexts:

# display grouped by object, then handler, then by line number and depth
sort numeric tProfiles by item 4 of each # depth
sort numeric tProfiles by item 1 of each # line number
sort tProfiles by item 2 of each # handler
sort tProfiles by item 3 of each # group by object


I just get this, but my mind is confusing me today.


Yeah. Not exactly intuitive.

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Thank you

2022-03-30 Thread Mark Wieder via use-livecode

On 3/30/22 12:16, J. Landman Gay via use-livecode wrote:


 No question is too silly.


Gimme some time... I'm sure I can come up with something.

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Empty Externals folder neccessary to run windows exe successfully?

2022-03-21 Thread Mark Wieder via use-livecode

On 3/21/22 13:04, matthias rebbe via use-livecode wrote:

Hi Panos,

in the bug report you link to a pull request which was removed for some reasons.


Nice fix.
I think *all* pull requests were orphaned when the opensource product 
was removed.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Empty Externals folder neccessary to run windows exe successfully?

2022-03-21 Thread Mark Wieder via use-livecode

On 3/21/22 09:08, panagiotis m via use-livecode wrote:

Hello all,

There is a bug report about it:

https://quality.livecode.com/show_bug.cgi?id=20223


From *five years ago*.
Status 'awaiting merge'
Pull request in 2019 removed from the 9.6.0 milesone and still 'waiting 
for review'


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Problems with Filter?

2022-03-12 Thread Mark Wieder via use-livecode

On 3/12/22 14:21, Rick Harrison via use-livecode wrote:


So what did it filter?  It’s the same string I started with.


Exactly. You want matchtext, not filter.

There is a way to finesse this if you really need to use filter:

   local tSubString, tTarget, tLargeTextString
   local tResult

   put "*THIS*FIND*" into tTarget
   put "abcdef" into 
tLargeTextString


   filter tLargeTextString with tTarget
   set the itemDelimiter to "THIS"
   put item 2 of tLargeTextString into tSubString
   set the itemDelimiter to "FIND"
   put item 1 of tSubString into tResult

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Problems with Filter?

2022-03-12 Thread Mark Wieder via use-livecode

On 3/12/22 12:06, Rick Harrison via use-livecode wrote:

Hi Mark,

matchText works fine.

That doesn’t explain why “filter” doesn’t work though.


Yes. It does. Filter won't give you a substring.

You can use filter to get the whole line of text, but you'll still have 
to dig out the substring if that's what you're after.


In your original code, change to
put "*THIS*FIND*" into tTarget
filter pText with tTarget into tFilteredTextResult
or
put ".*THIS.*FIND.*" into tTarget
filter pText with regex pattern tTarget into tFilteredTextResult

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Problems with Filter?

2022-03-12 Thread Mark Wieder via use-livecode

On 3/12/22 08:43, Rick Harrison via use-livecode wrote:

Good Morning!

I’m trying to get filter to work with some text and so far no success at all.

Given large string:  abcdefghijkTHISISMYTEXTTOFINDlmnopqrstuvwxyz

I want the text between THIS and FIND which could be anything like ISLJFKKDKLS

It’s OK to include the THIS and FIND in my result.

I’m thinking I need a wildcard character like * to get the information.


So if I try:
put "THIS*FIND" into tTarget

put “abcdefghijkTHISISMYTEXTTOFINDlmnopqrstuvwxyz” into tLargeTextString

put tLargeTextString into pText

filter pText with regex tTarget into tFilteredTextResult

answer "tFilteredTextResult = " & tFilteredTextResult

One might think this would work, but it doesn’t, and I get nothing for 
tFilteredTextResult

Suggestions?


Try matchtext rather than filter:

local tTextt, tFound?
put matchtext(tLargeTextString, ".*THIS(.*)FIND.*", tText) into tFound?

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Trying to run standalone (headless) on Linux (Ubuntu) - failed at first hurdle

2022-03-10 Thread Mark Wieder via use-livecode

On 3/10/22 08:26, Ben Rubinstein via use-livecode wrote:
Thanks Panos, that gave me the clues I needed to get the other ones as 
well.


Can confirm the app is now running on Ubuntu 18.04.2 LTS.


Wow... woke up to a lot of emails this morning.
I'm running the latest LC builds on the latest linux mint which is based 
on Ubuntu 20.


So you should be fine as long as you don't need printing or browsers or 
the new chart widget or...


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: RIP David Boggs

2022-03-01 Thread Mark Wieder via use-livecode

On 3/1/22 10:45, Stephen Barncard via use-livecode wrote:

The NYT claim that I have used up all of my “free views” this month is a
LIE.


Open it in an incognito browser window then.



Anyway, the New York Times is all about Rupert Murdoch now as far as I’m
concerned. Not exactly trusted.


That's the New York *Post*.

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: RIP David Boggs

2022-03-01 Thread Mark Wieder via use-livecode

On 3/1/22 10:26, Stephen Barncard via use-livecode wrote:

Paywall


Opened without a paywall for me.
That last quote is a keeper.

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: [ANN] Release 9.6.7 RC-1

2022-02-25 Thread Mark Wieder via use-livecode

On 2/25/22 11:41, panagiotis m via use-livecode wrote:

> @Mark Wieder 
>
> Did you manage to activate this version?

Finally after enough trial and error, yes. Both linux and osx.
I do have a followup question for support though.

> PS:
> *>>>>I'm guessing this didn't get much testing before release.*
>
> Heh, in fact this build was extensively tested license-wise before 
release

>

Er... sorry... "this" meant the activation mechanism, not the stack.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: [ANN] Release 9.6.7 RC-1

2022-02-25 Thread Mark Wieder via use-livecode

On 2/25/22 10:16, Bob Sneidar via use-livecode wrote:

Oddly, I was able to download the Pro version but I am not licensed for it. No 
big deal, but it seems to be a departure from previous experience.


I'm guessing this didn't get much testing before release.

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: [ANN] Release 9.6.7 RC-1

2022-02-25 Thread Mark Wieder via use-livecode

Can't activate the license, though.

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Chart widget and axes which are time values.

2022-02-22 Thread Mark Wieder via use-livecode

On 2/22/22 18:31, scott--- via use-livecode wrote:

Okay, that totally didn’t work… including all the strike-out text. (sigh) Let 
me just say that I’m really liking the Cart widget, even if I can’t quite 
getting working for me yet.


Yeah. I haven't yet gotten the hang of it, and it crashes my desktop 
manager, but after restarting that it looks nice.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: resetall?

2022-02-22 Thread Mark Wieder via use-livecode

On 2/22/22 00:52, Mark Waddingham via use-livecode wrote:


Can you clarify what you mean by the 'socket seems to not be responding'?


Sure. Here you go.

I'm communicating between a standalone and a stack in the IDE. I've 
tried this with 9.6.3, 9.6.6, and 10.0.0-rc2 with the same results, so I 
don't think there's anything new that is causing problems.


Mostly this is working, but I'm finding situations where things get 
unresponsive.


I'm finding that one side or the other seems to be locked in a 
waiting-for-input mode on a particular socket and on exit never seems to 
have let go of that socket. So (re)opening the socket doesn't do 
anything useful because the previous incantation is still blocking input 
to it. I've put "close socket" calls into the socketError and 
socketTimeout handlers, and having to reboot to clear the sockets is 
getting old.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: resetall?

2022-02-21 Thread Mark Wieder via use-livecode

On 2/21/22 10:37, Mark Waddingham via use-livecode wrote:

Put another way - if you have done 'close socket i', then it is then it 
should be logically impossible for i to be in the openSockets 
immediately afterwards.


Ah. Sorry - after issuing a closeSocket call the socket does *not* 
appear in the opensockets. But the socket seems not to be responding 
until a reboot. And I'm thinking that I may have a blocking read still 
in play at that point, and the close socket command doesn't affect it.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: resetall?

2022-02-21 Thread Mark Wieder via use-livecode

On 2/21/22 08:57, Mark Waddingham via use-livecode wrote:


If you want to brute force close all sockets then I suggest:


     repeat for each line i in the openSockets
   close socket i
     end repeat

:)


Yeah, that's what I'm doing now since resetall doesn't do anything 
useful. Displaying the opensockets after a resetall still shows the same 
sockets as before issuing the command.


And the repeat loop works maybe 50% of the time. It seems that maybe if 
I have an active blocking read on a socket it doesn't get closed. Could 
that be the case?


--
 Mark Wieder
 ahsoftw...@gmail.com

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


resetall?

2022-02-21 Thread Mark Wieder via use-livecode

Before I report this one...

I thought resetall was supposed to close open sockets. There's even a 
warning in the docs about it being a brute force close. But it doesn't 
seem to do anything useful. Am I missing something?


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Install LC on Chromebook

2022-02-17 Thread Mark Wieder via use-livecode

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?

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




Heh.
You installed for just you?
In that case
cd ~/.runrev/components
livecode/setup.x86_64 uninstall

if you installed for all users then it's in /opt and you'll need sudo.

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.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Install LC on Chromebook

2022-02-17 Thread Mark Wieder via use-livecode

On 2/17/22 10:35, 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


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/


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Install LC on Chromebook

2022-02-16 Thread Mark Wieder via use-livecode

On 2/16/22 21:40, J. Landman Gay via use-livecode wrote:
Has anyone installed LC on a Chromebook? I've got the Linux partition 
set up and I've found instructions on how to download Linux apps via 
terminal but nothing about doing it with installers. I downloaded and 
tried both the 64 and 32 bit installers but Chrome OS tells me "this 
type of file is not supported" for both.


From what I've read I need a .deb file but this is my first dance on 
Linux. 

I don't know what I'm doing.



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

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.

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: OT: Wordle

2022-01-17 Thread Mark Wieder via use-livecode

On 1/17/22 11:40 AM, Ali Lloyd via use-livecode wrote:


I've just checked the list with definitions and it does appear that it is
valid in CSW19 as a past participle / adjective although it seems not to
have full verb privileges (the gerund is not allowed, apparently)


Or rather an adjective only:

I don't think you can aloe something or say that something has been aloed.

https://www.lexico.com/en/definition/aloed

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: [OT] Converting to LiveCode from VAX VMS

2022-01-11 Thread Mark Wieder via use-livecode

On 1/11/22 3:57 PM, Jerry Jensen via use-livecode wrote:

And just think of what to do with the extra floor space!


...but I digress...

back in the 80s I did a contract writing a c preprocessor for a guy who 
made a bunch of money off a video game. His accountant said he should 
buy a house, and he actually ended up buying two in the Oakland hills. 
There was still leftover money, and he was still deep into writing 
software, so he bought a VAX and put it in a downstairs bedroom. We 
would sometimes come in to use terminals in his house, but more often 
we'd log in from home.


He kept close tabs on everyone doing work for him, and would check the 
logs frequently to see who was using what apps. Someone (nope - not me) 
had the bright idea to remap rogue to teco, so while it looked like he 
was using a text editor for hours, he was actually playing a game. 
Eventually got caught and the mapping was removed.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Creating a simple menu

2022-01-08 Thread Mark Wieder via use-livecode

On 1/7/22 7:41 PM, David Squance via use-livecode wrote:


However, if I create a button, menu is not an option in the list of styles. And 
what do the “menu controls” in the tools palette look like?

I’m sure I’m missing something pretty basic, but I am definitely missing it. I 
guess I can copy and paste a menu button from an old stack, and change its 
attributes, or work around it with a bunch of hidden buttons, but there must be 
a more streamlined approach than that.


PowerTools has a draggable menuBar button in its tool palette.
http://www.ahsoftware.net/PowerTools/PowerTools.lc

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Sorting cards problem solved

2022-01-03 Thread Mark Wieder via use-livecode

On 1/3/22 9:30 AM, J. Landman Gay via use-livecode wrote:
Right, Zweibelwähe should be last, and other Parsley recipes are in the 
Ps inside the Vegetable category. Just not this one.


If I sort by Category (after adding the two fields to the first two 
cards as Alex suggested) I see the following sort order:


card id 9181
card id 9182
card id 9183
card id 7908

(all with a category of "Vegetable".

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: ANN: BoggleSolver now on sample stacks

2022-01-03 Thread Mark Wieder via use-livecode

On 1/2/22 10:03 PM, J. Landman Gay via use-livecode wrote:

A decade ago I found this board on the net somewhere, it claims to have 
a possible 3271 points (didn't say how many words.) Good luck:


...there goes my Monday...

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Sorting cards problem solved

2022-01-03 Thread Mark Wieder via use-livecode

On 1/2/22 9:41 PM, J. Landman Gay via use-livecode wrote:

And...the client is pleased but noticed it all sorts very nicely except 
for the last card, which is in the correct category but out of 
alphabetical order. Anyone care to figure out why?


    - sort by title -- okay
    - sort by category -- Last card is wrong. Others are okay.


What counts as the "last" card? Is that card id 9183 "Zweibelwähe"?

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: New user

2021-12-28 Thread Mark Wieder via use-livecode

On 12/24/21 1:08 PM, Pi Digital via use-livecode wrote:


My son and I have been working on a physical Train Sim World controller which 
is basically the whole dashboard from a Class 365. It uses an Arduino board and 
a digital serial shunt to pick up all the buttons, switches and sliders and 
control lights and dials. This is then picked up by LiveCode and converted into 
XML for TSW to read from live and control the Sim and provide feedback for the 
gauges.


That sounds like an awesome project. Any chance of you writing this up 
with more details as a blog post or something in your copious free time?


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Communication with future you with a message board

2021-12-22 Thread Mark Wieder via use-livecode

On 12/22/21 12:47 PM, J. Landman Gay via use-livecode wrote:

On 12/22/21 11:40 AM, Martin Koob via use-livecode wrote:
So I am curious — am I the only one whose mind is going or have others 
run this mental recursive documentation loop?


Yes, more than once. The only comforting thing is that most of the time 
it was a response from many years ago and I'm not the same person any 
more. Maybe that's scary...




If you write a response maybe you can help out your previous self.

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Livecode Server on Synology NAS with Intel cpu

2021-12-22 Thread Mark Wieder via use-livecode

On 12/21/21 2:54 PM, matthias rebbe via use-livecode wrote:

Hi,

is there someone on the list who is using Livecode Server on a Synology NAS 
with Intel cpu? If so, did you manage to get it working also with the webserver 
or only from command line?

Today i installed Livecode Server on my Synology NAS with Intel cpu.
I am able to run Livecode scripts from the command line. But i do not get it to 
work, that i can call LC script from my browser. I tried the .htaccess method 
to get Livecode Server running with Apache without success. I tried also to 
modify the httdp-conf file, but also without success. But that is due to a lack 
of knowledge.

I would be really grateful if someone could help me getting Livecode Server to 
work with Apache and not only from command line.


Sorry - my Synology server has an arm processor, and there has never 
been an arm build of the server. Plus now it appears that the server 
build requires a separate license.


I take it you've already been through the docs at
https://livecode.com/resources/guides/server/

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: What Do I Need To Do To Make Links Active

2021-11-29 Thread Mark Wieder via use-livecode

On 11/29/21 5:17 PM, Sannyasin Brahmanathaswami via use-livecode wrote:


# these do not work, where as a file

 Terms of Service, Privacy Policy, EULA 



Do you really have a space before "privacy"?

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Android: Play App Signing

2021-11-17 Thread Mark Wieder via use-livecode

On 11/17/21 4:41 AM, Heather Laine via use-livecode wrote:

Yes unfortunately that is correct, there is no way to delete this. Its out 
there. You probably should change your signing key...


"probably"
Heh.

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Script Editor Disassociation Bug - Seen it lately?

2021-11-04 Thread Mark Wieder via use-livecode

On 11/4/21 4:18 AM, Curry Kenworthy via use-livecode wrote:


I'm checking up on the Script Editor Disassociation Bug,
described in this thread:

<http://lists.runrev.com/pipermail/use-livecode/2019-December/257549.html>


By way of not adding any more data points to your survey (sorry), I can 
say that I haven't seen this happening lately. But since I'm not sure 
what the conditions for invoking the bug were in the first place, I 
don't think the absence of the problem necessarily means it's solved.


So ¯\_(ツ)_/¯

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Count Up Timer?

2021-11-02 Thread Mark Wieder via use-livecode

On 11/2/21 8:48 AM, Craig Newman via use-livecode wrote:

Mark.

“... unless the person was born after 1 January 1970."

Check out the thread “When was the big bang?” on the forum:

https://forums.livecode.com/viewtopic.php?f=9=26619=138530=big+bang#p138530


LOL. "one bit for (the) apple."

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Count Up Timer?

2021-11-02 Thread Mark Wieder via use-livecode

On 11/2/21 7:33 AM, Curry Kenworthy via use-livecode wrote:


A forum is handy for searches,
so a nice place to visit now and then.
But I wouldn't want to live there! :D


Heh. My thoughts as well.



 > It would take a lot of work to reformat the OP’s code example
 > into something workable in the SE.

I thought the OP was Dan, but you mean Tom's function?
Just a matter of not pasting **styled** text for code.
Even then, it's easily put right with a few commands.
Mark's example is easy to follow too.


But I think neither of these will solve the OP's question unless the 
person was born after 1 January 1970.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: OT: Facebook -> Meta (Damaged Infinity!)

2021-10-30 Thread Mark Wieder via use-livecode

On 10/29/21 2:17 PM, doc hawk via use-livecode wrote:

They had to use “Meta”, as “Satan” was already taken . . .


From a Boingboing user comment...

META: Making Evil Totally Acceptable

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: [ANN] bnGuides has been updated

2021-10-11 Thread Mark Wieder via use-livecode

On 10/11/21 3:38 PM, Niggemann, Bernd via use-livecode wrote:


if the tool <> "pointer tool" then
   exit revSelectedObjectChanged
end if


Wouldn't that still be a problem if something else (e.g. the Project 
Browser) selects an object?


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Previous request not completed

2021-10-11 Thread Mark Wieder via use-livecode

On 10/10/21 10:00 AM, J. Landman Gay via use-livecode wrote:
I'm sure it's coming from libURL. TSNet adds functionality to libURL and 
they work together. As I understand it, you can't use TSNet alone, it 
needs libURL.


https://www.mail-archive.com/use-livecode@lists.runrev.com/msg85062.html

Also:
"So include libUrl and you get normal libUrl; include libUrl and tsNet 
and you get libUrl driven by tsNet; include neither and you get the 
in-engine implementation."

https://www.mail-archive.com/use-livecode@lists.runrev.com/msg106501.html

Because TSNet allows me to set multiple connections, I wonder if that 
would solve the problem. I'm too close to deadline to have time to 
tinker too much.


Jacque-

I would get that error before when doing an update check using https.
put url("https://...;)
and if I try an update check on another stack before the first one has 
time to timeout I'll get the "previous request not completed" error.


So I'd say either try the tsNettsNetLibUrlReuseConnection command or 
loop on the socket you're using in the opensockets (in my case it was 
:443), waiting for it to disappear from the list. Unfortunately, simply 
completing a put url and getting valid status from the remote resource 
doesn't automatically free the socket.


Or if you're up against a deadline just kludge it and put in a wait. 

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: [ANN] bnGuides has been updated

2021-10-11 Thread Mark Wieder via use-livecode

On 10/11/21 10:56 AM, Bob Sneidar via use-livecode wrote:


Livecode.com resources is not working. I cannot download this using that site. 
Clicking on anything after searching for it just reloads the page.


http://livecodeshare.runrev.com/stack/918/BnGuides

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Stack with the same name loop

2021-10-08 Thread Mark Wieder via use-livecode

On 10/8/21 8:24 AM, Bob Sneidar via use-livecode wrote:

Where did you find this script? I am pondering adding this to my "scripts to replace 
when I download a new version" list.


It's in revbackscriptlibrary.livecodescript.
Here's an improved version that avoids that double cancel.

on reloadStack pStackName, pFileName
   if the filename of stack pStackName is pFileName then
  toplevel pStackName
   else
  set the defaultStack to pStackName

  local tFilePath, tFileLongPath
  put the effective fileName of stack pStackName into tFilePath
  put tFilePath into tFileLongPath
if tFileLongPath is empty then
put pStackName into tFileLongPath
put comma && pStackName & "?" after tFilePath
else
put pStackName & "?" into tFilepath
end if
  answer warning "A stack with the name"&&&"is already 
open." & cr & "Before loading" && pFileName & ", what do you want to do 
with stack:" & cr & tFilePath with "Rename" or "Save" or "Purge" or "Cancel"

local tAction
put it into tAction
  if gREVSuppressMessages then
 lock messages
 send "revInsertMessageBlock" to me in 100 milliseconds
 revInternal__UnloadLibrary "revNoMessagesLibrary"
  end if

 local tLockMessages
  put the lockMessages into tLockMessages

 switch tAction
case "Cancel"
exit to top
case "Rename"
ask "Enter a name for the stack in memory"
if it is not empty and it is not pStackName then
set the name of stack tFileLongPath to it
go stack pFileName
else
exit to top
end if
break
case "Save"
if the filename of stack pStackName is empty then
revSaveAs pStackName
else
revSave pStackName
end if
case "Purge"
revAOUpdateForDeleteStack pStackName
lock messages
delete stack pStackName
set the lockMessages to tLockMessages
go stack pFileName
break
 end switch
   end if

   if there is a stack "revApplicationOverview" then
  send "revNewStack the short name of stack pFileName" to stack 
"revApplicationOverview"

   end if
end reloadStack

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Stack with the same name loop

2021-10-07 Thread Mark Wieder via use-livecode

On 10/7/21 12:54 PM, Richard Gaskin via use-livecode wrote:

Though related to the duplicate stack name issue, the core underlying 
cause is a separate item logged here:

https://quality.livecode.com/show_bug.cgi?id=18793


Note that you can use the property inspector to change the name of a 
stack to the name of another stack also in memory. The IDE gets quite 
confused at that point, and quitting the IDE is the best option.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Stack with the same name loop

2021-10-07 Thread Mark Wieder via use-livecode

On 10/7/21 1:08 PM, Mark Wieder via use-livecode wrote:

How about a fourth option to rename the stack in memory and continue?


...replying to myself...
I fixed reloadStack to allow a rename and be a little less scary.
I just edited the livecodescript file on disk and it so far seems to 
work in all my tests.


on reloadStack pStackName, pFileName
   if the filename of stack pStackName is pFileName then
  toplevel pStackName
   else
  set the defaultStack to pStackName

  local tFilePath, tFileLongPath
  put the effective fileName of stack pStackName into tFilePath
  put tFilePath into tFileLongPath
if tFileLongPath is empty then
put pStackName into tFileLongPath
put comma && pStackName & "?" after tFilePath
else
put pStackName & "?" into tFilepath
end if
  answer warning "A stack with the name"&&&"is already 
open." & cr & "Before loading" && pFileName & ", what do you want to do 
with stack:" & cr & tFilePath with "Rename" or "Save" or "Purge" or "Cancel"

local tAction
put it into tAction
  if gREVSuppressMessages then
 lock messages
 send "revInsertMessageBlock" to me in 100 milliseconds
 revInternal__UnloadLibrary "revNoMessagesLibrary"
  end if

 local tLockMessages
  put the lockMessages into tLockMessages

 switch tAction
case "Cancel"
exit reloadStack
case "Rename"
ask "rename the stack in memory to"
if it is not empty and it is not pStackName then
set the name of stack tFileLongPath to it
end if
set the lockMessages to tLockMessages
go stack pFileName
break
case "Save"
 if the filename of stack pStackName is empty then
revSaveAs pStackName
 else
revSave pStackName
 end if
case "Purge"
 revAOUpdateForDeleteStack pStackName
 lock messages
 delete stack pStackName
 set the lockMessages to tLockMessages
 go stack pFileName
    break
end switch
   end if

   if there is a stack "revApplicationOverview" then
  send "revNewStack the short name of stack pFileName" to stack 
"revApplicationOverview"

   end if
end reloadStack

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Stack with the same name loop

2021-10-07 Thread Mark Wieder via use-livecode

On 10/7/21 6:40 AM, Mark Waddingham via use-livecode wrote:

The correct behavior of that dialog is precisely what you would expect 
from the button names:


   1) Cancel - the loading of the new stack does not happen.
   2) Purge - the existing stack of the same name is removed from memory 
without saving first, and the new stack is loaded.
   3) Save - the existing stack of the same name is saved and then 
removed from memory, and the new stack is loaded.




Mark-

Thanks muchly for the longish explanation.
The main problem, as I see it, is the lack of any context for what the 
buttons do when that dialog appears. My reading of the reloadStack code 
more or less agrees with your explanation above, although there seem to 
be extra calls to "delete stack" which still don't give me warm fuzzies. 
I do what everyone else does when that dialog appears: panic, quit and 
restart.


Maybe a different dialog that explains what the various options do?

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Stack with the same name loop

2021-10-07 Thread Mark Wieder via use-livecode

On 10/7/21 10:38 AM, J. Landman Gay via use-livecode wrote:
For me, the confusion would be resolved if the Save button was renamed 
to "Save and Purge". I was never quite sure what that button saved, 
though in retrospect it's pretty obvious.


How about a fourth option to rename the stack in memory and continue?

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Stack with the same name loop

2021-10-06 Thread Mark Wieder via use-livecode

On 10/6/21 1:22 PM, Eraklis Pittas via use-livecode wrote:


I just put up with it and kill LC -  I don't think we will ever have a
definitive answer or fix (prove me wrong please!) . As I say they
don't seem to eat their own Dog Food otherwise this would have been sorted
years ago.


That's what I do as well. Kill, then go do something else for a bit.

Reading the code that invokes this dialog (the reloadstack handler in 
revbackscriptlibrary.livecodescript) isn't much help. It's only the IDE 
that can't handle this, not the engine.


This would all be moot if the IDE used the long id of the stack instead 
of just the short name of the stack, but that would require work.


BTW - the original bug report on this is now 18 years old.
https://quality.livecode.com/show_bug.cgi?id=1061

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Sample stacks / revOnline [was: Re: Suggestion: Non-Appbuilding Community Edition]

2021-10-03 Thread Mark Wieder via use-livecode

On 9/30/21 7:02 AM, Alex Tweedly via use-livecode wrote:


  - a "require" or "include" mechanism for dependencies in libraries


LOL. That request is now some 17 years old.
https://quality.livecode.com/show_bug.cgi?id=1712


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: LiveCode Community - anyone up for maintaining the community edition?

2021-09-22 Thread Mark Wieder via use-livecode



On 9/9/21 7:18 AM, Mark Waddingham via use-livecode wrote:

> We (LiveCode Ltd.) cannot take any code changes you make to your 
project's version of the LiveCode source-code and use them in our 
commercial code as (by default) it will be GPLv3 licensed, and the 
copyright of that will be held by the person who authored the changes; 
just as you cannot change the license from GPLv3 nor copyright 
attribution (LiveCode Ltd.) - whether explicit or implicit - of any 
existing line of code in your project's fork of the LiveCode 
repositories, nor take any changes which appear from now onwards in any 
commercial edition to incorporate into your project.

>
> When we were running the open source project, we had in place a 
Contributor's License Agreement which meant that the copyright of any 
code authored by a contributor in any patch submitted to LiveCode Ltd 
was assigned to us. However, this only extended to contributions 
submitted through GitHub, where there was an appropriate immutable 
record of such submissions and it was universally clear what changes 
were being made. For obvious reasons, this no longer exists.

>

Mark-

I've been mulling this over for a while now and I'm still unclear on the 
import of what you're saying here. (Disclaimer: this is probably tricky 
legal and ethical ground and I'm certainly no expert on licensing terms)


Are you saying that submissions to bugzilla and pull requests to github 
that haven't yet been accepted into the main code are now orphaned? If 
someone (asking for a friend) takes a pull request that has not yet been 
acted on and *also* submits it to an open source fork, what does that do 
to its licensing status? Can an open source project cherrypick pull 
requests from the archived code and implement them? Is LiveCode Ltd not 
able to do that because of the licensing change?


My head is spinning.

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: IDE line number doesn't update

2021-09-22 Thread Mark Wieder via use-livecode

On 9/22/21 10:48 AM, Pi Digital via use-livecode wrote:


It is our anniversary and will be going away for a number and of days


Congrats on that. Have fun.
My advice: don't bring a computer with you. Stay unplugged.

Anyway, it's been a while since I've had to use the builtin script 
editor much, but for folks who are having problems with it, you might 
want to give an alternative a try:


https://github.com/mwieder/glx2ScriptEditor

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: export a stack and recreate it it by script

2021-09-15 Thread Mark Wieder via use-livecode

On 9/15/21 3:29 AM, Malte Pfaff-Brill via use-livecode wrote:

Hi,

I have been lurking for a while and do not really write code anymore. 
However, I am in a situation, where I need to maintain a very old 
project, that consists of a large(ish) collection of stacks that is 
crashing frequently with newer engine versions.My suspicion is that it 
is due to either a somewhere corrupted stack and/or a wild mix of 
stackFileVersions. Has anyone of you created a Script that exports a 
stack to a text / XML / Json / whatever file and can recreate them with 
the latest stackFileVersion? That would save me some trouble and feed my 
lazyness. :-)


Malte-

You want Brian Milby's ScriptTracker plugin. It does exactly that.

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: LiveCode 10 - what are your thoughts on the new features?

2021-09-09 Thread Mark Wieder via use-livecode

On 9/9/21 8:53 AM, Mark Waddingham via use-livecode wrote:


The former.


Yay. Thanks.

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: LiveCode 10 - what are your thoughts on the new features?

2021-09-09 Thread Mark Wieder via use-livecode

On 9/8/21 10:40 PM, Mark Waddingham via use-livecode wrote:


   put [1, 2, 3] into tVar2

is equivalent to:

   put 1 into tVar2[1]
   put 2 into tVar2[2]
   put 3 into tVar2[3]


That's still ambiguous, though. Is

put [4, 5, 6] into tVar2

equivalent to

put 4 into tVar2[1]
put 5 into tVar2[2]
put 6 into tVar2[3]

or

put 4 into tVar2[4]
put 5 into tVar2[5]
put 6 into tVar2[6]

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: LiveCode 10 - what are your thoughts on the new features?

2021-09-08 Thread Mark Wieder via use-livecode

On 9/8/21 4:37 PM, Alex Tweedly via use-livecode wrote:


I think that

    put [4, 5, 7] into tV

is actually equivalent to
    put 4 into tV[1]
    put 5 into tV[2]
    put 7 into tV[3]

But I'm happy to wait and try it out in the DP.


I would certainly be happier if that turns out to be the case.
Otherwise unraveling the hash would be a bit strange.

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: LiveCode 10 - what are your thoughts on the new features?

2021-09-08 Thread Mark Wieder via use-livecode

On 9/8/21 3:03 PM, Bob Sneidar via use-livecode wrote:


This actually touches on the arbitrary nature of language. A word only means something 
because all the parties who want to use that word, agree (whether or not they think they 
do) that this word will mean this thing. If over time, a culture begins to use the word 
in a different way or differently in other contexts, it's not because of anything 
intrinsic to the word, but simply because the parties or societies decided (whether or 
not they think they have) to "renegotiate".


+1

There is, I think, a spectrum somewhat as follows:

none
one
a couple
very few
a few
several
many
very many (a great many)
a lot
too many
all the

and the boundaries within the spectrum are squishy

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: LiveCode 10 - what are your thoughts on the new features?

2021-09-08 Thread Mark Wieder via use-livecode

On 9/8/21 1:20 PM, Brian Milby via use-livecode wrote:

Ah, the problem with calling things “facts” where the data isn’t actually 
knowable.  The number of hairs on my head is a fact but not one that can be 
accurately known.  Kind of like the number of people who watched the Super 
Bowl.  In that context, true fact makes sense (also “cold hard fact”).  While 
it should be redundant, it emphasizes that the data being referenced is an 
actual fact and not an assumed fact.


IMO a fact is true. There are no false facts.
That being said, a fact is true within its domain space.
'Atoms are indivisible' was a fact until it wasn't.
That doesn't make it a false fact, just a false statement.
At the time of a fact's creation/utterance/whatever it's true, otherwise 
it's not a fact.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Put URL command

2021-09-02 Thread Mark Wieder via use-livecode

On 9/2/21 5:00 PM, Alex Tweedly via use-livecode wrote:

put URL ("binfile:" & sourceURL) into URL ("binfile:" &  destinationURL)

I always use parentheses when specifying URLs.
It doesn't necessarily keep me out of trouble, but at least then it's 
trouble of my own making.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Whatever happened to on-rev?

2021-08-24 Thread Mark Wieder via use-livecode

On 8/20/21 1:52 AM, Heather Laine via use-livecode wrote:

You should never be able to access either http://on-rev.com 
<http://on-rev.com/> or https of same, this site is no longer used and 
redirects to livecode.com <http://livecode.com/>.


Actually, no.
It redirects to http://on-rev.com/cgi-sys/defaultwebpage.cgi
which is apparently the cPanel equivalent of ¯\_(ツ)_/¯

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Whatever happened to on-rev?

2021-08-19 Thread Mark Wieder via use-livecode

?
looks like it bit the dust.

http://on-rev.com/

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Annoying double parens, brackets and quotes

2021-08-02 Thread Mark Wieder via use-livecode

On 8/2/21 8:13 PM, Roger Guay via use-livecode wrote:

Could someone please tell me how to turn off the double parens, brackets and 
quotes in the script editor? IOW when I type ( , I don’t want ( ).


In the Edit menu of the script editor, select Options.
Then uncheck Bracket Completion.

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Most streamlined method to get data

2021-08-01 Thread Mark Wieder via use-livecode

On 8/1/21 12:39 PM, Skip Kimpel wrote:
So to give you a full sense of the ugliness of the CSV I am working 


Urk.
Any chance of getting the csv delivered to you as tab-separated instead 
of comma-separated? That would at least take some of the burden away.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Most streamlined method to get data

2021-07-29 Thread Mark Wieder via use-livecode

On 7/29/21 9:24 AM, Ben Rubinstein via use-livecode wrote:

As grepophile, I'd go for some variation on


While I heartily approve of Ben's use of grep, here's another approach 
using an array. Note that is somewhat specific to your data set, and 
from the looks of the data my guess is that you're heading down the path 
of csv madness.


on mouseUp pMouseBtnNo
   local tVar, tHeader, tCount, tOriginal

   put field 1 into tVar
   put line 1 of tVar into tHeader
   delete line 1 of tVar
   split tVar by cr

   repeat for each key tKey in tVar
  # transform "$8,303.32" into "$8303.32"
  repeat for each trueword tTrueWord in tVar[tKey]
 put tTrueWord into tOriginal
 replace comma with empty in tTrueWord
 replace tOriginal with tTrueWord in tVar[tKey]
  end repeat
  # now we can deal with commas as itemDelimiters
  put 1 into tCount
  repeat for each item tWord in tVar[tKey]
 put tWord into tVar[tKey][tCount]
 add 1 to tCount
  end repeat
   end repeat # for each key tKey in tVar

   # now pick out the desired total
   local tTotal, tOffset
   put itemoffset("Total", tHeader) into tOffset
   put tVar[5][tOffset] into tTotal
   breakpoint
end mouseUp

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: How do I get the ID of a database?

2021-07-09 Thread Mark Wieder via use-livecode

On 7/9/21 4:35 PM, Bob Sneidar via use-livecode wrote:

Yeah thanks Rick, I know I can store the database id, I was hoping to simply 
call a function that could tell me what database name the ID belonged to, but 
apparently that is not a persistent thing.


How would you reference the database to get its ID?
That's a bit of circular reasoning.

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Regular crash: Dictionary (API)

2021-06-21 Thread Mark Wieder via use-livecode

On 6/21/21 12:30 PM, David Bovill via use-livecode wrote:

Anyone point me too an alternative Dictionary  - too many regular crashes using 
the built in one?


TinyDictionary

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: workaround for cut-off text in native scroller?

2021-06-02 Thread Mark Wieder via use-livecode

On 6/2/21 4:42 AM, Alex Tweedly via use-livecode wrote:

I can tell you mine - they work for me , but whether they work for you, 
or anyone else, is a different matter.


Thanks for the pointers.



1. NEVER lock message just to handle resizing.
   If you need to do that, you're already in a heap of trouble :-)


Been there. Got the t-shirt.



2. ALWAYS (and I mean always) set the lockLoc of a group.
     Don't let those uppity groups change their size - you need to be in 
charge :-)


Ok - that's one I should take more to heart.



3. Work top-down in a (fairly) strict hierarchy. Let each level of 
card/group handle the layout of its component pieces, allocate space for 
them and "set the rect .." for each.


3a. Always resize/reposition things by setting their rect (not their 
top/left/width/...).
   Every time I try to use those seemingly-convenient shorter forms, 
I get in trouble :-)


Yes, but... there are some cases where I need to set the height/width 
explicitly. For instance, I've got a complex group that contains a 
circle inside a rectangle. I could, I suppose, calculate the new height 
of the circle but not set it, then calculate the rectangle and center 
point of the circle and set the rectangle coordinates from that


Instead, I just set the height and width of the circle within the group, 
and this mostly seems to work if I'm careful.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: LC 9.6.2 release change...

2021-06-02 Thread Mark Wieder via use-livecode

On 6/2/21 9:17 AM, Paul Dupuis via use-livecode wrote:
In every rc candidate of 9.6.2 up until the STABLE release version, if I 
have a command handler in the stack script of my mainstack (called say 
"prepForBuild") I could open the message box and just type in 
"prepForBuild" and press return to execute it.


No in LC9.6.2 STABLE, if I just type in "prepForBuild" and return, LC 
changes it to "put prepForBuild" and places the text "prepForBuild" in 
the results are of the message box instead of executing the handler.


It appears I now have to write "send prepForBuild to stack "X" -- where 
X is my mainstack to have it execute.


Anyone else seeing this?


You'll see the "put..." message if the handler can't be found in the 
current message path. You may need to change the target stack in the 
message box from the pulldown menu - my guess is that you're ending up 
targeting the wrong stack.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: workaround for cut-off text in native scroller?

2021-06-01 Thread Mark Wieder via use-livecode

On 6/1/21 3:53 PM, Richard Gaskin via use-livecode wrote:

If I ever get around to writing an article on resizing strategies I'll 
keep that in mind.  Helpful to learn about one more xTalk veteran in the 
same boat.




I do ok on resizing routines until it comes to groups. Then I always end 
up reinventing things: when and where to lock messages, how to get 
things resized in the right order so as not to undo what I just did...


If there are any rules of thumb I'd love to know them.

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Implementing UNDO

2021-05-21 Thread Mark Wieder via use-livecode

On 5/21/21 6:19 AM, Klaus major-k via use-livecode wrote:


OK, something like this, but for graphics, images etc., too. 8-)
Some general hints will be OK.

Except for TEXT I don't have a clue yet.
Maybe store "the properties of xyz" and re-apply them when the user hits CMD-Z?


I've got an undo library on livecodeshare. It's designed to handle text, 
but the filo stack mechanism would probably work if you store something 
other than text as blobs. Untested, but maybe. My guess is this would 
use up memory rapidly.


...and from experience, don't try to compress/decompress arrays.

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Stacks not removed from memory?

2021-05-14 Thread Mark Wieder via use-livecode

On 5/14/21 10:05 AM, Richard Gaskin via use-livecode wrote:

Is this to avoid stack name conflicts, or is there some other reason to 
use this feature?


Because if it's just the stack name conflict thang, I'd rather we solve 
that at the root by being done with that IDE-imposed limitation that 
doesn't actually exist in the engine:


https://quality.livecode.com/show_bug.cgi?id=1061



LOL.
That bug report (still driving developers up the wall after 18 years) 
has my favorite team comment (#13):


Re-assigning to engine team for future re-assignment.

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Close & remove from memory - Engine hang

2021-05-07 Thread Mark Wieder via use-livecode

On 5/7/21 6:39 PM, Curry Kenworthy via use-livecode wrote:


More moderate: An LC print bug won't bother people who never print.


Being on linux, I'd love to have print bugs. 
https://quality.livecode.com/show_bug.cgi?id=21131

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: Problems with Multiple Monitors

2021-05-05 Thread Mark Wieder via use-livecode

On 5/5/21 8:53 AM, Paul Dupuis via use-livecode wrote:

I'm afraid I can't help with this. A good while ago, I moved to my own 
centerWindow command that doesn't use screenLoc, but uses the stack's 
(window's the screen property 9for the line number of the screenRect the 
stack is on) and the screenRects to get the rect of the monitor the 
window is on. I then use that monitor's rect to get the center 
coordinates and then adjust for any menubar or taskbar, etc to get the 
effective center for that monitor to center a window (I think I actually 
now use the working screenRects or effective screenRects or maybe the 
effective working screenRects ;-)


Yep - that's what I do as well.
A couple of useful enhancements would be

the screenLocs # return a list
the screenLoc(2) # allow a parameter for the screen number

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: LiveCode DataGrid assistance requested

2021-05-04 Thread Mark Wieder via use-livecode

On 5/4/21 8:26 AM, Brian K. Duck via use-livecode wrote:


After adding  “Combine array using return,” I can display it as text in a 
field, but I only get the rows that aren’t array data on their own. So, most of 
the data is lost.



The combine and split commands were written in the dark ages before we 
had multidimensional arrays.


I use recursive repeat loops to untangle multidimensional arrays into an 
editable text form (pseudocode):


put the keys of tArray into tKeys
repeat for each line tKey in tKeys
 if tKey is empty then # see if it's an array
  put the keys of tKey into tSubArray
  # recurse to process the array
 else
  # it's an actual empty element
 end if
end repeat

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: What exactly does "put" do on Server?

2021-04-20 Thread Mark Wieder via use-livecode

On 4/20/21 6:01 PM, Richard Gaskin via use-livecode wrote:

Postman shows a single reply to the client from Apache.

strace on the server shows each "put" implemented at the system level as 
a write to stdout.


So it looks to me like Apache buffers writes it receives and sends all 
of it to the client in one go, with a header that accurately accounts 
for the total size of multiple "put"s in the Content-Length.


I'm still curious to know how Apache knows when to send to the client - 
does it wait for the CGI to terminate?


But for now, at least it seems we have an answer to the question of 
whether LC Server or Apache buffers the writes.


Interesting. It's sounding like the stdout writes are being buffered 
until LC yields its process back to the system, and then Apache's 
process can pick things up again. But obviously I don't know.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: rant: truewordOffset

2021-04-20 Thread Mark Wieder via use-livecode

On 4/20/21 9:12 AM, Mark Waddingham via use-livecode wrote:


Works fine here too:

set the wholeMatches to true
put trueWordOffset("BT", "foo btn")
   => 0

set the wholeMatches to false
put trueWordOffset("BT", "foo btn")
   => 2

Warmest Regards,

Mark.

P.S. Remember wholeMatches is a handler-local property not global - I 
only mention that because it sounds like it isn't actually the value you 
think when you are calling trueWordOffset.




nvm.
Actually this was a side effect of another function.

The truewordOffset function is indeed doing what it should, and I'm 
quite relieved to find that this was just an error in my own code.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: rant: truewordOffset

2021-04-20 Thread Mark Wieder via use-livecode

On 4/20/21 6:00 AM, Niggemann, Bernd via use-livecode wrote:

Mark Wieder wrote
You can't just say

put truewordOffset("font", tText) into tOffset
because it might encounter "fontTable" first.


If I set wholematches to true it works for me


Unfortunately not here. Even with wholematches true

truewordOffset("BT", tText)
also catches instances of
"btn"
as well as "bt"

I have to check the result:

put truewordOffset(tValue, tText) into tPos
if trueword tPos of pText is tValue then
  # we found a trueword
end if

--
 Mark Wieder
 ahsoftw...@gmail.com

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


rant: truewordOffset

2021-04-19 Thread Mark Wieder via use-livecode

I'm also annoyed at truewordOffset.
Consider this:

you can get an offset in truewords (the number of truewords that occur 
before the given argument,


but you can't get an offset *to* a given trueword.

put truewordOffset(tString, tText, tSkip) will give you a value in 
truewords. And you can plug that value into tSkip for the next iteration 
to find the next occurence of the string. But only a string. You can't say


put truewordOffset(trueword tTrueWord, tText, tSkip)

And yes, I've got a one-line workaround for it, but what use is this on 
its own? You can't just say


put truewordOffset("font", tText) into tOffset

because it might encounter "fontTable" first.

I can't come up with a use for truewordOffset the way it currently 
exists, and it isn't used in any of the IDE stacks, so apparently the 
team didn't have a use for it either.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: lineOffset wildcard

2021-04-19 Thread Mark Wieder via use-livecode



I'll try benchmarking this against Jacque's suggestion of matchChunk. 
Filter is normally pretty fast, but I'll have to use the regex version, 
and I'm not sure what the speed implications will be.


Benchmark result averages over 10 runs on a 2700-line script:

filter lines of script 2612.6ms
filter script  2572.1ms
matchChunk 2424.3ms

the code:

put "^local.*"&".*" into tRegexString

put matchChunk(tScript, tRegexString, tStartPos, tEndPos) into tFound?
if tFound? then
   put the number of lines in char 1 to tStartPos of tScript into tLine
end if

filter tScript with regex tRegexString into tFoundScript
# alternate: no appreciable difference in timing
# filter tScript with "local*"&"*" into tFoundScript
if tFoundScript is not empty then
   put lineoffset(tFoundScript, tScript) into tLine
end if

So matchChunk plus "the number of lines" is faster by ~150 milliseconds 
over 2700 lines of text than filter plus lineOffset.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: lineOffset wildcard

2021-04-19 Thread Mark Wieder via use-livecode

On 4/19/21 1:02 PM, Ken Ray wrote:
On Apr 19, 2021, at 1:47 PM, Mark Wieder via use-livecode 
mailto:use-livecode@lists.runrev.com>> 
wrote:


On 4/19/21 11:04 AM, J. Landman Gay via use-livecode wrote:

I don't think lineoffset supports wildcards, but you could do it with 
matchChunk.


Ah! matchChunk and the the number of lines of... etc...
That should do it.


Another way to do it is to use 'filter' to get the text of the line that 
matches your wildcard, and then 'lineOffset' to find that line:


put tScript into tTemp
filter tTemp with ("local*" & tFunctionName & "*")
put lineOffset((cr & tTemp & cr),(cr & tScript & cr)) into tPos

Not sure if 'filter' is faster than 'matchChunk' when dealing with large 
scripts, but I have a feeling it might be...


Thanks, Ken.
I'll try benchmarking this against Jacque's suggestion of matchChunk. 
Filter is normally pretty fast, but I'll have to use the regex version, 
and I'm not sure what the speed implications will be.



--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: lineOffset wildcard

2021-04-19 Thread Mark Wieder via use-livecode

On 4/19/21 3:02 PM, Bob Sneidar via use-livecode wrote:

IOC I guess I did misunderstand after all.


Nah... I should have worded it differently to start with.


--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: lineOffset wildcard

2021-04-19 Thread Mark Wieder via use-livecode

On 4/19/21 12:11 PM, Bob Sneidar via use-livecode wrote:

Someone needs to update the dictionary then.

wholeMatches

Syntax
set the wholeMatches to {true | false}

Summary
Specifies whether the lineOffset, wordOffset, and itemOffset functions search 
only for entire lines, words, or items.


Here's what I meant:

setting the wholeMatches to true will match the input string verbatim, 
without regard to wildcards. So


lineOffset("local tFunction", ttext) will only match
local tFunction
and
lineOffset("local*tFunction", tText) will only match
local*tFunction
not
local tFunction
and not
local someThing, tFunction, somethingElse

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: lineOffset wildcard

2021-04-19 Thread Mark Wieder via use-livecode

On 4/19/21 11:13 AM, Bob Sneidar via use-livecode wrote:

Why even embed the function?

put "local" & tString & functionName() into tSearchString
set wholeMatches to true
put lineOffset(tSearchString) into tLine

Or am I misunderstanding the problem (again)? :-)


Been there.
the wholematches doesn't affect the offset functions.

--
 Mark Wieder
 ahsoftw...@gmail.com

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


Re: lineOffset wildcard

2021-04-19 Thread Mark Wieder via use-livecode

On 4/19/21 11:04 AM, J. Landman Gay via use-livecode wrote:

I don't think lineoffset supports wildcards, but you could do it with 
matchChunk.




Ah! matchChunk and the the number of lines of... etc...
That should do it.

--
 Mark Wieder
 ahsoftw...@gmail.com

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


  1   2   3   4   5   6   7   8   9   10   >