Re: Go to card has become slow

2020-04-13 Thread Neville Smythe via use-livecode
Mark Waddingham wrote
> Each paragraph has at least one style run - even if no styles are 
> applied so this is a general thing.
> 
> Most of the text in your generated test (data) stack was unstyled anyway 
> (as it uses 'the text of' to replicate the data) so minimizing those API 
> calls should affect all stacks with a reasonable amount of field data in 
> them.

Ah, my bad. I have updated the SlowSaveWithStyle test stack.

So table fields and datagrids  will indeed be affected. Excellent!

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: Apps to fight COVID-19

2020-04-13 Thread Dar Scott Consulting via use-livecode
Thanks!


> On Apr 13, 2020, at 11:42 AM, Mark Wieder via use-livecode 
>  wrote:
> 
> On 4/13/20 10:14 AM, dsc--- via use-livecode wrote:
>> 1. Covid Watch needs expertise in making HIPAA compliant apps. (We have 
>> changed COVID Watch to Covid Watch.)
> 
> This any help?
> 
> https://www.healthcareblocks.com/hipaa/developer_guidelines
> 
> -- 
> 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


___
use-livecode mailing list
use-livecode@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 Paul McClernan via use-livecode
As Richard said:

> LC's Player control uses the host OS's playback engine, so as long as
> the OS-supplied media player can handle a format, LC should be able to
> as well.

For clarity, I would add that the mp3 files to be played could be included
with a standalone package on platforms like macOS (app bundle resource
folder) and Android (inside the app/zip folder) so there wouldn't be any
mucking about for the user. Another method to include them is to encode the
files as Base64 and store them in a custom property in your stack, then
extract them to the system's temporary directory or the app's preference
directory and play them from there.
Also, there is a (mostly complete) library written in LiveCode script for
reading (and writing, but that's the unfinished bits) ID3 tags and other
info directly from the binary data of mp3 files.
https://github.com/PaulMcClernan/id3lib

On Sun, Apr 12, 2020 at 1:10 PM Graham Samuel via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Pardon my ignorance, but Is there really no way to put an mp3 sound into a
> stack as an audioclip and play it? Seems unlikely, but that’s what the
> dictionary says. WAV, forsooth!
>
> Graham
> ___
> use-livecode mailing list
> use-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: Video format for mobile

2020-04-13 Thread Monte Goulding via use-livecode


> On 14 Apr 2020, at 10:00 am, J. Landman Gay via use-livecode 
>  wrote:
> 
> The bug was me. I didn't know about the HTTPS requirement, but in addition I 
> had to add the SSL library and set hardware acceleration too (I think that's 
> what Colin meant, and I misunderstood.)

Hmm… I only needed to change the url to https here.
> 
> Sorry you had to spend time on this, especially since Panos beat you to it.

Actually it’s good that we have had a chance to identify an improvement we can 
make to the standalone builder.

Cheers

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


Re: Video format for mobile

2020-04-13 Thread J. Landman Gay via use-livecode

On 4/13/20 5:38 PM, Monte Goulding via use-livecode wrote:

Hi Jacque

Good news! This is not a bug!

As of Android 9 clear text HTTP is disabled by default. This is much like the 
ATS restrictions on iOS. We probably need to add a way to configure this in the 
standalone builder for Android like we do for iOS even though it’s not 
advisable.

Changing your video url to https resoled the issue.

See 
https://developer.android.com/training/articles/security-config#CleartextTrafficPermitted
 



The bug was me. I didn't know about the HTTPS requirement, but in addition I had to add the SSL 
library and set hardware acceleration too (I think that's what Colin meant, and I misunderstood.)


Sorry you had to spend time on this, especially since Panos beat you to it.


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


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


Re: a QR Code reader for iOS and Android?

2020-04-13 Thread Monte Goulding via use-livecode



> On 14 Apr 2020, at 9:06 am, kee nethery via use-livecode 
>  wrote:
> 
> The dictionary in 9.5.1 Indy indicates mergeAVCam is ios and mac. Thanks for 
> clarifying it is not mac.

Ah, ok that should get fixed
> 
> Can you tell me the list of bar code types that mergAVCamBarcodeTypes() would 
> return in ios? That list is not in the dictionary.

AVMetadataObjectTypeUPCECode, 
AVMetadataObjectTypeCode39Code, 
AVMetadataObjectTypeCode39Mod43Code,
AVMetadataObjectTypeEAN13Code, 
AVMetadataObjectTypeEAN8Code, 
AVMetadataObjectTypeCode93Code,
AVMetadataObjectTypeCode128Code,
AVMetadataObjectTypePDF417Code, 
AVMetadataObjectTypeQRCode, 
AVMetadataObjectTypeAztecCode, 
AVMetadataObjectTypeITF14Code, 
AVMetadataObjectTypeDataMatrixCode
> 
> Am hoping that I can build something for Android and iOS that can exchange 
> data between those devices using QR codes (assuming QR codes are supported by 
> ios for scanning).

Yes they are

Cheers

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


Re: Problem simulating a location

2020-04-13 Thread Alan Stenhouse via use-livecode
Hi Graham

IIRC, mobileSensorReading() returns an array so you need to check the keys of 
the array.

Perhaps:

if tSensorData["latitude"] is empty then


HTH

cheers

Alan

> On Mon, 13 Apr 2020 14:38:56,Graham Samuel  > wrote:
> 
> 
> I?m trying to use the 10.2 XCode simulator to test an iOS app that uses the 
> phone?s ability to know its location (usually via GPS). I can run the 
> simulation and show that it?s working in a general way. Furthermore, 
> mobileSensorAvailable("location?) responds in the simulated app, saying the 
> sensor is ?authorizedWhenInUse?
> 
> However the following button handler - adapted from a lesson by Devin Asay 
> (very sincere thanks for all that, Devin!) always returns an empty result. I 
> have set the location in the simulator to a (genuine) custom location, but if 
> I choose one of the built-in locations, I still get the same result.
> 
>  On mouseUp
>mobileStartTrackingSensor "location? -- enable the sensor first
>put "now trying to get a one-off location reading" & return after fld 
> ?TheReport"
>put mobileSensorReading("location",false) into tSensorData -- this returns 
> a string with the current latitude, longitude and altitude
>mobileStopTrackingSensor ?location? -- turn off the sensor when done
>if tSensorData is empty then
>put "no location info!!" & return after fld "TheReport"
>else
>put tSensorData & return after fld "TheReport"
>   end if
> end mouseUp
> 

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


Re: a QR Code reader for iOS and Android?

2020-04-13 Thread kee nethery via use-livecode
The dictionary in 9.5.1 Indy indicates mergeAVCam is ios and mac. Thanks for 
clarifying it is not mac.

Can you tell me the list of bar code types that mergAVCamBarcodeTypes() would 
return in ios? That list is not in the dictionary.

Am hoping that I can build something for Android and iOS that can exchange data 
between those devices using QR codes (assuming QR codes are supported by ios 
for scanning).

Thanks!

Kee

> On Apr 13, 2020, at 3:47 PM, Monte Goulding via use-livecode 
>  wrote:
> 
> 
> 
>> On 14 Apr 2020, at 8:30 am, kee nethery via use-livecode 
>>  wrote:
>> 
>> I see that the Android Barcode Library can scan QRcodes. That’s great.
>> 
>> I see that mergeAVCam can scan barcodes of various types for ios and mac as 
>> specified by mergAVCamBarcodeTypes(). I could potentially use these two 
>> libraries to scan any QR code.
>> 
>> On my Mac when I run "put mergAVCamBarcodeTypes()” in the message box, it 
>> returns an empty list. Does that mean that Livecode can’t scan any barcode 
>> type on my Mac? That seems bizarre. 
> 
> mergAVCam is not supported on mac since we have the camera control in the 
> engine.
> 
> Last I checked the AVFoundation barcode detection was not implemented in the 
> macOS version of that framework either but it seems it has been in Catalina 
> so I’ll raise this internally as a possibility.
> 
> Ideally we would extend the android barcode scanner widget to be cross 
> platform.
> 
> Cheers
> 
> Monte
> ___
> use-livecode mailing list
> use-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: a QR Code reader for iOS and Android?

2020-04-13 Thread Monte Goulding via use-livecode


> On 14 Apr 2020, at 8:30 am, kee nethery via use-livecode 
>  wrote:
> 
> I see that the Android Barcode Library can scan QRcodes. That’s great.
> 
> I see that mergeAVCam can scan barcodes of various types for ios and mac as 
> specified by mergAVCamBarcodeTypes(). I could potentially use these two 
> libraries to scan any QR code.
> 
> On my Mac when I run "put mergAVCamBarcodeTypes()” in the message box, it 
> returns an empty list. Does that mean that Livecode can’t scan any barcode 
> type on my Mac? That seems bizarre. 

mergAVCam is not supported on mac since we have the camera control in the 
engine.

Last I checked the AVFoundation barcode detection was not implemented in the 
macOS version of that framework either but it seems it has been in Catalina so 
I’ll raise this internally as a possibility.

Ideally we would extend the android barcode scanner widget to be cross platform.

Cheers

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


Re: Video format for mobile

2020-04-13 Thread Monte Goulding via use-livecode
Aha! Was just about to comment on the report and it seems Panos got there first!

I should have expected that ;-)

Cheers

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


Re: Video format for mobile

2020-04-13 Thread Monte Goulding via use-livecode


> On 13 Apr 2020, at 3:29 pm, J. Landman Gay via use-livecode 
>  wrote:
> 
> On 4/12/20 4:16 PM, Monte Goulding via use-livecode wrote:
>>> On 13 Apr 2020, at 3:58 am, J. Landman Gay via use-livecode 
>>>  wrote:
>>> 
>>> On 4/12/20 9:43 AM, Mark Waddingham via use-livecode wrote:
 On 2020-04-10 21:39, J. Landman Gay via use-livecode wrote:
> @Mark is there a bug number for this? I couldn't find anything.
 Not specifically as yet I don't think - Monte noticed some issues late 
 last week, and is the progress of fixing them. I've asked him to chime in 
 when he's back to work :)
>>> 
>>> Thanks, that's good. I can give him a link to one of my videos that doesn't 
>>> work on Android, just in case the cause is a bit different from what he's 
>>> working on now. It's pretty much time-critical at my end.
>> Hi Jacque
>> I noticed some very similar behavior to what you are seeing but only when 
>> acceleratedRendering is on. I could hear audio but the video was just white. 
>> Turning off acceleratedRendering fixed the issue for me. I found a way to 
>> resolve the issue in the engine. If anyone is interested it has to do with 
>> how the main surface view and the video surface view are layered. The same 
>> issue appears to impact the camera control and likely (untested yet) impacts 
>> the barcode scanner widget. I’m not sure if what you are seeing is related 
>> if acceleratedRendering is not true.
>> First up this morning I’m creating a recipe stack for this and another issue 
>> I found with android player then crating bug reports. If you would like to 
>> create a recipe stack to demonstrate your issue that would be helpful too. 
>> Perhaps attach to your own bug report and then we can determine if it’s a 
>> duplicate of what I’m seeing or something else.
> 
> Done:  >
> 
> Thanks Monte.


Hi Jacque

Good news! This is not a bug!

As of Android 9 clear text HTTP is disabled by default. This is much like the 
ATS restrictions on iOS. We probably need to add a way to configure this in the 
standalone builder for Android like we do for iOS even though it’s not 
advisable.

Changing your video url to https resoled the issue.

See 
https://developer.android.com/training/articles/security-config#CleartextTrafficPermitted
 


Cheers

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


Re: a QR Code reader for iOS and Android?

2020-04-13 Thread kee nethery via use-livecode
I see that the Android Barcode Library can scan QRcodes. That’s great.

I see that mergeAVCam can scan barcodes of various types for ios and mac as 
specified by mergAVCamBarcodeTypes(). I could potentially use these two 
libraries to scan any QR code.

On my Mac when I run "put mergAVCamBarcodeTypes()” in the message box, it 
returns an empty list. Does that mean that Livecode can’t scan any barcode type 
on my Mac? That seems bizarre. 

Kee

> On Apr 13, 2020, at 3:11 PM, kee nethery via use-livecode 
>  wrote:
> 
> From what I can tell there used to be a QRcode scanner in code that Monte 
> provided to LiveCode. I’m using the built in library to create a QR code and 
> as far as I know, that is working great. Now I need something to scan and 
> parse a QRcode. There was nothing I could find that did that in the sample 
> stacks.
> 
> Any ideas?
> 
> Kee Nethery
> ___
> use-livecode mailing list
> use-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


a QR Code reader for iOS and Android?

2020-04-13 Thread kee nethery via use-livecode
From what I can tell there used to be a QRcode scanner in code that Monte 
provided to LiveCode. I’m using the built in library to create a QR code and as 
far as I know, that is working great. Now I need something to scan and parse a 
QRcode. There was nothing I could find that did that in the sample stacks.

Any ideas?

Kee Nethery
___
use-livecode mailing list
use-livecode@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 useless seems to be Junk

2020-04-13 Thread Rick Harrison via use-livecode
Hi Richmond,

If enough of your useful stuff ends up in your junk email mailbox folder
well then.. welcome to your new inbox!  LOL

Seriously I hope you find a fix, and when you do let us all know.
I don’t use Thunderbird so I can’t really speak more to the matter.

Good luck!

Rick

> On Apr 12, 2020, at 2:11 PM, Richmond via use-livecode 
>  wrote:
> 
> Thunderbird has recently started marking posts from
> the Use-list as junk.

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


[blog post] creating a blogging client with LiveCode

2020-04-13 Thread Andre Garzia via use-livecode
Hey Folks,

I just wrote a lengthy blog post about recreating an old app of mine to
post to blogs using LiveCode:

https://andregarzia.com/2020/04/cross-platform-development-with-livecode.html

I don't talk about any stuff that you're not aware in it. It is mostly for
the benefit of people who doesn't know LC but I thought some people here
might appreciate it.

Send me feedback or questions if you want to know more about anything there.

Best
Andre

-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.
___
use-livecode mailing list
use-livecode@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 useless seems to be Junk

2020-04-13 Thread Curry Kenworthy via use-livecode



Richmond:

> Thunderbird has recently started marking posts from the
> Use-list as junk.

Might be the click-bait subject lines lately. Seem to be coming from a 
server in Bulgaria? :D j/k


> whether there is something that can be done

There are also Junk Settings in Account Settings (Tools menu) that 
determine how Junk is determined. ("If enabled you must first train 
Thunderbird...") You can also disable the built-in Junk feature there.


Depending on which of those settings are turned on and also your email 
provider's setup, if an external sp*m flagging service is being used (or 
if you want to see typical triggers) you might be able to see more info 
by showing all headers (View menu) and looking for a sp*m status header 
on flagged emails.


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: 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: Apps to fight COVID-19

2020-04-13 Thread Mark Wieder via use-livecode

On 4/13/20 10:14 AM, dsc--- via use-livecode wrote:

1. Covid Watch needs expertise in making HIPAA compliant apps. (We have changed 
COVID Watch to Covid Watch.)


This any help?

https://www.healthcareblocks.com/hipaa/developer_guidelines

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

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


[ANN] This Week in LiveCode 221

2020-04-13 Thread panagiotis merakos via use-livecode
Hi all,

Read about new developments in LiveCode open source and the open source
community in today's edition of the "This Week in LiveCode" newsletter!

Read issue #221 here: https://bit.ly/2K1Rk9Q

This is a weekly newsletter about LiveCode, focussing on what's been
going on in and around the open source project. New issues will be
released weekly on Mondays. We have a dedicated mailing list that will
deliver each issue directly to you e-mail, so you don't miss any!

If you have anything you'd like mentioned (a project, a discussion
somewhere, an upcoming event) then please get in touch.

-- 
Panagiotis Merakos 
LiveCode Software Developer

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: tsNet error 77 ca-bundle on CentOS server

2020-04-13 Thread Pi Digital via use-livecode
Yay! You superstar Matthias! Worked perfectly. Thanks for saving me. 

Regards

Sean Cole
Pi Digital


> On 13 Apr 2020, at 18:09, matthias rebbe via use-livecode 
>  wrote:
> 
> Does is work if you  put the following command
> 
> tsNetVerifySSLPeer false
> 
> before the line
> 
> put tsnetcustomsync...
> 
> Maybe you have also to comment out the line TsnetCABundle
> 
> 
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
>>> Am 13.04.2020 um 18:59 schrieb Pi Digital via use-livecode 
>>> :
>>> 
>>> Hi all
>>> 
>>> I’m transferring a stack from my local Mac onto a remote virtual server 
>>> (vultr) running a CentOS7 Gnome. The stack communicates with our other 
>>> CPanel server to collect emails using a tsNetCustomSync command. The 
>>> sequence is like this:
>>> 
>>> Tsnetclose
>>> Tsnetinit
>>> TsnetCABundle “/etc/ssl/ca-bundle.crt”
>>> Put tUser into tsettings[“username”]
>>> Put tPass into tsettings[“password”]
>>> Put tsNetCustomSync(“imaps://mail.myServ.com”,”SELECT 
>>> INBOX”,xheaders,retHeaders,retResult,retBytes,tSettings) into tStat 
>> 
>> 
>> Running this I get returned in retResult:
>> tsneterr: (77) error setting certificate verify locations:
>>  CAfile: /etc/ssl/ca-bundle.crt
>>  CApath: none
>> 
>> The ca-bundle file exists in that location. I added the tsNetCABundle 
>> command after I had first encountered this error. I built new certificates, 
>> enabled SSL and basic firewall on the server. I’m unfamiliar enough with 
>> Linux to understand why I get this CA error. I’ve run out of common sense 
>> ideas. What do I need to do to get it running. 
>> 
>> Thanks. 
>> 
>> Sean Cole
>> Pi Digital
>> ___
>> use-livecode mailing list
>> use-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: Apps to fight COVID-19

2020-04-13 Thread dsc--- via use-livecode
1. Covid Watch needs expertise in making HIPAA compliant apps. (We have changed 
COVID Watch to Covid Watch.)

2. I looks like there is a need for a 14-day self quarantine app. In addition 
to what we have discussed already, it should have a place to put daily symptoms 
and checkboxes or reminders to notify doctor and whether one has been tested.


> On Apr 12, 2020, at 5:04 PM, dsc--- via use-livecode 
>  wrote:
> 
> Anybody with experience in MyChart or HIPPA or the like?
> 
>> On Apr 11, 2020, at 2:40 PM, dsc--- via use-livecode 
>>  wrote:
>> 
>> I don't know why they allow hippos to run free in a hospital, but I hear 
>> there can be a hippo concern. 
>> 
>> 
>>> On Apr 11, 2020, at 2:05 PM, dsc--- via use-livecode 
>>>  wrote:
>>> 
>>> Ah, like NANORIMO, but 14 days!
>>> 
>>> I think it would be a good promo for businesses to give a 14-day gift to 
>>> those in self quarantine. Book a day. A 14-day subscription to their news 
>>> magazine. Movie a day. Maybe not even quarantine, just anybody who wants to 
>>> be by themselves for 14 day. 
>>> 
 On Apr 11, 2020, at 1:57 PM, Mark Smith via use-livecode 
  wrote:
 
 I like that, jokes, puzzles, movies, any form of entertainment to help 
 pass the time. I think if I were quarantined for 14 days, I’d start 
 writing a best seller :)
 
 
> On Apr 11, 2020, at 8:43 PM, Dar Scott Consulting via use-livecode 
>  wrote:
> 
> 14 day devotional? Daily quarantine tips? Daily jokes? ...
> 
> 
>> On Apr 11, 2020, at 12:34 PM, Dev via use-livecode 
>>  wrote:
>> 
>> Countdown of the hours left in purgatory?
>> 
>>> On Apr 11, 2020, at 12:32 PM, Mark Smith via use-livecode 
>>>  wrote:
>>> 
>>> What would it be designed to help you with?
>>> 
 On Apr 11, 2020, at 4:51 PM, dsc--- via use-livecode 
  wrote:
 
 App idea: 14 days of self-quarantine
 
 
>> On Apr 11, 2020, at 8:35 AM, dsc--- via use-livecode 
>>  wrote:
> 
> Maybe a diary app can be enhanced to include "Talked with this person 
> in person for a few minutes" and "Lingered at this location for a few 
> minutes" checkboxes that might be an aid when interviewed in 
> traditional contact tracing. Those might be used for filtering.
> 
> This does not add to anything lost when Big Brother steals your 
> phone; it only helps you or daughter-spouse-caregiver to answer 
> contact tracing questions. 
> 
> 
>> On Apr 11, 2020, at 7:34 AM, dsc--- via use-livecode 
>>  wrote:
>> 
>> I like it. And it can give kids a chance to show grandma how to 
>> download apps.
>> 
>> And this can be added to the COVID-19 button of current apps, too.
>> 
>> 
>>> On Apr 11, 2020, at 1:03 AM, David Bovill via use-livecode 
>>>  wrote:
>>> 
>>> Personally - especially after reading the links below on Apple + 
>>> Googles initiative - I’d go for story telling based around the 
>>> comic in an app that we could add contact tracing functionality 
>>> too. I think emphasising in the story telling privacy issues would 
>>> be something that would be an important aspect and a strong point 
>>> with regard to adding to the mix - rather than duplicating efforts 
>>> by other groups?
>>> On 10 Apr 2020, 18:05 +0100, dsc--- via use-livecode 
>>> , wrote:
 And it doesn't have to be just contact tracing related.
 
 Jonathan Rothberg's team is working on a simple test at home that 
 needs an app.
 co...@4catalyzer.com 
 
 Anybody want to talk about a containment game? Or take the concept 
 and go in one's own direction?
 
 Nicky Case's phone size comic is now available in several 
 languages, so if you include that in _anything_ you do, can 
 localize a little.
 
 Dar
 team COVID Watch
>>> ___
>>> use-livecode mailing list
>>> use-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: tsNet error 77 ca-bundle on CentOS server

2020-04-13 Thread matthias rebbe via use-livecode
Does is work if you  put the following command

tsNetVerifySSLPeer false

before the line

put tsnetcustomsync...

Maybe you have also to comment out the line TsnetCABundle



-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 13.04.2020 um 18:59 schrieb Pi Digital via use-livecode 
> :
> 
> Hi all
> 
> I’m transferring a stack from my local Mac onto a remote virtual server 
> (vultr) running a CentOS7 Gnome. The stack communicates with our other CPanel 
> server to collect emails using a tsNetCustomSync command. The sequence is 
> like this:
> 
>> Tsnetclose
>> Tsnetinit
>> TsnetCABundle “/etc/ssl/ca-bundle.crt”
>> Put tUser into tsettings[“username”]
>> Put tPass into tsettings[“password”]
>> Put tsNetCustomSync(“imaps://mail.myServ.com”,”SELECT 
>> INBOX”,xheaders,retHeaders,retResult,retBytes,tSettings) into tStat 
> 
> 
> Running this I get returned in retResult:
> tsneterr: (77) error setting certificate verify locations:
>   CAfile: /etc/ssl/ca-bundle.crt
>   CApath: none
> 
> The ca-bundle file exists in that location. I added the tsNetCABundle command 
> after I had first encountered this error. I built new certificates, enabled 
> SSL and basic firewall on the server. I’m unfamiliar enough with Linux to 
> understand why I get this CA error. I’ve run out of common sense ideas. What 
> do I need to do to get it running. 
> 
> Thanks. 
> 
> Sean Cole
> Pi Digital
> ___
> use-livecode mailing list
> use-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


tsNet error 77 ca-bundle on CentOS server

2020-04-13 Thread Pi Digital via use-livecode
Hi all

I’m transferring a stack from my local Mac onto a remote virtual server (vultr) 
running a CentOS7 Gnome. The stack communicates with our other CPanel server to 
collect emails using a tsNetCustomSync command. The sequence is like this:

> Tsnetclose
> Tsnetinit
> TsnetCABundle “/etc/ssl/ca-bundle.crt”
> Put tUser into tsettings[“username”]
> Put tPass into tsettings[“password”]
> Put tsNetCustomSync(“imaps://mail.myServ.com”,”SELECT 
> INBOX”,xheaders,retHeaders,retResult,retBytes,tSettings) into tStat 


Running this I get returned in retResult:
tsneterr: (77) error setting certificate verify locations:
   CAfile: /etc/ssl/ca-bundle.crt
   CApath: none

The ca-bundle file exists in that location. I added the tsNetCABundle command 
after I had first encountered this error. I built new certificates, enabled SSL 
and basic firewall on the server. I’m unfamiliar enough with Linux to 
understand why I get this CA error. I’ve run out of common sense ideas. What do 
I need to do to get it running. 

Thanks. 

Sean Cole
Pi Digital
___
use-livecode mailing list
use-livecode@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 Ralph DiMola via use-livecode
I had one of those in my car. 4 tracks per pass were used in quad mode so each 
side of the album played without a track switch. When it was stolen(along with 
the muscle car) I was heartbroken. I had a few quad tapes including the 
aforementioned The Six Wives of Henry the Eighth. I also had Dark Side of the 
Moon(surprise surprise) and Zappa's Overnight Sensation and a few others. Drive 
to the woods roll down the windows then imbibe and pop in quadraphonic Pink 
Floyd. Boy we had some fun before we hunkered down and invented all the 
technology we see today.

I also used CD-4 records at the time. the front-back difference subcarrier was 
up at 18 kHz to 45 kHz. Who ever thought that a record's frequency response 
could go to 45khz? The Door's Riders on the Storm had whispering of the tag 
phrase "Riders on the Storm" isolated in the rear channels. If you listen close 
to the stereo version you can hear the whispering. I also had some classical 
recordings with 2 mikes at the rear of the hall in the rear channels.

Anyone who poo-poos quadraphonic should rethink that opinion when they fire up 
a movie with a 191.1(or whatever the current max is) speaker set up.

Colin,
Thanks for the great memories you just triggered. I needed that!

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Colin Holgate via use-livecode
Sent: Monday, April 13, 2020 11:46 AM
To: How to use LiveCode
Cc: Colin Holgate
Subject: Re: MP3s

I don’t know where it is now, probably lost, but I had a JVC quadraphonic 8 
Track player. It could play regular 8 Track, which involved playing two tracks 
on the first loop and the other two tracks on the second loop, or it could play 
the four tracks in one loop. I only had a few tapes for it, one of those was a 
special recording of The Six Wives of Henry the Eighth, by Rick Wakeman.


> On Apr 13, 2020, at 9:40 AM, Richard Gaskin via use-livecode 
>  wrote:
> 
> Graham Samuel wrote:
> 
> > Well, Richard, as usual you say something informative and useful!
> >
> > I didn’t know that LC could play a sound file in MP3 format.
> 
> LC's Player control uses the host OS's playback engine, so as long as the 
> OS-supplied media player can handle a format, LC should be able to as well.
> 
> 
> > Instinctively I thought that an audioclip was the way to go, because 
> > I saw it as a small chunk of data best embedded in my app. In my 
> > mind, the format of an external file trades flexibility (the user or 
> > the app can switch content easily) against a massive overhead of 
> > storage and software mechanics and potential delays due to loading 
> > etc, whereas the audioclip is small, clean, and can be started and 
> > stopped with no overheads.
> 
> True, reading the media file takes a bit more time than a clip already in RAM 
> with the rest of the stack file.  But in many cases it's not noticeable.  And 
> where it is noticeable it probably has less to do with the file I/O than the 
> codec itself:  HC's SND resources had few compression options, and MC's 
> audioclips were limited to .au format, which IIRC isn't compressed at all.
> 
> It might be nice to see LC expand the internal clips options to support the 
> same range of formats/codecs the Player does. But even then it would be 
> limited to smaller files where it's practical to load them all into RAM with 
> the rest of the stack file, modestly useful for some projects but prohibitive 
> with longer files.
> 
> As for user modification, the files can be in the Mac bundle, and on Windows 
> usually an installer is required anyway so you can put them in any useful 
> place the user is unlikely to stumble across them accidentally (this isn't a 
> problem at all on Linix - the absence of a functional Player in that LC 
> version simplifies many things ).
> 
> 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.
> 
> If there's a security or other concern requiring the files be protected from 
> user manipulation, there are options for that.  Like any DRM, there's usually 
> a tradeoff between strength and ease of implementation, but if it's needed we 
> can explore it.
> 
> --
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web 
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.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: MP3s

2020-04-13 Thread Colin Holgate via use-livecode
I don’t know where it is now, probably lost, but I had a JVC quadraphonic 8 
Track player. It could play regular 8 Track, which involved playing two tracks 
on the first loop and the other two tracks on the second loop, or it could play 
the four tracks in one loop. I only had a few tapes for it, one of those was a 
special recording of The Six Wives of Henry the Eighth, by Rick Wakeman.


> On Apr 13, 2020, at 9:40 AM, Richard Gaskin via use-livecode 
>  wrote:
> 
> Graham Samuel wrote:
> 
> > Well, Richard, as usual you say something informative and useful!
> >
> > I didn’t know that LC could play a sound file in MP3 format.
> 
> LC's Player control uses the host OS's playback engine, so as long as the 
> OS-supplied media player can handle a format, LC should be able to as well.
> 
> 
> > Instinctively I thought that an audioclip was the way to go, because I
> > saw it as a small chunk of data best embedded in my app. In my mind,
> > the format of an external file trades flexibility (the user or the app
> > can switch content easily) against a massive overhead of storage and
> > software mechanics and potential delays due to loading etc, whereas
> > the audioclip is small, clean, and can be started and stopped with no
> > overheads.
> 
> True, reading the media file takes a bit more time than a clip already in RAM 
> with the rest of the stack file.  But in many cases it's not noticeable.  And 
> where it is noticeable it probably has less to do with the file I/O than the 
> codec itself:  HC's SND resources had few compression options, and MC's 
> audioclips were limited to .au format, which IIRC isn't compressed at all.
> 
> It might be nice to see LC expand the internal clips options to support the 
> same range of formats/codecs the Player does. But even then it would be 
> limited to smaller files where it's practical to load them all into RAM with 
> the rest of the stack file, modestly useful for some projects but prohibitive 
> with longer files.
> 
> As for user modification, the files can be in the Mac bundle, and on Windows 
> usually an installer is required anyway so you can put them in any useful 
> place the user is unlikely to stumble across them accidentally (this isn't a 
> problem at all on Linix - the absence of a functional Player in that LC 
> version simplifies many things ).
> 
> 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.
> 
> If there's a security or other concern requiring the files be protected from 
> user manipulation, there are options for that.  Like any DRM, there's usually 
> a tradeoff between strength and ease of implementation, but if it's needed we 
> can explore it.
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.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: MP3s

2020-04-13 Thread Richard Gaskin via use-livecode

Graham Samuel wrote:

> Well, Richard, as usual you say something informative and useful!
>
> I didn’t know that LC could play a sound file in MP3 format.

LC's Player control uses the host OS's playback engine, so as long as 
the OS-supplied media player can handle a format, LC should be able to 
as well.



> Instinctively I thought that an audioclip was the way to go, because I
> saw it as a small chunk of data best embedded in my app. In my mind,
> the format of an external file trades flexibility (the user or the app
> can switch content easily) against a massive overhead of storage and
> software mechanics and potential delays due to loading etc, whereas
> the audioclip is small, clean, and can be started and stopped with no
> overheads.

True, reading the media file takes a bit more time than a clip already 
in RAM with the rest of the stack file.  But in many cases it's not 
noticeable.  And where it is noticeable it probably has less to do with 
the file I/O than the codec itself:  HC's SND resources had few 
compression options, and MC's audioclips were limited to .au format, 
which IIRC isn't compressed at all.


It might be nice to see LC expand the internal clips options to support 
the same range of formats/codecs the Player does. But even then it would 
be limited to smaller files where it's practical to load them all into 
RAM with the rest of the stack file, modestly useful for some projects 
but prohibitive with longer files.


As for user modification, the files can be in the Mac bundle, and on 
Windows usually an installer is required anyway so you can put them in 
any useful place the user is unlikely to stumble across them 
accidentally (this isn't a problem at all on Linix - the absence of a 
functional Player in that LC version simplifies many things ).


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.


If there's a security or other concern requiring the files be protected 
from user manipulation, there are options for that.  Like any DRM, 
there's usually a tradeoff between strength and ease of implementation, 
but if it's needed we can explore it.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com


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


Re: LiveCode useless seems to be Junk

2020-04-13 Thread Bob Sneidar via use-livecode
Reminds me of that epic website damnyouautocorrect.com. 

Bob S


> On Apr 12, 2020, at 1:49 PM, dunbarx--- via use-livecode 
>  wrote:
> 
> Richmond.
> I was going to lay into you, until I saw that "useless" was actually 
> "use-list"
> Close one.
> Craig


___
use-livecode mailing list
use-livecode@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 Bob Sneidar via use-livecode
The Dark Side of the Moon tour was a true Quad system, and I heard it in an 
outdoor amphitheater. I’ve never heard anything so amazing before or since. But 
that was mixed quad. Simulators are a different animal. If I am not mistaken 
they break out the sound by frequency ranges. 

Bob S


> On Apr 13, 2020, at 1:30 AM, Graham Samuel via use-livecode 
>  wrote:
> 
> Richmond, can’t resist saying that I can remember quad… I was never 
> convinced. It was certainly a fashion. Comes into one of my favourite films, 
> ‘Local Hero’, where the scallywag fisherman from Murmansk connects with the 
> wet-behind-the-ears young oil man from Houston.  it was just a little moment 
> in history when such a bit of dialogue might have existed… but I digress.
> 
> I have tinnitus, and hearing aids, but I can still enjoy a live, 
> non-amplified performance, and there is no equipment I could afford that 
> could make a recording in any format sound as good.
> 
> OT, I know.
> 
> Graham
> 
>> On 13 Apr 2020, at 09:42, Richmond via use-livecode 
>>  wrote:
>> 
>> Having the ability to import resources into a stack, whether they be images, 
>> videos or sounds is a great strength;
>> and much better than having a ReadMe document accompanying one's standalones 
>> telling people where they have to
>> bung a slew of referenced resources . . . knowing that about 50% of people 
>> will put them in the wrong place and then
>> complain they want their money back because your application doesn't work.
>> 
>> This may be "old-fashioned", but so am I teaching kids how to program with 
>> BBC computers from the 1980s;
>> doesn't mean it is a bad thing.
>> 
>> And on Linux . . . what a shambles.
>> 
>> Re MP3s /per se/: either LiveCode should be capable of embedding them, or, 
>> possibly by leveraging open source
>> code, it should be able to read MP3 files and store the musical data 
>> contained within them inwith stacks in some
>> format that can then be played . . .
>> 
>> The compression available via MP3 well outweighs any possible loss in sound 
>> quality - frankly I wonder if anyone over the
>> age of 18 can tell the difference unless the sound file is then played 
>> through some high-end equipment.
>> 
>> When I was 23 I was walking past a HiFi shop in Durham City when I was 
>> seduced to go inside and listen
>> to a demonstration of Quadraphonic sound (does anyone except me actually 
>> remember that?). I was sat down in an
>> office chair between 4 speakers and listened to some music by Queen; then 
>> again on another chair between 2 speakers.
>> A slightly oily fellow with an unctuous voice then said, "Of course you 
>> heard the difference between the stereo
>> and the quad, didn't you?"  Talk about leading tag questions. Feeling like a 
>> "right peasant," I said, "No" and left.
>> 
>> I did actually hear a difference: but not in terms of the musical quality as 
>> such, but in the effect of being "within' the space where the music was 
>> taking place.
>> 
>> I went home and by jacking together 6 loud speakers and a tobacco tin to my 
>> record player I got a Quad effect for nix!
>> 
>> Purists (err; sound experts or plain posers? who knows) would have howled.
>> 
>> Now I listen to any old music "as it comes" and feel lucky that I can hear 
>> it, especially on mornings like this one
>> when my tinnitus is singing a song of its own.
>> 
>> Embed, embed, embed . . . Please.
>> 
>> Best, Richmond.
>> 
>> On 13.04.20 2:01, Richard Gaskin via use-livecode wrote:
>>> Graham Samuel wrote:
>>> 
 Still, subject closed - I presume the mother ship has long ago decided
 not to enhance LC in this respect any time soon.
>>> 
>>> Not at all.  I noticed this thread got off on the tangent of codec 
>>> specifics, but never addressed your core question:
>>> 
>>> LiveCode can play all of those and more.
>>> 
>>> Just not specifically using the old audioClip method.  That method was an 
>>> early attempt to emulate HC's resource-fork-based SND clips, and never got 
>>> past using the .au format which was popular way back in the day on the 
>>> platform MetaCard was born on, Unix.
>>> 
>>> Since then audio and video support assumes richer formats of greater length 
>>> than are practical with embedded media clips.
>>> 
>>> Play them as files and you should be fine.
>>> 
>>> (That is, unless you need to deploy to Linux, where the Player object 
>>> started breaking a few years after the turn of the century and has gotten 
>>> steadily worse since.)
>>> 
>> 
>> ___
>> use-livecode mailing list
>> use-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:
> 

Re: Go to card has become slow

2020-04-13 Thread Trevor DeVore via use-livecode
On Mon, Apr 13, 2020 at 7:48 AM Mark Waddingham via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 2020-04-13 07:06, Trevor DeVore via use-livecode wrote:
> > Will this caching of the DPI setting affect accessing the styledtext
> > property in general on Windows or will it only affect calls to it
> > during
> > saves?
>
> I did a quick test:
>
>- 'the styledText of' is unaffected
>
>- 'the effective styledText if' is about 25% faster
>
> This was using the sample text on card 1 of Neville's test data stack -
> each fetched 1000 times.
>

Thanks for testing. I use `the effective styledText` in a few instances
where it can be called often so it will be nice to get a speed bump on
Windows.

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


Re: LC equivalent of php utf8_encode and utf8_decode ?

2020-04-13 Thread Paul Dupuis via use-livecode

On 4/13/2020 9:07 AM, jbv via use-livecode wrote:

Hello list,
Suddenly I'm having a blank : what is the LC equivalent
of utf8_encode and utf8_decode in php for a string ?

Thanks in advance
jbv

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

http://lists.runrev.com/mailman/listinfo/use-livecode


textEncode and textDecode -- see dictionary for syntax

___
use-livecode mailing list
use-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 equivalent of php utf8_encode and utf8_decode ?

2020-04-13 Thread jbv via use-livecode

Hello list,
Suddenly I'm having a blank : what is the LC equivalent
of utf8_encode and utf8_decode in php for a string ?

Thanks in advance
jbv

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


Re: Go to card has become slow

2020-04-13 Thread Mark Waddingham via use-livecode

On 2020-04-13 07:06, Trevor DeVore via use-livecode wrote:

Will this caching of the DPI setting affect accessing the styledtext
property in general on Windows or will it only affect calls to it 
during

saves?


I did a quick test:

  - 'the styledText of' is unaffected

  - 'the effective styledText if' is about 25% faster

This was using the sample text on card 1 of Neville's test data stack - 
each fetched 1000 times.


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


Problem simulating a location

2020-04-13 Thread Graham Samuel via use-livecode
I’m trying to use the 10.2 XCode simulator to test an iOS app that uses the 
phone’s ability to know its location (usually via GPS). I can run the 
simulation and show that it’s working in a general way. Furthermore, 
mobileSensorAvailable("location”) responds in the simulated app, saying the 
sensor is ‘authorizedWhenInUse’

However the following button handler - adapted from a lesson by Devin Asay 
(very sincere thanks for all that, Devin!) always returns an empty result. I 
have set the location in the simulator to a (genuine) custom location, but if I 
choose one of the built-in locations, I still get the same result.

  On mouseUp
mobileStartTrackingSensor "location” -- enable the sensor first
put "now trying to get a one-off location reading" & return after fld 
“TheReport"
put mobileSensorReading("location",false) into tSensorData -- this returns 
a string with the current latitude, longitude and altitude
mobileStopTrackingSensor “location” -- turn off the sensor when done
if tSensorData is empty then
put "no location info!!" & return after fld "TheReport"
else
put tSensorData & return after fld "TheReport"
   end if
 end mouseUp


Of course it’s me, but what am I doing wrong?

Graham
___
use-livecode mailing list
use-livecode@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 Graham Samuel via use-livecode
Richmond, can’t resist saying that I can remember quad… I was never convinced. 
It was certainly a fashion. Comes into one of my favourite films, ‘Local Hero’, 
where the scallywag fisherman from Murmansk connects with the 
wet-behind-the-ears young oil man from Houston.  it was just a little moment in 
history when such a bit of dialogue might have existed… but I digress.

I have tinnitus, and hearing aids, but I can still enjoy a live, non-amplified 
performance, and there is no equipment I could afford that could make a 
recording in any format sound as good.

OT, I know.

Graham

> On 13 Apr 2020, at 09:42, Richmond via use-livecode 
>  wrote:
> 
> Having the ability to import resources into a stack, whether they be images, 
> videos or sounds is a great strength;
> and much better than having a ReadMe document accompanying one's standalones 
> telling people where they have to
> bung a slew of referenced resources . . . knowing that about 50% of people 
> will put them in the wrong place and then
> complain they want their money back because your application doesn't work.
> 
> This may be "old-fashioned", but so am I teaching kids how to program with 
> BBC computers from the 1980s;
> doesn't mean it is a bad thing.
> 
> And on Linux . . . what a shambles.
> 
> Re MP3s /per se/: either LiveCode should be capable of embedding them, or, 
> possibly by leveraging open source
> code, it should be able to read MP3 files and store the musical data 
> contained within them inwith stacks in some
> format that can then be played . . .
> 
> The compression available via MP3 well outweighs any possible loss in sound 
> quality - frankly I wonder if anyone over the
> age of 18 can tell the difference unless the sound file is then played 
> through some high-end equipment.
> 
> When I was 23 I was walking past a HiFi shop in Durham City when I was 
> seduced to go inside and listen
> to a demonstration of Quadraphonic sound (does anyone except me actually 
> remember that?). I was sat down in an
> office chair between 4 speakers and listened to some music by Queen; then 
> again on another chair between 2 speakers.
> A slightly oily fellow with an unctuous voice then said, "Of course you heard 
> the difference between the stereo
> and the quad, didn't you?"  Talk about leading tag questions. Feeling like a 
> "right peasant," I said, "No" and left.
> 
> I did actually hear a difference: but not in terms of the musical quality as 
> such, but in the effect of being "within' the space where the music was 
> taking place.
> 
> I went home and by jacking together 6 loud speakers and a tobacco tin to my 
> record player I got a Quad effect for nix!
> 
> Purists (err; sound experts or plain posers? who knows) would have howled.
> 
> Now I listen to any old music "as it comes" and feel lucky that I can hear 
> it, especially on mornings like this one
> when my tinnitus is singing a song of its own.
> 
> Embed, embed, embed . . . Please.
> 
> Best, Richmond.
> 
> On 13.04.20 2:01, Richard Gaskin via use-livecode wrote:
>> Graham Samuel wrote:
>> 
>> > Still, subject closed - I presume the mother ship has long ago decided
>> > not to enhance LC in this respect any time soon.
>> 
>> Not at all.  I noticed this thread got off on the tangent of codec 
>> specifics, but never addressed your core question:
>> 
>> LiveCode can play all of those and more.
>> 
>> Just not specifically using the old audioClip method.  That method was an 
>> early attempt to emulate HC's resource-fork-based SND clips, and never got 
>> past using the .au format which was popular way back in the day on the 
>> platform MetaCard was born on, Unix.
>> 
>> Since then audio and video support assumes richer formats of greater length 
>> than are practical with embedded media clips.
>> 
>> Play them as files and you should be fine.
>> 
>> (That is, unless you need to deploy to Linux, where the Player object 
>> started breaking a few years after the turn of the century and has gotten 
>> steadily worse since.)
>> 
> 
> ___
> use-livecode mailing list
> use-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: MP3s

2020-04-13 Thread Graham Samuel via use-livecode
Well, Richard, as usual you say something informative and useful!

I didn’t know that LC could play a sound file in MP3 format. I am in the odd 
position of being a veteran of LC (and to some extent even Hypercard and 
Supercard) and I have developed published apps; but despite my regular reading 
of this list, my skills have got rusty and now I am trying to apply, at 
double-quick time, the oil can of advice from this list and elsewhere so as to 
develop a mobile app…

So I didn’t look in all corners for the answer. Instinctively I thought that an 
audioclip was the way to go, because I saw it as a small chunk of data best 
embedded in my app. In my mind, the format of an external file trades 
flexibility (the user or the app can switch content easily) against a massive 
overhead of storage and software mechanics and potential delays due to loading 
etc, whereas the audioclip is small, clean, and can be started and stopped with 
no overheads. This is doubtless old-fashioned - I don’t carry the moniker of 
Living Fossil for nothing - and I need to revise this thinking, which you are 
helping me to do. Still, I can’t quite let go of the idea of the embedded 
squawk.

Graham

> On 13 Apr 2020, at 01:01, Richard Gaskin via use-livecode 
>  wrote:
> 
> Graham Samuel wrote:
> 
>> Still, subject closed - I presume the mother ship has long ago decided
>> not to enhance LC in this respect any time soon.
> 
> Not at all.  I noticed this thread got off on the tangent of codec specifics, 
> but never addressed your core question:
> 
> LiveCode can play all of those and more.
> 
> Just not specifically using the old audioClip method.  That method was an 
> early attempt to emulate HC's resource-fork-based SND clips, and never got 
> past using the .au format which was popular way back in the day on the 
> platform MetaCard was born on, Unix.
> 
> Since then audio and video support assumes richer formats of greater length 
> than are practical with embedded media clips.
> 
> Play them as files and you should be fine.
> 
> (That is, unless you need to deploy to Linux, where the Player object started 
> breaking a few years after the turn of the century and has gotten steadily 
> worse since.)
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.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: MP3s

2020-04-13 Thread Richmond via use-livecode
Having the ability to import resources into a stack, whether they be 
images, videos or sounds is a great strength;
and much better than having a ReadMe document accompanying one's 
standalones telling people where they have to
bung a slew of referenced resources . . . knowing that about 50% of 
people will put them in the wrong place and then

complain they want their money back because your application doesn't work.

This may be "old-fashioned", but so am I teaching kids how to program 
with BBC computers from the 1980s;

doesn't mean it is a bad thing.

And on Linux . . . what a shambles.

Re MP3s /per se/: either LiveCode should be capable of embedding them, 
or, possibly by leveraging open source
code, it should be able to read MP3 files and store the musical data 
contained within them inwith stacks in some

format that can then be played . . .

The compression available via MP3 well outweighs any possible loss in 
sound quality - frankly I wonder if anyone over the
age of 18 can tell the difference unless the sound file is then played 
through some high-end equipment.


When I was 23 I was walking past a HiFi shop in Durham City when I was 
seduced to go inside and listen
to a demonstration of Quadraphonic sound (does anyone except me actually 
remember that?). I was sat down in an
office chair between 4 speakers and listened to some music by Queen; 
then again on another chair between 2 speakers.
A slightly oily fellow with an unctuous voice then said, "Of course you 
heard the difference between the stereo
and the quad, didn't you?"  Talk about leading tag questions. Feeling 
like a "right peasant," I said, "No" and left.


I did actually hear a difference: but not in terms of the musical 
quality as such, but in the effect of being "within' the space where the 
music was taking place.


I went home and by jacking together 6 loud speakers and a tobacco tin to 
my record player I got a Quad effect for nix!


Purists (err; sound experts or plain posers? who knows) would have howled.

Now I listen to any old music "as it comes" and feel lucky that I can 
hear it, especially on mornings like this one

when my tinnitus is singing a song of its own.

Embed, embed, embed . . . Please.

Best, Richmond.

On 13.04.20 2:01, Richard Gaskin via use-livecode wrote:

Graham Samuel wrote:

> Still, subject closed - I presume the mother ship has long ago decided
> not to enhance LC in this respect any time soon.

Not at all.  I noticed this thread got off on the tangent of codec 
specifics, but never addressed your core question:


LiveCode can play all of those and more.

Just not specifically using the old audioClip method.  That method was 
an early attempt to emulate HC's resource-fork-based SND clips, and 
never got past using the .au format which was popular way back in the 
day on the platform MetaCard was born on, Unix.


Since then audio and video support assumes richer formats of greater 
length than are practical with embedded media clips.


Play them as files and you should be fine.

(That is, unless you need to deploy to Linux, where the Player object 
started breaking a few years after the turn of the century and has 
gotten steadily worse since.)




___
use-livecode mailing list
use-livecode@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 useless seems to be Junk

2020-04-13 Thread Richmond via use-livecode

That's a good idea, thank you.

Richmond.

On 13.04.20 2:33, J. Landman Gay via use-livecode wrote:

On 4/12/20 1:11 PM, Richmond via use-livecode wrote:
This is a real pain-in-the-bum, but Thunderbird has recently started 
marking posts from

the Use-list as junk.

I wonder if anyone knows whay, and whether there is something that 
can be done: either at my end, or server-side?


I use Thunderbird and don't see the problem. I have a filter that 
moves list mail to another folder, you could try that.





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


Re: Go to card has become slow

2020-04-13 Thread Trevor DeVore via use-livecode
On Mon, Apr 13, 2020 at 12:58 AM Mark Waddingham via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 2020-04-13 02:23, Neville Smythe via use-livecode wrote:
> > But no, it shaved only 1 second off a 7 second save for styled text
> > (elderly MacPro running Windows 10 VM) So your engine modifications
> > must be having a much wider effect, not just on reducing the 3 API
> > calls for styled as opposed to plain text ??
>
> Each paragraph has at least one style run - even if no styles are
> applied so this is a general thing.
>
> Most of the text in your generated test (data) stack was unstyled anyway
> (as it uses 'the text of' to replicate the data) so minimizing those API
> calls should affect all stacks with a reasonable amount of field data in
> them.


Hi Mark,

Will this caching of the DPI setting affect accessing the styledtext
property in general on Windows or will it only affect calls to it during
saves?

-- 
Trevor DeVore
ScreenSteps

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