Re: Send and the context

2014-02-08 Thread Björnke von Gierke
You might be interested in the call command.

On 08.02.2014, at 07:34, Bob Sneidar bobsnei...@iotecdigital.com wrote:

 This may bore most of you to tears so please disregard if it doesn’t interest 
 you. 
 
 What I am attempting is to be able to get values from objects on a card that 
 is not the current card, or even in the current stack, like fields and states 
 of buttons, without enumerating the entire path to the objects themselves. 
 This is because the card is designed to be portable, that is, to be placed 
 into any stack. The first time you go to the Database Setup card, all the 
 sqlYoga database connections will be initialized, connections tested, and 
 then connections made. It also has some database utility functions I use. 
 I’ll share it with the community when I am done shaking out all the dust 
 mites. 
 
 Now I do have a few globals I use, and could do everything with globals if 
 necessary, but that seems messy to my mind. Also, globals prevent the card 
 from working properly in multiple stack environments! I might have a Database 
 Setup card in several different stacks, and they all need to behave 
 discreetly. (This is why Stack Local variables would be HUGE!) 
 
 That is the back story. Now there are times when I need to get the values of 
 objects on the Database Setup card of the current stack without actually 
 going to the Database Setup card itself (I might be in a substack and it 
 might be modal for instance) so I inserted the script of a button with all 
 the Database Setup handlers into the message path, and then “send” commands 
 to it, so that statements like:
 
 put field “fDBType” into theDBType — this field resides on the Database Setup 
 card
 
 would execute in the context of the Database Setup card. This threw Object 
 Not Found errors, so I thought maybe it’s because the script was inserted 
 into the message path. I then tried this with another button on the Database 
 Setup card whose script was NOT inserted into the message path and got the 
 same result! 
 
 At that point I put in this handler into the script of the Database Setup 
 card:
 
 on test
  put the short name of this card
 end test
 
 Whether I send or dispatch I get the current card of the current stack.
 
 If however:
 
 on test
  put the short name of me
 end test
 
 I now get “Database Setup” whether I use send or dispatch! Well… that IS what 
 I want I suppose. That prompted this thread. If this is the expected 
 behavior, then I really do not understand at all what the dictionary means by 
 “execution context”. I DID however find one other difference between send and 
 dispatch: You can send a command but NOT a function! Dispatch works with 
 commands AND functions. 
 
 At any rate, it’s academic. I solved the problem by putting this handler in 
 the Database Setup card script:
 
 function getConnection theDBObject
   switch theDBObject
  case primary
 put the hilite of button btndbPrimary of me into aConnection 
 [enabled]
 put (the backgroundcolor of button btnPriConnected of me is 
 lightgreen) into aConnection [connected]
 put field fPriDBType of me into aConnection [dbtype]
 put field fPriDBHost of me into aConnection [dbhost]
 put field fPriDBPort of me into aConnection [dbport]
 put field fPriDBName of me into aConnection [dbname]
 put field fpriDBUser of me into aConnection [dbuser]
 put field fPriDBPass of me into aConnection [dbpass]
 break
  case secondary
 put the hilite of button btndbSecondary of me into aConnection 
 [enabled]
 put (the backgroundcolor of button btnSecConnected of me is 
 lightgreen) into aConnection [connected]
 put field fSecDBType of me into aConnection [dbtype]
 put field fSecDBHost of me into aConnection [dbhost]
 put field fSecDBPort of me into aConnection [dbport]
 put field fSecDBName of me into aConnection [dbname]
 put field fSecDBUser of me into aConnection [dbuser]
 put field fSecDBPass of me into aConnection [dbpass]
 break
   end switch
 
   return aConnection
 end getConnection
 
 Now my database back scripts can call this function, and because the button 
 containing the back scripts exists on the same card, they execute in the 
 context of that card. (Whew!) 
 
 Bob
 
 On Feb 7, 2014, at 09:02 , Mike Bonner bonnm...@gmail.com wrote:
 
 Ah k. I understand what you're saying now.
 
 The OP points out that put the short name of this card is returning the
 current card (as per the dictionary, and the behavior in the OP matches
 this.)
 If things remain the same and the message is sent to the card itself
 (like it was in the OP) then the handler in the card can put the short
 name of me and it will work because the handler is executing in the card,
 but if the message is sent to an object on a card the short name of me
 will return the object name not the card name. So one would have to do
 something 

Re: Why Programming is Difficult

2014-02-08 Thread Roger Eller
On Feb 8, 2014 2:52 AM, Richmond wrote:

 P.S. Where's my coffee? My left shoulder is aching, and I need the loo.

 Now, find a computer that is going to be affected by any of those!


Those things just need to be translated to a computers needs.

Where's my turbo (overclock) mode? My cpu fan isn't spinning, and I need
to purge the ram cache.  ;)

Of course a computer will never actually think those things.

~Roger
___
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: Why Programming is Difficult

2014-02-08 Thread Richmond

On 08/02/14 15:54, Roger Eller wrote:

On Feb 8, 2014 2:52 AM, Richmond wrote:

P.S. Where's my coffee? My left shoulder is aching, and I need the loo.

Now, find a computer that is going to be affected by any of those!


Those things just need to be translated to a computers needs.

Where's my turbo (overclock) mode? My cpu fan isn't spinning, and I need
to purge the ram cache.  ;)


purge the ram cache . . . LOL

I've heard that bodily function called many things; but that one beats 
them all!


Richmond.



Of course a computer will never actually think those things.

~Roger
___
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: Send and the context

2014-02-08 Thread Bob Sneidar
Thanks Björnke. I decided on a different strategy of putting a function in the 
card script that gets the values of all the objects I need and returns them as 
an array. I don’t think being clever with the message path is going to be one 
of my foundational methodologies in the future. :-)

Bob


On Feb 8, 2014, at 03:25 , Björnke von Gierke b...@mac.com wrote:

 You might be interested in the call command.
 
 On 08.02.2014, at 07:34, Bob Sneidar bobsnei...@iotecdigital.com wrote:
 
 This may bore most of you to tears so please disregard if it doesn’t 
 interest you. 
 
 What I am attempting is to be able to get values from objects on a card that 
 is not the current card, or even in the current stack, like fields and 
 states of buttons, without enumerating the entire path to the objects 
 themselves. This is because the card is designed to be portable, that is, to 
 be placed into any stack. The first time you go to the Database Setup card, 
 all the sqlYoga database connections will be initialized, connections 
 tested, and then connections made. It also has some database utility 
 functions I use. I’ll share it with the community when I am done shaking out 
 all the dust mites. 
 
 Now I do have a few globals I use, and could do everything with globals if 
 necessary, but that seems messy to my mind. Also, globals prevent the card 
 from working properly in multiple stack environments! I might have a 
 Database Setup card in several different stacks, and they all need to behave 
 discreetly. (This is why Stack Local variables would be HUGE!) 
 
 That is the back story. Now there are times when I need to get the values of 
 objects on the Database Setup card of the current stack without actually 
 going to the Database Setup card itself (I might be in a substack and it 
 might be modal for instance) so I inserted the script of a button with all 
 the Database Setup handlers into the message path, and then “send” commands 
 to it, so that statements like:
 
 put field “fDBType” into theDBType — this field resides on the Database 
 Setup card
 
 would execute in the context of the Database Setup card. This threw Object 
 Not Found errors, so I thought maybe it’s because the script was inserted 
 into the message path. I then tried this with another button on the Database 
 Setup card whose script was NOT inserted into the message path and got the 
 same result! 
 
 At that point I put in this handler into the script of the Database Setup 
 card:
 
 on test
 put the short name of this card
 end test
 
 Whether I send or dispatch I get the current card of the current stack.
 
 If however:
 
 on test
 put the short name of me
 end test
 
 I now get “Database Setup” whether I use send or dispatch! Well… that IS 
 what I want I suppose. That prompted this thread. If this is the expected 
 behavior, then I really do not understand at all what the dictionary means 
 by “execution context”. I DID however find one other difference between send 
 and dispatch: You can send a command but NOT a function! Dispatch works with 
 commands AND functions. 
 
 At any rate, it’s academic. I solved the problem by putting this handler in 
 the Database Setup card script:
 
 function getConnection theDBObject
  switch theDBObject
 case primary
put the hilite of button btndbPrimary of me into aConnection 
 [enabled]
put (the backgroundcolor of button btnPriConnected of me is 
 lightgreen) into aConnection [connected]
put field fPriDBType of me into aConnection [dbtype]
put field fPriDBHost of me into aConnection [dbhost]
put field fPriDBPort of me into aConnection [dbport]
put field fPriDBName of me into aConnection [dbname]
put field fpriDBUser of me into aConnection [dbuser]
put field fPriDBPass of me into aConnection [dbpass]
break
 case secondary
put the hilite of button btndbSecondary of me into aConnection 
 [enabled]
put (the backgroundcolor of button btnSecConnected of me is 
 lightgreen) into aConnection [connected]
put field fSecDBType of me into aConnection [dbtype]
put field fSecDBHost of me into aConnection [dbhost]
put field fSecDBPort of me into aConnection [dbport]
put field fSecDBName of me into aConnection [dbname]
put field fSecDBUser of me into aConnection [dbuser]
put field fSecDBPass of me into aConnection [dbpass]
break
  end switch
 
  return aConnection
 end getConnection
 
 Now my database back scripts can call this function, and because the button 
 containing the back scripts exists on the same card, they execute in the 
 context of that card. (Whew!) 
 
 Bob
 
 On Feb 7, 2014, at 09:02 , Mike Bonner bonnm...@gmail.com wrote:
 
 Ah k. I understand what you're saying now.
 
 The OP points out that put the short name of this card is returning the
 current card (as per the dictionary, and the behavior in the OP matches
 this.)
 If things remain the same 

[ANN] MobGUI V1.2 and demo version

2014-02-08 Thread John Craig
The MobGUI plugin has been updated to V1.2 and there's now a demo 
version available for download.
The plugin also comes bundled with mobguicons - royalty free icon fonts 
to use in your projects.


See www.mobgui.com and the MobGUI forum 
(http://forums.runrev.com/viewforum.php?f=54) for more details.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [OT] will amuse you Linux fans

2014-02-08 Thread Andrew Kluthe
Those who choose to obey the laws are either those who are the
beneficiaries of such instruments, or to whom the instrument has rendered
all other choices and possibilities unworthy of consideration. The point is
that even in western democracies, people don't actually have a choice in
the matter. You obey or you are punished. That is the presupposition of the
whole concept: removal (whether it is perceived as voluntary or otherwise)
of choice to those who know properly how to do the choosin'.

Government in North Korea is maintained by the same force and threats as it
is in most any western democracy. The difference being that in western
democracies the populace is encouraged to take an actionable role in their
own subjugation and the subjugation of others in an attempt to feel like we
belong and have agency in such matters. We are allowed to choose wallpaper
patterns for the homes we are allowed to live in by being obedient enough
to be granted some kind of economic privilege. In exchange for our
co-operation, we earn a chance at a more personally satisfying (to some)
servitude. Should any groups of people in a western democracy decide
against being servile, we know for sure that force will arrive there to
restore servility.

I'd prefer not to allow my liberty to be (or at least work to prevent from
being) bound by involuntary contracts like constitutions, writs and the
like.

And after reading over the thread again I'd like to point out:

Those who choose to obey the laws (that they themselves are protected by I
might add) do not need to be compelled.

This phrase strikes me now as something very similar to what a gangster
might say when attempting to expand a protection racket.

I'm not suggesting that you are a gangster or run a protection racket, of
course, but that the logic being implied by your concept of governance
lines up perfectly with what I am describing. I think that we are in
agreement about function but just have different biases and perspectives
into those functions.


On Sat, Feb 8, 2014 at 1:48 AM, Richmond richmondmathew...@gmail.comwrote:

 On 08/02/14 07:06, Bob Sneidar wrote:

 Only upon the lawless. :-) Those who choose to obey the laws (that they
 themselves are protected by I might add) do not need to be compelled.

 Bob




 There is a small problem there.

 I am sure that most of us here on the Use-List would applaud a North
 Korean who broke certain of that
 country's draconian laws,

 and, furthermore,

 do not feel groovy about the sort of compulsion that goes on there.

 Now that is one end of a continuum, and the question is, and always has
 been,
 where one should decide breaking a law is legitimate protest and where it
 is
 a crime.

 Richmond.


 ___
 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




-- 
Regards,

Andrew Kluthe
and...@ctech.me
___
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


[OT] purging RAM cache...

2014-02-08 Thread Colin Holgate
This got mentioned in another thread, and only yesterday I started using a new 
utility, which is pretty neat. It shows how much RAM is being used right now, 
and you are able to purge memory that can be made available. It would be ideal 
for when you’ve been doing some heavy duty Photoshop work, and are finding that 
your machine is sluggish.

It’s free from the Mac App Store, thug it does have promo links in it to other 
apps by the same developer:

https://itunes.apple.com/us/app/memory-clean/id451444120?mt=12

Once you have installed and opened the app you may think that it’s not 
appearing. It places a small icon and a few numbers (the current free RAM 
amount) into your menu bar. Click on that to open up its panel.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [OT] will amuse you Linux fans

2014-02-08 Thread Richmond

On 08/02/14 17:51, Andrew Kluthe wrote:

Those who choose to obey the laws are either those who are the
beneficiaries of such instruments, or to whom the instrument has rendered
all other choices and possibilities unworthy of consideration. The point is
that even in western democracies, people don't actually have a choice in
the matter. You obey or you are punished. That is the presupposition of the
whole concept: removal (whether it is perceived as voluntary or otherwise)
of choice to those who know properly how to do the choosin'.

Government in North Korea is maintained by the same force and threats as it
is in most any western democracy. The difference being that in western
democracies the populace is encouraged to take an actionable role in their
own subjugation and the subjugation of others in an attempt to feel like we
belong and have agency in such matters. We are allowed to choose wallpaper
patterns for the homes we are allowed to live in by being obedient enough
to be granted some kind of economic privilege. In exchange for our
co-operation, we earn a chance at a more personally satisfying (to some)
servitude. Should any groups of people in a western democracy decide
against being servile, we know for sure that force will arrive there to
restore servility.

I'd prefer not to allow my liberty to be (or at least work to prevent from
being) bound by involuntary contracts like constitutions, writs and the
like.

And after reading over the thread again I'd like to point out:

Those who choose to obey the laws (that they themselves are protected by I
might add) do not need to be compelled.

This phrase strikes me now as something very similar to what a gangster
might say when attempting to expand a protection racket.

I'm not suggesting that you


To whom does you refer to?

Unless that is cleared up somebody is going to feel their nose has been 
put out of joint :)


Richmond.


are a gangster or run a protection racket, of
course, but that the logic being implied by your concept of governance
lines up perfectly with what I am describing. I think that we are in
agreement about function but just have different biases and perspectives
into those functions.


On Sat, Feb 8, 2014 at 1:48 AM, Richmond richmondmathew...@gmail.comwrote:


On 08/02/14 07:06, Bob Sneidar wrote:


Only upon the lawless. :-) Those who choose to obey the laws (that they
themselves are protected by I might add) do not need to be compelled.

Bob





There is a small problem there.

I am sure that most of us here on the Use-List would applaud a North
Korean who broke certain of that
country's draconian laws,

and, furthermore,

do not feel groovy about the sort of compulsion that goes on there.

Now that is one end of a continuum, and the question is, and always has
been,
where one should decide breaking a law is legitimate protest and where it
is
a crime.

Richmond.


___
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: [OT] will amuse you Linux fans

2014-02-08 Thread Andrew Kluthe
Richmond,

My response was directed towards Bob.



On Sat, Feb 8, 2014 at 10:08 AM, Richmond richmondmathew...@gmail.comwrote:

 On 08/02/14 17:51, Andrew Kluthe wrote:

 Those who choose to obey the laws are either those who are the
 beneficiaries of such instruments, or to whom the instrument has rendered
 all other choices and possibilities unworthy of consideration. The point
 is
 that even in western democracies, people don't actually have a choice in
 the matter. You obey or you are punished. That is the presupposition of
 the
 whole concept: removal (whether it is perceived as voluntary or otherwise)
 of choice to those who know properly how to do the choosin'.

 Government in North Korea is maintained by the same force and threats as
 it
 is in most any western democracy. The difference being that in western
 democracies the populace is encouraged to take an actionable role in their
 own subjugation and the subjugation of others in an attempt to feel like
 we
 belong and have agency in such matters. We are allowed to choose wallpaper
 patterns for the homes we are allowed to live in by being obedient enough
 to be granted some kind of economic privilege. In exchange for our
 co-operation, we earn a chance at a more personally satisfying (to some)
 servitude. Should any groups of people in a western democracy decide
 against being servile, we know for sure that force will arrive there to
 restore servility.

 I'd prefer not to allow my liberty to be (or at least work to prevent from
 being) bound by involuntary contracts like constitutions, writs and the
 like.

 And after reading over the thread again I'd like to point out:

 Those who choose to obey the laws (that they themselves are protected by
 I
 might add) do not need to be compelled.

 This phrase strikes me now as something very similar to what a gangster
 might say when attempting to expand a protection racket.

 I'm not suggesting that you


 To whom does you refer to?

 Unless that is cleared up somebody is going to feel their nose has been
 put out of joint :)

 Richmond.


  are a gangster or run a protection racket, of
 course, but that the logic being implied by your concept of governance
 lines up perfectly with what I am describing. I think that we are in
 agreement about function but just have different biases and perspectives
 into those functions.


 On Sat, Feb 8, 2014 at 1:48 AM, Richmond richmondmathew...@gmail.com
 wrote:

  On 08/02/14 07:06, Bob Sneidar wrote:

  Only upon the lawless. :-) Those who choose to obey the laws (that they
 themselves are protected by I might add) do not need to be compelled.

 Bob




  There is a small problem there.

 I am sure that most of us here on the Use-List would applaud a North
 Korean who broke certain of that
 country's draconian laws,

 and, furthermore,

 do not feel groovy about the sort of compulsion that goes on there.

 Now that is one end of a continuum, and the question is, and always has
 been,
 where one should decide breaking a law is legitimate protest and where it
 is
 a crime.

 Richmond.


 ___
 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




-- 
Regards,

Andrew Kluthe
and...@ctech.me
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [OT] will amuse you Linux fans

2014-02-08 Thread Björnke von Gierke
cheese

On 08.02.2014, at 17:09, Andrew Kluthe and...@ctech.me wrote:

 Richmond,
 
 My response was directed towards Bob.
 
 
 
 On Sat, Feb 8, 2014 at 10:08 AM, Richmond richmondmathew...@gmail.comwrote:
 
 On 08/02/14 17:51, Andrew Kluthe wrote:
 
 Those who choose to obey the laws are either those who are the
 beneficiaries of such instruments, or to whom the instrument has rendered
 all other choices and possibilities unworthy of consideration. The point
 is
 that even in western democracies, people don't actually have a choice in
 the matter. You obey or you are punished. That is the presupposition of
 the
 whole concept: removal (whether it is perceived as voluntary or otherwise)
 of choice to those who know properly how to do the choosin'.
 
 Government in North Korea is maintained by the same force and threats as
 it
 is in most any western democracy. The difference being that in western
 democracies the populace is encouraged to take an actionable role in their
 own subjugation and the subjugation of others in an attempt to feel like
 we
 belong and have agency in such matters. We are allowed to choose wallpaper
 patterns for the homes we are allowed to live in by being obedient enough
 to be granted some kind of economic privilege. In exchange for our
 co-operation, we earn a chance at a more personally satisfying (to some)
 servitude. Should any groups of people in a western democracy decide
 against being servile, we know for sure that force will arrive there to
 restore servility.
 
 I'd prefer not to allow my liberty to be (or at least work to prevent from
 being) bound by involuntary contracts like constitutions, writs and the
 like.
 
 And after reading over the thread again I'd like to point out:
 
 Those who choose to obey the laws (that they themselves are protected by
 I
 might add) do not need to be compelled.
 
 This phrase strikes me now as something very similar to what a gangster
 might say when attempting to expand a protection racket.
 
 I'm not suggesting that you
 
 
 To whom does you refer to?
 
 Unless that is cleared up somebody is going to feel their nose has been
 put out of joint :)
 
 Richmond.
 
 
 are a gangster or run a protection racket, of
 course, but that the logic being implied by your concept of governance
 lines up perfectly with what I am describing. I think that we are in
 agreement about function but just have different biases and perspectives
 into those functions.
 
 
 On Sat, Feb 8, 2014 at 1:48 AM, Richmond richmondmathew...@gmail.com
 wrote:
 
 On 08/02/14 07:06, Bob Sneidar wrote:
 
 Only upon the lawless. :-) Those who choose to obey the laws (that they
 themselves are protected by I might add) do not need to be compelled.
 
 Bob
 
 
 
 
 There is a small problem there.
 
 I am sure that most of us here on the Use-List would applaud a North
 Korean who broke certain of that
 country's draconian laws,
 
 and, furthermore,
 
 do not feel groovy about the sort of compulsion that goes on there.
 
 Now that is one end of a continuum, and the question is, and always has
 been,
 where one should decide breaking a law is legitimate protest and where it
 is
 a crime.
 
 Richmond.
 
 
 ___
 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
 
 
 
 
 -- 
 Regards,
 
 Andrew Kluthe
 and...@ctech.me
 ___
 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 an alternative Dictionary viewer:
http://bjoernke.com/bvgdocu/

Chat with other RunRev developers:
http://bjoernke.com/chatrev/



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [OT] will amuse you Linux fans

2014-02-08 Thread Andrew Kluthe
Gmail handles replies to list email a little differently. Unless  I
specifically hit reply on bobs email it just quotes the last one in the
thread.

Andrew


On Sat, Feb 8, 2014 at 10:09 AM, Andrew Kluthe and...@ctech.me wrote:

 Richmond,

 My response was directed towards Bob.



 On Sat, Feb 8, 2014 at 10:08 AM, Richmond richmondmathew...@gmail.comwrote:

 On 08/02/14 17:51, Andrew Kluthe wrote:

 Those who choose to obey the laws are either those who are the
 beneficiaries of such instruments, or to whom the instrument has rendered
 all other choices and possibilities unworthy of consideration. The point
 is
 that even in western democracies, people don't actually have a choice in
 the matter. You obey or you are punished. That is the presupposition of
 the
 whole concept: removal (whether it is perceived as voluntary or
 otherwise)
 of choice to those who know properly how to do the choosin'.

 Government in North Korea is maintained by the same force and threats as
 it
 is in most any western democracy. The difference being that in western
 democracies the populace is encouraged to take an actionable role in
 their
 own subjugation and the subjugation of others in an attempt to feel like
 we
 belong and have agency in such matters. We are allowed to choose
 wallpaper
 patterns for the homes we are allowed to live in by being obedient enough
 to be granted some kind of economic privilege. In exchange for our
 co-operation, we earn a chance at a more personally satisfying (to some)
 servitude. Should any groups of people in a western democracy decide
 against being servile, we know for sure that force will arrive there to
 restore servility.

 I'd prefer not to allow my liberty to be (or at least work to prevent
 from
 being) bound by involuntary contracts like constitutions, writs and the
 like.

 And after reading over the thread again I'd like to point out:

 Those who choose to obey the laws (that they themselves are protected
 by I
 might add) do not need to be compelled.

 This phrase strikes me now as something very similar to what a gangster
 might say when attempting to expand a protection racket.

 I'm not suggesting that you


 To whom does you refer to?

 Unless that is cleared up somebody is going to feel their nose has been
 put out of joint :)

 Richmond.


  are a gangster or run a protection racket, of
 course, but that the logic being implied by your concept of governance
 lines up perfectly with what I am describing. I think that we are in
 agreement about function but just have different biases and perspectives
 into those functions.


 On Sat, Feb 8, 2014 at 1:48 AM, Richmond richmondmathew...@gmail.com
 wrote:

  On 08/02/14 07:06, Bob Sneidar wrote:

  Only upon the lawless. :-) Those who choose to obey the laws (that they
 themselves are protected by I might add) do not need to be compelled.

 Bob




  There is a small problem there.

 I am sure that most of us here on the Use-List would applaud a North
 Korean who broke certain of that
 country's draconian laws,

 and, furthermore,

 do not feel groovy about the sort of compulsion that goes on there.

 Now that is one end of a continuum, and the question is, and always has
 been,
 where one should decide breaking a law is legitimate protest and where
 it
 is
 a crime.

 Richmond.


 ___
 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




 --
 Regards,

 Andrew Kluthe
 and...@ctech.me




-- 
Regards,

Andrew Kluthe
and...@ctech.me
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [OT] purging RAM cache...

2014-02-08 Thread Richmond

On 08/02/14 18:01, Colin Holgate wrote:

This got mentioned in another thread, and only yesterday I started using a new 
utility, which is pretty neat. It shows how much RAM is being used right now, 
and you are able to purge memory that can be made available. It would be ideal 
for when you’ve been doing some heavy duty Photoshop work, and are finding that 
your machine is sluggish.


Ahem . . . GIMP http://www.gimp.org/


It’s free from the Mac App Store, thug it does have promo links in it to other 
apps by the same developer:

https://itunes.apple.com/us/app/memory-clean/id451444120?mt=12


Ahem . . . Linux  http://distrowatch.com/

Ahem . . . Windows  http://windows.microsoft.com/en-us/windows/home

Ahem . . . UNIX  http://www.unixdownload.net/

Ahem . . . Haiku  but, hey, their web-pages are not loading, again.

Ahem . . . Open Source:

Analys/ze RAM consumption:  https://www.eclipse.org/mat/ [cross-platform]



Once you have installed and opened the app you may think that it’s not 
appearing. It places a small icon and a few numbers (the current free RAM 
amount) into your menu bar. Click on that to open up its panel.



Ahem . . . Richmond.


___
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: Send and the context

2014-02-08 Thread J. Landman Gay

On 2/8/14, 12:34 AM, Bob Sneidar wrote:

I DID however find one other difference between send and dispatch:
You can send a command but NOT a function!


For functions you can use this:

 get value(myHandler(param),cd othercard)

where the first parameter is the name of the function with its 
parameters, and the second parameter is the location of the script to query.


See value in the dictionary, especially Oliver's user note.

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


Getting rid of the Tools palette

2014-02-08 Thread Peter Haworth
Is there a way to stop the Tools palette displaying when LC starts up? Even
if it is not open when I exit LC, it appears next time I start LC.
Pete
lcSQL Software http://www.lcsql.com
Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and
SQLiteAdmin http://www.lcsql.com/sqliteadmin.html
___
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: Getting rid of the Tools palette

2014-02-08 Thread Peter Haworth
Thanks Richmond and Mark.  Doesn't it seem like LC should either remember
the Tools palette state when it shuts down?  It sems to do that with the
Application Browser.

Pete
lcSQL Software http://www.lcsql.com
Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and
SQLiteAdmin http://www.lcsql.com/sqliteadmin.html


On Sat, Feb 8, 2014 at 12:02 PM, Mark Wieder mwie...@ahsoftware.net wrote:

 Pete-

 Saturday, February 8, 2014, 11:12:36 AM, you wrote:

  Is there a way to stop the Tools palette displaying when LC starts up?
 Even
  if it is not open when I exit LC, it appears next time I start LC.

 With PowerTools, you just minimize it and it remembers that:
 
 http://mwieder.on-rev.com/WordPress/?incsub_wiki=getting-powertools-out-of-the-way
 
 http://www.ahsoftware.net/PowerTools/PowerTools.irev

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


changing the settings.plist template for iOS7 is ignored

2014-02-08 Thread Matthias Rebbe
Hi,

i noticed the following strange behaviour. Although i´m building for IOS7, LC 
6.5.1 and also 6.5.2 uses the plist template from 6.1.

How i found out?

I changed the settings.plist in Runtime/iOS/Device-7_0 to set  the 
UIApplicationExitsOnSuspend key to false, but the created iOS app still exits 
on suspend.

I looked into the app bundle and detected that although the changes are present 
in the settings.plist within the Runtime folder, the settings.plist in the app 
bundle
still shows the livecode placeholder ${APPLICATION_EXITS_ON_SUSPEND}.

I removed all folders (device and simulator) except the device-7_0 from the iOS 
folder and tried to build again. I got an error could not find plist template 
for device

After moving the folder Device-6_1 back to the iOS folder i was able to build 
again. After changing UIApplicationExitsOnSuspend key in the settings.plist for 
6.1,
i was able to create the iOS 7 app with the correct settings.plist.

I can even delete the settings.plist in the device-7_0 folder and still can 
build. 

This is not how it should be, isn´t it?

Matthias



Matthias Rebbe


___
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: changing the settings.plist template for iOS7 is ignored

2014-02-08 Thread Matthias Rebbe
Am 08.02.2014 um 22:15 schrieb Matthias Rebbe 
matthias_livecode_150...@m-r-d.de:

 Hi,
 
 i noticed the following strange behaviour. Although i´m building for IOS7, LC 
 6.5.1 and also 6.5.2 uses the plist template from 6.1.
 
 How i found out?
 
 I changed the settings.plist in Runtime/iOS/Device-7_0 to set  the 
 UIApplicationExitsOnSuspend key to false, but the created iOS app still exits 
 on suspend.
 
 I looked into the app bundle and detected that although the changes are 
 present in the settings.plist within the Runtime folder, the settings.plist 
 in the app bundle
sorry i meant the info.plist in the app bundle.



 still shows the livecode placeholder ${APPLICATION_EXITS_ON_SUSPEND}.
 
 I removed all folders (device and simulator) except the device-7_0 from the 
 iOS folder and tried to build again. I got an error could not find plist 
 template for device
 
 After moving the folder Device-6_1 back to the iOS folder i was able to build 
 again. After changing UIApplicationExitsOnSuspend key in the settings.plist 
 for 6.1,
 i was able to create the iOS 7 app with the correct settings.plist.
 
 I can even delete the settings.plist in the device-7_0 folder and still can 
 build. 
 
 This is not how it should be, isn´t it?
 
 Matthias
 
 
 
 Matthias Rebbe
 
 
 ___
 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: changing the settings.plist template for iOS7 is ignored

2014-02-08 Thread Matthias Rebbe
Hi Neil,

thanks for letting me know.

Unfortunately i reported this to the Quality Center 

http://quality.runrev.com/show_bug.cgi?id=11772

Anything i can do now? Or will someone of Runrev take care
and delete it or mark it as duplicate?

Regards,

Matthias


Am 08.02.2014 um 22:37 schrieb Neil Roger n...@runrev.com:

 Hi Matthias,
 
 This issue with LiveCode using the 6.1 settings.plist was brought to our 
 attention when investigating the following bug-
 
 http://quality.runrev.com/show_bug.cgi?id=11754
 
 This bug and the settings.plist issue will be resolved in the next release of 
 LiveCode
 
 Kind Regards,
 
 
 Neil Roger
 --
 RunRev Support Team ~ http://www.runrev.com
 --
 
 On 08/02/2014 21:20, Matthias Rebbe wrote:
 Am 08.02.2014 um 22:15 schrieb Matthias Rebbe 
 matthias_livecode_150...@m-r-d.de:
 
 Hi,
 
 i noticed the following strange behaviour. Although i´m building for IOS7, 
 LC 6.5.1 and also 6.5.2 uses the plist template from 6.1.
 
 How i found out?
 
 I changed the settings.plist in Runtime/iOS/Device-7_0 to set  the 
 UIApplicationExitsOnSuspend key to false, but the created iOS app still 
 exits on suspend.
 
 I looked into the app bundle and detected that although the changes are 
 present in the settings.plist within the Runtime folder, the settings.plist 
 in the app bundle
 sorry i meant the info.plist in the app bundle.
 
 
 
 still shows the livecode placeholder ${APPLICATION_EXITS_ON_SUSPEND}.
 
 I removed all folders (device and simulator) except the device-7_0 from the 
 iOS folder and tried to build again. I got an error could not find plist 
 template for device
 
 After moving the folder Device-6_1 back to the iOS folder i was able to 
 build again. After changing UIApplicationExitsOnSuspend key in the 
 settings.plist for 6.1,
 i was able to create the iOS 7 app with the correct settings.plist.
 
 I can even delete the settings.plist in the device-7_0 folder and still can 
 build.
 
 This is not how it should be, isn´t it?
 
 Matthias
 
 
 
 Matthias Rebbe
 
 
 ___
 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

Matthias Rebbe


___
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: changing the settings.plist template for iOS7 is ignored

2014-02-08 Thread Neil Roger

Hi Matthias,

That's not a problem. We will be able to take care of it at our end on 
Monday.


Thanks for submitting the report.

Kind Regards,


Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
--


On 08/02/2014 22:03, Matthias Rebbe wrote:

Hi Neil,

thanks for letting me know.

Unfortunately i reported this to the Quality Center

http://quality.runrev.com/show_bug.cgi?id=11772

Anything i can do now? Or will someone of Runrev take care
and delete it or mark it as duplicate?

Regards,

Matthias


Am 08.02.2014 um 22:37 schrieb Neil Roger n...@runrev.com:


Hi Matthias,

This issue with LiveCode using the 6.1 settings.plist was brought to our 
attention when investigating the following bug-

http://quality.runrev.com/show_bug.cgi?id=11754

This bug and the settings.plist issue will be resolved in the next release of 
LiveCode

Kind Regards,


Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
--

On 08/02/2014 21:20, Matthias Rebbe wrote:

Am 08.02.2014 um 22:15 schrieb Matthias Rebbe 
matthias_livecode_150...@m-r-d.de:


Hi,

i noticed the following strange behaviour. Although i´m building for IOS7, LC 
6.5.1 and also 6.5.2 uses the plist template from 6.1.

How i found out?

I changed the settings.plist in Runtime/iOS/Device-7_0 to set  the 
UIApplicationExitsOnSuspend key to false, but the created iOS app still exits 
on suspend.

I looked into the app bundle and detected that although the changes are present 
in the settings.plist within the Runtime folder, the settings.plist in the app 
bundle

sorry i meant the info.plist in the app bundle.




still shows the livecode placeholder ${APPLICATION_EXITS_ON_SUSPEND}.

I removed all folders (device and simulator) except the device-7_0 from the iOS folder 
and tried to build again. I got an error could not find plist template for 
device

After moving the folder Device-6_1 back to the iOS folder i was able to build 
again. After changing UIApplicationExitsOnSuspend key in the settings.plist for 
6.1,
i was able to create the iOS 7 app with the correct settings.plist.

I can even delete the settings.plist in the device-7_0 folder and still can 
build.

This is not how it should be, isn´t it?

Matthias



Matthias Rebbe


___
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

Matthias Rebbe


___
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: repeating string

2014-02-08 Thread Peter M. Brigham
Without using Regex, you can do this:

function makeString tChar, n
   -- returns a string of n characters (tChar)
   -- no repeat loop!
   put cr into line n of m
   replace cr with tChar in m
   return m
end makeString

-- Peter

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

On Feb 5, 2014, at 11:24 AM, Alex Tweedly wrote:

 On 05/02/2014 15:06, Mike Kerner wrote:
 Alex's idea is also clever, but what if I am trying to repeat another
 character, like #?
 
 
 
 put replacetext( format(%30s,  ),  , x) into myVar
 
 (no promises for being the speediest solution - but still one line and no 
 library involved).
 -- Alex.
 
 ___
 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: Stupid simple version control using dropbox

2014-02-08 Thread Peter M. Brigham
And some of you may be interested in Sookasa, a utility that works with Dropbox 
to encrypt files. It creates a Sookasa folder in your Dropbox folder, and 
encrypts the files there so that the version that lives on your hard drive and 
the version in the Dropbox cloud are both encrypted. They use AES 256 bit 
encryption and the higher level products (cost more) have full HIPAA-level 
encryption. If you plan on working offline you can DL a decryption key for 
accessing your files that is good for 48 hours.

-- Peter

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

On Feb 7, 2014, at 9:59 AM, Mark Schonewille wrote:

 Hi Geoff,
 
 I completely agree. I have a 16GB account and keep a backup of my active 
 project folder on Dropbox and, which has saved me a few times.
 
 Anyone else reading this: if you want to register for Dropbox quickly, you 
 can follow this link http://qery.us/u6
 
 --
 Best regards,
 
 Mark Schonewille
 
 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553
 
 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour 
 spaces. http://www.color-converter.com
 
 Buy my new book Programming LiveCode for the Real Beginner 
 http://qery.us/3fi
 
 LiveCode on Facebook:
 https://www.facebook.com/groups/runrev/
 
 On 2/7/2014 15:50, Geoff Canyon wrote:
 Not sure if this has been posted before, but just in case: If you store
 your stack files in the dropbox folder on your computer, dropbox does a
 really good job of saving a copy of each separate file whenever the file is
 saved. You can look at a list of the saved versions and get/restore any of
 them.
 
 It's not git, but as a file-level resource it's a 1000x better than
 nothing. I borked up some code last night (never try to solve a problem at
 3am that stumped you at 9pm) so I'm really happy that I can just revert to
 the 9pm version and forget whatever it is I did later on.
 
 
 ___
 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: Stupid simple version control using dropbox

2014-02-08 Thread Paul Hibbert
Howard,

You need a Business account or a Pro account with add ons for version history.

https://www.dropbox.com/business/pricing

Paul

On 2014-02-07, at 12:36 PM, Howard Bornstein bornst...@designeq.com wrote:

 However, I don't see the stack versioning you describe in any of my stack
 files on Dropbox. Is there something specific one needs to do in order to
 invoke this characteristic of Dropbox?


___
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: repeating string

2014-02-08 Thread Richard Gaskin

Nice, Peter.

Inspired by that I wondered if we might use the lineDel to some 
advantage here, and it turns out to be ever so slightly faster:


on mouseUp
   put 1 into n
   -- test 1:
   put the millisecs into t
   repeat n
  put MakeString(#, 100) into r1
   end repeat
   put the millisecs - t into t1
   -- test 2:
   put the millisecs into t
   repeat n
  put MakeString2(#, 100) into r2
   end repeat
   put the millisecs - t into t2
   -- display results:
   put t1   t2  (r1=r2)cr r1 len(r1) cr r2  len(r2)
end mouseUp

function makeString tChar, n
   -- returns a string of n characters (tChar)
   -- no repeat loop!
   put cr into line n of m
   replace cr with tChar in m
   return m
end makeString

function makeString2 tChar, n
   set the linedel to tChar
   put tChar into line n of m
   return m
end makeString2


On my slow Mac that produces:

75 70 true
100
100

And if the char you need is either space or null, binaryEncode can 
produce a string of arbitrary length padded with either of those (and a 
whole lot more  - binaryEncode is quite a powerhouse of utility).


--
 Richard Gaskin
 Fourth World Systems
 
 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: Stupid simple version control using dropbox

2014-02-08 Thread Paul Hibbert
Mark,

Thank you for sharing that, I looked all over for this when I heard about it, 
but when I saw the add on in the price structure I stopped looking. 

I guess Dropbox has one thing in common with LiveCode then - occasionally 
lacking in documentation!

Thanks again,

Paul

On 2014-02-08, at 4:57 PM, Mark Wieder mwie...@ahsoftware.net wrote:

 Paul, Howard-
 
 Saturday, February 8, 2014, 3:07:28 PM, you wrote:
 
 You need a Business account or a Pro account with add ons for version 
 history.
 
 Not necessary.
 
 On 2014-02-07, at 12:36 PM, Howard Bornstein bornst...@designeq.com wrote:
 
 However, I don't see the stack versioning you describe in any of my stack
 files on Dropbox. Is there something specific one needs to do in order to
 invoke this characteristic of Dropbox?
 
 (the description below is for linux, I assume other OSs are similar)
 
 Right-click on the Dropbox icon in the tray
 Select Launch Dropbox website
 Find the file you're interested in
 Right-click the file for the contextual menu
 Select Previous versions
 From the list that appears, select one checkbox
  (ignore the fact that the checkbox looks like a radio button)
 Click the Restore button
 
 -- 
 -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


Alternative Answer Dialog

2014-02-08 Thread Mark Schonewille

Hi,

For a project, I needed an answer dialog that allows the user to click 
just once and then hide the message forever. This answer dialog is now 
available in the private section of my website. You can download it 
after making a donation.


More info: http://qery.us/440

--
Best regards,

Mark Schonewille

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

Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other 
colour spaces. http://www.color-converter.com


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


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

___
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


Windows 7: Chinese characters replacing quotes apostrophes in English text

2014-02-08 Thread FORD JR., CURT
A module which has been problem-free on most computers is showing odd behavior 
on one client's computer: Chinese characters appear replacing an apostrophe + 
s, or a contraction with an apostrophe, in the English text, and also where 
there are opening  closing quotes. m-dashes also aren't displaying properly.

The text was pasted into Livecode from an rtf document and is displayed in the 
Charis SIL font, which our installer installs (other parts of the text make 
clear the font is installing normally). It's not editable or even selectable, 
and the module doesn't involve any htmltext or unicodetext routines.

One thing different on this system may be that the user is running Windows 7 
Ultimate English version, with Chinese language support.

Any ideas on what's happening, or how to fix it?

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


Parsing CSV File Via Array - Part I

2014-02-08 Thread JOHN PATTEN
Hi All,
I’m trying to parse a Google Form csv data file. Each row in csv represents one 
completed form entry by a user. The Google Form (survey) allows for specific 
drop down selections. Here’s some sample form csv data:

End,End,End,Middle,
Just right,Too loud,Too loud,Just right,
No,Yes,No,No,

I’m trying to use an array to pull out each item and the item counts. This is 
what I would like have reported out:

End,3
Middle,1
Just right,2
Too loud,2
No,3
Yes,1

Myscript is working, but because I call the same array each time I loop through 
my reported out data is out of order. It looks like:

Yes,1
Just right,2
No,3
Too loud,2
Middle,1
End,3

(Msg end of Part I)

___
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


Parsing CSV File VIA Array? (Part II)

2014-02-08 Thread JOHN PATTEN
(Part II of MSG)
Here’s the script I’m using:

on mouseUp
   put 1 into tTargetLine
   repeat for number of lines in cd fld itemHold
get line tTargetLine of cd fld itemHold
   repeat with y = 1 to the number of items of it
  put item y of it into counterArray[item y of it][y]
   end repeat
put the keys of counterArray into cd fld Group2

-- my error is in here when I begin the subsequent loops i think as the array 
continues to add elements

repeat with x = 1 to the number of lines in cd fld group2
   put line x of cd fld group2 into tElement
put 0 into tCounter
repeat for each element thisElement in counterArray[tElement]
   put thisElement  return after cd fld group3
   add 1 to tCounter
end repeat
put ,  tCounter after line X of cd fld group2
put  into cd fld group3
end repeat
put return after cd fld group2
add 1 to tTargetLine
end repeat
end mouseUp

I’m afraid I’m making this more complicated than it has to be. Any suggestions?

Thank you!
___
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: Parsing CSV File Via Array - Part I

2014-02-08 Thread stephen barncard
On Sat, Feb 8, 2014 at 9:11 PM, JOHN PATTEN johnpat...@me.com wrote:
 I’m trying to use an array to pull out each item and the item counts


arrays don't keep track of their order. You need to add an index 'field'

--
Stephen Barncard - San Francisco Ca. USA - Deeds Not Words

___
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: Stupid simple version control using dropbox

2014-02-08 Thread Geoff Canyon
On Sat, Feb 8, 2014 at 6:57 PM, Mark Wieder mwie...@ahsoftware.net wrote:

 Right-click on the Dropbox icon in the tray
 Select Launch Dropbox website
 Find the file you're interested in
 Right-click the file for the contextual menu
 Select Previous versions
 From the list that appears, select one checkbox
   (ignore the fact that the checkbox looks like a radio button)
 Click the Restore button


Yep, same here on OS X. I started by simply using a browser and going to
dropbox.com and signing in, but from Find the file you're interested in
it's identical.
___
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: repeating string

2014-02-08 Thread Geoff Canyon
On Wed, Feb 5, 2014 at 9:06 AM, Mike Kerner mikeker...@roadrunner.comwrote:

 put 30 a into goop, but that is a recipe for failure, and
 put 30 a's into goop is almost unreadable


If we're devising syntax, I think some other languages use * as in:

put 30 * a into goop

This still runs into problems because of LC's typeless variables:

put 5 * 15 -- puts 75
put 5 * 15 -- puts 1515151515
put 15 into x
put 5 * 15 -- puts 75
put 15 into x
put 5 * 15 -- still puts 75, nor should it change

Perhaps of?

put 5 of 15 -- puts 1515151515
___
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: repeating string

2014-02-08 Thread Jerry Jensen
How about rpt(15,5) ? If you don't quote the 15, the numberformat would take 
effect, I guess.

On Feb 8, 2014, at 9:41 PM, Geoff Canyon gcan...@gmail.com wrote:

 On Wed, Feb 5, 2014 at 9:06 AM, Mike Kerner mikeker...@roadrunner.comwrote:
 
 put 30 a into goop, but that is a recipe for failure, and
 put 30 a's into goop is almost unreadable
 
 
 If we're devising syntax, I think some other languages use * as in:
 
 put 30 * a into goop
 
 This still runs into problems because of LC's typeless variables:
 
 put 5 * 15 -- puts 75
 put 5 * 15 -- puts 1515151515
 put 15 into x
 put 5 * 15 -- puts 75
 put 15 into x
 put 5 * 15 -- still puts 75, nor should it change
 
 Perhaps of?
 
 put 5 of 15 -- puts 1515151515
 ___
 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