download status reporting

2006-08-03 Thread Devin Asay
Has anyone used libURLSetStatusCallback successfully to monitor the  
progress of downloads from a remote server? I am using it in  
conjunction with libURLDownloadToFile and it seems to PARTLY work. I  
use it to update a progress bar, and that is working okay. At the  
same time I echo the status to a text field, but that part seems to  
work once and then never change (it reports requested then never  
changes, for example).


At this point it's more of an annoyance than a big problem. Has  
anyone else seen this?


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


Re: LibURL Error Previous request not completed

2006-08-03 Thread Dave Cragg


On 2 Aug 2006, at 16:50, Mark Schonewille wrote:



FTP servers don't care much about the number of connections. Good  
FTP clients upload and download files at the same time, using  
different connections.


I have to question whether there are any benefits in doing that.  
Whether you download files sequentially or out of sync, the server is  
trying to do essentially the same thing -- push the same data down  
the same physical pipe. Does it matter the order in which it does it?


But when establishing new ftp connections, there is an overhead for  
making the socket connection and negotiating the login. If you are  
uploading/downloading a lot of small files, that overhead may become  
proportionally high and actually slow things down.


I don't have any data to show which approach might be faster. Do you  
have any pointers?


For what it's worth, the client I usually use (Fetch) uploads/ 
downloads multiple files sequentially over a single connection.


As for libUrl, when using non-blocking handlers (load,  
libUrlFtpUploadFile, etc.). it queues uploads/downloads to the same  
ftp user account, and handles them sequentially over the same  
connection. But it handles simultaneous requests to different servers  
(and different user accounts on the same server) asynchronously.


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: remove empty lines

2006-08-03 Thread Mark Smith

What were your results? On this machine (Mac PB 1.5mhz) I got:

1 lines in a field with approx. 1000 randomly placed empty lines

put fld text into variable, repeat for each, place new list into fld  
-- 78 millisecs
put fld text into variable, filter variable, put back into field --  
72 millisecs

simply filter field -- 70 millisecs

So not a huge difference between any of them.

Best,

Mark

On 3 Aug 2006, at 05:42, Richard Gaskin wrote:


Alex Tweedly wrote:


... you could do it like

put fld 'emailList' into tEmailList
put empty into tNewEmail
repeat for each line tEmail in tEmailList
   if line tEmail is not empty then
  put tEmail  CR after tNewEmailList
  end if
end repeat
put tNewEmailList into fld 'emailList'

but easier would be

put fld 'emailList' into tEmailList
filter tEmailList without empty
put tEmailList into fld 'emailList'


Easier to script, yes, but note the result from running this script  
which compares both methods:



on mouseUp
  put 1000 into N
  put fld 1 into tData
  --
  --
  -- 1. repeat for each
  --
  put the millisecs into t
  repeat N
--
put empty into R1
repeat for each line tLine in tData
  if tLine is not empty then
put tLine cr after R1
  end if
end repeat
delete last char of R1
--
  end repeat
  put the millisecs - t into t1
  --
  --
  -- 2. filter:
  --
  put the millisecs into t
  repeat N
--
put tData into R2
filter R2 without empty
--
  end repeat
  put the millisecs - t into t2
  --
  --
  -- Result:
  put t1  t2
end mouseUp


Did I write this wrong?

Seems most times I benchmark repeat for each with the well- 
optimized put after I get results that hold up surprisingly well.


I have another post in the works with some other interesting  
benchmarks related to processing lists (things I learned on summer  
vacation g)...


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


Re: download status reporting

2006-08-03 Thread Dave Cragg


On 3 Aug 2006, at 08:51, Devin Asay wrote:

Has anyone used libURLSetStatusCallback successfully to monitor the  
progress of downloads from a remote server? I am using it in  
conjunction with libURLDownloadToFile and it seems to PARTLY work.  
I use it to update a progress bar, and that is working okay. At the  
same time I echo the status to a text field, but that part seems to  
work once and then never change (it reports requested then never  
changes, for example).


This seems odd. Presumably the updating of the progress bar uses the  
same text you want to display in the text field. Can you show us the  
script you are using?


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: remove empty lines

2006-08-03 Thread Rob Cozens

Hi Liam,


how do I delete blank lines from a field


Another approach:

get fld emailList
replace returnreturn with return in it

--

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: remove empty lines

2006-08-03 Thread Alex Tweedly

Richard Gaskin wrote:



Easier to script, yes, but note the result from running this script 
which compares both methods:



on mouseUp
  put 1000 into N
  put fld 1 into tData
  --
  --
  -- 1. repeat for each
  --
  put the millisecs into t
  repeat N
--
put empty into R1
repeat for each line tLine in tData
  if tLine is not empty then
put tLine cr after R1
  end if
end repeat
delete last char of R1
--
  end repeat
  put the millisecs - t into t1
  --
  --
  -- 2. filter:
  --
  put the millisecs into t
  repeat N
--
put tData into R2
filter R2 without empty
--
  end repeat
  put the millisecs - t into t2
  --
  --
  -- Result:
  put t1  t2
end mouseUp


Results are very data dependent; I get anything from
 30  14
to
 67 104
for different input fields (i.e. 2:1 ratio in either direction).



Did I write this wrong?

Perhaps. Method 2 above makes a copy of the data before filtering the 
copy - which may or may not be necessary in the real application 
context. If the original (unfiltered) value is no longer needed then you 
*may* be able to avoid the copy- which would change the results (though 
not by very much - small change compared to the data dependency variation).


Seems most times I benchmark repeat for each with the well-optimized 
put after I get results that hold up surprisingly well.


I have another post in the works with some other interesting 
benchmarks related to processing lists (things I learned on summer 
vacation g)...



I'll buy you a dictionary some day, so you can read up on vacation :-)


--
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.10.5/406 - Release Date: 02/08/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: remove empty lines

2006-08-03 Thread Mark Schonewille

Rob,

That doesn't work. Try this in the message box:

put cr  cr  cr  cr  cr into x; replace cr  cr with cr in x; put  
number of lines of x


Best,

Mark

--

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

Download ErrorLib at http://economy-x-talk.com/developers.html and  
get full control of error handling in Revolution.




Op 3-aug-2006, om 15:53 heeft Rob Cozens het volgende geschreven:


Hi Liam,


how do I delete blank lines from a field


Another approach:

get fld emailList
replace returnreturn with return in it


___
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: LibURL Error Previous request not completed

2006-08-03 Thread Alex Tweedly

Dave Cragg wrote:



On 2 Aug 2006, at 16:50, Mark Schonewille wrote:



FTP servers don't care much about the number of connections. Good  
FTP clients upload and download files at the same time, using  
different connections.



I have to question whether there are any benefits in doing that.  
Whether you download files sequentially or out of sync, the server is  
trying to do essentially the same thing -- push the same data down  
the same physical pipe. Does it matter the order in which it does it?


Yes, it does matter. There are a number of cases where multiple 
connections will win out :


1. avoiding start/finish round-trip delays for each transfer.
 You don't of course avoid them - but you can interleave them with 
the parallel transfers, and hence keep the pipe closer to full.
2. transient congestion (and packet-drops) have less effect on multiple 
connections

 Esp. if the congested router is using RED
3. rate-limiting per connection from the server 
 can be imposed lower than your connection bandwidth

4. bandwidth allocation on congested links
 Esp if the upstream router is using WFQ or DRR queuing, and high 
capacity connections are severely limited

5.  many more .

But when establishing new ftp connections, there is an overhead for  
making the socket connection and negotiating the login. If you are  
uploading/downloading a lot of small files, that overhead may become  
proportionally high and actually slow things down.


Indeed - you'd want to establish the ftp connection(s) once, and 
allocate individual transfers between them, not start a new connection 
per file.




I don't have any data to show which approach might be faster. Do you  
have any pointers?



Nothing interesting I can share, sorry.
There are a few public ones on GridFTP, such
www.slac.stanford.edu/econf/C0303241/proc/papers/TUCP008.PDF

I also found
http://www.applelinks.com/index.php/more/charles_moore_reviews_the_captain_ftp_445_ftp_client/
though I haven't read it thoroughly yet.

For what it's worth, the client I usually use (Fetch) uploads/ 
downloads multiple files sequentially over a single connection.





--
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.10.5/406 - Release Date: 02/08/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


MySQL Load Data Local

2006-08-03 Thread Michael Caufield
From Revolution version 2.7.2 forward the MySQL Load Data Local  
Infile command fails with the error message The used command is not  
supported by this version of MySQL. The current version of MySQL  
server being used is 5.0.21. This command works from the MySQL  
command line without fail. It also works when called from  
revExecuteSQL for versions of Revolution up to 2.7.1. I believe the  
problem is caused by the fact that the MySQL driver is now linked  
against the latest version of the MySQL client library (5.0.23) and  
has been compiled with the --local-infile=0. Is this behavior  
intentional? I think that the default for the MySQL client is to set  
this flag to true. As a workaround, can the MySQL driver from version  
2.7.1 be used in newer versions of Revolution? Please advise.

___
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: LibURL Error Previous request not completed

2006-08-03 Thread Dar Scott


On Aug 3, 2006, at 8:32 AM, Alex Tweedly wrote:

Yes, it does matter. There are a number of cases where multiple  
connections will win out :


1. avoiding start/finish round-trip delays for each transfer.
 You don't of course avoid them - but you can interleave them  
with the parallel transfers, and hence keep the pipe closer to full.
2. transient congestion (and packet-drops) have less effect on  
multiple connections

 Esp. if the congested router is using RED
3. rate-limiting per connection from the server  can be imposed  
lower than your connection bandwidth

4. bandwidth allocation on congested links
 Esp if the upstream router is using WFQ or DRR queuing, and  
high capacity connections are severely limited


Thanks for these.

1.  Interleaving is possible with TCP, but for the most part TCP does  
not have round-trip delays except at the start and end.  Well, I  
guess some settings might.  There will be some interleaving from what  
I've seen.


2.  I don't know much about congestion at routers, but I agree with  
the affect of dropped packets.


3.  I think rate-limiting at source, if you are downloading from  
multiple servers, is the greatest factor.


4.  I claim ignorance.

Another factor might be the ability to give user feedback right away  
should there be a problem with any files.


I wonder if downloading multiple files might cause variations in  
transfer rates that confuse the optimization at servers and routers.


Just mumbling.

Dar Scott

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


Re: LibURL Error Previous request not completed

2006-08-03 Thread Dave Cragg


On 3 Aug 2006, at 15:32, Alex Tweedly wrote:



I have to question whether there are any benefits in doing that.   
Whether you download files sequentially or out of sync, the server  
is  trying to do essentially the same thing -- push the same data  
down  the same physical pipe. Does it matter the order in which it  
does it?


Yes, it does matter. There are a number of cases where multiple  
connections will win out :


1. avoiding start/finish round-trip delays for each transfer.
 You don't of course avoid them - but you can interleave them  
with the parallel transfers, and hence keep the pipe closer to full.
2. transient congestion (and packet-drops) have less effect on  
multiple connections

 Esp. if the congested router is using RED
3. rate-limiting per connection from the server  can be imposed  
lower than your connection bandwidth

4. bandwidth allocation on congested links
 Esp if the upstream router is using WFQ or DRR queuing, and  
high capacity connections are severely limited

5.  many more .


OK. I yield. :-)

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: download status reporting

2006-08-03 Thread Devin Asay


On Aug 3, 2006, at 4:55 AM, Dave Cragg wrote:



On 3 Aug 2006, at 08:51, Devin Asay wrote:

Has anyone used libURLSetStatusCallback successfully to monitor  
the progress of downloads from a remote server? I am using it in  
conjunction with libURLDownloadToFile and it seems to PARTLY work.  
I use it to update a progress bar, and that is working okay. At  
the same time I echo the status to a text field, but that part  
seems to work once and then never change (it reports requested  
then never changes, for example).


This seems odd. Presumably the updating of the progress bar uses  
the same text you want to display in the text field. Can you show  
us the script you are using?


OK, the download works, and the download progress is updated  
correctly in the progress bar and the text field, but now when the  
download finishes, the URLstatus seems to be stuck on the last  
reported loading message. If I check the urlStatus for the just- 
concluded download, I get:


   loading,180902350,180902350

This effectively blocks all subsequent downloads. If I start another  
the urlStatus reports queued for that download.


If I check the pendingMessages I get:

   45839,1154622702.764941,ulTickleMe,button id 1037 of group id  
1016 of card id 1002 of stack /Applications/Revolution/Revolution  
Enterprise/2.7.2-gm-1/Toolset/revlibrary.rev


The only way to clear all of this is to quit Rev and relaunch.

Here is the scripting I am using to initiate the download (from an  
FTP server):


libURLDownloadToFile tDLURL, (the DLfolder of this cd  /   
the titleToDL of me), downloadComplete

libURLSetStatusCallback DLprogress,the long id of me

That calls this handler:

on DLprogress pDLurl,pStatus
  if pStatus contains loading then
put item -1 of pStatus into tBytestotal
put item 2 of pStatus into tBytesReceived
set the endvalue of scrollbar dlProgress to tBytestotal
set the thumbpos of scrollbar dlProgress to item 2 of pStatus
set the numberformat to 0.##
put (tBytesReceived / 100)   MB of   (tBytestotal /  
100)   MB into fld dlMsg

if tBytesReceived = tBytestotal then
  put (DONE)  before line (the hilitedLine of fld orderlist)  
of fld orderlist

  answer information Download complete.
  dowloadComplete
end if
  else if pStatus is contacted then
put Server contacted. into fld dlMsg
  else if pStatus is requested then
put Requesting file. into fld dlMsg
  else if pStatus is queued then
put Waiting for previous download to finish. into fld dlMsg
  else if pStatus is downloaded then
put Download complete. into fld dlMsg
downloadComplete   I'm calling this to try to ensure it gets  
called!

  else if pStatus is eror then
put Error during download. into fld dlMsg
answer error The download encountered an error and could not  
continue. Aborted.

downloadComplete
  else if pStatus is timeout then
put Server timed out. into fld dlMsg
answer error The download server timed out. Download aborted.
downloadComplete
  end if
end DLprogress

The downloadComplete handler is simple:

on downloadComplete
  answer information The file   the titleToDL of btn download   
 has downloaded successfully.

  hide group dlStatusGrp
end downloadComplete

Oddly enough, the first statement gets executed, but not the second.  
I'm stumped. Am I just doing something wrong?


Any ideas?

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


Re: Answer/File File Name combo problems

2006-08-03 Thread Dar Scott


On Aug 2, 2006, at 5:02 PM, Dar Scott wrote:


C:/chocolate/C:\mockchocolate\white\chip.txt


Ah, yes.  Bug 3300.

Any experience of success with the Rev dialogs?  If not, I'll  
continue with the system dialogs and check it and extract what I need.


(I hope my example did not offend any white chocolate fans.  I  
realize that white chocolate contains cacao fat, called cocoa butter  
in the US, and thus might be called a 1/99 or 0/100 chocolate, but  
some might not agree, saying chocolate requires some nontrivial  
amount of cacao solids, that is, the substance of cocoa.  Others say  
that is moot since white chocolate usually contains milk and is more  
properly called chocolate candy, as is milk chocolate.  I'll accept  
white as a cacao product.)


Dar Scott

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


ulTickleMe

2006-08-03 Thread Mark Smith

Dave, (or anyone else who knows),

what is the ulTickleMe message that I see in the pending messages?  
I'm assuming that the 'ul' connects it with libURL.


I have an app that uploads a small amount of data to a remote ftp  
site every twenty minutes or so, using libUrlFTPUpload.


on updateRemote
  libUrlFTPUpload the rData of me, theFTPaddress
  send  updateRemote to me in 1200 seconds
end updateRemote

In the time between uploads, I see updateRemote in the  
pendingMessages (obviously), but I also see the uTickleMe message,  
even though I can verify that the upload has been successfully  
completed by checking the remote site with Fetch.



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


OT: java

2006-08-03 Thread Mark Wieder
Dar-

completely off any conceivable topic, but my brain has been
free-associating all morning

Apparently white chocolate is to real chocolate as Javascript is to
java.

...and speaking of java, I couldn't resist a link to This is Coffee!

http://www.archive.org/details/ThisisCo1961

-- 
-Mark Wieder
 [EMAIL PROTECTED]

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


form email to RevCGI

2006-08-03 Thread HyperChris
Sometimes i buy things online and receive a survey form in my email to rate 
the seller. The forms usually have some graphics, text, radio buttons, a text 
box (for comments) and a submit button. The idea being that you can do the 
response right there in the email program and click Submit to send off the 
response. You are then sent to a thank you web page.

These are, of course, HTML emails and upon closer examination, they use the 
GET method to call a PHP script at the server. (form 
action=http://www.pricegrabber.com/html_user_sales_rate.php; method=get)

I want to do this with my Rev CGI, so i setup a script that just returns the 
form parameters. I test it out first as a stand alone web page and it works 
great. Next, I use ShaoSean's libSMTP and libEmailEncode252 to attach the HTML 
form to an email. I get the HTML based email which looks fine and I fill in all 
the stuff and hit Submit.

I go to the web page and i get my static response but none of the info i 
supplied to the form. I have the script write out the variables it receives and 
they are empty. It is as though the revCGI is being called but can't access the 
data, or is not being given the data, that was passed when making the form 
submission.

Again, this works fine if use the HTML as a web page. It only goes blank when 
i do it via email??? Are there some limitations here that I do not know? 
Thanks for your thoughts!

Chris
___
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: Looking for a tutorial on using Arrays in Rev

2006-08-03 Thread Jim Lambert
Alex wrote:
Someone (a relatively new Rev user) just mentioned to me that they were
not yet array savvy.
I thought I'd point them to a tutorial on using
arrays, ...And I can't find one !!
Does anyone know of a good intro to using arrays in Rev - preferably a
tutorial...

I'm not new to Rev and I'd also like to see a good intro and tutorial on
arrays.

I keep expecting them to behave like Director's lists - but they don't. Darn
them!
The difficulty couldn't possibly be with moi. ;)

Jim Lambert

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


Re: MySQL Load Data Local

2006-08-03 Thread Sarah Reichelt

On 8/4/06, Michael Caufield [EMAIL PROTECTED] wrote:

 From Revolution version 2.7.2 forward the MySQL Load Data Local
Infile command fails with the error message The used command is not
supported by this version of MySQL. The current version of MySQL
server being used is 5.0.21. This command works from the MySQL
command line without fail. It also works when called from
revExecuteSQL for versions of Revolution up to 2.7.1. I believe the
problem is caused by the fact that the MySQL driver is now linked
against the latest version of the MySQL client library (5.0.23) and
has been compiled with the --local-infile=0. Is this behavior
intentional? I think that the default for the MySQL client is to set
this flag to true. As a workaround, can the MySQL driver from version
2.7.1 be used in newer versions of Revolution? Please advise.


I too ran into this problem with MySQL 5 and was unable to solve it. I
don't think it's anything to do with Revolution, it's MySQL's fault. I
turned on the local-infile option but this made no difference.
Actually, I probably should have stopped  re-started the SQL server
after changing it, but in the end, I just made a loop to read the data
in and INSERT it line by line. In my case, this was a one-off data
import so I didn't care that it took a bit more time.

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: form email to RevCGI

2006-08-03 Thread jbv

Chris

  Next, I use ShaoSean's libSMTP and libEmailEncode252 to attach the HTML
 form to an email. I get the HTML based email which looks fine and I fill in 
 all
 the stuff and hit Submit.

what go you mean by which looks fine ? did you actually chack the HTML
code received in the email, and especially the line with the GET method to
make sure parts of the code aren't corruped or missing ?



 Again, this works fine if use the HTML as a web page. It only goes blank when
 i do it via email???

which email client do you use ?
could there be any settings that enable / disable the use of forms and submit 
requests
in HTML code ?

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


Rev app to pull data from Amazon

2006-08-03 Thread RGould8
Say, has anyone here ever written any Rev apps that pull data from Amazon, 
using the Amazon Web Services API?   

For instance, an app that allows the user to type in a search term for CD's, 
and returns a list of Amazon CD's including album covers?

If so, could I see how you accomplished such a task?   Do I need to get one 
of the Amazon security-service certificates in order to do this?
___
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 app to pull data from Amazon

2006-08-03 Thread Dan Shafer

I've done a bit of work in this area but nothing ambitious. But I can answer
your other question below. Yes, you do need a developer account.

On 8/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Do I need to get one
of the Amazon security-service certificates in order to do this?
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution





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

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

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


Catching Error Messages

2006-08-03 Thread Gregory Lypny

Hello everyone,

	I'm making a stack of statistical tests.  Some of the calculations  
involve numbers too big for Revolution to handle, so I want to be  
able to warn the user if he or she supplies a sample size that is too  
big.  How can I catch error messages such as a range overflow (see  
below) to do this?


multiply: range error (overflow)

Regards,

Gregory
___
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: Catching Error Messages

2006-08-03 Thread Mark Schonewille

Hi Gregory,

Are you a statistician? Sample size should not play any role in the  
size of numbers that Revolution can handle. What exactly are you  
having a problem with? You an catch error messages by using the try- 
catch control structure. Just put this around the syntax that does  
the calculations and show an error dialog if you catch an error.  
See the docs for more info.


Some of the information is difficult to retrieve if a stack is  
password protected. I made a shareware library that allows you to  
catch errors in password protected stacks. The library gives you  
several ways to parse and display errors. If this sounds useful, have  
a look at the developers section of the Economy-x-Talk website.


Best regards,

Mark

--

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

Download ErrorLib at http://economy-x-talk.com/developers.html and  
get full control of error handling in Revolution.




Op 4-aug-2006, om 0:13 heeft Gregory Lypny het volgende geschreven:


Hello everyone,

	I'm making a stack of statistical tests.  Some of the calculations  
involve numbers too big for Revolution to handle, so I want to be  
able to warn the user if he or she supplies a sample size that is  
too big.  How can I catch error messages such as a range overflow  
(see below) to do this?


multiply: range error (overflow)

Regards,

Gregory


___
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: u3 rev application with mysql/apache

2006-08-03 Thread Robert Sneidar
May I STRONGLY suggest you do NOT requote every requoted requote of  
every prior quote every time you reply to this list? I usually only  
quote one or two levels since I thread my mail messages anyway. Snip  
it! Snip it good!


Bob Sneidar
IT Manager
Logos Management
Calvary Chapel CM

On Aug 3, 2006, at 8:50 AM, [EMAIL PROTECTED]  
wrote:



RE: u3 rev application with mysql/apache



___
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: u3 rev application with mysql/apache

2006-08-03 Thread Robert Mann
thanks for the help

Robert Mann
President
GP Racing LLC

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Robert
Sneidar
Sent: Thursday, August 03, 2006 7:13 PM
To: use-revolution@lists.runrev.com
Subject: RE: u3 rev application with mysql/apache


May I STRONGLY suggest you do NOT requote every requoted requote of
every prior quote every time you reply to this list? I usually only
quote one or two levels since I thread my mail messages anyway. Snip
it! Snip it good!

Bob Sneidar
IT Manager
Logos Management
Calvary Chapel CM

On Aug 3, 2006, at 8:50 AM, [EMAIL PROTECTED]
wrote:

 RE: u3 rev application with mysql/apache


___
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


[ANN] Listbox Tree Script TR1

2006-08-03 Thread Sean Shao
Make any listbox a tree listbox control without having to do too much work. 
Please note that this is still in development, so please send me feedback. 
Also, I'd also like to take this to point out that I've updated my website 
and there's now RSS feeds so you can stay up-to-date ;-)


www.shaosean.tk  |  shaosean.wehostmacs.com

_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/


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


Re: [ANN] Listbox Tree Script TR1

2006-08-03 Thread Andre Garzia

Very nice outliner view Shao Sean

I can think good uses for it as soon as you allow us to use it.

It's working fine here on Rev 2.7.2 on an Intel Mac OS X 10.4.7. The  
bahaviour of single click on triangle to close/expand or double click  
on the line for close/expand is a nice touch.


Also I'd like your new rapidWeaver-made site! :D

Cheers and thanks for all your work. Many on this list depends on  
your libraries daily.

Andre Alves Garzia



On Aug 4, 2006, at 12:27 AM, Sean Shao wrote:

Make any listbox a tree listbox control without having to do too  
much work. Please note that this is still in development, so please  
send me feedback. Also, I'd also like to take this to point out  
that I've updated my website and there's now RSS feeds so you can  
stay up-to-date ;-)


www.shaosean.tk  |  shaosean.wehostmacs.com

_
Don’t just search. Find. Check out the new MSN Search! http:// 
search.msn.click-url.com/go/onm00200636ave/direct/01/


___
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: ulTickleMe

2006-08-03 Thread Andre Garzia
Gee, I always thought that ulTickleMe was Rev IDE related or Galaxy  
related, I always thought it related with the mouse status/location  
somehow, but anyway, I am as lost as you on this one.


andre

On Aug 3, 2006, at 2:22 PM, Mark Smith wrote:


Dave, (or anyone else who knows),

what is the ulTickleMe message that I see in the pending messages?  
I'm assuming that the 'ul' connects it with libURL.


I have an app that uploads a small amount of data to a remote ftp  
site every twenty minutes or so, using libUrlFTPUpload.


on updateRemote
  libUrlFTPUpload the rData of me, theFTPaddress
  send  updateRemote to me in 1200 seconds
end updateRemote

In the time between uploads, I see updateRemote in the  
pendingMessages (obviously), but I also see the uTickleMe message,  
even though I can verify that the upload has been successfully  
completed by checking the remote site with Fetch.



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

2006-08-03 Thread Dave Cragg


On 3 Aug 2006, at 18:22, Mark Smith wrote:


Dave, (or anyone else who knows),

what is the ulTickleMe message that I see in the pending messages?  
I'm assuming that the 'ul' connects it with libURL.


This was added to libUrl at some point to overcome an occasional  
problem with the wait for messages command which is used heavily in  
libUrl. The ulTickleMe message is sent every second while a socket is  
open and forces the wait for messages lines to stop waiting. If I  
recall correctly, the problem was specific to a particular engine  
version, so I should probably re-examine whether it is needed anymore.


With an ftp upload, it will continue to fire for a short time after  
the upload has completed, as the ftp session is kept open for  
possible re-use. (The default time is 15 seconds.) With http  
downloads, it will continue until the server closes the connection  
which varies from immediately to a number of minutes. (But a few  
seconds is typical.)


If you're running a routine that deletes all the pending messages, I  
doubt it will do any harm.


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