Re: Lock screen challenge

2022-11-22 Thread J. Landman Gay via use-livecode

On 11/22/22 3:27 PM, Brian Milby via use-livecode wrote:

One option to use an external editor would be ScriptTracker.  You could export 
the scripts, do your bulk changes, and then import them back.


That's worth a thought. Thanks.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


___
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: Lock screen challenge

2022-11-22 Thread J. Landman Gay via use-livecode

On 11/22/22 3:08 PM, Geoff Canyon via use-livecode wrote:

A random thought: if you converted to script-only stack behaviors first,
then you would have a bunch of text files you can use whatever tool you
like on.


This project is a huge HC world. There are a lot of stacks, hundreds of cards, and probably 
thousands of controls. It's written the old HC way, so behaviors probably wouldn't help; almost 
every control is independent and performs a different action. I've already converted the few 
common actions to a backscript, but there's nothing much to hang a behavior on.



Navigator has support for test-based filtering of controls, and can
copy/paste scripts, but it doesn't support copying/pasting to more than one
control at a time. That would be an interesting problem to solve. What's
your time frame?


Indeterminate, but not infinite. ;) I won't need to copy scripts though, every one of them is 
different. It's truly old-style HC. In fact, I'm still running with HCAddressing set to true, 
which breaks the property inspector a lot. My next task is to get rid of that.



My first thought is to export all scripts to a single file, with customized
headers for each object (maybe with a user-definable format). Then look for
that same format when pasting, to restore/update the scripts. Does that
make sense? Or would it be better to have an export function to create
individual files, one ofr each control, with the script in the file? That's
probably more robust, but not everyone knows how to make bulk changes to a
bunch of text files.


Either way would probably work for most things, though if you exported all the controls in this 
project to a single file, you'd have a 20 MB novel. TBH, I already have a handler somewhere 
that writes out all scripts in a stack with headers; an old HC friend wrote it 30 years ago and 
it still works. Maybe I can dig that up.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


___
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: Lock screen challenge

2022-11-22 Thread J. Landman Gay via use-livecode

Yup. That happens, and I thought of it. I'm still trying to figure out how to 
approach this.

On 11/22/22 3:50 PM, Ralph DiMola via use-livecode wrote:

Not to be Johnny Rain Cloud... What if handler "A" locks and it calls either hander "B" 
OR handler "C" to unlock?

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
J. Landman Gay via use-livecode
Sent: Monday, November 21, 2022 10:48 PM
To: How to use LiveCode
Cc: J. Landman Gay
Subject: Re: Lock screen challenge

Thanks to both you and Craig. I couldn't think of any other way to do it 
either, but was hoping there was something other than brute force. Magic, 
maybe. It took LC's search/replace dialog a long time just to find all the 
instances, and actually editing them will be longer. But, it's just a one-off.

Craig, I posted here because I more comfortable with it, and because more 
old-timers tend to be on the list.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | 
http://www.hyperactivesw.com On November 21, 2022 3:45:16 PM Paul Dupuis via 
use-livecode  wrote:


I was also going to suggest just brute forcing it. Something like:
(code not complete or syntax checked)

repeat with i=1 to the number of stacks
   repeat with j = 1 to the number of cards in stack i
 repeat with k= 1 to the number of controls of card j of stack i
   put the script of control k of card j of stack i into tScript
   -- look through the lines of tScript for "lock screen", note the
line number A, then search from there onward for "unlock screen" and
note the line number B
   -- if line B begins with (after trimming spaces) "unlock screen
with" then
  -- replace line B with "unlock screen with visual effect"
 -- and replace line A with "lock screen for visual effect"
 end repeat
   end repeat
end repeat


On 11/21/2022 4:30 PM, Craig Newman via use-livecode wrote:

Jacque.

Why aren’t you on the forum?

Cant you just loop through each line in your handlers, and find the
ones that contain “lock screen”, both with and without the visual effect thing.
Search downstream until you find the “unlock” line, That gives you
the start and finish lines for each handler. Then you can just
replace the start and finish lines with the new ones.

Am I missing this?

Craig


On Nov 21, 2022, at 4:24 PM, J. Landman Gay via use-livecode
 wrote:

I'm updating a very old set of stacks that use old HC syntax for
"lock screen". A search with LC's Find utility says there are 723
instances that may need to be changed. Right now they look like this:

lock screen
-- do any number of things
unlock screen with 

These all need to be changed to:

lock screen for visual effect
-- do any number of things
unlock screen with visual effect 

The challenge is that not all "lock screen" commands use a visual
effect, some are simple lock/unlock pairs. I need to automate this.
The visual effects are not all the same. Some handlers have multiple
instances of locking the screen with or without a visual effect.

I'd use a regex if I could, but back references aren't supported (or
are they now?) I really don't want to do this manually.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
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



___
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


___
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


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.

RE: Lock screen challenge

2022-11-22 Thread Ralph DiMola via use-livecode
Not to be Johnny Rain Cloud... What if handler "A" locks and it calls either 
hander "B" OR handler "C" to unlock?

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
J. Landman Gay via use-livecode
Sent: Monday, November 21, 2022 10:48 PM
To: How to use LiveCode
Cc: J. Landman Gay
Subject: Re: Lock screen challenge

Thanks to both you and Craig. I couldn't think of any other way to do it 
either, but was hoping there was something other than brute force. Magic, 
maybe. It took LC's search/replace dialog a long time just to find all the 
instances, and actually editing them will be longer. But, it's just a one-off.

Craig, I posted here because I more comfortable with it, and because more 
old-timers tend to be on the list.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | 
http://www.hyperactivesw.com On November 21, 2022 3:45:16 PM Paul Dupuis via 
use-livecode  wrote:

> I was also going to suggest just brute forcing it. Something like: 
> (code not complete or syntax checked)
>
> repeat with i=1 to the number of stacks
>   repeat with j = 1 to the number of cards in stack i
> repeat with k= 1 to the number of controls of card j of stack i
>   put the script of control k of card j of stack i into tScript
>   -- look through the lines of tScript for "lock screen", note the 
> line number A, then search from there onward for "unlock screen" and 
> note the line number B
>   -- if line B begins with (after trimming spaces) "unlock screen 
> with" then
>  -- replace line B with "unlock screen with visual effect"
> -- and replace line A with "lock screen for visual effect"
> end repeat
>   end repeat
> end repeat
>
>
> On 11/21/2022 4:30 PM, Craig Newman via use-livecode wrote:
>> Jacque.
>>
>> Why aren’t you on the forum?
>>
>> Cant you just loop through each line in your handlers, and find the 
>> ones that contain “lock screen”, both with and without the visual effect 
>> thing.
>> Search downstream until you find the “unlock” line, That gives you 
>> the start and finish lines for each handler. Then you can just 
>> replace the start and finish lines with the new ones.
>>
>> Am I missing this?
>>
>> Craig
>>
>>> On Nov 21, 2022, at 4:24 PM, J. Landman Gay via use-livecode 
>>>  wrote:
>>>
>>> I'm updating a very old set of stacks that use old HC syntax for 
>>> "lock screen". A search with LC's Find utility says there are 723 
>>> instances that may need to be changed. Right now they look like this:
>>>
>>> lock screen
>>> -- do any number of things
>>> unlock screen with 
>>>
>>> These all need to be changed to:
>>>
>>> lock screen for visual effect
>>> -- do any number of things
>>> unlock screen with visual effect 
>>>
>>> The challenge is that not all "lock screen" commands use a visual 
>>> effect, some are simple lock/unlock pairs. I need to automate this. 
>>> The visual effects are not all the same. Some handlers have multiple 
>>> instances of locking the screen with or without a visual effect.
>>>
>>> I'd use a regex if I could, but back references aren't supported (or 
>>> are they now?) I really don't want to do this manually.
>>>
>>> --
>>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>>> HyperActive Software   | http://www.hyperactivesw.com
>>>
>>> ___
>>> 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
>
>
> ___
> 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


___
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: Lock screen challenge

2022-11-22 Thread Geoff Canyon via use-livecode
Yep, that makes sense. Looks nice!

On Tue, Nov 22, 2022 at 1:28 PM Brian Milby via use-livecode <
use-livecode@lists.runrev.com> wrote:

> One option to use an external editor would be ScriptTracker.  You could
> export the scripts, do your bulk changes, and then import them back.
>
> Brian Milby
> br...@milby7.com
>
> > On Nov 22, 2022, at 4:10 PM, Geoff Canyon via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > A random thought: if you converted to script-only stack behaviors first,
> > then you would have a bunch of text files you can use whatever tool you
> > like on.
> >
> > gc
> >
> >> On Mon, Nov 21, 2022 at 1:25 PM J. Landman Gay via use-livecode <
> >> use-livecode@lists.runrev.com> wrote:
> >>
> >> I'm updating a very old set of stacks that use old HC syntax for "lock
> >> screen". A search with
> >> LC's Find utility says there are 723 instances that may need to be
> >> changed. Right now they look
> >> like this:
> >>
> >> lock screen
> >> -- do any number of things
> >> unlock screen with 
> >>
> >> These all need to be changed to:
> >>
> >> lock screen for visual effect
> >> -- do any number of things
> >> unlock screen with visual effect 
> >>
> >> The challenge is that not all "lock screen" commands use a visual
> effect,
> >> some are simple
> >> lock/unlock pairs. I need to automate this. The visual effects are not
> all
> >> the same. Some
> >> handlers have multiple instances of locking the screen with or without a
> >> visual effect.
> >>
> >> I'd use a regex if I could, but back references aren't supported (or are
> >> they now?) I really
> >> don't want to do this manually.
> >>
> >> --
> >> Jacqueline Landman Gay | jac...@hyperactivesw.com
> >> HyperActive Software   | http://www.hyperactivesw.com
> >>
> >> ___
> >> 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
>
> ___
> 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: Lock screen challenge

2022-11-22 Thread Geoff Canyon via use-livecode
One small point on this: it doesn't matter since we're dealing with HC
files here, but in LC there can be backgrounds that don't appear on any
card. So it would be necessary to add:

   repeat with j = 1 to the number of backgrounds in stack i
 repeat with k= 1 to the number of controls of background j of stack i

Note that this *doesn't* guarantee a single loop through all the controls.
The code would need to handle controls in groups that appear on multiple
cards. In Navigator I needed something like this. I created this, some of
which I wrote years ago, and no warranty is expressed or implied:

function allIDsOfStack stackID
   local tReturnIDList

   put empty into tReturnIDList
   repeat for each line bgID in backgroundIDsOf(stackID)
  put allControlIDsOf(bgID) after tReturnIDList
   end repeat
   repeat for each line cdID in cardIDsOf(stackID)
  put nonGroupChildControlIDsOf(cdID) after tReturnIDList
   end repeat
   return (the long id of stackID) & cr & tReturnIDList
end allIDsOfStack

function allControlIDsOf pContainerID
   local cIDend, cIDendString, controlIDList, controlList
   if not exists(pContainerID) then return empty
   put the long id of pContainerID into pContainerID
   --breakpoint
   switch word 1 of the name of pContainerID
  case "stack"
 return allIDsOfMainstack(pContainerID)
  case "card"
 put the controlIDs of pContainerID into controlList
 if controlList is empty then return pContainerID & cr
 repeat for each line cID in controlList
put (the long id of control id cID of pContainerID) & cr after
controlIDList
 end repeat
 return pContainerID & cr & controlIDList
  case "group"
 if word -6 of pContainerID is "card" then put -7 into cIDend else
put -10 into cIDend
 put (word cIDend + 5 to -1 of pContainerID) & cr into cIDendString
 put the controlIDs of pContainerID into controlList
 if controlList is empty then return pContainerID & cr
 repeat for each line cID in controlList
put "control" && (word 2 to cIDend of the long id of control id
cID of pContainerID) && cIDendString after controlIDList
 end repeat
 return pContainerID & cr & controlIDList
  default
 --return "control" && word 2 to -1 of pContainerID
 return pContainerID
   end switch
end allControlIDsOf

function allUniqueIDsOf pControlList,includeBehaviors
   local tReturn, tWorking, X

   -- returns all the controls within
   put format("group,1\ncard,2\nstack,3") into X
   split X using cr and comma
   put canonicalIDsOf(pControlList) into pControlList
   sort lines of pControlList descending by X[word 1 of each]
   --answer pControlList
   repeat for each line cID in pControlList
  --put the long id of cID into cID
  if tReturn[cID] is not empty then next repeat
  --put true into tReturn[cID]
  if includeBehaviors then
 put canonicalIDsOf(allControlIDsOf(cID),false) into tWorking
 put addBehaviorChains(tWorking) into tBehaviors
 if tBehaviors is not empty then put cr & tBehaviors after tWorking
 split tWorking by cr as set
  else
 put canonicalIDsOf(allControlIDsOf(cID),true) into tWorking
  end if
  --answer tWorking
  --split tWorking by cr as set
  union tReturn with tWorking
   end repeat
   --answer the number of lines of the keys of tReturn
   return the keys of tReturn
end allUniqueIDsOf

function nonGroupChildControlIDsOf pContainerID
   local controlIDList, tReturnIDList

   put empty into tReturnIDList
   put the long id of pContainerID into pContainerID
   put the childControlIDs of pContainerID into controlIDList
   if controlIDList is empty then return pContainerID & cr
   put "control id " before controlIDList
   replace cr with " of" && pContainerID & cr & "control id " in
controlIDList
   repeat for each line controlID in (controlIDList && "of" && pContainerID)
  if word 1 of the name of controlID is not "group" then put controlID
& cr after tReturnIDList
   end repeat
   return pContainerID & cr & tReturnIDList
end nonGroupChildControlIDsOf

function canonicalIDsOf cIDList, returnArray
   local cID, cIDend, R

   repeat for each line cIDx in cIDList
  put the long id of cIDx into cID
  if word 5 of cID is "group" then
 if word -6 of cID is "card" then put -7 into cIDend else put -10
into cIDend
 put 1 into R[word 1 to cIDend of cID && word cIDend + 5 to -1 of
cID]
  else
 put 1 into R[cID]
  end if
   end repeat
   if returnArray is true then return R else return (the keys of R) & cr
end canonicalIDsOf


function backgroundIDsOf stackID
   local backgroundIDList, bgID

   put empty into backgroundIDList
   repeat with i = 1 to 9
  if not (there is a background i of stackID) then return
backgroundIDList
  put (the long id of background i of stackID) into bgID
  if word 5 of bgID is not "group" 

Re: Lock screen challenge

2022-11-22 Thread Brian Milby via use-livecode
One option to use an external editor would be ScriptTracker.  You could export 
the scripts, do your bulk changes, and then import them back.

Brian Milby
br...@milby7.com

> On Nov 22, 2022, at 4:10 PM, Geoff Canyon via use-livecode 
>  wrote:
> 
> A random thought: if you converted to script-only stack behaviors first,
> then you would have a bunch of text files you can use whatever tool you
> like on.
> 
> gc
> 
>> On Mon, Nov 21, 2022 at 1:25 PM J. Landman Gay via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>> I'm updating a very old set of stacks that use old HC syntax for "lock
>> screen". A search with
>> LC's Find utility says there are 723 instances that may need to be
>> changed. Right now they look
>> like this:
>> 
>> lock screen
>> -- do any number of things
>> unlock screen with 
>> 
>> These all need to be changed to:
>> 
>> lock screen for visual effect
>> -- do any number of things
>> unlock screen with visual effect 
>> 
>> The challenge is that not all "lock screen" commands use a visual effect,
>> some are simple
>> lock/unlock pairs. I need to automate this. The visual effects are not all
>> the same. Some
>> handlers have multiple instances of locking the screen with or without a
>> visual effect.
>> 
>> I'd use a regex if I could, but back references aren't supported (or are
>> they now?) I really
>> don't want to do this manually.
>> 
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software   | http://www.hyperactivesw.com
>> 
>> ___
>> 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

___
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: Lock screen challenge

2022-11-22 Thread Geoff Canyon via use-livecode
My first thought is to export all scripts to a single file, with customized
headers for each object (maybe with a user-definable format). Then look for
that same format when pasting, to restore/update the scripts. Does that
make sense? Or would it be better to have an export function to create
individual files, one ofr each control, with the script in the file? That's
probably more robust, but not everyone knows how to make bulk changes to a
bunch of text files.

On Tue, Nov 22, 2022 at 1:11 PM Geoff Canyon  wrote:

> Navigator has support for test-based filtering of controls, and can
> copy/paste scripts, but it doesn't support copying/pasting to more than one
> control at a time. That would be an interesting problem to solve. What's
> your time frame?
>
> gc
>
> On Mon, Nov 21, 2022 at 1:25 PM J. Landman Gay via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> I'm updating a very old set of stacks that use old HC syntax for "lock
>> screen". A search with
>> LC's Find utility says there are 723 instances that may need to be
>> changed. Right now they look
>> like this:
>>
>> lock screen
>> -- do any number of things
>> unlock screen with 
>>
>> These all need to be changed to:
>>
>> lock screen for visual effect
>> -- do any number of things
>> unlock screen with visual effect 
>>
>> The challenge is that not all "lock screen" commands use a visual effect,
>> some are simple
>> lock/unlock pairs. I need to automate this. The visual effects are not
>> all the same. Some
>> handlers have multiple instances of locking the screen with or without a
>> visual effect.
>>
>> I'd use a regex if I could, but back references aren't supported (or are
>> they now?) I really
>> don't want to do this manually.
>>
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software   | http://www.hyperactivesw.com
>>
>> ___
>> 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: Lock screen challenge

2022-11-22 Thread Geoff Canyon via use-livecode
Navigator has support for test-based filtering of controls, and can
copy/paste scripts, but it doesn't support copying/pasting to more than one
control at a time. That would be an interesting problem to solve. What's
your time frame?

gc

On Mon, Nov 21, 2022 at 1:25 PM J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I'm updating a very old set of stacks that use old HC syntax for "lock
> screen". A search with
> LC's Find utility says there are 723 instances that may need to be
> changed. Right now they look
> like this:
>
> lock screen
> -- do any number of things
> unlock screen with 
>
> These all need to be changed to:
>
> lock screen for visual effect
> -- do any number of things
> unlock screen with visual effect 
>
> The challenge is that not all "lock screen" commands use a visual effect,
> some are simple
> lock/unlock pairs. I need to automate this. The visual effects are not all
> the same. Some
> handlers have multiple instances of locking the screen with or without a
> visual effect.
>
> I'd use a regex if I could, but back references aren't supported (or are
> they now?) I really
> don't want to do this manually.
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
>
> ___
> 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: Lock screen challenge

2022-11-22 Thread Geoff Canyon via use-livecode
A random thought: if you converted to script-only stack behaviors first,
then you would have a bunch of text files you can use whatever tool you
like on.

gc

On Mon, Nov 21, 2022 at 1:25 PM J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I'm updating a very old set of stacks that use old HC syntax for "lock
> screen". A search with
> LC's Find utility says there are 723 instances that may need to be
> changed. Right now they look
> like this:
>
> lock screen
> -- do any number of things
> unlock screen with 
>
> These all need to be changed to:
>
> lock screen for visual effect
> -- do any number of things
> unlock screen with visual effect 
>
> The challenge is that not all "lock screen" commands use a visual effect,
> some are simple
> lock/unlock pairs. I need to automate this. The visual effects are not all
> the same. Some
> handlers have multiple instances of locking the screen with or without a
> visual effect.
>
> I'd use a regex if I could, but back references aren't supported (or are
> they now?) I really
> don't want to do this manually.
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
>
> ___
> 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: Lock screen challenge

2022-11-22 Thread Jim MacConnell via use-livecode
I resemble that remark!
j

> On Nov 21, 2022, at 7:47 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> more old-timers

___
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: Lock screen challenge

2022-11-21 Thread J. Landman Gay via use-livecode
Thanks to both you and Craig. I couldn't think of any other way to do it 
either, but was hoping there was something other than brute force. Magic, 
maybe. It took LC's search/replace dialog a long time just to find all the 
instances, and actually editing them will be longer. But, it's just a one-off.


Craig, I posted here because I more comfortable with it, and because more 
old-timers tend to be on the list.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On November 21, 2022 3:45:16 PM Paul Dupuis via use-livecode 
 wrote:



I was also going to suggest just brute forcing it. Something like: (code
not complete or syntax checked)

repeat with i=1 to the number of stacks
  repeat with j = 1 to the number of cards in stack i
repeat with k= 1 to the number of controls of card j of stack i
  put the script of control k of card j of stack i into tScript
  -- look through the lines of tScript for "lock screen", note the
line number A, then search from there onward for "unlock screen" and
note the line number B
  -- if line B begins with (after trimming spaces) "unlock screen
with" then
 -- replace line B with "unlock screen with visual effect"
-- and replace line A with "lock screen for visual effect"
end repeat
  end repeat
end repeat


On 11/21/2022 4:30 PM, Craig Newman via use-livecode wrote:

Jacque.

Why aren’t you on the forum?

Cant you just loop through each line in your handlers, and find the ones 
that contain “lock screen”, both with and without the visual effect thing. 
Search downstream until you find the “unlock” line, That gives you the 
start and finish lines for each handler. Then you can just replace the 
start and finish lines with the new ones.


Am I missing this?

Craig

On Nov 21, 2022, at 4:24 PM, J. Landman Gay via use-livecode 
 wrote:


I'm updating a very old set of stacks that use old HC syntax for "lock 
screen". A search with LC's Find utility says there are 723 instances that 
may need to be changed. Right now they look like this:


lock screen
-- do any number of things
unlock screen with 

These all need to be changed to:

lock screen for visual effect
-- do any number of things
unlock screen with visual effect 

The challenge is that not all "lock screen" commands use a visual effect, 
some are simple lock/unlock pairs. I need to automate this. The visual 
effects are not all the same. Some handlers have multiple instances of 
locking the screen with or without a visual effect.


I'd use a regex if I could, but back references aren't supported (or are 
they now?) I really don't want to do this manually.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
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



___
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: Lock screen challenge

2022-11-21 Thread Paul Dupuis via use-livecode
I was also going to suggest just brute forcing it. Something like: (code 
not complete or syntax checked)


repeat with i=1 to the number of stacks
  repeat with j = 1 to the number of cards in stack i
    repeat with k= 1 to the number of controls of card j of stack i
  put the script of control k of card j of stack i into tScript
  -- look through the lines of tScript for "lock screen", note the 
line number A, then search from there onward for "unlock screen" and 
note the line number B
  -- if line B begins with (after trimming spaces) "unlock screen 
with" then

 -- replace line B with "unlock screen with visual effect"
    -- and replace line A with "lock screen for visual effect"
    end repeat
  end repeat
end repeat


On 11/21/2022 4:30 PM, Craig Newman via use-livecode wrote:

Jacque.

Why aren’t you on the forum?

Cant you just loop through each line in your handlers, and find the ones that 
contain “lock screen”, both with and without the visual effect thing. Search 
downstream until you find the “unlock” line, That gives you the start and 
finish lines for each handler. Then you can just replace the start and finish 
lines with the new ones.

Am I missing this?

Craig


On Nov 21, 2022, at 4:24 PM, J. Landman Gay via use-livecode 
 wrote:

I'm updating a very old set of stacks that use old HC syntax for "lock screen". 
A search with LC's Find utility says there are 723 instances that may need to be changed. 
Right now they look like this:

lock screen
-- do any number of things
unlock screen with 

These all need to be changed to:

lock screen for visual effect
-- do any number of things
unlock screen with visual effect 

The challenge is that not all "lock screen" commands use a visual effect, some 
are simple lock/unlock pairs. I need to automate this. The visual effects are not all the 
same. Some handlers have multiple instances of locking the screen with or without a 
visual effect.

I'd use a regex if I could, but back references aren't supported (or are they 
now?) I really don't want to do this manually.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
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



___
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: Lock screen challenge

2022-11-21 Thread Craig Newman via use-livecode
Jacque.

Why aren’t you on the forum?

Cant you just loop through each line in your handlers, and find the ones that 
contain “lock screen”, both with and without the visual effect thing. Search 
downstream until you find the “unlock” line, That gives you the start and 
finish lines for each handler. Then you can just replace the start and finish 
lines with the new ones.

Am I missing this?

Craig

> On Nov 21, 2022, at 4:24 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> I'm updating a very old set of stacks that use old HC syntax for "lock 
> screen". A search with LC's Find utility says there are 723 instances that 
> may need to be changed. Right now they look like this:
> 
> lock screen
> -- do any number of things
> unlock screen with 
> 
> These all need to be changed to:
> 
> lock screen for visual effect
> -- do any number of things
> unlock screen with visual effect 
> 
> The challenge is that not all "lock screen" commands use a visual effect, 
> some are simple lock/unlock pairs. I need to automate this. The visual 
> effects are not all the same. Some handlers have multiple instances of 
> locking the screen with or without a visual effect.
> 
> I'd use a regex if I could, but back references aren't supported (or are they 
> now?) I really don't want to do this manually.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> ___
> 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: ...and a challenge

2019-10-06 Thread Dar Scott Consulting via use-livecode
It doesn't have to be text strings. It could be data (byte strings). This would 
be handy for using the base-16 method for computing pi. In my personal "slow 
math" library, I have tinkered with binary data, float encoded data, and number 
arrays, usually using a decimal point. Division is hard. I tinkered a bit with 
interval arithmetic and want to explore that more. That way I can have 
indefinite precision decimal intervals. Add complex and I will have to change 
my library to "very slow math".

One problem is readability.

> On Oct 5, 2019, at 11:43 PM, Mark Wieder via use-livecode 
>  wrote:
> 
> On 10/5/19 8:34 PM, Colin Holgate via use-livecode wrote:
>> Pi is a reserved work, so I used pie. I haven’t seen this way of producing 
>> Pi before, and in both JavaScript and LivceCode it seems to be 
>> instantaneous. I think it’s a rewording of 4*(1-1/3+1/5-1/7+1/9…)
> 
> the Taylor algorithm is similar but different.
> 
>> Anyway, see for yourself
> 
> ...the javascript implementation is *very* fast, and one reason is the BigInt 
> support. You're not going to be able to do this in LC without resorting to 
> string chunks.
> 
>> BTW, I haven’t seen JavaScript using ‘let’ before, or having ’n’ to indicate 
>> a floating point number. That could be a dot net thing.
> 
> See Peter Wood's response.
> 
> -- 
> Mark Wieder
> ahsoftw...@gmail.com
> 
> ___
> 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: ...and a challenge

2019-10-05 Thread Mark Wieder via use-livecode

On 10/5/19 8:34 PM, Colin Holgate via use-livecode wrote:


Pi is a reserved work, so I used pie. I haven’t seen this way of producing Pi 
before, and in both JavaScript and LivceCode it seems to be instantaneous. I 
think it’s a rewording of 4*(1-1/3+1/5-1/7+1/9…)


the Taylor algorithm is similar but different.



Anyway, see for yourself


...the javascript implementation is *very* fast, and one reason is the 
BigInt support. You're not going to be able to do this in LC without 
resorting to string chunks.



BTW, I haven’t seen JavaScript using ‘let’ before, or having ’n’ to indicate a 
floating point number. That could be a dot net thing.


See Peter Wood's response.

--
 Mark Wieder
 ahsoftw...@gmail.com

___
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: ...and a challenge

2019-10-05 Thread Peter W A Wood via use-livecode
Colin

> On 6 Oct 2019, at 11:34, Colin Holgate via use-livecode 
>  wrote:
> 
> Pi is a reserved work, so I used pie. I haven’t seen this way of producing Pi 
> before, and in both JavaScript and LivceCode it seems to be instantaneous. I 
> think it’s a rewording of 4*(1-1/3+1/5-1/7+1/9…)

…

> set numberformat to “x.xxx"
> 
Your solution seems to be missing a few hundred thousand digits ;-) The 
JavaScript solution prints the first 1,000,000 digits of Pi.

Actually, the article says that the script only can produce 1,000,000 digits 
when run in a Chrome console. It will only print the first 315,633 digits in 
Firefox. (I haven’t tried that to confirm it.)

...


> BTW, I haven’t seen JavaScript using ‘let’ before, or having ’n’ to indicate 
> a floating point number. That could be a dot net thing.

“Let” was introduced into JavaScript some time ago. It provides block-level 
scope. This console session may demonstrate the difference:
>>> j = 0;
0
>>> for (var j = 0; j < 10; j++) {};
>>> print(j);
10

>>> k = 0;
0
>>> for (let k = 0; k < 10; k++) {};
>>> print(k);
0

Big Integer support was recently introduced into JavaScript. The ’n’ suffix 
denotes a Big Integer, “primitive” numbers are always floats in JavaScript.

Regards

Peter
___
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: ...and a challenge

2019-10-05 Thread Jerry Jensen via use-livecode
Does it give the correct answer for pie? I don’t think the n suffix is for 
floating point. I thought it was for expressing bigint type.

> On Oct 5, 2019, at 8:34 PM, Colin Holgate via use-livecode 
>  wrote:
> 
> 
> Pi is a reserved work, so I used pie. I haven’t seen this way of producing Pi 
> before, and in both JavaScript and LivceCode it seems to be instantaneous. I 
> think it’s a rewording of 4*(1-1/3+1/5-1/7+1/9…)
> 
> Anyway, see for yourself
> 
> on mouseup
> 
> put the ticks into t
> 
> put 1.0 into i
> 
> put 3.0 * 10^200 into x
> 
> put x into pie
> 
> repeat while (x > 0)
> 
> put x * i / ((i + 1.0) * 4.0) into x
> 
> add x / (i + 2.0) to pie
> 
> add 2.0 to i
> 
> end repeat
> 
> set numberformat to "x.xxx"
> 
> answer the ticks - t
> 
> answer (pie / (10.0 ^ 200))
> 
> end mouseup
> 
> 
> BTW, I haven’t seen JavaScript using ‘let’ before, or having ’n’ to indicate 
> a floating point number. That could be a dot net thing.
> 
> 
>> On Oct 5, 2019, at 8:33 PM, Mark Wieder via use-livecode 
>>  wrote:
>> 
>> On 10/5/19 6:01 PM, Mark Wieder via use-livecode wrote:
>>> On 10/5/19 4:57 PM, JB via use-livecode wrote:
 Hi Mark,
 I just visited the link Richard provided and it shows the following;
>>> Hah! I missed a very important word in that sentence.
>> 
>> Nonetheless, here's pi in nine lines of javascript. I haven't tried 
>> converting this yet... anyone wanna try writing this in LiveCode? And 
>> benchmarking it?
>> 
>> 



___
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: ...and a challenge

2019-10-05 Thread Colin Holgate via use-livecode

Pi is a reserved work, so I used pie. I haven’t seen this way of producing Pi 
before, and in both JavaScript and LivceCode it seems to be instantaneous. I 
think it’s a rewording of 4*(1-1/3+1/5-1/7+1/9…)

Anyway, see for yourself

on mouseup

put the ticks into t

put 1.0 into i

put 3.0 * 10^200 into x

put x into pie

repeat while (x > 0)

put x * i / ((i + 1.0) * 4.0) into x

add x / (i + 2.0) to pie

add 2.0 to i

end repeat

set numberformat to "x.xxx"

answer the ticks - t

answer (pie / (10.0 ^ 200))

end mouseup


BTW, I haven’t seen JavaScript using ‘let’ before, or having ’n’ to indicate a 
floating point number. That could be a dot net thing.


> On Oct 5, 2019, at 8:33 PM, Mark Wieder via use-livecode 
>  wrote:
> 
> On 10/5/19 6:01 PM, Mark Wieder via use-livecode wrote:
>> On 10/5/19 4:57 PM, JB via use-livecode wrote:
>>> Hi Mark,
>>> I just visited the link Richard provided and it shows the following;
>> Hah! I missed a very important word in that sentence.
> 
> Nonetheless, here's pi in nine lines of javascript. I haven't tried 
> converting this yet... anyone wanna try writing this in LiveCode? And 
> benchmarking it?
> 
> 

___
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: A Personal Challenge

2016-05-20 Thread Mark Smith
Peter Bogdanoff wrote
> After Todd’s offer I went ahead and multiplied my pledge by 10.
> 
> Peter


NICE. And thanks! I wish I could say we are almost there but it looks like
we still have a long way to go. Any suggestions?





--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/A-Personal-Challenge-tp4704836p4704999.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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: A Personal Challenge

2016-05-20 Thread Mark Smith
Mike Bonner wrote
> I feel like i'm in that  movie.. "Help me, help you..."  Pledge increased.

Brilliant! Thanks

Now, any suggestions on how to reach the "community" base to encourage them
to contribute?

Mark



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/A-Personal-Challenge-tp4704836p4704998.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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: A Personal Challenge

2016-05-20 Thread Mike Bonner
I feel like i'm in that  movie.. "Help me, help you..."  Pledge increased.
 https://youtu.be/l1B1_jQnlFk?t=1m14s

On Fri, May 20, 2016 at 1:33 AM, Kay C Lan  wrote:

> On Fri, May 20, 2016 at 6:29 AM, Mike Bonner  wrote:
>
> > Hey Heather (if you're watching this thread) If I pledge more, can I wait
> > till the first to pay up?
> >
> I know for a fact that if you contact her directly and explain your
> situation they can customise your pledge. Bend over backwards does not
> describe the willingness the LC Team have to help you help them.
>
> ___
> 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: A Personal Challenge

2016-05-20 Thread Kay C Lan
On Fri, May 20, 2016 at 6:29 AM, Mike Bonner  wrote:

> Hey Heather (if you're watching this thread) If I pledge more, can I wait
> till the first to pay up?
>
I know for a fact that if you contact her directly and explain your
situation they can customise your pledge. Bend over backwards does not
describe the willingness the LC Team have to help you help them.

___
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: A Personal Challenge

2016-05-19 Thread Mike Bonner
Truly wish I could pledge more.
Hey Heather (if you're watching this thread) If I pledge more, can I wait
till the first to pay up?

On Thu, May 19, 2016 at 2:53 PM, Paul Dupuis  wrote:

> On 5/18/2016 11:06 PM, Mark Smith wrote:
> > Thanks, now go double down!!
> >
>
> Just doubled down.
>
> ___
> 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: A Personal Challenge

2016-05-19 Thread Paul Dupuis
On 5/18/2016 11:06 PM, Mark Smith wrote:
> Thanks, now go double down!!
>

Just doubled down.

___
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: A Personal Challenge

2016-05-19 Thread Peter Bogdanoff
After Todd’s offer I went ahead and multiplied my pledge by 10.

Peter


On May 18, 2016, at 8:06 PM, Mark Smith  wrote:

> Apologies for cross posting...
> 
> In the last couple of days, 173 backers (excluding Livecode) have
> contributed $22,833 towards the Infinite Livecode campaign (or about $130
> dollars each). So first a huge THANK YOU to everyone who has contributed
> because I know times are tough. But I also know this is an incredible deal.
> First, we expand our developer base from a handful of great contributors in
> Edinburgh to well, frankly, all of us. Yes, with Infinite all of us can
> contribute in real and meaningful ways to the development of Livecode.
> That’s HUGE!  Second we get Todd’s wonderful offer of an OPEN SOURCE version
> of his wrapped WordPress functionality so (a) we can see how to do that and
> (b) we can build really great e-commerce sites for fun or profit. We get
> both of these for what? $130 ??!? Wow, that is an amazing deal.
> 
> So, here’s my challenge: I know we all know this is worth way more so I just
> went and DOUBLED my contribution. If you have contributed already I
> challenge you to do the same. I know, it’s going to hurt. I really do… I’ve
> been there :)  But only for a second and then you are going to feel really
> great about what you’ve just done for Livecode and for yourself. I guarantee
> that. As for the rest, if you have not yet contributed, we need your help
> too. So I challenge you to contribute what you can. That’s all I ask:
> contribute what you can. Because in this campaign every dollar is going to
> count towards something great.
> 
> Thanks, now go double down!!
> 
> Mark
> 
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://runtime-revolution.278305.n4.nabble.com/A-Personal-Challenge-tp4704836.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
> 
> ___
> 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: Fun programming challenge

2015-12-07 Thread Peter TB Brett

On 07/12/2015 13:45, Geoff Canyon wrote:

http://adventofcode.com

Two related problems each night at midnight EST. It started easy, but it
seems to be getting more challenging. The leaderboard is the top 100,
sorted first by how many problems you've solved, and then by the time you
submitted solutions, so it ends up being a speed competition each night. I
admit a little frustration that last night I was twice as slow as about 20
people, but maybe they didn't have to code their own left and right
bit-shift operations. (do we have those built-in and I just missed it?)


Hi Geoff,

I just checked -- there are sadly no bit shift/rotate operations in 
LiveCode Script, but we have added them to LiveCode Builder.


   Peter


--
Dr Peter Brett 
LiveCode Open Source Team

LiveCode on reddit: https://reddit.com/r/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: Fun programming challenge

2015-12-07 Thread Geoff Canyon
On Mon, Dec 7, 2015 at 9:16 AM, Mark Waddingham  wrote:

> Although it's important to remember that shift left by n bits is the same
> as multiplying by 2^n, and right is the same as div by 2^n. Rotate is a
> little trickier, admittedly.
>
> Mark
>

​Sure, I didn't say it was particularly difficult, just that it slowed me
down a bit (ha! pun!).

The values in question were limited to 16 bit, so my functions ended up as:

function rShift V,S
   return V div 2^S
end rShift

function lShift V,S
   return (V * 2^S) mod 65536
end lShift
​
___
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: Fun programming challenge

2015-12-07 Thread Mark Waddingham
Although it's important to remember that shift left by n bits is the same as 
multiplying by 2^n, and right is the same as div by 2^n. Rotate is a little 
trickier, admittedly.

Mark

Sent from my iPhone

> On 7 Dec 2015, at 14:00, Peter TB Brett  wrote:
> 
>> On 07/12/2015 13:45, Geoff Canyon wrote:
>> http://adventofcode.com
>> 
>> Two related problems each night at midnight EST. It started easy, but it
>> seems to be getting more challenging. The leaderboard is the top 100,
>> sorted first by how many problems you've solved, and then by the time you
>> submitted solutions, so it ends up being a speed competition each night. I
>> admit a little frustration that last night I was twice as slow as about 20
>> people, but maybe they didn't have to code their own left and right
>> bit-shift operations. (do we have those built-in and I just missed it?)
> 
> Hi Geoff,
> 
> I just checked -- there are sadly no bit shift/rotate operations in LiveCode 
> Script, but we have added them to LiveCode Builder.
> 
>   Peter
> 
> 
> -- 
> Dr Peter Brett 
> LiveCode Open Source Team
> 
> LiveCode on reddit: https://reddit.com/r/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

___
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: New Coding Challenge added

2015-09-07 Thread Alex Tweedly

Hi Andy,

yeah, I did eventually get the email. It was (apparently) generated 
immediately, but queued for 20 minutes before being delivered from your 
server to my server - but I can't tell whether it was a problem on your 
sage.on-rev.com or on my end (or between).


But - done now, I can try the other challenges whenever I have time :-)

Thanks
Alex.



On 07/09/2015 21:14, AndyP wrote:

Hi Alex,

I see you managed to post your answer.. thank you.

Did you get the subscription email or did you have to go to go through the
forgotten password routine?



-
Andy Piddock


My software never has bugs. It just develops random features.

Copy the new cloud space, get your free 15GB space now:
Get Copy


Script editor Themer for LC http://2108.co.uk

PointandSee is a FREE simple but full featured under cursor colour picker / 
finder.
http://www.pointandsee.co.uk  - made with LiveCode
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/New-Coding-Challenge-added-tp4696094p4696104.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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: New Coding Challenge added

2015-09-07 Thread PystCat
H... I am on sage and was having a problem sending mail.  Send one to 
another email address you have access to and see if there is a problem.  If so, 
let them know... They fixed mine right away.

Paul



> On Sep 7, 2015, at 8:36 PM, Alex Tweedly  wrote:
> 
> Hi Andy,
> 
> yeah, I did eventually get the email. It was (apparently) generated 
> immediately, but queued for 20 minutes before being delivered from your 
> server to my server - but I can't tell whether it was a problem on your 
> sage.on-rev.com or on my end (or between).
> 
> But - done now, I can try the other challenges whenever I have time :-)
> 
> Thanks
> Alex.
> 
> 
> 
>> On 07/09/2015 21:14, AndyP wrote:
>> Hi Alex,
>> 
>> I see you managed to post your answer.. thank you.
>> 
>> Did you get the subscription email or did you have to go to go through the
>> forgotten password routine?
>> 
>> 
>> 
>> -
>> Andy Piddock
>> 
>> 
>> My software never has bugs. It just develops random features.
>> 
>> Copy the new cloud space, get your free 15GB space now:
>> Get Copy
>> 
>> 
>> Script editor Themer for LC http://2108.co.uk
>> 
>> PointandSee is a FREE simple but full featured under cursor colour picker / 
>> finder.
>> http://www.pointandsee.co.uk  - made with LiveCode
>> --
>> View this message in context: 
>> http://runtime-revolution.278305.n4.nabble.com/New-Coding-Challenge-added-tp4696094p4696104.html
>> Sent from the Revolution - User mailing list archive at Nabble.com.
>> 
>> ___
>> 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

___
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: New Coding Challenge added

2015-09-07 Thread AndyP
Hi Alex,

I see you managed to post your answer.. thank you.

Did you get the subscription email or did you have to go to go through the
forgotten password routine?



-
Andy Piddock 


My software never has bugs. It just develops random features. 

Copy the new cloud space, get your free 15GB space now:
Get Copy 


Script editor Themer for LC http://2108.co.uk  

PointandSee is a FREE simple but full featured under cursor colour picker / 
finder.
http://www.pointandsee.co.uk  - made with LiveCode
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/New-Coding-Challenge-added-tp4696094p4696104.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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: New Coding Challenge added

2015-09-06 Thread Alex Tweedly
I've tried signing up, and have become bored waiting for my registration 
email.


Here's my answer 

on mouseUp
   local tInput
   put fld "FieldIn" into tInput
   if the number of words in tInput <> 2 or \
 word 1 of tInput is not a number or \
 word 2 of tInput is not a number then
  ask "must give 2 numbers"
  exit mouseUp
   end if

   local  tAPrime, tANonPrime

   repeat with i = 2 to word 2 of tInput
  if tANonPrime[i] then next repeat
  if i >= word 1 of tInput then put true into tAPrime[i]
  repeat with j = i+i to word 2 of tInput step i
 put true into tANonPrime[j]
  end repeat
   end repeat

   local tt
   put "The number of primes between" && tInput && "is" && the number 
of lines in the keys of tAPrime & CR into fld "F"

   put the keys of tAPrime  into tt
   sort lines of tt numeric

   put "and they are" & CR & tt after fld "F"


end mouseUp

Alex

On 06/09/2015 20:42, AndyP wrote:

I've added a new question to the LiveCode coding challenge section of my
site.

Determine Pi from an image of a circle

http://2108.co.uk/questions/ 

There has been 1 partial solution to the previous question

Primes between 20 and 700

Anyone feel up to improving on the current solution?



-
Andy Piddock


My software never has bugs. It just develops random features.

Copy the new cloud space, get your free 15GB space now:
Get Copy


Script editor Themer for LC http://2108.co.uk

PointandSee is a FREE simple but full featured under cursor colour picker / 
finder.
http://www.pointandsee.co.uk  - made with LiveCode
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/New-Coding-Challenge-added-tp4696094.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
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: Mainstack/substack challenge

2013-06-03 Thread Paul Hibbert
Hi Tony,

I think your problem may be the 'traversalOn' property, if I'm correct in 
understanding where the problem lies this should work (it worked OK for my 
test)…

Group your fields on the substack and set the 'traversalOn' property to false, 
then use this as the card script…

on openCard
   set the traversalOn of grp fldGroup to true
end openCard

on openField 
   put the clipboardData[text] into the target
end openField

on closeCard
   set the traversalOn of grp fldGroup to false
end closeCard

This avoids the first field opening when you switch to the card and therefore 
triggering the openField script.

Your included stack didn't make it to the list because attachments are not 
allowed, most people use Dropbox with a link to provide samples etc., but I 
think there was enough detail in your description to work out the problem.

HTH

Paul

On 2013-06-03, at 5:39 AM, MCLAWHORN, TONY wrote:

 I've included a Livecode 5.54 stack to demonstrate the problem (also tried it 
 in Windows version 6.01).   This concept of moving some clipboard data from a 
 substack to mainstack is critical to what I am wanting to do.  Kudos to 
 anyone who can make this work.
 
 The problem:   Using the included stack, put some text from a mainstack into 
 the clipboard.  Click on any of the three fields in the substack that puts 
 the clipboard text into the field that you clicked on.  Here is the card 
 script code on the card containing the three text fields that does that.
 
 on openfield 
  put the clipboardData[text] into the target
 end openfield
 
 The problem shows itself if you put some text into the clipboard from the 
 mainstack, click on a field in the substack, put some new text into the 
 clipboard, and click on a different field in the substack.  The last content 
 you put in the clipboard will be put on the field you clicked on as well as 
 the previous field you clicked on.
 
 Update:  I just tried copying some text from Notepad (Windows 7) then merely 
 clicked in the substack title/menubar area, not any of the three text fields, 
 and the content of the clipboard was put into the last field I clicked on in 
 the substack.  So a ResumeStack automatically issues an Openfield message?  
 Also moved the Openfield handlers into each of the three fields with the same 
 results.
 
 This is really so weird.  I have spent several days trying all the commands 
 and functions that I thought might fix the problem and nothing works.
 
 Thanks for any help.
 
 ---
 |
 |  Tony McLawhorn
 |  Computer Support Manager
 |  Department of History
 |  University of South Carolina
 |  Columbia, SC 29208
 |  tony...@sc.edu
 |  (803) 777-9125
 ___
 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: Another web challenge: Back button

2011-09-24 Thread Chipp Walters
Perhaps this may make my point a bit more palatable. Which one of these to
use in your next web app development?

20 JavaScript Frameworks Worth Checking Out

http://net.tutsplus.com/articles/web-roundups/20-javascript-frameworks-worth-checking-out/
 
http://net.tutsplus.com/articles/web-roundups/20-javascript-frameworks-worth-checking-out/

http://net.tutsplus.com/articles/web-roundups/20-javascript-frameworks-worth-checking-out/

-- 
Chipp Walters
CEO, Shafer Walters Group, Inc.
___
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: Another web challenge: state

2011-09-23 Thread Andre Garzia
 This issue came to light in a thread I came across in the RB forums, eager
 as I am to learn more about their implementation.

 This thread notes how Dreamhost -- where I run a great many Rev CGIs,
 including the blog at LiveCodeJournal.com -- recently nixed an RB app
 because it was attempting to maintain an open socket:
 http://forums.realsoftware.**com/viewtopic.php?f=23t=40397http://forums.realsoftware.com/viewtopic.php?f=23t=40397
 **




Andre: I guess FastCGI Server are not that fast ...
Andre picks dark sun glasses
Andre: ... when they are not running!
YYYEEEA Cue CSI Music


I told you guys I bet they were using FastCGI to maintain state and that
this was one of the hardest things to do...

Now speaking about maintaining state or my quest for LiveCode to implement
introspection thru closures and continuations. If we had a way to freeze the
computation in time like saving a game, then we could save and restore those
computation pathways with each web request. From the server point of view,
each client would be unique and a straight flow because requests could be
abstracted. If we have a way to save the memory content (Variables,
contexts...) and we save/restore with every request, the whole state
maintaining problem goes away. Squeak Web Framework called Seaside does
exactly that. It captures the computation, saves it to a session and sends
the output back, with each request, it restores the session and the
computation and goes on. Very cool and makes the stateless web, something
that looks stateful.

My current way of keeping state is by using a unique id as a cookie. This
unique id is also the name of a file in the hard drive so if the unique id
is ASDFG then there is a file like /sessions/sess_ASDFG which is an
arrayencoded text file. When the CGI launches, it reads and decodes this
array. It does whatever it needs to be done, writes the array back. This is
one of the ways that PHP $_SESSION works, it is simple to implement and the
data is not shared with the browser like storing things in the cookies
themselves. You can also use localStorage these days to keep stuff at the
client.

Cheers
andre





-- 
http://www.andregarzia.com All We Do Is Code.
___
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: Another web challenge: state

2011-09-23 Thread stephen barncard
And we now have $_SESSION in Livecode Server 5.0 ! Yes!

On 23 September 2011 12:34, Andre Garzia an...@andregarzia.com wrote:

This issue came to light in a thread I came across in the RB forums,
 eager one of the ways that PHP $_SESSION works, it is simple to implement
 and the
 data is not shared with the browser like storing things in the cookies
 themselves. You can also use localStorage these days to keep stuff at the
 client.

 Cheers
 andre


 Stephen Barncard
San Francisco Ca. USA

more about sqb  http://www.google.com/profiles/sbarncar
___
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: Another web challenge: state

2011-09-23 Thread Pierre Sahores
Richard,

Le 23 sept. 2011 à 21:19, Richard Gaskin a écrit :

 A way to avoid this is to have the app always running, as a sort of daemon 
 process, listening on a specified socket for incoming instructions.
 
 The problem with that is that it'll only be allowed on dedicated servers or 
 some VPSes; I don't know of any shared host that allows custom daemons.

Yes and i had to own dedicated servers to eun such kinf of apps along the teen 
years i used, as you probably remember, this way to go.

And, probably most important and problematic, this kind of solution runs in 
single thread mode as long as the server is build on top of a simple Rev/LC 
stack. I would't use this way to go anymore, even if i did before for years. 
Works well indeed as long as there are not too many concurrent connexions (say 
10 to 15) send to the server's stack by the PHP socket listener/translator. 

But interlocking states of the Rev/LC process could always happen is this kind 
of configurations and i had to compose with someones over the years, say one 
time peer quarter of years on my biggest running app at that time (around 2500 
enrolled clients).

On the other hand pure cgi-scripts à la metacard.mt are - at least for me - 
no far from unsuitable for agile cgi programming. Fortunaly, LC-server solved 
this all and it's yet amazingly easy to code inside a single IDE session both 
the client and server sides parts of our n-tiers apps as Stephen Brancard 
pointed it out weeks ago.

Best,
--
Pierre Sahores
mobile : 06 03 95 77 70
www.sahores-conseil.com




___
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: Another web challenge: state

2011-09-23 Thread Bob Sneidar
After all the work they have already done on IE 12.5??

Bob


On Sep 23, 2011, at 12:19 PM, Richard Gaskin wrote:

 (how nice the world would be if IE would simply die the death it deserves 
 after so many years of thumbing its nose at well-published standards).


___
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: Another web challenge: Back button

2011-09-23 Thread Chipp Walters
If it's a single page web app, ala RB's, I'd expect it to go to the previous
page-- IOW, the page which launched the app. In that case nothing would have
to be done to our translator at all! See, wasn't that easy? :-p

On Fri, Sep 23, 2011 at 1:50 PM, Richard Gaskin
ambassa...@fourthworld.comwrote:

 After thinking about the challenges of translating LC stacks into web
 pages, I remembered another issues I've had to deal with in browsers that we
 don't have to think about in LC:

 How do your app respond when the user clicks the browser's Back button?

 We have no universal Back message in LC; any navigation in our stacks is
 entirely provided by and handled by our own code.

 But users expect a meaningful response when they click their Back button -
 what will your app do?

 Should it always just bail out of the page entirely?

 In HTML, after you've click an in-page link, Back takes you back to the
 last scroll position within the page where the link was present.  So should
 it handle a scroll reversal?  Should that be a default behavior, and what
 means should be provided to override it?

 It's not unrealistic (and indeed a specific request from a client) that we
 design the web version of our LC-based app to revert back to a
 previously-displayed content section (we hide and show a lot of divs,
 generated from LC fields).

 What will your app do?

 If you hand-code that behavior, it will do whatever you like.

 But if you expect a meaningful response from an automated translator, your
 users will likely be disappointed.

 This is some sticky stuff once you get into it

 --
  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  LiveCode Journal blog: 
 http://LiveCodejournal.com/**blog.irvhttp://LiveCodejournal.com/blog.irv

 __**_
 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-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode




-- 
Chipp Walters
CEO, Shafer Walters Group, Inc.
___
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: Another web challenge: state

2011-09-23 Thread Chipp Walters
Richard,

Actually, I think a decent first step is to just create apps which run on a
single page. This removes much if not all the necessary session information
and works pretty much like typical AJAX apps do now.

Of course, later having the app being able to communicate with LC Server
might be a nice feature, too. Still, a single one-page app can do a lot of
stuff for folks!

While I agree there are too many reasons for IE to be merciful sent to the
gallows, there are also so many other inconsistencies which are issues with
regard to web design and programming. For instance, I can think of about
half a dozen different ways to put round corners on a region. And how many
different frameworks are there for multiple column CSS? And in fact, there
are now ways to program radio buttons in CSS (
http://css-tricks.com/14402-radio-buttons-with-2-way-exclusivity/). If you
read CSS-Tricks you quickly see the magnitude of the problem.

And when do I use !important? Some people say NEVER, others ALL THE TIME.
Which is it? At this point I'm thinking it's better to program raw
Postscript than try and figure out CSS and all it's nuances. I suspect we'll
have to wait another 5 years before CSS actually has a single model for all
browsers.
___
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: Another web challenge: state

2011-09-23 Thread stephen barncard
I don't use !important but use a lot of inline css for special cases and use
css as a sheet or in the header for more general specs (for a one-pager).
I pass the state of the app through POST or GET which gets trapped at the
beginning and decides which 'page' to display.

With the new two pass compiler it's possible to make the code more
organized.  One can locate most parts anywhere on the document now, except
for variable declaration. I put html sections in handlers like this (not
complete code sample):

on startupHTML
-- this is an HTML5 page
?
!DOCTYPE html
html
  ?rev
end startupHTML

on startHEAD
  ?
  head
  META http-equiv=Content-Type content=text/html;charset=utf-8
  title?rev put gDataA[title] ?/title
  ?rev
end startHEAD

on midHEAD
?
 ?rev startStyle ?
?rev
end midHEAD

on endHEAD
?
/head
?rev
end endHEAD

and so forth

-- and control the sections at the top like this:

on decisiontree pAdd
-- decide the function and page
get $_POST_RAW
if it is empty
then
stage_one
else
-- there is data in POST
-- CHECK FOR ERRORS
put validateMailArray($_POST_BINARY) into a
replace return with br in a
--  RAW Examine $_POST
if a is empty
then
-- no errors - send email
--contactmailSend
 if diagnoseflag is true
then
stage_diagnostic
else
stage_send
end if
else
-- we have errors, present to correct
stage_two a
end if
end if
end decisiontree

on stage_one
-- stage one
-- FIRST RUN NO POST DATA
-- THERE MIGHT BE GET DATA
get $_GET[realname]
if it is empty
then
-- assign default name
put Joe User into gDataA[realname]
else
put $_GET[realname] into gDataA[realname]
end if
setuserspecs
 startupHTML
starthead
midhead
endhead
 put Welcome - please fill out all fields, then click SEND to transmit your
message. I will respond soon.   br  br  em  gDataA[realname] 
/em into gDataA[prompt1]
put all fields need to be filled .. into gDataA[prompt2]
put 20110828 livecode contact form copy;  house of cubes sf into
gDataA[copyright]

showbodymasthead
entryform2
showfooter
w3cHTML5Link
enddocument
end stage_one

stage two and three reuses some of the handlers and adds others.

and put the sections that won't need much attention at the bottom.

It makes it easier to create and manually debug (without a debugger) one
page apps BY HAND

the complete app can be seen
herehttp://barncard.com/contact/index.irev?realname=Stephen%20Barncard


On 23 September 2011 19:30, Chipp Walters ch...@chipp.com wrote:

 Richard,

 Actually, I think a decent first step is to just create apps which run on a
 single page. This removes much if not all the necessary session information
 and works pretty much like typical AJAX apps do now.


Stephen Barncard
San Francisco Ca. USA

more about sqb  http://www.google.com/profiles/sbarncar
___
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