Re: Com Port Data Errors
On Dec 13, 2005, at 3:32 PM, Camm29 wrote: write AT00 numToChar(13) to driver COM1: One point is that with the same command AT00 , HYPERTERMINAL works always with wait time 1 second. Even though the Hayes-compatible tradition requires a CR to terminate the command line, I have seen some modems that want LF in addition or instead. Could your Hyperterminal settings be set to send a LF with the CR? Also, check your handshake lines. Make sure you are using the same cable as your Hyperterminal experiment. Then make sure the handshake lines work the same. BTW, I am not familiar with a digit command, such as 0. That might be something special with your modem or some newfangled thing or something cool I just haven't seen. Or should this be the O command for Return to On-line State? Dar -- Dar Scott dba Dar Scott Consulting Glory to God in the highest, and on earth peace, good will toward men. -- Host of angels, Luke 2:14 ___ use-revolution mailing list use-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]Re: Com Port Data Errors
On Dec 14, 2005, at 2:01 PM, Chipp Walters wrote: Welcome back Dar! Thanks! I hope to get back into a list or two slowly. Dar -- Dar Scott dba Dar Scott Consulting Glory to God in the highest, and on earth peace, good will toward men. -- Host of angels, Luke 2:14 ___ use-revolution mailing list use-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: Com Port Data Errors
On Dec 14, 2005, at 2:36 PM, Camm29 wrote: Going slightly off track here , Everything is the same ,hardware and comm settings. OK. I thought there might be a timeout. Try a loop-back. That would remove the modem from consideration. Dar -- Dar Scott dba Dar Scott Consulting Glory to God in the highest, and on earth peace, good will toward men. -- Host of angels, Luke 2:14 ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Setting a tabbed button
I forgot how to set a tabbed button. In my app the first card comes up at the start but the button is in some leftover state. Thanks, dar ___ use-revolution mailing list use-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: Setting a tabbed button
On Feb 9, 2006, at 2:17 PM, Dave Cragg wrote: set the menuHistory of button myButton to 1 or set the label of button myButton to whatever its label is Ah. Thanks. I had this but I neglected to spell the name of my button right. Thanks! Dar Still Revving ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Shifted Results from External
(Hello, everybody, I'm trying to crawl back out from my cave and see what's going on here.) I have an external problem. Well, that's where the symptoms show up. I created an external that is a thin layer over some win32 calls (targeted to XP). It does some extensive error checking. The code looks clean and the external has tested out. However, in the customer's environment which includes another external of mine that runs a customer supplied ActiveX module something strange happens after a while. Based on the data from the customer, it looks like the results from system calls are shifted off by one. That is, if calls are like this--f1(), g(), g(), f2(), g()-- at some point the data returned is that that should have been for the previous call--empty, f1(), g(), g(), f2(). I have no queues in my code, but it looks as if data is queued but an extra value is left in or inserted at some point. (The customer also reported memory usage growth.) I suspect that some other module in my customer's environment is breaking things--one of these: the other external, the activeX, Rev 2.6.1, XP or maybe even the Transcript. I think either the external's memory is getting smashed (or the heap or Rev) or something is going wrong with malloc/free. I'm pretty sure it is not this external (famous last words). The module uses static linking to C run time, and the best I can tell, there is no substitution for the malloc. In all cases *retString is set. (A quick check shows gibberish is returned if it is not.) Strong exception catching is used. All function results are checked for CRT and WIN32 calls. I checked the calls to malloc and free and in my external they balance. I make no calls to CRT functions that use malloc (according to MSDN documentation). I haven't looked into where malloc gets its memory yet, maybe the process heap--anybody know? These use my C++ libraries for externals, but these have worked for a long time and in lots of environments. (More famous last words.) The test stack does not seem to be blowing the Transcript call stack, but does have some interesting uses of wait with messages. I'm not able to duplicate this in my environment on 3 machines. I've made an effort to make sure the environments are the same as that of my customer, but was in the middle of that when the troubleshooting effort was stopped. The customer test stack makes lots of different kinds of calls and uses send a lot. In any case, the test is not small and it takes a while to fail in the customer's environment. Since I couldn't replicate the bug (I know how RunRev feels with some of the Rev bugs), I sent some variations that might shift the symptoms or even report what went wrong. Unfortunately, one of them (one that uses malloc less) did not display the problem, and testing of the batch of variations stopped right there, most untried. I realize this is very weird and folks on this list, even external builders, may not have seen this, but I thought I'd give it a try. I hope my customer can get his product to run reliably and I want to vindicate this external. I can come up with a model for almost anything, but this baffles me. What can cause this? OK, here is a model, but it is pretty wild: I know external calls are slow, but I would be surprised if Rev is pushing pulling data through queues to another thread that runs external calls. Dar Scott Rev guy on the northern Rio Grande ___ use-revolution mailing list use-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: Shifted Results from External
On May 4, 2006, at 11:06 AM, Mark Wieder wrote: That is, if calls are like this--f1(), g(), g(), f2(), g()-- at some point the data returned is that that should have been for the previous call--empty, f1(), g(), g(), f2(). I have no queues in my code, but it looks as if data is queued but an extra value is left in or inserted at some point. (The customer also reported memory usage growth.) That's indeed weird. My only guess at the moment is that one of your functions may be getting compiled with a different calling protocol than the others: it's expecting rev to clean up the stack, while rev looks at the protocol and thinks the function should clean it up. And that this function only gets called rarely, but enough to leave an extra value lying about on top of the stack. Good thinking. Everything that Rev sees is C. All the C++ is hidden. Also, everything works fine until after a long stress. Even then, I have trouble seeing how this might cause the symptoms. I think this might be part of the answer but is still quite shy. Dar ___ use-revolution mailing list use-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: Byte order in unicode button labels
On May 5, 2006, at 12:47 PM, Devin Asay wrote: I am writing an app with button labels in a non-Latin script (Cyrillic). Under certain conditions I need to change the label of these buttons. To do so I store the unicode text of the different label names in custom properties. But I just discovered that the byte order is swapped between Win and Mac (okay, I'm slow.) I can just store custom props with the different label variants for both mac and win, but that would be an inelegant kludge. Is there a way to reverse the byte order of unicode strings in Rev? Consider storing the string as UTF-8 in the properties and apply uniEncode() to generate the host-order UTF-16. That avoids the problem. Dar Scott ___ use-revolution mailing list use-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: Process, anyone?
On May 4, 2006, at 7:47 PM, Cal Horner wrote: A stand-alone app doesn't delete itself out of the Windows Task Manager list when the stand-alone app is closed. The app remains in the processes list and each time it is used another copy is left. This might be an old, old Rev bug from before bugs were on bugzilla. I wrote the report below over four years ago. I don't know if it applies now. Also, I was a Newbie. See #6. Dar I have some problems with read from process. I apologize for the missing detail. I might be doing something silly that has caused some of these, but I think most are related to bugs. 1. Delay time doesn't work how I expected I open process ping -n 10 127.0.0.1, read from the process until end and with a delay, then close. I vary the delay. I vary -n at times. The -n switch controls the number of pings (and report lines) which are sent about a second apart. The actual time (measured in ms, using milliseconds()) that the execution is in the read is less than the specified delay and can be a small fraction of the request. This occurs even then the specified time is less than the ping time (process execution time). The number of lines read seems to be roughly consistent with the time the execution is in the read, but not always. 2. Read when no data at start hangs A read (until end in 3000 milliseconds) from a process that does not generate output for a while at at start of the process hangs Revolution. Revolution does not paint the content of windows. This is contrasted with the tests in #1 above in which even a small amount of data read by the delay time will cause the read to complete. 3. Immediate read without delay hangs Read from process ping -n 10 127.0.0.1 (until end, no delay) right after open hangs Revolution even though the process completes in 12 seconds. The window contents are painted in this case. 4. ^. in read from process sometimes gets memory fault I have gotten a memory fault in this situation but didn't write down details. 5. Closing of error window from ^. in read from process gets fault One time the runtime error window from ^. in read from process caused a memory fault when closed. (Instruction at 0x004a6553, location at 4 could not be read) 6. Process locks up (open, read, close) Usually the ping process exits in tests in #1 above, even when the process is closed before or after the actual end of the function. However if -n 50 is used, and the process is closed much before the end of the pings, then the process hangs and will not exit. It has to be killed. (I can get ping data just fine with the shell function; I'm just trying to learn about read from process and the ping is handy.) ___ use-revolution mailing list use-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: Processes, anyone
On May 5, 2006, at 10:39 PM, Richard Gaskin wrote: Cal Horner wrote: With all the tenacity of a Pit Bull, I charge on. Trying to figure out why the process related to a stand alone .exe stays in the Windows Task manager list, even after the Stand alone if finished, closed and removed. A standalone will remain in memory if one or both of these two conditions are met: - One or more stacks are still open - One or more pending messages are still in queue Well, at least Richard knows how to read. I answered the wrong question; go with Richard's comments. Dar ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Problem with Unicode
On May 6, 2006, at 3:29 PM, RH wrote: on mouseUp set the useUnicode to true set the unicodeText of field Russian2 to field Russian1 - only first word is moved correctly end mouseUp Do this (as Mark Smith suggested): on mouseUp set the unicodeText of field Russian2 to the unicodeText field Russian1 end mouseUp The useUnicode property is very limited in what it influences. It applies to charToNum and numToChar only. For example, from the code point of a Unicode character you can create the host-orter UTF-16 used by Rev. Dar Scott ___ use-revolution mailing list use-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: Byte order in unicode button labels
On May 5, 2006, at 12:47 PM, Devin Asay wrote: I am writing an app with button labels in a non-Latin script (Cyrillic). Under certain conditions I need to change the label of these buttons. To do so I store the unicode text of the different label names in custom properties. But I just discovered that the byte order is swapped between Win and Mac (okay, I'm slow.) I can just store custom props with the different label variants for both mac and win, but that would be an inelegant kludge. Is there a way to reverse the byte order of unicode strings in Rev? You might want to vote for enhancement 2825 that adds UTF-16BE and UTF-16LE to the uniEncode and uniDecode options. This would allow you to store your favorite, say UTF-16BE, in your properties and then convert to host-order UTF-16 for unicodeText. This might be a bit faster than storing UTF-8 in the property and then converting. Dar ___ use-revolution mailing list use-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: Small caps in unicode field
On May 9, 2006, at 9:22 AM, Terry Vogelaar wrote: How can I display small caps in a field? I have set the textfont to the opentype font Warnock Pro,utf-8 and the font contains glyphs for small caps. They are in the range unicode glyph 273 to 298. So I tried to set the htmltext to #273; or #0273; tried copy-pasting from InDesign and FontGridMac / FontExplorer, but nothing seems to work. I cannot figure out how to do this. Those are not the Unicode codes for small caps. Those codes are for for a range of characters in Latin extended A starting with LATIN SMALL LETTER D WITH STROKE. Perhaps those are the font-glyph codes. Small caps are not in Unicode, they are considered a matter of typography, not character selection. Try lowercase, uppercase with (say) bold, or a private range (U+E000 block) in Unicode. The font maker might help. Also, I have had trouble getting the right font in unicode in Rev. Sometimes Rev will chose a font that does not have that character, even though several fonts do have that character. While experimenting, you might want to turn off some fonts. Also, sometimes it helps to use japanese as the language. It you want small caps, you might also try changing the size and using caps. Dar Scott ___ use-revolution mailing list use-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 Ensure Only Plain Text Editing Is Allowed In Field
On May 10, 2006, at 11:29 PM, Ivan Wong wrote: Is there any easy way (beyond trapping and disabling unwanted keystrokes), to allow users to only edit in plain text, and keep editing to a single line in text fields. Currently, I can always insert linebreaks using the return key, and use ctrl-b etc to style the text. If you want to block the return key and block control-B, then (even though you were hoping to avoid this), I'd recommend blocking with rawKeyDown for return and controlKeyDown for control keys. Some folks call keysDown() in rawKeyDown to see if the control key (key code 65507) is in the list of keys down, but this does not work if keystroke processing becomes delayed. Simply use 'pass' if the keystroke is not one to be blocked. If for some reason (say, future plans) you do not want to block this way you can try this: On rawKeyDown lock the screen and send a message in small or zero time to a field fixing custom command (perhaps within your field script). In that custom command script call your custom command that fixes the field and then unlock the screen. (Though it does not apply to the return key or control-B, there are a few characters that bypass the xxxkeyDown messages, such as umlauts, so if you want to filter those out in the future, neither method above will work. This is a known bug: 1147) Dar Scott ___ use-revolution mailing list use-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: Using Revolution only in a command line mode?
On May 13, 2006, at 9:57 AM, Glen Bojsza wrote: I was wondering if anybody has used Revolution in a non-Gui environment. I am finding several cases where telecom vendors don't support a windowing system on their linux products, only the command line. I believe that Metacard use to be able to run in this type of environment and hope that revolution would. I have run Rev as command-line on Windows and have run a command-line version on OS X. I don't know if they will work in a non-GUI environment, I can run them without using any GUI that I know of. I have also run standalones from the command line, but I think they need to have a GUI environment. There have been some bugs in command-line parsing for Windows. There are workarounds if you don't use quotes. I suspect these bugs do not show up in Linux. There are some bugs/features in Windows concerning stdin and stdout that limit your use. Dar ___ use-revolution mailing list use-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: 11th hour problem with format in standalone
On May 15, 2006, at 12:58 PM, Ben Bock wrote: The button groups stayed in the same place, but the text was collapsed in places, looks like some returns were removed. Could it be that there were never returns and the text simply wrapped? Maybe you have a font change? (Sorry about the wimpy help, but I know that I would take anything at the 11th hour.) Dar Scott ___ use-revolution mailing list use-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: set cursor
On May 15, 2006, at 6:07 PM, Russ McBride wrote: on mouseMove x, y set the cursor to watch #doesn't do anything I tried it and I can't get the watch to go away. Dar Scott ___ use-revolution mailing list use-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: Math problems?
On May 19, 2006, at 1:04 PM, Peter T. Evensen wrote: put 10.27 into tNumber put the trunc of tNumber into tInteger put tNumber - tInteger into tDecimal put 100 * tDecimal into tNew Decimal put the trunc of tNewDecimal and I get 26 instead of 27. Am I doing something wrong? Is this a bug? This is not a bug. The result of arithmetic is stored internally as a floating point number with a binary point. tDecimal is really this (about): 0.26957367435854393988847732543945312... Before tNumber can be have the trunc applied, it must be converted to the same form. The decimal numeral you entered cannot be represented exactly. Here is a close approximation: 10.26957367435854393988847732543945312... Some operations such as =, fudge a little to accommodate this. Apparently trunc does not. Though this is not a bug, it is a surprise for many, and I believe a shortcoming of Revolution. However, others might feel that the increased execution time of (say) decimal point arithmetic is not worth it. Is there another way to isolate the decimal portion? If you just want to create a numeral with 2 digits to the right, then set the numberFormat to #.00. If you actually want the round of the two digits, use round() instead of trunc(). If you want those two digits you can pick off the last two characters after formatting. Dar Scott ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: regEx to remove spaces ?
On May 17, 2006, at 3:45 AM, jbv wrote: Is it possible to use regEx to remove spaces before and after quotes, and, if yes, how ? Example : my beautiful laundrette becomes my beautiful laundrette (?x) (?=) \ + (?= [^]* (?(?:[^]*){2})* [^]* \z) | \ + (?= (?(?:[^]*){2})* [^]* \z) on mouseUp put replaceText(field In,field regex,) into field Out end mouseUp This is slow for long strings. The regex experts might have some ideas on how to speed that up. For every match it has to check the rest of the string to make sure the quotes pair up. Ow. This uses assertions to get around the whole-match nature of replaceText(). The \ + matches the spaces to be removed. The (?x) allows me to use whitespace in the regex. In the lines of the regex the part before the space matching is the lookbehind assertion and the part after is the lookahead assertion. To create the regex, I'd use format() which allows a special \ notation for literals in the first parameter, but the usual ' quote ' method will also work. This pairs quotes from the right, so if the quotes are not paired, this will goof up at the start of the string. Dar Scott ___ use-revolution mailing list use-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: Math problems?
On May 20, 2006, at 1:09 PM, Mark Wieder wrote: Note: this is BZ #2419, which for some reason Tuviah closed as NOT_A_BUG in January 2004, so unless Jacque reopens it it's unlikely that it will be fixed. What would you recommend as the new behavior for Revolution trunc()? I'm assuming you want trunc() of a positive number with a fractional part almost one to round up. Since that is the situation here. How close should it be? Here is one approach that makes it consistent with Revolution fuzzy equality: on mouseUp put 10.27 into tNumber put the trunc of tNumber into tInteger put tNumber - tInteger into tDecimal put 100 * tDecimal into tNewDecimal put trunc(tNewDecimal) markTrunc(tNewDecimal) end mouseUp function markTrunc y put trunc(y) into c if c+1=y then -- floating point fuzzy equals return y else return c end if end markTrunc(y) Maybe, you can suggest that as a feature enhancement. (An alternative would be to add a tiny epsilon to the number and then truncate.) Though, the real problem is the binary point in the representation of the result of arithmetic, some folks might prefer this to doing anything that might slow down arithmetic. For me, I lean toward going toward a decimal point in Revolution arithmetic. Dar Scott ___ use-revolution mailing list use-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: Math problems?
On May 20, 2006, at 6:04 PM, J. Landman Gay wrote: By the way, I just tried the original script (quoted at the top above,) using Mac OS 10.4.6 and I did not get 26, I got 27 as expected. I suspect it is system-related. I believe the Rev engine relies on the OS's math routines to get its results. Very interesting. With Rev 2.7.1 on OS X 10.4.6 using a G4, I got 26. Dar ___ use-revolution mailing list use-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: passing parameters in a send call.
On May 21, 2006, at 2:42 PM, Andre Garzia wrote: I am using a script code that is built in runtime and executed with a do call. The code calls a send function. I know you can use send with parameters like: send myAdd 2, 2 to stack someStack this works. but sending an array like send myAdd pArrayA to stack someStack causes the myAdd handler to be called with an empty parameter. Does anyone here have a clue about that? If this is indeed not possible. This is a known limitation that is related to a question of whether an array is really a value. Several array enhancements including including one that addresses your concern have just recently been lumped together on bugzilla, indicating, I think, that that RunRev understands the question. Parameters in 'send' also have numberFormat applied to them if they are the result of arithmetic. The value() function has additional issues, IIRC. Do anyone here have a suggestion on how to pass an array to an arbitrary function of a stack that will only be known in runtime. Perhaps you can temporarily put the stack script into the front scripts. If you have control of the stack, you can change it to take a flattened stack. The array-as-value issue goes like this: In programming languages arrays are either a property of a variable (or otherwise related to variables) or a type of value. In Rev, arrays are in between, a straddling that adds to confusion, as in this case. Arrays should move off that limbo. Some folks like the notion that arrays should be first class values... that arrays should be allowed as elements of arrays, that array values returned from functions can be passed to other functions, that arrays should be allowed in send, and so on. You might want to look at Bug 3610 and all the others it consolidates and see if you agree. Being a Scheme programmer, Andre, you probably have a better grasp of the issues than, say, one whose background is in C programming. Dar Scott ___ use-revolution mailing list use-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: passing parameters in a send call.
On May 21, 2006, at 3:01 PM, Sarah Reichelt wrote: I always use something like: send myAdd pArrayA to stack someStack so that the variable is evaluated before the send. Hi, Sarah! I'll pick on two aspects of that. First of all, I haven't been convinced that there are any merits to this: send myCmd x comma y to ... Over this: send myCmd x, y to ... And it has some potential problems, such as when x contains a comma. (Also, the latter lends itself to some future (I hope) compiler optimization that compiles code that does not require runtime compiling.) Second, in this particular case where pArrayA is an array, the expression 'myAdd pArrayA' will resolve to myAdd . The array value looks empty to ''. Dar ___ use-revolution mailing list use-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: passing parameters in a send call.
On May 21, 2006, at 3:17 PM, Dar Scott wrote: If you have control of the stack, you can change it to take a flattened stack. Or better, pass the parameter through a global. Dar ___ use-revolution mailing list use-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: Math problems?
On May 21, 2006, at 5:48 PM, Mark Wieder wrote: Tacking an empty string before truncating always gives the correct answer. There are values for numberFormat that will break that. So, perhaps a value for numberFormat will need to be specified if that is the new trunc(). I had one time wondered if the fuzziness of Revolution numeric equality was based on the equality of formatted strings, but it does not seem to be. For that reason, I think the adjustment to trunc() should be based on the same method, not on string formatting. Dar Scott ___ use-revolution mailing list use-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: passing parameters in a send call.
On May 22, 2006, at 9:00 AM, Graham Samuel wrote: Isn't it true that send myCmd x,y to... just sends that exact string (minus the quotes) to the target: if so, the target environment can only resolve x and y if it's in the same name space as the script that did the sending (I mean if it is able to evaluate x and y), which is in general not true (after all, the point of handler parameters is to pass information from one context to another). So if I'm right send myCmd x , y to... first evaluates x and y in the context of the sender (which is what Sarah said) and therefore achieves the expected result, whereas the other method doesn't. Arrays being a special case may not work anyway, but I'm trying to make a more general point. I hope what I've just written makes sense. This makes sense. Jim created a counter example that shows this is not true for custom commands. (I don't remember all the details, but I think that that is not the case for built-in commands or for parameter expressions that refer to objects, so let's ignore those for now. Some of that is covered briefly in my Message Mechanics stack.) So the difference between 'do' and 'send' is small. Both compile and then execute the first step of evaluating parameters and bundling them up with the command name. Then that gets dropped down the message path. For 'do', it is the path starting at 'me', but for 'send' the path starts at the specified target (and at the clock time implied by the time delta) with a current stack switch. You can even include a comment in a 'send', but I don't know of any benefit. The method of building a 'send' message with literal parameters has problems with parameters contain quote marks or commas. Long ago I tried to come up with fancy ways to create the right literals until I discovered I could use variables in the command string. I now encourage that. Dar ___ use-revolution mailing list use-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: Math problems?
On May 22, 2006, at 11:06 AM, Mark Wieder wrote: I *do* regard tacking on an empty string to trick the parser as a hack, and I haven't tried it in conjunction with setting a non-default numberFormat. But I always thought numberFormat was a post-numeric-processing display thing. I had not thought of the process as trick the parser, but that is a good point. We are forcing compiling of something that causes a coerce-to-string to occur some place. For historical (HyperCard) reasons, the result of arithmetic is stored internally as a floating point number. If it is next used in arithmetic, this is pretty handy. But '' needs a string. Though some compiler optimization is possible, in general, that means checking the value to see if it is in fp or string format and then converting to string if the first. So--just guessing--the expression 'x' might be compiled like this: concatenate( toString( getLocalVar(x) ), toString( literal () ) ) So in a sense, the hack is to get at the toString(). (This is for illustration, the toString() might well be in the concatenate() function.) We like to think (ignoring arrays) that there is only one type of values in Rev. That is _almost_ true. We can tell that there are fp numbers inside. It would be nice if that was hidden. To do that would require a 1-to-1 correspondence between fp values and some string values. In that case, the fp would be some shortcut internal notation for those string values. Virtually*, everything would be strings. As far as the language is concerned or all these discussions, there is no other form; it's all strings. It makes no sense to get at toString(). There are no trunc() problems. Well, not quite. We still have the heritage of numberFormat. What I said would be true if numberFormat can then be ignored. That problem is both technical and political. Dar * Virtually -- literally from the view of the observer, but especially Don't panic, the geniuses at RunRev will make it run fast and do whatever is needed internally to make it cool. ___ use-revolution mailing list use-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: passing parameters in a send call.
On May 22, 2006, at 11:59 AM, Andre Garzia wrote: I could use a box-like approach as used by Dar Scott to generate strings that could hold multiple values. but this would add new API to my supposed-to-be easy module. The boxes module does handle arrays with arbitrary values in both the keys and in elements; it does not require a couple of reserved characters for flattening. (Note: some arbitrary values are not valid keys, though, for example, keys can't have NULs.) You can take some of those ideas. Hide the whole thing with some wrapper in your API, so the format is not visible. For the future, we might ask RunRev for a canonical string version of any array, even one with numbers or binary data or (future) subarrays or Unicode. This would allow for array literals. We can even pretend that all arrays are strings but somehow operations are fast. Dar ___ use-revolution mailing list use-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: date anomalies when converting to seconds
On May 22, 2006, at 12:30 PM, Chris Sheffield wrote: The dates I'm dealing with are entered by the user. The bad news is that 'convert' has side effects. It looks at system data and will modify the seconds clock and the time on some platforms and in some conditions. Paranoids build their own for delivered scripts. I think it is reasonable to ask RunRev for a pure function and to depreciate use of convert. The pure function should have exactly the same results on all platforms. Dar Scott ___ use-revolution mailing list use-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: spaces between each character?
On May 22, 2006, at 3:05 PM, Todd Geist wrote: I am loading an xml file into a field using put URL but there are spaces between each character. This looks like highly butchered Unicode. It looks like it was ASCII converted to UTF-16BE (the same as inserting NULs before each character for ASCII), then converted to some character set that changed the NULs to spaces and then converted to UTF-8 which inserted a 3-byte BOM at the front and then butchered by another conversion to louse up the leading 3 bytes. If you load it as binfile:, what are the first 6 byte codes? That might give a better clue. Dar Scott ___ use-revolution mailing list use-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: incomprehensible bug!? (from an idea of: passing parameters in a send call)
On May 23, 2006, at 9:28 AM, iMed Edition (AF) wrote: Who can understand why the test1() function will return TRUE and test2() FALSE with the script below? Yup. Looks like a bug and a serious one. Unless I'm not seeing something. I checked this out on OS X 10.4.6 with 2.7.1 within 'repeat for each line tLine...'. Works: put base64Decode(item 2 to -1 of tLine) into a[item 1 of tLine] or get item 2 of tLine put base64Decode(it) into a[item 1 of tLine] or get item 2 of tLine -- ! put base64Decode(item 2 of tLine) into a[item 1 of tLine] Fails: put base64Decode(item 2 of tLine) into a[item 1 of tLine] or put tLine into ttLine put base64Decode(item 2 of ttLine) into a[item 1 of tLine] Checking just before does confirm that itemdel is numToChar(9) and the number of items in tLine is 2 and that tLine looks good. To make this harder 'put item 2 of tLine' just before the decode fixes it, too, so this may be hard to debug. In failure only three characters seem to decoded, except for line 35. Dar Scott ___ use-revolution mailing list use-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: date anomalies when converting to seconds
On May 23, 2006, at 10:44 PM, Sarah Reichelt wrote: You're welcome. As everyone who reads these lists will know, I've done a lot of whinging about this problem. I would like a localSeconds that just got converted regardless of time zone, daylight savings or anything else, so that the same number always gave the same date time, no matter what computer it was converted on. This sounds much like the pure-function convert that I whine about. Is there an enhancement request in? Dar Scott ___ use-revolution mailing list use-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: date anomalies when converting to seconds
On May 24, 2006, at 8:29 AM, Dave Cragg wrote: The seconds value can't be used for dates and times beyond 3:14 am on January 18, 2038, which I guess translates into issues for the dateItems too. See here: http://home.netcom.com/~rogermw/Y2038.html Thank you! I have a vague memory of Windows having a 2035 problem, but I might be confusing it with this. I suppose this means that some 30-year loan calculations might break. Dar ___ use-revolution mailing list use-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: libeay32.dll and ssleay32.dll
On May 23, 2006, at 11:32 PM, Garrett Hylltun wrote: Working on the same program here for months now, but tonight all of a sudden when I compile a Windows exe from OS X, libeay32.dll and ssleay32.dll are now showing up in the output folder. I didn't add any new code, just moved a couple of lines of code down about 50 lines. What are these dll files for? And, any reason they would need to be with a windows exe? Those are for encryption related functions. You only need those if you use the functions. Dar Scott ___ use-revolution mailing list use-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: bug, strange behaviour of libraryStack.
On May 24, 2006, at 7:50 PM, Andre Garzia wrote: I have a global array which is fine. Then after a call to start using some stack, my global array vanishes, it turns empty any clue? Maybe the libraryStack is defined for that stack or in a script in in the message path (its main stack, another library stack, or a back script) and the script for libraryStack changes the global. In all libraryStack scripts confirm the target. (My style is to pass if it is not for this script, but some folks just ignore it.) Dar Scott ___ use-revolution mailing list use-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: bug, strange behaviour of libraryStack.
On May 24, 2006, at 9:11 PM, Andre Garzia wrote: I thought of that too, no libraryStack touches the global. Maybe some IDE message handler uses a variable by the same name? Are you renaming an object or creating an object or doing something that will create a message? Dar ___ use-revolution mailing list use-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: The ssl library again
On May 25, 2006, at 11:41 AM, Ken Ray wrote: I haven't used it myself, but you can download Dar Scott's presentation Ah, but I covered everything but what what Mark is trying to do. Dave is the expert there. Dar Scott ___ use-revolution mailing list use-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: The ssl library again
On May 25, 2006, at 11:12 AM, Mark Smith wrote: libUrlSetSSLVerification false -- or I simply get certificate errors put https://securesrveicename.wsdl; into tURL put URL tURL into fld Response simply times out, while using the shell 'curl' put https://securesrveicename.wsdl; into tURL get shell(curl tURL) put it into fld response gets the wsdl reliably, so the problem must surely be with the library, or at least libUrl, I think. I did a quick check of using https with 'libUrlSetSSLVerification false' and got a timeout error the first time (or maybe two) but got results after that. Maybe the timeout is too short. You might want to check the certificate. If the certificate is self- signed or signed by a private CA, then you need to get the public cert for the site. If it is signed by a public CA, then you need to find a rood cert. Whichever, you need to point to the file by putting the path into the sslCertificates. For some reason libUrlSetSSLVerification is not in the dictionary of the version of Rev I have up. Maybe it is not officially supported. But it is here: http://support.runrev.com/resources/liburlrealdocs.html What it does is very simple. It might be that the server is also expecting a certificate from the client and for some reason that creates a timeout error. Yet curl works, so that is not likely. Dar Scott ___ use-revolution mailing list use-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: Unicode sorting
On May 25, 2006, at 4:19 PM, Devin Asay wrote: I have a need to sort long lists of Cyrillic unicode text according to Russian alphabet order. Before I start writing my own routine, has anyone figured out how to sort unicode text lists? Here are some hints: 1. Trick: If you are sorting strings with only characters from the same 256 character range, then byte-order doesn't matter when doing a lexical sort. For example, if all your characters are in the Cyrillic range of U+0400 to U+04FF, then you can use an ordinary byte character sort. However, if you have spaces (U+0020) then you will need to replace them with something else for sorting or make sure you have control over order. 2. If the high byte if the Unicode characters never looks like a digit then you can compare with (probably not important if using 'sort'). 3. The basic alphabet of a language is typically coded in roughly the order needed for sorting. That rough order may be just fine for your need. 4. Conversion from lower to upper or upper to lower for sorting is often just a bit-logic operation. However, since you usually have to do range checking, then adding or subtracting an offset works fine, too. If you know you have only basic upper and lower letters, doing the bit op every time is probably faster. This should work for a rough sort. 5. The basic alphabet of a language in unicode might include characters you don't use. That is OK as long as the ones you do use are coded in the right order. The holes don't matter. Dar ___ use-revolution mailing list use-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: The ssl library again
On May 26, 2006, at 7:32 AM, Dave Cragg wrote: It seems the secure socket is being opened OK (at least the Rev engine thinks so), and the timeouts are occurring on the first read immediately after writing the request. On further checking, it seems the first write to the socket (writing the request headers) is timing out. Also happening on OS X 10.3.9. Is this with cert checking both on and off? Dar ___ use-revolution mailing list use-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: The ssl library again
On May 26, 2006, at 11:08 AM, Mark Smith wrote: Setting the sslcertificates to this now means that I can get the wsdl without using the shell, and with verification on, though every other attempt (or thereabouts) times out. I'm not sure I'm parsing every other right. Does this mean you still get timeouts even with verification on? Dar Scott ___ use-revolution mailing list use-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: Now a TCP Question
On May 26, 2006, at 12:45 PM, Jim Ault wrote: These two stacks run successfully on both the same computer and two that I have on my network, either with DHCP address or each having a static IP address. Now the outside world... Are you saying you cannot make a TCP connection to a server out on the Internet? You might want to check your firewall settings. Dar Scott ___ use-revolution mailing list use-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: Unicode sorting
On May 26, 2006, at 3:57 PM, Devin Asay wrote: A 'sort lines' command, after converting upper case to lower, works fairly well, except that, curiously, a space sorts *after* all cyrillic chars. That's weird. Space is U+0020. The basic Cyrillic lower case seem to be U+0430 to U+044F, where 'a' is U+0430. So if your system is UTF16BE (Mac), space, hex 00 20, should sort before 'a', hex 04 30, and small YA, hex 04 4F. If you system is UTF16LE (Win), space, hex 20 00, should sort before 'a', hex 30 04, and YA, hex 4F 04. Or am I really mixed up on what you are doing? (If you convert to upper case and are on Windows the space will sort in the middle.) Dar ___ use-revolution mailing list use-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: Unicode sorting
On May 26, 2006, at 3:57 PM, Devin Asay wrote: A 'sort lines' command, after converting upper case to lower, works fairly well, except that, curiously, a space sorts *after* all cyrillic chars. I think I figured out what it is. 'sort' seems to see NUL as the end of the string and U+0020 has virtually a NUL in it. Try this test: on mouseUp put a NULL z lf a NULL b into d sort d replace NULL with x in d put d end mouseUp == axz axb We have been bitten by C again. Dar ___ use-revolution mailing list use-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: Unicode sorting
On May 27, 2006, at 9:12 AM, Devin Asay wrote: For the Russian (don't know if this will come thru in your email reader): Я вижу вас. The unicode is (omitting the U+ convention): 042F 0020 0432 0438 0436 0443 0020 0432 0430 0441 002E But what rev is seeing during sort is a series of single byte chars, with leading null bytes of basic latin range chars ignored: 04 2F 20 04 32 04 38 04 36 04 43 20 04 32 04 30 04 41 2E Since all of the first bytes of the Cyrillic range are 04 ( 20), they are always sorted *before* virtually everything in lower ascii range. The letters came through. But the NUL characters are not dropped unless you are doing something to drop them. But if they are dropped, then that will happen. I see you have a period in your characters. Perhaps you have other characters outside Russian Cyrillic. I forgot about the line ends in sort. Those can come up in the middle of Unicode characters in general. I wonder if a sort of the utf8 of the Cyrillic to-lower would be close. The idea below is probably better in general. Try something roughly like this (not tested; typed in raw): function sortRussian utf16RussianList -- use utf8 to get rid of NULs and extra line ends put uniDecode(utf16RussianList, UTF8) into utf8RussianList sort lines of utf8RussianList text by russianLex(each) return utf8RussianList end sortRussian -- returns string suitable for lexical comparison (Rev sort text) -- of a utf8 string made up of Russian subset of Cyrillic plus some ASCII function russianLex utf8RussianLine -- Add adjustments for special words here put uniEncode(utf8RussianLine, UTF8) into utf16RussianLine put empty into lex repeat with i = 1 to length(utf16RussianLine)-1 step 2 -- uniCode char loop put char i to i+1 of utf16RussianLine into utf16RussianChar -- Add char dropping tests here put sortCodeFromRussianChar( utf16RussianChar) into sortNumber put numTochar( sortNumber ) after lex -- use 1-byte chars for sorting end repeat return lex end russianLex -- returns number in range 1 to 255 indicating sort position of -- allowed characters function sortCodeFromRussianChar utf16Char set the useUnicode to true put charToNum(utf16Char) into unicodePoint switch unicodePoint case 0x0020 -- space get 1 break ... default get 255 end switch return it end sortCodeFromRussianChar This will take some debugging. In this approach above, one-byte chars are used for sorting. An alternative is to use two ASCII chars, space-char, for the ASCII subset and two letters that sort right for the Cyrillic. That would make testing easier for russianLex(). I remember from yesterday that yo or ye or something (two dots over e) was not in the basic Russian group, so you will need to handle it separate from the basic Russian range. BTW, for those not familiar with using customFun(each) in sort, customFun() seems to be called only once for each line; it is not called twice for each comparison. I am not in favor of a Unicode sort option. I'll elaborate later. I have a couple goals to meet by tonight. Dar ___ use-revolution mailing list use-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: set the dontwrap
On May 28, 2006, at 1:55 PM, BRAMI wrote: set the dontwrap of field example to true works fine set the dontwrap of field example to false doesnt work I have not seen a problem. Wrapping requires white space such as as a space character to break up lines. Try putting some spaces in your test lines. There is a bug related to fields with any lines longer than about 32000 pixels before wrapping. So if you have very long lines, that could be the problem. Dar Scott ___ use-revolution mailing list use-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: base64 '='
On May 29, 2006, at 6:54 AM, sims wrote: At 1:47 PM +0200 5/29/06, sims wrote: iow - does it make any difference if there is 1 or 2 equal signs at the end? With strings I've tested here it doesn't seem to make a difference. Never-mind... seems to be some divisible by 4 'thang'...I'm going to try another approach to this small puzzle. If you need to get rid of one character from the set of characters, you might consider the line end. The line end is part of the standard, but the Rev decode does not need it. Dar ___ use-revolution mailing list use-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: Unicode sorting
On May 30, 2006, at 5:08 PM, Devin Asay wrote: ## Devin's changes - it turns out leaving the code points in decimal works perfectly, ## and I only had to make a couple of adjustments. if unicodePoint 1039 and unicodePoint 1072 then -- ignore case add 32 to unicodePoint else if unicodePoint = 1105 then -- sort 'yo' with 'ye' put 1077 into unicodePoint end if ## But the rest of it assumes sortCodeFromRussianChar returns 1 to 255. You might want to shift the Cyrillic to the upper range of that and leave the ASCII in the lower. Dar ___ use-revolution mailing list use-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: snapshot and imageData...
On May 31, 2006, at 8:48 AM, jbv wrote: the 2nd image is just a black rect; although the imagedata contains more than 5 Mb of binary, it seems that they're all zeros... It might be that Rev is gagging on the large JPEG. Perhaps, this works better with PNG. Dar ___ use-revolution mailing list use-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: snapshot and imageData...
On May 31, 2006, at 12:45 PM, jbv wrote: I wonder if there's a way to know when the import snapshot is completed to start further processing of the imageData... Candidates might be... unlock screen wait Dar Scott ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Meaning of language names
Several places in Revolution as in font names, htmlText, uniDecode(), and uniEncode() the word language is used to designate the character encoding. The value for language is not the name of some standard, it seems, but is some other name, often the name of a natural language. Presumably there is some map from the Revolution names to the character encoding standard. Is that arbitrary, or based on some Internet standard such as an IANA standard or the MIME standard, or based on some Font standard? How do I get from the Revolution names for character encodings to the standards? Does the language in this context ever indicate anything other than character encoding to Revolution? Dar ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
No Ask/Answer dialogs with 2.7.1 on XP -- 11th hour
I've been using 2.7.1 on XP for a while and am now wrapping up a project. Just need to do some file I/O. Only ask and answer do not work. I get a flicker on the screen I think. Otherwise nothing. They work on 2.7.1 on OS X. Could I be missing some file? Dar Scott ___ use-revolution mailing list use-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: No Ask/Answer dialogs with 2.7.1 on XP -- 11th hour
On May 31, 2006, at 11:28 PM, Dar Scott wrote: I've been using 2.7.1 on XP for a while and am now wrapping up a project. Just need to do some file I/O. Only ask and answer do not work. I get a flicker on the screen I think. Otherwise nothing. They work on 2.7.1 on OS X. Could I be missing some file? I just had to restart Rev. -- dar ___ use-revolution mailing list use-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: Unicode sorting
Wow! Great news for sorting Unicode! On May 30, 2006, at 5:08 PM, Devin Asay wrote: I got your code to work by making some simple changes in the sortCodeFromRussian function: Deven, I've been processing some bits of UTF-8, and something dawned on me that is probably known by the Unicode experts. A lexical byte sort of well-formed UTF-8 will result in a Unicode code point sort! * That avoids the NUL problem in sort. That means that russianLex() can return the UTF-8 of the string with your character conversions. I think the replace command will work with UTF-8, so you can even avoid a character loop. All you need is 34 replaces and then a return. OK, that might actually be slower than a character loop. Dar Unicode Sophomore ___ use-revolution mailing list use-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: Unicode sorting
On Jun 2, 2006, at 9:45 AM, Devin Asay wrote: replace Ж with ж in lList I didn't know you could do that with the current editor. I had been suggesting a way to do that kind of thing using UTF-8 and was hoping an script editor publisher would pick up on it. However, the 2.7.1 editor uses host order UTF-16, which is pretty silly since you can end up with problems like this: replace quote with т in lList --U.C. Russ T has #0022 as byte 2 (= ascii quote char) And that solution isn't quite right and isn't close on other platforms. Not only that but strings like Ж is zhe are garbled. Who knows what happens with characters in the high range of the rev traditional host character encoding. The right way to do this until we get full Unicode is to make this UTF8. The bad news is that some folks might be already using this and assuming Unicode and where it does not work, adding lots of ad hoc fixes. UTF-8! Why? There are no hidden ASCII chars in UTF-8. I mean 7-bit true ASCII. If it looks like an ASCII char, it is. All non-ASCII chars are represented by a sequence of bytes with the high-bit set. With a minor exceptions that can be taken care of (= single char, format(), etc) this means that UTF-8 with Unicode in comments and quoted literals will parse OK. There might be a surprise, of course. This is also why item and line parsing works fine with UTF-8. There are no hidden commas and line ends. Dar ___ use-revolution mailing list use-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: Unicode sorting
On Jun 2, 2006, at 2:12 PM, Dar Scott wrote: On Jun 2, 2006, at 9:45 AM, Devin Asay wrote: replace Ж with ж in lList I didn't know you could do that with the current editor. I had been suggesting a way to do that kind of thing using UTF-8 and was hoping an script editor publisher would pick up on it. Hmmm. The UTF-8 method would not work for those still using characters from the high range of the traditional host-based character encoding and expecting it to be in that encoding. A script editor publisher should supply a switch to turn that off. Well, I hope all this is temporary. Dar___ use-revolution mailing list use-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: Unicode sorting
On Jun 2, 2006, at 2:57 PM, Devin Asay wrote: You're starting to convince me that UTF is the way to go. 8 UTF-8 I'm starting to convince myself, too. Dar ___ use-revolution mailing list use-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: Random(3) often returns 1
On Jun 8, 2006, at 7:00 AM, Sarah Reichelt wrote: I think if you sort using only the number of lines as your randomiser, you will get some lines with the same sort value and so their order will remain the same. When doing this type of sort, I alwasy got for a ridiculously large randome number to reduce this possibility e.g. sort lines of fld Answers by random(100) This is right. Function random() is called once for each line, assigning that a number to that line. That number is used to sort the lines. The smaller the parameter to random, the greater the chance that two lines end up with the same number. If two lines have the same number, they will sort in the same order that they had. (There is also a minor problem that random(n) has will favor smaller numbers for n100,000,000. Also, don't use n2,000,000,000. Sarah's n=1,000,000 is good.) Dar Scott ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
item random() (was Random(3) often returns 1)
On Jun 8, 2006, at 11:05 AM, Mark Smith wrote: 341,344,345 1030 328,326,329 983 348,346,347 1041 331,334,335 1000 321,323,322 966 337,340,339 1016 317,318,316 951 310,308,309 927 345,345,346 1036 352,355,350 1057 not at all as expected My variation: on mouseUp set the cursor to watch put empty into field field repeat with n = 10 to 35 set the randomSeed to n put 0,0,0 into counters1 get random(3) add 1 to item it of counters1 set the randomSeed to n put 0,0,0 into counters2 add 1 to item random(3) of counters2 if counters1 is not counters2 then put n tab counters1 tab counters2 lf after field field set the scroll of field field to 10 end if end repeat end mouseUp == 11 0,0,1 0,1,0 12 0,1,0 1,0,0 13 0,1,0 0,0,1 18 0,0,1 0,1,0 19 0,0,1 1,0,0 20 0,1,0 0,0,1 23 1,0,0 0,0,1 24 1,0,0 0,1,0 25 0,0,1 0,1,0 26 0,0,1 1,0,0 29 0,1,0 1,0,0 30 1,0,0 0,0,1 31 1,0,0 0,1,0 33 0,0,1 1,0,0 This repeats with the same result every time (I'm setting randomSeed). Rev 2.7.1 OS X 10.4.6 This looks a lot like the base64Decode bug that was fixed for 2.7.2. Dar Scott ___ use-revolution mailing list use-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: HTTPS and Root.pem...
On Jun 5, 2005, at 1:54 PM, Andre Garzia wrote: still no luck in the HTTPS field, can someone send me the root.pem file? my email is [EMAIL PROTECTED] On OS X look for TrustedCerts.pem; it works for testing. I'll mention .pem issues briefly at the end of my talk at RevCon. See you then! Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: HTTPS and Root.pem...
On Jun 5, 2005, at 1:54 PM, Andre Garzia wrote: error -Error with certificate at depth: 1 issuer = /C=ZA/ST=Western Cape/L=Cape Town/O=Thawte Consulting cc/OU=Certification Services Division/CN=Thawte Server CA/[EMAIL PROTECTED] subject = /C=ZA/O=Thawte Consulting (Pty) Ltd./CN=Thawte SSL Domain CA err 20:unable to get local issuer certificate Hmmm. The problem may be more than the .pem. If that doesn't fix it, let us know. Gotta run. Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: HTTPS and Root.pem...
On Jun 5, 2005, at 3:08 PM, Andre Garzia wrote: It's Rev 2.5 rc 2 here. There are some important differences between 2.5 and 2.5.1 in the handling of certificates. I don't know if that would apply to your problem. Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: HTTPS and Root.pem...
On Jun 5, 2005, at 3:08 PM, Andre Garzia wrote: error -Error with certificate at depth: 1 issuer = /C=ZA/ST=Western Cape/L=Cape Town/O=Thawte Consulting cc/OU=Certification Services Division/CN=Thawte Server CA/[EMAIL PROTECTED] subject = /C=ZA/O=Thawte Consulting (Pty) Ltd./CN=Thawte SSL Domain CA err 20:unable to get local issuer certificate or they return error Error loading CA file and/or directory /Users/andregar/Desktop/thawte-roots/Thawte Code Signing CA.cer I wonder if what you are seeing is not your error, but the server's error. The server might be expecting a certificate from the client. That would be reasonable in a situation like yours where you are using post. However, I don't think Revolution can supply a certificate to a server, yet. I don't know how to specify it if the ability is there. That is, maybe the server wants to know you are who you say you are, too. That is, it looks like a problem in the local lookup, but local to whom? Maybe you can sneak up on this. Try getting a simple https page from a popular server. Then try getting a page from the server in question. If that fails, try it with a web browser; maybe the sever has a bad cert. Try a post with some other tool. Maybe then you have learned what you need to do the post. I hope you get this solved before RevCon. I can then pass all the hard SSL questions on to you! Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: HTTPS and Root.pem...
On Jun 5, 2005, at 7:30 PM, Andre Garzia wrote: I'd like to go like the open secure socket command where I can simply choose to ignore verification. Maybe for this specific post you can. Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: HTTPS and Root.pem...
On Jun 5, 2005, at 8:19 PM, Andre Garzia wrote: I haven't found any optional parameter to the post command that would allow me to ignore that error... is there any? like: post myData to url https://myserver/mycgi.cgi; without verification I don't know of any. I'm assuming Dave will jump in soon and give some advice on using libURL. You might have to build your own post and then use open secure without verification. Can you post with your web browser? Or at least get past the authentication? Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: HTTPS and Root.pem...
I've been thinking about your error. On Jun 5, 2005, at 3:08 PM, Andre Garzia wrote: error -Error with certificate at depth: 1 The depth starts at 0. The error is for the next depth, the signer. issuer = /C=ZA /ST=Western Cape /L=Cape Town /O=Thawte Consulting cc /OU=Certification Services Division /CN=Thawte Server CA/[EMAIL PROTECTED] subject = /C=ZA /O=Thawte Consulting (Pty) Ltd. /CN=Thawte SSL Domain CA err 20:unable to get local issuer certificate There are separate errors for expiration, but maybe expiration at this level is enforced by new CA certificates. This sure looks like you have the wrong .pem, try the openSSL with a site you know will work. You should not get the 20. It might be that your server has a forged or old signature. Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: HTTPS and Root.pem...
On Jun 6, 2005, at 9:05 AM, Andre Garzia wrote: libUrlSetSSLVerification false THANK YOU FOR EVER! In some uses this is what is desired and needed. In your case, Andre, I suspect you need this for development and demo, but something is wrong that still has to be resolved. I wish you well on that. Yesterday, you were writing post and, in my tiredness, I kept reading put, so my comments might be weird. Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Uh-oh.... Anybody following WWDC?
On Jun 6, 2005, at 12:24 PM, Mark Wieder wrote: Also, Apple is creating a serious hardware problem for itself in the short run. Boy, am I glad I didn't buy that new mac mini earlier this year. Would I buy a new PowerPC-based computer, knowing that its CPU has just been end-of-lifed and that newly-produced software won't run on it soon? Not on your life. Maybe a PowerPC-based Mac Mini is just the thing for supporting a certain class of customers. Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Yahoo! RevCon West in 11 days! ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Uh-oh.... Anybody following WWDC?
On Jun 6, 2005, at 12:19 PM, Andre Garzia wrote: For the love of God, all my objC code will need a rebuild, also all externals for mac will need one too... One would hope that would be trivial and can be done overnight, but there are likely to be compromises that have to be addressed by hand. Even then, that might not be so bad. Also, who will buy a G5 now? That may the bigger issue. If the Apple plane goes into a nose-dive, I might not get my soda and peanuts. You might not get that mass conversion utility. I wonder if this means more freeBSD utilities will be available. This may not mean that OS X can run on a PC or the other way around. Is this related to Metrowerks selling their '86 compiler? In our scripts we should not depend on OS X as an indicator of byte order. Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ A pig's gotta fly. -- Porco Rosso ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: two questions (was Re: Uh-oh.... Anybody following WWDC?)
On Jun 6, 2005, at 12:47 PM, Andre Garzia wrote: and the thing about little endian and big endian? anyone assuming byte orders and stuff like that will be doomed to the hell of debugging. We can stop making those assumptions right now. Untested... function platformIsBigEndian return (char 1 of binaryEncode(I,1)) is null end platformIsBigEndian Note that some processors, maybe not that Rev is on, use a middle endian mixed approach for 32-bit integers. Presumably, this will match the unicode (UTF16) order used by Revolution, but if you are paranoid you can make a similar test using numTochar(): -- just keyed into the mail -- This assume unicode is some form of UTF16 function unicodeIsUTF16BE set the useUnicode to true return (char 1 of numToChar(1)) is null end unicodeIsUTF16BE Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: two questions (was Re: Uh-oh.... Anybody following WWDC?)
On Jun 6, 2005, at 1:09 PM, Andre Garzia wrote: Thanks for the tests Dar, that was not my major fear, what I really fear is that the sales of PPC machines will drop so much out of FUD that apple will have a hard time... I think I am afraid of their profits sinking and things going all like armagedon... Not to mention all the OS X fans, who, recently recommending OS X on G5 to Mac and Windows friends, have left town. I think you are right. This is where the risk is. This is hard for me. When I recently looked at Windows and Linux and OS X servers, I recommended OS X. However, there are some things we have little control over. And some things we do. Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Let's talk about it at RevCon West! ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Uh-oh.... Anybody following WWDC?
On Jun 6, 2005, at 1:34 PM, Devin Asay wrote: Forgive the double posting, but I sent my previous message before I noticed this thread. Disregard the 'Apple to Intel--It's true' thread. Forgiven. However it was timely and added new info. And not noticing a thread is reasonable when you have something hot is quite understandable and appropriate. I appreciate your desire to share this with us. Maybe this would be a good hallway and Friday night discussion topic at RevCon. -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ I'll be at RevCon! You should come anyway! ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to find and replace
On Jun 6, 2005, at 2:36 PM, Christian Langers wrote: I need to do the following : repeat with x=1 to the number of chars of the clicktext+5 put _ after char x of tChar end repeat replace the clicktext with tChar in fld 1 where i want the exact word to be replaced... e.g. I click da and I just want this to be replaced in the field (not das, Dach,Dame,...) How can I solve this ? A regular expression may include \b to match at a word boundary, even at the start or end of a string. Perhaps you can build up a regular expression and use replaceText(). (A word is a sequence of ASCII underscore, letter or digit that is bound by non-word characters or string boundary.) The replaceText() function is improved for speed in Revolution 2.6, I understand. Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: two questions (was Re: Uh-oh.... Anybody following WWDC?)
On Jun 6, 2005, at 2:18 PM, Andre Garzia wrote: We will be providing complete support for this transition. I knew you guys would :D I think we Revolutionaries are very fortunate. Runrev has the experience and motivation for this. We still need to script smart and watch our assumptions. And gentle encouragement for RunRev is always good! Or rioting. Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Functions and repeat for each
On Jun 7, 2005, at 6:24 AM, ron barber wrote: put uniencode(return,Japanese) into unireturn repeat for each line l in thetext put uniencode(l,Japanese)unireturn after newtext end repeat set the unicodetext of fld Utext to newtext is much much faster as the size of thetext gets large than: set the unicodetext of fld Utext to uniencode(thetext,Japanese) This is surprising. I have run some tests on 'put after' in the past and it seems to behave as if some overhead such as reallocating memory occurs every so often. That will tend to spread the reallocation cost. It might be that uniEncode() will after a point get to reallocating memory for every character. This is wild speculation. This seems also to be true of the replacetext function as of 2.5 (I haven't tried the reportedly improved 2.6 yet) viz. This: repeat for each line l in thetext put replacetext (thetext,oldword,newword)return after newtext end repeat is faster than: put replacetext (thetext,oldword,newword)return into newtext when thetext is very large. Why is this true and is it generally known and I just missed it? Yes. This is known. It might be that it is starting over after each replace. I tinkered with the new replaceText() and it seems to work. -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Processes keep running in Windows after quit
On Jun 7, 2005, at 7:08 AM, Mark Schonewille wrote: When I close a Rev 2.5.1 standalone in Windows using the close box in the top-right of the window, the process appears to keep running, even if the closeStackRequest contains a quit command. That can be caused by a nonempty message queue. The popular clock script going around might do that. It doesn't have a graceful way to stop, the last I saw. Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: here is the CLOCKFACE script...coded in 3 MINUTES...17 LINES of CODE
On Jun 8, 2005, at 8:04 AM, Geoff Canyon wrote: Let me know what you think. You can even put the advance for the minute hand and for the hour hand in separate send cycles that can be approximate. Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Yahoo! RevCon West in 10 days! ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Strange regexp problem
On Jun 8, 2005, at 9:54 AM, Kaveh Bazargan wrote: I am getting a strange behavior, which I think started recently on some stacks which were working OK before. I see this in 2.6. There was some performance enhancements made for replaceText for 2.6, so this is probably a bug in that. Bugzilla! Dar ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Strange regexp problem
On Jun 8, 2005, at 10:25 AM, Kaveh Bazargan wrote: I see this in 2.6. There was some performance enhancements made for replaceText for 2.6, so this is probably a bug in that. Bugzilla! You're right. Back to 2.5! Thanks. Maybe we can get a quick fix if this gets into Bugzilla. Got the time? Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Call vs Send
On Jun 8, 2005, at 1:54 PM, Dennis Brown wrote: I have two versions of a script. The first uses an implicit send and works. The second uses a call and does not work. I was trying to simplify and expand my scripting abilities with call, but I must be missing something, because I can't see what is wrong with it. I appreciate any insights. There are some differences between the 1) implicit send or invocation and 2) send call. There are also differences between send and call. They might not apply to this particular case, but they might to some things you might try. The 'me' refers to the object that holds the script. An alternative you can use is 'the target' which is the name of the object that the original (top level) message was sent to. That is changed on a send or call. A send or call can have parameters. In your case you might be able to use 'the target' unless it runs into ambiguity problems. You might be better off passing 'the id of me' and letting the support function get what it needs from that. Like this: saveMeTxt the long id of me Unfortunately, 'the target' is suitable in only well controlled cases. It might not uniquely identify the target. (There is also an unsupported way.) dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Call vs Send
On Jun 8, 2005, at 2:48 PM, Andre Garzia wrote: (There is also an unsupported way.) now, I am curious... the executionContexts ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Call vs Send
On Jun 8, 2005, at 3:03 PM, Dennis Brown wrote: Yes, you see my problem exactly. It is the target that returns the name of my field, but the group name is left off which is bad for me because I have the same name repeated in many differently named groups. I have groups of fields and buttons that are created from templates on the fly, along with many saved values for each (in custom properties). These are related to various setup conditions for running simulations. I obviously want the minimum scripts in the duplicates, and most of the script in a common place where changes are manageable. I am already using a script that pass the name and group to the handler, but I wanted to make it even simpler and just call the routine without generating a parameter to pass. This is a problem that I have in making custom controls. The simplest thing to do is pass 'the long id of me' and use that to get the owner and siblings. This deserves a new feature suggestion. Changing 'the target' might break some code. Adding idiomatic meaning to 'the long id of the target' might be confusing. Maybe 'the target' can be an object whose text meaning is what it is now, but will work with 'the long id of'. The same with 'the owner of'. That is, 'the target' and 'the owner of' are objects. I might be confused as to what is happening. Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Call vs Send
On Jun 8, 2005, at 3:16 PM, Dick Kriesel wrote: You can find the name of the group that contains the target in the long name of the target. That only gets you the name of a group that contains something with the same name as the target. Unlike 'me', 'the target' does not uniquely identify the desired object. Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Call vs Send
On Jun 8, 2005, at 5:13 PM, Robert Brenstein wrote: Similarly get the id of the target returns the proper, and unique, id of the button clicked. So while the target itself returns incomplete description to uniquely identify an object, it can still be used to get unique identification as far as I can see. You are right. I even tried the long id. I even tried it in a card handler called by the mouseup. I must have slipped universes again. Where I came from that didn't work. We had to use 'me'. Sigh. Dar ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Call vs Send
On Jun 9, 2005, at 9:51 PM, Richard Gaskin wrote: What are the relative timings of handlers in the message path vs. handlers outside? About twice as long, but as with many benchmarks with Transcript it hardly matters: twice as long sounds like a big deal, but on my 1GHz G4 that's still less than a microsecond. :) Do you mean millisecond? I find addition to be less than a microsecond, but a path call is 8 to 15 microseconds for the 3rd invocation and up. A send or call takes 50 to 70 microseconds for the 3rd call and up. (2 short parameters) Maybe we should compare notes. This is on a dual 1.25 GHz G4. Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Yahoo! RevCon West in one week! ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Slide Show on OS X
I'm putting together a slide show that I want to have some smarts. I'm thinking of using a stack that can be run in Revolution or as a standalone. I'd like for this to run on OS X, but Windows will be a nice plus. Any advice or pointers? Can this even be done? I'm concerned about that menu bar. Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Slide Show on OS X
On Jun 11, 2005, at 1:01 PM, Andre Garzia wrote: I trust this will be for your SSL track! :D What a good idea! :D And since the title has SSL in it, I should include something on that, too. setting the stack to the screenrect and hiding the menubar (and taskbar in windows). there's a hide menubar that will hide that stuff. hide menubar That's what I could not remember. Remember to put something like a contextual menu or a keydown handler to quit the stack, once I got myself locked in a stack with no decorations, sized to the screensize and it stayed on top too.. irgh. LOL! I'm going to put in a couple methods! Thanks! Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Slide Show on OS X
On Jun 12, 2005, at 7:30 PM, Ken Ray wrote: I'm using Rev also for presenting at RevCon... I've got it so that if you command-click on the left or right side of the stack, it navigates to the previous/next card with a visual effect: I'm trying to use function keys for slide control and they do weird things like paste and clear stack properties. Does the IDE use function keys? Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: What happened to maskData?
On Jun 16, 2005, at 4:09 PM, Derek Bump wrote: on mouseUp set the alphaData of img 1 to (the imageData of img 2) end mouseUp Revolution really didn't like this, and crashed every time I clicked the button. :) Does this work for you or anyone else? This is not a good excuse for crashing, of course. However, alphaData is one byte per pixel and image data is four bytes per pixel (Dummy and RGB). The shape must match. Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Food Fight
On Jun 19, 2005, at 11:31 PM, Richard Gaskin wrote: Erik Hansen wrote: the heated emotions over scripting conventions, literally involving a food fight, Yes, for the record let it be known that none other than the otherwise-mild-mannered Dar Scott threw food at Ken and I during our discussion of Hungarian-lite notation, complete with a flailing of arms and shouts of Keep your purity out of my code! Since they were packages of peanut butter MMs and were rather good, Dar has been invited to throw food at all presenters at all future Rev conferences. In truth, I'd rather not use Hungarian-lite on parameters and handler-local variables and I think publisher_module_ prefixes on command and function names can get long. (Though I would use those if a customer asks for them in a coding standard.) However, Ken and Richard were quite persuasive, made some good arguments, and were not pushy at all. I had to applaud and I almost regretted buying all that throwable food at the corner market. Almost. I did hear references to anarchist after that. Dar Scott ___ use-revolution mailing list use-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: Looping problem
On Jun 20, 2005, at 5:01 PM, Glen Bojsza wrote: The scope is to have a number of locations and the minimum path connecting the locations. This looks like it might be a variation on the traveling salesman problem and you might find lots of references to approaches to solutions to that. Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-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: Food Fight
On Jun 20, 2005, at 3:18 PM, J. Landman Gay wrote: I had to applaud and I almost regretted buying all that throwable food at the corner market. Almost. For myself, the food fight was a highlight of the conference. Enlisting Andre's throwing arm was a good move, and my only regret was that the speakers were so cogent that we could not find a time during their actual talk to do the throwing. We had to wait till the end. See that we. You might suspect there was a conspiracy. You might even wonder who actually threw food. The dynamics of these underground organizations can get quite complicated. Dar ___ use-revolution mailing list use-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: Dev Tool Bugs, Assumptions, and a Tiny Bit of Advice
On Jun 21, 2005, at 2:28 PM, jbv wrote: There's another recipe that I've been using for years : Perhaps these have in common the mental block, the assumption, the think I Know, that gets in the way. Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-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: License key not saved between launches
On Jun 21, 2005, at 1:49 PM, Steve Wright Jr. wrote: I'm installing Revolution and Revolution Dreamcard 2.6 under Mac OS X 10.4. At each launch, I'm prompted to enter my license key information. It is never saved. I have not seen this in Revolution, but I have seen it in other applications. I only have Revolution Enterprise installed, so I would not see any interaction between Dreamcard and Revolution should that be the problem. Dar Scott -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-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: compileIt for revolution?
On Jun 22, 2005, at 1:45 PM, Dr.John R.Vokey wrote: The simplest possibility for the external route would be to be able to pass (and use) to and from the external, handles to large RAM-based sets of floating-point numbers; that was the solution I used in Hypercard back when the Earth was still cooling, and it worked very well. Would either RPN or the use of external-side variables by name be just as usable to you? Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-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: compileIt for Revolution?
On Jun 22, 2005, at 8:46 PM, Eric Engle wrote: So why use := ? Some people prefer pre-fixing affectation, and as I said, it is supported in lingo which is also a pascal derived language. In fact, I know of no other language that post-fixes affectation (put value into variable as opposed to affect(variable, value). Hell, I'd even prefer let variable = value. I like put value into variable, but would much prefer := to = (which looks like equality) or let variable = value (which looks like the variable does not change over scope). To me let has a particular mathematical meaning and its usage in basic is grating. The language Savvy used put value into variable. I am not familiar with affectation for assignment. This is probably a hole in my knowledge. Perhaps it is distinct in some way so assignment can be more general or more specific; perhaps it is borrowed from the French. One main advantage of put value into variable is that it emphasizes the container model. On big problem is that terms like RHS (value) and LHS (variable) get confusing. Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-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: the := operator (affectation
On Jun 23, 2005, at 11:17 AM, Dennis Brown wrote: The get x construct is already a syntactic equivalent of it= x (left assignment). That could be expanded to the general form it gets x. Now we have a general xTalk flavored version using the new gets keyword. From there just substitute any shortcut for gets like gts or =. There you have it. Elegance, consistency, and brevity! There is nothing elegant about = for assignment. IMHO, := is much superior and is less offensive. In mathematics = is a relation or sometimes a function or sometimes used in where or let syntax (named value scoping). Commands in xTalk follow the English implied-you imperatives. The deviation from that to a descriptive of the dataflow does not fit. I come from a functional programming background, but I accept the imperative style. Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-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: the := operator (affectation
On Jun 23, 2005, at 4:13 AM, Marielle Lange wrote: But I like the fact that there is a different logic for properties and variables. set the width to 100 put 100 into myVar I'm curious as to why you like the different syntaxes? I sometimes accidently try to use 'put' when I need 'set'. The 'the' word can differentiate, so 'set' is redundant. Redundancy can be good; it catches errors. However, in this case the word 'set' and the word 'the' are next to each other. We might consider making 'the' optional, but it is needed in expressions containing properties. Perhaps there is a model or view that I'm missing that 'set' and 'put into' differentiate. Perhaps one advantage of 'set' over 'put' is that it emphasizes that chunks are not allowed. I don't know why they would not be if we have a simple as if model of what happens. I would not mind if 'put' be allowed for properties and even chunks were allowed. Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-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: Confirm Long File Name Bug in Player Object
On Jun 23, 2005, at 1:08 PM, Scott Rossi wrote: I would set this at Blocker status because it prevents playback of otherwise playable media. I don't agree with that. First of all, somebody will have a workaround command (3 minutes; 17 lines) shortly after I mail this. Second, blocker means it blocks development testing. The developer can temporarily shorten the names and continue development and testing until a workaround or fix is available. Or did I miss something? Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-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: Confirm Long File Name Bug in Player Object
On Jun 23, 2005, at 3:03 PM, Sivakatirswami wrote: So, we are stuck... mmm. I guess i'll have to implement a work around to preserve the long file names in some custom prop, field or global, truncate the file name on disk... reset the player to the truncated file name... all on the fly, when the transcriber finishes work, restore the file to it's original name.. export the matching .xml file (of the transcript and metadata from the discourse) with the long name... all doable, wish me luck! Truncating and then restoring the file name might leave the name shortened on a crash or other abnormal exit, unless you do something special. Perhaps you can use a custom prop on the player and use that in all cases. The setProp handler can then check for name size and do whatever is needed. That might be creating an alias, copying the file, or (as you mentioned) shortening the name. It can also do whatever is needed to clean up after the old name. Quitting need do something simple, such as setting the custom property to empty. (I have no idea whether an alias will really work for a player.) Dar -- ** DSC (Dar Scott Consulting Dar's Lab) http://www.swcp.com/dsc/ Programming and software ** ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution