Re: Please suggest script

2010-11-17 Thread Mike Bonner
General rule of thumb. Never do what Mike says. All my friends see this as a
life rule. If Mike thinks its a good idea, or even worse, if Mike came UP
with the idea, its doomed DOOMED I TELL YOU! HAHAHAHAHAHAHA (you gotta
imagine the cackles)

>ho ho ho I was going to say, do what Mike said...
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Please suggest script

2010-11-17 Thread Mike Bonner
Oh yeah. Do what andre said and use linkclicked.

On Wed, Nov 17, 2010 at 11:36 AM, Andre Garzia wrote:

> On Wed, Nov 17, 2010 at 4:30 PM, Timothy Miller <
> gand...@doctortimothymiller.com> wrote:
>
> > Thanks Andre!
> >
> > I think you might have misunderstood my request. What I want to do is
> > pretty simple. I will manually locate web URLs, and hilite them manually.
> > They are in plain text. Then I want to click a button that will turn the
> > hilited plain-text URL into a clickable link. By "clickable link" I mean
> I
> > want it to open the URL in my web browser.
> >
>
>
> o so it is easier than I thought
>
>
>
> >
> > I tried:
> >
> > get the selectedText
> > revGoUrl it
> >
> > That worked, to my amazement. Cool. Didn't know about RevGoUrl.
> >
> > OTOH, the docs say revGoUrl is deprecated. I'm not sure what to use
> > instead.
> >
>
> I don't believe RevGoURL is deprecated. Oh My Lord Ganesha!!! It is
> deprecated... well, it is not the end of the world, it appears that they
> introduced launch url sometime during 2.9 and I missed it.
>
> So, use the selectedchunk. Something along the lines of:
>
> set the textstyle of the selectedchunk to "linktext".
>
> Then, lock the text field so it is not editable anymore. Put a handler in
> it
> like
>
> on linkcliked pLink
>  launch url pLink
> end linkclicked
>
> See if it works for you.
>
> cheers
>
>
>
>
> >
> >
> --
> http://www.andregarzia.com All We Do Is Code.
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Please suggest script

2010-11-17 Thread Mike Bonner
I see where you're going with this.  First I need to point out, if the field
doesn't have locktext set, don't think it will work, BUT, if it is.. For the
plainest, simplest form, no validation or anything of that sort you can do
the following.

In the button you can put:

on mouseUp
   set the textstyle of the selectedchunk to link
end mouseUp

And for the field:

on mouseUp
   if the textstyle of the clickchunk is "link" then
  launch url the clicktext
   end if
end mouseUp

On Wed, Nov 17, 2010 at 11:36 AM, Phil Davis  wrote:

> On 11/17/10 10:30 AM, Timothy Miller wrote:
>
>> I tried:
>>
>> get the selectedText
>> revGoUrl it
>>
>> That worked, to my amazement. Cool. Didn't know about RevGoUrl.
>>
>> OTOH, the docs say revGoUrl is deprecated. I'm not sure what to use
>> instead.
>>
>>  Try:
>
> get the selectedText
> launch url it
>
> --
> Phil Davis
>
> PDS Labs
> Professional Software Development
> http://pdslabs.net
>
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Functions in the on-rev - LC server script

2010-11-16 Thread Mike Bonner
Define the functions first.



On Tue, Nov 16, 2010 at 9:40 AM, paolo mazza wrote:

> How can I place a function in a on-rev - CGI server script ?
> I have to port a stack script (with commands and functions) to a .irev text
> file for the  on-rev  server .
> I expected something similar to the following script...
>
>put MyFunction() into tVAR1
>   put tVAR1
>
> function MyFunction
>   put 1 + 1 into VAR2
>   return VAR2
> end MyFunction
>
> ?>
> ... but obviously it does not work !!!
>
> Any idea?
>
> Many thanks
>
> Paolo Mazza
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: LiveCode Personal Banner

2010-11-15 Thread Mike Bonner
I did this even though I'm currently using the commercial version.  All it
is is a list that I can drop .rev or .livecode files on and that launches
them with a double click. Keeps the IDE out of the way, don't have to mess
with actually building standalones. And the bonus is, it only loads the
stuff I use regularly. No oracle, mySQL, ODBC, Postgresql, encryption etc.
Plus, correct me if i'm wrong, but if you have 5 standalones and run them
all, doesn't it load all the bundled stuff into EACH standalone? So that you
redundantly load the same thing 5 times?  If this is the case, then seems
like having a stack runner that loads the stuff once so that all subsequent
apps use the same, would be more efficient in the long run. Not positive it
works this way though.

On Mon, Nov 15, 2010 at 5:27 PM, Terry Judd  wrote:

> What about creating a personal 'player' application that starts up
> automatically and is just left running in the background. You could then
> open your projects as you do in the IDE (e.g. drop them on the app icon,
> retrieve them from a recent list or open them via a file selection dialog)
> without the distractions of all the other IDE stuff. You'll only see the
> splash message once on startup/login irrespective of the number of times
> you
> run your 'apps'.
>
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Can we set the color of an Apps title bar?

2010-11-14 Thread Mike Bonner
Yeah, don't believe you can set the title bar directly, its set by OS, but
if you were willing to roll your own then you could, or something simple
like a home made focus border that changes based on suspendstack and
resumestack would work. Unfortunately, pretty sure you can't affect the
stock title bar.  There is a change of color on my system, but its too
subtle for my eyes to pick up easily. Gray, and slightly lighter gray, are
all.. erm. Gray. To me.


On Sun, Nov 14, 2010 at 9:43 PM, Joe Lewis Wilkins  wrote:

> OK, Mike. I'll give it a try, but I was only trying to make the title bars
> different colors.
>
> Thanks,
>
> Joe Wilkins
>
> On Nov 14, 2010, at 8:14 PM, Mike Bonner wrote:
>
> > Nope, they can be on screen just fine.  To do a quick test, create a
> stack,
> > create a substack. In the main stack put:
> >
> > on resumeStack
> >   set the backgroundcolor of this card to "red"
> >   pass resumestack
> > end resumeStack
> >
> > on suspendStack
> >   set the backgroundColor of this card to empty
> >   pass suspendstack
> > end suspendStack
> >
> >
> > Then click back and forth. Whichever stack you have at front will turn
> red.
> > If you choose a different program entirely, both will turn white. The
> > exception to this, I think do to the way the IDE works is that if you
> select
> > an IDE stack (for example the script editor) then start clicking back adn
> > forth, its possible to get both stacks red untill things sort themselves
> > out. This shouldn't occur in a standalone.
> >
> > Obviously making the whole stack red might be a little garish, but is a
> > quick easy example so you can see how it works.
> > On Sun, Nov 14, 2010 at 7:14 PM, Joe Lewis Wilkins 
> wrote:
> >
> >> Thanks Mike. After checking your suggestions, I believe they all apply
> to
> >> stacks that will no longer be "on" the screen, rather than just being
> >> inactive. In my case, all three will be on the screen at the same time,
> so
> >> that the user can work with one, view the others sometimes and go back
> and
> >> forth when exchanging data.
> >>
> >> Joe Wilkins
> >>
> >> On Nov 14, 2010, at 5:54 PM, Mike Bonner wrote:
> >>
> >>> I assume you mean other than the title bar color change, and shading
> >>> difference (on os x at least).  If thats the case, look at suspendstack
> >> and
> >>> resumestack. Also possibly IconifyStack.
> >>>
> >>> On Sun, Nov 14, 2010 at 6:47 PM, Joe Lewis Wilkins 
> >> wrote:
> >>>
> >>>> Anyone know if this can be done? I have an app that will have three
> >> stacks
> >>>> on the screen at the same time, and I'd like to have a neat way of
> >> showing
> >>>> which one is the active stack. I'm pretty sure I'm dreaming, but...
> >>>>
> >>>> TIA,
> >>>>
> >>>> Joe Wilkins___
> >>>>
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Can we set the color of an Apps title bar?

2010-11-14 Thread Mike Bonner
Nope, they can be on screen just fine.  To do a quick test, create a stack,
create a substack. In the main stack put:

on resumeStack
   set the backgroundcolor of this card to "red"
   pass resumestack
end resumeStack

on suspendStack
   set the backgroundColor of this card to empty
   pass suspendstack
end suspendStack


Then click back and forth. Whichever stack you have at front will turn red.
If you choose a different program entirely, both will turn white. The
exception to this, I think do to the way the IDE works is that if you select
an IDE stack (for example the script editor) then start clicking back adn
forth, its possible to get both stacks red untill things sort themselves
out. This shouldn't occur in a standalone.

Obviously making the whole stack red might be a little garish, but is a
quick easy example so you can see how it works.
On Sun, Nov 14, 2010 at 7:14 PM, Joe Lewis Wilkins  wrote:

> Thanks Mike. After checking your suggestions, I believe they all apply to
> stacks that will no longer be "on" the screen, rather than just being
> inactive. In my case, all three will be on the screen at the same time, so
> that the user can work with one, view the others sometimes and go back and
> forth when exchanging data.
>
> Joe Wilkins
>
> On Nov 14, 2010, at 5:54 PM, Mike Bonner wrote:
>
> > I assume you mean other than the title bar color change, and shading
> > difference (on os x at least).  If thats the case, look at suspendstack
> and
> > resumestack. Also possibly IconifyStack.
> >
> > On Sun, Nov 14, 2010 at 6:47 PM, Joe Lewis Wilkins 
> wrote:
> >
> >> Anyone know if this can be done? I have an app that will have three
> stacks
> >> on the screen at the same time, and I'd like to have a neat way of
> showing
> >> which one is the active stack. I'm pretty sure I'm dreaming, but...
> >>
> >> TIA,
> >>
> >> Joe Wilkins___
> >> use-revolution mailing list
> >> use-revolution@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-revolution
> >>
> > ___
> > use-revolution mailing list
> > use-revolution@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Can we set the color of an Apps title bar?

2010-11-14 Thread Mike Bonner
I assume you mean other than the title bar color change, and shading
difference (on os x at least).  If thats the case, look at suspendstack and
resumestack. Also possibly IconifyStack.

On Sun, Nov 14, 2010 at 6:47 PM, Joe Lewis Wilkins  wrote:

> Anyone know if this can be done? I have an app that will have three stacks
> on the screen at the same time, and I'd like to have a neat way of showing
> which one is the active stack. I'm pretty sure I'm dreaming, but...
>
> TIA,
>
> Joe Wilkins___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Create button script won't work - why?

2010-11-14 Thread Mike Bonner
I don't think you can direct where the button goes, the dictionary says:
 Summary: Creates a new object on the current card.
I believe you can get around this by placing a group on your card. Perhaps
with an invisible background, sized to window size.  At this point you can:
create button "Fred" in group "Testing" card "One" stack "Test"

On Sun, Nov 14, 2010 at 6:22 PM, Bill Vlahos  wrote:

> Make a new stack called "Test" and label the card "One".
>
> Put a button on the card with the following script:
> on mouseUp
>   create button "Fred" in card "One" of stack "Test"
> end mouseUp
>
> The compiler doesn't complain but when I click the button I get this error:
> button "Button": execution error at line 2 (create: error in bad parent or
> background expression), char 1
>
> The following script works:
> on mouseUp
>   put the defaultStack into vName -- note whatever the defaultStack is
>   set the defaultStack to "Test"
>   go to card "One"
>   create button "Fred"
>   set the defaultStack to vName -- reset the defaultStack to what it was
> before
> end mouseUp
>
> Is there a way to directly create a button on a particular card in a
> particular stack without going to it and doing all this? The stack I want to
> create the button into is data stack that never gets viewed directly. In
> this case it will be data in the custom property of that button.
>
> Thanks,
> Bill Vlahos
> _
> InfoWallet (http://www.infowallet.com) is about keeping your important
> life information with you, accessible, and secure.
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [OT] legality of DVD backup

2010-11-09 Thread Mike Bonner
Runtime is what happens when the Revolution is going badly. As in "Uh oh,
its runtime!"

Define: runtime;  To advance to the rear.

On Tue, Nov 9, 2010 at 12:05 PM, Bob Sneidar  wrote:

> Frankly, I think any revolution whose founding principle and main goal is
> to "run time" is both absurd and egomaniacal. So you conquer the whole
> world! So what?? You are no closer to "running time" than you were before
> you started! The cheek! And another thing, if someone is going to start a
> revolution, for heaven's sake get your grammar correct. It should be
> "control time" or "alter time". "Run time" makes them sound like a bunch of
> 6th grade ninnyhammers. I mean really... wha.. what's that? OH! Runtime!
>
> NEVER MIND!
>
> Bob
>
>
> On Nov 9, 2010, at 10:58 AM, Richmond wrote:
>
> > So, far from being a Runtime 'Revolutionary', I am best described as a
> Runtime 'Counter Revolutionary'
> > as I want ALL these things back; especially the King!
> >
> > I, ALSO, want "LiveCode" to resume being called "Runtime Revolution";
> dead South American Commies
> > or not.
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Path and File Questions for On-Rev

2010-11-03 Thread Mike Bonner
if you set the defaultfolder to the defaultFolder & "/myFolder"
and then put the files you should be good to go.

delete file takes a path as argument so if you don't want to set the default
folder for that you can specify a relative (based on current default folder)
or absolute path
delete file "pathtofolder/filetodelete"
and the result will contain a fail message if the file was not found.

On Wed, Nov 3, 2010 at 12:59 PM, Gregory Lypny
wrote:

> Hi everyone,
>
> How can I get a simple listing of files in a subfolder named, say, myFolder
> in my public_html directory at On-rev?
>
> If I run
>
>put the files
>
> I get the list of files in public_html.  Does files() accept a path as a
> parameter?  Haven't being able to get it to work.  Likewise, how can I
> delete files in a subfolder using irev scripts?
>
> I think my problem is that I'm not specifying paths on the server
> correctly.
>
> Regards,
>
> Gregory
>
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: delete chunk.

2010-11-03 Thread Mike Bonner
Hmm. I get your point, and now I think I have a little bit of gray leaking
out my left ear.  If you look at it as if the delimiter is both an
instigator AND a terminator, then if you have a var with "," in it, it seems
like it should be 2 empty (and pointless) items. I had been thinking that it
could be considered an instigator only with an assumed delimiter before the
first item, but then as you say, empty isn't empty, empty would be 1 empty
item.

This also explains why I will never ever write my own intepreter/compiler.
Too many things I will never understand well enough. Love trying to get my
head around things, failure to do so can be as educational as success if not
more so.

On Wed, Nov 3, 2010 at 11:56 AM, Jonathan Lynch wrote:

> So think about this.
>
> If we only regard the delimiter as a delimiter between items (rather than a
> terminator), then how would we have a container with zero items?
>
> I mean, if 1 delimiter indicates the presence of two items, then zero
> delimiters would indicate one item.
>
> would an empty container have zero items, or one item that is empty?
>
> On Wed, Nov 3, 2010 at 1:33 PM, J. Landman Gay  >wrote:
>
> > On 11/3/10 10:41 AM, Mike Bonner wrote:
> >
> > Having said all this, there is most likely a reason it is the way it is
> >> that
> >> I don't have enough knowledge to understand.  As with removing trailing
> >> carriage returns, if it's a null item it isn't difficult to work around
> >> and
> >> i'm not sure I can come up with a valid reason for actually having an
> >> empty
> >> item, but that doesn't mean there isn't a use for it.  /shrug
> >>
> >
> > It may be the difference between seeing the delimiter as a terminating
> > character or as a dividing character. If you consider the comma or return
> as
> > a terminator, then it is "attached" to the preceding string. If that
> entry
> > is empty, there is nothing to terminate and the engine removes it.
> >
> > --
> >  Jacqueline Landman Gay | jac...@hyperactivesw.com
> > HyperActive Software   | http://www.hyperactivesw.com
> > ___
> > use-revolution mailing list
> > use-revolution@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
>
>
>
> --
> Do all things with love
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: delete chunk.

2010-11-03 Thread Mike Bonner
It helps if I think of it that way but in the case of empty items in the
middle of a line it doesn't behave that way. Still terminates nothing, but
is counted as an item.

Despite all the conversation, I've never really run into it as a problem
except when I was playing with merge one day.  Had a string like
"[[item1]],[[item2]],[[item3]]" and would merge it, and was lost when some
of my items were empty, and "the number of items" would return different
values based on which item was empty.  Real confusing for a newbie when you
can do "if item 2 is empty then.. but not "if the last item is empty" when
you expect there to be 3 items. The way it works currently, you can never
check to see if the last item is empty because it never can be.  If it is,
it will check the next one to the left instead.

I just changed how I do things so it's not a big deal.  I got curious one
day and did some tests.  Building a long list (multi row/column) by looping
and using put "something" into item # line # of tListImMaking was
horrendously slow when compared to put whateveritemsyouneedonthisline &
return after tListImMaking, and then truncating the last return, so that
eliminated a percentage of the things I was attempting and shoved me down
different roads.

On Wed, Nov 3, 2010 at 11:33 AM, J. Landman Gay wrote:

> On 11/3/10 10:41 AM, Mike Bonner wrote:
>
>  Having said all this, there is most likely a reason it is the way it is
>> that
>> I don't have enough knowledge to understand.  As with removing trailing
>> carriage returns, if it's a null item it isn't difficult to work around
>> and
>> i'm not sure I can come up with a valid reason for actually having an
>> empty
>> item, but that doesn't mean there isn't a use for it.  /shrug
>>
>
> It may be the difference between seeing the delimiter as a terminating
> character or as a dividing character. If you consider the comma or return as
> a terminator, then it is "attached" to the preceding string. If that entry
> is empty, there is nothing to terminate and the engine removes it.
>
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: delete chunk.

2010-11-03 Thread Mike Bonner
In my opinion?  it SHOULD say 3.  2 lines with stuff, and 1 blank. Of course
it says 2, but this is the same reason people "delete the last char of.."
when doing things.  If you fill a field with "this" & cr & "that" & cr, and
then click at the bottom of the field, your cursor goes to the blank line
underneath the 2 lines with text. The line exists, it should be counted.
Looking at it the other way, if you put fred into line 1 of field 1, put
mike into line 2 of field 1, the cr is added between the 2 automatically,
but there is no extra trailing line.  There are 2 lines.

Having text for line 1 & cr empty for line 2 & cr text for line 3, at that
point, line 2 looks and acts exactly like line 2 would look and behave if
there were no line 3. You can click in it, type in it, it acts like a line.
And is counted as a line like it should be.  If however it is a trailing
empty line it is not counted.  It's the same exact thing. A cr followed by
empty.  Simply adding another line after it shouldn't make it magically
appear as a line. either it is or it isn't, at least so it seems to me.

Having said all this, there is most likely a reason it is the way it is that
I don't have enough knowledge to understand.  As with removing trailing
carriage returns, if it's a null item it isn't difficult to work around and
i'm not sure I can come up with a valid reason for actually having an empty
item, but that doesn't mean there isn't a use for it.  /shrug

As a last visual example, I have several spice bottles in my kitchen, some
of which are empty.  If I re-arrange them so that an empty one is on the end
of the row it doesn't cease to exist, and it doesn't pop back in to being
because i put it between 2 spice bottles that DO have contents.


On Wed, Nov 3, 2010 at 9:20 AM, J. Landman Gay wrote:

> On 11/3/10 9:00 AM, Mike Bonner wrote:
>
>> Actually, I think that's exactly the problem.  "a,b,,," has 4 items.  The
>> trailing , is ignored.  "a,b,,,e" has 5 items.  putting a space, or some
>> type of invisible char after the trailing , makes it 5 items.  It drives
>> me
>> nuts, if the comma is there it should designate a null item whether its in
>> the middle or at the end.
>>
>
> Okay, then how many lines should be in:
>
> a
> b
>
> ?
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: delete chunk.

2010-11-03 Thread Mike Bonner
Yep, a delimiter should be a delimiter even if it delimits null.

On Wed, Nov 3, 2010 at 8:32 AM, Jonathan Lynch wrote:

> Hi Alex,
>
> I am starting to agree with you that some of this becomes counterintuitive.
> Not hard to work around, but potentially confusing to a newcomer.
>
> I am in the habit of fastidiously making sure that my lists do not have a
> trailing delimiter, so I have not been plagued by this too much.
>
> "a,b,,," should say that it contains five items (two characters and three
> empty items). If it does not, that is confusing.
>
> On Wed, Nov 3, 2010 at 10:25 AM, Alex Tweedly  wrote:
>
> > I agree it would be great to be able to say
> >   set the payAttentionToTrailingDelimiters to true
> >
> > But in the meantime you can use the fact that doubling a trailing
> delimiter
> > will be ignored.
> > repeat for each line L in tData
> >   if the last item of (L & the itemDel) is empty then
> >  -- deal with an empty one
> >   else
> >  -- use "the last item of L" which is not empty
> >   end if
> >
> > -- Alex.
> >
> >
> > On 03/11/2010 12:52, Ken Ray wrote:
> >
> >> Just tossing this out there, but I *love* this behavior. I'm sure there
> >>> are
> >>> situations where it's undesirable, but are easily compensated for by
> just
> >>> adding another delimiter.
> >>>
> >>> Begin able to do the following is very handy and makes the code clean:
> >>>
> >>> put "foo"&  cr after fld "x"
> >>> put "bar"&  cr after fld "x"
> >>> put the number of lines of fld "x"
> >>>
> >>> Having that return 2 is extremely convenient.
> >>>
> >> Agreed, but sometimes it's not convenient when you want to get the "last
> >> item" of a line; for example, if you have a container that holds columns
> >> for
> >> First Name (tab) Last Name (tab) Notes, and some lines have a note and
> >> some
> >> don't, you can't just set the itemDelimiter to tab and run through the
> >> container and get the "last item" or "item -1" of the line to check if
> the
> >> person entered a note; if they didn't provide one, then check the "last
> >> item" will give you their Last Name instead.
> >>
> >> It would be great if there was a global setting that you could toggle it
> >> on
> >> in these circumstances, something like:
> >>
> >> put item -1 of "Ken,Ray,"
> >> ==>  returns "Ray"
> >>
> >> set the dontIgnoreTrailingDelimiter to true
> >> put item -1 of "Ken,Ray,"
> >> ==>  returns ""
> >>
> >> :-)
> >>
> >> Ken Ray
> >> Sons of Thunder Software, Inc.
> >> Email: k...@sonsothunder.com
> >> Web Site: http://www.sonsothunder.com/
> >>
> >>
> >> ___
> >> use-revolution mailing list
> >> use-revolution@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-revolution
> >>
> >>
> > ___
> > use-revolution mailing list
> > use-revolution@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
>
>
>
> --
> Do all things with love
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: delete chunk.

2010-11-03 Thread Mike Bonner
Actually, I think that's exactly the problem.  "a,b,,," has 4 items.  The
trailing , is ignored.  "a,b,,,e" has 5 items.  putting a space, or some
type of invisible char after the trailing , makes it 5 items.  It drives me
nuts, if the comma is there it should designate a null item whether its in
the middle or at the end.

On Wed, Nov 3, 2010 at 7:43 AM,  wrote:

> This seems perfectly intuitive to me.
>
> When you delete an item, you are doing something entirely different than
> just manipulating the contents of an item. In one case you reduce the
> number
> of items. In the other you merely insert, or remove, data from them.For
> example, "a,b,,," has five items. Putting empty, or anything, into item 4,
> say,
> makes sense, and we have not changed the number of itms at all.
>
> I think it all may just be a misperception, having to do with the last item
> being perceived differently from an interior item. I'll bet this thread
> would not have started if the process had been:
>
> delete item 3 of "a,b,,,"
> put empty into item 3 of "a,b,,,"
>
> Craig Newman
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: a weird thing about registration, Linux

2010-11-01 Thread Mike Bonner
Peter did it once, but.. well easier to read the whole thread.  He's coming
at things from a different angle than the initial install.

On Mon, Nov 1, 2010 at 4:51 PM, J. Landman Gay wrote:

> On 11/1/10 5:34 PM, Mike Bonner wrote:
>
>> not sure why then.  /shrug If you copy the prefs to root does it still
>> think
>> it needs to be registered when su'd?  Either way, think its time for a
>> bigger hammer.
>>
>
> Prefs don't store the licensing info, it's stored separately. I'm not sure
> where it's stored on Linux systems, but you (or rather Peter) can download
> the file from your user account and manually point to it during
> installation. Or easier, just be online during installation and the
> installer will look up your license. You should only have to do this once
> per installation.
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: a weird thing about registration, Linux

2010-11-01 Thread Mike Bonner
not sure why then.  /shrug If you copy the prefs to root does it still think
it needs to be registered when su'd?  Either way, think its time for a
bigger hammer.

On Mon, Nov 1, 2010 at 4:30 PM, Peter Alcibiades <
palcibiades-fi...@yahoo.co.uk> wrote:

>
> Nope, same thing.  Also su -m -p, or su -p, also same thing.  Weird.
> --
> View this message in context:
> http://runtime-revolution.278305.n4.nabble.com/a-weird-thing-about-registration-Linux-tp3022230p3022902.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: a weird thing about registration, Linux

2010-11-01 Thread Mike Bonner
Try su -m
That leaves env vars the same, and should allow you to do your upgrade
since home is still home.

On 11/1/10, Mike Bonner  wrote:
> Working directory, and home directory are different things.  It's
> looking for the .Revolution file on the home directory, working
> directory makes no difference, and as soon as you su, the home
> directory is changed to roots home.
>
> And yeah, not really an effective solution. For all user install, the
> reg info should be kept seperate and used for all users, with only
> individual user preferences stored in ~/.revolution. To make it
> seemless rev needs to set up a default prefs file that is
> automagically placed in the home directory, with registration intact,
> or as I mentioned, seperate the registration out and have the home dir
> only store preferences, not reg info.
>
> On 11/1/10, Peter Alcibiades  wrote:
>>
>> pe...@:/opt/runrev/livecode-4.5$ ls
>> Documentation  livecode.x86   Resources Runtime
>> Externals  Pluginsrevpdfprinter.so  Toolset
>> License Agreement.txt  Release Notes.pdf  revsecurity.so
>> pe...@:/opt/runrev/livecode-4.5$ ./livecode.x86
>> pe...@:/opt/runrev/livecode-4.5$ pwd
>> /opt/runrev/livecode-4.5
>> pe...@:/opt/runrev/livecode-4.5$ su
>> Password:
>> :/opt/runrev/livecode-4.5# pwd
>> /opt/runrev/livecode-4.5
>> :/opt/runrev/livecode-4.5# ./livecode.x86
>> :/opt/runrev/livecode-4.5#
>>
>>
>> So, if you do su the working directory remains the same.  If you are in
>> the
>> working directory without su, Rev starts.  If you are in the same working
>> directory after having done su, it asks you to register.
>>
>> Don't get it.  The difference of course is that when it works, its
>> identifying the user:
>>
>>  pe...@:/opt/runrev/livecode-4.5$ ./livecode.x86
>>
>> as opposed to in the other case, where the prompt is just
>>
>>  :/opt/runrev/livecode-4.5# ./livecode.x86
>>
>> So the difference is, it is looking for the registration in a particular
>> user home folder?  But in that case, why install in /opt?  And why
>> restrict
>> the use to one account on a multi account system?  Makes no sense, no-one
>> else does it, do they?
>>
>> --
>> View this message in context:
>> http://runtime-revolution.278305.n4.nabble.com/a-weird-thing-about-registration-Linux-tp3022230p3022581.html
>> Sent from the Revolution - User mailing list archive at Nabble.com.
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: a weird thing about registration, Linux

2010-11-01 Thread Mike Bonner
Working directory, and home directory are different things.  It's
looking for the .Revolution file on the home directory, working
directory makes no difference, and as soon as you su, the home
directory is changed to roots home.

And yeah, not really an effective solution. For all user install, the
reg info should be kept seperate and used for all users, with only
individual user preferences stored in ~/.revolution. To make it
seemless rev needs to set up a default prefs file that is
automagically placed in the home directory, with registration intact,
or as I mentioned, seperate the registration out and have the home dir
only store preferences, not reg info.

On 11/1/10, Peter Alcibiades  wrote:
>
> pe...@:/opt/runrev/livecode-4.5$ ls
> Documentation  livecode.x86   Resources Runtime
> Externals  Pluginsrevpdfprinter.so  Toolset
> License Agreement.txt  Release Notes.pdf  revsecurity.so
> pe...@:/opt/runrev/livecode-4.5$ ./livecode.x86
> pe...@:/opt/runrev/livecode-4.5$ pwd
> /opt/runrev/livecode-4.5
> pe...@:/opt/runrev/livecode-4.5$ su
> Password:
> :/opt/runrev/livecode-4.5# pwd
> /opt/runrev/livecode-4.5
> :/opt/runrev/livecode-4.5# ./livecode.x86
> :/opt/runrev/livecode-4.5#
>
>
> So, if you do su the working directory remains the same.  If you are in the
> working directory without su, Rev starts.  If you are in the same working
> directory after having done su, it asks you to register.
>
> Don't get it.  The difference of course is that when it works, its
> identifying the user:
>
>  pe...@:/opt/runrev/livecode-4.5$ ./livecode.x86
>
> as opposed to in the other case, where the prompt is just
>
>  :/opt/runrev/livecode-4.5# ./livecode.x86
>
> So the difference is, it is looking for the registration in a particular
> user home folder?  But in that case, why install in /opt?  And why restrict
> the use to one account on a multi account system?  Makes no sense, no-one
> else does it, do they?
>
> --
> View this message in context:
> http://runtime-revolution.278305.n4.nabble.com/a-weird-thing-about-registration-Linux-tp3022230p3022581.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: a weird thing about registration, Linux

2010-11-01 Thread Mike Bonner
Well now i'm curious.  If you su, then cd ~
then pwd, it doesn't switch you to the root home account?

I just setup dsl in a virtual machine and tried it, the home directory
changes to match root when su'd. not su -.  If nothing else, check
your system variables, for me, after su, my HOME variable is changed
to /root (thats where it is on DSL)

I wonder, if you set things up so you can sudo livecode can you then
update? I did a check on osx, if I do this.
sudo cd ~;pwd
it retains my home folder.  I don't have sudo configured on my virtual
machine so can't test there, but if it behaves the same then sudo
livecode should run it with elevated permissions allowing the update
to go forward.  I think.

On 11/1/10, zryip theSlug  wrote:
> On Mon, Nov 1, 2010 at 3:26 PM, Peter Alcibiades
>  wrote:
>> Has anyone else had this?
>>
>> I installed and registered my 4.5 copy.  Works fine.  Now, I want to
>> update
>> the Slug's package.  It won't let me, most likely because its installed
>> the
>> app in /opt and as user I have no write privileges there.
>>
>> OK, no problem, become root with the root environment, fire up LC.  Asks
>> me
>> to register!
>>
>> Think, OK, maybe this is due to having the root environment, so just do
>> su.
>> Same thing.
>>
>> OK, maybe this is something to do with root or root privileges, so log
>> out,
>> log on as another account.  Same thing.
>>
>> This is weird.  The only point of installing in /opt as opposed to
>> /home/user would be to let all accounts have access to the app in a multi
>> account environment, but it seems in some way to be restricting use of the
>> app to just one account?  Cannot be, surely?
>>
>> I can always do it manually, download the package, delete the existing
>> plug
>> in, so that's not a problem.  The problem is if registration is
>> restricting
>> to just one account on a machine.  To be clear, no-one else uses Rev on my
>> machine, but for various reasons I do use multiple accounts on the same
>> machine myself and can't see why I should have to register not only by
>> machine, but by account.  Anyone else getting this?
>>
>> Peter
>
> Peter,
>
> I suppose that the solution I replied in the other thread will not
> working for multi-accounts.
> For a single user all seems working as expected. I have no problem
> with the LC license. I'm assuming the license is probably stored
> somewhere and linked to the account the application is opened.
>
>
> Regards,
> --
> -Zryip TheSlug- wish you the best! 8)
> http://www.aslugontheroad.co.cc
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: a weird thing about registration, Linux

2010-11-01 Thread Mike Bonner
Oh, another thought.  If it WILL keep seperate preferences/settings
for each user, you can change where it points for your plugins, and
move it to a folder you Do have write permissions to, but then that
means every plugin change you would hve to update the plugin on all
installations.  Since it sounds like its only you, could point it to a
dir that users have a right to, or setup a specific group for livecode
user accounts and set group permissions on that.  That way I believe
all accounts could update plugins.  Hmm. In fact, you could setup 1
account with write privelages to a director, and setup a group or
world with read permissions so that you have only 1 account that can
trash your plugins folder, but all other accounts can read them.



On 11/1/10, Mike Bonner  wrote:
> My guess would be that it puts a dot file in your user account on
> first run that manages prefs and registration info.  Since you don't
> run it as root, no .file, same for all other users.  Still leaves it
> as being a pain in the tookus to set it up as multiple users, but i'm
> curious... It's been a while, but isn't there a skeleton directory
> that holds default files to add when an account is created?  Did
> livecode add one there? If not, and you copy your file there it should
> solve the problem for new accounts, but unfortunately doesn't keep you
> from having to beat already created accounts into submission manually
> for now.
>
> On 11/1/10, Peter Alcibiades  wrote:
>> Has anyone else had this?
>>
>> I installed and registered my 4.5 copy.  Works fine.  Now, I want to
>> update
>> the Slug's package.  It won't let me, most likely because its installed
>> the
>> app in /opt and as user I have no write privileges there.
>>
>> OK, no problem, become root with the root environment, fire up LC.  Asks
>> me
>> to register!
>>
>> Think, OK, maybe this is due to having the root environment, so just do
>> su.
>> Same thing.
>>
>> OK, maybe this is something to do with root or root privileges, so log
>> out,
>> log on as another account.  Same thing.
>>
>> This is weird.  The only point of installing in /opt as opposed to
>> /home/user would be to let all accounts have access to the app in a multi
>> account environment, but it seems in some way to be restricting use of
>> the
>> app to just one account?  Cannot be, surely?
>>
>> I can always do it manually, download the package, delete the existing
>> plug
>> in, so that's not a problem.  The problem is if registration is
>> restricting
>> to just one account on a machine.  To be clear, no-one else uses Rev on
>> my
>> machine, but for various reasons I do use multiple accounts on the same
>> machine myself and can't see why I should have to register not only by
>> machine, but by account.  Anyone else getting this?
>>
>> Peter
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: a weird thing about registration, Linux

2010-11-01 Thread Mike Bonner
My guess would be that it puts a dot file in your user account on
first run that manages prefs and registration info.  Since you don't
run it as root, no .file, same for all other users.  Still leaves it
as being a pain in the tookus to set it up as multiple users, but i'm
curious... It's been a while, but isn't there a skeleton directory
that holds default files to add when an account is created?  Did
livecode add one there? If not, and you copy your file there it should
solve the problem for new accounts, but unfortunately doesn't keep you
from having to beat already created accounts into submission manually
for now.

On 11/1/10, Peter Alcibiades  wrote:
> Has anyone else had this?
>
> I installed and registered my 4.5 copy.  Works fine.  Now, I want to update
> the Slug's package.  It won't let me, most likely because its installed the
> app in /opt and as user I have no write privileges there.
>
> OK, no problem, become root with the root environment, fire up LC.  Asks me
> to register!
>
> Think, OK, maybe this is due to having the root environment, so just do su.
> Same thing.
>
> OK, maybe this is something to do with root or root privileges, so log out,
> log on as another account.  Same thing.
>
> This is weird.  The only point of installing in /opt as opposed to
> /home/user would be to let all accounts have access to the app in a multi
> account environment, but it seems in some way to be restricting use of the
> app to just one account?  Cannot be, surely?
>
> I can always do it manually, download the package, delete the existing plug
> in, so that's not a problem.  The problem is if registration is restricting
> to just one account on a machine.  To be clear, no-one else uses Rev on my
> machine, but for various reasons I do use multiple accounts on the same
> machine myself and can't see why I should have to register not only by
> machine, but by account.  Anyone else getting this?
>
> Peter
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Building array from list

2010-11-01 Thread Mike Bonner
Oh, might want to set the array to empty prior to the repeat so you
avoid duplicates if you run the conversion more than once.

On 11/1/10, Mike Bonner  wrote:
> Can also do it as follows:
>
>repeat for each line tLine in field 1
>   put the number of items in tdataA[(item 2 of tLine)] + 1 into
> tItemNum
>   put item 1 of tLine into item tItemNum of tDataA[(item 2 of tLine)]
>end repeat
>
> Can most likely combine the 2 lines of the repeat into a 1 liner, but
> this way works fine.
>
> On 11/1/10, Gregory Lypny  wrote:
>> Hello William,
>>
>> This will give you an array with four keys corresponding to [1] fruit,
>> [2]
>> dances, [3] colours, and [4] animals.
>>
>> repeat for each line thisLine in theList
>> put the first item of thisLine & comma after myArray[the second item of
>> thisLine]
>> end repeat
>>
>> The contents of each has a trailing comma, which can be removed by
>> following
>> with
>>
>> repeat for each key thisKey in myArray
>> if the last character of myArray[thisKey] is comma \
>> then delete the last character of myArray[thisKey]
>> end repeat
>>
>>
>> Regards,
>>
>> Gregory
>>
>>
>> On Mon, Nov 1, 2010, at 8:15 AM, use-revolution-requ...@lists.runrev.com
>> wrote:
>>
>>> I was wondering. If you have a list:
>>>
>>> apple,1
>>> orange,1
>>> grapefruit,1
>>> tango,2
>>> blue,3
>>> green,3
>>> yellow,3
>>> zebra,9
>>>
>>> And you want to convert it into an array:
>>>
>>> (apple,orange,grapefruit[1])
>>> (tango[2])
>>> (blue,green,yellow[3])
>>> (zebra,[9])
>>>
>>> What would be the easiest way. I'm always a little confused by arrays
>>> but
>>> it
>>> seems to me this should be a very simple and fast conversion. The array
>>> is
>>> intentionally a string "apple,orange,grapefruit" that results from key
>>> [1]
>>
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Building array from list

2010-11-01 Thread Mike Bonner
Can also do it as follows:

   repeat for each line tLine in field 1
  put the number of items in tdataA[(item 2 of tLine)] + 1 into tItemNum
  put item 1 of tLine into item tItemNum of tDataA[(item 2 of tLine)]
   end repeat

Can most likely combine the 2 lines of the repeat into a 1 liner, but
this way works fine.

On 11/1/10, Gregory Lypny  wrote:
> Hello William,
>
> This will give you an array with four keys corresponding to [1] fruit, [2]
> dances, [3] colours, and [4] animals.
>
> repeat for each line thisLine in theList
> put the first item of thisLine & comma after myArray[the second item of
> thisLine]
> end repeat
>
> The contents of each has a trailing comma, which can be removed by following
> with
>
> repeat for each key thisKey in myArray
> if the last character of myArray[thisKey] is comma \
> then delete the last character of myArray[thisKey]
> end repeat
>
>
> Regards,
>
> Gregory
>
>
> On Mon, Nov 1, 2010, at 8:15 AM, use-revolution-requ...@lists.runrev.com
> wrote:
>
>> I was wondering. If you have a list:
>>
>> apple,1
>> orange,1
>> grapefruit,1
>> tango,2
>> blue,3
>> green,3
>> yellow,3
>> zebra,9
>>
>> And you want to convert it into an array:
>>
>> (apple,orange,grapefruit[1])
>> (tango[2])
>> (blue,green,yellow[3])
>> (zebra,[9])
>>
>> What would be the easiest way. I'm always a little confused by arrays but
>> it
>> seems to me this should be a very simple and fast conversion. The array is
>> intentionally a string "apple,orange,grapefruit" that results from key [1]
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Escape key doesn't work with fullScreen?

2010-10-31 Thread Mike Bonner
I have that problem crop up quite often. My brother tells me its a
problem between the keyboard and chair.  I've never been quite sure
what he meant by that..

On 10/31/10, J. Landman Gay  wrote:
> On 10/31/10 3:03 PM, Richard Gaskin wrote:
>
>> This cognition bug is not fixable by RunRev, and has been marked as a
>> duplicate of several related reports. ;)
>
> LOL! You're talking about some of my reports, right? :)
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [OT] Browsing the internet... It is safer from Linux?

2010-10-31 Thread Mike Bonner
Microsoft security essentials is the target of another spoof alert
attack, though I'm sure you got the real microsoft security essentials
from the microsoft site, I've had to fix this one for a friend,
recently in fact.

http://www.bleepingcomputer.com/virus-removal/remove-fake-microsoft-security-essentials-alert

While most of the time, it's obvious that it's a scan, but not always.
What is it the IRA statement to Margaret Thatcher said?   (goes to
find it)

"Today we were unlucky, but remember we only have to be lucky once.
You will have to be lucky always."

I see Virii in the same light, minus the bombs, blood and death.
Heck, I see spoof emails in the same light too. Send out 12 million
and you don't have to get many bites to make it worthwhile.

On 10/31/10, roger.e.el...@sealedair.com  wrote:
> Richmond wrote:
>> The first thing I do when I install Mac OS X on a machine is enable the
>> ROOT account; that is dead easy;
>> especially as the Mac OS HELP system tells you how to do it. Set up the
>> FIREWALL, SHARING and so on.
>>
>> Windows, on the other hand, starts telling you to fork out extra moolah
>> for anti-virus stuff . . .
>
> Incorrect, to a degree.  It is in many cases the virus makers themselves
> who infect Windows, and then use FAKE anti-virus messages that offer to
> cleanse your machine "for a fee".  The average non-tech-savy user will pay
> the ransom.  However, the free-edition of AVG has protected my computers
> for years.  However, recently a Trojan slipped through, and I switched to
> "Microsoft Security Essentials" (also free), on the recommendations of
> several trusted colleagues.  It isn't Windows that is bad, it is
> SkyNet.   ;-)   Sorry, I'm watching the Sarah Conner Chronicals.
>
> ~Roger
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [OT] Browsing the internet... It is safer from Linux?

2010-10-30 Thread Mike Bonner
If you're only wanting to browse, and are not sure a particular site
can be trusted, you might try using a live linux cd and browse from
there.  Might not hurt to unmount your hard drive partition if you do
this just as an added layer of protection. Some live cd's auto mount
what they can find, some don't.

I run clamXav on my mac just because i was curious, but have never
found anything with it.

As far as downloading updates with linux, if you download something
with a trojan, and transfer it to your windows machine, you can still
get nailed unless your windows AV or malware scanner picks it up.  In
many cases it boils down to whether you believe the site you are
downloading from can be trusted or not.

I ran windows for a lot of years and didn't have too much trouble. Was
surely not trouble free by any means.  In some ways, I think its worse
now.  Cross session hijacking, clickjacking, browser exploits.  With
things moving closer and closer to being cloud based, I suspect things
are going to get really really ugly before they get better.  Just my
opinion though.



On 10/30/10, stephen barncard  wrote:
> Alejandro , When did you last hear about a Mac virus?
>
> I don't like to boast, but..
>
> I practice safe computing and a good router and don't use any anti-virus
> software at all on any of my 4 macs. Haven't had a virus problem since 2002.
> All running Leopard. Am I being foolish?
>
> I find the need for the annoying McCaffe software when I've used XP quite
> disgusting. If the OS is so bad you have to use a third party app to
> 'protect' yourself
>
> The symbiotic relationship between McCaffee and Microsoft is kinda creepy.
> There's even a button I did not install that goes to their website imbedded
> in IE 6.
>
> Downloads are almost always easy fast and safe on macs
>
>
> On 30 October 2010 14:25, Alejandro Tejada  wrote:
>
>> Hi All,
>>
>> Recently I have been considering seriously to unplug all
>> my Windows computers from the internet and
>> use only Linux to browse and download updates.
>>
>> In truth,
>> How safe is using Linux browsers in the internet?
>> Most exploits seems directed to Windows and Mac users
>> but are Linux users really exempt from these risks???
>>
>> What are your first hand experiences with the most common
>> security risks under the Linux platform?
>>
>> http://www.owasp.org/index.php/Main_Page
>>
>> http://e-articles.info/e/a/title/Which-Are-The-Most-Common-Network-Security-Risks/
>>
>> http://www.bangkokpost.com/tech/technews/34952/today-10-most-common-security-threats-on-the-net
>> http://www.brighthub.com/internet/security-privacy/articles/3438.aspx
>>
>> Thanks in advance!
>>
>> Alejandro
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
>
>
> --
>
>
>
> Stephen Barncard
> San Francisco Ca. USA
>
> more about sqb  
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: the siglum key ???

2010-10-30 Thread Mike Bonner
This might be useful, or discouraging.

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


Re: Rev as Linux Shell Script

2010-10-28 Thread Mike Bonner
Cool, thanks much.  Grabbed a stack to experiment with.

On Thu, Oct 28, 2010 at 6:28 PM, Alex Shaw  wrote:

> Hi Mike
>
> If you're using the 3.5 engine you can use liburl via the following:
>
> http://www.lacscentre.com/liburl/releases.html
>
>
> regards
> alex
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev as Linux Shell Script

2010-10-28 Thread Mike Bonner
Oh cool. May mess around with it some more just to see.  Thx!

On Thu, Oct 28, 2010 at 5:16 PM, Alex Tweedly  wrote:

>  Just a guess . libURL uses private handlers, and RevServer scripts
> can't have private functions in them.
>
> (The Docs say 'private' applies to desktop and server, but my simple test
> suggests otherwise
>
>  private function a p
> return p+p
> end a
> put a(4)
> ?>
>
> fails, remove the 'private' and it works.)
>
> There are only 2 instances of it in libURL, so try changing them and see if
> it helps 
> beware also of name clashes - e.g. the handler 'log' would cause a clash in
> most of my scripts :-)
>
> -- Alex.
>
> On 28/10/2010 23:28, Mike Bonner wrote:
>
>> Nope doesn't work, and I don't know enough to determine if it would be
>> worthwhile to beat it into submission or how to begin if it is worthwhile.
>> (tried it with the 4.5 script) Mostly was just wondering, revserver throws
>> errors  such as:
>>
>> 183,485,43,)
>> 482,746,1,private
>> EXECUTION ERROR:
>> 681,0,0,1
>>
>> I have no clue what they mean.
>>
>> On Thu, Oct 28, 2010 at 3:39 PM, J. Landman Gay> >wrote:
>>
>>  On 10/28/10 3:23 PM, Mike Bonner wrote:
>>>
>>>  I have a question regarding this, if one were to copy the script as you
>>>> explained, and instead of placing it in a stack could one paste it into
>>>> an
>>>> .irev file and use it as an include with revserver scripts?
>>>>
>>>>  Yes, I think so, but I'm not sure how much of libURL the irev engine
>>> supports. The original post was about using it in an old-style CGI, which
>>> doesn't support text file includes, but is basically the same engine as
>>> the
>>> one used for building standalones.
>>>
>>> If you try it, let us know if it works.
>>>
>>>
>>> --
>>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>>> HyperActive Software   | http://www.hyperactivesw.com
>>> ___
>>> use-revolution mailing list
>>> use-revolution@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>
>>>  ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev as Linux Shell Script

2010-10-28 Thread Mike Bonner
Nope doesn't work, and I don't know enough to determine if it would be
worthwhile to beat it into submission or how to begin if it is worthwhile.
(tried it with the 4.5 script) Mostly was just wondering, revserver throws
errors  such as:

183,485,43,)
482,746,1,private
EXECUTION ERROR:
681,0,0,1

I have no clue what they mean.

On Thu, Oct 28, 2010 at 3:39 PM, J. Landman Gay wrote:

> On 10/28/10 3:23 PM, Mike Bonner wrote:
>
>> I have a question regarding this, if one were to copy the script as you
>> explained, and instead of placing it in a stack could one paste it into an
>> .irev file and use it as an include with revserver scripts?
>>
>
> Yes, I think so, but I'm not sure how much of libURL the irev engine
> supports. The original post was about using it in an old-style CGI, which
> doesn't support text file includes, but is basically the same engine as the
> one used for building standalones.
>
> If you try it, let us know if it works.
>
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev as Linux Shell Script

2010-10-28 Thread Mike Bonner
I have a question regarding this, if one were to copy the script as you
explained, and instead of placing it in a stack could one paste it into an
.irev file and use it as an include with revserver scripts?

On Thu, Oct 28, 2010 at 2:03 PM, J. Landman Gay wrote:

> On 10/28/10 2:08 PM, Bill Andersen wrote:
>
>  I've used PHP to do 'shell utilities', I sure wish Rev could act
>> similar.  How nice would it be to just have one language/syntax for
>> the bulk of your code.
>>
>
> You can insert libURL (or any other script) into the message path so that
> commands to the library will work with your CGI script. It takes a little
> bit of set up.
>
> First, in the View menu in the IDE, choose to show "LiveCode UI Elements in
> lists". Then open the Application Browser and all the IDE stacks will
> appear. Scroll to the "revLibrary" stack in the left-hand list, expand it,
> click on its single card, and in the right side panel find the button
> "revLibURL'. Right-click to edit its script, then copy it.
>
> Paste the script into the stack script of a new mainstack (for this way of
> doing it, it has to be the stack script.) Save the stack as "revLibURL" or
> similar. Upload the stack to your CGI folder on the server and set its
> permissions to 755.
>
> In your CGI script, put this near the beginning after the "on startup"
> line:
>
>  start using stack "revLibURL"
>
> That will make the libURL script available to your CGI. After that you
> should be able to use libURL handlers as you do in the IDE. (In theory;
> haven't actually tried it. But that's how you create pseudo-includes.)
>
> The libURL library is updated frequently, so you'll have to repeat this
> process every time a new version of LiveCode is released if you want to stay
> current.
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: the siglum key ???

2010-10-28 Thread Mike Bonner
*slaps forehead*  I need to learn to read.

However, have you done something as simple as

on rawKeyDown theKey
put theKey
end rawKeyDown

to see what code is actually being sent?

If you aren't going for a specific key other than the one in the upper left
of the keyboard, and keyboards differ, I've no clue how one would go about
determining the keycode for that key position other than maybe asking the
user to push it once during setup to capture the code.

On Thu, Oct 28, 2010 at 1:43 PM, Richmond wrote:

> On 10/28/2010 10:22 PM, Mike Bonner wrote:
>
>> I put this in a button script:
>> on mouseUp
>>put any item of "random,Silly,Phrase" into field 1
>> end mouseUp
>>
>> And this in the cardscript:
>> on keydown theKey
>>if theKey is "`" then
>>   send "mouseup" to button 1
>>else
>>   pass KeyDown
>>end if
>> end keydown
>>
>> It works for me, so not sure whats up on your end.
>>
>
> What is "up on" my end is that I don't want to refer to "`" or siglum, but
> to
> rawKeyDown 0, as a very large number of my end-users use non-QWERTY
> keyboards,
> or, at least, non-QWERTY keyboard layouts.
>
>
>
>> On Thu, Oct 28, 2010 at 1:00 PM, Richmond> >wrote:
>>
>>  [Hope this subject line doesn't throw a 'bluey']
>>>
>>> If I have a button that contains something like this:
>>>
>>> on mouseUp
>>>   put "silly phrase" into fld "XXX"
>>> end mouseUp
>>>
>>> it works . . .
>>>
>>> Now if I set up a card script so that when I hit the 'Q' key on my
>>> keyboard
>>> a "mouseUp" is sent to my button, it works.
>>>
>>> HOWEVER
>>>
>>> If I set up a card script so that when I hit the SIGLUM key [Top-Left;
>>> next
>>> to '1']
>>> a "mouseUp" is sent to my button, I get a SIGLUM in my field,
>>> not "silly phrase".
>>>
>>> This is a bl**dy nuisance; any ideas WHY and HOW to circumvent this
>>> problem?
>>>
>>> sincerely, Richmond.
>>> ___
>>> use-revolution mailing list
>>> use-revolution@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>
>>>  ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: the siglum key ???

2010-10-28 Thread Mike Bonner
I put this in a button script:
on mouseUp
   put any item of "random,Silly,Phrase" into field 1
end mouseUp

And this in the cardscript:
on keydown theKey
   if theKey is "`" then
  send "mouseup" to button 1
   else
  pass KeyDown
   end if
end keydown

It works for me, so not sure whats up on your end.


On Thu, Oct 28, 2010 at 1:00 PM, Richmond wrote:

> [Hope this subject line doesn't throw a 'bluey']
>
> If I have a button that contains something like this:
>
> on mouseUp
>   put "silly phrase" into fld "XXX"
> end mouseUp
>
> it works . . .
>
> Now if I set up a card script so that when I hit the 'Q' key on my keyboard
> a "mouseUp" is sent to my button, it works.
>
> HOWEVER
>
> If I set up a card script so that when I hit the SIGLUM key [Top-Left; next
> to '1']
> a "mouseUp" is sent to my button, I get a SIGLUM in my field,
> not "silly phrase".
>
> This is a bl**dy nuisance; any ideas WHY and HOW to circumvent this
> problem?
>
> sincerely, Richmond.
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev as Linux Shell Script

2010-10-28 Thread Mike Bonner
Ah k. Yep was confused.  No libUrlFtp stuff doesn't work and even
libURLVersion throws an error.

I forget sometimes how much you can do with just the URL keyword.

On Thu, Oct 28, 2010 at 9:37 AM, Andre Garzia  wrote:

> >
> >
> > On the subject of revserver, Andre, you mentioned that liburl works with
> > that, but I have yet to get it to work in a revserver script.  Has there
> > been an updated release of revserver that works wiht liburl, or do I just
> > have something broken on my end or.. ?
> >
> >
> Mike,
>
> I think it can handle URL keyword. Things such as put url and get url work
> fine with RevServer. I don't know if things such as libURLFtpCommand work
> though, but simple url calls work...
>
>
>
> --
> http://www.andregarzia.com All We Do Is Code.
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev as Linux Shell Script

2010-10-28 Thread Mike Bonner
You can also leave off the -ui but then instead of a put you must write to
stdout. Worked last time I checked on 4.0, didn't test on 4.5 so don't know
if it will work there. Also, since you run without -ui you get a window
flash.

On the subject of revserver, Andre, you mentioned that liburl works with
that, but I have yet to get it to work in a revserver script.  Has there
been an updated release of revserver that works wiht liburl, or do I just
have something broken on my end or.. ?

Suggestions welcome, because i'd love to have liburl available.

On Thu, Oct 28, 2010 at 9:23 AM, Peter W A Wood wrote:

> Bill
>
> On 28 Oct 2010, at 22:39, Bill Andersen wrote:
>
> > I'm sorry this is so long winded.  I'm hoping it will help you understand
> my motivation...
> >
> > ... snip 
> >
> >
> > I've read how to get the runtime working as a CGI and played around
> enough that I 'can' (seemingly) make it work from a shell with the
> "#!revolution -ui" declaration on the first line.  However, when I get to
> some of the higher level features (FTP, ODBC, etc) I start getting errors.
>  I was researching how to possibly resolve these issues (need libraries,
> etc) when I found that Rev 3.5 is the last version to support the ability to
> run as a CGI.
>
>
> I also am keen to use LiveCode to write "shell" programs and believe that
> it is possible by adopting a slightly different approach. I believe that if
> you build a "standalone" of your script, you can run the 'standalone"
> program with the -ui argument.
>
> I performed a small test under Revolution 4.0. I created a new stack and
> added the following handler to the stack:
>
> on startup
>put "Hello Console"
>quit
> end startup
>
> I created a standalone and then ran the executable from a shell console
> using the -ui option :
>
> Rodney:MacOS peter$ ./CLTest -ui
> Hello Console
> Rodney:MacOS peter$
>
> It's not much of a test but it did work. I would expect the technique to
> work just as well under Linux.
>
> It would be even better if there was an option to build a GUI-less program
> when building a standalone in LiveCode though.
>
> Regards
>
> Peter
>
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: LiveCode applications accepted in iOS App Store

2010-10-27 Thread Mike Bonner
that was baaad

On Wed, Oct 27, 2010 at 12:56 PM, Colin Holgate  wrote:

>
> On Oct 27, 2010, at 2:39 PM, Bob Sneidar wrote:
>
> > This is an evil app. And it has cost me a lot of money besides. I wore a
> hole in my iPhone screen herding sheep!! LOL! j/k
>
>
> I think that outcome is previously unherd of.
>
>
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Keyboards

2010-10-22 Thread Mike Bonner
I had a kensington that I liked but it didn't survive the beating. Had an
apple wireless (2006) that didn't work all that well, but I was the second
owner so not only did it have to survive me, no telling what the previous
owner did to it.  Despite all its issues, i'm back on a G-15, the first
model made.  Keycaps are worn off, it's noisy, big, heavy, the lit up keys
are a bit obnoxious, however it still works, is easy to type on, does have
the longer keystroke that I like, and it's primary selling point is.. It
still works!

On Fri, Oct 22, 2010 at 2:11 PM, Mike Kerner wrote:

> Well if you can type you shouldn't be looking at the keys anyway...
>
> On Fri, Oct 22, 2010 at 15:37, J. Landman Gay  >wrote:
>
> > On 10/22/10 1:00 PM, Bob Sneidar wrote:
> >
> >> I should also mention that I have never seen anyone wear the letters off
> >> the Apple keyboards. At least not the external ones. I have on other
> >> keyboards. Again, don't go cheap and you should be fine with anything.
> >>
> >
> > I did. My old one is half bald. The "S" went first, followed eventually
> by
> > most of the keys of the left side. I later found out this was a problem
> with
> > certain Apple keyboards produced in 2008. One guy went through 3 of them
> in
> > 18 months.
> >
> > --
> > Jacqueline Landman Gay | jac...@hyperactivesw.com
> > HyperActive Software   | http://www.hyperactivesw.com
> >
> > ___
> > use-revolution mailing list
> > use-revolution@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
>
>
>
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>   and did a little diving.
> And God said, "This is good."
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: revServer installation issues

2010-10-21 Thread Mike Bonner
Glad it worked.  Looking forward to the explanation.

On Thu, Oct 21, 2010 at 8:02 PM, Phil Davis  wrote:

> Thanks Andre! This is a crazy problem. I just made the changes you
> recommend and added the .htaccess back into the mix, but no joy! I'm
> guessing I made a change to my httpd.conf at some point without commenting
> it and that's what is keeping your solution from working here. I'll see if I
> can track it down and post an explanation.
>
> However I am not without a solution: Mike sent me a copy of his httpd.conf,
> I replaced mine with it and *BAM* my .irev pages are now working!
>
> I am truly amazed at (and grateful for) the level of support provided by
> you guys, Andre and Mike, and so many other people on this list. It's an
> honor to be here!
>
> Phil
>
>
> On 10/21/10 2:26 PM, Andre Garzia wrote:
>
>> Folks,
>>
>> This is FIXED!!
>>
>> Damn
>>
>>
>> Phil, check out your http.conf for AllowOverride None. By default this
>> comes
>> set for the documents folder and for the cgi-bin folder.
>>
>> You need to change it to "AllowOverride All" and then you can place your
>> .htaccess files and they will work.
>>
>> Just did it here.
>>
>> Andre
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>>
> --
> Phil Davis
>
> PDS Labs
> Professional Software Development
> http://pdslabs.net
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: revServer installation issues

2010-10-21 Thread Mike Bonner
>From your description, it sounds like the new directives aren't getting
loaded at all.

If you run:

/usr/sbin/httpd -V |grep -i server_config_file

does it show the correct config file is at -D
SERVER_CONFIG_FILE="/private/etc/apache2/httpd.conf"?

And you're using the server document root not your Sites directory.

Oh, and have you checked to make sure revserver is executable? This should
NOT be the problem, if it were your browser should get an internal server
error response, but doesn't hurt to confirm.

Also noticed you added the line:
   ScriptAlias /cgi-bin/revserver
/Library/WebServer/CGI-Executables/revserver  ##  PD 20101020 added
I don't believe this is required as long as revserver is at the toplevel
inside the CGI-Executables folder.
The existing:
ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$)
"/Library/WebServer/CGI-Executables/$1"
should handle it.

I chose to put the data, extensions, and handlers folders in /opt/revserver
as per one of the options in the readme.txt but i'm sure the other 2 methods
would work just fine.

On Thu, Oct 21, 2010 at 12:23 AM, Andre Garzia wrote:

> On Thu, Oct 21, 2010 at 3:49 AM, Phil Davis  wrote:
>
> > I managed to replicate your problem here on my mac os x, am trying to
> solve
> >> it.
> >>
> >
> > Wow. Thanks Andre! That's huge!
> >
>
> I am good at breaking things, specially my computers!
>
>
> >
> > Phil
>
>
>
>
> --
> http://www.andregarzia.com All We Do Is Code.
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: revServer installation issues

2010-10-20 Thread Mike Bonner
out of curiosity, are you changing the files in /etc/httpd or /etc/apache2
if in httpd, try apache2 (if you're pretty sure you're setting them up
right) or if trying apache2 try httpd
Assuming both folders exist.

And did you turn in ExecCGI in the options for whatever directory you're
setting up?

Pretty much just the 3 things
and add ExecCGI to the options line

Options Your Options Here plus ExecCGI
AddHandler rev-script .irev
Action /cgi-bin/revserver
All within ablock.

On Wed, Oct 20, 2010 at 5:19 PM, Phil Davis  wrote:

> Hey folks -
>
> I'm trying to figure out where I'm going wrong as I try to get revServer
> going on my Mac Mini. I have followed all the advice (I think) in the great
> emails from Devin Asay and Mike Bonner from July 20 and I see my test.irev
> page being served but without the  stuff being preprocessed - in
> fact the HTML isn't rendered as HTML either; it all comes into my browser
> window as text.
>
> Any clues?
>
> Yes, I'm restarting apache after making each carefully-commented-so-I
> can-back-out change to httpd.conf. My apache logs don't show anything
> unusual.
>
> My outcomes don't seem any different whether the revserver filess are owned
> by nobody:wheel or phil:admin.
>
> Thanks for any ideas.
> --
> Phil Davis
>
> PDS Labs
> Professional Software Development
> http://pdslabs.net
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: on-rev remote database

2010-10-19 Thread Mike Bonner
Glad it was there. Never sure if there will be complete parity across server
boundaries!

On Tue, Oct 19, 2010 at 3:28 PM, stephen barncard <
stephenrevoluti...@barncard.com> wrote:

> wow. I was wrong. thanks
>
>
> s
> On 19 October 2010 13:24, Mike Bonner  wrote:
>
> > Look on cPanel under databases section, theres a link for remote mysql.
> > This is on Odin.
> >
> > On Tue, Oct 19, 2010 at 2:09 PM, stephen barncard <
> > stephenrevoluti...@barncard.com> wrote:
> >
> > > It's not available in cpanel now. I looked. I thought it was in the
> USERS
> > > and / or MySQL area a while ago.
> > >
> > > On 19 October 2010 12:22, Mike Bonner  wrote:
> > >
> > > > Pretty sure you can, check the tool in cpanel, I believe I read in
> > there
> > > > that % is allowable.
> > > >
> > > Stephen Barncard
> > > San Francisco Ca. USA
> > >
> > > more about sqb  <http://www.google.com/profiles/sbarncar>
> > > ___
> > > use-revolution mailing list
> > > use-revolution@lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-revolution
> > >
> > ___
> > use-revolution mailing list
> > use-revolution@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
>
>
>
> --
>
>
>
> Stephen Barncard
> San Francisco Ca. USA
>
> more about sqb  <http://www.google.com/profiles/sbarncar>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: on-rev remote database

2010-10-19 Thread Mike Bonner
Look on cPanel under databases section, theres a link for remote mysql.
This is on Odin.

On Tue, Oct 19, 2010 at 2:09 PM, stephen barncard <
stephenrevoluti...@barncard.com> wrote:

> It's not available in cpanel now. I looked. I thought it was in the USERS
> and / or MySQL area a while ago.
>
> On 19 October 2010 12:22, Mike Bonner  wrote:
>
> > Pretty sure you can, check the tool in cpanel, I believe I read in there
> > that % is allowable.
> >
> Stephen Barncard
> San Francisco Ca. USA
>
> more about sqb  <http://www.google.com/profiles/sbarncar>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: on-rev remote database

2010-10-19 Thread Mike Bonner
Pretty sure you can, check the tool in cpanel, I believe I read in there
that % is allowable.

On Tue, Oct 19, 2010 at 1:17 PM, Andrew Kluthe  wrote:

>
> I know they are unlimited, but I need remote access for all ip's. Can you
> wildcard for all domains and IP's with on-rev and mySQL?
> --
> View this message in context:
> http://runtime-revolution.278305.n4.nabble.com/on-rev-remote-database-tp2998969p3002656.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: dragData["files"] question

2010-10-17 Thread Mike Bonner
Does this have to do the the can't get and set the same property in a
handler issue? I'm thinking its not possible to modify the dragdata during
the operation.  I experimented with a weird send in time thing and managed
to output the right stuff but it would only do so after a click somewhere in
the window.  Tried a few different things none of which worked
satisfactorily.

If it were me i'd sidestep the whole issue and just use a separate home
rolled container to store tFilePaths, whether it be a property or whatever.

On Sun, Oct 17, 2010 at 12:34 PM, FlexibleLearning <
ad...@flexiblelearning.com> wrote:

> Hi Klaus,
>
> Duh! Getting tired, or old, or both!
>
> But even correcting the read-only as you point out, setting the
> dragData["files"] fails to update the array.
>
> Will continue to ponder, but it appears not to be settable.
>
> Hugh Senior
> FLCo
>
>
>
> Klaus wrote:
> Hi Hugh,
>
> > Is it my syntax, or is it simply not possible to modify the
> > dragData["files"] during a file drag operation?
> >
> > If I drag a .png file and a .rev file, I would expect the .rev filepath
> to
> > have been removed, but it isn't...
> >
> > on dragEnter
> >  put the dragData["files"] into tFilePaths
> >  set the itemDel to "."
> >  repeat for each line L in tFilePaths
> >if (last item of L is NOT among the items of "GIF.JPG.JPEG.PNG")
> >then delete line lineOffset(CR&L&CR,CR&tFilePaths&CR) of tFilePaths
> >  end repeat
> >  set the dragData["files"] to tFilePaths
> >  put the dragData["files"] --> Value does not get updated!
> > end dragEnter
> >
> > So what am I missing?
>
> repeat for each is read only, but you try to change tFilePaths on the fly
> :-)
>
> Do this:
>
> on dragEnter
>  put the dragData["files"] into tFilePaths
>  set the itemDel to "."
>  repeat for each line L in tFilePaths
>   if (last item of L is among the items of "GIF.JPG.JPEG.PNG") then
>put l & CR after tFilePaths2
>  end if
>  end repeat
>  delete char  -1 of tFilePaths2
>  set the dragData["files"] to tFilePaths2
>  put the dragData["files"] --> Value does not get updated!
> end dragEnter
>
> > Hugh Senior
> > FLCo
>
> Best
>
> Klaus
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: RevBrowser - setting the title in a custom browser

2010-10-14 Thread Mike Bonner
If you find a solution for this let me know, i'm interested.

Take care.

On Thu, Oct 14, 2010 at 2:56 PM, Terry Judd  wrote:

> Thanks Mike - I completely forgot to check the revBrowserGet properties!
> Ideally there'd be a way of querying this while the download was in progress
> given that the HTML usually loads pretty quickly.
>
> Regards,
>
> Terry...
>
> On 15/10/2010, at 5:52 AM, "Mike Bonner"  wrote:
>
> > One thing that might help is that you don't need to parse the htmltext
> for
> > the title, its already a property.
> >
> > revbrowserget(pinstanceid,"title")
> >
> > So something simple like this in the card script works ok.
> > on browserdocumentcomplete pInstanceId, pUrl
> >   put revBrowserGet(pInstanceId,"title") into WhereverYouWantIt
> > end browserDocumentComplete
> >
> > I did notice the lag you spoke of when going to pages with heavy graphics
> > and the like but am not sure there's really a way around it. I don't
> believe
> > the htmltext or title properties are set until the document load is
> > complete, but I could be wrong and often am!
> >
> >
> >
> >
> > On Tue, Oct 12, 2010 at 10:54 PM, Terry Judd  wrote:
> >
> >> I want to set a title field in a custom browser object I¹ve created but
> I¹m
> >> having a few problems. I can set it by querying  and parsing the
> browser¹s
> >> htmltext  in a browserDocumentComplete handler but this waits until the
> >> entire document has loaded (images and all), which means that it often
> lags
> >> WELL behind what is displayed in the browser. I¹ve also tried using a
> >> browserNavigateComplete handler (I use this to set the url field)
> coupled
> >> with a send in time message to a handler that gets the htmltext but it
> >> seems
> >> (at least on OSX) that the browser prevents this message from firing
> until
> >> the user moves the mouse out of the browser object.
> >>
> >> Surely someone has dealt with this issue already. Any ideas?
> >>
> >> Terry...
> >>
> >> --
> >> Dr Terry Judd | Senior Lecturer in Medical Education
> >> Medical Education Unit
> >> Melbourne Medical School
> >> The University of Melbourne
> >>
> >>
> >> ___
> >> use-revolution mailing list
> >> use-revolution@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-revolution
> >>
> > ___
> > use-revolution mailing list
> > use-revolution@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: RevBrowser - setting the title in a custom browser

2010-10-14 Thread Mike Bonner
One thing that might help is that you don't need to parse the htmltext for
the title, its already a property.

revbrowserget(pinstanceid,"title")

So something simple like this in the card script works ok.
on browserdocumentcomplete pInstanceId, pUrl
   put revBrowserGet(pInstanceId,"title") into WhereverYouWantIt
end browserDocumentComplete

I did notice the lag you spoke of when going to pages with heavy graphics
and the like but am not sure there's really a way around it. I don't believe
the htmltext or title properties are set until the document load is
complete, but I could be wrong and often am!




On Tue, Oct 12, 2010 at 10:54 PM, Terry Judd  wrote:

> I want to set a title field in a custom browser object I¹ve created but I¹m
> having a few problems. I can set it by querying  and parsing the browser¹s
> htmltext  in a browserDocumentComplete handler but this waits until the
> entire document has loaded (images and all), which means that it often lags
> WELL behind what is displayed in the browser. I¹ve also tried using a
> browserNavigateComplete handler (I use this to set the url field) coupled
> with a send in time message to a handler that gets the htmltext but it
> seems
> (at least on OSX) that the browser prevents this message from firing until
> the user moves the mouse out of the browser object.
>
> Surely someone has dealt with this issue already. Any ideas?
>
> Terry...
>
> --
> Dr Terry Judd | Senior Lecturer in Medical Education
> Medical Education Unit
> Melbourne Medical School
> The University of Melbourne
>
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Unable to open file using shell or process

2010-10-14 Thread Mike Bonner
Glad it worked for you!
Since it's all in the same folder you can most likely simplify it by setting
the default folder before opening the process.

you can do it like

on mouseup
-- the following changes the default folder so that you start in the
location
-- that contains your php script and the file you want to work on.
-- Should avoid the need for an explicit path.
-- as long as both are in the same folder you should be good to go.
-- if they were in different places you might have to provide the full path
to 1 or the other.
set the defaultfolder to "/home/Bill/Desktop/report"

-- much simplified promysql, no long pathing involved
put "nr.php -f tt.conf"into promysql
open process promysql for update
read from process promysql for 500
put it into fld tout
write "quit" to process promysql
close process promysql
end mouseup
On Thu, Oct 14, 2010 at 12:13 PM, Glen Bojsza  wrote:

> Hi Mike,
>
> That did it !
>
> Many thanks.
>
> Glen
>
> On Thu, Oct 14, 2010 at 12:04 PM, Mike Bonner  wrote:
>
> > Did changing your code to the following work?
> >
> > on mouseUp
> > put "/home/Bill/Desktop/report/nr.php -f
> /home/Bill/Desktop/report/tt.conf"
> > into promysql
> >  open process promysql for update
> >  read from process promysql for 500
> >  put it into fld tout
> >  write "quit" to process promysql
> >  close process promysql
> > end mouseUp
> >
> >
> > On Thu, Oct 14, 2010 at 11:48 AM, Glen Bojsza  wrote:
> >
> > > Yes, the nr.php file is in the same directory as the tt.conf file. I
> have
> > > also confirmed the path and files by do a process with ls -l
> > > /home/Bill/Desktop/reporter and it show the files.
> > >
> > >
> > >
> > > On Thu, Oct 14, 2010 at 11:08 AM, Mike Bonner 
> > wrote:
> > >
> > > > Is the tt.conf in the same folder with nr.php?
> > > >
> > > > try /home/Bill/Desktop/report/nr.php -f
> > /home/Bill/Desktop/report/tt.conf
> > > > if
> > > > it is, or simplify it by switching there first.
> > > >
> > > > "cd /home/Bill/Desktop/report ; ./nr.php -f tt.conf"
> > > >
> > > > On Thu, Oct 14, 2010 at 10:56 AM, Glen Bojsza 
> > wrote:
> > > >
> > > > > Hi Ken,
> > > > >
> > > > > It does not make a difference though thanks for pointing it out...
> I
> > > was
> > > > > also trying to add 2>&1 & after the tt.conf to see if that made a
> > > > > difference
> > > > > but it did not.
> > > > >
> > > > > Glen
> > > > >
> > > > > On Thu, Oct 14, 2010 at 10:47 AM, Ken Ray 
> > > wrote:
> > > > >
> > > > > > > on mouseUp
> > > > > > > put "/home/Bill/Desktop/report/nr.php -f tt.conf " into
> promysql
> > > > > > >open process promysql for update
> > > > > > >read from process promysql for 500
> > > > > > >put it into fld tout
> > > > > > >write "quit" to process promysql
> > > > > > >close process promysql
> > > > > > > end mouseUp
> > > > > > >
> > > > > > > Error: Unable to open tt.conf
> > > > > >
> > > > > > Glen,
> > > > > >
> > > > > > Not that it should make a difference, but it appears there's a
> > space
> > > > > after
> > > > > > your command. I haven't used 'open process' to run a php script,
> so
> > I
> > > > may
> > > > > > just be shooting blanks here, but just thought I'd pass that
> along.
> > > > > >
> > > > > > Ken Ray
> > > > > > Sons of Thunder Software, Inc.
> > > > > > Email: k...@sonsothunder.com
> > > > > > Web Site: http://www.sonsothunder.com/
> > > > > >
> > > > > >
> > > > > > ___
> > > > > > use-revolution mailing list
> > > > > > use-revolution@lists.runrev.com
> > > > > > Please visit this url to subscribe, unsubscribe and manage your
> > > > > > subscription preferences:
> > > > > > http://lists.runrev.com/mailman/listinfo/use-revolution
> > > > > >
> > > &g

Re: Unable to open file using shell or process

2010-10-14 Thread Mike Bonner
Did changing your code to the following work?

on mouseUp
put "/home/Bill/Desktop/report/nr.php -f /home/Bill/Desktop/report/tt.conf"
into promysql
  open process promysql for update
  read from process promysql for 500
  put it into fld tout
  write "quit" to process promysql
  close process promysql
end mouseUp


On Thu, Oct 14, 2010 at 11:48 AM, Glen Bojsza  wrote:

> Yes, the nr.php file is in the same directory as the tt.conf file. I have
> also confirmed the path and files by do a process with ls -l
> /home/Bill/Desktop/reporter and it show the files.
>
>
>
> On Thu, Oct 14, 2010 at 11:08 AM, Mike Bonner  wrote:
>
> > Is the tt.conf in the same folder with nr.php?
> >
> > try /home/Bill/Desktop/report/nr.php -f /home/Bill/Desktop/report/tt.conf
> > if
> > it is, or simplify it by switching there first.
> >
> > "cd /home/Bill/Desktop/report ; ./nr.php -f tt.conf"
> >
> > On Thu, Oct 14, 2010 at 10:56 AM, Glen Bojsza  wrote:
> >
> > > Hi Ken,
> > >
> > > It does not make a difference though thanks for pointing it out... I
> was
> > > also trying to add 2>&1 & after the tt.conf to see if that made a
> > > difference
> > > but it did not.
> > >
> > > Glen
> > >
> > > On Thu, Oct 14, 2010 at 10:47 AM, Ken Ray 
> wrote:
> > >
> > > > > on mouseUp
> > > > > put "/home/Bill/Desktop/report/nr.php -f tt.conf " into promysql
> > > > >open process promysql for update
> > > > >read from process promysql for 500
> > > > >put it into fld tout
> > > > >write "quit" to process promysql
> > > > >close process promysql
> > > > > end mouseUp
> > > > >
> > > > > Error: Unable to open tt.conf
> > > >
> > > > Glen,
> > > >
> > > > Not that it should make a difference, but it appears there's a space
> > > after
> > > > your command. I haven't used 'open process' to run a php script, so I
> > may
> > > > just be shooting blanks here, but just thought I'd pass that along.
> > > >
> > > > Ken Ray
> > > > Sons of Thunder Software, Inc.
> > > > Email: k...@sonsothunder.com
> > > > Web Site: http://www.sonsothunder.com/
> > > >
> > > >
> > > > ___
> > > > use-revolution mailing list
> > > > use-revolution@lists.runrev.com
> > > > Please visit this url to subscribe, unsubscribe and manage your
> > > > subscription preferences:
> > > > http://lists.runrev.com/mailman/listinfo/use-revolution
> > > >
> > > ___
> > > use-revolution mailing list
> > > use-revolution@lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-revolution
> > >
> > ___
> > use-revolution mailing list
> > use-revolution@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Unable to open file using shell or process

2010-10-14 Thread Mike Bonner
What i'm getting at is the default folder most likely isn't what you
expect.

If you open a process /bin/pwd, my guess is that the result will NOT be
where the tt.conf file is, hence the need to point at it explicitly.

On Thu, Oct 14, 2010 at 11:09 AM, Mike Bonner  wrote:

> oh duh, not a shell.  So can't do the cd first so do my first suggestion
> and point to the exact path of the tt.conf
>
>
> On Thu, Oct 14, 2010 at 11:08 AM, Mike Bonner  wrote:
>
>> Is the tt.conf in the same folder with nr.php?
>>
>> try /home/Bill/Desktop/report/nr.php -f /home/Bill/Desktop/report/tt.conf
>> if it is, or simplify it by switching there first.
>>
>> "cd /home/Bill/Desktop/report ; ./nr.php -f tt.conf"
>>
>>
>> On Thu, Oct 14, 2010 at 10:56 AM, Glen Bojsza  wrote:
>>
>>> Hi Ken,
>>>
>>> It does not make a difference though thanks for pointing it out... I was
>>> also trying to add 2>&1 & after the tt.conf to see if that made a
>>> difference
>>> but it did not.
>>>
>>> Glen
>>>
>>> On Thu, Oct 14, 2010 at 10:47 AM, Ken Ray  wrote:
>>>
>>> > > on mouseUp
>>> > > put "/home/Bill/Desktop/report/nr.php -f tt.conf " into promysql
>>> > >open process promysql for update
>>> > >read from process promysql for 500
>>> > >put it into fld tout
>>> > >write "quit" to process promysql
>>> > >close process promysql
>>> > > end mouseUp
>>> > >
>>> > > Error: Unable to open tt.conf
>>> >
>>> > Glen,
>>> >
>>> > Not that it should make a difference, but it appears there's a space
>>> after
>>> > your command. I haven't used 'open process' to run a php script, so I
>>> may
>>> > just be shooting blanks here, but just thought I'd pass that along.
>>> >
>>> > Ken Ray
>>> > Sons of Thunder Software, Inc.
>>> > Email: k...@sonsothunder.com
>>> > Web Site: http://www.sonsothunder.com/
>>> >
>>> >
>>> > ___
>>> > use-revolution mailing list
>>> > use-revolution@lists.runrev.com
>>> > Please visit this url to subscribe, unsubscribe and manage your
>>> > subscription preferences:
>>> > http://lists.runrev.com/mailman/listinfo/use-revolution
>>> >
>>> ___
>>> use-revolution mailing list
>>> use-revolution@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>
>>
>>
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Unable to open file using shell or process

2010-10-14 Thread Mike Bonner
oh duh, not a shell.  So can't do the cd first so do my first suggestion and
point to the exact path of the tt.conf

On Thu, Oct 14, 2010 at 11:08 AM, Mike Bonner  wrote:

> Is the tt.conf in the same folder with nr.php?
>
> try /home/Bill/Desktop/report/nr.php -f /home/Bill/Desktop/report/tt.conf
> if it is, or simplify it by switching there first.
>
> "cd /home/Bill/Desktop/report ; ./nr.php -f tt.conf"
>
>
> On Thu, Oct 14, 2010 at 10:56 AM, Glen Bojsza  wrote:
>
>> Hi Ken,
>>
>> It does not make a difference though thanks for pointing it out... I was
>> also trying to add 2>&1 & after the tt.conf to see if that made a
>> difference
>> but it did not.
>>
>> Glen
>>
>> On Thu, Oct 14, 2010 at 10:47 AM, Ken Ray  wrote:
>>
>> > > on mouseUp
>> > > put "/home/Bill/Desktop/report/nr.php -f tt.conf " into promysql
>> > >open process promysql for update
>> > >read from process promysql for 500
>> > >put it into fld tout
>> > >write "quit" to process promysql
>> > >close process promysql
>> > > end mouseUp
>> > >
>> > > Error: Unable to open tt.conf
>> >
>> > Glen,
>> >
>> > Not that it should make a difference, but it appears there's a space
>> after
>> > your command. I haven't used 'open process' to run a php script, so I
>> may
>> > just be shooting blanks here, but just thought I'd pass that along.
>> >
>> > Ken Ray
>> > Sons of Thunder Software, Inc.
>> > Email: k...@sonsothunder.com
>> > Web Site: http://www.sonsothunder.com/
>> >
>> >
>> > ___
>> > use-revolution mailing list
>> > use-revolution@lists.runrev.com
>> > Please visit this url to subscribe, unsubscribe and manage your
>> > subscription preferences:
>> > http://lists.runrev.com/mailman/listinfo/use-revolution
>> >
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Unable to open file using shell or process

2010-10-14 Thread Mike Bonner
Is the tt.conf in the same folder with nr.php?

try /home/Bill/Desktop/report/nr.php -f /home/Bill/Desktop/report/tt.conf if
it is, or simplify it by switching there first.

"cd /home/Bill/Desktop/report ; ./nr.php -f tt.conf"

On Thu, Oct 14, 2010 at 10:56 AM, Glen Bojsza  wrote:

> Hi Ken,
>
> It does not make a difference though thanks for pointing it out... I was
> also trying to add 2>&1 & after the tt.conf to see if that made a
> difference
> but it did not.
>
> Glen
>
> On Thu, Oct 14, 2010 at 10:47 AM, Ken Ray  wrote:
>
> > > on mouseUp
> > > put "/home/Bill/Desktop/report/nr.php -f tt.conf " into promysql
> > >open process promysql for update
> > >read from process promysql for 500
> > >put it into fld tout
> > >write "quit" to process promysql
> > >close process promysql
> > > end mouseUp
> > >
> > > Error: Unable to open tt.conf
> >
> > Glen,
> >
> > Not that it should make a difference, but it appears there's a space
> after
> > your command. I haven't used 'open process' to run a php script, so I may
> > just be shooting blanks here, but just thought I'd pass that along.
> >
> > Ken Ray
> > Sons of Thunder Software, Inc.
> > Email: k...@sonsothunder.com
> > Web Site: http://www.sonsothunder.com/
> >
> >
> > ___
> > use-revolution mailing list
> > use-revolution@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: shell command to identify wireless printer

2010-10-12 Thread Mike Bonner
Ignore any duplicates that show up, forgot to clean up last message and its
being held for moderator approval, so don't know if they'll magically appear
or not. This email is easier to read anyway. I'm actually awake now!

Try this:
   get shell("cd /usr/sbin;system_profiler SPNetworkDataType |grep -i
signature")
   set the itemdel to "="
   put the last item of it into yourplacetostoreit

It grabs the hardware signature of the router and splits out the last item
which is the routers mac address. Should be a more reliable method of
tagging what network you're on. SSID may not be unique since so many people
never change the default.

This should work for wired or wireless.

I don't know how likely it is you'll have more than one valid connection at
a time, if its a possibility for you, might consider testing it to see if it
contains more than one line.

Also running virtual machines could throw this off I guess, but it shouldn't
be too bad to get a handle on things.

If nothing else, don't split off the mac address and use the entire result
as your matching text.  If there IS more than 1 valid result, and you do use
the entire thing as your match text, also might consider a sort since I
can't test if system_profiler always lists in the exact same order.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [OT] 42-day

2010-10-12 Thread Mike Bonner
Alas, I never have and never will reach 42.  I've been the same age as jack
benny for the last 5 years. (39 and holding)

On Tue, Oct 12, 2010 at 6:40 AM, Peter Brigham MD  wrote:

> put min(myAge,42) into myAge
>
> -- Peter
>
> Peter M. Brigham
> pmb...@gmail.com
> http://home.comcast.net/~pmbrig 
>
>
> On Oct 11, 2010, at 2:37 PM, Bob Sneidar wrote:
>
>  OH MY GOSH! I am 42 today! And have been for some years now! ;-)
>>
>> Bob
>>
>>
>> On Oct 10, 2010, at 2:16 AM, Mark Schonewille wrote:
>>
>>  Hi,
>>>
>>> Today is 42-day.
>>>
>>> put baseconvert("42",10,2)
>>>
>>> gives 101010, which is today's date. I believe this is a good occasion to
>>> post a link to an anecode that Colin wrote the the HyperCard list a few
>>> years ago: http://qurl.tk/io
>>>
>>> Also, as recommended by Stephen Fry on Twitter, you might want to do a
>>> few activities that involve 42. Some ideas can be found on this site
>>> http://www.fortytwoday.com/
>>>
>>> Happy 42-day :-)
>>>
>>> --
>>> Best regards,
>>>
>>> Mark Schonewille
>>>
>>> Economy-x-Talk Consulting and Software Engineering
>>> Homepage: http://economy-x-talk.com
>>> Twitter: http://twitter.com/xtalkprogrammer
>>> KvK: 50277553
>>>
>>> Download the Installer Maker plugin for Runtime Revolution at
>>> http://qurl.tk/ce Create installers for Mac and Windows on *every*
>>> Rev-compatible platform. No additional software needed.
>>>
>>> ___
>>> use-revolution mailing list
>>> use-revolution@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>
>>
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: shell command to identify wireless printer

2010-10-12 Thread Mike Bonner
-I is for information, just a command line switch, as you say, no part of
the filename.  airport -I (cap I)  make sure the space is there.
If you want to see the other switches, switch to that directory in terminal
manually run the command with the -h switch.
./airport -h
and it will show a short help listing. (can also do ./airport --help with
the double dash before help)
What error are you getting, and can you make it work from terminal?

Hmm, interesting. On my macbook it works great, fine, wonderful (snow
leopard). On my mac pro (leopard) I get an error when trying to use the -I
switch.

airport(7424) malloc: *** error for object 0x1053a0: double free
*** set a breakpoint in malloc_error_break to debug

Is that the error you get?  The main differences in my 2 machines is the OS,
leopard versus snow, and my mac pro is a wired connect no wireless hooked up
at all at the moment.

I'll see if I can find an alternate (reliable) way to get the current SSID.


On Tue, Oct 12, 2010 at 5:45 AM, Peter Brigham MD  wrote:

> I can probably get this to work, since my handler already relies on asking
> the user once for the USB printer identification then storing it so the user
> never has to be asked again. If I can identify the wireless network I can
> associate a printer with it, store that printername, and then proceed.
>
> However, I don't understand much at all about command-line stuff. I ran
> put
> shell("/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport-I")
> and I get an error. What command should I use to operate on this filepath?
> And what's the "-I" at the end? It's not part of the filename.
>
>
> -- Peter
>
> Peter M. Brigham
> pmb...@gmail.com
> http://home.comcast.net/~pmbrig <http://home.comcast.net/%7Epmbrig>
>
>
> On Oct 9, 2010, at 12:24 AM, Mike Bonner wrote:
>
>  Can you come at it from a different direction?  Can you check current SSID
>> against a printer list to select which printer you want? Assuming you
>> always
>> go to the same set of networks, this should have a similar affect yes?
>>  Set
>> it up once, save the printer name, next time you need to print check the
>> current ssid and select the appropriate printer name.
>>
>> YOu can get the current ssid with the following command line.
>>
>>
>> /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport
>> -I
>>
>> MOre info than you need, but easy to parse.
>>
>> On Fri, Oct 8, 2010 at 9:51 PM, Peter Brigham MD 
>> wrote:
>>
>>  The printername gives the name of the printer currently selected in the
>>> print dialog, ie, the default printer. On my MacBook, this will be the
>>> last
>>> printer used. But that will not necessarily be the name of the currently
>>> connected printer, if I have changed venues. I'm trying to find a way to
>>> discover the name of the printer that is currently connected to the Mac.
>>> I
>>> can do this with a rather complex handler I cobbled together if the the
>>> printer is plugged in via USB, but I'm struggling to find a way of
>>> getting
>>> the name of a printer that is currently connected wirelessly over an
>>> Airport
>>> router. It turns out that neither lpstat nor lpq seem to do this.
>>>
>>> Any further ideas? Anyone?
>>>
>>> -- Peter
>>>
>>> Peter M. Brigham
>>> pmb...@gmail.com
>>> http://home.comcast.net/~pmbrig <http://home.comcast.net/%7Epmbrig> <
>>> http://home.comcast.net/%7Epmbrig>
>>>
>>>
>>>
>>>
>>> On Oct 8, 2010, at 5:00 PM, J. Landman Gay wrote:
>>>
>>> On 10/8/10 12:30 PM, Peter Brigham MD wrote:
>>>
>>>>
>>>>  The availablePrinters shows the list of printers you have named and
>>>>> have
>>>>> drivers for -- it's what appears in the print dialog list, from which
>>>>> you choose the printer you want to use. I want to know automatically
>>>>> which printer my laptop is connected to at the moment so I can bypass
>>>>> the print dialog entirely and send all printing to that printer.
>>>>>
>>>>>
>>>> Isn't that "the printername"?
>>>>
>>>> --
>>>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>>>> HyperActive Software   | http://www.hyperactivesw.com
>>>> ___
>>>> use-revolution mailing list
>>>> use-

Re: shell command to identify wireless printer

2010-10-08 Thread Mike Bonner
Can you come at it from a different direction?  Can you check current SSID
against a printer list to select which printer you want? Assuming you always
go to the same set of networks, this should have a similar affect yes?  Set
it up once, save the printer name, next time you need to print check the
current ssid and select the appropriate printer name.

YOu can get the current ssid with the following command line.

/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport
-I

MOre info than you need, but easy to parse.

On Fri, Oct 8, 2010 at 9:51 PM, Peter Brigham MD  wrote:

> The printername gives the name of the printer currently selected in the
> print dialog, ie, the default printer. On my MacBook, this will be the last
> printer used. But that will not necessarily be the name of the currently
> connected printer, if I have changed venues. I'm trying to find a way to
> discover the name of the printer that is currently connected to the Mac. I
> can do this with a rather complex handler I cobbled together if the the
> printer is plugged in via USB, but I'm struggling to find a way of getting
> the name of a printer that is currently connected wirelessly over an Airport
> router. It turns out that neither lpstat nor lpq seem to do this.
>
> Any further ideas? Anyone?
>
> -- Peter
>
> Peter M. Brigham
> pmb...@gmail.com
> http://home.comcast.net/~pmbrig 
>
>
>
> On Oct 8, 2010, at 5:00 PM, J. Landman Gay wrote:
>
>  On 10/8/10 12:30 PM, Peter Brigham MD wrote:
>>
>>> The availablePrinters shows the list of printers you have named and have
>>> drivers for -- it's what appears in the print dialog list, from which
>>> you choose the printer you want to use. I want to know automatically
>>> which printer my laptop is connected to at the moment so I can bypass
>>> the print dialog entirely and send all printing to that printer.
>>>
>>
>> Isn't that "the printername"?
>>
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software   | http://www.hyperactivesw.com
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: MatchText

2010-10-08 Thread Mike Bonner
A period matches any single char, an asterisk will match any number of
consecutive chars of the previous char.  IE, p* will match   Since .
will match anything (with a couple exceptions), .* will match any
combination of digits/chars whatever.  To match text chars only you use sets
like so [a-zA-Z]* which will match any upper or lower case char and as many
more upper or lower case chars that follows in a row.

This page is a really good place to get a grip on the easier regex
http://www.regular-expressions.info/quickstart.html


On Fri, Oct 8, 2010 at 11:50 AM, Warren Kuhl  wrote:

> What is the syntax of the matchtext command to search a variable for
> multiple characters (".", "!" or "?").  If it contains any characters in my
> list, it returns a TRUE?
>
> I am able to get it working with one value...
>
> answer MatchText(tValue,"(\.)")
>
> Thanks for any help!
> Warren
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: shell command to identify wireless printer

2010-10-07 Thread Mike Bonner
lpq should do what you want.  Will show all print queues and their status
for example, my wireless printer returns

_3500_4500_Series_ is ready
no entries

no entries of course meaning that there are no queued documents. I didn't
try shutting my printer down to see if the status would change though, so
your mileage may vary.

On Thu, Oct 7, 2010 at 4:12 PM, Peter Brigham MD  wrote:

> I'm looking for the shell command that would include in its output
> something that would identify a printer that is currently wirelessly
> connected to my MacBook. I can use shell("ioreg") to get info on a printer
> connected via USB (after some parsing), but my wireless printer connection
> doesn't show up in the ioreg listing. What command can I use to see how the
> system identifies a wireless printer? I need to be able to confirm before
> printing from a stack that the wireless connection to the printer is up and
> running.
>
> If it matters, the wireless connection is not a Bonjour connection -- it's
> a PC wireless network. I can print fine using the printer, so the connection
> is good, and functional.
>
> -- Peter
>
> Peter M. Brigham
> pmb...@gmail.com
> http://home.comcast.net/~pmbrig 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: RevBrowser bug

2010-10-06 Thread Mike Bonner
Done.

I've fought with this before. Its a real pain in the butt. Did things like
setup the browser stack as a float on top stack that was docked with the
stack behind.  Then I could do stuff with the back stack and have the front
respond. Never did work very well.

Ended up doing as you suggested, using the resizer from the library, dumped
the stock decorations etc, and since it was a video player window that I
wished to be able to go in and out of fullscreen while playing a streaming
vid in the browser, I ended up having a 2nd stack that existed for the sole
purpose of going into and out of fullscreen behind the browser window to
obscure the menu bar and dock. libKiosk worked pretty good for this too.

Hoping when/if the externals go public that problems like this will poof and
go away.

On Wed, Oct 6, 2010 at 6:37 AM, Klaus on-rev  wrote:

> Hi Mike,
>
> > This happens because the revbrowser instance is linked to a specific
> > windowid and certain things change that id. As you mentioned changing the
> > resizable, going fullscreen, and if I recall correctly, changing the
> window
> > decorations all change the windowid.  Haven't tried it but changing
> window
> > mode will probably do this also.
> >
> > This is something that I too hope will be changed/fixed? Though i'm not
> sure
> > if it should be a bug report or a feature request.
>
> whatever, I marked it as "Blocker"
>
> A workaround ist to make the stack NOT resizable and use the "Mac Style
> Stack Resizer"
> from the object lib or make your own :-)
>
> > Where is your report, i'll vote for it.
>
> Ah, sorry, here it is:
> 
>
>
> Best
>
> Klaus
>
> --
> Klaus Major
> http://www.major-k.de
> kl...@major.on-rev.com
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: RevBrowser bug

2010-10-06 Thread Mike Bonner
This happens because the revbrowser instance is linked to a specific
windowid and certain things change that id. As you mentioned changing the
resizable, going fullscreen, and if I recall correctly, changing the window
decorations all change the windowid.  Haven't tried it but changing window
mode will probably do this also.

This is something that I too hope will be changed/fixed? Though i'm not sure
if it should be a bug report or a feature request.

Where is your report, i'll vote for it.

On Wed, Oct 6, 2010 at 5:20 AM, Klaus on-rev  wrote:

> Hi all,
>
> > Hi all,
> >
> > I just filed a bug report for a nasty bug I found today and wanted to let
> you know.
> >
> > When you toggle "the resizable" of a stack with an active browser, the
> content
> > of the browser will disappear in data nirvana :-/
> >
> > Try it yourself:
> > Open an URL in any browser and toggle the resizable of that stack with a
> button
> > or the message box, big fun :-/
> >
> > You will need to close the browser and open a new instance to make it
> work again.
>
> the same happens when you "set the fullscreen of stack xyz to true"
>
>
> Best
>
> Klaus
>
> --
> Klaus Major
> http://www.major-k.de
> kl...@major.on-rev.com
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Image Library Disappeared in LiveCode

2010-10-05 Thread Mike Bonner
I just did a test run in livecode and created an image library, then
searched for it from the terminal.  It was created in

./Documents/My LiveCode/Resources/Icon Libraries/revLibmyTestLib.rev

When I first looked the Resources tree wasn't there. After I created an
image library, the tree was created and the library was placed there. Either
re-create the tree then move your libraries, or create a quicky one so it
does it for you then move em all over.

Alternatively, do as Mark suggested and just change your preferences to
point to the old location.


On Tue, Oct 5, 2010 at 11:07 AM, Peter Haworth wrote:

> Prowled around a bit more and found where the icons were stored in Rev 4.0
> (I'm running on OSX).  They are in the Documents/My Revolution
> Studio/Resources/Icon Libraries folder.  Each set of icons I imported is in
> a rev stack named "revlib" followed by the name of the icon library.  I'm
> hoping I can just move those stacks to somewhere in the new LiveCode
> hierarchy to have them show up.  Any ideas?
>
> Pete Haworth
>
> On Oct 5, 2010, at 9:22 AM, use-revolution-requ...@lists.runrev.com wrote:
>
>  Message: 5
>> Date: Mon, 04 Oct 2010 19:49:17 -0500
>> From: "J. Landman Gay" 
>> Subject: Re: Image Library Disappeared in LiveCode
>> To: How to use Revolution 
>> Message-ID: <4caa760d.1040...@hyperactivesw.com>
>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>
>> On 10/4/10 7:05 PM, Peter Haworth wrote:
>>
>>> I had imported 3 or 4 image libraries into Revolution 4.0.  They don't
>>> show up in LiveCode 4.5. I don't have the external sources of the image
>>> files on my computer - any ideas on how I can get them back?
>>>
>>
>> Do they show up in the application browser?
>>
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software   | http://www.hyperactivesw.com
>>
>>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Sort question

2010-10-03 Thread Mike Bonner
Changing the first suggestion

set the itemDel to slash
sort lines of myList by item 2 of (word 2 of each) and item 1 of (word 2 of
each)

to

set the itemDel to slash
sort lines of myList by item 2 of (word 2 of each) *&&* item 1 of (word 2 of
each)

works for this also as long as the data is always 2 digit format. Barring
that, just doing 2 consecutive numeric sorts on the appropriate key will
work.
Can you use the && version and specify sort type individually for each
part?
IE: sort blah blah by item 1 && item 2, 1 numeric, the other alphabetic?

On Sun, Oct 3, 2010 at 8:32 AM, Ben Rubinstein  wrote:

> This is really the same as Mark suggested, but should work even if the
> numbers aren't zero padded:
>
> function sortByMonthAndDay tText
>   set the itemDelimiter to "/"
>   sort lines of tText ascending numeric by item 1 of (word 2 of each)
>   sort lines of tText ascending numeric by item 2 of (word 2 of each)
>   return tText
> end mouseUp
>
> (I think Mark probably meant "&" instead of "and")
>
> Ben
>
>
> On 03/10/2010 15:14, Yves COPPE wrote:
>
>>
>> Le 03-oct.-10 à 16:04, Mark Schonewille a écrit :
>>
>>  Hi Yves,
>>>
>>> What about this:
>>>
>>> set the itemDel to slash
>>> sort lines of myList by item 2 of (word 2 of each) and item 1 of (word 2
>>> of
>>> each)
>>>
>>>
>>>
>>
>> Re,
>>
>> No, I don't receive the right answer
>>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Storing an Array as a Custom Property

2010-10-01 Thread Mike Bonner
You can put multidimensional arrays into properties, at least as of what..
3.5? If I recall correctly, the only real issue with this is that you have
to pull the whole thing back out as a unit to work with it.  I'm not
positive, but I don't think it arrayencodes and decodes when you get and
set. bit not sure.  When looking at a property that is an array in the
inspector it says this:
*
The value of this custom property is an array and can only be edited in the
Property inspector if it is first converted into a string. Doing this will
empty the array. If you are sure you want to do this, double click on this
field*

On Fri, Oct 1, 2010 at 11:21 AM, Phil Davis  wrote:

>  On 10/1/10 9:04 AM, Gregory Lypny wrote:
>
>> Hi everyone,
>>
>> Page 236 of the LiveCode user guide says that arrays cannot be stored as
>> single custom properties.  Can anyone confirm this please?  The reason I ask
>> is that I thought that I had read in a past Rev newsletter that it was now
>> possible, but I may be mistaken.
>>
>> I'm developing an app in LiveCode and have been saving uni-dimensional
>> arrays as single customs props without apparent problems; however, it may be
>> another story with multi-dimensional arrays.
>>
>
> For multi-dimensional arrays you need arrayEncode() and arrayDecode():
>
> put "ice cream" into aMyFoods["favorites"]["desserts"]["cold"]
> set the uMyFoods of stack "dataContainer" to arrayEncode(aMyFoods)
>
>  Regards,
>>
>> Gregory
>>
>
> --
> Phil Davis
>
> PDS Labs
> Professional Software Development
> http://pdslabs.net
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: send vs dispatch and continuously running processes

2010-09-30 Thread Mike Bonner
If you DO use a repeat loop, the 'wait  with messages' is pretty much
obligatory right? So you can setup an exit strategy and so that pending
messages (such as sends and dispatches) will still be processed, right?

On Thu, Sep 30, 2010 at 8:11 AM,  wrote:

> I don't really know what you intend, but you probably do not want to lock
> yourself into a repeat loop. As others have suggested, "send in time with
> messages" is very effective, and then call that again:
>
> on myMessage
>
>   doYourStuff
>
>   send myMessage to me in 1 miilisecond with messages
>
> end myMessage
>
> Or someSuch.
>
> Craig Newman
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: send vs dispatch and continuously running processes

2010-09-30 Thread Mike Bonner
If you're doing something like a repeat forever loop, somewhere in the loop
you should have a wait with messages command so the script has breathing
room to execute other things.
IE:
wait 10 milliseconds with messages

As for getting web urls, have you looked at the load command?

it will load a page into cache in the background, and you can designate a
callback to handle it when the load is done.  Since this is a looping
forever thing you'll need to make sure you unload the url after you process
the results so that you always get a fresh result, and so that you don't
fill your memory to the brim and bring your system to a standstill.

On Thu, Sep 30, 2010 at 7:27 AM, Kee Nethery  wrote:

> Just want to confirm I understand these commands.
>
> I tend to write applications that run continuously. They loop over and over
> doing the same tasks and pretty much never get to a point to where they halt
> waiting for user input. Thus for me the current script never finishes
> executing.
>
> The "send blah in X minutes" command appears to only execute once the
> current script has completed, which in my case is never. So I assume I
> should never use the "in X minutes" form and only ever use send as an
> immediate command such that the current script halts and waits for it to
> complete. Correct?
>
> Dispatch looks to me like send except it makes it easier to include
> parameters and does not include the delay, which I cannot use anyway.
> Correct?
>
> I was hoping that I could use Send or Dispatch to fire off a bunch of get
> URL commands and then circle back to gather their results, a form of threads
> or multi-tasking but from what I can see in the 4.5 docs, that is not how
> those functions work. Is there a way in LiveCode to spawn a bunch of
> processes to run in parallel and then to process their results as they get
> returned?
>
> I'm assuming the answers are: Yes, Yes, No. Just want to make sure I
> understand them.
>
> Kee Nethery___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: SelectedChunk

2010-09-27 Thread Mike Bonner
Nevermind. *sigh* Number of words prior to selection or insertion point is
  put the number of words of (char 1 to (word 2 of the selectedchunk) of
field 1)

Rev is far more amazing than I can make it be.  So is Livecode!

On Mon, Sep 27, 2010 at 11:50 AM, Mike Bonner  wrote:

> Ok thats cool.
> So if its NOT just an insertion point then
> the number of words of char 1 to (word 2 of the selectedchunk) of field
> "yourfield"
> will give the number of words preceeding the selection?
>
> So this whole thing could boil down to
>
> on mouseUp
>if word 4 of the selectedchunk < word 2 of the selectedchunk then
>   put the number of words of (char 1 to (word 4 of the selectedchunk)
> of field 1)
>else
>   put the number of words of (char 1 to (word 2 of the selectedchunk)
> of field 1)
>end if
> end mouseUp
>
> I knew I was making my solution WAY too difficult. Thanks for this.
>
> On Mon, Sep 27, 2010 at 11:39 AM, Peter Brigham MD wrote:
>
>> The selectedChunk gives the segment of text selected, in the form
>>
>>  char  to  of field 
>>
>> If the selection is empty (insertion point only), the result is something
>> like "char 5 to 4 of field 9" -- in this case to get the number of the word
>> containing the insertion point, use:
>>
>>  the number of words of char 1 to (word 4 of the selectedchunk) of field 9
>>
>> If a run of text is selected then the above will get the number of the
>> word containing the end of the selection.
>>
>> -- Peter
>>
>> Peter M. Brigham
>> pmb...@gmail.com
>> http://home.comcast.net/~pmbrig <http://home.comcast.net/%7Epmbrig>
>>
>>
>>
>>
>> On Sep 27, 2010, at 9:17 AM, Warren Kuhl wrote:
>>
>>  Is there an easy way to retrieve the word # of a field based on the
>>> SelectedChunk?  The SelectedChunk contains the start/end position of a
>>> word
>>> of a field.  Just am trying to determine which word without to much
>>> coding...if possible.
>>>
>>> Thanks for any help!
>>> Warren
>>> ___
>>> use-revolution mailing list
>>> use-revolution@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>
>>
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: SelectedChunk

2010-09-27 Thread Mike Bonner
Ok thats cool.
So if its NOT just an insertion point then
the number of words of char 1 to (word 2 of the selectedchunk) of field
"yourfield"
will give the number of words preceeding the selection?

So this whole thing could boil down to

on mouseUp
   if word 4 of the selectedchunk < word 2 of the selectedchunk then
  put the number of words of (char 1 to (word 4 of the selectedchunk) of
field 1)
   else
  put the number of words of (char 1 to (word 2 of the selectedchunk) of
field 1)
   end if
end mouseUp

I knew I was making my solution WAY too difficult. Thanks for this.

On Mon, Sep 27, 2010 at 11:39 AM, Peter Brigham MD  wrote:

> The selectedChunk gives the segment of text selected, in the form
>
>  char  to  of field 
>
> If the selection is empty (insertion point only), the result is something
> like "char 5 to 4 of field 9" -- in this case to get the number of the word
> containing the insertion point, use:
>
>  the number of words of char 1 to (word 4 of the selectedchunk) of field 9
>
> If a run of text is selected then the above will get the number of the word
> containing the end of the selection.
>
> -- Peter
>
> Peter M. Brigham
> pmb...@gmail.com
> http://home.comcast.net/~pmbrig 
>
>
>
>
> On Sep 27, 2010, at 9:17 AM, Warren Kuhl wrote:
>
>  Is there an easy way to retrieve the word # of a field based on the
>> SelectedChunk?  The SelectedChunk contains the start/end position of a
>> word
>> of a field.  Just am trying to determine which word without to much
>> coding...if possible.
>>
>> Thanks for any help!
>> Warren
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: SelectedChunk

2010-09-27 Thread Mike Bonner
http://forums.runrev.com/phpBB2/viewtopic.php?f=7&t=3199

Not the post I was thinking of, but some really useful stuff in that forum
thread about whole word selections.

On Mon, Sep 27, 2010 at 9:05 AM, Warren Kuhl  wrote:

> Mike,
>
> Thank you very much.  You have been most helpful!
>
> All the best!
> Warren
>
> On Mon, Sep 27, 2010 at 10:03 AM, Mike Bonner  wrote:
>
> > Would have to program it, and now that i'm more awake, not sure you need
> to
> > go through all the convoluted stuff I did.
> >
> > This is probably closer to what you can end up with.
> > on mouseUp
> >   put word 2 of the selectedchunk into tChar
> >   put char 1 to tChar of field 1 into tTmp
> >   put the number of words in tTmp
> > end mouseUp
> >
> > This will work with the exception that if your selection includes a space
> > at
> > the left the wordcount will be off by 1, so you'd have to test and decide
> > how you want it to behave in that situation.  Will also have to test for
> a
> > simple insertion point rather than a selection also and adjust
> accordingly.
> >
> >
> > To force full word selections, I believe one of the Marks posted
> something
> > a
> > not too long ago that would do this... The gist of the script (If I
> recall
> > correctly) was that when a selection is made, you check for word
> boundaries
> > to the right and left and adjust the selection accordingly.
> > Once you have your char positions you can set the selection.
> >
> > select char 5 to 12 of field "yourfield"
> >
> > I haven't actually tried the forced selection part.
> >
> > G'luck with all this. If I can locate the script I'm trying to remember,
> > i'll post a link.
> >
> >
> >
> > On Mon, Sep 27, 2010 at 8:40 AM, Warren Kuhl 
> wrote:
> >
> > > Mike,
> > >
> > > Thank you very much for this.  I really appreciate it.  Looks exactly
> > like
> > > what I was looking for.
> > >
> > > You mentioned forcing only whole words.  Is this a command?  Or
> something
> > I
> > > would need to program?
> > >
> > > Thanks again!
> > > Warren
> > >
> > >
> > >
> > >
> > > On Mon, Sep 27, 2010 at 9:21 AM, Mike Bonner 
> wrote:
> > >
> > > > I'm positive this can be shortened, but as is should do what you
> want.
> > It
> > > > could be simplified greatly of course if you are forcing only whole
> > word
> > > > selections, but this will account for partial word selects, and also
> > just
> > > > an
> > > > insertion point.
> > > > *
> > > > on mouseUp
> > > >   -- Determine if there is actually a selection of more than 1 char
> > > >   if word 2 of the selectedchunk - word 4 of the selectedchunk < 0
> then
> > > >  put word 2 of the selectedchunk into tChar
> > > >   else
> > > >  put word 4 of the selectedchunk into tChar
> > > >   end if
> > > >
> > > >   -- Determine if the selection is already on a word boundary.
> > > >   --if so determine which word the break is at.
> > > >   if char tChar of field 1 is space then
> > > >  put true into tCharMatch
> > > >  put char 1 to tChar of field 1 into tTmp
> > > >  put"Word: " & the number of words  in tTmp + 1 into tWord
> > > >   end if
> > > >
> > > >   -- if a match hasn't been found yet, and we're not at the field
> start
> > > >   -- nudge 1 char left and check for word break. Repeat until top of
> > > field
> > > > or match
> > > >   repeat while tChar > 1 and tCharMatch is empty
> > > >  subtract 1 from tChar
> > > >  if char tChar of field 1 is space then
> > > > put true into tCharMatch
> > > > put char 1 to tChar of field 1 into tTmp
> > > > put "Word: " & the number of words in tTmp + 1 into tWord
> > > >  else if tChar = 0 then
> > > > --if we reach the start of the field, must be the first word
> > > > put "Word: 1" into tWord
> > > >  end if
> > > >   end repeat
> > > >
> > > >  answer information tWord
> > > > end mouseUp*
> > > >
> &g

Re: SelectedChunk

2010-09-27 Thread Mike Bonner
Would have to program it, and now that i'm more awake, not sure you need to
go through all the convoluted stuff I did.

This is probably closer to what you can end up with.
on mouseUp
   put word 2 of the selectedchunk into tChar
   put char 1 to tChar of field 1 into tTmp
   put the number of words in tTmp
end mouseUp

This will work with the exception that if your selection includes a space at
the left the wordcount will be off by 1, so you'd have to test and decide
how you want it to behave in that situation.  Will also have to test for a
simple insertion point rather than a selection also and adjust accordingly.


To force full word selections, I believe one of the Marks posted something a
not too long ago that would do this... The gist of the script (If I recall
correctly) was that when a selection is made, you check for word boundaries
to the right and left and adjust the selection accordingly.
Once you have your char positions you can set the selection.

select char 5 to 12 of field "yourfield"

I haven't actually tried the forced selection part.

G'luck with all this. If I can locate the script I'm trying to remember,
i'll post a link.



On Mon, Sep 27, 2010 at 8:40 AM, Warren Kuhl  wrote:

> Mike,
>
> Thank you very much for this.  I really appreciate it.  Looks exactly like
> what I was looking for.
>
> You mentioned forcing only whole words.  Is this a command?  Or something I
> would need to program?
>
> Thanks again!
> Warren
>
>
>
>
> On Mon, Sep 27, 2010 at 9:21 AM, Mike Bonner  wrote:
>
> > I'm positive this can be shortened, but as is should do what you want. It
> > could be simplified greatly of course if you are forcing only whole word
> > selections, but this will account for partial word selects, and also just
> > an
> > insertion point.
> > *
> > on mouseUp
> >   -- Determine if there is actually a selection of more than 1 char
> >   if word 2 of the selectedchunk - word 4 of the selectedchunk < 0 then
> >  put word 2 of the selectedchunk into tChar
> >   else
> >  put word 4 of the selectedchunk into tChar
> >   end if
> >
> >   -- Determine if the selection is already on a word boundary.
> >   --if so determine which word the break is at.
> >   if char tChar of field 1 is space then
> >  put true into tCharMatch
> >  put char 1 to tChar of field 1 into tTmp
> >  put"Word: " & the number of words  in tTmp + 1 into tWord
> >   end if
> >
> >   -- if a match hasn't been found yet, and we're not at the field start
> >   -- nudge 1 char left and check for word break. Repeat until top of
> field
> > or match
> >   repeat while tChar > 1 and tCharMatch is empty
> >  subtract 1 from tChar
> >  if char tChar of field 1 is space then
> > put true into tCharMatch
> > put char 1 to tChar of field 1 into tTmp
> > put "Word: " & the number of words in tTmp + 1 into tWord
> >  else if tChar = 0 then
> > --if we reach the start of the field, must be the first word
> > put "Word: 1" into tWord
> >  end if
> >   end repeat
> >
> >  answer information tWord
> > end mouseUp*
> >
> > On Mon, Sep 27, 2010 at 7:17 AM, Warren Kuhl 
> wrote:
> >
> > > Is there an easy way to retrieve the word # of a field based on the
> > > SelectedChunk?  The SelectedChunk contains the start/end position of a
> > word
> > > of a field.  Just am trying to determine which word without to much
> > > coding...if possible.
> > >
> > > Thanks for any help!
> > > Warren
> > > ___
> > > use-revolution mailing list
> > > use-revolution@lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-revolution
> > >
> > ___
> > use-revolution mailing list
> > use-revolution@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: SelectedChunk

2010-09-27 Thread Mike Bonner
I'm positive this can be shortened, but as is should do what you want. It
could be simplified greatly of course if you are forcing only whole word
selections, but this will account for partial word selects, and also just an
insertion point.
*
on mouseUp
   -- Determine if there is actually a selection of more than 1 char
   if word 2 of the selectedchunk - word 4 of the selectedchunk < 0 then
  put word 2 of the selectedchunk into tChar
   else
  put word 4 of the selectedchunk into tChar
   end if

   -- Determine if the selection is already on a word boundary.
   --if so determine which word the break is at.
   if char tChar of field 1 is space then
  put true into tCharMatch
  put char 1 to tChar of field 1 into tTmp
  put"Word: " & the number of words  in tTmp + 1 into tWord
   end if

   -- if a match hasn't been found yet, and we're not at the field start
   -- nudge 1 char left and check for word break. Repeat until top of field
or match
   repeat while tChar > 1 and tCharMatch is empty
  subtract 1 from tChar
  if char tChar of field 1 is space then
 put true into tCharMatch
 put char 1 to tChar of field 1 into tTmp
 put "Word: " & the number of words in tTmp + 1 into tWord
  else if tChar = 0 then
 --if we reach the start of the field, must be the first word
 put "Word: 1" into tWord
  end if
   end repeat

 answer information tWord
end mouseUp*

On Mon, Sep 27, 2010 at 7:17 AM, Warren Kuhl  wrote:

> Is there an easy way to retrieve the word # of a field based on the
> SelectedChunk?  The SelectedChunk contains the start/end position of a word
> of a field.  Just am trying to determine which word without to much
> coding...if possible.
>
> Thanks for any help!
> Warren
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Scripts that are already running

2010-09-24 Thread Mike Bonner
Oh, external process.  If its on osx, possible to do an appleevent check?
Like one of these in rev.
send "whatyouwanttocheck" to program "programname"

On Fri, Sep 24, 2010 at 11:33 AM, Mike Bonner  wrote:

> Isn't this what your'e asking..
>
> Put the following script in button 1
> local tRunning
> on mouseUp
>if tRunning is empty then put false into tRunning
>put not tRunning into tRunning
>set the label of me to "Running: " & tRunning
>put 1 into tCount
>repeat while tRunning
>
>   wait 1 millisecond with messages
>   set the myProp of me to tCount
>   put (tCount + 1) wrap 100 into tCount
>end repeat
> end mouseUp
>
> And this following script in button 2
> local tRunning
> on mouseUp
>if tRunning is empty then put false into tRunning
>put not tRunning into tRunning
>set the label of me to "Scanning: " & tRunning
>send checkState to me in 1 millisecond
> end mouseUp
>
> command checkstate
>if tRunning then
>   if the myProp of button 1 > 50 then
>  set the enabled of button 1 to false
>   else
>  set the enabled of button 1 to true
>   end if
>   send "checkState" to me in 1 millisecond
>
>end if
> end checkstate
>
> Click button 1 to start it looping.
> Click button 2 to start it scanning.
> Button 2 will toggle the state of button 1 based on the current value of
> myProp with a send in time. Will it work if button 2 is a repeat loop also?
> Not sure
>
>
> On Fri, Sep 24, 2010 at 11:15 AM,  wrote:
>
>> Jacques, et al.
>>
>> The "wait with messages", which I know about, is compact and cool. But
>> that
>> code needs to reside within the running handler. As do, in their own way,
>> all the other comments from everyone. For example, BonnMike notes you can
>> read the state of a property while a handler is running. Certainly you
>> can, but
>> only from within the handler.
>>
>> I was asking if any state of the machine can be accessed from outside a
>> running handler. I read from all the responses, as I thought, that it
>> cannot.
>>
>> Say a variable is gettinig incremented in a repeat loop. Its state changes
>> as the loop progresses. Can this state be returned to the engine from some
>> externally running process, one that would be able to monitor handler
>> variables on the fly. It would require, essentially, that the handler be
>> interrupted continuously. I don't think this is part of the xTalk world. I
>> am not sure
>> about other procedural languages.
>>
>> This all came about because someone wanted a single universal watchdog on
>> his stack. He had several handlers in several places, all of which could
>> create a condition he wanted to act upon. So the "send in time" handler
>> fit that
>> bill. If he created yet another such handler somewhere, it would be
>> covered. But it occurred to be that if the condition was met and the
>> handler still
>> had much to do and might take a long time to do it, then the condition
>> could
>> not be dealt with until that handler ends. It seemed intriguing to think
>> that something could monitor, say, the state of variables, from outside
>> the
>> handler while it was running.
>>
>> Anyone think this is a useful, perhaps monumental, feature?
>>
>> Craig
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Scripts that are already running

2010-09-24 Thread Mike Bonner
Isn't this what your'e asking..

Put the following script in button 1
local tRunning
on mouseUp
   if tRunning is empty then put false into tRunning
   put not tRunning into tRunning
   set the label of me to "Running: " & tRunning
   put 1 into tCount
   repeat while tRunning
  wait 1 millisecond with messages
  set the myProp of me to tCount
  put (tCount + 1) wrap 100 into tCount
   end repeat
end mouseUp

And this following script in button 2
local tRunning
on mouseUp
   if tRunning is empty then put false into tRunning
   put not tRunning into tRunning
   set the label of me to "Scanning: " & tRunning
   send checkState to me in 1 millisecond
end mouseUp

command checkstate
   if tRunning then
  if the myProp of button 1 > 50 then
 set the enabled of button 1 to false
  else
 set the enabled of button 1 to true
  end if
  send "checkState" to me in 1 millisecond

   end if
end checkstate

Click button 1 to start it looping.
Click button 2 to start it scanning.
Button 2 will toggle the state of button 1 based on the current value of
myProp with a send in time. Will it work if button 2 is a repeat loop also?
Not sure

On Fri, Sep 24, 2010 at 11:15 AM,  wrote:

> Jacques, et al.
>
> The "wait with messages", which I know about, is compact and cool. But that
> code needs to reside within the running handler. As do, in their own way,
> all the other comments from everyone. For example, BonnMike notes you can
> read the state of a property while a handler is running. Certainly you can,
> but
> only from within the handler.
>
> I was asking if any state of the machine can be accessed from outside a
> running handler. I read from all the responses, as I thought, that it
> cannot.
>
> Say a variable is gettinig incremented in a repeat loop. Its state changes
> as the loop progresses. Can this state be returned to the engine from some
> externally running process, one that would be able to monitor handler
> variables on the fly. It would require, essentially, that the handler be
> interrupted continuously. I don't think this is part of the xTalk world. I
> am not sure
> about other procedural languages.
>
> This all came about because someone wanted a single universal watchdog on
> his stack. He had several handlers in several places, all of which could
> create a condition he wanted to act upon. So the "send in time" handler fit
> that
> bill. If he created yet another such handler somewhere, it would be
> covered. But it occurred to be that if the condition was met and the
> handler still
> had much to do and might take a long time to do it, then the condition
> could
> not be dealt with until that handler ends. It seemed intriguing to think
> that something could monitor, say, the state of variables, from outside the
> handler while it was running.
>
> Anyone think this is a useful, perhaps monumental, feature?
>
> Craig
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Scripts that are already running

2010-09-24 Thread Mike Bonner
Nevermind, it works fine. Have no clue why I couldn't make it work the first
5 times I tried it.

On Fri, Sep 24, 2010 at 10:15 AM, Mike Bonner  wrote:

> Remind me, can you actually check a property of an object while a handler
> that sets the property is running? It works fine when setting a variable,
> but I can't make it work when repeatedly changing a property in a repeat
> loop.  (I suspect it would work if it was a send in time that set the
> property, correct?)
>
>
>
> On Fri, Sep 24, 2010 at 9:31 AM, J. Landman Gay 
> wrote:
>
>> On 9/24/10 8:36 AM, dunb...@aol.com wrote:
>>
>>  Is there a way to "interrupt", or rather, "interrogate", the repeat loop?
>>> I
>>> am not talking about checking the property within that running code.
>>>
>>
>> I think what you want is:
>>
>>  wait 1 millisecond with messages
>>
>> Put that into the repeat loop somewhere. It forces the engine to do all
>> the same cleanup and checking as it does on idle, and will catch any pending
>> messages that have happened.
>>
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software   | http://www.hyperactivesw.com
>>
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Scripts that are already running

2010-09-24 Thread Mike Bonner
Remind me, can you actually check a property of an object while a handler
that sets the property is running? It works fine when setting a variable,
but I can't make it work when repeatedly changing a property in a repeat
loop.  (I suspect it would work if it was a send in time that set the
property, correct?)


On Fri, Sep 24, 2010 at 9:31 AM, J. Landman Gay wrote:

> On 9/24/10 8:36 AM, dunb...@aol.com wrote:
>
>  Is there a way to "interrupt", or rather, "interrogate", the repeat loop?
>> I
>> am not talking about checking the property within that running code.
>>
>
> I think what you want is:
>
>  wait 1 millisecond with messages
>
> Put that into the repeat loop somewhere. It forces the engine to do all the
> same cleanup and checking as it does on idle, and will catch any pending
> messages that have happened.
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Hopefully a simple question

2010-09-24 Thread Mike Bonner
Exactly what I was looking for, thank you again!

Alejandro, thanks for the walkingman stack, I may actually be able to wrap
my head around that one.

On Fri, Sep 24, 2010 at 7:56 AM, wayne durden  wrote:

> For the part about setting up the graphic, what it sounds like you are
> after
> is typically referred to as making seamless tiles.  In many graphic
> programs
> there is an "offset filter".  I think you are describing the gist, a 50%
> horizontal and vertical offset, and then you smooth out the imperfections
> along the two central axis afterwards using a clone tool, or smudge or
> blur
>
> There are many tutorials/explanations around once you know the term you are
> looking for..
>
> Here is one:
>
> http://www.cadtutor.net/dd/photo/seamless/seamless.html
>
> Wayne
>
> On Fri, Sep 24, 2010 at 9:30 AM, Mike Bonner  wrote:
>
> > Thank you very much! Lots of stuff way over my head so far, but i'll
> stick
> > with it till I get it.  By the way, 'wrap' is very helpful for this sort
> of
> > thing.
> >
> > Side question, if I wanted to use aerial style photos for my tiles, there
> > is
> > a method to set the initial graphic up so that it will 'mesh' with itself
> > on
> > any edge.  This is just a simple right/left, up/down duplication with a
> > reverse and flip right? (sounds like i'm describing a dive) at which
> point
> > the consolidated image can be split into tile sized chunks and assigned
> > locations. And while on the subject, does anyone know of a utility that
> > will
> > split a large image into chucks based on a grid?  Meaning cut it into
> 40x40
> > chunks, and save each chunk with positional name for easy re-assembly.
> >
> > Thanks for all the help again all.
> >
> >
> > On Fri, Sep 24, 2010 at 7:04 AM, Alejandro Tejada <
> capellan2...@gmail.com
> > >wrote:
> >
> > >
> > > Hi Mike,
> > >
> > > Download this stack, too:
> > >
> > > http://andregarzia.on-rev.com/alejandro/stacks/walkingman_2.zip
> > >
> > > After you change the names of variables and controls to a
> > > namespace familiar to your coding style, this script could
> > > be useful and, hopefully, optimized for general use. :-D
> > >
> > > Have a nice weekend!
> > >
> > > Al
> > > --
> > > View this message in context:
> > >
> >
> http://runtime-revolution.278305.n4.nabble.com/Hopefully-a-simple-question-tp2552934p2553442.html
> > > Sent from the Revolution - User mailing list archive at Nabble.com.
> > > ___
> > > use-revolution mailing list
> > > use-revolution@lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-revolution
> > >
> > ___
> > use-revolution mailing list
> > use-revolution@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Hopefully a simple question

2010-09-24 Thread Mike Bonner
Thank you very much! Lots of stuff way over my head so far, but i'll stick
with it till I get it.  By the way, 'wrap' is very helpful for this sort of
thing.

Side question, if I wanted to use aerial style photos for my tiles, there is
a method to set the initial graphic up so that it will 'mesh' with itself on
any edge.  This is just a simple right/left, up/down duplication with a
reverse and flip right? (sounds like i'm describing a dive) at which point
the consolidated image can be split into tile sized chunks and assigned
locations. And while on the subject, does anyone know of a utility that will
split a large image into chucks based on a grid?  Meaning cut it into 40x40
chunks, and save each chunk with positional name for easy re-assembly.

Thanks for all the help again all.


On Fri, Sep 24, 2010 at 7:04 AM, Alejandro Tejada wrote:

>
> Hi Mike,
>
> Download this stack, too:
>
> http://andregarzia.on-rev.com/alejandro/stacks/walkingman_2.zip
>
> After you change the names of variables and controls to a
> namespace familiar to your coding style, this script could
> be useful and, hopefully, optimized for general use. :-D
>
> Have a nice weekend!
>
> Al
> --
> View this message in context:
> http://runtime-revolution.278305.n4.nabble.com/Hopefully-a-simple-question-tp2552934p2553442.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Hopefully a simple question

2010-09-23 Thread Mike Bonner
Very cool, thanks for links, have downloaded the source for g2, can't wait
to start digging through it. It's hit half past braindead-oclock here, night
all, and thx again.

On Fri, Sep 24, 2010 at 12:20 AM, Shao Sean  wrote:

> http://forums.runrev.com/phpBB2/viewtopic.php?f=22&t=4295
>
> http://forums.runrev.com/phpBB2/viewtopic.php?f=22&t=1053
>
>
> scroll through the second and there is a link for the full source code to
> the game.. I tried it out a while back and it seemed pretty nifty and you
> can probably get some pointers and tips from the code..
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Hopefully a simple question

2010-09-23 Thread Mike Bonner
Thank you all for the help.  It's not pretty yet, but I now have a 9x9 grid
that does wrap scrolling using the arrow keys, sets 1 of 2 possible tiles
for each square based on current position, and it even seems to run decently
fast.  So far the data isn't coming from an array, just from a flat list,
but it's working!  No iso view yet, only using the 2 very simple tiles, but
its a definate step!  Thanks a ton!

On Thu, Sep 23, 2010 at 8:46 PM, Mike Bonner  wrote:

> K gotcha.  And then layer the button positions so that things work out once
> the tiles are set. I -think- I understand how this will work.  Going back to
> play more.
>
> On Thu, Sep 23, 2010 at 8:24 PM, Dar Scott  wrote:
>
>>
>> On Sep 23, 2010, at 8:13 PM, Mike Bonner wrote:
>>
>>  3/4 view?  Same as iso view?
>>>
>>
>> Probably, I don't know where I came up with 3/4.
>>
>> You don't have to do any math or perspective, just draw each tile as seen
>> looking down but a bit looking (say) north.
>>
>> Dar
>>
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Hopefully a simple question

2010-09-23 Thread Mike Bonner
K gotcha.  And then layer the button positions so that things work out once
the tiles are set. I -think- I understand how this will work.  Going back to
play more.

On Thu, Sep 23, 2010 at 8:24 PM, Dar Scott  wrote:

>
> On Sep 23, 2010, at 8:13 PM, Mike Bonner wrote:
>
>  3/4 view?  Same as iso view?
>>
>
> Probably, I don't know where I came up with 3/4.
>
> You don't have to do any math or perspective, just draw each tile as seen
> looking down but a bit looking (say) north.
>
> Dar
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Hopefully a simple question

2010-09-23 Thread Mike Bonner
3/4 view?  Same as iso view?

Oh cool, just looked up toroid (didn't know what it was believe it or not)
got a visual of how that would work now, thx!

Setting things up with buttons now, and simply using labels to mark terrain
types for the moment so I can get a basic movement system running, still
looking at graphics options.  Thanks much for your pointers.

On Thu, Sep 23, 2010 at 7:50 PM, Dar Scott  wrote:

> You might consider using buttons, not for any button functionality, but to
> reference images.  Lay those out as you need.  They will be in the same
> coordinates as your sprites and arrows and things.  You can butt those
> against each other.  Adjust the margins if buttons have them.
>
> If you go to 3/4 view, tiling will still work and you can even have a
> little overlap.  Just layer them right.
>
> Your game world might be a toroid.  That is, left and right wrap and up and
> down wrap.
>
> Dar Scott
>
>
> On Sep 23, 2010, at 6:54 PM, Mike Bonner wrote:
>
>  Finally am getting back on my feet(health stuff, long story) and want to
>> try
>> and learn some new things.
>>
>> I'm looking at making a very simple overhead view rpg, and my thought was
>> to
>> use tilesets and set the imagesource of the chars to the desired tile
>> based
>> on letter. (meaing w for wall, f for floor b for building etc)  The
>> viewport
>> will be a small 9x9 area with the current 'map' held in a variable.
>>
>> Before I go too far down this path, does anyone have any
>> tips/pointers/warnings or better direction for me to go?  My thinking was
>> track the current position of the character against the map file, then on
>> move, update the char postion (which will always be centered in the
>> viewport) and use that to get the chars in the surounding area, lock the
>> screen, update the field contents with the areas text representation and
>> set
>> all the image ids, then unlock.
>>
>> Would a datagrid be a better method for this? With a row template of 9
>> tile
>> size images viewing 9 rows, and use fillindata to choose what imagadata to
>> set each row tile to.. I was thinking this might work pretty well as I
>> will
>> only have to worry about the charoffset for each data row, and the
>> datagrid
>> will handle which rows are displayed.
>>
>> Other methods? At this point i'm not even really worried about collisions
>> or
>> anything of that nature.  And  I'm still determining if the map should
>> bind
>> edge to edge (making around the world trips possible)
>>
>> Any and all hints would be welcome.
>> Thanks!
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Hopefully a simple question

2010-09-23 Thread Mike Bonner
Awesome, since i'm horrible at graphic design, I was hoping to find free
tilesets, and those look really nice!

Thank you thank you.

On Thu, Sep 23, 2010 at 7:38 PM, wayne durden  wrote:

> Hi Mike,
>
> I don't have anything to add with regard to organizing your game, but if
> you
> want some really spiffy graphics for tile based game design there are some
> really good free ones at the following url:
>
> http://lunar.lostgarden.com/labels/free%20game%20graphics.html
>
> For instance the set:
>
> Danc's Miraculously Flexible Game Prototyping TilesFound these working on a
> project with my son.
>
> Good luck, have fun!
>
> Wayne
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Hopefully a simple question

2010-09-23 Thread Mike Bonner
Pulling out sections for view is part of the plan, after experimenting more,
setting imagesource for my map is probably not on the "good idea" list, so
i'm going to experiment with the button idea, thank you much.  Might
experiment with the same thing in a datagrid just for practice.

Think if I store the map in an array as you suggest, I can also store
location cues like chance of random spawn, treasure level and the like.

I'm off to experiment, tyvm for your suggestions, really appreciated.

On Thu, Sep 23, 2010 at 7:25 PM, Monte Goulding  wrote:

> > Would a datagrid be a better method for this? With a row template of 9
> tile
> > size images viewing 9 rows, and use fillindata to choose what imagadata
> to
> > set each row tile to.. I was thinking this might work pretty well as I
> will
> > only have to worry about the charoffset for each data row, and the
> datagrid
> > will handle which rows are displayed.
>
> Hi Mike
>
> I'd suggest using 9 transparent buttons grouped and use icons and image
> names. Then your group could have get and setprop handlers to handle
> multi-dimensional arrays.
>
> -- group script
> getProp map
>return the customProperties["map"] of me
> end map
>
> -- pMap is a multi-dimensional array representing your map
> -- pMap[1][1] = the top left corner
> -- btn names are 1,1.. 9,9
> setProp map pMap
>repeat with tRow = 1 to 3
>repeat with tColumn = 1 to 3
>set the icon of btn (tRow,tColumn) to the short id
> of image pMap[tRow][tColumn]
>end repeat
>end repeat
>set the customProperties["map"] of me to pMap
> end map
>
> You could have a larger world map also and this 9x9 view could just display
> sections of it.
>
> Cheers
>
> --
> Monte Goulding
> M E R Goulding Software Development
> Bespoke application development for vertical markets
>
> InstallGadget - How to create an installer in 10 seconds
> revObjective  - Making behavior scripts behave
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Hopefully a simple question

2010-09-23 Thread Mike Bonner
Finally am getting back on my feet(health stuff, long story) and want to try
and learn some new things.

I'm looking at making a very simple overhead view rpg, and my thought was to
use tilesets and set the imagesource of the chars to the desired tile based
on letter. (meaing w for wall, f for floor b for building etc)  The viewport
will be a small 9x9 area with the current 'map' held in a variable.

Before I go too far down this path, does anyone have any
tips/pointers/warnings or better direction for me to go?  My thinking was
track the current position of the character against the map file, then on
move, update the char postion (which will always be centered in the
viewport) and use that to get the chars in the surounding area, lock the
screen, update the field contents with the areas text representation and set
all the image ids, then unlock.

Would a datagrid be a better method for this? With a row template of 9 tile
size images viewing 9 rows, and use fillindata to choose what imagadata to
set each row tile to.. I was thinking this might work pretty well as I will
only have to worry about the charoffset for each data row, and the datagrid
will handle which rows are displayed.

Other methods? At this point i'm not even really worried about collisions or
anything of that nature.  And  I'm still determining if the map should bind
edge to edge (making around the world trips possible)

Any and all hints would be welcome.
Thanks!
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: LiveCode 4.5 personal licences

2010-09-23 Thread Mike Bonner
Hmm, looks to me like they need to adjust the desctription and that maybe it
includes livecode for web?  The price comes out the same if you build that
selection using the customize tool. (275, 99 for the first, 99 for linux and
77 for livecode web with the bundle discount.  That bundle listing surely
needs to be fixed and clarified.


On Thu, Sep 23, 2010 at 4:12 AM, paolo mazza wrote:

> Referring to the last version  of the LIveCode store  (
> http://www.runrev.com/store/ ) , I do not understand the difference
> between
> the
>
> LiveCode 4.5 Desktop Mac/Win (99 $ )  licence
>
> and
>
> LiveCode 4.5 Desktop Personal (275 $ ) licence .
>
> *
> The difference between the 2 personal  licences is that the second licence
> allows you to deploy also to the Linux platform?
> *
>
> Referring to the first they  say:
> *
> *
> *
> LiveCode 4.5 Desktop Mac/Win
> Windows and Mac desktop development unlocked
> This package includes LiveCode development tools and the Windows and Mac
> desktop deployment addon.
>
> while, referring to the second licence they say:
>
> LiveCode 4.5 Desktop Personal
> Complete desktop development for the personal user
> This bundle gives you LiveCode Development Tools plus personal deployment
> to
> all desktop platforms saving you $49. Develop applications using a fast and
> easy compile-free workflow. Achieve project goals in a fraction of the time
> with the ability to change the interface or code while the application is
> running. So quick to learn even non-programmers can use it. Write code that
> makes sense using expressive, memorable syntax and reuse the same code
> across multiple devices. Customize your Personal license with more
> deployment options, pick from Mobile, Web and Server. This license is for
> educational and non-commercial use, all standalone executable applications
> will display a splash screen on launch stating non-commercial use only.
>
> All the best
>
> Paolo Mazza
>
> *
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: LiveCode 4.5 and the midsummer (2010) "save 60% on revStudio" deal

2010-09-21 Thread Mike Bonner
Actually, if I understand how this works, you still will get your full year
of complimentary upgrades.  They are honoring licenses that extend several
years into the future.

On Tue, Sep 21, 2010 at 12:01 PM, Jerry Balzano  wrote:

> With the sudden, unexpected release of LiveCode and disappearance of
> revStudio, revMedia, etc., I'm feeling a bit stung by the midsummer "deal"
> we were all offered (and I and others accepted) to "SAVE 60% on revSTUDIO".
>  When I took this deal and paid the $99, I was led to expect a year's worth
> of complimentary upgrades to revStudio, not two month's worth of
> complimentary upgrades.  Unless I'm mistaken, if I wish to "cross over" to
> LiveCode, it's now going to cost me an additional $98, or approximately 2/3
> of the $149 I was "saving" with the midsummer revStudio "deal"
>
> I can't help but think now that this deal was offered, somewhat
> disingenuously, by RunRev, knowing that the product they were selling me was
> in effect going to be discontinued two months later?  Is this rather
> underhanded manner of behavior any way to treat your longtime, faithful
> customers? (rhetorical question)
>
> "We want you to take the plunge and realize the benefits of Rev. Thats why
> we're making you a one time offer. Buy a revStudio license today for just
> $99 and save $150 We won't be repeating this offer any time soon."
>
> Indeed.
>
> - jerry balzano___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: on-rev

2010-09-20 Thread Mike Bonner
I haven't used it in forever because it sucks, but let me check real
quick...

Yep, hangs at connecting to server.

On Mon, Sep 20, 2010 at 7:23 PM, Mark Wieder  wrote:

> All-
>
> Is anyone able to use the on-rev client? I'm hanging on "Connecting to
> server..." Have to force-quit it.
>
> --
> -Mark Wieder
>  mwie...@ahsoftware.net
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Two On-Rev Scripts on One Web Page

2010-09-15 Thread Mike Bonner
What you're trying to do should work fine, my suspicion is that there are
mismatched tags somewhere, or something that is messing up the output. Since
it works in the first its most likely not the included file thats the
problem, tho I guess it could introduce something funky that cases later
stuff to misbehave.

Devins suggestion might help you out here though.  If you want to be able to
put the same information several places on the page you can define it as a
command or function in your include file.

command myspecialcommand
put the date
end myspecialcommand

Then include this file (it can contain multiple commands and functions so
that it behaves as  a library)

At which point anytime you want to put out the text generated by
myspecialcommand you can do it like

 and it will.

You will still have potential issues with mismatched tags etc that can munge
your output,  but only including the file once can simplify things in my
opinion.

As for tracking down the issue, if you try something and it behaves as you
describe, viewing the source of the page in the browser is a good start
towards solving it.  Look at the source and see where it breaks, the look at
your code and see what is just before and after that location.

On Wed, Sep 15, 2010 at 10:10 AM, Devin Asay  wrote:

>
> On Sep 15, 2010, at 10:02 AM, Gregory Lypny wrote:
>
> > Hello everyone,
> >
> > I have an On-Rev script called from an HTML markup item in a web page.
>  It works fine in that the information I want generated is displayed.  I
> call the script like this (thanks for help with the syntax, André):
> >
> >   
> >
> > The trouble is, if I put the exact same statement in another HTML markup
> item anywhere else on the page, nothing is displayed and other static text
> items on the page are blanked out.  The implication seems to be that more
> than one reference, using Include, to On-Rev scripts cannot exist on the
> same page.  Is that correct or am I doing something wrong (likely)?  If the
> second item does not use an include statement to reference a script but is a
> script itself, then there is no problem.  For example,
> >
> >   
> >
> > works fine on the same page with myScript.irev.
> >
> > Any thoughts?
>
> Gregory,
>
> I'm not the expert on revServer scripting by any means, but as far as I
> know you only need to issue an include statement one time for any given
> page. The included file should then be available to any script segments on
> the page. I find it really helpful during development to enable inline error
> reporting:
>
> 
>
> That will show any errors generated by your rev code.
>
> HTH
>
> Devin
>
> Devin Asay
> Humanities Technology and Research Support Center
> Brigham Young University
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Two On-Rev Scripts on One Web Page

2010-09-15 Thread Mike Bonner
Can you post a link to your page?

On Wed, Sep 15, 2010 at 10:02 AM, Gregory Lypny
wrote:

> Hello everyone,
>
> I have an On-Rev script called from an HTML markup item in a web page.  It
> works fine in that the information I want generated is displayed.  I call
> the script like this (thanks for help with the syntax, André):
>
>
>
> The trouble is, if I put the exact same statement in another HTML markup
> item anywhere else on the page, nothing is displayed and other static text
> items on the page are blanked out.  The implication seems to be that more
> than one reference, using Include, to On-Rev scripts cannot exist on the
> same page.  Is that correct or am I doing something wrong (likely)?  If the
> second item does not use an include statement to reference a script but is a
> script itself, then there is no problem.  For example,
>
>
>
> works fine on the same page with myScript.irev.
>
> Any thoughts?
>
> Regards,
>
> Gregory___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [OT] router + manual DHCP setting

2010-09-07 Thread Mike Bonner
99% sure you're not set up this way, but if your belkin is setup to a
smaller subset subnet (IE a netmask other than 255.255.255.0) you coudl be
setting your IP's outside the range of the valid subnet.  As pointed out
tho, this is pretty unlikely unless you did it yourself.

On Tue, Sep 7, 2010 at 2:00 AM, Mark Schonewille <
m.schonewi...@economy-x-talk.com> wrote:

> Hi Jim,
>
> Look at all the automatic DHCP settings. Note the router IP and DNS IP's
> and the subnet mask. After changing to manual DHCP, re-enter the same router
> and DNS IP's and the subnet mask. Now click Apply.
>
> --
> Best regards,
>
> Mark Schonewille
>
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
>
> From 15th August, we'll have time for new projects! Be the first in line
> and contact me now!
>
> Download the Installer Maker plugin for Runtime Revolution at
> http://qurl.tk/ce
>
> On 7 sep 2010, at 03:45, Jim Ault wrote:
>
> > Definitely not a Rev question, but there are some of my Rev apps working
> on this computer.
> >
> > I have a remote Mac mini running OSX Leopard behind a Belkin router and
> would like to change from DHCP to DHCP using manual address.
> >
> > The procedure i used was to go System Preferences:Network:Ethernet  and
> change the drop down choice, enter '192.168.2.30' then 'apply'  and lost
> connection to the internet.  (the range used for active assignments is 2.2
> thru 2.9, so it uses the lowest range of numbers)
> >
> >
> > Step 2 was to reboot the Mac, just in case, and still no internet.
> > Step 3 was chose 'DHCP', click 'apply' and regain internet connection.
> >
> > Also tried   2.201   which is outside the default range for Belkin.
> >
> > Is there a step I am missing.
> > The issue is this computer will run unattended most all the time and the
> LAN address reassignment can occur (like last weekend) and the computer is
> unreachable.
> >
> > All is well for now, but ...
> > Thanks for any pointers.  Google did not seem to deliver an answer that
> worked.
> >
> >
> > Jim Ault
> > Las Vegas
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [ANN] revObjective 1.0 released!

2010-09-06 Thread Mike Bonner
Heres the right link. http://goulding.ws/?file_id=11

On Mon, Sep 6, 2010 at 7:18 PM, Andre Garzia  wrote:

> Monte,
>
> the download link is wrong! ;-)
>
> Congratulations, want to check it out!
>
> Cheers
> andre
>
> On Mon, Sep 6, 2010 at 10:01 PM, Monte Goulding
>  wrote:
> > Hi Everyone
> >
> > I've just released a new plugin that people who create or want to use
> custom controls with behavior scripts might find helpful. For more info go
> to:
> > http://goulding.ws/consulting/blog/
> >
> > Cheers
> > --
> > Monte Goulding
> > M E R Goulding Software Development
> > Bespoke application development for vertical markets
> >
> > InstallGadget - How to create an installer in 10 seconds
> > revObjective  - Making behavior scripts behave
> >
> > ___
> > use-revolution mailing list
> > use-revolution@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
>
>
>
> --
> http://www.andregarzia.com All We Do Is Code.
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Revolution Search Engine

2010-09-01 Thread Mike Bonner
Same here.  Google search works, gmane works, the rev database errors for
me.
Can't get a single dictionary search to work, whether quick or deep.  Not
that it matters to me that much since I didn't know it was there before
today, but even so.

On Wed, Sep 1, 2010 at 2:21 PM, Richmond wrote:

> On 09/01/2010 11:11 PM, zryip theSlug wrote:
>
>> On Wed, Sep 1, 2010 at 9:56 PM, Richmond
>>  wrote:
>>
>>
>>> Under the HELP menu.
>>>
>>> Probably the second time in about 9 years I have ever tried to use this:
>>>
>>> it gave what can only be described as "a little fart" on my MacMini, and
>>> that my dears was all.
>>>
>>> if it is nothing but flatulence, why is it still there?
>>>
>>>
>> Probably because it works pretty well for others.
>>
>>
>> Regards,
>>
>>
>
> Interesting:
>
> Let's try it again on Mac OS 10.4.11 and Ubuntu 10.04:
>
> Funny . . . now it gave a 'fart' when I opened it the first time on my
> MacMini.
>
> Now I typed 'search' into the 'search box and it gave me a reference to a
> website
> on Geocities that does not exist anymore . . . cool or what?
>
> Typed 'Unicode': nix.
>
> Typed 'button': nix.
>
> OK, on the Google "tab" it gives me a simple Google search - but, hey, I
> have a couple
> of web-browsers installed on each of my systems.
>
> Possibly naive (wouldn't be the first time), I imagined it would come up
> with RunRev relevant
> information.
>
> The 'Dictionary Quick Search' is significantly slower than the inbuilt
> Documentation . . . err . . .
> waiting . . . wow:
>
> "Could not find "button" as a string in the dictionary"
>
>
> 
>
> I wonder quite what you mean by "useful"? Certainly evidencing a semantic
> shirt there, methinks.
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Collecting Web Form Information Using a Loop

2010-09-01 Thread Mike Bonner
Oh yeah, to do it the way you want, change yours to

   put $_POST[("Q" &  i)] &  comma after theSubmission

The way it was setup to begin with, you're trying to match a key with quotes
because you explicitly put quote & q etc in for evaluation. So in effect it
would return a non-existant array entry because its looking for the quotes.

However, the repeat for each is probably easier all around just because you
can set your script up to handle a changing number of post variables. Repeat
for each key will find however many are sent so that you can parse them and
don't have to mess with concatenating a string together. Also means you can
name them anything you want.  The only side affect of this is that since
arrays are unsorted, if you need results returned in a specific order based
on post variable name you'll need to sort them yourself.

IE:

put the keys of $_POST into tKeys
sort tKeys
repeat for each line theKey in tKeys
do your stuff here with $_POST[theKey]
end repeat
On Wed, Sep 1, 2010 at 11:06 AM, Phil Davis  wrote:

>  On 9/1/10 9:34 AM, Gregory Lypny wrote:
>
>> Hello everyone,
>>
>> On-rev question about collecting web form information.  Suppose I have a
>> questionnaire that uses 40 sequentially named menus for the answer choices.
>>  I could collect them individually like this.
>>
>>put $_POST["Q1"] into q1
>>put $_POST["Q2"] into q2
>>put $_POST["Q3"] into q3
>>put $_POST["Q4"] into q4
>>put $_POST["Q5"] into q5
>>...
>>put $_POST["Q40"] into q40
>>
>> But of course my first inclination is to avoid 40 lines and use a loop.
>>  So I tried
>>
>>repeat with i=1 to 40
>>put $_POST[(quote&  Q&  i&  quote)]&  comma after theSubmission
>>end repeat
>>
>> and a number of variations, such as,
>>
>>(quote&  Q&  the value of i&  quote)
>>
>> but all I ever get returned is an empty list, i.e., {}.  Any
>> suggestions?
>>
>
> Maybe break your one-liner into two:
>
>
> repeat with i = 1 to 40
>put "Q" & i into tKey
>put $_POST[tKey] & comma after theSubmission
> end repeat
>
> I would be surprised if this didn't work.
>
> Best -
> Phil Davis
>
>
>
>> Regards,
>>
>> Gregory
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>>
> --
> Phil Davis
>
> PDS Labs
> Professional Software Development
> http://pdslabs.net
>
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Collecting Web Form Information Using a Loop

2010-09-01 Thread Mike Bonner
use a for each loop instead like

repeat for each key theKey in $_POST
put $_POST[theKey] & comma after theSubmission

end repeat

On Wed, Sep 1, 2010 at 10:39 AM, Michael Kann  wrote:

> Gregory,
>
> Does the non-loop script work?
>
> -- referring to this part:
>
> put $_POST["Q1"] into q1
> put $_POST["Q2"] into q2
>
> Mike
>
>
>
> --- On Wed, 9/1/10, Gregory Lypny  wrote:
>
> From: Gregory Lypny 
> Subject: Collecting Web Form Information Using a Loop
> To: "Revolution" 
> Date: Wednesday, September 1, 2010, 11:34 AM
>
> Hello everyone,
>
> On-rev question about collecting web form information.  Suppose I have a
> questionnaire that uses 40 sequentially named menus for the answer choices.
> I could collect them individually like this.
>
> put $_POST["Q1"] into q1
> put $_POST["Q2"] into q2
> put $_POST["Q3"] into q3
> put $_POST["Q4"] into q4
> put $_POST["Q5"] into q5
> ...
> put $_POST["Q40"] into q40
>
> But of course my first inclination is to avoid 40 lines and use a loop.  So
> I tried
>
> repeat with i=1 to 40
> put $_POST[(quote & Q & i & quote)] & comma after theSubmission
> end repeat
>
> and a number of variations, such as,
>
> (quote & Q & the value of i & quote)
>
> but all I ever get returned is an empty list, i.e., {}.  Any
> suggestions?
>
>
> Regards,
>
> Gregory
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
>
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Inserting unicodeText into a unicode string? #3

2010-08-29 Thread Mike Bonner
Everyone likes cake. Or pie. Pie is good too. Someone needs to combine the
two, piecake would rock.

On Sun, Aug 29, 2010 at 11:27 AM, Richmond wrote:

> On 08/29/2010 07:19 PM, Mike Bonner wrote:
>
>> Yep, same difference, using word 4 works.  The main thing is to make sure
>> you catch actual selections and change behavior accordingly.  Should be a
>> piece of cake now that you grok selectedchunk.
>>
>>
>
> That presupposes one likes cake.
>
>  On Sun, Aug 29, 2010 at 10:15 AM, Richmond> >wrote:
>>
>>
>>
>>> On 08/29/2010 07:02 PM, Mike Bonner wrote:
>>>
>>>
>>>
>>>> Set up a simple stack with a button and a field.  Put some text into the
>>>> field, and in the button put
>>>>
>>>> on mouseup
>>>> put the selectedchunk
>>>> end mouseup
>>>>
>>>> Make sure you have an active insertion point in the field and click the
>>>> button.
>>>>
>>>> It should put something like "char 22 to 21 of field 1" into the message
>>>> box.
>>>>
>>>> If you had a selection it would be char firstpositionnumber to char
>>>> secondpositionnumber.  Since its just an insertion point it will always
>>>> be
>>>> of the relation -- word 2 is 1 more than word 4.
>>>>
>>>> As well, the dictionary contains this:
>>>>
>>>> *Summary:
>>>> Returns a chunk expression describing the location of the text selection
>>>> or
>>>> insertion point.
>>>>
>>>> Examples:
>>>> the selectedChunk
>>>> put the selectedChunk into storedChunk
>>>>
>>>>
>>>> Use the selectedChunk function to determine which text is selected.
>>>>
>>>> Value:
>>>> The selectedChunk function returns a chunk expression of the form
>>>>  char startChar to endChar of field fieldNumber
>>>> *
>>>>
>>>>
>>>> On Sun, Aug 29, 2010 at 9:53 AM, Richmond
>>>> wrote:
>>>>
>>>>
>>>>
>>>>
>>>>> On 08/29/2010 05:57 PM, Mike Bonner wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> In this case, the selectedtext is a property that contains no
>>>>>> positional information.  You can't do math on selectedtext unless it
>>>>>> just so happens to contain a number.
>>>>>> So, to do what you want you would need to use selectedchunk instead,
>>>>>> check it to see a) if its only an insertion point (word 4 of the
>>>>>> selectedchunk - word 2 of the selectedchunk will = -1 if this is the
>>>>>> case) then if I recall correctly, word 2 of the selectedchunk is the
>>>>>> cursor position so checking char (word 2 of the selectedchunk - 1)
>>>>>> will give you the char reference that you're looking for.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> I'd be very interested to know exactly where you recall 'word 4',
>>>>> 'word 2' and so on from as I cannot find anything like this in
>>>>> reference
>>>>> to selectedChunk.
>>>>> ___
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>> Still fairly unclear to baboons like me . . .  :)  Mainly because the
>>> documentation doesn't explicitly mention words
>>> 4 - 1.
>>>
>>> I set up 4 flds and 'pumped' word 4 - 1 into the flds and got something
>>> like this:
>>>
>>> 14 to 15 char
>>>
>>> which shows fairly clearly that that is an insertion rather than a
>>> selection as the difference between
>>> words 4 and 2 is only 1: mind you, words 4 - 1 is a bit
>>> counter-intuitive.
>>>
>>> It is really only "a step away" from that to this:
>>>
>>> put word 4 of the selectedChunk into W4
>>> put char W4 of fld "fTX" into fld "fOUTPUT"
>>>
>>> giving one the char preceding the insertion point.
>>>
>>> Now, Ho - Ho - Ho; I shall have "a dark night of the soul" trying to do
>>> that lot for unicode . . . :)
>>> ___
>>> use-revolution mailing list
>>> use-revolution@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>
>>>
>>>
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>>
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Inserting unicodeText into a unicode string? #3

2010-08-29 Thread Mike Bonner
Yep, same difference, using word 4 works.  The main thing is to make sure
you catch actual selections and change behavior accordingly.  Should be a
piece of cake now that you grok selectedchunk.

On Sun, Aug 29, 2010 at 10:15 AM, Richmond wrote:

> On 08/29/2010 07:02 PM, Mike Bonner wrote:
>
>> Set up a simple stack with a button and a field.  Put some text into the
>> field, and in the button put
>>
>> on mouseup
>> put the selectedchunk
>> end mouseup
>>
>> Make sure you have an active insertion point in the field and click the
>> button.
>>
>> It should put something like "char 22 to 21 of field 1" into the message
>> box.
>>
>> If you had a selection it would be char firstpositionnumber to char
>> secondpositionnumber.  Since its just an insertion point it will always be
>> of the relation -- word 2 is 1 more than word 4.
>>
>> As well, the dictionary contains this:
>>
>> *Summary:
>> Returns a chunk expression describing the location of the text selection
>> or
>> insertion point.
>>
>> Examples:
>> the selectedChunk
>> put the selectedChunk into storedChunk
>>
>>
>> Use the selectedChunk function to determine which text is selected.
>>
>> Value:
>> The selectedChunk function returns a chunk expression of the form
>>  char startChar to endChar of field fieldNumber
>> *
>>
>>
>> On Sun, Aug 29, 2010 at 9:53 AM, Richmond
>> wrote:
>>
>>
>>> On 08/29/2010 05:57 PM, Mike Bonner wrote:
>>>
>>>
>>>> In this case, the selectedtext is a property that contains no
>>>> positional information.  You can't do math on selectedtext unless it
>>>> just so happens to contain a number.
>>>> So, to do what you want you would need to use selectedchunk instead,
>>>> check it to see a) if its only an insertion point (word 4 of the
>>>> selectedchunk - word 2 of the selectedchunk will = -1 if this is the
>>>> case) then if I recall correctly, word 2 of the selectedchunk is the
>>>> cursor position so checking char (word 2 of the selectedchunk - 1)
>>>> will give you the char reference that you're looking for.
>>>>
>>>>
>>>>
>>>>
>>> I'd be very interested to know exactly where you recall 'word 4',
>>> 'word 2' and so on from as I cannot find anything like this in reference
>>> to selectedChunk.
>>> ___
>>>
>>>
>>
> Still fairly unclear to baboons like me . . .  :)  Mainly because the
> documentation doesn't explicitly mention words
> 4 - 1.
>
> I set up 4 flds and 'pumped' word 4 - 1 into the flds and got something
> like this:
>
> 14 to 15 char
>
> which shows fairly clearly that that is an insertion rather than a
> selection as the difference between
> words 4 and 2 is only 1: mind you, words 4 - 1 is a bit counter-intuitive.
>
> It is really only "a step away" from that to this:
>
> put word 4 of the selectedChunk into W4
> put char W4 of fld "fTX" into fld "fOUTPUT"
>
> giving one the char preceding the insertion point.
>
> Now, Ho - Ho - Ho; I shall have "a dark night of the soul" trying to do
> that lot for unicode . . . :)
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Inserting unicodeText into a unicode string? #3

2010-08-29 Thread Mike Bonner
Set up a simple stack with a button and a field.  Put some text into the
field, and in the button put

on mouseup
put the selectedchunk
end mouseup

Make sure you have an active insertion point in the field and click the
button.

It should put something like "char 22 to 21 of field 1" into the message
box.

If you had a selection it would be char firstpositionnumber to char
secondpositionnumber.  Since its just an insertion point it will always be
of the relation -- word 2 is 1 more than word 4.

As well, the dictionary contains this:

*Summary:
Returns a chunk expression describing the location of the text selection or
insertion point.

Examples:
the selectedChunk
put the selectedChunk into storedChunk


Use the selectedChunk function to determine which text is selected.

Value:
The selectedChunk function returns a chunk expression of the form
 char startChar to endChar of field fieldNumber
*


On Sun, Aug 29, 2010 at 9:53 AM, Richmond 
wrote:
> On 08/29/2010 05:57 PM, Mike Bonner wrote:
>>
>> In this case, the selectedtext is a property that contains no
>> positional information.  You can't do math on selectedtext unless it
>> just so happens to contain a number.
>> So, to do what you want you would need to use selectedchunk instead,
>> check it to see a) if its only an insertion point (word 4 of the
>> selectedchunk - word 2 of the selectedchunk will = -1 if this is the
>> case) then if I recall correctly, word 2 of the selectedchunk is the
>> cursor position so checking char (word 2 of the selectedchunk - 1)
>> will give you the char reference that you're looking for.
>>
>>
>
> I'd be very interested to know exactly where you recall 'word 4',
> 'word 2' and so on from as I cannot find anything like this in reference
> to selectedChunk.
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Inserting unicodeText into a unicode string? #3

2010-08-29 Thread Mike Bonner
In this case, the selectedtext is a property that contains no
positional information.  You can't do math on selectedtext unless it
just so happens to contain a number.
So, to do what you want you would need to use selectedchunk instead,
check it to see a) if its only an insertion point (word 4 of the
selectedchunk - word 2 of the selectedchunk will = -1 if this is the
case) then if I recall correctly, word 2 of the selectedchunk is the
cursor position so checking char (word 2 of the selectedchunk - 1)
will give you the char reference that you're looking for.

Again, i'm not a unicode guy so someone correct me if you have to do
things different.

On Sun, Aug 29, 2010 at 8:15 AM, Richmond  wrote:
>  "Oh, Dear, Richmond's on a roll . . . ."
>
> So; the story so far:
>
> Richmond has worked out how to shove unicodeText inside other unicodeText:
>
> on mouseUp
>    set the useUnicode to true
>    set the unicodeText of the selectedText to numToChar(5)
> end mouseUp
>
>
> But, now, being one of those types who always wants more, he wants to
> check what the unicode Char precedes the insertion point . . .
>
> Tried:
>
> on mouseUp
>   set the useUnicode to true
>   if the unicodeText of the selectedText -1 = numToChar(32) then
>      set the unicodeText of the selectedText to numToChar(5)
>   else
>      set the unicodeText of the selectedText to numToChar(6)
>      end if
> end mouseUp
>
> which, bye-the-bye, the script-editor said was acceptable . . .
>
> [ quite WHY I thought of '-1' is hard to explain ]
>
> but no good at all . . .  :(
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Inserting unicodeText into a unicode string? #2

2010-08-29 Thread Mike Bonner
Hey cool, then ignore my second message as I was being overly
complicated apparently.  I love rev.

On Sun, Aug 29, 2010 at 7:20 AM, Richmond  wrote:
>  On 8/29/10 3:49 PM, Mike Bonner wrote:
>>
>> I don't think this applies when using get and set for unicode, but if
>> its a straight text field where you can use put, there are a couple
>> options.
>>
>> YOu can do:
>>
>> put "What I want inserted" into the selectedtext
>>
> 
>
> Thanks so much!
>
> This works:
>
> on mouseUp
>   set the useUnicode to true
>   set the unicodeText of the selectedText to numToChar(5)
> end mouseUp
>
> Yup, I was being "a bit s-l-o-w" even if not "plain stooopid" . . .  :)
>
> Richmond.
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Inserting unicodeText into a unicode string? #2

2010-08-29 Thread Mike Bonner
Addition:  Since this thread does apply to unicode apparently. my
guess the pseudocode for this would be something like..

On click
get the clickcharchunk
--get the unicodetext from the field
determine if the clichcharchunk word 2 number returned is at the
single or double byte position and adjust accordingly (again, haven't
ever really dealt with unicode, but mark mentioned something about
this)
set a holding container to char 1 to your calculated split point.
At this point you don't really need to put the 2nd half into a holding
container, should be able to delete char 1 to your calculated split
point in your container
then set the unicodetext of the original field to the unicodetext of
field "Your holding container" & the unicode you want inserted & the
unicodetext of field "the original field"

On Sun, Aug 29, 2010 at 6:49 AM, Mike Bonner  wrote:
> I don't think this applies when using get and set for unicode, but if
> its a straight text field where you can use put, there are a couple
> options.
>
> YOu can do:
>
> put "What I want inserted" into the selectedtext
>
> This will insert at the insertion point if nothing is selected, or
> will replace whatever is selected in the field.
>
> Or, you can do
>
> put "What I want inserted" after char (word 4 of the selectedchunk) of field 1
>
> But if I recall correctly, this solution is a little more complicated
> because you have check word 2 and word 4 of the selectedchunk to see
> whats selected then determine programatically in that range where the
> insertion should occur, or if the selection should be removed or...
> If the selection is just an insertion point, then the example above
> (word 4 of the selectedchunk) of field "yourfield" works fine.
>
> Another option, if the text of the field is locked, is to check the
> clickcharchunk which will return the number position of the clicked
> char (same format as clickchunk or selectedchunk except both word2 and
> word 4 will be the same) at which point you can decide to put
> something before or after that char, or split the field at that spot.
> To do the insertion directly with this method, your mouseup handler
> could contain:
> on mouseup
>   put "your insertion string"  before char (word 2 of the clickcharchunk) of 
> me
> end mouseup
>
> On Sun, Aug 29, 2010 at 5:09 AM, Richmond  wrote:
>>  Imagine a field "fTX" that contains the text 'meaty chunks';
>> when I click between 'meaty' and 'chunks' I want to be
>> able to insert something there via code rather than via keyboard.
>>
>> So, why does this not work; in the script of fld "fTX" ?
>>
>> on mouseUp
>>  select the text of me
>> end mouseUp
>>
>> i.e. the text in fld "fTX" is not selected.
>>
>> Now:
>>
>> 1. How can I get to a situation where when I click in a textField containing
>> text I get this:
>>
>> 1.1. the part of the string in the field before the place where I click (or
>> move my cursor) is selected
>>      and put into another field (e.g. 'fBEFORE') and the part of the string
>> after the place where I click
>>     (or move my cursor) is selcted and put into another field (e.g.
>> 'fAFTER')?
>>
>> 1.2. allowing me to INSERT text programmtically between the 2 chunks of the
>> string.
>>
>> Something tells me (I dunno what) that I am not being screamingly original
>> and this must be:
>>
>> 2.1. Documented somewhere.
>>
>> 2.2. Have been done many, many times before.
>>
>> 2.3. I am just being 'plain stooopid'.
>>
>> Richmond.
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


  1   2   >