Re: USB barcode scanner?

2008-11-29 Thread Scott Rossi
Recently, Tim Ponn wrote:

> Can anybody recommend a usb barcode scanner that I can get to work
> with rev?  I using rev 2.81 and a Mac.  I've got my POS app working
> nicely now and it's time for the next step...adding a scanner.

Hi Tim:

I haven't used it extensively but I have an IntelliScanner Mini from here:
http://www.intelliscanner.com/

The biggest selling point for me on this unit is the size -- it could
literally fit on a keyring.  It works in 2 modes: batch, where you scan
codes unplugged and it stores codes in onboard memory; and tethered, where
scans are immediately sent to the front most application (or one of the
applications that ships with the unit).

It's been a while since I last used it, but I just installed the latest
dashboard software on OSX 10.4.11, and ran it with Revolution 3.  Scans are
immediately transferred to an open field, along with a return character.

FWIW.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design


___
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


When they ask, what is this written in?

2008-11-29 Thread Jim Sims

When potential clients and/or investors ask you "What language
did you make this in/with?"  and after saying Revolution (I usually
say Transcript, I like that name much better) they say "I've never
heard of that"  What do you tell them?

The best counter, for me, for the above exchange is "Mike Markkula,
the angel investor that got Apple off the ground has invested in Rev."


My project is a finalist at Le Web 2008, the largest startup event
in Europe (Wall Street Journal, LinkedIn founder, TED, etc etc will be
there along with lots of investors). There are 30 finalists, we do
presentations and then three are picked as co-winners.

The real prize is getting to speak with lots of  investors from
the US & Europe over several days. I need to make the most of this
as I like good food & wine, unfortunately those things cost cash  ;-)

 I need to take advantage of this opportunity.

What do you say about Rev (or MetaCard)?

sims







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


Re: formattedText to clipboard

2008-11-29 Thread J. Landman Gay

Mark Swindell wrote:

Thanks for the  explanation, Jackie and Sarah.

Is there an advantage to having all keys filled when pasting into 
various destinations... email, word processors, page layout programs, etc?


No, not if you only need one. But if you don't know what might be used 
by another program, it's handy to get as many as you can.


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


sending midi data

2008-11-29 Thread Kurt Kaufman


I have worked with MIDI files from within Rev:
http://www.shopperturnpike.com/usefulsoftware/midibuilder.html

The MIDI Builder in stack form:
http://www.shopperturnpike.com/usefulsoftware/MIDI_builder.zip


As you can see, it is possible to create, edit and play MIDI **files**  
using Rev and Quicktime.  I am not familiar with methods used to  
"stream" MIDI data from one device to another, virtual or otherwise.   
I do not know whether you could use Rev for this.  I'm guessing it  
might require platform-specific externals.  The topic was discussed  
here:

http://forums.runrev.com/phpBB2/viewtopic.php?p=8013&sid=6daa14a1c39bc20b5967dc184346d1ef


-Kurt



___
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


getting style information from text

2008-11-29 Thread James Hale

Hi,

I want to process some styled text to set actions depending of the  
style of the text.


I have the text currently in a field and having placed it there by the  
following code snippet:


  set the RTFText of field "thetext" to the URL thepath

This works fine and places the styled text in the field.

I now want to go through this text, line by line, and depending on  
whether the line is bold or not and do one thing or another.


I can do this using another field "targettext" by placing the RTFText  
of each line in turn into this field and then checking the "textstyle"  
of the field's contents.


My question is, can I do this using a variable instead of this second  
field "targettext".


It seems that when I use a variable instead of the field, the actual  
text placed in the variable is the raw RTF and thus the "textsyle"  
property makes no sense.


So I guess I am asking if, in order to act on the style (bold or  
plain) of the text I wish to process, am I restricted to using fields  
as my containers.



James Hale

[EMAIL PROTECTED]

Tel: +61 3 9386 2516
Fax: +61 3 9386 1387



___
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: formattedText to clipboard

2008-11-29 Thread Mark Swindell

Thanks for the  explanation, Jackie and Sarah.

Is there an advantage to having all keys filled when pasting into  
various destinations... email, word processors, page layout programs,  
etc?


Mark

On Nov 29, 2008, at 11:26 AM, J. Landman Gay wrote:

See the clipboardData entry in the dictionary for more keys. If you  
want to fill all keys at once automatically, you can use the ancient  
technique we had to use before the clipboardData was invented:


lock screen
select text of fld x
copy
select empty
unlock screen


___
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: OT: Getting HTML text into an email message

2008-11-29 Thread James Hurley


Message: 6
Date: Fri, 28 Nov 2008 01:13:33 -0600
From: Ken Ray <[EMAIL PROTECTED]>
Subject: Re: OT: Getting HTML text into an email message
To: Use Revolution List 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain;   charset="US-ASCII"

Since no one responded to this, I'll take a stab...


But what is the magic? Is there a way in Run Rev to convert an HTML
page directly for email?


The problem here is that as soon as you leave the realm of plain  
text, you
enter the world of "what does the specific email client support"?  
That is,
assuming you want Mail to be the email client here that will be  
sending the
message, you need to then play in Mail's sandbox using whatever  
AppleScript
is supported in Mail to do this (more on this later). But of course  
whatever
you do will only work with Mail; if you want to send an HTML- 
formatted email

from Entourage or from Outlook (PC), etc. you'll need to do something
totally different.

The other alternative (if you don't want to use a third-party email  
client),
is to have Rev send SMTP-based email itself, and if you're  
interested in
that avenue, there are a couple of libraries out there to help you  
send SMTP

email.

Back to Mail... since you're sending a formatted field, I'm  
assuming it's

not pictures, so one way to do what you're looking for would be to
AppleScript the mail message by styling the text in the same way  
the field
is styled in Rev... there may be others, but this is the one I'm  
aware of...


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


Ken,

Thanks for the thoughtful response. As I suspected, there is no  
simple answer, or at least simple enough that I am willing to pursue it.


I found this in an article by Tim Slavin:

"The biggest pain when coding HTML email is that so many different  
software tools are available for reading email, from
desktop software such as Eudora, Outlook, AOL, Thunderbird, and Lotus  
Notes, to web-based email services such as
Yahoo!, Hotmail, and Google Mail. If you thought it was difficult to  
ensure the cross-browser compatibility of your web
sites, be aware that this is a whole new game -- each of these email  
software tools can display the same email in vastly
different ways. And even when these tools do display an HTML email  
properly, accounting for variances in, for example,
the widths at which readers size their windows when reading emails  
makes things even trickier."


Confirming your observation above.

For several years I have volunteered to do election data base work  
for local grass roots organizations. I am not able to disabuse them  
of the fact that web page and HTML email construction is a different  
skill altogether, a skill I don't have. But one thing has led to  
another and I am trying my hand at HTML. I hate it. Sure wish Run Rev  
would come out with its Web edition of Run Rev. That would take care  
of the web page. Then all we would have to do is persuade the world  
to download the app that makes it work.


Jim Hurley


___
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: [ANN]: More about masks (+ sample stack)

2008-11-29 Thread James Hurley


Message: 7
Date: Sat, 29 Nov 2008 10:11:36 +0100
From: "Wilhelm Sanke, FB01" <[EMAIL PROTECTED]>
Subject: [ANN]: More about masks (+ sample stack)
To: use-revolution@lists.runrev.com
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1

Accompanying is a sample stack with a side-by-side comparison of a  
number of

approaches and containing most of the discussions with examples:




Wilhelm,

A veritable treatise! Very impressive. It will take me a while to  
digest this.


Love the "two-liner."   Works for any shape masking image, I assume.

Jim  Hurley




To run the stack you need Rev 2.9 or higher.

As a starter for this overview about how to produce masked images  
in Revolution

here is a "two-liner":

on mouseup
crop image "to-be-masked" to the rect of image "SelectionOval"
set the alphadata of image "to-be-masked" to the alphadata of image  
"SelectionOval"

end mouseup



___
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: High ASCII character translation code thingy

2008-11-29 Thread Mark Schonewille

Hi Paul

This is unicode. Read the text strings from the XML file, then convert  
to unicode.


put uniencode(myXML,"UTF8") into myUnicodeString
set the unicodeText of fld x to myUnicodeString

You might use Rev's XML features to read the data.

--
Best regards,

Mark Schonewille

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

Color Converter has been updated! Get it at
http://colorconverter.economy-x-talk.com !

On 30 nov 2008, at 01:48, paul foraker wrote:


Hi,

I'm doing some volunteer work for a non-profit. They're sending me  
an XML

export from a Netsuite database server, emailed to me weekly. The file
contains a transaction log which I need to parse in order to update a
Rev-based database. For ease, and because the file is not huge, I'm  
opening
it in Excel, copying the records and pasting them into BBEdit, then  
saving
that as ".txt" and reading the text file into Rev. This handily  
converts the

data to Tab and Return delimited.

I'm using Macs (Tiger and Leopard, the same behavior). Rev Studio 2.9.

Problem 1:

Some records in this update file contain Spanish, French, German or  
Dutch
names, street addresses, etc. The special characters in those  
languages are
arriving here in some code that I cannot find a description of  
anywhere.
Hopefully, I can represent it here without them getting translated  
into

something else.

Example:

The accented i in Maria (María) is expressed in this file as
íor the

square root symbol and a not-equal sign. So, the result is María.

Question 1: what is this code called, and where can I find some
documentation on it?  Does Rev have a translator, either through a  
function,

or some way to import a file?


Problem 2:

A friend painstakingly went through instances of these encodings and  
mapped
them to the special characters they represent. So, I now have a text  
file

containing a tab and return delimited list, 65 rows. I thought I would
create an array and pass the data through a function to translate  
the codes
into their respective special characters. However, it turns out that  
one of
the special characters is a capital D with a horizontal bar through  
the

ascender. Or, as it is represented in this table:

√è (tab) Ð

That D character displays fine in BBEdit. However, when I pasted the  
entire
list into a Rev field, the data was terminated before displaying  
that D
character. I also tried setting a property to the contents of the  
Clipboard.

Apparently, that D character is a terminator in the Rev Clipboard.

Question 2: how can I interpret and display the D character, since it
terminates a string?


Weird Note:

I tried using File / Import to bring the translation text file into  
Rev, but
that result was surprising. All the characters in the table were  
translated

into the very code I'm trying to unravel! So, for example, the line
containing the accented i:

√≠í

became

√≠í

Obviously, Rev knows something about these codes.


So, as a workaround, I'm going to replace the D character with a  
substitute
and work with the other 64 of them in that array, hoping nobody  
shows up

with that D character in their name or address.

Anyone have any insight?

Thanks,

-- Paul


___
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


High ASCII character translation code thingy

2008-11-29 Thread paul foraker
Hi,

I'm doing some volunteer work for a non-profit. They're sending me an XML
export from a Netsuite database server, emailed to me weekly. The file
contains a transaction log which I need to parse in order to update a
Rev-based database. For ease, and because the file is not huge, I'm opening
it in Excel, copying the records and pasting them into BBEdit, then saving
that as ".txt" and reading the text file into Rev. This handily converts the
data to Tab and Return delimited.

I'm using Macs (Tiger and Leopard, the same behavior). Rev Studio 2.9.

Problem 1:

Some records in this update file contain Spanish, French, German or Dutch
names, street addresses, etc. The special characters in those languages are
arriving here in some code that I cannot find a description of anywhere.
Hopefully, I can represent it here without them getting translated into
something else.

Example:

The accented i in Maria (María) is expressed in this file as   √≠or the
square root symbol and a not-equal sign. So, the result is María.

Question 1: what is this code called, and where can I find some
documentation on it?  Does Rev have a translator, either through a function,
or some way to import a file?


Problem 2:

A friend painstakingly went through instances of these encodings and mapped
them to the special characters they represent. So, I now have a text file
containing a tab and return delimited list, 65 rows. I thought I would
create an array and pass the data through a function to translate the codes
into their respective special characters. However, it turns out that one of
the special characters is a capital D with a horizontal bar through the
ascender. Or, as it is represented in this table:

√è (tab) Ð

That D character displays fine in BBEdit. However, when I pasted the entire
list into a Rev field, the data was terminated before displaying that D
character. I also tried setting a property to the contents of the Clipboard.
Apparently, that D character is a terminator in the Rev Clipboard.

Question 2: how can I interpret and display the D character, since it
terminates a string?


Weird Note:

I tried using File / Import to bring the translation text file into Rev, but
that result was surprising. All the characters in the table were translated
into the very code I'm trying to unravel! So, for example, the line
containing the accented i:

√≠í

became

√≠í

Obviously, Rev knows something about these codes.


So, as a workaround, I'm going to replace the D character with a substitute
and work with the other 64 of them in that array, hoping nobody shows up
with that D character in their name or address.

Anyone have any insight?

Thanks,

-- Paul
___
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: OT: Getting HTML text into an email message

2008-11-29 Thread James Hurley


--

Message: 5
Date: Fri, 28 Nov 2008 16:34:42 -1000
From: Sivakatirswami <[EMAIL PROTECTED]>
Subject: Re: OT: Getting HTML text into an email message
To: How to use Revolution 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

If you are running on OSX, then you can also (assuming you are into  
this

kind of thing)

* Enable PostFix on your box
* Build your own multi-part email
* send it thru using Shell to your mail server

Pros:

-- You completely bypass all mail client caveats
-- Content is fully under your control

Cons: a bit nerdy; you have to know how to build the email


 Whew! Way too much for me. Whenever I  hear the word "Shell" I go  
into my shell.


But thanks for the suggestion. You are obviously a master at this  
sort of thing.


Jim Hurley


___
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: Instead of toUpper

2008-11-29 Thread Robert Brenstein

On 29/11/08 at 21:51 +0100 Melitón Cardona Torres apparently wrote:


repeat with x = 1 to the number of chars of upText
  put char x of upText into aChar

  

end repeat


could be

repeat for each char aChar in upText
  
end repeat

Robert
___
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: Instead of toUpper

2008-11-29 Thread Robert Brenstein

On 29/11/08 at 21:51 +0100 Melitón Cardona Torres apparently wrote:


## Those characters (æ, ¦) cannot be included in spSma (?)
  if chartonum(aChar) is 190 then
replace aChar with numtochar(174) in upText
next repeat
  end if
 if chartonum(aChar) is 207 then
replace aChar with numtochar(207) in upText
next repeat
  end if


can be

 get wordoffset(chartonum(aChar),"190 207")
 if it>0 then
 replace cChar with numtochar(word it of "174 207") in upText
 next repeat
 end if

I wonder why you have 207 for both lower and upper versions.

Robert
___
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: Instead of toUpper

2008-11-29 Thread Robert Brenstein

On 29/11/08 at 21:51 +0100 Melitón Cardona Torres apparently wrote:


## SpecChars
 if aChar is among the chars of spSma then
repeat with y=1 to the number of chars of spSma
  if aChar is char y of spSma then
replace char y of spSma with char y of spCap in upText
  end if
end repeat
  end if


can be

 get offset(aChar, spSma)
 if it > 0 then replace char it of spSma with char it of spCap in upText

Robert
___
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: Instead of toUpper

2008-11-29 Thread Mark Schonewille

Hi Ton,

This might be a little faster:

function xToUpper theText
   put toUpper(theText) into theText
   put "ÃÁÀÂÉÈÊËÍÎÏÌÑÓÒÔÖÕÚÙÛÜÇÅØÆŒ" into spCap
   put "äáàâéèêëíîïìñóòôöõúùûüçåøæœ" into spSma
   put 0 into myCounter
   repeat for each char myChar in spSma
  add 1 to myCounter
  replace char myCounter of spSma with char myCounter of spCap in  
theText

   end repeat
   return theText
end xToUpper

I am surprised that I have never seen the problems you describe, even  
though I've been writing French texts on my Dutch Macs with  
International English keyboards. Where does my script stop working for  
you?


--
Best regards,

Mark Schonewille

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

Color Converter has been updated! Get it at
http://colorconverter.economy-x-talk.com !

On 29 nov 2008, at 21:51, Melitón Cardona Torres wrote:


function toCapitals aText
 put "ÃÁÀÂÉÈÊËÍÎÏÌÑÓÒÔÖÕÚÙÛÜÇÅØ" into spCap
 put "äáàâéèêëíîïìñóòôöõúùûüçåø" into spSma
 if chartonum(char 2 of aText)>64 and chartonum(last char of  
aText)<91 then

  ## No need to process, apparently
   return aText
 else
   put toUpper(aText) into upText
   repeat with x = 1 to the number of chars of upText
 put char x of upText into aChar
## Those characters (æ, œ) cannot be included in spSma (?)
 if chartonum(aChar) is 190 then
   replace aChar with numtochar(174) in upText
   next repeat
 end if
if chartonum(aChar) is 207 then
   replace aChar with numtochar(207) in upText
   next repeat
 end if
## SpecChars
if aChar is among the chars of spSma then
   repeat with y=1 to the number of chars of spSma
 if aChar is char y of spSma then
   replace char y of spSma with char y of spCap in upText
 end if
   end repeat
 end if
   end repeat
 end if
 return upText
end toCapitals


___
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: Finding and replacing "numbers" in calendar day field

2008-11-29 Thread Mark MacKenzie
Hi Joe and Sarah.

I had been working with the find and then replace functions but kept getting an 
insurmountable pattern error message.
Sarah, your suggestion worked like a charm.

the code snippet is as follows:

on WriteEvent
put the number of lines of field "Month Events List" into tFieldLines
set the itemdelimiter to "/"
repeat with x = 1 to tFieldLines
put item 2 of line x of field "Month Events List" into tDayNeeded
put tDayNeeded && " Event" into tToPaste
find empty
find tDayNeeded in field "Dates" of group "Main_Group"
put tToPaste into foundChunk
-- replace tDayNeeded with tToPaste in field "Dates" of group "Main_Group"
end repeat
end WriteEvent

This works like a charm.

But has also left me with another question.

Thank you

Mark MacKenzie
Art Conservator & Wet Plate Photographer
Alcalde, New Mexico
___
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


Instead of toUpper

2008-11-29 Thread Melitón Cardona Torres

function toCapitals aText
  put "ÃÁÀÂÉÈÊËÍÎÏÌÑÓÒÔÖÕÚÙÛÜÇÅØ" into spCap
  put "äáàâéèêëíîïìñóòôöõúùûüçåø" into spSma
  if chartonum(char 2 of aText)>64 and chartonum(last char of  
aText)<91 then

   ## No need to process, apparently
return aText
  else
put toUpper(aText) into upText
repeat with x = 1 to the number of chars of upText
  put char x of upText into aChar
## Those characters (æ, œ) cannot be included in spSma (?)
  if chartonum(aChar) is 190 then
replace aChar with numtochar(174) in upText
next repeat
  end if
 if chartonum(aChar) is 207 then
replace aChar with numtochar(207) in upText
next repeat
  end if
## SpecChars
 if aChar is among the chars of spSma then
repeat with y=1 to the number of chars of spSma
  if aChar is char y of spSma then
replace char y of spSma with char y of spCap in upText
  end if
end repeat
  end if
end repeat
  end if
  return upText
end toCapitals

Based on Robert Brenstein's 
suggestions.___
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: formattedText to clipboard

2008-11-29 Thread J. Landman Gay

Mark Swindell wrote:
Via a button, how can I capture the formatted text of a field and put it 
into the clipboard so that it can then be pasted with formatting intact 
into a word processor??


"Set the clipboardData to field x", puts the text but without formatting.

"Set the clipboardData to the htmlText of field x" puts the text plus 
all the tags.


"Set the clipboardData to the rtfText of field x" puts the text plus all 
the tags.


But if I manually select within the field, copy it, and then paste it 
directly into Pages or Word, I get the formatted text (with some 
glitches, but essentially ok for my purposes).




The clipboardData is an array. If you don't specify a key, "text" is 
assumed. So "set the clipboardData to field x" will fill the "text" key 
of the array. If you want to use other formats, use the appropriate key:


set the clipboardData["html"] to the htmlText of fld x
set the clipboardData["rtf"] to the rtfText of fld x
set the clipboardData["text"] to fld x

See the clipboardData entry in the dictionary for more keys. If you want 
to fill all keys at once automatically, you can use the ancient 
technique we had to use before the clipboardData was invented:


lock screen
select text of fld x
copy
select empty
unlock screen

This simulates a manual copy. It's very fast and often you don't even 
need to bother locking the screen because it happens so quickly you 
can't see the selection.


--
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: formattedText to clipboard

2008-11-29 Thread Sarah Reichelt
On Sun, Nov 30, 2008 at 4:25 AM, Mark Swindell <[EMAIL PROTECTED]> wrote:
> Via a button, how can I capture the formatted text of a field and put it
> into the clipboard so that it can then be pasted with formatting intact into
> a word processor??

Check the docs for clipboardData. You will see that you can specify
what sort of data to copy, so you can do something like:

set the clipboardData["html"] to the htmlText of fld x

or

set the clipboardData["rtf"] to the rtfText of fld x

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: USB barcode scanner?

2008-11-29 Thread Sarah Reichelt
On Sun, Nov 30, 2008 at 12:28 AM, Tim Ponn <[EMAIL PROTECTED]> wrote:
> Hello!
>
> Can anybody recommend a usb barcode scanner that I can get to work with rev?
>  I using rev 2.81 and a Mac.  I've got my POS app working nicely now and
> it's time for the next step...adding a scanner.
>

As the others have said, any scanner that operates in keyboard wedge
mode will be fine. A lot of them come with cables sold separately, so
don't forget to specify that you want USB. I recommend a scanner with
multiple scan lines - it easier to use as the barcode doesn't have to
be positioned so exactly.

I have used scanners made by Unitech and by Datalogic, both with Macs
& Revolution applications.

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: USB barcode scanner?

2008-11-29 Thread J. Landman Gay

Stephen Barncard wrote:
Most of the bar code devices operate like a keyboard input device out of 
the box as a straight barcode scanner (i.e. outputs a translation of the 
barcode in text),


I wrote a stack some years ago that worked with a barcode reader, which 
I had never seen and did not have access to. I just used normal 
keydown/keyup and "on returnkey" handlers, and it all worked fine. There 
was no difference between keyboard entry and barcode entry. So what you 
say works. I warned the client they'd have to test, and it never failed 
in any way.


 I think Jacque was on the Evangelists list, or was it Mac Marines? It 
was a while ago. Over 20 years of mail-lists. The mind boggles.


It was the Evangelists list, but I only read it, I never posted. And 
yes, I can't believe where the time goes.


--
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: instead of toUpper

2008-11-29 Thread Eric Chatonet

Bonsoir Ton,

If you use Rev 2.8.1 it's more understandable.
All this has been fixed since rev 2.9.

Le 29 nov. 08 à 19:37, Melitón Cardona Torres a écrit :


Merci Erik and thanks a lot to Robert for his fina advice.

put toUpper("Sjølandå")

gives me: SJøLANDå not SJØLANDÅ

put toUpper("Ma chère amie")

gives me: MA CHèRE AMIE, not MA CHÈRE AMIE

Being a spaniard living in Denmark I find toUpper unsatisfactory  
for my purposes.


Best regards from Paris,
Eric Chatonet.

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



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


close palette window button osx?

2008-11-29 Thread Mark Swindell
Is the small close window button used in palette windows available  
from within Rev, or does one have to build a facsimile oneself?  The  
one on the tools palette, for example... on mouseOver it changes to  
the red circle with the black x within.  I'd like to apply it to a  
faux window within a stack that's just a group with a field and a  
title bar.


Thanks
Mark
___
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


instead of toUpper

2008-11-29 Thread Melitón Cardona Torres

Merci Erik and thanks a lot to Robert for his fina advice.

put toUpper("Sjølandå")

gives me: SJøLANDå not SJØLANDÅ

put toUpper("Ma chère amie")

gives me: MA CHèRE AMIE, not MA CHÈRE AMIE

Being a spaniard living in Denmark I find toUpper unsatisfactory for  
my purposes.



Besides, it is warned in the rev Dictionary of my version 2.8.1:

Comments:
Lowercase letters, including special characters with diacritical  
marks, are converted to the uppercase equivalents. All other  
characters, including uppercase letters, numbers, punctuation, and  
special characters with no upper or lower case, are left unchanged by  
the toUpper function.


  Important!  The toUpper function supports only characters whose  
ASCII value is less than 128. Special characters cannot be converted  
by this function.



Cheers,

Ton



___
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


sending midi data

2008-11-29 Thread Beat Cornaz

Hi to everyone,

I am working on several stacks to help people in composing music. The 
stacks create Midi files.
In order to hear the result,   I drag the Standard Midi file created by 
my stack, into Logic (my sequencer program). So far so good.


Now I would like to send midi data in realtime, so I can hear the 
result from withing my Rev stack.
Prefebly I do not want to use the QuickTime Instruments, as they  are 
not adapted to everyone's taste. I would like to

'midi communicate'  directly with Logic or any other sequencer program.

So the questions are :

1. How do I write the Mididata to a buffer (and which buffer)?
2. How can I 'offer' the data in this buffer to the ' Midi Input'  of 
Logic ?


I hope there is someone on the list who can help me out here.

If there are people who want my script for creating a Standard Midi 
file, they are welcome to ask me  for it and I will send it to them.


Thanks a lot for any help,

Beat


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


formattedText to clipboard

2008-11-29 Thread Mark Swindell
Via a button, how can I capture the formatted text of a field and put  
it into the clipboard so that it can then be pasted with formatting  
intact into a word processor??


"Set the clipboardData to field x", puts the text but without  
formatting.


"Set the clipboardData to the htmlText of field x" puts the text plus  
all the tags.


"Set the clipboardData to the rtfText of field x" puts the text plus  
all the tags.


But if I manually select within the field, copy it, and then paste it  
directly into Pages or Word, I get the formatted text (with some  
glitches, but essentially ok for my purposes).


Thanks
Mark
___
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: USB barcode scanner?

2008-11-29 Thread Colin Holgate


On Nov 29, 2008, at 9:28 AM, Tim Ponn wrote:


Hello!

Can anybody recommend a usb barcode scanner that I can get to work  
with rev?  I using rev 2.81 and a Mac.  I've got my POS app working  
nicely now and it's time for the next step...adding a scanner.




What Stephen said. One other thing to know is that the barcode  
scanners can have their behavior modified by scanning barcodes in the  
booklet that comes with them. For example, you can have the scanner  
send a return after it's finished reading the barcode. That can be  
handy for your input routine, so it knows when the scanner has  
finished sending.


There is no difference at all between a user typing on a keyboard, and  
the scanner sending its keystrokes, so if you have an application  
where a user is supposed to type into one field, and a scanner grabs a  
barcode without showing the text captured, your user could trigger the  
scanner while typing into the visible field, and they will see the  
barcode numbers typed in for them. That may not matter, but it could  
influence your design, you would want to make sure not to set up  
situations where the user can easily be confused.


Another setting for the scanner is the baud rate (they're really  
serial, with USB converters). Set that to as high as you can, and even  
then the apparent typing speed is not very fast.



___
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: USB barcode scanner?

2008-11-29 Thread Stephen Barncard

Timothy ,
Most of the bar code devices operate like a keyboard input device out 
of the box as a straight barcode scanner (i.e. outputs a translation 
of the barcode in text), others have features like storage where the 
scanner does not have to be tethered to the computer, can dump later, 
Wifi, etc.


Most of them won't mention the Mac, even though everybody's 
conforming to standards. So don't let the PC part deter you, unless 
you need software to do more than recognize IPC symbols. It appears 
your scripts will do the rest.


 It's interesting in the peripherals world, when often many USB and 
Firewire devices built to standards, are sold with no reference to 
Macintosh at all in the ads and packaging, even though they work 
perfectly (and often install without drivers) and are a significant 
part of their sales are to mac customers. This is especially true of 
hard drives and network routers. Incredibly ignorant of the marketers 
if you ask me, and a wasted opportunity.


I used to be an annoying Mac Evangelist (remember those?) when we 
felt we had to fight every fight against the PC 'hegemony', or we'd 
be stuck with the alternative in the future. Today, Apple's strong, 
hip, visionary, and makes solid products these days that sell 
themselves, so I don't have to do that anymore.


 I think Jacque was on the Evangelists list, or was it Mac Marines? 
It was a while ago. Over 20 years of mail-lists. The mind boggles.




Hello!

Can anybody recommend a usb barcode scanner that I can get to work 
with rev?  I using rev 2.81 and a Mac.  I've got my POS app working 
nicely now and it's time for the next step...adding a scanner.


Thanks!



Best Regards,


Timothy R. Ponn
--


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: AW: AW: need help for decompress URL - its a rev-win bug on my PC!

2008-11-29 Thread Eric Chatonet

Bonsoir Tiemo,

As I said earlier, have a look at all dlls in system32.
There is one there that confuses Rev.

Le 29 nov. 08 à 15:25, Tiemo Hollmann TB a écrit :


Bonjour Eric,
vraiment, you were right!
Testing the standalone on another Win PC it works as it should do,  
so it is
only my PC and it happens only with gz files. Downloading other  
file types

the file size keeps unchanged.

Now I should know, where to look for, because it doesn't happen at the
decompress (first thought), so actually it can't be DLLs from other
compressing tools, it happens already when plain downloading a gz  
file to my
PC. Who is involved when downloading a file from the internet  
beside rev?
Who cares in the background about the file extension gz and fiddles  
on my
file without notice of rev??? Very mysterious! (I don't have any  
viruses,
beside of my nose) Perhaps I should at least ask the QCC people for  
any

direction to search for.
Thank you
Tiemo



Bonjour Tiemo,

Let me remind you that hundreds of persons use Tutorials Picker on
Win machines and, except you, nobody reported to me any problem that
should have occurred if you are right.
So, before, feeding QCC, you should probably test on another PC :-)


Best regards from Paris,
Eric Chatonet.

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



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


Re: Instead of toUpper

2008-11-29 Thread Robert Brenstein

On 29/11/08 at 14:33 +0100 Melitón Cardona Torres apparently wrote:

Works fine on my mac; I wonder whether it be the same a PC. Any hints?

Thanks in advance,

Ton Cardona

function toCapitals aText
 --Works on a mac environement

  put "ÁÉÍÓÚÑÄËÏÖÜÂÊÎÔÛÇÆؑÅ" into unusualCapitals
  put "áéíóúñäëïöüâêîôûçæø¦å" into unusualSmall

  repeat with y= 1 to the length of aText
put char y of aText into aChar
put chartonum(aChar) into itsNumber

--Line feed
if itsNumber = 10 then
  put cr after newWord
  next repeat
end if

--Already capital
if itsNumber>64 and itsNumber<91 then
  put aChar after newWord
  next repeat
end if

-- Not capital without accent
if itsNumber >96 and itsNumber <123 then
  put numtochar(itsNumber-32) after newWord
  next repeat
end if

-- Foreseen unusual characters
if aChar is among the chars of unusualSmall then
  put false into detected
  repeat with g= 1 to 22
if char g of unusualSmall is aChar then
  put char g of unusualCapitals after newWord
  put true into detected
  exit repeat
end if
  end repeat
  if detected then next repeat
end if

--Space, numbers and others
if ((itsNumber >31) and (itsNumber <65)) or 
((itsNumber>90) and (itsNumber<97)) then

  put aChar after newWord
  next repeat
end if

--Unforeseen unusual characters
if itsNumber>122 and aChar is not in unusualSmall then
  put aChar after newWord
  next repeat
end if
  end repeat

  return newWord

end toCapitals___


It should work on PC, although I can't actually 
test for you. However, there are a few things you 
could optimize in the above code. This may be 
just an exercise as I suspect that you convert 
short words so performance improvement won't be 
really visible.



function toCapitals aText
 --Works on a mac environement

  put "ÁÉÍÓÚÑÄËÏÖÜÂÊÎÔÛÇÆؑÅ" into unusualCapitals
  put "áéíóúñäëïöüâêîôûçæø¦å" into unusualSmall

  put empty into newWord -- init

  ##repeat with y= 1 to the length of aText
  repeat for each char aChar in aText -- faster loop
## put char y of aText into aChar -- not needed
put chartonum(aChar) into itsNumber

--Line feed
if itsNumber = 10 then
  put cr after newWord
  next repeat
end if

--Already capital
if itsNumber>64 and itsNumber<91 then
  put aChar after newWord
  next repeat
end if

-- Not capital without accent
if itsNumber >96 and itsNumber <123 then
  put numtochar(itsNumber-32) after newWord
  next repeat
end if

--Space, numbers and others
if ((itsNumber >31) and (itsNumber <65)) or 
((itsNumber>90) and (itsNumber<97)) then

  put aChar after newWord
  next repeat
end if

--Unforeseen unusual characters
if itsNumber>122 and aChar is not in unusualSmall then
  put aChar after newWord
  next repeat
end if
  end repeat

## special chars outside the loop

   -- Foreseen unusual characters
 set the casesensitive to true
 repeat with g=1 to length(unusualSmall)
replace (char g of unusualCapitals) with 
(char g of unusualCapitals) in newWord

 end repeat

  return newWord

end toCapitals___

I wonder actually, whether you could use the 
toUpper instead of the big repeat and deal with 
special cases afterwards. It may be still faster.


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


USB barcode scanner?

2008-11-29 Thread Tim Ponn

Hello!

Can anybody recommend a usb barcode scanner that I can get to work  
with rev?  I using rev 2.81 and a Mac.  I've got my POS app working  
nicely now and it's time for the next step...adding a scanner.


Thanks!



Best Regards,

Timothy R. Ponn




___
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


AW: AW: need help for decompress URL - its a rev-win bug on my PC!

2008-11-29 Thread Tiemo Hollmann TB
Bonjour Eric,
vraiment, you were right!
Testing the standalone on another Win PC it works as it should do, so it is
only my PC and it happens only with gz files. Downloading other file types
the file size keeps unchanged.

Now I should know, where to look for, because it doesn't happen at the
decompress (first thought), so actually it can't be DLLs from other
compressing tools, it happens already when plain downloading a gz file to my
PC. Who is involved when downloading a file from the internet beside rev?
Who cares in the background about the file extension gz and fiddles on my
file without notice of rev??? Very mysterious! (I don't have any viruses,
beside of my nose) Perhaps I should at least ask the QCC people for any
direction to search for.
Thank you
Tiemo

> 
> Bonjour Tiemo,
> 
> Let me remind you that hundreds of persons use Tutorials Picker on
> Win machines and, except you, nobody reported to me any problem that
> should have occurred if you are right.
> So, before, feeding QCC, you should probably test on another PC :-)
> 

___
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: AW: need help for decompress URL - its a rev-win bug!

2008-11-29 Thread Eric Chatonet

Bonjour Tiemo,

Let me remind you that hundreds of persons use Tutorials Picker on  
Win machines and, except you, nobody reported to me any problem that  
should have occurred if you are right.

So, before, feeding QCC, you should probably test on another PC :-)

Le 29 nov. 08 à 14:54, Tiemo Hollmann TB a écrit :


Hello Jan, Eric and Robert,
@Jan: I added " application/gzip gz" to my .htaccess and got "  
Content-Type:
application/gzip" back in the libURLLastRHHeaders(), but the number  
of bytes

of my file still was changed and kept corrupted.
@Eric: I tried also a path without dots, without any change in the  
result.
@Robert: I tried also to first download and then uncompress, but as  
I wrote,

it wasn't the decompress, but already the download.

What I did then, was testing a standalone on a Mac and voila, my  
same stack,
same statements, same file, same path and same server - the  
download and
decompress works like a charme as it should do. I would have never  
thought
it could be a Win bug with such a super standard function,  
otherwise I would

have tested it much earlier on Mac to verify.
There is also a difference in the libURLLastRHHeaders()
1. The Content-Length is different on Win/Mac
2. On Mac there is an additional info line: "Content-Encoding: x- 
gzip" what

is not on Win.

I'll put it in the QCC and hope it gets some votes before the next  
release.


Thanks you all for your help!
Tiemo


Best regards from Paris,
Eric Chatonet.

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



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


AW: need help for decompress URL - its a rev-win bug!

2008-11-29 Thread Tiemo Hollmann TB
Hello Jan, Eric and Robert,
@Jan: I added " application/gzip gz" to my .htaccess and got " Content-Type:
application/gzip" back in the libURLLastRHHeaders(), but the number of bytes
of my file still was changed and kept corrupted.
@Eric: I tried also a path without dots, without any change in the result.
@Robert: I tried also to first download and then uncompress, but as I wrote,
it wasn't the decompress, but already the download.

What I did then, was testing a standalone on a Mac and voila, my same stack,
same statements, same file, same path and same server - the download and
decompress works like a charme as it should do. I would have never thought
it could be a Win bug with such a super standard function, otherwise I would
have tested it much earlier on Mac to verify.
There is also a difference in the libURLLastRHHeaders()
1. The Content-Length is different on Win/Mac
2. On Mac there is an additional info line: "Content-Encoding: x-gzip" what
is not on Win.

I'll put it in the QCC and hope it gets some votes before the next release.

Thanks you all for your help!
Tiemo


> >
> 
> Hi Tiemo,
> 
> The content-type is indeed your problem, as it should
> be something along the lines of "application/gzip" -
> but this is to be configured on the server side, in
> Apache. So you should have a chat with the system
> administrator to configure the right MIME-type for the
> .gz extension.
> 
> When the content-type is "text/plain" there may be
> conversions along the way. Which is why it's also
> important in FTP to upoad/download files as binary
> when it's not a text file.
> 
> HTH,
> 
> Jan Schenkel.
> 

___
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: Instead of toUpper

2008-11-29 Thread Eric Chatonet

Bonjour Ton,

Why Rev toUpper built-in function does not work for you?

Le 29 nov. 08 à 14:33, Melitón Cardona Torres a écrit :


Works fine on my mac; I wonder whether it be the same a PC. Any hints?

Thanks in advance,

Ton Cardona

function toCapitals aText
 --Works on a mac environement

  put "ÁÉÍÓÚÑÄËÏÖÜÂÊÎÔÛÇÆØŒÅ" into unusualCapitals
  put "áéíóúñäëïöüâêîôûçæøœå" into unusualSmall

  repeat with y= 1 to the length of aText
put char y of aText into aChar
put chartonum(aChar) into itsNumber

--Line feed
if itsNumber = 10 then
  put cr after newWord
  next repeat
end if

--Already capital
if itsNumber>64 and itsNumber<91 then
  put aChar after newWord
  next repeat
end if

-- Not capital without accent
if itsNumber >96 and itsNumber <123 then
  put numtochar(itsNumber-32) after newWord
  next repeat
end if

-- Foreseen unusual characters
if aChar is among the chars of unusualSmall then
  put false into detected
  repeat with g= 1 to 22
if char g of unusualSmall is aChar then
  put char g of unusualCapitals after newWord
  put true into detected
  exit repeat
end if
  end repeat
  if detected then next repeat
end if

--Space, numbers and others
if ((itsNumber >31) and (itsNumber <65)) or ((itsNumber>90) and  
(itsNumber<97)) then

  put aChar after newWord
  next repeat
end if

--Unforeseen unusual characters
if itsNumber>122 and aChar is not in unusualSmall then
  put aChar after newWord
  next repeat
end if
  end repeat

  return newWord



Best regards from Paris,
Eric Chatonet.

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



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


Instead of toUpper

2008-11-29 Thread Melitón Cardona Torres

Works fine on my mac; I wonder whether it be the same a PC. Any hints?

Thanks in advance,

Ton Cardona

function toCapitals aText
 --Works on a mac environement

  put "ÁÉÍÓÚÑÄËÏÖÜÂÊÎÔÛÇÆØŒÅ" into unusualCapitals
  put "áéíóúñäëïöüâêîôûçæøœå" into unusualSmall

  repeat with y= 1 to the length of aText
put char y of aText into aChar
put chartonum(aChar) into itsNumber

--Line feed
if itsNumber = 10 then
  put cr after newWord
  next repeat
end if

--Already capital
if itsNumber>64 and itsNumber<91 then
  put aChar after newWord
  next repeat
end if

-- Not capital without accent
if itsNumber >96 and itsNumber <123 then
  put numtochar(itsNumber-32) after newWord
  next repeat
end if

-- Foreseen unusual characters
if aChar is among the chars of unusualSmall then
  put false into detected
  repeat with g= 1 to 22
if char g of unusualSmall is aChar then
  put char g of unusualCapitals after newWord
  put true into detected
  exit repeat
end if
  end repeat
  if detected then next repeat
end if

--Space, numbers and others
if ((itsNumber >31) and (itsNumber <65)) or ((itsNumber>90) and  
(itsNumber<97)) then

  put aChar after newWord
  next repeat
end if

--Unforeseen unusual characters
if itsNumber>122 and aChar is not in unusualSmall then
  put aChar after newWord
  next repeat
end if
  end repeat

  return newWord

end toCapitals___
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: AW: AW: AW: AW: AW: need help for decompress URL

2008-11-29 Thread Robert Brenstein

On 28/11/08 at 14:34 +0100 Tiemo Hollmann TB apparently wrote:

Hello again,
tracking it down it looks like the problem is not the decompress but the
simple download and I don't find the fault ;(
I did the compress like:
put compress(URL ("binfile:" & it)) into URL ("binfile:" & it & ".gz")
1. compressing and decompressing a local file works fine.
2. uploading the compressed file, downloading it with a ftp program and
decompressing it, works fine
3. uploading the compressed file (with ftp), downloading it anyhow with
put URL "http://myDomain/s05822.gz"; into URL binfile:myPath\s05822.gz"
or with load URL and put URL into URL changes the bytes of my file, so that
the decompress can't recognize the format anymore.
Do I have to tell the put URL or load URL that it has to handle a compressed
binfile? Or where is my fault? I don't see the wood anymore because of the
trees (german saying)
Thanks for any hints
Tiemo


Have you tried to save the downloaded file to disk (before attempting 
to decompress it) and compare whether it is indeed the same as the 
compressed file you uploaded?


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


In which PythonCard Forks...

2008-11-29 Thread Richmond Mathewson
Alex Tweedly wrote:

"Yeah, it's unfortunate (IMHO) that he has forked the project without 
ever offering any enhancements to the original project. If he has the 
time and energy to improve the project, he could easily have done so 
within the existing project - but he has not (AFAICT) ever posted any 
code or specific suggestions to the Pythoncard-developers list."

and

"It should be interesting. While I wish him luck, I do wish he wasn't 
including inadequately tested code (mine!)  in his initial release."

Comment on first quote:

I suppose this is the downside of Open Source initiatives; while it
can encourage creativity that is unfettered by commercial considerations,
it is also open to all sorts of abuse, and leaves room for an awful lot
of hairy-chested egoism to go unpunished. 

Comment on second quote:

This seems to be a universal problem; having experienced it both in the
commercial sector and the free one. In both cases it looks rather like
why Communism doesn't work; not many people can fill their bellies on
high-sounding ideas - there have to be stronger motivating factors to
get involved in Beta-testing; whether financial or otherwise.

Certainly the profit motive (however 'dirty' the profit motive may be to
 ideological purists) is a very important factor: and it cuts both ways. 
I worked on a commercial project where the financial backer refused 
Beta-testing because he wanted to maximise his profits. Of course when 
a few glitches became apparent in the product AFTER it had been released
 the programming team were blamed, even though they had urged the backer 
to pay people to Beta-test the product. Needless to say, the backer
 ultimately lost out as end-users stopped buying the product as word 
of its flaws spread rapidly.

Certainly, all I know about good business practise (whether 
commercial, open source, or just Plain Richmond programming for the 
few computers in his micro-school) involves several stages of Beta-testing
in the SDLC (my GANTT charts seem to consist of nothing else).

I am a lucky person as the children I teach have, over the 2-3 years I have 
been teaching them, become ruthless, evil-minded software testers,
who do not feel bound by the usual painful social conventions, and are
more than happy to tell me WHERE and WHY something 'stinks' in any of
my programs. I foster this by having a box of small Oxford EFL Learner's
Dictionaries which are much sought after by the kids: they find a 
problem in one of my programs, they get a shiny, new dictionary: pure
profit motive - and it works! They are, also, becoming increasingly 
sophisticated at assessing GUIs - and, "just for fun" I took the 
advanced kids through the Nielsen stuff:

http://www.useit.com/

sincerely, Richmond Mathewson.



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




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


Re: [ANN]: More about masks (+ sample stack)

2008-11-29 Thread Jacques Hausser


Le 29 nov. 2008 à 10:11, Wilhelm Sanke, FB01 a écrit :

Accompanying is a sample stack with a side-by-side comparison of a  
number of

approaches and containing most of the discussions with examples:





Excellent, super-didactic and extremely useful !
Many, many thanks, Wilhelm !

Jacques

**
Prof. Jacques Hausser
Department of Ecology and Evolution
Biophore / Sorge
University of Lausanne
CH 1015 Lausanne
please use my private address:
6 route de Burtigny
CH-1269 Bassins
tel/fax:++ 41 22 366 19 40
mobile: ++ 41 79 757 05 24
E-Mail: [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


[ANN]: More about masks (+ sample stack)

2008-11-29 Thread Wilhelm Sanke, FB01
Accompanying is a sample stack with a side-by-side comparison of a number of
approaches and containing most of the discussions with examples:



To run the stack you need Rev 2.9 or higher.

As a starter for this overview about how to produce masked images in Revolution
here is a "two-liner": 

on mouseup
crop image "to-be-masked" to the rect of image "SelectionOval"
set the alphadata of image "to-be-masked" to the alphadata of image 
"SelectionOval"
end mouseup

This is the essential "core"-procedure to create masked images, one of several
options. Usually such a two-liner would be sandwiched between "lock screen" and
hide "SelectionOval", and additionally there would be procedures in separate
buttons that determine what to do with the newly masked image, copy it
elsewhere, save it as an external file, patch it onto another image etc.

Image "to-be-masked" can be of any format, JPEG, GIF, PNG, image "SelectionOval"
must be a PNG of course.
If a graphic is used as a selection tool to determine the area of the resulting
masked image by capturing the transparency of the graphic with a snapshot, it is
*not* necessary to group graphic "SelectionOval". The selection graphics and
images in my sample stack *are* all grouped, but only because they are combined
with a "handle"-graphic for resizing and reshaping, otherwise a grouping of the
selection tools as a prerequisite to capture transparency is not required.

And, contrary to what the Rev docs state for "import snapshot" ("The format of
the resulting image depends on the current setting of the paintCompression
property."), since Rev version 2.7 the resulting images are invariably PNGs,
irrespective of what the current general setting of the paintcompression is,
RLE, PNG, or JPEG. Although with pre-2.7 versions the snapshot images would not
be PNGs, their formats are also not directly determined by the current
paintcompression. Paintcompression, however, plays a role for the speed of
processing imagedata and alphadata, RLE is fastest here, PNG the slowest 
setting.-

Graphics do contain transparency in the area outside of the shape of the
graphic, but this transparency is not represented by mask- and alphadata
properties of the graphic. We have to make detours to get at these data or to
reconstruct them. I hope that with future versions of Revolution graphics will
additionally have alphadata and maskdata properties. If that would be the case,
we could mask images with two-liners like in the "starter" script above.

What follows here is mainly an overview of such detours, of different attempts
to build masks along with the discussion of details and possible problems -
derived partly from individual experience, but much of it is based on the
results of a number of offlist-contacts and discussions during the last weeks
between James Hurley, Bernd Niggemann, and myself about problems, solutions, and
workarounds concerning the creation and application of masks to images. I have
also considered the onlist exchange between Scott Rossi and myself - at the time
after I had announced my first sample stack "Three Masks". On Ken Ray's website
(, we found the
trick to produce transparency with the help of the "bucket tool". Ken presents a
two-liner from Jeanne DeVoto, which I managed to integrate into one of the
script examples.


==

We could distinguish between two major categories: "Creating masks 'on the fly'"
and " Using prefabricated masks".


1. Creating masks "on the fly" 

 a) == "within"-functions"==

Jim Hurley has experimented with the native Rev "within" function to produce
masks and encountered the "edge problem", flat edges appearing at the right and
bottom of the masked images. Variations of the original script did not help to
overcome this problem.
Curiously enough, when you reverse the direction of the "scan" in Jim's script,
you get the edges on the left and on top.

I found three workarounds for this problem (but not a real solution of the basic
problem), namely "super-imposing" the edged alphamasks: 

1. Double scan from right and left, and then superimposing the two resulting 
masks.
2. Flipping - by script - the left half of the alphadata onto the right half,
and the top half onto the bottom half.
3. Capitalizing on the feature that since 2.9 flipped images preserve their
alphamasks (and flip them also), I run a normal scan, after that flip the image
horizontally and vertically, get the resulting second mask (then return the
image to its previous state) and superimpose the two masks.

All three workarounds produce masked images without edges.- 

Eventually Jim - as an expert in matters of mathematics and geometry - has now
developed a "within ellpse"-function on the basis of the mathematical properties
of an ellipse, which due to the more complex nature of the script takes a bit
longer to implement, but produces per