Re: LC 9.6.0 DP2

2020-02-18 Thread Richmond via use-livecode
I would not expect a software company to maintain any sort of backwards 
compatibility unless they could

see any _significant financial advantage_ in that.

About a year ago someone waved $100 at me for a version of my Devawriter 
Pro that would run on Mac OS 10.6 32-bit,
and as it took me all of 15 minutes, I was able to run them off a 
standalone using LiveCode 8.1.8.


Without the incentive of $100 it would have depended on which side of 
bed I had got out of that morning. ;-)


Richmond.

On 19.02.20 1:01, Bob Sneidar via use-livecode wrote:

I suppose one could also make the counter argument that software companies do 
not have oodles of money laying around to maintain endless backwards 
compatibility with older operating systems. Something has to give.

Bob S



On Feb 17, 2020, at 12:40 , Richmond via use-livecode 
 wrote:

There are an awful lot of people around and about (especially outwith North 
America)
who are deploying supposedly out-dated operating systems to good effect; and 
they also need software.



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


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


Re: Progressive Web App (PWA)

2020-02-18 Thread Peter Bogdanoff via use-livecode
Does anyone have a reply to Ingar’s original question?


> On Feb 18, 2020, at 6:16 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Aren't all discussions political? ;-)
> 
> Bob S
> 
> 
>> On Feb 16, 2020, at 13:33 , doc hawk via use-livecode 
>>  wrote:
>> 
>> On Feb 16, 2020, at 5:15 AM, Paul Dupuis via use-livecode 
>>  wrote:
>>> 
>>> "A progressive web application is a type of application software delivered 
>>> through the web, built using common web technologies including HTML, CSS 
>>> and JavaScript. It is intended to work on any platform that uses a 
>>> standards-compliant browser.”
>> 
>> 
>> And foolish me thought we were going to have a political discussion . . .
>> 
>> :)
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: player bug

2020-02-18 Thread Peter Bogdanoff via use-livecode
And I’ll add that the bug truly manifests itself when the file is non-existent 
on your local machine, if that makes any sense!

If you’re trying to read a non-existent file from a remote server, there seems 
to be slow downs while the file is being requested, but not the 
non-responsiveness of the other.

Peter


> On Feb 18, 2020, at 8:04 PM, Peter Bogdanoff via use-livecode 
>  wrote:
> 
> I’ve experienced this for some time now. I haven’t reported it, though.
> 
> Peter
> 
>> On Feb 18, 2020, at 6:38 PM, Neville via use-livecode 
>>  wrote:
>> 
>> Has this been reported already?
>> 
>> if I try to play a non-existent audio file in the player object (LC 9.5.1 on 
>> Mac) LC stop responding to events - no menus or input work except for moving 
>> windows ; not exactly a hang, since the Activity Monitor says LiveCode is 
>> still working. Force Quit is the only way out.
>> 
>> Neville
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Does any one know what Player "intervals" actually are?

2020-02-18 Thread Martin Koob via use-livecode
Hi Paul

I was curious about your original question so tried to do a search and of 
course wanted to find search terms to define what an interval is. As Curry says 
it is likely each media type has a different definition.

I did find a retired QuickTime document for the MovieToolbox that explains the 
time coordinate system and defines a time base which is its current time and 
its rate.  

https://developer.apple.com/library/archive/documentation/QuickTime/RM/MovieInternals/MTTimeSpace/B-Chapter/2MovieTimeandSpace.html#//apple_ref/doc/uid/TP4911-MovieTimeandSpace-WorkingWithMovieTime


An interesting thing on this page about the time coordinate systems is the 
relation between the time scale and the maximum duration of the movie.  

--
Time coordinate systems have a finite maximum duration that defines the maximum 
time value for a time coordinate system (the minimum time value is always 0). 
Note that as a QuickTime movie is edited, the duration changes.
As the value of the time scale increases (as the time unit for a coordinate 
system gets smaller in terms of absolute time), the maximum absolute time that 
can be represented in a time coordinate system decreases. For example, if a 
time value were represented as an unsigned 16-bit integer, its maximum value 
would be 65,535. In a time coordinate system with a time scale of 1, the 
maximum time value would represent 65,535 seconds. However, in a time 
coordinate system with a time scale of 5, the maximum time value would 
correspond to 13,107 seconds. Hence, a time coordinate system’s duration is 
limited by its time scale. QuickTime uses 32-bit and 64-bit quantities to 
represent time values, so you only need to worry about attaining a maximum 
absolute time in situations where a time coordinate system’s duration is very 
long or its time scale is very large.
--

QuickTime is long gone and AVfoundation has taken its place and I found a 
description of how it handles intervals which is seems to now call just 
timescale.

https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/AVFoundationPG/Articles/06_MediaRepresentations.html#//apple_ref/doc/uid/TP40010188-CH2-SW3


It has an explanation of a rationale for using 600 timescale.  I considered 
that too for my application timescale but went with 1000 instead.   Perhaps 
using this would avoid rounding errors.
-
CMTime  is a C 
structure that represents time as a rational number, with a numerator (an 
int64_t value), and a denominator (an int32_t timescale). Conceptually, the 
timescale specifies the fraction of a second each unit in the numerator 
occupies. Thus if the timescale is 4, each unit represents a quarter of a 
second; if the timescale is 10, each unit represents a tenth of a second, and 
so on. You frequently use a timescale of 600, because this is a multiple of 
several commonly used frame rates: 24 fps for film, 30 fps for NTSC (used for 
TV in North America and Japan), and 25 fps for PAL (used for TV in Europe). 
Using a timescale of 600, you can exactly represent any number of frames in 
these systems. 
In addition to a simple time value, a CMTime structure can represent nonnumeric 
values: +infinity, -infinity, and indefinite. It can also indicate whether the 
time been rounded at some point, and it maintains an epoch number.


I tried looking for references for WMV I wasn’t able to find anything.   I am 
sure as Curry says each media framework uses different terminology so I was 
probably not finding the right terms.


Regards,

Martin Koob





> On Feb 18, 2020, at 5:58 PM, Curry Kenworthy via use-livecode 
>  wrote:
> 
> 
> In your own case (Paul) luckily there is probably very little cause for 
> concern - because your files have other context available, allowing us to 
> either convert/confirm, or else entirely replace the most important interval 
> values. And I don't consider this difficult to tame sufficiently for 
> practical purposes, again in your own case.
> 
> But as a larger issue of depending on LC intervals - yep, it's huge! Really a 
> stunning eye-opener to see the different values for the different files. We 
> should give a quick tip to all LC developers: DON'T use intervals for 
> permanently storing media time values. :)
> 
> As for the original question: Given their arbitrary nature per OS/Media 
> framework, I actually think "interval" may be the best choice of word! An 
> arbitrary slice of time. Perfectly named, but utterly problematic if treated 
> as anything other than arbitrary and temporary.
> 
> Best wishes,
> 
> Curry Kenworthy
> 
> Custom Software Development
> "Better Methods, Better Results"
> LiveCode Training and Consulting
> http://livecodeconsulting.com/
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 

Re: player bug

2020-02-18 Thread Peter Bogdanoff via use-livecode
I’ve experienced this for some time now. I haven’t reported it, though.

Peter

> On Feb 18, 2020, at 6:38 PM, Neville via use-livecode 
>  wrote:
> 
> Has this been reported already?
> 
> if I try to play a non-existent audio file in the player object (LC 9.5.1 on 
> Mac) LC stop responding to events - no menus or input work except for moving 
> windows ; not exactly a hang, since the Activity Monitor says LiveCode is 
> still working. Force Quit is the only way out.
> 
> Neville
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


LC 9.6.0 DP2

2020-02-18 Thread Charles Szasz via use-livecode
Mark,

I also been using AppWrapper.  It made notarizing Mac programs fairly easy to 
do once you set up app specific passwords and two step authentication in 
addition to certificates.  

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


Re: text copied form LC generated PDF, WTF?

2020-02-18 Thread Bob Sneidar via use-livecode
Or a bad infection for that matter. 

> On Feb 18, 2020, at 15:39 , Curry Kenworthy via use-livecode 
>  wrote:
> 
> It's much more likely for someone to get a bad impression from unlucky 
> hands-on experience with the thing itself...

Bob S


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


Re: text copied form LC generated PDF, WTF?

2020-02-18 Thread Curry Kenworthy via use-livecode



Craig:

> WTF has lost most of its bite due to simple continued usage

Then, to indulge your premise, which I agree is the trend in a great 
many social and media circles (but not all) consider this:


So WTF is the continued point of using WTF? If it no longer has enough 
shock value to raise any eyebrows, then it can hardly be the most 
appropriate choice of expression for any real-life surprise, concern, or 
scorn. Might as well say, oh golly gee. Oh me oh my.


As I mentioned before, logically "why not use something a little more 
risque and exciting than a plain-old unprovocative WTF? :) "


(But if it makes anyone uncomfortable that I'm using WTF repeatedly 
while discussing its previous use here, I apologize. But the point is - 
that also would tend to call the premise into question.)


Social trends and norms are usually not logical, but as coders we should be.

> I am really only concerned that LC not get a reputation for
> being unstable. That would turn off new users long before they
> ever actually experienced such a thing.

In contrast to scoundrels such as myself who have long worked to protect 
LC from a reputation for being unstable, by the alternative and 
nefarious means of working hard to encourage its stability. :D


It's much more likely for someone to get a bad impression from unlucky 
hands-on experience with the thing itself, than to stumble across these 
discussions while surfing. And if so, they'd be as likely to see me 
praising LC as, in this case, using the "bad language" of (not WTF, but) 
explaining how I've come to accept the sandy foundation and use new 
tactics to gain the upper hand again.


BTW, stability was actually not the main category of bugs I was talking 
about. Perhaps I could have said the Age of LC Bugs or Engine Bugs. I 
actually thought IDE Bugs sounded less negative. Ah well. Sorry for the 
bad language, WT(xxx) was I thinking! :)


Anyway, that's all the talk I can afford (otherwise at the expense of 
work) so back to lurking and working. I enjoyed taking this "interval" 
here to discuss and will do so again when time/energy permits. Hope to 
read more of Dar Scott (a very logical man) and Richmond (always 
provocative, never boring) too. Curry interval over, back to the usual 
programming here. Take care, all!


Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
http://livecodeconsulting.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


player bug

2020-02-18 Thread Neville via use-livecode
Has this been reported already?

if I try to play a non-existent audio file in the player object (LC 9.5.1 on 
Mac) LC stop responding to events - no menus or input work except for moving 
windows ; not exactly a hang, since the Activity Monitor says LiveCode is still 
working. Force Quit is the only way out.

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


Re: Progressive Web App (PWA)

2020-02-18 Thread Bob Sneidar via use-livecode
Aren't all discussions political? ;-)

Bob S


> On Feb 16, 2020, at 13:33 , doc hawk via use-livecode 
>  wrote:
> 
> On Feb 16, 2020, at 5:15 AM, Paul Dupuis via use-livecode 
>  wrote:
>> 
>> "A progressive web application is a type of application software delivered 
>> through the web, built using common web technologies including HTML, CSS and 
>> JavaScript. It is intended to work on any platform that uses a 
>> standards-compliant browser.”
> 
> 
> And foolish me thought we were going to have a political discussion . . .
> 
> :)

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


Re: Invalid Image File / Original Image Size

2020-02-18 Thread Bob Sneidar via use-livecode
Another one for the Utility behavior! :-)

Bob S


> On Feb 17, 2020, at 13:57 , Phil Davis via use-livecode 
>  wrote:
> 
> function isSupportedImage pPath
> # Allow JPG, PNG and GIF images.
> 
> put byte 1 to 12 of url ("binfile:" & pPath) into tHeader
> switch
> case "JFIF" is in tHeader
> case "PNG" is in tHeader
> case "GIF" is in tHeader
> return true
> break
> default
> return false
> break
> end switch
> end isSupportedImage


___
use-livecode mailing list
use-livecode@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.0 DP2

2020-02-18 Thread Bob Sneidar via use-livecode
I suppose one could also make the counter argument that software companies do 
not have oodles of money laying around to maintain endless backwards 
compatibility with older operating systems. Something has to give. 

Bob S


> On Feb 17, 2020, at 12:40 , Richmond via use-livecode 
>  wrote:
> 
> There are an awful lot of people around and about (especially outwith North 
> America)
> who are deploying supposedly out-dated operating systems to good effect; and 
> they also need software.
> 


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


Re: Does any one know what Player "intervals" actually are?

2020-02-18 Thread Curry Kenworthy via use-livecode



In your own case (Paul) luckily there is probably very little cause for 
concern - because your files have other context available, allowing us 
to either convert/confirm, or else entirely replace the most important 
interval values. And I don't consider this difficult to tame 
sufficiently for practical purposes, again in your own case.


But as a larger issue of depending on LC intervals - yep, it's huge! 
Really a stunning eye-opener to see the different values for the 
different files. We should give a quick tip to all LC developers: DON'T 
use intervals for permanently storing media time values. :)


As for the original question: Given their arbitrary nature per OS/Media 
framework, I actually think "interval" may be the best choice of word! 
An arbitrary slice of time. Perfectly named, but utterly problematic if 
treated as anything other than arbitrary and temporary.


Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
http://livecodeconsulting.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: text copied form LC generated PDF, WTF?

2020-02-18 Thread Bob Sneidar via use-livecode
Not sure but the resulting text looks like this has been OCRd. We had a similar 
issue with this at a customer and I noticed that OCR seems to work best on 
greyscale 300dpi. It just depends on the engine. 

Bob S


> On Feb 18, 2020, at 10:45 , Curry Kenworthy via use-livecode 
>  wrote:
> 
> 
> That looks like a perfectly valid WTF file.
> 
> Best wishes,
> 
> Curry Kenworthy
> 
> Custom Software Development
> "Better Methods, Better Results"
> LiveCode Training and Consulting
> http://livecodeconsulting.com/
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: text copied form LC generated PDF, WTF?

2020-02-18 Thread dunbarx--- via use-livecode
@Curry, mainly.
The easy one. WTF has lost most of its bite due to simple continued usage. As 
Lenny Bruce noted 60 years ago, if you use a bad word often enough, it loses 
its badness.
The hard one. Several threads on the forum have bemoaned what is labeled an 
overarching bug issue in LC. There have been calls for a complete halt to 
development until most of the existing ones are squashed. For my part, I only 
notice that LC 9x crashes intermittently, though regularly. I must add that I 
am working mainly on a single project when this happens, and am conditioned to 
save often. The other projects I have currently do not exhibit this at all, 
though that may be simply due to the fact that I am involved in them much less 
intensely.
I suppose it is less worrisome that this is a problem in only a single project, 
than if it happened here and there, everywhere. At least I tell myself that.
I am really only concerned that LC not get a reputation for being unstable. 
That would turn off new users long before they ever actually experienced such a 
thing.
Craig


-Original Message-
From: Curry Kenworthy via use-livecode 
To: use-livecode 
Cc: Curry Kenworthy 
Sent: Tue, Feb 18, 2020 5:29 pm
Subject: Re: text copied form LC generated PDF, WTF?


 > Not to forget SpreadLib. ;)

Since you mention it, SpreadLib is not forgotten at all! Proud that 
SpreadLib was first, and is best, of its type. SpreadOut, especially, 
has come a long way since last public release. Looking forward very much 
to that update.

Most addons have progressed with features and fixes privately, and are 
waiting for official release, but releases take some time in themselves, 
and client deadlines always have to come first. We have some clients 
here that could vouch for both parts of that statement. :)

(I'm physically handicapped with some taxing health limitations, thus my 
active time is finite, determined by actual daily energy/strength and 
endurance, without anywhere near as much choice or freedom over my 
remaining time as most people take for granted. So clients get heavy 
priority, but addons are never forgotten and the work continues. Nor is 
this list ever forgotten, although I can't afford to be very vocal here 
beyond the occasional quick joke or brief comment. Mostly I'm a reader! 
Not by choice.)

LC's "infinite bugs" increasing in tempo since LC7 and frequent breaking 
changes have outpaced me at times, providing an ever-shifting foundation 
for building upon. Breaking things is usually easier and faster than 
cleaning up. In fact, I've devoted an amazing amount of my entire career 
to finding, documenting, and developing high-quality workarounds for 
these IDE and engine bugs - and it seems that we're just getting started.

But here's the good news - I'm adjusting strategies and tactics to that 
reality, having finally accepted it as the norm to expect now and 
perhaps forever. So I'm also developing new tools to gain the upper hand 
again in this Age of IDE Bugs, and therefore confident that I will 
indeed have the last laugh on this subject of my delayed progress (ha 
ha) and get addon updates back on a much more regular schedule, among 
other things that are likely to cause a big splash - perhaps even shake 
up the industry a bit! :D

Another high priority for update release this year is WordReport - quite 
a lot of inquiries lately, which are pushing it toward the top of my 
list. Yep, it's coming, and it's going to reach new heights. Thanks to 
all for your feedback and support! Exciting things are on the way.

--

About the subject of copying and pasting to/from LC, here's a current 
bug that's easy to workaround, but also easy to forget to workaround - 
and can cause mayhem:

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

--

BTW, it's a tad difficult to completely ignore "WTF" posts, and my post 
here was a joke on two levels, the first of which Klaus immediately 
acknowledged.

But the second level had a more serious undercurrent, and it's why I 
posted a reply in the first place: is WTF considered completely 
squeaky-clean and shock-free nowadays? Has it, along with its component 
words, been completely sanitized for all ages and audiences? And if so, 
then logically: why unfailingly abbreviate, without ever using the 
component words every now and then for variety, and also why not use 
something a little more risque and exciting than a plain-old 
unprovocative WTF? :)

Thus the WTF file format, since it is so often mentioned here lately.

Take care and enjoy coding, everyone

Best wishes,

Curry Kenworthy

WordLib: Take charge of MS Word and OpenOffice documents
SpreadLib: "Excel-lent" spreadsheet import/export for LC
http://livecodeaddons.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: text copied form LC generated PDF, WTF?

2020-02-18 Thread Curry Kenworthy via use-livecode



> Not to forget SpreadLib. ;)

Since you mention it, SpreadLib is not forgotten at all! Proud that 
SpreadLib was first, and is best, of its type. SpreadOut, especially, 
has come a long way since last public release. Looking forward very much 
to that update.


Most addons have progressed with features and fixes privately, and are 
waiting for official release, but releases take some time in themselves, 
and client deadlines always have to come first. We have some clients 
here that could vouch for both parts of that statement. :)


(I'm physically handicapped with some taxing health limitations, thus my 
active time is finite, determined by actual daily energy/strength and 
endurance, without anywhere near as much choice or freedom over my 
remaining time as most people take for granted. So clients get heavy 
priority, but addons are never forgotten and the work continues. Nor is 
this list ever forgotten, although I can't afford to be very vocal here 
beyond the occasional quick joke or brief comment. Mostly I'm a reader! 
Not by choice.)


LC's "infinite bugs" increasing in tempo since LC7 and frequent breaking 
changes have outpaced me at times, providing an ever-shifting foundation 
for building upon. Breaking things is usually easier and faster than 
cleaning up. In fact, I've devoted an amazing amount of my entire career 
to finding, documenting, and developing high-quality workarounds for 
these IDE and engine bugs - and it seems that we're just getting started.


But here's the good news - I'm adjusting strategies and tactics to that 
reality, having finally accepted it as the norm to expect now and 
perhaps forever. So I'm also developing new tools to gain the upper hand 
again in this Age of IDE Bugs, and therefore confident that I will 
indeed have the last laugh on this subject of my delayed progress (ha 
ha) and get addon updates back on a much more regular schedule, among 
other things that are likely to cause a big splash - perhaps even shake 
up the industry a bit! :D


Another high priority for update release this year is WordReport - quite 
a lot of inquiries lately, which are pushing it toward the top of my 
list. Yep, it's coming, and it's going to reach new heights. Thanks to 
all for your feedback and support! Exciting things are on the way.


--

About the subject of copying and pasting to/from LC, here's a current 
bug that's easy to workaround, but also easy to forget to workaround - 
and can cause mayhem:


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

--

BTW, it's a tad difficult to completely ignore "WTF" posts, and my post 
here was a joke on two levels, the first of which Klaus immediately 
acknowledged.


But the second level had a more serious undercurrent, and it's why I 
posted a reply in the first place: is WTF considered completely 
squeaky-clean and shock-free nowadays? Has it, along with its component 
words, been completely sanitized for all ages and audiences? And if so, 
then logically: why unfailingly abbreviate, without ever using the 
component words every now and then for variety, and also why not use 
something a little more risque and exciting than a plain-old 
unprovocative WTF? :)


Thus the WTF file format, since it is so often mentioned here lately.

Take care and enjoy coding, everyone

Best wishes,

Curry Kenworthy

WordLib: Take charge of MS Word and OpenOffice documents
SpreadLib: "Excel-lent" spreadsheet import/export for LC
http://livecodeaddons.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: Does any one know what Player "intervals" actually are?

2020-02-18 Thread Paul Dupuis via use-livecode

Hi Martin,

Thanks for you post/reply. As we are updating our application, all times 
are being stored in seconds (real number) and converted to and from 
intervals as needed. Just like you in your application.


The old version of our application stored data in user document files. 
In these files, some data was stored as only intervals, without a 
timeScale to properly translate back to seconds for newer frameworks. I 
was hoping there might be some rules I could apply to determine how 
these interval (only) values could be converted to times without a 
timescale value. In doing research and contacting LiveCode support, the 
answer is: They can not (or at least not practically). The only way 
would be to open the exact same media file in a helper app that is built 
in an old version of LIveCode that uses Quicktime to get the original 
Interval for each media file referenced in our user documents that needs 
intervals converted. This is impractical as we can not expect the 
installation of Quicktime under Windows any more and older LC helper app 
will not run under macOS Catalina to name just a few of the obstacles.


The table of timescales in my original post is also distorted as many of 
the media files are the exact same clip, just encoded in another format. 
I am sure if I sampled a wider variety of clips I would see a much wider 
range of timeScales.


Lastly, my inquiry was also looking to actually understand what 
"intervals" really are, mostly out of curiosity and interest.  I am 
still curious as to what exactly "intervals" are. LC support just says 
that they get them from the media frameworks and pass them along.


Thanks again for your reply.

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


Re: text copied form LC generated PDF, WTF?

2020-02-18 Thread Klaus major-k via use-livecode



> Am 18.02.2020 um 19:40 schrieb Klaus major-k via use-livecode 
> :
> 
> Hi friends,
> 
> I know that copying text form a PDF file may result in unexspected results, 
> but this is really ridicoulous!?
> 
> I created a PDF from LC (selected "Save as PDF" in the macOS Print dialog)
> and when I copy some text and past it into TextEdit, this is what i get: 
> 
> Where on earth are my numbers and where is my text?

additional info:
I exclusively use the build-in means of macOS 10.14.6 with LC Indy 9.5.1:
1. System wide Printing to PDF resp. "Open in Preview"
2. Preview to open and diplay the PDF, I copied the text here
3. TextEdit to paste the copied text from 2

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


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


Re: LC Server - HTTP response code 500: permission denied error

2020-02-18 Thread Martin Koob via use-livecode
Hi Ralf

Thanks for your reply Ralf.

Based on your comments I tried a number of tests.


I tried an .lc  file with no calls to RevIgniter.

/home/myapp/sites/api.myapp.com/mylctest.lc

I get the same error as when my application calls the api using RevIgniter. So 
that means it is an issue with the server not RevIgniter.

lscgid: execve():/home/myapp/sites/api.myapp.com/cgi-bin/livecode-server: No 
such file or directory


To see if I could access a file in the directory I then created a plain html 
page and put it in the same cgi-bin directory as the livecode-server file

/home/myapp/sites/api.myapp.com/cgi-bin/mytest.html

that gave an error

lscgid: 
execve():/home/videolinkwell/sites/api.videolinkwell.ca/cgi-bin/mytest.html: 
Permission denied

I then tried the two tests on my existing server that I am migrating my site 
from.  Both the mylctest.lc file in the top level of the api.mysite.com and 
plain mytest.htmlfile in the cgi-bin folder loaded as without error.   So I 
have something wrong in the set up of the cgi-bin folder of the new server I am 
migrating my site to.

I then tried a couple of other things.

I copied the .htaccess from my old site and that had no effect.

I then looked at the permissions of all the files.
myapp.com 0750
cgi-bin 755
livecode-server 0755
drivers 0755
dbmysql.so 0644
(and other drivers…) 0644
externals 0755
revdb.so 0644
(and other drivers…) 0644

This is the same as my existing server except for the myapp.com directory which 
is 0750.  On the existing server it is 0755 so I changed it and tried again and 
I got the same errors.
It seems like a permissions/access issue but I am not sure what else could 
control that. I am sure it is something simple Any ideas?

Thanks again

Martin



> On Feb 18, 2020, at 1:56 PM, Ralf Bitter via use-livecode 
>  wrote:
> 
> Hi Martin,
> 
> don’t know if the issue is somehow related
> to the new server environment as I am not
> familiar with LiteSpeed Web Server. The
> permissions (644) for the files in drivers and externals
> should be OK (just check that the permissions
> for these folders are set to 755).
> Did you try to load a simple lc file without 
> revIgniter being involved?
> 
> 
> Ralf
> 
> 
>> On 10. Feb 2020, at 19:18, Martin Koob via use-livecode 
>>  wrote:
>> 
>> I use LiveCode Server for a REST api for a LiveCode application and I am 
>> migrating an installation of the api to a new server with a new domain.
>> The API uses Ralf Bitter's wonderful Revigniter framework. 
>> https://revigniter.com  > >
>> 
>> To to the transfer the site I copied all the files to the new server.
>> 
>> Then I changed all references to the domain the new domain in the API and 
>> the App.
>> 
>> When I tried to call the API from the App I got 'HTTP response code 500 
>> returned from server’ but with a different error message
>> lscgid: execve():/home/myapp/sites/api.myapp.com/cgi-bin/livecode-server: 
>>  Permission denied
>> 
>> I looked at the livecode-server executable in the path above and it had 
>> permissions set at 644. So I set the executable bit for all so permissions 
>> for livecode-server were 755. (The files in Drivers and External directories 
>> are still 644. Should they be changed to 755 too?)
>> 
>> Now I still get 'HTTP response code 500 returned from server’ but with a 
>> different error message:
>> - lscgid: execve():/home/mysite/sites/api.myapp.com/cgi-bin/livecode-server: 
>>  No such file or directory
>> 
>> The API is using a REST approach.  
>> 
>> An example of how the App uses the api is to get LC Server to return a list 
>> of projects it is posting the session id as authentication to the URL 
>> https://api.myapp.com/myapp_db/listProjects 
>> 
>> 
>> Using RevIgniter command rigFetchSegment(n) The API takes the first segment 
>> of the url ‘myapp_db’ as the name of the database and the the second segment 
>> of the URL 'listProjects' is the command being called in the API.
>> 
>> From the error being called it appears that the server is actually taking 
>> the path https://api.example.com/myappDB/listProjectsliterally 
>> , i.e. looks for that 
>> directory which does not exist and returns the error.
>> 
>> So since I copied the site to the new server I think I may have not have 
>> copied a config file correctly or there is a server setting I need to change 
>> so the REST URLs are dealt with correctly.
>> 
>> Does anyone have any ideas of how to resolve this?
>> 
>> Thanks in advance.
>> 
>> Martin Koob
> 
> 
> ___
> us

Raffle

2020-02-18 Thread Drs Mark Schonewille via use-livecode
I'm on the verge of raffling off a copy of Programming LiveCode for the 
Real Beginner, second edition, on Facebook. If you want to get a chance 
to win a free copy, go to https://www.facebook.com/LiveCode.Beginner/ 
and like the pinned post about the raffle and like the page.


--
Mark Schonewille
Economy-x-Talk
https://ecxtalk.nl
https://www.nt2.nu

Programming LiveCode for the Real Beginner
http://www3.economy-x-talk.com/file.php?node=programming-livecode-for-the-real-beginner


___
use-livecode mailing list
use-livecode@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.0 DP2

2020-02-18 Thread Mark Talluto via use-livecode


> On Feb 18, 2020, at 9:28 AM, Charles Szasz via use-livecode 
>  wrote:
> 
> Richard,
> 
> I have been a member of the LC community since roughly 2003.  I have not seen 
> the notes on LC 9.6.0 DP2.  My main focus has been on updating my apps to 64 
> bit Mac desktop apps and conquering notarizing my apps.  I was not concern 
> and not surprised about Windows XP support. I will end my support for Windows 
> XP at the end of June. I am still looking forward to creating 64 bit Windows 
> apps.  



Hi Charles,

I went through this process as well. Once you have all your Apple certs in 
order, the process of code-signing and notarizing is not hard to do. 

I have been using App Wrapper from Ohanaware, 
https://www.ohanaware.com/appwrapper/ 

The software helps clean up small issues that you would normally have to do 
yourself.

Going 64 bit is easy, thanks to LiveCode.


Best regards,

Mark Talluto
livecloud.io 
nursenotes.net 
canelasoftware.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: Does any one know what Player "intervals" actually are?

2020-02-18 Thread Martin Koob via use-livecode
Hi Paul,

I have had to deal with differing player intervals or timeScales in my 
application which I develop on the Mac working with the player in LC. It uses 
Video files only.  I first realized this was a problem when I would create a 
project file that annotates a video then later compress the video  and the next 
time I would open the project file all the time based data was off even though 
it was the same video.  I found that the compression program used a different 
timeScale than the original movie depending on the compression codec, frame 
rate etc.

What I had to do to deal with the varying  timeScales was do a  conversion to a 
common  timescale that I used in the application and when saving to the project 
file.  I  used an application/document timescale of 1000/second.  I had 
considered a number of options i.e. something divisible by 30 for 30 FPS, using 
another common timeScale like 600 or 9..  In the end I used 1000 or 
1000/second since milliseconds is property I used in the application for 
tracking user action so I considered that  a time scale that was native to the 
application.  


When I retrieved any of the Player’s time properties -  currentTime, startTime, 
endTime, timeScale, and duration etc.  I would convert them with the following 
function to the 1000/sec common timeScale

function convertPlayerTimeScaleTo1000 pTime, pTimeScale

if pTimeScale = 0 or pTimeScale is empty then

 # This is to prevent Divide by zero errors or other issues if 
timeScale is empty
  put 600 into pTimeScale

end if

local t1000Scale

put round(pTime/pTimeScale * 1000) into t1000Scale

return t1000Scale

end convertPlayerTimeScaleTo1000



Then when I set any of those properties I use this function to convert back 
from the application timescale 1000/sec to the native timeScale.
function convert1000ToPlayerTimescale pTime, pTimeScale

local tNativeScale

put round(pTime/1000 * pTimeScale) into tNativeScale

return tNativeScale

end convert1000ToPlayerTimescale


I did not notice big differences in values when I used different codecs from 
the same video but I guess that makes sense since I am only working on the Mac. 
  My application will be running on Windows as well so that is something I am 
going to have to test.

Regards,

Martin Koob





> On Feb 18, 2020, at 10:13 AM, Paul Dupuis via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> Or even more specifically, does any one know what player object "intervals" 
> (the values for currentTime, startTime, endTime, timeScale, and duration 
> properties of a player) actually are? Are they frames? Something else? And 
> does anyone know why they vary by Media Framework (i.e Quicktime vs Apple 
> Video Foundation vs DirectShow)
> 
> For example, the same MP3 file under Quicktime (macOS or Windows) has a 
> timeScale of 600, and under AVF a timeScale of 44100 and under DirectShow a 
> timeScale of 1000.
> 
> What's more if you get the duration and the timeScale and convert to seconds, 
> the different frameworks give (slightly) different values (largest difference 
> is 3s on a 2m45s MP3)
> 
> For example, look at the lengthy list of data below: This is timeScale and 
> duration for different file formats by media frameworks. A file of the same 
> name (i.e. audio.aac) is the SAME file on any media Framework that can read 
> it. Formats readable by the player differ by Media Framework. The data is tab 
> delimited, so if the listserv preserves the tabs, you should be able to cut 
> and paste to a spreadsheet for easier viewing.

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


Re: text copied form LC generated PDF, WTF?

2020-02-18 Thread matthias rebbe via use-livecode



> Am 18.02.2020 um 19:53 schrieb Klaus major-k via use-livecode 
> :
> 
> 
>> Am 18.02.2020 um 19:45 schrieb Curry Kenworthy via use-livecode 
>> :
>> 
>> That looks like a perfectly valid WTF file.
> 
> very funny, almost as funny as "FieldTrip: fully paid, but still in beta 
> after 7 (SEVEN) years"! 8-)
> Yes, I know I am just too impatient...
> 
Not to forget SpreadLib. ;)



>> Best wishes,
>> 
>> Curry Kenworthy
> 
> --
> Klaus Major
> https://www.major-k.de
> kl...@major-k.de
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Translate metadata to field content

2020-02-18 Thread Mark Waddingham via use-livecode

On 2020-02-18 19:14, J. Landman Gay via use-livecode wrote:

Thanks for the reply guys, both Hermann and Mark, and Bernd who sent
me materials offline. I'll be going over these suggestions to see what
works best. The file content can be very long especially when
separated into runs (more than 200,000 runs for an average file) so
speed will matter since this is headed for a mobile app.

I was surprised to see two things:

1. FormattedStyledText appears nowhere in the dictionary. I didn't
know it existed.


Heh - I'd actually forgotten about it until a couple of weeks ago when I 
had to write some code to independently process the each soft-wrapped 
line of styled text in a field.


I half wrote some code to do what I wanted in a different way while 
wishing 'if only I had implemented the formatted variant for styledText 
wayback when' - then I happily remembered that I had!


If you have a moment to file an report in the QC, we can get it added.


2. FormattedStyledText treats some punctuation as a new run, even if
it has not changed text style. For example, semi-colons are
independent runs. Very odd.


Hmmm - there's no code to do that explicitly (a semi-colon is no 
different from any other char!). Non-merged style runs can occur through 
some script operations on a field though (the engine uses 0 length runs 
sometimes as markers - they would probably cause that effect). It could 
also be due to the structure of the htmlText being imported 
(potentially). If you have a simple example, then I can probably say one 
way or the other.


The formattedStyledText, like the styledText, is just a array version of 
the data-structure the engine holds inside (although it never emits 0 
length runs).


In this case that shouldn't matter though as it will be the text that 
you want to count, not the runs.


Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

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


Re: text copied form LC generated PDF, WTF?

2020-02-18 Thread Mark Wieder via use-livecode

On 2/18/20 10:40 AM, Klaus major-k via use-livecode wrote:


Any insights very appreciated!


Wieder came through with no problem.
What more could you possibly ask for?

--
 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: Translate metadata to field content

2020-02-18 Thread J. Landman Gay via use-livecode
Thanks for the reply guys, both Hermann and Mark, and Bernd who sent me materials offline. I'll 
be going over these suggestions to see what works best. The file content can be very long 
especially when separated into runs (more than 200,000 runs for an average file) so speed will 
matter since this is headed for a mobile app.


I was surprised to see two things:

1. FormattedStyledText appears nowhere in the dictionary. I didn't know it 
existed.

2. FormattedStyledText treats some punctuation as a new run, even if it has not changed text 
style. For example, semi-colons are independent runs. Very odd.


I need to do some experimentation and timing tests, but thanks to all for the 
responses.

On 2/17/20 6:25 PM, Mark Waddingham via use-livecode wrote:

There’s the formattedStyledText property which is like the formattedText but in 
the form of a style array. If you sum the number of chars in each run up until 
you find your tag, then you can should be able to use the formattedheight of 
char 1 up to the summed index to get the vscroll you need.

Warmest Regards,

Mark.

Sent from my iPhone


On 17 Feb 2020, at 22:50, J. Landman Gay via use-livecode 
 wrote:

Thanks, I'll save that for someday. In this case though, the text is wrapped 
and there are anchors scattered around inside paragraphs. Unless someone else 
has an idea it looks like I'm going to have to extract lookup tables. That's 
going to be quite a job.


On 2/17/20 3:59 PM, Richard Gaskin via use-livecode wrote:
J. Landman Gay wrote:

I'm still working on htmltext in a field. There are anchors that indicate 
positions elsewhere in the file. A browser will automatically find and scroll 
to the right place in the text. I need to reproduce that.

Is there a way to translate an anchor like "#12345" to the location in the 
visible field text it links to?

I've thought of a couple of alternate ways to do it involving lookup files, but 
it would be better to do a direct translation to avoid the extra overhead.

The closest I have doesn't account for softwraps, but FWIW:
function fwAnchorTagLine pFldObj, pTag
local tA
local tLastLine
local tNumRuns
put the styledText of pFldObj into tA
put item 2 of extents(tA) into tLastLine
repeat with i = 1 to tLastLine
   put item 2 of extents(tA[i]["runs"]) into tNumRuns
   repeat with j = 1 to tNumRuns
  if pTag is in tA[i]["runs"][j]["style"]["linkText"] \
AND "link" is not in \
   tA[i]["runs"][j]["style"]["textStyle"] then
 return i
  end if
   end repeat
end repeat
end fwAnchorTagLine



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


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



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




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


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


Re: text copied form LC generated PDF, WTF?

2020-02-18 Thread Curry Kenworthy via use-livecode



Touche! :)

Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
http://livecodeconsulting.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.0 DP2

2020-02-18 Thread matthias rebbe via use-livecode
The prices for ESU double each year...
https://www.zdnet.com/article/how-much-will-staying-patched-on-windows-7-cost-you-heres-the-price-list/


-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 18.02.2020 um 18:06 schrieb Mark Talluto via use-livecode 
> :
> 
>> On Feb 18, 2020, at 8:08 AM, Richard Gaskin via use-livecode 
>>  wrote:
>> 
>> Richmond wrote:
>>> "The OP asked about using the latest version of LiveCode on an OS that was 
>>> EOL'd many years ago."
>>> And I replied by suggesting a version of LiveCode that would produce 
>>> standalones that would work on that OS.
>> 
>> 
>> While all of us here make software, not all of us study security.  We are 
>> all constructively minded, and generally don't have a habit of looking at 
>> things from the perspective of the bad guys. I value the insights in the 
>> newsletters, blogs, and books I read on security, helping me better 
>> understand the implications of my choices as a developer of systems for 
>> others to use.  Distilling a slice of that to a gentle reminder about 
>> staying current with patches to known vulnerabilities seems useful.
> 
> Here is a fun sidenote. Windows 7 has also lost support from Microsoft as of 
> Jan 14, 2020. Microsoft provides a program called Extended Security Updates. 
> 
> This program buys companies up to three years of support. It is my 
> understanding that the program is expensive. The program is for big 
> businesses and not available to individuals.
> 
> So, if you are developing for organizations that rely on Windows 7, this may 
> be useful for your next meeting with IT. 
> https://support.microsoft.com/en-us/help/4527878/faq-about-extended-security-updates-for-windows-7
>  
> 
> 
> 
> Best regards,
> 
> Mark Talluto
> livecloud.io 
> nursenotes.net 
> canelasoftware.com 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: LC Server - HTTP response code 500: permission denied error

2020-02-18 Thread Ralf Bitter via use-livecode
Hi Martin,

don’t know if the issue is somehow related
to the new server environment as I am not
familiar with LiteSpeed Web Server. The
permissions (644) for the files in drivers and externals
should be OK (just check that the permissions
for these folders are set to 755).
Did you try to load a simple lc file without 
revIgniter being involved?


Ralf


> On 10. Feb 2020, at 19:18, Martin Koob via use-livecode 
>  wrote:
> 
> I use LiveCode Server for a REST api for a LiveCode application and I am 
> migrating an installation of the api to a new server with a new domain.
> The API uses Ralf Bitter's wonderful Revigniter framework. 
> https://revigniter.com   >
> 
> To to the transfer the site I copied all the files to the new server.
> 
> Then I changed all references to the domain the new domain in the API and the 
> App.
> 
> When I tried to call the API from the App I got 'HTTP response code 500 
> returned from server’ but with a different error message
> lscgid: execve():/home/myapp/sites/api.myapp.com/cgi-bin/livecode-server: 
>  Permission denied
> 
> I looked at the livecode-server executable in the path above and it had 
> permissions set at 644. So I set the executable bit for all so permissions 
> for livecode-server were 755. (The files in Drivers and External directories 
> are still 644. Should they be changed to 755 too?)
> 
> Now I still get 'HTTP response code 500 returned from server’ but with a 
> different error message:
> - lscgid: execve():/home/mysite/sites/api.myapp.com/cgi-bin/livecode-server: 
>  No such file or directory
> 
> The API is using a REST approach.  
> 
> An example of how the App uses the api is to get LC Server to return a list 
> of projects it is posting the session id as authentication to the URL 
> https://api.myapp.com/myapp_db/listProjects 
> 
> 
> Using RevIgniter command rigFetchSegment(n) The API takes the first segment 
> of the url ‘myapp_db’ as the name of the database and the the second segment 
> of the URL 'listProjects' is the command being called in the API.
> 
> From the error being called it appears that the server is actually taking the 
> path https://api.example.com/myappDB/listProjectsliterally 
> , i.e. looks for that 
> directory which does not exist and returns the error.
> 
> So since I copied the site to the new server I think I may have not have 
> copied a config file correctly or there is a server setting I need to change 
> so the REST URLs are dealt with correctly.
> 
> Does anyone have any ideas of how to resolve this?
> 
> Thanks in advance.
> 
> Martin Koob


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


Re: text copied form LC generated PDF, WTF?

2020-02-18 Thread Klaus major-k via use-livecode


> Am 18.02.2020 um 19:45 schrieb Curry Kenworthy via use-livecode 
> :
> 
> That looks like a perfectly valid WTF file.

very funny, almost as funny as "FieldTrip: fully paid, but still in beta after 
7 (SEVEN) years"! 8-)
Yes, I know I am just too impatient...

> Best wishes,
> 
> Curry Kenworthy

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


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


Re: text copied form LC generated PDF, WTF?

2020-02-18 Thread Curry Kenworthy via use-livecode



That looks like a perfectly valid WTF file.

Best wishes,

Curry Kenworthy

Custom Software Development
"Better Methods, Better Results"
LiveCode Training and Consulting
http://livecodeconsulting.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


text copied form LC generated PDF, WTF?

2020-02-18 Thread Klaus major-k via use-livecode
Hi friends,

I know that copying text form a PDF file may result in unexspected results, 
but this is really ridicoulous!?

I created a PDF from LC (selected "Save as PDF" in the macOS Print dialog)
and when I copy some text and past it into TextEdit, this is what i get: 

Where on earth are my numbers and where is my text?

Any insights very appreciated!


Best

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


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


Re: LC 9.6.0 DP2

2020-02-18 Thread Trevor DeVore via use-livecode
On Tue, Feb 18, 2020 at 11:07 AM Mark Talluto via use-livecode <
use-livecode@lists.runrev.com> wrote:

>
> Here is a fun sidenote. Windows 7 has also lost support from Microsoft as
> of Jan 14, 2020. Microsoft provides a program called Extended Security
> Updates.
>
> This program buys companies up to three years of support. It is my
> understanding that the program is expensive. The program is for big
> businesses and not available to individuals.
>
> So, if you are developing for organizations that rely on Windows 7, this
> may be useful for your next meeting with IT.
> https://support.microsoft.com/en-us/help/4527878/faq-about-extended-security-updates-for-windows-7
> <
> https://support.microsoft.com/en-us/help/4527878/faq-about-extended-security-updates-for-windows-7
> >
>

Thanks for sharing that Mark. I wasn't aware that Microsoft had this
program.

My company recently announced that we are dropping official support for
Windows 7 with our next desktop update. We won't stop it from working but
we will no longer test new features on it. We haven't had anybody write
back requesting that we continue to support it. As a reference, our
customer base is made up of small to medium businesses as well as larger
corporations.

-- 
Trevor DeVore
ScreenSteps
www.screensteps.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


LC 9.6.0 DP2

2020-02-18 Thread Charles Szasz via use-livecode
Richard,

I have been a member of the LC community since roughly 2003.  I have not seen 
the notes on LC 9.6.0 DP2.  My main focus has been on updating my apps to 64 
bit Mac desktop apps and conquering notarizing my apps.  I was not concern and 
not surprised about Windows XP support. I will end my support for Windows XP at 
the end of June. I am still looking forward to creating 64 bit Windows apps.  

Sent from my iPad
___
use-livecode mailing list
use-livecode@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.0 DP2

2020-02-18 Thread Mark Talluto via use-livecode
> On Feb 18, 2020, at 8:08 AM, Richard Gaskin via use-livecode 
>  wrote:
> 
> Richmond wrote:
>> "The OP asked about using the latest version of LiveCode on an OS that was 
>> EOL'd many years ago."
>> And I replied by suggesting a version of LiveCode that would produce 
>> standalones that would work on that OS.
> 
> 
> While all of us here make software, not all of us study security.  We are all 
> constructively minded, and generally don't have a habit of looking at things 
> from the perspective of the bad guys. I value the insights in the 
> newsletters, blogs, and books I read on security, helping me better 
> understand the implications of my choices as a developer of systems for 
> others to use.  Distilling a slice of that to a gentle reminder about staying 
> current with patches to known vulnerabilities seems useful.

Here is a fun sidenote. Windows 7 has also lost support from Microsoft as of 
Jan 14, 2020. Microsoft provides a program called Extended Security Updates. 

This program buys companies up to three years of support. It is my 
understanding that the program is expensive. The program is for big businesses 
and not available to individuals.

So, if you are developing for organizations that rely on Windows 7, this may be 
useful for your next meeting with IT. 
https://support.microsoft.com/en-us/help/4527878/faq-about-extended-security-updates-for-windows-7
 



Best regards,

Mark Talluto
livecloud.io 
nursenotes.net 
canelasoftware.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.0 DP2

2020-02-18 Thread Richard Gaskin via use-livecode

Richmond wrote:
"The OP asked about using the latest version of LiveCode on an OS that 
was EOL'd many years ago."


And I replied by suggesting a version of LiveCode that would produce 
standalones that would work on that OS.


Do you have any idea how long Charles has been a member of this community?

That older software works with older software is self-evident, and 
Charles can be safely assumed to have had firsthand experience with 
older versions since he's been here the whole time.


That may be why he asked about compatibility with the most recent build, 
where I offered a reminder that compatible OS versions are in the 
Release Notes.


While it's self-evident that older software runs with older software, 
the implications of using older software are apparently less well known. 
A sentence at the end about staying current with patches to known 
vulnerabilities did not seem out of place.


Please understand that your personal belief that unpatched OSes are 
somehow fine for developers has been well established on this list. 
Thankfully for end-users, most of the industry holds a different view. 
Newspapers are filled with stories of the exceptions: Unpatched systems 
are the leading cause of exploits.


While all of us here make software, not all of us study security.  We 
are all constructively minded, and generally don't have a habit of 
looking at things from the perspective of the bad guys. I value the 
insights in the newsletters, blogs, and books I read on security, 
helping me better understand the implications of my choices as a 
developer of systems for others to use.  Distilling a slice of that to a 
gentle reminder about staying current with patches to known 
vulnerabilities seems useful.


--
 Richard Gaskin
 Fourth World Systems


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


LC 9.6.0 DP2

2020-02-18 Thread Charles Szasz via use-livecode
Richard,

Thanks for your reply regarding Windows XP.  Currently I use LC 6.1.3 to build 
apps for Windows XP.  So this is not a problem.  I am using LC 9.6.0 to build 
Mac 64 bit desktop apps. I have not yet tried building Windows 64 bit apps for 
the other Windows variants. 

Sent from my iPad

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


Does any one know what Player "intervals" actually are?

2020-02-18 Thread Paul Dupuis via use-livecode
Or even more specifically, does any one know what player object 
"intervals" (the values for currentTime, startTime, endTime, timeScale, 
and duration properties of a player) actually are? Are they frames? 
Something else? And does anyone know why they vary by Media Framework 
(i.e Quicktime vs Apple Video Foundation vs DirectShow)


For example, the same MP3 file under Quicktime (macOS or Windows) has a 
timeScale of 600, and under AVF a timeScale of 44100 and under 
DirectShow a timeScale of 1000.


What's more if you get the duration and the timeScale and convert to 
seconds, the different frameworks give (slightly) different values 
(largest difference is 3s on a 2m45s MP3)


For example, look at the lengthy list of data below: This is timeScale 
and duration for different file formats by media frameworks. A file of 
the same name (i.e. audio.aac) is the SAME file on any media Framework 
that can read it. Formats readable by the player differ by Media 
Framework. The data is tab delimited, so if the listserv preserves the 
tabs, you should be able to cut and paste to a spreadsheet for easier 
viewing.


LC6.7.11 with QT for Windows                LC9.6.0dp2 with DirectShow w 
LAV Codecs                LC9.5.0 with AVF (OSX)
Interval    Duration    Media File        Interval    Duration Media 
File        Interval    Duration    Media File
600    7216    audio.aac        1000    119930840 audio.aac     
44100    525312    audio.aac
600    7202    audio.adts        1000    54016 audio.ac3     
48000    2592768    audio.ac3
600    7188    audio.aif        1000    119836600 audio.adt     
44100    531456    audio.adts
600    7188    audio.aifc        1000    119836600 audio.adts     
44100    528318    audio.aif
600    7188    audio.aiff        1000    11980 audio.aif     
44100    528318    audio.aifc
600    20280    audio.amr        1000    11980 audio.aifc     
44100    528318    audio.aiff
600    7188    audio.au        1000    11980 audio.aiff     
8000    271200    audio.amr
600    20926    audio.caf        1000    33900 audio.amr     
44100    528318    audio.au
9    2652480    audio.m1a        1000    11980 audio.au    
    44100    1538116    audio.caf
9    2652480    audio.m2a        1000    348779140 audio.caf    
    48000    1339776    audio.m1a
600    7188    audio.m4a        1000    348779140 audio.caff     
48000    1339776    audio.m2a
600    7188    audio.m4b        1000    29376 audio.m1a     
600    7188    audio.m4a
600    7188    audio.m4p        1000    29376 audio.m2a     
600    7188    audio.m4b
600    7188    audio.m4r        1000    11980 audio.m4a     
600    7188    audio.m4p
600    7188    audio.mov        1000    11980 audio.m4b     
600    7188    audio.m4r
9    2652480    audio.mp2        1000    11980 audio.m4p    
    600    7188    audio.mov
600    7225    audio.mp3        1000    11980 audio.m4r     
48000    1339776    audio.mp1
600    7188    audio.mp4        1000    11980 audio.mov     
9    2650320    audio.mp2
9    2652480    audio.mpa        1000    29376 audio.mp1    
    44100    529920    audio.mp3
600    7188    audio.qt        1000    29376    audio.mp2     
600    7188    audio.mp4
600    7188    audio.snd        1000    12016 audio.mp3     
48000    1339776    audio.mpa
600    7188    audio.wav        1000    11980 audio.mp4     
600    7188    audio.qt
600    7188    audio.wave        1000    29376 audio.mpa     
44100    528318    audio.wav
600    17779    video.3g2        1000    11980 audio.qt     
600    17779    video.3g2
600    17779    video.3gp        1000    11980 audio.snd     
600    17779    video.3gp
600    17779    video.3gp2        1000    543114970 audio.ulaw    
    600    17779    video.3gp2
600    17779    video.3gpp        1000    543114970 audio.ulw     
600    17779    video.3gpp
600    17680    video.avi        1000    11980 audio.wav     
100    29466372    video.avi
2997    88300    video.dif        1000    11980 audio.wave    
    3    882882    video.dv
2997    88300    video.dv        1000    11981 audio.wma.(WMA1 
codec).wma        9    2650320 video.m2v.(MPEG-2).m2v
9    2652480    video.m1v        1000    11981 
audio.wma.(WMA2 codec).wma        600    17677    video.m4v.(AAC codec).m4v
600    17677    video.m4v.(AAC codec).m4v        1000 296316670    
video.3g2        600    17677    video.m4v.(h264 codec).m4v
600    17677    video.m4v.(h264 codec).m4v        1000 296316670    
video.3gp        600    17677    video.mov
600    17677    video.mov        1000    296316670 video.3gp2     
9    2656130    video.mp4
9    2656131    video.mp4        1000    296316670 video.3gpp    
    9    2650320    video.mpeg.(MPEG-1).mpeg
600    17677    vide

Re: Translate metadata to field content

2020-02-18 Thread hh via use-livecode
> JLG wrote:
> I'm still working on htmltext in a field. There are anchors
> that indicate positions elsewhere in the file. A browser will
> automatically find and scroll to the right place in the text.
> I need to reproduce that.

Besides using style runs you could try the following simple
method that works with the htmltext of a (locked) field and
works also in a browser.

-- Assuming (as usual)
-- [1] you use the following style for a link target
-- X
-- where X is any char e.g. a space (else LC removes
-- the tag in its htmltext!)
-- [2] you use the following style for a local page link
-- Target10

Then the following in the field's script does what you want.

-- jumps to local page links (as described above) ##[-hh 2020]
on linkClicked pUrl
  if pUrl begins with "#" then
delete char 1 of pUrl
put "" into tTarget
-- of course there should be no return in tTarget
put the htmltext of me into tHtml
if tTarget is in tHtml then 
  set itemdelimiter to tTarget
  put numToChar(1) after item 1 of tHtml
  set htmltext of me to tHtml
  set itemdelimiter to numToChar(1)
  put 1+length(item 1 of me) into tL
  delete char tL of me
  -- select char tL to tL-1 of me --> variant
  select char tL of me --> see it in locked field
  -- scrollSelectionIntoView --> optional
end if
  end if
end linkClicked

-- works for any selection in a field ##[-hh 2020]
on scrollSelectionIntoView
  put the selectedLoc into tSL
  put the vscroll of me into tV
  put item 2 of tSL - the top of me into tDiff
  if tDiff > 0.75*the height of me then
set vscroll of me to tV + 0.4*the height of me
  else if tDiff < 0.25*the height of me then
set vscroll of me to tV - 0.4*the height of me
  end if
end scrollSelectionIntoView


___
use-livecode mailing list
use-livecode@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.0 DP2

2020-02-18 Thread Richmond via use-livecode
"The OP asked about using the latest version of LiveCode on an OS that 
was EOL'd many years ago."


And I replied by suggesting a version of LiveCode that would produce 
standalones that would work

on that OS.

That is probably all the chap needed to know.

Richmond.

On 18.02.20 10:34, Richard Gaskin via use-livecode wrote:

Richmond wrote:

Banging on about endless upgrades is pretty pointless because, unless 
one lives in a cave, one already knows about that.


What might be better is to offer the OP a practical solution to their 
problem.


Enlighten us: what do you feel constitutes as "practical solution" to 
Charles' question?





___
use-livecode mailing list
use-livecode@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.0 DP2

2020-02-18 Thread Richard Gaskin via use-livecode

Richmond wrote:

Banging on about endless upgrades is pretty pointless because, unless 
one lives in a cave, one already knows about that.


What might be better is to offer the OP a practical solution to their 
problem.


Enlighten us: what do you feel constitutes as "practical solution" to 
Charles' question?


--
 Richard Gaskin
 Fourth World Systems



Richmond.

On 18.02.20 0:21, Richard Gaskin via use-livecode wrote:

Richmond wrote:
> Yeah, yeah, yeah . . . sick of that stuff about endless upgrades; and,
> frankly banging on about them does not really help anyone who asks the
> sort of question the OP asked.

The OP asked about using the latest version of LiveCode on an OS that 
was EOL'd many years ago.


I replied that the LC version he's asking about doesn't run on XP. 
That older versions do is self-evident.


What exactly ruffles your feathers about providing an accurate answer 
to the question?



> There is a simple fact that some people round "these parts" as well as
> elsewhere overlook . . .
>
> Not everyone has oddles of money to endlessly upgrade, or the
> inclination to do that.

I agree it would be ideal if OS vendors supported every version 
forever, but as a practical matter they simply don't.  It isn't LC's 
fault, and I can't even blame the OS vendor.


If there's any "bad guy" here it's the literal bad guys:

We can reply on nearly every popular OS version to be patched forever, 
but after EOL the only new patches are coming from organized crime.


As long as the machine isn't connected to the open Internet it may be 
safe to use.


Beyond that, yes, it's unfortunate that OS vendors will drop support 
for hardware, and fortunate that Linux is available to give a second 
life to hardware abandoned by its maker.


With such a vast ecosystem behind it, there's probably a Linux version 
for just about any computing device made in the last 20 years.


Linux is free and open, ready to step in whenever another OS vendor 
lets you down.





Previous message (by thread): LC 9.6.0 DP2
Next message (by thread): Invalid Image File / Original Image Size
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

More information about the use-livecode mailing 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