selectedchunk anyone?

2007-01-17 Thread Chipp Walters

I'm trying to figure out where the I-beam cursor sits in a field. Not hard,
check the selectedChunk. But what if AFTER I've clicked a list field? Even
with TraversalOn set to false for a list field, it still insists on
resetting the selectedChunk to it's own 'hilitedline' even though the I-beam
cursor is blinking in the other field.

Any ideas on how to tell where the I-beam cursor is in the first field? I
suppose I can 'send in time' a message to the field, but thought there must
be an easier way...

-Chipp
___
use-revolution mailing list
use-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: Common writable folders

2007-01-17 Thread sims

At 12:45 AM -0600 1/18/07, Ken Ray wrote:

Son of a gun! I never knew this! would have saved me a lot of trouble...


You should have come to Malta and asked me!   ;-)

Save up some more questions in case I am foolish enough to host
another EuroRevCon.   ;-)  I have been known to be very foolish!


sims
___
use-revolution mailing list
use-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: Common writable folders

2007-01-17 Thread Ken Ray


On Jan 18, 2007, at 12:26 AM, sims wrote:


At 8:48 PM -0800 1/17/07, Richard Gaskin wrote:
You mean Apple provides no way for any scripting language to  
request authorization on its own? Not even AppleScript?



For the dialog use AppleScript:
do shell script "command" with administrator privileges

To pass other items use:
do shell script "command" user name "me" password "mypassword" with  
administrator privileges


Son of a gun! I never knew this! would have saved me a lot of trouble...

Thanks!


Ken Ray
Sons of Thunder Software, Inc.
Web Site: http://www.sonsothunder.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


Re: Common writable folders

2007-01-17 Thread sims

At 8:48 PM -0800 1/17/07, Richard Gaskin wrote:
You mean Apple provides no way for any scripting language to request 
authorization on its own? Not even AppleScript?



For the dialog use AppleScript:
do shell script "command" with administrator privileges

To pass other items use:
do shell script "command" user name "me" password "mypassword" with 
administrator privileges



sims
___
use-revolution mailing list
use-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: Common writable folders

2007-01-17 Thread Trevor DeVore

On Jan 17, 2007, at 8:48 PM, Richard Gaskin wrote:


Trevor DeVore wrote:

> On Jan 17, 2007, at 10:55 AM, Richard Gaskin wrote:
>
>> But now I wonder:  Is there a way to do this from within a custom
>> Rev-based installer?   How does one trigger the OS X authentication
>> dialog?
>
> Last weekend I played experimented with an external that will
> display the OS X authentication dialog and then let you execute
> shell commands if the credentials are correct.

You mean Apple provides no way for any scripting language to  
request authorization on its own? Not even AppleScript?


I'm not sure.  I didn't research a means of authorizing via  
AppleScript.  I have an external that I use in my projects already  
and there was lots of sample code for coding Authorization in C so I  
went that route.


--
Trevor DeVore
Blue Mango Learning Systems - www.bluemangolearning.com
[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: Common writable folders

2007-01-17 Thread Richard Gaskin

Trevor DeVore wrote:

> On Jan 17, 2007, at 10:55 AM, Richard Gaskin wrote:
>
>> But now I wonder:  Is there a way to do this from within a custom
>> Rev-based installer?   How does one trigger the OS X authentication
>> dialog?
>
> Last weekend I played experimented with an external that will
> display the OS X authentication dialog and then let you execute
> shell commands if the credentials are correct.

You mean Apple provides no way for any scripting language to request 
authorization on its own? Not even AppleScript?


--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.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


SFTP

2007-01-17 Thread Bridger Maxwell

Hey,
 I am trying to get a server set up on a School District's network, but
they won't let me open an FTP port to the internet unless it is an SFTP
connection.  As far as I can tell, Revolution is not able to open Secure FTP
connections out of the box, but are there any workarounds that anyone knows
about?  Any tips would be greatly appreciated.

 TTFN
   Bridger Maxwell
   CMSEC
___
use-revolution mailing list
use-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: Common writable folders

2007-01-17 Thread Trevor DeVore

On Jan 17, 2007, at 10:55 AM, Richard Gaskin wrote:

But now I wonder:  Is there a way to do this from within a custom  
Rev-based installer?   How does one trigger the OS X authentication  
dialog?


Richard,

Last weekend I played experimented with an external that will display  
the OS X authentication dialog and then let you execute shell  
commands if the credentials are correct.  My plan for my app updater  
is to create shell scripts (.sh) within Rev that runs all of the  
commands I need and then execute that script from Revolution after  
authenticating.  If you want to play around with it I can send you a  
copy.  Just email me.


--
Trevor DeVore
Blue Mango Learning Systems - www.bluemangolearning.com
[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


Very often crash

2007-01-17 Thread Hershel Fisch
Hello I'd wish how to go about this. When ever I need to edit any thing on
the layout that has to do with a group my blood pressure is up the creek.
95% of the time it crashes Rev. I don't know if its a bug or I'm the
bug?(lol)

I don't remember form previous threads if the report to apple also reports
to Rev because that¹s what I did till know. Now I'll post it here. Looks
like it didn't get to Rev I don't how to bugZilla it.

vImage.framework/Versions/A/vImage
0x8a8f2000 - 0x8a902fff com.apple.Accelerate.vecLib 3.0.3 (vecLib 3.0.3)
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib
.framework/Versions/A/vecLib
0x8fd5 - 0x8fd50fff com.apple.Accelerate 1.0.3 (Accelerate 1.0.3)
/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x8fe0 - 0x8fe4 dyld /usr/lib/dyld
0x9000 - 0x9014 libSystem.B.dylib /usr/lib/libSystem.B.dylib
0x901c - 0x9026efff com.apple.CoreFoundation 6.3.9 (299.37)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundatio
n
0x902b - 0x90529fff com.apple.CoreServices.CarbonCore 10.3.7
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Carb
onCore.framework/Versions/A/CarbonCore
0x905a - 0x90610fff com.apple.framework.IOKit 1.3.6 (???)
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x9064 - 0x906c8fff com.apple.CoreServices.OSServices 3.0.1
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSSe
rvices.framework/Versions/A/OSServices
0x9071d000 - 0x9072afff com.apple.CommonPanels 1.2.1 (1.0)
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPane
ls.framework/Versions/A/CommonPanels
0x90733000 - 0x90746fff libRIP.A.dylib
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Framewor
ks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x9081 - 0x90810fff com.apple.ApplicationServices 1.0 (???)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Applicat
ionServices
0x90812000 - 0x9082 com.apple.audio.SoundManager 3.9
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSoun
d.framework/Versions/A/CarbonSound
0x9086 - 0x908c libobjc.A.dylib /usr/lib/libobjc.A.dylib
0x908f5000 - 0x9090 com.apple.openscripting 1.2.1 (???)
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScript
ing.framework/Versions/A/OpenScripting
0x9094 - 0x909b3fff com.apple.DesktopServices 1.2.5
/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/D
esktopServicesPriv
0x90a02000 - 0x90a0dfff com.apple.securityhi 1.2 (90)
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI
.framework/Versions/A/SecurityHI
0x90a2 - 0x90b7bfff com.apple.Foundation 6.3.8 (500.61)
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x90c32000 - 0x90c4cfff libPDFRIP.A.dylib
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Framewor
ks/CoreGraphics.framework/Versions/A/Resources/libPDFRIP.A.dylib
0x90c7 - 0x90c8afff libGL.dylib
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x90cb - 0x90d12fff libGLU.dylib
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dyli
b
0x90d4 - 0x90d40fff com.apple.Carbon 10.3 (???)
/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x90d5 - 0x90d6bfff com.apple.SystemConfiguration 1.7.1 (???)
/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemCo
nfiguration
0x90d7c000 - 0x90d8 com.apple.speech.synthesis.framework 3.2
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Framewor
ks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x90db - 0x90dbbfff com.apple.opengl 1.3.8
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x90e13000 - 0x90e4bfff com.apple.LaunchServices 10.3.5 (98.4)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Framewor
ks/LaunchServices.framework/Versions/A/LaunchServices
0x910c3000 - 0x910d9fff com.apple.QuartzCore 1.3
/System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x91329000 - 0x9137dfff com.apple.bom 1.2.8 (64.2)
/System/Library/PrivateFrameworks/Bom.framework/Versions/A/Bom
0x913a - 0x9145 ColorSync
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Framewor
ks/ColorSync.framework/Versions/A/ColorSync
0x9176 - 0x917f3fff com.apple.print.framework.PrintCore 3.3
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Framewor
ks/PrintCore.framework/Versions/A/PrintCore
0x91836000 - 0x91846fff com.apple.ImageCapture 2.1.5
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCaptu
re.framework/Versions/A/ImageCapture
0x91951000 - 0x91951fff com.apple.CoreServices 10.3 (???)
/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x91953000 - 0x91953fff com.apple.audio.units.Au

Re: Printing Question

2007-01-17 Thread Sarah Reichelt

On 1/18/07, Charles Szasz <[EMAIL PROTECTED]> wrote:

I have on my card six option menu buttons. One set has the year,
months and days based on the system date. The other buttons have the
year, months and days entered by the user. I want to print the card
that has also  text on it but I only want to print the label or
content of the option menus without the option menu itself.  Has
anyone does this before?


In a similar case, I have had a text field positioned exactly
underneath the menu buttons, so that it is not visible. Whenever the
popup changes, put it's selected text into the field underneath. When
printing, hide all the popups and the fields underneath become visible
and will be printed. When printing is finished, show the popups again.

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


Printing Question

2007-01-17 Thread Charles Szasz
I have on my card six option menu buttons. One set has the year,  
months and days based on the system date. The other buttons have the  
year, months and days entered by the user. I want to print the card  
that has also  text on it but I only want to print the label or  
content of the option menus without the option menu itself.  Has  
anyone does this before?



Charles Szasz
[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: Will revOpenDatabase work in a shared-hosting environment

2007-01-17 Thread Luis

Yep, there's that and some that run a VPN server.
Maybe I should have rephrased it to: I haven't found any that will  
allow 'standard' remote connections, but some do provide other means  
of access...


Cheers,

Luis.


On 17 Jan 2007, at 18:14, Stephen Barncard wrote:


Dreamhost.   http://dreamhost.com
They use subdomains for each virtual server. Security accomplished  
by only allowing the SQL server to connect to specified IPs. Easily  
and instantly done through the web panel.




Well know you've peaked my interest.   You haven't found _many_ -  
- - but
have you found _any_ hosting companies that allow Revolution to  
connect to mySQL

remotely?



--


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



___
use-revolution mailing list
use-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: Common writable folders

2007-01-17 Thread Ken Ray


On Jan 17, 2007, at 2:23 PM, Richard Gaskin wrote:


Ken Ray wrote:

J. Landman Gay wrote:

Richard Gaskin wrote:
But now I wonder:  Is there a way to do this from within a  
custom  Rev-based installer?   How does one trigger the OS X   
authentication dialog?


Well, that's the deal. I couldn't find a way to do that without   
using Apple's installer. Most users wouldn't trust a home-made   
dialog that asks for their admin password; they want to see the   
"official" one. Ergo, package installer time.
One thing you can do (and I have done this before) is to make a  
mock  duplicate of the authentication dialog and use shell() to do  
the  stuff that requires authentication.


With all due respect, eee!

:)

The last thing I want to do is start a trend of third-party apps  
mocking up the OS authentication dialog.  I imagine that exploit  
will start happening sooner or later if it hasn't already, but I  
don't want anything with my name on it associated with such schemes.


What I'm hoping to find instead is an option for chmod which will  
bring up the OS authentication dialog.  I'll check the chmod's man  
for that and report back what I find.


That's basically the problem as I see it, Richard - chmod will work  
if you are logged in as root or with authority, but you need to get  
the authority through other means - I don't think there's a way to do  
it with just chmod - but I'd be very interested if you find out how  
to do it.


Ken Ray
Sons of Thunder Software, Inc.
Web Site: http://www.sonsothunder.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


Re: play vs. start

2007-01-17 Thread Phil Davis
Thanks Jackie. Actually I'm using .WAV and .AIF files, ranging in size from 
200KB to maybe 5MB. I'll set up some all-night automated tests using both 
methods on both target platforms and see what happens. As they used to say in 
old-media days, "film at 11". I'll report back.


Thanks -
Phil


J. Landman Gay wrote:

Phil Davis wrote:

I still need the info, so...

I maintain an application that sometimes plays 100's of external 
digital audio
files during a single usage session. Currently the app uses 'start 
player'
method of playing them. Sometimes the app will freeze up, and I think 
it's

related to audio processing.

I want to improve the app's stability. Has anyone found the 'play 
[filepath]'

form to be more stable or less stable than 'start player'?


I haven't had problems with either one, so I can't really say.



Also, does anyone have extra info about the two approaches to audio 
playing that
shed light on differences between the two? Are they doing the exact 
same thing

under the hood?



They are different under the hood. Player objects use QuickTime or, if 
it isn't available, WMP on Windows. The "play" command uses internal 
libraries that are, I think, fairly dated now. The MC docs say that 
"play" is deprecated and all new stacks should use player objects 
instead -- however, as I said, I haven't had any problems with the play 
command. I don't usually ask much of it though.


The play command is far more limited than a player object. Basically you 
can start, stop, and pause an audio file. It will only play a subset of 
audio file formats, basically only those that are not compressed in any 
way, and which are saved at only a few specific sample rates. You can't 
start playback at an arbitrary point, only at the beginning.


I've used "play" for short sound segments, especially those I want to 
embed in a stack (like sound effects) but I don't use it for anything 
elaborate. I think you said you were using mp3 files, right? If so, 
"play" probably isn't an option as I don't believe it will work with 
that file format anyway.



___
use-revolution mailing list
use-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: play vs. start

2007-01-17 Thread J. Landman Gay

Phil Davis wrote:

I still need the info, so...

I maintain an application that sometimes plays 100's of external digital 
audio

files during a single usage session. Currently the app uses 'start player'
method of playing them. Sometimes the app will freeze up, and I think it's
related to audio processing.

I want to improve the app's stability. Has anyone found the 'play 
[filepath]'

form to be more stable or less stable than 'start player'?


I haven't had problems with either one, so I can't really say.



Also, does anyone have extra info about the two approaches to audio 
playing that
shed light on differences between the two? Are they doing the exact same 
thing

under the hood?



They are different under the hood. Player objects use QuickTime or, if 
it isn't available, WMP on Windows. The "play" command uses internal 
libraries that are, I think, fairly dated now. The MC docs say that 
"play" is deprecated and all new stacks should use player objects 
instead -- however, as I said, I haven't had any problems with the play 
command. I don't usually ask much of it though.


The play command is far more limited than a player object. Basically you 
can start, stop, and pause an audio file. It will only play a subset of 
audio file formats, basically only those that are not compressed in any 
way, and which are saved at only a few specific sample rates. You can't 
start playback at an arbitrary point, only at the beginning.


I've used "play" for short sound segments, especially those I want to 
embed in a stack (like sound effects) but I don't use it for anything 
elaborate. I think you said you were using mp3 files, right? If so, 
"play" probably isn't an option as I don't believe it will work with 
that file format anyway.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
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: Common writable folders

2007-01-17 Thread Richard Gaskin

Ken Ray wrote:

J. Landman Gay wrote:

Richard Gaskin wrote:
But now I wonder:  Is there a way to do this from within a custom  
Rev-based installer?   How does one trigger the OS X  
authentication dialog?


Well, that's the deal. I couldn't find a way to do that without  
using Apple's installer. Most users wouldn't trust a home-made  
dialog that asks for their admin password; they want to see the  
"official" one. Ergo, package installer time.


One thing you can do (and I have done this before) is to make a mock  
duplicate of the authentication dialog and use shell() to do the  
stuff that requires authentication.


With all due respect, eee!

:)

The last thing I want to do is start a trend of third-party apps mocking 
up the OS authentication dialog.  I imagine that exploit will start 
happening sooner or later if it hasn't already, but I don't want 
anything with my name on it associated with such schemes.


What I'm hoping to find instead is an option for chmod which will bring 
up the OS authentication dialog.  I'll check the chmod's man for that 
and report back what I find.


Jacque, I hear what you're saying about "standard" installers, but I 
build so frequently that it's a real time sink doing that for both 
platforms several times a week, relative to my one-click option for 
building the standalone and creating the installer all in one automated 
move.


--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.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: Common writable folders

2007-01-17 Thread Ken Ray


On Jan 17, 2007, at 1:08 PM, J. Landman Gay wrote:


Richard Gaskin wrote:

J. Landman Gay wrote:

Richard Gaskin wrote:
I have an app which will be for Mac and Win, and maybe Linux  
down the road, in which I need to store some data in a folder  
which needs to be writable by all users.


Both Mac and Win provide common folders for reading data:

  Mac  /HD/System Folder/Application Support
  Win  C:/Documents and Settings/All Users/Application Data

...but in my testing here only users with admin privileges can  
write to those folders. :(


What is the OS-recommended place to store common data which can  
be written by any user?


I had exactly the same problem with a currently-shipping app. I'm  
writing app-specific data to the two folders you mention above.  
The only way we could work around it was to wrap our app in an OS- 
approved installer and have the installer set the permissions for  
our application support folder to allow access by everyone. The  
app support/app data folders don't need their permissions reset;  
only your own standalone-specific folder has to be set. For Mac  
OS X, we used Apple's package installer. On Windows, most any  
installer will do this for you.

Thanks for the input, Jacque.
But now I wonder:  Is there a way to do this from within a custom  
Rev-based installer?   How does one trigger the OS X  
authentication dialog?


Well, that's the deal. I couldn't find a way to do that without  
using Apple's installer. Most users wouldn't trust a home-made  
dialog that asks for their admin password; they want to see the  
"official" one. Ergo, package installer time.


One thing you can do (and I have done this before) is to make a mock  
duplicate of the authentication dialog and use shell() to do the  
stuff that requires authentication.


Ken Ray
Sons of Thunder Software, Inc.
Web Site: http://www.sonsothunder.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


StackRunner and MySQL

2007-01-17 Thread Sieg Lindstrom
Thanks for the suggestion, Ken. I tried it as follows. StackRunner is in the
same folder that contains the folder "Externals." Here's the syntax I
used...

revSetDatabaseDriverPath "/Externals/Database Drivers"

That didn't fix the problem. Any other suggestions?

Many thanks for your advice.

Sieg Lindstrom

Ken Ray wrote:

> 
> Have you executed "revSetDatabaseDriverPath" in your stack that opens
> before it starts making calls to the database? I believe this is done
> automatically by Rev when you launch it, but StackRunner doesn't do
> this, so your stack will need to do it before you start calling on
> the database...
>>
>> Sieg Lindstrom wrote:
>> Thanks, Ken.
>> 
>> Your suggestion would certainly explain why the database calls sent
>> by this
>> stack don't work on computers where Revolution is not installed,
>> but my
>> computer includes the "dbmysql.bundle" file in the "Database Drivers"
>> folder, and the problem still occurs. Just to make sure I have
>> files in the
>> right places, I have StackRunner in the folder that contains the 2.7.4
>> installation. The "Database Drivers" is nested in that same folder,
>> and the
>> stack I'm trying to run is nested in a folder that's also in the
>> main 2.7.4
>> installation folder. Should that work?


___
use-revolution mailing list
use-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: Common writable folders

2007-01-17 Thread J. Landman Gay

Richard Gaskin wrote:

J. Landman Gay wrote:


Richard Gaskin wrote:
I have an app which will be for Mac and Win, and maybe Linux down the 
road, in which I need to store some data in a folder which needs to 
be writable by all users.


Both Mac and Win provide common folders for reading data:

  Mac  /HD/System Folder/Application Support
  Win  C:/Documents and Settings/All Users/Application Data

...but in my testing here only users with admin privileges can write 
to those folders. :(


What is the OS-recommended place to store common data which can be 
written by any user? 


I had exactly the same problem with a currently-shipping app. I'm 
writing app-specific data to the two folders you mention above. The 
only way we could work around it was to wrap our app in an OS-approved 
installer and have the installer set the permissions for our 
application support folder to allow access by everyone. The app 
support/app data folders don't need their permissions reset; only your 
own standalone-specific folder has to be set. For Mac OS X, we used 
Apple's package installer. On Windows, most any installer will do this 
for you.


Thanks for the input, Jacque.

But now I wonder:  Is there a way to do this from within a custom 
Rev-based installer?   How does one trigger the OS X authentication dialog?




Well, that's the deal. I couldn't find a way to do that without using 
Apple's installer. Most users wouldn't trust a home-made dialog that 
asks for their admin password; they want to see the "official" one. 
Ergo, package installer time.


Our app is a very simple one-file thing that can easily be dragged to 
the Applications folder.  The only reason we needed an installer was for 
the writable permissions problem. I have to admit though, it does lend a 
great deal of professionality when you use an OS-native installer. 
People trust your stuff more.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
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: Common writable folders

2007-01-17 Thread Richard Gaskin

J. Landman Gay wrote:


Richard Gaskin wrote:
I have an app which will be for Mac and Win, and maybe Linux down the 
road, in which I need to store some data in a folder which needs to be 
writable by all users.


Both Mac and Win provide common folders for reading data:

  Mac  /HD/System Folder/Application Support
  Win  C:/Documents and Settings/All Users/Application Data

...but in my testing here only users with admin privileges can write to 
those folders. :(


What is the OS-recommended place to store common data which can be 
written by any user? 


I had exactly the same problem with a currently-shipping app. I'm 
writing app-specific data to the two folders you mention above. The only 
way we could work around it was to wrap our app in an OS-approved 
installer and have the installer set the permissions for our application 
support folder to allow access by everyone. The app support/app data 
folders don't need their permissions reset; only your own 
standalone-specific folder has to be set. For Mac OS X, we used Apple's 
package installer. On Windows, most any installer will do this for you.


Thanks for the input, Jacque.

But now I wonder:  Is there a way to do this from within a custom 
Rev-based installer?   How does one trigger the OS X authentication dialog?


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


play vs. start

2007-01-17 Thread Phil Davis

I still need the info, so...

I maintain an application that sometimes plays 100's of external digital audio
files during a single usage session. Currently the app uses 'start player'
method of playing them. Sometimes the app will freeze up, and I think it's
related to audio processing.

I want to improve the app's stability. Has anyone found the 'play [filepath]'
form to be more stable or less stable than 'start player'?

Also, does anyone have extra info about the two approaches to audio playing that
shed light on differences between the two? Are they doing the exact same thing
under the hood?

Many thanks -
Phil Davis

___
use-revolution mailing list
use-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: Very weird bug, crashes mac os x. (Recipe found)

2007-01-17 Thread J. Landman Gay

Andre Garzia wrote:

Sarah,

the script doesn't matter. If you try a simple hello world application 
the same thing happens. I've got a recipe, it's related to the engine 
that is used to run the script. If you pick the engine from inside the 
Standalone bundle (G4 here, so I've picked the engine for PowerPC) then 
it all runs fine till the point of exiting the script, then it all 
fails, all applications quit, all volumes are ejected, not a chance to act.


That explains it. The standalone engines are not meant for cgi work. I 
know you can tweak the flags so that they work sometimes, but really you 
need to be running the cgi Darwin engine on OS X.


The last Darwin engine is old, but for cgi work I have found that it 
works fine. The sample script you posted, for example, would run okay 
with the older Darwin engine.


I don't think this is a bug, since the standalone engines are only 
intended for building standalones and they expect a full GUI 
installation. You should replace the engine you are using with the last 
Darwin engine, available here:




I have asked for a newer Darwin build, but I will remind RR again.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
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: Error in textFont reporting?

2007-01-17 Thread Bob Warren

Thanks for that Jim!

Regards,
Bob

-

Jim Ault wrote:


Another solution (workaround):  using field 1 and field 2 (hidden)


on action
 if the selectedText is empty then exit to top
 copy
 select char 1 to -1 of fld 2
 paste
 set the textSize of char 1 to -1 of fld 2 to 12  --now same size
 put the effective textFont of char 1 to -1 of fld 2 into fontAnswer
 answer fontAnswer
end action
-- either the font or "mixed"


___
use-revolution mailing list
use-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: Very weird bug, crashes mac os x. (Recipe found)

2007-01-17 Thread Andre Garzia

Sarah,

the script doesn't matter. If you try a simple hello world  
application the same thing happens. I've got a recipe, it's related  
to the engine that is used to run the script. If you pick the engine  
from inside the Standalone bundle (G4 here, so I've picked the engine  
for PowerPC) then it all runs fine till the point of exiting the  
script, then it all fails, all applications quit, all volumes are  
ejected, not a chance to act.


I've just discovered it here by loosing all my work now. I was doing  
a 19gb backup restore here for my macbook is at the repair shop for  
analysis and trying to work out my contracts when I again, lost all  
the work because due to an engine malfunction in a script as silly as  
this one:


#!./Standalone -ui
on startup
get URL "file:tips.txt"
put "Content-Type: text/plain" & cr & cr
put any line of it
do format("tell application \"Finder\"\nactivate\ndisplay dialog  
\"hello\"\nend tell") as "applescript"	

put the result && the alternatelanguages && version()
end startup

the whole thing exploded!!! this is a major major major thing for me.

Andre


On Jan 16, 2007, at 12:49 AM, Sarah Reichelt wrote:


I am invoking a script from the command line in MacOS X. It executes
fine till the end. Then I can briefly see some malloc() errors before
the whole screen goes blue and everything reboots, all apps close, no
saving whatsoever. No way to replicate this bug. The script is dead
simple. The error is unavoidable. Code is inside a try/catch block
and yet it fails just in time for quit.



What is the script Andre? And does it work OK from Terminal?

I haven't had this happen, but maybe if you post the script, someone
might come up with an idea.

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


___
use-revolution mailing list
use-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: Common writable folders

2007-01-17 Thread J. Landman Gay

Richard Gaskin wrote:
I have an app which will be for Mac and Win, and maybe Linux down the 
road, in which I need to store some data in a folder which needs to be 
writable by all users.


Both Mac and Win provide common folders for reading data:

  Mac  /HD/System Folder/Application Support
  Win  C:/Documents and Settings/All Users/Application Data

...but in my testing here only users with admin privileges can write to 
those folders. :(


What is the OS-recommended place to store common data which can be 
written by any user?




I had exactly the same problem with a currently-shipping app. I'm 
writing app-specific data to the two folders you mention above. The only 
way we could work around it was to wrap our app in an OS-approved 
installer and have the installer set the permissions for our application 
support folder to allow access by everyone. The app support/app data 
folders don't need their permissions reset; only your own 
standalone-specific folder has to be set. For Mac OS X, we used Apple's 
package installer. On Windows, most any installer will do this for you.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
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: Will revOpenDatabase work in a shared-hosting environment

2007-01-17 Thread Stephen Barncard

Dreamhost.   http://dreamhost.com
They use subdomains for each virtual server. Security accomplished by 
only allowing the SQL server to connect to specified IPs. Easily and 
instantly done through the web panel.





Well know you've peaked my interest.   You haven't found _many_ - - - but
have you found _any_ hosting companies that allow Revolution to 
connect to mySQL

remotely?



--


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: Will revOpenDatabase work in a shared-hosting environment

2007-01-17 Thread RGould8
Well know you've peaked my interest.   You haven't found _many_ - - - but 
have you found _any_ hosting companies that allow Revolution to connect to 
mySQL 
remotely?

In a message dated 1/17/07 12:12:33 PM, [EMAIL PROTECTED] writes:


> Good luck with that, I haven't found many that will allow that.
> You might be better off with a virtual server, and setting your own
> custom permissions.
> 
> Cheers,
> 
> Luis.
> 
> 
> [EMAIL PROTECTED] wrote:
> > Well, if that's the case, then simplehost.com is toast in my book.   My 
> dream
> > hosting environment is one where I can connect to mySQL from Revolution
> > remotely, and run Ruby on Rails.   I think it may be time for me to 
> switch.
> >
> >
> > In a message dated 1/17/07 11:32:07 AM, [EMAIL PROTECTED] writes:
> >
> >
> >> Hiya,
> >>
> >> Some ISPs will not allow database access from external sources. It's ok
> >> to use php and stuff on the hosting server, but anything outside their
> >> subnet is a no-no. This is the same setup for GoDaddy.
> >>
> >> Cheers,
> >>
> >> Luis.
> >>
> >>
> >> Mark Schonewille wrote:
> >>> Hi,
> >>>
> >>> Are you sure that the MySQL server is using old-style password?
> >>>
> >>> Best,
> >>>
> >>> Mark
> >>>
> >>> --
> >>>
> >>> Economy-x-Talk
> >>> Consultancy and Software Engineering
> >>> http://economy-x-talk.com
> >>> http://www.salery.biz
> >>>
> >>> Get your store on-line within minutes with Salery Web Store software.
> >>> Download at http://www.salery.biz
> >>>
> >>> Op 17-jan-2007, om 17:14 heeft [EMAIL PROTECTED] het volgende geschreven:
> >>>
>  I'm having a rough time getting revOpenDatabase to work on a mySQL
>  database
>  that I am presently hosting at www.simplehost.com.   I've checked the
>  ports on
>  simplehost, and they claim that the port is 3306 for mySQL.   I've
>  written
>  lots of php scripts which successfully pull data from the database
>  locally on the
>  server.   It's just the standalong application in Rev that's the
>  roadblock at
>  the moment.   I've even downloaded the excellent MySQL tests demo, and
>  it's
>  not connecting either.
> 
>  The only variables I can think of that might be causing problems:
> 
>  1)   simplehost.com is blocking access from the outside
>  2)   perhaps I need to try the SSL settings
>  3)   perhaps it's something I'm doing wrong in the way I'm passing
>  data into
>  the revOpenDatabase command
> 
>  Partially, I don't trust my ISP, but partially, I don't trust me
>  either - - -
>  any help is greatly appreciated
> 
>  revOpenDatabase("MySQL","www.simplehost.com","mytestDB',robtest,)
> >>>
> >>> ___
> >>> use-revolution mailing list
> >>> use-revolution@lists.runrev.com
> >>> Please visit this url to subscribe, unsubscribe and manage your
> >>> subscription preferences:
> >>> http://lists.runrev.com/mailman/listinfo/use-revolution
> >>>
> >>>
> >> ___
> >> use-revolution mailing list
> >> use-revolution@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your 
> subscription
> >> preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-revolution
> >>
> >>
> >
> > ___
> > use-revolution mailing list
> > use-revolution@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
> >
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 

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


Re: StartUp message

2007-01-17 Thread Dave Cragg


On 17 Jan 2007, at 15:12, Andre Garzia wrote:


Dave,

also, when you're running a text CGI, the CGI script is "inserted"  
into a stack named "script". if your cgi is


on startup
   put the script of stack "script"
end startup

then you'll see your own source code in the result. This is  
specially useful for debugging. So the startup context in executing  
text script files is stack "script", first card.


I didn't know that, Andre. Thanks for the info.

Cheers
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: Will revOpenDatabase work in a shared-hosting environment

2007-01-17 Thread Luis

Good luck with that, I haven't found many that will allow that.
You might be better off with a virtual server, and setting your own 
custom permissions.


Cheers,

Luis.


[EMAIL PROTECTED] wrote:
Well, if that's the case, then simplehost.com is toast in my book.   My dream 
hosting environment is one where I can connect to mySQL from Revolution 
remotely, and run Ruby on Rails.   I think it may be time for me to switch.



In a message dated 1/17/07 11:32:07 AM, [EMAIL PROTECTED] writes:



Hiya,

Some ISPs will not allow database access from external sources. It's ok
to use php and stuff on the hosting server, but anything outside their
subnet is a no-no. This is the same setup for GoDaddy.

Cheers,

Luis.


Mark Schonewille wrote:

Hi,

Are you sure that the MySQL server is using old-style password?

Best,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Get your store on-line within minutes with Salery Web Store software.
Download at http://www.salery.biz

Op 17-jan-2007, om 17:14 heeft [EMAIL PROTECTED] het volgende geschreven:


I'm having a rough time getting revOpenDatabase to work on a mySQL
database
that I am presently hosting at www.simplehost.com.   I've checked the
ports on
simplehost, and they claim that the port is 3306 for mySQL.   I've
written
lots of php scripts which successfully pull data from the database
locally on the
server.   It's just the standalong application in Rev that's the
roadblock at
the moment.   I've even downloaded the excellent MySQL tests demo, and
it's
not connecting either.

The only variables I can think of that might be causing problems:

1)   simplehost.com is blocking access from the outside
2)   perhaps I need to try the SSL settings
3)   perhaps it's something I'm doing wrong in the way I'm passing
data into
the revOpenDatabase command

Partially, I don't trust my ISP, but partially, I don't trust me
either - - -
any help is greatly appreciated

revOpenDatabase("MySQL","www.simplehost.com","mytestDB',robtest,)


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



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

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




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



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


Re: Will revOpenDatabase work in a shared-hosting environment

2007-01-17 Thread RGould8
Well, if that's the case, then simplehost.com is toast in my book.   My dream 
hosting environment is one where I can connect to mySQL from Revolution 
remotely, and run Ruby on Rails.   I think it may be time for me to switch.


In a message dated 1/17/07 11:32:07 AM, [EMAIL PROTECTED] writes:


> Hiya,
> 
> Some ISPs will not allow database access from external sources. It's ok
> to use php and stuff on the hosting server, but anything outside their
> subnet is a no-no. This is the same setup for GoDaddy.
> 
> Cheers,
> 
> Luis.
> 
> 
> Mark Schonewille wrote:
> > Hi,
> >
> > Are you sure that the MySQL server is using old-style password?
> >
> > Best,
> >
> > Mark
> >
> > --
> >
> > Economy-x-Talk
> > Consultancy and Software Engineering
> > http://economy-x-talk.com
> > http://www.salery.biz
> >
> > Get your store on-line within minutes with Salery Web Store software.
> > Download at http://www.salery.biz
> >
> > Op 17-jan-2007, om 17:14 heeft [EMAIL PROTECTED] het volgende geschreven:
> >
> >> I'm having a rough time getting revOpenDatabase to work on a mySQL
> >> database
> >> that I am presently hosting at www.simplehost.com.   I've checked the
> >> ports on
> >> simplehost, and they claim that the port is 3306 for mySQL.   I've
> >> written
> >> lots of php scripts which successfully pull data from the database
> >> locally on the
> >> server.   It's just the standalong application in Rev that's the
> >> roadblock at
> >> the moment.   I've even downloaded the excellent MySQL tests demo, and
> >> it's
> >> not connecting either.
> >>
> >> The only variables I can think of that might be causing problems:
> >>
> >> 1)   simplehost.com is blocking access from the outside
> >> 2)   perhaps I need to try the SSL settings
> >> 3)   perhaps it's something I'm doing wrong in the way I'm passing
> >> data into
> >> the revOpenDatabase command
> >>
> >> Partially, I don't trust my ISP, but partially, I don't trust me
> >> either - - -
> >> any help is greatly appreciated
> >>
> >> revOpenDatabase("MySQL","www.simplehost.com","mytestDB',robtest,)
> >
> >
> > ___
> > use-revolution mailing list
> > use-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: Common writable folders

2007-01-17 Thread Richard Gaskin

Luis wrote:
>> Other than that you could create this folder on the logged in users'
>> default save location when the app starts up: Each user that uses
>> the app would then have this folder on the HD in the default save
>> location.
>
> Ooops, I meant to include:
>
> The folder created on the app startup would check to see if it has
> already been created. The folder would be created with permissions to
> enable sharing of the contents and copy across the contents of any
> other shared folders of the same name.

I think you're onto it.

I ran a couple of quick tests and found that for Mac an admin can set 
permission on a folder inside of Applications to allow non-admin writes.


On Win if you create a folder in:

 /Documents and Settings/All Users/Application Data/

...and turn off Read Only, the folder can be written by other users.

I just need to work out the command lines for these and add that to the 
custom installer and it should all be good.


Thanks for the input -

--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.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: Will revOpenDatabase work in a shared-hosting environment

2007-01-17 Thread Luis

Hiya,

Some ISPs will not allow database access from external sources. It's ok 
to use php and stuff on the hosting server, but anything outside their 
subnet is a no-no. This is the same setup for GoDaddy.


Cheers,

Luis.


Mark Schonewille wrote:

Hi,

Are you sure that the MySQL server is using old-style password?

Best,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Get your store on-line within minutes with Salery Web Store software. 
Download at http://www.salery.biz


Op 17-jan-2007, om 17:14 heeft [EMAIL PROTECTED] het volgende geschreven:

I'm having a rough time getting revOpenDatabase to work on a mySQL 
database
that I am presently hosting at www.simplehost.com.   I've checked the 
ports on
simplehost, and they claim that the port is 3306 for mySQL.   I've 
written
lots of php scripts which successfully pull data from the database 
locally on the
server.   It's just the standalong application in Rev that's the 
roadblock at
the moment.   I've even downloaded the excellent MySQL tests demo, and 
it's

not connecting either.

The only variables I can think of that might be causing problems:

1)   simplehost.com is blocking access from the outside
2)   perhaps I need to try the SSL settings
3)   perhaps it's something I'm doing wrong in the way I'm passing 
data into

the revOpenDatabase command

Partially, I don't trust my ISP, but partially, I don't trust me 
either - - -

any help is greatly appreciated

revOpenDatabase("MySQL","www.simplehost.com","mytestDB',robtest,)



___
use-revolution mailing list
use-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: Will revOpenDatabase work in a shared-hosting environment

2007-01-17 Thread Andre Garzia

Rob,

I'd try to connect using one of the available third party SQL clients  
from the net such as MacSQL or mySQLAdmin. If you can connect from  
such clients, then you'd be sure the problem is on Rev side or if you  
can't connect, then you'd better bug your ISP.


Andre

On Jan 17, 2007, at 2:14 PM, [EMAIL PROTECTED] wrote:

I'm having a rough time getting revOpenDatabase to work on a mySQL  
database
that I am presently hosting at www.simplehost.com.   I've checked  
the ports on
simplehost, and they claim that the port is 3306 for mySQL.   I've  
written
lots of php scripts which successfully pull data from the database  
locally on the
server.   It's just the standalong application in Rev that's the  
roadblock at
the moment.   I've even downloaded the excellent MySQL tests demo,  
and it's

not connecting either.

The only variables I can think of that might be causing problems:

1)   simplehost.com is blocking access from the outside
2)   perhaps I need to try the SSL settings
3)   perhaps it's something I'm doing wrong in the way I'm passing  
data into

the revOpenDatabase command

Partially, I don't trust my ISP, but partially, I don't trust me  
either - - -

any help is greatly appreciated

revOpenDatabase 
("MySQL","www.simplehost.com","mytestDB',robtest,)

___
use-revolution mailing list
use-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: Common writable folders

2007-01-17 Thread Luis

Ooops, I meant to include:

The folder created on the app startup would check to see if it has 
already been created. The folder would be created with permissions to 
enable sharing of the contents and copy across the contents of any other 
shared folders of the same name.


I think I know what I mean...

Cheers,

Luis.


Luis wrote:

Hiya,

Is this an app for a single workstation? If not, you could create a 
shortcut/symlink to a location on a server and use that as a default for 
the app.
If it's for a single workstation (with many users): I heard that in 
Vista it will change from the current W2K/WXP setup.


Other than that you could create this folder on the logged in users' 
default save location when the app starts up: Each user that uses the 
app would then have this folder on the HD in the default save location.


Cheers,

Luis.


Bob Warren wrote:

Richard Gaskin wrote:


 >I have an app which will be for Mac and Win, and maybe Linux down 
the road, in which I need to store some data in a folder which needs 
to be writable by all users. Both Mac and Win provide common folders 
for reading data: Mac /HD/System Folder/Application Support Win 
C:/Documents and Settings/All Users/Application Data ...but in my 
testing here only users with admin privileges can write to those 
folders. :( What is the OS-recommended place to store common data 
which can be written by any user?


-- 

Sounds like a perfect candidate for a Linux pendrive solution as 
outlined in my "Rev's Portability" thread! That is exactly the kind of 
problem I was trying to outline. It's an example of what I meant by 
"heavy" use of the file system described in the original post. Of 
course, it all depends on whether your app really needs to be run on 
the HD or not. If not, then no problem. If so, then I can't help very 
much, since "cross platform" apps at this level tend to become either 
highly complex or unviable.


Regards,
Bob



___
use-revolution mailing list
use-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: Will revOpenDatabase work in a shared-hosting environment

2007-01-17 Thread Mark Schonewille

Hi,

Are you sure that the MySQL server is using old-style password?

Best,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Get your store on-line within minutes with Salery Web Store software.  
Download at http://www.salery.biz


Op 17-jan-2007, om 17:14 heeft [EMAIL PROTECTED] het volgende geschreven:

I'm having a rough time getting revOpenDatabase to work on a mySQL  
database
that I am presently hosting at www.simplehost.com.   I've checked  
the ports on
simplehost, and they claim that the port is 3306 for mySQL.   I've  
written
lots of php scripts which successfully pull data from the database  
locally on the
server.   It's just the standalong application in Rev that's the  
roadblock at
the moment.   I've even downloaded the excellent MySQL tests demo,  
and it's

not connecting either.

The only variables I can think of that might be causing problems:

1)   simplehost.com is blocking access from the outside
2)   perhaps I need to try the SSL settings
3)   perhaps it's something I'm doing wrong in the way I'm passing  
data into

the revOpenDatabase command

Partially, I don't trust my ISP, but partially, I don't trust me  
either - - -

any help is greatly appreciated

revOpenDatabase 
("MySQL","www.simplehost.com","mytestDB',robtest,)



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


Will revOpenDatabase work in a shared-hosting environment

2007-01-17 Thread RGould8
I'm having a rough time getting revOpenDatabase to work on a mySQL database 
that I am presently hosting at www.simplehost.com.   I've checked the ports on 
simplehost, and they claim that the port is 3306 for mySQL.   I've written 
lots of php scripts which successfully pull data from the database locally on 
the 
server.   It's just the standalong application in Rev that's the roadblock at 
the moment.   I've even downloaded the excellent MySQL tests demo, and it's 
not connecting either.   

The only variables I can think of that might be causing problems:

1)   simplehost.com is blocking access from the outside
2)   perhaps I need to try the SSL settings
3)   perhaps it's something I'm doing wrong in the way I'm passing data into 
the revOpenDatabase command

Partially, I don't trust my ISP, but partially, I don't trust me either - - - 
any help is greatly appreciated

revOpenDatabase("MySQL","www.simplehost.com","mytestDB',robtest,)
___
use-revolution mailing list
use-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: Common writable folders

2007-01-17 Thread Trevor DeVore

On Jan 17, 2007, at 6:33 AM, Richard Gaskin wrote:


Mark Schonewille wrote:

Only admins can install applications that are available to all  
users.  If a user is not an admin, you will have to write to the  
user's  application support/data folder, which means that only the  
current  user can use the application. Operating systems are  
designed this way  to prevent limited users from messing up the  
entire system.


Of course, and I have no problem with the application installation  
requiring an admin.


Richard,

Would it be wrong to set the permissions of your apps folder within  
the /System/Application Support/ folder to the same permissions as  
the /Users/Shared folder during the first run/install?


I would think if you restrict it to your app folder and not the / 
System/Application Support/ folder there wouldn't be an issue but  
that may be breaking some great security rule.


--
Trevor DeVore
Blue Mango Learning Systems - www.bluemangolearning.com
[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: Common writable folders

2007-01-17 Thread Luis

Hiya,

Is this an app for a single workstation? If not, you could create a 
shortcut/symlink to a location on a server and use that as a default for 
the app.
If it's for a single workstation (with many users): I heard that in 
Vista it will change from the current W2K/WXP setup.


Other than that you could create this folder on the logged in users' 
default save location when the app starts up: Each user that uses the 
app would then have this folder on the HD in the default save location.


Cheers,

Luis.


Bob Warren wrote:

Richard Gaskin wrote:


 >I have an app which will be for Mac and Win, and maybe Linux down the 
road, in which I need to store some data in a folder which needs to be 
writable by all users. Both Mac and Win provide common folders for 
reading data: Mac /HD/System Folder/Application Support Win C:/Documents 
and Settings/All Users/Application Data ...but in my testing here only 
users with admin privileges can write to those folders. :( What is the 
OS-recommended place to store common data which can be written by any user?


-- 

Sounds like a perfect candidate for a Linux pendrive solution as 
outlined in my "Rev's Portability" thread! That is exactly the kind of 
problem I was trying to outline. It's an example of what I meant by 
"heavy" use of the file system described in the original post. Of 
course, it all depends on whether your app really needs to be run on the 
HD or not. If not, then no problem. If so, then I can't help very much, 
since "cross platform" apps at this level tend to become either highly 
complex or unviable.


Regards,
Bob



___
use-revolution mailing list
use-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: Common writable folders

2007-01-17 Thread Bob Warren

Richard Gaskin wrote:


>I have an app which will be for Mac and Win, and maybe Linux down the 
road, in which I need to store some data in a folder which needs to be 
writable by all users. Both Mac and Win provide common folders for 
reading data: Mac /HD/System Folder/Application Support Win C:/Documents 
and Settings/All Users/Application Data ...but in my testing here only 
users with admin privileges can write to those folders. :( What is the 
OS-recommended place to store common data which can be written by any user?


--
Sounds like a perfect candidate for a Linux pendrive solution as 
outlined in my "Rev's Portability" thread! That is exactly the kind of 
problem I was trying to outline. It's an example of what I meant by 
"heavy" use of the file system described in the original post. Of 
course, it all depends on whether your app really needs to be run on the 
HD or not. If not, then no problem. If so, then I can't help very much, 
since "cross platform" apps at this level tend to become either highly 
complex or unviable.


Regards,
Bob



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

2007-01-17 Thread Andre Garzia

Dave,

also, when you're running a text CGI, the CGI script is "inserted"  
into a stack named "script". if your cgi is


on startup
   put the script of stack "script"
end startup

then you'll see your own source code in the result. This is specially  
useful for debugging. So the startup context in executing text script  
files is stack "script", first card.


Andre

On Jan 17, 2007, at 11:35 AM, Dave Cragg wrote:



On 17 Jan 2007, at 13:14, Mark Schonewille wrote:
The startUp message is different. The docs contain the following  
description of the startUp message:


"Sent to the first stack opened when the application starts up."

So, this appears to be exactly true: the message is sent to the  
stack and not to the card. This causes some confusion and it is  
inconvenient for me, because usually my preOpenstack and startUp  
handlers are connected and I would like to look at them in the  
same script editor. Moreover, HyperCard does send the startUp  
message to the card rather than the stack.


I would like to know your opinion about this.


Not an opinion, just an observation. In "cardless" situations such  
as cgi scripts,the startup message is the only one available.  I  
have no knowledge of the internal workings of the engine, but I  
wonder if this is relevant and is part of the reason why "startup"  
goes to the stack and not the card.


But if it's possible to implement, I can't see any downside.

Cheers
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


___
use-revolution mailing list
use-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: Dr. Strangelove (or: How I Learned to Stop Worrying and Love XML)

2007-01-17 Thread Ken Ray


On Jan 16, 2007, at 7:38 PM, Derek Bump wrote:


Bill Marriott wrote:
I can say that once you figure out what two or three commands you  
need to use to parse an XML file, it's way faster than using chunk  
expressions or some other method.


This is really what I ended up doing.  I created my own "ripText"  
function which pulls the data I need, via offsets, provided it  
follows the XML format's rules.  If it doesn't, I throw an error.   
And since it's standardized (it's the OpenSearch format), any  
errors generated are the result of the XML author and not my program.


I tried Sarah's stack and was amazed as to how nicely it parses the  
XML, but I found that incorporating all of the RevXML commands into  
what should be a simple function was all too complicated (not  
Sarah's stack, but RevXML itself).


There's a learning curve, and you're right, XML can get quite  
complicated depending on who's writing it.  I mean look at RSS...  
depending on the version: you could be there for hours. ;)


True! That's why I wrote a simple plugin to my XML parsing library  
for dealing with RSS feeds, so you could do things like:


   stsXML_GetRSSItemTitles()  --> list of article titles
   stsXML_GetRSSItemProperty(,)  -->  
retrieves a property for an item


So you can do something like this:

   put stsXML_GetRSSItemProperty("MyApp receives kudos at MacWorld  
Expo","link") into tURL

   revGoURL tURL

:-)


Ken Ray
Sons of Thunder Software, Inc.
Web Site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]

(BTW: If anyone's interested in my parsing library or the RSS Plugin,  
you can take a look at:

 http://www.sonsothunder.com/products/xmllib/xmllib.htm
 http://www.sonsothunder.com/products/xmllib/xmllib_rssplugin.htm )
___
use-revolution mailing list
use-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: StartUp message

2007-01-17 Thread Mark Schonewille

Hi Richard,

I just checked it, it appears you're right. I had a reason to ask  
this, but I'll check out a few more things and come back to the  
subject later.


Thanks Richard for testing and Dave for your reply.

Best,

Mark

--


Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Get your store on-line within minutes with Salery Web Store software.  
Download at http://www.salery.biz


Op 17-jan-2007, om 15:42 heeft Richard Gaskin het volgende geschreven:




Fortunately it appears this isn't an error in the engine, just in  
the docs.


I just made a standalone with this handler in both the card and  
stack scripts:


  on startup
answer the params &cr& the name of the target
  end startup

When I run the standalone the Answer box contains:

  startup
  card id 1002

So as far as I can tell, the Rev engine is consistent in this  
regard with HyperCard and other xTalks.


--
 Richard Gaskin
 Fourth World Media Corporation



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

2007-01-17 Thread Richard Gaskin

Mark Schonewille wrote:
The startUp message is different. The docs contain the following  
description of the startUp message:


"Sent to the first stack opened when the application starts up."

So, this appears to be exactly true: the message is sent to the stack  
and not to the card. This causes some confusion and it is  
inconvenient for me, because usually my preOpenstack and startUp  
handlers are connected and I would like to look at them in the same  
script editor. Moreover, HyperCard does send the startUp message to  
the card rather than the stack.


Fortunately it appears this isn't an error in the engine, just in the docs.

I just made a standalone with this handler in both the card and stack 
scripts:


  on startup
answer the params &cr& the name of the target
  end startup

When I run the standalone the Answer box contains:

  startup
  card id 1002

So as far as I can tell, the Rev engine is consistent in this regard 
with HyperCard and other xTalks.


--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.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: Common writable folders

2007-01-17 Thread Richard Gaskin

Mark Schonewille wrote:

Only admins can install applications that are available to all users.  
If a user is not an admin, you will have to write to the user's  
application support/data folder, which means that only the current  
user can use the application. Operating systems are designed this way  
to prevent limited users from messing up the entire system.


Of course, and I have no problem with the application installation 
requiring an admin.


But after it's installed, there are some features which could benefit 
from being available to all users.   To restrict the availability of 
these features to admins seriously limits their usefulness, esp. in 
university lab environments where there may be only one admin for a 
hundred users.


For user-created documents it would be easy enough to just require them 
to navigate to any non-OS-restricted volume when saving.  But in this 
case the data isn't explicitly user-generated; it's done automatically 
by the app for stuff used by the app internally, the sort of thing one 
might normally find in "Application Support" (Mac) or "Application Data" 
(Win), but of benefit to all users hence my question.


I suppose I have an easy out:  if users complain about not having 
certain features using the same data for all users, I can just tell them 
that it certainly isn't my decision, it was made for us by OS vendors, 
and point them to the OS vendor support page.


But that seems a clumsy and ultimately unproductive option.  I was 
hoping that OS vendors anticipated the usefulness of common data, and 
provided at least one directory accessible by all for that purpose.


In the meantime I'll add an option for admins to assign a 
non-OS-restricted volume during install for such data as a workaround


--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.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: StartUp message

2007-01-17 Thread Dave Cragg


On 17 Jan 2007, at 13:14, Mark Schonewille wrote:
The startUp message is different. The docs contain the following  
description of the startUp message:


"Sent to the first stack opened when the application starts up."

So, this appears to be exactly true: the message is sent to the  
stack and not to the card. This causes some confusion and it is  
inconvenient for me, because usually my preOpenstack and startUp  
handlers are connected and I would like to look at them in the same  
script editor. Moreover, HyperCard does send the startUp message to  
the card rather than the stack.


I would like to know your opinion about this.


Not an opinion, just an observation. In "cardless" situations such as  
cgi scripts,the startup message is the only one available.  I have no  
knowledge of the internal workings of the engine, but I wonder if  
this is relevant and is part of the reason why "startup" goes to the  
stack and not the card.


But if it's possible to implement, I can't see any downside.

Cheers
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


StartUp message

2007-01-17 Thread Mark Schonewille

Dear everyone,

Whenever I want a script to run only once on preOpenStack, openStack,  
openCard, preOpenCard, openBackground, preOpenBackground etc., I put  
this script into the card script of the first card of the main stack  
of my project. All these messages are sent to the card, rather than  
the stack. Of course, if the card doesn't handle the message, it is  
passed to higher levels in the message hierarchy.


The startUp message is different. The docs contain the following  
description of the startUp message:


"Sent to the first stack opened when the application starts up."

So, this appears to be exactly true: the message is sent to the stack  
and not to the card. This causes some confusion and it is  
inconvenient for me, because usually my preOpenstack and startUp  
handlers are connected and I would like to look at them in the same  
script editor. Moreover, HyperCard does send the startUp message to  
the card rather than the stack.


I would like to know your opinion about this. Please, write me on- or  
off-list ([EMAIL PROTECTED]). If I get positive  
feedback, I'll create a feature request for which you can vote.


Best,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Get your store on-line within minutes with Salery Web Store software.  
Download at http://www.salery.biz


___
use-revolution mailing list
use-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: Common writable folders

2007-01-17 Thread Mark Schonewille

Hi Richard,

Only admins can install applications that are available to all users.  
If a user is not an admin, you will have to write to the user's  
application support/data folder, which means that only the current  
user can use the application. Operating systems are designed this way  
to prevent limited users from messing up the entire system.


Stephen, the shared folder on the Mac is for sharing files with other  
users, not for storing data used by applications.


Best,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Get your store on-line within minutes with Salery Web Store software.  
Download at http://www.salery.biz


Op 17-jan-2007, om 8:28 heeft Richard Gaskin het volgende geschreven:

I have an app which will be for Mac and Win, and maybe Linux down  
the road, in which I need to store some data in a folder which  
needs to be writable by all users.


Both Mac and Win provide common folders for reading data:

  Mac  /HD/System Folder/Application Support
  Win  C:/Documents and Settings/All Users/Application Data

...but in my testing here only users with admin privileges can  
write to those folders. :(


What is the OS-recommended place to store common data which can be  
written by any user?


--
 Richard Gaskin
 Fourth World Media Corporation



___
use-revolution mailing list
use-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: Common writable folders

2007-01-17 Thread Stephen Barncard

On the Mac, can't one use the shared folder in Users?



What is the OS-recommended place to store common data which can be 
written by any user?


--
 Richard Gaskin


--


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: Error in textFont reporting?

2007-01-17 Thread Jim Ault
Another solution (workaround):  using field 1 and field 2 (hidden)

on action
  if the selectedText is empty then exit to top
  copy
  select char 1 to -1 of fld 2
  paste
  set the textSize of char 1 to -1 of fld 2 to 12  --now same size
  put the effective textFont of char 1 to -1 of fld 2 into fontAnswer
  answer fontAnswer
end action
-- either the font or "mixed"


On 1/16/07 10:03 PM, "Bob Warren" <[EMAIL PROTECTED]> wrote:

> Mark (Smith):
> 
> You didn't solve my problem, but you gave me the inspiration to solve it!
> Roughly, what I did was to copy the selected (rich) text to a new "temp"
> field using HTMLtext, and then I examined "temp" char by char to see
> what the textFont was. If each char reported the same font name, then
> the whole selection was declared to be of the same font name (in spite
> of differing sizes).
> 
> Thanks again!
> 
> By the way, does anyone know whether this has been fixed in Rev 2.7?
> Or is it supposedly a "feature" and not a "bug"?
> A reminder of the original problem is below.
> 
> Regards,
> Bob
> 
> --
> ---
> 
> I have a single word (e.g. robert) in a field "test".
> The whole word is in the Courier font, but the middle 2 letters are of a
> size different to the others.
> 
> I am doing something like this in the field's coding:
> 
> on mouseMove
>  if the selectedText is not empty then
>put the textFont of the selectedText into field "result"
>  end if
> end mouseMove
> 
> 
> If I select the whole word in field "test", instead of "courier" in the
> field "result" I get "mixed". But it is the SIZE that is mixed, NOT the
> font name!
> 
> I am using Rev 2.6.1.
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution


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