More OSX Appearance Confusion
All my controls appear correctly under OSX, but the window backdrop does not have that light horizontal striping that is typical of Aqua/Quartz application windows. Instead it's just plain white. Have I missed a setting in Rev? Thanx! ___ 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
Optimize This!
Hello Everyone, I had the need to search large binary files for a string. The files could be over a gigabyte in size, so I decided not to load the whole file into ram but digest in chunks instead. This is the routine I came up with, it seems to work very quickly but I am wondering if some of you might be able to speed it up. FUNCTION GetPositionInBinaryFile pPath, pString, pStart, pOccurrence open file pPath for binary read IF pStart = THEN PUT 1 into pStart END IF IF pOccurrence = THEN PUT 1 into pOccurrence END IF put 2 into tSize put 0 into tFoundCount REPEAT read from file pPath at pStart for tSize put Offset(pString, it) into n IF it is THEN Return 0 END IF IF n 0 THEN put tFoundCount + 1 into tFoundCount IF tFoundCount = pOccurrence THEN put pStart + n into tPos Return tPos ELSE put pStart + n + 1 into pStart END IF ELSE put pStart + tSize into pStart END IF END REPEAT END GetPositionInBinaryFile close file pPath what do you think? Did I miss some obvious easier way? Thanks Todd -- Todd Geist __ g e i s t i n t e r a c t i v e ___ 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: Optimize This!
Recently, Todd Geist wrote: I had the need to search large binary files for a string. The files could be over a gigabyte in size, so I decided not to load the whole file into ram but digest in chunks instead. This is the routine I came up with, it seems to work very quickly but I am wondering if some of you might be able to speed it up. Not sure about the efficiency of your code, but I would also suggest using larger chunks. On a couple of occasions I've had to search a corrupted mail file over 3 gigs in size for lost messages and I've found Rev can easily (and quickly) handle 750,000 char chunks. Probably more, I just haven't done any testing. I just checked right now using an older version of the MetaCard IDE and it was able to read/search a 750,000 character chunk in 49 milliseconds. In my situation, the search string is found in the 58th chunk (58 * 750,000 characters) which completes in just over 4 seconds. Not too shabby. Regards, Scott Rossi Creative Director Tactile Media, Multimedia Design - E: [EMAIL PROTECTED] W: http://www.tactilemedia.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: Optimize This!
On May 1, 2006, at 1:20 AM, Jan Schenkel wrote: Hi Todd, Have you looked at the 'seek' command? It allows you to go straight to a certain position in the file, and then you can use 'read' to grab the chunk you're after - no repeat needed. -- open file tFilePath seek to 3 in file tFilePath read from file tFilePath for 500 chars put it into tData close file tFilePath -- Hi Jan I did look at the seek command, but I don't get how it can be applied here. I don't know the position of the string in the file so how could I seek to it. I may be misunderstanding what seek does? Todd -- Todd Geist __ g e i s t i n t e r a c t i v e ___ 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: Which is the best and easy-to-use database for RR
Hi Alex, I am doing a project. I plan to use RR and a reliable database for the project. I have some questions: 1. What is the best, easy-to-use and easy-to-learn database for RR? 2. Where can I find tutorials about RR and database? I favour AltSQL from www.altuit.com Chipp and the team are great to get a long with and very happy to help out. It comes with a tutorial and I have also posted my own demo stack in the Revolution Online server (accessible form within Rev itself). Note that this is an abstraction layer built for Rev to sit on top of SQLite. It works a treat for me. There are other options and some of them are good ones too, but I'll leave them for some of the others to chime in... :-) Best Regards Scott Kane -- Internal Virus Database is out-of-date. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.4.6/323 - Release Date: 24/04/2006 ___ 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: Optimize This!
Todd Geist wrote: Hello Everyone, I had the need to search large binary files for a string. The files could be over a gigabyte in size, so I decided not to load the whole file into ram but digest in chunks instead. This is the routine I came up with, it seems to work very quickly but I am wondering if some of you might be able to speed it up. I can see two issues - one of correctness and one of speed. 1. if the string spans the block boundary, this currently fails to find it; so you need to adjust the n=0 case so that instead of doing put pStart + tSize into pStart you do put pStart + tSize - the number of chars in pString into pStart Note that you must then also change the overall exit test - after reading the next block, instead of IF it is THEN return 0 END IF you need to do the equivalent of IF the number of chars in it the number of chars in pString THEN return 0 END IF The speed improvement is more complex: 2. If you find the string near the start of a block, then you adjust pStart - and then re-read much of the same block from the file. It would be better to loop within a block once you've read it - and only go back to the file system for more data when you need it. and one of personal preference 3. I never use the it variable more than one line after when it is set, so the fact that you want to both search it and check for it being empty would be enough for me to assign it to a variable. Which is OK, because in order to do item 2 we're going to need to do that anyway :-) warning - code typed in and not tested (something I rarely do, but I still haven't had my first coffee, so I'd waste hours getting my testing right :-)) FUNCTION GetPositionInBinaryFile pPath, pString, pStart, pOccurrence put the number of chars in pString into tStringLength put 2 into tSize IF tStringLength = 0 THEN return 0 END IF IF tStringLength tSize THEN return 0 END IF open file pPath for binary read IF pStart = THEN PUT 1 into pStart END IF IF pOccurrence = THEN PUT 1 into pOccurrence END IF put 0 into tFoundCount REPEAT read from file pPath at pStart for tSize put it into tData IF the number of chars in tData tStringLength THEN return 0 END IF put 0 into tCharsToSkip REPEAT put offset(pString, pData, tCharsToSkip) into n IF n 0 THEN add 1 to tFoundCount IF tFoundCount = pOccurrence THEN put pStart + tCharsToSkip + n into tPos Return tPos ELSE add n + tStringLength to tCharsToSkip -- what about overlapping sub-strings ??!! END IF ELSE -- no more to be found in this block EXIT REPEAT END IF END REPEAT -- we get here when n = 0, i.e. no more occurrences in this block put pStart + tSize - tStringLength into pStart END REPEAT close file pPath END GetPositionInBinaryFile There is one more performance improvement possible - but so minor I wouldn't bother The adjustment of pStart by -tStringLength means that we are re-reading part of the file each time - which causes minor inefficiency in itself, and also because it requires re-positioning the file read point. To avoid that we would need to do something like delete char 1 to tSize - tStringLength of tData and then when we read the next block, do put it after tData and adjust pStart accordingly. It's kind of messy, so unless you often search for very long pString (say more than 16K bytes) I'd ignore that. The other issue mentioned in the comments in my code is the issue of overlapping string occurrences. If your pString is say abab and your data is abababc then you could say match at position 1, match at position 3 or simply match at position 1 The code above takes the second approach. If you wanted the former, then you'd instead want to do add n + 1 to tCharsToSkip -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.5.1/327 - Release Date: 28/04/2006 ___ 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: Optimize This!
Todd, the only problems I see are 1) that you might miss ocurrences where the looked for string crosses chunk boundaries, and 2) You never close the file, and as I understand it from the docs, Rev will only close the file for you when the application quits. Scotts point about the size of chunk you grab is a good one, though the optimal size probably depends on how much memory your machine has. Anyway, I've done this, which is untested, but grabs larger chunks, searches the chunks, (rather than starting another read) and closes the file when it returns... function getPositionInBinaryFile pPath,pString,pStart,pOccurrence if pStart is empty then put 1 into pStart if pOccurrence is empty then put 1 into pOcurrence put length(pString) into strLen put 10 into tSize put 0 into tFoundCount put 0 into tPos open file pPath for binary read repeat read from file pPath at pStart for tSize put it into tChunk if tChunk is empty then close file pPath return 0 end if put 0 into charsToSkip repeat get offset(pString,tChunk,charsToSkip) if it 0 then add 1 to tFoundCount if tFoundCount = pOcurrence then put it + charsToSkip + pStart into tPos close file pPath return tPos else add it to charsToSkip end if end if end repeat put pStart + tSize - strLen into pStart -- so we don't miss any occurrences that cross chunk boundaries end repeat end getPositionInBinaryFile On 1 May 2006, at 07:28, Todd Geist wrote: Hello Everyone, I had the need to search large binary files for a string. The files could be over a gigabyte in size, so I decided not to load the whole file into ram but digest in chunks instead. This is the routine I came up with, it seems to work very quickly but I am wondering if some of you might be able to speed it up. FUNCTION GetPositionInBinaryFile pPath, pString, pStart, pOccurrence open file pPath for binary read IF pStart = THEN PUT 1 into pStart END IF IF pOccurrence = THEN PUT 1 into pOccurrence END IF put 2 into tSize put 0 into tFoundCount REPEAT read from file pPath at pStart for tSize put Offset(pString, it) into n IF it is THEN Return 0 END IF IF n 0 THEN put tFoundCount + 1 into tFoundCount IF tFoundCount = pOccurrence THEN put pStart + n into tPos Return tPos ELSE put pStart + n + 1 into pStart END IF ELSE put pStart + tSize into pStart END IF END REPEAT END GetPositionInBinaryFile close file pPath what do you think? Did I miss some obvious easier way? Thanks Todd -- Todd Geist __ g e i s t i n t e r a c t i v e ___ 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: More OSX Appearance Confusion
--- Arthur Urban [EMAIL PROTECTED] wrote: All my controls appear correctly under OSX, but the window backdrop does not have that light horizontal striping that is typical of Aqua/Quartz application windows. Instead it's just plain white. Have I missed a setting in Rev? Thanx! Hi Arthur, You haven't missed a setting: according to Apple's Human Interface Guidelines stripes are for dialog boxes, toolbars and palettes ; documents shouldn't have stripes. TopLevel stacks are regarded as documents, so their default background is white ; however, not all is lost: you can add stripes through adding a control and setting its backgroundPattern. - create a new rectangle graphic - send it to the back - set its border to 0 - set its rectangle to (0, 0,stack width, stack height) - set its backgroundPattern to 210091 (you can find it in the 'Standard Icons' set in the Image Library) Hope this helped, Jan Schenkel. Quartam Reports for Revolution http://www.quartam.com = As we grow older, we grow both wiser and more foolish at the same time. (La Rochefoucauld) __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: More OSX Appearance Confusion
Hello Arthur, You could make a 16x16 pixels small screenshot of the background pattern you want and import that as an image control. Then set the backdrop to the id number of that image. You can also use the numbers 1 to 164 (built-in patterns). Best, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Salery is the easiest way to get your own web store on-line: http:// www.salery.biz/salery.html Op 1-mei-2006, om 8:07 heeft Arthur Urban het volgende geschreven: All my controls appear correctly under OSX, but the window backdrop does not have that light horizontal striping that is typical of Aqua/Quartz application windows. Instead it's just plain white. Have I missed a setting in Rev? Thanx! ___ 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: Is WMV possible in Rev
Jesse, Have you tried Flip4Mac? Having to install additional software is not very attractive for software that is distributed, but if re-encoding is not an option, Flip4Mac might be the solution. Best, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Salery is the easiest way to get your own web store on-line: http:// www.salery.biz/salery.html Op 1-mei-2006, om 2:08 heeft Jesse Sng het volgende geschreven: But assuming that you already have a library of stuff in WMV files, how do we implement playback of WMV from within a Rev stack that will work for BOTH OS X and Windows? Is there a way where this can be done? This is assuming that there's a bunch of WMV files and it is not possible nor desirable to transcode them to some other format (losing quality in the process). ___ 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: Optimize This!
Mark Smith wrote: Todd, the only problems I see are 1) that you might miss ocurrences where the looked for string crosses chunk boundaries, and 2) You never close the file, and as I understand it from the docs, Rev will only close the file for you when the application quits. Scotts point about the size of chunk you grab is a good one, though the optimal size probably depends on how much memory your machine has. Anyway, I've done this, which is untested, but grabs larger chunks, searches the chunks, (rather than starting another read) and closes the file when it returns... parallel evolution in action :-)Mark and I cam up with very similar suggestions. If you take the best parts of the two solutions, you'll get something really good I forgot to close the file on exit (and in fact, I put in a spurious close file that will never be reached. Mark forgot to adjust his exit criterion for the case where the string isn't found function getPositionInBinaryFile pPath,pString,pStart,pOccurrence if pStart is empty then put 1 into pStart if pOccurrence is empty then put 1 into pOcurrence put length(pString) into strLen put 10 into tSize put 0 into tFoundCount put 0 into tPos open file pPath for binary read repeat read from file pPath at pStart for tSize put it into tChunk if tChunk is empty then Won't happen - the last read will be a chunk of size strLen, so you never exit. close file pPath return 0 end if -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.5.1/327 - Release Date: 28/04/2006 ___ 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: Optimize This!
--- Todd Geist [EMAIL PROTECTED] wrote: Hi Jan I did look at the seek command, but I don't get how it can be applied here. I don't know the position of the string in the file so how could I seek to it. I may be misunderstanding what seek does? Todd Oops, my bad: I hadn't looked at your code close enough, and errantly concluded you were reading the file from the start every time you wanted to read a certain chunk of the file. Ah well, maybe it will come in handy fom someone else ;-) Jan Schenkel. Quartam Reports for Revolution http://www.quartam.com = As we grow older, we grow both wiser and more foolish at the same time. (La Rochefoucauld) __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Optimize This!
I am the king of the infinite loop - in real handlers I've got into the habit of putting repeat (conditions) if the optionKey is down then exit to top until I'm sure I've got things right. I've had to force quit too many times :) Mark On 1 May 2006, at 12:09, Alex Tweedly wrote: repeat read from file pPath at pStart for tSize put it into tChunk if tChunk is empty then Won't happen - the last read will be a chunk of size strLen, so you never exit. close file pPath return 0 end if -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.5.1/327 - Release Date: 28/04/2006 ___ 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: Is WMV possible in Rev
Jesse, Have you tried Flip4Mac? Having to install additional software is not very attractive for software that is distributed, but if re-encoding is not an option, Flip4Mac might be the solution. Best, Mark Flip4Mac works as a Mac solution. But what if you want to embed WMV inside a stack running on Windows? Is there a way to do that? The problem is simply that my source material (not within my control) is in WMV. Else I would have had everything running on mp4 or AVC with Quicktime on both OS X and Windows. Jesse ___ 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: Optimize This!
Thanks Alex and Mark! I have it in place now and it is working great. Here is the final version I settled on. NOTE in my scenario, I open and close the file further up the chain because I call this function 4 times in a row. FUNCTION GetPositionInBinaryFile pPath, pString, pStart, pOccurrence put the number of chars in pString into tStringLength put 10 into tSize IF tStringLength = 0 THEN return 0 IF tStringLength tSize THEN return 0 IF pStart = THEN PUT 1 into pStart IF pOccurrence = THEN PUT 1 into pOccurrence put 0 into tFoundCount put 0 into tPos -- file is already open so we don't need this --open file pPath for binary read REPEAT read from file pPath at pStart for tSize put it into tData IF the number of chars in tData tStringLength THEN return 0 put 0 into tCharsToSkip REPEAT put offset(pString, tData, tCharsToSkip) into n IF n 0 THEN add 1 to tFoundCount IF tFoundCount = pOccurrence THEN put pStart + tCharsToSkip + n into tPos -- close file pPath Return tPos ELSE add n + tStringLength to tCharsToSkip -- what about overlapping sub-strings ??!! END IF ELSE -- no more to be found in this block EXIT REPEAT END IF END REPEAT -- we get here when n = 0, i.e. no more occurrences in this block put pStart + tSize - tStringLength into pStart END REPEAT END GetPositionInBinaryFile -- Todd Geist __ g e i s t i n t e r a c t i v e ___ 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: stamp copy methods
Kurt, You may want to check out GarageBand on the Mac side that comes with the iLife software from Apple. I have been playing with it for a few months now and find it incredibly easy to use but full of powerful features. The reason I mention this is that the music notation aspect of it is very easy to use and might be of use to you. Of course it is not available for Windows and I doubt it will be in the future so your cross platform app might be very useful. Tom On Apr 30, 2006, at 10:19 PM, Kurt Kaufman wrote: I'm looking for an efficient way to do the following: 1) I have a collection of about 50 very small graphics (bw). 2) I'd trap keystrokes to set the cursor to a miniature representation of one of the above graphics. 3) Subsequent clicking on a canvas would create and place a copy of the keystroke-chosen graphic at the clicked location. 4) The location of the graphic now placed in step 3 can be tweaked with mouse or arrow keys. 5) Creation of arcs (music slurs and ties) 6) Creation of music beams for 8th and 16th notes, etc. I'm especially interested in suggestions for step 3, but all suggestions would be greatly appreciated. I have received over the years dozens of requests for an OSX- compatible pen-and-paper style music notation program similar to an admittedly amateurish one I developed in Supercard many years ago. I'm sure I can do better this time around, and release it for OSX, Windows and UNIX as well! thank you, Kurt ___ 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 Thomas J McGrath III [EMAIL PROTECTED] Lazy River Software - http://www.lazyriversoftware.com Lazy River Metal Artâ„¢ - http://www.lazyriversoftware.com/metal.html Meeting Wear - http://www.cafepress.com/meetingwear Semantic Compaction Systems - http://www.minspeak.com SCIconics, LLC - http://www.sciconics.com/sciindex.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: More OSX Appearance Confusion
modeless stack stackName _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ ___ 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
ASCII Font?
Does anyone know where to find a special font that was created way back in the dim times (OS 7, I believe) that displayed for each character slot a reduced character with the corresponding ASCII codes directly beneath them? So if you had a phrase like: Hey, everyone! and then changed the font to ASCII Font (I think was its name), you'd see something like this: H e y, e v e r y on e ! 72 101 121 44 32 101 118 101 114 121 111 110 101 33 (you may need to change your fonts to see what I mean) I'm *dying* for this font, as it is a real help in debugging oddly formatted text... Anyone know where it might be found? Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] ___ 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: ASCII Font?
Hi Ken, This isn't what you're asking for, but you might be able to modify it to give you what you need in the interim. From your message box: go stack url http://pdslabs.net/stacks/HexViewer.rev; HTH - Phil Davis Ken Ray wrote: Does anyone know where to find a special font that was created way back in the dim times (OS 7, I believe) that displayed for each character slot a reduced character with the corresponding ASCII codes directly beneath them? So if you had a phrase like: Hey, everyone! and then changed the font to ASCII Font (I think was its name), you'd see something like this: H e y, e v e r y on e ! 72 101 121 44 32 101 118 101 114 121 111 110 101 33 (you may need to change your fonts to see what I mean) I'm *dying* for this font, as it is a real help in debugging oddly formatted text... Anyone know where it might be found? Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] ___ 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: ASCII Font?
On 5/1/06 12:29 PM, Phil Davis [EMAIL PROTECTED] wrote: Hi Ken, This isn't what you're asking for, but you might be able to modify it to give you what you need in the interim. From your message box: go stack url http://pdslabs.net/stacks/HexViewer.rev; That's pretty cool, Phil! Unfortunately I need it to work within a 3rd party text editor (since I don't want to write one myself ;-). Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] ___ 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: ASCII Font?
Does anyone know where to find a special font that was created way back in the dim times (OS 7, I believe) that displayed for each character slot a reduced character with the corresponding ASCII codes directly beneath them? ... I'm *dying* for this font, as it is a real help in debugging oddly formatted text... Ken, For the purpose you describe, you can probably use this to -make- an ASCII font. This service used to be free, but now it costs $9 per font. I used it and it works pretty good. You write (or type) onto the template what you want each letter to look like, upload it, and a font file is auto-generated. http://www.fontifier.com/ Roger Eller [EMAIL PROTECTED] ___ 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: ASCII Font?
Hi Roger, How long does all this take? [EMAIL PROTECTED] wrote: For the purpose you describe, you can probably use this to -make- an ASCII font. This service used to be free, but now it costs $9 per font. I used it and it works pretty good. You write (or type) onto the template what you want each letter to look like, upload it, and a font file is auto-generated. http://www.fontifier.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: ASCII Font?
... and it works pretty good. You write (or type) onto the template what you want each letter to look like, upload it, and a font file is auto-generated. http://www.fontifier.com/ Chipp Walters wrote: Hi Roger, How long does all this take? The font generation is almost immediate. I think it is a cgi driven tool. Keep in mind that the intended purpose is handwriting fonts, and your source template can be no more than 100 dpi. So don't expect a super hi-res and smooth outline font... but it works well for general purpose word-processing type applications. Roger Eller [EMAIL PROTECTED] ___ 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: ASCII Font?
On 5/1/06 1:57 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Does anyone know where to find a special font that was created way back in the dim times (OS 7, I believe) that displayed for each character slot a reduced character with the corresponding ASCII codes directly beneath them? ... I'm *dying* for this font, as it is a real help in debugging oddly formatted text... Ken, For the purpose you describe, you can probably use this to -make- an ASCII font. This service used to be free, but now it costs $9 per font. I used it and it works pretty good. You write (or type) onto the template what you want each letter to look like, upload it, and a font file is auto-generated. http://www.fontifier.com/ That looks neat, Roger, but unfortunately it doesn't handle the full 256 characters, which is what I need for the purposes I'm using it for. Basically I'm looking to quickly see the ASCII values of non-printing chars in context of other chars in the text. Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] ___ 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
Upgrading to 2.7.1
Hello everyone, I just upgraded to Enterprise 2.7.1 from 2.7 and noticed that the folder Revolution Enterprise contains a sub-folder folder named 2.7.0-gm-1 with a copy of the old version of the application. Do I need to keep it? Regards, Greg ___ 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
CSV and REV?
Rev 2.6.1 Greetings, I'm trying to setup a small CSV editor. I was using the itemdel and setting it to a comma, but that's not good enough for working with CSV files since most use a quote comma quote separation which allows commas to be used within the item. In another language I used, I was able to set the item delimiter to more than one character which worked wonderfully for CSV files, but I tried using three characters as the itemdel and that's a no go. Does anyone know if there's a tutorial floating round for using CSV files in Rev? Thanks, -Garrett ___ 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: CSV and REV?
Garrett Hylltun wrote: I'm trying to setup a small CSV editor. I was using the itemdel and setting it to a comma, but that's not good enough for working with CSV files since most use a quote comma quote separation which allows commas to be used within the item. In another language I used, I was able to set the item delimiter to more than one character which worked wonderfully for CSV files, but I tried using three characters as the itemdel and that's a no go. Does anyone know if there's a tutorial floating round for using CSV files in Rev? Not a tutorial as such - but there was a long and fruitful discussion that can be found in the archives (June and July 2004, under the subject line Another Revolution Success Story). My summary : If possible and practical, use TSV instead (tab separated values). If it needs to be CVS, then find this thread in the archives. There's code in there to handle the more common cases, and there was some discussion on just how weird and varied the different versions of csv can be. If you want to skip the discussion and go straight to the code - see Richard Gaskin's posting in that thread on July 1st 2004 -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.5.1/327 - Release Date: 28/04/2006 ___ 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: CSV and REV?
Alex Tweedly wrote: Not a tutorial as such - but there was a long and fruitful discussion that can be found in the archives (June and July 2004, under the subject line Another Revolution Success Story). My summary : If possible and practical, use TSV instead (tab separated values). If it needs to be CVS, then find this thread in the archives. There's code in there to handle the more common cases, and there was some discussion on just how weird and varied the different versions of csv can be. If you want to skip the discussion and go straight to the code - see Richard Gaskin's posting in that thread on July 1st 2004 Greetings Alex, Thanks for all the info. Yes, I'd prefer to simply use TAB delimited files since it's much easier to deal with in Rev, but I will still need to implement the ability to open and save COMMA delimited files too. And it sounds like everything I need is in those threads, so thanks a bunch :-) -Garrett ___ 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: CSV and REV?
Garrett Hylltun wrote: Alex Tweedly wrote: My summary : If possible and practical, use TSV instead (tab separated values). If it needs to be CVS, then find this thread in the archives. There's code in there to handle the more common cases, and there was some discussion on just how weird and varied the different versions of csv can be. If you want to skip the discussion and go straight to the code - see Richard Gaskin's posting in that thread on July 1st 2004 Greetings Alex, Thanks for all the info. Yes, I'd prefer to simply use TAB delimited files since it's much easier to deal with in Rev, but I will still need to implement the ability to open and save COMMA delimited files too. And it sounds like everything I need is in those threads, so thanks a bunch :-) If you absolutely must support CSV, please consider joining a handful of us curmudgeons on a mission to save the world from the unnecessary horror that is CSV: support for reads, but not for writes. The last thing the world needs is yet another app keeping that half-baked format alive. :) It was a crappy idea when it was created (how did it even survive more than two minutes in the first meeting where it was proposed?), and it just gets more self-evidently crappy every year that passes with more and more variant implementations polluting the datasphere. I have an app that reads CSV but will export only in tab-delimited format -- and it will use the most sensible form I've seen yet: FileMaker Pro's, in which in-data returns are gracefully accommodated as ASCII 11, and any quotes in the file are only part of the data, never a delimiter. Not long ago I had an opportunity to help contribute to a specification for a format for affiliate data feeds, and at its heart it's the FMP tab format. So we have several million FMP users, plus a few thousand affiliate marketers, and now your customers too. :) Just as polio was once an epidemic so broad it was considered absurd to try to wipe it out, bit by bit we'll move forward toward a more sensible world where good people need no longer suffer from effects of CSV. -- 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
Changing Script In Standalone
Hey, In one of my programs I use the Set the script of object to string alot, but when I recently switched over to 2.7.1 Studio and started to make standalone programs, I noticed that this no longer works. For my test I made a field and two buttons, one button set the script of the other button to the field. I typed a simple on mouseUp handler that answers a message. It worked when I did it in the development environment, but not as a standalone. Does this mean that I can't change script from the user-interface after it has been saved as a standalone? Can someone give me the basic rundown of how Revolution compiles stacks into a standalone? TTFN (ta-ta-for-now) Bridger ___ 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
RevCon West Early Bird Deadline Extended 4 days
I've had a couple of emails from people asking me if we could PLEASE extend the Early Bird deadline for registratoin for the upcoming RevCon West 2006 gathering in Monterey on June 16-17. Without going into detail, there were some pretty creative arguments. Chipp and I are sufficiently amused and willing to be helpful that we're extending the Early Bird deadline to midnight Pacific time this Friday, May 5. You know, Cinquo de Mayo. So you have a bit of breathing room. But I guarantee you rates goe up at 12:01 a.m. Saturday, May 6, with no further recourse. Cases of Mexican beer only go so far when used as bribes for non-drinkers. Sign up at http://www.revconwest.com See you in Monterey. -- ~~ Dan Shafer, Information Product Consultant and Author http://www.shafermedia.com Get my book, Revolution: Software at the Speed of Thought From http://www.shafermediastore.com/tech_main.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: Which is the best and easy-to-use database for RR
Alex. Asking which is best, easy-to-use and easy-to-learn database for RR is a bit like asking How long is a piece of string? There are so many variables that inform such a decision. Here are a few off the top of my head. 1. Do you really need a database or can you successfully store the data directly in Revolution? There are a couple of choices for this approach and depending on how much data you need to store and whether it needs to be shared data, this could be by far the easiest solution. 2. If your databases are single-user and you really need or want relationality, then altSQLite from Altuit is a good choice. But ti does not support multi-user, shared, server-based databases. 3. If you need an industrial strength database that is server-based and multi-user by nature, my personal choice would be PostgreSQL although MySQL has a lot of followers. I find the clear and open licensing of PostgreSQL preferable to the obfuscation of the llicensing issues that accompanies MySQL. 4. Quite a number of people here love Paradigma Software's Valentina, for which Rev includes built-in connections and hooks. It has a reputation as being very fast. And if you come to RevCon West 2006 in Monterey in June (we just extended the great Early Bird discount pricing by a few days), you'll get a free copy of Valentina Office for up to five users for FREE. On 4/30/06, Alex [EMAIL PROTECTED] wrote: Hello, I am doing a project. I plan to use RR and a reliable database for the project. I have some questions: 1. What is the best, easy-to-use and easy-to-learn database for RR? 2. Where can I find tutorials about RR and database? Thanks and best regards Alex --- What a wonderful world Nice to meet all of you ___ 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 -- ~~ Dan Shafer, Information Product Consultant and Author http://www.shafermedia.com Get my book, Revolution: Software at the Speed of Thought From http://www.shafermediastore.com/tech_main.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: Upgrading to 2.7.1
That's part of the new version-reversion strategy for Rev installs. Each new version goes into its own folder so you can always revert back to an earlier release easily if it becomes necessary. So I'm keeping my 2.7.0-gm-1 folder around as well as my 2.7.0-gm-1 folder. But I'm using the new version as the default. On 5/1/06, Gregory Lypny [EMAIL PROTECTED] wrote: Hello everyone, I just upgraded to Enterprise 2.7.1 from 2.7 and noticed that the folder Revolution Enterprise contains a sub-folder folder named 2.7.0-gm-1 with a copy of the old version of the application. Do I need to keep it? Regards, Greg ___ 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 -- ~~ Dan Shafer, Information Product Consultant and Author http://www.shafermedia.com Get my book, Revolution: Software at the Speed of Thought From http://www.shafermediastore.com/tech_main.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: Changing Script In Standalone
Bridger At leat part of the problem is that Revolution does not permit on-the-fly modification of data of any kind in a stack (app) at runtime in the standalone environment. You get around that particular limitation by storing the changeable data in a sub-stack of your app's mainstack and setting up standlone settings so that it creates that stack separately as well. Then you may be able to tell a button in mainstack to set a script in a button of a substack but I haven't tested that idea. On 5/1/06, Bridger Maxwell [EMAIL PROTECTED] wrote: Hey, In one of my programs I use the Set the script of object to string alot, but when I recently switched over to 2.7.1 Studio and started to make standalone programs, I noticed that this no longer works. For my test I made a field and two buttons, one button set the script of the other button to the field. I typed a simple on mouseUp handler that answers a message. It worked when I did it in the development environment, but not as a standalone. Does this mean that I can't change script from the user-interface after it has been saved as a standalone? Can someone give me the basic rundown of how Revolution compiles stacks into a standalone? TTFN (ta-ta-for-now) Bridger ___ 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 -- ~~ Dan Shafer, Information Product Consultant and Author http://www.shafermedia.com Get my book, Revolution: Software at the Speed of Thought From http://www.shafermediastore.com/tech_main.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: Changing Script In Standalone
It should be mentioned that there are script limits in a standalone. 10 lines, as I remember. sqb Bridger At leat part of the problem is that Revolution does not permit on-the-fly modification of data of any kind in a stack (app) at runtime in the standalone environment. You get around that particular limitation by storing the changeable data in a sub-stack of your app's mainstack and setting up standlone settings so that it creates that stack separately as well. Then you may be able to tell a button in mainstack to set a script in a button of a substack but I haven't tested that idea. On 5/1/06, Bridger Maxwell [EMAIL PROTECTED] wrote: Hey, In one of my programs I use the Set the script of object to string alot, but when I recently switched over to 2.7.1 Studio and started to make standalone programs, I noticed that this no longer works. For my test I made a field and two buttons, one button set the script of the other button to the field. I typed a simple on mouseUp handler that answers a message. It worked when I did it in the development environment, but not as a standalone. Does this mean that I can't change script from the user-interface after it has been saved as a standalone? Can someone give me the basic rundown of how Revolution compiles stacks into a standalone? TTFN (ta-ta-for-now) Bridger -- stephen barncard s a n f r a n c i s c o - - - - - - - - - - - - ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Changing Script In Standalone
Correct on the 10 'statement' limit. You may need to use create a sub stack, set the script of the stack, then start using stack 'substackname'. You are allowed 50 stacksInUse. From the Docs (2.6.1 Mac)-- Returns the limits on script length for scripts that are edited in a Revolution. the scriptLimits scriptLimits() Description Use the scriptLimits function to determine the limits on changing scripts when using standalone applications created with Revolution. Value: The scriptLimits function returns a comma-separated list of four positive integers. Where 0 occurs in the list it indicates that the limit is unchecked and therefore unlimited. Comments: The four numbers returned by the scriptLimits function are: * the number of statements permitted when changing a script (normally 10 in a standalone application) * the number of statements permitted in a do command (normally 10 in a standalone application) * the number of stacks permitted in the stacksInUse (normally 50 in a standalone application) * the number of objects permitted in the frontScripts and backScripts (normally 10 in a standalone application) Important! The first number does not limit scripts that are already written. In other words, standalone applications can run scripts of any length. However, if the standalone attempts to change an object's script property, and the script contains more than the allowable number of statements, the attempt to set the script causes an error. On 5/1/06 8:52 PM, Stephen Barncard [EMAIL PROTECTED] wrote: It should be mentioned that there are script limits in a standalone. 10 lines, as I remember. sqb Bridger At leat part of the problem is that Revolution does not permit on-the-fly modification of data of any kind in a stack (app) at runtime in the standalone environment. You get around that particular limitation by storing the changeable data in a sub-stack of your app's mainstack and setting up standlone settings so that it creates that stack separately as well. Then you may be able to tell a button in mainstack to set a script in a button of a substack but I haven't tested that idea. On 5/1/06, Bridger Maxwell [EMAIL PROTECTED] wrote: Hey, In one of my programs I use the Set the script of object to string alot, but when I recently switched over to 2.7.1 Studio and started to make standalone programs, I noticed that this no longer works. For my test I made a field and two buttons, one button set the script of the other button to the field. I typed a simple on mouseUp handler that answers a message. It worked when I did it in the development environment, but not as a standalone. Does this mean that I can't change script from the user-interface after it has been saved as a standalone? Can someone give me the basic rundown of how Revolution compiles stacks into a standalone? TTFN (ta-ta-for-now) Bridger ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Changing Script In Standalone
This is not quite true. Rev does permit modification of data in a standalone, but this new data will not be saved unless it is a separate file to the main program. This can be a sub-stack or any external data storage mechanism. In this case, the script change should happen, provided it fits within the scriptLimits, but the new script will not be saved if the stack being modified is part of the main application file. Cheers, Sarah On 5/2/06, Dan Shafer [EMAIL PROTECTED] wrote: Bridger At leat part of the problem is that Revolution does not permit on-the-fly modification of data of any kind in a stack (app) at runtime in the standalone environment. You get around that particular limitation by storing the changeable data in a sub-stack of your app's mainstack and setting up standlone settings so that it creates that stack separately as well. Then you may be able to tell a button in mainstack to set a script in a button of a substack but I haven't tested that idea. On 5/1/06, Bridger Maxwell [EMAIL PROTECTED] wrote: Hey, In one of my programs I use the Set the script of object to string alot, but when I recently switched over to 2.7.1 Studio and started to make standalone programs, I noticed that this no longer works. For my test I made a field and two buttons, one button set the script of the other button to the field. I typed a simple on mouseUp handler that answers a message. It worked when I did it in the development environment, but not as a standalone. Does this mean that I can't change script from the user-interface after it has been saved as a standalone? Can someone give me the basic rundown of how Revolution compiles stacks into a standalone? TTFN (ta-ta-for-now) Bridger ___ 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