Re: LC9.6 Android EXIF image data issue

2020-05-14 Thread Mark Waddingham via use-livecode

On 2020-05-13 23:54, Alan Stenhouse via use-livecode wrote:

Hi Monte

Thanks for the info, though that is bad news. It had previously come
through on iOS ok - when picking a photo from the library, and also on
Android AFAIK.

Do we have any way of getting EXIF data from an image picked from an
image library using MobilePickPhoto?

Thanks again for the info!


iOS definitely strips EXIF data in some cases - perhaps it is just from 
photos taken with the camera or maybe it varies slightly with OS 
version.


The Android case you are observing is probably because the EXIF data is 
being stripped also.


Assuming you don't use a width/height argument on mobilePickPhoto then 
we just return the data which we are given with no processing at all - 
so you are getting what the OS wants you to get.


It might be that Samsung's camera app is a little more security 
conscious than other Android variants :(


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: Small and strange problem

2020-05-14 Thread Graham Samuel via use-livecode
Hi Paul

Sorry for the delay in replying but my house has just been inundated (it 
happened on Monday and we are still clearing up! Worst flood in more than 40 
years in my French village). Anyway, the bug is registered as 22730. The 
problem is acknowledged - as I said in my submission, I’m not claiming my 
coding is correct, I’m just trying to show that the IDE doesn’t behave 
consistently in this instance.

Graham

> On 11 May 2020, at 23:18, Paul Hibbert via use-livecode 
>  wrote:
> 
> Good point Ben, looks like that was my mistake. I don’t remember where I 
> learned to use "if tError then”, but what I forgot was that it should have 
> been testing for a false condition, so “if not tError then” does show the 
> error when one occurs and skips when no error occurs.
> 
> Fixing this returns the following error when tMins contains a non numeric 
> character;
> An Error Occurred; 375,5,1
> 239,5,1
> 465,5,1
> tMins = 31′
> 
> These are the corresponding LC Error Codes;
> 375   Operators /: error in left operand
> 239   Operators (): error in right operand
> 465   put: error in expression
> 
> So it seems the value passed to tMins may contain invalid character(s) as 
> Graham suspects. However, this doesn’t explain why the original script should 
> behave differently using the debugger and not.
> 
> @Graham, can you post the Bug Report Number please?
> 
> Paul
> 
> 
>> On May 11, 2020, at 09:11, Ben Rubinstein via use-livecode 
>>  wrote:
>> 
>> And re this part:
>> 
 Interestingly this
 
 on mouseUp pMouseButton
  try
put (tMins/60) into tMins
  catch tError
if tError then answer "An Error Occurred;"  && tError & return & "tMins 
 =" && tMins
  end try
 end mouseUp
 
 does NOT through an error or a catch error message
>> 
>> You're not seeing that there was an error thrown because 'tError' would be 
>> set to the error message; the code above is testing for it being true, 
>> before deciding to display the message. But it won't be true it, it will be 
>> an expression of the error. If you removed "if tError then", so always 
>> execute the answer statement in the catch section, you should see the error 
>> message.
>> 
>> HTH,
>> 
>> Ben
>> 
>> 
>> On 11/05/2020 15:31, Rick Harrison via use-livecode wrote:
>>> Hi Andy,
>>> Yes, tMins has to have a value or the statement makes no sense because LC 
>>> has no
>>> context for what you are trying to do.  LC doesn’t know if tMins is a 
>>> string or something else.
>>> Rick
 On May 11, 2020, at 4:24 AM, AndyP via use-livecode 
  wrote:
 
 I seem to have my posts dropped at the moment hence this,
 
 I'm seeing the same error
 
 with
 
 on mouseUp pMouseButton
 put (tMins/60) into tMins
 answer tMins
 end mouseUp
 
 button "Button": execution error at line 2 (Operators /: error in left 
 operand), char 1
 
 Interestingly this
 
 on mouseUp pMouseButton
 try
   put (tMins/60) into tMins
 catch tError
   if tError then answer "An Error Occurred;"  && tError & return & "tMins 
 =" && tMins
 end try
 end mouseUp
 
 does NOT through an error or a catch error message
 
 
 If however tMins is initialized then all works as expected
 
 on mouseUp pMouseButton
 put 20 into tMins
 put (tMins/60) into tMins
 answer tMins
 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
> 
> 
> ___
> use-livecode mailing list
> use-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: Small and strange problem

2020-05-14 Thread Paul Hibbert via use-livecode
Hi Graham,

Thank you for the update. Sorry to hear about the flood, I know from personal 
experience what that’s like so I really wish you and your family well, and that 
you can get your home and life back in to normal very soon..

Paul

> On May 14, 2020, at 03:17, Graham Samuel via use-livecode 
>  wrote:
> 
> Hi Paul
> 
> Sorry for the delay in replying but my house has just been inundated (it 
> happened on Monday and we are still clearing up! Worst flood in more than 40 
> years in my French village). Anyway, the bug is registered as 22730. The 
> problem is acknowledged - as I said in my submission, I’m not claiming my 
> coding is correct, I’m just trying to show that the IDE doesn’t behave 
> consistently in this instance.
> 
> Graham
> 
>> On 11 May 2020, at 23:18, Paul Hibbert via use-livecode 
>>  wrote:
>> 
>> Good point Ben, looks like that was my mistake. I don’t remember where I 
>> learned to use "if tError then”, but what I forgot was that it should have 
>> been testing for a false condition, so “if not tError then” does show the 
>> error when one occurs and skips when no error occurs.
>> 
>> Fixing this returns the following error when tMins contains a non numeric 
>> character;
>> An Error Occurred; 375,5,1
>> 239,5,1
>> 465,5,1
>> tMins = 31′
>> 
>> These are the corresponding LC Error Codes;
>> 375  Operators /: error in left operand
>> 239  Operators (): error in right operand
>> 465  put: error in expression
>> 
>> So it seems the value passed to tMins may contain invalid character(s) as 
>> Graham suspects. However, this doesn’t explain why the original script 
>> should behave differently using the debugger and not.
>> 
>> @Graham, can you post the Bug Report Number please?
>> 
>> Paul
>> 
>> 
>>> On May 11, 2020, at 09:11, Ben Rubinstein via use-livecode 
>>>  wrote:
>>> 
>>> And re this part:
>>> 
> Interestingly this
> 
> on mouseUp pMouseButton
> try
>   put (tMins/60) into tMins
> catch tError
>   if tError then answer "An Error Occurred;"  && tError & return & "tMins 
> =" && tMins
> end try
> end mouseUp
> 
> does NOT through an error or a catch error message
>>> 
>>> You're not seeing that there was an error thrown because 'tError' would be 
>>> set to the error message; the code above is testing for it being true, 
>>> before deciding to display the message. But it won't be true it, it will be 
>>> an expression of the error. If you removed "if tError then", so always 
>>> execute the answer statement in the catch section, you should see the error 
>>> message.
>>> 
>>> HTH,
>>> 
>>> Ben
>>> 
>>> 
>>> On 11/05/2020 15:31, Rick Harrison via use-livecode wrote:
 Hi Andy,
 Yes, tMins has to have a value or the statement makes no sense because LC 
 has no
 context for what you are trying to do.  LC doesn’t know if tMins is a 
 string or something else.
 Rick
> On May 11, 2020, at 4:24 AM, AndyP via use-livecode 
>  wrote:
> 
> I seem to have my posts dropped at the moment hence this,
> 
> I'm seeing the same error
> 
> with
> 
> on mouseUp pMouseButton
> put (tMins/60) into tMins
> answer tMins
> end mouseUp
> 
> button "Button": execution error at line 2 (Operators /: error in left 
> operand), char 1
> 
> Interestingly this
> 
> on mouseUp pMouseButton
> try
>  put (tMins/60) into tMins
> catch tError
>  if tError then answer "An Error Occurred;"  && tError & return & "tMins 
> =" && tMins
> end try
> end mouseUp
> 
> does NOT through an error or a catch error message
> 
> 
> If however tMins is initialized then all works as expected
> 
> on mouseUp pMouseButton
> put 20 into tMins
> put (tMins/60) into tMins
> answer tMins
> 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
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-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


Externals Question from Stack Overflow

2020-05-14 Thread Devin Asay via use-livecode
Hi all,

I came across a question on Stack Overflow from a sight-impaired user who is 
trying to figure out how to write and test a LiveCode external. I am pretty 
ignorant about externals in general, so I don’t think I can help in this case. 
But if anyone here feels inclined, I think it would help this user, and boost 
the number of responses to LC questions on Stack Overflow.

Regards,

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young University

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


Externals Question from Stack Overflow

2020-05-14 Thread Devin Asay via use-livecode
Once more, this time with the link.


Hi all,

I came across a question on Stack Overflow from a sight-impaired user who is 
trying to figure out how to write and test a LiveCode external. I am pretty 
ignorant about externals in general, so I don’t think I can help in this case. 
But if anyone here feels inclined, I think it would help this user, and boost 
the number of responses to LC questions on Stack Overflow.

https://stackoverflow.com/questions/61782950/testing-livecode-external-in-python

Regards,

Devin


Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
use-livecode mailing list
use-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-05-14 Thread Mark Wieder via use-livecode

Updated news: Germany steps up to the plate

https://www.bbc.com/news/technology-52650576
https://github.com/corona-warn-app/cwa-documentation

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


Again not quite OT - freeware licence agreement?

2020-05-14 Thread Graham Samuel via use-livecode
I’ve built an iPhone app with LC which I intend to distribute without charge. 
Obviously I have to ban the user from reverse engineering, on-selling at a 
profit etc. This must be quite a common requirement, but my attempts to search 
for such a licence have proved rather confusing.

Has anyone got any recommendations? As usual, I’m having to provide this before 
Apple will even look at my app.

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: Again not quite OT - freeware licence agreement?

2020-05-14 Thread Randy Hengst via use-livecode
Hi Graham,

All of my iOS apps are free… all iOS apps on the Apple App Store fall under at 
least the default end user agreement… found here:
https://www.apple.com/legal/internet-services/itunes/dev/stdeula/ 


I listed this link on my website within the privacy statement.

be well,
randy
www.classroomFocusedSoftware.com


> On May 14, 2020, at 12:47 PM, Graham Samuel via use-livecode 
>  wrote:
> 
> I’ve built an iPhone app with LC which I intend to distribute without charge. 
> Obviously I have to ban the user from reverse engineering, on-selling at a 
> profit etc. This must be quite a common requirement, but my attempts to 
> search for such a licence have proved rather confusing.
> 
> Has anyone got any recommendations? As usual, I’m having to provide this 
> before Apple will even look at my app.
> 
> 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: Again not quite OT - freeware licence agreement?

2020-05-14 Thread Graham Samuel via use-livecode
Thanks Randy, that’s really helpful. I am tempted to say I have now spent more 
time trying to get my Apple submission in shape than I did designing and coding 
my app in the first place - not really true when I consider the debugging 
problems I’ve had, but it was still a significant chunk. I guess it will be 
easier next time.

Graham

> On 14 May 2020, at 19:59, Randy Hengst via use-livecode 
>  wrote:
> 
> Hi Graham,
> 
> All of my iOS apps are free… all iOS apps on the Apple App Store fall under 
> at least the default end user agreement… found here:
> https://www.apple.com/legal/internet-services/itunes/dev/stdeula/ 
> 
> 
> I listed this link on my website within the privacy statement.
> 
> be well,
> randy
> www.classroomFocusedSoftware.com
> 
> 
>> On May 14, 2020, at 12:47 PM, Graham Samuel via use-livecode 
>>  wrote:
>> 
>> I’ve built an iPhone app with LC which I intend to distribute without 
>> charge. Obviously I have to ban the user from reverse engineering, 
>> on-selling at a profit etc. This must be quite a common requirement, but my 
>> attempts to search for such a licence have proved rather confusing.
>> 
>> Has anyone got any recommendations? As usual, I’m having to provide this 
>> before Apple will even look at my app.
>> 
>> 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


___
use-livecode mailing list
use-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: Externals Question from Stack Overflow

2020-05-14 Thread JB via use-livecode
Part of the question was;

Can someone tell me how to obtain the pointer to g_external_name and 
g_external_table? How LiveCode knows it when it loads a DLL with my external? 
Is it possible to obtain the mentioned variables dinamically after DLL loads?


I do not think you can get any pointers in LiveCode and even if you did get a 
pointer
you could only use the address from within the program that obtained the 
pointer.  To
access pointers each external or program will use its own memory mapping so the
pointer itself is only good for the program providing the pointer info.  If you 
can access
the g_external in LiveCode then you can pass that info to your external using 
command
line arguments.

JB


> On May 14, 2020, at 8:29 AM, Devin Asay via use-livecode 
>  wrote:
> 
> Once more, this time with the link.
> 
> 
> Hi all,
> 
> I came across a question on Stack Overflow from a sight-impaired user who is 
> trying to figure out how to write and test a LiveCode external. I am pretty 
> ignorant about externals in general, so I don’t think I can help in this 
> case. But if anyone here feels inclined, I think it would help this user, and 
> boost the number of responses to LC questions on Stack Overflow.
> 
> https://stackoverflow.com/questions/61782950/testing-livecode-external-in-python
> 
> Regards,
> 
> Devin
> 
> 
> Devin Asay
> Director
> Office of Digital Humanities
> Brigham Young University
> 
> ___
> use-livecode mailing list
> use-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: LC9.6 Android EXIF image data issue

2020-05-14 Thread Alan Stenhouse via use-livecode
Thanks Mark and Monte for the info.

Had already stopped using the width/height specs and for photos from the 
library we had been getting EXIF info and still do in many cases (I think - 
more testing needed!), but as we can't do anything about what the OS gives us, 
I'll just slightly change the message for the user to inform them.

Thanks again, cheers

Alan

> On14 May 2020 09:16:20, Mark Waddingham  wrote:
> 
> iOS definitely strips EXIF data in some cases - perhaps it is just from 
> photos taken with the camera or maybe it varies slightly with OS 
> version.
> 
> The Android case you are observing is probably because the EXIF data is 
> being stripped also.
> 
> Assuming you don't use a width/height argument on mobilePickPhoto then 
> we just return the data which we are given with no processing at all - 
> so you are getting what the OS wants you to get.
> 
> It might be that Samsung's camera app is a little more security 
> conscious than other Android variants :(
> 
> Warmest Regards,
> 
> Mark.

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


Atom Editor Help

2020-05-14 Thread Peter Reid via use-livecode
Hi, I’ve noticed that several of the LiveCode staff use the Atom text editor. 
Until now I’ve used BBEdit on the Mac and Notepad++ on the PC. I’m thinking of 
switching to Atom but need to be sure it can everything I need. For example, I 
have a typical piece of pre-process manipulation of text data that involves 
using several regular expressions. I’ve tried to find a macro in Atom that 
applies a series of find & replacement actions but have failed to find a 
solution. Can anyone provide a template macro for this?

Thanks 

Peter

___
use-livecode mailing list
use-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: Atom Editor Help

2020-05-14 Thread "d...@porta.ca" via use-livecode
  
Before you give up on BBedit, try to get in touch with Thierry on the forums. 
He is a master of Regex and has a system of macros to make it work tightly with 
BBedit to replace the IDE.
  
 
http://forums.livecode.com/viewtopic.php?f=7&t=33891&p=190832&hilit=bbedit#p190832
  
  
On May 14 2020, at 11:28 pm, Peter Reid via use-livecode  
  wrote:
  
>   
>   
> Hi, I’ve noticed that several of the LiveCode staff use the Atom text editor. 
> Until now I’ve used BBEdit on the Mac and Notepad++ on the PC. I’m thinking 
> of switching to Atom but need to be sure it can everything I need. For 
> example, I have a typical piece of pre-process manipulation of text data that 
> involves using several regular expressions. I’ve tried to find a macro in 
> Atom that applies a series of find  &  replacement actions but have failed to 
> find a solution. Can anyone provide a template macro for this?
>   
>   
> Thanks
>   
>   
> Peter
>   
>   
> ___
>   
> use-livecode mailing list
>   
> use-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