Re: EuroRev 2005 (provisional)
On Fri, 25 Feb 2005 20:12:38 +, Bob Hartley [EMAIL PROTECTED] wrote: OK Folks. The other thread has moved to a subject of re: :-) so I'll start this one afresh. If you are interested in a euro meeting in Sunny Scotland then reply to this post. We should be thinking of May/June/Julyish to make it feasable Once I have a rough Idea of the numbers I could do a bit of wheeling and dealing for venues etc and a rough price structure. Well what is keeping you. :-) Cheers Bob Just to repeat that I'm seriously interested. I spend about half my time in France, but even then thanks to Ryanair (taking a risk on their point-to-point policy I guess I could make it to Edinburgh from Carcassonne. If I'm in London then of course it would be a lot easier. I suggest a few specific dates are proposed, and you could see if you could get a cluster of acceptances around one of them. I also suggest we keep away from school holidays as that inflates the price of cheap flights Europe-wide, I find. Graham Graham Samuel / The Living Fossil Co. / UK and France ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Arithmetic operations on dates ?
Hi revolutionaries, What is the best way to make artithmetic operations on dates ? For instance I have a list of events stored with the date time of occurence, and I'd like to quickly pick up those that took place during the last 17 hours, or the last 3 days, or the last 7 weeks or the last 19 months... I know this can be done with SQL but I don't want to set up a database just for that... The best thing I came up with is to convert each event date into seconds, subtract the amount of seconds of the interval of time, and then pick up all items greater than that... But I have the feeling that computing the interval in seconds might get tricky when there's a february 29 in it (for instance)... Any better idea ? Thanks, JB ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Arithmetic operations on dates ?
Use the dateItem format of the date: Convert your date to date items. convert myDate to dateItems Now add your time increments to the appropriate item add 17 to item 5 of myDate -- hours add 3 to item 4 of myDate -- days Then convert to dateItems again convert myDate to dateItems Convert back to the date format you were using To increment by weeks just add or subtract 7 days, item 3 of the dateItems. To increment by months just add the number of months to item 2 of the dateItems. Your February problem will be taken care of automatically if you are incrementing by the number of months. Use seconds only when you want to know how many days are between two dates. put (dateInSeconds1-dateInSeconds2)/(86400) into theDaysInBetween Using item 7 of the dateItems allows you to calculate dates such as 'the second Monday of March.' And so on. Michael On Feb 26, 2005, at 4:55 AM, jbv wrote: Hi revolutionaries, What is the best way to make artithmetic operations on dates ? For instance I have a list of events stored with the date time of occurence, and I'd like to quickly pick up those that took place during the last 17 hours, or the last 3 days, or the last 7 weeks or the last 19 months... I know this can be done with SQL but I don't want to set up a database just for that... The best thing I came up with is to convert each event date into seconds, subtract the amount of seconds of the interval of time, and then pick up all items greater than that... But I have the feeling that computing the interval in seconds might get tricky when there's a february 29 in it (for instance)... Any better idea ? Thanks, JB ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Arithmetic operations on dates ?
Michael, Thank you so much ! JB Use the dateItem format of the date: Convert your date to date items. convert myDate to dateItems Now add your time increments to the appropriate item add 17 to item 5 of myDate -- hours add 3 to item 4 of myDate -- days Then convert to dateItems again convert myDate to dateItems Convert back to the date format you were using To increment by weeks just add or subtract 7 days, item 3 of the dateItems. To increment by months just add the number of months to item 2 of the dateItems. Your February problem will be taken care of automatically if you are incrementing by the number of months. Use seconds only when you want to know how many days are between two dates. put (dateInSeconds1-dateInSeconds2)/(86400) into theDaysInBetween Using item 7 of the dateItems allows you to calculate dates such as 'the second Monday of March.' And so on. Michael On Feb 26, 2005, at 4:55 AM, jbv wrote: Hi revolutionaries, What is the best way to make artithmetic operations on dates ? For instance I have a list of events stored with the date time of occurence, and I'd like to quickly pick up those that took place during the last 17 hours, or the last 3 days, or the last 7 weeks or the last 19 months... I know this can be done with SQL but I don't want to set up a database just for that... The best thing I came up with is to convert each event date into seconds, subtract the amount of seconds of the interval of time, and then pick up all items greater than that... But I have the feeling that computing the interval in seconds might get tricky when there's a february 29 in it (for instance)... Any better idea ? Thanks, JB ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
show menu
Hello How can I show the menu items of a popup menu when right clicking in a field? Like any text editor would have cut, copy, paste e.t.c I could always include a menu bar at the top of the field or window but I think most people are used to right clicking in an editable field! Thanx ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Eurorev 2005
I can likely make Edinburgh May/June,possibly July. I'm heading back to Oz in July. I've been to the fringe festival 3 times, so can handle missing it this time. regards Martin Blackman ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
2 questions
Is there a revolutionary equivalence for this Toolbook example 1. to get mydate return label of button today end suppose the label = 24-02-2005 then this command will show that: put mydate() 2. In Toolbook you may create a viewer With a viewer you can look inside each toolbookapplication, whithout opening it Rob [EMAIL PROTECTED] www.japrosoft.com no more spam: Mailwasher Pro http://www.firetrust.com/products/pro/ and please mention my emailaddress... ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: ANN: Bouncing Ball Tools
Recently, Jim Hurley wrote: I got intrigued with simulations, all kinds. Recently I have taken up bouncing balls. And I am having a hard time letting go. ... go url http://home.infostations.net/jhurley/BouncingBallTools.rev Ironically, you *gotta* let go for the thing to work. :-) This is really fun stuff -- thanks Jim. More ideas for us to develop games... (BTW, on two of the cards, the ball escaped through the bottom left corner of the card, maybe some kind of X = 0 or Y height of the card thing.) Regards, Scott Rossi Scott, Thanks for the info. I can't afford to lose balls. Do you recall which were the offending cards? There were only 3 that would be candidates: First, and the last two cards, the seventh and eighth. (I let it run for several minutes and no ball went over the wall, but I did note tracings that penetrated the barrier at the bottom, that is, the horizontal line a distance R (the radius of the ball) above the bottom of the window. Hard to reproduce these some-times occurrences.) Jim ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
thumbPosition and Simple Math
Are there bugs that occur when using Math in conjunction with a thumbPosition reading. I've noticed that the following... on scrollBarDrag put the thumbPosition of me into theNum add 50 to theNum put theNum into fld result end scrollBarDrag When I do it, I don't get the current thumbPosition + 50, I get the current pixel position + 50. Anyone else seeing this? Derek Bump Dreamscape Software http://www.dreamscapesoftware.com/ ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Arithmetic operations on dates ?
Also beware: days that enter or leave daylight savings time do not have 86400 seconds in Revolution. Paul Looney ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Audio integration tutorial
Is there a tutorial anywhere that covers this topic in some depth? Is this subject covered in Software at the Speed of Thought? I need some serious education, as I'm trying to set up an ebook with extensive use of audio and need help in the areas of design and organization of files, file types and features (m4b, mp3, etc), and how to to most efficiently store them, access them, buffer them, call them, etc. Looking around the Rev documentation I find fragmented bits of information regarding audio integration, but nothing comprehensive. Thanks Mark ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: thumbPosition and Simple Math
Message: 16 Date: Sat, 26 Feb 2005 08:42:21 -0600 From: Derek Bump [EMAIL PROTECTED] Subject: thumbPosition and Simple Math To: How to use Revolution use-revolution@lists.runrev.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Are there bugs that occur when using Math in conjunction with a thumbPosition reading. I've noticed that the following... on scrollBarDrag put the thumbPosition of me into theNum add 50 to theNum put theNum into fld result end scrollBarDrag When I do it, I don't get the current thumbPosition + 50, I get the current pixel position + 50. Anyone else seeing this? Derek Bump Dreamscape S Derek, Your script works for me (OS X). Try looking in the scrollbar inspector. Use the tiny arrows to increase the thumbposition. You should see the position of the thumb change on the scrollbar *and* the value in field should increase but remain 50 units greater than the thumbposition. Jim ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Audio Integration Tutorial
Is there a tutorial anywhere that covers this topic in some depth? Is this subject covered in Software at the Speed of Thought? I need some serious education, as I'm trying to set up an ebook with extensive use of audio and need help in the areas of design and organization of files, file types and features (m4b, mp3, etc), and how to to most efficiently store them, access them, buffer them, call them, etc. Looking around the Rev documentation I find fragmented bits of information regarding audio integration, but nothing comprehensive. Thanks Mark (sorry if this is a repeat post) ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: ANN: Bouncing Ball Tools
S Message: 8 Date: Fri, 25 Feb 2005 10:33:47 -0800 From: Scott Rossi [EMAIL PROTECTED] Subject: Re: ANN: Bouncing Ball Tools To: How to use Revolution use-revolution@lists.runrev.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=US-ASCII Recently, Jim Hurley wrote: I got intrigued with simulations, all kinds. Recently I have taken up bouncing balls. And I am having a hard time letting go. ... go url http://home.infostations.net/jhurley/BouncingBallTools.rev Ironically, you *gotta* let go for the thing to work. :-) This is really fun stuff -- thanks Jim. More ideas for us to develop games... (BTW, on two of the cards, the ball escaped through the bottom left corner of the card, maybe some kind of X = 0 or Y height of the card thing.) Regards, Scott Rossi Scott, I found the problem. I was letting the ball be reflected by the rectangle interior to the screen walls by a distance equal to the radius of the ball, but I calculated the *intersection* of the ball trajectory with the screen walls instead of that rectangle. The tracing (pen down) now remains totally within this inner rectangle. The corrected version is again: go url http://home.infostations.net/jhurley/BouncingBallTools.rev; Pessimist: Life is just one damn bug after another. Thanks again, Jim ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Formatting columns across a list item
On 26/2/05 1:02 am, Richard wrote: You can use htmlText to assign colors, either by mnemonic name or by numeric values -- assuming your list is tab-delimited for display in the columnar list you could do something like this (off the cuff, but should be close): on DisplayList pList put empty into tHtmlText set the itemdel to tab repeat for each line tLine in pList get item 3 of tLine if it 0 then put tLinebr after tHtmlText else put item 1 to 2 of tLine tab \ font color=quoteredquote item 3 of tLine \ br after tHtmlText end repeat put tHtmlText into fld Display end DisplayList Thanks very much to Richard, Mark and Cubist for their replies. They all work, but I found Richard's the easiest to implement. I'm learning a lot of great stuff from the messages in the list and the very helpful replies. I've got Dan's book on order so that should help too - so I might go a bit quieter once it arrives ;-). Thanks again, Karen ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
First selection in a drawer
I would like to press a button to open a stack as a drawer and then have the next keystrokes type into a field on the drawer. The card script contains: on opencard select text of field SearchFld end opencard If I open the stack as a palette, the text in field SearchFld is selected and typing automatically replaces it. If I open the stack as a drawer, the text is highlighted and appears to be selected. But keystrokes do not affect it. If the cursor is in a field in the top stack, keystrokes continue to go that field. If the cursor is not in a field, the keystrokes just disappear. Any thoughts would be appreciated. Regards, Bruce -- Bruce Lewis Lewis Collyer 160 John Street, Suite 401 Toronto, Ontario Canada M5V 2E5 (416) 598-4357 FAX (416) 598-1067 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: News of Shafer eBook Publication Plans
On Fri, 25 Feb 2005 21:21:25 -0800 (PST), Judy Perry [EMAIL PROTECTED] wrote: Okay, Graham, I am sorry; I did not intend to make you the personal target of my rant. It's just that I have been requesting this feature for quite some time now. Judy On Fri, 25 Feb 2005, Judy Perry wrote: Not an excuse. OK, no offence (offense?) taken. I also passionately believe that all non-fiction books should have an index, and of course technical manuals even more so. Imagining the pressures on Dan, I thought that it might be possible to offer help in this regard. G Graham Samuel / The Living Fossil Co. / UK and France ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
REQ: libSmtp testing
anyone out there have access to smtp servers that i can test the (soon to be released) new version of libSmtp against? the servers would need to support smtp authentication (PLAIN and LOGIN).. i'm working on other authentication methods, but i'd like to get this release out first (yeah, finally motivated to re-write it after losing it).. please contact me off-list [EMAIL PROTECTED] thank you ^_^ ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
CGI load relative to Perl, etc. (last attempt, I promise)
I hate to repost, but on the odd chance someone here might have some info and could save me some testing time, this would be really helpful to me and possibly others: Does anyone know how using Rev as a CGI stacks up against Perl, Python, etc. in terms of server resource usage for equivalent tasks? In brief, is Rev more efficient, less efficient, or roughly on par with other scripting languages for CGI use? I have some fairly extensive processes to implement involving reading large (10-30 MB files) and generating a lot of small files after churning that data. I'm hoping I can demonstrate that using Rev's nifty chunk expressions will make for an efficient solution that won't drag the server down any more than most other options for this sort of thing. TIA - -- Richard Gaskin Fourth World Media Corporation ___ [EMAIL PROTECTED] http://www.FourthWorld.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: News of Shafer eBook Publication Plans
Judy- Friday, February 25, 2005, 8:01:20 PM, you wrote: JP Printed books simply MUST have an index. I really believe that PDFs JP should too. Well, the printed rev 2.0 docs have an index, but it's just a list of functions with the page number each is defined at. Since the whole book is alphabetical anyway, this makes it redundant *and* useless. Worse, the index is in the front of the book, giving the appearance of a table of contents. I think it's not enough just to have an index, it has to serve a purpose as well. I do use the printed docs, but the ability to search the online docs is a great tool. And pdf indices seem to serve as a nice middle ground, allowing for thematic groupings as in a table of contents and hyperlinking to content. -- -Mark Wieder [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: 2 questions
Rob- Saturday, February 26, 2005, 6:28:19 AM, you wrote: RM Is there a revolutionary equivalence for this Toolbook example RM 1. RM to get mydate RM return label of button today RM end RM suppose the label = 24-02-2005 RM then this command will show that: RM put mydate() Not quite sure what you're trying to do here. If you're just looking for the label of the button then function mydate return the label of button today end mydate will do the trick. If you're looking to validate the fact that the label is a valid date or is within a range of dates then we're on to something else. -- -Mark Wieder [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: CGI load relative to Perl, etc. (last attempt, I promise)
On 2/26/05 12:56 PM, Richard Gaskin wrote: I hate to repost, but on the odd chance someone here might have some info and could save me some testing time, this would be really helpful to me and possibly others: Does anyone know how using Rev as a CGI stacks up against Perl, Python, etc. in terms of server resource usage for equivalent tasks? In brief, is Rev more efficient, less efficient, or roughly on par with other scripting languages for CGI use? I suspect no one has tested to find out. But the processes shouldn't take any longer than they do on an equivalent local machine. You can't fairly count the time it takes for the CGI to receive the request and return the results (that is, don't count the transit time.) So a small timing script that counts ticks from when the script starts till it ends and returns that along with the HTML data would probably be pretty easy to do. The harder thing might be to get comparison data from an equivalent perl script. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: unlimited undo's for text fields
Message: 21 Date: Fri, 25 Feb 2005 06:21:52 -0800 (PST) From: Alejandro Tejada [EMAIL PROTECTED] Subject: Re: unlimited undo's for text fields To: use-revolution@lists.runrev.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii Hi Wouter, Your unlimited undo code is impressive. Later, when your time permits, Could you comment about how this code works? In Windows, this line calls an error message: put word 1 to 7 of the long id of it into tFName Keep up your good work! :-) al Hi Al, One of the things that caused the error you mentioned is the not so uniform transplatform behaviour of commands like rawkeydown in this case. A little test showed a big difference between mac and win32 platform. The modifier keys, the shift and capslock keys are not triggering a rawkeydown message on the mac-side. But they do on the win32 platform. If the people at RR could make this behavior more uniform between platforms it would enhance crossplatformity Hopefully they will consider Dar Scott bug 1434 when doing this eventually. (will repost the code when this problem is solved) Greetings, Wouter ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: News of Shafer eBook Publication Plans
Mark Wieder wrote: I think it's not enough just to have an index, it has to serve a purpose as well. I do use the printed docs, but the ability to search the online docs is a great tool. And pdf indices seem to serve as a nice middle ground, allowing for thematic groupings as in a table of contents and hyperlinking to content. Agree, but darn it's a lot of work. I made the task-oriented index for SuperCard 2.5's documentation, it came to about 15-20% of the total cost. And people still complained that it wasn't complete enough. :) -- Richard Gaskin Fourth World Media Corporation __ Rev tools and more: http://www.fourthworld.com/rev ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: 2 questions
Hi Rob, Is there a revolutionary equivalence for this Toolbook example 1. to get mydate return label of button today end suppose the label = 24-02-2005 then this command will show that: put mydate() Create a function, as Mark suggested: function mydate return the label of btn today end mydate 2. In Toolbook you may create a viewer With a viewer you can look inside each toolbookapplication, whithout opening it ??? What exactly do you want to look at? You can access stacks that are not loaded, if you like pull out anything you want from them :-) Need more info here... Rob [EMAIL PROTECTED] www.japrosoft.com no more spam: Mailwasher Pro http://www.firetrust.com/products/pro/ and please mention my emailaddress... Regards Klaus Major [EMAIL PROTECTED] http://www.major-k.de ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: CGI load relative to Perl, etc. (last attempt, I promise)
On 26 Feb 2005, at 18:56, Richard Gaskin wrote: I hate to repost, but on the odd chance someone here might have some info and could save me some testing time, this would be really helpful to me and possibly others: Does anyone know how using Rev as a CGI stacks up against Perl, Python, etc. in terms of server resource usage for equivalent tasks? In brief, is Rev more efficient, less efficient, or roughly on par with other scripting languages for CGI use? I have some fairly extensive processes to implement involving reading large (10-30 MB files) and generating a lot of small files after churning that data. I'm hoping I can demonstrate that using Rev's nifty chunk expressions will make for an efficient solution that won't drag the server down any more than most other options for this sort of thing. I can't give an authoratative response. But I suspect you'll find Rev compares pretty well when doing something like working with large files. Rev's weakpoint is that it has to load for each CGI request. When compared against something like mod-perl or ASP, which are already loaded by the http server, it can be considerably slower. But as the ratio of the time to do the task to the time to load the procees increases, I think you'll find the difference narrows. For what's it's worth, I use Rev CGI scripts for an educational app that runs worldwide for a few thousand users, and I've never had any comment about performance. (this is on both Windows and Linux servers) Cheers Dave ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Checkbox/field related question
Jason- KR Personally, my suggestion would be to use a list field with two separate KR images, one rectangle with a check mark, and one rectangle without. That That would be my approach, too. Assuming that you're already setting the image by setting the html content of the line, then all you need to do is change the imageSource and set the htmlText again. function Available strWhat return img src= quote unchecked.gif quotestrWhat end Available function Unavailable strWhat return img src= quote checked.gif quotestrWhat end Unavailable set the htmlText of line whichLine of field myField to \ Available(the hilitedText of field myField) -- -Mark Wieder [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: unlimited undo's for text fields
On Feb 26, 2005, at 12:43 PM, Wouter wrote: One of the things that caused the error you mentioned is the not so uniform transplatform behaviour of commands like rawkeydown in this case. A little test showed a big difference between mac and win32 platform. The modifier keys, the shift and capslock keys are not triggering a rawkeydown message on the mac-side. But they do on the win32 platform. If the people at RR could make this behavior more uniform between platforms it would enhance crossplatformity This and related functions use keysyms. I get the impression that standards (if any) are weak, but what there is Revolution should follow and clarify make uniform what is not. If the keysym traditions and standards are too weak, then Revolution should create its own and follow that across platforms, even when some odd corner is hard to implement on some platforms. Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming Services and Software ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: CGI load relative to Perl, etc. (last attempt, I promise)
Dave Cragg wrote: In brief, is Rev more efficient, less efficient, or roughly on par with other scripting languages for CGI use? I can't give an authoratative response. But I suspect you'll find Rev compares pretty well when doing something like working with large files. Rev's weakpoint is that it has to load for each CGI request. When compared against something like mod-perl or ASP, which are already loaded by the http server, it can be considerably slower. But as the ratio of the time to do the task to the time to load the procees increases, I think you'll find the difference narrows. For what's it's worth, I use Rev CGI scripts for an educational app that runs worldwide for a few thousand users, and I've never had any comment about performance. (this is on both Windows and Linux servers) Encouraging. I found this on Slashdot about pros and cons of Perl vs, C, and much of it applies to my choice: http://slashdot.org/askslashdot/99/10/20/1246241.shtml The sum of posts there is pretty much an argument for Transcript as well: there may be faster options, but the real bottleneck is in the connection, not the processing, so the productivity gained is usually a good investment. Since Transcript's chunk expressions are unique among CGI alternatives and using Rev facelessly on a server appears to remain free, it would seem useful for RR to encourage such use at it may help folks get hooked on the language. :) Cons: - engines loads with each call - not all hosting companies allow custom C-based CGI apps Pros: - efficient and simple chunk expressions - one language for server and client - code can be protected, making CGI products more viable - rich file hierarchical file format accessible with array notation for custom props makes many storage tasks a breeze Has anyone here found a way to use a standalone as a CGI on BSD? -- Richard Gaskin Fourth World Media Corporation __ Rev tools and more: http://www.fourthworld.com/rev ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: REQ: libSmtp testing
Hi Sean, anyone out there have access to smtp servers that i can test the (soon to be released) new version of libSmtp against? the servers would need to support smtp authentication (PLAIN and LOGIN).. i'm working on other authentication methods, but i'd like to get this release out first (yeah, finally motivated to re-write it after losing it).. please contact me off-list [EMAIL PROTECTED] i did, but the mail came back Recipient unknown??? Help! :-) thank you ^_^ Best Klaus Major [EMAIL PROTECTED] http://www.major-k.de ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Arithmetic operations on dates ?
Sorry Michael, Your dateItems script is logical - it just will not work reliably with Revolution - because... Some days in Rev. start at 1 am, most start at 2 am, and even 3 am. This is again related to the crazy way Rev. handles daylight saving time. Also Rev. does not convert 2005,2,29, etc. to 2005,3,1 etc. There are requests in Revzilla for almost two years now to get some kind of usable date and time functions. Personally I'd settle for absolute seconds where every day has 86400 seconds. So far no word from the Mother Ship. I'm sure that these anomalies are causing problems for programmers who would never consider that the length of a day varies because of how local time is displayed - and there is nothing in the documentation to warn them. I have a script which will give accurate past and future dates but the original question concerned things like the last 17 hours - I don't know how to do that reliably in Revolution. Sincerely, Paul Looney ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: thumbPosition and Simple Math
Your script works for me (OS X). Try looking in the scrollbar inspector. Use the tiny arrows to increase the thumbposition. You should see the position of the thumb change on the scrollbar *and* the value in field should increase but remain 50 units greater than the thumbposition. I tested this, and it does work. So from what I'm experiencing, it is only occuring when you are actually dragging the thumb of the scrollbar. I'm not exactly sure what this means, but it means that some of my software is not going to work properly now. Derek Bump Dreamscape Software http://www.dreamscapesoftware.com/ ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: CGI load relative to Perl, etc. (last attempt, I promise)
Richard Gaskin wrote: Dave Cragg wrote: In brief, is Rev more efficient, less efficient, or roughly on par with other scripting languages for CGI use? I can't give an authoratative response. But I suspect you'll find Rev compares pretty well when doing something like working with large files. Rev's weakpoint is that it has to load for each CGI request. When compared against something like mod-perl or ASP, which are already loaded by the http server, it can be considerably slower. But as the ratio of the time to do the task to the time to load the procees increases, I think you'll find the difference narrows. For what's it's worth, I use Rev CGI scripts for an educational app that runs worldwide for a few thousand users, and I've never had any comment about performance. (this is on both Windows and Linux servers) Encouraging. I found this on Slashdot about pros and cons of Perl vs, C, and much of it applies to my choice: http://slashdot.org/askslashdot/99/10/20/1246241.shtml I would think it would be easy to convince even a skeptic that CGI scripts should be written in something other than C - if only the fact that a very large percentage of them CGI scripts are in Perl or Python (or Lisp or Ruby or ...). It may be harder to come up with good (substantiated) arguments to justify any particular choice between the higher-level languages. In essence it comes down to efficiency comparisons between the languages - and in almost every case the best approach is to write it and see if there is a performance/efficiency problem. But moving it from a CGI question to a general performance question should allow you to use more existing apps to demonstrate efficiency of xTalk. The sum of posts there is pretty much an argument for Transcript as well: there may be faster options, but the real bottleneck is in the connection, not the processing, so the productivity gained is usually a good investment. H - true for many CGI scripts. Not so sure it will be for you if you are regularly processing 10-30Mb files, and creating large number of small files. That sounds like a relatively intensive processing task, and may well not be outweighed by the communications. That's a good thing, because if you didn't have intense processing to do, the start-up times (which are avoided by mod_perl) might be significant. -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 266.5.0 - Release Date: 25/02/2005 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: thumbPosition and Simple Math
Try looking in the scrollbar inspector. Use the tiny arrows to increase the thumbposition. You should see the position of the thumb change on the scrollbar *and* the value in field should increase but remain 50 units greater than the thumbposition. I tested this, and it does work. So from what I'm experiencing, it is only occuring when you are actually dragging the thumb of the scrollbar. I'm not exactly sure what this means, but it means that some of my software is not going to work properly now. Derek Bumpy Derek, I guess I don't really know what you mean when you say it does work in the inspector, but you don't expect some of your software won't work properly. As a diagnostic, try this script in the scrollbar: on scrollBarDrag put the thumbPosition of me into theNum add 50 to theNum put the thumbposition of me cr round(theNum) into fld 1 end scrollBarDrag So that you can see both the thumbposition and the evaluated sum in the field. This script should give the same results on scrollBarDrag tPos put tPos + 50 into theNum put tPos cr round(theNum) into fld 1 end scrollBarDrag Jim ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
scale w/ ticks and snap-to
I'd like to have a scale in a range from 1 to 5 with 5 ticks on it, and with snap-to behavior so this indicator will line up with the ticks. Any combination of properties for this, or am I rolling my own? -- Richard Gaskin Fourth World Media Corporation ___ [EMAIL PROTECTED] http://www.FourthWorld.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: News of Shafer eBook Publication Plans
Judy. Strong opinion. I disagree. I know you come from an education perspective and perhaps that's shaping some of what you are feeling but my experience says: 1. Creating indexes is subjective at best. A great index can help make the contents of a printed work more accessible; a poorly done one (which 90% are) gets in the way because it sets up a false expectation about what is and isn't covered in the book. 2. The ability to full-text-search an eBook almost always more than makes up for the lack of an index. An index necessarily confines itself to the concepts and words the person preparing the index thought were important. The ability to search the text for any word or phrase makes it much more likely that I'll be able to find what *I* am looking for rather than only what the indexer thought to index. 3. Either by design or because of flaws in the way PDFs are generated or displayed, indexes of eBooks generally end up pointing a page number that doesn't match the actual number on the page. Front matter doesn't get separated out. Page x is page 10 and if that's the last Roman numeral page, then page 1 is actually page 11. Again, please note before you respond to this comment that I'm saying that's my experience with the PDFs I've worked with. It may well be that someone who really knows how to manage the PDF-creation process knows how to get around this, but my experience is that most authors don't. When all is said and done, I'd rather have more material sooner that I can free-text search than less material later that has an index that is almost destined to be only somewhat useful anyway. In any case, I'd suggest that a blanket, universal mandate that PDFs must have an index seems to me to be too broad at a minimum. Dan On Feb 25, 2005, at 8:01 PM, Judy Perry wrote: Not an excuse. Printed books simply MUST have an index. I really believe that PDFs should too. Judy On Fri, 25 Feb 2005, graham samuel wrote: Well, indices can be written - we might get volunteers to do it. In fact I might be such a volunteer for one or more of the books. Forces you to read the text, I find. ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: CGI load relative to Perl, etc. (last attempt, I promise)
The sum of posts there is pretty much an argument for Transcript as well: there may be faster options, but the real bottleneck is in the connection, not the processing, so the productivity gained is usually a good investment. It seems to me that for the task you describe, the disk i/o can also be a bottleneck if the big file (which I presume you will read in portions) and the zillion output files are all on the same drive. This may make comparisons skewed if programs are running on different hardware. Robert ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Graphic as buttons and format advice?
For a major version overhaul, I am creating LOTS of 3D round buttons, but creating graphics instead of buttons. The option I can save them as are .24-bit .png, 8-bit .png or .jpg. Which one is best for cross-platform? And which, overall, is the best quality? I have 280 graphics (140 up button and 140 down button graphics). Andy OmniLotto 2.0a1 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: 2 questions
On 2/26/05 8:28 AM, Rob Meijer [EMAIL PROTECTED] wrote: 2. In Toolbook you may create a viewer With a viewer you can look inside each toolbookapplication, whithout opening it If this viewer is the same thing that Gain Momentum used (i.e. it's like a portal into a portion of a card from another stack), then the answer is no, Revolution doesn't have that. However, as Klaus mentioned, if the sole purpose is to retrieve data from another stack, you can do so without visibly opening it, like: put the MyCustomProp of stack C:\MyFolder\MyStack.rev into tValue which will not open MyStack.rev, but will still retrieve the MyCustomProp property from it. Hope this helps, Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Shell strangeness
Idly playing around with shell commands, I noticed that I was getting some quite strange return values. For example, below is the start of the text returned by 'put shell(man bash) into fld 1'. - BASH(1)BASH(1) NNAAMMEE bash - GNU Bourne-Again SHell SSYYNNOOPPSSIISS bbaasshh [options] [file] CCOOPPYYRRIIGGHHTT Bash is Copyright (C) 1989-2002 by the Free Software Foundation, Inc. DDEESSCCRRIIPPTTIIOONN BBaasshh is an sshh-compatible command language interpreter that executes commands read from the standard input or from a file. BBaasshh also incor- porates useful features from the _K_o_r_n and _C shells (kksshh and ccsshh). --- This doesn't happen in the terminal window. Not an important issue for me, at the moment, but this sort of thing could be problematic I would have thought. Mac OS X 10.3.8 G4 PB RunRev Studio 2.5 I quite like the cartoon violence of 'man bash', though :) Mark___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Shell strangeness
Mark Smith wrote: Idly playing around with shell commands, I noticed that I was getting some quite strange return values. For example, below is the start of the text returned by 'put shell(man bash) into fld 1'. - BASH(1) BASH(1) NNAAMMEE bash - GNU Bourne-Again SHell SSYYNNOOPPSSIISS bbaasshh [options] [file] CCOOPPYYRRIIGGHHTT Bash is Copyright (C) 1989-2002 by the Free Software Foundation, Inc. DDEESSCCRRIIPPTTIIOONN BBaasshh is an sshh-compatible command language interpreter that executes commands read from the standard input or from a file. BBaasshh also incor- porates useful features from the _K_o_r_n and _C shells (kksshh and ccsshh). --- This doesn't happen in the terminal window. Not an important issue for me, at the moment, but this sort of thing could be problematic I would have thought. It's (probably) a very old artifact - from the days of teletypes and similar. Some old Unixes would print man pages using doubled letters in the headers. The doubled letters probably have some form of backspace between them - the effect on a teletype would be to overprint (i.e. effectively make 'bold') the doubled lines (or letters). The hidden (or lost) backspacing probably also happened on, for instance, the_K_o_r_nbit, to give underlined text. -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 266.5.0 - Release Date: 25/02/2005 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: First selection in a drawer
Problem unexpectedly solved. If select text of field SearchFld is in the calling btn, the text is selected in the drawer and the next keystroke erases the selection and types in the ordinary way. The problem seems to be when you try to do this is an openstack or opencard handler in the stack that becomes the drawer. For the record, I made the following observations: If an openStack or openCard handler selects the text of the field, then the drawer opens with the text highlighted. However, all subsequent keystrokes go to the original stack. If there is no handler to select the text, the text is not highlighted, but subsequent behaviour is no different. Whether or not the text is highlighted, the next keystrokes go the original stack. If the user clicks on the drawer, but not on a control, nothing happens to the fld. If the user wants to type into the field in the drawer, the user can: 1. Click on any control in the drawer (including a btn or label field). The field with the text becomes active. If the text was not highlighted, it becomes highlighted. Typing erases the text in the field and replaces it. This is the desired behaviour. 2. Click in the fld. Behaviour is as expected. The contents of the field are no longer highlighted. The text cursor appears where you clicked and you type as normal. Clicking anywhere under script control had no effect, with or without a wait. If the first keystroke after opening the drawer is a tab, the text cursor goes to the end of the text in the fld. However, you cannot then type. Nothing happens in the drawer. The tab also operates as a tab in the original stack and highlights the next field there. I guess this is a peculiarity of drawers. Regards, Bruce At 1:08 PM -0500 2/26/05, Bruce Lewis wrote: I would like to press a button to open a stack as a drawer and then have the next keystrokes type into a field on the drawer. The card script contains: on opencard select text of field SearchFld end opencard If I open the stack as a palette, the text in field SearchFld is selected and typing automatically replaces it. If I open the stack as a drawer, the text is highlighted and appears to be selected. But keystrokes do not affect it. If the cursor is in a field in the top stack, keystrokes continue to go that field. If the cursor is not in a field, the keystrokes just disappear. Any thoughts would be appreciated. Regards, Bruce -- ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: News of Shafer eBook Publication Plans
Richard- Saturday, February 26, 2005, 11:44:08 AM, you wrote: RG Agree, but darn it's a lot of work. I made the task-oriented index for RG SuperCard 2.5's documentation, it came to about 15-20% of the total RG cost. And people still complained that it wasn't complete enough. :) It never is. g Back in the early HC days I remember scripting something that would automatically find keyword links from within text fields, but it's lost to history now. -- -Mark Wieder [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Audio integration tutorial
Mark As far as I know, nothing like this exists. Maybe this should be the next chapter I release. I've been doing a bit with sound lately and there are a couple of serious experts on this list. Maybe we can put something together. Why don't you see how many specific questions you can frame and email them to me off-list. That'll give me a place to start seeing if this topic is ready for prime time in my training and experience yet. Dan On Feb 26, 2005, at 7:41 AM, Mark Swindell wrote: Is there a tutorial anywhere that covers this topic in some depth? Is this subject covered in Software at the Speed of Thought? I need some serious education, as I'm trying to set up an ebook with extensive use of audio and need help in the areas of design and organization of files, file types and features (m4b, mp3, etc), and how to to most efficiently store them, access them, buffer them, call them, etc. Looking around the Rev documentation I find fragmented bits of information regarding audio integration, but nothing comprehensive. Thanks Mark ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Audio integration tutorial
--- Dan Shafer [EMAIL PROTECTED] wrote: I've been doing a bit with sound lately and there are a couple of serious experts on this list. Maybe we can put something together. MIDI in RunRev WINDOWS: http://flexiblelearning.com/xtalk.htm -- mci http://www.hyperactivesw.com/shakobox.html MAC: http://www.hyperactivesw.com/shakobox.html http://homepage.mac.com/udi/ Kurt Kaufman's SMF stack bundled with RunRev Erik Hansen = [EMAIL PROTECTED]http://www.erikhansen.org __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: unlimited undo's for text fields
On 2/26/05 2:07 PM, Dar Scott wrote: On Feb 26, 2005, at 12:43 PM, Wouter wrote: One of the things that caused the error you mentioned is the not so uniform transplatform behaviour of commands like rawkeydown in this case. A little test showed a big difference between mac and win32 platform. The modifier keys, the shift and capslock keys are not triggering a rawkeydown message on the mac-side. But they do on the win32 platform. If the people at RR could make this behavior more uniform between platforms it would enhance crossplatformity This and related functions use keysyms. I get the impression that standards (if any) are weak, but what there is Revolution should follow and clarify make uniform what is not. If the keysym traditions and standards are too weak, then Revolution should create its own and follow that across platforms, even when some odd corner is hard to implement on some platforms. Can't do it on a Mac. The OS doesn't send any messages for the shift key and command key unless they are paired with an alpha-numeric keypress. Windows OS does. Rev has no way of knowing when the user depresses the shift key alone. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: CGI load relative to Perl, etc. (last attempt, I promise)
On 2/26/05 1:49 PM, Dave Cragg wrote: Rev's weakpoint is that it has to load for each CGI request. When compared against something like mod-perl or ASP, which are already loaded by the http server, it can be considerably slower. But as the ratio of the time to do the task to the time to load the procees increases, I think you'll find the difference narrows. I seem to remember Scott Raney saying that load time, when the engine is faceless, was close to instantaneous and not a significant factor. (Or am I going senile? I can't find the quote now.) -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: scale w/ ticks and snap-to
On 2/26/05 5:15 PM, Richard Gaskin wrote: I'd like to have a scale in a range from 1 to 5 with 5 ticks on it, and with snap-to behavior so this indicator will line up with the ticks. Any combination of properties for this, or am I rolling my own? You have to write your own. There's one in the Colors and Levels menu item in my Blocks game. This is the script of the scrollbar (there are only 3 positions): on mouseUp setLevelValues end mouseUp on setLevelValues put the endvalue of me div 3 into theSegment put the thumbpos of me into thePos switch case (thePos theSegment) set the thumbPos of me to 0 break case (thePos theSegment*2 + 10) set the thumbPos of me to the endvalue of me div 2 break default set the thumbPos of me to the endvalue of me end switch end setLevelValues I forget why I added 10 in the second case, but it had something to do with esthetics. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: 2 questions
Thanks Ken, Klaus, Mark At 19:33 26/2/2005, Mark Wieder wrote: function mydate return the label of button today end mydate YES, that's it. I read it over in the helpfile. About the viewer and how I use it. If I build an app. I basicly use a main stack and several stacks as modules. The main book is for input, the storage is in the modules. So the leaves these databases alone. If I want to get info from the modules I can get if the way you describe: put text of field foo of card abc of stack xyz. In the same way I can put data into that stack. But there are handlers you have to execute inside a module, f.i. (openscript; book=stack, page=card) In an addressbook each person has his own page and I have to add a new one: get page index of book addressdata if syserror null open look()to get look;return viewer look;end currentpage of look()=last page of book addressdata in look() send newpage name of this page=whatever blahblahblah end close look() You may use a viewer to show a (part of) a page, where you want to see special data: f.i. one user wanted to see what product was the most lucrative, so he opens a viewer, showing a part of a page where that list was placed: open look() currentpage of look()=page results of book ST()to get etc. caption of look()=my best profits bounds of look()=878,1,1281,487 show look() stead of a text you may use such a viewer to show parts of a graphic or whatever. For me the presence of the viewer-possibility is essential. I hope you see what I meant to explain. Have a nice sunday. Rob [EMAIL PROTECTED] www.japrosoft.com no more spam: Mailwasher Pro http://www.firetrust.com/products/pro/ and please mention my emailaddress... ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: News of Shafer eBook Publication Plans
Dan, Basically, what you're saying is that anything done crappily is crap and anything done well is good. That's true. More l8r when I'm in a better mood ;-) :-/ Judy On Sat, 26 Feb 2005, Dan Shafer wrote: Judy. Strong opinion. I disagree. I know you come from an education perspective and perhaps that's shaping some of what you are feeling but my experience says: 1. Creating indexes is subjective at best. A great index can help make the contents of a printed work more accessible; a poorly done one (which 90% are) gets in the way because it sets up a false expectation about what is and isn't covered in the book. ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution