Re: A web app launcher with responsive design

2022-08-14 Thread Jim Lambert via use-livecode
Andreas,

Very nice!

Thanks,
Jim Lambert

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


Re: Audio Control on Mobile?

2022-05-16 Thread Jim Lambert via use-livecode
> Dan wrote:
> My client wants to make a music playing app.  Need to replicate a music 
> player... so, we need to keep our [custom] transport in sync with the sound.  
> Stop, Start, Pause, Scrub, update current time and time remaining, etc.  EASY 
> on desktop, can't seem to do this on mobile with LiveCode.

I wonder if using the Browser widget would help?

https://developer.mozilla.org/en-US/docs/Web/Guide/Audio_and_video_delivery/Cross-browser_audio_basics
 


Jim Lambert
___
use-livecode mailing list
use-livecode@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-07 Thread Jim Lambert via use-livecode


> After a day or two with BBC BASIC on a black screen teenagers will "do 
> anything for me" when they see the, supposedly,
> old-fashioned LiveCode IDE and the ever-so-sexy WYSIWYG GUI.

Using the ol' psychology on 'em. 
Wily!

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


Re: nsScriptDatabase 1.1

2022-03-17 Thread Jim Lambert via use-livecode
Neville,

Thanks for the update.

Jim Lambert

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


Re: nsScriptDatabase 1.1

2022-03-17 Thread Jim Lambert via use-livecode
Neville,

Thanks for the update.

Jim Lambert

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


Re: Browser Widget and Images

2022-03-13 Thread Jim Lambert via use-livecode
> 
> So accessing the URL of the image directly in the image object
> puts the image there, which is a good first step.
> 
> How is it stored however?  
> 
> If one looks at the image source it still shows the URL. 
> 
> I find I?m unable to paint on top of the image, probably 
> because that would require my being able to modify the
> online URL which isn?t possible for the obvious reason.
> 
> I probably need to make a local copy of the image to
> be able to work on it.  Export image? Copy it to
> the clipboard and paste it elsewhere?
> 
> Suggestions?

Rick,
set the imagedata of img "myImage" to the imagedata of img "myImage"

Will replace the referenced image with the actual content of that image.
In other words the image will now be local and you can then manipulate its data.
No need for snapshots. Although they work too!

Jim Lambert
___
use-livecode mailing list
use-livecode@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 Jim Lambert via use-livecode
Try:

put "*THISISMYTEXTTOFIND*" into tTarget
put “abcdefghijkTHISISMYTEXTTOFINDlmnopqrstuvwxyz” into tLargeTextString

put tLargeTextString into pText

filter pText with tTarget into tFilteredTextResult

answer "tFilteredTextResult = " & tFilteredTextResult

Or more simply:
filter tLargeTextString with "*THISISMYTEXTTOFIND*" into tFilteredTextResult


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


RIP David Boggs

2022-03-01 Thread Jim Lambert via use-livecode
https://www.nytimes.com/2022/02/28/technology/david-boggs-dead.html?smid=url-share
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Sublime Fields Behavior

2022-02-26 Thread Jim Lambert via use-livecode
I whipped up this behavior just for fun after seeing Ali use SublimeText to 
edit code. 

https://livecodeshare.runrev.com/stack/1015/sublime-fields 


This behavior creates fields similar to the fields in the SublimeText Code 
Editor.

When 'sublimeField Behavior' is attached to a field a small image of the 
field's entire contents will be created and placed in a group to the right of 
the field.

As the field scrolls the smaller version will scroll in sync.

When the number of lines in the field change the small version is updated to 
match.

The size ratio of the small image to the field is determined by the 
kPercentShrink constant in the behavior script.

Public Domain  - Jim Lambert 2022


___
use-livecode mailing list
use-livecode@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 and interactive video

2022-01-21 Thread Jim Lambert via use-livecode
A quarter of a century ago, we called this Interactive Multimedia.
It was usually delivered on a CD-ROM.   Ask your parents! ;)

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


Re: Can I still change LC code?

2022-01-12 Thread Jim Lambert via use-livecode
Of course, you can start 'rolling your own' by cloning the IDE stacks then 
customizing those clones as you wish.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Happy New Year!

2021-12-31 Thread Jim Lambert via use-livecode
A very Happy, Prosperous and Safe 2022 to all!

Jim Lambert

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


a test

2021-11-28 Thread Jim Lambert via use-livecode
Ignore this test

JimL

___
use-livecode mailing list
use-livecode@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-31 Thread Jim Lambert via use-livecode
> MarkW wrote:
> From a Boingboing user comment...
> 
> META: Making Evil Totally Acceptable

LOL LOL LOL

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


Re: Our survey - please don't discuss :)

2021-10-22 Thread Jim Lambert via use-livecode
> 
> never conciously

I've tried that excuse but my wife never buys it. ;)

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


RE: On the subject of things with the same short name... ('identical' groups which behave differently)

2021-10-08 Thread Jim Lambert via use-livecode
> Jacque wrote:
> And then there's "this me", which still tickles me.

"This me" could be a quote from that Scottish author's tale The Strange Case of 
Dr. Jekyll and Mr. Hyde. ;)

Jim Lambert
___
use-livecode mailing list
use-livecode@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 text is *VERY* slow in LC9 on Windows (Re: Accumulating text is *VERY* slow in LC9 on Windows)

2021-09-10 Thread Jim Lambert via use-livecode
Cheddar, Edam and Swiss!
Very daring references on this list.

___
use-livecode mailing list
use-livecode@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 Jim Lambert via use-livecode
> Jacque wrote:
> 
> But while I agree completely with your definition, it got me concerned that 
> if I were to marry a very tall, large man, I would be a bigamist.

A 24 carat post!
___
use-livecode mailing list
use-livecode@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 Jim Lambert via use-livecode
> Matthias wrote:
> 
> 'ein paar' means two or three or somewhere in the range.

Ich kann Deutsch. Aber nur ein paar Wörter.

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


Apple App Store Agreement

2021-08-27 Thread Jim Lambert via use-livecode
FYI

"Apple has agreed to a class action settlement that will allow apps developers 
to implement payment systems outside of the App Store and communicate directly 
with customers about them."

https://www.zdnet.com/article/apple-settles-lawsuit-to-allow-developers-to-use-payment-systems-outside-of-app-store/
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Jim Lambert is not crazy!

2021-07-29 Thread Jim Lambert via use-livecode
浪

Jim Lambert
___
use-livecode mailing list
use-livecode@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-03 Thread Jim Lambert via use-livecode
> Jacque wrote:
> It's either the Flying Spaghetti Monster or fullscreenmode. ;)


Flying Spaghetti Monster is what I call my code.

Jim Lambert

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


Re: 3-way slider control

2021-05-26 Thread Jim Lambert via use-livecode
go url "http://netrin.on-rev.com/misc/three_state_toggle.livecode;

This stack contains a group which is a three-state toggle switch.

The myState of the group contains its current state which is either "ON","OFF" 
or "MID"

You can customize the states' colors by setting the color constants.

See the group script.

To use: Either drag the thumb OR Tap at the left, right or center of the 
control.

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


Re: Bug, feature, or just something I need to program around?

2021-05-13 Thread Jim Lambert via use-livecode
Hi Alex,

> I don't follow you Jim.

You wrote: 
>  if I TAB into the field the cursor is initially at the start of the 
> field and the key sequence above will move the cursor to the end 
> *without* selecting the characters.

In Notes if you are in one note then select a different note and execute 
Shift-Command-Right Arrow, you will see the same behavior. The insertion point 
moves to the end of the note without selecting any text. 

I merely pointed out this behavior is somewhat akin to what you see in LiveCode 
as you move from field to field with TAB as long as the autoTab property is 
false. With autoTab set to true the entire contents of the field is selected.

> if I TAB into the field the cursor is initially at the start of the field

Here the field 'remembers' its previous insertion point during the session 
rather than always appearing before char 1.

Glad Jacque's autoTab tip works for you!

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


Re: Bug, feature, or just something I need to program around?

2021-05-12 Thread Jim Lambert via use-livecode


> In a LC single line field (MacOS), the keys shift-cmd-rightarrow will 
> select from the current position to the end of the line, and add that to 
> the selection.
> 
> BUT if I TAB into the field the cursor is initially at the start of the 
> field and the key sequence above will move the cursor to the end 
> *without* selecting the characters.
> 
> At that point, shift-cmd-leftarrow will move it back to the start, still 
> without selecting any characters. But if you do "something else" (e.g. 
> left arrow, insert a char, delete a char, ...) then normal behaviour 
> resumes. If you click into the field, everything behaves itself.

Alex,

If you go to Apple's Notes and move from note to note, you'll see somewhat 
similar behaviors.
So perhaps it's expected.

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


Re: notarizing DMG fails - solved

2021-05-06 Thread Jim Lambert via use-livecode
> 
> Thank you Matthias! Your tools make my life SO much easier! You have
> done a great service for this community.

+100

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


Re: autohilite FUBAR?

2021-04-03 Thread Jim Lambert via use-livecode
Richard,

On Mac when I hold the mouse down on a LC button, I can move the cursor around 
within the button and the button remains hilited.
As soon as the cursor exits the button the hilite disappears.
To me this is the desired behavior one should see on all platforms.

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


Re: mouseenter/mouseleave and pointer tool

2021-03-30 Thread Jim Lambert via use-livecode
Good suggestions. Thanks, all.
Commenting out the answer command makes no difference. 
I quit LC and now cannot reproduce the behavior as it is intermittent.
Next time it happens I'll try Scott's suggestions with the Tool Palette.

Thanks,
Jim Lambert

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


Re: mouseenter/mouseleave and pointer tool

2021-03-30 Thread Jim Lambert via use-livecode
Actually I'm not entirely crazy.
Here is a MOV showing the anomalous behavior of mouse events executing even 
when the Pointer Tool is active.

https://netrin.on-rev.com/videos/lc_select_issue.mov 


This is intermittent. I don't have a reliable way of reproducing. If I did I'd 
file a bug report or attach an example stack to Klaus' report.
Sometimes it is solved by closing and re-opening LC or a different version of 
LC.

Odd.

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


Re: mouseenter/mouseleave and pointer tool

2021-03-29 Thread Jim Lambert via use-livecode
I wrote:
> Every time I click on a button in the IDE with the pointer tool in order to 
> select and, say, move it, I'd prefer if the mousedown/up scripts didn't fire 
> off because I'm editing the UI not running it. 
Nevermind. Those scripts are not firing when using the pointer tool.
I'm crazy!!!

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


Re: mouseenter/mouseleave and pointer tool

2021-03-29 Thread Jim Lambert via use-livecode
> Paul wrote:
> 
> This is not a bug, but a feature. Our app contains a specialized network 
> drawing tool and we switch to the pointer tool to allow the user to 
> interact with drawn objects

I'd respectfully suggest that is a fringe use case when compared to authoring 
in the LC IDE.
Every time I click on a button in the IDE with the pointer tool in order to 
select and, say, move it, I'd prefer if the mousedown/up scripts didn't fire 
off because I'm editing the UI not running it. If I recall correctly this was 
not how LC/Revolution originally behaved.

Richard, remember SuperEdit? Very much about authoring.

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


Re: mouseenter/mouseleave and pointer tool

2021-03-29 Thread Jim Lambert via use-livecode
> Klaus wrote:
> when the pointer tool is active, "mouseenter" and "mouseleave"
> handlers are executed nevertheless!? 
> 
> I don't this this is correct behaviour!

I agree.
When the pointer tool is selected in the IDE one is supposedly in Editing Mode.
To have code execute when you simply enter or select an object you wish to edit 
is counter to the nature of editing, not helpful and, well, plain wrong.

Of course, it's been this way for a long and annoying while. Special case 
drawing apps not withstanding.

Jim Lambert



___
use-livecode mailing list
use-livecode@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(?) Idea for Standalones

2021-03-28 Thread Jim Lambert via use-livecode
> Richard G. wrote:
> 
>  I raise my whiskey 
> to toast your whisky.

Sláinte!

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


Re: Multidimensional array issue

2021-03-10 Thread Jim Lambert via use-livecode
This is a very interesting discussion of LC arrays. But back to the original 
post:

> HENRY LOWE wrote:
> 
> I am using multidimensional arrays to process data read from JSON files.
> Some of the data in the JSON files can be represented in alternative forms in 
> files from different sources.
> For example a field named ?status? may be represented as either:

> "status": {
>"text":"active"}
> 
> or
> "status": {"active"}
> 
> To recognize both forms I use code (after transforming JSON to an array 
> tArray] 

Perhaps massage the JSON before importing it into an array.

   replace quote & "text" & quote & ":" with empty in myJSON

In this way there won't need to distinguish "alternate forms" in the LC array.

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


Re: Did I dream this ?

2021-03-05 Thread Jim Lambert via use-livecode
They would be handy properties. But in the meantime try this behavior:
getProp xLoc

return item 1 of the loc of me

end xLoc


getProp yLoc

return item 2 of the loc of me

end yLoc


After assigning the behavior to any object you can just use:
put the xloc of someObject

put the yloc of someObject

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


Re: LC Roadmap

2021-02-15 Thread Jim Lambert via use-livecode
> Andre wrote:
> 
> LC is a small company regardless of how much we love them. They can't provide 
> solution to all our needs. It is not because they don't want to, they have 
> limited resources. We can't treat LC as we treat Apple or Microsoft. 

So true. I absolutely marvel at how much the LiveCode Team have accomplished 
and are able to accomplish at their size and budget. I'm grateful for that.

It helps to remember a map is not a journey. Journeys very often diverge from 
the planned map route. See the sad story of TechTV's James Kim.

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


Re: MP3 ID3 tag writer

2020-11-24 Thread Jim Lambert via use-livecode
Thank you for this, Matthias.
Danke sehr.

Jim Lambert

> Matthias wrote:
> 
> Re: MP3 ID3 tag writer
> I just noticed, that the files are not available anymore.
> 
> I've uploaded a zip archive of those files here
> 
> https://dl.qck.nu/?dl=MarkSmith.zip 
> 
> 
> -
> Matthias Rebbe

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


Re: reading QR-code on Mac from an imported image

2020-11-23 Thread Jim Lambert via use-livecode
Klaus,

Would this help you?
https://zxing.org/w/decode.jspx

Jim Lambert

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


Re: Design Question

2020-11-17 Thread Jim Lambert via use-livecode


> The application's core is access to Earth data (that scientists used to 
> develop the theory of plate tectonics) and capturing and annotating plots 
> that can be incorporated into student writing.

If the 'student writing' is created in some other program then wouldn't it be 
sufficient to allow a student to copy text, data and plots from your program 
and paste them into whatever writing program the student uses?

If the 'student writing' is created in your program could their work be 
exported as PDF that is then imported into the 'learning management system" 
and/or shared with the teacher?

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


Re:TIL: JSON validator

2020-10-01 Thread Jim Lambert via use-livecode
Mark,

Thanks for those useful links.

Jim Lambert

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


Re: Possible : stack with transparent backgound?

2020-09-11 Thread Jim Lambert via use-livecode
Here's an example:
go stack url "https://netrin.on-rev.com/misc/TransparentStack.livecode;


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


Re: Possible : stack with transparent backgound?

2020-09-11 Thread Jim Lambert via use-livecode
> DavidB wrote:
> 
>  the text and some other elements to be visible but the stack background to 
> be transparent 


Start with a card having a field and a button.
1. Create a GRC retangle the same rect as the card.

2. Set its opaque to false.

3. Set its linesize to 0.

4. Send it to back.

5. Group it with the field and a button.

6. Set the threeD of the Group to false.

7. Set both the borderwidth and margins of the group to 0.

8. Import snapshot from this card.

9. Hide last image.

10. Set the windowshape of this stack to the id of the last image.


This results in the field and button 'floating independently' over whatever 
else is on your screen. That is, the rest of the card is invisible.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Cross Platform Font Layout

2020-08-25 Thread Jim Lambert via use-livecode
Sean wrote:

> Jim,
> 
> You might want to give me more time for this kind of testing 
Granted! I give you all the time in the world.

>  and have a word with my clients to ensure this.
Ah sorry, can't help there, for that would be your job when responding to 
requests for proposals.

Jim Lambert

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


Re: Cross Platform Font Layout

2020-08-25 Thread Jim Lambert via use-livecode
> Sean wrote:
> 
> So, after developing at a stupid rate, 12 solid 14-18hr days, we have the 
> finished app ... ready for deployment out to Mac and PC. Tick the boxes in 
> the standalone settings, build and open in their respective platforms. 
> 
> Only to find that everything you had laid out perfectly matching on PC is 
> totally screwed on the Mac. Opening up the stack on the Mac, it?s the same 
> thing.  Now with only one day to go 

Knowing that the deliverables would be required to run on Windows and Mac, 
prudent project management would dictate repeated testing on both platforms 
during the "12 solid 14-18 hour days" of development. You might want to adjust 
your testing approach for future projects.

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


Re: Browser Widget and Twitter on iOS 13

2020-08-15 Thread Jim Lambert via use-livecode
Ralph,

Thanks for that switch statement.

Jim Lambert

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


Re: ProtonMail vs Apple

2020-08-10 Thread Jim Lambert via use-livecode
Yes, Apple's approach is very proprietary. But it is simply not monopolistic. 
Apple does not have a monopoly on smartphones or smartphone OSes.
What they do have is a very strict proprietary control of their products. Some 
argue an overly strict control of their products.

I like my Rolls Royce Phantom, but it's so unfair of Rolls Royce not to offer a 
Phantom with an engine from Volkswagen! ;)

As a consumer or developer if one doesn't like Apple's products and policies 
simply choose to buy and develop elsewhere. If enough folks do likewise, Apple 
will soon change as sales plummet. They did this back in the 90s when they were 
hanging by the thinnest thread and allowed other vendors to sell Mac-compatible 
hardware.

And yes, our laws may indeed need to be adapted for 21st century realities.

I'm going to stop now and this is recursion! ;)

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


Re: ProtonMail vs Apple

2020-08-08 Thread Jim Lambert via use-livecode
BrianM wrote:
> One thing that seems to be missing in this discussion is the point of view of 
> the ?client?, the one who downloads the app and pays for it

True. 
In the U.S. the laws against monopoly (the Sherman Act of 1890, the Clayton Act 
of 1914 and the Federal Trade Commission Act of 1914) are there to promote 
competition amongst companies for the benefit of consumers.   Or our end users.

Do Apple's actions and policies monopolistically harm consumers? Consumer 
behavior itself argues against that. Quite the contrary, consumers are willing 
to pay a premium for Apple products and services. 

Andre notes that Apple exercises a monopoly WITHIN the iOS system. But that is 
a misnomer. Apple has a proprietary system not a monopolistic one. And they 
strictly control it. It's simply not true that "there is nothing iOS users can 
do about that." Yes, there is. Consumers who don't want to buy into Apple’s 
closed system are free to buy elsewhere. Consumers can choose Android or any 
other alternative products. No one is forcing consumers to buy and use Apple 
products, which is what would happen if Apple had an actual monopoly. In fact, 
some consumers prefer Apple's strict proprietary control and are willing to pay 
mucho dinero for it. 

Now look at it from the developers' point of view. Apple makes us jump through 
many more hoops than Android developers do. Apple constantly changes these 
hoops which can seem inexplicably capricious. But is it? Or is it a constant 
effort to assure safe computing for their consumers?

There seems to be an assumption that the 30% cut Apple takes is outrageous. But 
what does a developer get for that Apple %? If you think you can replace what 
Apple offers for less money, then just sell your app on Android and rake in the 
extra bucks. What's stopping you?

The reality is that the vast majority of smartphone apps make little or no 
money, regardless of OS. 
So is it painful to surrender 30% of nothing? ;)

But back to the purpose of this list, aren't we lucky to have LiveCode, a 
development platform that gives us the power to develop for whatever platforms 
make sense for us?

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


Re: ProtonMail vs Apple

2020-08-07 Thread Jim Lambert via use-livecode
"A monopoly refers to when a company and its product offerings dominate a 
sector or industry. Monopolies can be considered an extreme result of 
free-market capitalism  in 
that absent any restriction or restraints, a single company or group becomes 
large enough to own all or nearly all of the market (goods, supplies, 
commodities, infrastructure, and assets) for a particular type of product or 
service. The term monopoly is often used to describe an entity that has total 
or near-total control of a market.”
https://www.investopedia.com/terms/m/monopoly.asp

Even with 58% of the US smartphone market Apple does not actually have a 
monopoly.
Now there may be plenty of good reasons to object to Apple’s app store policies 
but let’s not misuse the term monopoly.

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


Re: ProtonMail vs Apple

2020-08-04 Thread Jim Lambert via use-livecode
That article is an interesting read.

Still these two sentences:

Apple is using its monopoly to hold all of us hostage
Apple’s iOS controls 25% of the global smartphone market (the other 75%, is 
largely controlled by Google’s Android).

are self contradictory. By definition a company with 25% of the market is not a 
monopoly.

Jim Lambert
___
use-livecode mailing list
use-livecode@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.1 RC-1

2020-07-30 Thread Jim Lambert via use-livecode
LC Team,

Thanks for this release.

FYI. I noticed something I hadn’t seen before when installing earlier LC 
releases on OSX.
I was unable to mount "LiveCodeBusiness-9_6_1_rc_1-Mac.dmg” because a LC 
resource was in use.

Fix. Quit any open LCs first, then mount the dmg.

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


Re: Object naming

2020-07-28 Thread Jim Lambert via use-livecode
Zanzibar Buck-Buck McFate was my lawyer.
One day I asked if I could call him Zanz.
He said, “Nah. Just call me Dave!”

Jim Lambert


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


Re: Is "import snapshot" without parameters broken?

2020-07-25 Thread Jim Lambert via use-livecode
Brian,

Import Snapshot sans parameters works fine for me in LC 9.6.0 on macOS 10.15.5

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


Re: tsnetGetFile() example using HTTP?

2020-07-18 Thread Jim Lambert via use-livecode
Phil,

Here’s some info on tsnet

https://www.techstrategies.com.au/tsnet-resources/ 


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


Re: [off-topic-ish] do you prefer LC-related content as books or video courses?

2020-07-08 Thread Jim Lambert via use-livecode
Hi André,

I previously always favored printed books.

But now I prefer digital materials that are a combination of text (with 
copiable code!), interactive elements, and supplementary video.
As Richard pointed out LC itself provides "the many learning benefits of direct 
engagement with interactive media.”

IMO, Video is most appropriate when used to convey visual, spatial and temporal 
examples. It’s can also provide a bit of a human touch to the instruction, even 
though it’s utterly mechanical.

So, yeah, I like a combo.

Hope this helps!

Jim Lambert


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


Platform Divergence

2020-06-23 Thread Jim Lambert via use-livecode
This year’s WWDC shows Apple is moving to a unified ‘system' for all their 
products: Mac, iPhone, iPad, Apple Watch, AppleTV.
The Apple development environment promises to produce a single app capable of 
running on all, or almost all, of Apple devices. This unification promises to 
be quite convenient for Apple developers.

In contrast, over the last decade or so there has been an ever increasing 
divergence in UX between major operating systems: Apple, Windows, Linux, 
Android. The days when systems were so similar that you could rely on the 
commonality of a handful of UI elements across platforms seems over to me. 
That’s troubling because such commonality is fundamental to LiveCode’s approach 
- write once, run everywhere.

In watching WWDC sessions it’s pretty clear that even simple UI elements have 
become more like UX elements having intrinsic and complex properties, such as 
certain visual and behavioral animations. Users readily learn to expect these 
behaviors. Yet such things are increasing difficult to fake with LiveCode’s 
basic palette of objects.

Enter LiveCode Builder and LC Widgets. They offer the promise of 
platform-specific UI elements - a promise fulfilled with some simple elements 
like iOS Native Button or Android Native Field. But I’m concerned that as 
platforms diverge in the interface experiences they present to users, that LC 
and LC developers will have difficulty satisfying users' divergent expectations.

Is my concern valid?

Jim Lambert


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


Re: Unicode and languages

2020-06-06 Thread Jim Lambert via use-livecode
Not LC native but take a look at Google Translate API 


Jim Lambert

> Language detection
> When you don’t know your source text language — for instance, in 
> user-generated content that doesn’t include a language code — our translation 
> products automatically identify languages with high accuracy.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Scrolling jitter

2020-06-05 Thread Jim Lambert via use-livecode
Clearly jitterbugs!

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


Re: upcoming online conferences

2020-05-10 Thread Jim Lambert via use-livecode
Mark,

Thank for the links and for the Machine Learning intro link.

Jim Lambert

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


Re: Counting unique items in a file

2020-04-28 Thread Jim Lambert via use-livecode
function getUniqueNames inData,pColumn
split inData by column

split inData[pColumn] by return and return

combine inData[pColumn] by return and space

return inData[pColumn]

end getUniqueNames


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


Re: MP3s

2020-04-13 Thread Jim Lambert via use-livecode
> Richard wrote:
> 
> I miss the simplicity of delivering true stand-alone apps, but with so 
> many of the most lauded features of LC 8-and-later having been 
> implemented as externals, adding some media files to the mix doesn't 
> affect deployment options much.


I suppose one could store the binary data of MP3s or other media within a 
stack’s properties, then extract them to disk for use by a player object.

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


Re: use-livecode Digest, Vol 198, Issue 20

2020-03-18 Thread Jim Lambert via use-livecode
> We are all sorted now.
> 
> Best Regards,
> 
> Heather


Thanks, Heather and Team!

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


Happy 2020!

2020-01-01 Thread Jim Lambert via use-livecode
Have a Happy LiveCode New Year!

Jim Lambert

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


Re: Setting hidden of lines very slow

2018-12-08 Thread Jim Lambert via use-livecode
>  So I am looking to hide any line that contains no textcolor anywhere.

You might save into a variable the HTMLTEXT of all the lines that contain the 
textcolor.
Also save the HTMLTEXT of the whole field into another variable.
Then in a blink of an eye you can instantly switch between the entire text and 
just the lines with colored characters - and back again.

Jim Lambert 


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


Re: Will it ever be possible place controls over browser widget?

2018-10-05 Thread Jim Lambert via use-livecode

> Herman wrote:
> 
> See my demo here:
> 
> http://forums.livecode.com/viewtopic.php?p=152773#p152773 
> 
> 
> Overlays the widget while this plays a video.

So floating a second stack over the browser as I suggested does work and is 
beautifully demonstrated in Herman’s DemoVideoBack.livecode.zip.

Jim Lambert

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

Re: Will it ever be possible place controls over browser widget?

2018-10-05 Thread Jim Lambert via use-livecode
> Herman wrote:
> 
> See my demo here:
> 
> http://forums.livecode.com/viewtopic.php?p=152773#p152773 
> 
> 
> Overlays the widget while this plays a video.

So floating a second stack over the browser as I suggested does work and is 
beautifully demonstrated in Herman’s DemoVideoBack.livecode.zip.

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

Re: Will it ever be possible place controls over browser widget?

2018-10-04 Thread Jim Lambert via use-livecode
> Does anyone know if it will ever be possible to place controls on
> layers above a browser widget?


I don’t know if that is in the works or when it may be available.

But you might be able to kludge it now on desktop:
1- place the control (say, a button) that you want to position within the 
browser’s rect in a separate stack;
2- set the window shape of that stack to match the shape of the button;
3- position that ‘button’ stack on top of the browser widget that is in the 
underlain stack.

I haven’t tried it but it may work.

Jim Lambert
___
use-livecode mailing list
use-livecode@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] animationEngine is free now

2018-09-28 Thread Jim Lambert via use-livecode
Malte,

Best of luck!
AE was and is a wonderful tool.

Viele Danke,
Jim Lambert

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


Re: Being stupid for a change

2018-09-09 Thread Jim Lambert via use-livecode
Richmond, you’re not stupid, just ‘clude’-less. ;)

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

Re: use-livecode Digest, Vol 180, Issue 17

2018-09-08 Thread Jim Lambert via use-livecode
> MarkR wrote:
> 
> Can LiveCode communicate with Bluetooth devices?

There is an extension that comes with an Indy/Business license. mergBLE

From the Dictionary:
"mergBLE is a LiveCode external for iOS and OS X that enables CoreBluetooth 
(BLE) functionality. You can use the external to discover and interact with 
peripherals or advertise your app as a peripheral for others to interact with.”

Jim Lambert


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

Re: This is disturbing!

2018-09-07 Thread Jim Lambert via use-livecode

> Bob S wrote:
> There is already a string keyword. 
> 

True.   ‘Stringify()’  or ‘’evaluateAsString()’

It’s easy enough to write a function to force string comparisons for those rare 
edge cases like  "6. " is equal to "6.” where the engine automatically converts 
the strings to numbers.

function compareAsStrings string1, string2
return string1 & "a" = string2 & "a"
end compareAsStrings

compareAsStrings("6. ","6.") returns FALSE.

Jim Lambert







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

Re: This is disturbing!

2018-09-06 Thread Jim Lambert via use-livecode

> RichardG wrote:
> Any suggestions for a new operator token to specify numeric equivalence?

Or maybe to specify string equivalence.

> Did anyone know that "6. " is equal to "6."???

string( "6. “) is not equal to string( "6.”)

where the function string() would tell LC not to try to convert the string into 
a number, but simply leave it as a literal string for comparison purposes.

Of course, another way to prevent LC from converting a textual number into an 
actual number is to append a string to the textual number:

whereas  "6. “  =  "6.”   returns TRUE
 "6. “ & “a” =  "6.” & “a”  returns FALSE.

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

Re: This is disturbing!

2018-09-06 Thread Jim Lambert via use-livecode
> Did anyone know that "6. " is equal to "6."???

It’s somewhat similar to 
value(“h “) is equal to value(“h”), 
while 
“h “ is not equal to “h”.

I’m not disturbed but appreciative that the engine tries to convert both sides 
to numbers when doing a comparison. Just must remember that and use more 
“string-y” ways to compare strings as only strings.
For example other functions can reveal the strings “6. “ and “6.” are not the 
same string, such as length(“6. “) is not equal to length( “6.”).

Jim Lambert


___
use-livecode mailing list
use-livecode@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: LC Documentation Cache Cleaner

2018-09-03 Thread Jim Lambert via use-livecode
Mark,

Very handy!

Thanks,
Jim Lambert

___
use-livecode mailing list
use-livecode@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] Accommodation in Edinburgh

2018-09-01 Thread Jim Lambert via use-livecode
> Hugh wrote:

> We are (finally!) taking a week's holiday north of the border and want to
> visit Edinburgh 10-15 September.
> Any hotel recommendations? Does not have to be in the city centre!
> 


These are not hotels. But we have stayed at both of these charming apartments.
Hidden Glen was quite near the Tollcross location of the previous LC Conference.
Both are owned by the family that owns The Three Chimneys on Skye, which is an 
exceptionally elegant inn/restaurant.

Old School Tower @ Holyrood Park
1/9 Saint Leonard's Crag, Edinburgh, EH8 9SP
https://www.airbnb.com/rooms/2667737?sug=50 


Hidden Glen Apartments: Glendale
22 Glen Street, Tollcross, Edinburgh, EH3 9JE
https://www.airbnb.com/rooms/8354483?sug=50 


These and others are also directly available through Gillian Taylor & Ewen 
MacAskill’s own site:
www.edinburghhideaways.com 

Stayed at The Scotsman once. They gave us a free upgrade to the penthouse. 
Spectacular! So, of course, we recommend that hotel. ;)
Also The George in New Town is nice.

Hope this helps.

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

Re: How to get word offset all instances of a string in a chunk of text?

2018-08-30 Thread Jim Lambert via use-livecode
> I wrote:
> 
> Then there is also this repeat-less approach using arrays and filter:

> function findWordOffsets pText, pSearchTerm
>   put replaceText(pText,"\W+"," ") into pText
>   split pText by space
>   combine pText with cr and tab
>   filter pText with "*" & tab & pSearchTerm
>   sort numeric pText
>   return pText
> end findWordOffsets

This just doesn’t work in all cases because splitting by space does not assure 
one is splitting by true words.
:(
Sorry about that.

Jim Lambert

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

Re: How to get word offset all instances of a string in a chunk of text?

2018-08-30 Thread Jim Lambert via use-livecode
> On 30/08/2018 10:24, Keith Clarke via use-livecode wrote:
>> Folks,
>> Is there a single-pass mechanism or more efficient way of returning the 
>> wordOffset of each instance of ?the? in ?the quick brown fox jumped over the 
>> lazy dog? than to use two passes through the text?

Then there is also this repeat-less approach using arrays and filter:

function findWordOffsets pText, pSearchTerm
put replaceText(pText,"\W+"," ") into pText
split pText by space
combine pText with cr and tab
filter pText with "*" & tab & pSearchTerm
sort numeric pText
return pText
end findWordOffsets

put "Then the quick brown fox jumped over "The" very,

very lazy

red dog on the sofa.” into temp   — note the extra spaces and line breaks.

put findWordOffsets(temp, “the”)   
returns:
2   the
8   The
15  the

Jim Lambert



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

Re: fullscreenmode and rect of a substack on mobile device ?

2018-08-21 Thread Jim Lambert via use-livecode
A shootout between FSM vs. scripted resizing might make a good LC Global 
presentation.
The pros and cons of each. Cases where one may be better than the other. Etc.
Examples.

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


Re: drawing a Barcode without a Barcode font

2018-07-23 Thread Jim Lambert via use-livecode
> Matthias wrote:
> 
> If we print the labels with a thermo printer (203 dpi) then the code cannot 
> be scanned with the values i posted before.
> We  had set the line thickness of the rectangles to 0 and had to increase the 
> width of the black bars and decrease the width of the clear ones.


I wonder if it would make a difference to print snapshots of the graphic group 
rather then the group itself?

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


Re: Regex (matchChunk) help...

2018-06-15 Thread Jim Lambert via use-livecode
Building on what Mark Wieder elegantly wrote:

> MarkW wrote:
> 
>  filter lotsOfText with "*selkirkst*skyrider1*”

function extractStrings lotsOfText, startWord, endWord

replace cr with space in lotsOfText -- Makes sure lotsOfText is just a 
single line

replace startWord with cr & startWord in lotsOfText -- Makes sure a 
line starts with the startWord

replace endWord with endWord & cr in lotsOfText -- Makes sure a line 
ends with the endWord

filter lotsOfText with "*" & startWord & "*" & endWord  — Mark’s 
suggestion

return lotsOfText

end extractStrings


Try it with your original gibberish. I‘ve added a second instance of the string 
you want to extract to show that the function will return all instances.


Use the *selkirkst* function to check whether a *string* contains a

specified pattern. If *selkirkst* includes a pair of parentheses, the

position of the substring matching the part of theregular expression inside

the parentheses is placed in the variables in the *positionVarsList*. The

number of the first character in the matching substring is placed in the

first variable in the positionVarsList, and the number of the last

*selkirkst is

placed in the second **skyrider1*. Additional starting and ending

positions, matching additional parenthetical expressions, are placed in

additional pairs of variables in thepositionVarsList. If the

*selkirkst* function

returns false, the values of the variables in the positionVarsListare not

*selkirkst is

placed in the third **skyrider1*. changed. The string and regularExpression are 
always case-sensitive,

regardless of the setting of the caseSensitive property. (If you need to

make a case-insensitive comparison, use "(?i)" at the start of the

regularExpression to make the match case-insensitive.)


Jim Lambert

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

Re: Rotating PNG images

2018-03-05 Thread Jim Lambert via use-livecode
With the added WAIT this is a bit more fun to look at.
And it checks for angles > 32767.
You get an error if you set the angle of an image to greater than 32767.

local ang

on spin
   repeat forever
  add 13 to ang
  if ang > 32767 then 
 beep
 put 0 into ang
  end if
  set the angle of image 1 to ang
  if the commandKey is down then 
 --set the angle of image 1 to 0
 exit spin
  end if
  wait 0 ticks
   end repeat
end spin

Again this illustrates that setting the angle of an image does not distort the 
image, whereas rotating an image can distort the image.

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


Re: Rotating PNG images

2018-03-05 Thread Jim Lambert via use-livecode
Richmond wrote:
> LiveCode is incapable of rotating anything other than SVG images
> without a bad case of the "jaggies".

RichardG wrote:
> have you tried setting the angle property instead?

Richmond wrote:
> I set the angle on PNG images and they deteriorate.



I find that

rotate image 1 by 13

will often produce jaggies even if resize quality is best. 
And the distortion increases with every iteration.

However, if find that

set the angle of image 1 to 13

never deteriorates the image.

You can do the following all the livelong day without any jaggies in the image.

local ang

on spin
   repeat forever
  add 13 to ang
  set the angle of image 1 to ang
  if the commandKey is down then 
 set the angle of image 1 to 0
 exit spin
  end if
   end repeat
end spin

Jim Lambert

___
use-livecode mailing list
use-livecode@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-Magick #11

2018-02-14 Thread Jim Lambert via use-livecode
The LC-Magick Collection is very useful and instructional.
Herman et al, Thank you so much for this.

Jim Lambert


___
use-livecode mailing list
use-livecode@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.0.0 DP-11

2017-12-22 Thread Jim Lambert via use-livecode
Nice release!

For anyone playing with the new MAP widget, the dictionary entry for 
regionChanged states:

on regionChanged
   UpdateCoordinateDisplay the centerCoordinate of the target
end regionChanged

command UpdateCoordinateDisplay pCenter
   put item 1 of pCenter into field "latitude"
   put item 2 of pCenter into field "longitude"
end UpdateCoordinateDisplay


That won’t work because it should read ‘the centerCoordinates’not ‘the 
centerCoordinate’.

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

Re: Copying text in boxes to clipboard

2017-12-08 Thread Jim Lambert via use-livecode
Jacque's suggestion for PDF printing is excellent. That will get you a file.
But you mentioned you want this to end up on the clipboard for pasting into 
other programs.

> Dunbarx wrote:
> I did a quick test using the "import snapshot" command, and pasted the
> result into another app. It seems to have the same resolution as the img in
> the LC stack. You cannot improve that without a lot of doctoring, of course,
> because that is the resolution of the source.
Well, the relatively new ‘at size’ addition to snapshot might help here.

Charles, try something like this:

An area of your card holds the fields you want to copy. Put that rect of that 
area into variable myFieldRects
Calculate the width of that rect and place it into variable myRectWidth
Calculate the height of that rect and place it into variable myRectHeight

Now here is where improving the resolution comes in. By using the ‘at size’ 
parameter you can essentially ‘enlarge' the image you capture.
Just put amount of the enlargement you want into variable multiplier.
Let’s say 10 times.
So altogether we have:
Put "20,100,700,150" into myFieldRects

Put 680 into myRectWidth

Put 50 into myRectHeight

put 10 into multiplier

put the windowID of this stack into winID

export snapshot from rect(myFieldRects) of window winID at size (myRectWidth * 
multiplier),(myRectHeight * multiplier) to myimg as JPEG

set clipboarddata["image"] to myimg

Paste into, say, a Word doc.

Now change multiplier to 1 - that will give you an ‘unbenlarged’ image.
Now paste that into the same Word doc and look closely at the difference in 
resolution.

You could try 'as PNG', too.

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

Re: sync LC applications

2017-11-25 Thread Jim Lambert via use-livecode
> Paolo wrote:
> 
> I went through this tutorial about push notifications
> ...
> According to some comments, this technique is is out of date now, because  
> C2DM has been officially deprecated as of June 26, 2012.

Wouldn’t it be nice if the lessons and any other coding examples posted by the 
Mothership contained a prominent field stating the current viability of that 
lesson. Also the lesson’s compatibility/incompatibility with various LC 
versions. 

Perhaps several fields, something akin to the dictionary’s Edition, Introduced, 
OS & Platforms fields.

And if a technique has been deprecated a link to the current alternative 
technique, if any.

Ditto for extensions & widgets.

Jim Lambert

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

Re: sync LC applications

2017-11-16 Thread Jim Lambert via use-livecode


> Paolo wrote:

> what?s the best way to sync several  LC applications installed on many 
> different devices?
> For example, consider having 100 smartphones connected to internet running 
> the same LC application, how can I send a signal/command so that an image 
> shows up  at the same time in every smatphone?
> AFAIK a solution is to set up a text file in a web server and let the app 
> installed in each device to check (every second)  if any change occour , but 
> this solution is not efficient.
> Any idea?

Perhaps sockets or pushing app notifications.

Jim Lambert

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


Re: Was I hallucinating? Totally OT, perhaps relevant

2017-11-08 Thread Jim Lambert via use-livecode
RichardG wrote:
> 
> But there's no question that all voice-activated systems (Apple's Siri, 
> Amazon's Alexa, Microsoft's Corana, Google's voice navigation) must 
> listen at all times in order to be able to know when you call them by 
> name.
> 

True.

> It wouldn't be possible for them to do what they do without an always-on 
> mic connected to the Internet.

Also true. But I suspect recognizing the wake up command can be done entirely 
locally.

Jim Lambert

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


Re: The coming of SVG

2017-11-08 Thread Jim Lambert via use-livecode
Viewer +1

Jim Lambert

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


Re: The coming of SVG

2017-11-05 Thread Jim Lambert via use-livecode
FRAME would be good except it is already defined in the Livecode Dictionary as:

'One of the images in the sequence of images that makes up an animation or 
video.’

And there’s also framecount and framerate relating to animated GIFs.
Presumably some video widgets would also refer to movie frames, keyframes, etc.

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

Re: The coming of SVG

2017-11-03 Thread Jim Lambert via use-livecode
I like Mark's ‘picture' because it is general. A picture can contain both 
vectors and bitmaps. 
Any word with ‘icon’ in it seems overly specific as does ’SVG’-anything; while 
‘vectorimage’ implies an image made up of vectors.

set the filename of pct 1 to ‘blah blah.blah’

Jim Lambert


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

Re: results of SPLIT when keys not unique

2017-11-03 Thread Jim Lambert via use-livecode

> Monte wrote:
> 
> Perhaps something like:
> 
> split  by  and  [{replacing | 
> splitting | ignoring} duplicates]


Yes.
+1


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


Re: how to split a list in two directions?

2017-10-28 Thread Jim Lambert via use-livecode

> Tiemo wrote:
> 
> I have a delimiter separated list of two columns, first column is an ID,
> second column a name.
> 
> I need two arrays of this list, one with the first column (ID) as the key
> and one with the second column (name) as the key.
> 
> With split myArray by CR and ";"I get the first column (the ID) as the key.
> 
> Which is the most straight forward approach to get the second array with the
> name from the second column as the key? 
> 

Not a one-liner!

set the columnDelimiter to ";"
split myList by column -- your original delimiter separated list of two columns
put myList[2] into mySecondArray[1]
put myList[1] into mySecondArray[2]
combine mySecondArray by column
split mySecondArray by CR and “;”

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

Re: Should engine be applying link or metadata to an LINEFEED (LF) character?

2017-10-25 Thread Jim Lambert via use-livecode
I wrote:

put LF into char 15 of line 1 of fld 1

Oops, that should read:

put LF into char 15 of fld 1

Jim Lambert



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


Re: Should engine be applying link or metadata to an LINEFEED (LF) character?

2017-10-25 Thread Jim Lambert via use-livecode
If you

put LF into char 15 of line 1 of fld 1

the appearance of Fld 1 doesn’t change, neither does its the htmltext.
Yet the result of running your script does change.
You only get ’10’ and no metadata after substituting a LF for a LF in char 15.

Jim Lambert

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

Re: Should engine be applying link or metadata to an LINEFEED (LF) character?

2017-10-25 Thread Jim Lambert via use-livecode
Trevor wrote:
> 
> ...
> This is line
> 1
> This is line 2
> 
> …
> 
> set the htmltext of field 1 to the clipboarddata
> put 15 into tChar
> put charToNum(char tChar of field 1) & cr & the metadata of char tChar of
> field 1

As you noted, one gets:
10

90660


Now select before char 1 of line 2 and hit the delete key, so that all the text 
is on line 1.
Next hit the return key, so that the text is again on two lines and looks just 
as it did before.
Next run:
> put 15 into tChar
> put charToNum(char tChar of field 1) & cr & the metadata of char tChar of
> field 1

Now you only get ’10’, no metadata!

Check the htmltext and it’s identical to the original.

Odd!

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

Re: Resizing stack window by scaling

2017-10-23 Thread Jim Lambert via use-livecode
RichardG wrote:

> One curiosity, though: what computers offer the 1536x864 resolution that 
> apparently 5.48% of users are running?  I can't recall even seeing that 
> resolution in any spec listings.

A Windows thing?
https://answers.microsoft.com/en-us/windows/forum/windows_8-performance/screen-resolution-is-lowering/a67543fb-1013-41df-82f3-476a0757627c?auth=1
 


Jim Lambert

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


Re: Resizing stack window by scaling

2017-10-22 Thread Jim Lambert via use-livecode
> RichardG wrote:
> 
> With monitors, 1366x768 screens are by far the most common, the second 
> leading size only a bit more than half as popular, and it's a long tail 
> of single-digit market share from there:
> 
> 1366x768:  29.87%
> 1920x1080: 16.69%
> 1440x900:   6.86%
> 1600x900:   5.81%
> 1280x800:   5.14%
> 1024x768:   4.74%
>  >


The most common USA screen sizes (below) are a bit different from the worldwide 
stats (above).

1366x76819.52%
1920x1080   17.66%
1440x90010.11%
1280x8006.95%
1600x9006.34%
1536x8645.48%

If your app will only be used in certain regions then consulting the 
statcounter site, that Richard shared, can give you such regional reports.

Jim Lambert

___
use-livecode mailing list
use-livecode@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] Myst and The Manhole

2017-10-20 Thread Jim Lambert via use-livecode
Last year my wife and I visited Meow Wolf’s House of Eternal Return.
It was clear there was a Myst-like puzzle at the heart of it.
But we didn’t bother much trying to figure it out.
It was just splendid fun to walk, dash, crawl, slide and climb through the 
wacky spaces.
Even 67 year olds can get a kick out of climbing into a washing machine only to 
pop suddenly out of a refrigerator, much to the startled consternation of the 
people standing in the ‘kitchen’.

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

Re: is a date

2017-10-15 Thread Jim Lambert via use-livecode
Roger wrote:
> 
> put "11/20/2017" is a date
> returns true
> 
> put "10" is a date
> returns true
> 
> put "raccoon" is a date
> returns false
> 
> 
> WHY is "10" seen as a date?

Because it is legitimately a date expressed in seconds?

convert 10 to long date
= Wednesday, December 31, 1969

In fact, converting any integer from -57600 to 86400 into a long date will 
result in Wednesday, December 31, 1969

Convert -57601 to long date will result in…Guess what!
Wednesday, December 30, 1969

JimL



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

Re: not really OT: The Coming Software Apocalypse

2017-10-04 Thread Jim Lambert via use-livecode
> Richmond wrote:
> 
> once a system constructed by humans reaches a certain level of complexity
> those humans are unable to predict how it will behave in certain 
> circumstances.

And sometimes we’re unable to explain WHY a system behaved as it did, which is 
increasingly common with certain AI and cognitive computing systems.

Jim Lambert

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