Re: Ali or Monte - MimeEncodeAsMIMEMultipartDocument

2021-01-03 Thread Pi Digital via use-livecode
Thanks Monte

That’ll point me in the right direction. 

I only put Ali in there because he was in the ‘blame’ list on GitHub. I figured 
he might know a little about it’s innards as he’d worked on it a couple of 
times.

As I’d not got a reply I’d bumbled my way around and gave it a play based on 
python guides I’d found on MIME. When I’m done on this project I’ll look to 
improve the library inline docs. 

Thanks again

Sean Cole
Pi Digital

> On 4 Jan 2021, at 02:49, Monte Goulding via use-livecode 
>  wrote:
> 
> Hi Sean
> 
> The MIME lib is all my fault so don’t blame Ali ;-)
> 
> It may help you to read RFCs 2045-2049 to gain an understanding of MIME. With 
> the exception of mimeEncodeFieldAsMIMEMultipartDocument you really need to 
> understand MIME to use the library.
> 
> You probably want the mimeEncodeAsMIMEEmail command though.
> 
> For the body presuming plain text email then you want something like:
> 
> put "Content-Type: text/plain; charset=UTF-8" & crlf & \
> "Content-Transfer-Encoding: quoted-printable" & crlf & crlf & \
>  mimeEncodeForMIMETransfer(tText, "quoted-printable”) into tBody
> 
> If you want html email then if you don’t know what you need as parameters for 
> mimeEncodeAsMIMEMultipartDocument then best to see the code of 
> mimeEncodeFieldAsMIMEMultipartDocument as an example which builds that from 
> field content.
> 
> Regarding BCC that’s nothing to do with the library. See tsNet recipients 
> list for that.
> 
> Cheers
> 
> Monte
> 
>> On 29 Dec 2020, at 3:18 am, Sean Cole (Pi) via use-livecode 
>>  wrote:
>> 
>> Hi all,
>> 
>> The dictionary, as usual, is a bit lacking in regards to the Mime Library.
>> For MimeEncodeAsMIMEMultipartDocument we have parameters but no idea what
>> the values (enum) for them could or should be.
>> 
>> pContentA: How do we pre-encode parts including headers?
>> 
>> pMultipartType: What MultiPart types are there?
>> 
>> pParamA: What kind of parameters does ParamA take?
>> 
>> There is a lesson that has a single use-case instance but it does not cover
>> all attachment or part types so we are still left guessing. Perhaps this is
>> where either Monte or Ali who coded this could help us out. (
>> https://github.com/livecode/livecode/blob/38790fc428ff5fc3dc769b3a9cde5733bcf209a2/extensions/script-libraries/mime/mime.livecodescript
>> )
>> 
>> I'm trying to attach a pdf to an email and have bcc addresses too.
>> 
>> 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


anyone doing in-app purchase on macOS?

2021-01-03 Thread kee nethery via use-livecode
Is this even possible? 
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: Ali or Monte - MimeEncodeAsMIMEMultipartDocument

2021-01-03 Thread Monte Goulding via use-livecode
Hi Sean

The MIME lib is all my fault so don’t blame Ali ;-)

It may help you to read RFCs 2045-2049 to gain an understanding of MIME. With 
the exception of mimeEncodeFieldAsMIMEMultipartDocument you really need to 
understand MIME to use the library.

You probably want the mimeEncodeAsMIMEEmail command though.

For the body presuming plain text email then you want something like:

put "Content-Type: text/plain; charset=UTF-8" & crlf & \
 "Content-Transfer-Encoding: quoted-printable" & crlf & crlf & \
  mimeEncodeForMIMETransfer(tText, "quoted-printable”) into tBody

If you want html email then if you don’t know what you need as parameters for 
mimeEncodeAsMIMEMultipartDocument then best to see the code of 
mimeEncodeFieldAsMIMEMultipartDocument as an example which builds that from 
field content.

Regarding BCC that’s nothing to do with the library. See tsNet recipients list 
for that.

Cheers

Monte

> On 29 Dec 2020, at 3:18 am, Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> Hi all,
> 
> The dictionary, as usual, is a bit lacking in regards to the Mime Library.
> For MimeEncodeAsMIMEMultipartDocument we have parameters but no idea what
> the values (enum) for them could or should be.
> 
> pContentA: How do we pre-encode parts including headers?
> 
> pMultipartType: What MultiPart types are there?
> 
> pParamA: What kind of parameters does ParamA take?
> 
> There is a lesson that has a single use-case instance but it does not cover
> all attachment or part types so we are still left guessing. Perhaps this is
> where either Monte or Ali who coded this could help us out. (
> https://github.com/livecode/livecode/blob/38790fc428ff5fc3dc769b3a9cde5733bcf209a2/extensions/script-libraries/mime/mime.livecodescript
> )
> 
> I'm trying to attach a pdf to an email and have bcc addresses too.
> 
> 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


Is it possible to implement Mac App Store in-app purchases in LiveCode?

2021-01-03 Thread kee nethery via use-livecode
And if it is possible to do in-app purchases in macOS apps, are there 
instructions or sample code anywhere? It appears to me that the Apple 
documentation assumes I am using Swift and have imported a set of libraries 
that are called via Swift. 

Is there a sample stack somewhere for Mac apps?

Has someone created a library I can use?

Thanks,
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 Advanced Application Architecture eBook price reduced

2021-01-03 Thread William Prothero via use-livecode
Andre,
Thanks for this. I very much agree with you about the need for more Livecode 
books. For example, online education has become a big deal because of the 
pandemic. It won’t go away after it’s over, because media and content are being 
developed that will be applied to support live classes and their teachers. 
Topics that come to mind are how to connect Livecode apps to course management 
systems, how to make information presentation apps that are engaging, with 
elements of reader response and interaction, and ways of reporting to the 
teacher, etc.

I play jazz piano, as an amateur, though. I get emails from several jazz 
teachers that contain free stuff, to initiate subscriptions for more detailed 
instruction, available at their web site. If you could identify challenges that 
developers face and create books that address those challenges, it might work. 
Personally, I find many of the Livecode support dictionary very good at the 
details, but for solving particular higher level problems, it is weak. The 
discussions on this list are very helpful.

Livecode is touted as very easy to get started with. However, building a real 
application is not that easy. Deployment is an ever changing challenge. For 
myself, I have to relearn the deployment techniques every time, because I don’t 
deploy very often. I depend on folks who share their deployment help apps and 
knowledge on this list.

A big challenge is that the technology is constantly changing and keeping 
current is a big challenge. I see that a huge amount of online materials must 
work in a browser, which vastly simplifies cross platform issues. However, 
Livecode will probably need to do a lot more to support browser deployment than 
they have to date. Perhaps a book that addresses web deployment would be very 
popular, especially if it was able to implement some of the features that are 
normally limited to the desktop.

Thanks for reading some of my ramblings.

Good luck, Andre

William Prothero
https://earthlearningsolutions.org



William Prothero
https://earthlearningsolutions.org
> On Jan 3, 2021, at 10:27 AM, Andre Garzia via use-livecode 
>  wrote:
> 
> Kee, Lagi, Chip, and Bob,
> 
> Thanks again for the kind words. I hope you all enjoy the book. :-)
> 
> Let me clarify some things because I can see how people are confused about
> me messaging about the book now. So, the book hasn't changed, this is not
> an update on the content. This was a price reduction I made because I want
> to prepare myself to start selling books on Amazon. You may not be aware
> but if I price the book between 1.99 and 9.99 on Amazon, I get 70%
> royalties. But, if I price it above 9.99, I get only 35%. This means that I
> get more money from pricing it 9.99 than if I price it higher, unless I
> price it much higher. Basically, 9.99 gives the the same amount of
> royalties as if I priced it 20. That is of course only for Amazon. All the
> other players in the market give you 70% regardless of how you price it.
> Amazon makes this rule to force the prices down. And before you think this
> is good, be aware that this makes it a lot harder to make a living out of
> books. Which makes it detrimental to the quality of books being shipped
> since an author can't justify working longer or producing a larger book
> since they won't be able to charge a fair price. But that is publishing
> politics and I won't go too deep into it here, I just thought you folks
> should know.
> 
> So that little campaign was made to:
> 
> * Teach me how to use book brush which is an online tool to create
> specialized artwork for book authors/publishers. I used to make the nice
> art you might have seen on the FB group or the forum.
> * Let me see if people will actually buy a 9.99 book. My leanpub royalties
> page (which has some automatic statistical recommendation in it) was
> telling me to price the book higher than 20.
> * Check if people are OK buying directly from my site, which makes me much
> more confident of the process and in control.
> 
> I'm working towards switching from being a developer to being a writer.
> This is a long process and this was a step forward. The next step is
> producing a new LC book from scratch without relying on Leanpub and making
> it available in multiple stores. It will probably be a short book, very
> focused on some specific topic that I haven't yet decided on.
> 
> I believe that we need more books in our community :-)
> 
> Kind regards
> Andre
> 
>> On Wed, 30 Dec 2020 at 23:54, Lagi Pittas via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> Hi,
>> Sorry maybe it's October 8th  as I think you use American format dates.
>> Lagi
>> On Wed, 30 Dec 2020 at 00:28, Andre Garzia via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> Hey Friends,
>>> I've reduced the price of my LiveCode eBook to £9.99. This book will
>> teach
>>> you advanced techniques, and contains a ton tips and tricks from a
>> seasoned
>>> LC developer.
>>> 

Re: LiveCode Advanced Application Architecture eBook price reduced

2021-01-03 Thread Andre Garzia via use-livecode
Kee, Lagi, Chip, and Bob,

Thanks again for the kind words. I hope you all enjoy the book. :-)

Let me clarify some things because I can see how people are confused about
me messaging about the book now. So, the book hasn't changed, this is not
an update on the content. This was a price reduction I made because I want
to prepare myself to start selling books on Amazon. You may not be aware
but if I price the book between 1.99 and 9.99 on Amazon, I get 70%
royalties. But, if I price it above 9.99, I get only 35%. This means that I
get more money from pricing it 9.99 than if I price it higher, unless I
price it much higher. Basically, 9.99 gives the the same amount of
royalties as if I priced it 20. That is of course only for Amazon. All the
other players in the market give you 70% regardless of how you price it.
Amazon makes this rule to force the prices down. And before you think this
is good, be aware that this makes it a lot harder to make a living out of
books. Which makes it detrimental to the quality of books being shipped
since an author can't justify working longer or producing a larger book
since they won't be able to charge a fair price. But that is publishing
politics and I won't go too deep into it here, I just thought you folks
should know.

So that little campaign was made to:

* Teach me how to use book brush which is an online tool to create
specialized artwork for book authors/publishers. I used to make the nice
art you might have seen on the FB group or the forum.
* Let me see if people will actually buy a 9.99 book. My leanpub royalties
page (which has some automatic statistical recommendation in it) was
telling me to price the book higher than 20.
* Check if people are OK buying directly from my site, which makes me much
more confident of the process and in control.

I'm working towards switching from being a developer to being a writer.
This is a long process and this was a step forward. The next step is
producing a new LC book from scratch without relying on Leanpub and making
it available in multiple stores. It will probably be a short book, very
focused on some specific topic that I haven't yet decided on.

I believe that we need more books in our community :-)

Kind regards
Andre

On Wed, 30 Dec 2020 at 23:54, Lagi Pittas via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi,
>
> Sorry maybe it's October 8th  as I think you use American format dates.
>
> Lagi
>
> On Wed, 30 Dec 2020 at 00:28, Andre Garzia via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Hey Friends,
> >
> > I've reduced the price of my LiveCode eBook to £9.99. This book will
> teach
> > you advanced techniques, and contains a ton tips and tricks from a
> seasoned
> > LC developer.
> >
> > Get it from:
> >
> >
> https://andregarzia.com/books/livecode-advanced-application-architecture.html
> >
> > Kind regards
> > Andre
> >
> > --
> > https://www.andregarzia.com 
> > Want to support me? Buy me a coffee at https://ko-fi.com/andregarzia
> > ___
> > 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
> >
>
>
> --
> KIndest Regards Lagi
> ___
> 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
>


-- 
https://www.andregarzia.com 
Want to support me? Buy me a coffee at https://ko-fi.com/andregarzia
___
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: Threads in LC

2021-01-03 Thread JeeJeeStudio via use-livecode

Hi Rick,


i will experiment some more and else continue with the Puthon version.

Thanks for the comparison. It seems other brands are offering more for 
buck, except maybe community support may be less. Don't know exactly.


Regards,

Jerry

Op 2-1-2021 om 23:00 schreef Rick Harrison via use-livecode:

Hi Jerry,

1 millisecond is probably asking too much of LC.
It doesn’t give an LC processor enough time to do
much of anything else and I can see why just
moving the mouse would affect the speed of the
motor.  I’m assuming that what you really want
is a steady rate for the motor rather than a
variable one.

Try some experiments with increasing the amount
of time in-between motor steps if you can.  You may
find a balance somewhere that is acceptable.

I also found this comparison of Banana Pi Vs. Raspberry Pi 3
which you may also find useful.

Good luck!

Rick

Banana Pi M3 Vs Raspberry Pi 3 Benchmark

Aspects Banana Pi M3Raspberry Pi 3
Processor   ARM V7 Cortex A7ARM V8 Cortex A53
Frequency   1.8GHz  1.2GHz
CPU Cores   8   4
RAM 2GB DDR31GB DDR2
SoC A83TBCM2837
Storage Micro SD/USB SATA 2.0   Micro SD 

Onboard Storage 8GB eMMCNo
GPU PowerVR SGX544MPBroadcom VideoCore IV
GPU Speed   700MHz  400MHz
GPIO Pins   40  40
USB 2.0 2 + 1 OTG   4
Power 

5V 2A   5V 2.5A



On Jan 1, 2021, at 11:20 AM, JeeJeeStudio via use-livecode 
 wrote:

Hi Rick,

thanks fo responding.

It's a Pi 3 model B+, should be fast enough for this simple task.

on clockWise
 -steps between pos and wait
   repeat for sStp times --clockwise
  Pi_gpio_output 20, 0 --dir
   Pi_gpio_output 21, 1 --step
   wait sSpd milliseconds with messages
   Pi_gpio_output 21, 0
   wait sSpd milliseconds with messages
 if the mouse is down
   then
  Pi_gpio_output 21, 0 --step
  set the label of me to "Start"
   exit repeat
end if
 end repeat
end clockWise

The time between a 1 and a 0 on the output is 1ms. I can lower the speed and 
thus increase time, but that does not matter.

I think I tried it once with send in time, not a succes. So maybe i have to 
rewrite that with a different mindsetting. I don't have all stack with me at 
the moment.

The above piece is from an older stack, but the last is similar.

Also the wait shall not be the most convenient wait to handle this.

It also has of course an counterClockwise handler which is similar, but then 
output 20 is a 1.

it should run for so many steps, then wait a few seconds and then return. If 
there is one position. If there are more positions, it should go to those 
positions too with eqaul steps, then wait on each position, then return those 
same positions to the start.

It all works, but due to the single thread, moving the mouse, it interferes. So 
in fact LC is to heavy for a single thread. Guess we would win speed if we got 
multi-thread. Not just for Raspberry.

Then there is still max LC7.0 for Rasp, so a port to that should also be made.

Thanks.

Jerry



___
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