Re: Google Static Maps Problem

2017-06-30 Thread prothero--- via use-livecode
Herman, I can't begin to tell you how much I appreciate you doing this! Thanks so much!! I'm off my computer for the day, but will run it through its paces tomorrow. Thanks again! Bill P William Prothero http://es.earthednet.org > On Jun 30, 2017, at 8:27 PM, hh via use-livecode >

Re: Shell - compile swift code

2017-06-30 Thread sundown--- via use-livecode
BIG ERROR I notice these crappy spell checkers changed my code. cd ~/Desktop swift fileName.swift The first swift should have a c after it. s w i f t c JB > On Jun 30, 2017, at 2:48 PM, JB via use-livecode > wrote: > > fileName.swift

Re: Google Static Maps Problem

2017-06-30 Thread hh via use-livecode
Sorry all, I'm used to work in the forums where one can easily edit posts to remove errors and typos. So here another correction, a constant (pixelsPerLonRadian) was wrong in the first two versions above. My last version, hope it's all correct now: local MERCATOR_RANGE=256, pixelOrigin,

Re: Google Static Maps Problem

2017-06-30 Thread hh via use-livecode
William, sorry I made a mistake, you have to replace "log10" by "ln". Hermann = Here the full correct script: local MERCATOR_RANGE=256, pixelOrigin, pixelsPerLonDegree, pixelsPerLonRadian on mouseUp put (55.9537534, -3.1988236) into centerPoint -- LC Home put 10 into zom --

Re: Google Static Maps Problem

2017-06-30 Thread hh via use-livecode
This is the LC translation of the linked javascript from stackoverflow: (I checked and simplfied a little bit the math, the Mercator projection is OK, very clever there!): It works here, happy mapping: local MERCATOR_RANGE=256, pixelOrigin, pixelsPerLonDegree, pixelsPerLonRadian on mouseUp

mousedown on player in 8.1.4

2017-06-30 Thread Jeff Reynolds via use-livecode
I was just testing a stack on LC 8.1.4 on the surface (win10) and for some reason im not getting the mousedown message on the player object in the stack. worked fine in LC 7.1.4 on the surface. works on both LC 7 and 8 on the mac. cant find any new properties that deal with this. does not

Re: Google Static Maps Problem

2017-06-30 Thread William Prothero via use-livecode
Jonathon and hh: Ok, it looks like I’ve made some progress, Googling around in the static maps api. I found that it is possible to directly set the lat lon bounds of the map I get. That’s even better than letting Google decide how much of the map to display and working backwards to get the

Re: Google Static Maps Problem

2017-06-30 Thread Jonathan Lynch via use-livecode
Hi Bill, I am looking at your stack now. I don't see any place where you use JavaScript to get get the bounds from the Google maps API. I think you would have to do it that way to get a reliable result. That won't give you corners, exactly, but it will give you a minimum bounding rectangle

Re: Is there Digital Clock Component out there?

2017-06-30 Thread hh via use-livecode
@ Ali. > Ali wrote: >> hh wrote: >> In Oct 2016 I made a digital widget clock, published in >> the forum > LC Builder > Community widgets: >> http://forums.livecode.com/viewtopic.php?p=146968#p146968 >> [And there: "Doesn't work in the HTML5 standalone builder."] > It should now work in HTML5

Re: Verbosity and Lines of code

2017-06-30 Thread Alex Tweedly via use-livecode
That doesn't generalize to more than two levels (without many extra lines of code) - you essentially have to number or label the repeat loops, and check in many places whether the 'exitMe" variable has been set to a higher level or not. And it's pretty fragile if additional levels of repeat

Re: Google Static Maps Problem

2017-06-30 Thread Jonathan Lynch via use-livecode
Bill, The bounds will only give you the corners of the image if you are facing exactly North, south, east, or west, I am sorry I have not had a chance to check out your stack - will do so shortly Sent from my iPhone > On Jun 30, 2017, at 7:56 PM, William Prothero via use-livecode >

Re: Verbosity and Lines of code

2017-06-30 Thread Jim Lambert via use-livecode
> RICHARDG wrote: > > This would allow us to exit a specific loop when loops are nested. > > I can't recall the specifics of his proposed syntax, but I remember > being impressed by how natural it seemed. Maybe it was along the lines of: > > repeat with i = 1 to tSomething named

Re: Google Static Maps Problem

2017-06-30 Thread William Prothero via use-livecode
Hermann: I got your stack. It pretty much is where I am at now. However, it doesn’t solve my problem. If you notice the “geocode” call output, nothing changes when the zoom level changes. This isn’t much help when trying to find the lat/lon values of the corners of the image. That’s what I

Re: OT: Mandelbrot set deep dive

2017-06-30 Thread Stephen Barncard via use-livecode
They put it into the ice. On Fri, Jun 30, 2017 at 15:41 Phil Davis via use-livecode < use-livecode@lists.runrev.com> wrote: > After watching a couple minutes of this, I started getting light-headed > and felt like I was going back to the late 60s. > > Phil Davis > > > On 6/30/17 1:44 PM, Mark

Re: Verbosity and Lines of code

2017-06-30 Thread Alex Tweedly via use-livecode
On 30/06/2017 17:32, Bob Sneidar via use-livecode wrote: What WILL save time (and I think it's on the list of future V9 features) is script editor "clairvoyance" or AutoFill as it's called. Imagine all your text variables starting with vtx (autofill usually requires a minimum of characters

Re: Is there Digital Clock Component out there?

2017-06-30 Thread Ali Lloyd via use-livecode
I will try to take a look and hopefully squeeze something in to my next LiveCode Global session! On Fri, Jun 30, 2017 at 5:12 PM Lagi Pittas via use-livecode < use-livecode@lists.runrev.com> wrote: > HI Ali > > Thanks for popping in with a vary practical and edifying lesson in the > power of the

Re: Is there Digital Clock Component out there?

2017-06-30 Thread Ali Lloyd via use-livecode
It should now work in HTML5 too :-D On Fri, Jun 30, 2017 at 9:31 PM hh via use-livecode < use-livecode@lists.runrev.com> wrote: > In Oct 2016 I made a digital widget clock, published in > the forum > LC Builder > Community widgets: > http://forums.livecode.com/viewtopic.php?p=146968#p146968 > >

Re: OT: Mandelbrot set deep dive

2017-06-30 Thread Phil Davis via use-livecode
After watching a couple minutes of this, I started getting light-headed and felt like I was going back to the late 60s. Phil Davis On 6/30/17 1:44 PM, Mark Wieder via use-livecode wrote: And while I'm posting off-topic subjects, here's a seriously deep dive into the Mandelbrot set.

Re: Cross-platform app containers

2017-06-30 Thread Mark Wieder via use-livecode
On 06/30/2017 09:43 AM, Jerry Daniels via use-livecode wrote: Y'all might wanna checkout Droplet Computing. This would let me run my Mac or Windows apps on a ChromeBook easily! http://www.dropletcom.com/waitlist?ref=pKOcqQ Why is this different/better than wine? For that matter why is there a

Re: Capturing screen into image

2017-06-30 Thread Mark Schonewille via use-livecode
Set the lockLoc of the image to false. Set the text of the image to the PNG data (you're doing this correctly), but don't set the rect of the image first. If necessary, set the width of the image to the formattedWidth of the image and set the height of the image to the formattedHeight of the

Shell - compile swift code

2017-06-30 Thread JB via use-livecode
Save your code on the desktop as fileName.swift open the Terminal and type; cd ~/Desktop swift fileName.swift The compiled code will appear on your desktop. JB ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: Cross-platform app containers

2017-06-30 Thread Jerry Daniels via use-livecode
Hey, Rick! They said they were gonna get to all the platforms, but at first it will be Windows/Chromebooks. All in good time my pretty! On Fri, Jun 30, 2017 at 12:12 PM, Rick Harrison via use-livecode wrote: Hi Jerry, This looks interesting. I didn’t see

OT: Mandelbrot set deep dive

2017-06-30 Thread Mark Wieder via use-livecode
And while I'm posting off-topic subjects, here's a seriously deep dive into the Mandelbrot set. https://www.youtube.com/watch?v=ModQ59muXmU -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please

Shell - c++ compile with gcc

2017-06-30 Thread JB via use-livecode
To compile c++ code save file with extension .mm cd ~/Desktop g++ -Wall fileName.mm -o fileName This version is different that the c code version posted but you can use either version. The only difference is c++ has the extension .mm and then you use g++ while c has the extension .c and you use

Re: sorting algorithms

2017-06-30 Thread Mark Wieder via use-livecode
On 06/30/2017 09:39 AM, Bob Sneidar via use-livecode wrote: I thought it was going to explain the different sort methods. Explain 15 sorting algorithms in six minutes? That's 24 seconds each, which isn't even enough time for an elevator pitch for each algorithm. -- Mark Wieder

Re: sorting algorithms

2017-06-30 Thread Mark Wieder via use-livecode
On 06/30/2017 11:49 AM, Richmond Mathewson via use-livecode wrote: and, while the film popped my ears, it didn't exactly add to the sum knowledge of my mental programming library. I, on the other hand, found my curiosity piqued to investigate some of the other sort algorithms mentioned, as

Re: Is there Digital Clock Component out there?

2017-06-30 Thread hh via use-livecode
In Oct 2016 I made a digital widget clock, published in the forum > LC Builder > Community widgets: http://forums.livecode.com/viewtopic.php?p=146968#p146968 Simply use the lcb file to recompile it with the LC version you wish to use. Currently the binary lce files from LC 8 are not usable in LC

Re: How do we access the clipboard on mobile devices?

2017-06-30 Thread Jonathan Lynch via use-livecode
Today, Thierry allowed me to put the external from his text to speech app into Augmented Earth. I was able to put in a paste button above the content field and paste text into the app on my iPhone. It worked quite well. Sent from my iPhone > On Jun 28, 2017, at 10:20 AM, Richard Gaskin via

Re: PrintPaperRectangle

2017-06-30 Thread Bob Sneidar via use-livecode
Almost no toner based printer can do this. It's called Full Bleed, and think about what happens to the excess toner that has to go off the edge of the paper to do that. Ink based printers are designed to do this because they can just catch the ink that gets oversprayed, and you can clean/empty

Re: PrintPaperRectangle

2017-06-30 Thread Paul Dupuis via use-livecode
On 6/30/2017 2:17 PM, Terence Heaford via use-livecode wrote: > LC 8.1.4, MacOS 10.12.5 > > Print Paper Rectangle returns 8,8,834,587 for A4 Landscape. > > This does not seem to match the description in the dictionary? > > "The printPaperRectangle property contains four comma-separated integers

Re: sorting algorithms

2017-06-30 Thread Richmond Mathewson via use-livecode
On 6/30/17 7:39 pm, Bob Sneidar via use-livecode wrote: I thought it was going to explain the different sort methods. I suppose which one you use depends on the nature of the data being sorted. Bob S I was a bit disappointed as I "only" know about the 'Bubble' and the 'Bucket' methods [

Save 50% by 7.5.2017 on VSP + VDN Dev Deployable Server

2017-06-30 Thread Lynn Fredricks via use-livecode
Valentina Developer Network lets you deploy our database & report server royalty free with your LiveCode solution. Valentina Server supports Valentina DB, Valentina SQLite (for scaling up your local SQLite projects), plus Valentina Report, which works with all major databases, plus SQLite and

Fwd: Printing a Widget Browser

2017-06-30 Thread Terence Heaford via use-livecode
> Begin forwarded message: > > From: Terence Heaford > Subject: Re: Printing a Widget Browser > Date: 30 June 2017 at 19:21:14 BST > To: jonathandly...@gmail.com > > >> On 29 Jun 2017, at 20:37, jonathandly...@gmail.com wrote: >> >> Could you export to a file, launch

Fwd: Printing a Widget Browser

2017-06-30 Thread Terence Heaford via use-livecode
> Begin forwarded message: > > From: Terence Heaford > Subject: Re: Printing a Widget Browser > Date: 30 June 2017 at 19:19:38 BST > To: jonathandly...@gmail.com > > >> On 29 Jun 2017, at 20:50, jonathandly...@gmail.com wrote: >> >> Also, have you tried this: >> >> Do

Capturing screen into image

2017-06-30 Thread Terence Heaford via use-livecode
This script does not work. export snapshot from rectangle (the rect of widget "Browser") to pictVariable as PNG set the rect of image "myImage" to the rect of widget "Browser" put pictVariable into image "myImage" print card from topleft of image "myImage" to bottomRight of image “myImage"

PrintPaperRectangle

2017-06-30 Thread Terence Heaford via use-livecode
LC 8.1.4, MacOS 10.12.5 Print Paper Rectangle returns 8,8,834,587 for A4 Landscape. This does not seem to match the description in the dictionary? "The printPaperRectangle property contains four comma-separated integers and is in points. The default value reflects the default values of the

Re: Verbosity and Lines of code

2017-06-30 Thread Colin Holgate via use-livecode
The way it is in Director is nice. These are all valid statements: put “one two three” into v put the last char of word 3 of v — “e” v = “one two three" put v.word[3].char[v.word[3].length] — “e" put [{a:1,b:2,c:3},{d:4,e:5,f:6}] into alist put alist[2].d — 4 put the d of alist[2] — 4 put item

Re: Verbosity and Lines of code

2017-06-30 Thread Richard Gaskin via use-livecode
Lagi Pittas wrote: > I Can't understand this fixation with how many characters typed. This is part of a statement: It's This is part of a statement: not This is part of a statement: so This is part of a statement: much This is part of a statement: about This is part of a statement: the This is

Re: Cross-platform app containers

2017-06-30 Thread Rick Harrison via use-livecode
Hi Jerry, This looks interesting. I didn’t see anything that discussed being able to run Mac apps. It looked like it will let you run Windows Apps on your Mac. Where did you see the reference to Mac Apps? Thanks, Rick > On Jun 30, 2017, at 12:43 PM, Jerry Daniels via use-livecode >

Cross-platform app containers

2017-06-30 Thread Jerry Daniels via use-livecode
Y'all might wanna checkout Droplet Computing. This would let me run my Mac or Windows apps on a ChromeBook easily! http://www.dropletcom.com/waitlist?ref=pKOcqQ Best, Jerry 512-698-6286 ___ use-livecode mailing list use-livecode@lists.runrev.com Please

Re: sorting algorithms

2017-06-30 Thread Bob Sneidar via use-livecode
I thought it was going to explain the different sort methods. I suppose which one you use depends on the nature of the data being sorted. Bob S > On Jun 29, 2017, at 20:55 , Mark Wieder via use-livecode > wrote: > > Fascinating youtube video demonstrating 15

Re: Verbosity and Lines of code

2017-06-30 Thread Bob Sneidar via use-livecode
What WILL save time (and I think it's on the list of future V9 features) is script editor "clairvoyance" or AutoFill as it's called. Imagine all your text variables starting with vtx (autofill usually requires a minimum of characters typed) and now you get a list of all your text variables, or

Re: Is there Digital Clock Component out there?

2017-06-30 Thread Lagi Pittas via use-livecode
HI Ali Thanks for popping in with a vary practical and edifying lesson in the power of the widget program/display mechanics. Basically OO MVC for widgets with - in this case at least - very low coupling. Maybe you or somebody on the list with greater Livecode powers than me (not difficult)

Re: Is there Digital Clock Component out there?

2017-06-30 Thread Ali Lloyd via use-livecode
Alternatively, take the clock widget and replace the OnPaint handler with public handler OnPaint() variable tTime as List variable tComponent as Integer repeat with tComponent from 1 up to 3 push mCurrentTime[tComponent] formatted as string onto tTime end repeat variable tTimeString as String

Re: Google Static Maps Problem

2017-06-30 Thread hh via use-livecode
You may use the technique of a stack I made in April 2017 on base of a discussion started by you in the list: http://lists.runrev.com/pipermail/use-livecode/2017-April/236632.html I posted it just now here (Raspi stacks collection #100) http://forums.livecode.com/viewtopic.php?p=155414#p155414

Re: Is there Digital Clock Component out there?

2017-06-30 Thread panagiotis merakos via use-livecode
Neat and simple. That's why we love LiveCode :) Panos -- On Fri, Jun 30, 2017 at 3:47 PM, hh via use-livecode < use-livecode@lists.runrev.com> wrote: > To have it in sync with the system clock: > > send "updateClock" to me in (1000 - the millisecs mod 1000) millisecs > >

Re: Google Static Maps Problem

2017-06-30 Thread prothero--- via use-livecode
Jonathon. In the stack I sent, I display the xml from the maps API, that includes the bounds. I'm confused, tho, by the lack of any change when I change the zoom level. Perhaps I'm not calling it with the proper parameters. I like the static maps API because it gives me an image that I can

Re: Google Static Maps Problem

2017-06-30 Thread Jonathan Lynch via use-livecode
The google maps API has a function for getting the bounds of a map, which adjusts at each level. So, this is just a matter of calling on that function every time, so you get current bounds. I will look at the stack later today. Just be careful with bounds. They can cause confusion with

Re: Is there Digital Clock Component out there?

2017-06-30 Thread hh via use-livecode
To have it in sync with the system clock: send "updateClock" to me in (1000 - the millisecs mod 1000) millisecs ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Re: Shell - c Full Example

2017-06-30 Thread Bob Sneidar via use-livecode
Sow how would you do that? static char rev[MAX -1]?rev[i++] = *str & NULL? > >> Bob S >> > On Jun 29, 2017, at 20:20 , Mark Wieder via use-livecode > wrote: > >> char* getReverse(char const str[]){ >> static int i=0; >> if(*str){ >>

Re: Google Static Maps Problem

2017-06-30 Thread William Prothero via use-livecode
Jonathan: Here is a link to my test stack and some files I found that have various code to find the corners of the downloaded map. https://www.dropbox.com/s/8xle2hrltx9ll0d/googleMapsAPiTests.zip?dl=0 My start on a

Re: Is there Digital Clock Component out there?

2017-06-30 Thread Glen Bojsza via use-livecode
I was maybe over thinking it since I was looking at a series of repeat loops and implementing mouseclicks for stopping and starting. Your solution is perfect since it is great for a time card solution and with a little mod I can make it into a stop watch solution. Thanks Mike. On Fri, Jun 30,

Re: Is there Digital Clock Component out there?

2017-06-30 Thread Mike Kerner via use-livecode
well, on openCard updateClock end openCard on updateClock if the tool is "browse tool" then put the long time into field "clock" send "updateClock" to me in 1 second end updateClock On Fri, Jun 30, 2017 at 9:53 AM, Glen Bojsza via use-livecode < use-livecode@lists.runrev.com> wrote:

Re: Is there Digital Clock Component out there?

2017-06-30 Thread Glen Bojsza via use-livecode
Time crunch...no pun intended! On Fri, Jun 30, 2017 at 9:39 AM, Mike Kerner via use-livecode < use-livecode@lists.runrev.com> wrote: > Why not just use a field and write one? > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please

Re: Is there Digital Clock Component out there?

2017-06-30 Thread Mike Kerner via use-livecode
That's what I did with the Timeclock app that I wrote (I'm replacing shop floor timeclocks with ipads). On Fri, Jun 30, 2017 at 9:39 AM, Mike Kerner wrote: > Why not just use a field and write one? > -- On the first day, God created the heavens and the Earth On

Re: Is there Digital Clock Component out there?

2017-06-30 Thread Mike Kerner via use-livecode
Why not just use a field and write one? ___ 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 there Digital Clock Component out there?

2017-06-30 Thread Glen Bojsza via use-livecode
Hello, I have found several Analog Clocks but with the component architecture I thought this would be readily available ... maybe I am missing something. regards, Glen ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url

Re: Verbosity and Lines of code

2017-06-30 Thread Mike Kerner via use-livecode
which is exactly why regular expressions are such a PITA to diagnose. On Fri, Jun 30, 2017 at 6:05 AM, Lagi Pittas via use-livecode < use-livecode@lists.runrev.com> wrote: > I Can't understand this fixation with how many characters typed. > > I now quite like the verbose "dot notation" of

Re: Google Static Maps Problem

2017-06-30 Thread Jonathan Lynch via use-livecode
Hi Bill, Can you share the LC code and JS you are using? Sent from my iPhone > On Jun 29, 2017, at 9:59 PM, William Prothero via use-livecode > wrote: > > Folks: > I’ve found a way to display an image of a google static map, in my app. It’s > quite easy and

Verbosity and Lines of code

2017-06-30 Thread Lagi Pittas via use-livecode
I Can't understand this fixation with how many characters typed. I now quite like the verbose "dot notation" of Livecode - it's now second nature and it's the last thing I would even bother asking to augment with "real" dot notation. the put into variable adds very little time to typing and is

Re: sorting algorithms

2017-06-30 Thread Richmond Mathewson via use-livecode
That's very clever! Richmond. On 6/30/17 6:55 am, Mark Wieder via use-livecode wrote: Fascinating youtube video demonstrating 15 sorting algorithms visually and sonically. https://boingboing.net/2017/06/28/15-sorting-algorithms-visualiz.html ___