Re: Box2D Physics Engine

2016-11-22 Thread Terence Heaford
https://www.kickstarter.com/projects/1755283828/open-source-edition-of-livecode/posts/415346 All the best Terry > On 22 Nov 2016, at 00:17, Alejandro Tejada wrote: > > Hi All, > > On the forum

Max number of colors on a gradient

2016-11-22 Thread Alejandro Tejada
Hi Colin, Finally I was able to import a svg with 1022 color in a single gradient. Download a stack and svg from this forum thread: http://forums.livecode.com/viewtopic.php?f=10&t=28357 But my questions still remains unanswered: How many colors could we add safely to a LiveCode gradient? What ar

Re: Suffering from a Brain Fart...

2016-11-22 Thread J. Landman Gay
On 11/22/16 6:04 PM, Bob Sneidar wrote: I've often wanted to have a menu item that can de-modalize an open stack so I can step through the code when troubleshooting. On Mac, Cmd-Ctrl-Shift-rightclick to get the contextual menu. Choose Stack -> Stack Mode -> toplevel. -- Jacqueline Landman Ga

[ANN] New Menu Shortcut Plugin available [Was - GUI Design Tasks Send Back - Bring Forward]

2016-11-22 Thread Paul Hibbert
This is something I have been tinkering with for a while, so I spent most of today testing and polishing the stack to the point where it’s now useable as a plugin, so I’ve uploaded it to the LiveCode Share portal. From within Livecode 8 or 9 go to the Sample Stacks menu and search for, Shortcut

Re: Shell Command and cURL

2016-11-22 Thread Mark Schonewille
It doesn't make sense to create a list of 14-something files and try to paste it somewhere. Instead, write a shell script that gets the file list and download all files in the list. Your script might look like this: #!/bin/bash $ curl -s ftp://user:pass@IP/path/to/folder/ | \ grep -e '

Re: Suffering from a Brain Fart...

2016-11-22 Thread Roger Guay
I often use a script like this at the stack level, but I’m sure I’m missing your point. on controlKeyDown pKey if pKey = "e" then set the style of stack "TextOmatic" to topLevel if pKey = "p" then set the style of stack "TextOmatic" to palette end controlKeyDown Roger > On Nov 22, 2016,

Re: Suffering from a Brain Fart...

2016-11-22 Thread Bob Sneidar
THAT is interesting! Out of curiosity, I wonder if a stack can then go to itself non-modally! I've often wanted to have a menu item that can de-modalize an open stack so I can step through the code when troubleshooting. Bob S On Nov 22, 2016, at 14:16 , Richard Gaskin mailto:ambassa...@fourth

Save As Standalone Issues

2016-11-22 Thread Bob Sneidar
http://quality.livecode.com/show_bug.cgi?id=18896 Hi all. Anyone having Save As Standalone isues in 8.1.1 and up should look at this bug report. Essentially, if I have a splash stack that references a Main Stack, which itself has library stacks in it's Stack Files settings, and I Save As Stand

Re: OT non LC: cross tab/window browser communication

2016-11-22 Thread Mike Bonner
My problem is the same. *kinda* Basically i'm "adding to cart" and not too long ago.. something changed and it can take 7 or 8 seconds to decrypt the button code. Not that big a deal, but people like me, click once, leave the cart tab open, and then go back to the main shopping tab and click mor

RE: Socket communication

2016-11-22 Thread Ralph DiMola
Richard/Alex, Thanks!!! As Phil said "Live and learn". The LC example did work because it closes all open sockets, I just did not know why it worked. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livec

Re: Shell Command and cURL

2016-11-22 Thread Richard Gaskin
Gregory Lypny wrote: > I have never used LiveCode’s Shell command, and I was hoping that > someone on the forum might be able to give me an example of how to > use it with cURL to download a list of files from an FTP site. I have > been using cURL to download many files at a time from a given > d

Shell Command and cURL

2016-11-22 Thread Gregory Lypny
Hello everyone, I have never used LiveCode’s Shell command, and I was hoping that someone on the forum might be able to give me an example of how to use it with cURL to download a list of files from an FTP site. I have been using cURL to download many files at a time from a given directory by p

Script Editor Bug

2016-11-22 Thread Sannyasin Brahmanathaswami
I keep hitting this bug where editing a handler somehow corrupts the end of the previous handler # PREVIOUS HANDLER CLOSES LIKE THIS: end switch nd updateCache # the leading "e" here is deleted, even though I have not touched this line # THE ABOVE HAPPENS WHEN EDITING THE HANDLER BELOW: func

Re: menu entries are not getting enabled

2016-11-22 Thread Dr. Hawkins
Hmm. It appears that it isn't even setting the menubar to active *switch* the platform *case* "MacOS" *set* the defaultMenubar to stMen *break* as I step through in the IDE, though, the menu doesn't change to stMen (which holds the name of my master menu). So I assume the IDE entries get

Re: Suffering from a Brain Fart...

2016-11-22 Thread Richard Gaskin
Paul Dupuis wrote: > I was to open a modal dialog from a single handler and continue the > handler, updating certain information in a dialog, in a repeat loop. > > The 'modal ' command pauses the handler execution until the > dialog is closed (presumably from a button in the dialog itself). > The

Re: Suffering from a Brain Fart...

2016-11-22 Thread Ray
Would it work for you to hide the visible stack(s) and open the stack being used as a dialog window as a palette? Then re-show the visible stack(s) when the palette is closed. On 11/22/2016 5:10 PM, Paul Dupuis wrote: Help, I was to open a modal dialog from a single handler and continue the

Re: Suffering from a Brain Fart...

2016-11-22 Thread Roger Eller
Try toplevel stack "myStack" ~Roger On Tue, Nov 22, 2016 at 5:10 PM, Paul Dupuis wrote: > Help, > > I was to open a modal dialog from a single handler and continue the > handler, updating certain information in a dialog, in a repeat loop. > > The 'modal ' command pauses the handler execution

Re: Socket communication

2016-11-22 Thread Phil Davis
Live and learn! Phil On 11/22/16 2:04 PM, Alex Tweedly wrote: Yes, what Richard said :-) Don't be misled by the dictionary - the socketID *may* start with an IP address, but it doesn't need to - therefore you can simply close 8765 without an IP address, to close sockets you have 'accepted

Suffering from a Brain Fart...

2016-11-22 Thread Paul Dupuis
Help, I was to open a modal dialog from a single handler and continue the handler, updating certain information in a dialog, in a repeat loop. The 'modal ' command pauses the handler execution until the dialog is closed (presumably from a button in the dialog itself). Therefore I need to open the

menu entries are not getting enabled

2016-11-22 Thread Dr. Hawkins
openStack and resumeStack both send a setMenus message Inside setmessage, I have *repeat* with i = 1 to 5 *enable* menuitem i of menu "Window" *end* *repeat* I step through, and it executes these. Nonetheless, all menu items of Window are greyed out. Is there something I'm missing? thanks -

Re: using "preOpenStack" in card script

2016-11-22 Thread Richard Gaskin
Sannyasin Brahmanathaswami wrote: > if we put > > on preopenStack > answer "hello" with "OK" > # do stuff here > end preopenstack > > into the script of card 1 of a stack > > As a way to encapsulate the preopenstack from the message path > > and you put a button "Run" on the card: > > on mouseUp

Re: Socket communication

2016-11-22 Thread Alex Tweedly
Yes, what Richard said :-) Don't be misled by the dictionary - the socketID *may* start with an IP address, but it doesn't need to - therefore you can simply close 8765 without an IP address, to close sockets you have 'accepted' on. -- Alex. On 22/11/2016 21:52, Richard Gaskin wrote: Ralp

Re: Socket communication

2016-11-22 Thread Richard Gaskin
Ralph DiMola wrote: > When one enables socket communication on the server side using > the form "accept [datagram] connections on port portNumber with > message callbackMessage", how do you stop accepting new connections? > The LC lesson show closing all open sockets but not how to prevent > new

Re: using "preOpenStack" in card script

2016-11-22 Thread Paul Dupuis
On 11/22/2016 4:15 PM, Sannyasin Brahmanathaswami wrote: > on mouseUp > preopenStack > end mouseup You have to send the message using send or dispatch (or call - see teh dictionary for differences between these three methods). So: on mouseUp send "preOpenStack" to this card end mouseUp __

Re: using "preOpenStack" in card script

2016-11-22 Thread Bob Sneidar
put the stuff you would perform in a handler and call that from preopenstack and from your button mouseUp handler. Bob S > On Nov 22, 2016, at 13:15 , Sannyasin Brahmanathaswami > wrote: > > if we put > > on preopenStack > answer "hello" with "OK" > # do stuff here > end preopenstack > >

Re: Socket communication

2016-11-22 Thread Phil Davis
For clarity, it would be nice to have a "stop accepting connections on port x" command. Phil On 11/22/16 1:31 PM, Phil Davis wrote: That's a really good question Ralph! Maybe you could put the 'accept' and 'callbackMessage' code in a script that can be put into use / taken out of use and that

Re: Socket communication

2016-11-22 Thread Phil Davis
That's a really good question Ralph! Maybe you could put the 'accept' and 'callbackMessage' code in a script that can be put into use / taken out of use and that would do it, but I haven't tried it. Phil Davis On 11/22/16 1:11 PM, Ralph DiMola wrote: When one enables socket communication

using "preOpenStack" in card script

2016-11-22 Thread Sannyasin Brahmanathaswami
if we put on preopenStack answer "hello" with "OK" # do stuff here end preopenstack into the script of card 1 of a stack As a way to encapsulate the preopenstack from the message path and you put a button "Run" on the card: on mouseUp preopenStack end mouseup click the button and you get t

Socket communication

2016-11-22 Thread Ralph DiMola
When one enables socket communication on the server side using the form "accept [datagram] connections on port portNumber with message callbackMessage", how do you stop accepting new connections? The LC lesson show closing all open sockets but not how to prevent new connections. Thanks! Ralph Di

Cloning a Pixel C

2016-11-22 Thread Ray
This is a little off list but would anybody be able and willing to help me create four image files I can use to clone a Google Pixel C tablet? Specifically, the files I need are system.img, userdata.img, recovery.img, and boot.img. The Pixel C is running Android 7.0.

Re: OT non LC: cross tab/window browser communication

2016-11-22 Thread Mark Schonewille
This is strange and very insecure. You should let the tab load and redirect to the PayPal page after the tab has finished doing everything it should do. I had a similar problem though. I needed a page to give PayPal time to process a transaction. I did this with a fake progress bar, which wait

OT non LC: cross tab/window browser communication

2016-11-22 Thread Mike Bonner
I have a problem I need to solve with a web page i've set up.. On my page (my domain) I have forms that submit to an external domain (paypal) and open a new named tab on submission. I need to be able to block further actions until the paypal page load is complete. Currently, I have simply set up

Re: Sharing widgets (was Re: Type on an angle)

2016-11-22 Thread Kevin Miller
As it happens we¹ve been talking about that very issue internally today within our marketing team. This is a key priority for us, it has taken us longer than we would have liked but it needs to be moved up the queue and we will be doing that. I¹ll post something concrete on this next week. We did s

Re: Sharing widgets (was Re: Type on an angle)

2016-11-22 Thread Peter TB Brett
On 22/11/2016 16:03, Paul Dupuis wrote: Could someone from the Mothership (i.e. LiveCode) weigh in on where people should publish LCB widgets? If Kevin really wants a 1000 widgets, then LiveCode really should designate an "official" place to put them or at least put links to them (if not the a

Re: Sharing widgets (was Re: Type on an angle)

2016-11-22 Thread Paul Dupuis
Could someone from the Mothership (i.e. LiveCode) weigh in on where people should publish LCB widgets? If Kevin really wants a 1000 widgets, then LiveCode really should designate an "official" place to put them or at least put links to them (if not the actual widgets themselves). As has been illus

Re: roundUp function?

2016-11-22 Thread Peter TB Brett
On 22/11/2016 14:48, Roger Eller wrote: Good to know. Thanks again. And I've now submitted a pull request to fix that. Thank you for pointing it out! https://github.com/livecode/livecode/pull/4911 Peter -- Dr Peter Brett LiveCode Technical Pr

Re: roundUp function?

2016-11-22 Thread Roger Eller
Good to know. Thanks again. On Tue, Nov 22, 2016 at 9:44 AM, Peter TB Brett wrote: > > > On 22/11/2016 14:40, Roger Eller wrote: > > ceil works in 8.1.1, and in the docs of 8.1.1 says "Introduced in 6.7", yet >> it fails in 6.7.5 and6.7.8, nor is it in the 6.7.x dictionary. >> >> That said, I

Re: roundUp function?

2016-11-22 Thread Roger Eller
Old school is just awesome sometimes. :) Thanks for that idea, Mike. ~Roger On Tue, Nov 22, 2016 at 9:39 AM, Mike Bonner wrote: > Actually, .4 I guess. > > On Tue, Nov 22, 2016 at 7:38 AM, Mike Bonner wrote: > > > Kinda pointless since you can use ceiling, but you could go old school > and

Re: Sharing widgets (was Re: Type on an angle)

2016-11-22 Thread zryip theSlug
Done with number 50. Thanks for the link. On Mon, Nov 21, 2016 at 4:38 PM, hh wrote: >> > > zyrip wrote: Where can I share it? >> > Ben wrote: What is a good answer to zryip's question below, >> > where should interesting third-party widgets be shared? >> Andy wrote: The widget could be uploaded

Re: roundUp function?

2016-11-22 Thread Peter TB Brett
On 22/11/2016 14:40, Roger Eller wrote: ceil works in 8.1.1, and in the docs of 8.1.1 says "Introduced in 6.7", yet it fails in 6.7.5 and6.7.8, nor is it in the 6.7.x dictionary. That said, I need it in an app that is built and deployed in 6.7.5. Hi Roger, That appears to be a documentatio

Re: roundUp function?

2016-11-22 Thread Roger Eller
Peter, ceil works in 8.1.1, and in the docs of 8.1.1 says "Introduced in 6.7", yet it fails in 6.7.5 and6.7.8, nor is it in the 6.7.x dictionary. That said, I need it in an app that is built and deployed in 6.7.5. ~Roger On Tue, Nov 22, 2016 at 9:29 AM, Roger Eller wrote: > Thanks, Peter! >

Re: roundUp function?

2016-11-22 Thread Mike Bonner
Kinda pointless since you can use ceiling, but you could go old school and add .5 to the number, then round to achieve the same affect. On Tue, Nov 22, 2016 at 7:29 AM, Roger Eller wrote: > Thanks, Peter! > > ~Roger > > > On Tue, Nov 22, 2016 at 9:27 AM, Peter TB Brett > wrote: > > > > > > > On

Re: roundUp function?

2016-11-22 Thread Mike Bonner
Actually, .4 I guess. On Tue, Nov 22, 2016 at 7:38 AM, Mike Bonner wrote: > Kinda pointless since you can use ceiling, but you could go old school and > add .5 to the number, then round to achieve the same affect. > > On Tue, Nov 22, 2016 at 7:29 AM, Roger Eller > wrote: > >> Thanks, Peter! >>

Re: roundUp function?

2016-11-22 Thread Roger Eller
Thanks, Peter! ~Roger On Tue, Nov 22, 2016 at 9:27 AM, Peter TB Brett wrote: > > > On 22/11/2016 14:15, Roger Eller wrote: > >> We have round, which will either round up or down depending on the >> decimal >> value being > or < .5, but what if I want ANY decimal value, even .01 to >> round UP

Re: roundUp function?

2016-11-22 Thread Peter TB Brett
On 22/11/2016 14:15, Roger Eller wrote: We have round, which will either round up or down depending on the decimal value being > or < .5, but what if I want ANY decimal value, even .01 to round UP to the next whole number? You probably want to use "the ceiling of ", or "the ceil of ". Bes

roundUp function?

2016-11-22 Thread Roger Eller
We have round, which will either round up or down depending on the decimal value being > or < .5, but what if I want ANY decimal value, even .01 to round UP to the next whole number? Dictionary Examples: the round of 26.2 -- yields 26 the round of 2.5 -- yields 3 (rounds up) I want to: get round