Re: HyperCard now being sold for 26p !

2008-08-04 Thread Mark Smith
If Rev is "hypercard on steroids" then this is "hypercard on  
Diltiazem Hydrochloride".
Not as catchy, I grant you, but much better for canine hypertrophic  
cardiomyopathy, which was always a weak area in the original product,  
imo.


:)

Mark


On 5 Aug 2008, at 01:09, Ken Ray wrote:

http://www.abbeyfieldsvets.co.uk/modules/shop/view.asp? 
catid=3&Prodcode=hyperc

10


I found a larger image of that product:

  http://www.bestpetpharmacy.co.uk/show_image.asp?id=67

Man... we were waiting for HyperCard 3 forever, and now there's a  
HyperCard

10?

;-)


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


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

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


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


Re: HyperCard now being sold for 26p !

2008-08-04 Thread Kay C Lan
I wonder what percentage of that is licensing fees? ;-)
___
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: The Euro symbol

2008-08-04 Thread Mark Smith

If Scotland goes for independence they might anyway... :)

On 5 Aug 2008, at 01:29, Sarah Reichelt wrote:


If only Britain would convert to the euro, then maybe our friends in
Edinburgh would come up with the answer :-)


___
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: The Euro symbol

2008-08-04 Thread Sarah Reichelt
On Mon, Aug 4, 2008 at 5:52 PM, Eric Chatonet
<[EMAIL PROTECTED]> wrote:
> Bonjour Sarah,
>
> €, £ and $ on Win: 128, 163, 36
> €, £ and $ on Mac: 219, 163, 36
>
> Probably can you test the platform and use 128 or 219 according to it?
> Money apps are a pain...
> The problem will not be solved ;-)
> For instance:
> $10.50 (English) and 10,50 € (French)
> The best way should probably to get the current money format from the system
> (International/Formats on Mac OS and... on Win)
> I wonder if this kind of issue has not been treated yet on the list two
> years ago.


Thanks Eric and everyone else who answered. It appears there is no
simple cross-platform solution :-(
If only Britain would convert to the euro, then maybe our friends in
Edinburgh would come up with the answer :-)

Ah well, I'll just have to do it the hard way then.

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: HyperCard now being sold for 26p !

2008-08-04 Thread Ken Ray
> http://www.abbeyfieldsvets.co.uk/modules/shop/view.asp?catid=3&Prodcode=hyperc
> 10

I found a larger image of that product:

  http://www.bestpetpharmacy.co.uk/show_image.asp?id=67

Man... we were waiting for HyperCard 3 forever, and now there's a HyperCard
10?

;-)


Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.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: Speeding up get URL

2008-08-04 Thread Shari

Cable modem, yes.  CGI, I don't know a word of the language.

So even your hosting ISP can get involved?  Lordy,  I had no idea 
there were so many pitfalls.  I can understand their issues however, 
knowing how much spam I get from people who are probably using 
similar searches for bad things.  It's disgusting to open your 
mailbox and have hundreds of junk mail just to get to the few genuine 
ones.  Opens up the whole issue, how do you allow someone who isn't 
using it for a bad purpose versus someone who is.  Do you disallow 
all?  Do you allow all?  Or do you find some way for folks to 
register and "show" what they're doing with it?  So yes, I do see 
their point and it is a valid one.  I don't mind registering with 
Google or Yahoo if their API's do the thing.


It's a lot like the whole shareware issue.  Once upon a time you 
could put it out there and hope for honest folks to throw you a bone. 
The truth is that even honest folks don't give a thought to sharing 
software with their friends and family, they don't even think about 
it.  So you MUST build in some incentive if you want to get paid. 
Whole studies have been done on this and in its weird way it's 
similar.  The folks who would have paid anyway sometimes get offended 
by whatever incentives are built in to ensure you get your bones.


By that token the folks using searches for "honest" purposes versus 
those using them for spam and so forth... never considered the 
possibility of being mistaken for a bad guy.


Good catch on the "delete from success list" by the way.  I missed 
that, might not be a huge difference but when the list is very long 
it could be.  Actually, if delete were not needed I could switch to 
"repeat for each" which is always faster.


Every little speed up helps it along :-)

Shari


Are you running these from a machine behind a (relatively) slow 
Internet connection, such as a DSL or cable modem ?
If so, you might get a big improvement by converting the script into 
a CGI script, and running it on your own web-hosting server; that 
would give you an effective bandwidth based on the ISP, rather than 
on a slow DSL-like connection. (I have a vaguely similar script I 
run from my site that is approx 1000x times faster than running it 
from home on a 8Mbs DSL - the lower latency helps as much as the 
increased bandwidth). But beware - if there are any issues with 
looking like a DoS attack, or sending too many requests per second, 
this might be much more likely to trigger them; you may also run 
into issues with usage of CPU and/or bandwidth on your hosting-ISP.



--
  Dogs and bears, sports and cars, and patriots t-shirts
  http://www.villagetshirts.com
 WlND0WS and MAClNT0SH shareware games
 http://www.gypsyware.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: Speeding up get URL

2008-08-04 Thread Shari
Search engines have API's?  I did not know that.  I will definitely 
look into this.  I didn't realize I had so many different options to 
choose from.  Options are good, very good indeed :-)


Thank you!

Shari



I believe most of the major search engines have APIs for returning search
results as XML.  I certainly used Yahoo to to this before.

You'd need to look at the APIs for search to see if they contain features
that would work for the kind of information you're trying to find.

Bernard



--
  Dogs and bears, sports and cars, and patriots t-shirts
  http://www.villagetshirts.com
 WlND0WS and MAClNT0SH shareware games
 http://www.gypsyware.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: REV Send Email via CGI and mail.php script on the fly?

2008-08-04 Thread Andre Garzia
Folks,

using smtp routines from a cgi is not the best solution. If the server
blocks, you end up eating server resources and many hosts will not
allow your cgi to open sockets to outside servers.

RevOnRockets has a library called RocketsSendmail that wraps around
the sendmail common unix tool to send emails, you can simply download
and use that instead of using a php file. I can assist

Cheers
andre

On Mon, Aug 4, 2008 at 2:34 PM, Mark Smith <[EMAIL PROTECTED]> wrote:
> Yes, the SMTP libs would do the job from within Revolution, and on the
> server one could also use a simple shell call to sendmail (assuming it's
> some kind of unix/linux).
>
> Best,
>
> Mark
>
>
> On 4 Aug 2008, at 18:17, Mark Schonewille wrote:
>
>> Hi Mark,
>>
>> It looks like you want to use Sarah's or Sean's SMTP library, to send
>> e-mail directly from within Revolution, using your own e-mail server.
>>
>> --
>> Best regards,
>>
>> Mark Schonewille
>>
>> Economy-x-Talk Consulting and Software Engineering
>> http://economy-x-talk.com
>> http://www.salery.biz
>>
>> Benefit from our inexpensive hosting services. See
>> http://economy-x-talk.com/server.html for more info.
>>
>> On 4 aug 2008, at 18:14, Mark Smith wrote:
>>
>>> I'd also point out that it should also be possible to a) send the mail
>>> directly from the student to the teacher and b) use a rev CGI on the server
>>> without a php script.
>>>
>>> Best,
>>>
>>> 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
>
> ___
> 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
>



-- 
http://www.andregarzia.com All We Do Is Code.
___
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: The Euro symbol

2008-08-04 Thread Martin Baxter
Devin Asay wrote:

> 1. The html entity for the Euro symbol is "¤"

I guess you are a mac user Devin? The html entity for the euro symbol
used in web pages is "€". "¤" may give you the euro symbol
on a mac, IIRC mac roman replaced its currency symbol with the euro
symbol some years back, but on Windows here I get the dear old currency
symbol when I use "¤" and, in Revolution, "€" just displays
unmodified, unfortunately.

Would be nice if € worked, I can't think of any reason why it
couldn't. I've used € or numtochar(128) on windows when needed.

Otherwise, what you said, yeah...

Martin Baxter

-- 
I am Not a Number, I am a free NaN
___
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: Who owns old icons?

2008-08-04 Thread Noel
I've been reading this conversation, and have to throw a few points 
of clarification out there.


First off, Fonts and dingbats both are copyrighted by the person that 
created them.   Typefaces on the other hand, are not covered by 
copyright.  However the US hasn't yet made a legal decision on if a 
font is a typeface yet (go figure).  But ask any publishing house, 
and they will tell you they make sure to have licenses for any 
typeface they use that isn't in the public domain.


Next, the Corel vs Bridgeman Art Library case says that if the 2d 
object (such as a painting) is in the public domain due to its age, 
the owner of the object cannot claim copyright on its image.  You can 
take a picture of that object, and do whatever you personally want to 
do with it and keep the copyright of that image.  However, this law 
has not been tested on anything 3d (such as a statue), and doesn't 
apply to everywhere (US is the main application of this law)


Almost last, the idea of changing the item so copyright doesn't 
apply.  The owner of the original copyright also owns all derivative 
works from that copyright.  So you cannot take someones icons, change 
them slightly, and claim they are yours now.


And finally Last.  Taking a "screenshot" of an icon, in no way gives 
you a right to distribute that property.  The original icon still has 
copyright on it, you are not allowed to claim copyright on a 
"picture" or a "screenshot" of that item.


Just a few things to throw out there :)

 - Noel

At 12:18 PM 8/4/2008, you wrote:

Richmond Mathewson wrote:

> Rick Harrison wrote:
>
> "Unless Apple, Inc. has put all of HyperCard into the public domain,
> the HyperCard icons are still owned by Apple, Inc."
>
> which seems pretty clear and unequivocal.
>
> However, old icons are a bit like my face:
>
> I own my face, and were somebody to mysteriously remove it and
> graft it on to another person they would have stolen it.
>
> However, journalists and others photograph people's faces and
> publish them everywhere without so much as a backward glance;
> and they cannot be said to have "stolen people's faces", or even
> their likenesses.

You did not create your face.  In the US, your image in public 
places is considered pubic domain, and can be photographed by anyone 
without requiring consent.  Photos of your face taken in private 
places will require your consent, or may be considered an invasion 
of privacy.  But it's the privacy at play with faces, not copyright 
(at least not in the US; YMMV); you did not create your face, and 
copyright is generally limited to the domain of created works.



> Now, were I to post the HyperCard application, or, say, a ResEdit
> document containing Hypercard icons on a website and/or user group
> I would have stolen the icons.
>
> However, were I to post (as, indeed I have done) photographs (i.e.
> screenshots) of HyperCard icons; this would be similar to an
> individual publishing a photograph of me s/he took.

Actually, photographs of paintings are covered by the copyright of 
the painting being photographed.  There may be exceptions for 
incidental use (e.g., a painting in the far background of a 
photograph of a gallery), but the rules for incidental use are vague 
and the copyright holder can elect to have them tested in court.


Pixel-for-pixel copies of a work, even if saved in a different 
format, have been tested by the court and found to be under the 
protection of the copyright holder of the original work.  In some 
cases even modest deviance from the original may still be protected, 
unless the defendant can demonstrate that their work was indeed 
original and similarity is purely coincidental.


Oddly enough, fonts are a specific exclusion to this protection, 
having been defined by the courts as purely utilitarian and 
therefore unprotectable by copyright (given the artfulness required 
for font design I disagree with this ruling, but the courts rarely 
consult me when making judgments).  The underlying code of vector 
fonts can be protected as software instructions, but the actual 
rendered image of the glyphs themselves are not protected (hence the 
knock-off industry).


Screenshots which include copyrighted images may fall under 
"incidental use", but as I noted such usage is vaguely defined and 
may be tested at the copyright holder's election.



> This discussion is rapidly reaching its natural end.

Yes, all citations of governing law have demonstrated that 
distribution of pixel-perfect copies of an entire collection Apple's 
icons represents a violation of their copyright.


If this seems unclear the best test of course is to verify this with 
Apple.  I'm not an attorney, and I haven't seen any of the attorneys 
on this list offer their opinions, so while no one here can be of 
assistance the original copyright holder is the one who can best 
answer your question.


--
 Richard Gaskin
 Managing Editor, revJournal
 _

RE: Who owns old icons?

2008-08-04 Thread Lynn Fredricks
>  > However, were I to post (as, indeed I have done) photographs (i.e.
>  > screenshots) of HyperCard icons; this would be similar to 
> an  > individual publishing a photograph of me s/he took.
> 
> Actually, photographs of paintings are covered by the 
> copyright of the painting being photographed.  There may be 
> exceptions for incidental use (e.g., a painting in the far 
> background of a photograph of a gallery), but the rules for 
> incidental use are vague and the copyright holder can elect 
> to have them tested in court.

I believe this was settled as well because of a case with Corel trying to
copyright pictures of famous paintings.

> Oddly enough, fonts are a specific exclusion to this 
> protection, having been defined by the courts as purely 
> utilitarian and therefore unprotectable by copyright (given 
> the artfulness required for font design I disagree with this 
> ruling, but the courts rarely consult me when making 
> judgments).  The underlying code of vector fonts can be 
> protected as software instructions, but the actual rendered 
> image of the glyphs themselves are not protected (hence the 
> knock-off industry).

This can really vary, country to country - even with the Berne Convention.
Apple ran into trouble years ago with Japanese fonts, because fonts in
Japan, at least at the time, were covered under Japanese copyright law (font
houses claiming to have had exclusive rights to the fonts for hundreds of
years). Of course, creating a font with 2000 characters in it is no small
task ;-) One company effectively did that for postscript fonts and it was
very, very expensive to get fonts that worked at a high quality print
resolution. Apple either licensed or created some very nice Japanese
TrueType fonts though - not perfect by any means for digital printing at the
time, but certainly good enough for word processing.

Best regards,

Lynn Fredricks
Mirye Software Publishing
http://www.mirye.com

Mirye Community NING
http://miryesoftware.ning.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: Getting the text content of a HTML page

2008-08-04 Thread Jim Ault
Richard, a couple additional notes:

On 8/4/08 11:25 AM, "Richard Gaskin" <[EMAIL PROTECTED]> wrote:

> I put that into this function:
> 
> function RegexMethod pHtml
>put "" into newString
>put "(?U)<.*>" into regEx
>return replaceText(pHtml,regEx,newString)
> end RegexMethod
> 
> ...and then ran it on the HTML source for this page:
> 
> 
> 
> It catches just about everything except for the mailto near the top:
> 
>HREF="mailto:use-revolution%40lists.runrev.com?Subject=Getting%20the%20text%20
> content%20of%20a%20HTML%20page&In-Reply-To=f99b52860808031334l44f6cd1by6ed2444
> fb32560ac%40mail.gmail.com"
> TITLE="Getting the text content of a HTML page">
> 
> Presumably this is because that tag is broken onto two lines.
> 

Try this variation for the regEx   put "(?Us)<.*>" into regEx
the 's' says 'ignore end of line characters to make the match'

> This function takes care of that, and this far benchmarks about an order
> of magnitude faster:
> 
> 
> function HtmlTextMethod pHtml
>put the properties of the templateField into tSaveProps
>set the htmlText of the templateField to pHtml
>get the text of the templateField
>set the properties of the templateField to tSaveProps
>return it
> end HtmlTextMethod

Caution with this technique in that the Rev tags are noted in the
documentation to only include a subset of tags.  In today's world of XML,
programmers will create their own versions.  Perhaps a little catch line or
two:

if it contains "<" then
   answer "There may be an extra tag or two remaining in the text"
   answer "Please inspect the result to be sure"
end if

Of course, the killer in this exercise is when the text we want has
something line "Tip: solve for x > y, then add the point to your graph"

Fun, games, and work I between.

Jim Ault
Las Vegas


___
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: Getting the text content of a HTML page

2008-08-04 Thread viktoras didziulis
whoops sorry, I tested this with basic tags like jsajka. The next 
'thing' seem to work OK (the text is in fText field):


put replaceText(fld "fText","","") into 
fld "fText"


A small explanation:
/? means zero or 1 occurence of / - because tags may be either opening 
(without /) or closing (with /)
[A-Za-z1-9 ='" & quote & "]+ - one or more occurrences of any symbol 
from A to Z and a to z and 1 to 9 including space, single and double 
quote. Sorry, I used & quote & fo double quote because I could not 
figure it out how to escape quotes in Revolution...


Viktoras




Richard Gaskin wrote:

viktoras didziulis wrote:

one more way to do things using regular expressions:

put the replaceText(myText,"","") into myText

will simply replace all tags with empty string. Where myText is the 
text where replacements have to be made.  is a regular 
expression matching most html tags and "" is empty replacement string.


Always looking for potential optimizations, I was going to benchmark 
that here but couldn't get it to work, even after removing "the". :(




___
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: Getting the text content of a HTML page

2008-08-04 Thread Richard Gaskin

Jim Ault wrote:


The problem with this may be that it only looks for alpha chars,
not spaces or numbers, quotes or equal signs
therefore it finds less matches depending on the html

oops, these don't match and won't be replaced with empty  --







works on this tag  -
Making this bold

put "" into newString
put "(?U)<.*> into regEx
put replaceText(myText,regEx,newString) into myText


I put that into this function:

function RegexMethod pHtml
  put "" into newString
  put "(?U)<.*>" into regEx
  return replaceText(pHtml,regEx,newString)
end RegexMethod

...and then ran it on the HTML source for this page:



It catches just about everything except for the mailto near the top:

 HREF="mailto:use-revolution%40lists.runrev.com?Subject=Getting%20the%20text%20content%20of%20a%20HTML%20page&In-Reply-To=f99b52860808031334l44f6cd1by6ed2444fb32560ac%40mail.gmail.com";

   TITLE="Getting the text content of a HTML page">

Presumably this is because that tag is broken onto two lines.

This function takes care of that, and this far benchmarks about an order 
of magnitude faster:



function HtmlTextMethod pHtml
  put the properties of the templateField into tSaveProps
  set the htmlText of the templateField to pHtml
  get the text of the templateField
  set the properties of the templateField to tSaveProps
  return it
end HtmlTextMethod


--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Who owns old icons?

2008-08-04 Thread Richard Gaskin

Richmond Mathewson wrote:

> Rick Harrison wrote:
>
> "Unless Apple, Inc. has put all of HyperCard into the public domain,
> the HyperCard icons are still owned by Apple, Inc."
>
> which seems pretty clear and unequivocal.
>
> However, old icons are a bit like my face:
>
> I own my face, and were somebody to mysteriously remove it and
> graft it on to another person they would have stolen it.
>
> However, journalists and others photograph people's faces and
> publish them everywhere without so much as a backward glance;
> and they cannot be said to have "stolen people's faces", or even
> their likenesses.

You did not create your face.  In the US, your image in public places is 
considered pubic domain, and can be photographed by anyone without 
requiring consent.  Photos of your face taken in private places will 
require your consent, or may be considered an invasion of privacy.  But 
it's the privacy at play with faces, not copyright (at least not in the 
US; YMMV); you did not create your face, and copyright is generally 
limited to the domain of created works.



> Now, were I to post the HyperCard application, or, say, a ResEdit
> document containing Hypercard icons on a website and/or user group
> I would have stolen the icons.
>
> However, were I to post (as, indeed I have done) photographs (i.e.
> screenshots) of HyperCard icons; this would be similar to an
> individual publishing a photograph of me s/he took.

Actually, photographs of paintings are covered by the copyright of the 
painting being photographed.  There may be exceptions for incidental use 
(e.g., a painting in the far background of a photograph of a gallery), 
but the rules for incidental use are vague and the copyright holder can 
elect to have them tested in court.


Pixel-for-pixel copies of a work, even if saved in a different format, 
have been tested by the court and found to be under the protection of 
the copyright holder of the original work.  In some cases even modest 
deviance from the original may still be protected, unless the defendant 
can demonstrate that their work was indeed original and similarity is 
purely coincidental.


Oddly enough, fonts are a specific exclusion to this protection, having 
been defined by the courts as purely utilitarian and therefore 
unprotectable by copyright (given the artfulness required for font 
design I disagree with this ruling, but the courts rarely consult me 
when making judgments).  The underlying code of vector fonts can be 
protected as software instructions, but the actual rendered image of the 
glyphs themselves are not protected (hence the knock-off industry).


Screenshots which include copyrighted images may fall under "incidental 
use", but as I noted such usage is vaguely defined and may be tested at 
the copyright holder's election.



> This discussion is rapidly reaching its natural end.

Yes, all citations of governing law have demonstrated that distribution 
of pixel-perfect copies of an entire collection Apple's icons represents 
a violation of their copyright.


If this seems unclear the best test of course is to verify this with 
Apple.  I'm not an attorney, and I haven't seen any of the attorneys on 
this list offer their opinions, so while no one here can be of 
assistance the original copyright holder is the one who can best answer 
your question.


--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.com

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


Re: REV Send Email via CGI and mail.php script on the fly?

2008-08-04 Thread Mark Smith
Yes, the SMTP libs would do the job from within Revolution, and on  
the server one could also use a simple shell call to sendmail  
(assuming it's some kind of unix/linux).


Best,

Mark


On 4 Aug 2008, at 18:17, Mark Schonewille wrote:


Hi Mark,

It looks like you want to use Sarah's or Sean's SMTP library, to  
send e-mail directly from within Revolution, using your own e-mail  
server.


--
Best regards,

Mark Schonewille

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

Benefit from our inexpensive hosting services. See http://economy-x- 
talk.com/server.html for more info.


On 4 aug 2008, at 18:14, Mark Smith wrote:

I'd also point out that it should also be possible to a) send the  
mail directly from the student to the teacher and b) use a rev CGI  
on the server without a php script.


Best,

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


___
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: REV Send Email via CGI and mail.php script on the fly?

2008-08-04 Thread Mark Schonewille

Hi Mark,

It looks like you want to use Sarah's or Sean's SMTP library, to send  
e-mail directly from within Revolution, using your own e-mail server.


--
Best regards,

Mark Schonewille

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

Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html 
 for more info.


On 4 aug 2008, at 18:14, Mark Smith wrote:

I'd also point out that it should also be possible to a) send the  
mail directly from the student to the teacher and b) use a rev CGI  
on the server without a php script.


Best,

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


HyperCard now being sold for 26p !

2008-08-04 Thread Richmond Mathewson
So, obviously . . .

http://www.abbeyfieldsvets.co.uk/modules/shop/view.asp?catid=3&Prodcode=hyperc10

Mind you, put that in a your LCIII and it may start going "miaow"!

love, Richmond Mathewson.



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



  __
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at 
Yahoo! http://uk.docs.yahoo.com/ymail/new.html
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Who owns old icons?

2008-08-04 Thread Richmond Mathewson
Images as follows:

http://www.granneman.com/images/mac_icons_1984.gif

http://homepage.mac.com/chinesemac/earlymacs/

http://www.mactech.com/articles/mactech/Vol.05/05.10/DotPrinter/img003.gif

http://www.geocities.jp/classiclll/images2/icon_low.gif

This discussion is rapidly reaching its natural end.

sincerely, Richmond Mathewson.



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



  __
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at 
Yahoo! http://uk.docs.yahoo.com/ymail/new.html
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: The Euro symbol

2008-08-04 Thread Devin Asay


On Aug 4, 2008, at 1:20 AM, Sarah Reichelt wrote:


Hi people,

Can anyone give me some advice on the cross-platform issues with the
Euro symbol?

On my Mac, numToChar(216) gives the Euro symbol, but on my Windows
virtual machine, that doesn't work, but numToChar(128) does. Is this
correct for all varieties of Windows?

I am helping with an app that switches currencies and is
cross-platform. The currency symbol occurs in fields all over the app
so it takes a while to change. Before building a standalone, we set
the symbol as required, then build the version for that currency. Now
it appears that we have to set the euro symbol to one thing, build for
Mac, then set it to something else and build for Windows.

Surely there has to be an easier, more standard way to handle the  
Euro symbol?


I'd use one of two methods:

1. The html entity for the Euro symbol is "¤"
Save this as a custom property of the field, say the euroSymbol of fld  
"currency"

Then set the htmlText of the field:
  set the htmlText of fld "currency" to the euroSymbol of fld  
"currency"


2. Use unicode. I'd use UTF-8 to avoid cross-processor endian issues.  
Here is the UTF-8 version of the Euro symbol (as expressed in ASCII on  
my Mac): "€"

Save it in a custom property as before and do this:
  set the unicodeText of fld "currency" to uniencode(the  
uniEuroSymbol of fld "currency","utf8")


Just set a flag for your whole app that determines which currency  
system you'll be using, then check the flag and set the field on each  
card in a preOpenCard handler.


HTH,

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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


Who owns old icons?

2008-08-04 Thread Richmond Mathewson
I am startling unoriginal:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg00420.html



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



  __
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at 
Yahoo! http://uk.docs.yahoo.com/ymail/new.html
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Who owns old icons?

2008-08-04 Thread Mikey
Despite discussions to the contrary, at least according to this article in
Wikipedia , abandonware is still
protected by copyright, regardless of a copyright holder's lack of
enforcement.
___
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


Who owns old icons?

2008-08-04 Thread Richmond Mathewson
Rick Harrison wrote:

"Unless Apple, Inc. has put all of HyperCard into the public domain,
the HyperCard icons are still owned by Apple, Inc."

which seems pretty clear and unequivocal.

However, old icons are a bit like my face:

I own my face, and were somebody to mysteriously remove it and graft it on to 
another person they would have stolen it.

However, journalists and others photograph people's faces and publish them 
everywhere without so much as a backward glance; and they cannot be said to 
have "stolen people's faces", or even their likenesses.

Now, were I to post the HyperCard application, or, say, a ResEdit document 
containing Hypercard icons on a website and/or user group I would have stolen 
the icons.

However, were I to post (as, indeed I have done) photographs (i.e. screenshots) 
of HyperCard icons; this would be similar to an individual publishing a 
photograph of me s/he took. Of course if it were of me, say, in my bath with a 
plastic duck,I might feel fairly cheesed-off, and that it were an invasion of 
privacy.

Apple have never hid their HyperCard icons in the "bathroom" (they have flashed 
them around like nobody's business), and the 'photographs' of them published on 
my Yahoo Group

http://tech.groups.yahoo.com/group/RsHYPERCARD

are not "with plastic ducks"; in fact no 'value judgements' are attached to 
them at all.

Not the same situations, at all!

sincerely, Richmond Mathewson.


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



  __
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at 
Yahoo! http://uk.docs.yahoo.com/ymail/new.html
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Getting the text content of a HTML page

2008-08-04 Thread Jim Ault

On 8/4/08 8:25 AM, "Richard Gaskin" <[EMAIL PROTECTED]> wrote:

> viktoras didziulis wrote:
>> one more way to do things using regular expressions:
>> 
>> put the replaceText(myText,"","") into myText
>> 
>> will simply replace all tags with empty string. Where myText is the text
>> where replacements have to be made.  is a regular
>> expression matching most html tags and "" is empty replacement string.
> 
> Always looking for potential optimizations, I was going to benchmark
> that here but couldn't get it to work, even after removing "the". :(
---
>> put the replaceText(myText,"","") into myText

The problem with this may be that it only looks for alpha chars,
not spaces or numbers, quotes or equal signs
therefore it finds less matches depending on the html

oops, these don't match and won't be replaced with empty  --







works on this tag  -
Making this bold

put "" into newString
put "(?U)<.*> into regEx
put replaceText(myText,regEx,newString) into myText

By the way, (?U) says "make the shortest match possible"
(?Ui) says "make the shortest match ignoring case"
(?Usi) says "make the shortest match, ignoring case, and staying on the same
line"  ( the opposite is ignore line returns to make the match)


So
(?U)<.*>
says "find a < char, then scan the text as long as you find any character
for as long as it takes to find the next >"
The dot means any character, the * means unlimited number of chars
the   (?  says "this is a directive you must follow, Mr RegEx Engine"
If you did not use (?U) [stands for "Ungreedy"], the default behavior is to
find the longest possible match.  For HTML, that would mean the entire
document would be selected as one chunk, because






would qualify for the first  <  and the last  >  using the expression
put "<.*>" into regEx

Hope this helps those diving in to 'get' regular expressions.  The
benchmarking you will do will show the inherent slowness of regular
expressions since they actually scan the text forward and back depending on
the complexity of the expression and the text block being scanned and the
number of successful matches.  This is why filter and for each are so
efficient most times.

Jim Ault
Las Vegas


On 8/4/08 8:25 AM, "Richard Gaskin" <[EMAIL PROTECTED]> wrote:

> viktoras didziulis wrote:
>> one more way to do things using regular expressions:
>> 
>> put the replaceText(myText,"","") into myText
>> 
>> will simply replace all tags with empty string. Where myText is the text
>> where replacements have to be made.  is a regular
>> expression matching most html tags and "" is empty replacement string.
> 
> Always looking for potential optimizations, I was going to benchmark
> that here but couldn't get it to work, even after removing "the". :(


___
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: REV Send Email via CGI and mail.php script on the fly?

2008-08-04 Thread jbv


John ,

>
>
> Can a rev cgi create a mail.php file, execute the php file by forwarding data 
> to it, and then delete the file it created, all in one swoop?
>

the answer is "yes". You don't even need to create a file and then delete it...
I've been doing that for years : my Rev cgi script calls a php lib with all the
requested parameters... I'm using a php lib because I found one very useful
on some website and didn't want to bother writing my own...
And I'm using a Rev cgi script because, apart from sending emails, I have
numerous tasks to do that are easier to code in Rev than in php, but you can
make it simpler : just send a POST request from your stack to a simple php
script on your server...

Best,
JB

___
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: REV Send Email via CGI and mail.php script on the fly?

2008-08-04 Thread Mark Smith
I'd also point out that it should also be possible to a) send the  
mail directly from the student to the teacher and b) use a rev CGI on  
the server without a php script.


Best,

Mark

On 4 Aug 2008, at 17:06, Eric Chatonet wrote:


Bonsoir John,

I remember a project I made three years ago that allowed the  
desktop based user to send an email to an author (the project was  
kind of eBook).
I used directly a php script on the server, passing the data and  
the address without having to set up any Rev CGI.
For security reasons, there was an exchange of password created on- 
the-fly between the server and the desktop based application.

I don't remember exactly how we made it but the point is:
. No CGI needed.
. No emailer needed of course.
The text was typed by the user and he had only to click 'Send to  
the author'.
Probably, somebody will chime in with details about the PHP script  
needed I have no longer on hand.


Le 4 août 08 à 17:52, John Patten a écrit :


Hi All...

Quick question, i have some projects that multiple teachers will  
use with their students and I would like the student results to be  
emailed  back to their teachers.


I would like this process to be transparent to the student using  
the stack. Can the following be done?


I would like the rev project to "post" the student data and the  
identified teacher's email address (saved is stack profile  
settings) to the built in smtp mail.php script.  I know I can get  
the rev stack to post to the mail.php file, but the mail php file  
has to be dynamic is determining what teacher's email address to  
send to.


I was wondering if I could post the teacher's email address and  
the student project data to a rev cgi project on the server, and  
then have the rev cgi project, on the fly, create the mail.php  
file with the correct email address and email the student data to  
the teacher?


Essentially, the rev cgi project would create the mail.php file  
based on the submitted email address, forward the student data to  
the file it just  created (mail.php)  and then possibly delete the  
mail.php file and wait for the next post.


Can a rev cgi create a mail.php file, execute the php file by  
forwarding data to it, and then delete the file it created, all in  
one swoop?


Thank you!

John Patten


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


___
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: REV Send Email via CGI and mail.php script on the fly?

2008-08-04 Thread Eric Chatonet

Bonsoir John,

I remember a project I made three years ago that allowed the desktop  
based user to send an email to an author (the project was kind of  
eBook).
I used directly a php script on the server, passing the data and the  
address without having to set up any Rev CGI.
For security reasons, there was an exchange of password created on- 
the-fly between the server and the desktop based application.

I don't remember exactly how we made it but the point is:
. No CGI needed.
. No emailer needed of course.
The text was typed by the user and he had only to click 'Send to the  
author'.
Probably, somebody will chime in with details about the PHP script  
needed I have no longer on hand.


Le 4 août 08 à 17:52, John Patten a écrit :


Hi All...

Quick question, i have some projects that multiple teachers will  
use with their students and I would like the student results to be  
emailed  back to their teachers.


I would like this process to be transparent to the student using  
the stack. Can the following be done?


I would like the rev project to "post" the student data and the  
identified teacher's email address (saved is stack profile  
settings) to the built in smtp mail.php script.  I know I can get  
the rev stack to post to the mail.php file, but the mail php file  
has to be dynamic is determining what teacher's email address to  
send to.


I was wondering if I could post the teacher's email address and the  
student project data to a rev cgi project on the server, and then  
have the rev cgi project, on the fly, create the mail.php file with  
the correct email address and email the student data to the teacher?


Essentially, the rev cgi project would create the mail.php file  
based on the submitted email address, forward the student data to  
the file it just  created (mail.php)  and then possibly delete the  
mail.php file and wait for the next post.


Can a rev cgi create a mail.php file, execute the php file by  
forwarding data to it, and then delete the file it created, all in  
one swoop?


Thank you!

John Patten


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


REV Send Email via CGI and mail.php script on the fly?

2008-08-04 Thread John Patten
Hi All...

Quick question, i have some projects that multiple teachers will use with their 
students and I would like the student results to be emailed  back to their 
teachers.

I would like this process to be transparent to the student using the stack. Can 
the following be done?

I would like the rev project to "post" the student data and the identified 
teacher's email address (saved is stack profile settings) to the built in smtp 
mail.php script.  I know I can get the rev stack to post to the mail.php file, 
but the mail php file has to be dynamic is determining what teacher's email 
address to send to.  

I was wondering if I could post the teacher's email address and the student 
project data to a rev cgi project on the server, and then have the rev cgi 
project, on the fly, create the mail.php file with the correct email address 
and email the student data to the teacher?

Essentially, the rev cgi project would create the mail.php file based on the 
submitted email address, forward the student data to the file it just  created 
(mail.php)  and then possibly delete the mail.php file and wait for the next 
post.

Can a rev cgi create a mail.php file, execute the php file by forwarding data 
to it, and then delete the file it created, all in one swoop?

Thank you!

John Patten 
SUSD
___
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: Video Editor

2008-08-04 Thread mfstuart

Sorry folks, that message was to have gone directly to Chipp.
Must have used the wrong email address.
@@


Regards,
Mark Stuart



mfstuart wrote:
> 
> Hi Chipp,
> 
>  
> 
> I'm a member of the "use-revolution archive" community and had a question
> for you.
> 
>  
> 
> I was wondering if your video editor was for sale?
> 
> I was wanting something for my 15 yr old daughter to use to download video
> from the camera and then edit and create a DVD.
> 
>  
> 
> What say you?
> 
>  
> 
> Thanx, Mark Stuart
> 
> ___
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Video-Editor-tp18805610p18813690.html
Sent from the Revolution - User mailing list archive at Nabble.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: Getting the text content of a HTML page

2008-08-04 Thread Richard Gaskin

viktoras didziulis wrote:

one more way to do things using regular expressions:

put the replaceText(myText,"","") into myText

will simply replace all tags with empty string. Where myText is the text 
where replacements have to be made.  is a regular 
expression matching most html tags and "" is empty replacement string.


Always looking for potential optimizations, I was going to benchmark 
that here but couldn't get it to work, even after removing "the". :(


--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Speeding up get URL

2008-08-04 Thread Mark Smith
Very good point about doing it from a remote server - if the speed  
difference were great, then an hourly-paid Amazon EC2 server might be  
just the job...


Mark

On 4 Aug 2008, at 13:13, Alex Tweedly wrote:


If so, you might get a big improvement by converting the script  
into a CGI script, and running it on your own web-hosting server;  
that would give you an effective bandwidth based on the ISP, rather  
than on a slow DSL-like connection. (I have a vaguely similar  
script I run from my site that is approx 1000x

...
___
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: Who owns old icons?

2008-08-04 Thread Rick Harrison

Unless Apple, Inc. has put all of HyperCard into the public domain,
the HyperCard icons are still owned by Apple, Inc.

According to www.wikipedia.org:

"The Copyright Term Extension Act (CTEA) of 1998 – alternatively known  
as the Sonny Bono Copyright Term Extension Act, Sonny Bono Act, or  
pejoratively as the Mickey Mouse Protection Act – extended copyright  
terms in the United States by 20 years. Before the Act (under the  
Copyright Act of 1976), copyright would last for the life of the  
author plus 50 years, or 75 years for a work of corporate authorship;  
the Act extended these terms to life of the author plus 70 years and  
for works of corporate authorship to 120 years after creation or 95  
years after publication, whichever endpoint is earlier.[1] The Act  
also affected copyright terms for copyrighted works published prior to  
January 1, 1978, also increasing their term of protection by 20 years,  
to a total of 95 years from publication."


Unless you can either confirm that Apple, Inc. has put
HyperCard into the public domain, or you have obtained
permission from the Apple, Inc. legal department, you
cannot do what you want with those icons.

Yes, I know it seems terrible, but if you were Apple, Inc.
I'm sure you would want to protect your under used icons too.
After all Apple might want to consider using them for some
different application in the future.

wikipedia.org has a lot more information about copyright,
and I suggest that anyone who is interested to check it out.






___
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: Speeding up get URL

2008-08-04 Thread Bernard Devlin
I think you've had a lot of good suggestions for solving this problem.
However, depending on the kind of data you're trying to parse out (and the
frequency with which that data changes), you might be better to let Google
or Yahoo do the search (using the kind of advanced search like:

"some meaningful phrase" OR "another meaningful phrase" allinurl:
somedomain.com

The search engine would then return the results to you, and you could then
proceed to download the actual pages that match, and parse them further.

I believe most of the major search engines have APIs for returning search
results as XML.  I certainly used Yahoo to to this before.

You'd need to look at the APIs for search to see if they contain features
that would work for the kind of information you're trying to find.

Bernard
___
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: Speeding up get URL

2008-08-04 Thread Rick Harrison


On Aug 4, 2008, at 4:17 AM, Shari wrote:

One service provider that I extract data from does not want more  
than one
hit every 50 seconds in order to be of service to hundreds of  
simultaneous
users, so they protect themselves from "denial of service attacks"  
that

overload their machines.



Hi Shari,

What URL are you harvesting all the data from?

Most affiliate type websites usually don't want users
doing this activity.  If you've found one that allows it
we'd like to know more about it!

Thanks in advance!

Rick
___
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: RevMail strange behaviour in 3.0.0 (dp 9) and leopard

2008-08-04 Thread Till Bandi

Thanks!


Am 04.08.2008 um 03:11 schrieb Sarah Reichelt:

On Sat, Aug 2, 2008 at 10:48 PM, Till Bandi <[EMAIL PROTECTED]>  
wrote:


revMail "[EMAIL PROTECTED]" works fine in version 2.9.

But in Version 3.0 I get
<<[EMAIL PROTECTED]&Content-Type:text/plain;charset=utf-8>> in the  
to-Line.
(Apple Mail). If I add the other parameters of the revMail command  
(Syntax:
revMail address[,ccAddress[,mailSubject[,messageBody]]]), as long  
as the
parameters are empty I still get the same indication of the font  
etc. When I
put one (blank or any) character into the second, third or fouth  
parameter

then the "to"- line in Mail is correct.

Can anyone confirm this or has an explanation? (I am working with the
swiss-german localisation.)



Confirmed, reported and I found the fix.
Check the bug report 


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

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


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


Re: Getting the text content of a HTML page

2008-08-04 Thread Eric Chatonet
Thanks for the kind words: I wrote the Rev Search Engine to help all  
and very often it helps me too :-)
I'm really sorry about using 'regex' in my last post but you guessed  
it: 'regular expression'.
I'm sure you'll become a respected contributor shortly: you make  
really quick progress :-)

And, as you saw it, this list is very kind and helpful.

Just a tip: many of us are not in Europa then posting in the evening  
is sometimes a good idea to be read shortly in the US, Brazil, Hawaii  
and many other friends places ;-)


Le 4 août 08 à 14:24, H Baric a écrit :


Thanks Eric,

I'm sitting here reading your message thinking "what the heck is  
regex" then

it clicked! Haha, see how much I don't know yet?  :-P

Thanks VERY much Eric, I was just actually using the Rev Search  
then when
your message came in! Wow, great stuff! I'm off to explore more of  
the Rev

universe... :D

Thanks again :)


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: Getting the text content of a HTML page

2008-08-04 Thread H Baric
Thanks Eric,

I'm sitting here reading your message thinking "what the heck is regex" then 
it clicked! Haha, see how much I don't know yet?  :-P

Thanks VERY much Eric, I was just actually using the Rev Search then when 
your message came in! Wow, great stuff! I'm off to explore more of the Rev 
universe... :D

Thanks again :)

Kindest regards,
Heather

- Original Message - 
From: "Eric Chatonet" <[EMAIL PROTECTED]>
To: "How to use Revolution" 
Sent: Monday, August 04, 2008 9:56 PM
Subject: Re: Getting the text content of a HTML page


Bonjour Heather,

Le 4 août 08 à 13:01, H Baric a écrit :

> Can you (or if anyone else reading has a moment) please help me
> understand
> more about what each part of the is the "" is about?

I assume you use Rev 2.9: there is a search tool named 'Rev Search
Engine' in the IDE that could help you in many fields.
See 'Help/Rev Search Engine' menu item.

For instance, after having selected the 'Web database' pane,
searching for regex will give you three links:
http://support.runrev.com/scriptingconferences/ wher you'll find,
among others, a nice course of Alex Tweedly about text munging
including regex. In this stack you'll find another interesting link:
http://www.pcre.org/ (regex docs)
http://regexlib.com/default.aspx a regex library.
http://rinaldicollection.free.fr/frevplugins_frame.htm an utility to
build regex in Rev by Frederic Rinaldi.

See Rev Search Engine docs: it provides many ways to get information
you need in any field.

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 

___
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: Speeding up get URL

2008-08-04 Thread Alex Tweedly
 Sorry if this message comes through twice - first attempt might have 
failed, so I'm resending form a different account.


Sarah Reichelt wrote:

On Mon, Aug 4, 2008 at 12:35 AM, Shari <[EMAIL PROTECTED]> wrote:
  

Goal:  Get a long list of website URLS, parse a bunch of data from each
page, if successful delete the URL from the list, if not put the URL on a
different list.  I've got it working but it's slow.  It takes about an hour
per 10,000 urls.  I sell tshirts.  Am using this to create informational
files for myself which will be frequently updated.  I'll probably be running
this a couple times a month and expect my product line to just keep on
growing.  I'm currently at about 40,000 products but look forward to the day
of hundreds of thousands :-)  So speed is my need... (Yes, if you're
interested my store is in the signature, opened it last December :-)

How do I speed this up?



Shari, I think the delay will be due to the connection to the server,
not your script, so there may not be a lot you can do about it.

I did have one idea: can you try getting more than one URL at the same
time? If you build a list of the URLs to check, then have a script
that grabs the first one on the list, and sends a non-blocking request
to that site, with a message to call when the data has all arrived.
While waiting, start loading the next site and so on. Bookmark
checking software seems to work like this.

  
You should be able to achieve that using 'load URL' - set off a number 
of 'load's going and then by checking the URLstatus you can process them 
as they have finished arriving to your machine; and as the number of 
outstanding requested URLs decreases, set off the next batch of 'load's.


But the likelihood is that this would only make a small difference - the 
majority of the time is probably due to either the server response times 
and/or the delay in simply downloading all those bytes to your machine.  
Out of interest I'd be inclined to count the number of bytes transferred 
per URL and see if that is a significant percentage of your connection 
capacity.


Are you running these from a machine behind a (relatively) slow Internet 
connection, such as a DSL or cable modem ?
If so, you might get a big improvement by converting the script into a 
CGI script, and running it on your own web-hosting server; that would 
give you an effective bandwidth based on the ISP, rather than on a slow 
DSL-like connection. (I have a vaguely similar script I run from my site 
that is approx 1000x times faster than running it from home on a 8Mbs 
DSL - the lower latency helps as much as the increased bandwidth). But 
beware - if there are any issues with looking like a DoS attack, or 
sending too many requests per second, this might be much more likely to 
trigger them; you may also run into issues with usage of CPU and/or 
bandwidth on your hosting-ISP.

Would opening a socket and reading from the socket be any faster? I
don't imagine that it would be, but it might be worth checking.

The other option is just to adjust things so it is not intrusive e.g.
have it download the sites overnight and save them all for processing
when you are ready, or have a background app that does the downloading
slowly (so it doesn't overload your system).
  
On that same idea, but taking it further (maybe too far) - how 
absolutely up-to-date does the info need to be when you run the script ?
Could you process a few thousand URLs per night, caching either the URLs 
as files locally, or caching the extracted data from them. Then when you 
want to run your script, you use all the cached data - so some of it is 
right up to date, while other parts may be up to a few days old.  You 
may also know, or be able to find out, which of the URLs tend to change 
frequently, and therefore bias the background processing accordingly.




And, finally, a couple of trivial issues .



# toDoList needs to have the successful URLs deleted, and failed URLs 
moved to a different list

# that's why p down to 1, for the delete
# URLS are standard http://www.somewhere.com/somePage

  repeat with p = the number of lines of toDoList down to 1
  put url (line p of toDoList) into tUrl
  # don't want to use *it* because there's a long script that follows
  # *it* is too easily changed, though I've heard *it* is faster 
than *put*

  # do the stuff
  if doTheStuffWorked then
 delete line p of toDoList
  else put p & return after failedList
  updateProgressBar # another slowdown but necessary, gives a 
count of how many left to do
   end repeat 
I don't fully understand this (??). What you describe is doing BOTH 
delete the successful ones, and ALSO save the failed ones - so at the 
end, toDoList should finish up the same as failedList. But what your 
pseudo-code actually does is save the indexes of the failed URLs - which 
become invalid once you delete lower numbered lines; I think you 
intended to do

else put (line p of to

Re: Getting the text content of a HTML page

2008-08-04 Thread Eric Chatonet

Bonjour Heather,

Le 4 août 08 à 13:01, H Baric a écrit :

Can you (or if anyone else reading has a moment) please help me  
understand

more about what each part of the is the "" is about?


I assume you use Rev 2.9: there is a search tool named 'Rev Search  
Engine' in the IDE that could help you in many fields.

See 'Help/Rev Search Engine' menu item.

For instance, after having selected the 'Web database' pane,  
searching for regex will give you three links:
http://support.runrev.com/scriptingconferences/	wher you'll find,  
among others, a nice course of Alex Tweedly about text munging  
including regex. In this stack you'll find another interesting link:  
http://www.pcre.org/ (regex docs)

http://regexlib.com/default.aspxa regex library.
http://rinaldicollection.free.fr/frevplugins_frame.htm	an utility to  
build regex in Rev by Frederic Rinaldi.


See Rev Search Engine docs: it provides many ways to get information  
you need in any field.


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: Getting the text content of a HTML page

2008-08-04 Thread H Baric
Thanks Viktoras,

Can you (or if anyone else reading has a moment) please help me understand 
more about what each part of the is the "" is about?  Actually, 
mostly, what the "/?" bit does?  (I was reading the manual yesterday on 
this, and am confused because I thought "/" before a character means the 
exact literal character that follows it? Or is that the backslash? Haven't 
got it open to check).

And, the "?" I thought is for just one character, unlike the "*" which is 
for multiple/any?

And lastly, does everything in between "[" and "]" mean any combination of 
any letter in that range? In that case, what else, in other circumstances, 
could be used within the square brackets? (examples?) eg 1-9? 3-7? A-M? 
p-w?! What about anything else? Like another expression? Or are there set 
ummm... "arguments" (is that the term) that can only be used there?

Thanks in advance if you or anyone else who has some time to give me a bit 
of an explanation / mini tute! The docs are great, but sometimes I wish they 
were more in depth including more examples and possibilities etc.

As a beginner, sometimes I read one thing and don't realise there's actually 
a whole universe under that scratch of the surface. And I know, as a 
beginner, I'm not ready to NEED most of what is there, but knowing more 
(again, more actual examples with explanations) helps to put it into 
perspective and understand the hows and whys of it. If that makes any sense! 
Which is why RevOnline is great, as are the forums, the examples and 
workshops, and ofcourse this group!

:)

Cheers,
Heather

- Original Message - 
From: "viktoras didziulis" <[EMAIL PROTECTED]>
Subject: Re: Getting the text content of a HTML page


one more way to do things using regular expressions:

put the replaceText(myText,"","") into myText

will simply replace all tags with empty string. Where myText is the text
where replacements have to be made.  is a regular
expression matching most html tags and "" is empty replacement string.

Viktoras 

___
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


Looking for programmer of externals

2008-08-04 Thread Mark Schonewille

Hello,

Economy-x-Talk is still looking for someone who would be able to help  
me writing a simple external. It appeared I just can't find the time  
to write externals, because I am too busy managing projects and  
programming in Revolution. Currently, I have four or five externals I  
would like to write, for Windows and Mac OS X.


If anyone would like to make a little bit of extra money and has the  
required skills, please contact me.


--
Best regards,

Mark Schonewille

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

Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html 
 for more info.


___
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: Getting the text content of a HTML page

2008-08-04 Thread viktoras didziulis

one more way to do things using regular expressions:

put the replaceText(myText,"","") into myText

will simply replace all tags with empty string. Where myText is the text 
where replacements have to be made.  is a regular 
expression matching most html tags and "" is empty replacement string.


Viktoras


___
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: Speeding up get URL

2008-08-04 Thread Shari

One service provider that I extract data from does not want more than one
hit every 50 seconds in order to be of service to hundreds of simultaneous
users, so they protect themselves from "denial of service attacks" that
overload their machines.


I did notice that even with their affiliate XML file access there's a 
mention of "too many requests per second" which would produce an 
error.  So they probably do have some sort of built in safety valve.


By the way, thank you Jim for prodding me to look into their back 
door.  I will be getting some of the data that way.


Shari
--
  Dogs and bears, sports and cars, and patriots t-shirts
  http://www.villagetshirts.com
 WlND0WS and MAClNT0SH shareware games
 http://www.gypsyware.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: Speeding up get URL

2008-08-04 Thread Shari
Good suggestions, Sarah.  Thank you!  I've settled on a solution 
that's going to partly go in the back door (retrieving their XML data 
via their affiliate door) and partly go in the front door (get or 
load url).  So I'll parse what I can from their affiliate XML files 
and do the rest the other way.  That should cut down on the load to 
them, speed it up, and still give me all the data I'm seeking.  It 
should cut the pages for get/load url down to a small percentage of 
the total retrieve.


I'm excited for the end result as this is going to really be 
beneficial to my business :-)


Two more days to hopefully find out if I sold Herman Silver on their 
own copy of Rev... It kills me to do things in Excel there that could 
be done sooo much better with Rev... Excel is so limiting when you 
have too many sheets tying in to other sheets I've discovered.  And 
all day long I'm thinking gee, this would be so much better with 
Revolution.


:-)
Shari



Shari, I think the delay will be due to the connection to the server,
not your script, so there may not be a lot you can do about it.

I did have one idea: can you try getting more than one URL at the same
time? If you build a list of the URLs to check, then have a script
that grabs the first one on the list, and sends a non-blocking request
to that site, with a message to call when the data has all arrived.
While waiting, start loading the next site and so on. Bookmark
checking software seems to work like this.

Would opening a socket and reading from the socket be any faster? I
don't imagine that it would be, but it might be worth checking.

The other option is just to adjust things so it is not intrusive e.g.
have it download the sites overnight and save them all for processing
when you are ready, or have a background app that does the downloading
slowly (so it doesn't overload your system).

Cheers,
Sarah



--
  Dogs and bears, sports and cars, and patriots t-shirts
  http://www.villagetshirts.com
 WlND0WS and MAClNT0SH shareware games
 http://www.gypsyware.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: The Euro symbol

2008-08-04 Thread Eric Chatonet

Bonjour Sarah,

€, £ and $ on Win: 128, 163, 36
€, £ and $ on Mac: 219, 163, 36

Probably can you test the platform and use 128 or 219 according to it?
Money apps are a pain...
The problem will not be solved ;-)
For instance:
$10.50 (English) and 10,50 € (French)
The best way should probably to get the current money format from the  
system (International/Formats on Mac OS and... on Win)
I wonder if this kind of issue has not been treated yet on the list  
two years ago.


Le 4 août 08 à 09:20, Sarah Reichelt a écrit :


Hi people,

Can anyone give me some advice on the cross-platform issues with the
Euro symbol?

On my Mac, numToChar(216) gives the Euro symbol, but on my Windows
virtual machine, that doesn't work, but numToChar(128) does. Is this
correct for all varieties of Windows?

I am helping with an app that switches currencies and is
cross-platform. The currency symbol occurs in fields all over the app
so it takes a while to change. Before building a standalone, we set
the symbol as required, then build the version for that currency. Now
it appears that we have to set the euro symbol to one thing, build for
Mac, then set it to something else and build for Windows.

Surely there has to be an easier, more standard way to handle the  
Euro symbol?


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


The Euro symbol

2008-08-04 Thread Sarah Reichelt
Hi people,

Can anyone give me some advice on the cross-platform issues with the
Euro symbol?

On my Mac, numToChar(216) gives the Euro symbol, but on my Windows
virtual machine, that doesn't work, but numToChar(128) does. Is this
correct for all varieties of Windows?

I am helping with an app that switches currencies and is
cross-platform. The currency symbol occurs in fields all over the app
so it takes a while to change. Before building a standalone, we set
the symbol as required, then build the version for that currency. Now
it appears that we have to set the euro symbol to one thing, build for
Mac, then set it to something else and build for Windows.

Surely there has to be an easier, more standard way to handle the Euro symbol?

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: Newsletter 54

2008-08-04 Thread Judy Perry
Hi Sarah,

I seem to be well-blessed in that I have no difficulties accessing the
newsletter and its contents.

Most unusual, I know...

Sorry,

Judy

On Sun, Aug 3, 2008 at 5:17 PM, Sarah Reichelt <[EMAIL PROTECTED]> wrote:
> Is it just me or is everyone having trouble with the newsletter? I am
> only a portion of each article.
>
> Sarah
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Who owns old icons?

2008-08-04 Thread Judy Perry
Thanks, Richard, Kay & Mark (not in any particular order other than my
late-night, brain-addled one)!

I forget now what I was going to say... u Oh, yeah, the icons.
 Yeah, they're old, 1-bit, whatever...

But they're still WAYYY COOOL in some cases!

Newer ain't always better...  I can't tell you how many times I've
reached out for the beautiful simplicity of the stack icon, or the
speaker icon, the arrows... etc.

Sheer simplistic beauty.  I LOVED that screen with all of the
miniature graphics.  I still keep around an old OS9 egg-shaped
original iMac just for that purpose!  (well, okay, that and running
the FLYINGCOLORS kidpix-on-steroids app that's only OS9).

Apple didn't hire an artist who specialized in miniaturization for nothing!

24-bit new crap is still crap...

Judy


On Sun, Aug 3, 2008 at 2:03 PM, Richard Gaskin
<[EMAIL PROTECTED]> wrote:
> In spite of any statements from Apple Europe, the last official public
> statement from any authorized representative from Apple's heaquarters in
>  Cupertino was:
>
>  "There have been some rumors about us canceling HyperCard,
>   which are totally bu||sh*t."
>   - Steve Jobs, October 1998, CAUSE Conference
>
> You can enjoy an audio clip of that here: 
> AFAIK, no public statement to the contrary has ever been issued from Apple's
> main office.
>
> But no matter how much fun we may have with Jobs' quote, the current status
> of a product's availability has no bearing at all on its copyright
> protection.
>
> Before I continue, California state law requires me to include this
> disclaimer:  "I am not an attorney.  If you need an attorney you should
> consult the services of a qualified professional in your area."
>
> With that out of the way, here's the dope:
>
>   Works created on or after January 1, 1978
>
>   The following rules apply to published and unpublished works:
>
>* For one author, the work is copyright-protected for the life
>  of the author plus 70 years.
>
>* For joint authors, the work is protected for the life of the
>  surviving author plus 70 years.
>
>* For works made for hire, the work is protected for 95 years
>  from the first publication or 120 years from the date of its
>  creation, whichever is less.
>
> 
>
> To the best of my knowledge, under both US law and the Berne Convention
> (which now has 163 signing nations) copyright is granted to the creator of a
> work regardless whether the work is ever even published at all, and remains
> in effect similarly without regard for continued publication or any public
> availability of any kind.
>
> You can create an image, sell it for one day, and then discontinue sales
> forever after and your copyright on any copies of that image you sold that
> day will still remain in effect for as long as you live plus 70 years.
>
> In brief, the creator of a work defines how the work is used.  If you don't
> like the terms granted by the creator your only legal options are to wait a
> very long time, or simply to create your own original work and define its
> terms however you like.
>
> With HyperCard this would seem a minor issue, since in addition to being
> owned by someone else its icons are low-res, 1-bit, and in general rather
> dated.  In the 12 years since HyperCard was last updated the rest of the
> world has continued to move forward, and today you can find thousands of
> free full-color icons all over the web:
>
> 
>
> --
>  Richard Gaskin
>  Managing Editor, revJournal
>  ___
>  Rev tips, tutorials and more: http://www.revJournal.com
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
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