Re: Slashdotter looking for kids' programming language

2008-12-11 Thread Bill Marriott
Actually, it would be great if a LOT of people suggested Rev, and in some 
depth, according to their passion! (Richmond, this seems RIGHT up your 
alley!) The thread is filled with a lot of people who are suggesting Ruby, 
Python, even C++! Strikes me as verging on child abuse to subject a 14-yo to 
that, but who am I to say? :)

Seriously, would love to see folks come out and letting the world know about 
our product, it would be a great way to promote the language we all love.

"Judy Perry" <[EMAIL PROTECTED]>
> Subj: Slashdotter looking for kids' programming language
>
> http://news.slashdot.org/article.pl?sid=08/12/10/2257223
>
> Someone might want to suggest Rev...



___
use-revolution mailing list
use-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: getting the word and line chunk of words simultaneously

2008-12-11 Thread Bill Marriott
Did you have a look at the functions offset and lineoffset?

put "football" into myWord
put "Text position:" && offset(myWord,theContainer)
put lineOffset(myWord,theContainer) into L
put "Line:" && L
put "Line position:" && offset(myWord,line L of theContainer)



"James Hale" <[EMAIL PROTECTED]> wrote

> I do not just want the word position within the text itself.
>
> I also want the line the word is located and the position within that 
> line.
>
> So, as an example I end up with the following for one word, say 
> "football"
>
> Word:  football
> Text position: 132
> Line: 4
> Line Position: 13 



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


Core Midi

2008-12-11 Thread Beat Cornaz

Hi,

how can I address the   'Core Midi'in OSX from within Revolution?

Thanks, Beat


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


Slashdotter looking for kids' programming language

2008-12-11 Thread Richmond Mathewson
Bill Marriot wrote:

"Actually, it would be great if a LOT of people suggested Rev, and in some 
depth, according to their passion! (Richmond, this seems RIGHT up your 
alley!)"

and, of course, the raving ego-maniac rises to the bait.

"The thread is filled with a lot of people who are suggesting Ruby, 
Python, even C++! Strikes me as verging on child abuse to subject a 14-yo to 
that, but who am I to say? :)"

Ooh, Yes, let's talk about "child abuse' (being myself a victim of it;
many children abuse ME every day):

My 16 year-old has just suffered 'deep, lasting trauma' at the hands of 
PASCAL 5.5. [actually, the real trauma was caused by having his Dad 
sitting beside him telling him awful "when I was at Durham" stories, but I
 digress ] But for a very simple reason: countries like Bulgaria (cannot 
decide whether it qualifies as third-world or simply 'turd' world) are not
 prepared to spend money on anything vaguely smacking of education. And 
any old fool can download FREEdos and bung it on an old piece of junk 
along with the GEM GUI - I know, I did it myself in about 15 minutes: 
comes with PASCAL inside.

Now, BACK TO THE FUTURE; I have urged, several times, in varying degrees 
of linguistic 'heat', RR to re-release Runtime Revolution 2 FREE version.
I would be straight up the road at the Ministry of Misinformation (whoops, 
Education) pushing RR like nobody's business. Now, while the Bulgarian 
government may be a bunch of cheap-jacks, and the Bulgarians may pride 
themselves on being kings of software piracy (Yup!); I believe that 
re-releasing RR 2 would actually pay off; not just in Bulg. but 
world-wide.

Of course RR 2.0.1 could be revamped with a tedious start-up screen that 
delayed you for 3-4 minutes while it sung the praises of RR 3.

After all, one can download a ten-lines-of-code-limited version of 
Metacard for WIN / MAC / LIN right now (I know, just bunged it on my new 
toy; a P4 1.7 GHz running Ubuntu 8.04.1). However, as we all know, 
the GUI of Metacard is not very kiddy-friendly.

I would be more than happy to pitch in my alternative revTools stack 
I made for 2.0!

Were I part of RR I would be urging a huge "education push", call it 
"outreach", call it what you like.

Judy Perry wrote:

"Someone might want to suggest Rev..."

To which the inevitable reply is; "Why don't you?"

The more people who vote for RR the better.

sincerely, Richmond Mathewson.


A Thorn in the flesh is better than a failed Systems Development Life Cycle.




___
use-revolution mailing list
use-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: Core Midi

2008-12-11 Thread Mark Schonewille

Hi Beat,

Regarding MIDI, did you read my reply to your question in the Dutch  
forum, ?


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Dutch forum: http://runrev.info/rrforum

We are always looking for new projects! Feel free to contact us to  
discuss your custom software project!


On 11 dec 2008, at 11:08, Beat Cornaz wrote:


Hi,

how can I address the   'Core Midi'in OSX from within Revolution?

Thanks, Beat


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


Slashdot: Dunnit!

2008-12-11 Thread Richmond Mathewson
Dunnit!

http://news.slashdot.org/article.pl?sid=08/12/10/2257223

Come on Youall!

sincerely, Richmond Mathewson.



A Thorn in the flesh is better than a failed Systems Development Life Cycle.




___
use-revolution mailing list
use-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: Core Midi

2008-12-11 Thread René Micout

Hello,
I am interesed with this question also, but I can't find your reply  
in the Dutch forum

René from Paris

Le 11 déc. 08 à 11:48, Mark Schonewille a écrit :


Hi Beat,

Regarding MIDI, did you read my reply to your question in the Dutch  
forum, ?


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Dutch forum: http://runrev.info/rrforum

We are always looking for new projects! Feel free to contact us to  
discuss your custom software project!


On 11 dec 2008, at 11:08, Beat Cornaz wrote:


Hi,

how can I address the   'Core Midi'in OSX from within Revolution?

Thanks, Beat


___
use-revolution mailing list
use-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


Leopard button problem

2008-12-11 Thread Richmond Mathewson
Frankly I am extremely wary of cross-platform consistency of RR artefacts,
especially buttons.

Therefore I normally make a mockup stack containing the buttons I will 
need in a project and screenshot the lot, then 'cut them out' with my 
favourite graphics program (GIMP) and save them as either GIF or PNG 
images. Obviously this is a bit time-consuming, but it guarantees that 
things will look the same on WIN / MAC / LIN. I normally import the 
images onto an unused card and reference them as icons for buttons; 
this allows for showing buttons as 'visited' and so on.

After a time I have collected a series of button images that serve 
almost all my purposes.

sincerely, Richmond Mathewson.


A Thorn in the flesh is better than a failed Systems Development Life Cycle.




___
use-revolution mailing list
use-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: Things I Learned Recently

2008-12-11 Thread jbv


Mark Wieder a *crit :

> Some Things I Thought I Knew But On Checking Find Aren't True
>
> 1. Back in the day I could have sworn that "contains" was deprecated
> as being much slower than "is in", in that it made an extra copy of
> the target before checking. This is no longer true, if it ever was.
> The following two statements run at exactly the same speed:

don't know if anyone is interested, but in the same vein, I've been living
for years with the idea that variables organized as items were faster to
process than variables organized as words, but lately I discovered that
wordoffset is actually faster than itemoffset .
Examples (tested on my old PC under XP with Rev 2.5) :

put "toto tata titi tete" into myVar
put the milliseconds into tt
repeat 10 times
if wordoffset("tete",ref) > 0 then
end if
end repeat
put the milliseconds - tt
--returns a value between 103 and 110

put "toto,tata,titi,tete" into myVar
put the milliseconds into tt
repeat 10 times
if itemoffset("tete",ref) > 0 then
end if
end repeat
put the milliseconds - tt
--returns a value between 130 and 136

wordoffset seems to be 15 to 20% faster, which is a lot IMHO...

Best,
JB

___
use-revolution mailing list
use-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: Things I Learned Recently

2008-12-11 Thread Alex Tweedly

jbv wrote:

don't know if anyone is interested, but in the same vein, I've been living
for years with the idea that variables organized as items were faster to
process than variables organized as words, but lately I discovered that
wordoffset is actually faster than itemoffset .
Examples (tested on my old PC under XP with Rev 2.5) :

put "toto tata titi tete" into myVar
put the milliseconds into tt
repeat 10 times
if wordoffset("tete",ref) > 0 then
end if
end repeat
put the milliseconds - tt
--returns a value between 103 and 110

put "toto,tata,titi,tete" into myVar
put the milliseconds into tt
repeat 10 times
if itemoffset("tete",ref) > 0 then
end if
end repeat
put the milliseconds - tt
--returns a value between 130 and 136

wordoffset seems to be 15 to 20% faster, which is a lot IMHO...

  
I agree 15-20% seems significant - but I get almost exactly the opposite 
results from that test :-)


I get itemoffset returning times around 52-54, while wordoffset gives 
around 43-44 - suggesting itemoffset is around 20% slower.


(on Windows Vista, Rev 3.0)

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


Re: Things I Learned Recently

2008-12-11 Thread jbv
Hi again

I just realized that there was a mistake in the code posted
in my previous message... Please find the right code below
(conclusions of the test remain the same though) :

put "toto tata titi tete" into myVar
put the milliseconds into tt
repeat 10 times
if wordoffset("tete",myVar) > 0 then
end if
end repeat
put the milliseconds - tt
--returns a value between 103 and 110

put "toto,tata,titi,tete" into myVar
put the milliseconds into tt
repeat 10 times
if itemoffset("tete",myVar) > 0 then
end if
end repeat
put the milliseconds - tt
--returns a value between 130 and 136

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


Terminal Shell encoding ISO to UTF8

2008-12-11 Thread Rolf Kocherhans

Hello all

I asked a similar question just some weeks ago but now the problemis a  
little different.


The problem regards german umlauts (a,o,u with two dots on top).

I read out info from a MAC plist file (INFO = settings file for WIN  
users !) with the "default read" shell command and put
the result into a variable. When the variable contains umlauts and I  
display it I get:


- for Peter Muller (where the u, would have two dots on top)
- Peter M\334ller

If I look inside the plist file with the "Property Llist Editor" the  
name appears
correct on 10.3, 10.4 and 10.5, but if I fetch the name with the  
"default read" shell command

I always get the above.

I searched with google and found out that this is ISO 8859-1 but in  
oktal format

eg. umlauts o returns \326, u returns \334, a returns \344 etc.

Is there a way to change this automatically to utf8 with Revolution?

I tried dozens of variants of uniencode and unidecode but got nowhere
also isotomac did not help.


Can anyone help ?

Cheers
Rolf
___
use-revolution mailing list
use-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: Internet Applications I and II revlive videos

2008-12-11 Thread Andre Garzia
George,

Thank you very much. I always think nobody will understand my english,
so I hope my code is clear. Your feedback is very good, the sessions
objective is to pass information, so if we succeeded then we're all
happy.

thanks again!

Cheers
andre

On Wed, Dec 10, 2008 at 4:39 PM, George C Brackett
<[EMAIL PROTECTED]> wrote:
> Many, many thanks to Jerry Daniels and Andre Garzia for outstanding
> presentations on how Revolution can be used to create internet-aware and
> -capable software.  I have finally gotten to viewing the many talks on the
> DVDs from the 08 revlive conference (which I could not attend), and very
> much appreciate those where both the enthusiasm of the presenters and the
> details of the code are so clear. -- George
>
> ___
> use-revolution mailing list
> use-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


Re: Internet Applications I and II revlive videos

2008-12-11 Thread George C Brackett
Your English is quite understandable, as I'm sure many others have  
told you.  I cannot speak any other language with fluency, and I  
admire those, like you, who can.


Speaking of code, are the examples from your Exchanging Data Over the  
Internet talk available?  I enjoyed the talk, but the video didn't  
include any slides.


Thanks again for not only information, but also instruction!
George

On Dec 11, 2008, at 10:05 AM, Andre Garzia wrote:

George,

Thank you very much. I always think nobody will understand my english,
so I hope my code is clear. Your feedback is very good, the sessions
objective is to pass information, so if we succeeded then we're all
happy.

thanks again!

Cheers
andre

On Wed, Dec 10, 2008 at 4:39 PM, George C Brackett
<[EMAIL PROTECTED]> wrote:

Many, many thanks to Jerry Daniels and Andre Garzia for outstanding
presentations on how Revolution can be used to create internet-aware  
and
-capable software.  I have finally gotten to viewing the many talks  
on the
DVDs from the 08 revlive conference (which I could not attend), and  
very
much appreciate those where both the enthusiasm of the presenters  
and the

details of the code are so clear. -- George

___
use-revolution mailing list
use-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


Revolution on Amazon - Please Discuss, Tag and List

2008-12-11 Thread Lynn Fredricks
Hello all,

We've gotten Rev up on Amazon. Amazon now features customer custom tags,
reviews and discussion groups (you already know there's a referal program
too, right?). Programming products don't get a lot of attention on Amazon so
far, but there's a growing list of discussions and invariably they are about
mainstream languages like C++.

http://www.amazon.com/Runtime-Revolution-Studio/dp/B001K42BW0/
http://www.amazon.com/Runtime-Revolution-Enterprise/dp/B001K53I12/

Even if you've already purchased Revolution for yourself, tagging, listing,
discussing etc, these things all increase awareness of Revolution. Amazon
has also launched a sort of wiki system too, called Amapedia.com. You can
also participate in the Amazon associates program too and collect some
percentage of the sale.

Raising awareness of Rev on Amazon helps build awareness of Rev in general -
your involvement would really help out.

Best regards,

Lynn Fredricks
Mirye Software Publishing
http://www.mirye.com

Mirye Community NING
http://miryesoftware.ning.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: Slashdotter looking for kids' programming language

2008-12-11 Thread Judy Perry
Well, you know, Richmond, wouldn't you think that if I was suggesting it,
I'd already done it?!
Beat you to it...  ;-)

Judy
http://revined.blogspot.com

On Thu, Dec 11, 2008 at 2:42 AM, Richmond Mathewson <[EMAIL PROTECTED]>wrote:

> Judy Perry wrote:
>
> "Someone might want to suggest Rev..."
>
> To which the inevitable reply is; "Why don't you?"
>
>
___
use-revolution mailing list
use-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 on Amazon - Please Discuss, Tag and List

2008-12-11 Thread Richard Gaskin

Lynn Fredricks wrote:


We've gotten Rev up on Amazon. Amazon now features customer custom tags,
reviews and discussion groups (you already know there's a referal program
too, right?). Programming products don't get a lot of attention on Amazon so
far, but there's a growing list of discussions and invariably they are about
mainstream languages like C++.

http://www.amazon.com/Runtime-Revolution-Studio/dp/B001K42BW0/
http://www.amazon.com/Runtime-Revolution-Enterprise/dp/B001K53I12/


Well done.

With the product listed there under its actual name, I did not hesitate 
to add my comments.  I agree that it's helpful for all of us for others 
to do the same.


--
 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: Revolution on Amazon - Please Discuss, Tag and List

2008-12-11 Thread Stephen Barncard

They got the description wrong on enterprise:

"You select one operating system for development, but can deploy to 
all supported operating systems."


cut and paste has a downside.


I see this all the time.



Even if you've already purchased Revolution for yourself, tagging, listing,
discussing etc, these things all increase awareness of Revolution. Amazon
has also launched a sort of wiki system too, called Amapedia.com. You can
also participate in the Amazon associates program too and collect some
percentage of the sale.

Raising awareness of Rev on Amazon helps build awareness of Rev in general -
your involvement would really help out.

Best regards,

Lynn Fredricks


--


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -


___
use-revolution mailing list
use-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: Show globals

2008-12-11 Thread Bob Sneidar
The big thing about globals for me, even more than their scope, is  
their persistence. I can declare a global and check it's current value  
in the message box without any script even running. They are the only  
way to do environment variables, where the state of various things can  
be maintained long term while the applications is "running" (an odd  
concept in Revolution since nothing the user creates is actually  
"running" most of the time.)


For that reason alone I rely heavily on globals. I would only use  
script local variables for temporary variables that only need to live  
while the script runs. For any serious application which makes heavy  
use of variables, globals are almost the defacto storage medium. I can  
see how it would be a real problem for a complex application to bog  
down when debugging.


Bob Sneidar
IT Manager
Logos Management
Calvary Chapel CM

On Dec 10, 2008, at 2:44 PM, Richard Gaskin wrote:

Another might be to reconsider the need for such globals, perhaps  
opting
for script-local variables for those values only needed by a single  
script.


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


Looking for ugly code comparisons WAS: Slashdotter looking for kids' programming language

2008-12-11 Thread Judy Perry
I again come hat-in-hand to ask for some really ugly-looking code examples
in those "real world" programming languages to compare with Rev for the
Slashdot thread.
Posters there are actually recommending things like Assembly(!), Java, & C#!


Specifically the OP was looking to teach basics such as conditionals,
variables & loops.

Does anyone have any ugly examples?

Judy
http://revined.blogspot.com

On Thu, Dec 11, 2008 at 12:21 AM, Bill Marriott  wrote:

> Actually, it would be great if a LOT of people suggested Rev, and in some
> depth, according to their passion! (Richmond, this seems RIGHT up your
> alley!) The thread is filled with a lot of people who are suggesting Ruby,
> Python, even C++! Strikes me as verging on child abuse to subject a 14-yo
> to
> that, but who am I to say? :)
>
> Seriously, would love to see folks come out and letting the world know
> about
> our product, it would be a great way to promote the language we all love.
>
> "Judy Perry" 
> > Subj: Slashdotter looking for kids' programming language
> >
> > http://news.slashdot.org/article.pl?sid=08/12/10/2257223
> >
> > Someone might want to suggest Rev...
>
>
>
> ___
> use-revolution mailing list
> use-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 on Amazon - Please Discuss, Tag and List

2008-12-11 Thread Lynn Fredricks
> They got the description wrong on enterprise:
> 
> "You select one operating system for development, but can 
> deploy to all supported operating systems."
> 
> cut and paste has a downside.
> 
> 
> I see this all the time.

Thanks for catching that, Stephen. Ive submitted a request for a change -
but Im not sure how long it will take to update.

Best regards,

Lynn Fredricks
Mirye Software Publishing
http://www.mirye.com

Mirye Community NING
http://miryesoftware.ning.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: Field of Card of Stack

2008-12-11 Thread william humphrey
What does it matter if you have two fields with the same name? I have dozens
of fields in every card called "label" so every one  of those fields has the
same name. Would this cause a problem?
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Looking for ugly code comparisons WAS: Slashdotter looking for kids' programming language

2008-12-11 Thread Francis Nugent Dixon

Judy,

This time you have really got everybody scared.
I, for one (after 45 years of programming), will
NEVER show you my UGLY code examples, not in
Algol, 1401 Autocoder, Fortran, Cobol,
360 Assembler, RPG, PL/1, Basic, Hypertalk, etc.

And now with the terrific one-liners on this
forum, showing me how Revolution CAN be written,
you have even less chance.

I keep my lousy programming to myself.

But (sigh) it always worked :)

-Francis

___
use-revolution mailing list
use-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: Slashdot: Dunnit!

2008-12-11 Thread Bob Sneidar

Huh??

Bob Sneidar
IT Manager
Logos Management
Calvary Chapel CM

On Dec 11, 2008, at 2:52 AM, Richmond Mathewson wrote:


Dunnit!

http://news.slashdot.org/article.pl?sid=08/12/10/2257223

Come on Youall!

sincerely, Richmond Mathewson.



A Thorn in the flesh is better than a failed Systems Development  
Life Cycle.





___
use-revolution mailing list
use-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: Looking for ugly code comparisons WAS: Slashdotter looking for kids' programming language

2008-12-11 Thread Mark Wieder
Judy-

Thursday, December 11, 2008, 9:52:39 AM, you wrote:

> Does anyone have any ugly examples?

You can check out the Obfucated C Code Contest archives here:

http://www0.us.ioccc.org/main.html

My favorite of the bunch:

http://www0.us.ioccc.org/1990/westley.c

"The gloves are OFF this time, I detest you, snot\n\0sed GEEK!");

-- 
-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: Field of Card of Stack

2008-12-11 Thread Bob Sneidar

Only if you wanted to refer to them by name in a script.

Bob Sneidar
IT Manager
Logos Management
Calvary Chapel CM

On Dec 11, 2008, at 10:14 AM, william humphrey wrote:

What does it matter if you have two fields with the same name? I  
have dozens
of fields in every card called "label" so every one  of those fields  
has the

same name. Would this cause a problem?
___
use-revolution mailing list
use-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


Spell check in a text field (how do I)

2008-12-11 Thread Jim Schaubeck
What are some of the ways I can write a stack which has spellchecking
for the users in the text fields?  I have Rev 3.0 Studio (XP) and will
deploy on windows.  Thanks folks!
Jim...
___
use-revolution mailing list
use-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: Field of Card of Stack

2008-12-11 Thread william humphrey
Good. I use the "label" name so that I know that's a field I can ignore. I
use Acrobat prof for other work and in that program if a field has the same
name it will also always contain the same data as any other field with that
name. I know RunRev doesn't do this but...

On Thu, Dec 11, 2008 at 2:28 PM, Bob Sneidar  wrote:

> Only if you wanted to refer to them by name in a script.
>
> Bob Sneidar
> IT Manager
> Logos Management
> Calvary Chapel CM
>
>
> On Dec 11, 2008, at 10:14 AM, william humphrey wrote:
>
>  What does it matter if you have two fields with the same name? I have
>> dozens
>> of fields in every card called "label" so every one  of those fields has
>> the
>> same name. Would this cause a problem?
>> ___
>> use-revolution mailing list
>> use-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
>



-- 
http://www.bluewatermaritime.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: Looking for ugly code comparisons WAS: Slashdotter looking for kids' programming language

2008-12-11 Thread J. Landman Gay

Judy Perry wrote:

I again come hat-in-hand to ask for some really ugly-looking code examples
in those "real world" programming languages to compare with Rev for the
Slashdot thread.
Posters there are actually recommending things like Assembly(!), Java, & C#!


Specifically the OP was looking to teach basics such as conditionals,
variables & loops.

Does anyone have any ugly examples?


There are several in my "Do anything with text" stack from RevLive 2008 
(on card 2), comparing Rev to Javascript. Here are two:



display a phone number and hilite each character in sequence
==
JavaScript (57 lines)











555-123-4567


Free JavaScripts provided
by http://javascriptsource.com";>The JavaScript Source


In Rev (16 lines, but it could be trimmed to less):

on mouseUp
  create fld "ascii"
  set the autohilite of fld "ascii" to true
  set the traversalOn of fld "ascii" to true
  set the showFocusBorder of fld "ascii" to false
  set the topleft of fld "ascii" to  350,450
  put "612-724-1596" into fld "ascii"
  put the seconds into tStart
  repeat until the seconds - tStart > 5 or the shiftkey is down
repeat with x = 1 to the number of chars in fld "ascii"
  select char x of fld "ascii"
  wait 200 milliseconds
end repeat
  end repeat
  delete fld "ascii"
end mouseUp

==
show a field and select each line in turn; display its contents (this 
was called "Advanced Gallery" on the web page)

===

Javascript (149 lines):




.gallerycontroller{
width: 250px
}

.gallerycontent{
width: 250px;
height: 200px;
border: 1px solid black;
background-color: #DFDFFF;
padding: 3px;
display: block;
}





var tickspeed=3000 //ticker speed in miliseconds (2000=2 seconds)
var displaymode="auto" //displaymode ("auto" or "manual"). No need to modify as form at the bottom will control it, unless you wish to remove form.

if (document.getElementById){
document.write('\n')
}

var selectedDiv=0
var totalDivs=0

function getElementbyClass(classname){
partscollect=new Array()
var inc=0
var alltags=document.all? document.all.tags("DIV") : document.getElementsByTagName("*")
for (i=0; i0;m--)
temp.options[m]=null
for (i=0;ithesubject=(thesubject=="" || thesubject==null)? "HTML Content "+(i+1) : 
thesubject
temp.options[i]=new Option(thesubject,"")
}

temp.opti

Re: Show globals

2008-12-11 Thread Rob Cozens

Bob, et al:


I would only use
script local variables for temporary variables that only need to live
while the script runs


The Rev Dictionary says:

"The difference between a script local variable and a global variable 
is that a script local variable can only be used in the handlers of 
one script, while a global variable can be used in any handler or 
script with a global declaration for that variable.

.
[snip]

The value of a script local variable is retained between handlers, 
but is lost when you quit the application, when you close the stack 
(unless its destroyStack property is false), or when the script is 
re-compiled."


So script local variables have value persistence so long as the stack 
or app remains open.


And script local variables cannot be accidentally or purposely read 
or changed by scripts in other stacks or other objects.


Having said the latter, I would note that any script local variable 
can be accessed by handlers in other scripts or stacks, if the script 
declaring the local variable includes a getValue function and a 
setValue command for that variable.  Eg:


local mySharedVariable

function getValue
   return mySharedVariable
end getValue

on setValue newValue
   put newValue into mySharedVariable
end setValue


Rob Cozens, CCW
Serendipity Software Company

Vive R 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 on Amazon - Please Discuss, Tag and List

2008-12-11 Thread Noel

Left my review :)

 - Noel

At 09:01 AM 12/11/2008, you wrote:

Hello all,

We've gotten Rev up on Amazon. Amazon now features customer custom tags,
reviews and discussion groups (you already know there's a referal program
too, right?). Programming products don't get a lot of attention on Amazon so
far, but there's a growing list of discussions and invariably they are about
mainstream languages like C++.

http://www.amazon.com/Runtime-Revolution-Studio/dp/B001K42BW0/
http://www.amazon.com/Runtime-Revolution-Enterprise/dp/B001K53I12/

Even if you've already purchased Revolution for yourself, tagging, listing,
discussing etc, these things all increase awareness of Revolution. Amazon
has also launched a sort of wiki system too, called Amapedia.com. You can
also participate in the Amazon associates program too and collect some
percentage of the sale.

Raising awareness of Rev on Amazon helps build awareness of Rev in general -
your involvement would really help out.

Best regards,

Lynn Fredricks
Mirye Software Publishing
http://www.mirye.com

Mirye Community NING
http://miryesoftware.ning.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


Slashdot: Dunnit!

2008-12-11 Thread Richmond Mathewson
Bob Sneidar wrote:

"Huh?"

to which I really ought to reply: "Coz, geddit?"

But the following may be more constructive:

'Dunnit' = I have done it.

In this context meaning that I have posted a message advocating the
use of Runtime Revolution of the aforementioned Slashdot web-site.

Garn!

Richmond Mathewson.



A Thorn in the flesh is better than a failed Systems Development Life Cycle.




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


"I know RunRev doesn't do this but..."

2008-12-11 Thread Richmond Mathewson
What does that mean?

Probably, that users of Runtime Revolution do not, generally, do 'this'.

However, Runtime Revolution is a sufficiently flexible RAD that one can
do an awful lot of alternative 'thises' in a way which one cannot in
many other programming environment.

I, for one, do an awful lot of 'thises' in RunRev which I have come up 
with myself, and, maybe, a lot of "purists" might object to: but I 
don't feel a desperate need for their approval.

Or, to put things another way: Runtime Revolution is not only the
RAD developed and marketed by "that company in Scotland"; it is the
interaction between that and its programmers and end-users - rather in
the same way as reading a book the first time can be awful, and the second time 
great; because of the frame of mind the reader is in at the time of reading.

sincerely, Richmond Mathewson.



A Thorn in the flesh is better than a failed Systems Development Life Cycle.




___
use-revolution mailing list
use-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: Field of Card of Stack

2008-12-11 Thread DunbarX
It would not cause anything to break, but if you tried to put text into fld 
"label", it would always go into the field with the lowest number.

(At least in HC, it does. Am I being presumptuous?)


In a message dated 12/11/08 1:14:35 PM, shoreag...@gmail.com writes:


> What does it matter if you have two fields with the same name? I have 
> dozens
> of fields in every card called "label" so every one  of those fields has the
> same name. Would this cause a problem?
> 




**
Make your life easier with all your friends, email, and 
favorite sites in one place.  Try it now. (http://www.aol.com/?optin=new-dp&;
icid=aolcom40vanity&ncid=emlcntaolcom0010)
___
use-revolution mailing list
use-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 on Amazon - Please Discuss, Tag and List

2008-12-11 Thread DunbarX

In a message dated 12/11/08 2:42:50 PM, no...@nomigraphics.com writes:


> Left my review :)
> 

Me, too. I am liking rev more and more...


**
Make your life easier 
with all your friends, email, and favorite sites in one place.  Try it now. 
(http://www.aol.com/?optin=new-dp&icid=aolcom40vanity&ncid=emlcntaolcom0010)
___
use-revolution mailing list
use-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: Spell check in a text field (how do I)

2008-12-11 Thread DunbarX
I wrote a spell checker once in HC. I kept a dictionary (265,000 words) in a 
separate file. I loaded that file into memory and did a search for each word 
in my text. If a word found no match in the dictionary, I was notified. My 
program suggested nearby possible words based on slight misspellings.

In Rev, you could keep the dictionary in a field (not having the textEdit 
limits, which is very nce), or in a library somewhere.

Craig Newman


**
Make your life easier with all your friends, email, 
and favorite sites in one place.  Try it now. 
(http://www.aol.com/?optin=new-dp&icid=aolcom40vanity&ncid=emlcntaolcom0010)
___
use-revolution mailing list
use-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: Field of Card of Stack

2008-12-11 Thread Devin Asay


On Dec 11, 2008, at 1:13 PM, dunb...@aol.com wrote:

It would not cause anything to break, but if you tried to put text  
into fld

"label", it would always go into the field with the lowest number.

(At least in HC, it does. Am I being presumptuous?)


That's how Rev works, too.

D




In a message dated 12/11/08 1:14:35 PM, shoreag...@gmail.com writes:



What does it matter if you have two fields with the same name? I have
dozens
of fields in every card called "label" so every one  of those  
fields has the

same name. Would this cause a problem?






**
Make your life easier with all your friends, email, and
favorite sites in one place.  Try it now. (http://www.aol.com/?optin=new-dp& 
;

icid=aolcom40vanity&ncid=emlcntaolcom0010)
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


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


Re: Revolution on Amazon - Please Discuss, Tag and List

2008-12-11 Thread Marian Petrides, MD
Ok, I added mine (under my nickname Woody).  How about it guys and  
gals, where's YOUR review?


For the folks from RunRev, FWIW, please note that when I tried to find  
the product using the search term "Revolution," I got a whole bunch of  
other hits but didn't find Rev, at least not on the first few screens- 
worth of hits.  Methinks this could be an impediment for people who've  
heard of Rev in passing and come to Amazon looking for more information.


M




On Dec 11, 2008, at 11:06 AM, Richard Gaskin wrote:


Lynn Fredricks wrote:

We've gotten Rev up on Amazon. Amazon now features customer custom  
tags,
reviews and discussion groups (you already know there's a referal  
program
too, right?). Programming products don't get a lot of attention on  
Amazon so
far, but there's a growing list of discussions and invariably they  
are about

mainstream languages like C++.
http://www.amazon.com/Runtime-Revolution-Studio/dp/B001K42BW0/
http://www.amazon.com/Runtime-Revolution-Enterprise/dp/B001K53I12/


Well done.

With the product listed there under its actual name, I did not  
hesitate to add my comments.  I agree that it's helpful for all of  
us for others to do the same.


--
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: Looking for ugly code comparisons WAS: Slashdotter looking for kids' programming language

2008-12-11 Thread Judy Perry
Francis,
No!  I'm not looking to embarass anyone here!  I just want to show people
that you can do things easier -- and certainly easier for a child -- in Rev
than in all those other languages being suggested.

And, of course, you should see MY lousy code ;-)

Judy
http://revined.blogspot.com

On Thu, Dec 11, 2008 at 10:21 AM, Francis Nugent Dixon
wrote:

> Judy,
>
> This time you have really got everybody scared.
> I, for one (after 45 years of programming), will
> NEVER show you my UGLY code examples, not in
> Algol, 1401 Autocoder, Fortran, Cobol,
> 360 Assembler, RPG, PL/1, Basic, Hypertalk, etc.
>
> And now with the terrific one-liners on this
> forum, showing me how Revolution CAN be written,
> you have even less chance.
>
> I keep my lousy programming to myself.
>
> But (sigh) it always worked :)
>
> -Francis
>
> ___
> use-revolution mailing list
> use-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: Looking for ugly code comparisons WAS: Slashdotter looking for kids' programming language

2008-12-11 Thread Judy Perry
Mark,
Thanks; I am still laughing at your favorite ;-)

Judy
http://revined.blogspot.com

On Thu, Dec 11, 2008 at 10:21 AM, Mark Wieder wrote:

> Judy-
>
> Thursday, December 11, 2008, 9:52:39 AM, you wrote:
>
> > Does anyone have any ugly examples?
>
> You can check out the Obfucated C Code Contest archives here:
>
> http://www0.us.ioccc.org/main.html
>
> My favorite of the bunch:
>
> http://www0.us.ioccc.org/1990/westley.c
>
> "The gloves are OFF this time, I detest you, snot\n\0sed GEEK!");
>
> --
> -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: Looking for ugly code comparisons WAS: Slashdotter looking forkids' programming language

2008-12-11 Thread Bill Marriott
A few weeks ago, I came across a blog by someone who actually ran a contest 
for *readable* code. The assignment was to write an algorithm for producing 
anagrams. My response, and links to the original contest (where you can see 
some truly hideous examples) can be found at http://revuser.com/readable.htm


"Judy Perry"  
wrote in message 
news:4be051070812110952w60e52cc5oee29fc14d9a15...@mail.gmail.com...
>I again come hat-in-hand to ask for some really ugly-looking code examples
> in those "real world" programming languages to compare with Rev for the
> Slashdot thread.
> Posters there are actually recommending things like Assembly(!), Java, & 
> C#!
> 
>
> Specifically the OP was looking to teach basics such as conditionals,
> variables & loops.
>
> Does anyone have any ugly examples?



___
use-revolution mailing list
use-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: Looking for ugly code comparisons WAS: Slashdotter looking for kids' programming language

2008-12-11 Thread Mark Schonewille

Hi Judy,

A few very simple examples. Revolution is clearly much more readable  
and easier to work with for starting programmers than other languages.


# revolution
on foo
  repeat with x = 32 to 255
put x & " " & numToChar(x) & cr after msg
  end repeat
end foo

This one is hardly readable if you're not used to reading programing  
code:


# php


Just for fun, here's the AppleScript version. Quite similar to  
Revolution, but much more picky.


-- applescript
on foo()
set myList to ""
repeat with x from 32 to 255
set myList to myList & x & "  " & (ASCII character x) & 
return
end repeat
return myList
end foo

Btw, if you want ugly code, this one should not be omitted...

0 REM BASIC
10 LET x = 31
20 LET X = X + 1
30 PRINT x,"",CHR$(x)
40 IF x < 255 GOTO 20
50 END

I've tested all the examples above. They all work.

Of course, there is a large collection of programming languages  
already and people can easily pick the one that looks easy at .


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Dutch forum: http://runrev.info/rrforum

We are always looking for new projects! Feel free to contact us to  
discuss your custom software project!


On 11 dec 2008, at 18:52, Judy Perry wrote:

I again come hat-in-hand to ask for some really ugly-looking code  
examples
in those "real world" programming languages to compare with Rev for  
the

Slashdot thread.
Posters there are actually recommending things like Assembly(!),  
Java, & C#!



Specifically the OP was looking to teach basics such as conditionals,
variables & loops.

Does anyone have any ugly examples?

Judy
http://revined.blogspot.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: Looking for ugly code comparisons WAS: Slashdotter looking for kids' programming language

2008-12-11 Thread Brian Yennie
If you want ugly code in Rev, the key is to do things in a horrible,  
obtuse and irrational fashion. Smoke and mirrors, my friends!

(nope, haven't tested this but it looks right to me =))

on foo
 put item -5 of "fox,cat,dog,horse" into t
 put 0*pi*100 into x
 repeat while (x < (256 - charToNum(space)))
 put empty into l
 put numToChar(x+32) after l
 put numToChar(32) before l
 put (x+32) before l
 put l into line (x+1) of t
 put x + 1 into x
 end repeat
 replace space with "   "&space&space&space&"   " in t
 sort lines of t numeric by word 1 of each
 put line 1 to -1 of (t&cr)
end foo


Hi Judy,

A few very simple examples. Revolution is clearly much more readable  
and easier to work with for starting programmers than other languages.


# revolution
on foo
repeat with x = 32 to 255
  put x & " " & numToChar(x) & cr after msg
end repeat
end foo

This one is hardly readable if you're not used to reading programing  
code:


# php


Just for fun, here's the AppleScript version. Quite similar to  
Revolution, but much more picky.


-- applescript
on foo()
set myList to ""
repeat with x from 32 to 255
set myList to myList & x & "  " & (ASCII character x) & 
return
end repeat
return myList
end foo

Btw, if you want ugly code, this one should not be omitted...

0 REM BASIC
10 LET x = 31
20 LET X = X + 1
30 PRINT x,"",CHR$(x)
40 IF x < 255 GOTO 20
50 END

___
use-revolution mailing list
use-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: Looking for ugly code comparisons WAS: Slashdotter looking for kids' programming language

2008-12-11 Thread Judy Perry
Oh, heavens, NO!
I want ugly code in OTHER languages... legitimate, legitimately ugly code in
other languages.

If I wanted ugly code in Rev, I could simply use my own!

:-/

Judy
http://revined.blogspot.com

On Thu, Dec 11, 2008 at 7:41 PM, Brian Yennie wrote:

> If you want ugly code in Rev, the key is to do things in a horrible, obtuse
> and irrational fashion. Smoke and mirrors, my friends!
> (nope, haven't tested this but it looks right to me =))
>
> on foo
>  put item -5 of "fox,cat,dog,horse" into t
>  put 0*pi*100 into x
>  repeat while (x < (256 - charToNum(space)))
> put empty into l
> put numToChar(x+32) after l
> put numToChar(32) before l
> put (x+32) before l
> put l into line (x+1) of t
> put x + 1 into x
>  end repeat
>  replace space with "   "&space&space&space&"   " in t
>  sort lines of t numeric by word 1 of each
>  put line 1 to -1 of (t&cr)
> end foo
>
>
>  Hi Judy,
>>
>> A few very simple examples. Revolution is clearly much more readable and
>> easier to work with for starting programmers than other languages.
>>
>> # revolution
>> on foo
>> repeat with x = 32 to 255
>>  put x & " " & numToChar(x) & cr after msg
>> end repeat
>> end foo
>>
>> This one is hardly readable if you're not used to reading programing code:
>>
>> # php
>> > for ($chrNr=32;$chrNr < 255;$chrNr++)
>> {
>>echo $chrNr."".chr($chrNr)."\n";
>> }
>> ?>
>>
>> Just for fun, here's the AppleScript version. Quite similar to Revolution,
>> but much more picky.
>>
>> -- applescript
>> on foo()
>>set myList to ""
>>repeat with x from 32 to 255
>>set myList to myList & x & "  " & (ASCII character x) &
>> return
>>end repeat
>>return myList
>> end foo
>>
>> Btw, if you want ugly code, this one should not be omitted...
>>
>> 0 REM BASIC
>> 10 LET x = 31
>> 20 LET X = X + 1
>> 30 PRINT x,"",CHR$(x)
>> 40 IF x < 255 GOTO 20
>> 50 END
>>
> ___
> use-revolution mailing list
> use-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: Looking for ugly code comparisons WAS: Slashdotter looking for kids' programming language

2008-12-11 Thread J. Landman Gay

Brian Yennie wrote:
If you want ugly code in Rev, the key is to do things in a horrible, 
obtuse and irrational fashion. Smoke and mirrors, my friends!

(nope, haven't tested this but it looks right to me =))

on foo
 put item -5 of "fox,cat,dog,horse" into t
 put 0*pi*100 into x
 repeat while (x < (256 - charToNum(space)))
 put empty into l
 put numToChar(x+32) after l
 put numToChar(32) before l
 put (x+32) before l
 put l into line (x+1) of t
 put x + 1 into x
 end repeat
 replace space with "   "&space&space&space&"   " in t
 sort lines of t numeric by word 1 of each
 put line 1 to -1 of (t&cr)
end foo


You should omit the line: put x + 1 into x

Then wait to see what happens.

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


Re: Spell check in a text field (how do I)

2008-12-11 Thread Scott Morrow

Hello Jim,

I'm no expert on spell checking but when I needed a cross-platform  
spell checker written in rev I broke the problem into 3 parts.

1.  A  UI for interacting with the spell checker
2.  A word checker that walks through the given text, word at a time,  
checking to see if they are in the bank of "real" words
3.  Suggested words... presented in the UI to allow quick correction/ 
selection of the intended word.  I found this last part to be by far  
the most challenging as things get "messy" when dealing with phonics.   
I ended up using a variation of Lawrence Philips' Double Metaphone  
algorithm.  The idea is to reduce the misspelled word to a short  
phonetic representation or key.  Previously you would also have  
reduced a subset of the "real" words in your bank to their short  
phonetic keys as well.  You might create a custom property for each  
unique phonetic key and store all the "real" words that reduce to this  
key as a list inside that custom property.  Then you could take the  
misspelled word's key and see if there was a custom property name that  
matched.  The hope then is that inside that custom property would be  
phonetically reasonable suggestions which could be presented to the  
user.


Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web   http://elementarysoftware.com/
email sc...@elementarysoftware.com


On Dec 11, 2008, at 10:32 AM, Jim Schaubeck wrote:


What are some of the ways I can write a stack which has spellchecking
for the users in the text fields?  I have Rev 3.0 Studio (XP) and will
deploy on windows.  Thanks folks!
Jim...
___
use-revolution mailing list
use-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