Re: Search / replace
Glen Bojsza wrote: Sorry to bother everyone but either I'm tired or brain dead. I have a field which has hundreds of lines. For all [ in the field I need to check to see if the character to it's immediate left is a number. If it is a number then the [ is to be converted into an _. If it is not a number then the [ is to be removed (no substitution or spaces). I need to be able to cycle through the entire field which each line may contain several [. Any thoughts would be appreciated as I have tried using a combination of find characters and foundchunk on the field without success. This sounds like a perfect job for the replacetext command; regular expressions are ideal for this kind of problem. You won't need any loops, though you may need to run it twice, once to get all the brackets followed by numbers, and a second time to remove the single brackets. If Alex or Ken or someone else doesn't step in first, I'll see if I can get the regex worked up for you tomorrow. Maybe someone even knows how to test for both situations and replacements in the same expression. I know there's a way to do that but I'm not sure how. At any rate, once you get the right regex figured out, it's a one-liner to do what you want. -- 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] Languages and cultures (was Re: survey)
Kay C Lan wrote: OK, I wasn't going to say anything, but seeings you are stumped, just think of the other benefits the Gay family enjoys... Divorces must be cheap, all you need do is move to a State where Gay marriages aren't recognized ;-) I'll keep that in mind. :) So far we still like each other though. -- 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] Languages and cultures (was Re: survey)
On 20/02/2010 10:23, J. Landman Gay wrote: Kay C Lan wrote: OK, I wasn't going to say anything, but seeings you are stumped, just think of the other benefits the Gay family enjoys... Divorces must be cheap, all you need do is move to a State where Gay marriages aren't recognized ;-) I'll keep that in mind. :) So far we still like each other though. All I can say is that, despite being boringly monogamous and heterosexual I am almost continually Happy, Bright and Gay AND . . . How a word that 500 years ago meant heterosexually loose managed to go via Jolly to what it means now entirely escapes me - 'tis very queer . . . :) --- Currently I am working on a paper for a Linguistics conference that will be held in Bucharest in June. It largely revolves about a diachronic analysis of meanings of the English word 'pig' (or, homonyms thereof) in comparison with the Bulgarian word 'prase' (= 'pig'); so we can say that for the next few months I will be pigging it. -- Back to the word 'Gay' . . . from a diachronic perspective it looks as though there has been one word whose meaning has changed over time; in fact in certain dialect regions of England the earlier sense of 'jolly' coexists beside its current 'homosexual' meaning. Now the question/problem is whether users of 'gay' in those areas where the 2 senses are used actually perceive them as 2 senses of the same word (Polysemy) or whether they perceive them as 2 separate words that sound the same (Homonymy) - should they be unaware of the diachronic history of 'gay' they may be inclined to see 'gay' 'gay' as 2 distinct words. Certainly it would be quite difficult to work out the semantic step from 'jolly' to 'homosexual' unless, of course, there was an awareness of the even earlier sense of 'heterosexual looseness'. A cognitive radial category diagram for 'gay' would probably not work as there do not seem to be speech communities that have or had concepts that somehow connected jollity with being homosexual. Neither polysemy nor homonyny exist as external 'things', being psychological categories that came about as there was a perceived need to make language as efficient as possible; polysemy being concerned with efficiency in regard to conceptualisation, homonymy in regard to formality. This is probably more easily understood if we fall back on the ideas of FUNCTION versus FORM. Sorry, chaps, wearing one of my other hats for a bit there . . . :) ___ 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] Languages and cultures (was Re: survey)
OK, I wasn't going to say anything, but seeings you are stumped, just think of the other benefits the Gay family enjoys... Divorces must be cheap, all you need do is move to a State where Gay marriages aren't recognized ;-) I'll keep that in mind. :) So far we still like each other though. All I can say is that, despite being boringly monogamous and heterosexual I am almost continually Happy, Bright and Gay AND . . . How a word that 500 years ago meant heterosexually loose managed to go via Jolly to what it means now entirely escapes me - 'tis very queer . . . :) I think it is changing again. My teenage sons refer to anything they don't like as being gay. So a difficult assignment is gay; missing the bus is gay; a teacher who growls at them is gay. It doesn't have to be a person, and while it has certainly not reverted to it's original meaning, it is losing it's homosexual connotations. But maybe that is just here in Australia. Cheers, Sarah P.S. Sorry Jacque - I'm sure they wouldn't think that you were gay :-) ___ 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: Search / replace
This sounded like a fun puzzle to solve: On 20/02/2010, at 7:17 PM, J. Landman Gay wrote: Glen Bojsza wrote: Sorry to bother everyone but either I'm tired or brain dead. I have a field which has hundreds of lines. For all [ in the field I need to check to see if the character to it's immediate left is a number. If it is a number then the [ is to be converted into an _. If it is not a number then the [ is to be removed (no substitution or spaces). I need to be able to cycle through the entire field which each line may contain several [. Any thoughts would be appreciated as I have tried using a combination of find characters and foundchunk on the field without success. This sounds like a perfect job for the replacetext command; regular expressions are ideal for this kind of problem. You won't need any loops, though you may need to run it twice, once to get all the brackets followed by numbers, and a second time to remove the single brackets. If Alex or Ken or someone else doesn't step in first, I'll see if I can get the regex worked up for you tomorrow. Maybe someone even knows how to test for both situations and replacements in the same expression. I know there's a way to do that but I'm not sure how. At any rate, once you get the right regex figured out, it's a one-liner to do what you want. I tried using replaceText(), but the problem is that it replaces the *entire* text which is 'recognised' by the regex. That would cause problems here. For instance, pinpointing all the [ characters that are not preceded by a number is easy via regex - the regex is [^0-9]\[. But the problem is that the 'replaceText' command will identify and replace *everything* in my expression, not just part of it. So, if in this case I ask it to: replaceText( field sourceField, [^0-9]\[, empty) ... it not only deletes the '[', but also the number preceding it. I came across problems with matchChunk, too, but for a different reason. I wanted to use it in a loop, so I could delete the required parts of each match. Unfortunately, even though it was returning 'true' to my regex - it *was* finding matches - it refused to populate my 'positionvars', so it was useless. I ended up writing a simple repeat loop, which seems to have done the trick: repeat with x = number of chars in field sourceField down to 1 if char x of field sourceField is not [ then next repeat if char (x-1) of field sourceField is a number then put _ into char x of field sourceField else put empty into char x of field sourceField end repeat I hope this helps! -- Igor de Oliveira Couto Sydney, Australia ___ 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] Languages and cultures (was Re: survey)
We should definitively start a new list dedicated to linguistic questions ! Sorry for falling in it too... To come back to the french equivalent of fortnight (quinze jours, quinzaine). I realised it's quite logical, despite the opinion of Francis (or at least it was logical till the sixties when they were 6 working days in the week). If you have two weeks holidays, you are free for fifteen days, counting the sundays before and after the working weeks. The same for huit jours, huitaine. To Richmond: the etymology of french pigs, cochon, is strictly unknown... some people suggest the farmers called them cosh,cosh when feeding them. To Richmond and Jacque: in french, a gay is often called a tante (rather pejorative) - what to do with our poor aunts ? And gai firmly keeps it's jolly meaning, as we are using the english spelling for the other meaning. Jacques Le 20 févr. 2010 à 10:14, Sarah Reichelt a écrit : OK, I wasn't going to say anything, but seeings you are stumped, just think of the other benefits the Gay family enjoys... Divorces must be cheap, all you need do is move to a State where Gay marriages aren't recognized ;-) I'll keep that in mind. :) So far we still like each other though. All I can say is that, despite being boringly monogamous and heterosexual I am almost continually Happy, Bright and Gay AND . . . How a word that 500 years ago meant heterosexually loose managed to go via Jolly to what it means now entirely escapes me - 'tis very queer . . . :) I think it is changing again. My teenage sons refer to anything they don't like as being gay. So a difficult assignment is gay; missing the bus is gay; a teacher who growls at them is gay. It doesn't have to be a person, and while it has certainly not reverted to it's original meaning, it is losing it's homosexual connotations. But maybe that is just here in Australia. Cheers, Sarah P.S. Sorry Jacque - I'm sure they wouldn't think that you were gay :-) ___ 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 ** Prof. Jacques Hausser Department of Ecology and Evolution Biophore / Sorge University of Lausanne CH 1015 Lausanne please use my private address: 6 route de Burtigny CH-1269 Bassins tel/fax:++ 41 22 366 19 40 mobile: ++ 41 79 757 05 24 E-Mail: jacques.haus...@unil.ch *** ___ 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
from htmlText to rawtext
How can I change the text in a field from htmltext to rawtext? Martin ___ 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] Languages and cultures (was Re: survey)
On Sat, Feb 20, 2010 at 9:14 AM, Sarah Reichelt sarah.reich...@gmail.com wrote: I think it is changing again. My teenage sons refer to anything they don't like as being gay. So a difficult assignment is gay; missing the bus is gay; a teacher who growls at them is gay. It doesn't have to be a person, and while it has certainly not reverted to it's original meaning, it is losing it's homosexual connotations. But maybe that is just here in Australia. Not just limited to Australia, I've heard that usage on South Park for years. I've no idea if South Park was creating or following a trend. Clearly we've now lost the use of that charming little word. Although in all truth, I think homos had been feeling 'gay' was a rather 70s word and was now as unfashionable as flared corduroy trousers. (Hang on, I think they came back in and went out again a few years ago...) Anyway, homos have got a variety of other epithets (hostile and/or clinical) by which they can described. Now that the majority of people describe themselves as 'straight' or 'heterosexual', we are in a different world from the late 1960s when gay people (along with black people) started to declare terms they wanted the majority to use to describe these minorities. I still have some old manifestos of the Gay Liberation Front -- they are hilarious. But I think the world I grew up in was already quite different from the world where those were written. Back then straight people would describe themselves as normal i.e. they didn't have a term for themselves. There's even videos from the 1980s of people being interviewed on the streets of London, and when asked are you heterosexual they would reply no, I'm married. Since then we've had metrosexuals, transexuals ('men giving birth'?), gay coming to mean 'naff''. I doubt there's anyone left in the UK who doesn't know the difference between heterosexual/homosexual. Personally I've always thought queer was suitable for gay people -- I've always found people who wanted to be normal to be rather creepy. Being oneself I can understand, but suppressing individuality to go with the crowd seems to reduce us to sheep. Mind you, queer would then become an inclusive term that meant 'those who resist being normalized'. I'm sure there's more than a few people on this list who would describe themselves as 'queer'. Having married a man recently, I certainly feel less than outré than in my youth. Bernard ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: from htmlText to rawtext
Hi Martin, As I suggested yesterday: put the text of fld X into fld X HTH Jacques Le 20 févr. 2010 à 11:17, Martin Meili a écrit : How can I change the text in a field from htmltext to rawtext? Martin ___ 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 ** Prof. Jacques Hausser Department of Ecology and Evolution Biophore / Sorge University of Lausanne CH 1015 Lausanne please use my private address: 6 route de Burtigny CH-1269 Bassins tel/fax:++ 41 22 366 19 40 mobile: ++ 41 79 757 05 24 E-Mail: jacques.haus...@unil.ch *** ___ 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
peoples choice
Hello World In an attempt to reawaken my long dormant hypertalk skills I'm trying to build a Runrev stack that allows visitors to an exhibition to vote for a numbered photograph, store the choice and give a 'current votes' result. I expect there is a Peoples Choice stack somewhere in the archive and would be grateful for pointers to it. bw from Bath UK JL John Law Panoramas www.john-law.org.uk m...@john-law.org.uk 01225 339590 ___ 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: Search / replace
Le 20 févr. 2010 à 10:28, Igor de Oliveira Couto a écrit : I came across problems with matchChunk, too, but for a different reason. I wanted to use it in a loop, so I could delete the required parts of each match. Unfortunately, even though it was returning 'true' to my regex - it *was* finding matches - it refused to populate my 'positionvars', so it was useless. if I remember well, to get the 'positionvars' populated, they must be initialized before (put 0 in...) and the regex must be in parentheses. Jacques ** Prof. Jacques Hausser Department of Ecology and Evolution Biophore / Sorge University of Lausanne CH 1015 Lausanne please use my private address: 6 route de Burtigny CH-1269 Bassins tel/fax:++ 41 22 366 19 40 mobile: ++ 41 79 757 05 24 E-Mail: jacques.haus...@unil.ch *** ___ 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: Search / replace
On Sat, Feb 20, 2010 at 11:24 AM, Jacques Hausser jacques.haus...@unil.ch wrote: Le 20 févr. 2010 à 10:28, Igor de Oliveira Couto a écrit : I came across problems with matchChunk, too, but for a different reason. I wanted to use it in a loop, so I could delete the required parts of each match. Unfortunately, even though it was returning 'true' to my regex - it *was* finding matches - it refused to populate my 'positionvars', so it was useless. if I remember well, to get the 'positionvars' populated, they must be initialized before (put 0 in...) and the regex must be in parentheses. Jacques, that was my memory too... but I went back to the dictionary to check, and it appears that the positionVars no longer need to be pre-declared. I did a quick check and it is true. Bernard ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: [OT] Languages and cultures (was Re: survey)
Kay C Lan wrote: On a slightly different note, it's always good to see when someone tries to do the right thing and translate their signs into a foreign language to help tourists. Of course it would help a lot more if they actually used a native speaker, rather than the www: http://www.kirainet.com/images/errortranslate.jpg The correct translation would be Dining Room, or maybe Restaurant, depending on the actual establishment. In Wales, signs have to be bilingual. Quality control is not all it might be though... http://news.bbc.co.uk/2/hi/uk_news/wales/7702913.stm -- I am Not a Number, I am a free NaN ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Search / replace
On 20/02/2010, at 10:47 PM, Bernard Devlin wrote: Jacques, that was my memory too... but I went back to the dictionary to check, and it appears that the positionVars no longer need to be pre-declared. I did a quick check and it is true. I did pre-declare them, and pre-populated them - just in case - and still no luck... :( -- Igor de Oliveira Couto Sydney, Australia ___ 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] Languages and cultures (was Re: survey)
On 20/02/2010 12:21, Bernard Devlin wrote: snip Having married a man recently, I certainly feel less than outré than in my youth. You know, that is rather odd; I am married, and I certainly don't think I ever conceived of myself as getting married to a woman - rather; I got married to Snezha (that is my wife's name), Getting married to a woman and getting married to a man should stop, forthwith, as it degrades the person one loves to some sort of biological entity. Getting married to the person one loves, regardless of their gender, is a serious statement of love and commitment - and I salute Bernard as well as all others who have entered that sacred state . . . :) Nowadays, just getting married, in and of itself, is plain outré, as nowadays, instead of always saying I do like a bit of butter on my bread many people are saying; Now, you can butter your bread roll however you want. http://www.princessoftheworld.com/2009/08/05/nobody-my-darling-could-call-me-a-fussy-man/ ___ 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: peoples choice
2010/2/20 john law m...@john-law.org.uk: Hello World In an attempt to reawaken my long dormant hypertalk skills I'm trying to build a Runrev stack that allows visitors to an exhibition to vote for a numbered photograph, store the choice and give a 'current votes' result. I expect there is a Peoples Choice stack somewhere in the archive and would be grateful for pointers to it. Hi John, Have a look to the Multi Choice Questionaire. You can find this stack in the Sample projects section of the Revolution Resource Center. To access to the Resource Center when you are in Runrev, use the Resource center button in the toolbar, or go to the submenu Resource Center in the Help menu. HTH, Regards -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc ___ 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: peoples choice
Hi John, welcome back to xTalk. Despite what you might think (seeing all the options such as web plugin, web server, database connections, video grabber, etc) Rev is fundamentally still HyperCard. If you can dredge up your old knowledge, I'd guess 80% of it is still useful. Of course, that 80% that still applies with Rev is probably only 40% of what can be done with Rev. I don't know if you've looked through the RevOnline Browser that comes installed with Rev. It's 3rd from the right on the standard menu in the IDE. There are various sample stacks - the left-hand list is the categories under which the stacks were submitted. If you have a look under the media category you will see there is a sample of a slideshow stack there. That might give you some ideas. There was also a stack that was being used recently to demonstrate the capabilities of the web plugin comminicating with the server. I believe the code for that stack was freely available, but I can't find any references to it right now. Have you found the User Guide that comes installed with the IDE? Also, under the Resource Center (2nd from right on IDE menu) there is a heading Sample Projects which contains a Multiple Choice Questionaire stack. BTW, I visited Bath for the first time last year. It is a very beautiful city -- got to be in the top 3 places in the UK. You're a lucky man to live there :-) Bernard ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Search / replace
Jacque wrote: This sounds like a perfect job for the replacetext command... ...there's a way to do that but I'm not sure how. At any rate, once you get the right regex figured out, it's a one-liner to do what you want. Glen, while Jacque works on a regex and after getting some sleep, ;-) here is the correct way to do what you want in a readable Rev loop (replace *FieldName* with the name of your actual field and put this code into a button): on mouseUp pMouseBtnNo put replaceChar([, the text of fld FieldName) into fld FieldName end mouseUp function replaceChar pCharToReplace, pString local tOffset repeat put offset(pCharToReplace,pString) into tOffset if tOffset = 0 then exit repeat if char (tOffset - 1) of pString is an integer then put _ into char tOffset of pString else put empty into char tOffset of pString end if end repeat return pString end replaceChar Aloha from Hawaii, Jim Bufalini ___ 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] Languages and cultures (was Re: survey)
Classic :-) On Sat, Feb 20, 2010 at 8:03 PM, Martin Baxter mb.use...@harbourhosting.co.uk wrote: In Wales, signs have to be bilingual. Quality control is not all it might be though... http://news.bbc.co.uk/2/hi/uk_news/wales/7702913.stm -- I am Not a Number, I am a free NaN ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ 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: Search / replace
On Feb 19, 2010, at 6:57 PM, Glen Bojsza wrote: I have a field which has hundreds of lines. For all [ in the field I need to check to see if the character to it's immediate left is a number. If it is a number then the [ is to be converted into an _. If it is not a number then the [ is to be removed (no substitution or spaces). I need to be able to cycle through the entire field which each line may contain several [. Any thoughts would be appreciated as I have tried using a combination of find characters and foundchunk on the field without success. assuming that the line cr char does not really matter solution without RegEx put fld 1 into originalTextBlock set the linedel to [ repeat for each line LNN in originalTextBlock if word -1 of LNN is a number then put LNN _ after newVersion else put LNN after newVersion end if end repeat set the linedel to cr -- see note below replace (cr _) with (cr [) in newVersion put newVersion into fld 2 --- Just in case there is a line ending in a number and the first char of the next line is '[' and you did not want that specific conversion change is back to a '[' char replace (cr _) with (cr [) in newVersion Brain dead + RegEx = disaster I like and use RegEx, but know that you must be fresh to get it right in less than a fortnight :-) Jim Ault Las Vegas ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Decode in tRev
Mark, I happen to agree with you, objectively speaking—even though I wrote the tool you are praising. We have some improvements to Decoder in the works that will make it even more useful. Since we opened up the tRev API, I'm happy to also report that others are working on plugins to broaden tRev's capabilities. 1. There is a third party modal debugger under construction that will work with tRev (and Rev without tRev). 2. Also under development, a plugin for tRev that will let you write, check syntax, decode and deploy On-Rev CGI scripts. Best, Jerry Daniels The latest Rev Editor Video: http://reveditor.com/background-tabs-open-a-tab-without-going-ther On Feb 19, 2010, at 9:27 PM, Mark Swindell wrote: The more I get familiar with this feature of tRev the more I like it. It's quite a brilliant implementation. Set all the breakpoints you want, and then, after your script has run, go back and step forward and backwards through each breakpoint snapshot, looking into each set of conditions/states just as they occurred at every point along the journey. Just an excellent tool. Mark___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Search / replace
Yes, I discovered that no sleep (5 hours / two days) and trying to solve this was a disaster. It also was a good reminder how good and responsive this list is! I just got some sleep and saw the responses this morning. thanks to everyone, Glen On Sat, Feb 20, 2010 at 6:53 AM, Jim Bufalini j...@visitrieve.com wrote: Jacque wrote: This sounds like a perfect job for the replacetext command... ...there's a way to do that but I'm not sure how. At any rate, once you get the right regex figured out, it's a one-liner to do what you want. Glen, while Jacque works on a regex and after getting some sleep, ;-) here is the correct way to do what you want in a readable Rev loop (replace *FieldName* with the name of your actual field and put this code into a button): on mouseUp pMouseBtnNo put replaceChar([, the text of fld FieldName) into fld FieldName end mouseUp function replaceChar pCharToReplace, pString local tOffset repeat put offset(pCharToReplace,pString) into tOffset if tOffset = 0 then exit repeat if char (tOffset - 1) of pString is an integer then put _ into char tOffset of pString else put empty into char tOffset of pString end if end repeat return pString end replaceChar Aloha from Hawaii, Jim Bufalini ___ 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: Search / replace
Jim Ault wrote: --- Just in case there is a line ending in a number and the first char of the next line is '[' and you did not want that specific conversion change is back to a '[' char replace (cr _) with (cr [) in newVersion Since, in the end, you shouldn't end up with any brackets and, since the bracket is at the beginning of a line and therefore not preceded by a number, it was just mistakenly converted to an _ instead of empty when the line endings were brackets. So, wouldn't the line be?: replace (cr _) with (cr) in newVersion I think we both shouldn't type more than a couple of lines of code freehand into emails. ;-) Last night I had the additional excuses of being at the end of my day, I hadn't eaten, and I was tired. But, even fresh, I know I shouldn't do it. ;-) To slightly change the topic. Isn't Rev grand? A simple text parse (thanks to Rev chuncks), and Kay and I immediately thought of *offset*, Jacque thought of *replaceText* and regex, you thought of *linedel* and there are probably several other totally different ways to do it, all equally efficient. Ya gotta LOVE RevTalk! :-) Aloha from Hawaii, Jim Bufalini ___ 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
Strange menubar problem
I've set up the standard app/file/edit/help menus to be displayed in the OSX menu bar of my app. The menubars property is correctly set to the name of the group containing the menu definitions and the editMenus property is set to false. The menus appear correctly in the OSX menu bar. However, every time I run my app, the main stack window grows in height by a few pixels added to the bottom of the window. This is a cumulative effect so each time the app runs, the the main stack window gets progressively taller. If I manually resize the main stack window then rerun my app, it appears with the height as it was before I manually resized it. I can't find any scripts that would affect the size of the main stack window. The main stack is displayed as a pallette. I'm running rev 4.0 on OSX 10.5. Any clues? Pete Haworth ___ 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: Search / replace
On Feb 20, 2010, at 8:29 AM, Jim Bufalini wrote: Jim Ault wrote: --- Just in case there is a line ending in a number and the first char of the next line is '[' and you did not want that specific conversion change is back to a '[' char replace (cr _) with (cr [) in newVersion Since, in the end, you shouldn't end up with any brackets and, since the bracket is at the beginning of a line and therefore not preceded by a number, it was just mistakenly converted to an _ instead of empty when the line endings were brackets. So, wouldn't the line be?: I made the note because I did not know if a '[' was a legal char that was outside the parsing rules, and Glen should be aware that my routine would need this tweak depending on his final goal. I made the assumption that it might be that all instances of '[' should not be removed, thus Glen can make the choice. replace (cr _) with (cr) in newVersion I think we both shouldn't type more than a couple of lines of code freehand into emails. ;-) Actually, I *always* run my code, then make a copy for the email (without color formatting) It is too easy to dash of lines of code that become confusing, then have to send more emails as corrections. This list is archived and used by new users who don't always know how to spot typos. Such a great list of willing, clever contributors who show their creative solutions for all. Jim Ault Las Vegas ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
How to enter a time of day
I have a need for users to enter a start and end time of an event and I'm trying to come up with a graphical way for them to do that to ensure that the time is in the correct format. What appeals to me the most is to use some sort of slider that would increment/decrement the time of day in 15 minute intervals. I was hoping the rev slider control would be the answer to it but it only seems to deal with whole numbers on its scale, haven't been able to figure out how to deal with time-based numbers. Any recommendations on how to set about implementing this? Pete Haworth ___ 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
Displaying stack images in revBrowser?
Is this possible? I'm never loading an external page as opposed to generating the HTML I want to display. I'd like to put an img src=My_Image in the HTML, but it doesn't work. Any clues? Jeff M.___ 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: How to enter a time of day
use the slider to manipulate the seconds, and convert to time steps on the fly. Don't use the scale of the slider, instead make your own scale alongside. You might find a lookup table faster than conversion. - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev On 20 February 2010 09:12, Peter Haworth p...@mollysrevenge.com wrote: I have a need for users to enter a start and end time of an event and I'm trying to come up with a graphical way for them to do that to ensure that the time is in the correct format. What appeals to me the most is to use some sort of slider that would increment/decrement the time of day in 15 minute intervals. I was hoping the rev slider control would be the answer to it but it only seems to deal with whole numbers on its scale, haven't been able to figure out how to deal with time-based numbers. Any recommendations on how to set about implementing this? Pete Haworth ___ 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: Displaying stack images in revBrowser?
try using full pathnames - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev On 20 February 2010 09:14, Jeffrey Massung mass...@gmail.com wrote: Is this possible? I'm never loading an external page as opposed to generating the HTML I want to display. I'd like to put an img src=My_Image in the HTML, but it doesn't work. Any clues? Jeff M.___ 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: peoples choice
On Feb 20, 2010, at 5:08 AM, Bernard Devlin wrote: BTW, I visited Bath for the first time last year. It is a very beautiful city -- got to be in the top 3 places in the UK. You're a lucky man to live there :-) Bernard John: I definitely agree. Bath is an absolutely beautiful city. We visited from Canada in the summer of 08. Which brings me a way off topic for this list. We will be visiting France in October. Are there any Revers in France who would be willing to communicate, off list, to give a non-bilingual Canadian suggestions as to what to see, do, or avoid particularly in the Vimy- Ridge and Normandy areas? Rick ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to enter a time of day
Hi Peter, I don't know if it would help, but I have a stack at RevOnline called Marty's Sliders that would give you more flexibility and could perhaps be adapted for your use. At the end of the mouseMove handler there's a line that computes a value and puts it into a field to in effect show the thumbPosition of the slider. Marty Knapp I have a need for users to enter a start and end time of an event and I'm trying to come up with a graphical way for them to do that to ensure that the time is in the correct format. What appeals to me the most is to use some sort of slider that would increment/decrement the time of day in 15 minute intervals. I was hoping the rev slider control would be the answer to it but it only seems to deal with whole numbers on its scale, haven't been able to figure out how to deal with time-based numbers. Any recommendations on how to set about implementing this? Pete Haworth ___ 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: Displaying stack images in revBrowser?
What full path name? To be clear: I know I can use file:// and ship the image along with the app as a resource. I'd prefer not to do that and just use the image that's already embedded in the stack file (if possible). Jeff M. On Feb 20, 2010, at 11:22 AM, stephen barncard wrote: try using full pathnames ___ 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: How to enter a time of day
There's some very useful code in Marty's stack - I modified it slightly so as to use a behavior and put the slider components into a group rather than putting the scripts in the buttons, so I could use the same code with any number of sliders. - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev On 20 February 2010 09:35, Marty Knapp martykn...@comcast.net wrote: Hi Peter, I don't know if it would help, but I have a stack at RevOnline called Marty's Sliders that would give you more flexibility and could perhaps be adapted for your use. At the end of the mouseMove handler there's a line that computes a value and puts it into a field to in effect show the thumbPosition of the slider. Marty Knapp I have a need for users to enter a start and end time of an event and I'm trying to come up with a graphical way for them to do that to ensure that the time is in the correct format. What appeals to me the most is to use some sort of slider that would increment/decrement the time of day in 15 minute intervals. I was hoping the rev slider control would be the answer to it but it only seems to deal with whole numbers on its scale, haven't been able to figure out how to deal with time-based numbers. Any recommendations on how to set about implementing this? Pete Haworth ___ 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 ___ 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: How to enter a time of day
You may want to take a look at Windows' task scheduler or whatever it is on the platform you are targeting. While it's possible to come up with something better and easier, I usually find that straying from UI paradigms that users are accustomed to can end up causing a lot of needless pain for the developer: annoying bug reports that aren't really bugs and feature requests to make something act normal. If you want something graphical, I'd make the input a selection (like a date picker) or typed in, and perhaps have an analog clock graphic that can indicate to the user potential problems. My 2 cents. Jeff M. On Feb 20, 2010, at 11:35 AM, Marty Knapp wrote: Hi Peter, I don't know if it would help, but I have a stack at RevOnline called Marty's Sliders that would give you more flexibility and could perhaps be adapted for your use. At the end of the mouseMove handler there's a line that computes a value and puts it into a field to in effect show the thumbPosition of the slider. Marty Knapp I have a need for users to enter a start and end time of an event and I'm trying to come up with a graphical way for them to do that to ensure that the time is in the correct format. What appeals to me the most is to use some sort of slider that would increment/decrement the time of day in 15 minute intervals. I was hoping the rev slider control would be the answer to it but it only seems to deal with whole numbers on its scale, haven't been able to figure out how to deal with time-based numbers. Any recommendations on how to set about implementing this? Pete Haworth ___ 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 ___ 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: Displaying stack images in revBrowser?
That is a very good question. Forgive me for being so abrupt. So is the address supposed to be relative to the stack or to the browser libraries of the host system?? We should know this. - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev On 20 February 2010 09:35, Jeffrey Massung mass...@gmail.com wrote: What full path name? To be clear: I know I can use file:// and ship the image along with the app as a resource. I'd prefer not to do that and just use the image that's already embedded in the stack file (if possible). Jeff M. On Feb 20, 2010, at 11:22 AM, stephen barncard wrote: try using full pathnames ___ 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: Search / replace
If you want do the search/replace with regex, you can do similar to this.. put replaceText(field Field,(?=\d)\[,-) into tTmp put replaceText(tTmp,(?!\d)\[,empty) into tComplete This does a look behind. First setup the look behind with (?=\d) This will match a digit, but only a digit that is next to the \[ that is outside the parens. Basically, if finds the [ then checks to see if there is a digit to the left. If there is, it does the replace of the [. The first is a positive look behind, meaning it will match if the string in parens exist. The 2nd is a negative look behind that will match for any [ that do NOT have a digit to the left of the [. Works really well. If you want to learn more about regex (they can be REALLY amazingly helpful if a bit obtuse to understand) check here. http://www.regular-expressions.info/quickstart.html ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: peoples choice
Hello from Paris (France), What is Revers, Vimy-Ridge Thank you René Le 20 févr. 2010 à 18:32, Rick Rice a écrit : John: I definitely agree. Bath is an absolutely beautiful city. We visited from Canada in the summer of 08. Which brings me a way off topic for this list. We will be visiting France in October. Are there any Revers in France who would be willing to communicate, off list, to give a non-bilingual Canadian suggestions as to what to see, do, or avoid particularly in the Vimy-Ridge and Normandy areas? Rick ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to enter a time of day
Thanks Marty and Jeff. I will take a look at at your stack Marty. Jeff, you raise a good point, I hadn't thought about. I'm mainly running on a Mac and people tend to schedule things with tasks/ appointments in iCal although various third party tools have their own built in schedulers with their own ways of entering times. Pete Haworth ___ 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: Displaying stack images in revBrowser?
Is this possible? I'm never loading an external page as opposed to generating the HTML I want to display. I'd like to put an img src=My_Image in the HTML, but it doesn't work. Any clues? I had the same questions a month or two ago... this solution provided as a courtesy from Shao Sean: You need to embed the image inline as base64 data.. img src=data:[MIMETYPE];base64,[DATA] (note, the square brackets are part of the placeholders and should not appear in the final code) A quick break-down of the syntax img src= -- standard html data: -- tells the parser that we are using inline data instead of a url [MIMETYPE] -- mime type of the image (ie. image/png) ; -- separator base64 -- encoding method (best to stick with base64 for binary data) , -- separator between the 'header' and the 'data' (yes, a comma) [DATA] -- base64 encoded data for the image -- standard html HTH, David C. ___ 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: Search / replace
Mike Bonner wrote: If you want do the search/replace with regex, you can do similar to this.. put replaceText(field Field,(?=\d)\[,-) into tTmp put replaceText(tTmp,(?!\d)\[,empty) into tComplete This does a look behind. Amazing, thank you. I knew there had to be a way to do this but my regex skills aren't good enough. Very nice! -- 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
File Type for DLL
I set the following file types for various files. switch tFileExt case .rev put RevoRSTK into tFileType break case .mc put MCRDMSTK into tFileType break case .doc put MSWDWDOC into tFileType break end switch What would it be for a Windows .dll file? Bill Vlahos _ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. ___ 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: File Type for DLL
Oh, never mind. This is a Windows file and the docs say it is only for Mac files. Bill Vlahos _ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. On Feb 20, 2010, at 12:18 PM, Bill Vlahos wrote: I set the following file types for various files. switch tFileExt case .rev put RevoRSTK into tFileType break case .mc put MCRDMSTK into tFileType break case .doc put MSWDWDOC into tFileType break end switch What would it be for a Windows .dll file? Bill Vlahos _ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. ___ 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] Languages and cultures (was Re: survey)
Richmond Mathewson wrote: Certainly it would be quite difficult to work out the semantic step from 'jolly' to 'homosexual' unless, of course, there was an awareness of the even earlier sense of 'heterosexual looseness'. If I remember right, there was no semantic drift. The group simply decided arbitrarily that gay was the word they wanted to adopt, and then did so. It could easily have been anything else, and if it had been, then some other family would have been getting 3 AM phone calls from 9 year olds who had various, though usually unoriginal, suggestions for us. That all stopped when Caller ID became widespread, btw, for which we remain extremely grateful. -- 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: Displaying stack images in revBrowser?
Ah yes! Forgot about that in HTML. Danke! Jeff M. On Feb 20, 2010, at 1:55 PM, David Coker wrote: Is this possible? I'm never loading an external page as opposed to generating the HTML I want to display. I'd like to put an img src=My_Image in the HTML, but it doesn't work. Any clues? I had the same questions a month or two ago... this solution provided as a courtesy from Shao Sean: You need to embed the image inline as base64 data.. img src=data:[MIMETYPE];base64,[DATA] ___ 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: How to enter a time of day
Pete, If your app runs exclusively on the Mac you may want to just look at integrating iCal into it with AppleScript and handle it that way... When your app launches or whenever is appropriate, let the user select a calendar file that's exclusive to your app. The user could open it in iCal to adjust things or open it through your app. You could likely then use AppleScript to get various date/times from it to do your tasks. I don't use iCal (much) and have never looked to see what functionality is provided for it through AppleScript. But you may end getting a very win-win out of this: let the user thing awesome! because it just works with iCal and let's you relax and let iCal do most of the heavy lifting in this department. :-) Jeff M. On Feb 20, 2010, at 1:17 PM, Peter Haworth wrote: Thanks Marty and Jeff. I will take a look at at your stack Marty. Jeff, you raise a good point, I hadn't thought about. I'm mainly running on a Mac and people tend to schedule things with tasks/appointments in iCal although various third party tools have their own built in schedulers with their own ways of entering times. Pete Haworth ___ 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: Strange menubar problem
Peter Haworth wrote: I've set up the standard app/file/edit/help menus to be displayed in the OSX menu bar of my app. The menubars property is correctly set to the name of the group containing the menu definitions and the editMenus property is set to false. The menus appear correctly in the OSX menu bar. However, every time I run my app, the main stack window grows in height by a few pixels added to the bottom of the window. This is a cumulative effect so each time the app runs, the the main stack window gets progressively taller. If I manually resize the main stack window then rerun my app, it appears with the height as it was before I manually resized it. I can't find any scripts that would affect the size of the main stack window. The main stack is displayed as a pallette. I'm running rev 4.0 on OSX 10.5. Any clues? It sounds like the shrinking stack phenomenon, which is a long-standing bug, only yours is in reverse. If it's the same bug, then check to see if the destroystack property of your stack is set to true. If so, turn that off. In the case of shrinking stacks, that's the culprit. There's an ancient bug report about it, and last I asked, it was going to be fixed. If that isn't the problem then try setting the menubar of the stack to empty (which will pop the menus back to the top of the stack window,) size the stack the way you want it, save the stack, then set the menubar property again and resave. -- 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: Stack working in MACOS, not in Windows.
stephen barncard wrote: Something is happening between the decoding of the files which are created, and the playing of them. The player code alone works in Windows, so perhaps the decryption is messed up. After you decode the file, try exiting the handler and opening the file and seeing if it will play in a different app. That will at least tell you if the decoding has gone wrong. It isn't clear what kind of encryption you're using but there may be platform differences during decryption. BTW, the dot before a file name will only hide the file on Mac OS X. On Windows it will still be fully visible. -- 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: peoples choice
2010/2/20 René Micout rene.mic...@numericable.com: Hello from Paris (France), What is Revers, Vimy-Ridge Thank you René Bonjour René! Revers could be a neologism for Rev users. Vimy-Ridge : http://en.wikipedia.org/wiki/Battle_of_Vimy_Ridge Regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc ___ 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: Search / replace
Mike, thank you very much for this pointer: On 21/02/2010, at 5:28 AM, Mike Bonner wrote: If you want do the search/replace with regex, you can do similar to this.. put replaceText(field Field,(?=\d)\[,-) into tTmp put replaceText(tTmp,(?!\d)\[,empty) into tComplete This does a look behind. [...] Someone should definitely add this to the User Guide - or at the very least one of us should make an entry about this in the Dictionary, under 'replaceText'. Pleease! Many thanks, once again, -- Igor de Oliveira Couto Sydney, Australia ___ 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] Languages and cultures (was Re: survey)
I sympathise: On 21/02/2010, at 7:26 AM, J. Landman Gay wrote: [...] hen some other family would have been getting 3 AM phone calls from 9 year olds who had various, though usually unoriginal, suggestions for us. [...] Our phone number used to be 1 digit off the number the local radio station used when running on-air competitions. We used to get regular phone calls at 3:00am from people who were desperate to tell us that they knew the name of the song! -- Igor de Oliveira Couto Sydney, Australia ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
the files, get URL and Unicode File Names
Dear List Members, I am trying to write a reasonably simple test script, which would iterate through every file in a chosen directory, and give me the md5 checksum for that file. I am coming across a problem, which *may* be related to Unicode, but I'm not certain. The algorithm is like this: * user selects directory * get list of files in directory (using 'the files') * for every file in the list: ** get the file data stream (using 'get URL binfile:...') ** get the checksum The function that gets the datastream using 'get URL' returns 'empty' in case it cannot find the file. I am finding, that when a file has certain accented or foreign characters in its name, 'get URL' is unable to find it - even though it is using the original unmodified string returned by 'the files'... What is most puzzling, is that this does not happen with *every* file that has an international character in it - files with french, spanish, german or even scandinavian characters fly through without a hitch. But if I have a file that has a ĉ (c+circumflex) or ŭ (u+breve) in its name, for instance, it chokes. Am I doing something wrong, or missing something basic? - or did I hit a limitation, or bug? Many thanks for any guidance, -- Igor de Oliveira Couto Sydney, Australia PS - the code in full, for those interested: 1) Make a new Mainstack, and add a field named folderContents, and a button. 2) Put the following into the button's script: on mouseUp answer folder Please select a folder: if it is empty then exit mouseUp local tDefault, tItems put the defaultFolder into tDefault set the defaultFolder to it put empty into field folderContents put the files into tItems repeat for each line xLine in tItems put name= quote xLine quote after field folderContents put checksum= quote fileDigest(the defaultFolder / xLine) quote return after field folderContents end repeat filter field folderContents without empty set the defaultFolder to tDefault end mouseUp function hexDigest pvalue local tRes, tMD5 put md5Digest(pValue) into tMD5 get binaryDecode(H*,tMD5,tRes) return tRes end hexDigest function fileDigest pFile if there is a file pFile then get URL (binfile: pFile) return hexDigest(it) else return empty end if end fileDigest___ 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: Search / replace
This may not be the fastest but I think it is easy to grok a year later when you are revisiting the code repeat with x = 0 to 9 replace (x [) with (x _) in theField end repeat For all [ in the field I need to check to see if the character to it's immediate left is a number. If it is a number then the [ is to be converted into an _. If it is not a number then the [ is to be removed (no substitution or spaces). I need to be able to cycle through the entire field which each line may contain several [. Any thoughts would be appreciated as I have tried using a combination of find characters and foundchunk on the field without success. 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 - I check email roughly 2 to 3 times per business day. Kagi main office: +1 (510) 550-1336 ___ 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: Datagrid and Custom Controls
Never mind. I figured it out. Stewart This message and any attachments are intended only for the use of the individual to whom they are addressed and it may contain information that is privileged or confidential. If you have received this communication by mistake, please notify us immediately. ___ 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: Search / replace
Kee Nethery wrote: This may not be the fastest but I think it is easy to grok a year later when you are revisiting the code repeat with x = 0 to 9 replace (x [) with (x _) in theField end repeat Another good and different take, Kee. :-) Just, did you intend to have the line: replace [ with empty in theField after the repeat loop? Thanks for sharing Kee and reinforcing again that there is always yet another way to do it in Rev! Aloha from Hawaii, Jim Bufalini ___ 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: Search / replace
Igor de Oliveira Couto wrote: Mike, thank you very much for this pointer: On 21/02/2010, at 5:28 AM, Mike Bonner wrote: If you want do the search/replace with regex, you can do similar to this.. put replaceText(field Field,(?=\d)\[,-) into tTmp put replaceText(tTmp,(?!\d)\[,empty) into tComplete This does a look behind. [...] Someone should definitely add this to the User Guide - or at the very least one of us should make an entry about this in the Dictionary, under 'replaceText'. Pleease! I definitely kept a copy myself, it's very clever. It's a very specific implementation of regex though, so I'm not sure it would be useful for most people. But feel free to add it to the doc notes if you want, anyone can do that. -- 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: the files, get URL and Unicode File Names
Igor, why don't you try and use the detailed files, URLDecode it and parse out the filenames? Perhaps URLDecoding can preserve those characters. just a thought. Not tested. - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev On 20 February 2010 13:48, Igor de Oliveira Couto i...@pixelmedia.com.auwrote: Dear List Members, I am trying to write a reasonably simple test script, which would iterate through every file in a chosen directory, and give me the md5 checksum for that file. I am coming across a problem, which *may* be related to Unicode, but I'm not certain. The algorithm is like this: * user selects directory * get list of files in directory (using 'the files') * for every file in the list: ** get the file data stream (using 'get URL binfile:...') ** get the checksum The function that gets the datastream using 'get URL' returns 'empty' in case it cannot find the file. I am finding, that when a file has certain accented or foreign characters in its name, 'get URL' is unable to find it - even though it is using the original unmodified string returned by 'the files'... What is most puzzling, is that this does not happen with *every* file that has an international character in it - files with french, spanish, german or even scandinavian characters fly through without a hitch. But if I have a file that has a ĉ (c+circumflex) or ŭ (u+breve) in its name, for instance, it chokes. Am I doing something wrong, or missing something basic? - or did I hit a limitation, or bug? Many thanks for any guidance, -- Igor de Oliveira Couto Sydney, Australia PS - the code in full, for those interested: 1) Make a new Mainstack, and add a field named folderContents, and a button. 2) Put the following into the button's script: on mouseUp answer folder Please select a folder: if it is empty then exit mouseUp local tDefault, tItems put the defaultFolder into tDefault set the defaultFolder to it put empty into field folderContents put the files into tItems repeat for each line xLine in tItems put name= quote xLine quote after field folderContents put checksum= quote fileDigest(the defaultFolder / xLine) quote return after field folderContents end repeat filter field folderContents without empty set the defaultFolder to tDefault end mouseUp function hexDigest pvalue local tRes, tMD5 put md5Digest(pValue) into tMD5 get binaryDecode(H*,tMD5,tRes) return tRes end hexDigest function fileDigest pFile if there is a file pFile then get URL (binfile: pFile) return hexDigest(it) else return empty end if end fileDigest___ 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: the files, get URL and Unicode File Names
Dear Stephen, Many thanks for the suggestion: On 21/02/2010, at 4:25 PM, stephen barncard wrote: Igor, why don't you try and use the detailed files, URLDecode it and parse out the filenames? Perhaps URLDecoding can preserve those characters. just a thought. Not tested. I tried it, and it doesn't work. When the file name is a ĉ (c+circumflex), for instance, it encodes it as 2 separate characters: a c and a ^ circumflex. When I URLdecode it, therefore, I end up with a c^. The name of the file is different, and Revolution's functions (get url, there is a file, etc.) cannot find the file... Please do send any more suggestions, though. I really want this to work, and I'll try anything!!! :) Kind Regards, -- Igor de Oliveira Couto Sydney, Australia ___ 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: Search / replace
Thanks Kee. This is simple and clear, and is a great way to do it for the exact reason you gave. Phil Davis On 2/20/10 4:04 PM, Kee Nethery wrote: This may not be the fastest but I think it is easy to grok a year later when you are revisiting the code repeat with x = 0 to 9 replace (x [) with (x _) in theField end repeat For all [ in the field I need to check to see if the character to it's immediate left is a number. If it is a number then the [ is to be converted into an _. If it is not a number then the [ is to be removed (no substitution or spaces). I need to be able to cycle through the entire field which each line may contain several [. Any thoughts would be appreciated as I have tried using a combination of find characters and foundchunk on the field without success. thanks, - I check email roughly 2 to 3 times per business day. Kagi main office: +1 (510) 550-1336 -- 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: Search / replace
On Feb 20, 2010, at 6:04 PM, Jim Bufalini wrote: Kee Nethery wrote: This may not be the fastest but I think it is easy to grok a year later when you are revisiting the code repeat with x = 0 to 9 replace (x [) with (x _) in theField end repeat Another good and different take, Kee. :-) Just, did you intend to have the line: replace [ with empty in theField after the repeat loop? yes, didn't see that requirement. kee Thanks for sharing Kee and reinforcing again that there is always yet another way to do it in Rev! Aloha from Hawaii, Jim Bufalini ___ 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 - I check email roughly 2 to 3 times per business day. Kagi main office: +1 (510) 550-1336 ___ 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: Stack working in MACOS, not in Windows.
thanks for the tips, Jacque and Mark - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev On 20 February 2010 12:45, J. Landman Gay jac...@hyperactivesw.com wrote: stephen barncard wrote: Something is happening between the decoding of the files which are created, and the playing of them. The player code alone works in Windows, so perhaps the decryption is messed up. After you decode the file, try exiting the handler and opening the file and seeing if it will play in a different app. That will at least tell you if the decoding has gone wrong. It isn't clear what kind of encryption you're using but there may be platform differences during decryption. BTW, the dot before a file name will only hide the file on Mac OS X. On Windows it will still be fully visible. -- 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 ___ 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
basic math help
Can anyone help me out, perhaps off list, with re-jigging this equation in terms of n? GW = (n * mW) + [(n-1) * 25] I've tried but my school days are too long ago! /H ___ 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: basic math help
I am assuming that GW and mW are single variable names? n = GW-25 / mW +25 Craig Newman ___ 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