[OT] Re: Crashing Ubuntu 11.10 with LC 4.5

2011-12-27 Thread Richmond

On 12/27/2011 01:45 PM, Bernard Devlin wrote:

I was so appalled by the latest Ubuntu, I switched to Mint.  Ubuntu
had become as slow as using Windows Vista.  No wonder Mint has taken
off.  Whilst the main charts in the link below are based on
DistroWatch (arguably a sign of what cutting-edge linux users are up
to), the chart further down the page showing Google search data
indicates that the claim that Ubuntu is losing out to Mint has some
basis.

http://royal.pingdom.com/2011/11/23/ubuntu-linux-losing-popularity-fast-new-unity-interface-to-blame/

My negative experience with Ubuntu last month was what drove me to
look at Mint, which I'd vaguely heard of over the past few years.

Bernard


Well, I'm just about to hop on the plane for my annual visit to Britain 
(which will include
dephlogisticating my parents' laptop, which was running Ubuntu 10.10, 
which has gone
very sour since my Father couldn't resist clicking on distro-upgrade 
and getting
b*ggered by Unity. I am, right now, wondering whether I should reinstall 
Ubuntu 10.10 and

lock-down the upgrade option, or go for Mint 12 with MATE

The whole MATE thing has come about because the powers that be in the 
Debian world have
mucked around with the repositories in such a way that one cannot, say, 
install Ubuntu 11.10 and then GNOME 2 using apt-get. Since the Linux 
people go on, and on, and on, tiresomely about choice this

is a crock of sh*t.

As I seem to be unable to get Mint 12 to behave itself in Virtual Box I 
am a bit nervous about
spending donkey's ages on a real laptop only to find out that I have 
ended up with a 'pup'.


Of course, the other option, is just to install XFCE on my parents' 
existing setup; although that

sounds like a fudge.

Here in Bulgaria, I am living with Ubuntu 11.10 just at the moment, 
having got things reasonably the
way I want things with Avant Window Manager; however Compiz keeps dying 
on me, Nautilus has
periodic 'headaches', and the whole thing is most definitely not 
what-it-should-be. And, as you will see from the Use-List yesterday, I 
managed to get the GUI to lock-up completely with LC 4.5 . . . which

made me hopping mad.

I only wish I knew a way to get that flaming launcher thing to go away 
for ever, as it keeps popping up like a bad penny, over on the left, 
whenever I have to enter a password, with annoying frequency, and to no 
obvious purpose.


I have been a big, big fan of Avant Window Manager since I started 
seriously transitioning from Mac to Linux, and the Dock-like setup of 
AWN really makes me feel right at home; especially, as it has a Start 
Menu option that replaces that that was present in GNOME 2 and has been 
chucked away with Unity and GNOME 3.


I am unaware of my machine running noticeably more slowly than when I 
had SalineOS on it:


Intel(R) Pentium(R) 4 CPU 3.00GHz, RAM 2.0 GB

But I have never been unduly bothered about shaving seconds off here and 
there, or not having time for the odd gulp of coffee . . .  :)


I may be a naughty boy and use M  D's laptop as a guinea-pig, and 
install Mint 12 with MATE to
see what it's like; if I like it I'll install it here when I come back, 
and if M  D like it, that's groovy; failing that they'll get Ubuntu 
10.10 with all upgrades disabled.


What GNOME 3 plus Mono-Sodium-GlutaMATE will look like is anybody's 
guess; and as to functionality;

hmm



On Mon, Dec 26, 2011 at 8:38 PM, Peter Alcibiades
palcibiades-fi...@yahoo.co.uk  wrote:

Stay with Ubuntu for now, but install fluxbox and see if it still happens.
At least you'll know if its Ubuntu or Gnome3.

___
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: Crashing Ubuntu 11.10 with LC 4.5

2011-12-27 Thread Bernard Devlin
I was so appalled by the latest Ubuntu, I switched to Mint.  Ubuntu
had become as slow as using Windows Vista.  No wonder Mint has taken
off.  Whilst the main charts in the link below are based on
DistroWatch (arguably a sign of what cutting-edge linux users are up
to), the chart further down the page showing Google search data
indicates that the claim that Ubuntu is losing out to Mint has some
basis.

http://royal.pingdom.com/2011/11/23/ubuntu-linux-losing-popularity-fast-new-unity-interface-to-blame/

My negative experience with Ubuntu last month was what drove me to
look at Mint, which I'd vaguely heard of over the past few years.

Bernard

On Mon, Dec 26, 2011 at 8:38 PM, Peter Alcibiades
palcibiades-fi...@yahoo.co.uk wrote:
 Stay with Ubuntu for now, but install fluxbox and see if it still happens.
 At least you'll know if its Ubuntu or Gnome3.

___
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: How do you do it??

2011-12-27 Thread Bob Sneidar
Please go back and read the emails set to explain why it will not work. You may 
have passed over them in frustration. In the below example (which is not like 
the first example you provided) you still have the same problem. You are 
concatenating a DO statement with a multiple line value. So if fld 1 contained:

test1
test2

then your DO statement would look like

put test1
test2 into fld 2

Now the compiler will try to compile that as a single script before executing 
it. It gets the first command put test1 which if executed on it's own will 
put the literal value test1 into the message box. . It does not however get 
the next line test 2 into fld 2. See? That will not compile. Try it. Type 
only fld 1 into fld 2 into the message box and see what you get. 

Now why would you concatenate a DO statement in this situation anyway? It's 
pointless. Just: 

put fld 1 into fld 2

Why create a DO statement to do that? 

Bob


On Dec 23, 2011, at 3:00 PM, dunb...@aol.com wrote:

 Mike.
 
 
 Not sure I am getting this. I have two fields, one with several lines of text 
 (fld 1).
 
 
 on mouseUp
  put fld 1 into foo
  do put  foo  into fld 2
 end mouseUp
 
 
 This fails. If fld 1 contains only one line, no problem, as everyone but me 
 seems to know. Please tell me again. 
 
 
 Thanks,
 
 
 Craig
 
 
 
 -Original Message-
 From: Mike Bonner bonnm...@gmail.com
 To: How to use LiveCode use-livecode@lists.runrev.com
 Sent: Fri, Dec 23, 2011 12:42 pm
 Subject: Re: How do you do it??
 
 
 Well yeah because do is a unit.  part fails, all fail so the AA never
 gets to the msg box. Explanation still stands though.
 
 
 On Fri, Dec 23, 2011 at 3:29 PM, Bob Sneidar b...@twft.com wrote:
 
 It won't even put AA into the message box. It will try to compile the
 entire do statement first, and upon failing will just throw an error.
 
 Bob
 
 
 On Dec 23, 2011, at 1:58 PM, Mike Bonner wrote:
 
 put AA
 BB into temp2
 So it will put AA into the message box, and error out on the next line
 since there is no handler named BB
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: How do you do it??

2011-12-27 Thread Bob Sneidar
Oh sorry ignore my last post. 

Bob


On Dec 23, 2011, at 6:50 PM, dunb...@aol.com wrote:

 Of course.
 
 
 I have overdone the do construction by not including the whole statement in 
 quotes. I am so used to having to break out literals from variables, 
 reassembling them meticulously into a single line, that I missed this very 
 expected result.
 
 
 Thanks...
 
 
 Craig
 
 
 
 -Original Message-
 From: Bob Sneidar b...@twft.com
 To: How to use LiveCode use-livecode@lists.runrev.com
 Sent: Fri, Dec 23, 2011 1:20 pm
 Subject: Re: How do you do it??
 
 
 Hmmm lemme follow this as pseudo code:
 
 when the mouse is clicked
 put AA and a carriage return and BB into the variable it
 on the first pass of a repeat loop, try to do the command put followed by the 
 word it followed by the contents of the variable it (it's two lines you 
 know) followed by into temp1. The statement you are trying to do will 
 look 
 like this:
 
 do put AA
 BB into temp1
 
 Well you see what went wrong don't you? The do command does not know what to 
 do 
 with what comes after AA. It cannot even compile it. This is why it is a MUCH 
 better idea to put your command into a variable, and then do the variable. 
 You 
 could then have stepped through the code and seen what the DO command looked 
 like before you tried to do it. It may seem like wisdom at first to try to 
 mash all the code into one compact statement, but there is no gain in 
 performance, and there is a HUGE downside of not being able to debug it. 
 
 Try this instead:
 on mouseUp
  get AA  return  BB
  -- get AA
  repeat with y = 1 to 2
 put put  line y of it  into temp  y into theCommand
 do theCommand
  end repeat
  answer temp1  comma  temp2
 end mouseUp
 
 
 You will get AA,BB
 Bob
 
 
 
 On Dec 23, 2011, at 1:43 PM, dunb...@aol.com wrote:
 
 
 
 Why do LC (and HC for that matter) fail to process multi-line variables when 
 using do?
 
 
 If the variable it contains one line, the do construction
 works fine, making numbered temp variables as needed. But if I try the 
 routine 
 with a multi-line it, the handler
 will not compile.
 LC complains as: execution error at line 5 (do: error in source expression) 
 near put AA, char 1
 HC complains as well, that it cannot understand BB.
 
 
 
 It seems that the routine breaks simply because of the other lines, that is,
 the next line in it is not understandable by the parser. I wonder why it 
 bothers to look there.
 
 
 
 Don't tell me I need two levels of do: (do do put...) Just kidding, 
 that fails also.
 
 
 Just asking.
 
 
 Craig Newman
 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: revOpenDatabase Problem

2011-12-27 Thread Bob Sneidar
After opening it, and inside a try/catch statement just use select TRUE as 
connected and get the query as a string. If it throws an error you know 
something is wrong. 

One thing I like to do in database driven apps is create handlers called 
dbopen, dbclose, dbIdle isConnected. In those handlers I put the database 
commands inside try/catch constructs, and return false when I fail. Before any 
query I will call isConnected, which attempts to do some arbitrary thing with 
the database, like select TRUE as connected, which will return 1 if it succeeds 
and throw an error if it doesn't. When I am done I call dbIdle which closes the 
connection (good practice because the server is going to disconnect you anyway 
after a certain amount of time). 

The Open function attempts a connection to the database with the options the 
user entered on a setup card. If successful, I set a global I can check in the 
future to make sure I successfully connected on startup. If the global is 
false, then I prevent any interaction with the app, sometimes quitting (if not 
in development). 

By doing this I don't have to recode error handling every place I need to 
query. isConnected, upon failing will exit to top after alerting the user that 
something is wrong. The close handler will close all cursors and database 
handlers, but this is not strictly necessary, as dbIdle. 

Since using sqlYoga, this is all rather moot anyway, as this kind of 
functionality is built into it. 

Bob


On Dec 26, 2011, at 1:33 PM, Pete wrote:

 Using revOpenDatabase to open an sqlite database using a file that is not
 an sqlite database return an integer as if the database was successfully
 opened.  Any subsequent db accesses fail of course but I wonder why
 revOpenDatabase doesn't return an error?
 
 
 -- 
 Pete
 Molly's Revenge http://www.mollysrevenge.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: Point at which speaking is stopped? and ANN: Text to Speech

2011-12-27 Thread Bob Sneidar
I get No such card

Bob


On Dec 26, 2011, at 3:41 PM, Jim Hurley wrote:

 Roger,
 
 It is even better for proofreading.
 
 I have put my Text to Speech up on the web. Run this in the message box.
 
 go url http://www.jamesphurley.com/TextToSpeech.rev;
 
 Jim Hurley
 
 
 Roger Eller wrote:
 
 I like it!  I used your post as the text to read aloud via your script.
 With a little more code to add active sentence highlighting, and handle
 other oddities in text like (? with ?.), it becomes a pretty nice
 screen reader that you can follow along visually.  I could see this growing
 into a great teaching aid for reading.
 
 ˜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


Case Study: Behaviors Failing - Can't set break points

2011-12-27 Thread Todd Geist
Hello,

I just ran into this issue and I thought I would share it. I thought I was
loading my Behavior's into memory before using them but I wasn't.  Here is
what it looked like when it was failing.

I have some buttons that have behaviors set on them.  When you
control-click on them and look at Send Message, the commands that are
associated with the behavior are there. So, I thought, the button is
clearly linked to it's behavior. However using Dispatch to send the message
results in unhandled. It was not seeing the behavior's handlers.

If I use the Send form I can see that the message is sent to the Button,
but is not picked up by the Behavior, just the Button. Even if there is no
handler for the message in the button. I can tell this by stepping through
with the debugger.  The debugger goes to the button's Script ( not the
behavior's script ) even though the script is empty.  It never makes it on
to the behavior.

I also noticed that I couldn't set Break Points in the behavior scripts in
the debugger when this condition happened.  They just didn't work.

In all cases, I can it by simply resetting the behavior to itself, like so:

*set *the behavior of tControl to the behavior of tControl


So whats the deal? The button appears to be linked to the behavior? But I
can't send it messages?  And I can't set break points in the Behavior
scripts.

Well the problem is that the behaviors are not in memory when the buttons
that use them are placed into memory.  I thought that they were because I
was loading the stack containing the Behaviors as part of the PreOpenCard
in my first stack.  So the Behaviors were in a second stack.  And they were
being referenced by the first stack.

I think the docs point this out, but I was confused by the apparent
linking, and the fact that I thought loading on PreOpenCard or PreOpenStack
would be enough.  But its not.

I am including behaviors in a Library stack, instead of embedding them into
a the stacks that use them. These are pure code Behaviors, no UI.  And they
are part of the larger feature set provided by the library.  I wanted to be
able to keep the library and it's behavior's separate. So either I will
have to build a launcher file that just loads the library first or build in
re-linking, which may not be a bad thing anyway.

???

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


Launcher stacks on iOS etc.

2011-12-27 Thread Todd Geist
Hello,

Clearly on the desktop, using a launcher file to start up the solution
makes a lot of sense. It seems very helpful in terms of managing updates,
setting up the environmment etc.  But I am curious is it still a good idea
for things like iOS etc?  I am curious to hear from folks who have stuff in
the app stores.  Do you still use a launcher file?

Thanks

Todd
___
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: Strange Datagrid Behavior

2011-12-27 Thread Bob Sneidar
Delete the first datagrid and when it throws an error that is where whatever 
code is referencing the first datagrid literally. 

It sounds at first blush like you set the behavior to something other than the 
datagrid library, and then did some custom work with that behavior, referring 
to the first datagrid literally somewhere in the behavior script. 

Alternately, you can try edit the script of the behavior of mySecondDataGrid 
and then search for the name of the first datagrid. 

Bob


On Dec 26, 2011, at 5:28 PM, Pete wrote:

 I have two datagrids on a card.  When the user clicks on an option menu on
 the card, the datagrids are populated with information in two different
 formats, at least that's what's supposed to happen.
 
 I do this by setting the dgText of each datagrid to the value of a
 variable.  When I set the dgText of the first datagrid (stepping through in
 debug), I see the correct data show up.  When I set the dgText of the
 second datagrid, it appears in the first datagrid and the second datagrid
 remains empty!!  The datagrids have different names.
 
 I have checked the row template property to make sure it has not somehow
 been set to the wrong datagrid but they are both correct.  I have checked
 the value of the dgContorl property of each datagrid and it is correct also.
 
 I will say that these datagrids have have a somewhat checkered past.  They
 originally existed on a different card than they reside on now, and all
 worked fine back in those good old days.  For application design reasons, I
 copied them (and a few other controls) from the original card to a
 different card and put them all into a group.  That's when the problems
 started.
 
 Any ideas on how I might track down this strange behavior?
 
 -- 
 Pete
 Molly's Revenge http://www.mollysrevenge.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: Point at which speaking is stopped? and ANN: Text to Speech

2011-12-27 Thread Roger Eller
It is a .livecode file:

go url http://www.jamesphurley.com/TextToSpeech.livecode;



On Tue, Dec 27, 2011 at 12:37 PM, Bob Sneidar wrote:

 I get No such card

 Bob


 On Dec 26, 2011, at 3:41 PM, Jim Hurley wrote:

  Roger,
 
  It is even better for proofreading.
 
  I have put my Text to Speech up on the web. Run this in the message box.
 
  go url http://www.jamesphurley.com/TextToSpeech.rev;
 
  Jim Hurley
 

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


Re: revOpenDatabase Problem

2011-12-27 Thread Pete
All good stuff but none of it tells me if I've opened an sqlite database
:-)  You may have missed the post about opening the file as a regular file
and checking the first 16 bytes - that's the solution I used, seems to work
just great.

On Tue, Dec 27, 2011 at 9:35 AM, Bob Sneidar b...@twft.com wrote:

 After opening it, and inside a try/catch statement just use select TRUE as
 connected and get the query as a string. If it throws an error you know
 something is wrong.

 One thing I like to do in database driven apps is create handlers called
 dbopen, dbclose, dbIdle isConnected. In those handlers I put the database
 commands inside try/catch constructs, and return false when I fail. Before
 any query I will call isConnected, which attempts to do some arbitrary
 thing with the database, like select TRUE as connected, which will return 1
 if it succeeds and throw an error if it doesn't. When I am done I call
 dbIdle which closes the connection (good practice because the server is
 going to disconnect you anyway after a certain amount of time).

 The Open function attempts a connection to the database with the options
 the user entered on a setup card. If successful, I set a global I can check
 in the future to make sure I successfully connected on startup. If the
 global is false, then I prevent any interaction with the app, sometimes
 quitting (if not in development).

 By doing this I don't have to recode error handling every place I need to
 query. isConnected, upon failing will exit to top after alerting the user
 that something is wrong. The close handler will close all cursors and
 database handlers, but this is not strictly necessary, as dbIdle.

 Since using sqlYoga, this is all rather moot anyway, as this kind of
 functionality is built into it.

 Bob


 On Dec 26, 2011, at 1:33 PM, Pete wrote:

  Using revOpenDatabase to open an sqlite database using a file that is not
  an sqlite database return an integer as if the database was successfully
  opened.  Any subsequent db accesses fail of course but I wonder why
  revOpenDatabase doesn't return an error?
 
 
  --
  Pete
  Molly's Revenge http://www.mollysrevenge.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




-- 
Pete
Molly's Revenge http://www.mollysrevenge.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: Launcher stacks on iOS etc.

2011-12-27 Thread Mark Schonewille
Hi Todd,

For testing, it is a good idea. You could save your work in your personal web 
folder (on mac) and run your stack on an iOS device right-away. 

For the iTunes store, I wouldn't recommend it because apple may not allow you 
to for load additional code.

--
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 27 dec. 2011 om 18:42 heeft Todd Geist t...@geistinteractive.com het 
volgende geschreven:

 Hello,
 
 Clearly on the desktop, using a launcher file to start up the solution
 makes a lot of sense. It seems very helpful in terms of managing updates,
 setting up the environmment etc.  But I am curious is it still a good idea
 for things like iOS etc?  I am curious to hear from folks who have stuff in
 the app stores.  Do you still use a launcher file?
 
 Thanks
 
 Todd
 

___
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: Case Study: Behaviors Failing - Can't set break points

2011-12-27 Thread Todd Geist
On Tue, Dec 27, 2011 at 10:14 AM, Bob Sneidar b...@twft.com wrote:

 Where are the behavior buttons located? They have to be in the open stack
 or *AN* open stack. I may be mistaken about this, but I think I am not. I
 have a behavior button on the first card of an app stack, and all my
 behaviors work fine there. They should also work if they are on the first
 card of any stack you start using. Someone who knows more should correct me
 if I am wrong.


The behaviors are in a library stack.  That stack was being loaded by the
Main stack, in a PreOpenCard handler. the Main stack was also using the
behaviors.  They are two separate stacks.

So the Main stack loads into memory, then On PreOpenCard it loads the
Library stack that has the behaviors.  This is the problem.  If the library
stack is loaded first into memory, everything works.  So I may need a
launcher file that Loads the Libraries first THEN the main stack.

Todd
___
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: Case Study: Behaviors Failing - Can't set break points

2011-12-27 Thread Bob Sneidar
Where are the behavior buttons located? They have to be in the open stack or 
*AN* open stack. I may be mistaken about this, but I think I am not. I have a 
behavior button on the first card of an app stack, and all my behaviors work 
fine there. They should also work if they are on the first card of any stack 
you start using. Someone who knows more should correct me if I am wrong. 

Bob


On Dec 27, 2011, at 9:36 AM, Todd Geist wrote:

 Hello,
 
 I just ran into this issue and I thought I would share it. I thought I was
 loading my Behavior's into memory before using them but I wasn't.  Here is
 what it looked like when it was failing.
 
 I have some buttons that have behaviors set on them.  When you
 control-click on them and look at Send Message, the commands that are
 associated with the behavior are there. So, I thought, the button is
 clearly linked to it's behavior. However using Dispatch to send the message
 results in unhandled. It was not seeing the behavior's handlers.
 
 If I use the Send form I can see that the message is sent to the Button,
 but is not picked up by the Behavior, just the Button. Even if there is no
 handler for the message in the button. I can tell this by stepping through
 with the debugger.  The debugger goes to the button's Script ( not the
 behavior's script ) even though the script is empty.  It never makes it on
 to the behavior.
 
 I also noticed that I couldn't set Break Points in the behavior scripts in
 the debugger when this condition happened.  They just didn't work.
 
 In all cases, I can it by simply resetting the behavior to itself, like so:
 
 *set *the behavior of tControl to the behavior of tControl
 
 
 So whats the deal? The button appears to be linked to the behavior? But I
 can't send it messages?  And I can't set break points in the Behavior
 scripts.
 
 Well the problem is that the behaviors are not in memory when the buttons
 that use them are placed into memory.  I thought that they were because I
 was loading the stack containing the Behaviors as part of the PreOpenCard
 in my first stack.  So the Behaviors were in a second stack.  And they were
 being referenced by the first stack.
 
 I think the docs point this out, but I was confused by the apparent
 linking, and the fact that I thought loading on PreOpenCard or PreOpenStack
 would be enough.  But its not.
 
 I am including behaviors in a Library stack, instead of embedding them into
 a the stacks that use them. These are pure code Behaviors, no UI.  And they
 are part of the larger feature set provided by the library.  I wanted to be
 able to keep the library and it's behavior's separate. So either I will
 have to build a launcher file that just loads the library first or build in
 re-linking, which may not be a bad thing anyway.
 
 ???
 
 Todd
 ___
 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: Launcher stacks on iOS etc.

2011-12-27 Thread Todd Geist
Hi Mark,

I wasn't thinking of using a launcher to load additional code from the
internet on iOS.  that would be cool, but I would guess you are right, that
it wouldn't be allowed.  But I was thinking more along the lines of having
a place to load stuff and setup the environment before launching the main
stack. Are there reasons why this can't or shouldn't be done on iOS or
android, etc.


Todd

On Tue, Dec 27, 2011 at 10:00 AM, Mark Schonewille 
m.schonewi...@economy-x-talk.com wrote:

 Hi Todd,

 For testing, it is a good idea. You could save your work in your personal
 web folder (on mac) and run your stack on an iOS device right-away.

 For the iTunes store, I wouldn't recommend it because apple may not allow
 you to for load additional code.

 --
 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 27 dec. 2011 om 18:42 heeft Todd Geist t...@geistinteractive.com het
 volgende geschreven:

  Hello,
 
  Clearly on the desktop, using a launcher file to start up the solution
  makes a lot of sense. It seems very helpful in terms of managing updates,
  setting up the environmment etc.  But I am curious is it still a good
 idea
  for things like iOS etc?  I am curious to hear from folks who have stuff
 in
  the app stores.  Do you still use a launcher file?
 
  Thanks
 
  Todd
 

 ___
 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




-- 
Todd Geist


(805) 419-9382
___
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: Re: Point at which speaking is stopped? and ANN: Text to Speech

2011-12-27 Thread Jim Hurley
Roger,

Very resourceful of you to discover, not just the typo, but the correction.

It is indeed a livecode file so:

   go url http://www.jamesphurley.com/TextToSpeech.livecode;

Jim Hurley


 
 Message: 14
 Date: Tue, 27 Dec 2011 12:49:24 -0500
 From: Roger Eller roger.e.el...@sealedair.com
 To: How to use LiveCode use-livecode@lists.runrev.com
 Subject: Re: Point at which speaking is stopped? and ANN: Text to
   Speech
 Message-ID:
   CAAT6EXOjqBcFw+xNMOo6GwWO=+8oKJjUXNBJSiE+G=46xsf...@mail.gmail.com
 Content-Type: text/plain; charset=ISO-8859-1
 
 It is a .livecode file:
 
 go url http://www.jamesphurley.com/TextToSpeech.livecode;
 
 
 
 On Tue, Dec 27, 2011 at 12:37 PM, Bob Sneidar wrote:
 
 I get No such card
 
 Bob
 
 
 On Dec 26, 2011, at 3:41 PM, Jim Hurley wrote:
 
 Roger,
 
 It is even better for proofreading.
 
 I have put my Text to Speech up on the web. Run this in the message box.
 
 go url http://www.jamesphurley.com/TextToSpeech.rev;
 
 Jim Hurley
 
 
 
 
 --
 
 Message: 15
 Date: Tue, 27 Dec 2011 09:50:28 -0800
 From: Pete p...@mollysrevenge.com
 To: How to use LiveCode use-livecode@lists.runrev.com
 Subject: Re: revOpenDatabase Problem
 Message-ID:
   CABx6j9=crfd2bruwkm0gvd3ypy3vwckgq5fepffxh5+arjn...@mail.gmail.com
 Content-Type: text/plain; charset=ISO-8859-1
 
 All good stuff but none of it tells me if I've opened an sqlite database
 :-)  You may have missed the post about opening the file as a regular file
 and checking the first 16 bytes - that's the solution I used, seems to work
 just great.
 
 On Tue, Dec 27, 2011 at 9:35 AM, Bob Sneidar b...@twft.com wrote:
 
 After opening it, and inside a try/catch statement just use select TRUE as
 connected and get the query as a string. If it throws an error you know
 something is wrong.
 
 One thing I like to do in database driven apps is create handlers called
 dbopen, dbclose, dbIdle isConnected. In those handlers I put the database
 commands inside try/catch constructs, and return false when I fail. Before
 any query I will call isConnected, which attempts to do some arbitrary
 thing with the database, like select TRUE as connected, which will return 1
 if it succeeds and throw an error if it doesn't. When I am done I call
 dbIdle which closes the connection (good practice because the server is
 going to disconnect you anyway after a certain amount of time).
 
 The Open function attempts a connection to the database with the options
 the user entered on a setup card. If successful, I set a global I can check
 in the future to make sure I successfully connected on startup. If the
 global is false, then I prevent any interaction with the app, sometimes
 quitting (if not in development).
 
 By doing this I don't have to recode error handling every place I need to
 query. isConnected, upon failing will exit to top after alerting the user
 that something is wrong. The close handler will close all cursors and
 database handlers, but this is not strictly necessary, as dbIdle.
 
 Since using sqlYoga, this is all rather moot anyway, as this kind of
 functionality is built into it.
 
 Bob
 
 
 On Dec 26, 2011, at 1:33 PM, Pete wrote:
 
 Using revOpenDatabase to open an sqlite database using a file that is not
 an sqlite database return an integer as if the database was successfully
 opened.  Any subsequent db accesses fail of course but I wonder why
 revOpenDatabase doesn't return an error?
 
 
 --
 Pete
 Molly's Revenge http://www.mollysrevenge.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
 
 
 
 
 -- 
 Pete
 Molly's Revenge http://www.mollysrevenge.com
 
 
 --
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 End of use-livecode Digest, Vol 99, Issue 50
 


___
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: Case Study: Behaviors Failing - Can't set break points

2011-12-27 Thread Bob Sneidar
Ah, IC. Are you using 5.02? There is the thread about things not loading in the 
order you would expect with version 5.02. Might it have something to do with 
that?

Bob


On Dec 27, 2011, at 10:23 AM, Todd Geist wrote:

 On Tue, Dec 27, 2011 at 10:14 AM, Bob Sneidar b...@twft.com wrote:
 
 Where are the behavior buttons located? They have to be in the open stack
 or *AN* open stack. I may be mistaken about this, but I think I am not. I
 have a behavior button on the first card of an app stack, and all my
 behaviors work fine there. They should also work if they are on the first
 card of any stack you start using. Someone who knows more should correct me
 if I am wrong.
 
 
 The behaviors are in a library stack.  That stack was being loaded by the
 Main stack, in a PreOpenCard handler. the Main stack was also using the
 behaviors.  They are two separate stacks.
 
 So the Main stack loads into memory, then On PreOpenCard it loads the
 Library stack that has the behaviors.  This is the problem.  If the library
 stack is loaded first into memory, everything works.  So I may need a
 launcher file that Loads the Libraries first THEN the main stack.
 
 Todd
 ___
 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: Launcher stacks on iOS etc.

2011-12-27 Thread Mark Schonewille
Hi Todd,

Sure, you can do that, but there is a small syntax problem. I think that go 
stack works, but go stack in window doesn't. This won't keep you from making a 
launcher, but it is useful to know ;)

--
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 27 dec. 2011 om 19:18 heeft Todd Geist t...@geistinteractive.com het 
volgende geschreven:

 Hi Mark,
 
 I wasn't thinking of using a launcher to load additional code from the
 internet on iOS.  that would be cool, but I would guess you are right, that
 it wouldn't be allowed.  But I was thinking more along the lines of having
 a place to load stuff and setup the environment before launching the main
 stack. Are there reasons why this can't or shouldn't be done on iOS or
 android, etc.
 
 
 Todd
 

___
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: Case Study: Behaviors Failing - Can't set break points

2011-12-27 Thread Pete
Are the behavior buttons in the actual library stack or in a substack of
the library stack?  I've run into a similar problem before and ending
setting thew stackFiles property of the app's main stack to name the
behavior stack.
Pete

On Tue, Dec 27, 2011 at 10:23 AM, Todd Geist t...@geistinteractive.comwrote:

 On Tue, Dec 27, 2011 at 10:14 AM, Bob Sneidar b...@twft.com wrote:

  Where are the behavior buttons located? They have to be in the open stack
  or *AN* open stack. I may be mistaken about this, but I think I am not. I
  have a behavior button on the first card of an app stack, and all my
  behaviors work fine there. They should also work if they are on the first
  card of any stack you start using. Someone who knows more should correct
 me
  if I am wrong.
 

 The behaviors are in a library stack.  That stack was being loaded by the
 Main stack, in a PreOpenCard handler. the Main stack was also using the
 behaviors.  They are two separate stacks.

 So the Main stack loads into memory, then On PreOpenCard it loads the
 Library stack that has the behaviors.  This is the problem.  If the library
 stack is loaded first into memory, everything works.  So I may need a
 launcher file that Loads the Libraries first THEN the main stack.

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




-- 
Pete
Molly's Revenge http://www.mollysrevenge.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: Case Study: Behaviors Failing - Can't set break points

2011-12-27 Thread Todd Geist
I am using 5.0.2.  But I am not sure if thats the issue.  I looked for the
thread you referenced but I can't find it, any hints on the keywords?

Thanks

Todd

On Tue, Dec 27, 2011 at 10:36 AM, Bob Sneidar b...@twft.com wrote:

 Ah, IC. Are you using 5.02? There is the thread about things not loading
 in the order you would expect with version 5.02. Might it have something to
 do with that?




-- 
Todd Geist


(805) 419-9382
___
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: Case Study: Behaviors Failing - Can't set break points

2011-12-27 Thread Todd Geist
They are in the Library Stack itself not a substack.

So you essentially injected the Library stack into the Main stack?

On Tue, Dec 27, 2011 at 10:39 AM, Pete p...@mollysrevenge.com wrote:

 Are the behavior buttons in the actual library stack or in a substack of
 the library stack?  I've run into a similar problem before and ending
 setting thew stackFiles property of the app's main stack to name the
 behavior stack.
 Pete


Todd
___
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 Password protection of RR server?

2011-12-27 Thread Jim Hurley
I am a novice at this sort of thing, so bear with me.

I have an account on RR's server. The domain servers are listed as: 

NS2.ON-REV.COM 
NS1.ON-REV.COM 

I would like to password protect a page. Is there anything about the RR server 
that affects how that should be done?

I'm not looking for anything serious; I don't mind if my protection is foiled; 
I just want the user know that the page was not designed for the general public.

Some simple HTML text in the header would be nice.

Jim
___
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: Re: Point at which speaking is stopped? and ANN: Text to Speech

2011-12-27 Thread Roger Eller
On Tue, Dec 27, 2011 at 1:30 PM, Jim Hurley wrote:

 Roger,

 Very resourceful of you to discover, not just the typo, but the correction.

 It is indeed a livecode file so:

   go url http://www.jamesphurley.com/TextToSpeech.livecode;

  Jim Hurley


I got a good laugh at your proof reading example.  I also like how it
resumes speaking at the location clicked.  Nice!

˜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: Case Study: Behaviors Failing - Can't set break points

2011-12-27 Thread Pete
OK, not exactly the same issue I had but stackfiles might still help.  If
your behaviors don't use a fully qualified stack file name (eg button id
1020 of stack Behaviors), a stackfiles entry naming Behaviors and its
fully qualified stackfile path enables LC to resolve the behavior
references.  Not sure if that's your situation but maybe that will help.
Pete

On Tue, Dec 27, 2011 at 10:47 AM, Todd Geist t...@geistinteractive.comwrote:

 They are in the Library Stack itself not a substack.

 So you essentially injected the Library stack into the Main stack?

 On Tue, Dec 27, 2011 at 10:39 AM, Pete p...@mollysrevenge.com wrote:

  Are the behavior buttons in the actual library stack or in a substack of
  the library stack?  I've run into a similar problem before and ending
  setting thew stackFiles property of the app's main stack to name the
  behavior stack.
  Pete
 

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




-- 
Pete
Molly's Revenge http://www.mollysrevenge.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: Point at which speaking is stopped? and ANN: Text to Speech

2011-12-27 Thread Bob Sneidar
Yes, I like that too. In fact, the text to speech is actually better than a lot 
of audio books I have heard! ;-)

Bob


On Dec 27, 2011, at 11:11 AM, Roger Eller wrote:

 On Tue, Dec 27, 2011 at 1:30 PM, Jim Hurley wrote:
 
 Roger,
 
 Very resourceful of you to discover, not just the typo, but the correction.
 
 It is indeed a livecode file so:
 
  go url http://www.jamesphurley.com/TextToSpeech.livecode;
 
 Jim Hurley
 
 
 I got a good laugh at your proof reading example.  I also like how it
 resumes speaking at the location clicked.  Nice!
 
 ˜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: Case Study: Behaviors Failing - Can't set break points

2011-12-27 Thread Bob Sneidar
Good point. The proper syntax *should* be
set the behavior of object to the long id of button the button object. If 
the behavior script button is located on the first card of the stack the object 
is in, then you can use shorter versions, but why risk it? In your case, since 
the behavior is in a library, use the long ID. 

Bob


On Dec 27, 2011, at 11:23 AM, Pete wrote:

 OK, not exactly the same issue I had but stackfiles might still help.  If
 your behaviors don't use a fully qualified stack file name (eg button id
 1020 of stack Behaviors), a stackfiles entry naming Behaviors and its
 fully qualified stackfile path enables LC to resolve the behavior
 references.  Not sure if that's your situation but maybe that will help.
 Pete
 
 On Tue, Dec 27, 2011 at 10:47 AM, Todd Geist t...@geistinteractive.comwrote:
 
 They are in the Library Stack itself not a substack.
 
 So you essentially injected the Library stack into the Main stack?
 
 On Tue, Dec 27, 2011 at 10:39 AM, Pete p...@mollysrevenge.com wrote:
 
 Are the behavior buttons in the actual library stack or in a substack of
 the library stack?  I've run into a similar problem before and ending
 setting thew stackFiles property of the app's main stack to name the
 behavior stack.
 Pete
 
 
 Todd
 ___
 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
 
 
 
 
 -- 
 Pete
 Molly's Revenge http://www.mollysrevenge.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: Case Study: Behaviors Failing - Can't set break points

2011-12-27 Thread Todd Geist
Thanks Pete, but that doesn't help.

On a side note. I can't set a Behavior to any other then the Short
Reference.  I set it with a Long ID including the path.  But it is
immediately converted to the short button id 1020 of stack behaviors form

Todd

On Tue, Dec 27, 2011 at 11:23 AM, Pete p...@mollysrevenge.com wrote:

 OK, not exactly the same issue I had but stackfiles might still help.  If
 your behaviors don't use a fully qualified stack file name (eg button id
 1020 of stack Behaviors), a stackfiles entry naming Behaviors and its
 fully qualified stackfile path enables LC to resolve the behavior
 references.  Not sure if that's your situation but maybe that will help.
 Pete

 On Tue, Dec 27, 2011 at 10:47 AM, Todd Geist t...@geistinteractive.com
 wrote:

  They are in the Library Stack itself not a substack.
 
  So you essentially injected the Library stack into the Main stack?
 
  On Tue, Dec 27, 2011 at 10:39 AM, Pete p...@mollysrevenge.com wrote:
 
   Are the behavior buttons in the actual library stack or in a substack
 of
   the library stack?  I've run into a similar problem before and ending
   setting thew stackFiles property of the app's main stack to name the
   behavior stack.
   Pete
  
 
  Todd
  ___
  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
 
 


 --
 Pete
 Molly's Revenge http://www.mollysrevenge.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




-- 
Todd Geist


(805) 419-9382
___
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: Case Study: Behaviors Failing - Can't set break points

2011-12-27 Thread Todd Geist
I am using the long ID when I set it.  But LiveCode immediately converts it
to the shorter version It is not my doing.

If Set this

button id 1004 of card id 1002 of stack /Users/todd/Desktop/A.livecode

LiveCode immediately changes it to

button id 1004 of card id 1002 of stack /Users/todd/Desktop/A.livecode

This is a good I think. I am pretty sure you wouldn't want to include the
full path to a stack in a behavior

Todd


On Tue, Dec 27, 2011 at 12:05 PM, Bob Sneidar b...@twft.com wrote:

 Good point. The proper syntax *should* be
 set the behavior of object to the long id of button the button object.
 If the behavior script button is located on the first card of the stack the
 object is in, then you can use shorter versions, but why risk it? In your
 case, since the behavior is in a library, use the long ID.

 Bob


 On Dec 27, 2011, at 11:23 AM, Pete wrote:

  OK, not exactly the same issue I had but stackfiles might still help.  If
  your behaviors don't use a fully qualified stack file name (eg button id
  1020 of stack Behaviors), a stackfiles entry naming Behaviors and its
  fully qualified stackfile path enables LC to resolve the behavior
  references.  Not sure if that's your situation but maybe that will help.
  Pete
 
  On Tue, Dec 27, 2011 at 10:47 AM, Todd Geist t...@geistinteractive.com
 wrote:
 
  They are in the Library Stack itself not a substack.
 
  So you essentially injected the Library stack into the Main stack?
 
  On Tue, Dec 27, 2011 at 10:39 AM, Pete p...@mollysrevenge.com wrote:
 
  Are the behavior buttons in the actual library stack or in a substack
 of
  the library stack?  I've run into a similar problem before and ending
  setting thew stackFiles property of the app's main stack to name the
  behavior stack.
  Pete
 
 
  Todd
  ___
  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
 
 
 
 
  --
  Pete
  Molly's Revenge http://www.mollysrevenge.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




-- 
Todd Geist


(805) 419-9382
___
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: Case Study: Behaviors Failing - Can't set break points

2011-12-27 Thread Bob Sneidar
mmm that IS the long ID. The short id would just be a number. But you *can* use 
the short name, and it wouldn't surprise me if Livecode then transformed that 
into the long ID. I wasn't aware of that. 

Bob


On Dec 27, 2011, at 12:19 PM, Todd Geist wrote:

 If Set this
 
 button id 1004 of card id 1002 of stack /Users/todd/Desktop/A.livecode
 
 LiveCode immediately changes it to
 
 button id 1004 of card id 1002 of stack /Users/todd/Desktop/A.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: Crashing Ubuntu 11.10 with LC 4.5

2011-12-27 Thread Richard Gaskin

Bernard Devlin wrote:


I was so appalled by the latest Ubuntu, I switched to Mint.  Ubuntu
had become as slow as using Windows Vista.


Is that with 11.10 or 11.04?

When I first tried 11.04 it was slow, and I wound up staying with 10.10 
until 11.10 came out.  But since I upgraded to 11.10 last month, on my 
Core2 Duo laptop it runs very well.


In terms of design, it's almost as big a departure from earlier versions 
as OS X is from Mac OS 9.  And as with my Mac experience, the transition 
was a bit jarring at first, and I initially complained about not being 
as productive.  But with both OS X and Unity, the more time I spend with 
the new system the more I like it.


It seems a matter of taste, though.  I know more than a few Mac users 
who still prefer the design of OS 9, and it seems there are quite a few 
Ubuntu users who prefer 10 over 11.


But unlike the Mac world, at least us Linux users can choose which 
environment we want to work in. :)




No wonder Mint has taken off.  Whilst the main charts in the link below
are based on DistroWatch (arguably a sign of what cutting-edge linux
users are up to), the chart further down the page showing Google search
data indicates that the claim that Ubuntu is losing out to Mint has some
basis.

http://royal.pingdom.com/2011/11/23/ubuntu-linux-losing-popularity-fast-new-unity-interface-to-blame/


Respectfully, DistroWatch stats aren't a good measure of general 
interest, for the reasons I detailed in this post in the Ubuntu forum:

http://ubuntuforums.org/showthread.php?p=11480329#post11480329

In that post I also include Alexa site rankings, which show many times 
more interest in Ubuntu than Mint, similar to the Google stats in the 
article you linked to which also shows Ubuntu ranking much higher than Mint.


Mint's a great system, but in terms of overall popularity the factor 
that affects the Linux world the most is that the average person doesn't 
think of operating systems as something they can choose, but simply uses 
whatever came with their computer.


In 2011 the number of OEMs shipping computers with Ubuntu preinstalled 
continued to grow.  In addition to Dell, Asus, and others, there are 
Linux-exclusive vendors like System 76 which offer only Ubuntu.  Even 
ZaReason, which offers Mint and others as options, has Ubuntu as their 
default choice.  My friend Aviv who runs LinuCity here in SoCal offers a 
few systems with Mint preinstalled, but most of his line is Ubuntu.


Being Ubuntu-based, Mint provides a great option for those who want most 
of what Ubuntu offers but with the more traditional UI.


But the Gnome Project killed Gnome 2 for a reason, and sooner or later 
we can expect most distros to be using either Gnome 3/Shell or a variant 
like Unity.


This transition from a Windows-like task bar to a Mac-like dock isn't 
perfect in either the Gnome Shell or Unity implementations, but I feel 
such evolution is inevitable for the continued growth of the platform.


And best of all, it's Linux:  we have plenty of choices to use any 
distro, desktop environment, and tweaks we want to get exactly what we 
most prefer.


I used to lament the number of distros out there, but the more I spend 
time with the Linux community the more I've come to appreciate the 
strengths of such diversity.



PS: If anyone here is going to SCaLE 10x next month let's meet up there 
- I'll be there all three days:

http://www.socallinuxexpo.org/scale10x

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

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


Re: Case Study: Behaviors Failing - Can't set break points

2011-12-27 Thread Todd Geist
Yeah sorry see my other message

It starts as this

button id 1004 of card id 1002 of stack /Users/todd/Desktop/A.livecode


it changes to this

button id 1004 of stack A


Todd
___
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: Case Study: Behaviors Failing - Can't set break points

2011-12-27 Thread Bob Sneidar
That is still the long ID. 

Bob


On Dec 27, 2011, at 12:28 PM, Todd Geist wrote:

 whoops
 
 That didn't paste right
 
 It starts as this
 
 button id 1004 of card id 1002 of stack /Users/todd/Desktop/A.livecode
 
 
 it changes to this
 
 button id 1004 of stack A
 
 
 Todd
 ___
 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: Crashing Ubuntu 11.10 with LC 4.5

2011-12-27 Thread Richmond

On 12/27/2011 10:35 PM, Richard Gaskin wrote:

Bernard Devlin wrote:


I was so appalled by the latest Ubuntu, I switched to Mint.  Ubuntu
had become as slow as using Windows Vista.


Is that with 11.10 or 11.04?

When I first tried 11.04 it was slow, and I wound up staying with 
10.10 until 11.10 came out.  But since I upgraded to 11.10 last month, 
on my Core2 Duo laptop it runs very well.


In terms of design, it's almost as big a departure from earlier 
versions as OS X is from Mac OS 9.  And as with my Mac experience, the 
transition was a bit jarring at first, and I initially complained 
about not being as productive.  But with both OS X and Unity, the more 
time I spend with the new system the more I like it.


It seems a matter of taste, though.  I know more than a few Mac users 
who still prefer the design of OS 9, and it seems there are quite a 
few Ubuntu users who prefer 10 over 11.


But unlike the Mac world, at least us Linux users can choose which 
environment we want to work in. :)




No wonder Mint has taken off.  Whilst the main charts in the link below
are based on DistroWatch (arguably a sign of what cutting-edge linux
users are up to), the chart further down the page showing Google search
data indicates that the claim that Ubuntu is losing out to Mint has some
basis.

http://royal.pingdom.com/2011/11/23/ubuntu-linux-losing-popularity-fast-new-unity-interface-to-blame/ 



Respectfully, DistroWatch stats aren't a good measure of general 
interest, for the reasons I detailed in this post in the Ubuntu forum:

http://ubuntuforums.org/showthread.php?p=11480329#post11480329

In that post I also include Alexa site rankings, which show many times 
more interest in Ubuntu than Mint, similar to the Google stats in the 
article you linked to which also shows Ubuntu ranking much higher than 
Mint.


Mint's a great system, but in terms of overall popularity the factor 
that affects the Linux world the most is that the average person 
doesn't think of operating systems as something they can choose, but 
simply uses whatever came with their computer.


In 2011 the number of OEMs shipping computers with Ubuntu preinstalled 
continued to grow.  In addition to Dell, Asus, and others, there are 
Linux-exclusive vendors like System 76 which offer only Ubuntu.  Even 
ZaReason, which offers Mint and others as options, has Ubuntu as their 
default choice.  My friend Aviv who runs LinuCity here in SoCal offers 
a few systems with Mint preinstalled, but most of his line is Ubuntu.


Being Ubuntu-based, Mint provides a great option for those who want 
most of what Ubuntu offers but with the more traditional UI.


But the Gnome Project killed Gnome 2 for a reason, 


And what, pray tell, was that; that it was popular? and Linux people 
like putting their feet in their mouth - I wonder.


and sooner or later we can expect most distros to be using either 
Gnome 3/Shell or a variant like Unity.


This transition from a Windows-like task bar to a Mac-like dock isn't 
perfect in either the Gnome Shell or Unity implementations, but I feel 
such evolution is inevitable for the continued growth of the platform.


And best of all, it's Linux:  we have plenty of choices to use any 
distro, desktop environment, and tweaks we want to get exactly what we 
most prefer.


I used to lament the number of distros out there, but the more I spend 
time with the Linux community the more I've come to appreciate the 
strengths of such diversity.



PS: If anyone here is going to SCaLE 10x next month let's meet up 
there - I'll be there all three days:

http://www.socallinuxexpo.org/scale10x

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

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

http://lists.runrev.com/mailman/listinfo/use-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: Case Study: Behaviors Failing - Can't set break points

2011-12-27 Thread Richard Gaskin

Bob Sneidar wrote:

 On Dec 27, 2011, at 12:28 PM, Todd Geist wrote:
 It starts as this

 button id 1004 of card id 1002 of stack /Users/todd/Desktop/A.livecode

 it changes to this

 button id 1004 of stack A

 That is still the long ID.

Sort of.  A true long ID includes the file path, but behaviors use a 
special form of that descriptor format with the short name of the stack, 
for portability as Todd surmised.


This sort of truncated long ID is useful in other areas as well, and 
FWIW I submitted a request to have a truncated keyword added to return 
that value for object references:

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

It's not too hard to write a function to do this, but since apparently 
the engine already does this for behaviors it would be handy to have it 
accessible to us in scripts.


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

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


Re: Case Study: Behaviors Failing - Can't set break points

2011-12-27 Thread Mark Wieder
Todd Geist todd@... writes:

 On a side note. I can't set a Behavior to any other then the Short
 Reference.  I set it with a Long ID including the path.  But it is
 immediately converted to the short button id 1020 of stack behaviors form

That's known as the rugged id - it's got everything in the long id except for
the file path to the stack. It's what behaviors are defined by. And it should be
unique because LC will barf if you have two stacks by the same name in memory.

-- 
 Mark Wieder


___
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: Case Study: Behaviors Failing - Can't set break points

2011-12-27 Thread Pete
That's interesting, I haven't come across that before, but I think you are
on 5.0 so maybe they changed (or broke) something in that release.  In
those circumstances, it seems worth at least setting the stackfiles to
A,/Users/todd/Desktop/A.livecode and see if that fixes the problem.

On Tue, Dec 27, 2011 at 12:38 PM, Todd Geist t...@geistinteractive.comwrote:

 Yeah sorry see my other message

 It starts as this

 button id 1004 of card id 1002 of stack /Users/todd/Desktop/A.livecode


 it changes to this

 button id 1004 of stack A


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




-- 
Pete
Molly's Revenge http://www.mollysrevenge.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: Case Study: Behaviors Failing - Can't set break points

2011-12-27 Thread Mark Wieder
Todd Geist todd@... writes:

 And I can't set break points in the Behavior scripts.

Just for the record, breakpoints work fine in behavior scripts.

-- 
 Mark Wieder




___
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


matchChunk question

2011-12-27 Thread Mark Smith
Hi, shouldn't the following place the start position and end position of the
regular expression found in the input field into the output field?


on mouseUp
   local startpos, endpos
   put fldinput into tinput
   put \  quote  v  \  quote  : into tregularexpression 
   put matchchunk(tinput, tregularexpression, startpos, endpos) into
fldoutput
   put ,   startpos  ,   endpos after fldoutput
end mouseUp


What I am getting in output is: true, ,

With no start and end positions. Anyone see the error of my ways? Thanks

-- Mark

PS lc 5.0.2, on a Mac


--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/matchChunk-question-tp4238281p4238281.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: [OT] Re: Crashing Ubuntu 11.10 with LC 4.5

2011-12-27 Thread Roger Eller
On Tue, Dec 27, 2011 at 7:26 AM, Richmond wrote:

 Well, I'm just about to hop on the plane for my annual visit to Britain
 (which will include
 dephlogisticating my parents' laptop, which was running Ubuntu 10.10,
 which has gone
 very sour since my Father couldn't resist clicking on distro-upgrade and
 getting
 b*ggered by Unity. I am, right now, wondering whether I should reinstall
 Ubuntu 10.10 and
 lock-down the upgrade option, or go for Mint 12 with MATE


I'm playing around with a 10.10 variant that you may enjoy.  It is
pre-themed to be all Mac-like.  The Live CD is in Spanish, but as always,
you can choose any language when you install.  If nothing else, it looks
cool.  Another variant of this is elementaryOS (designed for simplicity).

http://darwinosx.blogspot.com/p/descarga-darwin-os.html

http://www.youtube.com/watch?v=XsUJJlroz_k

˜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: matchChunk question

2011-12-27 Thread Mark Schonewille
Hi Mark,

You need to put the part of the regex that you want to know the start and end 
position of inside parantheses. In your case, this seems to be the entire regex.

--
Best regards,

Mark Schonewille

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

Become our partner in sales http://qery.us/1bq Start selling Color Converter 
today. 20% commission!

On 27 dec 2011, at 22:26, Mark Smith wrote:

 Hi, shouldn't the following place the start position and end position of the
 regular expression found in the input field into the output field?
 
 
 on mouseUp
   local startpos, endpos
   put fldinput into tinput
   put \  quote  v  \  quote  : into tregularexpression 
   put matchchunk(tinput, tregularexpression, startpos, endpos) into
 fldoutput
   put ,   startpos  ,   endpos after fldoutput
 end mouseUp
 
 
 What I am getting in output is: true, ,
 
 With no start and end positions. Anyone see the error of my ways? Thanks
 
 -- Mark
 
 PS lc 5.0.2, on a Mac


___
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: Case Study: Behaviors Failing - Can't set break points

2011-12-27 Thread Todd Geist
Hi Mark,

On Tue, Dec 27, 2011 at 1:12 PM, Mark Wieder mwie...@ahsoftware.net wrote:

 Just for the record, breakpoints work fine in behavior scripts.


Yes, normally they work just fine.

However I can reliably cause them stop working, by loading the object that
use Behaviors before the Behaviors themselves.  When this happens the link
is sort of there as I described in my Original Post. You can't send
reliably send messages, but you can see the behavior messages in some parts
of the IDE.

Another side effect of this half linked state is that you can't set break
points in the Behavior Scripts.

At least this is what I see in 5.0.2

Thanks

Todd
___
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: Case Study: Behaviors Failing - Can't set break points

2011-12-27 Thread Richard Gaskin

Todd Geist wrote:


However I can reliably cause them stop working, by loading the object that
use Behaviors before the Behaviors themselves.


Unless something changed/broke, any behavior assignment which refers to 
a behavior button not already in memory at the time the object which 
refers to its is first opened will not have the behavior resolved, and 
that behavior script will not be present in the message path.


Accordingly, setting any breakpoints in the behavior script will not 
trigger, as the script isn't in play.


If you find the script is in play under such circumstances, I'd like to 
learn how you did it.


I've been wanting a way to resolve behaviors at arbitrary execution 
points rather than relying on stack opening, and have made this request 
for a new resolve behaviors command to do that:

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

If you have a means of doing this with the engine as it is I definitely 
want to learn the secret.


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

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


Re: Case Study: Behaviors Failing - Can't set break points

2011-12-27 Thread Todd Geist
On Tue, Dec 27, 2011 at 1:59 PM, Richard Gaskin
ambassa...@fourthworld.comwrote:

 If you find the script is in play under such circumstances, I'd like to
 learn how you did it.

 I've been wanting a way to resolve behaviors at arbitrary execution points
 rather than relying on stack opening, and have made this request for a new
 resolve behaviors command to do that:
 http://quality.runrev.com/**show_bug.cgi?id=8993http://quality.runrev.com/show_bug.cgi?id=8993
 


Well I am not sure if I have what you are looking for. But I can tell you
that I have behaviors in a sort of half linked state.  They do not work BUT
in the IDE if you control click on a such button with a broken behavior and
select Send Message you will see the Handlers in the Behavior script.  If
you try to to send the message, it fails.

My Behaviors are on the second card of a Library Stack. That was loaded
into memory using start using. It was not opened before the start
using.  These Behaviors are loaded AFTER the stack that uses them. And it
is this stack that has the broken behaviors.  This makes sense since I am
loading the behaviors too late.  But the behaviors are in memory they are
just not correctly linked to their child buttons any more.

in my case I can fix these quite easily because all the broken buttons are
on one card. I am using them for code only.  I simply loop through the
controls on the card and set the behavior of each control to itself.

*On* ResetBeahviors

   *repeat* with i = 1 to the number of controls of me

  *put* the long id of control i of me into tControl

  *put* word 1 of the name of tControl into tType

  *if* tType = button *then*

 *set* the behavior of tControl to the behavior of tControl

  *end* *if*

   *end* *repeat*

*end* ResetBeahviors


Hope that helps

Todd
___
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: matchChunk question

2011-12-27 Thread Mark Smith
Thanks, worked perfectly. changing the expression to (\  quote  v  \
 quote  :) resulted in true, 422, 425 in the output. What I am
attempting to do is define a rather complicated item delimiter, in this case
made up of the 4 char sequence v:  If I can define where this occurs I can
break the input up into chunks. 

Best,

-- Mark

--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/matchChunk-question-tp4238281p4238428.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: Case Study: Behaviors Failing - Can't set break points

2011-12-27 Thread Pete
Hi Todd,
It's my understanding that the start using command makes the handlers in
the stack script of the main stack available to your application.  Nothing
else, including behavior button scripts, are made available by issuing a
start using command.  No doubt someone will correct me if I'm wrong!

This is very similar to the situation that I have where I have my behavior
buttons on a card in a substack of the stack I name in my start using
command.  I remember tearing my hair out trying to figure out how to
activate the behaviors and I honestly don't remember all the things I
tried.  All I know is that using the Stack Files tab of the main stack's
Inspector palette to make a reference to the short name of my behavior
substack resolve to the full path of it's main stack fixed the problem for
me.  I guess LC opens the stacks named in the stack files list when it
first starts up, although you still have to use the start using command to
make the main stack script handlers available to your application.

I agree with Richard that the ability to issue a command that will resolve
behaviors at any time would be great, kinda like inserting/removing front
scripts.  I voted for his enhancement request.

On Tue, Dec 27, 2011 at 2:19 PM, Todd Geist t...@geistinteractive.comwrote:

 On Tue, Dec 27, 2011 at 1:59 PM, Richard Gaskin
 ambassa...@fourthworld.comwrote:
 
  If you find the script is in play under such circumstances, I'd like to
  learn how you did it.
 
  I've been wanting a way to resolve behaviors at arbitrary execution
 points
  rather than relying on stack opening, and have made this request for a
 new
  resolve behaviors command to do that:
  http://quality.runrev.com/**show_bug.cgi?id=8993
 http://quality.runrev.com/show_bug.cgi?id=8993
  
 

 Well I am not sure if I have what you are looking for. But I can tell you
 that I have behaviors in a sort of half linked state.  They do not work BUT
 in the IDE if you control click on a such button with a broken behavior and
 select Send Message you will see the Handlers in the Behavior script.  If
 you try to to send the message, it fails.

 My Behaviors are on the second card of a Library Stack. That was loaded
 into memory using start using. It was not opened before the start
 using.  These Behaviors are loaded AFTER the stack that uses them. And it
 is this stack that has the broken behaviors.  This makes sense since I am
 loading the behaviors too late.  But the behaviors are in memory they are
 just not correctly linked to their child buttons any more.

 in my case I can fix these quite easily because all the broken buttons are
 on one card. I am using them for code only.  I simply loop through the
 controls on the card and set the behavior of each control to itself.

 *On* ResetBeahviors

   *repeat* with i = 1 to the number of controls of me

  *put* the long id of control i of me into tControl

  *put* word 1 of the name of tControl into tType

  *if* tType = button *then*

 *set* the behavior of tControl to the behavior of tControl

  *end* *if*

   *end* *repeat*

 *end* ResetBeahviors


 Hope that helps

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




-- 
Pete
Molly's Revenge http://www.mollysrevenge.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: Trouble with button icon images

2011-12-27 Thread Pete
Hi Jacque,
I tried this out.  The standalone has a substack named revCopiedIcons.  I
added code to list the controls in that stack and it contained the standard
icons for the answer command (information, error, warning, etc) plus the
one icon I referenced in the Image library.  So it appears the standalone
builder is smart enough to include only the referenced icons.
Pete

On Mon, Dec 26, 2011 at 1:00 PM, J. Landman Gay jac...@hyperactivesw.comwrote:

 On 12/26/11 11:35 AM, Pete wrote:

 HI Jacque,
 Just one more follow up to this.  When the standalone is built, does it
 include all the images in the library or just the ones that are referenced
 in the application?  The library I created has around 700 icons in it and
 I
 only use perhaps a dozen or so in any one application.


 I'm not sure how that would work, I always place the images so that the
 library isn't used at all. I suppose the easiest thing would be for the
 standalone builder to just include the whole library as a substack of your
 mainstack. Copying them individually would change the IDs of the images.

 You could find out by building a small standalone with a button that uses
 a referenced icon, and whose script answers the names of the substacks. I'm
 a little curious myself what you'll find.


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




-- 
Pete
Molly's Revenge http://www.mollysrevenge.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: Trouble with button icon images

2011-12-27 Thread J. Landman Gay

On 12/27/11 5:03 PM, Pete wrote:

Hi Jacque,
I tried this out.  The standalone has a substack named revCopiedIcons.  I
added code to list the controls in that stack and it contained the standard
icons for the answer command (information, error, warning, etc) plus the
one icon I referenced in the Image library.  So it appears the standalone
builder is smart enough to include only the referenced icons.
Pete


That's great to know, thanks for trying it and reporting back. The SB is 
smarter than I thought.


--
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: Case Study: Behaviors Failing - Can't set break points

2011-12-27 Thread Bob Sneidar
Ok, got it. NOW I know everything! I was just missing that little bit. ;-)

Bob


On Dec 27, 2011, at 12:57 PM, Richard Gaskin wrote:

 Bob Sneidar wrote:
 
  On Dec 27, 2011, at 12:28 PM, Todd Geist wrote:
  It starts as this
 
  button id 1004 of card id 1002 of stack /Users/todd/Desktop/A.livecode
 
  it changes to this
 
  button id 1004 of stack A
 
  That is still the long ID.
 
 Sort of.  A true long ID includes the file path, but behaviors use a special 
 form of that descriptor format with the short name of the stack, for 
 portability as Todd surmised.
 
 This sort of truncated long ID is useful in other areas as well, and FWIW I 
 submitted a request to have a truncated keyword added to return that value 
 for object references:
 http://quality.runrev.com/show_bug.cgi?id=7608
 
 It's not too hard to write a function to do this, but since apparently the 
 engine already does this for behaviors it would be handy to have it 
 accessible to us in scripts.
 
 --
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 LiveCode Journal blog: http://LiveCodejournal.com/blog.irv
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-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: Case Study: Behaviors Failing - Can't set break points

2011-12-27 Thread Bob Sneidar
How about the adequately lengthy ID? 

Bob


On Dec 27, 2011, at 2:49 PM, J. Landman Gay wrote:

 On 12/27/11 3:00 PM, Mark Wieder wrote:
 Todd Geisttodd@...  writes:
 
 On a side note. I can't set a Behavior to any other then the Short
 Reference.  I set it with a Long ID including the path.  But it is
 immediately converted to the short button id 1020 of stack behaviors form
 
 That's known as the rugged id
 
 I think it should be called the short long ID. We also have room to add a 
 long short ID if necessary.
 
 -- 
 Jacqueline Landman Gay | jac...@hyperactivesw.com
 HyperActive Software   | http://www.hyperactivesw.com
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Strange Datagrid Behavior

2011-12-27 Thread Pete
I found the reason for this strange problem.  The second datagrid mentioned
in the original message was named Columns.  In desperation, I changed its
name to something other than Columns and of course changed references to
it and now all works fine.

It appears that Columns is some sort of reserved word in the datagrid
world, not too surprising I suppose.

Pete

On Tue, Dec 27, 2011 at 9:46 AM, Bob Sneidar b...@twft.com wrote:

 Delete the first datagrid and when it throws an error that is where
 whatever code is referencing the first datagrid literally.

 It sounds at first blush like you set the behavior to something other than
 the datagrid library, and then did some custom work with that behavior,
 referring to the first datagrid literally somewhere in the behavior script.

 Alternately, you can try edit the script of the behavior of
 mySecondDataGrid and then search for the name of the first datagrid.

 Bob


 On Dec 26, 2011, at 5:28 PM, Pete wrote:

  I have two datagrids on a card.  When the user clicks on an option menu
 on
  the card, the datagrids are populated with information in two different
  formats, at least that's what's supposed to happen.
 
  I do this by setting the dgText of each datagrid to the value of a
  variable.  When I set the dgText of the first datagrid (stepping through
 in
  debug), I see the correct data show up.  When I set the dgText of the
  second datagrid, it appears in the first datagrid and the second datagrid
  remains empty!!  The datagrids have different names.
 
  I have checked the row template property to make sure it has not somehow
  been set to the wrong datagrid but they are both correct.  I have checked
  the value of the dgContorl property of each datagrid and it is correct
 also.
 
  I will say that these datagrids have have a somewhat checkered past.
  They
  originally existed on a different card than they reside on now, and all
  worked fine back in those good old days.  For application design
 reasons, I
  copied them (and a few other controls) from the original card to a
  different card and put them all into a group.  That's when the problems
  started.
 
  Any ideas on how I might track down this strange behavior?
 
  --
  Pete
  Molly's Revenge http://www.mollysrevenge.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




-- 
Pete
Molly's Revenge http://www.mollysrevenge.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: Strange Datagrid Behavior

2011-12-27 Thread Bob Sneidar
Yet another great argument for naming conventions! All my datagrids start with 
dg. 

Bob


On Dec 27, 2011, at 4:06 PM, Pete wrote:

 I found the reason for this strange problem.  The second datagrid mentioned
 in the original message was named Columns.  In desperation, I changed its
 name to something other than Columns and of course changed references to
 it and now all works fine.
 
 It appears that Columns is some sort of reserved word in the datagrid
 world, not too surprising I suppose.
 
 Pete


___
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: Strange Datagrid Behavior

2011-12-27 Thread Pete
Just don;t call them dgColumn!

On Tue, Dec 27, 2011 at 4:18 PM, Bob Sneidar b...@twft.com wrote:

 Yet another great argument for naming conventions! All my datagrids start
 with dg.

 Bob


 On Dec 27, 2011, at 4:06 PM, Pete wrote:

  I found the reason for this strange problem.  The second datagrid
 mentioned
  in the original message was named Columns.  In desperation, I changed
 its
  name to something other than Columns and of course changed references
 to
  it and now all works fine.
 
  It appears that Columns is some sort of reserved word in the datagrid
  world, not too surprising I suppose.
 
  Pete


 ___
 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




-- 
Pete
Molly's Revenge http://www.mollysrevenge.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: Strange Datagrid Behavior

2011-12-27 Thread Pete
Actually, now I see that there are around a dozen or so groups within the
datagrid structure whose name starts with dg.  Definitely a good idea to
have naming conventions but dg might not be the best choice for datagrids,
although it is the obvious one.

On Tue, Dec 27, 2011 at 4:34 PM, Pete p...@mollysrevenge.com wrote:

 Just don;t call them dgColumn!


 On Tue, Dec 27, 2011 at 4:18 PM, Bob Sneidar b...@twft.com wrote:

 Yet another great argument for naming conventions! All my datagrids start
 with dg.

 Bob


 On Dec 27, 2011, at 4:06 PM, Pete wrote:

  I found the reason for this strange problem.  The second datagrid
 mentioned
  in the original message was named Columns.  In desperation, I changed
 its
  name to something other than Columns and of course changed references
 to
  it and now all works fine.
 
  It appears that Columns is some sort of reserved word in the datagrid
  world, not too surprising I suppose.
 
  Pete


 ___
 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




 --
 Pete
 Molly's Revenge http://www.mollysrevenge.com





-- 
Pete
Molly's Revenge http://www.mollysrevenge.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: Strange Datagrid Behavior

2011-12-27 Thread Bob Sneidar
Yeah I don't think they have a group called dgAltData :-) I try to pick 
obscure names for all my objects for this very reason. Still... it might 
explain why every time I try to populate this one datagrid I get a shock 
through the mouse. Hmmm...

Bob


On Dec 27, 2011, at 4:41 PM, Pete wrote:

 Actually, now I see that there are around a dozen or so groups within the
 datagrid structure whose name starts with dg.  Definitely a good idea to
 have naming conventions but dg might not be the best choice for datagrids,
 although it is the obvious one.
 
 On Tue, Dec 27, 2011 at 4:34 PM, Pete p...@mollysrevenge.com wrote:
 
 Just don;t call them dgColumn!
 
 
 On Tue, Dec 27, 2011 at 4:18 PM, Bob Sneidar b...@twft.com wrote:
 
 Yet another great argument for naming conventions! All my datagrids start
 with dg.
 
 Bob


___
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: Strange Datagrid Behavior

2011-12-27 Thread Mark Wieder
Bob-

Tuesday, December 27, 2011, 4:18:10 PM, you wrote:

 Yet another great argument for naming conventions!

Actually I think this a great argument for namespaces.

-- 
-Mark Wieder
 mwie...@ahsoftware.net


___
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 Password protection of RR server?

2011-12-27 Thread Mark Wieder
Jim-

Tuesday, December 27, 2011, 11:03:52 AM, you wrote:

 I would like to password protect a page. Is there anything about
 the RR server that affects how that should be done?

As Matthias said, log on to on-rev's cPanel, then scroll down the page
to the Security section and click on Password Protect Directories.
You'll probably want to click on the public_html icon (not the text)
to open it and then navigate your way down to the folder you want to
protect.

When you finally find the right one, click on its text (not its icon),
then place a check in the checkbox to verify that you want to protect
it and (optionally) set a name for the directory. Then enter a
username and password (both are necessary to unlock the directory) and
click Add/modify authorized user. You're done unless you want to add
more user/password pairs.

-- 
-Mark Wieder
 mwie...@ahsoftware.net


___
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: Crashing Ubuntu 11.10 with LC 4.5

2011-12-27 Thread David C.
On Tue, Dec 27, 2011 at 2:35 PM, Richard Gaskin
ambassa...@fourthworld.com wrote:

 In terms of design, it's almost as big a departure from earlier versions as
 OS X is from Mac OS 9.  And as with my Mac experience, the transition was a
 bit jarring at first, and I initially complained about not being as
 productive.  But with both OS X and Unity, the more time I spend with the
 new system the more I like it.

Richard,
How would you rate your experience/satisfaction level so far, as it
applies to actual LC development using Unity?

I have to admit that I've tried Unity 2-3 times now going back to the
original RC from Ubuntu and so far I just don't much care for it...
although I'm downloading the latest to take for a test spin as I type
this. I've been a fan of Mint for several years now, but already
seriously question how well the Mate scenario will work out.

I'm still trying to convince myself that at the age of 55 years, I've
not already gotten so old that I cannot easily adapt to newer
technology, whatever that may be. Unfortunately, Unity has just about
caused me to throw in the towel with Gnome.

Best regards,
David C.

___
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