RE: [ann] Fullscreen Public Beta
Hi all, there´s been a little trouble with the clasic version of Fullscreen. The sit archive on my server was broken, so it was impossible to import movies into the playlist. I´ve uploaded the file again and now it *should* work. Please let me know if there is any trouble with it. Regards, Malte my little app. Fullscreen is ready for Beta Testdriving on Mac Os X and Classic. (Windows to follow in July) http://www.derbrill.de/fullscreen What is it? Fullscreen is a GUI (Graphic User Interface) for Quicktime. Besides displaying a movie in its original size the program allows stepless scaling of the Playerwindow from 15% up to 100% of the actual screen resolution.Fullscreen archives your movies. The program offers compfortable management of multiple Playlists. Both Playlists and movies can be renamed. The original names of your movies on your harddisc remain unchanged of course. You may turn on looping, hide the Menubar and the dock, hide the remotecontrol to enjoy your movies in full size without needing the Pro version of Quicktime. Fullscreen is in public Beta phase for Mac Os X and Classic right now. If you want to take a look at it, please do it. :-) Send Bug-reports or feature requests to [EMAIL PROTECTED] please. PS: I want to give credits to the inventors of the directory walking script I´ve stolen (and modified) from the Metacard List. So could anyone of you please drop me a line with the names of the people that were involved please? That´ll be great. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: valentina and rev 2.0 (Jan Schenkel)
a. I open my Valentina database using RunRev's built-in database query builder; the database has several distinct tables, only one of which has a unique primary key, though the rest all have records that can be uniquely identified by field combinations. Now one thing that throws me is this: when i select the unique field in the table having such to be the primary key, and then close the database query builder (dbqb) -- when i reopen the dbqb, it almost always lists None as the primary key, unless I click on the refresh button. Is this correct behavior? Same thing happens with multi-field key definitions in the dbqb: i type for example fld 1,fld 2, fld 3, fld 4 into the dbqb, close it up, and when reopening, the primary key is listed as None until I click refresh. What is going on here? Please report this to the bugzilla bug database for the dbqm. Sounds like it should be saving the primary key. Also, I do not understand why if there is only one database open, RunRev can give me a number such as 3, 5 or 7. Why not 1? Are there some ghost databases open? This perplexes me. As Jan mentioned this in nothing to worry about. Connections and Cursor increment the same internal counter, so it you open a connection (id 1), send a query (id 2), and open another connection the id will be 3. I made a typo in the path to the database, and 1. Revolution instantly crashed; Sounds like a bug in Valentina. They fixed this for OSX. If it crashes when specifying an incorrect path to the database query builder, please bug report it against the database query builder. In general if something has not been resolved on the list please report it to ensure that it gets fixed. One of the neat things about the new system, is that it allows us to get a quick summary or all the outstanding issues, which is useful both for the developer and the bug reporter. Tuviah Snyder [EMAIL PROTECTED] http://www.runrev.com/ Runtime Revolution Limited - Software at the Speed of Thought ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to using BLOB by Rev2.0 MySQL4.1
When using MySQL and Rev2.0, which character set should be used? I tried ucs2 which is 16bit Unicode. (because Rev2.0 was 16bit unicode) It seems that however, use of ucs2 was too early also at MySQL4.1. OK for anyone who plans to use japanese or other international characters with database, I would suggest you get and set everything in UTF-8. Most databases support UTF-8, and Rev can encode/decode UTF-8 to unicode. Tuviah Snyder [EMAIL PROTECTED] http://www.runrev.com/ Runtime Revolution Limited - Software at the Speed of Thought ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
new altPlugins for Rev 2.0
I've recently updated my altPlugins Control Strip for Rev 2.0. Please note there are DIFFERENT VERSIONS for Rev 1.1 (and 1.1.1) vs Rev 2.0. Both can be found at: http://www.altuit.com/webs/altuit2/RunRev/default.htm For 2.0 users, I've added a New mainstack and Open Stack button, since they are missing from the 2.0 revMenuBar. Please register if you'd like to be notified of updates. -Chipp - Chipp Walters Altuit, inc. http://www.altuit.com http://www.chipp.com - ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Newbie
Sorry for this very basic question and if this has already been answered before in this list or in the documentation but I have 2 main stacks in the same folder and I want to launch stack A which should automatically open stack B; the 2 stacks should be visible. How can I achieve this? Thank you for your attention and sorry for my English too but I have done my best here :-) Ciao from Italy Ubaldo ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Newbie
Buon giorno dottore, (how is Lara ;-) Sorry for this very basic question and if this has already been answered before in this list or in the documentation but I have 2 main stacks in the same folder and I want to launch stack A which should automatically open stack B; the 2 stacks should be visible. How can I achieve this? Thank you for your attention and sorry for my English too but I have done my best here :-) And that is definitively OK :-) Try this: Put this into the stack script of stack A on openstack go stack B ## you can already define how the stack will be opened like: ## palette stack B, or: modal stack B, or: modeless stack B etc... ... end openstack Will open stack B immediataly after stack A has been opened. Please drop a line if you mean something else... Hope that helps... Ciao from Italy Ubaldo Arrivederci... Regards Klaus Major [EMAIL PROTECTED] www.major-k.de ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Another 2.0 bug... Help, need a work-around!!!
Title: Another 2.0 bug... Help, need a work-around!!! Tested on Windows XM and OSX: on mouseup put Bar1 into vBar create graphic vBar set the name of it to vBar set the rect of graphic vBar to 10,45,19,87 set the backgroundcolor of graphic vBar to 0,0,0 end mouseup Gives a filled rectangle during development, but these items have no fill in runtime :-( And there also seems to be a problem I havent pinned down yet, but when using polygones, in the runtime it doesnt draw the last segment, so Im missing the last line of the object... Anybody any suggestions? Regards, Ton Kuypers. (If we would get rewarded for finding bugs and posting them in the database, Id be runner up for the first time in my life for something... AND ID RATHER BE NOT!!!)
Re: Another 2.0 bug... Help, need a work-around!!!
Already solved by our friends of RR... In the IDE, the opaque of the graphic is set to true. However, in a standalone this is not set by default and is false thus not filling the rectangle. Sothere is a difference between IDE behaviour and standalones... Not very nice, but at least there is a work-around... Ton Kuypers From: [EMAIL PROTECTED] [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Sat, 21 Jun 2003 13:35:51 +0200 To: [EMAIL PROTECTED] Subject: Another 2.0 bug... Help, need a work-around!!! Tested on Windows XM and OSX: on mouseup put Bar1 into vBar create graphic vBar set the name of it to vBar set the rect of graphic vBar to 10,45,19,87 set the backgroundcolor of graphic vBar to 0,0,0 end mouseup Gives a filled rectangle during development, but these items have no fill in runtime :-( And there also seems to be a problem I haven¹t pinned down yet, but when using polygones, in the runtime it doesn¹t draw the last segment, so I¹m missing the last line of the object... Anybody any suggestions? Regards, Ton Kuypers. (If we would get rewarded for finding bugs and posting them in the database, I¹d be runner up for the first time in my life for something... AND I¹D RATHER BE NOT!!!) ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Stack Size Bloat?
Hello, I've been developing an app for a few months now and have noticed that the file size seems to be getting disproportionally larger than the objects and code I've been adding. Here are some statistics on my environment and the stack: Mac OS 9.2.2 Rev 1.1.1 Current Stack File Size: 709,592 bytes Window Size: 600 x 450 Number of Cards: 2 Number of Fields: 11 (about half of which are scrolling...most empty, but one contains about 8,900 bytes of info) Number of Buttons: 25 Number of Graphics: 6 (which add up to about 46,000 bytes) Using Jan Bleeker's Export Scripts stack, I find I have about 147,000 bytes of scripting. Something doesn't seem to add up...is this the result of the engine being present? Another example: Recently I added 3 buttons and about 25,000 bytes of scripting and the file size went from 493,397 to 709,592!! This reminds me of the HC days of compacting the stack occasionally, to keep it reasonable. What's going on here? Bloatedly yours, Tim Ponn ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Stack Size Bloat?
Oops...forgot to mentionthis is a stack...not a standalone. T. R. Ponn wrote: Hello, I've been developing an app for a few months now and have noticed that the file size seems to be getting disproportionally larger than the objects and code I've been adding. Here are some statistics on my environment and the stack: Mac OS 9.2.2 Rev 1.1.1 Current Stack File Size: 709,592 bytes Window Size: 600 x 450 Number of Cards: 2 Number of Fields: 11 (about half of which are scrolling...most empty, but one contains about 8,900 bytes of info) Number of Buttons: 25 Number of Graphics: 6 (which add up to about 46,000 bytes) Using Jan Bleeker's Export Scripts stack, I find I have about 147,000 bytes of scripting. Something doesn't seem to add up...is this the result of the engine being present? Another example: Recently I added 3 buttons and about 25,000 bytes of scripting and the file size went from 493,397 to 709,592!! This reminds me of the HC days of compacting the stack occasionally, to keep it reasonable. What's going on here? Bloatedly yours, Tim Ponn ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Best array population access optimization
On Friday, June 20, 2003, at 07:21 PM, Dar Scott wrote: However, since Blowfish primitives are xor and addition and since most signed numbers are 2-complement it might not matter. Even so, in Revolution once you bitAnd or bitXor, I would have expected unsigned values. I have only seen signed values come up in some uses of baseCovert(). It took a while and I was curious to see for myself, You were correct about expecting unsigned values. I ran a comparison version with the P-array from the C source code for encrypt and the P-array from the VB source code on decrypt and it worked. They were different in respect to signed numbers only. Only the unsigned numbers in the different source P-boxes were identical. I changed out the (C sourced S-box-1) for the (VB sourced S-box-1) in both the encrypt and decrypt handlers. It worked. The complimentary signed numbers mattered in the S1-boxes as long as the same version S-box was used for encrypt and decrypt. It showed that S-box-1-VB works with S-box-2-C, S-box-3-C, and S-box-4-C where only the unsigned numbers in the two S-box-1 versions were identical. Mark
Re: Newbie
Ubaldo, In the script of stack A put: On openStack open stack file path to stack B End openStack It's that easy. You could also put it in a startUp message, or in the openCard script of card 1 of stack A. Hope that helps. -Dan Sorry for this very basic question and if this has already been answered before in this list or in the documentation but I have 2 main stacks in the same folder and I want to launch stack A which should automatically open stack B; the 2 stacks should be visible. How can I achieve this? Thank you for your attention and sorry for my English too but I have done my best here :-) Ciao from Italy Ubaldo ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Best array population access optimization
Mark, Just in case you are working on this this morning... I thought I'd report the negative number problem with baseConvert. I looked into it. There are some bugs in baseConvert() for full 32 bit. I'll let you know when I get details. I think if you use this, you will not only get negative numbers, you will get very bad ones. Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Font's in pasted scripts
This might just be me...but is anybody else incredibly annoyed but the way that things you past into the script editor now keep their original fonts and formatting? I have to keep a copy of Notebad open all the time to pre-past things into the strip their formatting Edwin Gore ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
baseConvert() 32-bit ops (was Best array population access optimization)
On Saturday, June 21, 2003, at 10:23 AM, Dar Scott wrote: I thought I'd report the negative number problem with baseConvert. I'm on OS X; I haven't checked this on other platforms. OK, Mark, here is what I've learned. The baseConvert() does not return the 2's complement if the msb of the 32-bit intermediate value is 1 as I had thought. It tacks a minus sign onto the result if it is 1. This will give you bad data for sure. One workaround is if your result of baseConvert(hexStr,16,10) starts with a minus, remove it. Since you want this numerical internally anyway, you can simple abs() the result. Either will continue to work if/when the bug is fixed. This might explain the negative numbers. (The baseConvert() function also addresses a minus sign in the input numeral. I think this might have trouble, too, but this should not concern you.) Wanna see my test script and results? I'll report this. Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
How to use joysticks in Rev
Boy howdy, I'm not getting any feedback on the list about this. Is everyone mad at me for some reason? Or maybe it's just that no one knows the answer. Is it possible to make a joystick-controlled game or other software in Rev? I'd really like to know how to write for a joystick (and other adaptive controllers) in Rev. And if no one has done it, then, if it is possible, I'd like to learn how to do it. TIA, Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to use joysticks in Rev
On Saturday, June 21, 2003, at 08:23 AM, Ken Norris wrote: I'd really like to know how to write for a joystick (and other adaptive controllers) in Rev. And if no one has done it, then, if it is possible, I'd like to learn how to do it. One approach is to insist the supplier supply mouse drivers and go to another if it does not. Perhaps some joysticks already look like mice, so you don't even need to get the driver. Of course, this might not work if you really want a particular joystick. Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to use joysticks in Rev
On Saturday, June 21, 2003, at 07:23 AM, Ken Norris wrote: Boy howdy, I'm not getting any feedback on the list about this. Is everyone mad at me for some reason? Or maybe it's just that no one knows the answer. Is it possible to make a joystick-controlled game or other software in Rev? I'd really like to know how to write for a joystick (and other adaptive controllers) in Rev. And if no one has done it, then, if it is possible, I'd like to learn how to do it. TIA, Ken N. Ken, I am not mad at you. :) I just don't know how to do it. Sorry. Best regards, Mark Talluto http://www.canelasoftware.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re:newbie
Dan and Klaus, thank you very much for your suggestions Now my first GREAT application works :-) Klaus your Italian is great!!! Hi Ubaldo ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re:Newbie
Bon giorno, Welcome to the RunRev group list. From: [EMAIL PROTECTED] Date: Sat, 21 Jun 2003 11:55:01 +0200 Subject: Newbie Sorry for this very basic question and if this has already been answered before in this list or in the documentation but I have 2 main stacks in the same folder and I want to launch stack A which should automatically open stack B; the 2 stacks should be visible. How can I achieve this? -- on openstack open stack MyStack end openstack However, unless you place the stack window in an offset location, it will open exactly over top of the first stack, so you'll need to decide on a different loc if you want to see both. For some reason, I think it's possible you are trying to do something that may be done better in a different way. 1) If you are in the IDE, you can make substacks, which are not (yet) files. While developing they are can be easily accessed and developed as if they are separate stacks, but they are owned by the file (Main Stack). 2) Then when you build for distribution, you can allow the Distr Builder to automate making substacks into separate files, if you want. Makes for a stable saving environment, I.e., you can update your UI stack(s) without affecting data or preference settiings, etc. The substack method makes it easier because you only have to save the Main Stack while developing, the substacks are automatically saved with it, and you can access them and test from the IDE. There are examples in the Rev contributor page. Question: Are you using a Mac or a PC for development? Thank you for your attention and sorry for my English too but I have done my best here :-) -- Your English seems fine to me, better than my Italian which is basically non-existent. ;-) HTH, Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: newbie
Buona sera dottore, Dan and Klaus, thank you very much for your suggestions Now my first GREAT application works :-) Molto bene, gratulazione :-) Klaus your Italian is great!!! Mille grazie. Ubaldo Ciao ragazzo ;-) Klaus Major [EMAIL PROTECTED] www.major-k.de ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
tabbing into combo boxes
Is there a way to open a combo box's menu when the user tabs into it, so that they can then just choose from the list of menu choices without having to pop the menu manually? Thanks. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Newbie
Ken, thank you very much for your fast answer. I am using a MAc (OSX) for developing (ehm, trying to develop something). I am in love now with a beautiful Ibook, after many years with Windows (which I still use on work). Unfortunately my knowledge of MAC is so so and my knowledge of Revolution is 0 (perhaps 1...) I would like to create a little database with the distribution builder. Since I have read that built applications cannot be modified, I have built an application with only stack A (startup screen) that opens stack B (not in the application); stack B contains all the fields, grouped as background (name, address, date of birth, etc...), of the database plus some buttons (next, prev, new, list) A button on stack B could, for instance, save and close stack B. So I can save all the records of my database and find them relaunching the application. Not sure if I understand you well: can I make a main stack with a substack, tell the distribution builder to make substack in separate files and when the application is built can I create and save new records? The sample application employee database does exactly what I need, but it's still too difficult for me to understand the scripts. By the way I must congratulate with the developers of Revolution; it seems to me a great software. Also thanks to this great list (3 answer in a very little time) Ciao from (very HOT) Italy Ubaldo ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: baseConvert() 32-bit ops (was Best array population access optimization)
On Saturday, June 21, 2003, at 01:47 PM, Dar Scott wrote: also, not being familiar with binaryEncode how would you write the following using binaryEncode? put charToNum(F) + (charToNum(o) * 256 ) + ( charToNum(r) * 65536 ) + ( charToNum(m) * 16777216 ) into xL local halfBlock -- required put binaryDecode(N,Form,halfBlock) into numConverted In converting strings to blocks use 'char i to (i+3) of plainText' instead of Form and pay attention to the end. The variable numConverted with be 0 for short data. Whoops. I got the bytes backwards. Can you live with my order? put binaryDecode(N, m r o F ,halfBlock) into numConverted Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
how to get the temp directory on *NIX
how to get the temp directory on *NIX platforms? under windows and mac i can use specialFolderPath(Temporary).. can i just use $TEMP ? ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: how to get the temp directory on *NIX
I would suggest to use the tempname and extract the folder :-) Should work pretty crossplatform... ;-) thanks, that does everything i need it to do =) ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Font's in pasted scripts
Hmmm...it doesn't seem to work under Windows - using control-; colorizes, but formatting stays the same, while alt-; just beeps. - Original Message - From: Howard Bornstein [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, June 21, 2003 1:45 PM Subject: Re: Font's in pasted scripts This might just be me...but is anybody else incredibly annoyed but the way that things you past into the script editor now keep their original fonts and formatting? I have to keep a copy of Notebad open all the time to pre-past things into the strip their formatting You can select the formatted text in the script and just type command-; to get rid of all the formatting at once. Howard Bornstein D E S I G N E Q www.designeq.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to save text in a stack
Are you still confused? Probably, but it won't be your fault. I think I've got the difference. I didn't realize that the 'notes' stack in the demo app had to be a separate entity and couldn't be a substack. Thank you. I'll do some more experimenting. Dave ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: baseConvert() 32-bit ops (was Best array population access optimization)
On Sat, 21 Jun 2003 10:58:24 -0600, Dar Scott [EMAIL PROTECTED] wrote: [another email on this subject] Not wanting to stop the flow, but for the benefit of the rest of us, what is this topic actually about? I didn't realise that a discussion in this list could go entirely over my head... I feel really stupid. Just idle curiosity really. Graham --- Graham Samuel / The Living Fossil Co. / UK France ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: [ANN] News Reader Stack Available
--- Monte Goulding [EMAIL PROTECTED] wrote: you can't use explicitVariables in rev i don't understand. do you mean that you would not advise using explicitVariables? or that you just can not? Put it this way: If you are looking to have a stressful experience then type set the explicitVariables to true into the msg box then watch your computer turn to molasses while you slowly manage to change true to false and hit enter ;-) thanks, an unforgettable image. it did seem useful just for working on the script to be sure all of the variables were declared. then, yes, it became stressful and had to be turned off. = [EMAIL PROTECTED]http://www.erikhansen.org __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Newbie
--- Klaus Major [EMAIL PROTECTED] wrote: Put this into the stack script of stack A on openstack go stack B ## you can already define how the stack will be opened like: ## palette stack B, or: modal stack B, or: modeless stack B end openstack Will open stack B immediataly after stack A has been opened. could this re-evaluation be a good way to keep things on track when there are strange occurances? my openStack in stack A handler checks: if (the stacksinuse = empty) then go tStack start using tStack hide tStack end if sometimes it is smooth, sometimes not. maybe always declaring the stack mode could help? = [EMAIL PROTECTED]http://www.erikhansen.org __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Another 2.0 bug... Help, need a work-around!!!
--- [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Already solved by our friends of RR... In the IDE, the opaque of the graphic is set to true. However, in a standalone this is not set by default and is false thus not filling the rectangle. Sothere is a difference between IDE behaviour and standalones... Not very nice, but at least there is a work-around... google IDE = Integrated Development Enterprise Institute of Developing Economies Nancy Ide Professor and Chair Department of Computer Science Vassar College = [EMAIL PROTECTED]http://www.erikhansen.org __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Newbie
Hi Erik, ... my openStack in stack A handler checks: if (the stacksinuse = empty) then go tStack start using tStack hide tStack end if sometimes it is smooth, sometimes not. what about: ... go invisible stack tStack ... Should be as smooth as hell ;-) maybe always declaring the stack mode could help? Hope that helps... = [EMAIL PROTECTED]http://www.erikhansen.org Regards Klaus Major [EMAIL PROTECTED] www.major-k.de ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: baseConvert() 32-bit ops (was Best array population access optimization)
On Saturday, June 21, 2003, at 03:12 PM, Graham wrote: Not wanting to stop the flow, but for the benefit of the rest of us, what is this topic actually about? I didn't realise that a discussion in this list could go entirely over my head... I feel really stupid. Mostly about primitives that those writing encryption software would be interested in. (There are more general uses.) In particular, Mark is working with Blowfish that uses 32-bit half blocks. Even thought Revolution is 8-byte (double) floating point in its arithmetic, this is suitable for representing an (imaginary, perhaps) 32-bit number. There are some built-in Transcript functions that work with this 32-bit view. These include bitAnd, bitOr, bitNot and bitXor. These perform bit-wise logical operations on numbers. The baseConvert() uses a 32-bit number as an intermediate value, it seems. Missing are the shift and rotate commands/functions. Fortunately, Mark doesn't really need those. Those can easily be written, but they will be slow. Also important is initialization, traditionally from hex tables. This can be done with baseConvert, binaryEncode and binaryDecode. Another common task is the mapping of strings to and from the block list/array used by some algorithms. I think binaryEncode and binaryDecode are helpful here. Other Revolution commands/functions such as compress and md5Digest are also handy. I wouldn't use the built-in random for this. I don't think Mark needs random for what he wants. Algorithms often use arrays or matrices called boxes in this jargon. In Blowfish, mark is looking at ways to represent those. He might represent all S -boxes and P-boxes as a single array (handy as a single unit), or he might break the S-boxes into 4 arrays and use a separate 18 variables for the P boxes (great for speed). That is part of the problem in optimization and maximizing utility. These same problems also come up in other areas such as control I/O and reading writing some kinds of binary files. Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Newbie
--- Klaus Major [EMAIL PROTECTED] wrote: Hi Erik, ... my openStack in stack A handler checks: if (the stacksinuse = empty) then go tStack start using tStack hide tStack end if sometimes it is smooth, sometimes not. what about: ... go invisible stack tStack ... Should be as smooth as hell ;-) maybe always declaring the stack mode could help? thanks, i think i had a problem with go invisible or was that in MC? = [EMAIL PROTECTED]http://www.erikhansen.org __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: baseConvert() 32-bit ops (was Best array population access optimization)
On Saturday, June 21, 2003, at 03:56 PM, Mark Brownell wrote: It has been a very interesting two weeks between the cryptology and Dar's knowledge of bit processing. We're a team!! It is good to see synergy. I have 1st and 2nd edition of Bruce Schneier's _Applied Cryptography_. We can point to pages in that if you have one. There is probably a good URL out there on bit processing. However, that is something that can be elaborated on the list as we discuss Transcript commands to do things. This kind of thing is handy in all kinds of binary I/O. For example, just the other day someone asked about certain file formats. The answer just might require some work in tweaking bits. Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Stack Size Bloat?
--- T. R. Ponn [EMAIL PROTECTED] wrote: Hello, I've been developing an app for a few months now and have noticed that the file size seems to be getting disproportionally larger than the objects and code I've been adding. Here are some statistics on my environment and the stack: Mac OS 9.2.2 Rev 1.1.1 Current Stack File Size: 709,592 bytes Window Size: 600 x 450 Number of Cards: 2 Number of Fields: 11 (about half of which are scrolling...most empty, but one contains about 8,900 bytes of info) Number of Buttons: 25 Number of Graphics: 6 (which add up to about 46,000 bytes) Using Jan Bleeker's Export Scripts stack, I find I have about 147,000 bytes of scripting. Something doesn't seem to add up...is this the result of the engine being present? Another example: Recently I added 3 buttons and about 25,000 bytes of scripting and the file size went from 493,397 to 709,592!! This reminds me of the HC days of compacting the stack occasionally, to keep it reasonable. What's going on here? Bloatedly yours, Tim Ponn do you ever get several hundred returns after your script? = [EMAIL PROTECTED]http://www.erikhansen.org __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Another 2.0 bug... Help, need a work-around!!!
On Saturday, June 21, 2003, at 04:09 PM, erik hansen wrote: google IDE = Integrated Development Enterprise Institute of Developing Economies Nancy Ide Professor and Chair Department of Computer Science Vassar College Nancy hardly gets any credit for inventing the Integrated Development Environment where design, source editing and testing are all done with one tool. It is a shame. Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Stack Size Bloat?
Howdy Tim I've been developing an app for a few months now and have noticed that the file size seems to be getting disproportionally larger than the objects and code I've been adding. Rev keeps quite a number of custom properties in each object during development. The largest one being a htmlText version of the script. You can choose to delete these when you build your distribution. Regards Monte ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Font's in pasted scripts
For me it formats it - in so much as setting indents, etc, but the font and style doesn't change. - Original Message - From: Shao Sean [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, June 21, 2003 3:27 PM Subject: Re: Font's in pasted scripts Hmmm...it doesn't seem to work under Windows - using control-; colorizes, but formatting stays the same, while pressing the TAB key seems to format the script (go to a line past the section you want to re-format and press TAB ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to save text in a stack
--- Howard Bornstein [EMAIL PROTECTED] wrote: So, to recap, the splash stack is built as a standalone and contains the engine but probably not much else. It can't save changes to itself. Your data stack is a separate stack called by the standalone, and it can save changes without problems. Are you still confused? thanks, this is clarifying. why does the splash stack need to be a standalone? = [EMAIL PROTECTED]http://www.erikhansen.org __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: field: click on no char
hello, i did not get time to do the real hackin before summer closed my lab. it seems to interact with all of my other clickChunk code (mouseCharChunk is a new one). i do look forward to integrating this into my program in September. thanks again, Erik --- Ken Ray [EMAIL PROTECTED] wrote: Ok, Erik, ready for some real hackin'? Step 1: Set the margins of your field so that the user can't click to the left or above any text (I set the margin to 2). (If you need the user to see a margin, make this field transparent and place it on top of another locked field that is a bit bigger to simulate a margin.) Step 2: Set the lockText of the field to true. (You probably already did this.) Step 3: We're going to take advantage of the formattedText() function, that inserts CRs where lines wrap in text fields by temporarily putting the formattedText into the field, seeing where the user clicked, and then resetting the text to what it was. We'll use the mouseCharChunk and mouseLine functions instead of the clickCharChunk and clickLine functions because they're the ones that work. Put the following script into your field: on mouseUp put me into tText put the formattedText of me into me put the mouseCharChunk into tChunk put the mouseLine into tLine put tText into me if tChunk then put The user clicked on tChunk else if tLine then put The user clicked after the end of tLine else put The user clicked past the end of the text. end if end if end mouseUp In my testing, I had a field whose text wrapped like this: Now is the time for all good men to come to the aid of their party. Here's another test of the second paragraph. When I clicked between good and men, I got: The user clicked on char 29 to 29 of field 1 When I cliked after the . in party. (between it at the right edge of the field), I got: The user clicked after the end of line 2 of field 1 When I clicked below the word paragraph (between the baseline of it and the bottom of the field), I got: The user clicked past the end of the text. Hopefully you'll be able to tweak this for your own purposes. Have fun! Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of erik hansen Sent: Thursday, April 10, 2003 4:20 PM To: [EMAIL PROTECTED] Subject: field: click on no char --- Ken Ray [EMAIL PROTECTED] wrote: Erik, are you trying to know exactly where the user clicked (I mean in the left margin next to line 3 of the field), or just whether the user clicked on text or not? the areas in a field that have NO text are the concern. say my third line has only 20 chars of text and the field is wide enough to handle 80 chars. click where char 40 would be (if i had padded 80 spaces) and you get no reading. the user is used to a cursor snapping back to the end of the text. the easy solution is just to pad with spaces before and after the text. all the editor needs to know is that the user clicked on a char before or after a string of linked text. there could be 1 char or 100 chars between word 1 and word 2. the result would be 1 2 in my usage. before word 1 is 0 1 = [EMAIL PROTECTED] http://www.erikhansen.org __ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution = [EMAIL PROTECTED]http://www.erikhansen.org __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to use joysticks in Rev
Hi Dar, Thanks for the Re here. -- Date: Sat, 21 Jun 2003 13:11:35 -0600 Subject: Re: How to use joysticks in Rev From: Dar Scott [EMAIL PROTECTED] On Saturday, June 21, 2003, at 12:56 PM, Shao Sean wrote: look at the open driver read driver, etc in the docs to see if that does what you need it to do.. Ken, are you on OS X? Get driverNames(). Plug in your joystick and then get driverNames() again and see if anything new looks interesting. Let us know what you get. -- Not Jaguar yet. I'm running OS 9.2.1. Maybe later this week, if I get time. Thanks, Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to use joysticks in Rev
Hi Shao, From: Shao Sean [EMAIL PROTECTED] Subject: Re: How to use joysticks in Rev Date: Sat, 21 Jun 2003 14:56:46 -0400 I'm not getting any feedback on the list about this. Is everyone mad at me for some reason? maybe it's because of what you did at the last company picnic? ;-) look at the open driver read driver, etc in the docs to see if that does what you need it to do.. -- I tried that, but 0 results so far. I'm not sure what it reads. I mean it can only return a block of info, but the stick is streaming when it's moving, so I'm not sure what it is I,m looking for. I provided a field for the info to go into, but nothing happens. Here's the script as it is for USB Overdrive: on mouseup open driver USB Overdrive read from driver USB Overdrive until end put it into fld 1 end mouseup ...nothing, nada, zip. Any ideas welcome, Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: baseConvert() 32-bit ops
On Saturday, June 21, 2003, at 05:05 PM, Mark Brownell wrote: I don't see what to place into the local variable halfBlock -- my goal is to end up with this: 1181708909 -- from this: put charToNum(m) + (charToNum(r) * 256 ) + ( charToNum(o) * 65536 ) + ( charToNum(F) * 16777216 ) Hey, you changed order on me! Actually, that is the order I prefer. The number is placed in halfBlock. The function returns the number of values converted. Try this in a button (I'm assuming fields Input and Report): -- on mouseUp put strToHalfBlock(field Input) into field Report end mouseUp function strToHalfBlock str local halfBlock put binaryDecode(N,str,halfBlock) into numConverted if numConverted is not 1 then -- do error thing here? return error end if return halfBlock end strToHalfBlock function charsToHalfBlock a, b, c, d return strToHalfBlock(abcd) end charsToHalfBlock -- = If you prefer individual chars, you can use the later function. This script puts 1181708909 into the field Report when the field Input contains Form. Hey! That's just what you asked for! Try the TD, too, for info. The N is for network byte order unsigned 32-bit. That way, once you get the order the way you want, it will be the same across platforms. The other option is host byte order. Should we ask for options for big-endian and little-endian, too? You can loop through your padded string to be encrypted four chars at a time to create a halfBlock array (or process as you go). If 'i' is your looping counter, then pick off four chars at a time with this expression 'char i to i+3 of paddedString' or something like that. Repeat has been upgraded to allow increments by 4 (or 8 if you process as you go). Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to use joysticks in Rev
On Saturday, June 21, 2003, at 03:28 PM, Ken Norris wrote: On Saturday, June 21, 2003, at 12:56 PM, Shao Sean wrote: look at the open driver read driver, etc in the docs to see if that does what you need it to do.. Ken, are you on OS X? Get driverNames(). Plug in your joystick and then get driverNames() again and see if anything new looks interesting. Let us know what you get. -- Not Jaguar yet. I'm running OS 9.2.1. Maybe later this week, if I get time. Hey, this is just a shot in the dark. I think it very likely open driver will work on only traditional serial interfaces (RS-232, RS-485, RS-442, modem). However, I think it will work on Blue Tooth. And I hear people talk of USB, so maybe there is a way to open up USB pipes or whatever they are called. Don't run out and get OS X just on this speculation. Can anybody try the above experiment for Ken? Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: baseConvert() 32-bit ops
Repeat has been upgraded to allow increments by 4 (or 8 if you process as you go). Cool ;-) I didn't know that! Cheers Monte ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to use joysticks in Rev
Hi Dar, Thanks for the Re. Date: Sat, 21 Jun 2003 11:27:06 -0600 Subject: Re: How to use joysticks in Rev From: Dar Scott [EMAIL PROTECTED] On Saturday, June 21, 2003, at 08:23 AM, Ken Norris wrote: I'd really like to know how to write for a joystick (and other adaptive controllers) in Rev. And if no one has done it, then, if it is possible, I'd like to learn how to do it. One approach is to insist the supplier supply mouse drivers and go to another if it does not. Perhaps some joysticks already look like mice, so you don't even need to get the driver. -- Well, some stick mfrs won't bother to write separate drivers for Macs, which is the case with my CH Fighterstick. The driver for PCs allows setup combos numbering in the hundreds. If you want that one you have to live with what the games have for it (which is usually plenty enough for the games), or a generic driver like USB Overdrive, or use it just on PC's. -- Of course, this might not work if you really want a particular joystick. -- Like I said. BTW, does anyone have a high-end stick they like for Macs? The Macally iStick is inexpensive, but it shows. I suppose it's OK for the price, but it's at least a couple levels below the CH stick. But the real point is being able to adjust settings from the app, like games do, so you have faster methods of adjusting it like my potential users will need. Thanks again, Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RE: cloning a sub-stack
clone stack mysubstack set the name of it to mynewstack set the mainStack of stack mynewstack to mymainstack Cheers Monte is there an easy way to clone a substack _within_ a main stack? i can't seem to find one. thanks! rand valentine ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re:Newbie
Dottore, Howdy from Friday Harbor, Washington (the state), From: [EMAIL PROTECTED] Date: Sat, 21 Jun 2003 21:56:52 +0200 Subject: Newbie --snip I am in love now with a beautiful Ibook, after many years with Windows (which I still use on work). -- iBooks are great. I want a new one myself (Is my jealousy showing?)/ -- Unfortunately my knowledge of MAC is so so and my knowledge of Revolution is 0 (perhaps 1...) -- Good things come in time. --snip Since I have read that built applications cannot be modified, I have built an application with only stack A (startup screen) that opens stack B (not in the application); stack B contains all the fields, grouped as background (name, address, date of birth, etc...), of the database plus some buttons (next, prev, new, list) A button on stack B could, for instance, save and close stack B. So I can save all the records of my database and find them relaunching the application. -- Well, that will ceratinly work, but now your startup stack can't easily be modified. -- Not sure if I understand you well: can I make a main stack with a substack, tell the distribution builder to make substack in separate files and when the application is built can I create and save new records? -- That's essentially true. You're not really doing anything wrong, it's just easier to keep everything in modifiable forms until you're ready to build distribution. It's a faster, more convenient way of developing. Then when you're finally ready, the distribution manager will make your substacks into files for you. I've been playing with having my GUI in the main stack as standalone, which will help keep the user out of it until I'm ready to come out with the next version. That means I can have the splash to initialize stuff, then throw it offscreen to keep everything open, the UI in the unmodifiable main, and the data, images, and preferences in files. The main can be a palette that stays open with buttons, index lists called from one of the data stacks, menus, etc. It can open a data stack which appears in a window as a group of fields on cards. This way, I can keep records in records, and lots of rewriteable data files. all controlled from a protected UI. There are reasons for such a method, but there are also reasons for making a highly modifiable UI as well , which requires a different method and philosophy. HTH, Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to save text in a stack
Hi David, Date: Sat, 21 Jun 2003 12:27:34 -0600 From: David Squance [EMAIL PROTECTED] Subject: How to save text in a stack I have just found the little demo stack Save2Splash on the RR website, and thought it was just what I was looking for. However, when I turned it into a standalone, any text I entered was gone when it was reopened. Am I missing something? -- Yes, you're indeed missing something. RR stacks can't save to themselves like HyperCard does. The reason follows. This stack was created to show one of two basic methods for saving data, but I think you did it backwards, sort of. --snip but my current project has a lot of fields on several cards and writing and reloading to and from text files would be very cumbersome. -- In your circumstance, perhaps so. What you need is for the splash screen to be the standalone, which has the engine. You just kick it offscreen, but it still runs the show. You can't save anything to it, and don't need to. The other stack(s) with your cards and fields is what you'll see and save, but you have to provide for that. You can make an autosave routine that will cause the engine to save your changes on closing if you like, but it would probably be better to get away from that procedure and have the deliberate Save/Don't Save/Cancel thing like virtually all other software has today. -- I guess what I want is it to work like HC does, but I want to be able to build a Windows standalone eventually. -- I understand, but that won't happen unless you deliberately script it to do so, like I mentioned above. Windows programs can't save to themselves. Macintosh OS' have a resource fork which allows programs to save to themselves, which is why HC can do that, i.e., save to itself on closing, but PC OS' cannot. RR uses the MetaCard cross-platform engine, which means that, in order for there to be consistency for distributing like software on all platforms, the ability for programs to save to themselves on Macs has been eliminated. I hope that sheds some light on your situation. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to save text in a stack
Hi Erik, Again :-) Date: Sat, 21 Jun 2003 16:38:27 -0700 (PDT) From: erik hansen [EMAIL PROTECTED] Subject: Re: How to save text in a stack snip thanks, this is clarifying. why does the splash stack need to be a standalone? -- Well, it doesn't, it's just a simple way of dealing with the engine. The engine is in the standalone. It has to be present and running for other stacks to open. Now, you can use the splash as the standalone which you know has the engine. However, _any_ standalone has an engine, so do with it what you like. HTH, Ken N. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Font's in pasted scripts
Hmmm...it doesn't seem to work under Windows - using control-; colorizes, but formatting stays the same, while alt-; just beeps. Oops. Sorry, I didn't check this under Windows. I guess it's a Mac-only trick. Howard Bornstein D E S I G N E Q www.designeq.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: baseConvert() 32-bit ops
On Saturday, June 21, 2003, at 05:50 PM, Dar Scott wrote: On Saturday, June 21, 2003, at 05:05 PM, Mark Brownell wrote: I don't see what to place into the local variable halfBlock -- my goal is to end up with this: 1181708909 -- from this: put charToNum(m) + (charToNum(r) * 256 ) + ( charToNum(o) * 65536 ) + ( charToNum(F) * 16777216 ) Hey, you changed order on me! Actually, that is the order I prefer. The number is placed in halfBlock. The function returns the number of values converted. This is fast and easy. I've never seen a function like this where the parameter seemed empty and it worked that way. I like the way it returns 1 for error testing. on mouseUp --put This form needs to be filled out into fld textBox put 1 into i repeat while i = 32 put char i to (i + 3) of fld textBox into zap put binaryDecode(N,zap,halfBlock) into numConverted put char 1 of zap into a put char 2 of zap into b put char 3 of zap into c put char 4 of zap into d put halfBlock -- charToNum(d) + (charToNum(c) * 256 ) + ( charToNum(b) * 65536 ) + ( charToNum(a) * 16777216 ) return after field icfield put i + 4 into i end repeat ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: baseConvert() 32-bit ops
On Saturday, June 21, 2003, at 10:11 PM, Mark Brownell wrote: This is fast and easy. I've never seen a function like this where the parameter seemed empty and it worked that way. Yes, normally we think of commands as the operations _on_ variables. Yet, there are a few functions with side effects, such as matchText(). You can build your own commands and functions that work this way by using reference parameters (see @ in the Transcript Dictionary). For example, you can code a swap command as a handler with two reference parameters. I like the way it returns 1 for error testing. This is the number of variables converted. You are using a trivial case of only trying to convert one. Success is typically when the number attempted is the number converted. In this case, 1. put 1 into i repeat while i = 32 ... put i + 4 into i end repeat From the TD, it looks like this should work, too: repeat with i = 1 to 29 step 4 -- last halfBlock is of 'char 29 to 32' ... end repeat I'm glad this is working well. Dar Scott ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution