Re: Standardize Font Appearance

2022-09-13 Thread Quentin Long via use-livecode
sez Richard Gaskin: > So help me understand: what are you working on where a user expects > > fine-grained font rendering consistency on multiple OSes? What do these > > apps do?> > Do your users switch OSes during a session, or work on Windows by > day > and Mac at night?  How many also use

Cross-platform font handling, and why you don't want to do it

2022-09-05 Thread Quentin Long via use-livecode
Cross-platform font compatibility is a hellacious rat's nest of mismatches. It may or may not be worse than handling time (Daylight Savings Time? leap years? leap *seconds*? etc, ad nauseum), but it's plenty bad enough on its own merits, or lack thereof. * You can't be 100% confident that your

Funky dice (was Re: Generating Random numbers to conform a distribution)

2022-06-08 Thread Quentin Long via use-livecode
From: Richard Gaskin > When I was making a game for a friend last summer I fell in love with  > the Royal Game of Ur (RGoU)…> The dice used in RGoU are binary in range, >tetrahedra with the faces  > blank and two of the four points painted. > …> If you ever need to plot dice probabilities, this

Re: Speed up a slow loop

2022-03-08 Thread Quentin Long via use-livecode
It occurs to me that any word which is valid in Boggle must consist of an uninterrupted run of letters which are *right next to each other* on the board. Hence, any digraph which *doesn't* consist of a pair of neighboring letters, *cannot* occur in any valid word. Since the "filter out all

Re: Speed up a slow loop

2022-03-08 Thread Quentin Long via use-livecode
sez Alex Tweedly:> The caveat - a user guess which isn't in the word list found by the > boardwalk can be either "not a word" or "a word, but not present on the  > board", and you don't know which. Does it *matter* whether a genuine word isn't on the board? If the board has no "L" in it, any

Re: use-livecode Digest, Vol 222, Issue 8

2022-03-07 Thread Quentin Long via use-livecode
sez j. landman gay: > Interesting idea. There are 25 letters on each board, some are always > repeats. I think I'd need  > a good regex so I wouldn't have to run the filter command multiple times. > How's your regex? I see you've already implemented something, but just for grins, here's my

Re: Speed up a slow loop

2022-03-05 Thread Quentin Long via use-livecode
So… a Boggle game. Hm. Seems to me that anything you can do to reduce the number of words you need consider at any given time would be a win. Maybe not a *big* win, but still a win. So perhaps give this idea a shot: When you create a new board: -- Make a list of all the letters which *are

re: Sorting cards

2021-12-30 Thread Quentin Long via use-livecode
sez J. Landman Gay:> I am converting an old stack to LC and it needs to sort cards by one of two fields. LC does  > stable sorts, so if I sort by field 1 it works, and then if I sort later by >field 2 it retains  > the original sort and does a sub-sort. I don't want that. What's the best way

For the record…

2021-10-28 Thread Quentin Long via use-livecode
In case anybody actually was curious to know how to type an infinity symbol: On a Mac, the keystroke is option-5. Also on the Mac, there's a cute thingie called "Keyboard Viewer" which does what it says on the label. KV displays your entire keyboard, *and* it shows you the complete set of

Re: Changing text properties in a field via the IDE

2020-05-19 Thread Quentin Long via use-livecode
Just saw an improvement in my code that *should* make it happy to work with Unicode characters… local OkayChars = "" function CleanASCII3 DerText  if OkayChars = "" then -- construct OkayChars string as needed    repeat with K1 = 32 to 126      put numToChar (K1) after OkayChars    end repeat 

Re: Changing text properties in a field via the IDE

2020-05-19 Thread Quentin Long via use-livecode
While Bob Sneidar's function should do the job of scrubbing weird characters from text, am unsure why he felt the need to construct that massive pCustomList variable. Seems to me that it would be simpler, and perhaps quicker, to do this instead: function cleanASCII2 DerASCII  put "" into

Re: What is a real?

2020-04-25 Thread Quentin Long via use-livecode
sez Bob Sneidar :>Apparently nothing is a real. Neither is anything strictly a real.  [singing] "Let me take you down, 'coz I'm going to Strawberry Fields…" ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: Building a Board Game

2020-04-10 Thread Quentin Long via use-livecode
On 7.04.20 22:24, Roger Guay via use-livecode wrote: > Hi all, > > I know there must be a simple way to do this but it is escaping me at the > moment. How can I move an object (grab me on mouseDown) and have it snap to a > grid (square on a board game) on mouseUp? There are any number of ways to

Possible new dev hardware?

2020-04-01 Thread Quentin Long via use-livecode
Atari is apparently producing a gizmo they call the "Atari VCS", which they're positioning primarily as a video game console. However! According to an email I just got from them, this beast has what they're calling "Atari sandbox mode (install any OS)", and they claim "If you want to develop

Re: Guessing the encoding of a test file...

2020-03-21 Thread Quentin Long via use-livecode
I strongly suspect that the desired goal, to have a nice, robust algorithm which automagically identifies the encoding of *ABSOLUTELY ANY* text document with zero need for human involvement, simply isn't possible. Because text encoding is intrinsically arbitrary—see also: the many variations on

Re: Identifying Un-used functions and commands

2019-11-28 Thread Quentin Long via use-livecode
> Date: Tue, 12 Nov 2019 12:12:47 -0500 > From: Stephen MacLean > To: How to use LiveCode > Subject: Identifying Un-used functions and commands > Message-ID: > Content-Type: text/plain; charset=utf-8 >  > Hi All, >  > I?m wondering if anyone has a way or code to identify any un-used functions

Re: math on widths doesn't add up (Sean Cole (Pi))

2019-07-10 Thread Quentin Long via use-livecode
sez Sean Cole (Pi):>I've just been teaching my youngest about the 4th - nth dimensions. Time is >not the 4th but the 1st temporal dimension. If the 3 spatial dimensions are >Length, height and width then the 4th is depth, ie, going inwards and >outwards as the easiest way to picture it (but not

After the conference

2019-05-17 Thread Quentin Long via use-livecode
Quentin Long here. As luck would have it, I'm going to be singing in a concert on the Friday after the LiveCode Conference. I have no idea how many LCC attendees will still be in the Bay Area on Friday, but for the benefit of those who are: The program: Ein deutsches Requiem, by Brahms The

Re: Seeking philosophical guidance on library interface design

2019-04-25 Thread Quentin Long via use-livecode
Hmmm… Seems like this library is intended for a summat limited subset of graph-styles. There are pie charts, radar charts, etc ad nauseum, and it's not clear to me how this library caan cope with any of those "non-standard" types of graph. As well, it's unclear to me how this library will deal

Re: Musings on Architect, MVC, Nested Behaviors

2018-12-28 Thread Quentin Long via use-livecode
> From: Richard Gaskin >> J. Landman Gay wrote: >> >> On December 27, 2018 2:36:16 PM Richard Gaskin via use-livecode >> wrote: >>> >>> Sounds like one more reason to allow stack properties as YAML >>> frontmatter in the file. Ever since I suggested that a couple >>> years back, the range of

Re: Searching for a word when it's more than one word

2018-09-02 Thread Quentin Long via use-livecode
Have pondered the question, and come up with some code which may or may not solve the problem at hand, but which may at least prove helpful in looking for a real solution: == Assumption: You’ve got a text document (not HTML, not RTF, just plain TXT) which contains,

Re: valueDiff for arrays

2018-08-07 Thread Quentin Long via use-livecode
Suggestion for the language-token for this function: "transplant". transplant [qualification] from [SourceArray] to [TargetArray] [qualification] is a pattern/expression which describes exactly which bits you want to move from SourceArray to TargetArray. If TargetArray doesn't exist, it should

About the 2019 LiveCode Conference

2018-05-18 Thread Quentin Long via use-livecode
Have just started a googlemap with markers for various points of interest in the general vicinity of the Conference. Right now it's just a bunch of restaurants, some of which also serve alcohol. Will add more markers as time permits.

Re: A modest proposal for a new property

2017-09-29 Thread Quentin Long via use-livecode
sez hh : > > > JLG wrote: > > > The original issue that influenced this one was how to provide a > > > larger hit zone on an SVG widget. > > > How would this property work for that? > > > Quentin L. wrote: > > I?m thinking that a single line of code would suffice: > > > > set the

Re: use-livecode Digest, Vol 168, Issue 50

2017-09-27 Thread Quentin Long via use-livecode
sez “J. Landman Gay" : > The original issue that influenced this one was how to provide a larger hit > zone on an SVG widget. How would this property work for that? I’m thinking that a single line of code would suffice: set the clickableRegion of widget “Fred” to

Re: A modest proposal for a new property

2017-09-27 Thread Quentin Long via use-livecode
sez hh : To: use-livecode@lists.runrev.com > How would you determine that a clickLoc is within such a > "region" or not? > (Say, for simplicity, the region is inside the control's > rectangle) Given that the engine *already does* have *some* sort of mechanism for determining

A modest proposal for a new property

2017-09-26 Thread Quentin Long via use-livecode
In the past few List digests, there's been some discussion of practical issues regarding when a click does or doesn't count as clicking *on* a particular item. So, here's a proposed addition to LiveCode… = Name: clickableRegion Recognized abbreviation: clickReg "clickableRegion"

Re: Points of Graphic Oval

2017-07-31 Thread Quentin Long via use-livecode
The obvious method for generating the points of an oval—use a loop that generates sin(x) & cos(x) coördinate-pairs—has already been mentioned. What's *not* so obvious, is that the points generated by that method are not evenly spaced! Not unless you're working with a perfect circle, anyway. For

Re: "clipsToRect" property

2017-06-14 Thread Quentin Long via use-livecode
My 2 cents' worth: Rather than "clipsToRect", call the property "visibleRect". Because that's what it is—it's the rectangular area of the screen, within which the specified portion of the group is visible. "Bewitched" + "Charlie's Angels" - Charlie = "At Arm's Length" Read the webcomic

Re: breakpoint on parameter

2017-05-24 Thread Quentin Long via use-livecode
sez "J. Landman Gay" : | On 5/23/17 10:36 AM, Matt Maier via use-livecode wrote: | > I want to find out which parts of my code are making changes to a control's | > parameter. Specifically, I've got an arrow that I want to be black, and it | > is black when it's created,

Re: looking for a smart approach to "sort" an array

2017-05-06 Thread Quentin Long via use-livecode
sez "Tiemo Hollmann TB" : To: "LiveCode User Liste senden" > I have a list field of words and a correspondent array with the words of the > field as the keys plus some data per key. I can store the array in a file, > read it later from file and

An anomaly in the "read from file" command?

2017-04-26 Thread Quentin Long via use-livecode
First off, thanks to Alan Stenhouse for zeroing in on my filter-related mistake. Any number fo people *could* have done so, but it was Alan who actually did the deed. So, yay Alan! Second: I discovered something odd as a result of another mistake I made. My mistake: ask file "What do you want

Weirdness with filter (maybe?)

2017-04-20 Thread Quentin Long via use-livecode
I have a return-delimited list. Each line of this list consists of [some text] & tab & [other text]. I want to see all the lines of the list for which [some text] contains Character String X. This is obviously a job for the filter command, right? So I try this: filter lines of MyList with ("*"

Re: WEIRD: code changes the code instead of a field

2017-03-21 Thread Quentin Long via use-livecode
Message: 13 Date: Tue, 21 Mar 2017 14:58:02 + sez Bob Sneidar > > On Mar 21, 2017, at 04:11 , Klaus major-k via use-livecode > > wrote: > > > > "numtochar" and "chartonum" have been deprecated since version 7.x of > > Liveocde! >

Re: Messages sent while mouse is down?

2017-03-11 Thread Quentin Long via use-livecode
sez Tim Selander : > I miss the Zynga "Pathwords" game on Facebook, so for my own > amusement I'm trying to recreate it in Livecode. > > For those who don't know the game, it had a solid screenful of > Scrabble-like lettered tiles. Click and drag the mouse through >

Re: Dragging widgets

2017-02-28 Thread Quentin Long via use-livecode
> > On Feb 28, 2017, at 07:14 , Sannyasin Brahmanathaswami via use-livecode > > wrote: > > an image is an image is an image, whether it is png, bitmap, jpg or svg, > > the fact that is is a "widget" is secondary to the use case. > > sez Bob Sneidar

Re: Yertle the Turtle

2017-01-31 Thread Quentin Long via use-livecode
Suggestion for RM to try: Don't fuss about non-integer points—do all the necessary calculations "under the hood", and just let point-coördinates be assigned the resulting non-integer numbers as needed. With any luck, LC will make this "just work" on your screen. "Bewitched" + "Charlie's

Re: Not Corruption

2017-01-05 Thread Quentin Long via use-livecode
sez J. Landman Gay: > On 1/4/17 4:05 PM, Bob Sneidar wrote: > > I feel so stupid. But I must confess I screwed up. > You did the right thing posting here. I have a client who runs into > problems all the time, so we schedule a Skype session where I can see > what's going wrong. Invariably, as