Re: Reference (maybe Live) Distribution for Rev Linux
We have a couple of completely clean installs of Debian (don't ask...), so can have a go on one of them. Also I have someplace a Mandriva install, so will try to dig it out and verify that again with 4.0. Give me a couple of days, not moving very fast right now. Peter -- View this message in context: http://n4.nabble.com/Reference-maybe-Live-Distribution-for-Rev-Linux-tp1472761p1475475.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
AW: Win7 Apps don't launch - just nothing ?
Hi Jim, only revzip and revxml My customer now told me, that the icon of my app has the blue-yellow Win7 admin shield (don't know the correct name). I know that this has anything to do with permission / user rights, but I don't know what exactly and why this only affects my Rev Apps and not all his other Apps. Tiemo Do you use any externals at all like SSL? Aloha from Hawaii, Jim Bufalini ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RevNix ?
This looks jolly interesting: http://www.geekconnection.org/remastersys/ I will try, within the next month, to pump out a RUBUNTU (well, not with that name), or RABID ROTTWEILER (well, one has to think up a suitably stupid name for the distro to keep 'in' with Ubuntu's stupid names. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
For Sale: Source Code and Full Rights
Hello All, I am looking for anyone interested in purchasing the Source Code and Full Rights to one of Dreamscape Software's most successful programs, JPEGCompress. http://www.dreamscapesoftware.com/jpegcompress/ The reason I am looking to sell the source code and full rights is because I have become part of a new venture that requires my full attention, and I am unable to continue spending time developing JPEGCompress. JPEGCompress has undergone about 10 years worth of development, which has resulted in a slew of new features that extend the functionality of the program way beyond basic compression. And with the addition of Graphic Effects in Revolution 4.0, and improvements in Image Exporting and Color Reduction in Revolution 4.5, JPEGCompress stands to receive even more new features that will help to increase it's value to the consumer. I am looking to sell JPEGCompress for (US) $3,000.00, or best offer. The sale would include all of the following... 1. JPEGCompress 3.0 Source Code The current version publicly available is version 2.9.6. This means you could buy the program, release the new version, and start to make your investment back immediately. See what's in version 3.0 here: http://www.dreamscapesoftware.com/jpegcompress/help/topic02.html 2. JPEGCompress Licensed Users Information You get the entire database of customers, as well as all of their contact and order information. 3. JPEGCompress Web Page, Ordering and Maintenance Scripts A lot of what JPEGCompress does is supported by numerous PHP scripts. You get them all so you can start selling and maintaining JPEGCompress immediately. 4. Full Rights to the program name and it's logo. 5. All Development Files, Backups, Graphics, Icons, etc. 6. 4 Free Support Sessions (aka: I help if you get stuck) In other words, you get everything related to JPEGCompress, even it's 4 1/2 Star rating on Download.com. Check out the web site, try the Evaluation version, and do some Google searches. If anyone is interested, or would like to make an offer, then please contact me off-list and I would be more than happy to discuss the offer. Thanks! Derek Bump Dreamscape Software http://www.dreamscapesoftware.com ___ Compress your photos quickly and easily with JPEGCompress 2.9! http://www.dreamscapesoftware.com/products/jpegcompress/ ___ use-revolution mailing list use-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: Properly formatted large numbers
Michael Lew wrote: Dear Listers I'm working on some statistical simulations and regularly get output numbers with anything from 1 to 7 digits. They are hard to read when they don't have the conventional commas separating the thousands and millions. I've written a simple function that does the comma formatting for me but it mucks up sorting. Of course. (I'm using a datagrid to display the results and live sorting is really handy.) I've not yet used a datagrid, so this is a guess can you supply a custom sort function ? Something like function testLessThan p1, p2 replace comma with empty in p1 replace comma with empty in p2 return p1 p2 end testLessThan -- Alex. ___ use-revolution mailing list use-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: Win7 Apps don't launch - just nothing ?
Tiemo Hollmann wrote: only revzip and revxml My customer now told me, that the icon of my app has the blue-yellow Win7 admin shield (don't know the correct name). I know that this has anything to do with permission / user rights, but I don't know what exactly and why this only affects my Rev Apps and not all his other Apps. OK, so given this, it's not that your Rev app is not launching on a particular machine (which is why I started exploring externals). It's that it is being blocked from running on a particular machine (big difference ;-). So a new line of questioning for you and your customer... 1. When he boots the machine does it go to a login screen or does Windows just come up? 2. Does he have any third-party firewall installed (like Norton, McAfee, AVG, etc.) or is he just using the default Windows firewall? 3. Is your app set to auto-launch on boot/login? 4. Where is this shield? Is it on the desktop or does it appear in the System Tray when your app is launched? 5. What are the options if he right-clicks on the shield? You might get him to install something like the free Microsoft SharedView on his system, so you can take it over and see for yourself what is going on. But, it is now sounding like not a Rev issue but a permissions/firewall issue and your app is either blacklisted or requires admin privileges to run. Aloha from Hawaii, Jim Bufalini ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
AW: Win7 Apps don't launch - just nothing ?
Hi Jim, thanks for your hints, I will follow them and get back. It's already late over there, you're still up? :) Tiemo -Ursprüngliche Nachricht- Von: use-revolution-boun...@lists.runrev.com [mailto:use-revolution- boun...@lists.runrev.com] Im Auftrag von Jim Bufalini Gesendet: Mittwoch, 10. Februar 2010 11:58 An: 'How to use Revolution' Betreff: RE: Win7 Apps don't launch - just nothing ? Tiemo Hollmann wrote: only revzip and revxml My customer now told me, that the icon of my app has the blue-yellow Win7 admin shield (don't know the correct name). I know that this has anything to do with permission / user rights, but I don't know what exactly and why this only affects my Rev Apps and not all his other Apps. OK, so given this, it's not that your Rev app is not launching on a particular machine (which is why I started exploring externals). It's that it is being blocked from running on a particular machine (big difference ;-). So a new line of questioning for you and your customer... 1. When he boots the machine does it go to a login screen or does Windows just come up? 2. Does he have any third-party firewall installed (like Norton, McAfee, AVG, etc.) or is he just using the default Windows firewall? 3. Is your app set to auto-launch on boot/login? 4. Where is this shield? Is it on the desktop or does it appear in the System Tray when your app is launched? 5. What are the options if he right-clicks on the shield? You might get him to install something like the free Microsoft SharedView on his system, so you can take it over and see for yourself what is going on. But, it is now sounding like not a Rev issue but a permissions/firewall issue and your app is either blacklisted or requires admin privileges to run. Aloha from Hawaii, Jim Bufalini ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Time date [completely OT]
Over here, it is now 10 to 10 on 10-2-10 :-) (since we have our dates in d-m-y order) 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: Time date [completely OT]
On 10/02/2010 13:50, Sarah Reichelt wrote: Over here, it is now 10 to 10 on 10-2-10 :-) (since we have our dates in d-m-y order) It has always escaped me why US dates are m-d-y d-m-y or y-m-d makes some sort of sense; moving from finer-grained division to coarser, or vice versa. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Devawriter
For ALL of you who just cannot stop writing Sanskrit letters to your uncle who is a sadhu at Rishikesh a new version of Devawriter is available here: http://andregarzia.on-rev.com/richmond/dwriter.html 1.0.7 This one has a floating palette that gives latin transcription values for Devanagari characters. sincerely, Richmond Mathewson. ___ use-revolution mailing list use-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: Reading/Deleting Last Line Of File
Thanks for all the suggestions. I will look into trying some of them to see what works best for me. The file currently contains 105,750,304 records. I will report back my findings. Thanks, Warren On Tue, Feb 9, 2010 at 11:58 PM, J. Landman Gay jac...@hyperactivesw.com wrote: Jim Bufalini wrote: Jacque wrote: Worth a test anyway. I've used it on files that were several megs in size without a problem, but they weren't super huge, just kinda big. Hi Jacque, I made the suggestion I did because at 100 Million records plus 100 million? Yes, well...I think I read the zeros wrong. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: SVG from IREV server question
Andre, thank you very much. Both of your solutions work. --- On Tue, 2/9/10, Andre Garzia an...@andregarzia.com wrote: From: Andre Garzia an...@andregarzia.com Subject: Re: SVG from IREV server question To: How to use Revolution use-revolution@lists.runrev.com Date: Tuesday, February 9, 2010, 10:16 PM tried: put header Content-Type: image/svg+xml or (should not work, but it might) put new header Content-Type: image/svg+xml Andre On Wed, Feb 10, 2010 at 1:24 AM, Michael Kann mikek...@yahoo.com wrote: Perhaps someone with some fresh eyes can help me out. I'm trying to serve up an SVG image from the IREV server. I started with a PHP script that works: ?php header('Content-Type: image/svg+xml'); echo '?xml version=1.0 encoding=UTF-8 standalone=no?'; ? svg width=100px height=100px viewBox=0 0 500 500 version=1.0 xmlns=http://www.w3.org/2000/svg; rect width=100 height=100 fill=blue / /svg Converting to an irev file, I tried out a few different lines to send out the header and the xml info, but nothing worked. Has anyone made this work? Thanks in advance, Mike ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution -- http://www.andregarzia.com All We Do Is Code. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Problem Updating mySQL Record
DATABASE TABLE STRUCTURE of tleasepayments LeaseIDint(11) NOT NULL LeaseNamevarchar(50) NOT NULL LeaseCropYearsmallint(5) NOT NULL LandOwnerID varchar(40) NOT NULL LeasePaymentDate timestamp NOT NULL LeasePaymentDollars decimal(19,4) NULL --- The problem field. CropSharePercent decimal(18,4) NULL AssetIDvarchar(25) NULL Notesvarchar(255) NULL It must be my query because even when given directly to the database (not through rev) it still does not update correctly and puts null in all the nullable values. I realized I was trying to put a string into CropSharePercent and fixed it to put zero instead. But it still does the same thing it was. The below code outputs this query. UPDATE tleasepayments SET LeasePaymentDollars=21337. AND CropSharePercent='0' AND Notes='None' WHERE LeaseID='1213' Should I ditch the single quotes on variables that are decimals or integers? In my DB if the datatype is decimal can it have a 0 value or must it be 0.0? I cleaned up the code a bit. And explained the questionable variables, but am hesitant to spend time pulling this out of my program and into a stack for the sake of figuring out my query problems. At this point I am very sure I am mismatching datatypes in my DB or setting my query up wrong. on UpdatePayment pTable, pSetQuery, pConditional -- check the global connection ID to make sure we have a database connection global sDatabaseID if sDatabaseID is not a number then answer error Please connect to the database first. exit to top end if put the text of field fLeasePaymentDollars into tLeasePaymentDollars put the text of field fCropSharePercent into tCropSharePercent if tCropSharePercent is empty then put 0 into tCropSharePercent put the text of field fNotes into tNotes if tNotes is empty then put None into tNotes #below are just place holders for passing my parameters eventually. put tleasepayments into pTable put LeasePaymentDollars= tLeasePaymentDollars \ AND CropSharePercent=' tCropSharePercent ' \ AND Notes=' tNotes ' into pSetQuery put WHERE LeaseID=' thePaymentID ' into pConditions #Crop Year #LandOwner #PaymentDate put UPDATE pTable SET pSetQuery pConditions into tSQL #dump the query So I can See what it is putting out put tSQL into field test -- send the SQL to the database revExecuteSQL sDatabaseID, tSQL -- check the result and display the data or an error message if the result is a number then answer info Record Updated. else answer error There was a problem adding the record to the database: cr the result end if end UpdatePayment -- View this message in context: http://n4.nabble.com/Problem-Updating-mySQL-Record-tp1475274p1475785.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Problem Updating mySQL Record
Ok, I have spent some time trying to smooth that query out. I got the query to work if I took out LeasePaymentDollars=1337. I also got the query to work if I take everything BUT LeasePaymentDollars out. I didn't re-write the query and the spellings/syntax are the exact same. So it works when broken up but not when put together? Wtf? Bizzare. -- View this message in context: http://n4.nabble.com/Problem-Updating-mySQL-Record-tp1475274p1475811.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: AW: Andre's house - completely offtopic
Hi I made a google maps entry that is open for anyone to edit. If you have a google account of any sorts, you can go here, and click on save to my maps and then edit to add your own location: http://maps.google.com/maps/ms?ie=UTF8hl=enmsa=0msid=103560329393675966954.00047f3f26dbe66f71c2dll=17.978733,12.304688spn=124.244284,268.242188t=hz=2 Caveats: This could be a spam magnet, I'll test it out and if it doesn't work, I'll delete it again. I tried to import the old map from Frappr. However, there where several problems, so I opted to not use that import, and start fresh. Some example problems: Images didn't come trough There where more incomplete or broken entries then real ones Those entries which did work where strangely merged ie. the name would be put into the comment field, doubled text, etc. Have fun Björnke On 9 Feb 2010, at 10:37, Tiemo Hollmann TB wrote: Just a thought, isn't there anywhere in the net a tool where we could open a group where everybody could pin his location on the world map (like the cities I've visited in facebook). I think it would be interesting to see how wide spread the Rev community is, though a jungle place on Puerto Rico probably is the most exotic, William :) Any idea? -- official ChatRev page: http://bjoernke.com?target=chatrev Chat with other RunRev developers: go stack URL http://bjoernke.com/chatrev/chatrev1.3b3.rev; ___ use-revolution mailing list use-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: Getting some chars from a string?
you already got a few interesting entries to try, but I haven't seen this one. I'd use this, because I suck at regexp and because one never know if someone added a suffix of jpeg or jpg or j or... function removeSuffix theName set the itemdelimiter to . return item 1 to -2 of theName end removeSuffix On 9 Feb 2010, at 20:01, Richmond Mathewson wrote: I have a series of image names for the type: f#.png where # can be a number anywhere between 1 and 6 figures long. what I need is to extract the number from the image name. SO, starting with on mouseEnter put the short name of me into NOMEN ? -- official ChatRev page: http://bjoernke.com?target=chatrev Chat with other RunRev developers: go stack URL http://bjoernke.com/chatrev/chatrev1.3b3.rev; ___ use-revolution mailing list use-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: AW: Andre's house - completely offtopic
Hello, Where click save to my maps ? René Le 10 févr. 2010 à 15:00, Björnke von Gierke a écrit : Hi I made a google maps entry that is open for anyone to edit. If you have a google account of any sorts, you can go here, and click on save to my maps and then edit to add your own location: http://maps.google.com/maps/ms?ie=UTF8hl=enmsa=0msid=103560329393675966954.00047f3f26dbe66f71c2dll=17.978733,12.304688spn=124.244284,268.242188t=hz=2 Caveats: This could be a spam magnet, I'll test it out and if it doesn't work, I'll delete it again. I tried to import the old map from Frappr. However, there where several problems, so I opted to not use that import, and start fresh. Some example problems: Images didn't come trough There where more incomplete or broken entries then real ones Those entries which did work where strangely merged ie. the name would be put into the comment field, doubled text, etc. Have fun Björnke On 9 Feb 2010, at 10:37, Tiemo Hollmann TB wrote: Just a thought, isn't there anywhere in the net a tool where we could open a group where everybody could pin his location on the world map (like the cities I've visited in facebook). I think it would be interesting to see how wide spread the Rev community is, though a jungle place on Puerto Rico probably is the most exotic, William :) Any idea? -- official ChatRev page: http://bjoernke.com?target=chatrev Chat with other RunRev developers: go stack URL http://bjoernke.com/chatrev/chatrev1.3b3.rev; ___ use-revolution mailing list use-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: AW: Andre's house - completely offtopic
I think it is good now... But it is not simple to understand interface !! Thanks René Le 10 févr. 2010 à 15:00, Björnke von Gierke a écrit : Hi I made a google maps entry that is open for anyone to edit. If you have a google account of any sorts, you can go here, and click on save to my maps and then edit to add your own location: http://maps.google.com/maps/ms?ie=UTF8hl=enmsa=0msid=103560329393675966954.00047f3f26dbe66f71c2dll=17.978733,12.304688spn=124.244284,268.242188t=hz=2 Caveats: This could be a spam magnet, I'll test it out and if it doesn't work, I'll delete it again. I tried to import the old map from Frappr. However, there where several problems, so I opted to not use that import, and start fresh. Some example problems: Images didn't come trough There where more incomplete or broken entries then real ones Those entries which did work where strangely merged ie. the name would be put into the comment field, doubled text, etc. Have fun Björnke On 9 Feb 2010, at 10:37, Tiemo Hollmann TB wrote: Just a thought, isn't there anywhere in the net a tool where we could open a group where everybody could pin his location on the world map (like the cities I've visited in facebook). I think it would be interesting to see how wide spread the Rev community is, though a jungle place on Puerto Rico probably is the most exotic, William :) Any idea? -- official ChatRev page: http://bjoernke.com?target=chatrev Chat with other RunRev developers: go stack URL http://bjoernke.com/chatrev/chatrev1.3b3.rev; ___ use-revolution mailing list use-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: Problem Updating mySQL Record
The ANDs were jacking my query up. Commas used instead makes it work just as it should. UPDATE tleasepayments SET LeasePaymentDollars=21337. , CropSharePercent='0' , Notes='PUT SOME NOTES HERE' WHERE LeaseID='1214' grr, COMMAS! You win this time... -- View this message in context: http://n4.nabble.com/Problem-Updating-mySQL-Record-tp1475274p1475880.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Words Indexing strategies
Hi Bernard, on Wed, 10 Feb 2010 07:20:36 + Bernard Devlin wrote: Can I just clarify your problem? You want to be able to search for phrases (partial sentences, possibly with boolean logic) inside the text stored in the xml nodes of the article, once the article is found in the index? No, it's not a search inside the displayed article. It's a global search, within a general index created using all words from all articles of Wikipedia. (I do not believe that it's necessary to load this full index in memory, instead just open specific parts of this index when users start searching) For this reason, i am looking for advice to create an index structure that allows to implement a fast search algorithm, using multiple words (and boolean logic, if possible), similar to Wikipedia's own search engine or (better yet) just like google. :-) Many thanks for your interest in this question! Alejandro ___ use-revolution mailing list use-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: Words Indexing strategies
On Wed, Feb 10, 2010 at 2:56 PM, Alejandro Tejada capellan2...@gmail.com wrote: No, it's not a search inside the displayed article. It's a global search, within a general index created using all words from all articles of Wikipedia. (I do not believe that it's necessary to load this full index in memory, instead just open specific parts of this index when users start searching) OK, so that's why you mention the different files for each letter of the alphabet. I'm still a bit confused. Normally an index would indicate a location for an indexed term That's what I assume your general index files are doing. What are the key terms like in this index, and what do they point to? Can you give us some examples? For this reason, i am looking for advice to create an index structure that allows to implement a fast search algorithm, using multiple words (and boolean logic, if possible), similar to Wikipedia's own search engine or (better yet) just like google. :-) To my confused and befuddled mind, it sounds like you are wanting to create an index of the index. That can't be right :-) I'm no expert in search algorithms. I have been hoping someone else would jump in who has done this kind of thing before. Are you wanting a pure, rev-only solution i.e. are you doing this to demonstrate what can be done using Rev alone? Bernard ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Win7 Apps don't launch - just nothing ?
Another thing to try is just moving the application to your Library-Documents folder. It could in a UAC protected folder which will not allow it to run (I have witnessed this a zillion times). Neal Campbell Abroham Neal Software www.abrohamnealsoftware.com (540) 645 5394 NEW PHONE NUMBER Amateur Radio: K3NC Blog: http://www.abrohamnealsoftware.com/blog/ DXBase bug reports: email to ca...@dxbase.fogbugz.com Abroham Neal forums: http:/www.abrohamnealsoftware.com/community/ On Wed, Feb 10, 2010 at 6:03 AM, Tiemo Hollmann TB toolb...@kestner.dewrote: Hi Jim, thanks for your hints, I will follow them and get back. It's already late over there, you're still up? :) Tiemo -Ursprüngliche Nachricht- Von: use-revolution-boun...@lists.runrev.com [mailto:use-revolution- boun...@lists.runrev.com] Im Auftrag von Jim Bufalini Gesendet: Mittwoch, 10. Februar 2010 11:58 An: 'How to use Revolution' Betreff: RE: Win7 Apps don't launch - just nothing ? Tiemo Hollmann wrote: only revzip and revxml My customer now told me, that the icon of my app has the blue-yellow Win7 admin shield (don't know the correct name). I know that this has anything to do with permission / user rights, but I don't know what exactly and why this only affects my Rev Apps and not all his other Apps. OK, so given this, it's not that your Rev app is not launching on a particular machine (which is why I started exploring externals). It's that it is being blocked from running on a particular machine (big difference ;-). So a new line of questioning for you and your customer... 1. When he boots the machine does it go to a login screen or does Windows just come up? 2. Does he have any third-party firewall installed (like Norton, McAfee, AVG, etc.) or is he just using the default Windows firewall? 3. Is your app set to auto-launch on boot/login? 4. Where is this shield? Is it on the desktop or does it appear in the System Tray when your app is launched? 5. What are the options if he right-clicks on the shield? You might get him to install something like the free Microsoft SharedView on his system, so you can take it over and see for yourself what is going on. But, it is now sounding like not a Rev issue but a permissions/firewall issue and your app is either blacklisted or requires admin privileges to run. Aloha from Hawaii, Jim Bufalini ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-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: Words Indexing strategies
Alejandro, The first step for this would likely include creating an inverted index. This means you store something like: monkey:1,34,3827,21314 Where the word being indexed in monkey and the numbers that follow are article IDs. Using this information it is pretty trivial to implement AND / OR. Just merge the article IDs as needed. You can use a mix of this inverted index and your regular index in combination to do other types of queries. You can even store word frequency information to find similar articles. With that said, I think you will have a very hard time crafting a competitive algorithm for this in Rev. A lot of the engines out there are very mature and there are many open source ones that you might consider bundling with your project instead of writing it yourself. Some things to watch out for: 1) File size. Indexing every word takes a lot of space, especially if you indices are in plain text and not a compact binary format 2) Common words. You might consider a stop word list, or a threshold. For example, if a word is in 20% of all articles, don't index it. Or if it's in your stop word list. 3) Root words / plurals. Can you detect that monkeys is the plural of monkey (or more complex cases)? An example of an open source engine that is very mature is Lucene, which can be run from the command-line in Java. Hi Bernard, on Wed, 10 Feb 2010 07:20:36 + Bernard Devlin wrote: Can I just clarify your problem? You want to be able to search for phrases (partial sentences, possibly with boolean logic) inside the text stored in the xml nodes of the article, once the article is found in the index? No, it's not a search inside the displayed article. It's a global search, within a general index created using all words from all articles of Wikipedia. (I do not believe that it's necessary to load this full index in memory, instead just open specific parts of this index when users start searching) For this reason, i am looking for advice to create an index structure that allows to implement a fast search algorithm, using multiple words (and boolean logic, if possible), similar to Wikipedia's own search engine or (better yet) just like google. :-) Many thanks for your interest in this question! Alejandro ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolutio ___ use-revolution mailing list use-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: Words Indexing strategies
The ambitious Alejandro Tejada wrote: It's a global search, within a general index created using all words from all articles of Wikipedia. (I do not believe that it's necessary to load this full index in memory, instead just open specific parts of this index when users start searching) For this reason, i am looking for advice to create an index structure that allows to implement a fast search algorithm, using multiple words (and boolean logic, if possible), similar to Wikipedia's own search engine or (better yet) just like google. :-) A good place to start on that is the seminal paper describing the initial Google implementation, written by the founders: The Anatomy of a Large-Scale Hypertextual Web Search Engine Sergey Brin and Lawrence Page http://infolab.stanford.edu/~backrub/google.html But be warned: indexing is a deep topic, and may become a consuming passion. Roulette is rumored to have been invented by a monk who came to believe he could find a way to predict its outcomes, and eventually went mad trying. Indexing is a bit like that. :) A couple of the longer-term projects I work on need to incorporate good indexing of large corpuses, and my own code to that end has advanced only in small baby steps as I learn more about it. So while I have little in the way of applied code to share at the moment, I can offer a few theoretical pointers: From what I'm reading, my first advice would be to not bother unless you absolutely need to. If there's any way you can use an existing index you'll be a happier man to do so. But if you have to make your own index, you may find it helpful (or maddening) to consider the challenges involved with the various tenses and inflections of words, and how to determine the root word in its native form (the lemma) for your lookups. Currently I'm looking into the various lemmatization schemes available, since it can help tremendously to both keep the index small enough to be practical while returning more relevant search results. Lemmatization attempts this through linguistic rules; stemming could be said to be a form of cheating by using simpler algos less dependent on the nuances of a given language to attempt the same result. The differences are explained well here: Stemming and lemmatization http://nlp.stanford.edu/IR-book/html/htmledition/stemming-and-lemmatization-1.html Links to specific stemming algos are at the bottom of this article: http://www.comp.lancs.ac.uk/computing/research/stemming/general/ Without lemmatization or stemming, searches for children will fail to find child, which could well be relevant to the searcher. And some stemming methods won't be able to transform children to child since it's an uncommon transformation linguistically, much less so than more common plural forms like just adding s or es to the end. There's a wealth of info available searching the web for indexing algorithms, stemming algorithms, etc. Doing it well may take a lifetime; fortunately it seems there are some cheating methods which will do most of the job well enough in less time. All that said, I have to wonder: if Wikipedia's content is available, isn't their index also available? Porting it from MySQL to SQLite seems a far less daunting task than writing an index from scratch. -- Richard Gaskin Fourth World Rev training and consulting: http://www.fourthworld.com Webzine for Rev developers: http://www.revjournal.com revJournal blog: http://revjournal.com/blog.irv ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Noob Stacks Questions
The app I am working on is to be one stack in a set of stacks for dealing with different tasks. The first one I am working on handles everything to do with managing Leases on machinery, land, etc. There are many other tasks to handle and I figured a stack for each (and seperate stacks for setting up the data in the DB) inside of the consistent interface stack (lets you navigate between the different tasks/modules/stacks). Ok, so far in my Lease (module) Stack I have made a single stack and used different cards for the edit,new,view screens. I just added sarah's calender stack to my LeaseStack and trying to figure out how to get the information from sarah's calendar into my EditPayments card. I understand stacks but now how they can fit into the development of a large application like this. 1. How do you pass data to and from different stacks? (Sarah's calendar specifically, and the rest of the stacks in my Application in general) 2. Is the structure for my application sensible? I have never done alot gui programming before, mostly been confined to php, ASP, and RoR, etc. The structure, as I have envisioned it, is. *NOTE: --- means to call up.* MainInterfaceStack --- ModuleStacks (LeaseStack, WorkOrderStack, etc) --- SetupStacks (Add Users, Add Fields, Add Townships, Add Assets, etc.) -- View this message in context: http://n4.nabble.com/Noob-Stacks-Questions-tp1476073p1476073.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Getting some chars from a string?
On 10/02/2010 16:07, Björnke von Gierke wrote: you already got a few interesting entries to try, but I haven't seen this one. I'd use this, because I suck at regexp and because one never know if someone added a suffix of jpeg or jpg or j or... function removeSuffix theName set the itemdelimiter to . return item 1 to -2 of theName end removeSuffix That one IS clever! ___ use-revolution mailing list use-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: Noob Stacks Questions
On 10/02/2010 18:44, Andrew Kluthe wrote: 1. How do you pass data to and from different stacks? (Sarah's calendar specifically, and the rest of the stacks in my Application in general) Try this: put fld MAINDATA of stack MAINSTACK into fld DATA2 of stack STACK2 ALSO: Make sure that you have only 1 Main stack and all the others are substacks, your life will be a lot easier than if you start using lots of main stacks. ___ use-revolution mailing list use-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: Noob Stacks Questions
I haven't built the Main Stack yet but am building LeaseStack to be shown to my supervisor to show him Rev's capabilities. This is one of Many modules/stacks that are to be used by the Mainstack when i write it. Can I write LeaseStack and add it to MainStack as a sub-stack later? Not a lot of data is going to be passed from Main to the different Module stacks. Most of them are going to be near stand-alone (my boss has a dream of charging differently for versions that include other tasks/modules/stacks). -- View this message in context: http://n4.nabble.com/Noob-Stacks-Questions-tp1476073p1476114.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Quickly View Contents Of An Array
Well if you know SQL syntax like the back of your hand and dream about insert statements, then you could get by without it I suppose. But if you are not that keen on SQL then I highly recommend it, because it offers a way to do quite complex database operations without knowing ANYTHING about SQL. Trevor's support has been excellent for me (God knows I have needed it). Another thing I find useful, is that it stores information about your database like schemas and such, and also it reconnects it if detects that the connection is dropped. This works great for network local connections, but have found that when a remote mySQL like on-rev server has dropped the connection and Revolution tries to reconnect, there is a HUGE lag of many minutes before the command fails. This is not a problem with sqlYoga, but I think has something to do with how the remote SQL server handles attempts to connect that are not valid. The solution is to close you connections when finished, which is good programming practice anyway. Bob On Feb 9, 2010, at 4:48 PM, Andrew Kluthe wrote: And is SQL Yoga worth it? My boss told me I can get whatever plugins I need to improve my productivity. I looked into it a bit but it seems to be what I have my DB handlers written for. What is the benefit of SQL Yoga vs Custom handlers? ___ use-revolution mailing list use-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: anyone found a way around 4-5 second latency in read from process?
Thanks Bernard, good tips... I am experiencing this delay compared to running the same command in Terminal in OS X... I have also tried changing the idleRate but that doesn't seem to affect read from process. Perhaps an external is the best solution. On Feb 9, 2010, at 2:22 AM, Bernard Devlin wrote: On Mon, Feb 8, 2010 at 8:24 PM, Josh Mellicker j...@dvcreators.net wrote: Things are working, but there is always about a 4 - 5 second latency in the read from process. Usually this doesn't matter, but in our current project it needs to be within a second or less. In the situations where I've used read from process this latency would make it a total non-starter. I think there is something unusual in your circumstances. I have just been working on a small module that uses read from process, and the same action launched from a command line takes 5 seconds, as it does if it was run using read from process. So your experience of latency is unusual. Maybe it is something to do with the startup time of the application you are opening as a process? I'm running on Vista here, but I've used read from process on OS X too with no noticeable delays I would try timing the same action using a command line script to see if there is really a latency with read from process. Bernard ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-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: Noob Stacks Questions
Andrew, Why not stick to the main stack/ substacks paradigm? It will be a lot easier in dealing with paths and can still act like a single application. A lot of people will do this even with one stack (i.e. a splash screen stack gets built as the standalone and then all substacks stay as stacks. The benefit here is also that any changes while running the application will 'take' in a seperate substack of a compiled main stack.) Otherwise, every stack will have to find every other stack via file paths HTH,s Tom McGrath III Lazy River Software 3mcgr...@comcast.net iTunes Library Suite - libITS Information and download can be found on this page: http://www.lazyriversoftware.com/RevOne.html On Feb 10, 2010, at 12:06 PM, Andrew Kluthe wrote: I haven't built the Main Stack yet but am building LeaseStack to be shown to my supervisor to show him Rev's capabilities. This is one of Many modules/stacks that are to be used by the Mainstack when i write it. Can I write LeaseStack and add it to MainStack as a sub-stack later? Not a lot of data is going to be passed from Main to the different Module stacks. Most of them are going to be near stand-alone (my boss has a dream of charging differently for versions that include other tasks/modules/stacks). -- View this message in context: http://n4.nabble.com/Noob-Stacks-Questions-tp1476073p1476114.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Noob Stacks Questions
Well, I have already spent about 3 weeks getting this LeaseStack module to function. Can I start a new Mainstack and add this leasestack as a substack? -- View this message in context: http://n4.nabble.com/Noob-Stacks-Questions-tp1476073p1476163.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Noob Stacks Questions
Yes, you can always set the mainstack of any stack at anytime. Tom On Feb 10, 2010, at 12:06 PM, Andrew Kluthe wrote: Can I write LeaseStack and add it to MainStack as a sub-stack later? Not a lot of data is going to be passed from Main to the different Module stacks. Most of them are going to be near stand-alone (my boss has a dream of charging differently for versions that include other tasks/modules/stacks). -- ___ use-revolution mailing list use-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: Noob Stacks Questions
On Feb 10, 2010, at 12:30 PM, Andrew Kluthe wrote: Well, I have already spent about 3 weeks getting this LeaseStack module to function. Can I start a new Mainstack and add this leasestack as a substack? Yes. But don't be concerned about using multiple mainstacks in your project. Using multiple mainstacks is actually a good idea for good sized projects. -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.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: Noob Stacks Questions
Yes, see the other reply. Also, is is good to think modularly on larger projects so as to keep each module as independent as possible. Then like you are planning already, one module can be updated or swapped out at any time. So, now where do you store information that goes across all modules??? Well, you can use text files(on-offline), library stacks, some combination of both, etc. On Feb 10, 2010, at 12:30 PM, Andrew Kluthe wrote: Well, I have already spent about 3 weeks getting this LeaseStack module to function. Can I start a new Mainstack and add this leasestack as a substack? -- View this message in context: http://n4.nabble.com/Noob-Stacks-Questions-tp1476073p1476163.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Quickly View Contents Of An Array
On Feb 9, 2010, at 7:48 PM, Andrew Kluthe wrote: And is SQL Yoga worth it? My boss told me I can get whatever plugins I need to improve my productivity. I looked into it a bit but it seems to be what I have my DB handlers written for. What is the benefit of SQL Yoga vs Custom handlers? Sorry, I missed this question the first time around until I saw Bob's response. Here are just some of the benefits I get with SQL Yoga. As background I've been working with SQL Databases for over 12 years so I'm not relying on SQL Yoga to write SQL that I don't already know. Basics * SQL Yoga allows you to think of your Database, tables and records as objects. * SQL Yoga manages the connection ids and cursor ids for you behind the scenes. * SQL Yoga plays the role of a database interface library that you would write by hand in a Revolution project. It knows all about your schema so there is no shim layer to write or update. Just use the SQL Yoga commands for creating, updating, deleting or querying records. * SQL Yoga allows you to interact with data in the database using arrays. This speeds up development time considerably. * Since you are creating objects and setting properties as opposed to wrapping hand-written SQL strings in functions you can experiment and iterate more quickly. * SQL Yoga allows english strings in search conditions (begins with, ends with, etc.). Table Objects - SQL Yoga can treat your tables as objects. * Define specific search conditions using scopes. Multiple scopes can be added to a query based on UI input and a WHERE clause is automatically generated for you based on all scope conditions. * Add properties to your tables. For example, a property that returns a date column in the database as a nicely formatted string or a property that returns a full name based on the values of the FirstName and LastName columns in a record. * Add data validation routines that get called when creating or updating data in a table. * Add callbacks that get called when creating, updating or deleting data. Table Relationships - You can tell SQL Yoga about table relationships and then leverage those relationships in your code. * SQL Yoga automatically generates joins for you and can convert query results into a hierarchal nested array. * Given a record from a table SQL Yoga can fetch all related records in a related table. * SQL Yoga has commands for automatically linking/unlinking records in related tables. -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.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
[OT] Happy Valentines Day to Revolution!
I can't say this about most software, but I absolutely LOVE Revolution! And the new revWeb plugin, OMG! She is a thing of beauty! My life has been improved by using Rev so much that during this week as we approach Valentines Day, I just want to say Thank You to the Revolution team and all that have been involved in making it better and better and better. Happy Heart Week! Roger Eller roger.e.el...@sealedair.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
AW: Win7 Apps don't launch - just nothing ?
Hi Neal, one of the Apps is a App, which runs off the CD. Could the UAC also has his hands on the CD drive? Tiemo -Ursprüngliche Nachricht- Von: use-revolution-boun...@lists.runrev.com [mailto:use-revolution- boun...@lists.runrev.com] Im Auftrag von Neal Campbell Gesendet: Mittwoch, 10. Februar 2010 17:13 An: How to use Revolution Betreff: Re: Win7 Apps don't launch - just nothing ? Another thing to try is just moving the application to your Library-Documents folder. It could in a UAC protected folder which will not allow it to run (I have witnessed this a zillion times). Neal Campbell Abroham Neal Software www.abrohamnealsoftware.com (540) 645 5394 NEW PHONE NUMBER Amateur Radio: K3NC Blog: http://www.abrohamnealsoftware.com/blog/ DXBase bug reports: email to ca...@dxbase.fogbugz.com Abroham Neal forums: http:/www.abrohamnealsoftware.com/community/ ___ use-revolution mailing list use-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: Quickly View Contents Of An Array
hmm an impressive list of features. I will have to look into it more. It seems half or more of my programming work is writing handlers and functions for database queries. -- View this message in context: http://n4.nabble.com/Quickly-View-Contents-Of-An-Array-tp1474936p1476224.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Win7 Apps don't launch - just nothing ?
Just try copy and move it to the Library-Documens folder and see if it does. I don't make any promises but I have had projects that worked in the IDE under win7/64 and when you build them will exhibit the behaviour you menitoned. I just copy them somewhere my account owns (even the desktop) and it works. I haven't figured that out at all since I own the build folder also but its an easy thing to try! Best wishes Neal Campbell Abroham Neal Software www.abrohamnealsoftware.com (540) 645 5394 NEW PHONE NUMBER Amateur Radio: K3NC Blog: http://www.abrohamnealsoftware.com/blog/ DXBase bug reports: email to ca...@dxbase.fogbugz.com Abroham Neal forums: http:/www.abrohamnealsoftware.com/community/ On Wed, Feb 10, 2010 at 1:14 PM, Tiemo Hollmann TB toolb...@kestner.dewrote: Hi Neal, one of the Apps is a App, which runs off the CD. Could the UAC also has his hands on the CD drive? Tiemo -Ursprüngliche Nachricht- Von: use-revolution-boun...@lists.runrev.com [mailto:use-revolution- boun...@lists.runrev.com] Im Auftrag von Neal Campbell Gesendet: Mittwoch, 10. Februar 2010 17:13 An: How to use Revolution Betreff: Re: Win7 Apps don't launch - just nothing ? Another thing to try is just moving the application to your Library-Documents folder. It could in a UAC protected folder which will not allow it to run (I have witnessed this a zillion times). Neal Campbell Abroham Neal Software www.abrohamnealsoftware.com (540) 645 5394 NEW PHONE NUMBER Amateur Radio: K3NC Blog: http://www.abrohamnealsoftware.com/blog/ DXBase bug reports: email to ca...@dxbase.fogbugz.com Abroham Neal forums: http:/www.abrohamnealsoftware.com/community/ ___ use-revolution mailing list use-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: Noob Stacks Questions
On 10/02/2010 19:06, Andrew Kluthe wrote: I haven't built the Main Stack yet but am building LeaseStack to be shown to my supervisor to show him Rev's capabilities. This is one of Many modules/stacks that are to be used by the Mainstack when i write it. Can I write LeaseStack and add it to MainStack as a sub-stack later? Yes, that is perfectly possible. Not a lot of data is going to be passed from Main to the different Module stacks. Most of them are going to be near stand-alone (my boss has a dream We all do have these sorts of dreams . . . :) of charging differently for versions that include other tasks/modules/stacks). ___ use-revolution mailing list use-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: Noob Stacks Questions
Andrew- Wednesday, February 10, 2010, 9:30:32 AM, you wrote: Well, I have already spent about 3 weeks getting this LeaseStack module to function. Can I start a new Mainstack and add this leasestack as a substack? One thing to be very wary about is that you can't have substacks of substacks - you can only go one level down. There are several ways of dealing with this, but they all involve rearchitecting your design, so it pays to think ahead about this. -- -Mark Wieder mwie...@ahsoftware.net ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Quickly View Contents Of An Array
I made my presentation to my supervisor and got the go ahead to purchase revEnterprise, SQL Yoga, tRev, and a printed manual dictionary. I'm starting to get my feet wet with all of this and don't want to have to re-write a very large app to work with SQL Yoga after spending so much time on DB handlers. This is why I wanted to move up my presentation and get the OK to purchase it. :) im excited. Thank you for all of your help and suggestions. -- View this message in context: http://n4.nabble.com/Quickly-View-Contents-Of-An-Array-tp1474936p1476342.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: AW: Andre's house - completely offtopic
One has to manually click and zoom to locate - if one searches, one leaves the page. You're right - it is a spam magnet - so probably should be locked after a point. - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev On 10 February 2010 06:23, René Micout rene.mic...@numericable.com wrote: I think it is good now... But it is not simple to understand interface !! Thanks René Le 10 févr. 2010 à 15:00, Björnke von Gierke a écrit : Hi I made a google maps entry that is open for anyone to edit. If you have a google account of any sorts, you can go here, and click on save to my maps and then edit to add your own location: http://maps.google.com/maps/ms?ie=UTF8hl=enmsa=0msid=103560329393675966954.00047f3f26dbe66f71c2dll=17.978733,12.304688spn=124.244284,268.242188t=hz=2 Caveats: This could be a spam magnet, I'll test it out and if it doesn't work, I'll delete it again. I tried to import the old map from Frappr. However, there where several problems, so I opted to not use that import, and start fresh. Some example problems: Images didn't come trough There where more incomplete or broken entries then real ones Those entries which did work where strangely merged ie. the name would be put into the comment field, doubled text, etc. Have fun Björnke On 9 Feb 2010, at 10:37, Tiemo Hollmann TB wrote: Just a thought, isn't there anywhere in the net a tool where we could open a group where everybody could pin his location on the world map (like the cities I've visited in facebook). I think it would be interesting to see how wide spread the Rev community is, though a jungle place on Puerto Rico probably is the most exotic, William :) Any idea? -- official ChatRev page: http://bjoernke.com?target=chatrev Chat with other RunRev developers: go stack URL http://bjoernke.com/chatrev/chatrev1.3b3.rev; ___ use-revolution mailing list use-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
Large Format Printing With Rev?
Hi List Folks: Does anybody have any experience with large format imaging using Rev? I seem to recall Rev has a size limit when it comes to card size, but if a card of simple text and graphics could be converted into some kind of common vector output, the size limit might not be a show stopper. I'm pretty sure Rev's roots were in EPS and/or display PostScript -- could this contribute to a solution? Thanks for any advice. Regards, Scott Rossi Creative Director Tactile Media, UX Design ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Quickly View Contents Of An Array
On Feb 10, 2010, at 2:33 PM, Andrew Kluthe wrote: I made my presentation to my supervisor and got the go ahead to purchase revEnterprise, SQL Yoga, tRev, and a printed manual dictionary. I'm starting to get my feet wet with all of this and don't want to have to re-write a very large app to work with SQL Yoga after spending so much time on DB handlers. This is why I wanted to move up my presentation and get the OK to purchase it. :) im excited. Great. The SQL Yoga page is located here: http://www.bluemangolearning.com/revolution/software/libraries/sql-yoga/ It links to all of the documentation and tutorials and has the latest download. You can run SQL Yoga in demo mode if you don't have a license key yet. -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.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
determining if a stack is locked
With v4, the engine now uses a more secure method to secure scripts, but in my testing it has also removed any way to determine when a stack is password-protected without using try. In versions prior to v4, you could do this: if the password the passkey then ... The password and passkey returned an encrypted string which, while meaningless to the human reader, would at least allow comparisons of the password and passkey to determine if the passkey had been set in the current session, or if there is no password at all. In v4 and later, asking for the password or passkey returns simply true, which might be sufficient but here's the rub: If you start a new session with a locked stack, asking for the password will return true which is correct, but asking for the passkey will also return true which is incorrect, since no passkey has yet been entered. I would expect that asking for the passkey of a stack that has a password would return false until a passkey has been entered in the current session. I discovered this with stacks in which the password had been set in a previous version, but I just confirmed it in v4 using this recipe: 1. Make a new stack 2. Set the stack's password 3. Run this in the Message Box: put the password of this stack the passkey of this stack You'll get true true, which is appropriate because the stack's password was set in this current session and therefore its script is available. So now continue this test: 4. Save your stack and quit 5. Re-launch Rev, and re-open the stack 6. Run that command again in the Message Box RESULT: true true, which seems inappropriate because the passkey has not been set and the stack's script cannot be accessed until it has. So this leads me to two questions: 1. Can anyone here spare a moment to confirm this behavior, and does it seem inappropriate to you? 2. What method exists in v4.x to determine if a stack has its password set but no passkey has been entered? TIA - -- Richard Gaskin Fourth World Rev training and consulting: http://www.fourthworld.com Webzine for Rev developers: http://www.revjournal.com revJournal blog: http://revjournal.com/blog.irv ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
revBrowserSet, search a second string
Hi, i see a strange behaviour when searching a second string in a revBrowser: First i open a revBroser and i can see the web page i stated Then i search in that page with: revBrowserSet sBrowserId, selected, search_text sBrowserId is the Browser ID i got from revBrowserOpen search_text is the variable containing my string to search, like Mike I can do this repeatedly and i find the different occurences of that string in that page. All fine here. Now when i change the search_string to e.g. John, nothing happens. John is not found (but he's on that page) :-/ Changing the search string again (even to Mike): Nothing happens. :-/ Resetting the search with an empty search string (like the doku said): Nothing happens :-/ Any ideas what i could have done wrong? Regards, Claus. ___ use-revolution mailing list use-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: Noob Stacks Questions
Thank you for all of the useful info. Truth be told, I didn't really understand the full extent of stacks in rev. 1. In order to include a stack from someone else in my application, sarah's calendar for instance, I need to use: start using stack whateverStack ? So I should do this for all my substacks in my preOpenStack for the main one? One more very general question that I could not find answered easily in the user guide. 2. Can global variables be used between all the stacks in the application? -- View this message in context: http://n4.nabble.com/Noob-Stacks-Questions-tp1476073p1476453.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Noob Stacks Questions
On 10.02.10 at 09:06 -0800 Andrew Kluthe apparently wrote: Can I write LeaseStack and add it to MainStack as a sub-stack later? Not a lot of data is going to be passed from Main to the different Module stacks. Most of them are going to be near stand-alone (my boss has a dream of charging differently for versions that include other tasks/modules/stacks). In this case, I would consider using a global (probably an array) to share data among stacks. Each stack could also use it to keep certain operational (volatile) data readily available. This global could be preloaded in the mainstack upon starting. A variation would be to have one global for sharing and each stack having its own global separately, if needed. That could mesh better with your overall design. Robert ___ use-revolution mailing list use-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: Large Format Printing With Rev?
Scott, I have no clue whatsoever, but if it is all vector graphics, can you convert it to SVG? it is just fancy XML and should not care about resolution. Cheers andre On Wed, Feb 10, 2010 at 5:38 PM, Scott Rossi sc...@tactilemedia.com wrote: Hi List Folks: Does anybody have any experience with large format imaging using Rev? I seem to recall Rev has a size limit when it comes to card size, but if a card of simple text and graphics could be converted into some kind of common vector output, the size limit might not be a show stopper. I'm pretty sure Rev's roots were in EPS and/or display PostScript -- could this contribute to a solution? Thanks for any advice. Regards, Scott Rossi Creative Director Tactile Media, UX Design ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution -- http://www.andregarzia.com All We Do Is Code. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Large Format Printing With Rev?
I keep hearing more and more about SVG lately - Robert Cailliau's favorite markup. Seems like a vector to SVG converter ( and vv) could be built in rev - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev On 10 February 2010 12:55, Andre Garzia an...@andregarzia.com wrote: Scott, I have no clue whatsoever, but if it is all vector graphics, can you convert it to SVG? it is just fancy XML and should not care about resolution. Cheers andre On Wed, Feb 10, 2010 at 5:38 PM, Scott Rossi sc...@tactilemedia.com wrote: Hi List Folks: Does anybody have any experience with large format imaging using Rev? I seem to recall Rev has a size limit when it comes to card size, but if a card of simple text and graphics could be converted into some kind of common vector output, the size limit might not be a show stopper. I'm pretty sure Rev's roots were in EPS and/or display PostScript -- could this contribute to a solution? Thanks for any advice. Regards, Scott Rossi Creative Director Tactile Media, UX Design ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution -- http://www.andregarzia.com All We Do Is Code. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-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: revBrowserSet, search a second string
Claus - This looks like a bug (at least on OSX). As you point out the docs say that setting the selectedtext to empty or a string that does not occur in the text should 'reset' the selection - but doesn't. Certainly worth reporting. In the meantime it looks like you can work around it by handing the focus to another control. This should remove the current selection in the browser text and let you 'search' again. I just tried with with the browser example stack and doing the following... focus on btn browser on -- (button that toggle the browser on and off) ... Before changing the search string had the desired effect. HTH, Terry... On 11/02/10 7:35 AM, Claus Dreischer cl...@dreischer.de wrote: Hi, i see a strange behaviour when searching a second string in a revBrowser: First i open a revBroser and i can see the web page i stated Then i search in that page with: revBrowserSet sBrowserId, selected, search_text sBrowserId is the Browser ID i got from revBrowserOpen search_text is the variable containing my string to search, like Mike I can do this repeatedly and i find the different occurences of that string in that page. All fine here. Now when i change the search_string to e.g. John, nothing happens. John is not found (but he's on that page) :-/ Changing the search string again (even to Mike): Nothing happens. :-/ Resetting the search with an empty search string (like the doku said): Nothing happens :-/ Any ideas what i could have done wrong? Regards, Claus. ___ use-revolution mailing list use-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: Properly formatted large numbers
Thanks Terry and Alex. Yes, I suspect that your suggestions would work, but both involve me working out how to trap clicks in the datagrid. That seems like more effort than I can put in at the moment: I've found datagrids to be a bit of a mystery so far and teaching starts here next week :-( This is a very nice example from today's list digest that shows why this issue can be important: Hi Jacque, I made the suggestion I did because at 100 Million records plus 100 million? Yes, well...I think I read the zeros wrong. Should there not be a numberformat setting that formats the numbers for human readability using the system setting of delimiter? Regards, Michael Dear Listers I'm working on some statistical simulations and regularly get output numbers with anything from 1 to 7 digits. They are hard to read when they don't have the conventional commas separating the thousands and millions. I've written a simple function that does the comma formatting for me but it mucks up sorting. Of course. (I'm using a datagrid to display the results and live sorting is really handy.) Terry Judd responded: Can you have two columns - one formatted, one not - and somehow apply the sort to the unformatted column. I guess the unformatted column would have to be of invisible and you'd need to have some way of trapping the selection of the column header. You might need Trevor's help there. Terry... Alext Tweedy suggested: I've not yet used a datagrid, so this is a guess can you supply a custom sort function ? Something like function testLessThan p1, p2 replace comma with empty in p1 replace comma with empty in p2 return p1 p2 end testLessThan -- Alex. ___ use-revolution mailing list use-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: Words Indexing strategies
Many thanks for replying this question. :-) on Wed, 10 Feb 2010 15:30:23 + Bernard Devlin wrote: OK, so that's why you mention the different files for each letter of the alphabet. Yes, each one of these 28 text files will be compressed in gz format. When users look for a word, or many words, only these file(s) are decompressed and searched. I'm still a bit confused. Normally an index would indicate a location for an indexed term That's what I assume your general index files are doing. What are the key terms like in this index, and what do they point to? Can you give us some examples? Sure, look the example that Brian Yennie wrote: monkey:1,34,3827,21314 The numbers (after the word) are the names of compressed gz files. These files are located automatically or (if not found) manually, when the program starts. To my confused and befuddled mind, it sounds like you are wanting to create an index of the index. That can't be right :-) No, this program uses only three kind of indexes: 1) Articles 2) Articles name's redirections 3) Words I'm no expert in search algorithms. I have been hoping someone else would jump in who has done this kind of thing before. Are you wanting a pure, rev-only solution i.e. are you doing this to demonstrate what can be done using Rev alone? Ideally, this should be a Rev only solution, for cross-platform porting. on Wed, 10 Feb 2010 11:17:08 -0500 Brian Yennie wrote: The first step for this would likely include creating an inverted index. This means you store something like: monkey:1,34,3827,2131 Where the word being indexed in monkey and the numbers that follow are article IDs. Using this information it is pretty trivial to implement AND / OR. Just merge the article IDs as needed. You can use a mix of this inverted index and your regular index in combination to do other types of queries. You can even store word frequency information to find similar articles. Yes, this is correct and should work fine, but how could i write in the word index a range of article where a word appears consecutively: baboon:1934,2345,2346,2347,2348,2349,2350,2351,2352,2567,3578 With that said, I think you will have a very hard time crafting a competitive algorithm for this in Rev. A lot of the engines out there are very mature and there are many open source ones that you might consider bundling with your project instead of writing it yourself. Actually, i look for good performance and cross-platform portability. So Rev is my first choice. Some things to watch out for: 1) File size. Indexing every word takes a lot of space, especially if you indices are in plain text and not a compact binary format How could i convert this index format in a compact binary format? baboon:1934,2345,2346,2347,2348,2349,2350,2351,2352,2567,3578 monkey:1,34,3827,2131, 3456,4567,5678,5789,6123,6234,6456 2) Common words. You might consider a stop word list, or a threshold. For example, if a word is in 20% of all articles, don't index it. Or if it's in your stop word list. Previously i believed that stop words should appear in all articles. 3) Root words / plurals. Can you detect that monkeys is the plural of monkey (or more complex cases)? Richard wrote about a similar concern in his answer. I suppose that this feature is useful to recommend similar terms, when users start a new search. An example of an open source engine that is very mature is Lucene, which can be run from the command-line in Java. How could i run Java applications from Runrev, without asking users to install Java first? on Wed, 10 Feb 2010 08:26:30 -0800 Richard Gaskin wrote: The ambitious Alejandro Tejada wrote: this is only a really modest search :-D A good place to start on that is the seminal paper describing the initial Google implementation, written by the founders: The Anatomy of a Large-Scale Hypertextual Web Search Engine Sergey Brin and Lawrence Page http://infolab.stanford.edu/~backrub/google.html But be warned: indexing is a deep topic, and may become a consuming passion. Roulette is rumored to have been invented by a monk who came to believe he could find a way to predict its outcomes, and eventually went mad trying. Indexing is a bit like that. :) Many thanks for pointers in this direction. A couple of the longer-term projects I work on need to incorporate good indexing of large corpuses, and my own code to that end has advanced only in small baby steps as I learn more about it. [snip of really useful information] All that said, I have to wonder: if Wikipedia's content is available, isn't their index also available? An article index is available, but a word index is not. Porting it from MySQL to SQLite seems a far less daunting task than writing an index from scratch. SQLite is way over my head in this moment. :-) Thanks again for answering this request! Alejandro ___ use-revolution mailing list
Re: Noob Stacks Questions
Andrew, You only start using a stack when it is a 'library' like stack with commands and functions in it that you need in other stacks. From what I have heard you say, that is not what you need. If you use one main stack and every other stack opens from that then they will be substacks or separate stacks and will be easier to save data in and access via code from other stacks. But if you really want them as separate applications then they should not be substacks and will build separately. But then you will need to know their file path to interact with them from other stacks and as compiled apps they will not 'save' data as easily. Globals are available from within stacks and their substacks and libraries but not from other compiled standalones. How many (sub)stacks / applications will you end up with? What is the relationship between them? Do they need to communicate with each other? How much so? Will they need to save data while being used? Do you want one Application to launch all of the other Applications? Are they a sub part of the main application? Or separate? Tom McGrath III Lazy River Software 3mcgr...@comcast.net iTunes Library Suite - libITS Information and download can be found on this page: http://www.lazyriversoftware.com/RevOne.html On Feb 10, 2010, at 3:52 PM, Andrew Kluthe wrote: Thank you for all of the useful info. Truth be told, I didn't really understand the full extent of stacks in rev. 1. In order to include a stack from someone else in my application, sarah's calendar for instance, I need to use: start using stack whateverStack ? So I should do this for all my substacks in my preOpenStack for the main one? One more very general question that I could not find answered easily in the user guide. 2. Can global variables be used between all the stacks in the application? -- View this message in context: http://n4.nabble.com/Noob-Stacks-Questions-tp1476073p1476453.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Words Indexing strategies
Yes, this is correct and should work fine, but how could i write in the word index a range of article where a word appears consecutively: baboon:1934,2345,2346,2347,2348,2349,2350,2351,2352,2567,3578 If this were your format, you could compact to something like: baboon:1934,2345-2352,2567,3578 How could i convert this index format in a compact binary format? baboon:1934,2345,2346,2347,2348,2349,2350,2351,2352,2567,3578 monkey:1,34,3827,2131, 3456,4567,5678,5789,6123,6234,6456 Well there are a lot of possibilities that are probably way beyond the scope of this discussion, however, for starters you could convert each number from text to binary. You could also go for a BTree structure, but that is going to be awfully difficult in Rev. Previously i believed that stop words should appear in all articles. I would go with a threshold for sure. Think about what it means for index size if a word is in 50% of all articles or more. And why would you want to search for that word anyway? Richard wrote about a similar concern in his answer. I suppose that this feature is useful to recommend similar terms, when users start a new search. Yes, but it's also built-in to the results in most modern search engines. It will help you return better results. Think of the simple case where someone searches for monkeys but doesn't find an article named Monkey. Although it seems obvious that these are not the same word, your users can easily be frustrated. How could i run Java applications from Runrev, without asking users to install Java first? You would have to find a way to bundle it with your app. The upside is, this would be much easier than trying to write something equivalent in Rev. You may vary well be able to craft something that meets your needs, but in terms of performance and accuracy you'll have a nearly impossible time matching some of the more mature search engines out there. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
OT: Our place in Hawaii....
Some may wonder where we are and what it's like here. A recent visitor, with a high end camera did an amazing job and I could not resist putting this into an iRev slide show. http://www.himalayanacademy.com/slideshows/aadheenam/2009/ka_2009-12-30_thushyanthan-aadheenam/ Music by famed Tamil singer Pon Sundarlingam and his rockin' back up group in Toronto. The song praises a great sage from Sri Lanka, saying that he gave us one sweet gift in the words: This soul is eternal, indeed. Back on topic... I'm really pleased with this frame work. I can adjust the size, rates, etc everything all on one page ___ use-revolution mailing list use-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: revBrowserSet, search a second string
Hi Terry, thanks for taking a look! I had no luck with handing the focus to another control here on Win XP. Didn't cured the problem here. But i have done some more tests: (revBrowser alread open in a substack) - revBrowserSet sBrowserId, selected, Mike works - revBrowserSet sBrowserId, selected, John works too :-) - focus on main stack - focus back on substack with revBrowser - revBrowserSet sBrowserId, selected, Mike doesn't work anymore :-/ - revBrowserSet sBrowserId, selected, John doesn't work anymore :-( So it looks like (at least here on Win XP), *loosing* the focus is somewhat related to the problem. Can anyone shine a light on his? Regards, Claus. Am 10.02.10 23:04, schrieb Terry Judd: Claus - This looks like a bug (at least on OSX). As you point out the docs say that setting the selectedtext to empty or a string that does not occur in the text should 'reset' the selection - but doesn't. Certainly worth reporting. In the meantime it looks like you can work around it by handing the focus to another control. This should remove the current selection in the browser text and let you 'search' again. I just tried with with the browser example stack and doing the following... focus on btn browser on -- (button that toggle the browser on and off) ... Before changing the search string had the desired effect. HTH, Terry... On 11/02/10 7:35 AM, Claus Dreischer cl...@dreischer.de wrote: Hi, i see a strange behaviour when searching a second string in a revBrowser: First i open a revBroser and i can see the web page i stated Then i search in that page with: revBrowserSet sBrowserId, selected, search_text sBrowserId is the Browser ID i got from revBrowserOpen search_text is the variable containing my string to search, like Mike I can do this repeatedly and i find the different occurences of that string in that page. All fine here. Now when i change the search_string to e.g. John, nothing happens. John is not found (but he's on that page) :-/ Changing the search string again (even to Mike): Nothing happens. :-/ Resetting the search with an empty search string (like the doku said): Nothing happens :-/ Any ideas what i could have done wrong? Regards, Claus. ___ use-revolution mailing list use-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: determining if a stack is locked
2010/2/10 Richard Gaskin ambassa...@fourthworld.com: With v4, the engine now uses a more secure method to secure scripts, but in my testing it has also removed any way to determine when a stack is password-protected without using try. In versions prior to v4, you could do this: if the password the passkey then ... The password and passkey returned an encrypted string which, while meaningless to the human reader, would at least allow comparisons of the password and passkey to determine if the passkey had been set in the current session, or if there is no password at all. In v4 and later, asking for the password or passkey returns simply true, which might be sufficient but here's the rub: If you start a new session with a locked stack, asking for the password will return true which is correct, but asking for the passkey will also return true which is incorrect, since no passkey has yet been entered. I would expect that asking for the passkey of a stack that has a password would return false until a passkey has been entered in the current session. I discovered this with stacks in which the password had been set in a previous version, but I just confirmed it in v4 using this recipe: 1. Make a new stack 2. Set the stack's password 3. Run this in the Message Box: put the password of this stack the passkey of this stack You'll get true true, which is appropriate because the stack's password was set in this current session and therefore its script is available. So now continue this test: 4. Save your stack and quit 5. Re-launch Rev, and re-open the stack 6. Run that command again in the Message Box RESULT: true true, which seems inappropriate because the passkey has not been set and the stack's script cannot be accessed until it has. So this leads me to two questions: 1. Can anyone here spare a moment to confirm this behavior, and does it seem inappropriate to you? I have follow all your steps and I can confirm that I obtained the same results as you. Inappropriate... Yes and no. That the function returns true when the passkey is empty, this seems odd. Now I think that for safety, less informations you have the better is it. What it seems inappropriate to me is that when you set the wrong passkey, you obtain an error. I imagine already someone creating a loop that would try a password as if it gets an error message. In my opinion I believe that no message should be returned at any time. If the password is good, it decrypts the stack and no more. It's reminded me a story with my habitual development tool (no no it's not RR, unfortunately ;)) which shall remain nameless for not voluntarily give bad idea... A few years ago, a client showed me how he was satisfied with the new encryption system of this tool. It is true that in previous versions, retrieve the password was a formality. He was very happy with the feature that permitted to save a password shortcut. This shortcut allowed users to connect to the server without entering the user password... The idea seems already strange to save a shortcut password in a file accessible to everyone ... In addition, although internally encrypted in the server, I discovered that the password was saved in clear text in the shortcut... Regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: OT: Our place in Hawaii....
My safari browser launched FlipForMac for audio uncompressed AIFF?? wow hi-fi - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev On 10 February 2010 14:49, Sivakatirswami ka...@hindu.org wrote: Some may wonder where we are and what it's like here. A recent visitor, with a high end camera did an amazing job and I could not resist putting this into an iRev slide show. http://www.himalayanacademy.com/slideshows/aadheenam/2009/ka_2009-12-30_thushyanthan-aadheenam/ Music by famed Tamil singer Pon Sundarlingam and his rockin' back up group in Toronto. The song praises a great sage from Sri Lanka, saying that he gave us one sweet gift in the words: This soul is eternal, indeed. Back on topic... I'm really pleased with this frame work. I can adjust the size, rates, etc everything all on one page ___ use-revolution mailing list use-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: Noob Stacks Questions
I just added sarah's calender stack to my LeaseStack and trying to figure out how to get the information from sarah's calendar into my EditPayments card. In the case of my calendar stack, it operates as a modal dialog and uses the dialogData to pass information back forth. If you used the demo stack to install the calendar stack of your choice in your stack, then the stack will be there. It will also have added a function to your stack script that does the work for you. So all you have to do to get a date from the calendar stack is to use: put getDate(tStartingDate, tStackName) into theDate if theDate is empty then exit to top where tStackName = the name of your calendar stack (since there are 3 options, you have to supply this data) and tStartingDate is the date you want the calendar to display when it first opens. If this is empty, then it will display today's date. If you check out the getDate function, you will see how it sets the dialogData, then opens the calendar stack as modal, then retrieves the dialogData. The calendar stack looks at the dialogData when it first opens and uses that to set up it's display. Then when you select a date, the calendar stack puts that date into the dialogData, so that the calling function can get it back again. While this is one way to transfer data between stacks, it really only works for modal dialogs. For other data transfers, you can use globals, or you can just specify the full path to the object e.g. put field Data of stack Stack1 into field MoreData of stack Stack2 With the issue of main stacks sub stacks, there are (as always in Rev) a couple of different possibilities. You can have a main stack with everything else being a sub stack of that. Note that you cannot have sub stacks of sub stacks, so in this case, you would have to attach my calendar stack to the main stack. The advantage of this method is that the development is all done on a single file and Rev takes care of all the references, so you don't need to worry about file paths - the stacks already know where they are. The other commonly used way is to have each stack as it's own mainStack. Each stack is saved in a different file. You will have a single stack that is the launcher stack and is the one that runs first in your app. It will then have links to the other stacks. You can set it's stackFiles so that it knows where the other stacks are, or you can set the defaultFolder to the location of the other stacks and it will find them that way. You can always change from one to another, just taking into account that you can't have sub-sub stacks. If a stack has no sub stacks of it's own, then you can always change it's mainStack so it becomes part of another stack file. If it has sub stacks, you need to change the mainStack of every sub stack first. Just make sure you have backups before you start messing with this as it is easy to save the wrong thing. 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: Embedded Flash Player
Alejandro, Stephen, (Sorry for the delay. I couldn't reply owing to a recent bereavement.) On 2010/02/09, at 11:32, Alejandro Tejada wrote: How do you run a Java server inside a Rev application? System requirements do not specify which Java version is needed for running this Rev application. My external launches a Java virtual machine and calls the main method in the Flash server(Red5) written in Java Java runtime environment 1.5(JRE1.5) or later is required for the Flash server. Therefore JRE1.5 or later is needed for running my application. On 2010/02/09, at 15:48, stephen barncard wrote: Jiro, this is an awesome application. Great work. Thanks. Jiro Harada ___ use-revolution mailing list use-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: Our place in Hawaii....
I like Ganapati ! Le 10 févr. 2010 à 23:49, Sivakatirswami a écrit : Some may wonder where we are and what it's like here. A recent visitor, with a high end camera did an amazing job and I could not resist putting this into an iRev slide show. http://www.himalayanacademy.com/slideshows/aadheenam/2009/ka_2009-12-30_thushyanthan-aadheenam/ Music by famed Tamil singer Pon Sundarlingam and his rockin' back up group in Toronto. The song praises a great sage from Sri Lanka, saying that he gave us one sweet gift in the words: This soul is eternal, indeed. Back on topic... I'm really pleased with this frame work. I can adjust the size, rates, etc everything all on one page ___ use-revolution mailing list use-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: Noob Stacks Questions
Andrew Kluthe wrote: Thank you for all of the useful info. Truth be told, I didn't really understand the full extent of stacks in rev. Have you seen the scripting conference stacks yet? The first one in particular does a good job of explaining what a stack and substacks are, as well as other basic objects and properties. http://www.runrev.com/developers/lessons-and-tutorials/tutorials/online-scripting-conferences/ 1. In order to include a stack from someone else in my application, sarah's calendar for instance, I need to use: start using stack whateverStack ? So I should do this for all my substacks in my preOpenStack for the main one? A stack can be very loosely associated with the concept of a window. For simple applications you may only need one stack, which will be all that is in its file on disk. More complex programs usually need more than one window or stack. For convenience, you can store additional stacks into the same file on disk. You can only have a single main stack, but it can contain any number of additional substacks. You do not need to start using substacks. They are always loaded into RAM along with the main stack when it opens, and are always available. The advantage to using substacks is that they are always there and all you need to do is go to one to view it. You can use its short name to refer to it because it is always in RAM and the engine knows where it is. Substacks also have the advantage of keeping everything together in one file so nothing can get lost or separated. One disadvantage to using substacks is if you've built a standalone and you need to save data to them. No modern OS allows a running standalone to alter itself on disk. If you build your main stack into a standalone it cannot save any changes to itself, and that includes changes to any substacks it contains. So if you need to save changes to a stack, it needs to be an independent file that is not part of the standalone. It has to remain a Rev stack. A common approach is to create a very simple one-card stack -- often a splash screen -- and then have that one-card main stack open other Rev stacks. Since stacks are just files, they can save data without any trouble. Stacks that are independent files on disk will need to be referenced in scripts by a file path if you want to open them, since the engine won't know where they are. You can do this lots of ways: calculate a logical file path in a script, assign stack names to the stackfiles property of your app, set the defaultfolder and use relative path references, or put up a file dialog so the user can choose it. When you get that far, ask. :) Sometimes you may want to use the script of a stack that is an independent file on disk (i.e., it isn't your main stack or any of its substacks.) That's when start using comes into play. Any stack you start using is inserted into the message hierarchy so that its stack script is available to all open stacks. This is how libraries are done. An alternate to start using is to insert script of object, which allows you to place any script of any object into the message hierarchy. Start using only allows placing the stack script into the back of the hierarchy. Insertion allows you to place a script in either the front or the back. (Newbie alert: be cautious when placing scripts into the front. You can interfere with the IDE if you do that. Wait a while to try it.) When you build a standalone, the mainstack script is always available to any other stack that's open; i.e., it's always in use automatically. When you are working with it in the IDE, that isn't true. So during development, you may need to start using your main stack to artificially put it into the message hierarchy, just to simulate what will happen when it later becomes an application. You will catch bugs that way too if you have any script conflicts. So at this point you should make some decisions about your stack structure. Which stacks need to save data and which don't? If you have some static stacks that rarely change then maybe they should be built as substacks of your mainstack. The calendar stack comes to mind here; it is unlikely you'll need to change it, it does a single job and is fully functional. So it's a good candidate for a substack in your main stack. If you will be loading data into a single card on demand, then maybe you don't need that stack to be separate either, since it is only a template, and it could be a substack of the main stack too. On the other hand, if you think you'll need to change it later on, it's easier to change an independent stack because then you don't have to rebuild the standalone. Stuff like that should be decided early on. But as others have said, it is very easy to make a stack into a substack at any time. You can do it in the to-be-substack's property inspector by just choosing a mainstack from a popup menu. One more very general question
Re: Noob Stacks Questions
Sarah Reichelt wrote: With the issue of main stacks sub stacks, there are (as always in Rev) a couple of different possibilities. You've been in my head again. We have to stop meeting this way. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: revBrowserSet, search a second string
OK - it looks like the OSX and Win versions of the browser function differently here (nothing new about that). While the method I suggested doesn't work with the Win browser, I did find that calling the revBrowserSet command twice will do the trick. For example, using the runrev home page as a testbed... RevBrowserSet 1, selected, platform -- selects a single instance of the word platform in the footer section of the page RevBrowserSet 1, selected, enterprise -- selects a substring of a word a couple of lines down RevBrowserSet 1, selected, platform -- does nothing but... RevBrowserSet 1, selected, platform -- selects the previously selected instance of the string I'd still report this as it doesn't work as reported and there is nothing more painful than having to implement platform specific workarounds (actually, not being able to come up with any satisfactory workaround for a particular platform is definitely more annoying). HTH, Terry... On 11/02/10 10:07 AM, Claus Dreischer cl...@dreischer.de wrote: Hi Terry, thanks for taking a look! I had no luck with handing the focus to another control here on Win XP. Didn't cured the problem here. But i have done some more tests: (revBrowser alread open in a substack) - revBrowserSet sBrowserId, selected, Mike works - revBrowserSet sBrowserId, selected, John works too :-) - focus on main stack - focus back on substack with revBrowser - revBrowserSet sBrowserId, selected, Mike doesn't work anymore :-/ - revBrowserSet sBrowserId, selected, John doesn't work anymore :-( So it looks like (at least here on Win XP), *loosing* the focus is somewhat related to the problem. Can anyone shine a light on his? Regards, Claus. Am 10.02.10 23:04, schrieb Terry Judd: Claus - This looks like a bug (at least on OSX). As you point out the docs say that setting the selectedtext to empty or a string that does not occur in the text should 'reset' the selection - but doesn't. Certainly worth reporting. In the meantime it looks like you can work around it by handing the focus to another control. This should remove the current selection in the browser text and let you 'search' again. I just tried with with the browser example stack and doing the following... focus on btn browser on -- (button that toggle the browser on and off) ... Before changing the search string had the desired effect. HTH, Terry... On 11/02/10 7:35 AM, Claus Dreischer cl...@dreischer.de wrote: Hi, i see a strange behaviour when searching a second string in a revBrowser: First i open a revBroser and i can see the web page i stated Then i search in that page with: revBrowserSet sBrowserId, selected, search_text sBrowserId is the Browser ID i got from revBrowserOpen search_text is the variable containing my string to search, like Mike I can do this repeatedly and i find the different occurences of that string in that page. All fine here. Now when i change the search_string to e.g. John, nothing happens. John is not found (but he's on that page) :-/ Changing the search string again (even to Mike): Nothing happens. :-/ Resetting the search with an empty search string (like the doku said): Nothing happens :-/ Any ideas what i could have done wrong? Regards, Claus. ___ use-revolution mailing list use-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: OT: Our place in Hawaii....
On Wed, Feb 10, 2010 at 2:49 PM, Sivakatirswami ka...@hindu.org wrote: Some may wonder where we are and what it's like here. A recent visitor, with a high end camera did an amazing job and I could not resist putting this into an iRev slide show. http://www.himalayanacademy.com/slideshows/aadheenam/2009/ka_2009-12-30_thushyanthan-aadheenam/ Sadly, this link completely and repeatedly crashes Firefox for me :-( -- Regards, Howard Bornstein --- www.designeq.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: Reading/Deleting Last Line Of File
You mean you'll report back when you only have 105,750,303 records ;-) On Wed, Feb 10, 2010 at 9:06 PM, Warren Kuhl warrenk...@gmail.com wrote: Thanks for all the suggestions. I will look into trying some of them to see what works best for me. The file currently contains 105,750,304 records. I will report back my findings. Thanks, Warren ___ use-revolution mailing list use-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: Time date [completely OT]
Dang I'm late, it's already passed 20:00 down there, which would be 10 to 20:10 on 10 to 2010 ;-) On Wed, Feb 10, 2010 at 7:50 PM, Sarah Reichelt sarah.reich...@gmail.comwrote: Over here, it is now 10 to 10 on 10-2-10 :-) (since we have our dates in d-m-y order) 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 ___ use-revolution mailing list use-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: Our place in Hawaii....
The link and Firefox work for me :-) Firefox 3.5.7 OS X .6.2 MBP On Thu, Feb 11, 2010 at 10:23 AM, Howard Bornstein howard.bornst...@gmail.com wrote: On Wed, Feb 10, 2010 at 2:49 PM, Sivakatirswami ka...@hindu.org wrote: Some may wonder where we are and what it's like here. A recent visitor, with a high end camera did an amazing job and I could not resist putting this into an iRev slide show. http://www.himalayanacademy.com/slideshows/aadheenam/2009/ka_2009-12-30_thushyanthan-aadheenam/ Sadly, this link completely and repeatedly crashes Firefox for me :-( -- Regards, Howard Bornstein --- www.designeq.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: OT: Our place in Hawaii....
Howard- Wednesday, February 10, 2010, 6:23:44 PM, you wrote: Sadly, this link completely and repeatedly crashes Firefox for me :-( OK - *that* got me to look. Usually I'm the one who has problems with these things on Firefox, but what I got was a stunning multimedia display. The only problem was that the music runs a bit longer than the slideshow, so I watched the beginning of the slides again, unable to tear myself away until the music had ended. -- -Mark Wieder mwie...@ahsoftware.net ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: OT: Our place in Hawaii....
Slide show and music run fine on OSX 10.5.8 G5 PPC FF Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US; rv:1.9.1.7) Gecko/ 20091221 Firefox/3.5.7 GTB6 Jim Ault Las Vegas ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: OT: Our place in Hawaii....
Ok, I tried it in Safari and it ran fine. I don't know what's up with my version of Firefox. Beautiful photos. -- Regards, Howard Bornstein --- www.designeq.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
Sorting question
If I want to randomize a string of items using the random function as a sortKey, say: put 1,2,3 into temp sort items of temp by random(3) The randomization is not nearly as effective as if I say: put 1,2,3 into temp sort items of temp by random(100) If you run this many times to create a list of random strings (like 3,1,2 and 2,1,3, etc.) the second version randomizes much better than the first. This is a trick that harkens back to early HC. But it occurs to me I never really understood the rationale. In fact, I don't understand the syntactic methodology. This does not work at all: put 1,2,3 into temp get random(100) sort items of temp by it So the random function must be invoked for each item, item by item, as the process progresses. As a sortKey, this seems reasonable. But how does this operate, and what does the larger number do so much better? Thanks in advance... Craig Newman ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Reading/Deleting Last Line Of File
Warren, I've read through most of these suggestions, but I'm surprised that the obvious hasn't been suggested yet (that I've seen): skip everything... put the length of url file:myfile.txt into tEnd open file myfile.txt for text update seek to tEnd in file myfile.txt From here just back up a reasonable number of characters... say 200. Find the last CR character, nuke everything else and close the file. Didn't find one? Try backing up another 200, etc. It'll be a whole lot faster. Edge case to concern yourself with would be if your file happens to end with a CR and maybe you want to ignore those cases. But that should be easy enough to solve. HTH, Jeff M. On Wed, Feb 10, 2010 at 7:06 AM, Warren Kuhl warrenk...@gmail.com wrote: Thanks for all the suggestions. I will look into trying some of them to see what works best for me. The file currently contains 105,750,304 records. I will report back my findings. Thanks, Warren ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Sorting question
Craig, This function might help you a bit (untested): function randomItemList pItems local tRandomItems local tIdx repeat until pItems is empty put the random of the number of items in pItems into tIdx get item tIdx of pItems put it comma after tRandomItems delete item tIdx from pItems end repeat # you may want to delete the last char of tRandomItems return tRandomItems end randomItemList Jeff M. On Wed, Feb 10, 2010 at 11:03 PM, dunb...@aol.com wrote: If I want to randomize a string of items using the random function as a sortKey, say: put 1,2,3 into temp sort items of temp by random(3) The randomization is not nearly as effective as if I say: put 1,2,3 into temp sort items of temp by random(100) If you run this many times to create a list of random strings (like 3,1,2 and 2,1,3, etc.) the second version randomizes much better than the first. This is a trick that harkens back to early HC. But it occurs to me I never really understood the rationale. In fact, I don't understand the syntactic methodology. This does not work at all: put 1,2,3 into temp get random(100) sort items of temp by it So the random function must be invoked for each item, item by item, as the process progresses. As a sortKey, this seems reasonable. But how does this operate, and what does the larger number do so much better? Thanks in advance... Craig Newman ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-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: Reading/Deleting Last Line Of File
Jeff, This line: put the length of url file:myfile.txt into tEnd Loads the entire file into memory in order to get its length. - Brian ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Sorting question
Craig, Yes, the random function is called for each item to assign it a sort value. My guess as to why using a larger number in random(n) is as follows; If you use random(3) there is a high chance that two items will be assigned the same value. In this case, the sort algorithm may preserve their original order, adding an unnatural likelihood that the items remain close to original order. Better yet, I would use the largest number that random() will accept. Theoretically the best would be to supply your own random function that never repeats, or use a loop similar to what Jeff suggests. If I want to randomize a string of items using the random function as a sortKey, say: put 1,2,3 into temp sort items of temp by random(3) The randomization is not nearly as effective as if I say: put 1,2,3 into temp sort items of temp by random(100) If you run this many times to create a list of random strings (like 3,1,2 and 2,1,3, etc.) the second version randomizes much better than the first. This is a trick that harkens back to early HC. But it occurs to me I never really understood the rationale. In fact, I don't understand the syntactic methodology. This does not work at all: put 1,2,3 into temp get random(100) sort items of temp by it So the random function must be invoked for each item, item by item, as the process progresses. As a sortKey, this seems reasonable. But how does this operate, and what does the larger number do so much better? Thanks in advance... Craig Newman ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Reading/Deleting Last Line Of File
On Feb 10, 2010, at 11:26 PM, Brian Yennie wrote: Jeff, This line: put the length of url file:myfile.txt into tEnd Loads the entire file into memory in order to get its length. That's a joke, right? :-( A freakin' OS call could get that just by touching an I-Node. Please, God, tell me Rev was smart enough to do it the right way? Jeff M.___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Sorting question
Craig- You might also want to play around with setting the randomseed. -- -Mark Wieder mwie...@ahsoftware.net ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Reading/Deleting Last Line Of File
It's more a product of the syntax than anything. url file:myfile.txt is a container, and the length operates on it as such. URL containers are pretty darn handy in general, but this is one potential gotcha. You can use the detailed files to get information about a file, including its size in bytes. So actually your suggestion should work fine, just needs a little tweaking. It would just be more like: put filelength(myfile.txt) into tEnd open file myfile.txt for text update seek to tEnd in file myfile.txt function filelength tFile // use the detailed files to get the file size end filelength No need to get all flustered =) - Brian On Feb 10, 2010, at 11:26 PM, Brian Yennie wrote: Jeff, This line: put the length of url file:myfile.txt into tEnd Loads the entire file into memory in order to get its length. That's a joke, right? :-( A freakin' OS call could get that just by touching an I-Node. Please, God, tell me Rev was smart enough to do it the right way? Jeff M.___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolutio ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution