From jbv.silences at Club-Internet.fr Mon Dec 1 04:26:05 2003
From: jbv.silences at Club-Internet.fr (jbv)
Date: Mon, 01 Dec 2003 10:26:05 +0100
Subject: Writing PDF files from RunRev
References: <20031201004107.13471.qmail@web40513.mail.yahoo.com>
Message-ID: <3FCB0928.2F98A4F@Club-Internet.fr>
Alejandro,
>
> > I haven't visited the link, but have some
> > experience writing PDF files from Metacard.
>
> Wonderful! Have you exported to pdf the full content
> of a field, a card or a whole stack?
Take it easy... ;-)
It actually began more than 2 years ago on the MC list
when I helped Monte Goulding (sp?) generating PDF
files for one of his projects. I guess Monte also worked
a lot on exporting data as PDF, and that he might be of
some help as well (if not too busy)...
As for me, it's been more than 1.5 years since the last
time I tweaked some PDF in MC... AFAIR it was in
a CGI script : requests sent from a form on a web page
were extracting data from a database and exporting them
on the fly as PDF for download.
AFAIR I used "templates" (PDF files made in Illustrator)
featuring keywords, and the replace cmd was used to
insert accurate data in the file that was then saved as PDF.
Before saving, I had to change in the trailer the number of
bytes in the file, otherwise it would generate an error when
opening the file, and AFAIR some versions of Acrobat
Reader on some platforms even refused to open it.
IMHO "exporting a card or a whome stack" as PDF is not
the best way to approach the problem. I mean : we're talking
of completely different languages / environments.
So I guess the best is to :
- decide how you want your data to be displayed in PDF
- build one (or several) PDF templates
- write a "PDF export" handler that picks data (field content,
etc) in your stack and insert it in the PDF file
- fine tune your PDF file (according to the data inserted) and
save it.
Probably a more general PDF library could be created, but I
doubt it will cover all needs...
>
> For this reason, I'm interested to know if the
> code of this site still works.
>
>
>
> Maybe it does not works for me because the wrong
> line endings or because it had to be written
> as binary data.
>
> > the more closely your file follows the PDF
> > format requirements, the better.
>
> I agree, but my experience writing
> binary data is NULL... :((
>
Sorry I'm too busy right now to check this code (PDF code
is totally off my head right now).
Nevertheless, I would suggest that you don't spend too much
time debugging code made by others. You'd better write your
own code, following the PDF tutorial reference.
Another solution is to produce PDF files from Illustrator, and
see if they work fine.
Last but not least : IMHO you don't need to bother with binary
data. There are actually 2 types of PDF files : compressed and
uncompressed. Uncompressed files (like those produced by
Illustrator) are just ASCII (and if you study them carefully you
will see how close PDF is from PostScript). In all my PDF
teakings with MC, I always used uncompressed format.
The only drawback is that you'll have to deal with HUGE
files sometimes...
JB
From malte.brill at t-online.de Mon Dec 1 04:50:52 2003
From: malte.brill at t-online.de (Malte Brill)
Date: Mon, 01 Dec 2003 10:50:52 +0100
Subject: Bottleneck Graphic card in animations ? Or am I doing something
wrong???
In-Reply-To: <20031201092611.1A4A093006D@mail.runrev.com>
Message-ID:
Hi list,
I wrote that I am about finishing my first game a few days ago, but now I
run into some serious trouble.
I?ve been writing this game for a few days now and it works pretty smoothly
on my G4 400 Mac, way too fast on my brothers 2.4 GHz Wintel machine (so i
put a "brake" into it and is unplayable on my girls 1.0 GHz wintel machine
because it is not scrolling smoothly and displaying animations very slowish.
But: My gamesprite (moved by the arrow keys) is moving very fast on my girls
machine also...
Could this be because she has only an onboard Graphic card with 16 MB Video
memory?
You might take a look at the stack @
http://www.derbrill.de/revstack/jump4joy.rev.zip
the stack is quite biggish (about 1 MB)
(I hope you don?t mind that the script is looking quite chaotic, I haven?t
cleared it up too much yet.)
The main game script is in the button "los"
If I can?t get it working better I can?t release it for windows and I am
afraid it won?t work too good on older Macs either...
Any ideas?
Malte
From jbv.silences at Club-Internet.fr Mon Dec 1 05:18:07 2003
From: jbv.silences at Club-Internet.fr (jbv)
Date: Mon, 01 Dec 2003 11:18:07 +0100
Subject: Seminar
References:
Message-ID: <3FCB1559.D5E9A97E@Club-Internet.fr>
Heather,
> Dear Listee,
>
> I'm delighted to tell you that the first ever Revolution Seminar will be
> held in San Francisco, in association with MacWorld.
>
Are you planing to video tape it and post it (at least an edited version
of the best parts) on the RR website ?
I'm sure all the poor guys who can't make it to SF would apreciate
that...
JB
From 3mcgrath at adelphia.net Mon Dec 1 07:26:53 2003
From: 3mcgrath at adelphia.net (Thomas J McGrath III)
Date: Mon, 1 Dec 2003 07:26:53 -0500
Subject: Writing PDF files from RunRev
In-Reply-To: <3FCB0928.2F98A4F@Club-Internet.fr>
References: <20031201004107.13471.qmail@web40513.mail.yahoo.com>
<3FCB0928.2F98A4F@Club-Internet.fr>
Message-ID:
PDF = Postscript Definition Format(File)
On Dec 1, 2003, at 4:26 AM, jbv wrote:
> (and if you study them carefully you
> will see how close PDF is from PostScript).
> JB
>
Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev
2.1.2
Advanced Media Group
Thomas J McGrath III ? 2003 ? 3mcgrath at adelphia.net
220 Drake Road, Bethel Park, PA 15102
From jbv.silences at Club-Internet.fr Mon Dec 1 07:47:05 2003
From: jbv.silences at Club-Internet.fr (jbv)
Date: Mon, 01 Dec 2003 13:47:05 +0100
Subject: Writing PDF files from RunRev (drifting OT)
References: <20031201004107.13471.qmail@web40513.mail.yahoo.com>
Message-ID: <3FCB383F.C49286BD@Club-Internet.fr>
Definition: Acronym for Portable Document Format, the PDF file format
created
by Adobe Systems, Inc. uses the PostScript printer description language
and is
highly portable across computer platforms.
http://desktoppub.about.com/library/glossary/bldef-pdf.htm
Nevertheless, there are some huge differences between PDF and PS
(like the use of dictionnaries AFAIR).
JB
> PDF = Postscript Definition Format(File)
>
> On Dec 1, 2003, at 4:26 AM, jbv wrote:
> > (and if you study them carefully you
> > will see how close PDF is from PostScript).
> > JB
> >
>
> Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev
> 2.1.2
>
> Advanced Media Group
> Thomas J McGrath III ? 2003 ? 3mcgrath at adelphia.net
> 220 Drake Road, Bethel Park, PA 15102
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
From malte.brill at t-online.de Mon Dec 1 08:37:26 2003
From: malte.brill at t-online.de (Malte Brill)
Date: Mon, 01 Dec 2003 14:37:26 +0100
Subject: Bottleneck Graphic card in animations ? Or am I doing
something wrong???
In-Reply-To: <20031201092611.1A4A093006D@mail.runrev.com>
Message-ID:
I made some changes to the stack...
Seems to work better to use send in xx milliseconds than to use send in xx
ticks. Also I?ve thrown out a few graphics.
http://www.derbrill.de/revstack/jump4joy2.rev.zip
the stack is quite biggish (about 1 MB)
Regards,
Malte
From 3mcgrath at adelphia.net Mon Dec 1 09:36:52 2003
From: 3mcgrath at adelphia.net (Thomas J McGrath III)
Date: Mon, 1 Dec 2003 09:36:52 -0500
Subject: Writing PDF files from RunRev (drifting OT)
In-Reply-To: <3FCB383F.C49286BD@Club-Internet.fr>
References: <20031201004107.13471.qmail@web40513.mail.yahoo.com>
<3FCB383F.C49286BD@Club-Internet.fr>
Message-ID:
OOHHH
On Dec 1, 2003, at 7:47 AM, jbv wrote:
> Definition: Acronym for Portable Document Format, the PDF file format
> created
> by Adobe Systems, Inc. uses the PostScript printer description language
> and is
> highly portable across computer platforms.
> http://desktoppub.about.com/library/glossary/bldef-pdf.htm
>
> Nevertheless, there are some huge differences between PDF and PS
> (like the use of dictionnaries AFAIR).
>
> JB
>
>> PDF = Postscript Definition Format(File)
>>
>> On Dec 1, 2003, at 4:26 AM, jbv wrote:
>>> (and if you study them carefully you
>>> will see how close PDF is from PostScript).
>>> JB
>>>
>>
>> Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev
>> 2.1.2
>>
>> Advanced Media Group
>> Thomas J McGrath III ? 2003 ? 3mcgrath at adelphia.net
>> 220 Drake Road, Bethel Park, PA 15102
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev
2.1.2
Advanced Media Group
Thomas J McGrath III ? 2003 ? 3mcgrath at adelphia.net
220 Drake Road, Bethel Park, PA 15102
From dean.snyder at jhu.edu Mon Dec 1 11:44:46 2003
From: dean.snyder at jhu.edu (Dean Snyder)
Date: Mon, 01 Dec 2003 11:44:46 -0500
Subject: Unicode Problems in 2.1.2
Message-ID: <20031201164446.25001@smtp.jhu.edu>
Revolution 2.1.2 claims improvements in Unicode handling, but it has gone
backwards in at least one area and has also failed to fix a previously
reported serious bug:
* Unlike earlier versions where it worked, characters in the Unicode
Private Use Area are now rendered by the generic no-glyph-here symbol and
not the corresponding glyphs in custom fonts installed with those characters.
* Unicode characters with code points that end in "09" are still
interpreted as tabs, ASCII character 9, in Revolution table fields.
Part of my research depends on manipulation of Unicode text and flakiness
here is very disturbing. (I don't believe this is an OS issue, but I'm
using Mac OS X 10.3.1, Panther.)
Respectfully,
Dean A. Snyder
Scholarly Technology Specialist
Library Digital Programs, Sheridan Libraries
Garrett Room, MSE Library, 3400 N. Charles St.
Johns Hopkins University
Baltimore, Maryland, USA 21218
office: 410 516-6850 mobile: 410 245-7168 fax: 410-516-6229
Manager, Digital Hammurabi Project: www.jhu.edu/digitalhammurabi
From alex at mindlube.com Mon Dec 1 12:08:12 2003
From: alex at mindlube.com (Alex Rice)
Date: Mon, 1 Dec 2003 10:08:12 -0700
Subject: Writing PDF files from RunRev (drifting OT)
In-Reply-To: <3FCB383F.C49286BD@Club-Internet.fr>
References: <20031201004107.13471.qmail@web40513.mail.yahoo.com>
<3FCB383F.C49286BD@Club-Internet.fr>
Message-ID:
On Dec 1, 2003, at 5:47 AM, jbv wrote:
> Nevertheless, there are some huge differences between PDF and PS
> (like the use of dictionnaries AFAIR).
Another difference: Postscript is actually a programming language,
where PDF is just a description language.
Just interesting that's all.
Alex Rice | Mindlube Software |
what a waste of thumbs that are opposable
to make machines that are disposable -Ani DiFranco
From alex at mindlube.com Mon Dec 1 12:19:13 2003
From: alex at mindlube.com (Alex Rice)
Date: Mon, 1 Dec 2003 10:19:13 -0700
Subject: Writing PDF files from RunRev
In-Reply-To: <20031130120855.79755.qmail@web40514.mail.yahoo.com>
References: <20031130120855.79755.qmail@web40514.mail.yahoo.com>
Message-ID: <7C17C5C5-2422-11D8-88C6-000393C4760A@mindlube.com>
On Nov 30, 2003, at 5:08 AM, Alejandro Tejada wrote:
> but everytime that I've tried to open this code
> as a PDF file, Acrobat Reader tells me that the file
> has errors that could not be repaired and skips the
> file...
Alejandro, If you need to create PDFs that look just like your card
layout, you might want to consider a PDF printer driver like PDFCamp
or the Adobe Acrobat
printer drivers. On OS X you can always print to PDF via the built-in
OS print dialog.
Of course if you need to create PDFs in batches as some specific kind
of workflow then this may not work though.
Alex Rice | Mindlube Software |
what a waste of thumbs that are opposable
to make machines that are disposable -Ani DiFranco
From kray at sonsothunder.com Mon Dec 1 13:01:42 2003
From: kray at sonsothunder.com (Ken Ray)
Date: Mon, 1 Dec 2003 12:01:42 -0600
Subject: Unicode Problems in 2.1.2
In-Reply-To: <20031201164446.25001@smtp.jhu.edu>
Message-ID: <00c901c3b835$307fb880$6401a8c0@LightningFlash>
Dean, have you added this to Bugzilla?
Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of
> Dean Snyder
> Sent: Monday, December 01, 2003 10:45 AM
> To: use-revolution at lists.runrev.com
> Subject: Unicode Problems in 2.1.2
>
>
> Revolution 2.1.2 claims improvements in Unicode handling, but
> it has gone backwards in at least one area and has also
> failed to fix a previously reported serious bug:
>
> * Unlike earlier versions where it worked, characters in the
> Unicode Private Use Area are now rendered by the generic
> no-glyph-here symbol and not the corresponding glyphs in
> custom fonts installed with those characters.
>
> * Unicode characters with code points that end in "09" are
> still interpreted as tabs, ASCII character 9, in Revolution
> table fields.
>
> Part of my research depends on manipulation of Unicode text
> and flakiness here is very disturbing. (I don't believe this
> is an OS issue, but I'm using Mac OS X 10.3.1, Panther.)
>
>
> Respectfully,
>
> Dean A. Snyder
> Scholarly Technology Specialist
> Library Digital Programs, Sheridan Libraries
> Garrett Room, MSE Library, 3400 N. Charles St.
> Johns Hopkins University
> Baltimore, Maryland, USA 21218
>
> office: 410 516-6850 mobile: 410 245-7168 fax: 410-516-6229
> Manager, Digital Hammurabi Project: www.jhu.edu/digitalhammurabi
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-> revolution
>
From jbv.silences at Club-Internet.fr Mon Dec 1 13:36:32 2003
From: jbv.silences at Club-Internet.fr (jbv)
Date: Mon, 01 Dec 2003 19:36:32 +0100
Subject: Writing PDF files from RunRev (drifting OT)
References: <20031201004107.13471.qmail@web40513.mail.yahoo.com>
Message-ID: <3FCB8A1B.DC41B4C6@Club-Internet.fr>
Alex Rice a *crit :
> On Dec 1, 2003, at 5:47 AM, jbv wrote:
> > Nevertheless, there are some huge differences between PDF and PS
> > (like the use of dictionnaries AFAIR).
>
> Another difference: Postscript is actually a programming language,
> where PDF is just a description language.
>
which is actually another side of the same problem : the lack of access
to dictionaries hinders you from defining your own procedures in the
prologue...
But it's the same good old machinery (Display PostScript) still at work
in Acrobat Reader, Illustrator and (probably) inDesign...
JB
From steve at hybride.com Mon Dec 1 11:58:02 2003
From: steve at hybride.com (Steve Pelchat)
Date: Mon, 1 Dec 2003 11:58:02 -0500
Subject: Open Process, Windows platform !
Message-ID: <200312011158.AA455409796@mail1.intranet.hybride.com>
Hi, i would like if other people got some problem with the "Open Process Vprocess for neither" on Windows Platform ....
Because when i start my open process with 'for neither' the function close my openprocesses even my application run..... and if i put into IRIX Platform, the open process is correct, it close only when the application was finnished....
And other question, when the ENGINE for IRIX coming out ??
thanx !!
From pixelbird at interisland.net Mon Dec 1 14:22:24 2003
From: pixelbird at interisland.net (Ken Norris)
Date: Mon, 01 Dec 2003 11:22:24 -0800
Subject: How do I create an unreferenced image?
In-Reply-To: <20031201092610.AF6EF93007F@mail.runrev.com>
Message-ID:
Hello Graham,
> Date: Sun, 30 Nov 2003 20:39:55 +0000
> From: Graham Samuel
> Subject: How do I create an unreferenced image?
>
> My question is, how does the IDE do this trick of embedding and
> getting rid of the external reference? I would like to create such
> images myself by scripting, but I don't see how. Sorry if this is
> obvious.
-----------
Yep, it's pretty simple as far as the command goes.
Look up "import" in the Transport Dictionary.
If you know about this and it doesn't work, I can almost guarantee it's a
location (file path) problem. Please look through the docs on "Files,
Folders, and Resources".
Here's a tested example on a Mac (watch linewraps):
on mouseUp
import paint from file "/Macintosh HD/Desktop
Folder/RevStacks_Mine/RevTest.JPG"
end mouseUp
...You can retrieve the absolute filepath like this:
...open the multi-line message box and type:
answer file "Choose a file:"
put it
...You can check the folder in the msg box:
put defaultFolder
...
See the docs for converting an absolute path to a relative path, etc.
If you are working in the IDE, then Rev has taken the Rev folder as the
defaultFolder, so unless your image is in there, you'll have to either:
1) Assign an absolute file path as I did
...or to temporarily set a relative filepath:
2) Temporarily reset the defaultFoder, call your image, then set the default
folder back to what it was, unless you move your stack to the default
folder.
NOTE: Don't forget to account for the location of referenced images when you
build your standalone.
If anything isn't clear, come back and ask.
HTH,
Ken N.
From heather at runrev.com Mon Dec 1 14:14:08 2003
From: heather at runrev.com (Heather Williams)
Date: Mon, 01 Dec 2003 19:14:08 +0000
Subject: Seminar
In-Reply-To: <20031201170027.C01BA930089@mail.runrev.com>
Message-ID:
> Are you planing to video tape it and post it (at least an edited version
> of the best parts) on the RR website ?
> I'm sure all the poor guys who can't make it to SF would apreciate
> that...
It's certainly on the cards, but I can't make any promises at this stage,
Regards,
Heather
--
Heather Williams ~ heather at runrev.com ~ http://www.runrev.com/
Runtime Revolution - User-Centric Development Tools
Tel +44 (0) 131 7184333 Fax +44 (0) 845 4588487
~~~ Check our web site for new Revolution editions & special offers ~~~
From pixelbird at interisland.net Mon Dec 1 14:42:43 2003
From: pixelbird at interisland.net (Ken Norris)
Date: Mon, 01 Dec 2003 11:42:43 -0800
Subject: Seminar
In-Reply-To: <20031201170027.A9AA1930088@mail.runrev.com>
Message-ID:
on 12/1/03 9:00 AM, use-revolution-request at lists.runrev.com at
use-revolution-request at lists.runrev.com wrote:
> Date: Mon, 01 Dec 2003 11:18:07 +0100
> From: jbv
> Subject: Re: Seminar
>
> Heather,
>
>> Dear Listee,
>>
>> I'm delighted to tell you that the first ever Revolution Seminar will be
>> held in San Francisco, in association with MacWorld.
>>
>
> Are you planing to video tape it and post it (at least an edited version
> of the best parts) on the RR website ?
> I'm sure all the poor guys who can't make it to SF would apreciate
> that...
------------
...Or video to DVD or VCD (MPEG?).
...Or the ultimate dream, which can now be done much easier: Streaming QT?
Ken N.
From alptex2 at orwell.net Mon Dec 1 14:55:59 2003
From: alptex2 at orwell.net (T. R. Ponn)
Date: Mon, 01 Dec 2003 14:55:59 -0500
Subject: How do I interrupt and cleanup gracefully?
Message-ID: <3FCB9CCF.3080704@orwell.net>
Hello all,
There are a few places in my app where it would be nice if the user
could use a "command-period" interrupt to gracefully stop my scripts.
So, in playing around, I tried this as a starting point in a new button:
on mouseUp
repeat
if the interrupt then cleanThisUp else add 1 to msg
end repeat
end mouseUp
on cleanThisUp
put "I'm interrupted" into msg
end cleanThisUp
It does, indeed, stop the script, but always with an error...and I never
see the final message in the msg box. This is happening in Rev 2.0.3
IDE on my Mac (OS9.2.2), but must also work in the standalones when
completed.
What am I missing?
Thanks in advance for any help you can lend!
Best Regards,
Tim Ponn
From janschenkel at yahoo.com Mon Dec 1 15:04:04 2003
From: janschenkel at yahoo.com (Jan Schenkel)
Date: Mon, 1 Dec 2003 12:04:04 -0800 (PST)
Subject: How do I interrupt and cleanup gracefully?
In-Reply-To: <3FCB9CCF.3080704@orwell.net>
Message-ID: <20031201200404.16698.qmail@web60510.mail.yahoo.com>
--- "T. R. Ponn" wrote:
> Hello all,
>
> There are a few places in my app where it would be
> nice if the user
> could use a "command-period" interrupt to gracefully
> stop my scripts.
> So, in playing around, I tried this as a starting
> point in a new button:
>
> on mouseUp
> repeat
> if the interrupt then cleanThisUp else add 1 to
> msg
> end repeat
> end mouseUp
>
> on cleanThisUp
> put "I'm interrupted" into msg
> end cleanThisUp
>
> It does, indeed, stop the script, but always with an
> error...and I never
> see the final message in the msg box. This is
> happening in Rev 2.0.3
> IDE on my Mac (OS9.2.2), but must also work in the
> standalones when
> completed.
>
> What am I missing?
>
> Thanks in advance for any help you can lend!
>
> Best Regards,
>
> Tim Ponn
>
>
Hi Tim,
The way I read the docs, you should set the local
property allowInterrupts to false before going into
the repeat loop. So the script should look something
like :
--
on mouseUp
set the allowInterrupts to false
repeat
if the interrupt
then cleanThisUp
else add 1 to msg
end repeat
end mouseUp
on cleanThisUp
put "I'm interrupted" into msg
end cleanThisUp
--
A quick test revealed this to work on my Windows
machine. So I hope this helped,
Jan Schenkel.
=====
"As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld)
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
From alex at mindlube.com Mon Dec 1 15:04:12 2003
From: alex at mindlube.com (Alex Rice)
Date: Mon, 1 Dec 2003 13:04:12 -0700
Subject: Seminar
In-Reply-To:
References:
Message-ID: <8866BD76-2439-11D8-96A5-000393C4760A@mindlube.com>
On Dec 1, 2003, at 12:42 PM, Ken Norris wrote:
> ...Or video to DVD or VCD (MPEG?).
>
> ...Or the ultimate dream, which can now be done much easier: Streaming
> QT?
The way Apple does their Macworld sessions with Quicktime streams is
kind of neat, I think.
At conference time they post the current keynote session plus one or
two other sessions in QT format, for free on developer.apple.com . For
the rest of the year, all the other QT streams of macworld sessions are
available for buying on the site. But a few weeks before Macworld, all
of the previous sessions from the last year's conference are available
for free QT streaming. By making all of the last year's free, it
satisfies leeches like me :-) and also is good advertising for the
upcoming conference.
Runrev: any chance of getting your session into the "ADC TV" part of
developer.apple.com?
Alex Rice | Mindlube Software |
what a waste of thumbs that are opposable
to make machines that are disposable -Ani DiFranco
From alptex2 at orwell.net Mon Dec 1 16:05:04 2003
From: alptex2 at orwell.net (T. R. Ponn)
Date: Mon, 01 Dec 2003 16:05:04 -0500
Subject: How do I interrupt and cleanup gracefully?
References: <20031201200404.16698.qmail@web60510.mail.yahoo.com>
Message-ID: <3FCBAD00.90206@orwell.net>
Jan,
I tried it and it failed (the IDE locked up)...then I added the obvious
(exit to top). And, just to make sure things were back where they're
supposed to be, I added "set allowInterrupts to true". Badda-bing!
That did it!
Though not a biggie, I'm still struggling with understanding the logic:
set allowInterrupts to false = allow the user to interrupt. Sounds
backwards to me. :-D
Thanks!
on mouseUp
put empty into msg
set the allowInterrupts to false
repeat
if the interrupt
then cleanThisUp
else add 1 to msg
end repeat
end mouseUp
on cleanThisUp
put "I'm interrupted" into msg
set the allowInterrupts to true
exit to top
end cleanThisUp
Best Regards,
Tim Ponn
Jan Schenkel wrote:
>--- "T. R. Ponn" wrote:
>
>
>>Hello all,
>>
>>There are a few places in my app where it would be
>>nice if the user
>>could use a "command-period" interrupt to gracefully
>>stop my scripts.
>> So, in playing around, I tried this as a starting
>>point in a new button:
>>
>>on mouseUp
>> repeat
>> if the interrupt then cleanThisUp else add 1 to
>>msg
>> end repeat
>>end mouseUp
>>
>>on cleanThisUp
>> put "I'm interrupted" into msg
>>end cleanThisUp
>>
>>It does, indeed, stop the script, but always with an
>>error...and I never
>>see the final message in the msg box. This is
>>happening in Rev 2.0.3
>>IDE on my Mac (OS9.2.2), but must also work in the
>>standalones when
>>completed.
>>
>>What am I missing?
>>
>>Thanks in advance for any help you can lend!
>>
>>Best Regards,
>>
>>Tim Ponn
>>
>>
>>
>>
>
>Hi Tim,
>
>The way I read the docs, you should set the local
>property allowInterrupts to false before going into
>the repeat loop. So the script should look something
>like :
>--
>on mouseUp
> set the allowInterrupts to false
> repeat
> if the interrupt
> then cleanThisUp
> else add 1 to msg
> end repeat
>end mouseUp
>
>on cleanThisUp
> put "I'm interrupted" into msg
>end cleanThisUp
>--
>
>A quick test revealed this to work on my Windows
>machine. So I hope this helped,
>
>Jan Schenkel.
>
>=====
>"As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld)
>
>__________________________________
>Do you Yahoo!?
>Protect your identity with Yahoo! Mail AddressGuard
>http://antispam.yahoo.com/whatsnewfree
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
>
>
From dean.snyder at jhu.edu Mon Dec 1 16:06:05 2003
From: dean.snyder at jhu.edu (Dean Snyder)
Date: Mon, 01 Dec 2003 16:06:05 -0500
Subject: Unicode Problems in 2.1.2
In-Reply-To: <00c901c3b835$307fb880$6401a8c0@LightningFlash>
References: <00c901c3b835$307fb880$6401a8c0@LightningFlash>
Message-ID: <20031201210605.19445@smtp.jhu.edu>
Ken Ray wrote at 12:01 PM on Monday, December 1, 2003:
>Dean, have you added this to Bugzilla?
I have now, using your nifty RevZilla stack. Thanks.
Respectfully,
Dean A. Snyder
Scholarly Technology Specialist
Library Digital Programs, Sheridan Libraries
Garrett Room, MSE Library, 3400 N. Charles St.
Johns Hopkins University
Baltimore, Maryland, USA 21218
office: 410 516-6850 mobile: 410 245-7168 fax: 410-516-6229
Manager, Digital Hammurabi Project: www.jhu.edu/digitalhammurabi
From janschenkel at yahoo.com Mon Dec 1 16:11:54 2003
From: janschenkel at yahoo.com (Jan Schenkel)
Date: Mon, 1 Dec 2003 13:11:54 -0800 (PST)
Subject: How do I interrupt and cleanup gracefully?
In-Reply-To: <3FCBAD00.90206@orwell.net>
Message-ID: <20031201211154.89234.qmail@web60502.mail.yahoo.com>
--- "T. R. Ponn" wrote:
> Jan,
>
> I tried it and it failed (the IDE locked up)...then
> I added the obvious
> (exit to top). And, just to make sure things were
> back where they're
> supposed to be, I added "set allowInterrupts to
> true". Badda-bing!
> That did it!
>
> Though not a biggie, I'm still struggling with
> understanding the logic:
> set allowInterrupts to false = allow the user to
> interrupt. Sounds
> backwards to me. :-D
>
> Thanks!
>
> on mouseUp
> put empty into msg
> set the allowInterrupts to false
> repeat
> if the interrupt
> then cleanThisUp
> else add 1 to msg
> end repeat
> end mouseUp
>
> on cleanThisUp
> put "I'm interrupted" into msg
> set the allowInterrupts to true
> exit to top
> end cleanThisUp
>
>
> Best Regards,
>
> Tim Ponn
>
>
Hi Tim,
Well you have to read it as follows:
- if the allowInterrupts is true, the user can
interrupt the script at any time, even in a situation
that would leave data in an incorrect state.
- if the allowInterrupts is false, then the user can
still send the interrupt keystroke, but the developer
decides when to handle the interrupt, and how to clean
up and exit gracefully.
Hope this clarified things a bit,
Jan Schenkel.
=====
"As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld)
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
From alex at mindlube.com Mon Dec 1 16:26:19 2003
From: alex at mindlube.com (Alex Rice)
Date: Mon, 1 Dec 2003 14:26:19 -0700
Subject: Open Process, Windows platform !
In-Reply-To: <200312011158.AA455409796@mail1.intranet.hybride.com>
References: <200312011158.AA455409796@mail1.intranet.hybride.com>
Message-ID: <00CC8824-2445-11D8-96A5-000393C4760A@mindlube.com>
On Dec 1, 2003, at 9:58 AM, Steve Pelchat wrote:
> Hi, i would like if other people got some problem with the "Open
> Process Vprocess for neither" on Windows Platform ....
>
> Because when i start my open process with 'for neither' the function
> close my openprocesses even my application run..... and if i put into
> IRIX Platform, the open process is correct, it close only when the
> application was finnished....
Have you checked bugzilla for "open process" bugs? The open process
command is severely buggy IMHO.
> And other question, when the ENGINE for IRIX coming out ??
I remember you asked this before. Looks like you asked in September and
in mid-November. If I were you I would not be too happy :-/
Alex Rice | Mindlube Software |
what a waste of thumbs that are opposable
to make machines that are disposable -Ani DiFranco
From pixelbird at interisland.net Mon Dec 1 16:49:40 2003
From: pixelbird at interisland.net (Ken Norris)
Date: Mon, 01 Dec 2003 13:49:40 -0800
Subject: Seminar
In-Reply-To: <20031201210333.7A1DF930097@mail.runrev.com>
Message-ID:
Hi Alex,
> Date: Mon, 1 Dec 2003 13:04:12 -0700
> From: Alex Rice
> Subject: Re: Seminar
>
>
> On Dec 1, 2003, at 12:42 PM, Ken Norris wrote:
>> ...Or video to DVD or VCD (MPEG?).
>>
>> ...Or the ultimate dream, which can now be done much easier: Streaming
>> QT?
>
> The way Apple does their Macworld sessions with Quicktime streams is
> kind of neat, I think.
----------
Actually, that was my reference, although I didn't mention it. I found the
last one very informative and just plain kewel.
Ken N.
From jbv.silences at Club-Internet.fr Mon Dec 1 17:12:29 2003
From: jbv.silences at Club-Internet.fr (jbv)
Date: Mon, 01 Dec 2003 23:12:29 +0100
Subject: updating graphic properties - question for the development team ?
Message-ID: <3FCBBCB1.F0B09817@Club-Internet.fr>
I guess it's a question for the development team, since
it concerns the engine...
When updating a visual property of a control (like the
opaque of a field, or the backgroundcolor of a btn, etc.
IOW any property that leads in changes in the current
display) does the engine check the setting of this property
before trying to update anything ?
I'm asking because one of my script sets the opaque of a
large chunk of flds to true, and when the opaque of a large
portion of these flds is already set to true, I have the feeling
that the script runs significantly faster... as if it didn't bother
updating the display when the property is already set...
If it were the case, it would avoid complex checking of what
is set and what isn't in order to run scripts faster...
Or does it have to do with the way the OS handles display ?
Thanks,
JB
From sanke at hrz.uni-kassel.de Mon Dec 1 17:37:06 2003
From: sanke at hrz.uni-kassel.de (Wilhelm Sanke)
Date: Mon, 01 Dec 2003 23:37:06 +0100
Subject: How do I create an unreferenced image?
Message-ID: <3FCBC292.6080901@hrz.uni-kassel.de>
On Mon, 01 Dec 2003, Ken Norris wrote:
> Hello Graham,
>
> > Date: Sun, 30 Nov 2003 20:39:55 +0000
> > From: Graham Samuel
> > Subject: How do I create an unreferenced image?
> >
> > My question is, how does the IDE do this trick of embedding and
> > getting rid of the external reference? I would like to create such
> > images myself by scripting, but I don't see how. Sorry if this is
> > obvious.
> -----------
> Yep, it's pretty simple as far as the command goes.
>
> Look up "import" in the Transport Dictionary.
>
> If you know about this and it doesn't work, I can almost guarantee it's a
> location (file path) problem. Please look through the docs on "Files,
> Folders, and Resources".
>
> Here's a tested example on a Mac (watch linewraps):
>
> on mouseUp
> import paint from file "/Macintosh HD/Desktop
> Folder/RevStacks_Mine/RevTest.JPG"
> end mouseUp
>
> ...You can retrieve the absolute filepath like this:
>
> ...open the multi-line message box and type:
>
> answer file "Choose a file:"
> put it
>
> ...You can check the folder in the msg box:
>
> put defaultFolder
>
> ...
>
> See the docs for converting an absolute path to a relative path, etc.
>
> If you are working in the IDE, then Rev has taken the Rev folder as the
> defaultFolder, so unless your image is in there, you'll have to either:
>
> 1) Assign an absolute file path as I did
>
> ...or to temporarily set a relative filepath:
>
> 2) Temporarily reset the defaultFoder, call your image, then set the
> default
> folder back to what it was, unless you move your stack to the default
> folder.
>
> NOTE: Don't forget to account for the location of referenced images
> when you
> build your standalone.
>
> If anything isn't clear, come back and ask.
>
> HTH,
> Ken N.
Ken and Graham,
Lots of things to consider, aren't they?
Excuse me, RR folks, if I mention this again: Besides a number of really
good improvements unfortunately there is a whole bunch of
mis-improvements of Revolution vs. Metacard.
In the Metacard IDE, when you import an image file, first thing you get
is a dialog with a checkbutton "Link Only". If you uncheck this button,
the image will be embedded.
So my recommendation is: Switch to the Metacard IDE for a moment and
then - if you like - go back to Revolution.
Regards,
Wilhelm Sanke
From lists at mangomultimedia.com Mon Dec 1 17:53:41 2003
From: lists at mangomultimedia.com (Trevor DeVore)
Date: Mon, 1 Dec 2003 15:53:41 -0700
Subject: [ANN] QT External 0.3.0
Message-ID: <3594B7DA-2451-11D8-AD62-00039384A130@mangomultimedia.com>
I've updated the QuickTime External to support QuickTime movie editing
among other things. The following functions have been added:
qtInitializeEditing() - makes a movie in a player object editable.
qtUndo()
qtCut()
qtCopy()
qtPaste()
qtSelectAll()
qtSelectNone()
qtAddMovieSegment() - allows add and add scaled operations
qtCreateHREFTrack()
qtDeleteTrack()
qtSaveAs()
qtGetMovieControllerInfo() - getting available actions on a movie (can
be copied, pasted, etc.). There is also an IsPlaying option that
returns whether or not the movie is playing.
qtGetTrackEnabled()/qtSetTrackEnabled() - get/set track enabled by
track index or track name. Revolution currently supports this by track
ID only.
qtRegisterTexSampleCallback() - register a handler that will be called
whenever a new text sample is loaded in the QT movie.
qtAddMovieAnnotation()
qtGetMovieAnnotation()
A player object can now receive the ApplicationNumberAndString message
as well.
The external is currently available for OS X only.
--
Trevor DeVore
Blue Mango Multimedia
trevor at mangomultimedia.com
From gizmotron at earthlink.net Mon Dec 1 18:19:25 2003
From: gizmotron at earthlink.net (Mark Brownell)
Date: Mon, 1 Dec 2003 15:19:25 -0800
Subject: cross-platform compress & decompress
In-Reply-To: <00CC8824-2445-11D8-96A5-000393C4760A@mindlube.com>
Message-ID:
Hi,
I've read everything I can find in the archives and I'm wondering if
anyone has solved the cross-platform compress & decompress problems. I
would like to create a compressed text file on Mac X and open &
decompress it on Windows, the same goes for make on Windows & open on
Mac. I'm not sure but it looks like the different charSets for each OS
seems to be the problem. Anyway when I try to open made on Mac in
Windows the file is not recognized as being compressed. I've tried
stripping the header before decompressing with no luck. Perhaps a
cross-platform compress/decompress is in the works soon? I solved these
charSet OS issues in cross-platform encryption by converting to numbers
within the entire encryption/decryption process. This took the relative
positions of the different chars in charSets out of picture until the
final rendering takes place.
Mark Brownell
From alex at mindlube.com Mon Dec 1 18:19:03 2003
From: alex at mindlube.com (Alex Rice)
Date: Mon, 1 Dec 2003 16:19:03 -0700
Subject: cross-platform compress & decompress
In-Reply-To:
References:
Message-ID:
On Dec 1, 2003, at 4:19 PM, Mark Brownell wrote:
> I've read everything I can find in the archives and I'm wondering if
> anyone has solved the cross-platform compress & decompress problems. I
> would like to create a compressed text file on Mac X and open &
> decompress it on Windows, the same goes for make on Windows & open on
> Mac. I'm not sure but it looks like the different charSets for each OS
> seems to be the problem. Anyway when I try to open made on Mac in
> Windows the file is not recognized as being compressed. I've tried
> stripping the header before decompressing with no luck. Perhaps a
> cross-platform compress/decompress is in the works soon? I solved
> these charSet OS issues in cross-platform encryption by converting to
> numbers within the entire encryption/decryption process. This took the
> relative positions of the different chars in charSets out of picture
> until the final rendering takes place.
Would base64 encoding the content before compressing it be a suitable
workaround for the char set issues?
Is there a bugzilla # I can read to get up to speed on this bug?
Alex Rice | Mindlube Software |
what a waste of thumbs that are opposable
to make machines that are disposable -Ani DiFranco
From ambassador at fourthworld.com Mon Dec 1 18:22:56 2003
From: ambassador at fourthworld.com (Richard Gaskin)
Date: Mon, 01 Dec 2003 15:22:56 -0800
Subject: cross-platform compress & decompress
In-Reply-To:
Message-ID:
Mark Brownell wrote:
> I've read everything I can find in the archives and I'm wondering if
> anyone has solved the cross-platform compress & decompress problems.
I've been using base64 on the compressed data to maintain it unadulterated
in user props or for transmission. It adds some bulk, but the net result is
still usually much smaller than the original.
--
Richard Gaskin
Fourth World Media Corporation
Developer of WebMerge: Publish any database on any Web site
___________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
Tel: 323-225-3717 AIM: FourthWorldInc
From ambassador at fourthworld.com Mon Dec 1 18:27:44 2003
From: ambassador at fourthworld.com (Richard Gaskin)
Date: Mon, 01 Dec 2003 15:27:44 -0800
Subject: cross-platform compress & decompress
In-Reply-To:
Message-ID:
Alex Rice wrote:
> On Dec 1, 2003, at 4:19 PM, Mark Brownell wrote:
>
>> I've read everything I can find in the archives and I'm wondering if
>> anyone has solved the cross-platform compress & decompress problems. I
>> would like to create a compressed text file on Mac X and open &
>> decompress it on Windows, the same goes for make on Windows & open on
>> Mac. I'm not sure but it looks like the different charSets for each OS
>> seems to be the problem. Anyway when I try to open made on Mac in
>> Windows the file is not recognized as being compressed. I've tried
>> stripping the header before decompressing with no luck. Perhaps a
>> cross-platform compress/decompress is in the works soon? I solved
>> these charSet OS issues in cross-platform encryption by converting to
>> numbers within the entire encryption/decryption process. This took the
>> relative positions of the different chars in charSets out of picture
>> until the final rendering takes place.
>
> Would base64 encoding the content before compressing it be a suitable
> workaround for the char set issues?
>
> Is there a bugzilla # I can read to get up to speed on this bug?
I don't think it's a bug as much as a very useful feature with unintended
consequences for binary data: in old versions of the engine, folks
complained that data stored in user properties did not have the automatic
cross-platform conversion as text in fields enjoy. So several versions ago
this was changed to allow the same for user props.
The downside to the change is that for the minority of user props containing
binary data this conversion will cause trouble, often making the data
unusable (as is the case if the data is compressed).
Maybe we need a flag to note whether a property is text or binary? Should
it be a stack property?
--
Richard Gaskin
Fourth World Media Corporation
Developer of WebMerge: Publish any database on any Web site
___________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
Tel: 323-225-3717 AIM: FourthWorldInc
From alex at mindlube.com Mon Dec 1 18:33:56 2003
From: alex at mindlube.com (Alex Rice)
Date: Mon, 1 Dec 2003 16:33:56 -0700
Subject: cross-platform compress & decompress
In-Reply-To:
References:
Message-ID:
On Dec 1, 2003, at 4:27 PM, Richard Gaskin wrote:
> I don't think it's a bug as much as a very useful feature with
> unintended
> consequences for binary data: in old versions of the engine, folks
> complained that data stored in user properties did not have the
> automatic
> cross-platform conversion as text in fields enjoy. So several
> versions ago
> this was changed to allow the same for user props.
> The downside to the change is that for the minority of user props
> containing
> binary data this conversion will cause trouble, often making the data
> unusable (as is the case if the data is compressed).
When did that happen? I thought that custom properties are a place
where binary data was really safe in Rev.
In either case I misunderstood Mark's question. I thought he meant
compressing data X on two different platforms would yield 2 different
chunks of binary data.
> Maybe we need a flag to note whether a property is text or binary?
> Should
> it be a stack property?
Just as a transcript notation you mean? Sounds useful
Alex Rice | Mindlube Software |
what a waste of thumbs that are opposable
to make machines that are disposable -Ani DiFranco
From gizmotron at earthlink.net Mon Dec 1 18:41:52 2003
From: gizmotron at earthlink.net (Mark Brownell)
Date: Mon, 1 Dec 2003 15:41:52 -0800
Subject: cross-platform compress & decompress
In-Reply-To:
Message-ID:
On Monday, December 1, 2003, at 03:19 PM, Alex Rice wrote:
> Would base64 encoding the content before compressing it be a suitable
> workaround for the char set issues?
Base64 would not help. It's not before compression that is the issue.
The stuff I'm encrypting already has a less-than 127 numToChar() value
restriction. If you look at the text of the compressed data you will
see many ascii characters that numToChar() higher than 127. These chars
read differently on different Systems. Even if you macToISO() the chars
they end up changing the decompress process on different platforms.
> Is there a bugzilla # I can read to get up to speed on this bug?
I only found one and it said it was resolved. I think this might be a
feature request kind of an issue.
mb
From monte at sweattechnologies.com Mon Dec 1 18:42:09 2003
From: monte at sweattechnologies.com (Monte Goulding)
Date: Tue, 2 Dec 2003 10:12:09 +1030
Subject: Writing PDF files from RunRev
In-Reply-To: <3FCB0928.2F98A4F@Club-Internet.fr>
Message-ID:
> > > I haven't visited the link, but have some
> > > experience writing PDF files from Metacard.
> >
> > Wonderful! Have you exported to pdf the full content
> > of a field, a card or a whole stack?
>
> Take it easy... ;-)
> It actually began more than 2 years ago on the MC list
> when I helped Monte Goulding (sp?) generating PDF
> files for one of his projects. I guess Monte also worked
> a lot on exporting data as PDF, and that he might be of
> some help as well (if not too busy)...
Yep, JB got me started on what was not an easy journey. It took me ages to
realise that even though it looks like ASCII text you need to save it as a
binary file (could be a line endings issue???). Unfortunately I've been
planning to build a generic PDF export library for about a year and never
had the time or project to make it worth while. My application Somatotype
generates PDF reports on the fly including multiple pages, complex charts,
tables and text. Fonts are an issue and any library I made would be limitesd
to the built in PDF fonts.
My plan has been to export stacks from card 1 to n with the page the same
size as the card. Currently all my code is in a Somatotype specific form so
I'm reluctant to hand it around. But it would be great to have a save stack
as PDF handler.
So the moral of the story is it's hard to motivate yourself to build a
library you don't need when you have a 6 week old baby girl, work coming out
your ears and Christmas on the way ;-)
Cheers
Monte
From ian at azurevision.co.uk Mon Dec 1 18:47:20 2003
From: ian at azurevision.co.uk (Ian Wood)
Date: Mon, 1 Dec 2003 23:47:20 +0000
Subject: Rev 1.1 apps launching Classic on OS X 10.3
Message-ID:
Hi folks,
I'm having trouble with Rev 1.1 builds and OS X.3, the apps try to
launch in Classic with no way to override this behaviour.
Can anyone else confirm this?
Ian Wood
Panoramic photography, from web to billboard, sunrise to moonrise
http://www.azurevision.co.uk
P.S. Yes, I could save up and get 2.1, but at the current rate of
shareware sales that would take a LONG time!
From alex at mindlube.com Mon Dec 1 18:48:04 2003
From: alex at mindlube.com (Alex Rice)
Date: Mon, 1 Dec 2003 16:48:04 -0700
Subject: Writing PDF files from RunRev
In-Reply-To:
References:
Message-ID:
On Dec 1, 2003, at 4:42 PM, Monte Goulding wrote:
> My application Somatotype
> generates PDF reports on the fly including multiple pages, complex
> charts,
> tables and text.
That's impressive though! Just curious: how much of the many-thousand
page PDF Specs from Adobe did you have to study to get to this point?
Alex Rice | Mindlube Software |
what a waste of thumbs that are opposable
to make machines that are disposable -Ani DiFranco
From alex at mindlube.com Mon Dec 1 18:56:37 2003
From: alex at mindlube.com (Alex Rice)
Date: Mon, 1 Dec 2003 16:56:37 -0700
Subject: Trapping for Cancel Answer printer
In-Reply-To: <20031130194655.3079.qmail@mahiai.aloha.net>
References: <20031130194655.3079.qmail@mahiai.aloha.net>
Message-ID: <0056C3CA-245A-11D8-844C-000393C4760A@mindlube.com>
On Nov 30, 2003, at 12:46 PM, katir at hindu.org wrote:
> This is either a bug, where for use of "answer printer" Rev should
> pass the result to "it" or needs more documentation if the globally
> expected engine behavior is for anything from the system to *not* be
> in "it" but be passed via the result, which is also logical. Old time
> xTalkers may take that for granted, newbies will stumble
As Ken confirmed, the solution is to check the result, not "it". I
think the docs reflect that.
As a relative new xtalker I have sometimes been confused when sometimes
"it" is called for, and sometimes "the result". Is there any general
rule to be aware of?
Alex Rice | Mindlube Software |
what a waste of thumbs that are opposable
to make machines that are disposable -Ani DiFranco
From gizmotron at earthlink.net Mon Dec 1 19:01:13 2003
From: gizmotron at earthlink.net (Mark Brownell)
Date: Mon, 1 Dec 2003 16:01:13 -0800
Subject: cross-platform compress & decompress
In-Reply-To:
Message-ID:
I have a system that works for me, it's plain text.
This example opens on all platforms and is without cross-platform
issues:
n/a
Demo Document
n/a
www.demotypeX.com
1
61 173 254 201 112 131 124 144 25 151 90 58 97 202 63 89 92 6 195 93 79
163 159 77 171 228 84 228 [snip]...
Dictionary InformationNo dictionary information
available.
Add a term later
135 157 165 249 203 64 187 98 25 182 92 175 143 130 104 126 204 151 137
247 154 167 240 68 138 168 134 37 0 10 37 131 113 108 191 14 208 46 170
95 105 30 110 123 49 72 24 246 129 148 [snip]...
The snipped sets of numbers are encrypted data that exists between the
tag sets.
I was just looking for a way to make it smaller.
mb
From dcragg at lacscentre.co.uk Mon Dec 1 18:59:08 2003
From: dcragg at lacscentre.co.uk (Dave Cragg)
Date: Mon, 1 Dec 2003 23:59:08 +0000
Subject: cross-platform compress & decompress
In-Reply-To:
References:
Message-ID:
At 3:27 pm -0800 1/12/03, Richard Gaskin wrote:
>> On Dec 1, 2003, at 4:19 PM, Mark Brownell wrote:
>>
>>> I've read everything I can find in the archives and I'm wondering if
>>> anyone has solved the cross-platform compress & decompress problems. I
>>> would like to create a compressed text file on Mac X and open &
>>> decompress it on Windows, the same goes for make on Windows & open on
>>> Mac. I'm not sure but it looks like the different charSets for each OS
>>> seems to be the problem. Anyway when I try to open made on Mac in
>>> Windows the file is not recognized as being compressed. I've tried
>>> stripping the header before decompressing with no luck. Perhaps a
>>> cross-platform compress/decompress is in the works soon? I solved
>>> these charSet OS issues in cross-platform encryption by converting to
>>> numbers within the entire encryption/decryption process. This took the
>>> relative positions of the different chars in charSets out of picture
>>> until the final rendering takes place.
Are you treating the files as binary data and not as text files? That
is, when you save and open, you should use "binfile" and not "file".
For example:
When saving:
put compress(field 1) into url ("binfile:" & )
When opening:
put decompress(url ("binfile:" & )) into field 1
>
>I don't think it's a bug as much as a very useful feature with unintended
>consequences for binary data: in old versions of the engine, folks
>complained that data stored in user properties did not have the automatic
>cross-platform conversion as text in fields enjoy. So several versions ago
>this was changed to allow the same for user props.
Are you sure that's true, Richard? I use custom props for image data,
audio, and a host of other binary data but haven't noticed any cross
platform issues.
Dave
From gizmotron at earthlink.net Mon Dec 1 19:09:43 2003
From: gizmotron at earthlink.net (Mark Brownell)
Date: Mon, 1 Dec 2003 16:09:43 -0800
Subject: cross-platform compress & decompress
In-Reply-To:
Message-ID:
On Monday, December 1, 2003, at 03:59 PM, Dave Cragg wrote:
> Are you treating the files as binary data and not as text files? That
> is, when you save and open, you should use "binfile" and not "file".
> For example:
I'm using "binfile" for all. This works fine on Win and works fine for
Mac as long as I use binary files created on the same platform.
From livfoss at blueyonder.co.uk Mon Dec 1 19:09:05 2003
From: livfoss at blueyonder.co.uk (Graham Samuel)
Date: Tue, 2 Dec 2003 00:09:05 +0000
Subject: How do I create an unreferenced image?
In-Reply-To: <20031201232637.3882093009F@mail.runrev.com>
Message-ID:
> On Mon, 01 Dec 2003 23:37:06 +0100, Wilhelm Sanke
>
>> Hello Graham,
>>
>>> Date: Sun, 30 Nov 2003 20:39:55 +0000
>>> From: Graham Samuel
>>> Subject: How do I create an unreferenced image?
>>>
>>> My question is, how does the IDE do this trick of embedding and
>>> getting rid of the external reference? I would like to create such
>>> images myself by scripting, but I don't see how. Sorry if this is
>>> obvious.
>> -----------
>> Yep, it's pretty simple as far as the command goes.
>>
>> Look up "import" in the Transport Dictionary.
>>
>> [...]
>> Ken and Graham,
>
> Lots of things to consider, aren't they?
>
> Excuse me, RR folks, if I mention this again: Besides a number of
> really
> good improvements unfortunately there is a whole bunch of
> mis-improvements of Revolution vs. Metacard.
>
> In the Metacard IDE, when you import an image file, first thing you get
> is a dialog with a checkbutton "Link Only". If you uncheck this button,
> the image will be embedded.
>
> So my recommendation is: Switch to the Metacard IDE for a moment and
> then - if you like - go back to Revolution.
>
Interesting point, Wilhelm, but I wanted to do this while my app was
running, not in the IDE - the two Kens have now both pointed me at the
'import' command, so all is well, once I've worked out how to name the
image after it's imported (don't worry, I'm sure that this is trivial
although it's not mentioned in the documentation for 'import' - I guess
I just have to find the last numbered image and change its name).
Thanks all
Graham
_________________________________________
Graham Samuel / The Living Fossil Co. / UK & France
From monte at sweattechnologies.com Mon Dec 1 19:09:31 2003
From: monte at sweattechnologies.com (Monte Goulding)
Date: Tue, 2 Dec 2003 10:39:31 +1030
Subject: Writing PDF files from RunRev
In-Reply-To:
Message-ID:
> > My application Somatotype
> > generates PDF reports on the fly including multiple pages, complex
> > charts,
> > tables and text.
>
> That's impressive though! Just curious: how much of the many-thousand
> page PDF Specs from Adobe did you have to study to get to this point?
Quite a bit although much of it doesn't apply to the very basic PDF
documents that I export. In such a big document it's finding the one line of
text that you need that's annoying.
Cheers
Monte
From monte at sweattechnologies.com Mon Dec 1 19:15:32 2003
From: monte at sweattechnologies.com (Monte Goulding)
Date: Tue, 2 Dec 2003 10:45:32 +1030
Subject: cross-platform compress & decompress
In-Reply-To:
Message-ID:
> On Monday, December 1, 2003, at 03:59 PM, Dave Cragg wrote:
>
> > Are you treating the files as binary data and not as text files? That
> > is, when you save and open, you should use "binfile" and not "file".
> > For example:
>
> I'm using "binfile" for all. This works fine on Win and works fine for
> Mac as long as I use binary files created on the same platform.
Try compressing an decompressing the whole file to see if some stage in your
parsing is corrupting the compressed data. Richard's suggestion of compress
then base64Encode is also appropriate for binary data in an XML document.
Cheers
Monte
From dcragg at lacscentre.co.uk Mon Dec 1 19:17:11 2003
From: dcragg at lacscentre.co.uk (Dave Cragg)
Date: Tue, 2 Dec 2003 00:17:11 +0000
Subject: cross-platform compress & decompress
In-Reply-To:
References:
Message-ID:
At 4:01 pm -0800 1/12/03, Mark Brownell wrote:
>I have a system that works for me, it's plain text.
>
>This example opens on all platforms and is without cross-platform issues:
Mark, could you provide an example that doesn't work? I've never
encountered this problem, and I open a lot of compressed files
(usally stacks) across Win and Mac platforms.
Are you using e-mail to transfer the files? I've come across cases of
supposedly binary files being "converted" during e-mail transmission.
Cheers
Dave
From erikhans08 at yahoo.com Mon Dec 1 19:18:48 2003
From: erikhans08 at yahoo.com (erik hansen)
Date: Mon, 1 Dec 2003 16:18:48 -0800 (PST)
Subject: if not OT then why off list?
In-Reply-To: <20031129220412.224.qmail@mahiai.aloha.net>
Message-ID: <20031202001848.80055.qmail@web20009.mail.yahoo.com>
--- katir at hindu.org wrote:
> Due to spiders harvesting email addresses from
> our web sites, which results in a flood of
> spam, we are planning to remove them all and
> use a form-post-to-cgi model. I would like to
> use transcript. If anyone has invented this
> wheel already, email me off list.
if not OT then why off list?
=====
erik at erikhansen.org http://www.erikhansen.org
__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
From erikhans08 at yahoo.com Mon Dec 1 19:32:11 2003
From: erikhans08 at yahoo.com (erik hansen)
Date: Mon, 1 Dec 2003 16:32:11 -0800 (PST)
Subject: Beginning Valentina Question
In-Reply-To:
Message-ID: <20031202003211.22242.qmail@web20008.mail.yahoo.com>
--- Dan Shafer wrote:
> Ken...
>
> Thanks. Success!
>
> Wow, there's a lot of undocumented arcania
> here! Someone needs to pull
> it together in one place where people can find
> it!
>
> I'm working on a stack demonstrating the use of
> the report stuff in
> 2.1.2, but maybe I should first do a database
> tutorial stack set.
>
> Hmmmmm
please do.
Erik
=====
erik at erikhansen.org http://www.erikhansen.org
__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
From gizmotron at earthlink.net Mon Dec 1 19:36:59 2003
From: gizmotron at earthlink.net (Mark Brownell)
Date: Mon, 1 Dec 2003 16:36:59 -0800
Subject: cross-platform compress & decompress
In-Reply-To:
Message-ID:
On Monday, December 1, 2003, at 04:15 PM, Monte Goulding wrote:
> Try compressing an decompressing the whole file to see if some stage
> in your
> parsing is corrupting the compressed data. Richard's suggestion of
> compress
> then base64Encode is also appropriate for binary data in an XML
> document.
>
> Cheers
>
> Monte
I have tried compressing and decompressing the whole file as the first
test. I tried compressing the data from a variable as a second test.
I've looked at the same data in a text editor on both platforms and I
did a comparison of charToNum() of the compressed data on both
platforms. This was the exact same problem I had with blowfish I think.
I solved it by constricting cross-platform data transfers to less than
ascii 127; even though the data can represent up to ascii 255. My
blowfish algorithm does it all as numerical values until the final
rendering. I had to drop binaryEncode() & binaryDecode() in order to
get numerical only results within the process. That's why I think it's
something like upper ascii character values across platforms.
So can you compress this: "abcdefghijklmnopqrstuvwxyz1234567890" on a
Mac, save it as binary on a Mac, and open & decompress it on a Windows
machine? I need to see a basic text file that I can decompress on Mac &
Windows. \ mb
From gizmotron at earthlink.net Mon Dec 1 19:45:51 2003
From: gizmotron at earthlink.net (Mark Brownell)
Date: Mon, 1 Dec 2003 16:45:51 -0800
Subject: cross-platform compress & decompress
In-Reply-To:
Message-ID:
On Monday, December 1, 2003, at 04:17 PM, Dave Cragg wrote:
> Mark, could you provide an example that doesn't work? I've never
> encountered this problem, and I open a lot of compressed files (usally
> stacks) across Win and Mac platforms.
>
> Are you using e-mail to transfer the files? I've come across cases of
> supposedly binary files being "converted" during e-mail transmission.
I'm zipping the Mac files and then FTPing them to my website. I'm then
downloading them, unzipping them on Windows. After that I can open the
text files but I can't use Rev to decompress the Mac .gz files. Windows
recognizes these compressed files as .gz but won't let me decompress
them. \ mb
From ambassador at fourthworld.com Mon Dec 1 20:01:50 2003
From: ambassador at fourthworld.com (Richard Gaskin)
Date: Mon, 01 Dec 2003 17:01:50 -0800
Subject: cross-platform compress & decompress
In-Reply-To:
Message-ID:
Mark Brownell wrote:
> On Monday, December 1, 2003, at 04:17 PM, Dave Cragg wrote:
>
>> Mark, could you provide an example that doesn't work? I've never
>> encountered this problem, and I open a lot of compressed files (usally
>> stacks) across Win and Mac platforms.
>>
>> Are you using e-mail to transfer the files? I've come across cases of
>> supposedly binary files being "converted" during e-mail transmission.
>
> I'm zipping the Mac files and then FTPing them to my website. I'm then
> downloading them, unzipping them on Windows. After that I can open the
> text files but I can't use Rev to decompress the Mac .gz files. Windows
> recognizes these compressed files as .gz but won't let me decompress
> them. \ mb
There may be something else in the mix: RevNet has a lot of gzipped files
from both platforms and this has not been reported as a problem there.
--
Richard Gaskin
Fourth World Media Corporation
Developer of WebMerge: Publish any database on any Web site
___________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
Tel: 323-225-3717 AIM: FourthWorldInc
From ambassador at fourthworld.com Mon Dec 1 20:11:18 2003
From: ambassador at fourthworld.com (Richard Gaskin)
Date: Mon, 01 Dec 2003 17:11:18 -0800
Subject: Trapping for Cancel Answer printer
In-Reply-To: <0056C3CA-245A-11D8-844C-000393C4760A@mindlube.com>
Message-ID:
Alex Rice wrote:
> On Nov 30, 2003, at 12:46 PM, katir at hindu.org wrote:
>> This is either a bug, where for use of "answer printer" Rev should
>> pass the result to "it" or needs more documentation if the globally
>> expected engine behavior is for anything from the system to *not* be
>> in "it" but be passed via the result, which is also logical. Old time
>> xTalkers may take that for granted, newbies will stumble
>
> As Ken confirmed, the solution is to check the result, not "it". I
> think the docs reflect that.
> As a relative new xtalker I have sometimes been confused when sometimes
> "it" is called for, and sometimes "the result". Is there any general
> rule to be aware of?
As a very general rule, "the result" is used for error info while "it"
contains data.
Are there other exceptions to this?
--
Richard Gaskin
Fourth World Media Corporation
___________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
Tel: 323-225-3717 AIM: FourthWorldInc
From ambassador at fourthworld.com Mon Dec 1 20:22:27 2003
From: ambassador at fourthworld.com (Richard Gaskin)
Date: Mon, 01 Dec 2003 17:22:27 -0800
Subject: cross-platform compress & decompress
In-Reply-To:
Message-ID:
Dave Cragg wrote:
>> I don't think it's a bug as much as a very useful feature with unintended
>> consequences for binary data: in old versions of the engine, folks
>> complained that data stored in user properties did not have the automatic
>> cross-platform conversion as text in fields enjoy. So several versions ago
>> this was changed to allow the same for user props.
>
> Are you sure that's true, Richard? I use custom props for image data,
> audio, and a host of other binary data but haven't noticed any cross
> platform issues.
I may be getting old and feeble, recalling merely a discussion of what would
happen if the request were implemented.
I can't recall a specific instance of custom props failing with binary data
for me, so chalk that up to a lack of sleep until someone confirms/denies it
empirically.
However, i used to have issues sending compressed data over sockets until I
got into the habit of using base64. But since I've never had a problem
using your excellent libUrl even those may have been user error. :) I
started using base64 early on in my works with sockets, so other factors may
have been at play while I was getting the hang of it.
But the issue seems bigger than Mark and myself: I recall a number of cases
where using compress/decompress across platforms was discussed here as
problematic, though I don't recall if storing them in user props or
transmitting via sockets was a consistent part of the recipe.
--
Richard Gaskin
Fourth World Media Corporation
___________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
Tel: 323-225-3717 AIM: FourthWorldInc
From gizmotron at earthlink.net Mon Dec 1 20:47:17 2003
From: gizmotron at earthlink.net (Mark Brownell)
Date: Mon, 1 Dec 2003 17:47:17 -0800
Subject: cross-platform compress & decompress
In-Reply-To:
Message-ID: <75F9940D-2469-11D8-8671-000A95859272@earthlink.net>
On Monday, December 1, 2003, at 05:01 PM, Richard Gaskin wrote:
> There may be something else in the mix: RevNet has a lot of gzipped
> files
> from both platforms and this has not been reported as a problem there.
I'm using this on a Mac X:
put "abcdefghijklmnopqrstuvwxyz1234567890<>" into tankX
ask file "Save:" with "Untitled.txt"
put compress(tankX) into URL ("binfile:" & it & ".gz")
I get this:
? KLJNIMK????????/(,*.)-+???2426153??4?? d???&