base64 & '='

2006-05-29 Thread sims


When using base64Decode it seems that the '=' or '==' chars
at the end of a base64Encoded string are inconsequential. It
seems to make no difference if one '=', two '==' or none are at the
end of the string being decoded.

Is it safe to assume that any ending equal signs in a base64Encoded
string do not have to be in that string when I decode it?

ciao,
sims

European Rev Conference  2006
www.techietours.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: Linux and AudioClips

2006-05-29 Thread Mark Smith
In AIF files, the sample rate is stored as a 10 byte ieee floating  
point number - this gave me all sorts of trouble when I was making my  
audio waveform component.


Being a bit of a dunce when it comes to binary bit-twiddling, I  
eventually opened a 'silver support incident' (ie paid for), and Mark  
Waddingham came up with a couple of excellent functions for encoding/ 
decoding such numbers.


I posted the functions  to the list back in January. If you look at  
them, you can see that they are fairly complicated, and so fairly  
easy to screw up.


I wonder if the UBUNTU aif code for reading these 10 byte numbers is  
buggy, producing a number 2 x  what it should be?


Best,

Mark

On 29 May 2006, at 06:12, Stephen Barncard wrote:

Why on earth does UBUNTU need standard files saved at half speed?  
Major bug - and that means the top sampling rate would be half as  
well. Wouldn't sound as good.


___
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: ErrorLib 1.0b02 released

2006-05-29 Thread Mark Schonewille

Hi Martin,

This is good news. Thanks for figuring this out.

Best,

Mark

--

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

Salery is the easiest way to get your own web store on-line: http:// 
www.salery.biz/salery.html




Op 29-mei-2006, om 6:51 heeft Martin Blackman het volgende geschreven:


Constellation seems to grab the error before errorlib.
In fact this would be the best way to have it, because we normally
want errorlib to do its stuff for standalones, not in the IDE.

You can of course set the option to use Rev script/error handling in
Constellation (ie 'switch it off') - this gets you back to errorlib
handling the errors.



___
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: base64 & '='

2006-05-29 Thread Dave Cragg


On 29 May 2006, at 10:14, sims wrote:



When using base64Decode it seems that the '=' or '==' chars
at the end of a base64Encoded string are inconsequential. It
seems to make no difference if one '=', two '==' or none are at the
end of the string being decoded.

Is it safe to assume that any ending equal signs in a base64Encoded
string do not have to be in that string when I decode it?


I've seen at least one base64 decode function (not Rev) where  
stripping a final "=" does affect the output. So, without official  
sanction from RunRev,  I'd be wary of assuming the way Rev handles  
incomplete encoded strings will remain the same in future versions.


But I take it you have a reason you want to drop the "=" characters.  
Otherwise, why bother?


Cheers
Dave

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


Re: base64 & '='

2006-05-29 Thread sims

At 11:29 AM +0100 5/29/06, Dave Cragg wrote:


On 29 May 2006, at 10:14, sims wrote:



When using base64Decode it seems that the '=' or '==' chars
at the end of a base64Encoded string are inconsequential. It
seems to make no difference if one '=', two '==' or none are at the
end of the string being decoded.

Is it safe to assume that any ending equal signs in a base64Encoded
string do not have to be in that string when I decode it?


I've seen at least one base64 decode function (not Rev) where 
stripping a final "=" does affect the output. So, without official 
sanction from RunRev,  I'd be wary of assuming the way Rev handles 
incomplete encoded strings will remain the same in future versions.


But I take it you have a reason you want to drop the "=" characters. 
Otherwise, why bother?


Yup...there is a reason.


I'll rephrase the question: there seems to be either 1 or 2 equal signs placed
at the end of a base64Encoded string. If I display it without any equal signs
but add a single equal sign when I decode the string, would I be safe?

[The "=" seems to be an item which indicates the end of a base64 string.]

iow - does it make any difference if there is 1 or 2 equal signs at the end?
With strings I've tested here it doesn't seem to make a difference.

ciao,
sims

European Rev Conference  2006
www.techietours.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


Copies of your app running on the local net

2006-05-29 Thread Paul Claude
Two shareware questions:

1) There is a way to determine if there is more than one copy of your app
running on a local net (to check the use of the right shareware license by
your customer)?

2) To create a license code for your customer that include the computer User
Name ($USER - to avoid illegal duplications and distributions), may cause
some contraindication?

Regards, 

Paul Claude
ZiggySoft Software
http://www.ziggy-soft.com/
[EMAIL PROTECTED]
--



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


Re: Copies of your app running on the local net

2006-05-29 Thread Mark Schonewille

Hello Paul,

reply 1) Yes, you can broadcast a UDP request and make all copies on  
the network send (part of) their serial number to compare them with  
the serial number of the newly opened copy of your application.


reply 2) Yes, you can use USER$ on some platforms, but not all. You  
can also use MAC address, label of the hard disk, IP address and  
other characteristics. However, I will never buy software that  
requires me to provide information like this, because I know it will  
be a hassle to install the software on a new machine. Besides, there  
is a hack for each protection measure which makes it difficult to  
decide how much to invest in protection.


Best,

Mark

--

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

Salery is the easiest way to get your own web store on-line: http:// 
www.salery.biz/salery.html




Op 29-mei-2006, om 13:59 heeft Paul Claude het volgende geschreven:


Two shareware questions:

1) There is a way to determine if there is more than one copy of  
your app
running on a local net (to check the use of the right shareware  
license by

your customer)?

2) To create a license code for your customer that include the  
computer User
Name ($USER - to avoid illegal duplications and distributions), may  
cause

some contraindication?

Regards,

Paul Claude


___
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: base64 & '='

2006-05-29 Thread sims

At 1:47 PM +0200 5/29/06, sims wrote:

iow - does it make any difference if there is 1 or 2 equal signs at the end?
With strings I've tested here it doesn't seem to make a difference.


Never-mind... seems to be some divisible by 4 'thang'...I'm going
to try another approach to this small puzzle.

Apologies for the wasted bandwidth.

ciao,
sims

European Rev Conference  2006
www.techietours.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: Read file with accented characters ?

2006-05-29 Thread Zax
Thanks for your suggestion.
I tried this function but results are not enough accurate.

It's the same problem with all the functions I have already tried : I'm not
able to recognize a MS Word document saved in "simple text" format from a
BBEdit file saved in Mac format... And I need to recognize them because
BBEdit files need to be translated with the built-in IsoToMac function.

Any ideas ?

> Try this function:
> 
> function lineEndings pFilePath
>if pFilePath = "" then
>  answer file "Choose a file:"
>  if it = "" then exit to top
>  put it into pFilePath
>end if
>put url ("binfile:"&pFilePath) into tData
>if offset(numToChar(10)&numToChar(13),tData) > 0 then
>  return "Windows"
>else if offset(numToChar(10),tData) > 0 then
>  return "Unix"
>else if offset(numToChar(13),tData) > 0 then
>  return "Mac"
>end if
>return "Unknown"
> end lineEndings
> 
> I didn't test it very much, so see what you get.

--
Zax 


___
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: Copies of your app running on the local net

2006-05-29 Thread Paul Claude
Thanks Mark.

> reply 1) Yes, you can broadcast a UDP request and make all copies on
> the network send (part of) their serial number to compare them with
> the serial number of the newly opened copy of your application.

Did you know if exists some example stack around, to perform and answer to
an UDP request?

 
> reply 2) Yes, you can use USER$ on some platforms, but not all. You
> can also use MAC address, label of the hard disk, IP address and
> other characteristics. However, I will never buy software that
> requires me to provide information like this, because I know it will
> be a hassle to install the software on a new machine. Besides, there
> is a hack for each protection measure which makes it difficult to
> decide how much to invest in protection.

I thought that $USER should be valid because: 1) a license is valid, in
effect, only for one user (think about a corporate with hundred of stations
that buy a copy of your app). 2) For a single user with 2 computers, in most
of the cases he will have the same account user name on both, and you can
also add a button in your site to automatically furnish a new code to a
registered user. I don't think to invest very much in protection, but a
simple - universal - license code, will put too easily your app in the
pirates market.


Regards, 

Paul Claude
ZiggySoft Software
http://www.ziggy-soft.com/
[EMAIL PROTECTED]
--



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


Re: Copies of your app running on the local net

2006-05-29 Thread Alex Tweedly

Paul Claude wrote:


Thanks Mark.

 


reply 1) Yes, you can broadcast a UDP request and make all copies on
the network send (part of) their serial number to compare them with
the serial number of the newly opened copy of your application.
   



Did you know if exists some example stack around, to perform and answer to
an UDP request?
 

There is a sample UDP client and server in revonline under username 
alextweedly - it's just a very simple echo server and echo client, but 
should be a start for you.


Beware the problem of Firewalls - the Win XP firewall on each Windows 
machine may drop all incoming UDP packets by default (I'm not sure, and 
not quite willing to risk setting my own "firewall settings" back to the 
default to see what it does :-) , so it's quite possible and/or quite 
easy for users to prevent different instances of your app from seeing 
each other with this scheme.




 


reply 2) Yes, you can use USER$ on some platforms, but not all. You
can also use MAC address, label of the hard disk, IP address and
other characteristics. However, I will never buy software that
requires me to provide information like this, because I know it will
be a hassle to install the software on a new machine. Besides, there
is a hack for each protection measure which makes it difficult to
decide how much to invest in protection.
   



I thought that $USER should be valid because: 1) a license is valid, in
effect, only for one user (think about a corporate with hundred of stations
that buy a copy of your app). 2) For a single user with 2 computers, in most
of the cases he will have the same account user name on both,


I wish I were that organized :-).
I think I have at least 5 different user names on the computers in my house.


--
Alex Tweedly   http://www.tweedly.net

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.7.3/350 - Release Date: 28/05/2006
___
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


Detecting Window's Maximize Window Click

2006-05-29 Thread Rob Cozens

Hi All,

When I click on the Maximize Window Box with the Message Box open, the 
message I see is "resizeStack".


My stack already has a resizeStack handler that assumes the user has 
resized the stack by dragging the bottomLeft corner.  Obviously a 
resizeStack message resulting from clicking on the Maximize Window Box 
requires different logic.


So how to differentiate between the two?  Once one knows the answer, 
it's obvious; but I was in the process of asking when the light dawned: 
 when the box is clicked, the window dimensions have not changed.  So 
to help others avoid playing the foole...


on resizeStack newWidth,newHeight,oldWidth,oldHeight
		if newWidth = oldWidth and newHeight = oldHeight then -- Maximize Box 
was clicked



Rob Cozens
CCW, Serendipity Software Company

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

from "The Triple Foole" by John Donne (1572-1631)

___
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: Linux installation

2006-05-29 Thread Bob Warren

Bob Warren wrote:
>
Richard (and others): Please let me know if this module is of any real
use to you. If so, I will try to improve my RB project to include error
handling, OK? But not tonight, Josephine!

Well, as usual Mr Ken Ray is all quiet there in the wings, and then BAM!
He comes up with a ready solution! Pity I didn't see it before working 
out the problems I was having with my own routine, but never mind, it's 
all good didactics. I also see that there are also other Linux wizards 
out there, but normally they keep quiet. Am I the only one with a big mouth?


Regardless of Richard's need of the module I produced, I'll include the 
error handling anyway just for good measure. But I have other stuff to 
do today - tomorrow perhaps. I'll let you know when the hopefully more 
reliable module is available.


Regards to all,
Bob

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


Re: Copies of your app running on the local net

2006-05-29 Thread Paul Claude
on 29-05-2006 16:56, Alex Tweedly at [EMAIL PROTECTED] wrote:

> There is a sample UDP client and server in revonline under username
> alextweedly - it's just a very simple echo server and echo client, but
> should be a start for you.

The UDP firewalled should be a problem.

> I wish I were that organized :-).
> I think I have at least 5 different user names on the computers in my house.

And you would not buy an app that offer you, for example, 5 license codes
for each computer you own? I can't find other solutions.


Regards, 

Paul Claude
ZiggySoft Software
http://www.ziggy-soft.com/
[EMAIL PROTECTED]
--



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


Re: Scripting the Paint Tool

2006-05-29 Thread Rob Cozens

Moi:

What I'm finding is Rev _always_ opens a new image over the entire 
card, despite the fact that an opaque, visible image is already on the 
card.


Bug in Rev or in the documentation?



Answer is...




The documentation might make it clear the image cannot be part of a 
group!


Once I took the signature block image out of the group it was part of, 
everything works fine.


Way cool!

At first glance one wouldn't know it's Rev painting instead of the TPC 
ink tool.


Rob Cozens
CCW, Serendipity Software Company

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

___
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: Copies of your app running on the local net

2006-05-29 Thread Mark Schonewille

Hello,

Of course, if there is a firewall in place, it might render any check  
for copies of the software on the network useless. There are  
utilities such as LittleSnitch to prevent programmes from contacting  
the network and the internet. That's why I wrote that there is a hack  
for each protection measure  --there really is. The question is how  
much you want to invest in protection and how much others want to do  
to override this protection.


Currently, I have 5 computers that I use each day (just counted), all  
with a different setup and different user names and passwords. Having  
5 different licenses for each application I am buying means that my  
database for license keys would grow very quickly. It would become  
increasingly complex to do maintenance on the systems I'm using.


If you want me to run the software on only one computer, you really  
don't want to give me more than one user name. This is contradictory  
with your suggestion to provide users with an easy way to get a new  
license key when they want to change their user name.


Suppose that you want to accommodate for the possibility to change  
user names. You would have to supply new license codes all the time.  
This doesn't only undermine the protective power of your licensing  
scheme, it also increases the danger of old license codes being lost  
and found by opportunists. Additionally, it demands an increasingly  
large amount of resources from your support department, due to the  
complexity of your license scheme.


Best,

Mark

--

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

Salery is the easiest way to get your own web store on-line: http:// 
www.salery.biz/salery.html




Op 29-mei-2006, om 18:25 heeft Paul Claude het volgende geschreven:


on 29-05-2006 16:56, Alex Tweedly at [EMAIL PROTECTED] wrote:


There is a sample UDP client and server in revonline under username
alextweedly - it's just a very simple echo server and echo client,  
but

should be a start for you.


The UDP firewalled should be a problem.


I wish I were that organized :-).
I think I have at least 5 different user names on the computers in  
my house.


And you would not buy an app that offer you, for example, 5 license  
codes

for each computer you own? I can't find other solutions.


Regards,

Paul Claude


___
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: Copies of your app running on the local net

2006-05-29 Thread Richard Gaskin

Mark Schonewille wrote:
Of course, if there is a firewall in place, it might render any check  
for copies of the software on the network useless. There are  
utilities such as LittleSnitch to prevent programmes from contacting  
the network and the internet. That's why I wrote that there is a hack  
for each protection measure  --there really is. The question is how  
much you want to invest in protection and how much others want to do  
to override this protection.


That's a great question.

The original post might be rephrased to consider this wording:

What harm would there be in having a normal reg system that doesn't 
attempt to shut down multiple local copies, puts that development time 
into features and marketing, and reconsiders a greater investment in 
anti-piracy technology down the road after there's a sizable installed base?


Most people who pirate software will never become customers anyway. 
Taking funding away from customer-centric enhancements and marketing 
rarely pays bigger dividends than focusing on the experience of the 
legitimate user.


--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Detecting Window's Maximize Window Click

2006-05-29 Thread Ken Ray
On 5/29/06 10:19 AM, "Rob Cozens" <[EMAIL PROTECTED]> wrote:

> So how to differentiate between the two?  Once one knows the answer,
> it's obvious; but I was in the process of asking when the light dawned:
>   when the box is clicked, the window dimensions have not changed.  So
> to help others avoid playing the foole...
> 
> on resizeStack newWidth,newHeight,oldWidth,oldHeight
> if newWidth = oldWidth and newHeight = oldHeight then -- Maximize Box
> was clicked


Actually this doesn't work on Windows, Rob... the way resizing is handled is
different between platforms - even just simply resizing the stack by
dragging the bottom right corner is different (Mac sends resizeStack when
you release the mouse; Windows sends it constantly as you're resizing the
stack while the mouse is down).

There's a way to tell the rect of the stack against the windowboundingrect,
but you'd have to subtract the height of the stack's titlebar (which on
Windows is up to the end user).

I'll root around and see if I can find some code to help...


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

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


Re: Photo Processing - Brightness and Unsharp Mask

2006-05-29 Thread Wilhelm Sanke

On Mon May 22, 2006, Sivakatirswami katir at hindu.org wrote:

There are times when it would be nice to escape the shackles of  
"Adobe dependency"


Bottom line question:

Is there a way to apply Unsharp Mask and Levels adjustments to photos  
from inside Revolution?



and added later in another thread (Directory Walker Conundrum) on Sun 
May 28, 2006:


I always tell people "Oh yes, the other thing about Revolution, is,  
its rare not to get a solution with 18 hours"


Of course, only if you don't ask for the Cheese In The Moon... no one  
responded to my query as to whether  one could apply unsharpMask to a  
photo in revolution. Like a great sage once said: "You can do  
anything, but don't try to fly like a bird."



The interest of list members in this area is indeed limited.

Two things I can recommend loosely pertaining to your query are Chipp 
Walters' "convolve" stack and DLL (to be downloaded from his website) 
and Derek Bump's adaptation of this stack and DLL that corrects the 
yellow color shift (). Both stacks 
contain 9 filters based on a 3X3 filter matrix, among them sharpen, 
blur, emboss etc., but not unsharp. The filter matrix can be used to 
experiment with own matrix settings.


I had embedded Chipp Walters version into my "ImageFilterDemo" 
() and got responses from 
Chipp and Derek. One interesting thing is that Chipp demonstrated that 
it is possible to script filters (3X3 matrix) completely in Revolution 
without using a DLL, however the execution of such a script is much 
slower than with the help of DLL.


I am experimenting myself with scripted filters, some of which are 
contained in the ImageFilterDemo, about a hundred or so will be 
available shortly in my "Imagedata Toolkit".


I would very much like to see more possibilities for filter use in 
Metacard/Revolution and had asked both Derek and Chipp the following 
questions:


"- Are there more tested and useful examples for filter matrix settings 
available?


- Could such a DLL as "convolve3.dll" be extended to work with larger 
matrices (5X5 etc.) ?


- Would it be possible to produce a DLL to support the use of 8FB-filter 
files (Photoshop plugins) inside Revolution? "


Derek Bump responded to that sympathetically, but mainly in the 
negative, mentioning his workload and other preoccupations.


Chipp Walters has something "in the works", but is rather reticent at 
the moment; we have to wait until his new DLLs and/or stacks for filter 
use are ready for public release.-


Maybe others could chime in here and provide more information.

Best regards,

Wilhelm Sanke



___
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


test

2006-05-29 Thread Hershel Fisch


___
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: base64 & '='

2006-05-29 Thread Dar Scott


On May 29, 2006, at 6:54 AM, sims wrote:


At 1:47 PM +0200 5/29/06, sims wrote:
iow - does it make any difference if there is 1 or 2 equal signs  
at the end?

With strings I've tested here it doesn't seem to make a difference.


Never-mind... seems to be some divisible by 4 'thang'...I'm going
to try another approach to this small puzzle.


If you need to get rid of one character from the set of characters,  
you might consider the line end.  The line end is part of the  
standard, but the Rev decode does not need it.


Dar

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


Re: Photo Processing - Brightness and Unsharp Mask

2006-05-29 Thread Mark Talluto


On May 29, 2006, at 1:22 PM, Wilhelm Sanke wrote:


Maybe others could chime in here and provide more information.


All I can say is that I will need these features very soon in an  
application that is under development.  I too have discussed this  
with Chipp and am excited about the things he is working on.



Mark Talluto
--
CANELA Software
http://www.canelasoftware.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


HTML entities

2006-05-29 Thread Sarah Reichelt

Hi All,

I have a field of data that I want to format into a web page. The data
can contain symbols, most likely just the degree symbol but possibly
others. If I get the htmltext of the field, it gives me the correct
entity for the degree symbol: °

However I don't want to use the htmltext, since I am building my own
table display from the data. Is there a way to translate a symbol to
it's html entity? I suppose I could just use a lookup table of the
likely candidates and loop through them, replacing as necessary, but
since Rev "knows" the entities, I was hoping there was a function that
I haven't spotted, to get them directly.

TIA,
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: HTML entities

2006-05-29 Thread Alex Tweedly

Sarah Reichelt wrote:


Hi All,

I have a field of data that I want to format into a web page. The data
can contain symbols, most likely just the degree symbol but possibly
others. If I get the htmltext of the field, it gives me the correct
entity for the degree symbol: °

However I don't want to use the htmltext, since I am building my own
table display from the data. Is there a way to translate a symbol to
it's html entity? I suppose I could just use a lookup table of the
likely candidates and loop through them, replacing as necessary, but
since Rev "knows" the entities, I was hoping there was a function that
I haven't spotted, to get them directly.


You could cut/paste the list from the rev docs :-)


I'm not suggesting this directly, but you could do something based on ...

repeat with i = 1 to the number of chars in fld "Field"
 if "&" is in the htmltext of char i of fld "Field" then
   put char i of fld "Field" && the htmltext of char i of fld "Field" & 
cr after msg

 end if
end repeat


(or fill a field with numtochar(i) for all i, and build a table that way)
put empty into fld "Field"
repeat with i =1  to 255
  put numtochar(i) after fld "Field"
end repeat
repeat with i = 1 to the number of chars in fld "Field"
 if "&" is in the htmltext of char i of fld "Field" then
   put  i && the htmltext of char i of fld "Field" & cr after msg
 end if
end repeat

--
Alex Tweedly   http://www.tweedly.net



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.7.3/350 - Release Date: 28/05/2006

___
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: Detecting Window's Maximize Window Click

2006-05-29 Thread Ken Ray
On 5/29/06 2:51 PM, "Ken Ray" <[EMAIL PROTECTED]> wrote:

> On 5/29/06 10:19 AM, "Rob Cozens" <[EMAIL PROTECTED]> wrote:
> 
>> So how to differentiate between the two?  Once one knows the answer,
>> it's obvious; but I was in the process of asking when the light dawned:
>>   when the box is clicked, the window dimensions have not changed.  So
>> to help others avoid playing the foole...
>> 
>> on resizeStack newWidth,newHeight,oldWidth,oldHeight
>> if newWidth = oldWidth and newHeight = oldHeight then -- Maximize Box
>> was clicked
> 
> 
> Actually this doesn't work on Windows, Rob... the way resizing is handled is
> different between platforms - even just simply resizing the stack by
> dragging the bottom right corner is different (Mac sends resizeStack when
> you release the mouse; Windows sends it constantly as you're resizing the
> stack while the mouse is down).
> 
> There's a way to tell the rect of the stack against the windowboundingrect,
> but you'd have to subtract the height of the stack's titlebar (which on
> Windows is up to the end user).
> 
> I'll root around and see if I can find some code to help...

OK... When the window is maximized or restored, the target width/height is
provided in the newWidth/newHeight params, and only the newWidth param seems
to be something to "lock" onto. Secondly, maximizing on MacOS X leaves a 10
pixel margin on all sides and doesn't go out the full distance (i.e. on a
1280x1024 screen, the width of the window after resizing is 1260, not 1280).

So this code will detect Maximize/Restore, or will show the current stack
rect if you're not maximizing/restoring (works for Mac/Windows - haven't
tested on Linux):

on resizeStack newW,newH,oldW,oldH
  if the platform is "MacOS" then put 20 into tAdjust
  else put 0 into tAdjust
  if oldW = (item 3 of the windowBoundingRect)-tAdjust then
put "Maximized"
  else
if newW = (item 3 of the windowBoundingRect)-tAdjust then
  put "Restored"
else
  put oldW,oldH,newW,newH
end if
  end if
end resizeStack

Let me know if this works for you guys...


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

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


Re: Detecting Window's Maximize Window Click

2006-05-29 Thread Ken Ray
> on resizeStack newW,newH,oldW,oldH
>   if the platform is "MacOS" then put 20 into tAdjust
>   else put 0 into tAdjust
>   if oldW = (item 3 of the windowBoundingRect)-tAdjust then
> put "Maximized"
>   else
> if newW = (item 3 of the windowBoundingRect)-tAdjust then
>   put "Restored"
> else
>   put oldW,oldH,newW,newH
> end if
>   end if
> end resizeStack

Whoops! Sorry - typo! "oldW" and "newW" should be reversed:

on resizeStack newW,newH,oldW,oldH
  if the platform is "MacOS" then put 20 into tAdjust
  else put 0 into tAdjust
  if newW = (item 3 of the windowBoundingRect)-tAdjust then
put "Maximized"
  else
if oldW = (item 3 of the windowBoundingRect)-tAdjust then
  put "Restored"
else
  put oldW,oldH,newW,newH
end if
  end if
end resizeStack

Thanks,

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


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


Re: HTML entities

2006-05-29 Thread Sarah Reichelt

> I have a field of data that I want to format into a web page. The data
> can contain symbols, most likely just the degree symbol but possibly
> others. If I get the htmltext of the field, it gives me the correct
> entity for the degree symbol: °
>
> However I don't want to use the htmltext, since I am building my own
> table display from the data. Is there a way to translate a symbol to
> it's html entity? I suppose I could just use a lookup table of the
> likely candidates and loop through them, replacing as necessary, but
> since Rev "knows" the entities, I was hoping there was a function that
> I haven't spotted, to get them directly.
>
You could cut/paste the list from the rev docs :-)


I'm not suggesting this directly, but you could do something based on ...

repeat with i = 1 to the number of chars in fld "Field"
  if "&" is in the htmltext of char i of fld "Field" then
put char i of fld "Field" && the htmltext of char i of fld "Field" &
cr after msg
  end if
end repeat



Thanks Alex, this looks like the way to go. I hadn't realised I could
get the htmlText of a single character.

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: Read file with accented characters ?

2006-05-29 Thread J. Landman Gay

Zax wrote:

Thanks for your suggestion.
I tried this function but results are not enough accurate.

It's the same problem with all the functions I have already tried : I'm not
able to recognize a MS Word document saved in "simple text" format from a
BBEdit file saved in Mac format... And I need to recognize them because
BBEdit files need to be translated with the built-in IsoToMac function.

Any ideas ?


I think this is a different problem than detecting line endings. On 
Macs, you can check the creator and type of the files to see if they 
were created by MS Word or BBEdit. On Windows, you can check for the 
".doc" extension to see if it is a Word file.


To get the Mac file creator and type, use "the detailed files" (see 
"files" in the dictionary). The last item of the detailed files is the 
Mac creator and type codes.


--
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: Linux installation

2006-05-29 Thread Bob Warren

Jacqueline Landman Gay wrote:
>
I know almost nothing about the 'nixes, but it seems to me that a script
could calculate most of these using the globals that are automatically
loaded when Rev starts up. All (or many? Not sure) of the standards are
there and can be used in any script; i.e., $USR, $HOME, $PATH, etc.
Maybe these can be used to calculate the necessary paths?

For example: $USER/Desktop/
Or: $HOME/.MyApp/

--
Here are the globals given by Rev under Ubuntu (Gnome) Linux:

$DBUS_SESSION_BUS_ADDRESS 
unix:abstract=/tmp/dbus-WiBK3s8pAR,guid=23217b440bef325962f5e40a61735d00

$DESKTOP_SESSIONdefault
$DISPLAY:0.0
$GDM_XSERVER_LOCATION   local
$GDMSESSION default
$GNOME_DESKTOP_SESSION_ID   Default
$GNOME_KEYRING_SOCKET   /tmp/keyring-hjWXCj/socket
$GTK_RC_FILES   /etc/gtk/gtkrc:/home/bob/.gtkrc-1.2-gnome2
$HOME   /home/bob
$LANG   en_AU.UTF-8
$LANGUAGE   en_AU:en_US:en_GB:en
$LOGNAMEbob
$PATH			 
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games

$PWD/home/bob
$SESSION_MANAGERlocal/bob-desktop:/tmp/.ICE-unix/4709
$SHELL  /bin/bash
$SHLVL  0
$SSH_AGENT_PID  4751
$SSH_AUTH_SOCK  /tmp/ssh-ThYkAa4709/agent.4709
$USER   bob
$USERNAME   bob

---
Obviously, $HOME, $USER and $USERNAME are useful since they give the 
user's name. How much of the rest could be calculated under different 
Linux distros is hard (for me) to say.

---
---
Rishi Viner wrote:
>
All Linux flavors should have su! They will also all have sudo if it is
installed (it is an application on its own). If sudo is not there it 
would be unusual and certainly very easy for the user to install, as 
long as they have the root password etc to set it up.

--
Yes, but in order to be able to automate sudo through Rev, you need to 
able to find sudo in the file system in the first place. Also, to be 
able to achieve certain things through sudo, the automation routine 
would have to be in possession of the root password - hardly practical.


Is that right in your opinion, or have I missed the point here?

Bob

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


Webcam and Rev?

2006-05-29 Thread Garrett Hylltun

Rev 2.6.1

Is it possible in Rev 2.6.1 to access usb or serial webcams?

Thanks,
-Garrett

___
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: Photo Processing - Brightness and Unsharp Mask

2006-05-29 Thread Chipp Walters

Chris has a working version of some image manipulation externals, but as of
now we have no documentation or demo stacks.

Does anyone really think an image external that does the stuff
Sivakatirswami talks about is marketable?

-Chipp

On 5/29/06, Mark Talluto <[EMAIL PROTECTED]> wrote:



On May 29, 2006, at 1:22 PM, Wilhelm Sanke wrote:

> Maybe others could chime in here and provide more information.

All I can say is that I will need these features very soon in an
application that is under development.  I too have discussed this
with Chipp and am excited about the things he is working on.


Mark Talluto
--
CANELA Software
http://www.canelasoftware.com

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



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