Re: convert a current date into a future date
On Fri, Jun 19, 2009 at 12:35 PM, Nicolas Cueto nicon...@gmail.com wrote: Oh, now I get Kay C Lan's suggestion. Sorry, I often have problems explaining things ;-) ___ 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
changing the first occurrence only of a string in a line
How would you do the following in Rev? We have a file consisting of records with tab separated fields. Each field has a tag followed by contents. Some tags occur more than once in some records which thus have varying numbers of fields. Duplicates are always consecutive. I want to eliminate all the occurrences of any tag except the first one. The duplicate tags can occur any place in the record, but if they are duplicated, will always be consecutive. Doing this in SED is not particularly difficult, but it does require going out to shell, and so its not cross platform. You just change the tag using the local scope to something else. SED then only changes the first occurrence in a record. Then you use the global scope and change all of them. Then you go back and change the first one back to what it was. In fact, if using SED like this, the only thing you need it for is to do the local, first tag, change - once this is done, the rest can be done in Rev. But it would be nice to stay in Rev for the whole thing. Is there a way in Rev to pick the first occurence of a string in a record, change it and not subsequent occurences, and then move on to the next record and do the same thing? That is, mimic the 'local' editing mode of SED? Bet you all thought them dinosaurs like SED had to be extinct by now! But no, they are still trampling around in the swamps of text manipulation For the sake of clarity, a record might look like this: A aa TAB B bb TAB B bb TAB B bb TAB C cc TAB D dd TAB D dd and what is wanted is to change the first occurrence of B to, for example !1, and the first occurence of D to, for example !2, or anyway something that will not occur by chance, to allow the subsequent editing to work globally on the file. This is what SED does in local mode. 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
Re: sorting advice
On Fri, Jun 19, 2009 at 1:56 PM, Nicolas Cueto nicon...@gmail.com wrote: Well, I found a solution. But maybe someone's got something more elegant. How about: replace . with / in tNaiyo sort lines of tNaiyo ascending dateTime by word 2 of each replace / with . in tNaiyo HTH ___ 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
recording video of a Rev app in action
My Rev app opens files and can then send them to the Dock. I'm trying (with zero success) to make a quicktime video of the file gliding across the screen, into the Dock. Looks cool. All of the 9,283 variations of H264, Apple Animation, mucho fps attempts, and Gawd knows what else seem to be unable to handle this. Anybody know a magic mixture of fps and codec to get this done? btw - I want to place this on the web, so the movie might only be 20 seconds, but it surely cannot be 20 MB. I suspect this goal is not attainable, opinions? sims ___ 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: changing the first occurrence only of a string in a line
Peter, given the sample you provide, I believe this will work: on mouseUp put A aa TAB B bb TAB B bb TAB B bb TAB C cc TAB D dd TAB D dd cr after tData put A aa TAB B bb TAB B bb TAB B bb TAB C cc TAB D dd TAB D dd cr after tData --replace TAB with tab in tData put B 1! cr after tSubs put C 2! cr after tSubs set the wholematches to true repeat for each line tLine in tSubs put word 1 of tLine into tFind put word 2 of tLine into tSubstitute put wordoffset(tFind,tData) into tFoundPos if tFoundPos 0 then put tSubstitute into word tFoundPos of tData end if end repeat put tData end mouseUp However, one of the frustrating things about Rev is that the PCRE engine behind replaceText and matchText is so poorly documented. For example, replaceText can have its functionality altered by the inclusion of modifiers such as (?i) for case insensitive and (?m) for multiline. There are other modifiers (http://uk.php.net/manual/en/reference.pcre.pattern.modifiers.php) some of which are unacceptable, and others that seem to be acceptable. Nowhere have I found these documented with regard to Rev. The (?A) anchored modifier (if it was one of the acceptable tokens) may have worked in your case, but it is apparently unnaceptable. Really you ought to just be able to take your SED expressions and use them with replaceText, as SED expressions are regex AFAIK. There may be some differences between SED and pcre, but since the differences between pcre and Rev are not documented it is vexatious. Bernard On Fri, Jun 19, 2009 at 7:33 AM, Peter Alcibiadespalcibiades-fi...@yahoo.co.uk wrote: How would you do the following in Rev? We have a file consisting of records with tab separated fields. Each field has a tag followed by contents. Some tags occur more than once in some records which thus have varying numbers of fields. Duplicates are always consecutive. I want to eliminate all the occurrences of any tag except the first one. The duplicate tags can occur any place in the record, but if they are duplicated, will always be consecutive. Doing this in SED is not particularly difficult, but it does require going out to shell, and so its not cross platform. You just change the tag using the local scope to something else. SED then only changes the first occurrence in a record. Then you use the global scope and change all of them. Then you go back and change the first one back to what it was. In fact, if using SED like this, the only thing you need it for is to do the local, first tag, change - once this is done, the rest can be done in Rev. But it would be nice to stay in Rev for the whole thing. Is there a way in Rev to pick the first occurence of a string in a record, change it and not subsequent occurences, and then move on to the next record and do the same thing? That is, mimic the 'local' editing mode of SED? Bet you all thought them dinosaurs like SED had to be extinct by now! But no, they are still trampling around in the swamps of text manipulation For the sake of clarity, a record might look like this: A aa TAB B bb TAB B bb TAB B bb TAB C cc TAB D dd TAB D dd and what is wanted is to change the first occurrence of B to, for example !1, and the first occurence of D to, for example !2, or anyway something that will not occur by chance, to allow the subsequent editing to work globally on the file. This is what SED does in local mode. 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: sorting advice
How about: replace . with / in tNaiyo sort lines of tNaiyo ascending dateTime by word 2 of each replace / with . in tNaiyo Tried it and, no, doesn't sort as expected. Thanks all the same. -- Nicolas Cueto ___ 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: recording video of a Rev app in action
Shoot the screen with a video camera, then import using QT pro as H264 - Stephen Barncard San Francisco http://barncard.com 2009/6/19 jim sims s...@ezpzapps.com My Rev app opens files and can then send them to the Dock. I'm trying (with zero success) to make a quicktime video of the file gliding across the screen, into the Dock. Looks cool. All of the 9,283 variations of H264, Apple Animation, mucho fps attempts, and Gawd knows what else seem to be unable to handle this. Anybody know a magic mixture of fps and codec to get this done? btw - I want to place this on the web, so the movie might only be 20 seconds, but it surely cannot be 20 MB. I suspect this goal is not attainable, opinions? sims ___ 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
Windows 7 - any experiences?
Hello, so that RC1 is available for download since some time I would be interested, if anybody already has tested Rev 3.0/3.5 on Windows 7 and would be willing to share his/her experiences? I hadn't the chance yet for a test but I am curious, if and what we have to adapt or is it just running smooth without notice? Thanks for sharing Tiemo ___ 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 advice
Hi Nicolas, Custom sort functions to the rescue! I made a simple stack with 2 fields and a button. The first field contains your original data, and the button has the following script: ## on mouseUp put field 1 into tData sort tData ascending by MyCustomSort(each) put tData into field 2 end mouseUp function MyCustomSort pLine set the itemDelimiter to space put item 2 of pLine into tDate replace .. with / in tDate convert tDate from english date to dateItems set the itemDelimiter to comma put format(%4u%02u%02u, \ item 1 of tDate, \ item 2 of tDate, \ item 3 of tDate) into tSortableDate return tSortableDate end MyCustomSort ## Clicking the button produced the expected results in field 2. The trick is to return from your function a value that will sort the content correctly. In this case, the function will turn 12.3.09 into 20091203, 3.2.04 into 20040302, etc. And those 'MMDD' versions of the date will sort correctly. HTH, 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) --- On Thu, 6/18/09, Nicolas Cueto nicon...@gmail.com wrote: From: Nicolas Cueto nicon...@gmail.com Subject: sorting advice To: How to use Revolution use-revolution@lists.runrev.com Date: Thursday, June 18, 2009, 10:23 PM Still avoiding thinking too much... Given this list (a ref-number followed by a dot-separated date): bg2334 12.21.09 bg9788 1.10.02 bg6554 11.30.11 bg8902 6.6.04 bg4021 2.29.12 bg1210 1.2.02 bg3008 12.3.09 bg5526 5.29.04 what sort-command combo would re-order it ascending by the date to become: bg1210 1.2.02 bg9788 1.10.02 bg5526 5.29.04 bg8902 6.6.04 bg3008 12.3.09 bg2334 12.21.09 bg6554 11.30.11 bg4021 2.29.12 Note that the ref-number and the date are space-separated, and I'm using . instead of the english date's /. Also, the date form is month[1-12, no leading zero], day[1-31], year [00- 09, leading zero]. I'll be experimenting on my own to hit on the magic combination, but in the meantime I thought I'd post a plea since someone is very likely to reply a solution sooner than I can guess one up. Thank you. -- Nicolas Cueto ___ 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: sorting advice
Nicolas, this might a good case for using a custom sort like: on mouseUp put fld 1 into tData sort lines of tData dateTime by toDate(word 2 of each) put tData end mouseUp function toDate pStr replace . with / in pStr return pStr end toDate Best, Mark Smith On 19 Jun 2009, at 06:23, Nicolas Cueto wrote: Still avoiding thinking too much... Given this list (a ref-number followed by a dot-separated date): bg2334 12.21.09 bg9788 1.10.02 bg6554 11.30.11 bg8902 6.6.04 bg4021 2.29.12 bg1210 1.2.02 bg3008 12.3.09 bg5526 5.29.04 what sort-command combo would re-order it ascending by the date to become: bg1210 1.2.02 bg9788 1.10.02 bg5526 5.29.04 bg8902 6.6.04 bg3008 12.3.09 bg2334 12.21.09 bg6554 11.30.11 bg4021 2.29.12 Note that the ref-number and the date are space-separated, and I'm using . instead of the english date's /. Also, the date form is month[1-12, no leading zero], day[1-31], year [00- 09, leading zero]. I'll be experimenting on my own to hit on the magic combination, but in the meantime I thought I'd post a plea since someone is very likely to reply a solution sooner than I can guess one up. Thank you. -- Nicolas Cueto ___ 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: Best practice: how to write local plugin functions for library handlers?
Thanks Andre - good to know someone else likes indexing code and dynamically generating it - you can do great things coupling that with introspection. I don't think that helps with the aim here which is minimal scripting effort - equivalent to calling a normal library function, but one you can customise with your own local test functions. I've simplified it a bit and got rid of the call to executioncontexts I was using: function script_CallingObject return item 1 of line -3 of the executioncontexts end script_CallingObject and pass the long id of me to the library function if the default target won't do. I'm using getprop handlers in the local script as I prefer the simplicity of the syntax and speed. I'll take a look at the XmlRpc server code though - have you got a link to the latest version? - are you using an array to define the xmlrpc call and passing that to the library handlers? - think that is a great technique as you get named params where the order no longer matters and avoid huge lists of params. 2009/6/18 Andre Garzia an...@andregarzia.com David, I don't know if I really understood the problem so pardon me if I give you a non-solution. When I don't know in advance what functions I will be calling during runtime, I usually do the following. First I create a global array with elements which are also arrays, this stored elements have the following keys: name - a generic name for a given function, it need not be tied to the function real name. method - the real function/handler name of a given function or handler type - if it is a function or a handler/command target - a long id to the function/handler is available. so a hello world might look like this: myHelloA[name] = helloworld myHelloA[method] = mySweetHelloWorld myHelloA[type] = command myHelloA[target] = stack hello.rev With an array of such elements, I have a dictionary of available functions. If you loops this array you can depending on the type, assemble a dispatch or a value call. So to add more tests, you just add more elements to the global storage array. I use a similar code in my xmlrpc server and it works fine. Generating code chunks at runtime and executing them might be easier to maintain than a catch all code. I like generating code at runtime. If you're only executing inside the IDE then you don't need do, you can create a temp stack, set the script of it to your runtime generated piece and call it. No penalty there. Hope this helps andre On Thu, Jun 18, 2009 at 8:07 AM, David Bovill da...@architex.tv wrote: Say we have a complex, but generally useful handler that loops through a lot of things, and want to call a function on each element found. For example it may be a search function that loops through all objects in a stack, or a process' function that loops through certain nodes in an XML file. Now there may be all sorts of test functions that we would like to call during this search - the question is how to structure the library handler and be able to call custom test functions / handlers in the local script you are working on? -- 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 ___ 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: Windows 7 - any experiences?
Hi Tiemo, so that RC1 is available for download since some time I would be interested, if anybody already has tested Rev 3.0/3.5 on Windows 7 and would be willing to share his/her experiences? I hadn't the chance yet for a test but I am curious, if and what we have to adapt or is it just running smooth without notice? I recently built an Intel Core i7 machine with 6GB of RAM, so I've been trying to decide on a 64-bit operating system. I liked Windows 7 a lot. Much snappier than Windows Vista. Lots of updated drivers. A smarter UAC. I would probably use it except for two problems: 1) I prefer the Vista/XP task bar. And 2) there is no upgrade path from RC1 to the shipping version of Windows 7; you will have to do a clean install when it ships. I noticed no difference in Rev behvior between Vista and Windows 7. - Bill ___ 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: recording video of a Rev app in action
On Jun 19, 2009, at 10:48 AM, stephen barncard wrote: Shoot the screen with a video camera, then import using QT pro as H264 Thanks Stephen. My iSight camera was a bit too poor quality for the job, however your suggestion of doing a high quality version and then setting up for export did the trick. Used Apple Animation at 40 fps with iShowYou, then exported that video as H264. 10.6 MB to 696 KB. Looks quite acceptable for this job also. Thanks! sims ___ 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
AW: Windows 7 - any experiences?
Thanks Bill, sounds fine :) Tiemo -Ursprüngliche Nachricht- Von: use-revolution-boun...@lists.runrev.com [mailto:use-revolution- boun...@lists.runrev.com] Im Auftrag von Bill Marriott Gesendet: Freitag, 19. Juni 2009 12:07 An: use-revolution@lists.runrev.com Betreff: Re: Windows 7 - any experiences? Hi Tiemo, so that RC1 is available for download since some time I would be interested, if anybody already has tested Rev 3.0/3.5 on Windows 7 and would be willing to share his/her experiences? I hadn't the chance yet for a test but I am curious, if and what we have to adapt or is it just running smooth without notice? I recently built an Intel Core i7 machine with 6GB of RAM, so I've been trying to decide on a 64-bit operating system. I liked Windows 7 a lot. Much snappier than Windows Vista. Lots of updated drivers. A smarter UAC. I would probably use it except for two problems: 1) I prefer the Vista/XP task bar. And 2) there is no upgrade path from RC1 to the shipping version of Windows 7; you will have to do a clean install when it ships. I noticed no difference in Rev behvior between Vista and Windows 7. - Bill ___ 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
internal audioclips - file on hd?
Hi all, can someone give me a hint if and how one can export imported audioclips from a stack back to a file? I already tried the suggestion of Mark Schoneville in the RR forum: ... put the text of ac xyz.aif into tVar put tVar into url(binfile:...) ... but that only resulted in a small file with the content 1??? ... put ac xyz.aif into url(binfile:...) ... also does not work. Any hints or working examples very welcome :-) Best Klaus -- Klaus Major http://www.major.on-rev.com kl...@major.on-rev.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: internal audioclips - file on hd?
Hello Klaus, a few years back I remember suggesting Runtime Revolution build sound file export into its IDE . . . . old chestnut. I believe that sound file export from RR would be a huge advantage. kl...@major.on-rev.com wrote: Hi all, can someone give me a hint if and how one can export imported audioclips from a stack back to a file? I already tried the suggestion of Mark Schoneville in the RR forum: ... put the text of ac xyz.aif into tVar put tVar into url(binfile:...) ... but that only resulted in a small file with the content 1??? ... put ac xyz.aif into url(binfile:...) ... also does not work. Any hints or working examples very welcome :-) Best Klaus -- Klaus Major http://www.major.on-rev.com kl...@major.on-rev.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: internal audioclips - file on hd?
Correction! Hi all, can someone give me a hint if and how one can export imported audioclips from a stack back to a file? I already tried the suggestion of Mark Schoneville in the RR forum: ... put the text of ac xyz.aif into tVar put tVar into url(binfile:...) ... but that only resulted in a small file with the content 1??? That did not produce a file but gave me an error: Object does not have this property ... put ac xyz.aif into url(binfile:...) ... also does not work. This resulted in a text file with the content 1 Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.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: internal audioclips - file on hd?
Sorry Klaus, it seems that my suggestion works with videoclips only. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering http://economy-x-talk.com Snapper Screen Recorder 2.1 http://snapper.economy-x-talk.com If you sent me an e-mail before 25 May and haven't got a reply yet, please send me a reminder. On 19 jun 2009, at 12:25, kl...@major.on-rev.com wrote: Hi all, can someone give me a hint if and how one can export imported audioclips from a stack back to a file? I already tried the suggestion of Mark Schoneville in the RR forum: ... put the text of ac xyz.aif into tVar put tVar into url(binfile:...) ... but that only resulted in a small file with the content 1??? ... put ac xyz.aif into url(binfile:...) ... also does not work. Any hints or working examples very welcome :-) Best Klaus -- Klaus Major http://www.major.on-rev.com kl...@major.on-rev.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: internal audioclips - file on hd?
Recently, kl...@major.on-rev.com wrote: can someone give me a hint if and how one can export imported audioclips from a stack back to a file? Back in 2006, the answer was no. http://www.nabble.com/Exporting-sound-from-RR--to522.html#a5292224 Not sure about today. Regards, Scott Rossi Creative Director Tactile Media, Multimedia 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: internal audioclips - file on hd?
Hi Mark, Sorry Klaus, it seems that my suggestion works with videoclips only. Ah, that is at least something ;-) -- Best regards, Mark Schonewille Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.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: internal audioclips - file on hd?
Hi Scott, Recently, kl...@major.on-rev.com wrote: can someone give me a hint if and how one can export imported audioclips from a stack back to a file? Back in 2006, the answer was no. http://www.nabble.com/Exporting-sound-from-RR--to522.html#a5292224 ah, I see, thanks, too bad :-/ Not sure about today. Regards, Scott Rossi Creative Director Tactile Media, Multimedia Design Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.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: changing the first occurrence only of a string in a line
I'm not going toanswer your direct question (replace first occurrence) because that is a subset of the whole question, which I think is more interesting :-) How would I remove the duplicates as described below ? (I have assumed that in each field the tag is separated from the content by a space, so used 'word' to extract the tag) [I tested this in the msg box] put A aaa tab B bbb tab B bb2 C ccc cr into tData put A a2a tab B b2b tab B 2b2 C ccc tab C cc2 cr after tData set the itemDel to tab repeat for each line L in tData put empty into lastTag put empty into tLine repeat for each item itm in L if word 1 of itm lastTag then put itm tab after tLine put word 1 of itm into lastTag end if end repeat delete the last char of tLine -- trailing tab character put tLine cr afer tOutput end repeat put tOutput -- Alex. Peter Alcibiades wrote: How would you do the following in Rev? We have a file consisting of records with tab separated fields. Each field has a tag followed by contents. Some tags occur more than once in some records which thus have varying numbers of fields. Duplicates are always consecutive. I want to eliminate all the occurrences of any tag except the first one. The duplicate tags can occur any place in the record, but if they are duplicated, will always be consecutive. Doing this in SED is not particularly difficult, but it does require going out to shell, and so its not cross platform. You just change the tag using the local scope to something else. SED then only changes the first occurrence in a record. Then you use the global scope and change all of them. Then you go back and change the first one back to what it was. In fact, if using SED like this, the only thing you need it for is to do the local, first tag, change - once this is done, the rest can be done in Rev. But it would be nice to stay in Rev for the whole thing. Is there a way in Rev to pick the first occurence of a string in a record, change it and not subsequent occurences, and then move on to the next record and do the same thing? That is, mimic the 'local' editing mode of SED? Bet you all thought them dinosaurs like SED had to be extinct by now! But no, they are still trampling around in the swamps of text manipulation For the sake of clarity, a record might look like this: A aa TAB B bb TAB B bb TAB B bb TAB C cc TAB D dd TAB D dd and what is wanted is to change the first occurrence of B to, for example !1, and the first occurence of D to, for example !2, or anyway something that will not occur by chance, to allow the subsequent editing to work globally on the file. This is what SED does in local mode. ___ 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
XML name spaces
Shameless plug for votes for this bug report: While the xmlns issue is fixed we still can't use the common and basic name spaces in attributes. Take this RSS example and try it in the message box: get ?xml version='1.0' encoding='UTF-8'?rss version='2.0' xmlns:atom=' http://www.w3.org/2005/Atom' xmlns:content=' http://purl.org/rss/1.0/modules/content/'channel/channel/rss put revCreateXMLTree(it, true, true, false) into treeID put revXMLAttributes(treeID, rss, tab, CR) Only one value for xmlns is returned. We cannot work with any number of XML based web services until this matter is resolved. The example is just a common example, but it comes up very often with most of the major web services. What we need returned is the entire attribute name including the name space - so xmlns:atom and xmlns:content - there is very little point in returning the name space without the attribute name. If others are having this issue could you vote on the report found herehttp://quality.runrev.com/qacenter/show_bug.cgi?id=7586- it applies to any handler dealing with XML attributes not justt revXmlAttribute ___ 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: XML name spaces
David, Praise the Gods of Hack! do this before creating the xml replace : with - in tXML and put the colons back afterwards. :-) then you can query for xmlns-atom or xmlns-content :P (if your content has colons in it, then replace the namespaces) On Fri, Jun 19, 2009 at 10:56 AM, David Bovill da...@architex.tv wrote: Shameless plug for votes for this bug report: While the xmlns issue is fixed we still can't use the common and basic name spaces in attributes. Take this RSS example and try it in the message box: get ?xml version='1.0' encoding='UTF-8'?rss version='2.0' xmlns:atom=' http://www.w3.org/2005/Atom' xmlns:content=' http://purl.org/rss/1.0/modules/content/'channel/channel/rss put revCreateXMLTree(it, true, true, false) into treeID put revXMLAttributes(treeID, rss, tab, CR) Only one value for xmlns is returned. We cannot work with any number of XML based web services until this matter is resolved. The example is just a common example, but it comes up very often with most of the major web services. What we need returned is the entire attribute name including the name space - so xmlns:atom and xmlns:content - there is very little point in returning the name space without the attribute name. If others are having this issue could you vote on the report found herehttp://quality.runrev.com/qacenter/show_bug.cgi?id=7586- it applies to any handler dealing with XML attributes not justt revXmlAttribute ___ 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: internal audioclips - file on hd?
Surely something needs to be done about this: http://forums.runrev.com/phpBB2/viewtopic.php?t=349sid=d105e2a578f712080eb780364a7c6e73 http://lists.runrev.com/pipermail/use-revolution/2003-December/027985.html maybe a Mass Shout at the Edinburgh conference! :) kl...@major.on-rev.com wrote: Hi all, can someone give me a hint if and how one can export imported audioclips from a stack back to a file? I already tried the suggestion of Mark Schoneville in the RR forum: ... put the text of ac xyz.aif into tVar put tVar into url(binfile:...) ... but that only resulted in a small file with the content 1??? ... put ac xyz.aif into url(binfile:...) ... also does not work. Any hints or working examples very welcome :-) Best Klaus -- Klaus Major http://www.major.on-rev.com kl...@major.on-rev.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
Rev Internet Lib reads wrong registry keys for proxy settings
Hello, some time ago I opened a thread, where my http requests didn't got an internet connection with different proxy errors and timeouts at some Win customers of mine, especially a school. After weeks of research the admin of the school found the problem. The rev internet library reads the proxy informations out of the HKCU user keys and not as most other programs from the HKLM machine keys. Because a school keeps all of these datas of their group policy in the HKLM keys, my rev program doesn't finds the internet. And I had to agree, that it doesn't makes sense to define proxy informations per user and not per machine. I have searched the QCC but didn't found anything comparable. Either used the wrong search keys or there isn't a case yet. Has anybody ever encountered a similar problem? Would you say this is a logical bug in rev or am I wrong in my research conclusion? Thanks for your thoughts Tiemo ___ 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: XML name spaces
Ooooh! Ugly :) Go on just vote for it - you know you want to (especially if you want to allow colons or even smileys in RSS fields from your shiny blog :) 2009/6/19 Andre Garzia an...@andregarzia.com David, Praise the Gods of Hack! do this before creating the xml replace : with - in tXML and put the colons back afterwards. :-) then you can query for xmlns-atom or xmlns-content :P (if your content has colons in it, then replace the namespaces) On Fri, Jun 19, 2009 at 10:56 AM, David Bovill da...@architex.tv wrote: Shameless plug for votes for this bug report: While the xmlns issue is fixed we still can't use the common and basic name spaces in attributes. Take this RSS example and try it in the message box: get ?xml version='1.0' encoding='UTF-8'?rss version='2.0' xmlns:atom=' http://www.w3.org/2005/Atom' xmlns:content=' http://purl.org/rss/1.0/modules/content/'channel/channel/rss put revCreateXMLTree(it, true, true, false) into treeID put revXMLAttributes(treeID, rss, tab, CR) Only one value for xmlns is returned. We cannot work with any number of XML based web services until this matter is resolved. The example is just a common example, but it comes up very often with most of the major web services. What we need returned is the entire attribute name including the name space - so xmlns:atom and xmlns:content - there is very little point in returning the name space without the attribute name. If others are having this issue could you vote on the report found herehttp://quality.runrev.com/qacenter/show_bug.cgi?id=7586- it applies to any handler dealing with XML attributes not justt revXmlAttribute ___ 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 ___ 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: Windows 7 - any experiences?
Bill, I think you can set the UI of Windows 7 to use XP theme or whatever they call it. Like switch off the Aero stuff (or is it called glass) Cheers andre On Fri, Jun 19, 2009 at 7:07 AM, Bill Marriott w...@wjm.org wrote: Hi Tiemo, so that RC1 is available for download since some time I would be interested, if anybody already has tested Rev 3.0/3.5 on Windows 7 and would be willing to share his/her experiences? I hadn't the chance yet for a test but I am curious, if and what we have to adapt or is it just running smooth without notice? I recently built an Intel Core i7 machine with 6GB of RAM, so I've been trying to decide on a 64-bit operating system. I liked Windows 7 a lot. Much snappier than Windows Vista. Lots of updated drivers. A smarter UAC. I would probably use it except for two problems: 1) I prefer the Vista/XP task bar. And 2) there is no upgrade path from RC1 to the shipping version of Windows 7; you will have to do a clean install when it ships. I noticed no difference in Rev behvior between Vista and Windows 7. - Bill ___ 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: Windows 7 - any experiences?
I liked Windows 7 a lot. Much snappier than Windows Vista. Lots of updated drivers. A smarter UAC. I would probably use it except for two problems: 1) I prefer the Vista/XP task bar. And 2) there is no upgrade path from RC1 to the shipping version of Windows 7; you will have to do a clean install when it ships. Granted, I'm running it virtualized on my Mac, but my XP Pro virtuallized seems to me to run considerably faster than W7. I havent' compared it to Vista (skipped Vista alltogether) Windows 7 Hmm Seven... LOL Same Exact Vista Except Number? ___ 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
EduTainment Titles
With the advent of Rev Stacks running inside a browser, there is interest here in our shop with the idea of doing educational stackware. The perception that such titles by CD would probably never do well compared to a) distributing printed materials b) PDF's of the same c) Some Browser app led to us never putting any energy into educational stackware. The run a stack in a browser changes the equation, big time. I'm interested in purchasing some existing well done eduware done in Revolution, either by downloads or on CD's as studies of examples. I should add that since the team here is somewhat advanced in terms of graphic design, the first impression based on the eye candy factor of your titles will be pretty high...with gorgeous GUI will fly better (= the Scott Rossi Factor). But simple is also fine. Please contact me off list with any titles and points of purchase, edu-tainment (games that teach) are also OK. Thanks Sivakatirswami ka...@hindu.org ___ 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: EduTainment Titles
Sivakatirswami wrote: With the advent of Rev Stacks running inside a browser, there is interest here in our shop with the idea of doing educational stackware. The perception that such titles by CD would probably never do well compared to a) distributing printed materials b) PDF's of the same c) Some Browser app This raises a question that I haven't seen a simple answer to: Are there methods for each platform by which an application could assign itself as the helper app for a given file type extension when linked to within a web page? This would let any of us make player apps for stuff, and just clicking it would download and run it like iTunes links. Doable? I realize that's not nearly as convenient as the browser plugin, but that plugin is still several months away and when it's available it won't have an offline mode that one could build into a player (file I/O and other normal options available to apps but verboten for plugins). -- Richard Gaskin Fourth World Revolution training and consulting: http://www.fourthworld.com Webzine for Rev developers: http://www.revjournal.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Engine Search tool
I'm trying to start using Rev Online more for the little tools I build, so... I just uploaded a Rev Engine Search tool (suitable as plugin). This tool lets you search the Revolution engine itself for any string that exists in the Rev engine itself. It's for people like me who enjoy snooping. For example, if you want to know all the Rev vocabulary terms (documented or not) containing trace, type trace (without quotes) into the search field and press Enter. The search results will be displayed in the Results list field. The latest version includes a filter to remove list entries that begin with _ (reduces clutter). -- Phil Davis PDS Labs Professional Software Development http://pdslabs.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: sorting advice
On Fri, Jun 19, 2009 at 4:26 PM, Nicolas Cueto nicon...@gmail.com wrote: How about: replace . with / in tNaiyo sort lines of tNaiyo ascending dateTime by word 2 of each replace / with . in tNaiyo Tried it and, no, doesn't sort as expected. Please explain further. Using the data you provided I got exactly the same result you wanted as specified in your first post! If you got the right result for your example, but a different result with different data then could you provide examples of where the sort goes wrong so I can see how to account for the different data. On the other hand, if using the data you supplied you get a different answer to the one you supplied then there must be a bug somewhere. Why would my system correctly sort by dateTime and yours not. If this is the case then either it's a bug with Rev, and should be reported, or a 'feature' of Rev which needs to be noted; ie, on particular operating systems with particular system languages the sort by dateTime may not work. So we need to know why your sort doesn't work 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
Re: EduTainment Titles
Richard Gaskin wrote: Sivakatirswami wrote: With the advent of Rev Stacks running inside a browser, there is interest here in our shop with the idea of doing educational stackware. The perception that such titles by CD would probably never do well compared to a) distributing printed materials b) PDF's of the same c) Some Browser app This raises a question that I haven't seen a simple answer to: Are there methods for each platform by which an application could assign itself as the helper app for a given file type extension when linked to within a web page? This would let any of us make player apps for stuff, and just clicking it would download and run it like iTunes links. Doable? I realize that's not nearly as convenient as the browser plugin, but that plugin is still several months away and when it's available it won't have an offline mode that one could build into a player (file I/O and other normal options available to apps but verboten for plugins). -- Richard Gaskin Agree, an unhobbled option would be very useful. I've also proposed in the past that this helper application/Player, just like iTunes only comes from Apple, (Real Player from Real, Flash from Adobe etc.) be available from an official RunRev site. I can see security issues being of some concern, obviously, but if Apple and Adobe can do it, why not RunRev in Edinburgh? With the widespread sterotypical perception of the strodgy conservatism of UK, trust factor for a product from Edinborough will be very high (smile) vs. every Tom, Dick US Cowboy and Cowgirl Revolution programmer offering their own helper app. Just kidding.. but you get the point. ___ 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