Re: Working with AWS S3 commands

2024-02-13 Thread Monte Goulding via use-livecode


> On 14 Feb 2024, at 4:49 pm, Monte Goulding via use-livecode 
>  wrote:
> 
> It’s possible if you are using a newer region that AWS isn’t supporting the 
> older endpoint style on it.

I just found where they documented this so I’ll create an issue to fix 
https://docs.aws.amazon.com/AmazonS3/latest/userguide/VirtualHosting.html 
 in 
the s3-Region section.

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: Working with AWS S3 commands

2024-02-13 Thread Monte Goulding via use-livecode
Hi Peter

A couple of suggestions are to first check you called AWSSetCredentials with 
the region your bucket is in. If that is correct then try specifying the full 
endpoint url as https://s3 .your-bucket-region.amazonaws.com 
 via the endpoint parameter as AWS 
appear to have standardised away from the original 
https://s3-your-bucket-region.amazonaws.com 
 which is what the library builds 
from your region unless it’s us-east-1 in which case it does 
https://s3.amazonaws.com  . It’s possible if you are 
using a newer region that AWS isn’t supporting the older endpoint style on it.

Let me know how you go with that.

Cheers

Monte
> On 14 Feb 2024, at 3:50 pm, Peter Bogdanoff via use-livecode 
>  wrote:
> 
> Hi all,
> 
> I’m for the first time trying to use the Amazon AWS S3 commands to upload a 
> file to my AWS storage, but am having difficulty with the PutObject command.
> 
> I successfully entered my credentials with the AWSSetCredentials command.
> 
> However, using the AWSS3PutObject command I’m getting an error about the 
> bucket name. Either it “can’t find” it or says to use a different end point.
> 
> The AWS documentation is unclear to me exactly how to specify the bucket 
> name. Is it a just the name of the bucket (which doesn’t work), or does it 
> include some kind of path? And the region?
> 
> Has anyone had success with this?
> 
> Peter Bogdanoff
> 
> 
> 
> ___
> 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


Working with AWS S3 commands

2024-02-13 Thread Peter Bogdanoff via use-livecode
Hi all,

I’m for the first time trying to use the Amazon AWS S3 commands to upload a 
file to my AWS storage, but am having difficulty with the PutObject command.

I successfully entered my credentials with the AWSSetCredentials command.

However, using the AWSS3PutObject command I’m getting an error about the bucket 
name. Either it “can’t find” it or says to use a different end point.

The AWS documentation is unclear to me exactly how to specify the bucket name. 
Is it a just the name of the bucket (which doesn’t work), or does it include 
some kind of path? And the region?

Has anyone had success with this?

Peter Bogdanoff



___
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: Latest PolyGrid

2024-02-13 Thread Klaus major-k via use-livecode
Hi all,

> Am 13.02.2024 um 19:17 schrieb Paul Dupuis via use-livecode 
> :
> 
> 1_0_33 is the version I am running as well. I had not seen any announcement 
> or email about a .34 release.

same here, I found out accidentally!

> Now I think I will try to avoid it and wait for .35!

Sounds like a good idea. :-)

Since the POLYGRID is the currently the only widget I'm using of the
"Enhancement package", I don't know if the other widget also have problems.
> 
> On 2/13/2024 11:45 AM, Klaus major-k via use-livecode wrote:
>> Hi all,
>> 
>> yesterday I installed the latest version of "livecode_enhancements-1_0_34"
>> but the new "Polygrid" version 1.8.0 completely wrecked my working stack,
>> so I had to go back to the previous version 1.7.4.
>> 
>> E.g. it threw an error on my "on cellclick" handler just by setting:
>> -> set the pgData of me to tArray
>> 
>> on cellClick pColumnNumber,pRowNumber, pCellRect
>> -> ERROR: pColumnNumer is not a number (if I remember correctly)
>> 
>> Noone clicked anything I just set the pgData :-/
>> 
>> And also wrecked the order of its correctly prepared (in the array) content.
>> Big fun! :-/
>> 
>> Anyone else experienced something like this?
>> 
>> 
>> Best
>> 
>> Klaus

Best

Klaus

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


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


Re: Latest PolyGrid

2024-02-13 Thread Paul Dupuis via use-livecode
1_0_33 is the version I am running as well. I had not seen any 
announcement or email about a .34 release. Now I think I will try to 
avoid it and wait for .35!


On 2/13/2024 11:45 AM, Klaus major-k via use-livecode wrote:

Hi all,

yesterday I installed the latest version of "livecode_enhancements-1_0_34"
but the new "Polygrid" version 1.8.0 completely wrecked my working stack,
so I had to go back to the previous version 1.7.4.

E.g. it threw an error on my "on cellclick" handler just by setting:
-> set the pgData of me to tArray

on cellClick pColumnNumber,pRowNumber, pCellRect
-> ERROR: pColumnNumer is not a number (if I remember correctly)

Noone clicked anything I just set the pgData :-/

And also wrecked the order of its correctly prepared (in the array) content.
Big fun! :-/

Anyone else experienced something like this?


Best

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


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



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


Re: Latest PolyGrid

2024-02-13 Thread Mike Kerner via use-livecode
i didn't even realize there was 1.0.34. i don't recall seeing an
announcement. the last one i have is 1.0.33

On Tue, Feb 13, 2024 at 11:46 AM Klaus major-k via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi all,
>
> yesterday I installed the latest version of "livecode_enhancements-1_0_34"
> but the new "Polygrid" version 1.8.0 completely wrecked my working stack,
> so I had to go back to the previous version 1.7.4.
>
> E.g. it threw an error on my "on cellclick" handler just by setting:
> -> set the pgData of me to tArray
>
> on cellClick pColumnNumber,pRowNumber, pCellRect
> -> ERROR: pColumnNumer is not a number (if I remember correctly)
>
> Noone clicked anything I just set the pgData :-/
>
> And also wrecked the order of its correctly prepared (in the array)
> content.
> Big fun! :-/
>
> Anyone else experienced something like this?
>
>
> Best
>
> Klaus
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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 Demo of two way javascript communication?

2024-02-13 Thread David Bovill via use-livecode
That's great - digging into the scripts and html - really useful to see a
simple demo like this!

On Wed, 7 Feb 2024 at 19:45, Andreas Bergendal 
wrote:

> I’ve added a source code download link at the bottom of the page:
> https://wheninspace.com/WebpageInteractionStack/
>
> The steps are rather simple:
> - Open the stack with LC10 and run the standalone builder with "Build for
> web" checked.
> - Replace the html file in the deployment folder (in this case
> ”WebpageInteractionStack.html”) with the index.html file included in the
> source code download.
> - Upload everything in the deployment folder (should be 7 files) to
> whatever server you use, and then go to that location with your web browser
> to launch the index.html file.
>
> The html file can of course be named whatever you like, but then you must
> include it in the url when accessing the site. By calling it index.html
> it suffices to include the parent level in the url (like I do above). But I
> guess y’all know this, I believe it's worked like that since the dawn of
> the internet… :)
>
>
> 5 feb. 2024 kl. 20:40 skrev David Bovill via use-livecode <
> use-livecode@lists.runrev.com>:
>
> Perfect - just what I was looking for. Can you share the stack, and the
> steps to saving / exporting the standalone?
>
> On Sat, 27 Jan 2024 at 17:50, Andreas Bergendal via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> OK, so here’s a quick proof of concept, with functions triggered from page
> to stack and from stack to page.
> It is not using postMessage, only 'standard’ javascript listeners. Works
> well on mobile too (at least iPhone).
>
> https://wheninspace.com/WebpageInteractionStack/
>
> If I find the time, it would be very interesting to try deploying two
> different stacks on the same page (is that even possible?), and then have
> them communicate with each other. Or have two stacks in two different
> pages, and have them communicate via postMessage calls…
>
>
> 26 jan. 2024 kl. 17:15 skrev David Bovill via use-livecode <
>
> use-livecode@lists.runrev.com>:
>
>
> The scenario would be events like resize, or a button click in the html
> page triggering a handler in the Livecode wasm export. The other way
>
> round
>
> would ve a Livecode handler in the exported wasm widget calling a
> javascriot function in the surrounding Web page.
>
> My understanding in other contexts is that you use the postMessage Web
>
> api
>
> for this type of thing -
>
>
> https://www.google.com/url?q=https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage=U=2ahUKEwiE5eCSufuDAxX7UkEAHbtmBvIQFnoECAoQAg=AOvVaw09QGMScP0-9YwJuHAC-sIE
>
>
> Apart from triggering handlers in both directions passing (json) data in
> both directions is needed.
>
> On Thu, 25 Jan 2024, 20:35 Andreas Bergendal via use-livecode, <
> use-livecode@lists.runrev.com> wrote:
>
> I’ve created some web deployments where the web page interacts with the
> stack e.g. in the sense that a change of the browser window rect
>
> triggers a
>
> resizeStack message in the stack.
>
> But I’m not sure if by bidirectional you mean that actions in the stack
> should also affect the web page in some way? Could you give an example
>
> of
>
> what you have in mind?
>
>
> 24 jan. 2024 kl. 12:47 skrev David Bovill via use-livecode <
>
> use-livecode@lists.runrev.com>:
>
>
> Is there a demo out there for simple bidirectional interaction between
>
> a
>
> web page and a recent stack exported as wasm? Anyone experimenting with
> this?
>
>
>
___
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


Latest PolyGrid

2024-02-13 Thread Klaus major-k via use-livecode
Hi all,

yesterday I installed the latest version of "livecode_enhancements-1_0_34"
but the new "Polygrid" version 1.8.0 completely wrecked my working stack, 
so I had to go back to the previous version 1.7.4.

E.g. it threw an error on my "on cellclick" handler just by setting:
-> set the pgData of me to tArray

on cellClick pColumnNumber,pRowNumber, pCellRect
-> ERROR: pColumnNumer is not a number (if I remember correctly)

Noone clicked anything I just set the pgData :-/

And also wrecked the order of its correctly prepared (in the array) content.
Big fun! :-/

Anyone else experienced something like this?


Best

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


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


Re: Code Folding in LC

2024-02-13 Thread Mike Kerner via use-livecode
i was just about to ask if it still folded tags :-)

On Tue, Feb 13, 2024 at 8:41 AM Niggemann, Bernd via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Dear list
>
> I posted a stack on the Forum that temporarily installs Code Folding to LC
> version 9.6.9, 9.6.10, 9.6.11, or 10.0.0 DP 7. These changes are lost when
> closing LC
> Future versions might make changes to the installation stack necessary
> depending on the IDE changes in those versions.
>
> https://forums.livecode.com/viewtopic.php?f=9=38912
>
> You can test drive it and decide if you like it.
> There are instructions how to make this a permanent change for your
> specific copy of LC if you want to.
>
> To Mike: Yes it still folds #< to #
> Feedback welcome
>
> Kind regards
> Bernd
> ___
> 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
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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


Code Folding in LC

2024-02-13 Thread Niggemann, Bernd via use-livecode
Dear list

I posted a stack on the Forum that temporarily installs Code Folding to LC 
version 9.6.9, 9.6.10, 9.6.11, or 10.0.0 DP 7. These changes are lost when 
closing LC
Future versions might make changes to the installation stack necessary 
depending on the IDE changes in those versions.

https://forums.livecode.com/viewtopic.php?f=9=38912

You can test drive it and decide if you like it.
There are instructions how to make this a permanent change for your specific 
copy of LC if you want to.

To Mike: Yes it still folds #< to #http://lists.runrev.com/mailman/listinfo/use-livecode


Re: web

2024-02-13 Thread Mark Smith via use-livecode

> On 13 Feb 2024, at 5:02 am, Curry Kenworthy via use-livecode 
>  wrote:
> 
> What doesn’t kill us ... makes us awesome and mighty. Life requires that 
> faith and perseverance. Here’s hoping for a great 2024 for all, whatever it 
> holds, and an even BETTER 2025!
> 

My goodness Curry, how beautifully said. Thanks for sharing your thoughts. It 
reminds me of a quote I saw recently, “Resilience is my superpower”. Wishing 
everyone all the best in 2024. 

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