Re: [on-rev] LC cron jobs?

2012-01-16 Thread Mark Schonewille
Hi Phil, A cron job needs a correct terminal command. If you can type it in your terminal (e.g. over ssh) and don't need to enter a password and other additional information then you can also use it as a cron job. I wonder if it would work if you start your script with #!/path/to/lc/server

Re: [on-rev] LC cron jobs?

2012-01-16 Thread Andre Garzia
You can also create a lc script and call it with curl such as curl http://myserver/mycron.lc This way, you don't need to know the path to the engine. On Mon, Jan 16, 2012 at 8:51 AM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Hi Phil, A cron job needs a correct terminal

Re: Session strategies for liveCode server

2012-01-16 Thread Malte Brill
Thank you all for the feedback. This is on a LAN and I will be able to use the 5.x engine there, so it seems $_session will be my friend. Will need to put a little work into it. Alex, facebook authentication sounds interesting, however, will not be something I can do for this project. for

Re: Determine 180 degree turn using compass

2012-01-16 Thread Peter M. Brigham, MD
... or just: if tDegrees 0 then put (360 + tDegrees) into tDegrees or, with no conditional at all: put (360 + tDegrees) wrap 360 into tDegrees -- works for all values, positive or negative -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Jan 16, 2012, at

RE: Determine 180 degree turn using compass

2012-01-16 Thread Sumner, Walt
Tim, Does a lap potentially include a figure 8? You will be on the same heading twice per lap in a figure 8, but you could monitor the sweep of headings to capture that possibility. Maybe a lap requires a reasonable progression through southern, eastern, northern, and western headings. --WS

Re: [on-rev] LC cron jobs?

2012-01-16 Thread Mike Bonner
If you don't want toe first line #! to output you can do another method. Use a shell script with #!/bin/bash (wherever bash resides) then /path/to/livecode scripttorun Otherwise (unless they've changed things in the recent versions) lc will output the #! line as part of the output. On Mon, Jan

Visual Effects in LC 5.0.2

2012-01-16 Thread Randy Hengst
Hi All, I'm playing around with visual effects. Can anyone tell me why the below won't work for the mouseUp when both handlers are placed in the same button? on mouseDown lock screen for visual effect set the visible of graphic Chip02 to not the visible of graphic Chip02 unlock screen

Re: Visual Effects in LC 5.0.2

2012-01-16 Thread Michael Kann
Randy, I'm using 4.0 and it works if you use lock screen instead of lock screen for visible effect Mike --- On Mon, 1/16/12, Randy Hengst iowahen...@mac.com wrote: From: Randy Hengst iowahen...@mac.com Subject: Visual Effects in LC 5.0.2 To: How to use Revolution

Re: Visual Effects in LC 5.0.2

2012-01-16 Thread Randy Hengst
Mike, It works in 5.0.2 that way, too. But, then you can't use visual effects. In fact, the visual effect in the mouseDown is blocking the entire mouseUp. Doesn't seem to matter what's in the mouseUp… it's not carried out unless you hold the button down until the entire visual effect is

Re: Getting the Date and Time From a Remote Computer

2012-01-16 Thread Gregory Lypny
Thanks again, Mike! Much obliged. Gregory On Mon, Jan 16, 2012, at 6:16 AM, use-livecode-requ...@lists.runrev.com wrote: Message: 9 Date: Sun, 15 Jan 2012 12:52:33 -0700 From: Mike Bonner bonnm...@gmail.com To: How to use LiveCode use-livecode@lists.runrev.com Subject: Re: Getting the

mySQL integer types

2012-01-16 Thread Bob Sneidar
Hi all. I am a little bit concerned with defining integer types. The manual defines INT as using 4 bytes for storage, for a maximum of 4294967296 values. However, I read somewhere (possibly here) that for auto incrementing keys I should use int(64) the maximum allowed. Does that mean that my

Re: Visual Effects in LC 5.0.2

2012-01-16 Thread BNig
Hi Randy, the mouseUP does not get sent while the visual effect is in progress. As one can see in the Message Watcher. If that qualifies as a bug I don't know. if you really want to have the effects on mouseDown and the next effect when the mouse is up then the only workaround I found is this:

macToIso

2012-01-16 Thread Melitón Cardona Torres
In a program designed to teach Spanish orthography to children (and a few adults), I have six fields that contain those chars: Á É Í Ó Ú Ü (accented vowels). They are supposed to be moved ans dropped into words that lack the right accents. It works fine on Mac. The Dictionary states that:

mySQL integer types

2012-01-16 Thread Bob Sneidar
Upon further investigation, I see that the number supplied as an argument to the data type is the actual number of digits or significant bits. I guess for my purposes bigint is all I will need for things like uniqueid's. I can write an overflow function at some point that will use vacated

Re: [on-rev] LC cron jobs?

2012-01-16 Thread Phil Davis
Thanks so much guys! I went with Andre's 'curl' suggestion since I don't know the path to the livecode server engine. Phil On 1/16/12 6:38 AM, Mike Bonner wrote: If you don't want toe first line #! to output you can do another method. Use a shell script with #!/bin/bash (wherever bash

Copy to Group problems - solved!

2012-01-16 Thread user
First of all, thanks to all of you who offered advice on this problem, with special thanks to Craig Newman for definitively pointing out that The last keyword is not stable when referring to groups. - apparently a LC bug After doing a little exploring through the dictionary for a workaround, I

Re: mySQL integer types

2012-01-16 Thread Jan Schenkel
INT(64) is a 64-bits integer, so 8 instead of 64 bytes :-) Still, that limit should keep you safe for some time to come... Jan Schenkel. = Quartam Reports PDF Library for LiveCode www.quartam.com = As we grow older, we grow both wiser and more foolish at the same time. (La

Re: Visual Effects in LC 5.0.2

2012-01-16 Thread Randy Hengst
Hi Bernd I like your idea… I simply placed everything in the mouseDown as the workaround. Don't know if it's a bug or not. be well, randy --- On Jan 16, 2012, at 1:16 PM, BNig wrote: Hi Randy, the mouseUP does not get sent while the visual effect is in progress. As one can see in the

Re: mySQL integer types

2012-01-16 Thread Pete
Hi Bob, Int(64) refers to the external display of a column, not its internal storage space. As you mentioned INT takes 4 bytes of storage but its external display format can be up 10 chars. I guess if you're really concerned about it, you could use BIGINT but there is no theoretical software

Subject: RE: Determine 180 degree turn using compass

2012-01-16 Thread Mark Rauterkus
Hi, Almost all of my laps are on a straight line. Back and forth we go. Swimmers in a pool. Mark R -- -- Ta. Mark Rauterkus mark.rauter...@gmail.com http://Rauterkus.blogspot.com http://FixPA.wikia.com http://CLOH.wikia.com 412 298 3432 = cell

Re: mySQL integer types

2012-01-16 Thread Bob Sneidar
On Jan 16, 2012, at 12:56 PM, Pete wrote: In SQLite, if you define an INTEGER PRIMARY KEY column with AUTOINCREMENT keyword, primary key values are always allocated as the next highest value for the table, but if you omit the AUTOINCREMENT, then values freed up by deleted rows may get

Re: Copy to Group problems - solved!

2012-01-16 Thread J. Landman Gay
On 1/16/12 2:17 PM, user wrote: First of all, thanks to all of you who offered advice on this problem, with special thanks to Craig Newman for definitively pointing out that The last keyword is not stable when referring to groups. - apparently a LC bug I'm not sure it's really a bug. I think

Re: mySQL integer types

2012-01-16 Thread stephen barncard
I remember in Trevor's original DB abstraction library (before SQL Yoga) he used a manual indexing method, instead using a special table of indexes for each table that is used. That allowed the changing the actual value of the keys if needed. Automatic indexing is a feature that is not mandatory,

Re: Copy to Group problems - solved!

2012-01-16 Thread Mark Wieder
Jacque- Monday, January 16, 2012, 1:28:22 PM, you wrote: I'm not sure it's really a bug. I think the last keyword refers to the highest-numbered object. If you put an object into a group, it won't be the highest number unless the enclosing group is also the highest numbered object. English

CommandKeyDown whichKey - how do I easily reference keypad numbers on Mac

2012-01-16 Thread Alan Gayne
Greetings listMates, I've got a series of similar keyboard shortcuts that are called by a commandKeyDown whichKey combination, where whichKey is intended to be a number. on commandKeyDown whichKey switch whichKey case 1 (do stuff)

Re: Copy to Group problems - solved!

2012-01-16 Thread Bob Sneidar
OIC not the last object that was created but the last object in the numbered list of objects! I think you may be right about that! Bob On Jan 16, 2012, at 1:28 PM, J. Landman Gay wrote: On 1/16/12 2:17 PM, user wrote: First of all, thanks to all of you who offered advice on this problem,

Re: CommandKeyDown whichKey - how do I easily reference keypad numbers on Mac

2012-01-16 Thread Bob Sneidar
I have found that key handling can be iffy for keys not part of the normal characters. For instance, someone was having issues with the arrowKey message. It only seems to be generated with one or two of the arrow keys. People in your situation end up using rawKeyDown and figuring out what those

Re: CommandKeyDown whichKey - how do I easily reference keypad numbers on Mac

2012-01-16 Thread J. Landman Gay
On Jan 16, 2012, at 3:17 PM, Alan Gayne wrote: No issue at all when whichKey is one of the numbers at the top of the QUERTY keyboard, but when I try to use the commandKeyDown number combination using the numbers on the extended keyboard keypad it didn't work. You could do a quick translation

Re: CommandKeyDown whichKey - how do I easily reference keypad numbers on Mac

2012-01-16 Thread J. Landman Gay
On 1/16/12 9:26 PM, J. Landman Gay wrote: On Jan 16, 2012, at 3:17 PM, Alan Gayne wrote: No issue at all when whichKey is one of the numbers at the top of the QUERTY keyboard, but when I try to use the commandKeyDown number combination using the numbers on the extended keyboard keypad it

Re: Determine 180 degree turn using compass

2012-01-16 Thread Kay C Lan
Hi Thomas, To me, determining laps by heading seems to be very inaccurate, but I don't fully understand your requirements. The only thing I suggest is using the 'accuracy' value as returned by the iPhoneCurrentHeading() function rather than your current fixed value of 150. If the number is very