Stupid question number 666
This will really show me up . . . :) Well, here goes: What exactly is REGEX ? Is REGEX cross-platform ? ___ 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: Stupid question number 666
The Answer: http://www.regular-expressions.info/ matchtext, matchchunk and replacetext use regex, many languages have it in some form or another. From the dictionary for matchtext: Tip: Revolution implements regular expressions compatible with the PCRE library. For detailed information about regular expression elements you can use with this function, see the PCRE manual at http://www.pcre.org/man.txt Regular Expressions can either be really fun and helpful, or a horrific nightmare depending on the day, the circumstances and which side of the bed you slept on the night before. On Sun, Jun 27, 2010 at 2:55 AM, Richmond richmondmathew...@gmail.com wrote: This will really show me up . . . :) Well, here goes: What exactly is REGEX ? Is REGEX cross-platform ? ___ 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: Question about Native Geometry
Its a 22 inch, a wide screen, and it seems to be 10.5 inches high. Fonts in the dictionary appear to be about 4 point. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Question-about-Native-Geometry-tp2269122p2269892.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Stupid question number 666
On 06/27/2010 12:09 PM, Mike Bonner wrote: The Answer: http://www.regular-expressions.info/ matchtext, matchchunk and replacetext use regex, many languages have it in some form or another. From the dictionary for matchtext: Tip: Revolution implements regular expressions compatible with the PCRE library. For detailed information about regular expression elements you can use with this function, see the PCRE manual at http://www.pcre.org/man.txt Regular Expressions can either be really fun and helpful, or a horrific nightmare depending on the day, the circumstances and which side of the bed you slept on the night before. Thank you very much; at least that web-page seems to be slightly easier to understand than Wikipedia! As I slept slap in the middle of my bed last night and the cat kept doing flying leaps onto me all night from the window sill I should have absolutely no trouble at all understanding that minefield of information . . . :( ___ 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: Question about Native Geometry
On 06/27/2010 12:21 PM, Peter Alcibiades wrote: Its a 22 inch, a wide screen, and it seems to be 10.5 inches high. Fonts in the dictionary appear to be about 4 point. What follows is serious Rocket science [Not!]: --- Open a New Main stack. Open the stack inspector and select the 'revDictionary' to edit . . . NOW: Go to 'Text Formatting'; you will find that the text is set to 12 points if you start fiddling around with it. Set the font for the revDictionary stack to 14 (bigger than that and things get horrible). Open the Message Box and type: save stack revDictionary hit the ENTER button on your keyboard. [The Dictionary will go ALARMINGLY BLANK!] EXIT RunRev. RESTART RunREv. Your revDictionary will now have larger text. -- sincerely, Richmond. ___ 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: Stupid question number 666
Richmond, have a look at RegExBuilder in the Development- plugins folder by Frédéric Rinaldi. If I have to build a regular expression I try it in the RegExBuilder which even gives me a script to paste once the expression works. Since I don't have a cat to help me understand RegEx I use this or give up when I slept on the wrong side of the bed of which there are four, actually six including under and on top... regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Stupid-question-number-666-tp2269877p2269909.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Question about Native Geometry
This is by way of a repost as I missed some instructions. On 06/27/2010 12:21 PM, Peter Alcibiades wrote: Its a 22 inch, a wide screen, and it seems to be 10.5 inches high. Fonts in the dictionary appear to be about 4 point. What follows is serious Rocket science [Not!]: --- On Linux: Start up RunRev [I did this with RunRev Studio 4.0] Open the 'revDictionary' from the menuBar Make sure that in your preferences you have 'Revolution UI elements appear in lists of stacks' selected Open a New Main stack. Open the stack inspector and select the 'revDictionary' to edit . . . NOW: Go to 'Text Formatting'; you will find that the text is set to 12 points if you start fiddling around with it. Set the font for the revDictionary stack to 14 (bigger than that and things get horrible). Open the Message Box and type: save stack revDictionary hit the ENTER button on your keyboard. [The Dictionary will go ALARMINGLY BLANK!] EXIT RunRev. RESTART RunREv. Your revDictionary will now have larger text. -- sincerely, Richmond. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: [OT] Mac PPC and USB2 ?
On 06/09/2010 09:38 PM, Andre Garzia wrote: Richmond, Send me your snail mail address, I think I have an spare firewaire enclosure you could use. It was made in taiwan eons ago but it works, you just pop an HD inside it and it will work. I don't know if a shipment from Brazil to Bulgaria will ever arrive, you might get some weird stamps in it as if the package traveled to asia, africa, oceania, the international space station, io and more before it reaches you but it is worth a try. What is the news, Andre ___ 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: Question about Native Geometry
Hi Peter, NativeGeometry does not modify the Revolution environment, so NativeGeometry will not fix that IDE problem. But if you develop your application using NativeGeometry, your application will normally not meet this problem. Best, Damien -Message d'origine- De : use-revolution-boun...@lists.runrev.com [mailto:use-revolution-boun...@lists.runrev.com] De la part de Peter Alcibiades Envoyé : samedi 26 juin 2010 03:17 À : How to use Revolution Objet : Question about Native Geometry Rev on Linux has become pretty much unusable after buying a bigger screen with higher resolution, since unless you change the monitor to a lower resolution every time Rev starts up, the IDE is unreadably small. Is it possible to use Native Geometry to fix this? Peter ___ 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: Stupid question number 666
There is an old movie that uses regular expressions almost entirely for the special effects. The Exorcist. Any time a scene required a spinning head, green goop hurling, or a blood curdling scream, 15 minutes of studying regex's and they were ready to perform. On Sun, Jun 27, 2010 at 4:01 AM, BNig niggem...@uni-wh.de wrote: Richmond, have a look at RegExBuilder in the Development- plugins folder by Frédéric Rinaldi. If I have to build a regular expression I try it in the RegExBuilder which even gives me a script to paste once the expression works. Since I don't have a cat to help me understand RegEx I use this or give up when I slept on the wrong side of the bed of which there are four, actually six including under and on top... regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Stupid-question-number-666-tp2269877p2269909.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ 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
[On-Rev] post tData to URL https
I'm trying to set up my On-Rev account to use PayPal's IPN system which requires replying to a message that PayPal sends to me. Using their sandbox I can receive and parse the PayPal message but can't figure out how to send it back properly. If I paste the string my script constructs into a web browser I get the correct response from PayPal. Unfortunately, I can't seem to do this directly from an irev script. I'm using: post tData to URL https://www.sandbox.paypal.com/cgi-bin/webscr; Of course it could certainly be pilot error, (I'm not too sure about applying headers, among other things) but messages on the forum seemed to indicate that some folks thought the problem was having an https URL I read the message from Mark Waddingham suggesting that this had been fixed but I don't know enough about https to be sure if it applies to this situation. Nor can I tell from the forums whether anyone ever got this to work... or if there is some alternate method. Any suggestion welcome. Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.com/ email sc...@elementarysoftware.com -- ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: [OT] Mac PPC and USB2 ?
I've picked the package at my parents house, made a nice package and am waiting for the tracking number which should arrive tomorrow so the fun can start. It took me a while to drop by my parents house to pick it up on the attic. I've tested and it worked fine! I am just removing the IDE drive inside since it contains old backups. You'll need to provide a HD to put into it. Cheers andre On Sun, Jun 27, 2010 at 8:17 AM, Richmond richmondmathew...@gmail.comwrote: On 06/09/2010 09:38 PM, Andre Garzia wrote: Richmond, Send me your snail mail address, I think I have an spare firewaire enclosure you could use. It was made in taiwan eons ago but it works, you just pop an HD inside it and it will work. I don't know if a shipment from Brazil to Bulgaria will ever arrive, you might get some weird stamps in it as if the package traveled to asia, africa, oceania, the international space station, io and more before it reaches you but it is worth a try. What is the news, Andre ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution -- http://www.andregarzia.com All We Do Is Code. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: [OT] Mac PPC and USB2 ?
On 06/27/2010 06:40 PM, Andre Garzia wrote: I've picked the package at my parents house, made a nice package and am waiting for the tracking number which should arrive tomorrow so the fun can start. It took me a while to drop by my parents house to pick it up on the attic. I've tested and it worked fine! I am just removing the IDE drive inside since it contains old backups. You'll need to provide a HD to put into it. Cheers andre This is fantastic; I have (despite somebody writing that they are not made) a 750 GB PATA/IDE drive that is full of backups just looking for a home! However; I wonder if it might not be better to send it to my parents' home in England (although, as far as postal adventures go that may not be as much fun) as I shall be there at the start of August. A girlfriend once sent me a card from Saudi Arabia (1979) and I got it (in England) 5 months later with stamps from South Korea; but the best has to be a letter somebody posted me from Applecross (on the west coast of Scotland) to my house (at St Andrews on the east coast of Scotland) it arrived with a Canadian postmarking! ___ 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: [On-Rev] post tData to URL https
Of course, Andre Garzia has already published a robust solution. How is it that after 2 days, I find his solution (already on my drive) only a few moments after posting here! I don't have it working yet but get URL followed by put it looks like my friend : ) So, thanks Andre! -Scott On Jun 27, 2010, at 7:59 AM, Scott Morrow wrote: I'm trying to set up my On-Rev account to use PayPal's IPN system which requires replying to a message that PayPal sends to me. Using their sandbox I can receive and parse the PayPal message but can't figure out how to send it back properly. If I paste the string my script constructs into a web browser I get the correct response from PayPal. Unfortunately, I can't seem to do this directly from an irev script. I'm using: post tData to URL https://www.sandbox.paypal.com/cgi-bin/webscr; Of course it could certainly be pilot error, (I'm not too sure about applying headers, among other things) but messages on the forum seemed to indicate that some folks thought the problem was having an https URL I read the message from Mark Waddingham suggesting that this had been fixed but I don't know enough about https to be sure if it applies to this situation. Nor can I tell from the forums whether anyone ever got this to work... or if there is some alternate method. Any suggestion welcome. Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.com/ email sc...@elementarysoftware.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: [OT] Mac PPC and USB2 ?
Richmond- Sunday, June 27, 2010, 8:54:39 AM, you wrote: A girlfriend once sent me a card from Saudi Arabia (1979) and I got it (in England) 5 months later with stamps from South Korea; but the best has to be a letter somebody posted me from Applecross (on the west coast of Scotland) to my house (at St Andrews on the east coast of Scotland) it arrived with a Canadian postmarking! My tale: Some years ago we were working in Mozambique. I had a birthday coming up and my parents, planning ahead, sent me a card a month ahead of time to ensure that it would arrive by the proper day. It did, and in fact arrived a couple of days early. But it had been rubber-stamped missent to Manila. Now I can understand this: someone in a post office somewhere simply filed the envelope in a pigeonhole in the M section of the office and got Manila instead of Maputo. I have no doubt that these are right next to each other in the office. What got to me, though, is that this happens often enough that someone in the Manila post office made a rubber stamp to handle the situation. -- -Mark Wieder mwie...@ahsoftware.net ___ 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: Question about Native Geometry
Peter Alcibiades wrote: Its a 22 inch, a wide screen, and it seems to be 10.5 inches high. Fonts in the dictionary appear to be about 4 point. That doesn't tell us what the actual screen resolution is though. At any rate, Rev uses font inheritance for most of its stacks, and that's based on the font size set in the Home stack. Try this in the message box: set the textsize of stack home to 14 Then open the dictionary and see if it looks different. Other stacks that don't have their own size specifically set will inherit the size you put in Home as well. If the above works, you can set it up to happen automatically. Since the home stack is locked and the size is set by a script in there, you'll need to make a little plugin that issues that command after the IDE starts up. You can set your plugin to either respond to a Rev message, or just run on startup and then close itself. Or if you have any custom backscripts that routinely run, just put the command in there instead. By the way, I was running Ubuntu last night and I didn't see any font size problems. I suspect my resolution isn't the same as yours, but you don't say what you're running at. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: [OT] Mac PPC and USB2 ?
On 06/27/2010 07:19 PM, Mark Wieder wrote: Richmond- Sunday, June 27, 2010, 8:54:39 AM, you wrote: A girlfriend once sent me a card from Saudi Arabia (1979) and I got it (in England) 5 months later with stamps from South Korea; but the best has to be a letter somebody posted me from Applecross (on the west coast of Scotland) to my house (at St Andrews on the east coast of Scotland) it arrived with a Canadian postmarking! My tale: Some years ago we were working in Mozambique. I had a birthday coming up and my parents, planning ahead, sent me a card a month ahead of time to ensure that it would arrive by the proper day. It did, and in fact arrived a couple of days early. But it had been rubber-stamped missent to Manila. Now I can understand this: someone in a post office somewhere simply filed the envelope in a pigeonhole in the M section of the office and got Manila instead of Maputo. I have no doubt that these are right next to each other in the office. What got to me, though, is that this happens often enough that someone in the Manila post office made a rubber stamp to handle the situation. Well . . . let's hope that while your card from your Mum and Dad was missent to Manila, your youth was not misspent in Maputo . . . :) This is, of course, written by someone, who, at the tender age of 48, is busy misspending his 'youth' in Bulgaria! As an EFL teacher I think I ought to get all huffy about 'missent' [as opposed to 'miss sent'] but I find it rather appealing. ___ 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
MD5 digests of very big files
Hi all, Read this report written by Mark Schonewille: http://quality.runrev.com/qacenter/show_bug.cgi?id=2410 Mark Waddingham post this function: function quasiMD5 pFile local tMD5s open file pFile for binary read repeat read from file pFile for 4096 chars if the result is EOF then exit repeat end if put the md5digest of it after tMD5s end repeat close file pFile return the md5Digest of tMD5s end quasiMD5 But when i run this function, Rev consumes all memory available. Thanks in advance for your help! Al ___ 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: MD5 digests of very big files
On 06/27/2010 08:46 PM, Alejandro Tejada wrote: Hi all, Read this report written by Mark Schonewille: http://quality.runrev.com/qacenter/show_bug.cgi?id=2410 Mark Waddingham post this function: function quasiMD5 pFile local tMD5s open file pFile for binary read repeat read from file pFile for 4096 chars if the result is EOF then exit repeat end if put the md5digest of it after tMD5s end repeat close file pFile return the md5Digest of tMD5s end quasiMD5 But when i run this function, Rev consumes all memory available. - and Mark Waddingham also wrote: Some sort of 'stream' abstraction for doing this kind of operation on files and the like would be a useful addition and certainly something to consider for a future version. in November 2004. I wonder if anything further has been done in this area over the last 5 and a half years?? ___ 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: [On-Rev] post tData to URL https
A good 90% of finding a solution is to just define the problem and put it into words. That stirs the memory process deeper and one starts thinking more out of the box. This happens to me all the time. Many times I have deleted a post to this forum after writing it - after figuring it out. On 27 June 2010 08:58, Scott Morrow sc...@elementarysoftware.com wrote: Of course, Andre Garzia has already published a robust solution. How is it that after 2 days, I find his solution (already on my drive) only a few moments after posting here! I don't have it working yet but get URL followed by put it looks like my friend : ) So, thanks Andre! -Scott On Jun 27, 2010, at 7:59 AM, Scott Morrow wrote: I'm trying to set up my On-Rev account to use PayPal's IPN system which requires replying to a message that PayPal sends to me. Using their sandbox I can receive and parse the PayPal message but can't figure out how to send it back properly. If I paste the string my script constructs into a web browser I get the correct response from PayPal. Unfortunately, I can't seem to do this directly from an irev script. I'm using: post tData to URL https://www.sandbox.paypal.com/cgi-bin/webscr; Of course it could certainly be pilot error, (I'm not too sure about applying headers, among other things) but messages on the forum seemed to indicate that some folks thought the problem was having an https URL I read the message from Mark Waddingham suggesting that this had been fixed but I don't know enough about https to be sure if it applies to this situation. Nor can I tell from the forums whether anyone ever got this to work... or if there is some alternate method. Any suggestion welcome. Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.com/ email sc...@elementarysoftware.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 -- - Stephen Barncard San Francisco ___ 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: MD5 digests of very big files
Looks like the culprit is the condition to escape the repeat structure. The result never reach the EOF end of file. Which other condition could i use to verify that the file have been reading completely? Thanks in advance! Al In this enhancement request written by Mark Schonewille: http://quality.runrev.com/qacenter/show_bug.cgi?id=2410 Mark Waddingham posted this function: function quasiMD5 pFile local tMD5s open file pFile for binary read repeat read from file pFile for 4096 chars if the result is EOF then -- Alert!!! the result never reach EOF exit repeat end if put the md5digest of it after tMD5s end repeat close file pFile return the md5Digest of tMD5s end quasiMD5 But when i run this function, Rev consumes all memory available. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/MD5-digests-of-very-big-files-tp2270182p2270228.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Call to all you one-liners !
Actually that doesn't solve the original issue - you can set the color to numbers that are greater than 256 and it will still work (try it with 1000,1000,1000 and you'll see what I mean). I don't see that as a problem. The numbers are modded down to 255 and setting the color of the button does exactly what I'd expect it to in that case. Well that's where you and I differ - if I accidentally passed 2555 instead of 255 for one of the integers in a color value, I'd want to be told that that's an error. This is especially true when the docs for all the color tokens state The RGBColor consists of three comma-separated integers between zero and 255... So if it's either not an integer or outside that range, I'd assume I'd receive an error. So in my eyes, this is a bug in the is a color function. BTW: This is along with the already existing bug with the function that returns true if you just pass a zero to it. And similarly, you can set the backcolor (or any other color property) of an object to 0 and not get an error... Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http://www.sonsothunder.com/ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: MD5 digests of very big files
Alejandro Tejada wrote: Looks like the culprit is the condition to escape the repeat structure. The result never reach the EOF end of file. Which other condition could i use to verify that the file have been reading completely? Try: if it is empty -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Hidden point technique to mask an image
Hi all, on May 10, 2010 Sott Rossi posted in the message thread titled: Object is not an image when Crop command --- --- Recently, JosepM wrote: I understand you but I don't know the hidden point technique :) Where add a space in the polygon's list? A polygon is derived from a list of points, one per line: 23,181 42,190 36,195 23,181 Adding an empty line between points in the list adds an invisible point to the polygon that changes the polygon's dimensions without adding to the fill or stroke of the polygon. 5,181 23,181 42,190 36,195 23,181 Using this technique, one could establish the *physical* topleft of a polygon to occur at one location while the *visible* topleft of the polygon occurs at a different location. --- --- Recently, i tried to use this technique, but the polygon graphic get filled in the wrong places and the selection area of the graphic grows too much. Probably the wrong fill is a side effect of applying the new property named fillRule: http://docs.runrev.com/Property/fillRule I will be very grateful if some of you could post a stack that demostrate this technique and test the fillRule property with this background filled polygon graphic. Thanks in advance! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Hidden-point-technique-to-mask-an-image-tp2270248p2270248.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Call to all you one-liners !
Ken wrote: So in my eyes, this is a bug in the is a color function. BTW: This is along with the already existing bug with the function that returns true if you just pass a zero to it. And similarly, you can set the backcolor (or any other color property) of an object to 0 and not get an error Well, I beg to differ on describing this as a bug. Many things are colors in rev, not only RGB values. Any color name is, HTML Color definitions are and also revs own representations (effective backpixel is a single number for example) are. Is a color needs to be able to parse all of those. 2 cents, Malte___ 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: MD5 digests of very big files
Hi Jacke, Jacqueline Landman Gay wrote: Try: if it is empty Many Thanks! This works. :-D Now the function will be: function quasiMD5 pFile local tMD5s open file pFile for binary read repeat read from file pFile for 4096 chars if it is empty then exit repeat end if put the md5digest of it after tMD5s end repeat close file pFile return the md5Digest of tMD5s end quasiMD5 -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/MD5-digests-of-very-big-files-tp2270182p2270259.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Hidden point technique to mask an image
Hi Alejandro: I'm not clear on what issue you're seeing from your email, but maybe this stack will help (in your message box): go url http://www.tactilemedia.com/download/disconpoints.rev; You will see the visible portion of the polygon occupies less space than its real rect, shown by the border (toggle on/off). I believe the original thread below was a consideration of this technique to mask images. A masking example stack is available here: go url http://www.tactilemedia.com/site_files/downloads/masking_options.rev; Hope this helps. Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Alejandro Tejada wrote: Hi all, on May 10, 2010 Sott Rossi posted in the message thread titled: Object is not an image when Crop command --- --- Recently, JosepM wrote: I understand you but I don't know the hidden point technique :) Where add a space in the polygon's list? A polygon is derived from a list of points, one per line: 23,181 42,190 36,195 23,181 Adding an empty line between points in the list adds an invisible point to the polygon that changes the polygon's dimensions without adding to the fill or stroke of the polygon. 5,181 23,181 42,190 36,195 23,181 Using this technique, one could establish the *physical* topleft of a polygon to occur at one location while the *visible* topleft of the polygon occurs at a different location. --- --- Recently, i tried to use this technique, but the polygon graphic get filled in the wrong places and the selection area of the graphic grows too much. Probably the wrong fill is a side effect of applying the new property named fillRule: http://docs.runrev.com/Property/fillRule I will be very grateful if some of you could post a stack that demostrate this technique and test the fillRule property with this background filled polygon graphic. Thanks in advance! Al ___ 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: Call to all you one-liners !
Ken- Sunday, June 27, 2010, 12:16:21 PM, you wrote: Well that's where you and I differ - if I accidentally passed 2555 instead of 255 for one of the integers in a color value, I'd want to be told that that's an error. This is especially true when the docs for all the color tokens state The RGBColor consists of three comma-separated integers between zero and 255... So if it's either not an integer or outside that range, I'd assume I'd receive an error. The docs are somewhat correct: if you request the (back)color property of an object after setting its (back)color to values that are outside the normal range (1000,1000,1000, for example) then you'll receive the integer values mod 255. So if you *get* an RGBColor the values will be indeed in that range. So in my eyes, this is a bug in the is a color function. BTW: This is along with the already existing bug with the function that returns true if you just pass a zero to it. And similarly, you can set the backcolor (or any other color property) of an object to 0 and not get an error... Depends on your objective. If the aim of the isAColor function is to determine whether the passed parameter can be used as a parameter in setting one of the color properties, then I think the function performs as designed. This seems to me to have more useful applications than the goal of determining whether the parameter is a comma-separated three-item string of integers between 0 and 255. OTOH, you may have a need to determine exactly that, in which case your regex solution would fit the need quite well. -- -Mark Wieder mwie...@ahsoftware.net ___ 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: Hidden point technique to mask an image
Hi Scott, Now, after downloading your example, i understand that there is no need to change the fillRule from none to evenodd or nonzero. Previously, i though that this was a requisite. In fact, after changing the fillRule of a polygonal graphic, there is no way to return it to a previous state. The solution to the problem i get is simple: Do not change the fillRule Many thanks for your help! :-D Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Hidden-point-technique-to-mask-an-image-tp2270248p2270327.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Access Script Local Value?
I think I may have asked this before but can't recall the answer... Is it possible for the script of one object to set/get a script local variable value of another object? If yes, how? Thanks Regards, Scott Rossi Creative Director Tactile Media, UX Design ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Access Script Local Value?
Is it possible for the script of one object to set/get a script local variable value of another object? If yes, how? Not directly, as far as I know. You have to write getter setter routines in the object containing the script local: local sLocalVar command setLocalVar pNewValue put pNewValue into sLocalVar end setLocalVar function getLocalVar return sLocalVar end getLocalVar Cheers, Sarah Rodeo discussion: http://rodeoapps.com/rodeo-discuss-among-yourselves ___ 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
revBrowser Requires Double-Click Interaction on OS X?
In my continuing revBrowser project, I'm running up against an OS X issue pointed out by Klaus Major back in Feb 2010: I found that most of the time you need to doubleclick(!) Flash elements (e.g. the movie controls in Youtube videos) when in a Revbrowser, but the intended single clicks in a normal Browser like Safari or FireFox. Just like Klaus described, the default youtube controls in a video require double-clicks to activate. Has anyone found a workaround for this? Perhaps some way to force focus on the revBrowser instance, or the content it's displaying? On Windows, click behavior works as expected. Thanks Regards, Scott Rossi Creative Director Tactile Media, UX Design ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: revBrowser Requires Double-Click Interaction on OS X?
Scott, I've experienced that as well and could not solve it. If you're using your own flash video player, you can usually script the interaction using javascript which might solve your problems. Looking for a solution as well. Andre On Sun, Jun 27, 2010 at 10:21 PM, Scott Rossi sc...@tactilemedia.comwrote: In my continuing revBrowser project, I'm running up against an OS X issue pointed out by Klaus Major back in Feb 2010: I found that most of the time you need to doubleclick(!) Flash elements (e.g. the movie controls in Youtube videos) when in a Revbrowser, but the intended single clicks in a normal Browser like Safari or FireFox. Just like Klaus described, the default youtube controls in a video require double-clicks to activate. Has anyone found a workaround for this? Perhaps some way to force focus on the revBrowser instance, or the content it's displaying? On Windows, click behavior works as expected. Thanks Regards, Scott Rossi Creative Director Tactile Media, UX Design ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution -- http://www.andregarzia.com All We Do Is Code. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
snapshot and background problems
I have a revBrowser and I want to take a snapshot of it and save the image on a card and do this a lot of times for many pages. I can take a snapshot of revBrowser and save the file: export snapshot from rect 0,0,100,100 to aFile.png as png . How do I save a copy of the snapshot to an image on the card? I have tried export snapshot from rect 0,0,100,100 to someVar set the imagedata of image myimage to someVar and I have used the revBrowserSnapshot command also but all I get is garbage in the image. The rect of the snapshot is three times larger than the rect of the image. It seems that if I have an image and a field in a group on a card with the behave as background property checked I can use that group as a template on that card with the create card command. The field has a sharedText property. Does the image have a shredImage property I can turn off. If I can't do I just create a new image on each new card. Thanks, Michael___ 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: snapshot and background problems
Recently, Michael D Mays wrote: I can take a snapshot of revBrowser and save the file: export snapshot from rect 0,0,100,100 to aFile.png as png . How do I save a copy of the snapshot to an image on the card? Try this: export snapshot from rect 0,0,100,100 to someVar as PNG set the text of image myimage to someVar Or this: import snapshot from rect a,b,c,d of this cd Regards, Scott Rossi Creative Director Tactile Media, UX Design ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: snapshot and background problems
Recently, I wrote: export snapshot from rect 0,0,100,100 to someVar as PNG set the text of image myimage to someVar Correction: export snapshot from rect 0,0,100,100 of this cd to someVar as PNG set the text of image myimage to someVar Regards, Scott Rossi Creative Director Tactile Media, UX Design ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Sorting lines by variable directions and types
I have a table in which some columns are text and some are numbers I would like to assign values to the variables tDirection and tType so that I could do something like: put descending into tDirection put text into tType put field 1 into tList sort lines of tList tDirection tType by word 1 of each But Rev balks at the variables tDirection and tType. It wants the explicit words ascending , descending text or numeric I can get around this by using multiple conditionals (If tDirection is ascending then sort lines of tList ascending... But this is a little cumbersome since there are 4 pairs of direction and type. Is there some slight of hand I can perform on the variables tDirection and tType to make my one-liner functional, i.e. sort lines of tList MagicOperator(tDirection) MagicOperator(tType) by word 1 of each Thanks, Jim Hurley ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Sorting lines by variable directions and types
Is there some slight of hand I can perform on the variables tDirection and tType to make my one-liner functional, i.e. sort lines of tList MagicOperator(tDirection) MagicOperator(tType) by word 1 of each You should be able to use do for this: do sort lines of tList tDirection tType by word 1 of each Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http://www.sonsothunder.com/ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Call to all you one-liners !
Depends on your objective. If the aim of the isAColor function is to determine whether the passed parameter can be used as a parameter in setting one of the color properties, then I think the function performs as designed. My issue isn't with *your* isAColor function - it's with the built-in is a color function (or is it statement?)... I meant that this: put 1000,1000,1000 is a color should return false instead of true. Well, I beg to differ on describing this as a bug. Many things are colors in rev, not only RGB values. Any color name is, HTML Color definitions are and also revs own representations (effective backpixel is a single number for example) are. Is a color needs to be able to parse all of those. Oh, I agree with you Malte - my only focus at the moment is on the RGB form of a color. IMHO either the docs need to be amended to say that the RGB values that can be used for *setting* a color can be any three integers (and values over 255 will be modded) or can be just the single integer zero, but that if you *get* the color you will always get three comma delimited integers from 0-255... OR it should be treated as a bug and only accept a 0-255 integer triplet for the RGB form of color values. Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http://www.sonsothunder.com/ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: MD5 digests of very big files
--- On Sun, 6/27/10, Alejandro Tejada capellan2...@gmail.com wrote: Hi Jacke, Jacqueline Landman Gay wrote: Try: if it is empty Many Thanks! This works. :-D Now the function will be: function quasiMD5 pFile local tMD5s open file pFile for binary read repeat read from file pFile for 4096 chars if it is empty then exit repeat end if put the md5digest of it after tMD5s end repeat close file pFile return the md5Digest of tMD5s end quasiMD5 To make this future-proof, you might want to use the byte chunk type for reading from the binary file: read from file pFile for 4096 bytes -- was: chars That way, after Unicode support in the revEngine becomes pervasive and transparent, the above will work just fine, whether or not the intricacies of what constitutes a 'char' change. Jan Schenkel = Quartam Reports PDF Library for Revolution http://www.quartam.com = As we grow older, we grow both wiser and more foolish at the same time. (La Rochefoucauld) ___ 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: Call to all you one-liners !
Ken- Sunday, June 27, 2010, 9:23:19 PM, you wrote: My issue isn't with *your* isAColor function - it's with the built-in is a color function (or is it statement?)... I meant that this: put 1000,1000,1000 is a color should return false instead of true. Well, it's essentially the same argument. *My* function returns the feasibility of using the given parameter as the parameter to setting one of the color properties, which in essence is the definition of a color. IMHO either the docs need to be amended to say that the RGB values that can be used for *setting* a color can be any three integers (and values over 255 will be modded) or can be just the single integer zero, but that if you *get* the color you will always get three comma delimited integers from 0-255... OR it should be treated as a bug and only accept a 0-255 integer triplet for the RGB form of color values. Okay - no argument there. I think the fact that values over 255 can be used in RGB color values is an accidental feature, and one that I certainly wouldn't rely on. I'm not sure I would classify it as a bug, since I can't think of a situation where there would be any loss of functionality, but I'd be perfectly happy with either a change to the docs or limiting the parameters to a 0-255 integer triplet. -- -Mark Wieder mwie...@ahsoftware.net ___ 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: snapshot and background problems
On 28/06/10 1:42 PM, Scott Rossi sc...@tactilemedia.com wrote: Recently, I wrote: export snapshot from rect 0,0,100,100 to someVar as PNG set the text of image myimage to someVar Correction: export snapshot from rect 0,0,100,100 of this cd to someVar as PNG set the text of image myimage to someVar or... put someVar into image myImage Terry... Regards, Scott Rossi Creative Director Tactile Media, UX Design ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ 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: Call to all you one-liners !
Ken Ray wrote: Depends on your objective. If the aim of the isAColor function is to determine whether the passed parameter can be used as a parameter in setting one of the color properties, then I think the function performs as designed. My issue isn't with *your* isAColor function - it's with the built-in is a color function (or is it statement?)... I meant that this: put 1000,1000,1000 is a color should return false instead of true. I agree. If is a date doesn't wrap, colors shouldn't either. This returns false: put 13/133/09 is a date So for consistency, and to avoid confusion, 1000,1000,1000 shouldn't be a color. I think that's what most people would expect. Now, dates can also be single integers (they're considered seconds) so single color integers could also be considered...um...whatever they're considered. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
MacOS Resource converter
I suspect you guys and gals may find this very useful. http://evolutioninteractive.com/rezycle/rezycle.html Enjoy... Joe Lewis Wilkins ___ 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: MacOS Resource converter
On 06/28/2010 08:06 AM, Joe Lewis Wilkins wrote: I suspect you guys and gals may find this very useful. http://evolutioninteractive.com/rezycle/rezycle.html Enjoy... Joe Lewis Wilkins ___ 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 Marvellous! Thanks! ___ 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