Debugging on On-Rev - I don't GET it

2009-09-18 Thread Terry Vogelaar
I don't understand how to debug an irev file when form input is  
involved.


Here it the case:
I want to pick data up from a CGI driven HTML page. But my irev script  
needs to do some preprocessing first.
So I made a script "preprocess.irev" and I began to try just passing  
whatever this script GETs:
I tried "preprocess.irev?id18=1&m=eph+1%3A1-5%3A1" with the following  
script:

put "script.cgi?set=5&lang=en&pos=0&nobar=1&t=4&" & urlencode(sGET)  
into varZ

put url varZ
?>

It returned "Bad request". But when I hardcoded in exactly the same  
values, it worked:

put "http://www.biblija.net/biblija.cgi? 
lang=en&set=5&pos=0&nobar=1&t=4&" & sGET into varZ

put url varZ
?>

I wanted to insert a breakpoint, but then I realized I didn't knew how  
to debug this because of the additional data in the url. Any solutions?


Terry
___
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: Debugging on On-Rev - I don't GET it

2009-09-18 Thread Sarah Reichelt
On Fri, Sep 18, 2009 at 6:50 PM, Terry Vogelaar  wrote:
> I don't understand how to debug an irev file when form input is involved.
>
> Here it the case:
> I want to pick data up from a CGI driven HTML page. But my irev script needs
> to do some preprocessing first.
> So I made a script "preprocess.irev" and I began to try just passing
> whatever this script GETs:
> I tried "preprocess.irev?id18=1&m=eph+1%3A1-5%3A1" with the following
> script:
>  put $_GET into sGET
> combine sGET using "&"
> put "script.cgi?set=5&lang=en&pos=0&nobar=1&t=4&" & urlencode(sGET) into
> varZ
> put url varZ
> ?>
>
> It returned "Bad request". But when I hardcoded in exactly the same values,
> it worked:
>  put "id18=1&m=eph+1%3A1-5%3A1"into sGET
> put "http://www.biblija.net/biblija.cgi?lang=en&set=5&pos=0&nobar=1&t=4&"; &
> sGET into varZ
> put url varZ
> ?>
>
> I wanted to insert a breakpoint, but then I realized I didn't knew how to
> debug this because of the additional data in the url. Any solutions?

You can still insert a breakpoint, but instead of just clicking the
Debug button in the On-Rev client, switch to your browser and go to
the page

replacing "yourname" in the URL with your on-rev user name, or
replacing the first part of the address with your site address.

As regards fixing your script, there are a couple of problems.
Firstly, you would need to combine sGET using "&" and "=" in order to
get the correct array members.

However this doesn't really help, because then you get into a mess
with urlencoding.
The data is decoded in the $_GET array, so it needs to be urlencoded again.
But if you assemble the whole set of parameter data and urlencode it
all at once, the & and = signs gets encoded too.

So here is what I came up with, which loops through the $_GET array
and constructs the URL as it goes.

put empty into sGET
repeat for each key k in $_GET
put "&" & k & "=" & urlencode($_GET[k]) after sGET
end repeat

put "script.cgi?set=5&lang=en&pos=0&nobar=1&t=4" & sGET into varZ
put content varZ

The "put content" line at the end is just so you can check what
happening. When you are sure that is correct, then you can change it
to "put URL".
Note that I removed the ampersand that you had at the end of the fixed
part of the URL, as I needed it be be added as part of the repeat
loop.

Cheers,
Sarah
___
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


Which Editor? (was: RE: Debugging on On-Rev - I don't GET it)

2009-09-18 Thread Jim Bufalini
Sarah Reichelt wrote:

> You can still insert a breakpoint, but instead of just clicking the
> Debug button in the On-Rev client, switch to your browser and go to
> the page
>  5%3A1>
> replacing "yourname" in the URL with your on-rev user name, or
> replacing the first part of the address with your site address.

Hi Sarah,

What editor are you using to edit your irev pages when the page is a
combination of html, tables, forms, CSS, maybe JavaScript, etc., and  commands, functions, includes, snippets and variables? Are you using
the On-Rev client and hand-coding everything including page code formatting,
such as indentation, etc.? 

Anyone have suggestions for a WYSIWYG editor for irev pages?

Aloha from Hawaii,

Jim Bufalini

___
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: Which Editor? (was: RE: Debugging on On-Rev - I don't GET it)

2009-09-18 Thread Sarah Reichelt
>> You can still insert a breakpoint, but instead of just clicking the
>> Debug button in the On-Rev client, switch to your browser and go to
>> the page
>> > 5%3A1>
>> replacing "yourname" in the URL with your on-rev user name, or
>> replacing the first part of the address with your site address.
>
> Hi Sarah,
>
> What editor are you using to edit your irev pages when the page is a
> combination of html, tables, forms, CSS, maybe JavaScript, etc., and  ... ?> commands, functions, includes, snippets and variables? Are you using
> the On-Rev client and hand-coding everything including page code formatting,
> such as indentation, etc.?


Actually, I use TextWrangler (a text editor) and hand-code everything.
But the iRev scripting does a lot of the repetitious coding and I use
style sheets to do the formatting.
I like to see up a skeleton page and then have it insert data from
text files, formatting it as it goes.

I only use the On-Rev client for debugging.

For WYSIWYG editing, I have RapidWeaver (Mac only) which allows
insertion of irev pages as iframes, but as I am learning On-Rev, I
prefer to have complete control over the html. Any web editor that
allows you to insert iframes will work, or if you can set the file
extension to irev, I think you could insert HTML snippets full of irev
code.

Cheers,
Sarah
___
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: Is this sort of thing a bug?

2009-09-18 Thread David Bovill
>
> 2009/9/17 Richard Gaskin 
>
> Given this, you should be able to simply refer to the long name of the
> substack without needing to explicitly include its mainstack:
>

Yes - the point is that the following give a result that is not only
unexpected but plain wrong (go on - try it and see):


> put the name of stack "revLibrary" into stackObject
> put the long name of stack "revSaving" of stackObject = the long name of
> stack "revLibrary"  -- believe it or not this is true!
>

In my MVC libraries handlers frequently pass around the objects they acts
on. So early on I put object references into a variable:

put the long id of the target into targetObject

and then pass the variable "targetObject" around. As such a handler that get
passed a reference to a stack in a variable should be confident that it does
what is expected. In my case it did not and added an object to the main
stack and not the substack because of the above bug.

As a passionate advocate for the language and its robustness - maybe a few a
votes here  would
get this annoyance fixed :)

2009/9/17 Robert Maniquant 

>
> COuld you precise which version 3.5 or 4 ? I recall having had some strange
> behaviors related to stack name in variables, I think I took another route,
> but that could explain it!!
>

Pretty sure it will be in all versions.
___
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


[ANN] tRev Feature Friday Video is up!

2009-09-18 Thread Jerry Daniels

Three new features:

- Auto-complete within property (Raptor) handlers!
- Auto-complete custom properties within in any handler!
- Select Structure lets you find the beginning & end of any structure

Shortcut for Select Structure is command+(

The topic of folding control structures (or at least finding the  
beginning and end of an control structure) was discussed on this list  
here two days ago. Here it is today as a new feature in tRev.


Link to the video:

   http://reveditor.com/feature-friday-sept-18-select-structures

A new version of tRev with these features will be available as a  
component update later today. I have a little more testing to do.


I will let you know when I'm done testing, and you can get this  
update. Look for a post here, on our site or on Twitter.


Best,

Jerry Daniels
Watch tRev - The Movie
http://reveditor.com/trev-the-movie

___
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] tRev Feature Friday Video is up!

2009-09-18 Thread Trevor DeVore

On Sep 18, 2009, at 11:19 AM, Jerry Daniels wrote:


Shortcut for Select Structure is command+(


I like this one!

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Application Development with Revolution Course: 
http://revolution.bluemangolearning.com/software/revproappdev/

___
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: Is this sort of thing a bug?

2009-09-18 Thread Richard Gaskin

David Bovill wrote:


2009/9/17 Richard Gaskin 

Given this, you should be able to simply refer to the long name of the
substack without needing to explicitly include its mainstack:


Yes - the point is that the following give a result that is not only
unexpected but plain wrong (go on - try it and see):


put the name of stack "revLibrary" into stackObject
put the long name of stack "revSaving" of stackObject = the long name of
stack "revLibrary"  -- believe it or not this is true!


Yep, verified.

If I may suggest, the bug report title might give one the impression 
that the issue is specific to those rev stacks, and given the complexity 
of the Rev IDE such anomalies can be related to a great many things such 
as the way the IDE sometimes renames some of its parts on the fly.


I verified the issue with a simpler stack, with a mainstack named "a" 
and a substack named "b", using this script:


on mouseUp
  put the name of stack "a" into tMainStack
  put the long name of stack "b" of tMainStack into buggyResult
  answer warning "Bug" && buggyResult
end mouseUp

It's probably just because I've been using this family of languages too 
long that I've come to expect oddities in every xTalk when it comes to 
concatenating object descriptors from mixed parts.  HC, SC, and others 
have each had various issues with resolving compound object references, 
often with slight variations between each of these dialects with what 
will work and what won't.


Of all of the xTalks I've worked with, I've found Rev to be the most 
forgiving.  Still has some warts, but overall I can throw a wider range 
of things at it and get a good result than I've been able to with just 
about anything else I've used.  But it seems there's still work to do 
with these resolutions.


Interestingly, a slight modification to the original script to put only 
the short name of the mainstack into a var and then include the object 
type in the script works well:


on mouseUp
  put the short name of stack "a" into tMainStack
  put the long name of stack "b" of stack tMainStack into tResult
  answer "Good: " && tResult
end mouseUp

Looking for a more general principle driving this in Rev's interpreter, 
I tested card references as the base of a compound descriptor, and it 
seems to work well:


on mouseUp
  put the long id of cd 1 of stack "b" into tCard
  put the long id of btn 1 of tCard
end mouseUp

It also works with group references once I put my test buttons into a group:

on mouseUp
  put the long id of grp 1 of stack "b" into tGrp
  put the long id of btn 1 of tGrp
end mouseUp

So the issue seems limited to mainstack references in compound 
expressions in which the object type is part of the variable.  While 
annoying and inconsistent, the bug has a fairly limited scope and is 
easily worked around with a simpler and faster line-liner:


  put the long name of stack "b" into tResult

You can also use:

  put the long id of stack "b" into tResult

Both return the same value.*



In my MVC libraries handlers frequently pass around the objects they acts
on. So early on I put object references into a variable:

put the long id of the target into targetObject

and then pass the variable "targetObject" around. As such a handler that get
passed a reference to a stack in a variable should be confident that it does
what is expected. In my case it did not and added an object to the main
stack and not the substack because of the above bug.


I often do the same (with the only difference being that I'm a lazy 
typist so I tend to use the var name "tObj" ).


Using "the long if" works with all objects, and in my experience this 
easiest-to-obtain form consistently provides reliable results.


The tricky part of all xTalks is the rarer task of needing to obtain an 
object reference with a compound expression.  From time to time it may 
be needed, but fortunately not often.  When it is, with Rev at least we 
can mix and match portions of expressions with a flexibility I've not 
found in any other xTalk dialect, with the sole exception of mainstacks 
which will require a little more care.  A gotcha sure enough, but 
luckily one which will affect few scripts.




As a passionate advocate for the language and its robustness - maybe a few a
votes here  would
get this annoyance fixed :)


It does appear to be a bug, and I've added one of my votes there (which 
at the moment is the only vote - why is it most folks don't vote for 
their own bugs?).  I've also added my notes above to the report to help 
the team hone in on the root cause.


Any opportunity to remove exceptions in the language will aid adoption, 
which benefits RunRev even more than us.  Thank you for filing the report.




* Now HERE's an anomaly:  if you ask for "the long id" of a stack, you 
get a value which makes the ID of a stack appear to be synonymous with 
its long name, e.g.:


  stack "b" of stack "/Users/rg/Desktop/a.rev"

But

Re: [ANN] tRev Feature Friday Video is up!

2009-09-18 Thread Neal Campbell
Its Tcool!

Neal Campbell
Abroham Neal Software
www.dxbase.com
www.abrohamnealsoftware.com
www.sdrsystems.com
(540) 242 0911

Amateur Radio: K3NC
Blog: http://www.abrohamnealsoftware.com/blog/
DXBase bug reports: email to ca...@dxbase.fogbugz.com
Abroham Neal forums: http:/www.abrohamnealsoftware.com/community/

DX Cluster: dxc.k3nc.com port 23





On Fri, Sep 18, 2009 at 11:30 AM, Trevor DeVore
wrote:

> On Sep 18, 2009, at 11:19 AM, Jerry Daniels wrote:
>
>  Shortcut for Select Structure is command+(
>>
>
> I like this one!
>
> --
> Trevor DeVore
> Blue Mango Learning Systems
> ScreenSteps: http://www.screensteps.com
> Application Development with Revolution Course:
> http://revolution.bluemangolearning.com/software/revproappdev/
>
>
> ___
> 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: Is this sort of thing a bug?

2009-09-18 Thread Paul Looney

Richard, Dave,
It now has six votes.

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

Paul Looney

___
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


Error message on loading revLet

2009-09-18 Thread Marian Petrides
I just converted a fairly complex stack that includes quicktime  
movies, embedded images, etc. for the web.  The stack runs fine as a  
desktop app but when I try to use it as a revlet, I get the  
following error message:



		"There was an error loading the revlet - unexpected data encountered  
at end of revlet."


Any idea what the problem might be, where I might look to find it, and  
how I might fix it?


TIA
Marian
___
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] tRev Feature Friday Video is up!

2009-09-18 Thread Richard Gaskin

Jerry Daniels wrote:

Three new features:

- Auto-complete within property (Raptor) handlers!
- Auto-complete custom properties within in any handler!
- Select Structure lets you find the beginning & end of any structure

Shortcut for Select Structure is command+(


Congrats on rolling this into your editor.

Glad to see you were able to overcome the performance issue you were 
initially concerned about.  The final result seems to run as fast as the 
script I posted here Tuesday.  Rev's speed makes so many things 
possible. :)  Good work.


On the keyboard shortcut, do you currently use Cmd-) for anything?

When I was adding this to ROSE Tuesday morning I ran the idea by Ken who 
also uses that editor, and he was concerned about selecting the text 
making it too easy to accidentally delete it.  Sure, there's Undo, but 
he suggested we implement two different variants of Select Structure, 
one which does the selection like BBEdit does, and one which merely 
shows the structure visually without altering the selection.


So I've built mine with both, one using an underlying graphic to show 
the structure, as well as the simpler version which just selects the text.


If you're using Cmd-( for Select Structure, I would be inclined to use 
Cmd-) for Show Structure, unless it conflicts with other keyboard 
shortcuts folks might be accustomed to.


--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.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


franklin3d

2009-09-18 Thread Malte Pfaff-Brill

Hey all,

just in case you did not already, you really should check out franklin  
if you are interested into doing any 3d work in rev. This looks really  
really promissing. Can´t wait till it is final. Going to play a bit  
more with it, but I must say I am impressed.


Cheers,

Malte___
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: franklin3d

2009-09-18 Thread Joe Lewis Wilkins
Malte, you didn't provide a link to franklin3d. I've never heard of  
it. Would you please?


TIA,

Joe Lewis Wilkins
Architect




On Sep 18, 2009, at 10:36 AM, Malte Pfaff-Brill wrote:


Hey all,

just in case you did not already, you really should check out  
franklin if you are interested into doing any 3d work in rev. This  
looks really really promissing. Can´t wait till it is final. Going  
to play a bit more with it, but I must say I am impressed.


Cheers,

Malte___

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

2009-09-18 Thread Malte Pfaff-Brill

Hey Joe,

Lynn announced the beta for it here:

http://lists.runrev.com/pipermail/use-revolution/2009-September/128409.html

It is currently available to test for windows:

http://www.franklin3d.com/download/franklin3d_win.zip
This really has the potential to be a "game changing" external for my  
games company. :) wOOt. 


Cheers,

Malte

___
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: Want to Try Franklin 3D - 3D Engine for Revolution?

2009-09-18 Thread Richard Gaskin

Lynn Fredricks wrote:


Anyone interested in a solid 3D game engine for Revolution? :-) This is
getting good enough to show, so we thought we'd show it.

...

Download: http://www.franklin3d.com/download/franklin3d_win.zip

Report Issues: http://www.franklin3d.com/bt

What is Franklin 3D?
---
Franklin 3D ports the stable, muscular Irrlicht engine so that its
accessible within Runtime Revolution. You will be able to make OpenGL or
DirectX powered games.

Where to Learn More
---
The website is just coming together, here: http://franklin3d.com/. It will
be more polished over the next few days.


Great news, Lynn.  I missed this when it came out, but with Malte's 
repost I went over to the site -- looks quite promising!


Any plans for a Linux version down the road?

--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.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


Re: [ANN] tRev Feature Friday Video is up!

2009-09-18 Thread Jerry Daniels
Thanks, Richard. I'll stick with what we have for a while. See how it  
works and if people really use it.


Best,

Jerry Daniels
Watch tRev - The Movie
http://reveditor.com/trev-the-movie

On Sep 18, 2009, at 12:24 PM, Richard Gaskin wrote:


Jerry Daniels wrote:

Three new features:
- Auto-complete within property (Raptor) handlers!
- Auto-complete custom properties within in any handler!
- Select Structure lets you find the beginning & end of any structure
Shortcut for Select Structure is command+(


Congrats on rolling this into your editor.

Glad to see you were able to overcome the performance issue you were  
initially concerned about.  The final result seems to run as fast as  
the script I posted here Tuesday.  Rev's speed makes so many things  
possible. :)  Good work.


On the keyboard shortcut, do you currently use Cmd-) for anything?

When I was adding this to ROSE Tuesday morning I ran the idea by Ken  
who also uses that editor, and he was concerned about selecting the  
text making it too easy to accidentally delete it.  Sure, there's  
Undo, but he suggested we implement two different variants of Select  
Structure, one which does the selection like BBEdit does, and one  
which merely shows the structure visually without altering the  
selection.


So I've built mine with both, one using an underlying graphic to  
show the structure, as well as the simpler version which just  
selects the text.


If you're using Cmd-( for Select Structure, I would be inclined to  
use Cmd-) for Show Structure, unless it conflicts with other  
keyboard shortcuts folks might be accustomed to.


--
Richard Gaskin
Fourth World
Revolution training and consulting: http://www.fourthworld.com
Webzine for Rev developers: http://www.revjournal.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: [ANN] tRev Feature Friday Video is up!

2009-09-18 Thread Jerry Daniels

Thanks, Neal.

Would that be tCool?

Best,

Jerry Daniels
Watch tRev - The Movie
http://reveditor.com/trev-the-movie

On Sep 18, 2009, at 10:46 AM, Neal Campbell wrote:


Its Tcool!

Neal Campbell
Abroham Neal Software
www.dxbase.com
www.abrohamnealsoftware.com
www.sdrsystems.com
(540) 242 0911

Amateur Radio: K3NC
Blog: http://www.abrohamnealsoftware.com/blog/
DXBase bug reports: email to ca...@dxbase.fogbugz.com
Abroham Neal forums: http:/www.abrohamnealsoftware.com/community/

DX Cluster: dxc.k3nc.com port 23





On Fri, Sep 18, 2009 at 11:30 AM, Trevor DeVore
wrote:


On Sep 18, 2009, at 11:19 AM, Jerry Daniels wrote:

Shortcut for Select Structure is command+(




I like this one!

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Application Development with Revolution Course:
http://revolution.bluemangolearning.com/software/revproappdev/


___
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: [ANN] tRev Feature Friday Video is up!

2009-09-18 Thread Jerry Daniels

Thanks, Mr. T!

Best,

Jerry Daniels
Watch tRev - The Movie
http://reveditor.com/trev-the-movie

On Sep 18, 2009, at 10:30 AM, Trevor DeVore wrote:


On Sep 18, 2009, at 11:19 AM, Jerry Daniels wrote:


Shortcut for Select Structure is command+(


I like this one!

--  
Trevor DeVore

Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Application Development with Revolution Course: 
http://revolution.bluemangolearning.com/software/revproappdev/

___
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: Is this sort of thing a bug?

2009-09-18 Thread David Bovill
2009/9/18 Richard Gaskin 

>
> Using "the long if" works with all objects, and in my experience this
> easiest-to-obtain form consistently provides reliable results.
>

There is a case, where the long id stops working which was intoduced since
3.5 and behaviors. Though I have not had time to track down the cause. I
have filed it here 
:

It totally baffles me but sometimes "the long id of the target" fails to
convert an object reference form the form "control id 1234 of stack XXX" -
I've set a breakpoint in a crucial handler so I can clearly see the script
and variables when it fails - but can;t reproduce it except to note it only
happens occasionally with this behavior type reference. Anyway...

What would be the ideal solution to make short and long IDs of stacks most
> consistent with the rest of the language?


I'd go for returning the short name of the stackas equivalent to a unique
"id" of an object - unless there is a use for the current id (number)
returned.
___
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] tRev Feature Friday Video is up!

2009-09-18 Thread Richard Gaskin

Jerry Daniels wrote:

Thanks, Richard. I'll stick with what we have for a while. See how it  
works and if people really use it.


I'm sure they will.  It's only been in my editor for less than a week 
and it's been very helpful.


My question wasn't about whether to keep it (of course you should), but 
merely whether you were using Cmd-) for anything in tRev.


--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com



Jerry Daniels
Watch tRev - The Movie
http://reveditor.com/trev-the-movie

On Sep 18, 2009, at 12:24 PM, Richard Gaskin wrote:


Jerry Daniels wrote:

Three new features:
- Auto-complete within property (Raptor) handlers!
- Auto-complete custom properties within in any handler!
- Select Structure lets you find the beginning & end of any structure
Shortcut for Select Structure is command+(


Congrats on rolling this into your editor.

Glad to see you were able to overcome the performance issue you were  
initially concerned about.  The final result seems to run as fast as  
the script I posted here Tuesday.  Rev's speed makes so many things  
possible. :)  Good work.


On the keyboard shortcut, do you currently use Cmd-) for anything?

When I was adding this to ROSE Tuesday morning I ran the idea by Ken  
who also uses that editor, and he was concerned about selecting the  
text making it too easy to accidentally delete it.  Sure, there's  
Undo, but he suggested we implement two different variants of Select  
Structure, one which does the selection like BBEdit does, and one  
which merely shows the structure visually without altering the  
selection.


So I've built mine with both, one using an underlying graphic to  
show the structure, as well as the simpler version which just  
selects the text.


If you're using Cmd-( for Select Structure, I would be inclined to  
use Cmd-) for Show Structure, unless it conflicts with other  
keyboard shortcuts folks might be accustomed to.


--
Richard Gaskin
Fourth World
Revolution training and consulting: http://www.fourthworld.com
Webzine for Rev developers: http://www.revjournal.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


Re: [ANN] tRev Feature Friday Video is up!

2009-09-18 Thread Mark Wieder
Jerry-

Friday, September 18, 2009, 11:14:48 AM, you wrote:

> Would that be tCool?

Actually, I think it's 2Cool.

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


Re: Is this sort of thing a bug?

2009-09-18 Thread Richard Gaskin

David Bovill wrote:

There is a case, where the long id stops working which was intoduced since
3.5 and behaviors. Though I have not had time to track down the cause. I
have filed it here 

It totally baffles me but sometimes "the long id of the target" fails to
convert an object reference form the form "control id 1234 of stack XXX" -
I've set a breakpoint in a crucial handler so I can clearly see the script
and variables when it fails - but can;t reproduce it except to note it only
happens occasionally with this behavior type reference. Anyway...


Very interesting bug you stumbled across there.  Oddly enough, I can't 
reproduce it using:


  put the long id of btn id 1008 of stack "b"

...which returns the object descriptor with the full hierarchy as we 
would expect:


  button id 1008 of card id 1002 of stack "b" of stack 
"/Users/rg/Desktop/a.rev"


Maybe this issue is specific to debug mode?  Have you found a recipe for 
getting that result outside of debugging?



The weirder part of that report was the part about behaviors being 
disconnected even though the behavior reference was apparently correct:


   Then I issued "set the behavior of grp 1 to the behavior
   of grp 1" and everything started working again across
   multiple stacks.

If the behavior is a valid reference, what would cause it to go bad?

I agree with your suggestion there that if the engine is unable to find 
a referenced behavior it should automatically do the equivalent of "set 
the behavior to the behavior" to attempt to fix it before bailing out.




What would be the ideal solution to make short and long IDs of stacks most

consistent with the rest of the language?


I'd go for returning the short name of the stackas equivalent to a unique
"id" of an object - unless there is a use for the current id (number)
returned.


I'm inclined to agree, but it may be useful to know why stacks have 
integer IDs at all.


--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.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


Re: franklin3d

2009-09-18 Thread Joe Lewis Wilkins
Thanks Malte. It'll be interesting to see if it has any application to  
the kinds of things I do. I don't do games. (frown)


Joe Lewis Wilkins


On Sep 18, 2009, at 10:47 AM, Malte Pfaff-Brill wrote:


Hey Joe,

Lynn announced the beta for it here:

http://lists.runrev.com/pipermail/use-revolution/2009-September/128409.html

It is currently available to test for windows:

http://www.franklin3d.com/download/franklin3d_win.zip
This really has the potential to be a "game changing" external for  
my games company. :) wOOt. 


Cheers,

Malte


___
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: [SOT] Haiku ???

2009-09-18 Thread Richmond Mathewson

Andre Garzia wrote:

Keep an eye on Haiku, it will make lots of noise.

  

Have just burnt a CD and bunged it in the P4 . . . Live only, as don't
want to lose my Happy Ubuntu Box:

Hey, the boot is pretty fast.

Nice, clean GUI; err . . . makes me think of Damn Small with
its modified Fluxbox. Not that I feel an urge to go back to that
as i am fairly well hooked on a WIMP GUI.

Hmm, contextual menus are still fairly slow . . . waiting for Bogbrush
(err, sorry, 'Wonderbrush') to load:

Yup, even live this works very quickly, exports to a good range of formats,
and resembles MacPaint: guess I must be missing something.

Trying the BeZillaBrowser (what a SILLY name): CD is churning away like
the gods and the daemons at the milk ocean. But once it gets going it
loads my website front page; err . . . cannot cope with JPEGs in webpages.

Looking for a text-editor: "Pe" is not exactly an intuitive name for one
(mind you, nor is "gedit").  Cripes, nothing to rival Open Office Org that
came 'right out of the box' with Ubuntu.

Fairly negative noises just now . . . but I will keep looking.
--
I can see no reason for porting RunRev to an OS until there is a sufficient
app base to knock together reasonable stacks (to me this means
GIMP and Audacity or equivalents at the very least) and a user-base
to justify the effort involved.

From a personal point of view I can see that Haiku looks quite sexy in
GUI terms and probably boots and runs faster than a lot of Ubuntu distros
[and to support this I should point out that I have just put my P3s in my
school BACK to Ubuntu 5.10 from 8.04 as 5.10 is significantly less
resource hungry] until there is a port of RunRev or an equivalent RAD
I cannot see myself or any other educational types who "roll their own"
going down that route.
___
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


How I check if words from two fields match?

2009-09-18 Thread William de Smet
Hi there all,

I have a field "number 1" with a word in it (put in by user)
Next I am putting a lot of words from a remote .txt file into another field
"number 2".
How do I check if the word from fld "number1" is within the words of fld
"number2"?

For now I use:
find string the text of fld "number1" in fld "number2"

But how do I proceed?
When they match I want to use something like: answer "Well done!"

Greetings,

William
___
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: How I check if words from two fields match?

2009-09-18 Thread Richmond Mathewson

William de Smet wrote:

Hi there all,

I have a field "number 1" with a word in it (put in by user)
Next I am putting a lot of words from a remote .txt file into another field
"number 2".
How do I check if the word from fld "number1" is within the words of fld
"number2"?

For now I use:
find string the text of fld "number1" in fld "number2"

But how do I proceed?
When they match I want to use something like: answer "Well done!"

Greetings,

William
___
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 mouseUp
  put fld "Field1" into TWORD
  put fld "Field2" into TSTRING
  if TSTRING contains TWORD then put "Well Done!" into fld "Field3"
end mouseUp
___
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: Is this sort of thing a bug?

2009-09-18 Thread David Bovill
2009/9/18 Richard Gaskin 

>
> Very interesting bug you stumbled across there.  Oddly enough, I can't
> reproduce it using:
>
>  put the long id of btn id 1008 of stack "b"
>

Unfortunately not. I can't track it down - think I'll throw in an
exectutionContexts so I can figure out when the bug gets triggered

The weirder part of that report was the part about behaviors being
> disconnected even though the behavior reference was apparently correct:
>
>   Then I issued "set the behavior of grp 1 to the behavior
>   of grp 1" and everything started working again across
>   multiple stacks.
>
> If the behavior is a valid reference, what would cause it to go bad?
>

I've not had this in a while - so I am not sure. Part of the problem was
also my fault in that if a behavior is set to a stack, and that stack is not
in memory then obviously the reference fails. Some of the behaviors were in
stacks with destroystack = true and in those case where the stacks had no
entries in the stackfiles the behavior failed. But why the above fixed
things in early 3.5 I never figured out.
___
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] tRev Feature Friday Video is up!

2009-09-18 Thread Jerry Daniels

Nope.

Best,

Jerry Daniels
Watch tRev - The Movie
http://reveditor.com/trev-the-movie

On Sep 18, 2009, at 1:39 PM, Richard Gaskin wrote:


Jerry Daniels wrote:

Thanks, Richard. I'll stick with what we have for a while. See how  
it  works and if people really use it.


I'm sure they will.  It's only been in my editor for less than a  
week and it's been very helpful.


My question wasn't about whether to keep it (of course you should),  
but merely whether you were using Cmd-) for anything in tRev.


--
Richard Gaskin
Fourth World
Revolution training and consulting: http://www.fourthworld.com
Webzine for Rev developers: http://www.revjournal.com



Jerry Daniels
Watch tRev - The Movie
http://reveditor.com/trev-the-movie
On Sep 18, 2009, at 12:24 PM, Richard Gaskin wrote:

Jerry Daniels wrote:

Three new features:
- Auto-complete within property (Raptor) handlers!
- Auto-complete custom properties within in any handler!
- Select Structure lets you find the beginning & end of any  
structure

Shortcut for Select Structure is command+(


Congrats on rolling this into your editor.

Glad to see you were able to overcome the performance issue you  
were  initially concerned about.  The final result seems to run as  
fast as  the script I posted here Tuesday.  Rev's speed makes so  
many things  possible. :)  Good work.


On the keyboard shortcut, do you currently use Cmd-) for anything?

When I was adding this to ROSE Tuesday morning I ran the idea by  
Ken  who also uses that editor, and he was concerned about  
selecting the  text making it too easy to accidentally delete it.   
Sure, there's  Undo, but he suggested we implement two different  
variants of Select  Structure, one which does the selection like  
BBEdit does, and one  which merely shows the structure visually  
without altering the  selection.


So I've built mine with both, one using an underlying graphic to   
show the structure, as well as the simpler version which just   
selects the text.


If you're using Cmd-( for Select Structure, I would be inclined  
to  use Cmd-) for Show Structure, unless it conflicts with other   
keyboard shortcuts folks might be accustomed to.


--
Richard Gaskin
Fourth World
Revolution training and consulting: http://www.fourthworld.com
Webzine for Rev developers: http://www.revjournal.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: How I check if words from two fields match?

2009-09-18 Thread DunbarX
Richard's solution deals with strings, and would return true if the word 
you were checking for was "yes", and the user entry data was "I went home 
yesterday".   

If you want to make sure that only full words returned a valid match, just 
change the script to:

on mouseUp
put fld "Field1" into TWORD
put fld "Field2" into TSTRING
if TWORD is among the words of TSTRING then answer "Well Done!"
end mouseUp

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


Re: How I check if words from two fields match?

2009-09-18 Thread William de Smet
@ Craig & Richmond: thanks!

2009/9/18 

> Richard's solution deals with strings, and would return true if the word
> you were checking for was "yes", and the user entry data was "I went home
> yesterday".
>
> If you want to make sure that only full words returned a valid match, just
> change the script to:
>
> on mouseUp
>put fld "Field1" into TWORD
>put fld "Field2" into TSTRING
> if TWORD is among the words of TSTRING then answer "Well Done!"
> end mouseUp
>
> 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: Want to Try Franklin 3D - 3D Engine for Revolution?

2009-09-18 Thread Lynn Fredricks
Hi Richard,

> > Where to Learn More
> > ---
> > The website is just coming together, here: 
> http://franklin3d.com/. It 
> > will be more polished over the next few days.
> 
> Great news, Lynn.  I missed this when it came out, but with 
> Malte's repost I went over to the site -- looks quite promising!
> 
> Any plans for a Linux version down the road?

This will all depend on customer demand, but we have all the ingredients to
do it.

Probably the trickiest part of supporting Linux isnt the coding itself but
like most issues related to games, available and polished drivers for video
cards. The big names in video cards are getting a lot better though.

The Windows test stack is available right now. Here are the links I posted
the other day again:

Download: http://www.franklin3d.com/download/franklin3d_win.zip

Report Issues: http://www.franklin3d.com/bt

Best regards,

Lynn Fredricks
President
Paradigma Software
http://www.paradigmasoft.com

Valentina SQL Server: The Ultra-fast, Royalty Free Database Server 

___
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


Difference between tRev and GLX2?

2009-09-18 Thread Todd Higgins
I am seeing a lot of traffic on the list in regards to tRev.  Does  
that mean the GLX (like Galaxy before it) is now a defunct product?   
What if any difference is there between the 2 products?  Is there any  
kind of reasonable upgrade path for a former GLX license holder?


Thanks,

Todd

___
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: Difference between tRev and GLX2?

2009-09-18 Thread Sarah Reichelt
On Sat, Sep 19, 2009 at 9:13 AM, Todd Higgins  wrote:
> I am seeing a lot of traffic on the list in regards to tRev.  Does that mean
> the GLX (like Galaxy before it) is now a defunct product?  What if any
> difference is there between the 2 products?  Is there any kind of reasonable
> upgrade path for a former GLX license holder?


tRev is Jerry Daniel's new script editor, so while GLX2 is still
available, I imagine that it is no longer being actively maintained or
upgraded. It also doesn't play very nicely with the more recent
versions of Rev.

The main difference is that tRev is a standalone app and does not run
as part of the Rev IDE. It operates outside the IDE communicating via
sockets.
It is extremely stable, very fast, clean & easy to use. I thoroughly
recommend it. (I am not connected with Jerry in any way, I just use
his products.)

You can find out more about it at  and I
suggest watching the videos, especially some of the earlier ones, to
see how it works and to learn how to access all it's features. THE FAQ
section also has a very good summary
.

There is a link at the revEditor site to buy it from the revSelect
store, but I'm not sure if there is an upgrade deal for GLX users. I
suggest you email Jerry  to check this.

Cheers,
Sarah
___
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


Weird stack appearing

2009-09-18 Thread Marty Knapp
Well I've probably been drinking my bath water, but . . .  I keep 
finding a stack with the name "rces/PrinterInfo.xml" in the same folder 
as a stack I've been working on. When I open the oddly named stack, its 
contents are the stack that I'm working on. I'll delete the weirdly 
named stack, only to find it again soon. For the life of me I cannot 
figure out what I might be doing wrong. I am doing a lot of print 
testing. I'm also using this stack as a template for other stacks. 
Anyone else had this happen? I'm on a Mac, latest OS and version 4 of 
Rev Studio.


Marty Knapp
___
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


Support for SQL Server in SQL Yoga

2009-09-18 Thread Trevor DeVore
Just a note for those who have been asking about SQL Server support in  
SQL Yoga. I just uploaded 1.0.0 build 5 BETA. With this version SQL  
Server accessed through RevDB using ODBC is passing unit tests. You  
can find links to downloads and the docs (works in progress, finished  
before release) here:


http://www.bluemangolearning.com/revolution/software/libraries/sql-yoga/

An example of which properties to set on a SQL Yoga Connection object  
for SQL Server can be seen here:


http://revolution.screenstepslive.com/spaces/revolution/manuals/sqlyoga/lessons/5861-Incorporating-SQL-Yoga-Into-Your-Application-For-the-First-Time

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Application Development with Revolution Course: 
http://revolution.bluemangolearning.com/software/revproappdev/

Email has been scanned for viruses by Altman Technologies' email management 
service - www.altman.co.uk/emailsystems
___
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: franklin3d

2009-09-18 Thread Judy Perry

What are we poor Mac users to do?

I know Lynn promised something would be forthcoming, but will the same 
pre-order stuff be available when a Mac test version is available?


Just wondering...

Judy

On Fri, 18 Sep 2009, Malte Pfaff-Brill wrote:


Hey Joe,

Lynn announced the beta for it here:

http://lists.runrev.com/pipermail/use-revolution/2009-September/128409.html

It is currently available to test for windows:

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

2009-09-18 Thread Judy Perry

Oh, come on Joe -- didn't you do a coloring book in Rev?

I know, I know... not a game... still, you never know ;-)

Judy

On Fri, 18 Sep 2009, Joe Lewis Wilkins wrote:

Thanks Malte. It'll be interesting to see if it has any application to the 
kinds of things I do. I don't do games. (frown)

___
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: Want to Try Franklin 3D - 3D Engine for Revolution?

2009-09-18 Thread Judy Perry

Any idea when a Mac version will be available?

Sorry if you've said previously...

Judy

On Fri, 18 Sep 2009, Lynn Fredricks wrote:


Hi Richard,


Where to Learn More
---
The website is just coming together, here:

http://franklin3d.com/. It

will be more polished over the next few days.





The Windows test stack is available right now. Here are the links I posted
the other day again:

Download: http://www.franklin3d.com/download/franklin3d_win.zip

Report Issues: http://www.franklin3d.com/bt

Best regards,

Lynn Fredricks

___
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