RE: Local files in browser widget

2019-07-14 Thread Ralph DiMola via use-livecode
Are you using 9.5? If not maybe a 64 bit build might work???

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 J. Landman Gay via use-livecode
Sent: Sunday, July 14, 2019 4:27 PM
To: How to use LiveCode
Cc: J. Landman Gay
Subject: Re: Local files in browser widget

I'm making progress but still having trouble with the browser widget on
Android. To date:

1. Chopped up the huge file into multiple smaller files. They have all been
tagged so that links automatically load the correct file when clicked. This
works.

2. The app now copies all the files in its resources folder to the documents
folder. This works.

3. When loading the first file of the set, it works perfectly. When tapping
a link that loads another file in the set, things happen sometimes.

On my Huawei tablet, everything works great. But on my Pixel, after
scrolling two or three screens, everything freezes. Not only does the
browser refuse to scroll (even backwards, where it's already been,) but HTML
links don't respond, and buttons and other controls are inert. The backKey
is also frozen, so the only option is to exit via the Home hardware button
and remove the app from RAM. This is 100% reproducible.

My Pixel is running Android 9 Pie and the Huawei has Android 8 Oreo. The
Huawei also has newer hardware than the Pixel. Is the browser widget
compatible with Android 9? Or is it a hardware problem?

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


Re: Best Temp Pass Autoresponder?

2019-07-14 Thread Stephen Barncard via use-livecode
Yes!

On Sun, Jul 14, 2019 at 17:08 Mark Wieder via use-livecode <
use-livecode@lists.runrev.com> wrote:

> On 7/14/19 3:24 PM, Alex Tweedly via use-livecode wrote:
>
> > In case it helps, here's the code I use to send email from my LC server
> > account. I should know where this came from (and I suspect I should be
> > able to thank the original author), but that's lost info right now.
>
> wrapQ()? shellEscape()?
> Are these just the way they sound?
> wrapQ(x) = quote & x & quote
> shellEscape(x) = escape what needs escaping in x
>
>
> --
>   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
>
-- 
--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org
___
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: Best Temp Pass Autoresponder?

2019-07-14 Thread Mark Wieder via use-livecode

On 7/14/19 3:24 PM, Alex Tweedly via use-livecode wrote:

In case it helps, here's the code I use to send email from my LC server 
account. I should know where this came from (and I suspect I should be 
able to thank the original author), but that's lost info right now.


wrapQ()? shellEscape()?
Are these just the way they sound?
wrapQ(x) = quote & x & quote
shellEscape(x) = escape what needs escaping in x


--
 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: Best Temp Pass Autoresponder?

2019-07-14 Thread Alex Tweedly via use-livecode

On 14/07/2019 18:20, Rick Harrison via use-livecode wrote:


The main snag I’m working on now is setting up
the server to send out the email to the user.

This morning I’m looking at the shell commands
and at tsNet SMTP possible solutions.


In case it helps, here's the code I use to send email from my LC server 
account. I should know where this came from (and I suspect I should be 
able to thank the original author), but that's lost info right now.


-- Alex.

-- mail
--
-- Emails the given message to the recipients specified.
-- Each address passed can have a name  attached in the form "name 
".

-- Addresses can be passed as comma separated lists.
-- Attachements can be added by passing an array (integer indexed or 
otherwise).

-- with each attachment itself being an array.
--
-- pTo    - The addresses to send the message to
-- pSub    - The message subject
-- pMsg    - The message body
-- pFrom    - The address of the message sender
-- pCc    - Any cc addresses
-- pBcc    - Any Bcc addresses
-- pHtml    - Boolean, if the message is to be sent as html
-- pAtts    - Array of all attachments to send, each attachment of the form:
--    * name:  the name of the attachment
--    * path:  the absolute path to the attachment
--    * type:  the mime type of the attachment, defaults to
--    application/octet-stream
--

command mail pTo, pSub, pMsg, pFrom, pCc, pBcc, pHtml, pAtts
   local tMsg

   -- build the message header, adding the from, to and subject details
   -- we also put any cc addresses in here, but not bcc (bcc addresses 
hidden)
   put "From:" && pFrom & return & "To:" && pTo & return & "Subject:" 
&& pSub & \

 return into tMsg    if pCc is not empty then
  put "Cc:" && pCc & return after tMsg
   end if

   -- if there are any attachments, we must send this email as multipart
   -- with the message body and each attachment forming a part
   -- we do this by specifying the message as multipart and generating 
a unique boundary

   if pAtts is an array then
  local tBoundary
  put "boundary" & the seconds into tBoundary
  put "MIME-Version: 1.0" & return & "Content-Type: 
multipart/mixed; boundary=" & \
    wrapQ(tBoundary) & return & "--" & tBoundary & return after 
tMsg

   end if

   -- add the actual message body, setting the content type appropriately
   if pHtml is true then
  put "Content-Type: text/html;" & return & return after tMsg
   else
  put "Content-Type: text/plain;" & return & return after tMsg
   end if
   put pMsg & return after tMsg

   -- add each attachment as a new part of the message, separating using
   -- the generated boundary
   if pAtts is an array then
  put "--" & tBoundary & return after tMsg
  repeat for each element tAtt in pAtts
 if there is a file tAtt["path"] then
    if tAtt["type"] is empty then
   get "application/octet-stream"
    else
   get tAtt["type"]
    end if
    put "Content-Type:" && it & "; name=" & wrapQ(tAtt["name"]) 
& ";" & \
  return & "Content-Transfer-Encoding: base64;" & 
return & return & \
  base64Encode(URL ("binfile:" & tAtt["path"])) & 
return & "--" & \

  tBoundary & return after tMsg
 end if
  end repeat
   end if

   -- send the mail by piping the message we have just built to the 
sendmail command

   -- we must also send a copy of the message to the bcc addresses
   get shell("echo" && wrapQ(shellEscape(tMsg)) && "| 
/usr/sbin/sendmail" && \

 wrapQ(shellEscape(pTo)) && "-f" && wrapQ(shellEscape(pFrom)))
   if pBcc is not empty then
  get shell("echo" && wrapQ(shellEscape(tMsg)) && "| 
/usr/sbin/sendmail" && \

    wrapQ(shellEscape(pBcc)) && "-f" && wrapQ(shellEscape(pFrom)))
   end if
   if there is a file "log_mail.txt" then
  put "MAIL sent" && the seconds & CR & \
    "TO:" && pTo & CR & \
    "SUBJ:" && pSub & CR  after URL ("file:./log_mail.txt")
   end if
end mail


___
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: Local files in browser widget

2019-07-14 Thread J. Landman Gay via use-livecode
I'm making progress but still having trouble with the browser widget on 
Android. To date:


1. Chopped up the huge file into multiple smaller files. They have all 
been tagged so that links automatically load the correct file when 
clicked. This works.


2. The app now copies all the files in its resources folder to the 
documents folder. This works.


3. When loading the first file of the set, it works perfectly. When 
tapping a link that loads another file in the set, things happen sometimes.


On my Huawei tablet, everything works great. But on my Pixel, after 
scrolling two or three screens, everything freezes. Not only does the 
browser refuse to scroll (even backwards, where it's already been,) but 
HTML links don't respond, and buttons and other controls are inert. The 
backKey is also frozen, so the only option is to exit via the Home 
hardware button and remove the app from RAM. This is 100% reproducible.


My Pixel is running Android 9 Pie and the Huawei has Android 8 Oreo. The 
Huawei also has newer hardware than the Pixel. Is the browser widget 
compatible with Android 9? Or is it a hardware problem?


--
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: Catalina is a small, rocky, and largely unprepossessing island.

2019-07-14 Thread francois.chaplais via use-livecode
I suggest trying Go64 
https://www.stclairsoft.com/Go64/
which tests your apps for 64 compatibility. My business LC seems OK, I have two 
versions of indie for HTML and go64 indicates that the app is 64bits except for 
the update module.
Now I do not know what Catalina will do with this. Nonetheless, I think it 
should be no hassle for LiveCode to recompile their update module.
Best regards
François

> Le 14 juil. 2019 à 21:02, Dar Scott Consulting via use-livecode 
>  a écrit :
> 
> I wonder if there is a way to get rid of it. What would happen should it be 
> ripped out of the bundle? Would LC die of heartbreak?
> 
> This should be fixed in LC 9.0.6 RC1, but as Mabel told Frederick "It seems 
> so long."
> 
>> On Jul 14, 2019, at 9:47 AM, Matthias Rebbe via use-livecode 
>>  wrote:
>> 
>> Richmond,
>> 
>> is it possible that you´ve enabled one or all options in LC´s 
>> preferences->updates?
>> 
>> If i remember correctly then Panos mentioned in a post that this might come 
>> from updater tool.
>> 
>> Regards,
>> 
>> Matthias
>> Matthias Rebbe
>> 
>> free tools for Livecoders:
>> https://instamaker.dermattes.de 
>> https://winsignhelper.dermattes.de 
>> 
>>> Am 14.07.2019 um 15:55 schrieb Richmond via use-livecode 
>>> mailto:use-livecode@lists.runrev.com>>:
>>> 
>>> So it would seem.
>>> 
>>> One of the main factors that is stopping me switching my 2018 MacMini over 
>>> to MacOS 10.15
>>> are the continuing messages I am getting about LC 9.0.4 and 9.5 DP1 not 
>>> being optimised for
>>> MacOS 10.14 . . .
>>> 
>>> Richmond.
>>> 
>>> ___
>>> 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

Re: Catalina is a small, rocky, and largely unprepossessing island.

2019-07-14 Thread Dar Scott Consulting via use-livecode
I wonder if there is a way to get rid of it. What would happen should it be 
ripped out of the bundle? Would LC die of heartbreak?

This should be fixed in LC 9.0.6 RC1, but as Mabel told Frederick "It seems so 
long."

> On Jul 14, 2019, at 9:47 AM, Matthias Rebbe via use-livecode 
>  wrote:
> 
> Richmond,
> 
> is it possible that you´ve enabled one or all options in LC´s 
> preferences->updates?
> 
> If i remember correctly then Panos mentioned in a post that this might come 
> from updater tool.
> 
> Regards,
> 
> Matthias
> Matthias Rebbe
> 
> free tools for Livecoders:
> https://instamaker.dermattes.de 
> https://winsignhelper.dermattes.de 
> 
>> Am 14.07.2019 um 15:55 schrieb Richmond via use-livecode 
>> mailto:use-livecode@lists.runrev.com>>:
>> 
>> So it would seem.
>> 
>> One of the main factors that is stopping me switching my 2018 MacMini over 
>> to MacOS 10.15
>> are the continuing messages I am getting about LC 9.0.4 and 9.5 DP1 not 
>> being optimised for
>> MacOS 10.14 . . .
>> 
>> Richmond.
>> 
>> ___
>> 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: Best Temp Pass Autoresponder?

2019-07-14 Thread Rick Harrison via use-livecode
Hi Alex,

Thanks for getting back to me.

Your suggestion of no password is interesting,
but in my particular case it isn’t the right solution
for me.

In the meantime, I took a step back from the work
that gave me an alternate insight as to how it
needs to work.

The main snag I’m working on now is setting up
the server to send out the email to the user.

This morning I’m looking at the shell commands
and at tsNet SMTP possible solutions.

Thanks,

Rick

> On Jul 13, 2019, at 3:27 PM, Alex Tweedly via use-livecode 
>  wrote:
> 
> It's kind of hard to answer that without knowing how your passwords are set 
> up and managed already, or what/how you need to use or check them.
> 
> So I won't answer directly, but offer a sideways suggestion 
> 
> Don't have passwords.
> 
> Nearly all sites that have passwords offer some kind of recovery mechanism - 
> which almost always uses a (verified and registered) email address to send a 
> recovery link. So just skip the step of having passwords at all  - and have a 
> mechanism that users can type in their email address, and be sent a 
> short-lived, one-time use link to their email address.
> 
> When requested you generate a token, store that in your database (or 
> whatever), and then send an email that might look something like ...
> 
>> To login to kilmelford.com, please click on the link below.
>> http://kilmelford.com/lcms.lc9/login_request/email/2019-07-13_15:17:47_df2471f6a4b8...de964b3ec
>> 
>> If you did not ask for a login code/link to be sent to you,
>> please let us know by forwarding this email toi...@kilmelford.com
> (obviously that's not the correct full code :-), and when you get a request 
> like that, you compare the token with your database (and check whether it has 
> expired or not), and if OK then you log the user in and remove the entry for 
> this token.
> 
> When I "log the user in" I send them a cookie that verifies their status, and 
> which expires in a limited time (say one day, or one week), and after that 
> they just request a new emailed token/link.
> 
> Alex.
> 
> On 13/07/2019 18:03, Rick Harrison via use-livecode wrote:
>> I need to set up a temporary password
>> email autoresponder for my website
>> using LC if at all possible.  This would
>> obviously be for people who have
>> forgotten their password and need
>> a temporary one.
>> 
>> I realized I’m probably not the only
>> one here who has run into this problem,
>> and I don’t want to reinvent the wheel.
>> 
>> What is the best approach and does
>> anyone have a solution that is working
>> well for them?
>> 
>> Thanks,
>> 
>> Rick
>> ___
>> 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: Catalina is a small, rocky, and largely unprepossessing island.

2019-07-14 Thread Matthias Rebbe via use-livecode
Richmond,

is it possible that you´ve enabled one or all options in LC´s 
preferences->updates?

If i remember correctly then Panos mentioned in a post that this might come 
from updater tool.

Regards,

Matthias
Matthias Rebbe

free tools for Livecoders:
https://instamaker.dermattes.de 
https://winsignhelper.dermattes.de 

> Am 14.07.2019 um 15:55 schrieb Richmond via use-livecode 
> mailto:use-livecode@lists.runrev.com>>:
> 
> So it would seem.
> 
> One of the main factors that is stopping me switching my 2018 MacMini over to 
> MacOS 10.15
> are the continuing messages I am getting about LC 9.0.4 and 9.5 DP1 not being 
> optimised for
> MacOS 10.14 . . .
> 
> Richmond.
> 
> ___
> 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: Catalina is a small, rocky, and largely unprepossessing island.

2019-07-14 Thread JJS via use-livecode

I think you can ignore them because they are 64bit.

Perhaps the message is only there because maybe there is not certificate 
for LC for Mac.


Just guessing.

SPhere

Op 14-7-2019 om 15:55 schreef Richmond via use-livecode:

So it would seem.

One of the main factors that is stopping me switching my 2018 MacMini 
over to MacOS 10.15
are the continuing messages I am getting about LC 9.0.4 and 9.5 DP1 
not being optimised for

MacOS 10.14 . . .

Richmond.

___
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


Catalina is a small, rocky, and largely unprepossessing island.

2019-07-14 Thread Richmond via use-livecode

So it would seem.

One of the main factors that is stopping me switching my 2018 MacMini 
over to MacOS 10.15
are the continuing messages I am getting about LC 9.0.4 and 9.5 DP1 not 
being optimised for

MacOS 10.14 . . .

Richmond.

___
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