Shakobox

2008-02-12 Thread René Micout

Hello every body,
On MacOS X, when I use Shakobox, only 256 (sometimes less) first  
sounds (or notes) can be heard ! Why ?

René from Paris___
use-revolution mailing list
use-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: Number of display lines on a Option Menu

2008-02-12 Thread Randy Hengst

Hi Mark,

It is possible to set the option menu choices via a script -- rather  
than entering them via the properties menu. That way you can have any  
number of choices that you need and then change the options choices  
so they are context sensitive. I used this method in a correct-the- 
sentence program I made for a local teacher (known frequently as  
Daily Oral Language in U.S. elementary schools). The correction  
button displays different choices based on the part of the sentence  
the students click on.


If you have an option button called demo, then place this script in  
another button.


put "one" & return & "two" & return &  "three" into button "demo"

The option choices will then be one, two and three in that order.

You can also place the choices in a variable and then put the  
variable into the option button like this:


local tOptionsTemp
put "two" & return & "three" into tOptionsTemp
put tOptionsTemp into button "demo"

Now the button choices will read two, three

Sorry if I missed the point of your original post.

take care,
randy hengst
-

On Feb 12, 2008, at 6:18 PM, mfstuart wrote:



Awesome, thanx for the reply and image, Sarah.
I/we will be waiting for this next version (2.9.0) for this property.
Currently, I'm using 2.8.1 on WINXP.

Thanx,
Mark Stuart


___
use-revolution mailing list
use-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: Number of display lines on a Option Menu

2008-02-12 Thread mfstuart

Awesome, thanx for the reply and image, Sarah.
I/we will be waiting for this next version (2.9.0) for this property.
Currently, I'm using 2.8.1 on WINXP.

Thanx,
Mark Stuart


Sarah Reichelt-2 wrote:
> 
>> What Preference page is it on and what is the name of the Preference
>> property?
>> I don't see this property on the Inspector for the Option button - it's
>> just
>> not there.
>> I do see the following properties: text (a list of the options to
>> display)
>> and menuName. These are radio buttons.
> 
> Have a look at this Mark:
> 
> 
> I have put an orange box around the relevant entry.
> 
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Number-of-display-lines-on-a-Option-Menu-tp15426131p15446492.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


Re: Number of display lines on a Option Menu

2008-02-12 Thread Sarah Reichelt
On Feb 13, 2008 9:40 AM, Marty Knapp <[EMAIL PROTECTED]> wrote:
> I checked my copy of Rev 2.8.1 (on Mac 10.5.1) and the property
> inspector does not show this. I fired up Rev 2.6.1 and there it does
> show the option to select the number of displayed menu items.

Sorry Mark, I was using 2.9.0. It looks like you will have to just set
it using script for now.

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: Number of display lines on a Option Menu

2008-02-12 Thread Sarah Reichelt
> What Preference page is it on and what is the name of the Preference
> property?
> I don't see this property on the Inspector for the Option button - it's just
> not there.
> I do see the following properties: text (a list of the options to display)
> and menuName. These are radio buttons.

Have a look at this Mark: 

I have put an orange box around the relevant entry.

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: Number of display lines on a Option Menu

2008-02-12 Thread Marty Knapp
I checked my copy of Rev 2.8.1 (on Mac 10.5.1) and the property 
inspector does not show this. I fired up Rev 2.6.1 and there it does 
show the option to select the number of displayed menu items.


FWIW,

Marty Knapp

Hi Mark,
What Preference page is it on and what is the name of the Preference
property?
I don't see this property on the Inspector for the Option button - it's just
not there.
I do see the following properties: text (a list of the options to display)
and menuName. These are radio buttons.

Am I missing something? And if this is missing, what else am I missing?

Thanx,
Mark Stuart



Mark Wieder wrote:
  

Mark-

Depending on how you have your preferences set, the Property Inspector
will 
display this as "menuLines" or as "Display x items". It's right under the 
list of Menu Items.


--
 Mark Wieder
 [EMAIL PROTECTED] 




___
use-revolution mailing list
use-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: Number of display lines on a Option Menu

2008-02-12 Thread mfstuart

Hi Mark,
What Preference page is it on and what is the name of the Preference
property?
I don't see this property on the Inspector for the Option button - it's just
not there.
I do see the following properties: text (a list of the options to display)
and menuName. These are radio buttons.

Am I missing something? And if this is missing, what else am I missing?

Thanx,
Mark Stuart



Mark Wieder wrote:
> 
> Mark-
> 
> Depending on how you have your preferences set, the Property Inspector
> will 
> display this as "menuLines" or as "Display x items". It's right under the 
> list of Menu Items.
> 
> -- 
>  Mark Wieder
>  [EMAIL PROTECTED] 
> 
> 
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Number-of-display-lines-on-a-Option-Menu-tp15426131p15445207.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


Re: slightly [OT] : online DB protection question

2008-02-12 Thread Sivakatirswami

Björnke von Gierke wrote:

On 11 Feb 2008, at 18:36, jbv wrote:


Here's my question : in order to prevent ppl to register hundreds of
times automatically,
or simply to hinder hackers to send large amounts of automatic cgi
requests and to
clutter mySQL tables with useless registrations, I've been asked to
think about some
protection.


The best Method known to me is the "captcha" 
. Basically you show an image of 
distorted and crossed out text, and the user has to enter what he 
reads. But these images have to be generated randomly, and this isn't 
really simple to do with any http-server software. Also the Way you 
distord and add lines need to follow some rules, otherwise it's easily 
circumvented.


Actually a "soft" way of generating random images (relatively random) is 
to simply sit in photoshop and
for as long as you find it interesting, create images of words and name 
them


1.gif
2.gif
3.gif
#
24.gif

and then the CGI that dynamically generates your page
has only to do a simple

put (random(24))&".gif" into tImage

and load this string into your form template and you are done.

You obviously need to keep note of the words you have created and use 
that list in your validation routine.


I sent the full "recipe" to jbv off list (for security reasons, since 
these archives are searchable on the web...)


Obviously hackable over time if some has a real strong intent to get 
thru your forms, but strong enough to stop the bots...











___
use-revolution mailing list
use-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: Number of display lines on a Option Menu

2008-02-12 Thread Mark Wieder
Mark-

Depending on how you have your preferences set, the Property Inspector will 
display this as "menuLines" or as "Display x items". It's right under the 
list of Menu Items.

-- 
 Mark Wieder
 [EMAIL PROTECTED] 



___
use-revolution mailing list
use-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: Make a cheap web server with simple no-CGI read write on port 80

2008-02-12 Thread Richard Gaskin

Jean-Marc wrote:

The idea of this cheap html server came from "chat server" demo stack.
I tried, it works quite fine.


Good work!

Way back in the olden days Scott Raney once wrote what he called 
mcHTTPd, an HTTP server built with the Rev engine (back then it was 
called "MetaCard", hence the "mc" part).


One thing he noted about that which may be another boost for you:  he 
insisted the engine is impervious to buffer overflows, so a whole range 
of potential security risks with many server software solutions is (at 
least according to him) not something we need to worry about.


Now that you've had a taste of the ease and power of building your own 
server, if you haven't seen Andre Garzia's 'Rev On Rockets' you're in 
for a treat:




And FWIW, I tried to get the URL to Raney's old mchttpd, but it seems 
his public FTP is offline.  I have a copy of the original zip archive, 
and have posted it for you here:



There might be some things he does in there worth lifting for your 
server project. :)


--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: 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: Make a cheap web server with simple no-CGI read write on port 80

2008-02-12 Thread Andre Garzia
Jean,

Been there too. Check http://andregarzia.com/RevOnRockets for a 100%
transcript web server :-D

Cheers
andre

On 2/12/08, delorme <[EMAIL PROTECTED]> wrote:
>
> Hi from France!
>
> The idea of this cheap html server came from "chat server" demo stack.
> I tried, it works quite fine.
> Next is a sum-up:
>
> On Openstack
> .  accept connections on port 80 with message GotAConnection
>
> on GotAConnection aSocket
> .  read from socket aSocket for 1 line
> .  analyze received line (GET or POST)
> .  read from socket aSocket with message GotNextLines
>
> on GotNextLines aSocket , ReceivedLines
> .  Analyze ReceivedLines
> .  Do any processing you want with the user request
> .  Make TheHtmlAnswer from pre-made file + replaced text (wanted GET file ou
> POST answer)
> .  write TheHtmlAnswer to socket
>
> Any distant web browser then gets the requested .html files (as forms with
> submit buttons), or POST anwsers after button clicks (submits) in previous
> sent forms.
>
> Is'nt life easy?
> The only limit is that only html text is replied (no image) because no
> Apache server is used.
> Also have to record socket connections context in a gSocketConnectionsTable
> because many connections are available (which .htm file must be sent back
> when GotNextLines?).
> Thank you for your feedback and own return on experience about making a web
> server from Revolution.
>
> Jean-Marc
> --
> View this message in context: 
> http://www.nabble.com/Make-a-cheap-web-server-with-simple-no-CGI-read-write-on-port-80-tp15434481p15434481.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>


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


Make a cheap web server with simple no-CGI read write on port 80

2008-02-12 Thread delorme

Hi from France!

The idea of this cheap html server came from "chat server" demo stack.
I tried, it works quite fine.
Next is a sum-up:

On Openstack
.  accept connections on port 80 with message GotAConnection

on GotAConnection aSocket
.  read from socket aSocket for 1 line
.  analyze received line (GET or POST)
.  read from socket aSocket with message GotNextLines

on GotNextLines aSocket , ReceivedLines
.  Analyze ReceivedLines
.  Do any processing you want with the user request
.  Make TheHtmlAnswer from pre-made file + replaced text (wanted GET file ou
POST answer)
.  write TheHtmlAnswer to socket 

Any distant web browser then gets the requested .html files (as forms with
submit buttons), or POST anwsers after button clicks (submits) in previous
sent forms.

Is'nt life easy?
The only limit is that only html text is replied (no image) because no
Apache server is used.
Also have to record socket connections context in a gSocketConnectionsTable
because many connections are available (which .htm file must be sent back
when GotNextLines?).
Thank you for your feedback and own return on experience about making a web
server from Revolution.

Jean-Marc
-- 
View this message in context: 
http://www.nabble.com/Make-a-cheap-web-server-with-simple-no-CGI-read-write-on-port-80-tp15434481p15434481.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


Re: Number of display lines on a Option Menu

2008-02-12 Thread mfstuart

Hi Sarah,
I'm sorry, but I don't see a "number of lines" property on the Basic
Properties for the Option button.
Actually, I don't see the property anywhere for this type of button.
I see the property "Access with mouse button". This is the only numeric
property for Basic Properties.
But I have found the "menuLines" property in the Rev Doc. I assume I will
have to put a "set menuLines of..." into the "on openCard" script.

Thanx Sarah.
Mark Stuart



Sarah Reichelt-2 wrote:
> 
>> Is there a way to set the number of lines that will display for an Option
>> menu button?
>> By default there are 5 lines displayed. Can this be increased to display,
>> say 15 lines, or whatever number I'd set it to?
>> Scrolling thru a list of many items is inefficient to the user.
> 
> In the Inspector -> basic properties, there is a field for entering
> the number of lines.
> You can also set it by script using the menuLines property e.g. set
> the menuLines of btn "MyLongMenu" to 15
> 
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Number-of-display-lines-on-a-Option-Menu-tp15426131p15436798.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


Re: logicalTrunc

2008-02-12 Thread Richard Gaskin

Kay C Lan wrote:

It would be nice if the Rev Lords rewrote trunc and mod to use offset or
intemDelimiter so that it actually worked 'out of the box'.


In my own admittedly feeble mind, mod seems like a true math operator 
while trun is in essence a string operator (even though it works on 
numeric strings).


So if mod stayed as it is, I'd be okay with that.

But for trunc to conform to human logic, I agree it may be best to 
recognize it as the string operator it is, and revise it accordingly.


--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: 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


Inter-Application Comms using AppleEvents

2008-02-12 Thread Dave

Hi,

I can't seem to get the "Send to Application" command to work. I have  
built a Standalone Application that has an "AppleEvent" handler in  
the stack script (this works since it receives the open and quit  
AppleEvents ok - I display the class and ID in the handler).


I then have a stack in RunRev with the following script on one of the  
buttons:


on mouseUp
  send "HELLO" to application "AETest1" with "AaAaBbBb"
end mouseUp

I expected the AaAa BbBb class and ID to show up in the target  
application, however knowing happens!


Are there any examples on how to do this?

Thanks a lot
All the Best
Dave


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

2008-02-12 Thread Kay C Lan
On Feb 12, 2008 4:17 PM, Eric Chatonet <[EMAIL PROTECTED]>
wrote:

>
> You are right :-)
> Not correct with calculations...
>

Sorry guys, this came up in a different thread so I didn't see that Hugh had
already picked up the MOD problem. I didn't mean to point it out twice ;-)

It would be nice if the Rev Lords rewrote trunc and mod to use offset or
intemDelimiter so that it actually worked 'out of the box'.

Keep up the 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: trunc

2008-02-12 Thread Kay C Lan
On Feb 11, 2008 7:11 PM, Eric Chatonet <[EMAIL PROTECTED]>
wrote:

>
> function logicalTrunc n
>   if n is not a number then return "NAN"
>   return n - (n mod 1)
> end logicalTrunc
>

I don't fully understand Richard's explanation of why machines fail to
represent numbers but I extrapolated that to mean that if trunc doesn't work
then mod would suffer the same failure:

I therefore rewrote Thomas function to include your n  - (n mod 1)
alternative, it looks like this:

put 8.3 into Zahl
put Zahl - (Zahl - (Zahl mod 1)) into Dezimal
put Dezimal*60 & comma & (Dezimal*60 - ((Dezimal *60) mod 1))

Placing the above in the Msg Box and using Thomas' same three examples of
8.1, 8.2 and 8.3, the answers are exactly the same as for trunc, 6,5  12,11
& 18,18.

So I think if Thomas wants to get the answer he's expecting he should avoid
both trunc and mod.

HTH
___
use-revolution mailing list
use-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: taskbar applications

2008-02-12 Thread Eric Chatonet

Hi Viktoras,

Le 12 févr. 08 à 10:07, viktoras didziulis a écrit :

i would appreciate a few hints on how do we create taskbar  
applications in Revolution on Windows. I.e. something like  
Revolution player, skype or anything like that where user sees an  
icon of a running application sitting in the taskbar. If he clicks  
that icon with mouse - context menu appears...


See Currently Unsupported Features in 'Whats_New.txt' in Rev app folder:
the icon, the iconMenu, iconMenuOpening and iconMenuPick
Another alternative is STSTray from Ken Ray (http:// 
www.sonsothunder.com/products/ststray/ststray.htm)



How do we set application to be loaded on startup automatically ?


Put a shortcut/alias into startup folder.

I would like to add this option to preferences of my app, will it  
have to mess with windows xp registry or are there other ways? Any  
hints, online tutorials also on how do we do this on Mac, Linux ?


Many thanks in advance!
Viktoras


Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: [EMAIL PROTECTED]/



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


taskbar applications

2008-02-12 Thread viktoras didziulis
i would appreciate a few hints on how do we create taskbar applications 
in Revolution on Windows. I.e. something like Revolution player, skype 
or anything like that where user sees an icon of a running application 
sitting in the taskbar. If he clicks that icon with mouse - context menu 
appears... How do we set application to be loaded on startup 
automatically ? I would like to add this option to preferences of my 
app, will it have to mess with windows xp registry or are there other 
ways? Any hints, online tutorials also on how do we do this on Mac, Linux ?


Many thanks in advance!
Viktoras
___
use-revolution mailing list
use-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: logicalTrunc

2008-02-12 Thread Eric Chatonet

Hi Hugh,

You are right :-)
Not correct with calculations...

Le 12 févr. 08 à 08:20, [EMAIL PROTECTED] a écrit :


Eric wrote:

function logicalTrunc n
   if n is  not a number then return "NAN"
   return n - (n mod 1)
 end logicalTrunc


Sorry, Eric... MOD suffers from the same same floating point issue   
as TRUNC:


get (36 - 34.1) *  100   --> 190, good
put it - (it MOD 1)--> 189, bad


Avoiding them obtains the expected answer:

get logicalTrunc ((36 - 34.1) *  100) --> 190, good

function logicalTrunc  n
if n is not a number then  return "NAN"
set the  itemDel to "."
return item 1  of n
end logicalTrunc # by Kay C  Lan

or

function  logicalTrunc n
if n is  not a number then return  "NAN"
get offset(".",  n)
  if it > 0  then
delete char it to -1 of n
end if
return  n
end logicalTrunc # by  Richard Gaskin


Bottom line:

Use TRUNC and MOD with  single numbers, not with calculations

/H




Best regards from Paris,
Eric Chatonet.

Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: [EMAIL PROTECTED]/



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