Retroactive background behavior

2017-03-27 Thread Jim Hurley via use-livecode
As I recall there is a method of retroactively creating a button with background behavior, this is appears on all existing cards. How is my recollection? Jim Hurley ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: Yertle the Turtle

2017-02-02 Thread Jim Hurley via use-livecode
I had been promoting Turtle Graphics in RR/LC for many years. Here are 4 implementation of Turtle Graphics in LC: http://jamesphurley.com/Revolution.html Jim > > Message: 19 > Date: Mon, 30 Jan 2017 22:20:10 +0200 > From: Richmond Mathewson > To: "u

Re: Parsing a PDF file

2016-07-11 Thread Jim Hurley
Kay Lan wrote: In this particular case I found it much easier to open the PDF file in Adobe Acrobat and doing a “Save as — Text (Accessible)” Jim > > On Mon, Jul 11, 2016 at 9:36 AM, Roger Eller > mailto:roger.e.el...@sealedair.com>> wrote: >> Since this seems to be Mac only, why not "do as Ap

Re: Parsing a PDF file

2016-07-10 Thread Jim Hurley
hh wrote: > > [Description for MacOS, works on Win/Linux similar.] > > The best results for extracting tables from PDF I had with the free "RAW" > method: > > = Open the file with Preview. > = Select All (menu Edit). Copy. > = Go to a LC stack with a field "INCOMING" > = Use by a button or the

Re: Parsing a PDF file

2016-07-10 Thread Jim Hurley
programmers there, and they love to program. A trait not uncommon among us LC folks. Jim Hurley > > Many of the laws we as citizens of the US are required to follow are not > available for us to read without paying a fee. Cal Malamud, Public > Resource, et al, are working to place th

Re: Parsing a PDF file

2016-07-10 Thread Jim Hurley
Richard Gaskin wrote: > > Jim Hurley wrote: > >> Thanks Richard. >> >> You are so right about releasing data in complex formats. >> I spoke to the election's off about posting election results in PDF >> format. >> I knew there was not use

Re: Parsing a PDF file

2016-07-09 Thread Jim Hurley
C to work its magic on. (The other two text options in Adobe are "Rich Text Format" and "Text (Plain)", neither of which works--only "Text (Accessible)" I was unaware of Apple's Automator. I'll look into it--but it is unnecessary for this project. Thanks aga

Parsing a PDF file

2016-07-08 Thread Jim Hurley
My County is now publishing the election results to the web as a PDF file: https://www.mynevadacounty.com/nc/elections/docs/2016%20Elections/June%207%2c%202016%2c%20Presidential%20Primary/Election%20Results/precinctreport.pdf Is there a way to parse these PDF files? Thanks, Jim _

Re: Get url "file:///..."

2016-06-21 Thread Jim Hurley
Hi Klaus, Yes, that works well. Thank you. But it gives me the html source code. I can live with that, but lots of parsing to get the text You seem to suggest I can get the "text" or (?) or html "source" hh's script (below) does that but it is very unstable, crashing frequently Jim Klaus wrote

Re: Get url "file:///..."

2016-06-21 Thread Jim Hurley
Thank you so much. So useful! Understatement of the year: "Using above "text" instead of "source" may save you some work." It saves a mountain of parsing. Shouldn't this be a part of LiveCode? Jim Hurley > Message: 1 > Date: Mon, 20 Jun 2016 2

Re: Get url "file:///..."

2016-06-20 Thread Jim Hurley
ult on fail it'll probably say > "can't open file". You'll need to urldecode to set the folder too if you > decide to go that way. > > On Mon, Jun 20, 2016 at 6:23 PM, Dar Scott wrote: > >> urlDecode() ? >> >>> On Jun 20, 2016, at 5:54

Get url "file:///..."

2016-06-20 Thread Jim Hurley
I got this web page address from the county election's office: file:///Users/jimhurley/Library/Mail%20Downloads/elec_web/precincts/241.htm It opens when I paste it into the address field in Safari. But get url "file:///Users/jimhurley/Library/Mail%20Downloads/elec_web/precincts/241.htm

Re: The Future of LiveCode in Education

2016-02-29 Thread Jim Hurley
As programmers, most of us on this list think mainly of programming as a tool for solving problems. Of course, that’s how it was born. The original use of the computer was to solve hard science problems. It was assumed that a couple dozen around the world would be sufficient. But, besides lea

Re: Area of Irregular Polygon

2015-11-15 Thread Jim Hurley
> > Cheers, > > Roger > > > > >> On Nov 11, 2015, at 2:35 PM, Jim Hurley wrote: >> >> Very interesting discussion. >> >> However, I was puzzled by the following term in the sum used to calculate >> the area of a polygon--

Re: Area of Irregular Polygon

2015-11-11 Thread Jim Hurley
Very interesting discussion. However, I was puzzled by the following term in the sum used to calculate the area of a polygon--labeled the centroid method. x(i)*y(i+1) - x(i+1)y(i) Where does this come from? If one were using the traditional method of calculating the area under a curve (per

Mailing stand alone apps.

2015-06-01 Thread Jim Hurley
Oops, on the Subject of the previous message. I’m trying to email a LC stand alone app to a friend. But I when I send it to myself as a test, I get a message: Can’t be opened because it is from an unidentified developer.” Is there a work-around? Jim

Re: use-livecode Digest, Vol 141, Issue 2

2015-06-01 Thread Jim Hurley
I’m trying to sent a LC stand alone app to a friend. But I when I send it to myself as a test, I get a message: Can’t be opened because it is from an unidentified developer.” Is there a work-around? Jim ___ use-livecode mailing list use-livecode@lists.

Primitive menu

2015-06-01 Thread Jim Hurley
I have a no frills Livecode stack I wish to save as a Stand Alone, but without a Livecode menu bar. When I do this (on my Mac) I get an Apple Menu headed by the stack name, followed by items: About..., Services, Hide [stack name], Hide others, Show All, Quit [stack name] Which is perfect, exce

Re: Automated Drawing

2015-05-09 Thread Jim Hurley
<554e3ce3.2030...@gmail.com> > Content-Type: text/plain; charset=utf-8; format=flowed > > On 09/05/15 16:52, Richmond wrote: >> On 21/03/15 18:17, Jim Hurley wrote: >>> Richmond, >>> >>> I wrote this Turtle Graphics library in the dark ages of RR, befor

Re: Automated Drawing

2015-05-09 Thread Jim Hurley
Richmond wrote: >> On 21/03/15 18:17, Jim Hurley wrote: >>> Richmond, >>> >>> I wrote this Turtle Graphics library in the dark ages of RR, before >>> ?sum? became a reserved word. >>> >>> So, comment out the ?sum? handler in the stack scrip

Re: Automated Drawing

2015-03-21 Thread Jim Hurley
> > Message: 14 > Date: Sat, 21 Mar 2015 20:13:37 +0200 > From: Richmond > To: How to use LiveCode > Subject: Re: Automated Drawing > Message-ID: <550db4d1.4050...@gmail.com> > Content-Type: text/plain; charset=utf-8; format=flowed > > On 21/03/15 17:

Re: Automated Drawing

2015-03-21 Thread Jim Hurley
om/pipermail/use-livecode/2015-March/thread.html#212901> >> [ subject ] >> <http://lists.runrev.com/pipermail/use-livecode/2015-March/subject.html#212901> >> [ author ] >> <http://lists.runrev.com/pipermail/use-livecode/2015-March/author.html#212901> > O

Re: Automated Drawing

2015-03-21 Thread Jim Hurley
2901> >> [ author ] >> <http://lists.runrev.com/pipermail/use-livecode/2015-March/author.html#212901> > On 21/03/15 17:09, Richmond wrote: > > On 21/03/15 13:57, Jim Hurley wrote: > >>> Message: 21 > >>> Date: Sat, 21 Mar 2015 09:02:23 +0200 &g

Re: Automated Drawing

2015-03-21 Thread Jim Hurley
> > Message: 21 > Date: Sat, 21 Mar 2015 09:02:23 +0200 > From: Richmond > > To: How to use LiveCode > > Subject: Automated Drawing > Message-ID: <550d177f.10...@gmail.com > > Content-Type:

Re: Can I produce a Google map showing SEVERAL address?

2014-11-11 Thread Jim Hurley
of possibilities. > > Good luck! > > Rick > > >> On Nov 10, 2014, at 9:00 PM, Jim Hurley wrote: >> >> The following gets me a Google map of a single address: >> >> on mouseUP >> put "http://maps.google.com/maps?client=safari&rl

Can I produce a Google map showing SEVERAL address?

2014-11-10 Thread Jim Hurley
replace comma with "+" in tAddress put tPrefix && tAddress into temp launch url temp end mouseUP The site is marked on the map with an inverted teardrop. Is it possible to get a map showing the location of more than one address at a time? Thanks, Jim Hurley

Re: Opening a stack stored in dropbox's public fold

2014-11-05 Thread Jim Hurley
orks in a button script: >> >> on mouseUp >> get URL >> "https://dl.dropboxusercontent.com/u/47044230/CryptDivisionNew.livecode"; >> -- "https://dl.dropboxusercontent.com/u/47044230/CryptDivisionNew.livecode? >> go IT >> end mouseUp >> >> >&g

Re: Opening a stack stored in dropbox's public fold

2014-11-04 Thread Jim Hurley
> > g > > > On Tue Nov 04 2014 at 1:40:34 AM Jim Hurley > wrote: > >> Thanks Jacque. No it is a fresh link. >> >> But new information. It (go url "Dropbox link") works on my MacBookAir, >> running 10.9.5 and all versions of RR, but not

Re: (Arbitrarily) Long-Division Script

2014-11-03 Thread Jim Hurley
Hi Igor, Some years ago, 2002 to be exact, I built a stack that emulated a puzzle I enjoyed. The puzzle was to decipher a long division problem where all the numbers had been replace by coded letters. My algorithm is cumbersome--I needed dividends and divisors that yielded all 10 digits in the

Re: Opening a stack stored in dropbox's public fold

2014-11-03 Thread Jim Hurley
ilar failure recently and found out > that Dropbox had changed the link. I coded in the new one and it worked > again. It was a little disconcerting that they'd do that. > > On November 2, 2014 5:01:42 PM CST, Jim Hurley > wrote: >> There was a time when this work

Opening a stack stored in dropbox's public folder

2014-11-02 Thread Jim Hurley
There was a time when this worked, but not now. I put go url "https://dl.dropboxusercontent.com/ etc." And I get "no such card" If I put the Dropbox's public link into the address line of Safari I get a list of the scripts, so I know the link is OK, Doesn't this work any more in RR?

Re: Getting a list of object properties

2014-10-10 Thread Jim Hurley
252; format=flowed > > On 10/10/2014, 7:02 AM, Jim Hurley wrote: >> Jacque, >> I?m missing something in your explanation of how to use the dictionary. > > I'm not sure what part isn't clear? > > -- > Jacqueline Landman Gay | jac...@hy

Re: Getting a list of object properties

2014-10-10 Thread Jim Hurley
Message: 1 > Date: Thu, 9 Oct 2014 13:23:09 -0700 > From: Peter Haworth > To: How to use LiveCode > Subject: Re: Getting a list of object properties > Message-ID: > > Content-Type: text/plain; charset=UTF-8 > > On Thu, Oct 9, 2014 at 1:09 PM, William Prothero > wrote: > >> If I do: >> p

M

2014-08-13 Thread Jim Hurley
___ 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: OT: Opening stack from Dropbox--Now Fun with ellipses

2014-07-14 Thread Jim Hurley
ck from Dropbox > Message-ID: <9ca5f8c5-389b-4c47-9bbb-23493e700...@tactilemedia.com> > Content-Type: text/plain; charset=us-ascii > > Try replacing the "www" of the shared link with "dl". > > Regards, > > Scott Rossi > Creative Director

OT: Opening stack from Dropbox

2014-07-13 Thread Jim Hurley
Is it possible to do this in the message box: go url "xxx" where "xxx" is the shared link created in Dropbox using a control click on the file. And then have the stack open in Livecode? I continually get the message: "No such card" Thanks, Jim __

Re: Conflicting paths

2014-07-12 Thread Jim Hurley
Hi Richard, I think I'm missing something. Why construct the circle (or ellipse) by setting points of a graphic when the graphic oval tool produces a much better result? No matter how many points I use when I set the points of a graphic, I still get jaggies. P.S. I tried to include a sampl

Re: Dragging an object

2014-07-10 Thread Jim Hurley
> > Message: 19 > Date: Thu, 10 Jul 2014 17:24:16 -0700 > From: Peter Bogdanoff > To: How to use LiveCode > Subject: Dragging an object > Message-ID: <14789523-9af4-4531-83cf-ff60644d1...@me.com> > Content-Type: text/plain; charset=windows-1252 > > Hi, > > I want to drag an object around (a gr

"Reading, Writing, Arithmetic, and Lately, Coding"

2014-05-12 Thread Jim Hurley
There was an article in this Sunday's NYT that should be of interest to RunRev. It describes how "coding" is taking its place beside "reading 'riting and 'ritmatic" in early education. Here is the link to the article: http://www.nytimes.com/2014/05/11/us/reading-writing-arithmetic-and-latel

Re: New chunks

2014-03-16 Thread Jim Hurley
ype: text/plain; charset=ISO-8859-1 > > Hi Jim, > Have you ever tried the sqlite fts virtual table? It's specifically > designed for text searching and is lightening fast. Certainly an extra > step load stuff into a sneak but might be worth a look. > > Pete > lcSQL So

Re: New chunks

2014-03-16 Thread Jim Hurley
t: Re: New chunks > Message-ID: <5865b76a-362c-44a2-97e6-1bf49181a...@gmail.com> > Content-Type: text/plain; charset=windows-1252 > > On Mar 15, 2014, at 7:05 PM, Jim Hurley wrote: > >> The following app allows one to put any text into a field and search for any >> or al

Re: New chunks

2014-03-15 Thread Jim Hurley
Just thought of a situation I didn’t deal with. The apostrophe is tricky. In doing a word search, you would want to kept the apostrophe in the word “don’t” but probably not in “Howard’s best friend is his dog.” “Howard’s” should appear in the found sentence but not in the word search, i.e. If y

Re: New chunks

2014-03-15 Thread Jim Hurley
> > Message: 3 > Date: Sat, 15 Mar 2014 11:30:06 -0400 > From: "Peter M. Brigham" > To: How to use LiveCode > Subject: Re: New chunks > Message-ID: > Content-Type: text/plain; charset=windows-1252 > > On Mar 13, 2014, at 11:51 AM, Jim Hurley wrote: &

Re: New chunks

2014-03-13 Thread Jim Hurley
chunks > Message-ID: > Content-Type: text/plain; charset=us-ascii > > > On 13 Mar 2014, at 04:48, Jim Hurley wrote: >> >> So I really can't see the purpose of RR's "sentence chunk". I wish they >> would explain. >> > > We

Re: New chunks

2014-03-12 Thread Jim Hurley
n a period and processing everything in-between. It?s > doubtful a number would end in a period without it being the end of a > sentence. > > Bob > > > On Mar 11, 2014, at 15:34 , Jim Hurley wrote: > >> Can someone explain how the ?sentence" chunk would work?

Re: New chunks

2014-03-12 Thread Jim Hurley
Let me try this again. In “sentence (breaks on unicode sentence boundaries)” how does RR distinguish between the multiple uses of the period? Jim ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscrib

Re: New chunks

2014-03-11 Thread Jim Hurley
Can someone explain how the “sentence" chunk would work? How are decimal points, and points in an abbreviation distinguished from the “period” that deliniates the end of a “sentence?” Does it presume that the exitsing text has special embedded “periods?” I’ve written my own, but it is very cumber

Re: Wolfram language

2014-02-27 Thread Jim Hurley
> > Message: 3 > Date: Wed, 26 Feb 2014 09:35:12 -0800 > From: Richard Gaskin > To: use-livecode@lists.runrev.com > Subject: Re: Wolfram language > Message-ID: <530e25d0.5030...@fourthworld.com> > Content-Type: text/plain; charset=windows-1252; format=flowed &g

Re: Wolfram language

2014-02-26 Thread Jim Hurley
> > Message: 29 > Date: Tue, 25 Feb 2014 20:22:48 -0800 > From: Richard Gaskin > To: use-livecode@lists.runrev.com > Subject: Re: Wolfram language > Message-ID: <530d6c18.3080...@fourthworld.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Did you see what [-hh] cooked up i

Extracting emails from mac mail

2014-02-04 Thread Jim Hurley
I seem to recall that it was possible to extract the text from MAC Mail Mail boxes. Am I dreaming? Jim Hurley ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Re: the points of graphic

2014-01-19 Thread Jim Hurley
Thanks, Klaus, and sorry Michael. I forgot. I have sine and cosine functions in the stack script: function sine tAngle return sin(tAngle /180*pi) end sine Similarly for the cosine. Jim > Hi Michael, > > Am 19.01.2014 um 16:41 schrieb Michael Kristensen < > michael-kristensen at dsa-net.dk >

Re: the points of graphic

2014-01-19 Thread Jim Hurley
eometric shape using several of the existing > tools (an L shape, but with round ends, by using circles). > > Then, with math wizard code, trace the outer overall shape into the points > of a single new polygon. > > THAT would be uber-useful! > > ~Roger > On Jan 18, 2014

Re: the points of graphic

2014-01-18 Thread Jim Hurley
> > Message: 2 > Date: Fri, 17 Jan 2014 16:00:43 +0200 > From: j...@souslelogo.com > To: use-revolut...@lists.runrev.com > Subject: the points of graphic > Message-ID: > Content-Type: text/plain;charset=iso-8859-1 > > Hi list, > > Is there a way to get the points of a Regular Polygon > graphic,

Re: With Apple script no longer supported, how do I....

2013-08-07 Thread Jim Hurley
(?) for the novice, made it traumatic for experienced programers. Jim > > > On Tue, Aug 6, 2013 at 5:55 PM, Jim Hurley wrote: > >> Election season is fact approaching in my county. I do a lot of election >> DB work. >> >> One thing I have long relied on

With Apple script no longer supported, how do I....

2013-08-06 Thread Jim Hurley
go to layout "list" get every record of layout "list" end try end transaction end tell It was slow but it worked. With Apple script gone, will there remain a way to script in LC a way to extract info from FM? Please tell me this is a naiv

Re: [OT] Google Math Fun

2013-07-10 Thread Jim Hurley
Curses! And recurses! I meant "recursive" not "iterative." Jim > Hi Scott, > > Google math is great. It will even evaluate factorials up to about 170. 170! > = 7.257416e+306 > > Most calculators show an overflow beyond 60! > > But Wolfram alpha will evaluate 300! = > 3.06057512216440636035

Re: [OT] Google Math Fun

2013-07-10 Thread Jim Hurley
Hi Scott, Google math is great. It will even evaluate factorials up to about 170. 170! = 7.257416e+306 Most calculators show an overflow beyond 60! But Wolfram alpha will evaluate 300! = 3.0605751221644063603537046129726862938858880417 × 10^614 And God knows how much further. Live code does

Re: Polygon's share of its rectangle inconsistent?

2013-06-09 Thread Jim Hurley
> > > Message: 1 > Date: Sat, 8 Jun 2013 11:06:05 -0600 > From: Dar Scott > To: How to use LiveCode > Subject: Re: Polygon's share of its rectangle inconsistent? > Message-ID: > Content-Type: text/plain; charset=windows-1252 > > (Snip) > > I'm not sure what "singly connected" means. Does th

Re: Polygon's share of its rectangle inconsistent?

2013-06-07 Thread Jim Hurley
Hi David, Would it help if you could calculate the area of the polygons? The following determines the area of any singly connected (the area of a figure 8 is zero) closed polygon: on mouseUp put the points of grc "polygon" into tPoints put line 1 of tPoints into tStart put the number o

Re: Happy Pi day

2013-03-15 Thread Jim Hurley
I had it for dinner. It was peachy. Jim > > Message: 7 > Date: Thu, 14 Mar 2013 19:23:06 + (UTC) > From: Mark Wieder > To: use-livecode@lists.runrev.com > Subject: Happy Pi day > Message-ID: > Content-Type: text/plain; charset=us-ascii > > I would normally post this at 1:59PM, but I have

Re: Alternative To A Specific Switch Statement

2013-03-15 Thread Jim Hurley
Hi Ender, I don't know how this trig function arose in you application, but you may want to take a look at the atan2 function in Live Code. It handles all the funny things that happen at the branch cuts in the trig functions beautifully. It dispenses with the need for a switch function. Jim

Re: Editing polygon points

2013-03-07 Thread Jim Hurley
add a new line to the Points and then reposition the points. And then, as you know, there are Bezier curves. Jim Hurley > > Message: 27 > Date: Thu, 07 Mar 2013 13:28:18 + > From: John Craig > To: How to use LiveCode > Subject: Editing polygon points > Message-I

Re: Physics Engine support

2013-02-27 Thread Jim Hurley
And then, there is physics in the Physics Engine support. Jim Hurley ___ 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

Physics Engine support

2013-02-27 Thread Jim Hurley
language.) Jim Hurley ___ 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

The love formula

2013-02-15 Thread Jim Hurley
This is a little late for Valentine's day, but I was being smothered in affection yesterday ;) Here is a link to show the formula for a heart: http://www.google.com/imgres?q=the+love+formula&hl=en&client=safari&tbo=d&rls=en&biw=1335&bih=943&tbm=isch&tbnid=S0s-aYE5EW3kdM:&imgrefurl=http://9gag.c

Re: Substitute "LiveCode" for "Scratch"

2013-02-05 Thread Jim Hurley
I saw this and my first thought for LiveCode was native Turtle Graphics talking to sprites. JIm Hurley > > Message: 18 > Date: Tue, 05 Feb 2013 14:57:58 +0200 > From: Richmond > To: How to use LiveCode > Subject: Re: Substitute "LiveCode" for "Scratch" &

RE: OT: Super duper scripts in MS Word

2013-01-20 Thread Jim Hurley
Paul and Bob, Thanks. I see now. And apparently I saw this some time ago. Using the character dialog box you suggested, I see that in my existing sample, the superscript of my superscript is elevated by 3 points. I have absolutely no recollection of having set that elevation. I wish I could be

Re: OT: Super duper scripts in MS Word

2013-01-19 Thread Jim Hurley
used to be fluent with it, but no more. Is it possible to extract a chunk from the MS Equation editor so that it becomes a word "in line" with normal text? Jim > >> Jim Hurley-2 wrote >> >> This is WAY off topic, but I don't know where else to turn. >

OT: Super duper scripts in MS Word

2013-01-18 Thread Jim Hurley
tting, without success. I have tried the obvioius: FIrst create Y to the Z power, and then apply this as a superscript for X. But the power of X become YZ. Z is no longer a superscript of Y. Is there even a way to look at the underlying Word code to see how I achieves this? Jim Hurley I am thinki

Re: Capture the Trig Function from an Option Menu Button

2012-12-10 Thread Jim Hurley
in my code the positive y axis is the usual screen y axis--positive down. If you want to use the traditional cartesian y-axis--positive up-- change y0 + y to y0 - y Otherwise you trig curves will all look upside down. Jim >> On Dec 10, 2012, at 8:59 AM, Jim Hurley wrote: >

Re: Capture the Trig Function from an Option Menu Button

2012-12-10 Thread Jim Hurley
> To: How to use LiveCode > Subject: Re: Capture the Trig Function from an Option Menu Button > Message-ID: <2f8eaa01-f970-48e0-af7a-7733af7e4...@mac.com> > Content-Type: text/plain; CHARSET=US-ASCII > > This script is amazingly fast! And so are you, having apparently produ

Re: Capture the Trig Function from an Option Menu Button

2012-12-10 Thread Jim Hurley
It turns out that Do is fast enough. Here is the Do script: (The script might read a litle better by using "x" in the repeat loop instead of "i".) on mouseUp put the label of btn "myOptionMenu" into tTrigFunction --It might be necessary to take care in using the following replacements

Re: Capture the Trig Function from an Option Menu Button

2012-12-10 Thread Jim Hurley
Sorry, Roger, I guess I forgot about that part. Try the script below: >> On Dec 9, 2012, at 8:47 PM, Jim Hurley > > wrote: >> In Roger Guay's problem it is a two step process, (1) get the value for the >> trig function and then (2) a statement, and the

Re: Capture the Trig Function from an Option Menu Button

2012-12-09 Thread Jim Hurley
Hi Mark I can recall one case where Do was the perfect solution for me. It was a tutorial to help students understand the physics of the rainbow. It provided them with a mini-programing language, that allowed them to control how a ray of light might interact with a drop of water. They would write

Re: Capture the Trig Function from an Option Menu Button

2012-12-09 Thread Jim Hurley
Well, Mark, maybe not so flexible. For example, to use Do with the arctan() function in LC, as you suggest, would require you to replace the arctan text with atan text, or more likely the atan2 text, as that is how LC expresses that trig funciton. That might not be easy if arctan text exists

Reversing the end point arrow

2012-12-08 Thread Jim Hurley
In RR the start arrow and the end arrow point away from each other. I needed a line with the more traditional arrows, both pointing in the same direction along the line. The following handler will reverse the direction of the start arrow. It does so by introducing a third point ON THE LINE betwe

Re:Capture the Trig Function from an Option Menu Button

2012-12-08 Thread Jim Hurley
I put my script into a separate button. I think yours was in the Option button. Put this script into your Option button: on menuPick pItemName put field 1 into tAngle --Or wherever your angle is located put tAngle*pi/180 into tAngle put pItemName into tTrigFunct switch tTrigFunct

Re:Capture the Trig Function from an Option Menu Button

2012-12-08 Thread Jim Hurley
Hi Roger I'm sure I missed the point of this thread. I'll go through it more carefully. But could you tell me how this "mouseUP" handle fails to do the job? Thanks, Jim on mouseUp put field 1 into tAngle put tAngle*pi/180 into tAngle --put the label of btn "myOptiionMenu" into sOptio

Re: "Badge" in answer modal?

2012-11-22 Thread Jim Hurley
1 of stack "answer dialog" to tScript --Test of new loc. answer "Have I moved?" --Now restore the deafulat script if you like put "end preOpenStack" into line tLineNo of tScript set the script of card 1 of stack "answer dialog" to tScript -- Or

Re: "Badge" in answer modal?

2012-11-21 Thread Jim Hurley
ain but it continued to show in at the original screenLoc. The new script didn't seem to take. Is there a way to change the loc of the answer dialog box? There are times when it is just very inconvenient. I seem to recall a discussion of this topic some time ago. Jim Hurley On Nov 21, 201

Re: Livecode's appetite

2012-11-13 Thread Jim Hurley
Hi Mark, Thanks for your thoughtful reply. Very interesting. Quick first response: It appears there is a problem similar to that of the Uncertainty Principle in quantum mechanics, where one cannot observe the system without changing it. I went to my existing app that was open in Livecode to l

Livecode's appetite

2012-11-13 Thread Jim Hurley
I just happened to notice Livecode's CPU appetite,--as reported in the Activity Monitor. It is takes up 6.7% of the CPU available usage, even while I am using MS Word. On the other hand, Excel is using only .2% There is probably a good reason for LC's appetite. Jim ___

Re: The inverse of Interset

2012-11-10 Thread Jim Hurley
Hi Phil, Thanks very much. You solved my problem. I was unaware of "delete variable myArray[tKey]" That is very fast. It appears that this works as well: repeat for each key tKey in the keys of arrayOne delete variable arrayTwo[tKey] end repeat This provided a very simple way to "subtract" e

The inverse of Interset

2012-11-10 Thread Jim Hurley
and so using "is among" on the keys is not an option. Jim Hurley ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.c

Re: [OT] Looking For OS X Troubleshooting Suggestions 22

2012-09-15 Thread Jim Hurley
t: Re: [OT] Looking For OS X Troubleshooting Suggestions 22 > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > On Fri, Sep 14, 2012 at 3:07 AM, Jim Hurley wrote: > > >> But I have one more very sophisticated diagnostic test I perform. I >> li

Re: [OT] Looking For OS X Troubleshooting Suggestions 22

2012-09-13 Thread Jim Hurley
> > -- > > Message: 6 > Date: Thu, 13 Sep 2012 08:53:37 -0700 > From: Bob Sneidar > To: How to use LiveCode > Subject: Re: [OT] Looking For OS X Troubleshooting Suggestions > Message-ID: > Content-Type: text/plain; charset=us-ascii > > If spotlight is failing it is

Re: Word chunk includes punctuation

2012-08-15 Thread Jim Hurley
meone would post a line or two of text, the quintessential challenge, to demonstrate where the problems lie. Jim Hurley ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscri

Re: Word chunk includes punctuation

2012-08-15 Thread Jim Hurley
> > Message: 27 > Date: Tue, 14 Aug 2012 14:41:48 -0500 > From: "J. Landman Gay" > To: How to use LiveCode > Subject: Re: Word chunk includes punctuation > Message-ID: <502aa9fc.3000...@hyperactivesw.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 8/14/12 12:47 AM, Sco

Re: Word chunk includes punctuation

2012-08-13 Thread Jim Hurley
> > Message: 21 > Date: Mon, 13 Aug 2012 17:00:28 -0500 > From: "J. Landman Gay" > To: How to use LiveCode > Subject: Re: Word chunk includes punctuation > Message-ID: <502978fc.5080...@hyperactivesw.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 8/13/12 4:45 PM, Bob

Re: making a graphic the shape of a bitmap

2012-07-29 Thread Jim Hurley
for graphics. > Colin, When you say, "there doesn't seem to be a way to edit a graphic's shape" how do you mean? There is "Reshape graphic" under the Object menu for manual editing. Or did you mean something more sophisticated? Jim Hurley ___

Re: Any suggestions?

2012-07-24 Thread Jim Hurley
> > Message: 7 > Date: Mon, 23 Jul 2012 20:54:14 -0500 > From: "J. Landman Gay" > To: How to use LiveCode > Subject: Re: Any suggestions? > Message-ID: <500e0046.2010...@hyperactivesw.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 7/23/12 8:44 PM, Peter M. Brigham wro

Re: The future of LiveCode

2012-07-20 Thread Jim Hurley
-after the basic theory. Jim Hurley Emeritus Professor of Physics, Univ. of California > > Message: 22 > Date: Fri, 20 Jul 2012 09:02:17 -0400 (EDT) > From: "stgoldb...@aol.com" > To: use-livecode@lists.runrev.com > Subject: The future of LiveCode > Message-I

Re: Hanoi Tower programming challenge...

2012-07-19 Thread Jim Hurley
Bob, Everybody finds these recursive algorithms hard, really hard, especially the Tower of Hanoi. Trouble is you can't start at the top. Start recursion with the factorial function. The factorial of 9 is 9 * factorial(8) and so on. Therefore: function Factorial n if n = 1 then retu

Re: Hanoi Tower programming challenge...

2012-07-19 Thread Jim Hurley
. > > Assuming you have any idea what I'm talking about, how many lines of LiveCode > would you need to print out all the steps of solving a Hanoi Tower game? > Colin, How about this? I think this is the classic recursive solution. Jim Hurley on mouseUp ask "How ma

Re: ANN: Stars

2012-06-23 Thread Jim Hurley
Hi Ken, I agree with you about RevOnline being a priority. Surly, if they haven't the time for that, they haven't the time to promote LC in education. If that should ever happen, I believe TG would have to be integral to LC, if it is to be taken seriously. Libraries do not provide the visibil

Re: ANN: Stars

2012-06-23 Thread Jim Hurley
in; charset=us-ascii > > Hi Ken, > > Look at this website published by Jim Hurley: > http://home.infostations.net/jhurley/ > > > Ken Corey wrote >> >> [snip] >> Why should Mr. Miller and crew implement turtle graphics when it's quite >> possible for

Re: ANN: Stars

2012-06-23 Thread Jim Hurley
Hi Alejandro, I never taught such a course. I did write a book some time back: Turtle Physics, Holt, Reinhard, and Winston, 1985. Also in Spanish: Fisica con Logo. That implementation of TG was in LOGO, not LiveCode. LOGO was a product of the MIT multimedia lab and was an outgrowth of an MIT p

ANN: Stars

2012-06-22 Thread Jim Hurley
As LiveCode announcements go, this one is pretty low key. All "Stars" does is provide the code for drawing a star. But there is a lesson for LiveCode to learn from the lowly five-pointed star, the one on the US flag. A star may be viewed in two ways: 1) Analytical Cartesian Geometry: A collec

Re: Sort of a problem

2012-05-12 Thread Jim Hurley
Thanks Peter. But I live in a very conservative county. None of yer fancy diagonals here. NW indeed! Actually it is the County election database, and a search reveals only N, E, S, and W. I think I finally get the phrase "by of each". Live Code does pretty much what I did, except I'm sure

Re: Sort of a problem

2012-05-11 Thread Jim Hurley
Thanks Jerry. That is what I was looking for. There is some magic going on behind the scenes with that "by ... of each" that I never really caught on to. Jim > > Message: 5 > Date: Thu, 10 May 2012 21:23:36 -0700 > From: Jerry Jensen > To: How to use LiveCode > Subject: Re: Sort of a proble

  1   2   >