Re: [somewhat OT] Text processing question (sort of)
Interesting problem. if you are looking for typos, here are my thoughts. What are the probable errors? Seems to me you have: 1. Typos in individual words 2. Extra spaces in individual words (so that you end up with two words instead of one) 3. Punctuation differences 4. Perhaps words such as; "the", "and", "an" missing from titles. I think I would generate a letter count for each quotation. For your example: "God bless America"George W BushHouston, March 18 2005 "Godi bless America"George W BushHuston, March 18 2005 The quotation letter counts are 2 1 1 0 2 0 1 0 1 0 0 1 1 0 1 0 0 1 2 0 0 0 0 0 0 0 for "God bless America" (2 a's, 1 b, 1 c ...) and 2 1 1 0 2 0 1 0 2 0 0 1 1 0 1 0 0 1 2 0 0 0 0 0 0 0 for "Godi bless America" Then if you sort by these number sets and compare to see how similar each count is, you;ll get potential matches that you should eyeball. For example, These two strings have all but one count exactly the same. I'd go through this process multiple times by rotating the first count to the rear and re-sorting. 1 1 0 2 0 1 0 1 0 0 1 1 0 1 0 0 1 2 0 0 0 0 0 0 0 2 1 1 0 2 0 1 0 2 0 0 1 1 0 1 0 0 1 2 0 0 0 0 0 0 0 2 and just keep doing that until every letter has had a chance to be the first in the sort. Basically The thing I'd have it do is find pairs of quotes that appear to be very similar. Then once you have a huge list of potential pairs, have something that displays them to you in pairs so that you can quickly tell the interface to delete one or to skip it. I really do think you are going to want to make no changes to the data unless you look at the matches with your eyeballs. You could very easily end up with two completely different quotes that are extremely similar, just because person B was playing with a famous quote from person A. So long story short, slice and dice the quotes to collect a set of pairs that appear to be similar. Then build a flashcard kind of interface in RunRev that allows you the human to read the two similar quotes and decide whether to delete one or not. I'd combine brute force with human visuals. 4 lines seems like a small data set for brute force. Kee Nethery ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
OT: Web Gallerie for windows? and privacy
Hi Tiemo, One place to start is to investigate any photo editing software you might already have--Photoshop can generate a web gallery, as can iView, and maybe Word. You will usually want to tweak the resulting output. Unfortunately, Galerie is only for Mac-- a nice little program from some generous and talented people. Good luck in your search. Wilhelm, were there swimming pools there? ;^) Presenting the photos with no captions is my attempt at a workaround for trying to post an entertainment while dealing with vexing (to me, at least) privacy issues in a world of ubiquitous cameras and internets. So, did anyone get pictures of the kingsnake and kangaroo rat? :^) That sounded like a great adventure. Sandy Message: 16 > Date: Sun, 18 May 2008 12:47:44 +0200 > From: "Tiemo Hollmann TB" <[EMAIL PROTECTED]> > Subject: OT: Web Gallerie for windows? (was: some images from > RevLive) > To: "'How to use Revolution'" > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" > > Thank you Sandy for sharing the photos with those who couldn't attend. > > Btw, can anybody recommend a (free) tool to create a photo gallery on the > web (similar to Sandys with enlarge and forward - backword), which runs > under windows? > > Thanks > 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: integrating rsync with Rev
>> For me, the main problem is that the process is blocking. I would love >> a faster alternative to Rev's FTP commands, but I can't have it >> blocking everything else. Is there a way to open a process in a >> non-blocking manner, perhaps by redirecting it's output to a file and >> checking it every now & then to estimate progress? >> >> Cheers, >> Sarah > Hi Sarah, > > What happens if you do something like this instead: > > put shell("/rsynch.sh &") into tResult > > In other words, can you start your script from shell() as a background > process? I've done that with a couple of different long-running apps. No, that doesn't run at all. However I have now got a version that effectively works in the background. on mouseUp -- the Script field contains the full command put fld "Script" into tCmd -- make sure it only has Unix line endings and save it to disk replace numtochar(13) with numtochar(10) in tCmd put tCmd into URL "binfile:/rsync.sh" if the result is not empty then answer the result exit to top end if -- set the permissions to this file is executable put "chmod 755 /rsync.sh" into tSetPerms get shell(tSetPerms) put empty into fld "Result" -- run the file open process "/rsync.sh" -- read the results as they come in, so it appears to run in the background -- if you are transferring a lot of files, increase this number repeat with x = 1 to 100 wait 30 ticks with messages read from process "/rsync.sh" until linefeed put it into tRes put x & ": " & tRes after fld "Result" if last line of tRes contains "total size" then exit repeat end repeat -- stop the process close process "/rsync.sh" end mouseUp If just reads from the process twice a second and waits with messages the rest of the time, so other things can still happen. I've been testing using Josh's server. Now I need to work out how to use it with my server Cheers, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: integrating rsync with Rev
Sorry - I didn't complete my thought... A background process is non-blocking. In the example below (IIRC) "tResult" would receive the process ID from shell(). Phil Davis wrote: Sarah Reichelt wrote: -- snip -- For me, the main problem is that the process is blocking. I would love a faster alternative to Rev's FTP commands, but I can't have it blocking everything else. Is there a way to open a process in a non-blocking manner, perhaps by redirecting it's output to a file and checking it every now & then to estimate progress? Cheers, Sarah Hi Sarah, What happens if you do something like this instead: put shell("/rsynch.sh &") into tResult In other words, can you start your script from shell() as a background process? I've done that with a couple of different long-running apps. -- 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: integrating rsync with Rev
Sarah Reichelt wrote: -- snip -- For me, the main problem is that the process is blocking. I would love a faster alternative to Rev's FTP commands, but I can't have it blocking everything else. Is there a way to open a process in a non-blocking manner, perhaps by redirecting it's output to a file and checking it every now & then to estimate progress? Cheers, Sarah Hi Sarah, What happens if you do something like this instead: put shell("/rsynch.sh &") into tResult In other words, can you start your script from shell() as a background process? I've done that with a couple of different long-running apps. -- 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: Combo box background color
Thanks! After fooling around I decided it looked too bizarre to have 90% of the fields one color and the combo boxes white so I reverted everything to white. Neal On Sun, May 18, 2008 at 10:01 PM, Sarah Reichelt <[EMAIL PROTECTED]> wrote: > On Sun, May 18, 2008 at 11:47 AM, Neal Campbell <[EMAIL PROTECTED]> wrote: >> When I change the background color of the combo box, it correctly >> colors the drop-down list's background but not the "selected" display >> (non-expanded). Is it possible to set this to the desired background >> color? > > I don't think it is. As far as I know, Rev just gets the system to > draw the controls using it's own settings and we can't do anything > about that. You would have to construct your own group of controls to > do this. > > Cheers, > Sarah > ___ > use-revolution mailing list > use-revolution@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > -- Neal Campbell Abroham Neal Software Programming Services for Windows, OS X and Linux (540) 242 0911 - Try Spot for OS X, the intelligent DXCluster Client at www.abrohamnealsoftware.com - introduction priced at $10.99 For a great dog book, visit www.abrohamneal.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: Combo box background color
On Sun, May 18, 2008 at 11:47 AM, Neal Campbell <[EMAIL PROTECTED]> wrote: > When I change the background color of the combo box, it correctly > colors the drop-down list's background but not the "selected" display > (non-expanded). Is it possible to set this to the desired background > color? I don't think it is. As far as I know, Rev just gets the system to draw the controls using it's own settings and we can't do anything about that. You would have to construct your own group of controls to do this. Cheers, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
scrollbar thumb not always appearing
Hello, On one particular Windows pc, the thumb of a scrollbar will not appear unless I widen the scrollbar. However, on several other PC and Window OSs, the very same Rev2.6 stack with the very same scrollbar *does* display its thumb no matter the width of the scrollbar. Because this stack will be deployed over a variety of WinPCs and Win OSs, I'm now worried that there may be other PCs out there that share this problem. Please advise. 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
Re: integrating rsync with Rev
> > 1. create a folder called "revcoder_rsync_test" in the root directory of > > your main hard drive > > > > 2. open Terminal > > > > 3. enter this: > > > > rsync -avzrt > > [EMAIL PROTECTED]:/home/revcoder/public_html/revcoder_rsync_test/ > > /revcoder_rsync_test > > > > 4. you will see the following (the first time you connect): > > > > The authenticity of host 'revcoders.org (67.19.54.130)' can't be > > established. > > RSA key fingerprint is 9f:8c:ba:a9:5d:3f:b4:ef:f7:4a:2c:20:cd:77:b3:8c. > > Are you sure you want to continue connecting (yes/no)? > > > > 5. enter "yes" > > > > 6. response: > > > > Warning: Permanently added 'revcoders.org' (RSA) to the list of known > hosts. > > [EMAIL PROTECTED]'s password: > > > > 7. enter "cookies" > > > > 8. Then, a couple of small pictures will download. Success! > > > > OK, so all works well in Terminal. > > > > > > Now, in Revolution: > > > > put "/bin/bash" into tProc > > > >open process tProc FOR update > >write "rsync -avzrt > > [EMAIL PROTECTED]:/home/revcoder/public_html/revcoder_rsync_test/ > > /revcoder_rsync_test" to process tProc > >wait 2 seconds WITH messages > >write "cookies" to process tProc I have got this to work but writing a shell command out to file and then opening that file as a process. Obviously my methods in this example are insecure, but once the concept is established, it can be tidied up. Create a new stack with 2 fields and a button. Name the fields "Script" and "Result". Copy & paste this into the Script field (watch for line wraps - there are only 4 lines). #!/usr/bin/expect -f spawn rsync -avzrt [EMAIL PROTECTED]:/home/revcoder/public_html/revcoder_rsync_test/ /revcoder_rsync_test expect "password:" { send "cookies\n"} expect "#" Put this into the script of the button and click it: on mouseUp -- the Script field contains the full command put fld "Script" into tCmd -- make sure it only has Unix line endings and save it to disk replace numtochar(13) with numtochar(10) in tCmd put tCmd into URL "binfile:/rsync.sh" if the result is not empty then answer the result exit to top end if -- set the permissions to this file is executable put "chmod 755 /rsync.sh" into tSetPerms get shell(tSetPerms) -- run the file open process "/rsync.sh" -- tweak these settings to make sure it waits long enough for the result read from process "/rsync.sh" for 500 in 10 seconds put it into tRes -- stop the process close process "/rsync.sh" -- show the result put tRes into fld "Result" end mouseUp Your example commands should happen without any intervention. The Result field will display what happened. To make it better, the password could be encrypted and stored in a custom property and only inserted into the script when needed. The file should also be deleted after use as it has the password in plain text. For me, the main problem is that the process is blocking. I would love a faster alternative to Rev's FTP commands, but I can't have it blocking everything else. Is there a way to open a process in a non-blocking manner, perhaps by redirecting it's output to a file and checking it every now & then to estimate progress? Cheers, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: [ANN] The reason why I was so quiet recently.
Colin, he also accepts large bags of money left on the doorstep or pizza ;-) ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: [ANN] The reason why I was so quiet recently.
On May 18, 2008, at 5:24 PM, Malte Brill wrote: Our first release is the sequel to my game drops. You can download the game at "Instant gratification" Well, I got to 2nd best score for the last 20 days during my trial play time, but sadly I can't buy it, as I've had bad spam experiences from using PayPal, and so won't use them anymore. ___ 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: [somewhat OT] Text processing question (sort of)
On 19/5/08 2:41 AM, "jbv" <[EMAIL PROTECTED]> wrote: > Hi list, > > I've been asked to do some "cleaning" in a client's data, and am trying > to figure out some simple and fast algorithm to do the job in Rev, but > haven't got much success so far... > > Here's the problem : the data consists in a collection of quotations by > various writers, politicians, etc. The data is organized in lines of 3 > items : > the quote, the author, the place & date > The cleaning job consists in finding duplicates caused by typos. > > Here's an (imaginary) example : > "God bless America"George W BushHouston, March 18 2005 > "Godi bless America"George W BushHuston, March 18 2005 > > Typos can occur in any of the 3 items, and sometimes even in 2 or 3 > items of the same line... > Last but not least, the data consists in about 4 lines... How about using the compress function to compare 'pairs' of lines. If the length of each compressed string is similar and it is more or less the same as the length of the combined and compressed strings then you've almost certainly got a 'match'. I haven't done this with thousands of records but I have done it with hundreds and it's relatively quick. Terry... ___ 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: [somewhat OT] Text processing question (sort of)
yoy wrote: Well, that doesn't play well in revolution when it comes to the powerball and other lottery checking software with millions of ticket cross checking. A good lottery software (not the generator portion) only take about an hour in PERL. I've written several state software lottery checking systems and you. Introduce a GUI and it slugs down. I'm not sure it's a matter of having a GUI or not. After all, any program will need to display its results if it's to be useful. I would think it has more to do with how that GUI is used. Computationally-intensive operations can, and arguably should, be performed purely in memory, with no updates to the GUI until it comes time to display the result. In this manner, Rev and Perl have much in common. Since Perl is an interpreted language and uses Regex for much of its pattern-matching abilities, I'd be interested to see how the same algorithm also implemented in Transcript compares. My hunch is that if the program you mentioned were crafted with the same inputs and outputs in a well-optimized manner in both Perl and Transcript, that the Transcript version would perform at least as well. Anyone have time on their hands to give this a try? -- Richard Gaskin Managing Editor, revJournal ___ Rev tips, tutorials and more: http://www.revJournal.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: [ANN] The reason why I was so quiet recently.
What I forgot to mention. To those of you who own a copy of drops! 1.0... The update is free. Your old unlock code still works. All the best, Malte ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
[ANN] The reason why I was so quiet recently.
Hi all, some of you have wondered why I was so quiet the last few months. (Thanks for the off list conversation guys). Well, I am still alive and actually have some quite exciting news. derbrill Multimedia aquired awesome mega mighty games, a game design company. http://www.awesomemegamightygames.com From now on all derbrill games will be released through the awesome mega mighty games brand. Our first release is the sequel to my game drops. You can download the game at "Instant gratification" It was done in Rev and sports some new features of the upcoming animation engine 2.9. Stay tuned for more news on that. If you like the web site and/or the game, please spread the word - we'd love all the attention we can get. All the best, Malte ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: [somewhat OT] Text processing question (sort of)
Well, that doesn't play well in revolution when it comes to the powerball and other lottery checking software with millions of ticket cross checking. A good lottery software (not the generator portion) only take about an hour in PERL. I've written several state software lottery checking systems and you. Introduce a GUI and it slugs down. You can go through 200,000,000 million ticket comparisons and report it in an hour. From my experience, Try THAT in revolution! Best, Andy - Original Message - From: "Jim Ault" <[EMAIL PROTECTED]> To: "How to use Revolution" Sent: Sunday, May 18, 2008 4:02 PM Subject: Re: [somewhat OT] Text processing question (sort of) Is this slower or about the same? with your data set [these are not tested, so you many need to tweak syntax] repeat for each line LNN in myData get myData filter it with LNN put line 1 of it & cr after uniqueOnly end repeat get put the number of lines in uniqueOnly put the number of lines in myData & " minus dups =" & it of course, making the target data set smaller and smaller has advantages so adding an IF condition might defeat speed gain near end of 4 lines... put empty into uniqueOnly put myData into remainingLines put the number of lines in remainingLines into remainingCount repeat for each line LNN in myData filter remainingLines without LNN get the number of lines in remainingLines if it < remainingCount then --at least one dup found put LNN & cr after uniqueOnly put the number of lines in remainingLines into remainingCount end if end repeat get put the number of lines in uniqueOnly put the number of lines in myData & " minus dups =" & it If all lines are shorter than 255 chars.. put myData into arrayFood repeat for each line LNN in arrayFood put LNN & tab & 1 & cr after tempVar end repeat --assming split tempVar using cr and tab put the keys of tempVar into uniqueOnly Try these and see, not that it will be worth all the time and effort. Once you have a speedy solution, go on to the next task and leave the diving to to the benchmarkers out there. Jim Ault Las Vegas On 5/18/08 11:27 AM, "jbv" <[EMAIL PROTECTED]> wrote: if anyone is interested, while trying to find the fastest way to compare each line of a list with every other line, I found the following technique quite fast : -- myData contains the 4 lines to chack -- myData1 is a duplicate of myData put myData into myData1 repeat for each line j in myData delete line 1 of myData1 repeat for each line i in myData1 end repeat end repeat ___ 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: Zooming to Center
> I have an image that is much larger than the stack. I have two > buttons, ZoomIn and ZoomOut. They do their jobs as far as zooming in > and out by resizing the image, but I would like the part of the image > that is in the center of the screen to stay there during the zoom > (when possible). Right now it moves around and I can't figure out > the math to make it seem to zoom to (or from) the part of the picture > that is in the center of the card. Here's what I did - measure the distance from the clickH to the left of the object, divide by the current zoom factor, then multiply by the new zoom factor. Then after scaling the image, set the left of the image to the center of the card, minus the new distance. Do the same for the top. Something like this: -- First, note the click location relative to the image put pClickH - (the left of pImgObj) into tDistFromLeft put pClickV - (the top of pImgObj) into tDistFromTop put the uScale of pImgObj into tCurrZoom put round((tDistFromLeft / tCurrZoom) * pNewZoom) into tNewDistFromLeft put round((tDistFromTop / tCurrZoom) * pNewZoom) into tNewDistFromTop where "pImgObj" is the image being scaled, "the uScale" is the custom property scoring the current scale factor before zooming, and "pNewZoom" is the new scale factor. Then apply it like this: put the loc of this card into tCardLoc if pNewZoom <> 1 then set the left of pImgObj to ((item 1 of tCardLoc) - tNewDistFromLeft) set the top of pImgObj to ((item 2 of tCardLoc) - tNewDistFromTop) else set the loc of pImgObj to tCardLoc end if If you want the whole script that handles everything (I had to do this to figure out what worked), let me know and I'll post it. Ken Ray Sons of Thunder Software, Inc. Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: [somewhat OT] Text processing question (sort of)
Is this slower or about the same? with your data set [these are not tested, so you many need to tweak syntax] repeat for each line LNN in myData get myData filter it with LNN put line 1 of it & cr after uniqueOnly end repeat get put the number of lines in uniqueOnly put the number of lines in myData & " minus dups =" & it of course, making the target data set smaller and smaller has advantages so adding an IF condition might defeat speed gain near end of 4 lines... put empty into uniqueOnly put myData into remainingLines put the number of lines in remainingLines into remainingCount repeat for each line LNN in myData filter remainingLines without LNN get the number of lines in remainingLines if it < remainingCount then --at least one dup found put LNN & cr after uniqueOnly put the number of lines in remainingLines into remainingCount end if end repeat get put the number of lines in uniqueOnly put the number of lines in myData & " minus dups =" & it If all lines are shorter than 255 chars.. put myData into arrayFood repeat for each line LNN in arrayFood put LNN & tab & 1 & cr after tempVar end repeat --assming split tempVar using cr and tab put the keys of tempVar into uniqueOnly Try these and see, not that it will be worth all the time and effort. Once you have a speedy solution, go on to the next task and leave the diving to to the benchmarkers out there. Jim Ault Las Vegas On 5/18/08 11:27 AM, "jbv" <[EMAIL PROTECTED]> wrote: > > if anyone is interested, while trying to find the fastest way to compare > each line of a list with every other line, I found the following technique > quite fast : > > -- myData contains the 4 lines to chack > -- myData1 is a duplicate of myData > > put myData into myData1 > > repeat for each line j in myData > delete line 1 of myData1 > repeat for each line i in myData1 > end repeat > end repeat > ___ 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: regex question
J. Landman Gay wrote: In my RevLive presentation I addressed this kind of processing, and showed the results of a number of speed tests. It turns out that a "repeat for each" loop is almost 200 times faster than a regex expression. My own benchmarking over the years yields similar results. In fact, given that Rev's Regex engine is quite similar to the one in Perl, I'd be surprised if Perl is any faster at such tasks (but always willing to hear of benchmarks to the contrary). The value of Regex is its convenience for the developer, but its highly-generalized nature implies a level of overhead that will impair performance relative to more specialized solutions. There are no doubt some expressions in Regex that will benchmark faster due to the number of step needed to accomplish them by other means, but on the whole I find crafting one-offs using "repeat for each" to be faster by at least an order of magnitude for a surprisingly wide range of tasks. Even with mere runtime compilation, many Rev string tasks perform on par with systems that make you deal with the old-school runtime-compile cycle. Now imagine how much faster still things could be if Rev took advantage of the fact that all three supported platforms now use the Intel instruction set, and implemented true machine-level compilation (drool, drool) -- Richard Gaskin Managing Editor, revJournal ___ Rev tips, tutorials and more: http://www.revJournal.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: [somewhat OT] Text processing question (sort of)
That works but if you pass the data to PERL it'll be handled 10,000 times faster. Not that I can remember how I did it! :( I have a great memory, it's just short. Best, Andy - Original Message - From: "jbv" <[EMAIL PROTECTED]> To: "How to use Revolution" Sent: Sunday, May 18, 2008 2:27 PM Subject: Re: [somewhat OT] Text processing question (sort of) if anyone is interested, while trying to find the fastest way to compare each line of a list with every other line, I found the following technique quite fast : -- myData contains the 4 lines to chack -- myData1 is a duplicate of myData put myData into myData1 repeat for each line j in myData delete line 1 of myData1 repeat for each line i in myData1 end repeat end repeat Hi list, I've been asked to do some "cleaning" in a client's data, and am trying to figure out some simple and fast algorithm to do the job in Rev, but haven't got much success so far... Here's the problem : the data consists in a collection of quotations by various writers, politicians, etc. The data is organized in lines of 3 items : the quote, the author, the place & date The cleaning job consists in finding duplicates caused by typos. Here's an (imaginary) example : "God bless America"George W BushHouston, March 18 2005 "Godi bless America"George W BushHuston, March 18 2005 Typos can occur in any of the 3 items, and sometimes even in 2 or 3 items of the same line... Last but not least, the data consists in about 4 lines... The first idea that comes to mind is a kind of brute force approach : to compare each line, item by item, with each of the other lines, compute a ratio of identical words, and keep only lines where the ratio found for each item is above a certain threshold (say 80%)... The problem with such huge set of data, is that it might take forever... I've also tried to sort lines and compare each line with the previous one only, but if the typo occurs in the first char of any item of a line, duplicates might be far away from each other after the sort... so it won't work... Any idea ? thanks in advance, JB ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: ___ 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: integrate and customize the html/javascript output (was :AW: OT: Web Gallerie for windows?)
Hi, If you are using OS X, id you have a look at Freeway Pro ? I use it all the time instead of Dreamweaver to customise web apps... Best, -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com Le 18 mai 08 à 17:25, Tiemo Hollmann TB a écrit : I am looking for a tool, where I can integrate and customize the html/javascript output into my existing web. Thanks anyway Tiemo -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:use-revolution- [EMAIL PROTECTED] Im Auftrag von Phil Davis Gesendet: Sonntag, 18. Mai 2008 17:23 An: How to use Revolution Betreff: Re: OT: Web Gallerie for windows? Have you considered Picasa from Google? http://picasaweb.google.com/ It's the main way we keep up with the growth of our grandson, who lives about 600 miles from us. Phil Tiemo Hollmann TB wrote: Thank you Sandy for sharing the photos with those who couldn't attend. Btw, can anybody recommend a (free) tool to create a photo gallery on the web (similar to Sandys with enlarge and forward - backword), which runs under windows? Thanks Tiemo -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:use- revolution- [EMAIL PROTECTED] Im Auftrag von [EMAIL PROTECTED] Gesendet: Samstag, 17. Mai 2008 08:45 An: use-revolution@lists.runrev.com Betreff: some images from RevLive Hi everyone, I agree, a great conference, and wonderful to see everyone during my brief stay--including a lucky meeting with Richard. Here are some pictures from the event, and a slideshow. http://www.troutfoot.com/rev/index.html The music is from Gilberto Gil. Ask Andre. ;^) Thank you RunRev staff! What a great team. I look forward to seeing the latest projects people are making, and hope to see you all again soon! Sandy -- 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 ___ 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: [somewhat OT] Text processing question (sort of)
if anyone is interested, while trying to find the fastest way to compare each line of a list with every other line, I found the following technique quite fast : -- myData contains the 4 lines to chack -- myData1 is a duplicate of myData put myData into myData1 repeat for each line j in myData delete line 1 of myData1 repeat for each line i in myData1 end repeat end repeat > Hi list, > > I've been asked to do some "cleaning" in a client's data, and am trying > to figure out some simple and fast algorithm to do the job in Rev, but > haven't got much success so far... > > Here's the problem : the data consists in a collection of quotations by > various writers, politicians, etc. The data is organized in lines of 3 > items : > the quote, the author, the place & date > The cleaning job consists in finding duplicates caused by typos. > > Here's an (imaginary) example : > "God bless America"George W BushHouston, March 18 2005 > "Godi bless America"George W BushHuston, March 18 2005 > > Typos can occur in any of the 3 items, and sometimes even in 2 or 3 > items of the same line... > Last but not least, the data consists in about 4 lines... > > The first idea that comes to mind is a kind of brute force approach : > to compare each line, item by item, with each of the other lines, > compute > a ratio of identical words, and keep only lines where the ratio found > for > each item is above a certain threshold (say 80%)... The problem with > such > huge set of data, is that it might take forever... > > I've also tried to sort lines and compare each line with the previous > one only, > but if the typo occurs in the first char of any item of a line, > duplicates might be > far away from each other after the sort... so it won't work... > > Any idea ? > > thanks in advance, > JB > > ___ > use-revolution mailing list > use-revolution@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: ___ 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: regex question
jbv wrote: Hi list, Does anyone have a regex to remove any text between parenthesis (including the parenthesis) ? I've tried many options, but none seems to work perfectly... For instance : "\(\)"removes only parenthesis with no text inside I've also tried this : "\([a-z 0-9 ]+\)", but no luck... In my RevLive presentation I addressed this kind of processing, and showed the results of a number of speed tests. It turns out that a "repeat for each" loop is almost 200 times faster than a regex expression. My test did something very similar to what you want to do; in my case, I was removing all html from a web page but it would be just as easy to substitute parentheses for the "<" and ">" characters I was looking for. The key is using the offset function along with its "skip" paramenter to find the first character (left parentheses in your example), then getting the offset of the second character (right parentheses) and extracting the data around it. Here is my test example which should be easy for you to modify: function removeRepeat pData repeat for each line l in pData put 0 into tSkip repeat put offset("<",l,tSkip) into tStart if tStart = 0 then exit repeat put char tSkip+1 to tSkip+tStart-1 of l & space after tNewData add tStart to tSkip put offset(">",l,tSkip) into tEnd if tEnd = 0 then exit repeat add tEnd to tSkip end repeat put cr after tNewData end repeat filter tNewData without empty return tNewData end removeRepeat -- Jacqueline Landman Gay | [EMAIL PROTECTED] 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: regex question
> Does anyone have a regex to remove any text between parenthesis > (including the > parenthesis) ? How about this: put replaceText(tText,"\(.*\)","") into tText You may need to deal with extra spaces left behind by removing this stuff, but it should work. Ken Ray Sons of Thunder Software, Inc. Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Meeting at BarCamp Seattle? RevCamp? ValentinaCamp?
Hello, I attended BarCamp Portland a few weeks ago and it had quite a turn out. For those in the north west, any thoughts about having a get together at Bar Camp Seattle? The dates are June 14-15. Im talking now with one of the event organizers there about this. Wordpress had their "wordcamp" in Portland in conjunction with BarCamp - what about a "RevCamp" or "ValentinaCamp"? Ive set up an RSVP here: http://miryesoftware.ning.com/events/event/show?id=1985969:Event:1642 Please comment on your interest and if you are thinking about attending. It's a short 3.5 hour drive up from Portland to Seattle so Im going to be there. Best regards, Lynn Fredricks Mirye Software Publishing http://www.mirye.com Mirye Community NING http://miryesoftware.ning.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: regex question
On 5/18/08 9:24 AM, "jbv" <[EMAIL PROTECTED]> wrote: > Does anyone have a regex to remove any text between parenthesis > (including the > parenthesis) ? > > I've tried many options, but none seems to work perfectly... > > For instance : > "\(\)"removes only parenthesis with no text inside > > I've also tried this : "\([a-z 0-9 ]+\)", but no luck... Try this: make a new stack add field "input" and field "output" then this handler in the stack script -start copy on mouseDoubleUp get fld "input" put "(?U)\(.*\)" into regEx put replaceText(it, regEx, "") into ans repeat for each word WRD in ans put WRD & space after smoothAns end repeat put smoothAns into fld "output" end mouseDoubleUp -end copy the regEx says "open paren, then any character, repeating until a close paren is found. the (?U) says to find the shortest match rather than the longest possible match. RegEx defaults to finding the longest possible match. Hope this helps. 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
[somewhat OT] Text processing question (sort of)
Hi list, I've been asked to do some "cleaning" in a client's data, and am trying to figure out some simple and fast algorithm to do the job in Rev, but haven't got much success so far... Here's the problem : the data consists in a collection of quotations by various writers, politicians, etc. The data is organized in lines of 3 items : the quote, the author, the place & date The cleaning job consists in finding duplicates caused by typos. Here's an (imaginary) example : "God bless America"George W BushHouston, March 18 2005 "Godi bless America"George W BushHuston, March 18 2005 Typos can occur in any of the 3 items, and sometimes even in 2 or 3 items of the same line... Last but not least, the data consists in about 4 lines... The first idea that comes to mind is a kind of brute force approach : to compare each line, item by item, with each of the other lines, compute a ratio of identical words, and keep only lines where the ratio found for each item is above a certain threshold (say 80%)... The problem with such huge set of data, is that it might take forever... I've also tried to sort lines and compare each line with the previous one only, but if the typo occurs in the first char of any item of a line, duplicates might be far away from each other after the sort... so it won't work... Any idea ? thanks in advance, JB ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
regex question
Hi list, Does anyone have a regex to remove any text between parenthesis (including the parenthesis) ? I've tried many options, but none seems to work perfectly... For instance : "\(\)"removes only parenthesis with no text inside I've also tried this : "\([a-z 0-9 ]+\)", but no luck... Thanks, JB ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
AW: OT: Web Gallerie for windows?
I am looking for a tool, where I can integrate and customize the html/javascript output into my existing web. Thanks anyway Tiemo > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] [mailto:use-revolution- > [EMAIL PROTECTED] Im Auftrag von Phil Davis > Gesendet: Sonntag, 18. Mai 2008 17:23 > An: How to use Revolution > Betreff: Re: OT: Web Gallerie for windows? > > Have you considered Picasa from Google? > http://picasaweb.google.com/ > > It's the main way we keep up with the growth of our grandson, who lives > about 600 miles from us. > > Phil > > > Tiemo Hollmann TB wrote: > > Thank you Sandy for sharing the photos with those who couldn't attend. > > > > Btw, can anybody recommend a (free) tool to create a photo gallery on > the > > web (similar to Sandys with enlarge and forward - backword), which runs > > under windows? > > > > Thanks > > Tiemo > > > > > >> -Ursprüngliche Nachricht- > >> Von: [EMAIL PROTECTED] [mailto:use-revolution- > >> [EMAIL PROTECTED] Im Auftrag von [EMAIL PROTECTED] > >> Gesendet: Samstag, 17. Mai 2008 08:45 > >> An: use-revolution@lists.runrev.com > >> Betreff: some images from RevLive > >> > >> Hi everyone, > >> > >> I agree, a great conference, and wonderful to see everyone during my > brief > >> stay--including a lucky meeting with Richard. > >> > >> Here are some pictures from the event, and a slideshow. > >> > >> http://www.troutfoot.com/rev/index.html > >> > >> The music is from Gilberto Gil. Ask Andre. ;^) > >> > >> Thank you RunRev staff! What a great team. > >> > >> I look forward to seeing the latest projects people are making, and > hope > >> to see you all again soon! > >> > >> Sandy > > -- > 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 ___ 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: Web Gallerie for windows?
Have you considered Picasa from Google? http://picasaweb.google.com/ It's the main way we keep up with the growth of our grandson, who lives about 600 miles from us. Phil Tiemo Hollmann TB wrote: Thank you Sandy for sharing the photos with those who couldn't attend. Btw, can anybody recommend a (free) tool to create a photo gallery on the web (similar to Sandys with enlarge and forward - backword), which runs under windows? Thanks Tiemo -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:use-revolution- [EMAIL PROTECTED] Im Auftrag von [EMAIL PROTECTED] Gesendet: Samstag, 17. Mai 2008 08:45 An: use-revolution@lists.runrev.com Betreff: some images from RevLive Hi everyone, I agree, a great conference, and wonderful to see everyone during my brief stay--including a lucky meeting with Richard. Here are some pictures from the event, and a slideshow. http://www.troutfoot.com/rev/index.html The music is from Gilberto Gil. Ask Andre. ;^) Thank you RunRev staff! What a great team. I look forward to seeing the latest projects people are making, and hope to see you all again soon! Sandy -- 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: Zooming to Center
Hi Mark: I should have written instead: 1. Place the original loc of the image into a local variable called OriginalLoc. 2. Then include "set the loc of image "The Image" to OriginalLoc" inside every iteration of the loop that is zooming your image. I'm assuming that you were having no trouble with the zooming repeat loop. Paul Gabel - Just include "set the loc of image "The Image" to the screenLoc" inside every iteration of the loop that is zooming your image. On May 17, 2008, at 7:30 PM, Mark Greenberg wrote: I have an image that is much larger than the stack. I have two buttons, ZoomIn and ZoomOut. They do their jobs as far as zooming in and out by resizing the image, but I would like the part of the image that is in the center of the screen to stay there during the zoom (when possible). Right now it moves around and I can't figure out the math to make it seem to zoom to (or from) the part of the picture that is in the center of the card. Thanks in Advance, Mark Greenberg ___ 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
OT: Web Gallerie for windows? (was: some images from RevLive)
Thank you Sandy for sharing the photos with those who couldn't attend. Btw, can anybody recommend a (free) tool to create a photo gallery on the web (similar to Sandys with enlarge and forward - backword), which runs under windows? Thanks Tiemo > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] [mailto:use-revolution- > [EMAIL PROTECTED] Im Auftrag von [EMAIL PROTECTED] > Gesendet: Samstag, 17. Mai 2008 08:45 > An: use-revolution@lists.runrev.com > Betreff: some images from RevLive > > Hi everyone, > > I agree, a great conference, and wonderful to see everyone during my brief > stay--including a lucky meeting with Richard. > > Here are some pictures from the event, and a slideshow. > > http://www.troutfoot.com/rev/index.html > > The music is from Gilberto Gil. Ask Andre. ;^) > > Thank you RunRev staff! What a great team. > > I look forward to seeing the latest projects people are making, and hope > to see you all again soon! > > Sandy > > ___ > 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: MetaCard stack
On May 17, 2008, at 10:33 PM, Richmond Mathewson wrote: "an example of using post" wonder if you know the name of the stack? Thank you for the reply Richmond. I found it, it was the stack "Support" in MetaCard that I was looking for. 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