Re: what's "this" stack
Robert Brenstein wrote: > > change your code as follows to resolve this for yourself ;-) > > on savenotes > modeless stack "save" > answer "Saving" && (the short name of this stack) -- just to know > > Interesting, when I put the answer line in the notepad stack script I get "saving notepad". But when I put it into the "save" substack it says "saving save". I couldn't find a way for the "save" substack to say "saving notepad" and "saving save" looks dumb. So, yes, I know now which stack is being saved but how do I let the user know? One idea (not tested) is to put a blank label in the save stack and then try and put the Saving && stuff into the save stack label. I think i'll give that a try and let you know how it works. -- M -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/what-s-this-stack-tp3042392p3044122.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: what's "this" stack
Robert Brenstein wrote: > > change your code as follows to resolve this for yourself ;-) > > on savenotes > modeless stack "save" > answer "Saving" && (the short name of this stack) -- just to know > save this stack > wait 360 millisecs > close stack "save" > end savenotes > > Robert > > And of course, I was wondering exactly how to do that so thank you :-) -- mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/what-s-this-stack-tp3042392p3043196.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: what's "this" stack
Jonathan Lynch wrote: > > Is one stack a substack of the other? If so, both are saved together. > > yes, "save" is a substack used only as an alert. So "save this stack" saves the parent or primary stack and all substacks. Thanks -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/what-s-this-stack-tp3042392p3043183.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
what's "this" stack
Hi, I recently wrote this code which works fine on savenotes modeless stack "save" save this stack wait 360 millisecs close stack "save" end savenotes when i went back to document it I stumbled across a sort of confusion in my understand on savenotes modeless stack "save" -- opens a new stack "save" as a modeless window save this stack -- saves "this" stack. Which stack is "this" (save or notepad)? wait 360 millisecs close stack "save" end savenotes I suddenly realized that I was using the "save this stack" command with 2 stacks open, the primary stack called "notepad" and a secondary stack called "save". It appears that rev knows "which is which" even thought from the code it is quite confusing. Would it be better to say "save stack notepad" instead? Thanks -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/what-s-this-stack-tp3042392p3042392.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: alerts
Robert Brenstein wrote: > > > If your saving is done on different cards in a multi-card stack or in > multiple stacks, then you can do the above but show a substack > instead of a field to ensure it is always above the card controls. > > disable all controls saving their enabled state > show a substack with "saving..." or sth like it as modal > save this stack > hide the substack > enable controls that were enabled before > > You can have the substack window without decorations so user has no > temptation to click anywhere. > > Robert > Robert, thanks so much... I was in the midst of writing a reply when you wrote yours and I think we ended up at the same place (including decorations which I happened to stumble upon, but appreciate your mention, although I did not disable all controls (don't know how) and since that might come in handy for another situation if you have some code I would love to check it out). Here was my reply to others which fits nicely with your suggestions as well. Have we successfully created a saving alert? Indeed 1. created a stack 2. called it save 3. added a label, labelled it "Saving notes" 3. adjusted the card size 4. removed decorations 5. since I was currently saving from 3 places in my program (save button, save menu, and when quitting the application (auto-save)) decided to write a "savenotes" handler and put "do savenotes" in the 3 locations (and any future) 6. wrote handler on savenotes modeless stack "save" save this stack close stack "save" end savenotes 7. That worked BUT... unreadable, so re-wrote the handler to make the alert visible on savenotes modeless stack "save" save this stack wait 360 millisecs close stack "save" end savenotes In a previous programming paradigm (procedural) I would have just written a "save notes" sub routine and called it from wherever. The subroutine would handle everything in one place: design, placement, presentation, you name it. Nothing would exist outside except the calls to the subroutine. Then along came "event driven" programming. In event driven there was a main event loop just spinning around waiting for user input. Then the main event would triage the input to the appropriate location. But, if designed properly, there really only was 1 input location - the main event. In this environment (object oriented?) things seem to be a bit different. There are events, but they seem to occur in many places. From there we either respond immediately, or if more complicated (as in this case) we call a "handler" somewhere else that can take care of it. So I have the presentation in one stack (save), the handler in another stack (notepad) and the input from several different places (buttons, menus, stacks). Its just a different way of looking at programming, and one I'm still mentally struggling to sort out. (Plus, it really is more difficult to teach old dogs new tricks :-) Like anything, the more you do the more transparent the process becomes. Thanks again for all your input and feedback. The alert does look rather lovely :-) -- Mark PS I first wrote this message in my notepad stack. Getting it here presented a couple of opportunities for new learning… 1. I was unable to cut and paste the whole message from the field to an intermediate application (TextEdit) before posting it here. (I will try cutting and pasting from the rev field to the user group directly to see if that works any better AND, it does. So the problem was not with rev but with Text Edit. And just for grins I cut and pasted to Word and that worked fine too). 2. When I pasted it into TextEdit all kinds of spelling errors showed up that had not been highlighted in the rev field. Is there a way to turn on spell checking in rev fields? Thanks again, and i hope you have a great day! -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/alerts-tp3031113p3039933.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: alerts
Hi Thanks, more like: show something save this stack hide something I'm on the verge of testing "something" to be some sort of modeless stack/window. We shall see how it goes. Thanks for the suggestion - M From: use-revolution-boun...@lists.runrev.com [use-revolution-boun...@lists.runrev.com] On Behalf Of dunb...@aol.com [dunb...@aol.com] Sent: Sunday, November 07, 2010 4:30 PM To: use-revolution@lists.runrev.com Subject: Re: alerts I reread your post. I might still be confused by "without user interaction when the action is complete". Is "the action" just the showing of the dialog? But if all you want is to show some sort of dialog, and then dismiss it, just: showYourDialog wait 120--or whatever hideYourDialog Is your dialog a substack? A field? That is why I rolled it all into "showYourDialog" instead of, say "show field yourField". Ask again if I am way off base. ___ use-revolution mailing list use-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: alerts
Joe Lewis Wilkins wrote: > > Hi Mark, > > Why don't you create an image, paste it wherever you want into your stack; > then when you want it to appear, just show it; when you're through with > it, then hide it. I've done this a number of times. I usually create such > images using MacDraft, but I'm sure you can do the same with various other > drawing programs. You have complete control of what the image contains. > > Joe Wilkins > > Interesting suggestion Joe. I'm not sure where I would hide it though. Each card is the same as the next, all cards are just notes in a notepad (think of the Mac Stickies with buttons and you have the basic idea). Where could I hide the image where the user would not trip over it? Its just my 101 learning project, but since its not too intimidating I'm having fun with it. Thanks for the suggestion. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/alerts-tp3031113p3038898.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: alerts
Peter Brigham MD wrote: > > The saving of the time in a customProp is because I have scripted > things so the stack is automatically saved every 20 minutes, or at > whatever interval the user chooses in the preferences. That feature > was irrelevant to your question and I could have taken it out, > probably should have to avoid confusing you > > HI Peter, I'm glad you didn't. While I won't need it in the current project I'll archive it as i'm sure it will come in handy eventually. However, rev does not seem to be an environment that supports something like a "main event loop" so either you are checking the time from lots of different places or using some other technique? (can you set an "On every 10 mins do... handler?") -- M -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/alerts-tp3031113p3038809.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: alerts
william humphrey-2 wrote: > > Except it should have a progress bar. > One step at a time. But thanks for suggesting a future question :-) -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/alerts-tp3031113p3037243.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: alerts
Peter Brigham MD wrote: > > Here's the way I do it. I show a small display stack, the idea is just > that it's a billboard to tell the user that the saving is occurring. > It closes after the save is done. > > on doSave > modeless stack "savingAlert" > wait 10 millisecs > save stack "pdData" > set the lastSaved of stack "pdData" to the seconds > close stack "savingAlert" > go stack "pdData" > end doSave > > -- Peter > Peter, thanks that looks very close to what I had in mind. And there is lots in there for me to go explore too (as I've not played with modeless stack). Sounds like "stack" might be another way of describing a window? Why do you put the current seconds into the (I'm guessing) custom property of pdData? Thanks a bunch -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/alerts-tp3031113p3037240.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: Refreshing a card
Monte Goulding wrote: > >> > I think this is the simplest solution to your problem. Alternatively you > could put the same code in a setprop handler in your stack script. > Something like: > > setprop showdatestamp pBoolean > if there is a fld "dateStampField" then > set the visible of field "datestampfield" to pBoolean > end if >pass showdatestamp > end showdatestamp > > or another option would be to put this field into a background that's > placed on all the cards and then you probably wouldn't need the custom > property at all because showing and hiding the field would happen on all > cards at the same time. > > Hi Monte, You've definitely provided some homework there as I have not looked at setprop yet. Interesting you should mention the background issue because basically everything on my card is in the background (its a simple notepad app, gee... I wonder how many of those have been created!). So every element of the UI shows up on every new card. I thought some people might like to see the date the note/notes were made although personally it drives me batty seeing the date so I decided to create the menu Option called "Toggle Date Stamp" (actually originally I wanted to make the menu item dynamic so that if it was in the "show" state it would say "Hide Date Stamp" and if it was in the "hidden" state it would say "Show Date Stamp" but my transcript/livecode (I'm still using 4.5.0 dp 3) skills are not yet there so the simplest solution was to have a static menu item that conveyed the same sense of choice so "Toggle Date Stamp" it is. The datestampfield is in the background. The datestamp (value) is a custom property. Datestamp gets stored in the datestampfield (now automatically) each time a card or note is created/accessed. The question becomes, if I am going to toggle it on/off I need to know what state of visibility it is in now. That state of visibility (called showdatestamp) is stored as another custom property with values of true/false. When I first implemented the menu code that does the toggling: set the showDateStamp of this stack to not the showDateStamp of this stack that would change the value of showdatestamp (the flag) reliably, but had no effect on the actual field called datestamp. Connecting those two pieces up was the challenge which "set the visible of fld "datestamp" to the showdatestamp of this stack" accomplished. It is still not reliably 100% clear in my mind but I guess the more you work with it the more ingrained it becomes. I appreciate all of the feedback I have been getting here so thanks for the reply and the homework :-) -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Refreshing-a-card-tp3021743p3033072.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: alerts
Hi Craig, Forget the part about not knowing when a save is done... I'm a little tired at the moment but did figure it out. I have code that says: on mouseUp save this stack end mouseUp Pretty simple. But there is no visible indication to the user in my stack that anything happened. So what I want to do is: on mouseUp -- show a dialog saying we're saving now... (sort of like what runrev itself does when you do cmd-S) save this stack -- dismiss the dialog end mouseUp BUT, the only dialogs I have found in runrev are ask or answer, both of which require the user to dismiss them. How do you do an information only dialog (or is it an alert?) that does not require user intervention? PS which reminds me, is there anyway to see how the IDE itself was implemented? (i'd go look at the code for the IDE's save command). I've heard or read that it is possible to do that but haven;t discovered how. Thanks again, -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/alerts-tp3031113p3031553.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: alerts
Hi Craig, I looked up dialogs and what not in the dictionary and user guide and all I found where ones driven by ask and answer (nothing like a 1 way conversation like tell). In this case we don't need the user to dismiss the dialog, or answer anything, we just want to inform them that something is going on (a save is in process) and once it is finished the dialog should just go away. Wondering if runrev has a command for that, or if we are building it from pieces what is/are the critical pieces (ie. how would i know the save is complete for example). Thanks -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/alerts-tp3031113p3031542.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: Refreshing a card
Hi Monte, sorry if I missed replying. The problem was that on any specific card when I selected the "toggle date stamp" menu option, visibly nothing happened. In reality the property "showdatestamp" was changing from true to false on each menu selection based on the statement: set the showDateStamp of this stack to not the showDateStamp of this stack but the field itself (I think I've called it the datestampfield) did not appear or disappear as one might expect. Going from the current card (where the toggle was selected) to another card did show the desired result. ie. if you toggled the "showdatestamp" to off (or false in this case) then going to another card suppressed displaying the datestampfield. There is a line of code each time you open a card that stays if there is a fld "dateStampField" then put the dateStamp of this card into field "dateStampField" end if but what I was doing (which did not work) was trying to make it visible or not by doing something like this if there is a fld "dateStampField" then put the dateStamp of this card into field "dateStampField" else put " " into field "dateStampField" end if sort of trying to make it visible or not visible myself. I did not know about the "set the visible of..." command sequence. By adding that into the menu handler (if that is the correct term) so that it says case "Toggle Date Stamp" set the showDateStamp of this stack to not the showDateStamp of this stack -- new stuff added to make it visible/invisible if there is a fld "dateStampField" then set the visible of field "datestampfield" to the showdatestamp of this stack end if works fine. Its still a bit tricky to wrap my head around this. The "mechanics" of doing it have some pieces here, some pieces there, and its not entirely clear to me how they all work together. And I guess the critical portion to understand is that there is a large junk of this visibility thing which I'm NOT doing. Now its something that reunrev handles when you set the visibility property of the field through the menu. Put another way, previously I was trying to make it appear or not by putting the date in the field, or a space. Now, I don't worry about it. I put the date in the field (if there is one) and let the "visibility" property handle whether it gets displayed or not. If that makes any sense. Anyway, I appreciate your feedback. -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Refreshing-a-card-tp3021743p3031539.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
alerts
How do you do a dialog like the Save dialog (Command-S) in rev? (ie. it goes away without user interaction when the action is complete) Thanks -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/alerts-tp3031113p3031113.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: Refreshing a card
Thanks Terry, the following worked beautifully.. set the showDateStamp of this stack to not the showDateStamp of this stack if there is a fld "dateStampField" then set the visible of field "datestampfield" to the showdatestamp of this stack end if break (I wasn't able to figure out how to use openCard in this situation but since I have a solution I'l leave that problem for another day). Thanks again. -- mark From: use-revolution-boun...@lists.runrev.com [use-revolution-boun...@lists.runrev.com] On Behalf Of Terry Judd [...@unimelb.edu.au] Sent: Sunday, October 31, 2010 10:57 PM To: How to use Revolution Subject: Re: Refreshing a card Mark - if you want to do a general refresh the card then just call openCard in your handler. If all you want to do is refresh the date stamp object then add something like... Set the visible of grp/fld/whatever "dateStamp" to the showDateStamp of this stack ...to your case statement HTH, Terry... On 1/11/10 2:52 PM, "Mark Smith" wrote: > > Hello all, by now most of you are probably familiar with my silly questions > (born of, I am afraid, too many years engrossed in procedural programming > languages). Here we go. I have a menu option called "Toggle Date Stamp" and > it toggles on/off the display of a date stamp on the card. When you select > it you might expect that the card goes from displaying the date stamp to not > displaying the date stamp ad infinitum. Not so. In fact nothing changes. If > I move off the card and then back on I see the correct behaviour but not > while I am actually on the card (or any card). I am guessing that in the > Toggle Date Stamp menu code (below) I need to send a message to the card to > "refresh" itself. But what message? > > case "Toggle Date Stamp" > set the showDateStamp of this stack to not the showDateStamp of > this stack > -- insert some message to get the current card to "redisplay" > itself > break >end switch > > (Note, yes the showDateStamp property is in the stack because it effects the > behaviour of all of the cards, not particular ones. Hopefully I've got that > bit of logic right :-) > > Thanks for your patience, > > -- Mark -- Dr Terry Judd | Senior Lecturer in Medical Education Medical Education Unit Melbourne Medical School The University of Melbourne ___ use-revolution mailing list use-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
Refreshing a card
Hello all, by now most of you are probably familiar with my silly questions (born of, I am afraid, too many years engrossed in procedural programming languages). Here we go. I have a menu option called "Toggle Date Stamp" and it toggles on/off the display of a date stamp on the card. When you select it you might expect that the card goes from displaying the date stamp to not displaying the date stamp ad infinitum. Not so. In fact nothing changes. If I move off the card and then back on I see the correct behaviour but not while I am actually on the card (or any card). I am guessing that in the Toggle Date Stamp menu code (below) I need to send a message to the card to "refresh" itself. But what message? case "Toggle Date Stamp" set the showDateStamp of this stack to not the showDateStamp of this stack -- insert some message to get the current card to "redisplay" itself break end switch (Note, yes the showDateStamp property is in the stack because it effects the behaviour of all of the cards, not particular ones. Hopefully I've got that bit of logic right :-) Thanks for your patience, -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Refreshing-a-card-tp3021743p3021743.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: Swapping scrolling text for regular text
Thanks Terry. (I did stumble on it as well, and was embarrassed I posted but you never know with these things). I have another question to post tonight, hopefully not quite as silly. Terry Judd wrote: > > Mark - all you need to do is select the field and enable its vScrollbar > property in the property inspector. > > Regards, > > Terry... > > -- > Dr Terry Judd | Senior Lecturer in Medical Education > Medical Education Unit > Melbourne Medical School > The University of Melbourne > -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Swapping-scrolling-text-for-regular-text-tp3020802p3021735.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
Swapping scrolling text for regular text
I have a sort of dumb question. I have a stack with about 12 cards that has a text field on it (part of a background group). I would like to change this field to a scrolling text field. Is it possible to swap or change the existing regular text field into a scrolling one without loosing the existing text entries? (or is the only option to restart from scratch). Thanks -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Swapping-scrolling-text-for-regular-text-tp3020802p3020802.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: WINDOWS VERSION MENU PROBLEM - architect
Hi Joe, I agree. As my program grows finding all the bits and pieces will be difficult. Having an option to "save all scripts to text" with some minimal description (button script -- delete, stack script, etc) would allow to browse all the code, get some idea of how it is organized as well as back it up (and I tend to put a lot of comments in my code so it reinforces what I am learning). It would be very useful. If its not in LC maybe we should send a feature request? Hi Mark, I don't think it is a feature. I had to do it one at a time, but no big deal. Saved a lot of time in rebuilding them. It would probably be a good idea to save them routinely as I've lost them a number of times in the past when I was experimenting. The more I think about it, there MUST be something built into rev to do that. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/WINDOWS-VERSION-MENU-PROBLEM-architect-tp2848149p2953347.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
adding new object to background group
I'd like to add a button to an existing background group, but RR/LC is telling me if I do that I am going to loose the background with that group on it from all previous cards. And it does. Here's what I did. Added the button. Selected the existing background group (group 1031) and the new object and selected group. I get a warning that if I do this I will loose the background from existing cards, I say ok. Sure enough the current card and all future cards (now group 1095) contain the new button, and all previous cards are blank (because the whole card was just a background obj). What I would really like to do is edit group 1031 to add a new button and have it inherited on all previous cards. Is there a way to do that? I guess putting this more generically, is there a way to edit a background group and not loose all of the cards that previous had this group? Thanks -- Mark PS I did get the compiling thing working (thank you for all you help). I'm using the following at the moment (largely because of its simplicity) and it works fine. on preopenstack lock screen -- prevents the user from seeing what's going on hide this stack -- so they don't see it, same as set visible of stack "mystack" to true go to stack "/Users/Mark/runrev/stacks/Notepad/Notepad3.rev" end preopenstack -- note this stack can be hard to edit subsequently because the preopenstack message -- hides the stack. You can get around this by using the application browser, finding the stack -- 'startup' and clicking on it. This will make it visible again. The two things I had to learn in this scenario are 1) you must use the extension .rev or the 'go to stack' function will not work and 2) you must provide the full path. -- Mark PPSS I've bookmarked the more complex solution that allows storing the notepad stack in the osx bundle (keep in mind I am referring to things I don't even know what they are) and will work through it later. Thanks again -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/adding-new-object-to-background-group-tp2953314p2953314.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: WINDOWS VERSION MENU PROBLEM - architect
Hi Joe, is that a feature of LC (saving all scripts as text), or do you have to select and save them out 1 at a time? From: use-revolution-boun...@lists.runrev.com [use-revolution-boun...@lists.runrev.com] On Behalf Of Joe Lewis Wilkins [pepe...@cox.net] Sent: Saturday, October 02, 2010 3:12 PM To: How to use Revolution Subject: Re: WINDOWS VERSION MENU PROBLEM - architect Thanks Jaqi. As later noted, I just rebuilt the menus from scratch after saving all the scripts as text so it wasn't all that bad. I've managed to solve all my other problems one way or another. Joe Lewis Wilkins On Oct 2, 2010, at 1:07 PM, J. Landman Gay wrote: > On 10/1/10 1:42 AM, Joe Lewis Wilkins wrote: >> I see that the List won't allow me to show even a very small screen >> shot. So, to describe the problem in words: The menu consists of four >> menus - File Edit Go Help. The menus all work, but you can't read the >> File or Go menus easily. It's as if the background is set to some >> very dark color. TIA, Joe > > It sounds like somehow the buttons have not only acquired a dark background > color but also have become opaque. Just set the style of each menu button to > transparent and that should fix it. > > -- > 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: loading another stack from splash
Wow, very very cool. Thanks you for taking the time to pass this along. Being able to keep the stacks inside the OSX application bundle will/would be fabulous. -- Mark (PS Its going in my RunRev er Livecode Gold folder!) From: Sivakatirswami [via Runtime Revolution] [ml-node+2768466-1431577482-120...@n4.nabble.com] Sent: Thursday, September 30, 2010 5:23 PM To: Mark Smith Subject: Re: loading another stack from splash On 9/28/10 5:11 PM, Mark Smith wrote: > Also, it would be real nice not to have to "hard code" the path in case I > want to change its location. Having to manage two stacks instead of one does > seems like an added burden. > > Stumped. Any help appreciated > > -- Mark We meaning many of us here... do this all the time. I love keeping stacks inside the OSX application bundle, you can develop them from inside there and ship as as single binary.. There are two common approaches These scripts may help on loadFromDisk -- Setting the default folder. set itemdel to "/" set the defaultfolder to item 1 to -2 of the effective filename of this stack -- Check for application if there is not a file "MyNoteBook.rev" then if checkNet() then checkNetworkAndDownload #If you don't have it locally then get it from the web server exit loadFromDisk else answer error "Please connect to the internet to install this application" exit loadFromDisk end if end if go stack url "binfile:MyNoteBook.rev" hide stack "MySplashEngine.rev" end loadFromDisk - on preopenstack go stack url (getPath("MyNoteBook.rev") end preopenstack function getPath tStack set the itemdel to "/" put the effective filename of this stack into tPath put tStack into item -1 of tPath return tPath end getPath By separating the function you have the interesting option of offering the user the option to open any number stacks you might bundle into the same folder: On the splash screen you can have a pull down menu like this on mousedown set the defaultfolder to item 1 to -2 of the effective filename of this stack put the files into tFiles filter tFiles with ("*.livecode") put tFiles into me end mousedown on menuPick pStack go stack url (getPath(pStack)) hide this stack # hide the splash screen now... end menupick Now you can put what ever stacks you like into that folder. Don't forget to include quit handlers in all the stacks so that you don't leave a hung process Hidden splash screen still running. HTH aloha Mark assuming that you will always put the data stacks in the same folder as the splash-engine stack ___ use-revolution mailing list [hidden email] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution View message @ http://runtime-revolution.278305.n4.nabble.com/loading-another-stack-from-splash-tp2547155p2768466.html To unsubscribe from loading another stack from splash, click here<http://runtime-revolution.278305.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_code&node=2547155&code=TWFya19TbWl0aEBjcGUudW1hbml0b2JhLmNhfDI1NDcxNTV8MTc4NDM5NjU4NQ==>. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/loading-another-stack-from-splash-tp2547155p2952707.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: loading another stack from splash
Hi Splash, any further thoughts on your last questions and my post. I'm sort of still trying to figure this compile thing out. Since I want to save the notes in the notepad stack does that mean it cannot absolutely ever be compiled? I am beginning to think that is my error in thinking. I was thinking I could compile my simple Notepad application because it works fine in the run/edit environment but apparently that does not mean it can translate to a compiled environment. I created a simple splash program that says: on startup -- hide this stack -- close this stack -- go to stack the utargetstack of this stack answer "Notepad3-s" go to stack "/Users/Mark/runrev/stacks/Notepad/Notepad3" end startup on preopenstack -- lock screen to true -- set visible to false -- hide this stack answer "Notepad3-p" go to stack "/Users/Mark/runrev/stacks/Notepad/Notepad3" end preopenstack In the interpretive mode I know it is using preopenstack. But not even that is working. Any attempt to get this program to load and run the Notepad stack ends up doing nothing? I use Meanwhile when I manually load and run the notepad program it works just marvellous. This does seem to me like such a simple problem (a) I have a perfectly functional stack (b) I would like to run it without requiring the editing environment (or runtime environment). Compiling it as a standalone seems the way to go. I have done that but it will not save new notes (into itself). This is well documented. Solution is to write a "splash" program that calls Notepad. Not working. Also, it would be real nice not to have to "hard code" the path in case I want to change its location. Having to manage two stacks instead of one does seems like an added burden. Stumped. Any help appreciated -- Mark -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/loading-another-stack-from-splash-tp2547155p2718266.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: loading another stack from splash
Hmm are you trying to create a notepad-like application that, when closed, saves it's contents and reloads them back when it's been relaunched? Yes, exactly. Each card is a note. There are buttons to navigate forwards, backwards through the cards/notes, add and delete cards etc. Pretty simple really. My "extended" idea of "hello world". -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/loading-another-stack-from-splash-tp2547155p2669171.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: loading another stack from splash
Hi Shadow, thanks again. Am on the road and cannot do a lot of testing right now but basically I got this to work once by embedding one stack in the other (using stackfiles option) but could not subsequently duplicate. Am concerned that I am barking down the wrong tree as don't think that embedded stacks (aka substacks) can save to themselves when compiled. I need a solution that will allow me to have one stack call/load another that is not compiled as part of the mainstack. Will try playing with this again this weekend, but very frustrated this is not straight forward and obvious. I would imagine many people need to have compiled stacks save to themselves? Cheers, -- Mark From: use-revolution-boun...@lists.runrev.com [use-revolution-boun...@lists.runrev.com] On Behalf Of Shadow Slash [shadow.sl...@yahoo.com] Sent: Monday, September 20, 2010 11:55 AM To: How to use Revolution Subject: RE: loading another stack from splash Correction concerning your new script, if you will use "lock screen" you don't have to include the "to true" after it. Reverting the "lock screen" should be as "unlock screen". And also "set visible to false" needs to identify what you want to hide like "set visible of stack "mystack" to false". Alternatively, you can also just use "hide stack "mystack"" to shorten your code length. About the path thing, I think you need to define the path of the stack like "notepad3.rev" or something. Otherwise, you can juse add your notepad3 stack as a substack to your splash stack. :) --- On Mon, 20/9/10, Mark Smith wrote: > From: Mark Smith > Subject: RE: loading another stack from splash > To: "How to use Revolution" > Date: Monday, 20 September, 2010, 4:25 PM > Thanks Shadow, yes that was a typo in > my email, not the hander. I'll cut/paste what I have > > on preopenstack >-- lock screen to true >-- set visible to false >answer the utargetstack of this stack >go to stack (the utargetstack of this > stack) > end preopenstack > > There are some commented sections (suggested elsewhere) I > want to test later. Notepad3 is just another stack residing > in the same directory as Startup (might that be the problem? > ie. I'm not providing a path or anything just the name of > the stack), The bracketing did not help. Thanks > > -- Mark > > From: use-revolution-boun...@lists.runrev.com > [use-revolution-boun...@lists.runrev.com] > On Behalf Of Shadow Slash [shadow.sl...@yahoo.com] > Sent: Monday, September 20, 2010 10:36 AM > To: How to use Revolution > Subject: Re: loading another stack from splash > > Hi Mark, > > First off, is that a typo in your handler? -> > "preopenstackit". > IMO, that should be "preOpenStack". > Now for your problem, can you try this in place of your > code instead? > on preopenstack >answer the utargetstack of this stack >go to stack (the utargetstack of this > stack) > end preopenstack > > If that still didn't work please do tell so I can try to > further help you. > > --- On Mon, 20/9/10, Mark Smith > wrote: > > > From: Mark Smith > > Subject: loading another stack from splash > > To: "use-revolution@lists.runrev.com" > > > Date: Monday, 20 September, 2010, 3:28 PM > > Hi folks, > > > > I've written an application (a simple notepad) that I > > wanted to compile. RunRev documentation suggests > creating a > > "splash screen" that > > calls the "notepad" so that notepad can save into > itself. > > So I created a stack called Startup. So far it has a > single > > script in the stack script that says > > > > on preopenstackit > > answer the utargetstack of this > > stack -- works > > go to stack the utargetstack of this > > stack -- not working > > end preopenstack > > > > utargetstack is defined as Notepad3. When I open the > > startup stack it displays the name of the "target" > stack > > correctly > > in a dialog (ie. Notepad3). > > > > The next line however does nothing. By that I mean it > does > > not seem to load and run > > the Notepad3 stack. This is what I get when I say "put > the > > openstacks" > > > > Message Box > > revMenubar > > revTools > > revStartCentre > > Startup > > revApplicationOverview > > > > Any suggestions? > > > > Thanks > > > > -- Mark > > _ > > ___
RE: loading another stack from splash
Thanks Shadow, yes that was a typo in my email, not the hander. I'll cut/paste what I have on preopenstack -- lock screen to true -- set visible to false answer the utargetstack of this stack go to stack (the utargetstack of this stack) end preopenstack There are some commented sections (suggested elsewhere) I want to test later. Notepad3 is just another stack residing in the same directory as Startup (might that be the problem? ie. I'm not providing a path or anything just the name of the stack), The bracketing did not help. Thanks -- Mark From: use-revolution-boun...@lists.runrev.com [use-revolution-boun...@lists.runrev.com] On Behalf Of Shadow Slash [shadow.sl...@yahoo.com] Sent: Monday, September 20, 2010 10:36 AM To: How to use Revolution Subject: Re: loading another stack from splash Hi Mark, First off, is that a typo in your handler? -> "preopenstackit". IMO, that should be "preOpenStack". Now for your problem, can you try this in place of your code instead? on preopenstack answer the utargetstack of this stack go to stack (the utargetstack of this stack) end preopenstack If that still didn't work please do tell so I can try to further help you. --- On Mon, 20/9/10, Mark Smith wrote: > From: Mark Smith > Subject: loading another stack from splash > To: "use-revolution@lists.runrev.com" > Date: Monday, 20 September, 2010, 3:28 PM > Hi folks, > > I've written an application (a simple notepad) that I > wanted to compile. RunRev documentation suggests creating a > "splash screen" that > calls the "notepad" so that notepad can save into itself. > So I created a stack called Startup. So far it has a single > script in the stack script that says > > on preopenstackit >answer the utargetstack of this > stack -- works >go to stack the utargetstack of this > stack -- not working > end preopenstack > > utargetstack is defined as Notepad3. When I open the > startup stack it displays the name of the "target" stack > correctly > in a dialog (ie. Notepad3). > > The next line however does nothing. By that I mean it does > not seem to load and run > the Notepad3 stack. This is what I get when I say "put the > openstacks" > > Message Box > revMenubar > revTools > revStartCentre > Startup > revApplicationOverview > > Any suggestions? > > Thanks > > -- Mark > _ > ___ > use-revolution mailing list > use-revolution@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage > your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
loading another stack from splash
Hi folks, I've written an application (a simple notepad) that I wanted to compile. RunRev documentation suggests creating a "splash screen" that calls the "notepad" so that notepad can save into itself. So I created a stack called Startup. So far it has a single script in the stack script that says on preopenstackit answer the utargetstack of this stack -- works go to stack the utargetstack of this stack -- not working end preopenstack utargetstack is defined as Notepad3. When I open the startup stack it displays the name of the "target" stack correctly in a dialog (ie. Notepad3). The next line however does nothing. By that I mean it does not seem to load and run the Notepad3 stack. This is what I get when I say "put the openstacks" Message Box revMenubar revTools revStartCentre Startup revApplicationOverview Any suggestions? Thanks -- Mark _ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Find or Search Function
Hi Ted, just wondering if you were able to get something useful running and what approach you took. Thanks -- Mark From: use-revolution-boun...@lists.runrev.com [use-revolution-boun...@lists.runrev.com] On Behalf Of Ted Mills [tm1...@gmail.com] Sent: Wednesday, August 11, 2010 4:49 PM To: use-revolution@lists.runrev.com Subject: Re: Find or Search Function Thanks for the response's. I will give it a shot and see what happens. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Find-or-Search-Function-tp2321792p2321929.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: Sarah Reichelt's XML sample stack
Hi Simon, there is a lot of material online although it can take awhile to find. I've compiled some of the most interesting looking links below (if anyone knows of others sites please let me know). Keep in mind that the BYU course material is all online, so you don't have to signup or register for anything on that site. Also, I think Sarah Reichelt's blog is listed here (its identified only by the first name). I've not tried all of these so can't vouch for them, but they are my intended starting points. If you have the stamina to work through this you'll be a Rev guru by the end. Good luck. http://www.runrev.com/developers/lessons-and-tutorials/tutorials/online-scripting-conferences/ http://www.aslugontheroad.co.cc/index.php?option=com_weblinks&view=category&id=36%3Ahow-to-script&Itemid=61 http://www.tactilemedia.com/index.html?http%3A//www.tactilemedia.com/site_files/software/tutorials.html%3Fhttp%253A//www.tactilemedia.com/site_files/software/tutorial_thumbs.html http://sarahrev.blogspot.com/ http://revolution.byu.edu./ http://www.runrev.com/developers/ http://runrevplanet.com/index.php?option=com_content&view=section&layout=blog&id=7&Itemid=65&limitstart=8 http://runrevplanet.com/index.php?searchword=tip+1&ordering=&searchphrase=all&Itemid=1&option=com_search -- Mark From: use-revolution-boun...@lists.runrev.com [use-revolution-boun...@lists.runrev.com] On Behalf Of Simon Lord [sl...@karbonized.com] Sent: Friday, June 25, 2010 9:36 PM To: How to use Revolution Subject: Sarah Reichelt's XML sample stack Is Sarah still around? I searched the archives for an XML sample stack to get my feet wet but her sample seems to be missing from her site (I can't find it to save my life). I also found 1 revonline lesson but would like a few *starter* stacks to review as well. Thanks. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-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: Tools palette showing?
Really, that is so cool! From: use-revolution-boun...@lists.runrev.com [use-revolution-boun...@lists.runrev.com] On Behalf Of Mark Wieder [mwie...@ahsoftware.net] Sent: Thursday, June 24, 2010 4:00 PM To: How to use Revolution Subject: Re: Tools palette showing? Emmett- Thursday, June 24, 2010, 1:52:58 PM, you wrote: > Opie here; hide and show do what I need; I just want to hide it. But > how, other than asking here, was I to discover the name of that > stack? I poked all over including message-box asking the name of put the openstacks -- -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 ___ use-revolution mailing list use-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: make standalone (was 2 quick questions)
Hi Bob, I've been working thru it and you are spot on. Thx for this. From: use-revolution-boun...@lists.runrev.com [use-revolution-boun...@lists.runrev.com] On Behalf Of Bob Sneidar [b...@twft.com] Sent: Saturday, June 19, 2010 2:54 PM To: How to use Revolution Subject: Re: make standalone (was 2 quick questions) Not in front of my computer now but I suppose on preopenstack you could set lock screen to true, set the visible of the startup stack to false, open the real stack and away you go. Don't have your main app be a substack as i think it gets compiled like the startup stack. Somebody correct me if I'm wrong. Instead add you main stack as an included file in you standalone settings. Bob Sent from my iPad On Jun 18, 2010, at 8:05 PM, Mark Smith wrote: >> Some have the main stack be a kind of splash screen that shows for a few >> seconds, then hides itself and opens the real stack which you would add as a >> file that gets included with the "main" app. > Make sense? > > Thanks Bob, that makes perfect sense but... just mechanically I was not sure > what hoops to jump through. Ok, let me try and see what I come up with. > 10 mins in, still see no solution. IS Notepad a substack of my new Startup > stack or a stack file attached to Startup? > > I guess I'll try both while I'm waiting... I think this is one area in the > User Guide (Chapter 10) that could use a bit more explaining... something > like: How to Create a Startup Stack? Also, can Startup be invisible so the > user just sees my application stack? > > -- Mark ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: make standalone (was 2 quick questions)
> Not to worry - somedays I *am* one. Wanna trade? Only if it helps :-) PS I've added your previous msg to my RevGold folder. THere is a lot in there to digest. You've been most generous with your time Mark. Thanks From: use-revolution-boun...@lists.runrev.com [use-revolution-boun...@lists.runrev.com] On Behalf Of Mark Wieder [mwie...@ahsoftware.net] Sent: Saturday, June 19, 2010 10:51 PM To: How to use Revolution Subject: Re: make standalone (was 2 quick questions) Mark- Saturday, June 19, 2010, 8:03:17 PM, you wrote: > Now I have but a few questions (sorry, somedays I do feel like an idiot!) Not to worry - somedays I *am* one. Wanna trade? -- -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 ___ use-revolution mailing list use-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: make standalone (was 2 quick questions)
Mark and Bob, thank you so much for your responses. (In particular Mark, your Standalone conference stack was a big help). Now I have but a few questions (sorry, somedays I do feel like an idiot!) It looks like I have 2 options for my Startup stack 1. In the stack script put: on startup hide this stack close this stack go to stack the utargetstack of this stack end startup 2. Put this (or something like it) on preopenstack lock screen to true set visible to false open "real" stack end preopenstack Q1 What is the difference between the startup and preopenstack messages? Q2 I realize I probably need a list of revtalk messages (with descriptions) but couldn't find one. Any suggestions??? Q3 "utargetstack" is a variable? Where is it defined... (the target stack in my case will be called "Notepad3") Thanks again... oh, 1 other tangential question for either of you. Mark, in your Standalone stack I noticed the forward/back buttons were skinned. Is there a tutorial around on how to do that? I feel like a 3 year old that keeps asking "Why?" to every answer! -- Mark From: use-revolution-boun...@lists.runrev.com [use-revolution-boun...@lists.runrev.com] On Behalf Of Mark Wieder [mwie...@ahsoftware.net] Sent: Saturday, June 19, 2010 1:12 AM To: How to use Revolution Subject: Re: make standalone (was 2 quick questions) Mark- Friday, June 18, 2010, 8:05:12 PM, you wrote: > Thanks Bob, that makes perfect sense but... just mechanically I > was not sure what hoops to jump through. Ok, let me try and see what > I come up with. 10 mins in, still see no solution. IS Notepad a > substack of my new Startup stack or a stack file attached to Startup? > I guess I'll try both while I'm waiting... I think this is one > area in the User Guide (Chapter 10) that could use a bit more > explaining... something like: How to Create a Startup Stack? Also, It's not easy to find on the rev website, but check out the Standalone conference stack (#15) at: http://www.runrev.com/developers/lessons-and-tutorials/tutorials/online-scripting-conferences/ -- -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 ___ use-revolution mailing list use-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: make standalone (was 2 quick questions)
>Some have the main stack be a kind of splash screen that shows for a few >seconds, then hides itself and opens the real stack which you would add as a >file that gets included with the "main" app. > Make sense? Thanks Bob, that makes perfect sense but... just mechanically I was not sure what hoops to jump through. Ok, let me try and see what I come up with. 10 mins in, still see no solution. IS Notepad a substack of my new Startup stack or a stack file attached to Startup? I guess I'll try both while I'm waiting... I think this is one area in the User Guide (Chapter 10) that could use a bit more explaining... something like: How to Create a Startup Stack? Also, can Startup be invisible so the user just sees my application stack? -- Mark From: use-revolution-boun...@lists.runrev.com [use-revolution-boun...@lists.runrev.com] On Behalf Of Bob Sneidar [b...@twft.com] Sent: Friday, June 18, 2010 9:10 PM To: How to use Revolution Subject: Re: make standalone (was 2 quick questions) The caveat about saving anything in a compiled rev app is that no runtime app can be modified. Otherwise, anyone could interject their own malicious code and you would run that code simply by launching the app next time you ran it. Normally this would not be a problem for apps that only used cards as forms as a front end to a database. But you want your app itself to contain the data as card, old HyperCard style. So the way to write this for an app is to have the main stack that gets compiled launch the actual stack that is your app. Some have the main stack be a kind of splash screen that shows for a few seconds, then hides itself and opens the real stack which you would add as a file that gets included with the "main" app. Make sense? Bob Sent from my iPad On Jun 18, 2010, at 5:37 PM, Mark Smith wrote: > Funny you should mention that. My first app is something similar... a notepad > (just for its simplicity and completeness). It has (appropriately) a text > field, cards are numbered (so I know how many there are), and buttons for > forwards, backwards, begin, end, create, delete and save notes. Now, I want > to compile to a standalone but I don;t understand the instruction to split my > stack so I can save the notes? I just have the one stack. Any suggestions? > > Mark Smith > > > From: use-revolution-boun...@lists.runrev.com > [use-revolution-boun...@lists.runrev.com] On Behalf Of Peter Brigham MD > [pmb...@gmail.com] > Sent: Thursday, June 17, 2010 6:33 AM > To: How to use Revolution > Subject: Re: 2 quick questions > > On Jun 16, 2010, at 4:17 PM, Mark Smith wrote: > >> Hi Peter, no doubt the day will come. Thanks for the tip (I'm filing >> these away in a word document. Mark Schonewille will undoubtedly >> need something to base his FAQ on!) >> >> -- M > > I save my collected tips in a Rev stack. Searchable. And poetically > appropriate. > > -- Peter > > Peter M. Brigham > pmb...@gmail.com > http://home.comcast.net/~pmbrig > > >> -Original Message- >> From: Peter Brigham MD >> Sent: Wednesday, June 16, 2010 8:27 AM >> >> A useful nugget -- if you need to get the current card of a stack that >> is not the frontmost stack, use the undocumented term >> "currentcard" (note lack of space character) -- as in: >> put the currentcard of stack "myStack" into cc >> which gets you something like: >> card id 1002 >> >> "Currentcard" is equivalent to "this card" but works with any open >> stack, returning the id of the card that is currently showing in that >> stack. In your case this is unnecessary, as you are apparently needing >> to deal only with the one stack, so "this card" will do fine. > > > ___ > use-revolution mailing list > use-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 ___ use-revolution mailing list use-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: make standalone (was 2 quick questions)
Funny you should mention that. My first app is something similar... a notepad (just for its simplicity and completeness). It has (appropriately) a text field, cards are numbered (so I know how many there are), and buttons for forwards, backwards, begin, end, create, delete and save notes. Now, I want to compile to a standalone but I don;t understand the instruction to split my stack so I can save the notes? I just have the one stack. Any suggestions? Mark Smith From: use-revolution-boun...@lists.runrev.com [use-revolution-boun...@lists.runrev.com] On Behalf Of Peter Brigham MD [pmb...@gmail.com] Sent: Thursday, June 17, 2010 6:33 AM To: How to use Revolution Subject: Re: 2 quick questions On Jun 16, 2010, at 4:17 PM, Mark Smith wrote: > Hi Peter, no doubt the day will come. Thanks for the tip (I'm filing > these away in a word document. Mark Schonewille will undoubtedly > need something to base his FAQ on!) > > -- M I save my collected tips in a Rev stack. Searchable. And poetically appropriate. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig > -Original Message- > From: Peter Brigham MD > Sent: Wednesday, June 16, 2010 8:27 AM > > A useful nugget -- if you need to get the current card of a stack that > is not the frontmost stack, use the undocumented term > "currentcard" (note lack of space character) -- as in: > put the currentcard of stack "myStack" into cc > which gets you something like: > card id 1002 > > "Currentcard" is equivalent to "this card" but works with any open > stack, returning the id of the card that is currently showing in that > stack. In your case this is unnecessary, as you are apparently needing > to deal only with the one stack, so "this card" will do fine. ___ use-revolution mailing list use-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: 2 quick questions
Hi Peter, no doubt the day will come. Thanks for the tip (I'm filing these away in a word document. Mark Schonewille will undoubtedly need something to base his FAQ on!) -- M -Original Message- From: use-revolution-boun...@lists.runrev.com [mailto:use-revolution-boun...@lists.runrev.com] On Behalf Of Peter Brigham MD Sent: Wednesday, June 16, 2010 8:27 AM To: How to use Revolution Subject: Re: 2 quick questions A useful nugget -- if you need to get the current card of a stack that is not the frontmost stack, use the undocumented term "currentcard" (note lack of space character) -- as in: put the currentcard of stack "myStack" into cc which gets you something like: card id 1002 "Currentcard" is equivalent to "this card" but works with any open stack, returning the id of the card that is currently showing in that stack. In your case this is unnecessary, as you are apparently needing to deal only with the one stack, so "this card" will do fine. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Jun 15, 2010, at 10:21 PM, Mark Smith wrote: > HI Mark, I was all excited until I realized i didn't know where to > put it. Here is what I want to do: I want to put the number of the > current card into a field or label on the card so I know where I am > in the stack. Where would I put this line > > put the number of this cd into field cardnumberfield > > thanks > > -- M > > Mark Smith > >> Mark, >> >> put the number of this cd >> put the number of the current cd >> put the number of this cd of stack "Foo" >> put the number of the current cd of stack "Foo" >> >> I think there is a FAQ on the RunRev homepage but probably it isn't >> what you're looking for. I'd be happy to host a FAQ on runrev.info if >> we (the list) can agree on what should be included in such a FAQ. >> >> -- >> Best regards, >> >> Mark Schonewille >> >>> 1. How can I get the number of the current card (and put it into a >>> field or variable)? >>> Related: since I am reading a property from an object will the >>> solution to this problem generalize to all properties for all >>> objects? >>> >>> 2. Has someone compiled a FAQ from this mailing list and where can I >>> find it. >>> >>> Thanks >>> >>> Mark Smith ___ use-revolution mailing list use-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: 2 quick questions
Thanks Bob, I'll test that out.... Mark Smith From: use-revolution-boun...@lists.runrev.com [use-revolution-boun...@lists.runrev.com] On Behalf Of Bob Sneidar [b...@twft.com] Sent: Tuesday, June 15, 2010 10:24 PM To: How to use Revolution Subject: Re: 2 quick questions I think maybe "put the long name of this card" or "put the long id of this card" would suit you better because it is absolute. Bob Sneidar IT Manager Calvary Chapel CM Sent from iPhone On Jun 15, 2010, at 19:21, Mark Smith wrote: > HI Mark, I was all excited until I realized i didn't know where to > put it. Here is what I want to do: I want to put the number of the > current card into a field or label on the card so I know where I am > in the stack. Where would I put this line > > put the number of this cd into field cardnumberfield > > thanks > > -- M > > Mark Smith > > > From: use-revolution-boun...@lists.runrev.com [use-revolution- > boun...@lists.runrev.com] On Behalf Of Mark Schonewille > [m.schonewi...@economy-x-talk.com] > Sent: Tuesday, June 15, 2010 9:33 AM > To: How to use Revolution > Subject: Re: 2 quick questions > > Mark, > > put the number of this cd > put the number of the current cd > put the number of this cd of stack "Foo" > put the number of the current cd of stack "Foo" > > I think there is a FAQ on the RunRev homepage but probably it isn't > what you're looking for. I'd be happy to host a FAQ on runrev.info if > we (the list) can agree on what should be included in such a FAQ. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > > Subscribe to the Economy-x-Talk newsletter at http://qurl.tk/cj > Download Clipboard Link http://clipboardlink.economy-x-talk.com and > share the clipboard of your computer over the local network. > > On 15 jun 2010, at 15:53, Mark Smith wrote: > >> 1. How can I get the number of the current card (and put it into a >> field or variable)? >> Related: since I am reading a property from an object will the >> solution to this problem generalize to all properties for all >> objects? >> >> 2. Has someone compiled a FAQ from this mailing list and where can I >> find it. >> >> Thanks >> >> >> >> Mark Smith > > > ___ > use-revolution mailing list > use-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 ___ use-revolution mailing list use-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: 2 quick questions
Thanks Terry (and Mark)... what a great list. I can go to bed and sleep tonight knowing it will all come together (and run) tomorrow. Mark Smith From: use-revolution-boun...@lists.runrev.com [use-revolution-boun...@lists.runrev.com] On Behalf Of Terry Judd [...@unimelb.edu.au] Sent: Tuesday, June 15, 2010 9:32 PM To: How to use Revolution Subject: Re: 2 quick questions Mark - put the following handler in the stack script on preopencard if there is a fld "cardNumberField" then put the number of this cd into fld "cardNumberField" end if end preopencard If the target field is definitely on all the cards then you'd just need on preopencard put the number of this cd into fld "cardNumberField" end preopencard HTH, Terry... On 16/06/10 12:21 PM, "Mark Smith" wrote: > HI Mark, I was all excited until I realized i didn't know where to put it. > Here is what I want to do: I want to put the number of the current card into a > field or label on the card so I know where I am in the stack. Where would I > put this line > > put the number of this cd into field cardnumberfield > > thanks > > -- M > > Mark Smith > > > From: use-revolution-boun...@lists.runrev.com > [use-revolution-boun...@lists.runrev.com] On Behalf Of Mark Schonewille > [m.schonewi...@economy-x-talk.com] > Sent: Tuesday, June 15, 2010 9:33 AM > To: How to use Revolution > Subject: Re: 2 quick questions > > Mark, > > put the number of this cd > put the number of the current cd > put the number of this cd of stack "Foo" > put the number of the current cd of stack "Foo" > > I think there is a FAQ on the RunRev homepage but probably it isn't > what you're looking for. I'd be happy to host a FAQ on runrev.info if > we (the list) can agree on what should be included in such a FAQ. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > > Subscribe to the Economy-x-Talk newsletter at http://qurl.tk/cj > Download Clipboard Link http://clipboardlink.economy-x-talk.com and > share the clipboard of your computer over the local network. > > On 15 jun 2010, at 15:53, Mark Smith wrote: > >> 1. How can I get the number of the current card (and put it into a >> field or variable)? >>Related: since I am reading a property from an object will the >> solution to this problem generalize to all properties for all objects? >> >> 2. Has someone compiled a FAQ from this mailing list and where can I >> find it. >> >> Thanks >> >> >> >> Mark Smith > > > ___ > use-revolution mailing list > use-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 -- Dr Terry Judd | Senior Lecturer in Medical Education Medical Education Unit Faculty of Medicine, Dentistry & Health Sciences The University of Melbourne ___ use-revolution mailing list use-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: 2 quick questions
HI Mark, I was all excited until I realized i didn't know where to put it. Here is what I want to do: I want to put the number of the current card into a field or label on the card so I know where I am in the stack. Where would I put this line put the number of this cd into field cardnumberfield thanks -- M Mark Smith From: use-revolution-boun...@lists.runrev.com [use-revolution-boun...@lists.runrev.com] On Behalf Of Mark Schonewille [m.schonewi...@economy-x-talk.com] Sent: Tuesday, June 15, 2010 9:33 AM To: How to use Revolution Subject: Re: 2 quick questions Mark, put the number of this cd put the number of the current cd put the number of this cd of stack "Foo" put the number of the current cd of stack "Foo" I think there is a FAQ on the RunRev homepage but probably it isn't what you're looking for. I'd be happy to host a FAQ on runrev.info if we (the list) can agree on what should be included in such a FAQ. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer Subscribe to the Economy-x-Talk newsletter at http://qurl.tk/cj Download Clipboard Link http://clipboardlink.economy-x-talk.com and share the clipboard of your computer over the local network. On 15 jun 2010, at 15:53, Mark Smith wrote: > 1. How can I get the number of the current card (and put it into a > field or variable)? >Related: since I am reading a property from an object will the > solution to this problem generalize to all properties for all objects? > > 2. Has someone compiled a FAQ from this mailing list and where can I > find it. > > Thanks > > > > Mark Smith ___ use-revolution mailing list use-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: 2 quick questions
Thanks Mark. Am I allowed to continue asking dumb questions (always the best sort for a FAQ since then you can just point the annoying offender to the FAQ :-) Is there any reason for choosing "this" over the "the current" or is just personal preference? Regards, Mark Smith From: use-revolution-boun...@lists.runrev.com [use-revolution-boun...@lists.runrev.com] On Behalf Of Mark Schonewille [m.schonewi...@economy-x-talk.com] Sent: Tuesday, June 15, 2010 9:33 AM To: How to use Revolution Subject: Re: 2 quick questions Mark, put the number of this cd put the number of the current cd put the number of this cd of stack "Foo" put the number of the current cd of stack "Foo" I think there is a FAQ on the RunRev homepage but probably it isn't what you're looking for. I'd be happy to host a FAQ on runrev.info if we (the list) can agree on what should be included in such a FAQ. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer Subscribe to the Economy-x-Talk newsletter at http://qurl.tk/cj Download Clipboard Link http://clipboardlink.economy-x-talk.com and share the clipboard of your computer over the local network. On 15 jun 2010, at 15:53, Mark Smith wrote: > 1. How can I get the number of the current card (and put it into a > field or variable)? >Related: since I am reading a property from an object will the > solution to this problem generalize to all properties for all objects? > > 2. Has someone compiled a FAQ from this mailing list and where can I > find it. > > Thanks > > > > Mark Smith ___ use-revolution mailing list use-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
2 quick questions
1. How can I get the number of the current card (and put it into a field or variable)? Related: since I am reading a property from an object will the solution to this problem generalize to all properties for all objects? 2. Has someone compiled a FAQ from this mailing list and where can I find it. Thanks Mark Smith ___ use-revolution mailing list use-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: Change Field Property in All Fields of a Stack
Craig, sounds like an interesting technique. Is there any example code around that demonstrates this? Mark Smith From: use-revolution-boun...@lists.runrev.com [use-revolution-boun...@lists.runrev.com] On Behalf Of dunb...@aol.com [dunb...@aol.com] Sent: Tuesday, June 15, 2010 8:15 AM To: use-revolution@lists.runrev.com Subject: Re: Change Field Property in All Fields of a Stack I think you will have to script this. Do you need help? 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: runrev community : how many licenses? How many users? How many developpers?
Even with glasses I couldn't see the edit button. Help!! Mark Smith Associate Director, Repository Manitoba Centre for Health Policy University of Manitoba 727 McDermot Ave Room 408 Winnipeg, Manitoba R3E 3P5 (204) 789-3264 http://umanitoba.ca/faculties/medicine/units/mchp From: use-revolution-boun...@lists.runrev.com [use-revolution-boun...@lists.runrev.com] On Behalf Of Jim Kanter [...@d-film.com] Sent: Wednesday, June 09, 2010 2:43 PM To: How to use Revolution Subject: Re: runrev community : how many licenses? How many users? How many developpers? Click on the edit button, zoom in on your location and plant a flag. On Wed, Jun 9, 2010 at 2:59 PM, wrote: > Cool. How does one get on the map? > > 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
revMobile and SDK
I have a question for the group. I've been reading about the recent changes to the Apple SDK for the last couple of hours (here and on Appleinsider) and one thing I don't understand is how Apple can actually do this? Is it only for products that are intended to be marketed through the app store? If you choose to market your product through some other means do they still have any say over how you develop your application? Seems nuts or illegal to me. -- Mark___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: postgresql question
It sounds like something that should probably be handled in the revDB library. Best, Mark On 1 Nov 2009, at 01:38, Mark Wieder wrote: Mark- Saturday, October 31, 2009, 6:23:35 PM, you wrote: Mark, this thread may help (I'm pretty sure I got details wrong in the last post) http://archives.postgresql.org/pgsql-general/2002-06/msg00484.php Hmmm. Thanks. I had previously come across this one as well. http://www.postgresql.org/docs/8.0/interactive/sql-createuser.html So it looks like revOpenDatabase() isn't going to work unless I can somehow create a callback to catch the salt value, create the md5 value, and then call revOpenDatabase again. -- -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 ___ use-revolution mailing list use-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: postgresql question
Mark, this thread may help (I'm pretty sure I got details wrong in the last post) http://archives.postgresql.org/pgsql-general/2002-06/msg00484.php Best, Mark Smith On 1 Nov 2009, at 01:09, Mark Wieder wrote: Mark- Saturday, October 31, 2009, 5:41:04 PM, you wrote: Mark, I haven't done it either, but I read up on it a while ago - I think it involves receiving 2 salt values from the server, and is a two-step process: We have 2 salt values, salt1 and salt 2 step : put md5digest(salt1 & username & password) into tTemp put md5digest(salt2 & tTemp) into tStringtosend I can't remember if tStringtosend should be hex or base64 encoded. You may also need to prepend "md5" to tStringtosend. Thanks. Yeah, I read about prepending the "md5", but that didn't solve the problem by itself. And I'm catenating the name and password (I believe the password comes first, but since it's not working I wouldn't swear to it). If you remember where you read about the salt values, I'd love to see a url - I'll go digging myself. -- -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 ___ use-revolution mailing list use-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: postgresql question
Mark, I haven't done it either, but I read up on it a while ago - I think it involves receiving 2 salt values from the server, and is a two-step process: We have 2 salt values, salt1 and salt 2 step : put md5digest(salt1 & username & password) into tTemp put md5digest(salt2 & tTemp) into tStringtosend I can't remember if tStringtosend should be hex or base64 encoded. You may also need to prepend "md5" to tStringtosend. Best, Mark Smith On 31 Oct 2009, at 23:35, Mark Wieder wrote: All- Has anyone been able to connect to a postgresql database using md5 authentication? Since this is my first time trying this, I'm pretty sure the problem is on my end, but I figured I'd better ask before investing any more time on 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 ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: [ANN]My stuff is moving...
The new library is quite a lot more developed. One big difference is that it uses curl (via libRevCurl), rather than it's own http/socket routines. That may or may not be a problem in any given application - for instance, Windows doesn't have curl as part of it's normal installation, while OS X and most Linuxes do (curl is available for windows, though). One advantage of curl wrt to Rev and AWS is that it makes it possible to run transfers (potentially a lot) in parallell. The reason I've put the new AWS libs up there is that I was waiting until I'd done some decent docs, and though I still intend to, I don't think I'm going to have time to do it very soon, so I thought I'd put them up there for those who don't mind figuring out a certain amount of stuff for themselves. I'll certainly be able to answer queries via email or on the list. But docs are hard! Best, Mark Smith On 30 Oct 2009, at 21:59, Martin Koob wrote: Mark Smith writes: I've moved my revolution download page from dreamhost to on-rev: http://marksmith.on-rev.com/revstuff/index.html The Dreamhost page will stay up for a while, but I don't know how long. Best, Mark Smith _ Hi Mark. I just recently tried your libS3 for a project I am planning. I had been reading up on S3 trying to figure out how rev could work with it, I thought it was beyond my capabilities till I found your library. It was amazing. Using your sample app I was uploading and downloading to my buckets in minutes. I noticed on your new site you have another library libAws which includes S3. Would you recommend using this library rather than libS3? Martin Koob ___ use-revolution mailing list use-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
[ANN]My stuff is moving...
I've moved my revolution download page from dreamhost to on-rev: http://marksmith.on-rev.com/revstuff/index.html The Dreamhost page will stay up for a while, but I don't know how long. Best, Mark Smith ___ use-revolution mailing list use-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: tRev colorization
Well, after my one day of actually using tRev, I'll certainly attest to my delight, despite not liking psychedelic text :), and I've barely scratched the surface. One possible bug to report, though - when I click the close button on the tRev editor, it doesn't close, even though I have "keep editor visible" unchecked in the prefs. No biggie, mind you, since command H hides it like any other app. I'm on Mac OS 10.4.11 and Rev Enterprise 4.0. tRev is a wonderful thing, so thanks, Jerry! Best, Mark Smith On 26 Oct 2009, at 17:36, Jerry Daniels wrote: With the above amendment to your question/assertion as to our best- in-class support, ultimately the market will decide on that, as you know. Presently, MJ and I are on a mission. We're looking for 1,000 people who want to be thrilled with our tools. Right now we have 203. That said, we are open for business: tRev info: http://reveditor.com Buy tRev: http://runrev.com/products/related-software/trev-editor/ Best, Jerry Daniels The latest tRev Video: http://reveditor.com/feature-friday-column-buttons-better-clairvoy ___ use-revolution mailing list use-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: tRev colorization
Jerry, fantastic! The water cannon of software! Best, Mark Smith On 26 Oct 2009, at 16:04, Jerry Daniels wrote: This Friday you will have some relief from the rioting. Best, Jerry Daniels Watch tRev - The Movie http://reveditor.com/trev-the-movie On Oct 26, 2009, at 8:38 AM, Mark Smith wrote: Thanks, Jerry. What are the chances of making it optional in a future release? I find text that is a riot of colour very hard to see as text at all... Best, Mark Smith On 26 Oct 2009, at 13:13, Jerry Daniels wrote: tRev's script colorization is always on. Best, Jerry Daniels Watch tRev - The Movie http://reveditor.com/trev-the-movie ___ use-revolution mailing list use-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: tRev colorization
Thanks, Jerry. What are the chances of making it optional in a future release? I find text that is a riot of colour very hard to see as text at all... Best, Mark Smith On 26 Oct 2009, at 13:13, Jerry Daniels wrote: tRev's script colorization is always on. Best, Jerry Daniels Watch tRev - The Movie http://reveditor.com/trev-the-movie ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
tRev colorization
Anyone know if it's possible to run tRev without script colorization? I just got it, and it seems really, really good, but I can't seem to stop the colorization of scripts. Jerry, anyone? Best, Mark Smith ___ use-revolution mailing list use-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]Grace Hopper
There's a nice article about Grace Hopper here: http://www.i-programmer.info/history/8-people/294-the-mother-of- cobol.html It shows an example of the verbose language for her B-0 compiler: The language was targeted at business use and Hopper even felt that arithmetic expressions were too complicated for the average user and introduced a very wordy language - for example Add One To Total rather than Total=Total+1 Strangely familiar Best, Mark Smith ___ use-revolution mailing list use-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] Figuring Out XML Error?
Inserting Dave's DOCTYPE declarations (2nd version) gets the file a clean bill of health from xml nanny (http://www.versiontracker.com/ dyn/moreinfo/macosx/27761). Best, Mark Smith ___ use-revolution mailing list use-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: Telnet Shell Help
Stewart, I think you could do telnet over a socket connection. See "open socket", "write to socket" and friends in the docs. Best, Mark Smith On 3 Oct 2009, at 22:28, RevList wrote: I need to write a very small utility that uses Telnet so that I can connect to a server on port 333 and login with credentials and issue a specified command recognized by the server. I can do this manually as follows from the command line on Windows or Terminal on OS X Telnet 192.168.168.19 333 this returns +0 and waits for me to enter my userID, so I enter MyLoginID this returns +0 again and waits for me to enter my password, so I enter MyPassword and this again returns a +0 and another +0 on a new line indicating a successful entry. Now all I need to do is enter my command which looks like this Put User someuserID 1271 0 newpw and this confirms success with a +0 I then enter q and I am out of Telnet So what I would like to do is write a simple Rev utility that will pass all of the information, but all I can seem to do is to issue the first line and have no opportunity to enter the login credentials and my special script As soon as I issue Shell("Telnet 192.168.168.19 333") it issues the telnet command and opens the connection on port 333, but immediately after that closes the connection and returns "Connection closed by foreign host" Can anyone help me here? How can I keep the telnet session open so that I can issue the remaining commands? Thanks in advance Stewart -- -- This message and any attachments are intended only for the use of the individual to whom they are addressed and it may contain information that is privileged or confidential. If you have received this communication by mistake, please notify us immediately. -- -- ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
[ANN]libRevFreeDb update
I've only just started getting the list mails through again, so I don't know if my previous announcement made it, but I've made a library for getting the cd title, artist, track titles and (sometimes) year of a cd from the FreeDB system. It now works on windows as well as macs, though is limited on windows (by the MCISendString mechanism, I think) to CDs in drive D, and to audio only CDs - no mixed mode Cds, sadly. It includes a simple demo stack, and a pdf of some usage notes. It's here: http://futsoft.futilism.com/revolutionstuff.html All comments cheerfully recieved.... Best, Mark Smith ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
[ANN]libRevFreeDB
I've made a library to get CD track data from FreeDB. It currently uses the pList that OS X builds for each inserted CD to get the info it needs to query FreeDB, so it's OS X only until I figure out how to get the info on Windows and Linux. It's here: http://maspub.s3.amazonaws.com/libRevFreeDb.zip It comes with a little demo stack and some notes in a pdf. As always, any comments or queries happily recieved. Best, Mark Smith ___ use-revolution mailing list use-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: Running a stack from the On-Rev server.
You can certainly install the 3.5 cgi engine on on-rev, so a script to check the folder and copy to another server can be run as a cron-job. I don't think libUrl is part of the cgi engine, though I'm pretty sure you could install it with the engine, and "start using" it in your command-line script. Otherwise, curl would probably be the way to go, though there's also the ftp command-line (which I haven't used, so don't know much about). Best, Mark On 23 Sep 2009, at 23:46, Sarah Reichelt wrote: I think there would be a way to run the rev script from the command line (and hence as a cron job) if you wanted to do that - but I haven't tried that yet (might need to wait for the cgi version of Rev to be on on-Rev). (Actually - if anyone knows the answer to that, I'd be grateful to hear it :-) I've just run into the need for this too. My first thought is to investigate if "curl" can do what we need. But I too would be grateful for any insights. 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: Changing date format in CalendarWidget100
Charles, if tDate is 2009,9,10 - try something like this: put line (item 2 of tDate) of the monthnames && item 3 of tDate && item 1 of tDate into tNewDate Best, Mark Smith On 10 Sep 2009, at 17:09, Charles Szasz wrote: I thought this would be easy but it is not! I want to change the format of the date inserted in a field of an application by CalendarWidget100 to a different format. For example, change 2009,9,10 to Sept 10, 2009. I was able to change the sequence of the date format from 2009,9,10 to 9,10,2009 but changing the month from 9 to name of the month (Sept) is more complicated! Does anybody have any suggestions? -- View this message in context: http://www.nabble.com/Changing-date- format-in-CalendarWidget100-tp25385854p25385854.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
[ANN} updates to libs
I've updated libHash-Hmac to 2.3 - it now includes three crc functions: crc-32, crc-16, and crc-ccitt. Also, imed-edition (crazy name, crazy guy :-) has found problems with diacritc chars in libJson, and gave me solutions (thanks!), so libJson is updated to 1.0.4b. Both can be found here: http://futsoft.futilism.com/revolutionstuff.html Best, Mark Smith ___ use-revolution mailing list use-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: Safe place to write a file under Vista
Richard - 'the tempname' might be what you're after. ie. put the tempname into tFile -- do stuff with the file delete file tFile On my OS X machine, "put the tempname" gives this: /private/var/tmp/folders.501/TemporaryItems/tmp0 (repeated calls will increment that trailing zero) What it would be on windows, I don't know, but it will be an appropriate equivalent. Best, Mark On 2 Sep 2009, at 07:28, Richard Miller wrote: I am finding that, on some Vista machines with some user settings, it is not possible to write a file from Rev to the root C drive. Seems that Vista blocks this action. Does that sound about right? If so, where is a reliable, safe place to write a file (which will soon thereafter be deleted)? Is specialfolderpath("documents") safe? Thanks. Richard Miller ___ use-revolution mailing list use-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: Performance of RevMedia on matrix diagonalization
I saw this over on the forum (the diagonalisation takes about twenty seconds on my MacBookPro with rev enterprise), and two things occur to me. 'Arrays' in revolution are actually hash tables, so are very nice for random access to elements, but will not be as efficient for sequential access as more traditional, fixed width arrays in other languages. I suspect that this is the main speed issue with your eigen function. Secondly, I understand that all numbers in revolution (which is an un- typed language) are floats - though there may be conversions to and from integers going on in the engine. I doubt that this will have any effect on the speed of your functions, but it's probably unneccessary to write '1.0' or '1.' - simply '1' will do, I think. I think that using the a[i][j] approach instead of a[i,j] might get you maybe 10% more speed, but then you'd have to convert to a[i,j] anyway in order to use the built in matrixmultiply and transpose functions (this should be updated, I'd have thought). My maths is nowhere near good enough to suggest mathematical optimisations (which you might not want for educational purposes, anyway) and I can't see any obvious optimisations to make in the code you've written. Hopefully, someone here will be able to be more helpful, but this may be one of those things that revolution simply isn't best suited for :( Best, Mark Smith On 27 Aug 2009, at 08:16, Piero Ugliengo wrote: I am completely new to Revolution. I have downloaded the RevMedia alpha version and played a bit with it. I was impressed by how fast I was able to port a little VB6 code to RevMedia. This code diagonalizes a symmetric matrix using the Jacobi algorithm. I checked against the VB6 code and I got exactly the same results in the same number of iterations so that numerics is the same. However the RevMedia code is at least one order of magnitude slower than the VB6 one. For instance a 50x50 matrix is diagonalized in a couple of seconds in VB6 and it tooks more than a minute on RevMedia. I know that RevMedia is not meant for numerical intensive calculations; however, I would like to use it in a scientific teaching context so some power is needed. I wonder if anybody much expert than me can try the code using the most powerful Revolution Studio and if there is a clever way to deal with matrix algebra. The link to download the rev script is here: http://sites.google.com/site/pierougliengo/download-1/test.rev? attredirects=0 <http://sites.google.com/site/pierougliengo/download-1/test.rev? attredirects=0>One can set the size of the matrix in the onmouse routine. Thanks a lot _ Piero Ugliengo -- Prof. Piero Ugliengo University of Torino Dip. Chimica IFM, Via P. Giuria, 7 I-10125 Torino ITALY Phone: +39-011-670.4596 FAX: +39-011-236.4596 E-mail: piero.uglie...@unito.it Home page: http://web086.unito.it/cgi-bin/chimifm/persone.pl/Show? _id=ugliengo&sort=DEFAULT&search=&hits=70 MOLDRAW: http://www.moldraw.unito.it ___ use-revolution mailing list use-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: long FieldName to owning stackName
Scott, what's wrong with chunking? However, to get a list: function objectOwner objectId put the owner of objectId into tOwner if tOwner is not empty then put tOwner & cr & objectOwner(tOwner) after tList end if return tList end objectOwner so put objectOwner(the long id of fld 1) will show something like: group id 1008 card id 1002 stack "Untitled 1" On 25 Aug 2009, at 08:46, Scott Morrow wrote: I'm guessing that there is an elegant way of deriving the name of the owning stack when given the long name of a field. Unfortunately my current strategy feels a chunking hack. : ) Ideas? Scott Morrow Elementary Software (Now with 20% less chalk dust!) web http://elementarysoftware.com/ email sc...@elementarysoftware.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: Temporary storage of imagedata
Richard, the imagedata will tend to be a lot bigger (maybe 10x) than the compressed image file, so you probably want to store image "someimage">, and then tStoredData[1]>. The text of an image is what would be in the file - ie. image "someimage.jpg"> is the same as what you'd get from ("binfile:someimage.jpeg")>, whereas the imagedata is (I think) the actual pixels that revolution displays. Other than that, I'd think your idea would work well. If you store the text of your images in an array, then you could serialize the array with , (and maybe base64encode the result for transmission over the net). Best, Mark Smith On 24 Aug 2009, at 13:28, Richard Miller wrote: This is for a revlet application. I'm looking at various ways to temporarily store image snapshots before displaying them in a stack. The objective is to record several hundred screen shots (one per second), store them temporarily, then put the images into a new stack, one image per card, for replay. The temporary storage process needs to occur very quickly, as the user is interacting with the main stack while the recording is taking place. Each snapshot is shot with a low jpegquality (30-40), as the file size of the final group of images must be kept to a minimum so it can be transferred fairly quickly over the net. Each image is averaging 30k. 100 images is 3 mb... which will work for this application. Right now, I am just saving each snapshot to a file, then at the end of the recording process, quickly putting each image onto a card. That whole saving-to-stack process takes about 10 seconds or so, which is fine. I'm thinking it might be better/more elegant to store the imagedata of all the images into one variable (rather than to separate files), but I'm not sure how best to store this data (since it is binary and contains many lines per image). Then, at the end of the recording, I could transfer just this data over the net (stored as one binary file), then either create a display stack containing one image per card, or maybe even better, just create one card with one image "on the fly", pulling the data for each image from this data variable. Thoughts? Thanks. Richard Miller ___ use-revolution mailing list use-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: lineoffset doesn't find empty lines
I also see that lineoffset(cr & cr, tText) + 1 seems to work well. Best, Mark Smith On 16 Aug 2009, at 22:42, BNig wrote: Björnke, would -- on mouseUp pMouseBtnNo put field 1 into temp repeat while theLine > 0 put lineoffset(cr&cr,temp) into theLine if theLine > 0 then delete line theLine + 1 of temp end repeat put temp into field 1 end mouseUp --- not do it? it works for me, if I understand you correctly. regards Bernd Björnke von Gierke wrote: my main problem is that it's all based on lines. so finding the empty lines allows me to dismiss the line after it, then parse the line after that etc. (for example). Frankly there must be some way to find the number of the first occurrence of an empty line, and get a result in lines, not in chars, right? i really wish i could find it, there's just too many words in this language to find the one for my specific task ;-) On 16 Aug 2009, at 18:51, Brian Yennie wrote: offset( (the lineDelimiter)&(thelineDelimiter) ) ? -- View this message in context: http://www.nabble.com/lineoffset-doesn %27t-find-empty-lines-tp24995467p24998239.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: Groups
Steve, if you call up the object inspector for the group, there's a check button for "backgroundBehaviour", so you can choose the appropriate behaviour for your case. Also, in the Rev toolbar, there's a button "SelectGrouped". If this is hilted then you can select the individual controls in a group, otherwise, clicking on any member of the group will select the group. There are some other niceties to do with groups and parent scripts, but that's the basics. Best, Mark On 15 Aug 2009, at 18:45, Steve Jones wrote: I'm a little confused by RR's handling of backgrounds. It seems that grouping items makes them go to the background and appear on all cards in a stack. But then you can't edit the scripts of the items in that group - just the script of that group. Is there any way to have items in the background and still get to their scripts? Steve ___ use-revolution mailing list use-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: Transcript should be called Transcript
And, of course, if the new server-side stuff gets popular, lots of people will be calling it "irev". Which also sounds like some kind of priestly activity, or maybe Apple's new sermon-processor... :) Mark On 13 Aug 2009, at 17:16, Rick Harrison wrote: Someone just suggested to me that RevTalk sounds like an online forum for Reverends! LOL Just thought I'd lighten things up. Rick On Aug 13, 2009, at 12:06 PM, Richmond Mathewson wrote: ___ use-revolution mailing list use-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: password in a script
Yves, you're sending the password in the clear, so you're vulnerable to a 'man-in-the-middle' attack, whereby someone could discover the password. A scheme for avoiding this is to use what's called a "nonce" value to create an md5digest with your password. Here's roughly how it works: on the client: --generate a random 4 byte 'nonce' value repeat 4 put any byte of "0123456789abcdefghijklmnopqrstuvwxyz" after tNonce end repeat --get the md5digest of the nonce value + the password as base64 string and prepend the nonce value put tNonce & base64encode(md5digest(tNonce & tPassword) into tCryptPass --now: put "http://"; & URLEncode(userName) & ":" & URLEncode(tCryptPass) & "@www.mondomaine.com/MyFileText.txt" into fileURLToGet --on the server: --get the password from local file or whatever, put it into tPassword put byte 1 to 4 of tCryptPass into tNonce if base64encode(md5digest(tNonce & tPassword)) = byte 5 to -1 of tCryptPass then authentication passed else authentication failed end if This is not industrial strength cryptography, but a reasonably easy to implement and reasonably secure way to avoid sending your password in the clear. Best, Mark Smith ___ use-revolution mailing list use-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: Why no ScreenUp Dates
Sivakatirswami , inserting a "wait 0 millisecs with messages" just after "calcTime" might help. Sometimes loops are fast enough to get in the way of rendering the screen, and a 'wait' will give the engine enough time to update the screen. Best, Mark Smith On 12 Aug 2009, at 03:49, Sivakatirswami wrote: I have a little stack that digs some log files. it works well, but the UI is not updated until the repeat loops and handlers are all finished. It is as if I had a "lock screen" at the start (which I don't) but it acts like that. I have a message that is to be inserted into a field and a timer that should update a field on each repeat loop.. But don't see anything until it is finished, only then is the GUI is updated. perhaps the "Read from file" loop is a blocking call? global gStart local tPartials,tRevHits,tCompleted on mouseUp put empty into fld "Time" # Not happening... blocked put empty into fld "output" # Not happening... blocked put the uDigging of fld "Status" into fld "Status" # Not happening... blocked set the cursor to busy put 0 into tPartials put 0 into tRevHits put 0 into tCompleted put ticks() into gStart repeat for each line y in fld "path" put y & cr after tOutput open file y for read put 2 into tStep put 1000 into tChunkSize put 1 & cr into tAccessLogFileChunk repeat until tAccessLogFileChunk is empty read from file y for tChunkSize lines put it into tAccessLogFileChunk put processLogs(tAccessLogFileChunk) & cr after tOutput calcTime # Not happening... blocked end repeat close file y end repeat repeat 5 times replace (cr&cr) with cr in tOutput end repeat put "Summary: " & Cr & "Downloaded with Revolution HT Navigator: " & tRevHits & cr into tSummary put "Complete Downloads via HT site: " & (tCompleted - tRevHits) & cr after tSummary put tSummary & cr & "_" & cr before tOutput # now all fields are updated: calcTime put tOutput into fld "output" put the uFinished of fld "Status" into fld "Status" end mouseUp function processLogs tAccessLogFileChunk put empty into tFoundLines repeat for each line x in tAccessLogFileChunk if x contains fld "SearchString" then put x into z if z contains "Revolution" then add 1 to tRevHits put ("1.1""e&" 200 ") into tCompleteCode put ("1.1""e&" 206 ") into tPartialCode if z contains tCompleteCode then add 1 to tCompleted if z contains tPartialCode then add 1 to tPartials put empty into z put x & cr after tFoundLInes end if end repeat return tFoundLines End processLogs Stack script has: global gStart on openStack put the uIntro of fld "Status" into fld "Status" end openStack on calcTime put ticks()-gStart into tTicks if tTicks < 60 then put tTicks & " ticks" into fld "time" else put trunc (tTicks/60) into tSeconds put trunc(tSeconds/60) & " min. " & ( tSeconds mod 60) & " sec." into fld "time" end if end calcTime ___ use-revolution mailing list use-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: Print to PDF?
Also, "filter theText without empty" will do the same job. best, Mark Smith On 7 Aug 2009, at 21:57, François Chaplais wrote: Le 7 août 09 à 22:45, Mark Schonewille a écrit : What about repeat until cr & cr is not in theText replace (cr & cr) with cr in theText end repeat -- Best regards, Mark Schonewille yes, this does it. cheers François ___ use-revolution mailing list use-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: Decrypt problem
Steve, you need to specify whether the key is a "password" or a "key" encrypt myRawData using blowfish with key (theKey) or encrypt myRawData using blowfish with password (theKey) The main difference, as I understand it, is that if you use "key", then the key must be the exact length specified for the used cipher (128 bits, for blowfish), so you probably want to use "password". The same goes for the decryption as well. Best, Mark Smith On 1 Aug 2009, at 06:06, stevex64 wrote: Hi all, I have .csv files that I encrypt with one little app that only encrypts. It appears to encrypt with no problem. The key is hard-coded in the app. I have another app that needs to decrypt the .csv files. I have the same key hard-coded into this app. But when it tries to decrypt, it gets this error: error:0606506D:digital envelope routines:EVP_DecryptFinal:wrong final block length The encrypt code is like this: put "a1b2c3d4e5f6" into theKey encrypt myRawData using blowfish with (theKey) put the result into rslt if rslt is not empty then beep answer error rslt else put it into mySafeData end if and the decrypt code like this: put "a1b2c3d4e5f6" into myK decrypt fld "fldDataT" of grp "backgroundItems" of card startCard using "blowfish" with (myK) put the result into rslt if rslt is not empty then beep answer error rslt else put it into fld "fldDataT" of grp "backgroundItems" of card startCard end if Any thoughts? Thanks, Steve -- View this message in context: http://www.nabble.com/Decrypt-problem- tp24766119p24766119.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: Uploading a reblet to the web via Freeway Pro
Stephan and Pierre, I just found that you can embed a revlet in a page using Freeway - you need to create a "markup item" and set it's content to the html generated by rev when you 'save as standalone'. If you just copy and paste from the line that says: up to the line that says then it should work. Best, Mark On 28 Jul 2009, at 17:58, Pierre Sahores wrote: Stephan, Freeway Pro is a great tool i own and use too but it's not designed to handle the revlet upload in the needed way (sticked as a simple url binded media, alike images or movies inside the resource directory can't do the trick). You will get what you expect in using, in betwin others, the free and powerfull CyberDuck FTP client instead and don't worry, the revlet will not be erased the next time you will update the part of the site handled by Freeway. Say Revlet (Reblet relate to an interesting tool too but Rev has no lots to do with it... ;-) Let me know if this helped. Best Regards, Pierre -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com Le 28 juil. 09 à 17:44, stgoldb...@aol.com a écrit : I've successfully gotten a stack to show up in Safari in test mode with webmedia. Navigation between cards is quick, but any script with RevGoURL does not work. In addition, on attempting to upload the stack to my website using Freeway Pro (the development tool I used to create the website), the stack does not show up; instead, I get a request to use the plugin, which I cannot find. Any suggestions? Great potential for the web program, but still some unanswered questions. Thanks. Stephen Goldberg www.medmaster.net ** An Excellent Credit Score is 750. See Yours in Just 2 Easy Steps! (http://pr.atwola.com/promoclk/100126575x1222377107x1201454434/aol? redir=http://www.freecreditreport.com/pm/default.aspx?sc=668072&; hmpgID=62&bcd=JulyExcfooterNO62) ___ use-revolution mailing list use-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: Any thoughts on speed limitations of Revlet?
Also here, on 2.2Ghz intel PB/Safari...apart from the first shot when the plug-in is first loaded. Best, Mark On 27 Jul 2009, at 00:28, stephen barncard wrote: NINE BALL looks and works great here. Mac G5 dual 2.5 ghzAwesome ballistics and graphics. - Stephen Barncard San Francisco http://barncard.com 2009/7/26 James Hurley Unfortunately, if Richard is right about the bumpy behavior being "natural by-product of running inside the browser" , it does not look good for porting games to a revlet. Take a look at Nine Ball on the web: http://jamesphurley.on-rev.com/NineBall/test.html Not good at all. Jim Hurley ___ use-revolution mailing list use-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: Wanted: a clue for using encrypt with DES
Ben, have you looked at the output of "the ciphernames"? There are quite a few 'des' variants, are you sure you're using the right one? Also, I'd stick with the "with password" format, unless you know how the other side is padding (if they are). Best, Mark On 20 Jul 2009, at 20:00, Ben Rubinstein wrote: I'm trying to implement a protocol which uses DES encryption to send a password across the network. And I know nothing about encryption. In the protocol I'm working with, the approach is that one side sends a random 16-byte "challenge"; the other end encrypts this data "with DES using the password as key", and sends the 16 byte encrypted result back to the server. I captured this exchange between two existing apps that implement the protocol, ie I got the 16 byte challenge, and the 16 byte response (and of course I already know the password). So now I'm attempting to implement code in Rev that will generate the same 16 byte response, given that 16 byte challenge and the password. My first attempt: encrypt tChallenge using "des" with password tPassword This returned 16 bytes, but they were the wrong ones. I went back to the documentation and saw that it said "using the password as key"; my second attempt therefore: encrypt tChallenge using "des" with key tPassword This time I get an error "invalid keystring for specified keysize". I saw that "the ciphernames" tells me the default key length for DES is 64 bits. My password is four characters. I changed my code to pad the password to eight bytes, using numtochar(0). Now I didn't get an error, but I get the wrong byte sequence back. Just for fun, I tried spaces instead of zero bytes for the padding; different data, still wrong. So then I decided that while I'd like to understand this, it was an unnecessary distraction; and changed the password to be exactly eight characters, and captured a new challenge and response. Feeding this to the script, the first byte of the Rev-calculated response (possibly the first 12 bits depending on endian issues) matches the correct response, but perhaps that's just coincidence. Can someone kindly point me in the right direction? Have I just misunderstood something simple? TIA, Ben ___ use-revolution mailing list use-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: Timed User Input
Rick, the 'send-in-time' could work like this: on runTimer pTimeLeft if pTimeLeft is a number and pTimeLeft > 1 then subtract 1 from pTimeLeft put pTimeLeft into fld "timeLeft" send "runTimer pTimeLeft" to me in 1 second end if end runTimer where, if you want to allow 30 seconds, you'd start the timer with runTimer 30 it will then run down to 0 and stop, allowing everything else to keep running in the meantime. In this case, I've imagined a field called "timeLeft" that shows the time left, and you could check that to see when time's up. Best, Mark On 17 Jul 2009, at 16:31, Rick Harrison wrote: Hi Marc, No, I'm not using "with messages". That may be the solution! I'll give that a try. Thanks! Rick On Jul 17, 2009, at 11:26 AM, Marc Siskin wrote: Rick, Are you using the "with messages" modifier in your timing loop? (e.g. wait 5 seconds with messages) This keeps the timer running and allows you to check for input, button clicks, etc. Marc On Jul 17, 2009, at 11:19 AM, Rick Harrison wrote: Hi Mark, I was using a repeat loop. Hmm.. send-in-time. What is that? I'm not using a dialog such as answer or ask. I was going to use a field for input, but have been leaning more towards a multiple choice solution with "mouseWithin", or anything else which might work. Rick On Jul 17, 2009, at 11:01 AM, Mark Smith wrote: Rick, how have you done your timer - a repeat loop or a 'send-in- time' ? Best, Mark On 17 Jul 2009, at 15:48, Rick Harrison wrote: I'm trying to set up a guessing game where the user has to race against a timer to give an answer before the time runs out. The problem is that when the user is asked for input, the timer stops due to the interrupt. Or the timer keeps running, and doesn't allow any user input. To work correctly the timer should still be counting down as the user is trying to answer the question. Any thoughts, ideas, or suggestions are greatly appreciated. Thanks, Rick ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution __ Rick Harrison You can buy my $10 music album "Funny Time Machine" digital CD on the iTunes Store Now! To visit the iTunes Store now to listen to samples of my CD please click on the following link. (Please note you must have iTunes installed on your computer for this link to work.) http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum? playListId=213668290 ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution --- Marc Siskin Manager, Modern Language Resource Center Carnegie Mellon University msis...@andrew.cmu.edu ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution __ Rick Harrison You can buy my $10 music album "Funny Time Machine" digital CD on the iTunes Store Now! To visit the iTunes Store now to listen to samples of my CD please click on the following link. (Please note you must have iTunes installed on your computer for this link to work.) http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum? playListId=213668290 ___ use-revolution mailing list use-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: Timed User Input
Rick, how have you done your timer - a repeat loop or a 'send-in-time' ? Best, Mark On 17 Jul 2009, at 15:48, Rick Harrison wrote: I'm trying to set up a guessing game where the user has to race against a timer to give an answer before the time runs out. The problem is that when the user is asked for input, the timer stops due to the interrupt. Or the timer keeps running, and doesn't allow any user input. To work correctly the timer should still be counting down as the user is trying to answer the question. Any thoughts, ideas, or suggestions are greatly appreciated. Thanks, Rick ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-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: filter not working
Paul, the filter command may need some wildcards, otherwise it will filter out any lines which contain more than just the filter expression, so: filter pSnips with "*" & tThing & "*" Best, Mark On 3 Jul 2009, at 20:39, pwf wrote: I am having a problem with 'filter'. I'm passing this tab & return delimited data (as an array)... *SAMPLE*7/2/09 2 We don't ship kitties to Hong Kong No dogs 7/2/09 1 we don't do dogs This one7/2/09 3 This one is that oneAnd this one has paragraphs in the field. using this command put justThese(gSnips,1) into tList to this function: function justThese pSnips,pWhich combine pSnips by return and tab put tab&pWhich&tab into tThing filter pSnips with tThing split pSnips by return and tab return the keys of pSnips end justThese which always returns empty because the filter command always puts empty back into the variable. What am I missing? I confirmed that the error still occurs without the numToChar(8) (which apparently won't show up here), which I'm using to swap out CRs in that third record. ___ use-revolution mailing list use-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: Rev cannot open my jpeg ! - and some serious thinking
Sarah, curl is certainly available for windows, but AFAIK is not part of the standard installation - it can be found here: http://curl.haxx.se/download.html Best, Mark On 2 Jul 2009, at 02:10, Sarah Reichelt wrote: The curl method works beautifully on my Mac, but is curl available on Windows computers? ___ use-revolution mailing list use-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: Rev cannot open my jpeg ! - and some serious thinking
I see what you mean, if the height doesn't matter. Perhaps one could apply some sort of guess about what height/width ratios are likely/ unlikely, and go from there? Best, Mark On 1 Jul 2009, at 11:00, Ian Wood wrote: Pixel size is needed for getting around this bug, not file size... Ian On 1 Jul 2009, at 10:42, Mark Smith wrote: Sarah, to get the size of what will be returned by a "get url", you need to issue an HTTP HEAD request, which will return the http headers that would be returned from a GET request, but without the actual content. Something like this in a button script: ___ use-revolution mailing list use-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: Rev cannot open my jpeg ! - and some serious thinking
In fact, I'd recommend the curl method, as it seems like the libUrl method doesn't seem to get all the headers, anyway. For this url: "http://marksmith.on-rev.com/msbass/instruments.html"; the liburl method got: HTTP/1.1 200 OK Date: Wed, 01 Jul 2009 09:46:17 GMT Server: Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Connection: close Content-Type: text/html;charset=ISO-8859-1 whereas the curl method got: HTTP/1.1 200 OK Date: Wed, 01 Jul 2009 09:49:05 GMT Server: Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Last-Modified: Fri, 17 Apr 2009 14:22:33 GMT ETag: "c0c0087-2150-e956bc40" Accept-Ranges: bytes Content-Length: 8528 Content-Type: text/html Dave (Cragg) - is there a better way to do a HEAD request using libUrl? Best, Mark On 1 Jul 2009, at 10:42, Mark Smith wrote: Sometimes this seems to take quite a few seconds, and I don't know why (I think libUrl doesn't like non-GET/POST requests), but if you have curl available, ___ use-revolution mailing list use-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: Rev cannot open my jpeg ! - and some serious thinking
Sarah, to get the size of what will be returned by a "get url", you need to issue an HTTP HEAD request, which will return the http headers that would be returned from a GET request, but without the actual content. Something like this in a button script: on mouseUp put "http://futsoft.futilism.com/revolutionstuff.html"; into tUrl put urlHead(tUrl) end mouseUp function urlHead pUrl set the itemdelimiter to "/" put "HEAD /" && item 4 to -1 of pUrl && "HTTP/1.1" & cr into tHeads put "Host:" && item 3 of pUrl & cr after tHeads put "Accept: */*" after tHeads libUrlSetCustomHttpHeaders tHeads get url pUrl return libUrlLastRhHeaders() end urlHead should return something like: HTTP/1.1 200 OK Date: Wed, 01 Jul 2009 09:30:23 GMT Server: Apache Last-Modified: Sun, 26 Apr 2009 21:55:28 GMT ETag: "32224e1-19ca-49aab400" Accept-Ranges: bytes Content-Length: 6602 Vary: Accept-Encoding Connection: close Content-Type: text/html where the "Content-Length" line is the size in bytes of the content. Sometimes this seems to take quite a few seconds, and I don't know why (I think libUrl doesn't like non-GET/POST requests), but if you have curl available, you can do this: get shell("curl -s -I " && quote & tUrl & quote) -- that '-I' is an uppercase 'I' for India which will give you the same thing, without any delay. Best, Mark On 1 Jul 2009, at 09:07, Sarah Reichelt wrote: With regard to Wikipedia supplying enormous images, does anyone know a method for determining the size of a download before it starts? Once the download has begun the URLStatus gives the total size, but it would be really useful to get this before starting. I guess I can see whether I can get a directory listing but I doubt that would be permitted. The only other option I can think of is to start downloading invisibly, and stop after the first status report, suing that data to see whether the incoming image file is too large. ___ use-revolution mailing list use-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: export to text file in UTF8 format?
Klaus, I have these two functions in my library for this: function utf8encode pString return unidecode(uniencode(pString),"UTF8") end utf8encode - function utf8decode pString return unidecode(uniencode(pString,"UTF8")) end utf8decode - Best, Mark On 30 Jun 2009, at 11:00, kl...@major.on-rev.com wrote: Hi freinds, I need a little help. I am generating a XML file and need to save it to disk in UTF8 format: ... Since uniencode/unidecode etc. is still a mistery to me I need a little advice on how to convert my variable holding the complete xml text to UTF8 before writing to disk (binfile! of course). The docs are not much help here... Thanks a lot in advance! Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-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: Inefficient code
On 26 Jun 2009, at 23:07, Richard Gaskin wrote: Ditto what the others have said about the progress bar. Those updates prompt so many layers of OS rendering code that they take quite a toll. I went to a mod solution with one of my projects and it gave me an order of magnitude speed boost. But I have a question about the algorithm's logic: if c is initialized to 0 but the data in idatalpha is traversed starting with the first character, wouldn't the comparison always be one character off? -- I think you're right - the first comparison would be char 1 of idataalpha to char 0 (non-existent) f idatabeta, then 2 to 1 etc. And for any benchmark junkies out there, "add 1 to c" is nearly twice as fast as "put c + 1 into c" on my machine, though it would only make a small difference even with hundreds of thousands of iterations (maybe in this case with large images). Best, Mark ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Deleting Custom Properties
Klaus, a slightly simpler way is to use the fact the "the customproperties" of an object is an array, so: put the customproperties of btn "xyz" into tArray delete variable tArray["propname"] set the customproperties of btn "xyz" to tArray Randy, it's worth looking into customPropertySets - "the customproperties" of an object is just the "current" customPopertySet of that object. Best, Mark On 25 Jun 2009, at 19:47, Klaus on-rev wrote: Hi Randy, Hi All, I've been playing with custom properties over the past several weeks for pretty much the first time. I've been able to create, fill, and empty them via script... however, I've not been to delete one via script. How is that accomplished? this is the most cumbersome thingie in the whole Rev universe :-D Fact is, you have to: ... put the customkeys of btn "xyz into cp_list put lineoffset("propname_to_delete",cp_list) into line_nr delete line line_nr of cp_list set the customkeys of btn "xyz" to cp_list ... BTW, has this ever bee bugzilla'd as an enhancement? take care, randy hengst Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: sorting advice
Nicolas, this might a good case for using a custom sort like: on mouseUp put fld 1 into tData sort lines of tData dateTime by toDate(word 2 of each) put tData end mouseUp function toDate pStr replace "." with "/" in pStr return pStr end toDate Best, Mark Smith On 19 Jun 2009, at 06:23, Nicolas Cueto wrote: Still avoiding thinking too much... Given this list (a ref-number followed by a dot-separated date): bg2334 12.21.09 bg9788 1.10.02 bg6554 11.30.11 bg8902 6.6.04 bg4021 2.29.12 bg1210 1.2.02 bg3008 12.3.09 bg5526 5.29.04 what sort-command combo would re-order it ascending by the date to become: bg1210 1.2.02 bg9788 1.10.02 bg5526 5.29.04 bg8902 6.6.04 bg3008 12.3.09 bg2334 12.21.09 bg6554 11.30.11 bg4021 2.29.12 Note that the ref-number and the date are space-separated, and I'm using "." instead of the english date's "/". Also, the date form is "month[1-12, no leading zero], day[1-31], year [00- 09, leading zero]. I'll be experimenting on my own to hit on the magic combination, but in the meantime I thought I'd post a plea since someone is very likely to reply a solution sooner than I can guess one up. Thank you. -- Nicolas Cueto ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Charset problem (Was: Re: Weather reporting in Rev)
Dom, I use these two functions in my library to deal with utf8: function utf8decode pString return unidecode(uniencode(pString,"UTF8")) end utf8decode function utf8encode pString return unidecode(uniencode(pString),"UTF8") end utf8encode They will convert to and from whatever you're local charset is. Best, Mark Smith On 18 Jun 2009, at 15:09, Dom wrote: Ken Ray wrote: I'd probably use "screen scraping" techniques; for example, my zip code is 54701, so I go to weather.com and enter my zip. That takes me to a page which is this URL: http://www.weather.com/weather/local/54701? lswe=54701&lwsa=WeatherLocalUndec lared&from=searchbox_localwx Here in France, we have a subsidiary of weather.com named meteo123.com* :-) Anyway, your technique is working -- but, as the web is coded according to the UTF-8 charset, there are some woes with the accented characters ;-> The "charset" property of a stack is read-only - and can only be "MacOS" or "ISO" (i.e. ISO 8859, Latin) Is it possible to work around this, not by hand? Will the UTF-8 charset be implemented in the future? something like "UTFTo mac" and "MacToUTF" ;-) * "http://m.meteo123.com/xhtml/cc/59270"; I preferred to take the "Mobile" version, as the code is simpler to parse ___ use-revolution mailing list use-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: Getting Mutiple files
As Björnke says, you can't do it, but what you can do is save the current default folder and then reset it when you're done: put the defaultFolder into tOldFolder set the defaultFolder to someOtherFolder put the files into tFileList set the defaultFolder to tOldFolder best, Mark On 18 Jun 2009, at 01:16, Björnke von Gierke wrote: shell() or... maybe ftp into localhost ;) other then that, there's no way, file information is exactly what the defaultfolder is for. On 18 Jun 2009, at 04:59, Hershel Fisch wrote: Hi, how can I get a list of files in a folder (without changing the defaultFolder)? Thanks, Hershel -- official ChatRev page: http://bjoernke.com/runrev/chatrev.php Chat with other RunRev developers: go stack URL "http://bjoernke.com/stacks/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: How to handle a "wait for file" situation
Scott, that certainly tallies with my experience of the "with messages" form - it's the tight polling loops that seem to be greedy. best, Mark On 9 Jun 2009, at 21:53, Scott Rossi wrote: Recently, Mark Smith wrote: Yes, I think you have to be careful with mouse stuff: on mouseDown repeat if the mouse is up then exit repeat put the mouseloc end repeat end mouseDown In my experience, the processor load is relative to the frequency of Rev's messages. Messages sent with a frequency of once a second or longer do not appear to significantly impact the processor. As message frequency increases to intervals less than one second, processor load begins to increase significantly. One interesting exception is "wait... with messages". This can effectively act as an ultra fast loop or repeat but does not appear to impact processor load (at least not according to OS X's Activity Monitor). on mouseUp wait until mouseH() > 200 with messages put "done" end mouseUp Regards, Scott Rossi Creative Director Tactile Media, Multimedia & Design ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to handle a "wait for file" situation
Yes, I think you have to be careful with mouse stuff: on mouseDown repeat if the mouse is up then exit repeat put the mouseloc end repeat end mouseDown got up to 70% cpu Best, Mark On 9 Jun 2009, at 20:25, J. Landman Gay wrote: This is an example the the type of thing Raney always got peeved about: repeat if the mouse is up then exit repeat put the mouseloc end repeat Will test some time when I can, unless you do it first. ;) -- 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: How to handle a "wait for file" situation
Not less than 0%! - I meant 1%. That would be a great trick, though, just fire up a few dozen instances of the engine all doing waits, and voila! free clock cycles:) Mark On 9 Jun 2009, at 19:56, Mark Smith wrote: I saw Revolution go up to 19% then quickly down to less than 0%. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to handle a "wait for file" situation
Jaque, I'm not sure this is right, these days. On my mac laptop I just did this: button in a new stack with a script: on mouseUp repeat 20 wait 1 second end repeat put "done" end mouseUp I then opened the Apple Activity Monitor, I could see Revolution using 12% of cpu. Back to the stack, clicked the button. I saw Revolution go up to 19% then quickly down to less than 0%. After 20 seconds, the message box appeared with "done", as expected. And I had the quicktime player playing some music while this was happening. So I can well believe that all processes that are to do with the running engine will stop during a wait, but it doesn't seem to affect anything else, and it would surely be a gigantic bug if it did, no? Best, Mark On 9 Jun 2009, at 19:06, J. Landman Gay wrote: Mark Smith wrote: Craig, you're quite right, and so is Jaque, but in this case, the script is running as a cgi on a server, so has it's own exclusive copy of the engine running it - so nothing else would be getting held up. Actually, the wait command will stop everything until the wait is done, including all background processes. That means other copies of the Rev engine will also pause until the original script's wait is done. If a bunch of these scripts are all waiting at the same time, I could see a complete lockup happening. Here's what Scott Raney said about loops like that: "This loop uses 100% of the CPU time, regardless of the speed of the processor, bringing the system to its knees, causing poor feedback for your app, and making your system unresponsive to any other processes running on it." He also mentioned: Some of the processes that can slow down or stop when a script uses this kind of processor-intensive repeat loop are: file and printer sharing, HTTP/FTP servers, network management tools, and on UNIX systems (including Mac OS X), people telnetting in from other systems. A better approach while waiting for a file to appear is to use the "send in time" syntax to continually check for the file. When it becomes available, call a second handler or enter an "else if" clause that completes the processing. -- 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: How to handle a "wait for file" situation
Craig, you're quite right, and so is Jaque, but in this case, the script is running as a cgi on a server, so has it's own exclusive copy of the engine running it - so nothing else would be getting held up. In another case, though, you might use "wait 1 second with messages", which pauses the current handler for the specified time, while allowing other stuff to happenI think there's a good tutorial somewhere on the various ways you use these different ways of waiting and sending messages and so-on, but I can't remember where...was it Dar Scott? Best, Mark On 9 Jun 2009, at 16:14, dunb...@aol.com wrote: It has been beaten (mercilessly) into me by Ms. Gay that this does just the opposite; "wait" makes everythiing wait. Craig Newman In a message dated 6/9/09 10:28:16 AM, li...@futilism.com writes: Richard, it might help with cpu efficiency to use a different wait in the loop, polling every second, let's say: repeat add 1 to count if there is a file xxx then exit repeat wait 1 second -- I'm assuming that this form of wait just idles the engine if count >= 18 then exit repeat -- ie.there's a problem end repeat ** Download the AOL Classifieds Toolbar for local deals at your fingertips. (http://toolbar.aol.com/aolclassifieds/download.html? ncid=emlcntusdown0004) ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to handle a "wait for file" situation
Richard, it might help with cpu efficiency to use a different wait in the loop, polling every second, let's say: repeat add 1 to count if there is a file xxx then exit repeat wait 1 second -- I'm assuming that this form of wait just idles the engine if count >= 18 then exit repeat -- ie.there's a problem end repeat Best, Mark On 9 Jun 2009, at 15:16, Richard Miller wrote: Not sure of the best way to handle this. I have a script that gets to a point in its processing where it needs to wait up to 18 seconds for the appearance of a file. I know I can use a simple "repeat until there is a file xxx" type of loop (exiting from the loop if the time exceeds 18 seconds), but I'm thinking there's a better way to handle this. This script is running on a cgi server and there could be numerous simultaneous scripts doing the same thing... so I want to minimize the load on the CPU. Suggestions? Thanks. Richard Miller ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How do I block the Windows keys?
William for the first part I'd do something like: on rawKeyDown pKey if pkey <> 65388 and pkey <> 65389 then pass rawKeyDown end rawKeyDown and for the second, assuming you want to show the image when clicked, on mouseUp if the controlKey is down and the commandKey is down then show img tImg end mouseUp Hope I've understood, Best, Mark On 8 Jun 2009, at 15:21, William de Smet wrote: Hi there, I am looking for a way to block the Window keys (65388 and 65389) but is doesn't work because I don't know how: on rawKeyDown theKeyNumber if theKeyNumber is 65388 then . if theKeyNumber is 65389 then . end rawKeyDown And is there a way to use both CTRL and COMMAND key at the same time? When these keys are down I want to show an image and when these keys are up again the image is hidden. Thanks! Greetings, William ___ use-revolution mailing list use-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] Customs
Richmond, as you probably know, british customs & excise have all sorts of powers that might not generally be considered consistent with a modern, democratic civil society. However, I travel a lot, and nearly always have my laptop with me, and neither I nor anyone I know has had their laptop seized by HMRC. So unless you know of some reason that they might take an unusual interest in you, you probably have nothing to worry about. Then again, they probably have the power to truss you up like a chicken and write rude words on your face with an indelible marker - being paranoid does not mean they're not out to get you :) Best, Mark On 5 Jun 2009, at 18:53, Richmond Mathewson wrote: Before I hop on the plane to the conference I am trying to find out some information about British Customs and laptops. There has been persistent rumours that customs officers can seize laptops at random from entrants to Britain and hold them for examination as long as they want. Unfortunately my wife's laptop (which is what I intend to bring to Edinburgh) contains nothing "interesting"; notwithstanding that it would be "a right pain" if it were randomly seized by customs and excise. Can anybody enlighten me on this; especially as I have been outwith the surveillance society since January. ___ use-revolution mailing list use-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: Joining 2 images
Well, a shell call to "convert" within an irev script got the dreaded "command not found" response... Also, a bit more on the templateimage in on-rev: You can and then get the correct dimensions of the referenced image file with and but , though it will be the right size, will be all nulls... I've mentioned it in the on-rev forum, so we'll see if the magicians at runrev can make such things work in on-rev. To see what I mean, go here: http://marksmith.on-rev.com/imagejoin.irev and to see the script that's doing it: http://marksmith.on-rev.com/ joinimages.inc Best, Mark On 4 May 2009, at 12:16, David Bovill wrote: 2009/5/4 Mark Smith get shell("convert img1.jpg img2.jpg +append result.jpg") As far as I can tell, magick is not installed on on-rev - I'm not sure how you'd go about installing it, as we don't seem to get shell access. Perhaps a call to on-rev support? Are you sure? Would be a strange hosting setup without a bit of magick? I'll have to email support and get my shell access sorted. Is anyone with shell access able to confirm which common command line utilities are available to us (aside from the basic unix commands) - do we have access to ./configue / make etc? ___ use-revolution mailing list use-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: Joining 2 images
Well it seems to kniow about the templateImage, because it can get it's dimensions and so on, and gets no errors - perhaps it's in the export statement - though as I say, the script runs and returns without errors... Best, Mark On 4 May 2009, at 04:13, Sarah Reichelt wrote: I would guess that since on-rev is not stack-based, you have no access to the templateImage. But this is the sort of thing I was hoping for. 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: Joining 2 images
I've nearly got it working without image magick. This works perfectly in the rev ide: function joinImages imgFile1, imgFile2 set the textdata of the templateimage to url ("binfile:" & imgFile1) put the width of the templateimage into w1 put the height of the templateimage into h1 put the imagedata of the templateimage into tid1 set the textdata of the templateimage to url ("binfile:" & imgFile2) put the width of the templateimage into w2 put the height of the templateimage into h2 put the imagedata of the templateimage into tid2 put max(h1, h2) into h3 put 0 into bytesDone1 put 0 into bytesDone2 repeat with n = 1 to h3 if n <= h1 then put byte (bytesDone1 + 1) to (bytesDone1 + (w1 * 4)) of tid1 after tid3 else repeat w1 * 4 put null after tid3 end repeat end if add w1 * 4 to bytesDone1 if n <= h2 then put byte (bytesDone2 + 1) to (bytesDone2 + (w2 * 4)) of tid2 after tid3 else repeat w2 * 4 put null after tid3 end repeat end if add w2 * 4 to bytesDone2 end repeat set the width of the templateimage to w1 + w2 set the height of the templateimage to h3 set the imageData of the templateimage to tid3 put "composite.jpg" into tFile export the templateimage to file tFile as JPEG return tFile end joinimages but all it produces on irev is a shocking pink rectangle : http:// marksmith.on-rev.com/imagejoin.irev Perhaps there's a bug to do with imageData in the irev engine. best, Mark On 4 May 2009, at 02:14, Mark Smith wrote: In fact it is easy: if you want to join two images, "img1.jpg" and 'img2.jpg" it would look like this: get shell("convert img1.jpg img2.jpg +append result.jpg") As far as I can tell, magick is not installed on on-rev - I'm not sure how you'd go about installing it, as we don't seem to get shell access. Perhaps a call to on-rev support? Best, Mark On 4 May 2009, at 01:58, Mark Smith wrote: This may be easy to do in magick: http://www.imagemagick.org/script/command-line-options.php#append Best, Mark On 4 May 2009, at 01:56, Mark Smith wrote: Sarah, others may know better, but I think you'll find this difficult to do. The way one might do this in a stack would be to import both images, then get the imageData of each, and join them up. The imageData is actually just a list of pixel values as they are rendered by rev. Typically, a jpeg or png image file does not actually contain that data, it will contain a compressed version which you can't just stick together in the same way. You may need to look into a command line tool like image magick that you can make shell calls to, either to extract the imageData or to do the whole job. Hopefully someone more knowledgable will be able to tell us I'm wrong, but that's my understanding. :( best, Mark On 4 May 2009, at 00:12, Sarah Reichelt wrote: Hi all you graphics gurus out there, I have 2 images, each 40 x 40 pixels. I want to join then side by side to end up with an image 80 x 40. Since this is for use in On-Rev, it has to work in script only, no stack or image objects can be used. I am a complete noob when it come to graphics, but I know there are people here who are experts, so if anyone has any suggestions, I would be most grateful. Thanks, 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 ___ use-revolution mailing list use-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 thi