Re: encode text to image

2006-08-31 Thread paolo mazza
Thank you Dar .
I have to store an image in a MySQL database and I was told I could store
the text... it is not gonna work ... I thought it was like that but I
wanted be sure that there was not a way to recover the imagedata from the
text.

So, I have to encode and decode the image data ... I tryed this way, but
unfortunately , when I decode image data and upload it in in the database,
some chars get lost.

Ciao Paolo



 I imported an image as text (URL file:xxx)
 I wonder if I can convert the text file to binary and set the  
 imagedata of
 an image to it

If the image file format is inherently binary, such as PNG or JPEG,  
then you should read it as a binary file (URL binfile:).  Reading a  
binary file as a text file will corrupt it.


If it is really text, then it probably has some header information  
that includes the size, and then a bunch of numerals in decimal or  
hex.  You need to know what its format is.

 From that, you can build imageData.  If the file has an alpha  
channel (transparency) you can also build alphaData.



After you have the image data, set the text of the image to empty  
then set the height and width of the image, then set the imageData  
(and alphaData).  (I'm going by memory; there might be a flaw in that.)

If the image file is really JPEG or PNG then simply set the text of  
the image to the value.

Dar Scott



Paolo Mazza
NEOL SRL
Via Calatafimi, 16 - 35137 PADOVA 
www.neol.it   [EMAIL PROTECTED]
Tel 049-7386590

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


Re: How I can to save files .txt on internet?

2006-08-31 Thread Klaus Major

Hi Alvaro,

Thank you Klauss ... Good instructions, but where we can I to place  
the

username and password of the server?


I think Mark Smith already answered this:
ftp://username:[EMAIL PROTECTED]/directory/file

But, madre de dios, my name is STILL spelled Klaus, with only ONE s!
:-D


Cordialmente,
Alvaro Abril
Tecnología
Divertia S.A.
www.fantasticguatemala.com
Tel. 502 2410 4600
Fax.502 2410 4646
Guatemala


Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

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

2006-08-31 Thread jbv


Hershel,

Actually you need to place the db driver inside a folder of your choice
and let it know to the rev cgi engine by these 2 lines in your scripts.

JB

 On 8/30/06 5:18 PM, jbv [EMAIL PROTECTED] wrote:

 put /usr/local/bin/ into path
 revSetDatabaseDriverPath path
 Hi, doesn't work, Internal error.
 Tanks, Hershel

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

2006-08-31 Thread paolo mazza
JB,
I am Just trying this in MACOSX 
As far as I know the last Rev engine for MacOSX is 2.5
If I send 
revSetDatabaseDriverPath
  to Rev 2.5 i get an error.
Are you sure the mySQL Library is included in the 2.5 engine?
How can I check this?
Thanks  Paolo

How to use Revolution use-revolution@lists.runrev.com writes:
 On 8/30/06 5:18 PM, jbv [EMAIL PROTECTED] wrote:

 put /usr/local/bin/ into path
 revSetDatabaseDriverPath path
 Hi, doesn't work, Internal error.
 Tanks, Hershel



Paolo Mazza
NEOL SRL
Via Calatafimi, 16 - 35137 PADOVA 
www.neol.it   [EMAIL PROTECTED]
Tel 049-7386590

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

2006-08-31 Thread jbv


paolo,

what I know for sure is that the Linux Rev 2.5 I'm using
as cgi engine for more than 2 years on a Linux box accepts
revSetDatabaseDriverPath...

Perhaps should you asked RR support : AFAIR this is
where I got the advice about using Rev 2.5 because it
featured various libs...

JB

 JB,
 I am Just trying this in MACOSX
 As far as I know the last Rev engine for MacOSX is 2.5
 If I send
 revSetDatabaseDriverPath
   to Rev 2.5 i get an error.
 Are you sure the mySQL Library is included in the 2.5 engine?
 How can I check this?
 Thanks  Paolo

 How to use Revolution use-revolution@lists.runrev.com writes:
  On 8/30/06 5:18 PM, jbv [EMAIL PROTECTED] wrote:
 
  put /usr/local/bin/ into path
  revSetDatabaseDriverPath path
  Hi, doesn't work, Internal error.
  Tanks, Hershel

 
 Paolo Mazza
 NEOL SRL
 Via Calatafimi, 16 - 35137 PADOVA
 www.neol.it   [EMAIL PROTECTED]
 Tel 049-7386590

___
use-revolution mailing list
use-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: Sending an apple event with custom parameters (BBEdit roundtrip)

2006-08-31 Thread Ben Rubinstein
Jim Ault [EMAIL PROTECTED] writes:

 
 I think you need to think 'misc' 'dosc' with your own data structure and
 content. 
 
 Google the following dosc misc revolution and look at a couple of the
 archive posts on  our list.
 
 on appleEvent theClass,theID
if theClass is misc and theID is dosc then
   request appleEvent data
  put it into thedata

Hi Jim,

Thanks for the reply - but that's the other end of the round trip.  You're right
that I also need to handle the appleEvent message, in order to receive the
messages from BBEdit when they come in - but I won't be receiving any until I
can send the right command to BBEdit in the first place.

So my question remains, how do I *send* an event with custom parameters?

TIA,

Ben

___
use-revolution mailing list
use-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: Sending an apple event with custom parameters (BBEdit roundtrip)

2006-08-31 Thread Ben Rubinstein
Ken Ray [EMAIL PROTECTED] writes:
 But keep in mind that you cannot do this with Revolution 2.7.3 because of a
 bug that scrambles the apple events. If you use Revolution 2.7.2, you can
 use apple events, but they come in backwards on Universal Binary builds
 (i.e. The class is csim and theID is csod), although PPC builds are OK.
 Anything 2.7.1 or earlier should work properly. See Bug #3809 in Bugzilla
 for more info.

Thanks Ken - that's a handy reminder for when my Rev app starts *receiving*
appleEvents from BBEdit.

However, it's moot until I can figure out how my Rev app can *send* an apple
event with custom parameters.

Perhaps I was too optimistic: maybe my question should have been, not how do I
do this, but *can* Revolution send an apple event with custom parameters?

TIA,

Ben

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


Call for Media Viewer Test: Windows Users Especially

2006-08-31 Thread Sivakatirswami

I would kind request anyone who has time to test the following.

go stack decompress(URL 
http://www.hinduismtoday.com/digital/htde_media-player.rev.gz;)


It is a small Media Viewer that streams on-line video and sound via 
Quicktime.


I have the players set to SMIL files, but we are getting reports  from some
Windows  users that this stack is crashing the standalone  completely.
Some horrible Window message that the our application has to be closed
and there is this ugly message from Microsoft  saying:

The error was caused  by Quicktime player. the Software was created by  
Apple  inc.


There is an auto start the starts one player after 2 secs

The previous version for this stack was  working fine.

So I'm looking at possible  culprit being my innovative attempt to do 
a SMIL
slide show behind audio file playing on top of a series of  seq's that 
call a remote  slide

every 1minute10secs.  Possibly QT on Windows is incapable of handling this.
So I may have shot myself in the foot expecting MS to be able to do what 
Apple can do


Send reports to me off list.

Thanks!
Sivakatirswami



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


Subject: Re: more on the recorder

2006-08-31 Thread rand valentine
 Thanks to the people who have given me information about recording sound in
Revolution on both mac and pc. The bottom line for me is that it doesn't
seem remotely work _at all_. While I was able to get something to work on my
g4 laptop initially (by using the imic input and playing with the system
settings independently), now nothing works, all I get are super, super slow
unrecognizable recordings, whether the recordinput is imic, emic or dflt. I
wonder why this is, and why such an important function is in such bad shape.
I'm using 2.7.2. For those of us who use runrev to produce language
materials, this capacity to record in the program is quite important, since
it provides a means for students to compare their pronunciations with those
of native speakers (by just recording the student and then ab-ing the
student's sound and the native speaker's)

rand valentine
u of wisconsin-madison


___
use-revolution mailing list
use-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: Crash report procedure

2006-08-31 Thread Tereza Snyder


On Aug 30, 2006, at 4:41 AM, Sivakatirswami wrote:
...



Of  course it means we might need  to build in a little  more error  
checking,
perhaps a checksum() on some stack files  and  if  it's not in a  
reasonable
range, then  assume the  files are corrupt and delete  them and get  
fresh copies.

I need to do better at logging the  context and  scenarios.
Frankly this kind of thing is a bit over my head...



A possible strategy could be to provide, at your server, a small file  
with an MD5 digest or other check associated with each stack. Your  
application obtains that file first, then downloads the stack as  
binary data (perhaps writing it to disk with a ~ prefix, as  
Metacard does for stack saves), then checks the file for correctness,  
and finally renames the file and opens it only if it passes the test.


I know it's obvious, but I had to stick my finger in,


t


--
Tereza Snyder

   Califex Software, Inc.
   www.califexsoftware.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: encode text to image

2006-08-31 Thread Wilhelm Sanke

On Thu Aug 31, 2006, paolo mazza paolo.mazza at neol.it wrote:


Thank you Dar .
I have to store an image in a MySQL database and I was told I could store
the text... it is not gonna work ... I thought it was like that but I
wanted be sure that there was not a way to recover the imagedata from the
text.

So, I have to encode and decode the image data ... I tryed this way, but
unfortunately , when I decode image data and upload it in in the database,
some chars get lost.

Ciao Paolo

After you have the image data, set the text of the image to empty  
then set the height and width of the image, then set the imageData  
(and alphaData).  (I'm going by memory; there might be a flaw in that.)


If the image file is really JPEG or PNG then simply set the text of  
the image to the value.


Dar Scott




Getting the text of an image and then later setting the imagedata to 
that text indeed results in very much distorted images. What is probably 
needed here would be property like he formattedtext of image x.
When you compare the number of chars of the text of the image and the 
number of chars of the imagedata you see that a lot of chars is missing 
in the text.-


I used the scripts below in an experimental stack, which worked fine 
with most pictures (that is, with very few pictures some lines are 
missing at the bottom of the image, but otherwise the image is 
undistorted - the reason for the missing lines escapes me).


A. Converting the imagedata to text:

on mouseUp
   put the imageData of image x into iData
   put empty into imagetext
  repeat for each char c in idata
   put chartonum(C) into tc
   put numtochar(tC) after imagetext
 end repeat
 put imagetext into fld imagetext
end mouseUp

B. Setting the imagedata from the text:

on mouseUp
   put the imageData of image x into iData
 put 0 into counter
 put fld imagetext into tText
 repeat for each char C in tText
   add 1 to counter
   put chartonum(char counter of tText) into tC
   put numtochar(tC) into char counter of idata
 end repeat
 set the imageData of image x to iData
 end mouseUp

The important thing here is to first get the imagedata of the image in 
which you want to display the stored imagetext data.

If you use - as a variation of the second script -

put empty into idata and  put numtochar(tC) after idata in the above 
script


you will get a picture, but also a very distorted one.


Regards,

Wilhelm Sanke
http://www.sanke.org/MetaMedia


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

2006-08-31 Thread Joel Guillod

revSetDatabaseDriverPath...


The rev documentation states that :
«The revSetDatabaseDriverPath command is part of the Database  
library. To ensure that the command works in a standalone  
application, you must include this custom library when you create  
your standalone.»


I have no idea but a need to solve this problem. With rev CGI you  
only have the engine not a standalone which includes the library. So  
maybe we have to manually include the revDatabase Library into  
another stack...


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


Communicate with stepper motors?

2006-08-31 Thread Marty Knapp
I was talking with a guy yesterday who said that using Basic you could 
use the printer port on Windows to talk to a stepper motor. I know 
pretty much nothing about robotics (or communicating through ports for 
that matter). Does anyone know if this is possible with Rev? I read 
through the docs and could see that one can read from and write data to 
com ports and LPT ports, but wouldn't a stepper motor just need 
electrical pulses sent to it?


I realize I'm revealing my ignorance to the world here, but any help 
would be appreciated.


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


mySQL RR question

2006-08-31 Thread Ton Kuypers

Hi gang,

I have created a few (and still more coming up) client-server  
applications using RR and mySQL, but now I am in need for a way to to  
create a back-up possibility for remote databases...
The clients are Macs and PC's, the servers running the database  
Server can be Windows or Mac


I need to create a dump of the whole database, including all table  
descriptions and content.
Anyone any idea what to do, to get a dump of the database on one of  
the remote administrator desktops, or on my own development Mac, to  
have a local copy of the database?


What I can do of course is use the DESCRIBE function and create my  
own dump, but is there another way anybody knows of? The content can  
run into thousands and thousands of records, so retrieving that and  
storing it locally can be a small problem when doing it this way, so  
any suggestions are welcome...



Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.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: Communicate with stepper motors?

2006-08-31 Thread Stephen Barncard
I worked with a lot of stepper motors in my days in the movies 
working with Jim Cameron in the early 80's.


You don't want to create the pulses yourself unless you're trying to 
prove something.


Stepper motors require a lot more than 'electrical pulses' sent to 
it. They also would need anywhere from 0 - 5000 pulses per second. 
But the killer part is that steppers need to be RAMPED. That is, they 
need to be started slowly and ramp to speed. So what you need is a 
stepper motor controller to create the pulses.


If you're good with a soldering iron, you can create a controller this way
http://www.controlchips.com/cy545.htm
These are reasonably cheap.

Also stepper motors consume current. YOu can't just take the output 
of an interface directly to a motor. It takes driver transistors and 
a high current low voltage supply to make it work. There are often 4 
or even more  coils to feed, and they must be fed a perfect square 
wave at the right time and in the right sequence, like an internal 
combustion engine.


Superior Electric used to make the packaged products to drive 
steppers that I used at New World Pictures. These are pretty 
expensive, but they contain all you need to drive a motor from a 
computer serial port.

http://www.danahermotion.com/products/product_detail.php?parent_id=549

Finally, you have to decide on a strategy of feedback. That is, you 
need to keep track of the absolute position of whatever you're 
controlling. If it's just 360 degrees, that's one thing. BUt if it's 
controlling a camera running down a track, then you need an external 
way to keep tabs on where you are. For that end one usually uses 
encoders.


Also another alternative might be a DC SERVO which works inside a 
feedback loop. Offset the loop plus or minus voltage and the motor 
runs. Encoders are part of the package. Servos are more accurate and 
can deliver more torque quicker.


I was talking with a guy yesterday who said that using Basic you 
could use the printer port on Windows to talk to a stepper motor. I 
know pretty much nothing about robotics (or communicating through 
ports for that matter). Does anyone know if this is possible with 
Rev? I read through the docs and could see that one can read from 
and write data to com ports and LPT ports, but wouldn't a stepper 
motor just need electrical pulses sent to it?


I realize I'm revealing my ignorance to the world here, but any help 
would be appreciated.


Marty Knapp


--
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: encode text to image

2006-08-31 Thread Dar Scott


On Aug 31, 2006, at 1:47 AM, paolo mazza wrote:

I have to store an image in a MySQL database and I was told I could  
store
the text... it is not gonna work ... I thought it was like that  
but I
wanted be sure that there was not a way to recover the imagedata  
from the

text.

So, I have to encode and decode the image data ... I tryed this  
way, but
unfortunately , when I decode image data and upload it in in the  
database,

some chars get lost.


The name the text for the property of the image that stores the  
standard compressed image is a little strange since the is binary.   
Perhaps it comes from the fact that you can do this...


   put imageValue into image Image 1

... and it is the same as this...

   set the text of image Image 1 to imageValue

...just the same as setting the text of a field.

If you have control over the type, you can store that in MySQL safely  
as a BLOB type, perhaps LONGBLOB.  If you must store it as TEXT, you  
might be OK.  If you are seeing roundtrip conversion problems, then  
you might want to convert the image to base64 using base64Encode()  
and back using base64Decode().  The function base64Encode() maps  
arbitrary binary data into a subset of ASCII characters.


The roundtrip problem (if you have one) might not be in MySQL, but in  
the interface.


Dar Scott
___
use-revolution mailing list
use-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: Skin conductance measurement

2006-08-31 Thread David Glasgow
The guy that designed it was nice enough to send me a copy of his 
thesis.  This, plus the posts from the Revistas makes it clear this is 
way out of my league.  So unless I am offered a Chair at MIT...


Thanks anyway, and if anyone does anything on physiological measurement 
and Rev, be sure to post the news!



Best Wishes,

David Glasgow
Carlton Glasgow Partnership

http://www.i-psych.co.uk

On 29 Aug 2006, at 6:00 pm, [EMAIL PROTECTED] 
wrote:




Don't forget that a Bluetooth interface will also give the maximum 
electrical isolation for the subject!!! (that would actually be my 
FIRST concern!)


Optoisolators or transformers must be used (it's probably a law) 
between a human subject and anything connected to mains-based devices.


That would rule out any DC-scaled sensors (most optoisolators are not 
linear) unless they're wired into a data acquisition module at the 
patient end. Old systems probably used PWM for output to get through 
the isolation.


Isolation and safety should be foremost in medical equipment design. 
(Duh)


Me? I don't want to write software that can blow up something, hurt 
someone or get me sued! ( I guess that also means defense contracts?)



Good luck with your new project. Multiply your estimate of how much 
time it will take by 10, unless you can get out-of-the-box products to 
do what you want. Interfacing with the noisy, drifting, always 
changing Analog world after being in a nice, save, digital-stepped 
world can be a bit jarring.


I'd love to have a software-hardware Bluetooth breadboard kit, with 
rev XCMDs for all platforms.


[I can dream - or make one!!]


sqb



Then you'll have to learn how to program the PIC microcontroller to
access the EDA device data and communicate with the main app. You
could probably get by without the Bluetooth if you could deal with the
limited portability, as that's what would eat up most of the battery
power, but portability seems one of the primary advantages of this
project. All in all, I think this isn't something I'd want to tackle
without having something like the resources of an MIT behind me - note
that this project was a Mechanical Engineering thesis.

--
-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: Communicate with stepper motors?

2006-08-31 Thread Dar Scott


On Aug 31, 2006, at 11:08 AM, Marty Knapp wrote:

I was talking with a guy yesterday who said that using Basic you  
could use the printer port on Windows to talk to a stepper motor. I  
know pretty much nothing about robotics (or communicating through  
ports for that matter). Does anyone know if this is possible with  
Rev? I read through the docs and could see that one can read from  
and write data to com ports and LPT ports, but wouldn't a stepper  
motor just need electrical pulses sent to it?


I realize I'm revealing my ignorance to the world here, but any  
help would be appreciated.


The stepper motor does not use pulses in that sense, but phase  
changes. You won't be able to drive the motor directly with TTL, you  
will need to do level shifting.  Some motors need current going both  
directions, so this might get involved.


The printer port has gotten pretty smart since the last time I used  
it, so this might or might not work.  It might be worth a try.  In  
the BIOS set the printer port to the simplest form you can find.  It  
might be called classic.  You can find some printer port data  
online.  You might be able to rig it so the handshake is always there  
or it always responds to each byte sent out.  Better, put in a  
oneshot or other delay so you can write several bytes and have the  
motor moving at that speed.  You would drive the motor by sending  
four or 8 letters to it in a repeating sequence.


I have used a driver that makes all bits available for bit twiddling,  
so you can get input.  I forgot the name and I don't think it was  
being maintained last I used it.  I have read about another that  
makes this bit twiddling I/O available as though you have a serial port.


I'd look around online for output-only printer port I/O tips.

You might have trouble with jitter and getting up to speed.

You might be better off getting a hobby robot control board from many  
sources and using a serial interface.  You can also try some toy/ 
educational robots.


None of those will do microstepping, but if you have a motor that  
needs both positive and negative currents, you might have off as a  
half step.


Dar Scott
___
use-revolution mailing list
use-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: mySQL RR question

2006-08-31 Thread Ken Ray
On 8/31/06 12:34 PM, Ton Kuypers [EMAIL PROTECTED] wrote:

 Hi gang,
 
 I have created a few (and still more coming up) client-server
 applications using RR and mySQL, but now I am in need for a way to to
 create a back-up possibility for remote databases...
 The clients are Macs and PC's, the servers running the database
 Server can be Windows or Mac
 
 I need to create a dump of the whole database, including all table
 descriptions and content.
 Anyone any idea what to do, to get a dump of the database on one of
 the remote administrator desktops, or on my own development Mac, to
 have a local copy of the database?

It's really simple - you just need to use shell() to call on the mysqldump
command line utility. For example, if you want to dump a database called
test to a file at /Users/ken/test.sql you'd execut this at the command
line (assuming a login of root and no password):

  mysqldump -u root test  /Users/ken/test.sql

Depending on the size of the database this can take anything from a few
seconds to several minutes. To give you an idea, I routinely dump a
database with hundreds of thousands of records to a 250MB .sql file and it
takes about 8 minutes.

If you execute this manually in the console (Terminal in OS X or DOS box
in Windows), you will know that it has completed when you get another
command line prompt. You can, of course, execute it from Rev with shell(),
in which case you won't get control back until the dump has finished.

HTH,

Ken Ray
Sons of Thunder Software
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: Sending an apple event with custom parameters (BBEdit roundtrip)

2006-08-31 Thread Ken Ray
On 8/31/06 5:39 AM, Ben Rubinstein [EMAIL PROTECTED] wrote:

 Ken Ray [EMAIL PROTECTED] writes:
 But keep in mind that you cannot do this with Revolution 2.7.3 because of a
 bug that scrambles the apple events. If you use Revolution 2.7.2, you can
 use apple events, but they come in backwards on Universal Binary builds
 (i.e. The class is csim and theID is csod), although PPC builds are OK.
 Anything 2.7.1 or earlier should work properly. See Bug #3809 in Bugzilla
 for more info.
 
 Thanks Ken - that's a handy reminder for when my Rev app starts *receiving*
 appleEvents from BBEdit.
 
 However, it's moot until I can figure out how my Rev app can *send* an apple
 event with custom parameters.
 
 Perhaps I was too optimistic: maybe my question should have been, not how do I
 do this, but *can* Revolution send an apple event with custom parameters?

You should be able to use an AppleScript wrapper, so you can do something
like this example:

tell application Safari
«event GURLGURL» http://www.apple.com/;
end tell

Note that the characters around event are not less-than and greater-than
symbols (i.e. Not  ) but chevrons (« ») created using Option-\ and
Option-Shift-\.

See:

http://developer.apple.com/documentation/AppleScript/Conceptual/AppleEvents/
debugging_aepg/chapter_9_section_3.html

HTH,

Ken Ray
Sons of Thunder Software
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: mySQL RR question

2006-08-31 Thread Ton Kuypers
ok, the mysqldump I know, what I didn't know I could use it across  
the network...

Will give it a try, thanks :-)

Warm regards,

Ton Kuypers
Digital Media Partners bvba
Tel. +32 (0)477 / 739 530
Fax +32 (0)14 / 71 03 04
http://www.dmp-int.com



On 31-aug-06, at 21:03, Ken Ray wrote:


On 8/31/06 12:34 PM, Ton Kuypers [EMAIL PROTECTED] wrote:


Hi gang,

I have created a few (and still more coming up) client-server
applications using RR and mySQL, but now I am in need for a way to to
create a back-up possibility for remote databases...
The clients are Macs and PC's, the servers running the database
Server can be Windows or Mac

I need to create a dump of the whole database, including all table
descriptions and content.
Anyone any idea what to do, to get a dump of the database on one of
the remote administrator desktops, or on my own development Mac, to
have a local copy of the database?


It's really simple - you just need to use shell() to call on the  
mysqldump
command line utility. For example, if you want to dump a database  
called
test to a file at /Users/ken/test.sql you'd execut this at the  
command

line (assuming a login of root and no password):

  mysqldump -u root test  /Users/ken/test.sql

Depending on the size of the database this can take anything from a  
few

seconds to several minutes. To give you an idea, I routinely dump a
database with hundreds of thousands of records to a 250MB .sql file  
and it

takes about 8 minutes.

If you execute this manually in the console (Terminal in OS X or  
DOS box

in Windows), you will know that it has completed when you get another
command line prompt. You can, of course, execute it from Rev with  
shell(),

in which case you won't get control back until the dump has finished.

HTH,

Ken Ray
Sons of Thunder Software
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



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


Another Plugin Question

2006-08-31 Thread Scott Rossi
Where should libraries used by plugins be placed in the 2.7 folder
structure?

I have a stack to be used as a library by more than one Rev plugin.  I don't
need the stack accessible by users since it only provides functions, but
there doesn't appear to be any means in Rev's Plugins Manager to configure a
stack to open as a library, or to just not open at all.  The only thing that
comes to mind is to have Rev open the library stack as invisible and then
call start using the library stack from my real plugins.  This assumes I
place the library stack in the plugins folder.  Should I be placing the
library somewhere else?

Thanks  Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia  Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.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: encode text to image

2006-08-31 Thread Wilhelm Sanke

On Thu, 31 Aug 2006, Dar Scott [EMAIL PROTECTED] wrote:

The name the text for the property of the image that stores the  
standard compressed image is a little strange since the is binary.   
Perhaps it comes from the fact that you can do this...


   put imageValue into image Image 1

... and it is the same as this...

   set the text of image Image 1 to imageValue

...just the same as setting the text of a field.

(snip)

Dar Scott




Hi Dar,

when I first tried to make use of the text property of images (someone on the list 
mentioned this property, maybe it was you?) I found that setting the text of an image to an 
imagevalue - as you describe it above -just produces a white and blank image, in case the 
imagevalue used was the text of the image extracted before:

Putting the text of an image into a global (or elsewhere)

put the text of image x into imagetext

and then

set the text of image x to imagetext

produces a white and blank image.

Maybe I am missing something very simple here, but all variations I tried with the 
text property failed.-

The solution I showed in my earlier post of this thread (today) does *not* make 
use of the text property, but converts the imagedata chars to text chars, which 
can then indeed be used to restore the original image.
And this opens the possiblity to store imagedata as plain text, which is what I 
guess Paolo intended.

Best regards,

Wilhelm Sanke
www.sanke.org/MetaMedia



___
use-revolution mailing list
use-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: Another Plugin Question

2006-08-31 Thread J. Landman Gay

Scott Rossi wrote:

Where should libraries used by plugins be placed in the 2.7 folder
structure?

I have a stack to be used as a library by more than one Rev plugin.  I don't
need the stack accessible by users since it only provides functions, but
there doesn't appear to be any means in Rev's Plugins Manager to configure a
stack to open as a library, or to just not open at all.  The only thing that
comes to mind is to have Rev open the library stack as invisible and then
call start using the library stack from my real plugins.  This assumes I
place the library stack in the plugins folder.  Should I be placing the
library somewhere else?


I have one of those. I used the Plugin Settings dialog to assign the 
stack to receive a revOpenStack message whenever a stack is opened. 
Then I put a handler in the stack script:


on revOpenStack
 start using this stack
end revOpenStack

Then I set the stack to open invisibly when Rev starts up. After that, 
the first stack I open puts my library in use. Actually, every stack 
that is opened puts it in use all over again, but that doesn't hurt 
anything. If it bothers you, though, you can add:


 if the short name of this stack is not in the stacksinuse
 then start using this stack

--
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: How I can to save files .txt on internet?

2006-08-31 Thread Alvaro Abril - Tecnologia
Hello Klaus.. Thanks ! I have other question. If I need to link .swf files,
how I can?

Cordialmente,
Alvaro Abril
Tecnología
Divertia S.A.
www.fantasticguatemala.com
Tel. 502 2410 4600
Fax.502 2410 4646
Guatemala
-Mensaje original-
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] En nombre de Klaus Major
Enviado el: Jueves, 31 de Agosto de 2006 02:09 a.m.
Para: How to use Revolution
Asunto: Re: How I can to save files .txt on internet?
Importancia: Alta

Hi Alvaro,

 Thank you Klauss ... Good instructions, but where we can I to place  
 the
 username and password of the server?

I think Mark Smith already answered this:
ftp://username:[EMAIL PROTECTED]/directory/file

But, madre de dios, my name is STILL spelled Klaus, with only ONE s!
:-D

 Cordialmente,
 Alvaro Abril
 Tecnología
 Divertia S.A.
 www.fantasticguatemala.com
 Tel. 502 2410 4600
 Fax.502 2410 4646
 Guatemala

Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

___
use-revolution mailing list
use-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: Another Plugin Question

2006-08-31 Thread Dar Scott


On Aug 31, 2006, at 1:43 PM, Scott Rossi wrote:

Where should libraries used by plugins be placed in the 2.7 folder
structure?


These questions are on my mind, too.  I don't have an answer, but I  
have a few hints and opinions.


You might guess that it could go into a new folder Stack Libraries  
next to the plugins folder.  However, the section New Distribution  
Structure of file Whats_New.txt says that the Standalone Builder  
builds using the externals in the parallel folder Externals, so  
there is a risk that the Standalone Builder will start inserting  
everything in folder Stack Libraries into builds.


You might guess that it could go into a folder in the Plugins  
folder.  This might be safe; I think altPlugins uses a folder in the  
plugins folder.  However, it would be nice to have some structure in  
the plugins menu when it gets complicated.  Also, vendors might use a  
submenu to keep all of their plugins from cluttering the plugin  
menu.  One way to get that structure is to use subfolders.  Rev can  
create the menu based on the folder structure.  I like the idea, but  
I suspect it won't happen, so following Chipp's example should be OK.


In the case of darzTimer, I embedded stack libraries and externals in  
the plugin stack, so I avoided the issue.  I start using the  
libraries all in RAM, but the external is in a temp folder for a  
short time.  Nothing is installed and no litter is left about.


I have a stack to be used as a library by more than one Rev  
plugin.  I don't
need the stack accessible by users since it only provides  
functions, but
there doesn't appear to be any means in Rev's Plugins Manager to  
configure a
stack to open as a library, or to just not open at all.  The only  
thing that
comes to mind is to have Rev open the library stack as invisible  
and then
call start using the library stack from my real plugins.  This  
assumes I
place the library stack in the plugins folder.  Should I be placing  
the

library somewhere else?


If the library is embedded, then it might be in all or in the primary  
of those plugins.  That primary plugin can be used to make sure the  
library is start'd.  It can be accessed by the other plugins to make  
sure the library is start'd.  One plugin might have a way to make  
sure it is start'd so users can use it.


If the library is intended to have a life independent of the plugins,  
such as being part of a standalone, then you can have an option to  
install it in some location.  The plugins will need to have some way  
to know where that is so they can use it.  The user can decide where  
that location is.  An OS might have a recommended location for  
support and you can make that the default save location.  Allowing  
the user to choose also makes it clear that you are installing  
something and where it is.


My current plans for the future darzTimer is to allow the user to  
install the library where desired and let the user decide.  However,  
if you learn of the right place to put user accessible libraries, I  
might switch.  I'm currently thinking of distributing everything as  
plugins and let the plugin handle extended installation  updating,  
buying, docs, tutorials, and so on.


I think having a folder for libraries that MIGHT go into a standalone  
could be handy.  Right now there is only the Add Stack File...  
button.  If there was a standard place for libraries, there might be  
check boxes or a multiple selection field.  I wouldn't want them to  
automatically clutter a standalone as is described for the External  
folder.


Dar Scott

___
use-revolution mailing list
use-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: Another Plugin Question

2006-08-31 Thread Dar Scott


On Aug 31, 2006, at 2:30 PM, J. Landman Gay wrote:

Then I set the stack to open invisibly when Rev starts up. After  
that, the first stack I open puts my library in use. Actually,  
every stack that is opened puts it in use all over again, but that  
doesn't hurt anything. If it bothers you, though, you can add:


 if the short name of this stack is not in the stacksinuse
 then start using this stack


Perhaps a robust library should be able to handle (or even exploit)  
being start'd multiple times.


In this case, since the plugin is a friend of the library, it can  
handle the library with kid gloves as needed.  It can even use hidden  
commands as needed.


Dar

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


Re: How I can to save files .txt on internet?

2006-08-31 Thread Klaus Major

Hi Alvaro,


Hello Klaus..


Gracias, correct spelling :-)


Thanks !


You're welcome.


I have other question. If I need to link .swf files,
how I can?


Hmm... Good question...

You have 2 possibilities here:

1.
Use a player object and play the Flash files via Quicktime.
Pro: Built in solution
Con: Needs QuickTime to be installed on the target computer and
QT only supports Flash up to version 5 (or 6?) of Flash.

2.
Use Chipps altBrowser external, that will supply a REAL
internt-browser (inluding Flash etc...!) inside your Rev stacks
and thus can play any Flash content.
Pro: You can display websites inside your stacks on Mac an Win.
Con: You will have to buy this external, but I can really
recommend this solution!

Check Chipps website for more info:
http://www.altuit.com/webs/altuit2/altBrowserCover/default.htm

Hope that helps.


Cordialmente,
Alvaro Abril
Tecnología
Divertia S.A.
www.fantasticguatemala.com
Tel. 502 2410 4600
Fax.502 2410 4646
Guatemala


Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

___
use-revolution mailing list
use-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: encode text to image

2006-08-31 Thread Dar Scott


On Aug 31, 2006, at 2:15 PM, Wilhelm Sanke wrote:


Putting the text of an image into a global (or elsewhere)

put the text of image x into imagetext

and then

set the text of image x to imagetext

produces a white and blank image.

Maybe I am missing something very simple here, but all variations I  
tried with the text property failed.-


I don't see it on Rev 2.7.3 on G4 with OS X 2.7.3 even after going to  
another card and back.


Could there be some setting of paintCompression that affects this?

There is a bug in which some images do not render correctly and a bug  
in which some lose transparency on card changes.  Maybe those are  
related.


Maybe there is an unexpected formatting option in an imported image.

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


Standalone OS X Apps in 2.7.3 - Default Button Broken

2006-08-31 Thread Dan Shafer

I'm probably not searching by the right set of criteria, so there may be a
BZ on this but I wanted to confirm this is a known issue.

If I create a standalone app for OS X using 2.7.3, the default button comes
out looking like the old Classic (OS9) default button rather than the new
throbbing blue one. Not to say I wouldn't actually *prefer* the older
button, but it's clearly wrong.

Is this a known issue? Any fix or workaround or am I forced once again back
to 2.6.1 because of stuff RR broke when moving to the 2.7 family?

--
~~
Dan Shafer, Information Product Consultant and Author
http://www.shafermedia.com
Get my book, Revolution: Software at the Speed of Thought

From http://www.shafermediastore.com/tech_main.html

___
use-revolution mailing list
use-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: Communicate with stepper motors?

2006-08-31 Thread Dar Scott


On Aug 31, 2006, at 12:16 PM, Dar Scott wrote:


You might have trouble with jitter and getting up to speed.


Stephen Barncard mentioned that you need ramping.

I think you can ramp with control from a serial port if you set a  
specified delay in your circuit for the handshake.  All you need to  
do is repeat the same character several times.  For example, suppose  
you use the lower two bits of the character code to control a two  
phase motor.  Your forward stepping cycle could be dfeg allowing  
those bits to be 0, 1, 2 and then 3.  To ramp up and step forward a  
total of 39 times you write this to the printer at one time (assuming  
on g):


ddddfffeeeggddfegdfegdfegdfegdfegdfegddffeeggdddfffg 
d


Knowing your handshake time and the max acceleration and the max  
speed, you can calculate the string before hand.


Now, if this is for more than tinkering, you might want some sort of  
a controller with a serial interface (or an interface that looks like  
serial).


If the timing of the oneshot for handshake makes you go so slow that  
you don't need to ramp, then this is a lot easier.  The motor is  
slow, though.


If you simplify the handshake and don't have a delay, then you need  
to ramp up by sending one character at a time and varying the delay  
between characters.  This will have a little bit of jitter at higher  
speeds and can have problems if you approach the max speed of the motor.


My experience with stepper motors is mostly with scientific instruments.

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


Re: mySQL RR question

2006-08-31 Thread Mark Wieder
Ton-

Thursday, August 31, 2006, 10:34:02 AM, you wrote:

 I need to create a dump of the whole database, including all table
 descriptions and content.

mysqldump

-- 
-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: Communicate with stepper motors?

2006-08-31 Thread Mark Wieder
Marty-

In addition to what Stephen posted, I want to add that if you *do*
decide to write the low-level stuff yourself, stay away from
setSerialControlString (BZ#1708). What you'll end up with is the port
being reset before each new control value is set, and you'll have
extra pulses in uncomfortable places.

-- 
-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: Standalone OS X Apps in 2.7.3 - Default Button Broken

2006-08-31 Thread Ken Ray
On 8/31/06 4:40 PM, Dan Shafer [EMAIL PROTECTED] wrote:

 I'm probably not searching by the right set of criteria, so there may be a
 BZ on this but I wanted to confirm this is a known issue.
 
 If I create a standalone app for OS X using 2.7.3, the default button comes
 out looking like the old Classic (OS9) default button rather than the new
 throbbing blue one. Not to say I wouldn't actually *prefer* the older
 button, but it's clearly wrong.
 
 Is this a known issue? Any fix or workaround or am I forced once again back
 to 2.6.1 because of stuff RR broke when moving to the 2.7 family?

Nope, you just need to copy the Plugins folder from the Rev bundle (in
Contents) into your standalone's bundle. Something I *really hope* will be
automated in the next version of Rev... Right now there are too many oh
yeah, and don't forget... issues when building standalones with Rev to make
it as easy as it should be, IMHO.

Ken Ray
Sons of Thunder Software
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: Call for Media Viewer Test: Windows Users Especially

2006-08-31 Thread Stephen Barncard
Is Micro$oft still doing that stuff to break others' competing 
products? I thought they got busted and had to stop.


sqb



The error was caused  by Quicktime player. the Software was created 
by  Apple  inc.

...

Thanks!
Sivakatirswami



--
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: Call for Media Viewer Test: Windows Users Especially

2006-08-31 Thread Stephen Barncard
In all fairness to MS, I've heard that the version of QT for windoze 
is at least a version or two behind MacOS.   That's not exactly 
bridge building.


sqb

Is Micro$oft still doing that stuff to break others' competing 
products? I thought they got busted and had to stop.


sqb


--
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: Standalone OS X Apps in 2.7.3 - Default Button Broken

2006-08-31 Thread Dan Shafer

Thanks, Ken. I knew there was an answer. Three dot-revs into 2.7 and we
still have these kinds of rough edges? Hm

On 8/31/06, Ken Ray [EMAIL PROTECTED] wrote:


On 8/31/06 4:40 PM, Dan Shafer [EMAIL PROTECTED] wrote:

 I'm probably not searching by the right set of criteria, so there may be
a
 BZ on this but I wanted to confirm this is a known issue.

 If I create a standalone app for OS X using 2.7.3, the default button
comes
 out looking like the old Classic (OS9) default button rather than the
new
 throbbing blue one. Not to say I wouldn't actually *prefer* the older
 button, but it's clearly wrong.

 Is this a known issue? Any fix or workaround or am I forced once again
back
 to 2.6.1 because of stuff RR broke when moving to the 2.7 family?

Nope, you just need to copy the Plugins folder from the Rev bundle (in
Contents) into your standalone's bundle. Something I *really hope* will be
automated in the next version of Rev... Right now there are too many oh
yeah, and don't forget... issues when building standalones with Rev to
make
it as easy as it should be, IMHO.

Ken Ray
Sons of Thunder Software
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





--
~~
Dan Shafer, Information Product Consultant and Author
http://www.shafermedia.com
Get my book, Revolution: Software at the Speed of Thought

From http://www.shafermediastore.com/tech_main.html

___
use-revolution mailing list
use-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: mySQL RR question

2006-08-31 Thread Stephen Barncard
I've been working with Trevor's DB library, and it includes 
Transcript routines for uploading and download dumps. It's a bit slow 
on the data gathering side, however it works well. I think it needs 
to be optimized however for faster downloads, but it might be a place 
to start. His lib is completely open.



Here's Trevor's site:
http://mangomultimedia.com/developer/revolution/

Incidentally, he's working on some database objects stuff right now 
that will knock your socks off.



You also might consider Applescripting CocoaMySQL or Navicat (both 
Mac) if they have the stuff.


Navicat has the fastest DB Dump I've seen. And the fastest upload as well.

I don't know about backing up raw DB files on the server that MYSQL 
creates. I think that's a no-no, unless it's an image of the whole 
server.


sqb





Hi gang,

I have created a few (and still more coming up) client-server 
applications using RR and mySQL, but now I am in need for a way to 
to create a back-up possibility for remote databases...
The clients are Macs and PC's, the servers running the database 
Server can be Windows or Mac


I need to create a dump of the whole database, including all table 
descriptions and content.
Anyone any idea what to do, to get a dump of the database on one of 
the remote administrator desktops, or on my own development Mac, to 
have a local copy of the database?


What I can do of course is use the DESCRIBE function and create my 
own dump, but is there another way anybody knows of? The content can 
run into thousands and thousands of records, so retrieving that and 
storing it locally can be a small problem when doing it this way, so 
any suggestions are welcome...



Warm regards,

Ton Kuypers


--
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: Standalone OS X Apps in 2.7.3 - Default Button Broken

2006-08-31 Thread Sarah Reichelt

On 9/1/06, Dan Shafer [EMAIL PROTECTED] wrote:

I'm probably not searching by the right set of criteria, so there may be a
BZ on this but I wanted to confirm this is a known issue.

If I create a standalone app for OS X using 2.7.3, the default button comes
out looking like the old Classic (OS9) default button rather than the new
throbbing blue one. Not to say I wouldn't actually *prefer* the older
button, but it's clearly wrong.

Is this a known issue? Any fix or workaround or am I forced once again back
to 2.6.1 because of stuff RR broke when moving to the 2.7 family?



As Ken says, it is a known issue with the plugins folder not being
copied over. In fairness to RunRev, I use 2 computers and this only
happens on one of them, so I don't know what makes it fail.

Anyway, I recently posted a script for OS X that you can use to
automate the process yourself, and it has the extra benefit of using
touch to make the custom icon appear in a newly created standalone.

http://lists.runrev.com/pipermail/use-revolution/2006-August/086297.html

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: Another Plugin Question

2006-08-31 Thread J. Landman Gay

Dar Scott wrote:


On Aug 31, 2006, at 2:30 PM, J. Landman Gay wrote:

Then I set the stack to open invisibly when Rev starts up. After that, 
the first stack I open puts my library in use. Actually, every stack 
that is opened puts it in use all over again, but that doesn't hurt 
anything. If it bothers you, though, you can add:


 if the short name of this stack is not in the stacksinuse
 then start using this stack


Perhaps a robust library should be able to handle (or even exploit) 
being start'd multiple times.


It isn't started multiple times. If it is already in use, putting it in 
use again does nothing. Well, except for changing the layering order. 
Whatever stack has been most recently placed in use becomes closest in 
the message hierarchy. But the library stack doesn't receive any 
messages and doesn't know about it; it's all handled by the engine.


--
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: Crash report procedure

2006-08-31 Thread Sivakatirswami
Thanks Tereza... good idea: not, it's not that obvious (smile) I'm open 
to all kinds of input!




Tereza Snyder wrote:


On Aug 30, 2006, at 4:41 AM, Sivakatirswami wrote:
...



Of  course it means we might need  to build in a little  more error 
checking,
perhaps a checksum() on some stack files  and  if  it's not in a 
reasonable
range, then  assume the  files are corrupt and delete  them and get 
fresh copies.

I need to do better at logging the  context and  scenarios.
Frankly this kind of thing is a bit over my head...



A possible strategy could be to provide, at your server, a small file 
with an MD5 digest or other check associated with each stack. Your 
application obtains that file first, then downloads the stack as 
binary data (perhaps writing it to disk with a ~ prefix, as Metacard 
does for stack saves), then checks the file for correctness, and 
finally renames the file and opens it only if it passes the test.


I know it's obvious, but I had to stick my finger in,


t


--Tereza Snyder

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

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


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


Re: Call for Media Viewer Test: Windows Users Especially

2006-08-31 Thread Sivakatirswami
OK, true, Apples seems to take it's time getting  the Windoz version of 
any given QT upgrade
ported over to DOS (must be an engineering night  mare) But at least at 
present I think they
are close. Windows users are able to get a QT 7.0 version now. But my 
worry is that
even if they are publicly touting that the QT version is uptodate, in 
fact its API on Windows
is still deficient. On the other  hand, we have windows users who say 
they never have a problem

so, goes to hardware, configuration etc. over which no one has control...

I don't know how anyone could debug this kind of thing...That's 
worrisome as it makes
both your Application and Revolution look really bad... and you have 
nothing to offer

the user by way of a solution.



Stephen Barncard wrote:
In all fairness to MS, I've heard that the version of QT for windoze 
is at least a version or two behind MacOS.   That's not exactly bridge 
building.


sqb

Is Micro$oft still doing that stuff to break others' competing 
products? I thought they got busted and had to stop.


sqb



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


Re: Standalone OS X Apps in 2.7.3 - Default Button Broken

2006-08-31 Thread J. Landman Gay

Dan Shafer wrote:

Thanks, Ken. I knew there was an answer. Three dot-revs into 2.7 and we
still have these kinds of rough edges? Hm


To be fair, the installer was overhauled more recently than that. The 
omission is an easy fix, requiring only a couple lines of script, and 
they're aware it was overlooked.


--
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: Crash report procedure

2006-08-31 Thread Sivakatirswami

Aloha Chipp:

OK great.. thanks.. this was really an anamoly brought on by our bad 
connection (turns out it was the cable modem which Ocean Time Warner had 
to replace...)


in the folder where altSplash is download the files there were two files..

htde_main.rev
htde_main.rev.gz

I deleted those (I wish I had tested them first...)

It's as if it got stuck... as normally the htde_main.rev.gz disappears.

are deleting both of them, then it worked.

I'm not sure we have a resetAll on the UI

Sivakatirswami


Chipp Walters wrote:

Sivakatirswami,

altSplash (there are probably quite a few new versions since the one
you have) looks for a fld 'vers' in the mainstack (not the
standalone).

If I were you, I'd try something like:

if there is a file tMainStackPath then
 if there is a stack tMainStackPath then

That way it will check to see if it's a valid path. If you're still
getting a crash then you might use a try statement around the 'if thre
is a stack'

I'm pretty sure that's where you're running into problems. Even so,
I've never seen altSplash crash on a corrupted stack, and a press of
the resetAll button should delete the offending stack and quit so the
user can relaunch.

HTH,

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


___
use-revolution mailing list
use-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: Communicate with stepper motors?

2006-08-31 Thread Bridger Maxwell

Hey,
 I have been working with the BASIC stamp from Parallax.  It is a micro
controller and can control a few I/O switches.  The language that you
program in is called PBASIC.  It is a simplified version of the BASIC
language that the stamp understands and has a few commands that are
specifically made for the micro controller.  Maybe this is what your friend
was talking about.  So far I have been using the Parallax BASIC editor to
make and load programs to the stamp, but once it has the program is has been
EXTREMELY easy to talk to the stamp with Revolution via COM ports and give
it parameters that it has been programmed to wait for, such as a position
for a stepper motor.  It may even be possible to write a program that will
compile script and load it to the stamp, I haven't tried though.  Just
another option that you might want to look at.  This process is pretty easy
to do (I am 15 and I have handled it so it can't be that terribly difficult)
and has a lot of potential for controlling custom devices.

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