Re: iPhone kiosk

2014-08-26 Thread Mark Wilcox
Obviously I don't know the details but if you're going to run in a
single app mode, then complete control of the phone while your app is
running is possible without a jailbreak - it's just control whilst in
Springboard and other people's apps you need to jailbreak for.

-- 
  Mark Wilcox
  m...@sorcery-ltd.co.uk

On Mon, Aug 25, 2014, at 02:49 PM, Richard Miller wrote:
 The hardware device controls an iPhone remotely through bluetooth... not 
 a process Apple supports. This isn't a game controller. It is complete 
 control of the phone.
 
 
 On 8/25/14, 5:26 PM, Mark Wilcox wrote:
  I'm no jailbreaking expert but as I understood it, the issue is not that
  you can't get new versions of iOS quickly but that you can't install
  older firmware to a device unless you have already jailbroken it. You
  can't overwrite legitimate firmware with anything but newer legitimate
  firmware because the firmware itself includes version and signature
  checking.
 
  What's so special about this custom hardware that the device needs to be
  jailbroken? Why can't it go down the MFi route?
 
 
 
 ___
 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


colorized scripts

2014-08-26 Thread Jacques Hausser
I want a button to automatically put the script of any control in a field, 
showing the script editor's colors... I'm probably completely dumb, but I 
didn't find the trick.
Thanks for every hint!

Jacques


___
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: Window manager plugin?

2014-08-26 Thread Peter M. Brigham
Nice. Don't forget to reset the templatestack.

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig

On Aug 25, 2014, at 3:49 PM, Mark Schonewille wrote:

 John,
 
 Here's my complete solution:
 
 on mouseUp
 put item 1 of the screenLoc  comma   round(item 2 of the screenLoc / 3) 
 into myLoc
 askAt Hello,Write something,myLoc
 if it is not empty then
  answerAt You wrote:  the result,myLoc,Yep,Nope
 end if
 put the result
 end mouseUp
 
 on answerAt theMessage,theLoc
 put answer information  quote  theMessage  quote  with  space 
 into myScript
 if the paramCount is 2 then
  put quote  OK  quote after myScript
 else
  put quote  param(3)  quote after myScript
  repeat with x = 4 to the paramCount
   put space  or  quote  param(x)  quote after myScript
  end repeat
 end if
 set the loc of the templateStack to theLoc
 set the vis of the templateStack to false
 create stack Place Holder
 set the defaultStack to Place Holder
 do myScript
 delete stack Place Holder
 return it
 end answerAt
 
 on askAt theMessage,theDefault,theLoc
 put ask question  quote  theMessage  quote  with  quote  
 theDefault  quote into myScript
 set the loc of the templateStack to theLoc
 set the vis of the templateStack to false
 create stack Place Holder
 set the defaultStack to Place Holder
 do myScript
 delete stack Place Holder
 return it
 end askAt
 
 The advantage of this approach is that it only depends on the ask and answer 
 stacks and still works if the lockMessages has been set to true. It would 
 need some adjustments if you want to use unicode or HTML.
 
 --
 Best regards,
 
 Mark Schonewille
 
 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553
 
 Installer Maker for LiveCode:
 http://qery.us/468
 
 Buy my new book Programming LiveCode for the Real Beginner 
 http://qery.us/3fi
 
 LiveCode on Facebook:
 https://www.facebook.com/groups/runrev/
 
 On 8/23/2014 13:07, Mark Schonewille wrote:
 Hi John,
 
 No, but that should be easy. There are several ways to do this. For example, 
 create an invisible stack, set its location to the location where you want 
 the answer dialog. Set the defaultStack to this stack and execute the ask or 
 answer command. There may be more elegant ways.
 
 set the topleft of the templateStack to 0,32
 set the vis of the templateStack to false
 create stack place holder
 set the defaultStack to it
 answer bla
 put it into myAnswer
 delete stack Place Holder
 
 This should work on windows and probably also on Mac, but on Mac I almost 
 always use ask/answer as sheet.
 
 --
 Kind regards,
 
 Mark Schonewille
 Economy-x-Talk
 Http://economy-x-talk.com
 
 Share the clipboard of your computer over a local network with Clipboard 
 Link http://clipboardlink.economy-x-talk.com
 
 
 Op 23 aug. 2014 om 02:50 heeft JB sund...@pacifier.com het volgende 
 geschreven:
 
 Hi Mark,
 
 Will that let you position the ask and answer dialogs?
 
 John Balgenorth
 
 
 
 
 ___
 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: colorized scripts

2014-08-26 Thread Peter M. Brigham
Mark Weider came up with this trick, which I use in my library stack (a set of 
utility handlers, click on the name of a handler and the script is displayed in 
a field, properly colorized).

   put thisScript into fld script
   -- now colorize script
   -- thanks to Mark Wieder, of the useRev listserv
   put the number of lines of field script into tNum
   send sePrefInit to stack revNewScriptEditor
   send revSEColorize thisScript,default to stack revNewScriptEditor
   _internal script colorize line 1 to tNum of field script
   -- how he figured this out, I don't know

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig

On Aug 26, 2014, at 5:53 AM, Jacques Hausser wrote:

 I want a button to automatically put the script of any control in a field, 
 showing the script editor's colors... I'm probably completely dumb, but I 
 didn't find the trick.
 Thanks for every hint!
 
 Jacques
 
 
 ___
 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: Window manager plugin?

2014-08-26 Thread JB
Thank you very much, Mark!!

That is really nice!

John Balgenorth


On Aug 25, 2014, at 12:49 PM, Mark Schonewille 
m.schonewi...@economy-x-talk.com wrote:

 John,
 
 Here's my complete solution:
 
 on mouseUp
 put item 1 of the screenLoc  comma   round(item 2 of the screenLoc / 3) 
 into myLoc
 askAt Hello,Write something,myLoc
 if it is not empty then
  answerAt You wrote:  the result,myLoc,Yep,Nope
 end if
 put the result
 end mouseUp
 
 on answerAt theMessage,theLoc
 put answer information  quote  theMessage  quote  with  space 
 into myScript
 if the paramCount is 2 then
  put quote  OK  quote after myScript
 else
  put quote  param(3)  quote after myScript
  repeat with x = 4 to the paramCount
   put space  or  quote  param(x)  quote after myScript
  end repeat
 end if
 set the loc of the templateStack to theLoc
 set the vis of the templateStack to false
 create stack Place Holder
 set the defaultStack to Place Holder
 do myScript
 delete stack Place Holder
 return it
 end answerAt
 
 on askAt theMessage,theDefault,theLoc
 put ask question  quote  theMessage  quote  with  quote  
 theDefault  quote into myScript
 set the loc of the templateStack to theLoc
 set the vis of the templateStack to false
 create stack Place Holder
 set the defaultStack to Place Holder
 do myScript
 delete stack Place Holder
 return it
 end askAt
 
 The advantage of this approach is that it only depends on the ask and answer 
 stacks and still works if the lockMessages has been set to true. It would 
 need some adjustments if you want to use unicode or HTML.
 
 --
 Best regards,
 
 Mark Schonewille
 
 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553
 
 Installer Maker for LiveCode:
 http://qery.us/468
 
 Buy my new book Programming LiveCode for the Real Beginner 
 http://qery.us/3fi
 
 LiveCode on Facebook:
 https://www.facebook.com/groups/runrev/
 
 On 8/23/2014 13:07, Mark Schonewille wrote:
 Hi John,
 
 No, but that should be easy. There are several ways to do this. For example, 
 create an invisible stack, set its location to the location where you want 
 the answer dialog. Set the defaultStack to this stack and execute the ask or 
 answer command. There may be more elegant ways.
 
 set the topleft of the templateStack to 0,32
 set the vis of the templateStack to false
 create stack place holder
 set the defaultStack to it
 answer bla
 put it into myAnswer
 delete stack Place Holder
 
 This should work on windows and probably also on Mac, but on Mac I almost 
 always use ask/answer as sheet.
 
 --
 Kind regards,
 
 Mark Schonewille
 Economy-x-Talk
 Http://economy-x-talk.com
 
 Share the clipboard of your computer over a local network with Clipboard 
 Link http://clipboardlink.economy-x-talk.com
 
 
 Op 23 aug. 2014 om 02:50 heeft JB sund...@pacifier.com het volgende 
 geschreven:
 
 Hi Mark,
 
 Will that let you position the ask and answer dialogs?
 
 John Balgenorth
 
 
 
 
 ___
 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


iOS and effective working screenRect

2014-08-26 Thread Jim sims
When I add the following to my iOS app I get the same results (0,0,640,704)
for each.
Not helpful.

How do i get the loc or top of the keyboard (in 3.5, 4.0, and iPad sizes)
so i can properly move fields out of the way of the keyboard?


on keyboardActivated
answer keyboard activated  cr  the effective working screenRect
end keyboardActivated

on keyboardDeactivated
answer keyboard deactivated  cr  the effective working screenRect
end keyboardDeactivated
___
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: Window manager plugin?

2014-08-26 Thread Mark Schonewille

Hi Peter,

You're right. I thought of it, but forgot to add it.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book Programming LiveCode for the Real Beginner 
http://qery.us/3fi


LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 8/26/2014 13:33, Peter M. Brigham wrote:

Nice. Don't forget to reset the templatestack.

-- 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: colorized scripts

2014-08-26 Thread Jacques Hausser
Thanks, Peter,

As I'm checking version 7.10 DP, your solution is not working... I rummaged 
into the revNewScriptEditor stack and found that revSEColorize doesn't 
exist anymore (or it's hidden somewhere else).
But it's even simpler! here the script of my button:

on mouseUp
   put the script of button TestButton into fld FScript
   _internal script colorize char 1 to (the number of chars of field FScript) 
of field FScript
end mouseUp

... works perfectly ! (although I strictly don't know what an _internal 
script is). I guess it is not usable on a standalone.

Jacques



Le 26 août 2014 à 13:53, Peter M. Brigham pmb...@gmail.com a écrit :

 Mark Weider came up with this trick, which I use in my library stack (a set 
 of utility handlers, click on the name of a handler and the script is 
 displayed in a field, properly colorized).
 
   put thisScript into fld script
   -- now colorize script
   -- thanks to Mark Wieder, of the useRev listserv
   put the number of lines of field script into tNum
   send sePrefInit to stack revNewScriptEditor
   send revSEColorize thisScript,default to stack revNewScriptEditor
   _internal script colorize line 1 to tNum of field script
   -- how he figured this out, I don't know
 
 -- Peter
 
 Peter M. Brigham
 pmb...@gmail.com
 http://home.comcast.net/~pmbrig
 
 On Aug 26, 2014, at 5:53 AM, Jacques Hausser wrote:
 
 I want a button to automatically put the script of any control in a field, 
 showing the script editor's colors... I'm probably completely dumb, but I 
 didn't find the trick.
 Thanks for every hint!
 
 Jacques
 
 
 ___
 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

**
Prof. Jacques Hausser
Department of Ecology and Evolution
Biophore / Sorge
University of Lausanne
CH 1015 Lausanne
please use my private address:
6 route de Burtigny
CH-1269 Bassins
tel:++ 41 22 366 19 40
mobile: ++ 41 79 757 05 24
E-Mail: jacques.haus...@unil.ch
***


___
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 : Speed

2014-08-26 Thread Beat Cornaz
Works like a charm, Geoff. Great way of tackling the thing, very original.

function P2 N,B
  -- N is the depth to permute
  -- B is the ASCII value to start from
  -- so P2(1,49) returns 21 cr 12
  -- P2(2,53) returns 675 cr 765 cr 756 cr 576 cr 657 cr 567
  if N = 0 then return numToChar(B)  cr
  put P2(N - 1,B) into T
  add B to N
  repeat with i = B to N - 1
 put T into T2
 replace numToChar(i) with numToChar(N) in T2
 replace cr with numToChar(i)  cr in T2
 put T2 after R
  end repeat
  replace cr with numToChar(N)  cr in T
  return R  T
end P2

If I input  B =97 I get the permutations in abcd etc. which I often use, so 
really great
If I input  B= 48 I get  the permutations in numbers 01234 etc. which I also 
often use.
Beyond 9 I can easily make items and replace the ascii chars with 10, 11 etc.

The DUPLICATES :
I've been working on it to try to include this functionality into your script, 
but no dice yet. It is not really obvious at first sight.
I'll continue to work on it though. If you or anyone has a bright idea, I'd 
love to hear it.

I must say that I am really charmed by this solution of Geoff, it's something 
I'd never would have thought of. Hats off !

Cheers, Beat
___
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: colorized scripts

2014-08-26 Thread Peter M. Brigham
On Aug 26, 2014, at 9:19 AM, Jacques Hausser wrote:

 As I'm checking version 7.10 DP, your solution is not working... I rummaged 
 into the revNewScriptEditor stack and found that revSEColorize doesn't 
 exist anymore (or it's hidden somewhere else).
 But it's even simpler! here the script of my button:
 
 on mouseUp
   put the script of button TestButton into fld FScript
   _internal script colorize char 1 to (the number of chars of field 
 FScript) of field FScript
 end mouseUp
 
 ... works perfectly ! (although I strictly don't know what an _internal 
 script is). I guess it is not usable on a standalone.

Hmm. Turns out that your simplified script works fine for me in LC 5.5.1 too -- 
the sePrefInit and revSEColorize commands seem to be unnecessary anyway. 
Interestingly, if I try to do this:
   _internal script colorize char 1 to -1 of field FScript
it gives an error. Apparently whatever handles an _internal script can't 
handle anything but the original old chunk expressions.

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig


___
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: Speed

2014-08-26 Thread Peter M. Brigham
On Aug 26, 2014, at 9:42 AM, Beat Cornaz wrote:

 Works like a charm, Geoff. Great way of tackling the thing, very original.
 
 function P2 N,B
  -- N is the depth to permute
  -- B is the ASCII value to start from
  -- so P2(1,49) returns 21 cr 12
  -- P2(2,53) returns 675 cr 765 cr 756 cr 576 cr 657 cr 567
  if N = 0 then return numToChar(B)  cr
  put P2(N - 1,B) into T
  add B to N
  repeat with i = B to N - 1
 put T into T2
 replace numToChar(i) with numToChar(N) in T2
 replace cr with numToChar(i)  cr in T2
 put T2 after R
  end repeat
  replace cr with numToChar(N)  cr in T
  return R  T
 end P2
 
 If I input  B =97 I get the permutations in abcd etc. which I often use, so 
 really great
 If I input  B= 48 I get  the permutations in numbers 01234 etc. which I also 
 often use.
 Beyond 9 I can easily make items and replace the ascii chars with 10, 11 etc.
 
 The DUPLICATES :
 I've been working on it to try to include this functionality into your 
 script, but no dice yet. It is not really obvious at first sight.
 I'll continue to work on it though. If you or anyone has a bright idea, I'd 
 love to hear it.

I don't know but it seems that the way to do this would be to work on permuting 
the character positions rather than the characters themselves. Perhaps using an 
array, charAtLoc[n], applying Geoff's algorithm to 1 though n, then replacing 
each number with charAtLoc[n] afterwards. I suspect it would be lots slower, 
though.

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig


___
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


Sending Terminal Command (Python) Using LiveCode?

2014-08-26 Thread JOHN PATTEN
Hi All,

I manage a lot of  accounts in our Google Apps for Education deployment. I have 
used LiveCode to automate a lot of the csv creation for this process.

I use a Terminal application (GAM) created in Python to do some of this too. 

I would like to be able to call the GAM Python scripts via LiveCode. A typical 
GAM python terminal command would be something like: 

python gam.py create user j...@student.email.k12.ca.us firstname John lastname 
Doe password 11 change password off

Could I call this Python script directly from LiveCode?  

Something like:

on mouseUp
shell(python gam.py create user j...@student.sylvan.k12.ca.us firstname John 
lastname Doe password 11 change password off
end mouseUp

This seems too easy. I’m guessing I would have to point Livecode to the proper 
directory (path) to the Python app. etc.

Is calling python scripts possible through LiveCode? …in need of an example :)

Thank you!
John Patten
SUSD 





___
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: Window manager plugin?

2014-08-26 Thread J. Landman Gay

On 8/26/2014, 7:01 AM, JB wrote:

Thank you very much, Mark!!

That is really nice!


Unfortunately, I couldn't get Mark's answer and ask handlers to work on 
Mac. On Windows the default position is at the location of the default 
stack, which is why it works there. On Mac, it looks like you'll need to 
hide the window and move it after it is displayed, or use Scott Rossi's 
suspendStack solution.


--
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: Speed

2014-08-26 Thread Peter M. Brigham
A followup on how to handle duplicate characters in the permuting algorithm. 
The following seems to work, not sure how it will scale. tString can contain 
any characters -- duplicates, digits, spaces, whatever.

function permute tString
   -- returns all the permutations in the string tString
   put (the length of tString) into N
   repeat with c = 1 to N
put char c of tString into charAtLoc[c]
   end repeat
   subtract 1 from N
   put P2(N,49) into permList
   repeat with c = 1 to N+1
replace c with charAtLoc[c] in permList
   end repeat
   return permList
end permute

function P2 N,B
   -- N is the depth to permute
   -- B is the ASCII value to start from
   -- so P2(1,49) returns 21 cr 12
   -- P2(2,53) returns 675 cr 765 cr 756 cr 576 cr 657 cr 567
   if N = 0 then return numToChar(B)  cr
   put P2(N - 1,B) into T
   add B to N
   repeat with i = B to N - 1
  put T into T2
  replace numToChar(i) with numToChar(N) in T2
  replace cr with numToChar(i)  cr in T2
  put T2 after R
   end repeat
   replace cr with numToChar(N)  cr in T
   return R  T
end P2

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig


___
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: permuting a string (was Re: Speed)

2014-08-26 Thread Peter M. Brigham
A tune-up on the earlier solution to listing permutations of a string. 
Obviously, no need to load an array with the values of the characters, just use 
char c of tString. Also, if tString contains duplicate letters then there 
will be duplicate entries in the output, so those should be stripped before 
returning the result of the function. Here's the streamlined script:

function permute tString
   put (the length of tString) into N
   if N  9 then
  answer Can only permute up to 9 characters.
  exit permute
   end if
   subtract 1 from N
   put P2(N,49) into permList
   repeat with c = 1 to N+1
replace c with char c of tString in permList
   end repeat
   noDupes permList
   return permList
end permute

function P2 N,B
   -- N is the depth to permute
   -- B is the ASCII value to start from
   -- so P2(1,49) returns 21 cr 12
   -- P2(2,53) returns 675 cr 765 cr 756 cr 576 cr 657 cr 567
   if N = 0 then return numToChar(B)  cr
   put P2(N - 1,B) into T
   add B to N
   repeat with i = B to N - 1
  put T into T2
  replace numToChar(i) with numToChar(N) in T2
  replace cr with numToChar(i)  cr in T2
  put T2 after R
   end repeat
   replace cr with numToChar(N)  cr in T
   return R  T
end P2

on noDupes @tList,tDelim
   -- thanks to Peter Hayworth of the use-LC mailing list
   -- NOTE: tList is referenced, so the original list will be changed.
   
   -- strips duplicate (and empty) lines/items from a list
   -- if tDelim = empty then looks first for the presence of cr in tList,
   --   if found, defaults to cr as the delimiter
   --if no cr found, looks for the presence of comma in tList,
   --   if found, defaults to comma as the delimiter
   --if neither found, exits without changing tList
   --   (user should have specified another delim)
   
   -- use it as follows, eg:
   --  assuming theList starts as a comma-delimited list, call:
   --noDupes theList,comma  or just  noDupes theList
   --  following which theList will contain the original list
   --stripped of empty and duplicate items
   
   -- note: the order of the list will likely be changed, may require re-sorting
   -- note: the split command is inherently case-sensitive
   --(irrespective of the value of the caseSensitive property),
   --so Chuck and chuck will not be considered duplicates
   --if you need case insensitive, use the noDupes() function instead
   
   if tDelim = empty then
  if cr is in tList then
 put cr into tDelim
  else if comma is in tList then
 put comma into tDelim
  else
 answer noDupes: no delimiter specified as sheet
 exit noDupes
  end if
   end if
   replace tDelim with cr in tList
   filter tList without empty
   split tList by cr and cr
   put the keys of tList into tList
   replace cr with tDelim in tList
end noDupes

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig


___
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: Population puzzle

2014-08-26 Thread Peter M. Brigham
I haven't tried to actually write script for this, but it occurs to me that you 
could first find all the sets of numbers whose last digits add up to a multiple 
of 10 (or whose last 2 digits add up to a multiple of 100, etc), then iterate 
through a much smaller group of sets to test for their total sum.

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig


On Aug 25, 2014, at 2:54 PM, Michael Doub wrote:

 Well, I have been trying to come up with a logical approach since I posted 
 the puzzle and I still don’t have a solution.   You all may not have a logic 
 based approach, but at least you got a solution.   Right now the straight 
 forward approach with some randomness thrown in looks pretty good to me!
 
 -= Mike
 
 
 On Aug 25, 2014, at 5:41 AM, Terry Judd terry.j...@unimelb.edu.au wrote:
 
 Ditto for me, and mine was messier than Scott¹s as well. Still it kept me
 occupied while I was eating my lunch :)
 
 Terry...
 
 On 25/08/2014 5:27 pm, Scott Rossi sc...@tactilemedia.com wrote:
 
 I imagine my approach would be faster if it followed ANY logic.  :-)
 
 Regards,
 
 Scott Rossi
 Creative Director
 Tactile Media, UX/UI Design
 
 On 8/24/14 11:38 PM, Kay C Lan lan.kc.macm...@gmail.com wrote:
 
 I imagine Terry  Scott, your approach would on average be faster if
 you followed the same logic.

___
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: Open App/file

2014-08-26 Thread Charles Szasz
Colin,

What is the path when a PDF document is with your app?

Sent from my iPad

___
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: Open App/file

2014-08-26 Thread Colin Holgate
Look in the dictionary for specialFolderPath.


On Aug 26, 2014, at 2:30 PM, Charles Szasz csz...@me.com wrote:

 Colin,
 
 What is the path when a PDF document is with your app?
 
 Sent from my iPad
 
 ___
 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: Window manager plugin?

2014-08-26 Thread Mark Schonewille

Jacque,

It is true that it doesn't work on Mac, but I never needed something 
like this on Mac. I made this specifically for Windows. On Mac I use as 
sheet most of the time.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book Programming LiveCode for the Real Beginner 
http://qery.us/3fi


LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 8/26/2014 19:55, J. Landman Gay wrote:

On 8/26/2014, 7:01 AM, JB wrote:

Thank you very much, Mark!!

That is really nice!


Unfortunately, I couldn't get Mark's answer and ask handlers to work on
Mac. On Windows the default position is at the location of the default
stack, which is why it works there. On Mac, it looks like you'll need to
hide the window and move it after it is displayed, or use Scott Rossi's
suspendStack solution.



___
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


mp3 files not playing on Windows

2014-08-26 Thread FORD JR., CURT
A client's customer (using Windows) had ordered two modules of a series. Both 
come with their own set of mp3 files in a folder named media.  The two 
modules use the same code for figuring path names and playing sounds. We've had 
no problems in either module with other customers, but this one reports that 
sounds play properly in one of the modules, but not the other.

He has QuickTime installed, and we've ruled out non-standard characters in the 
path to the sound files. What seems strange is that the sounds play in one 
module, but not another. I suggested he move the problematic module to the same 
location as the one that works as expected, but it doesn't seem to have helped.

Anybody have any ideas of what else to check?

Thanks!

Curt
___
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: mp3 files not playing on Windows

2014-08-26 Thread Mark Schonewille

Hi Curt,

The first thing I would check is the sound encoding of every file. Are 
the failing MP3 files encoded differently from the working MP3 files?


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book Programming LiveCode for the Real Beginner 
http://qery.us/3fi


LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 8/26/2014 22:58, FORD JR., CURT wrote:

A client's customer (using Windows) had ordered two modules of a series. Both come with 
their own set of mp3 files in a folder named media.  The two modules use the 
same code for figuring path names and playing sounds. We've had no problems in either 
module with other customers, but this one reports that sounds play properly in one of the 
modules, but not the other.

He has QuickTime installed, and we've ruled out non-standard characters in the 
path to the sound files. What seems strange is that the sounds play in one 
module, but not another. I suggested he move the problematic module to the same 
location as the one that works as expected, but it doesn't seem to have helped.

Anybody have any ideas of what else to check?

Thanks!

Curt
___
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


mp3 files not playing on Windows

2014-08-26 Thread Curt Ford
Hi Mark,

Thanks - they are both 16bit; the one that works is 22.1 kHz, bitrate 56 kbps, 
the ones that don't work are 44.1 kHz, 128 kbps. But we've delivered many other 
modules with files at 44.1/128 with no issues. Could that cause a problem on 
this one computer, or is there something else in the encoding that would be 
worth looking at?

thanks!

Curt



___
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


._!

2014-08-26 Thread Richard Gaskin
When copying files from a Mac to a volume formatted with NTFS or other 
Windows-compatible format, for each Mac file it also creates a second 
file with the same name but with ._ prepended to it.


E.g., this:

   MyFile1.txt
   MyFile2.txt

...becomes:

   ._MyFile1.txt
   ._MyFile2.txt
   MyFile1.txt
   MyFile2.txt

This is course annoying, and worse, for many people I run into it's also 
confusing as well.


Strangely, the otherwise-usability-conscious Apple has provided no 
Preferences setting in the Finder for this sad behavior.


Anyone here know if there's some command-line option we can set to tell 
the Mac to stop doing that?


I used to write scripts to remove them after the fact, but it would be 
much simpler/saner to just turn that off altogether.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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: colorized scripts

2014-08-26 Thread Jacques Hausser

Le 26 août 2014 à 16:10, Peter M. Brigham pmb...@gmail.com a écrit :

 On Aug 26, 2014, at 9:19 AM, Jacques Hausser wrote:
 
 As I'm checking version 7.10 DP, your solution is not working... I rummaged 
 into the revNewScriptEditor stack and found that revSEColorize doesn't 
 exist anymore (or it's hidden somewhere else).
 But it's even simpler! here the script of my button:
 
 on mouseUp
  put the script of button TestButton into fld FScript
  _internal script colorize char 1 to (the number of chars of field 
 FScript) of field FScript
 end mouseUp
 
 ... works perfectly ! (although I strictly don't know what an _internal 
 script is). I guess it is not usable on a standalone.
 
 Hmm. Turns out that your simplified script works fine for me in LC 5.5.1 too 
 -- the sePrefInit and revSEColorize commands seem to be unnecessary 
 anyway. Interestingly, if I try to do this:
   _internal script colorize char 1 to -1 of field FScript
 it gives an error. Apparently whatever handles an _internal script can't 
 handle anything but the original old chunk expressions.

Yes - and it is another syntax allowing to colorize some lines only (perhaps 
useful in the frame of the script editor):
_internal script colorize line na to nb of field FScript.
 To colorize the whole script : _internal script colorize line nfirst to nlast 
of field FScript
and if you want to colorize one line only, it musst be:
 _internal script colorize line na to na of field FScript (_internal script 
colorize line na of field FScript gives an error.)

An example of what I call fossil scripts: they could easily be modified to 
comply whith the usual syntax, but as they work and are _internal anyway...

Still thank you to put my nose into Ui stacks !

Jacques








___
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: Sunset, sunrise, twilight calculations in LC?

2014-08-26 Thread William Prothero
Charles:
Your function misses a special case. If the negative number is an integer, you 
wouldn’t want to subtract 1 from trunc(theNegativeNumber).
Best,
Bill
On Aug 23, 2014, at 1:22 PM, Charles E Buchwald char...@buchwald.ca wrote:

 Jacquie, I tested my script before I posted it, and it works for negative 
 integers.
 Colin, just for fun, I've consolidated mine to one line.
 Richmond, maybe you'd like to add ceiling to your sample stack?
 
 function Floor pValue
  if pValue  0 then return trunc(pValue) - 1 else return trunc(pValue)
 end Floor
 
 I know this is trivial, but here's a ceiling function, just to kind of fill 
 out the thread:
 
 function Ceiling pValue
  if pValue  0 then return trunc(pValue) else return trunc(pValue) + 1
 end Ceiling
 
 P.S. I suppose this is the kind of situation where the Open Language thing 
 would be very nice. If the bunch of us have created a new, valuable and 
 effective, if esoteric, function, then it would be nice to include it 
 somewhere so that it doesn't have to be recreated every few months... Or 
 maybe it should be en enhancement request? I guess I'm not clear on that.
 
 
 On 23 Aug 2014, at 2:03 PM, J. Landman Gay jac...@hyperactivesw.com wrote:
 
 Charles' function works except for negative integers. I think it needs to 
 check for that.
 
 --
 Charles E. Buchwald
 CEO/Director General
 Museografica Digital
 http://digital.museografica.com
 
 Mac OSX 10.9.4, LC 6.6.2 Commercial
 
 LC Developer Tools: http://buchwald.ca/developer-tools/
 
 Email Notice: http://wp.me/P3aT4d-33
 
 
 ___
 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: ._!

2014-08-26 Thread Mark Wieder
Richard Gaskin ambassador@... writes:

 When copying files from a Mac to a volume formatted with NTFS or other 
 Windows-compatible format, for each Mac file it also creates a second 
 file with the same name but with ._ prepended to it.

Those are Finder information files. The OSX Finder would cease to work
without them. I'm sure at some point someone thought this was a good idea.

 I used to write scripts to remove them after the fact, but it would be 
 much simpler/saner to just turn that off altogether.

Removing them by script afterwards is the way to go.

-- 
 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: ._!

2014-08-26 Thread Richard Gaskin

Mark Wieder wrote:

Richard Gaskin ambassador at ... writes:


When copying files from a Mac to a volume formatted with NTFS or other
Windows-compatible format, for each Mac file it also creates a second
file with the same name but with ._ prepended to it.


Those are Finder information files. The OSX Finder would cease to work
without them. I'm sure at some point someone thought this was a good idea.


Thanks, but I'm familiar with them.  I just want to avoid them.



I used to write scripts to remove them after the fact, but it would be
much simpler/saner to just turn that off altogether.


Removing them by script afterwards is the way to go.


Yes, that's what I used to do, but it seems kinda silly to have to 
remember to run a script each time I want to unmout a volume.


Worse, a lot of my clients and friends have issues with this as well - 
should they all install some sort of tool and remember to run the tool 
before unmounting a simple USB disk?


Searching around the web, it seems Apple's answer is Yes; I haven't 
yet been able to find even a system config addressable through the 
command line for this, and certainly not something in Finder prefs where 
it should rightly be.


I hope I'm mistaken, but haven't yet found any way to turn this off

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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: ._!

2014-08-26 Thread Paul Hibbert
Richard,

It seems turning off the '._*' file creation could cause problems with the 
Apple Finder and some MS Office apps.

After a quick search I found an old entry on Mac OS X Hints (MacWorld forum) 
that states using the 'mv' and 'cp' commands (in Terminal) will move or copy 
files without the ._ files., so maybe you could use a shell command to do the 
copying.

I just tried a quick test and although I'm not seeing any '._*' files, I 
noticed that using the 'cp' command doesn't copy the '.DS_Store' file so it may 
be worth a try to see if avoids copying the '._*' files too.

Article link:- http://hints.macworld.com/article.php?story=20020217094739452

Paul


On 2014-08-26, at 2:40 PM, Richard Gaskin ambassa...@fourthworld.com wrote:

 When copying files from a Mac to a volume formatted with NTFS or other 
 Windows-compatible format, for each Mac file it also creates a second file 
 with the same name but with ._ prepended to it.
 
 E.g., this:
 
   MyFile1.txt
   MyFile2.txt
 
 ...becomes:
 
   ._MyFile1.txt
   ._MyFile2.txt
   MyFile1.txt
   MyFile2.txt
 
 This is course annoying, and worse, for many people I run into it's also 
 confusing as well.
 
 Strangely, the otherwise-usability-conscious Apple has provided no 
 Preferences setting in the Finder for this sad behavior.
 
 Anyone here know if there's some command-line option we can set to tell the 
 Mac to stop doing that?
 
 I used to write scripts to remove them after the fact, but it would be much 
 simpler/saner to just turn that off altogether.
 
 -- 
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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: ._!

2014-08-26 Thread Robert Brenstein

On 26.08.2014 at 23:01 Uhr + Mark Wieder apparently wrote:



 I used to write scripts to remove them after the fact, but it would be
 much simpler/saner to just turn that off altogether.


Removing them by script afterwards is the way to go.



There is a way to tell Finder not to copy them to external volumes 
but I seem to have misplaced the details of achieving that.


RObert

___
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


[ANN] The LiveCode Lab

2014-08-26 Thread RunRevPlanet
Hi,

For those who aren't in either of the LiveCode groups on Facebook or don't visit
the Forums, here is the announcement about The LiveCode Lab.

Are you interested in:

* Starting an adventure in server-side coding today, without having to setup
your own server.
* Designing and creating web apps using the LiveCode language.
* Experimenting and learning about server-side coding.
* Making lean web apps without a framework that hides how they work.
* Creating one page utilities, or complex multi-user programs.
* Contributing to a LiveCode open source community while improving your skills
and sharing the results of your experiments.
* Editing, testing and running LiveCode handlers on any device with a web
browser.

A couple of links that explains more:

http://thelivecodelab.com/faq.tlcl

https://dl.dropboxusercontent.com/u/87533352/DownloadBranch/What-On-Earth-Is-The-LiveCode-Lab.pdf

Cheers,
--
Scott McDonald
Components, Controls, Tools and Resources for LiveCode
www.runrevplanet.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: ._!

2014-08-26 Thread Richard Gaskin

Robert Brenstein wrote:
 There is a way to tell Finder not to copy them to external volumes
 but I seem to have misplaced the details of achieving that.

So far I've only been able to turn up a command to stop the ._DStore 
files, but not the others.



Paul Hibbert wrote:

 It seems turning off the '._*' file creation could cause problems
 with the Apple Finder and some MS Office apps.

If an app depends on Mac-specific metadata or the resource fork that 
would be the case.  But the res fork has been flagged for deprecation 
for more than a decade, so any dev relying on it can expect issues.  For 
anything else, the Mac works fine with files put onto such drives from 
other OSes, so any risk would seem very minimal.


Even so, I'm okay with the default being what it is.  It just seems 
reasonable that there be an option for the Finder to play nice with the 
other 90% of the world when copying to foreign-format drives.



 After a quick search I found an old entry on Mac OS X Hints (MacWorld
 forum) that states using the 'mv' and 'cp' commands

Thanks.  I replaced Time Machine with some rsync scripts not long ago, 
which also copies only what I tell it to without creating extra files.


But this isn't for me, but for everyone I work with.  I love rsync, but 
it's not the sort of thing I'd recommend to all my friends. :)


If there was a setting for this, even if it was only accessible through 
the command line, I'd happily make a free tool to help people set it.


But I just can't find such an option

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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: RunRevLive 2014 Conference Mobile App by livecloud.io

2014-08-26 Thread Mark Talluto
On Aug 23, 2014, at 11:47 AM, Colin Holgate co...@verizon.net wrote:

 I installed it onto my Kindle Fire HDX. You do notice that the transitions 
 and scrolling in the app are sluggish? Might make for a fun session, making 
 your app run smoothly.


Quick note that we have updated the RunRevLive 2014 since its release date.  
The app now uses native fields for comments, animation engine for swiping 
between features, and optimized the UI for speed where possible. Android still 
runs slow.  But, it is better than before.  We have also released the app to 
Google Play. Should show up in a couple hours.

Stil no word from Apple on the iOS version.  We want to turn around and update 
the iOS version once it is released to get all the new stuff in there.  Till 
then, I will push the iOS update through TestFlight.


Best regards,

Mark Talluto
livecloud.io
canelasoftware.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: [ANN] The LiveCode Lab

2014-08-26 Thread Alejandro Tejada
Excellent! :D
I just register in.

Al



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ANN-The-LiveCode-Lab-tp4682508p4682511.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: Open App/file

2014-08-26 Thread Charles Szasz
Colin,

Thanks! I will check it out. I have a PDF manual in the same folder as my app 
and I want to include the manual as a menu item that could open by either 
Acrobat Reader on Windows oryx Preview on OS X. 

Sent from my iPad
___
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


Should dispatch be extended for timers?

2014-08-26 Thread Richard Gaskin

I love dispatch, and the more I use it the more I find send murky.

With dispatch params seem more natural to me:

   dispatch somecommand to tSomeObj with tArg2, tArg2

But with send it's less clear how params are handled - here's an 
example from the forums today:


  send clearVideo LayerAlpha, baseLayer, LayerGraphic, \
 LayerAudio to me in 700 milliseconds

Seems like a good guess as to how it should be used, but of course the 
compiler complains.


So given that dispatch is also faster, why not use it for everything, 
extending it with in to allow timers:


   dispatch somecommand to tSomeObj with tArg2, tArg2 in 2 secs

Is there some reason I've overlooked as to why send allows timers but 
dispatch doesn't?


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.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: Should dispatch be extended for timers?

2014-08-26 Thread Scott Rossi
Sounds like a good idea.  If dispatch is already fast, a timer would just
allow you to slow it down.

BTW, I believe using quotes should make your message send-able.

send clearVideo LayerAlpha, baseLayer, LayerGraphic, LayerAudio to me in
700 milliseconds


Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 8/26/14 7:09 PM, Richard Gaskin ambassa...@fourthworld.com wrote:

I love dispatch, and the more I use it the more I find send murky.

With dispatch params seem more natural to me:

dispatch somecommand to tSomeObj with tArg2, tArg2

But with send it's less clear how params are handled - here's an
example from the forums today:

   send clearVideo LayerAlpha, baseLayer, LayerGraphic, \
  LayerAudio to me in 700 milliseconds

Seems like a good guess as to how it should be used, but of course the
compiler complains.

So given that dispatch is also faster, why not use it for everything,
extending it with in to allow timers:

dispatch somecommand to tSomeObj with tArg2, tArg2 in 2 secs

Is there some reason I've overlooked as to why send allows timers but
dispatch doesn't?

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  
  ambassa...@fourthworld.comhttp://www.FourthWorld.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: Sending Terminal Command (Python) Using LiveCode?

2014-08-26 Thread Mark Wieder
John-

Tuesday, August 26, 2014, 9:43:13 AM, you wrote:

 Is calling python scripts possible through LiveCode? …in need of an example :)

answer folder find the right folder
set the defaulfolder to it
put shell(python test.py someargument)
works for me.

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

This communication may be unlawfully collected and stored by the National 
Security Agency (NSA) in secret. The parties to this email do not 
consent to the retrieving or storing of this communication and any 
related metadata, as well as printing, copying, re-transmitting, 
disseminating, or otherwise using it. If you believe you have received 
this communication in error, please delete it immediately.


___
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: Should dispatch be extended for timers?

2014-08-26 Thread Peter Haworth
Sounds like a great idea to me.  I seem to remember that one of
dispatch/send is blocking and the other isn't. Could that be a possible
reason for the lack of in with dispatch?

Pete
lcSQL Software
On Aug 26, 2014 7:09 PM, Richard Gaskin ambassa...@fourthworld.com
wrote:

 I love dispatch, and the more I use it the more I find send murky.

 With dispatch params seem more natural to me:

dispatch somecommand to tSomeObj with tArg2, tArg2

 But with send it's less clear how params are handled - here's an example
 from the forums today:

   send clearVideo LayerAlpha, baseLayer, LayerGraphic, \
  LayerAudio to me in 700 milliseconds

 Seems like a good guess as to how it should be used, but of course the
 compiler complains.

 So given that dispatch is also faster, why not use it for everything,
 extending it with in to allow timers:

dispatch somecommand to tSomeObj with tArg2, tArg2 in 2 secs

 Is there some reason I've overlooked as to why send allows timers but
 dispatch doesn't?

 --
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  
  ambassa...@fourthworld.comhttp://www.FourthWorld.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: colorized scripts

2014-08-26 Thread Mark Wieder
Peter-

Tuesday, August 26, 2014, 4:53:19 AM, you wrote:

 Mark Weider came up with this trick, which I use in my library
 stack (a set of utility handlers, click on the name of a handler and
 the script is displayed in a field, properly colorized).

put thisScript into fld script
-- now colorize script
-- thanks to Mark Wieder, of the useRev listserv
put the number of lines of field script into tNum
send sePrefInit to stack revNewScriptEditor
send revSEColorize thisScript,default to stack revNewScriptEditor
_internal script colorize line 1 to tNum of field script
-- how he figured this out, I don't know

I have no recollection of coming up with this, but if I did it, it was
a result of a spelunking expedition into the script editor code. And
as a side-effect of that, it may well be outdated by now.

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

This communication may be unlawfully collected and stored by the National 
Security Agency (NSA) in secret. The parties to this email do not 
consent to the retrieving or storing of this communication and any 
related metadata, as well as printing, copying, re-transmitting, 
disseminating, or otherwise using it. If you believe you have received 
this communication in error, please delete it immediately.


___
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: Speed

2014-08-26 Thread Geoff Canyon
On Tue, Aug 26, 2014 at 1:57 PM, Peter M. Brigham pmb...@gmail.com wrote:

 A followup on how to handle duplicate characters in the permuting
 algorithm. The following seems to work, not sure how it will scale. tString
 can contain any characters -- duplicates, digits, spaces, whatever.


I don't think this removes/avoids the duplicates that result from duplicate
characters. For example, permute(abb) returns:

bba

bba

bab

abb

bab

abb

When it should return:

bba

bab

abb

I haven't come up with any algorithm myself to do this other than to
generate the first list, set the indices of an array to the results, then
get the keys of the array. It would be fairly simple to do in the initial
P2 routine, but wouldn't scale at all the way it should. For example,
finding all 11 character permutations of abb should take a small
fraction of a second, but would actually take close to ten seconds.
___
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: RunRevLive 2014 Conference Mobile App by livecloud.io

2014-08-26 Thread J. Landman Gay

On 8/26/2014, 7:08 PM, Mark Talluto wrote:

Quick note that we have updated the RunRevLive 2014 since its release date.


I was just your first Android download. I had to uninstall the one I 
grabbed off your site before I could download the one from the Play 
Store (apparently the app build number didn't change, since there was no 
Update option.)


Now it asks me to sign in, and then tells me my user name has already 
been taken. Can you reset your server so I can re-log?


--
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: colorized scripts

2014-08-26 Thread J. Landman Gay

On 8/26/2014, 9:57 PM, Mark Wieder wrote:

Peter-

Tuesday, August 26, 2014, 4:53:19 AM, you wrote:


Mark Weider came up with this trick, which I use in my library
stack (a set of utility handlers, click on the name of a handler and
the script is displayed in a field, properly colorized).



put thisScript into fld script
-- now colorize script
-- thanks to Mark Wieder, of the useRev listserv
put the number of lines of field script into tNum
send sePrefInit to stack revNewScriptEditor
send revSEColorize thisScript,default to stack revNewScriptEditor
_internal script colorize line 1 to tNum of field script
-- how he figured this out, I don't know


I have no recollection of coming up with this, but if I did it, it was
a result of a spelunking expedition into the script editor code. And
as a side-effect of that, it may well be outdated by now.



I believe the revSE-whatver handlers are remnants of when the script 
editor did the colorization by script, before the engine took it over. 
If it throws errors in newer versions of LC, that would be why.


--
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: Should dispatch be extended for timers?

2014-08-26 Thread dunbarx

Hi.


Send' can, er, send parameters as well as a command. In a button script:


on mouseUp
   send putArg  random(99)  random(99)   XYZ to me in 5
end mouseUp


on putArg var
   put var
end putArg


You get pairs of random numbers and the text as well. All parameters come 
across as a batch.


Or you can separate in the usual way:
on mouseUp
   send putArg  random(99)  ,  any char of ABCD to me in 5
end mouseUp


on putArg var,var2
   put var2 --or the first one or both
end putArg


Craig



-Original Message-
From: Richard Gaskin ambassa...@fourthworld.com
To: How to use LiveCode use-livecode@lists.runrev.com
Sent: Tue, Aug 26, 2014 10:09 pm
Subject: Should dispatch be extended for timers?


I love dispatch, and the more I use it the more I find send murky.

With dispatch params seem more natural to me:

dispatch somecommand to tSomeObj with tArg2, tArg2

But with send it's less clear how params are handled - here's an 
example from the forums today:

   send clearVideo LayerAlpha, baseLayer, LayerGraphic, \
  LayerAudio to me in 700 milliseconds

Seems like a good guess as to how it should be used, but of course the 
compiler complains.

So given that dispatch is also faster, why not use it for everything, 
extending it with in to allow timers:

dispatch somecommand to tSomeObj with tArg2, tArg2 in 2 secs

Is there some reason I've overlooked as to why send allows timers but 
dispatch doesn't?

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  
  ambassa...@fourthworld.comhttp://www.FourthWorld.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: RunRevLive 2014 Conference Mobile App by livecloud.io

2014-08-26 Thread Mark Talluto
Hi Jacque. You can use your account on as many devices as you like. I bet you 
accidentally misspelled your email or username. That would be the only way to 
generate that error. 

The security is the email authentication. 

Please let me know if that helps. Sorry about the version number. We will have 
to remember to increment it on the next update.  

-Mark

 On Aug 26, 2014, at 8:45 PM, J. Landman Gay jac...@hyperactivesw.com 
 wrote:
 
 On 8/26/2014, 7:08 PM, Mark Talluto wrote:
 Quick note that we have updated the RunRevLive 2014 since its release date.
 
 I was just your first Android download. I had to uninstall the one I grabbed 
 off your site before I could download the one from the Play Store (apparently 
 the app build number didn't change, since there was no Update option.)
 
 Now it asks me to sign in, and then tells me my user name has already been 
 taken. Can you reset your server so I can re-log?
 
 -- 
 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


Asynchronous externals interface

2014-08-26 Thread Paul D. DeRocco
A couple years ago, I asked about the possibility of a mechanism for an
external to send a message asynchronously from another thread. My
suggestion at the time was to provide a simple signal mechanism, which
could dispatch a message previously supplied by a send command:

http://lists.runrev.com/pipermail/use-livecode/2012-August/176675.html

It was said at the time that there was a more generalized asynchronous
external interface in the iOS SDK, which would hopefully find its way into
LiveCode on other platforms. So has anything happened with this?

-- 

Ciao,   Paul D. DeRocco
Paulmailto:pdero...@ix.netcom.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