Re: no 'libraryStack' msg equivalent for frontScripts?
It's actually pretty to implement. on CheckIfInitialized initializeyourFrontOrBackScriptHERE end CheckIfInitialized on myhandler -- or any handler that might be called from the outside of the frontscript checkifInitialized do my handler stuff end myhandler Closing the frontscript is a little harder to do automatically... But you can write a stopFrontScript script too... cheers Xavier On 31.05.2005 00:35:18 use-revolution-bounces wrote: >On 5/30/05 1:13 PM, "Phil Davis" <[EMAIL PROTECTED]> wrote: > >> Am I overlooking something? >> >> When you 'start using' a stack, that stack receives a 'libraryStack' >> message from Rev. >> >> When you 'insert script' of some object into front/back, is there really >> no message sent to that object by Rev? > >Not AFAIK. > > >Ken Ray >Sons of Thunder Software >Web site: http://www.sonsothunder.com/ >Email: [EMAIL PROTECTED] > >___ >use-revolution mailing list >use-revolution@lists.runrev.com >http://lists.runrev.com/mailman/listinfo/use-revolution - Visit us at http://www.clearstream.com IMPORTANT MESSAGEInternet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message.The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries.END OF DISCLAIMER ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Anyone using AltBrowser
Todd, Yes, you are correct, we first started seeing the javascript anomolies in 10.3.9, a mere week before Apple releases Tiger. In fact, it's really a bummer that Apple does this, that is, changing Code Libraries a week before a major OS update. Makes things very difficult for developers. --Chipp Todd Higgins wrote: If there is indeed a problem with AltBrowser and Webkit then it would affect 10.3.9 as well. Apple updated Safari/ Webkit to keep it compatible with 10.4. From the primary Safari developer's weblog: http:// weblogs.mozillazine.org/hyatt/archives/2005_04.html#007962 ___ 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
Ummm... beep's working just fine here (Rev 2.5B1, Mac OS 10.3.8). Judy On Mon, 30 May 2005, Thomas McGrath III wrote: > I have not been able to get REV on the MAC to Beep. Can anyone else get > the beep to work? ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Very simple tab button script
Hi Tom, Just to get this right, you are saying that this works for a stack in which each card is assigned a tab, correct? (Sorry, it's after 11 pm and I'm too lazy to fire up Rev and check this out; just want to know for updating my tabs tutorial). Thx, Judy On Mon, 30 May 2005, Thomas McCarthy wrote: > > I'm so proud of myself, I had to let everyone know this. > I've cut down the number of lines in my tab panel script to just one line: > > on menupick twhich > go to cd lineoffset(twhich,me) > end menupick > > This will work if you have a stack with a tab for each card. ___ 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
Darn, forgot one more thing. Instead of setting the itemDelimiter, using the split command allows a cleaner T[1] syntax instead of item 1 of T. It is probably a bit faster as well. New script: on openCard setTime end openCard local sHourAngle -- the angle for the hour hand local sMinuteAngle -- the angle for the minute hand on setTime put word 1 of the long time into T put T && the long seconds into fld "time" split T using ":" get 90 - (30 * T[1]) - trunc(T[2] / 2) if it is not sHourAngle then put it into sHourAngle set the startangle of grc "hour" to sHourAngle end if get 90 - (6 * T[2]) - trunc(T[3] / 10) if it is not sMinuteAngle then put it into sMinuteAngle set the startangle of grc "minute" to sMinuteAngle end if set the startangle of grc "second" to 90 - (6 * T[3]) send "setTime" to me in (1 - (the long seconds mod 1)) seconds end setTime ___ 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 May 30, 2005, at 4:37 PM, Dennis Brown wrote: That is a good point. I tested it out, and the useless "set angle" results in about 70ms of wasted time every second (7% CPU). I am surprised it is so high. Doing the test and skipping it is a thousand times faster. I fixed up the script as my own exercise for the student. You can see the time lag slightly when the computer is busy with something else, like loading a web page. Note: the angle calculations had to be changed to match what the angle returned for these graphics. The clock is in my user space (see3d). It takes a licking, but keeps on ticking... Four times faster still is comparing to a local variable rather than to the startAngle of the graphics. It adds a few lines of code though. It would appear that my web hosting company is down at the moment, so the script will have to suffice: on openCard setTime end openCard local sHourAngle -- the angle for the hour hand local sMinuteAngle -- the angle for the minute hand on setTime put word 1 of the long time into T put T && the long seconds into fld "time" set the itemDelimiter to ":" get 90 - (30 * item 1 of T) - trunc((item 2 of T) / 2) if it is not sHourAngle then put it into sHourAngle set the startangle of grc "hour" to sHourAngle end if get 90 - (6 * item 2 of T) - trunc((item 3 of T) / 10) if it is not sMinuteAngle then put it into sMinuteAngle set the startangle of grc "minute" to sMinuteAngle end if set the startangle of grc "second" to 90 - (6 * item 3 of T) send "setTime" to me in (1 - (the long seconds mod 1)) seconds end setTime ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Coding challenge?
Trunc(number) is simply the integer function. It hands you back the number with any decimal portions thrown away (no rounding). 10.1 becomes 10 and 10.9 becomes 10. Mod is the remainder function from a division. It performs a division and throws away the answer but hands you back the remainder. 10.9 mod 10 is 0.9. 10.9/10 the answer is 1 with a remainder of 0.9. It is handy in loops if you want to see if a counter is at every Nth count --like every 11th time through the loop you want to do something different. You could say if loopCounter mod 11=0 then doSomething. The remainder will only be 0 if the loopCounter is an even multiple of 11. I use it in this way to update a field or check for user aborts inputs in a long loop where I don't want to waste time doing the UI stuff every time through the loop. It is also handy to do the opposite of the Trunc function --where you want to throw away the whole number and keep the decimal portion. In this case anyNumber mod 1 will do the trick. 10.9 mod 1 gives you 0.9. One more useful trick: div gives you the integer result of a division. e.g. 104 / 10 = 10.4 104 div 10 = 10 For rounding: 104 div 10 * 10 = 100 This can be used in conjunction with mod to break a number up into it's parts: 104 mod 10 = 4 Cheers, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Coding challenge?
On May 30, 2005, at 6:56 PM, Dennis Brown wrote: Trunc(number) is simply the integer function. It hands you back the number with any decimal portions thrown away (no rounding). 10.1 becomes 10 and 10.9 becomes 10. Mod is the remainder function from a division. It performs a division and throws away the answer but hands you back the remainder. 10.9 mod 10 is 0.9. 10.9/10 the answer is 1 with a remainder of 0.9. Good summary. I'll add... Both trunc() and mod have variations in different programming language and in spreadsheet formulas. They are also found in mathematics. So, getting up to speed on these is a good investment when one has the time. There is a gotcha: negative numbers. Different programming languages and spreadsheets might define those in slightly different ways that cause the behavior to be different for negative numbers. More so, a mathematician or computer scientist might point out that from his corner, the Transcript "mod" is more like "remainder" and is not the "mod" function mathematicians use. This is only different for negative numbers. My advice--if these are new concepts--is to limit these to positive numbers until you need to dig deeper. 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: no 'libraryStack' msg equivalent for frontScripts?
Thanks Ken. See you at RevConWest. Phil Ken Ray wrote: On 5/30/05 1:13 PM, "Phil Davis" <[EMAIL PROTECTED]> wrote: Am I overlooking something? When you 'start using' a stack, that stack receives a 'libraryStack' message from Rev. When you 'insert script' of some object into front/back, is there really no message sent to that object by Rev? Not AFAIK. Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
why I like rev (was Re: get URL)
On May 30, 2005, at 9:09 PM, Brad Borch wrote: Yes, there are mailing lists; I just haven't found them to be nearly as responsive as this list, certainly not as much a "community," and they tend to be a bit... snobbish? Brad, this list is one of the main reasons why I like Rev so much. sometimes I post questions here and start a little chronometer counting minutes before someone help me! I was never disapointed! Cheers and welcome andre -- Andre Alves Garzia 2004 Soap Dog Studios - BRAZIL http://studio.soapdog.org ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Coding challenge?
Bjoernke, I think that this could be very fun!!! As for prize, I've got one copy of "Revolution: Software on the speed of thought by Dan Shaffer" left, I would gladly give this backup copy (owning more then one copy of a given book is smart sometimes) as prize for a competition, also I offer space to host a webpage on the competition and stuff like that on my site wecode.org. I think a coding competition might go like this: * Have two categories: Newbie and Advanced. * We should pose a problem to each categorie and collect the competitor's stacks. * The voting might be done by a board plus popular voting on the website (like popular vote = 10% of the final grade) one nice chalenge is gaming, like making a program to play tic tac toe using text files, one program receives a text file with the board at a given time and must output his moves. This way you can use unix pipes or plain files to match one stack agains the other. This is a nice coding competition. Tic Tac Toe is not the best option since it's very easy to code a solution that will always Tie but I think that something along this lines might be fun. I know that Dar Scott looks into ICFP coding compos, those competitions are a nice and should provide inspiration for us to create a coding compo. Maybe we could create a map, like a labirynth put some jewels in it and people should make routines to crawl the maze and collect the stones, the best one wins (that is trickier). The Doctor Eccos monthly article on the Doctor Dobbs magazine also give many puzzles that one might solve coding. Of course this is about coding and we know that there's more to Rev then just coding. Another take could be mini apps, like create a stack that would pick a arbitrary number of JPEGs inside a folder and build a webalbumn, judges and people would grade the apps according to criteria based on easy to use, features, coding and the like. No matter the solution we choose, I think that all the entries should be released in Creative Commons license and that each participant should write a post-mortem about his entry, this could become a usefull resource of code snipets and insights. I would be happy to help in making this competition real (but this way I won't be able to join it damn it!) ... and the most important thing? what is the name of the competition? RevCompo? The Edimburg Challenge? RevCodeMayhem? cheers andre On May 30, 2005, at 5:47 PM, Björnke von Gierke wrote: Hey Revoluters The last event on Chatrev was a big success, and Malte suggested a coding challenge to increase the visibility of Chatrev even further. So my question would be what coding challenge would you do? Does it need a prize? Any thoughts? greetings Bjoernke -- official ChatRev page: http://chatrev.cjb.net Chat with other RunRev developers: go stack URL "http://homepage.mac.com/bvg/chatrev1.3.rev"; ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution -- Andre Alves Garzia 2004 Soap Dog Studios - BRAZIL http://studio.soapdog.org ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Coding challenge?
Well that was fun. I actually followed along nicely. I just wish when I am working with numbers that these things would come to mind. I tend to go the long way around and end up with a lot of extra code to boot. Thank you for the explanations. I think they will help. Tom On May 30, 2005, at 8:56 PM, Dennis Brown wrote: On May 30, 2005, at 7:56 PM, Thomas McGrath III wrote: I would like to see something graphic or animation based but would probably learn more from an SQL or XML challenge. You guys always blow me away with MOD and TRUNC etc. Since math is not to my advantage, I am rather visual in nature. TOm Tom, I am no math whiz either, but if you are you asking for an explaination of the way I use Mod and Trunc, it is very simple: Trunc(number) is simply the integer function. It hands you back the number with any decimal portions thrown away (no rounding). 10.1 becomes 10 and 10.9 becomes 10. Mod is the remainder function from a division. It performs a division and throws away the answer but hands you back the remainder. 10.9 mod 10 is 0.9. 10.9/10 the answer is 1 with a remainder of 0.9. It is handy in loops if you want to see if a counter is at every Nth count --like every 11th time through the loop you want to do something different. You could say if loopCounter mod 11=0 then doSomething. The remainder will only be 0 if the loopCounter is an even multiple of 11. I use it in this way to update a field or check for user aborts inputs in a long loop where I don't want to waste time doing the UI stuff every time through the loop. It is also handy to do the opposite of the Trunc function --where you want to throw away the whole number and keep the decimal portion. In this case anyNumber mod 1 will do the trick. 10.9 mod 1 gives you 0.9. So: get 10.9 get trunc(it)&it mod 1 --take the number apart and put it back together again it=10.9 Hope this helps, Dennis ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution Thomas J. McGrath III SCS 1000 Killarney Dr. Pittsburgh, PA 15234 412-885-8541 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Coding challenge?
On May 30, 2005, at 7:56 PM, Thomas McGrath III wrote: I would like to see something graphic or animation based but would probably learn more from an SQL or XML challenge. You guys always blow me away with MOD and TRUNC etc. Since math is not to my advantage, I am rather visual in nature. TOm Tom, I am no math whiz either, but if you are you asking for an explaination of the way I use Mod and Trunc, it is very simple: Trunc(number) is simply the integer function. It hands you back the number with any decimal portions thrown away (no rounding). 10.1 becomes 10 and 10.9 becomes 10. Mod is the remainder function from a division. It performs a division and throws away the answer but hands you back the remainder. 10.9 mod 10 is 0.9. 10.9/10 the answer is 1 with a remainder of 0.9. It is handy in loops if you want to see if a counter is at every Nth count --like every 11th time through the loop you want to do something different. You could say if loopCounter mod 11=0 then doSomething. The remainder will only be 0 if the loopCounter is an even multiple of 11. I use it in this way to update a field or check for user aborts inputs in a long loop where I don't want to waste time doing the UI stuff every time through the loop. It is also handy to do the opposite of the Trunc function --where you want to throw away the whole number and keep the decimal portion. In this case anyNumber mod 1 will do the trick. 10.9 mod 1 gives you 0.9. So: get 10.9 get trunc(it)&it mod 1 --take the number apart and put it back together again it=10.9 Hope this helps, Dennis ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
get URL
/ Thanks for the help with the get URL. I'm VERY impressed with the />/ support/community built around RR. As a longtime user of Director, it's so />/ refreshing to get quick and helpful advice--and to be able to implement a />/ function with a couple simple, intuitive commands. />/ / do you mean there's no such mailing list for Director developpers ? JB (who dropped Director around version 4.0) Yes, there are mailing lists; I just haven't found them to be nearly as responsive as this list, certainly not as much a "community," and they tend to be a bit... snobbish? / Personally I'd use a mail app that threads lists and I'm changing from />/ eudora to gemini for that reason / [snipped] Mozilla's Thunderbird also does threads and filters as well as multiple email accounts, and is available (free) for Mac, Linux and Windows. Ok, I use Mozilla's mail/news client. I guess what I need are the server settings to access the newsgroup. Or are you saying that you get the mail as singles (rather than as a digest), and filter them into a folder, where you view them as threads? Brad ___ 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
I went looking and although the system beeps and sound works the sound pane in OSX had no item selected for system beeps. That is very odd. I wonder how that could get changed. Aside from me doing it of course. Beeps are fine now, Thanks Björnke Tom On May 30, 2005, at 7:57 PM, Björnke von Gierke wrote: On May 31 2005, at 01:44, Thomas McGrath III wrote: I have not been able to get REV on the MAC to Beep. Can anyone else get the beep to work? 1. check if you get sound from other apps, and that you have actually a sound allocated for beeping 2. the command to do a beep is "beep", try it in the message box if these two conditions are met then you might want to try it on another mac (if possible) it should really beep, so maybe it's a bug? -- official ChatRev page: http://chatrev.cjb.net Chat with other RunRev developers: go stack URL "http://homepage.mac.com/bvg/chatrev1.3.rev"; ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution Thomas J. McGrath III SCS 1000 Killarney Dr. Pittsburgh, PA 15234 412-885-8541 ___ 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 May 31 2005, at 01:44, Thomas McGrath III wrote: I have not been able to get REV on the MAC to Beep. Can anyone else get the beep to work? 1. check if you get sound from other apps, and that you have actually a sound allocated for beeping 2. the command to do a beep is "beep", try it in the message box if these two conditions are met then you might want to try it on another mac (if possible) it should really beep, so maybe it's a bug? -- official ChatRev page: http://chatrev.cjb.net Chat with other RunRev developers: go stack URL "http://homepage.mac.com/bvg/chatrev1.3.rev"; ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Coding challenge?
I would like to see something graphic or animation based but would probably learn more from an SQL or XML challenge. You guys always blow me away with MOD and TRUNC etc. Since math is not to my advantage, I am rather visual in nature. TOm On May 30, 2005, at 7:19 PM, Bill wrote: How about something that uses SQL? I'm trying to write a pop-up field that you type the first letter of a word into, and then the next letter and so on and a list of returns from that column of the SQL database returns instantly and updating as you type. Or I suppose that is not interesting enough. The clock face was an excellent idea along the lines of a coding challenge. On 5/30/05 6:03 PM, "Björnke von Gierke" <[EMAIL PROTECTED]> wrote: I think i'll stick with a runrev coding challenge, and that doesn't run on mobile devices IMHO. Also usefulness is not something that is required for a coding challenge ;-) Any other ideas? ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Coding challenge?
SOME PEOPLE JUST DON'T SEEM TO GET IT NO MATTER HOW MANY TIMES YOU MENTION IT TO THEM. SCREAMING IS VERY ANNOYING TO SAY THE LEAST. On May 30, 2005, at 6:03 PM, Björnke von Gierke wrote: I think i'll stick with a runrev coding challenge, and that doesn't run on mobile devices IMHO. Also usefulness is not something that is required for a coding challenge ;-) Any other ideas? AND DON'T USE ALL CAPS WORDS. IT IS NOT ACCEPTABLE TO ME, AND MANY OTHERS HERE, TO SHOUT ALL THE TIME! On May 30 2005, at 23:55, [EMAIL PROTECTED] wrote: There is a big market for these MOBILE DEVICES programs now... people are dropping into WEB CAFES...and filling their SMART PHONES pocket PC's with all types of software programs some of this software is SUPER...and TOTALLY USEFULL to the man on the street there is one such program.that is VERY HIGH LEVEL...and it allows your pocketPCto tell you how to get to a place...you need your mobile phone too... it uses CELL PHONES and does positioning in this mannerCELLS. it can tell you how to get from A to B.your local STOREright the way tothe other end of town...even... there are many many many other software programs for MOBILE devices and pocketPC my opinion try something along those lines...for a pocketPC running windows Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution Thomas J. McGrath III SCS 1000 Killarney Dr. Pittsburgh, PA 15234 412-885-8541 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Tree-structure display
Bob, I'm using a PC and had this problem too. I commented out the 2 message lines below. Now it works (I think). In the card script on readrelations first line -- put empty into message on showparents third line -- put "_" & tid & cr after message Pat [EMAIL PROTECTED] - Original Message - From: "Bob Hartley" <[EMAIL PROTECTED]> To: "How to use Revolution" Sent: Tuesday, May 31, 2005 3:49 AM Subject: Re: Tree-structure display You wrote: Hi THere. I cant get this to do anything. All I get are messageboxes; is this mac only? Cheers Bob; Glasgow Dear all, I needed a way to organise keywords I use to organize my bookmarks. It didn't take me more than an afternoon (very long afternoon) to come up with: go stack url "http://revolution.lexicall.org/stacks/education/presentation_tools/tree_structure.rev"; The complexity is in the organization (using principles discovered in books about relational databases like mysql), the coding was suprisingly easy. Gee, I wouldn't even have thought of starting to code this with any other language. On the education list, Judy mentioned some were predicting a chip to directly connect to your brain in 2014. Well, I teach in cognitive neurosciences, that may have to wait longer (I mean, a chip that "understand" your thoughts). Still, revolution is the closest I know from this chip... once you have identified the solution to your problem in your mind it's only a matter of hours (rather than days or weeks) to have that solution implemented as a computer program. If you notice any problem, feel free to fix it (I am not a professional, I develop tools useful to me; I cannot really afford the time it would take to make it 100% reliable for users other than myself). Feel free to use it for the design of an outliner tool or whatever else you facny. (The stack is distributed as share alike). Marielle ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ 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
I have not been able to get REV on the MAC to Beep. Can anyone else get the beep to work? Thanks Tom On May 30, 2005, at 1:04 PM, Dennis Brown wrote: Nice! I learn something every minute on this list --four heads are better than one. I do believe that the clock is down to its essence now. Every line does something essential, except displaying the "Time" field to check its accuracy. I put the latest version in my user space also (see3d). For the next exercise: Students (Ben) should use the principles learned here to make the clock chime (beep) the hour on the hour one second between chimes (better add a checkmark button to turn off chimes -- if you want to keep your sanity). Dennis On May 30, 2005, at 12:22 PM, Geoff Canyon wrote: I had just finished swapping out my clunky send...in loop code for something similar to yours when I checked mail and saw yours. I took two steps: put the long seconds into t send in (something based on t - trunc(t) Your method of the long seconds mod 1 is of course much better. But you don't have to convert to ticks. Sending in a fraction of a second works fine and reads better imho. So here's what I have up now. This generally hits within a thousandth of a second: on openCard setTime end openCard on setTime put word 1 of the long time into T put T && the long seconds into fld "time" set the itemDelimiter to ":" set the startangle of grc "hour" to 90 - (30 * item 1 of T) - (item 2 of T) / 2 set the startangle of grc "minute" to 90 - (6 * item 2 of T) - (item 3 of T) / 10 set the startangle of grc "second" to 90 - (6 * item 3 of T) send "setTime" to me in (1 - (the long seconds mod 1)) seconds end setTime As before, the stack is available by executing this in the message box: go stack url "http://www.inspiredlogic.com/rev/clock.rev"; On May 30, 2005, at 9:01 AM, Dennis Brown wrote: I love this clock example. Just so simple. You guys are great! I could not resist seeing how the thinking was progressing and took it to the next step. Fewer lines, more accuracy (I have often noted that the simplest most elegant solutions take the most time to create and the least time to understand). As Ben suggested, this clock should be a standard example for new users to look at. I will also add it to my revOnline user area (see3d) as soon as today's connect problem is fixed. ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution Thomas J. McGrath III SCS 1000 Killarney Dr. Pittsburgh, PA 15234 412-885-8541 ___ 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
That is a good point. I tested it out, and the useless "set angle" results in about 70ms of wasted time every second (7% CPU). I am surprised it is so high. Doing the test and skipping it is a thousand times faster. I fixed up the script as my own exercise for the student. You can see the time lag slightly when the computer is busy with something else, like loading a web page. Note: the angle calculations had to be changed to match what the angle returned for these graphics. The clock is in my user space (see3d). It takes a licking, but keeps on ticking... on openCard setTime end openCard on setTime set the itemDelimiter to ":" put word 1 of the long time into T --8:13:15 put T & char 2 to 5 of (the long seconds mod 1) into fld "Time" get 360+90-(30 * item 1 of T) - trunc((item 2 of T) / 2) if (the angle of grc "Hour") <> it then set the angle of grc "Hour" to it get 360+90-(6 * item 2 of T) - trunc((item 3 of T) / 10) if (the angle of grc "Minute") <> it then set the angle of grc "Minute" to it set the angle of grc "Second" to 360+90-(6 * item 3 of T) send "setTime" to me in 1-(the long seconds mod 1) seconds end setTime Dennis On May 30, 2005, at 2:21 PM, Geoff Canyon wrote: On May 30, 2005, at 10:04 AM, Dennis Brown wrote: Nice! I learn something every minute on this list --four heads are better than one. I do believe that the clock is down to its essence now. Every line does something essential, except displaying the "Time" field to check its accuracy. I put the latest version in my user space also (see3d). re: down to its essence -- obviously for this demo it doesn't matter, but in practice, I would want to put in code to only change the minute and hour hands when they actually need it, rather than setting them to the same startAngle (except when they actually move) each second. I haven't timed this to see whether it's actually a concern. And multiple heads are definitely better than one. That's why I plan to grow additional heads as soon as possible. ;-) ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Coding challenge?
How about something that uses SQL? I'm trying to write a pop-up field that you type the first letter of a word into, and then the next letter and so on and a list of returns from that column of the SQL database returns instantly and updating as you type. Or I suppose that is not interesting enough. The clock face was an excellent idea along the lines of a coding challenge. On 5/30/05 6:03 PM, "Björnke von Gierke" <[EMAIL PROTECTED]> wrote: > I think i'll stick with a runrev coding challenge, and that doesn't run > on mobile devices IMHO. Also usefulness is not something that is > required for a coding challenge ;-) > > Any other ideas? > > AND DON'T USE ALL CAPS WORDS. IT IS NOT ACCEPTABLE TO ME, AND MANY > OTHERS HERE, TO SHOUT ALL THE TIME! > > On May 30 2005, at 23:55, [EMAIL PROTECTED] wrote: > >> There is a big market for these MOBILE DEVICES programs now... >> >> people are dropping into WEB CAFES...and filling their SMART PHONES >> pocket PC's with all types of software programs >> >> some of this software is SUPER...and TOTALLY USEFULL to the man on the >> street >> >> there is one such program.that is VERY HIGH LEVEL...and it allows >> your pocketPCto tell you how to get to a place...you need your >> mobile phone too... >> >> it uses CELL PHONES and does positioning in this mannerCELLS. >> >> it can tell you how to get from A to B.your local STOREright >> the way tothe other end of town...even... >> >> there are many many many other software programs for MOBILE devices >> and pocketPC >> >> my opinion >> >> try something along those lines...for a pocketPC running windows >> >> Ben >> >> >> >> >> >> ___ >> use-revolution mailing list >> use-revolution@lists.runrev.com >> http://lists.runrev.com/mailman/listinfo/use-revolution >> > > ___ > use-revolution mailing list > use-revolution@lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > > ||| )_) )_) )_) )___))___))___)\ )))_)\\ _|||\\\__ ---\ /- http://www.bluewatermaritime.com ^ ^ ^^^^^ ^^^ 24 hour cell: (787) 378-6190 fax: (787) 809-8426 Blue Water Maritime P.O. Box 91 Puerto Real, PR 00740 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Very simple tab button script
I'm so proud of myself, I had to let everyone know this. I've cut down the number of lines in my tab panel script to just one line: on menupick twhich go to cd lineoffset(twhich,me) end menupick This will work if you have a stack with a tab for each card. cheers tom ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: no 'libraryStack' msg equivalent for frontScripts?
On 5/30/05 1:13 PM, "Phil Davis" <[EMAIL PROTECTED]> wrote: > Am I overlooking something? > > When you 'start using' a stack, that stack receives a 'libraryStack' > message from Rev. > > When you 'insert script' of some object into front/back, is there really > no message sent to that object by Rev? Not AFAIK. Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Coding challenge?
I think i'll stick with a runrev coding challenge, and that doesn't run on mobile devices IMHO. Also usefulness is not something that is required for a coding challenge ;-) Any other ideas? AND DON'T USE ALL CAPS WORDS. IT IS NOT ACCEPTABLE TO ME, AND MANY OTHERS HERE, TO SHOUT ALL THE TIME! On May 30 2005, at 23:55, [EMAIL PROTECTED] wrote: There is a big market for these MOBILE DEVICES programs now... people are dropping into WEB CAFES...and filling their SMART PHONES pocket PC's with all types of software programs some of this software is SUPER...and TOTALLY USEFULL to the man on the street there is one such program.that is VERY HIGH LEVEL...and it allows your pocketPCto tell you how to get to a place...you need your mobile phone too... it uses CELL PHONES and does positioning in this mannerCELLS. it can tell you how to get from A to B.your local STOREright the way tothe other end of town...even... there are many many many other software programs for MOBILE devices and pocketPC my opinion try something along those lines...for a pocketPC running windows Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Coding challenge?
There is a big market for these MOBILE DEVICES programs now... people are dropping into WEB CAFES...and filling their SMART PHONES pocket PC's with all types of software programs some of this software is SUPER...and TOTALLY USEFULL to the man on the street there is one such program.that is VERY HIGH LEVEL...and it allows your pocketPCto tell you how to get to a place...you need your mobile phone too... it uses CELL PHONES and does positioning in this mannerCELLS. it can tell you how to get from A to B.your local STOREright the way tothe other end of town...even... there are many many many other software programs for MOBILE devices and pocketPC my opinion try something along those lines...for a pocketPC running windows Ben ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Coding challenge?
Hey Revoluters The last event on Chatrev was a big success, and Malte suggested a coding challenge to increase the visibility of Chatrev even further. So my question would be what coding challenge would you do? Does it need a prize? Any thoughts? greetings Bjoernke -- official ChatRev page: http://chatrev.cjb.net Chat with other RunRev developers: go stack URL "http://homepage.mac.com/bvg/chatrev1.3.rev"; ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Changing the timeout interval for "get URL"
Hi, I develop an application that uses the "put x into URL" and "get URL" commands to communicate with a remote server. However, on slower internet connections located far away from the server, the "get URL" command is timing out. However, I know the server is functioning properly and in the process of sending a response when the timeout occurs. Is there a way to set the timeout interval to give the server a longer time to respond? Or can I eliminate this problem by using a non-blocking request? Any help anybody could offer would be _very much_ appreciated. This problem is a big one for me that I haven't been able to find a solution to myself. Thanks in advance, Dave Beck ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: cgi timeout ?
Andre, Thanks for the suggestion. Actually what I did first is to re-write my cgi script many times and optimize it so that it never takes more than 2 or 3 seconds. I will also implement the technique you describe, although there's a little additional problem : the "result html" as you name it is actually a pdf file generated on the fly... Besides, I don't think the core of my problem of "vanishing cgi" is related to the execution time or any cgi timeout, but rather to some random bug of Rev cgi... Actually I vaguely remember someone (Shari ?) on this very list writing about calls to cgi scripts via the POST command in a client Rev script that randomly didn't go through... I have the feeling that I'm facing the same problem : I've built a small Rev client app to test my Rev cgi on the server before I implement it on the web site, and I'm having this problem with the Rev client app ONLY, and NEVER when cgi calls are made from a web form... JB > JB, > > I don't think that fiddling with the socket timeout interval is a good > solution, also hooking a HTTP connection like this is not safe, some > browsers might just choose to give up. I think the most elegant > solution would be to split your HTML page in two and work like this: > > 1) CLIENT: enter web form for the complex task or jump start that slow > task. > 2) CGI: send back a HTML with a meta refresh tag of 15 seconds (more > then enough). This HTML might have a message like: "Wait while we > process the task...", there in this HTML you hide some param (in a > hidden form, in the URL or in a cookie) to tag which calculation you're > doing, you need this for if two users open the page at the same time, > you'll be able to show the correct result. After 15 secs, browser > redirects to the result html. Everyone is happy. > > You might generate a unique ID on the CGI jumpstart and append that to > the result CGI link tag that is present on the waiting HTML page, like: > > content="15;url=http://www.myserver.com/cgi-bin/result.cgi? > uid=923756972356"> > > with this design you save bandwitdh, you make a easy working CGI that > can couple with many connections without hogging the whole system and > you comply with http good manners. If you need further assistance with > this, just ask. > > Cheers > andre > > On May 27, 2005, at 2:59 PM, jbv wrote: > > > Hi list, > > > > Although I make heavy use of Rev cgi on some projects, > > I'm far from being an expert on cgi / Apache / Linux / > > server administration... > > > > In some situations (mainly development & debugging), > > Rev cgi is asked to perform quite complex tasks, and > > sometimes the execution of a script can take up to 8 or > > 9 or 10 seconds (I know : it's prohibitive, but in the > > development process you don't always know in advance > > if your approach will lead to fast execution or not)... > > And I noticed that when a task (script execution) reaches > > the 9 to 11 seconds limit, it doesn't return anything, or > > IOW it seems to just stop & vanish... > > So I was wondering if there was a timeout of some sort > > in the Apache / Linux configuration, and what was the > > best way to deal with it... > > > > Thanks, > > JB > > > > ___ > > use-revolution mailing list > > use-revolution@lists.runrev.com > > http://lists.runrev.com/mailman/listinfo/use-revolution > > > > > -- > Andre Alves Garzia ? 2004 ? BRAZIL > http://studio.soapdog.org > > ___ > use-revolution mailing list > use-revolution@lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution ___ 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 ofCODE
Hello, OK...me is trying to put a chime-on-the-hour ...beepthat chimes for ten seconds (at one second intervals) for each hour reached.. and has an 'off' buttontoo :-) Ben ___ 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 May 30, 2005, at 12:18 PM, Geoff Canyon wrote: I considered that possibility as well, but in practice it seems not. I think we thought of this because we're both being worrywarts. The math should result in, at minimum, a wait to _exactly_ the next second. If that happens _and_ the time spent executing the send...in is 0, _and_ the send...in trigger happens _exactly_ on schedule, it would still be he next second, and do the right thing. Underneath, the queued message is associated with a time. In my tests, that time is just past the whole second. Perhaps the code that checks the pending messages waits to see if the current time is greater than or equal the time associated with the message. So, even if the clock has a low resolution, it has to pass the target time. Also, the time value used in display is probably based on the same clock, so all is well. 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 May 30, 2005, at 10:04 AM, Dennis Brown wrote: Nice! I learn something every minute on this list --four heads are better than one. I do believe that the clock is down to its essence now. Every line does something essential, except displaying the "Time" field to check its accuracy. I put the latest version in my user space also (see3d). re: down to its essence -- obviously for this demo it doesn't matter, but in practice, I would want to put in code to only change the minute and hour hands when they actually need it, rather than setting them to the same startAngle (except when they actually move) each second. I haven't timed this to see whether it's actually a concern. And multiple heads are definitely better than one. That's why I plan to grow additional heads as soon as possible. ;-) ___ 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 May 30, 2005, at 9:43 AM, Dar Scott wrote: On May 30, 2005, at 10:22 AM, Geoff Canyon wrote: send "setTime" to me in (1 - (the long seconds mod 1)) seconds Very nice. If I ever get around to updating the Primer on Message Mechanics, this should go in there. At first I thought this might need a little fudge value added, but now I think not. I considered that possibility as well, but in practice it seems not. I think we thought of this because we're both being worrywarts. The math should result in, at minimum, a wait to _exactly_ the next second. If that happens _and_ the time spent executing the send...in is 0, _and_ the send...in trigger happens _exactly_ on schedule, it would still be he next second, and do the right thing. Of course, nothing beats _not_ putting in the fudge factor and watching it for a minute to see what happens, which is what I did. ;-) ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
no 'libraryStack' msg equivalent for frontScripts?
Am I overlooking something? When you 'start using' a stack, that stack receives a 'libraryStack' message from Rev. When you 'insert script' of some object into front/back, is there really no message sent to that object by Rev? Thanks. Phil Davis ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Tree-structure display
you got returns between go stack url and the actual url, maybe try this instead in the messagebox: go stack url "http://tinyurl.com/aqg6u"; On May 30 2005, at 19:49, Bob Hartley wrote: I cant get this to do anything. All I get are messageboxes; is this mac only? go stack url "http://revolution.lexicall.org/stacks/education/presentation_tools/ tree_structure.rev" -- official ChatRev page: http://chatrev.cjb.net Chat with other RunRev developers: go stack URL "http://homepage.mac.com/bvg/chatrev1.3.rev"; ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: cgi timeout ?
JB, I don't think that fiddling with the socket timeout interval is a good solution, also hooking a HTTP connection like this is not safe, some browsers might just choose to give up. I think the most elegant solution would be to split your HTML page in two and work like this: 1) CLIENT: enter web form for the complex task or jump start that slow task. 2) CGI: send back a HTML with a meta refresh tag of 15 seconds (more then enough). This HTML might have a message like: "Wait while we process the task...", there in this HTML you hide some param (in a hidden form, in the URL or in a cookie) to tag which calculation you're doing, you need this for if two users open the page at the same time, you'll be able to show the correct result. After 15 secs, browser redirects to the result html. Everyone is happy. You might generate a unique ID on the CGI jumpstart and append that to the result CGI link tag that is present on the waiting HTML page, like: content="15;url=http://www.myserver.com/cgi-bin/result.cgi? uid=923756972356"> with this design you save bandwitdh, you make a easy working CGI that can couple with many connections without hogging the whole system and you comply with http good manners. If you need further assistance with this, just ask. Cheers andre On May 27, 2005, at 2:59 PM, jbv wrote: Hi list, Although I make heavy use of Rev cgi on some projects, I'm far from being an expert on cgi / Apache / Linux / server administration... In some situations (mainly development & debugging), Rev cgi is asked to perform quite complex tasks, and sometimes the execution of a script can take up to 8 or 9 or 10 seconds (I know : it's prohibitive, but in the development process you don't always know in advance if your approach will lead to fast execution or not)... And I noticed that when a task (script execution) reaches the 9 to 11 seconds limit, it doesn't return anything, or IOW it seems to just stop & vanish... So I was wondering if there was a timeout of some sort in the Apache / Linux configuration, and what was the best way to deal with it... Thanks, JB ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution -- Andre Alves Garzia 2004 BRAZIL http://studio.soapdog.org ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Tree-structure display
You wrote: Hi THere. I cant get this to do anything. All I get are messageboxes; is this mac only? Cheers Bob; Glasgow > Dear all, > > I needed a way to organise keywords I use to organize my bookmarks. It > didn't take me more than an afternoon (very long afternoon) to come up > with: > > go stack url > "http://revolution.lexicall.org/stacks/education/presentation_tools/tree_structure.rev"; > > The complexity is in the organization (using principles discovered in > books about relational databases like mysql), the coding was suprisingly > easy. Gee, I wouldn't even have thought of starting to code this with any > other language. On the education list, Judy mentioned some were predicting > a chip to directly connect to your brain in 2014. Well, I teach in > cognitive neurosciences, that may have to wait longer (I mean, a chip that > "understand" your thoughts). Still, revolution is the closest I know from > this chip... once you have identified the solution to your problem in your > mind it's only a matter of hours (rather than days or weeks) to have that > solution implemented as a computer program. > > If you notice any problem, feel free to fix it (I am not a professional, I > develop tools useful to me; I cannot really afford the time it would take > to make it 100% reliable for users other than myself). > > Feel free to use it for the design of an outliner tool or whatever else > you facny. (The stack is distributed as share alike). > > Marielle ___ use-revolution > mailing list use-revolution@lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Tree-structure display
I see when you double click on the nodes they expand and contract. The link to Sarah's XML stack is: http://www.troz.net/Rev/#XMLdemo1 On 5/30/05 12:32 PM, "Marielle Lange" <[EMAIL PROTECTED]> wrote: > go stack url > "http://revolution.lexicall.org/stacks/education/presentation_tools/tree_struc > ture.rev" ||| )_) )_) )_) )___))___))___)\ )))_)\\ _|||\\\__ ---\ /- http://www.bluewatermaritime.com ^ ^ ^^^^^ ^^^ 24 hour cell: (787) 378-6190 fax: (787) 809-8426 Blue Water Maritime P.O. Box 91 Puerto Real, PR 00740 ___ 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
Nice! I learn something every minute on this list --four heads are better than one. I do believe that the clock is down to its essence now. Every line does something essential, except displaying the "Time" field to check its accuracy. I put the latest version in my user space also (see3d). For the next exercise: Students (Ben) should use the principles learned here to make the clock chime (beep) the hour on the hour one second between chimes (better add a checkmark button to turn off chimes -- if you want to keep your sanity). Dennis On May 30, 2005, at 12:22 PM, Geoff Canyon wrote: I had just finished swapping out my clunky send...in loop code for something similar to yours when I checked mail and saw yours. I took two steps: put the long seconds into t send in (something based on t - trunc(t) Your method of the long seconds mod 1 is of course much better. But you don't have to convert to ticks. Sending in a fraction of a second works fine and reads better imho. So here's what I have up now. This generally hits within a thousandth of a second: on openCard setTime end openCard on setTime put word 1 of the long time into T put T && the long seconds into fld "time" set the itemDelimiter to ":" set the startangle of grc "hour" to 90 - (30 * item 1 of T) - (item 2 of T) / 2 set the startangle of grc "minute" to 90 - (6 * item 2 of T) - (item 3 of T) / 10 set the startangle of grc "second" to 90 - (6 * item 3 of T) send "setTime" to me in (1 - (the long seconds mod 1)) seconds end setTime As before, the stack is available by executing this in the message box: go stack url "http://www.inspiredlogic.com/rev/clock.rev"; On May 30, 2005, at 9:01 AM, Dennis Brown wrote: I love this clock example. Just so simple. You guys are great! I could not resist seeing how the thinking was progressing and took it to the next step. Fewer lines, more accuracy (I have often noted that the simplest most elegant solutions take the most time to create and the least time to understand). As Ben suggested, this clock should be a standard example for new users to look at. I will also add it to my revOnline user area (see3d) as soon as today's connect problem is fixed. ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Tree-structure display
That reminds me of exactly the tree structure thing for the xml example stack except you can click on nodes in that and they collapse and open and you can save as xml. On 5/30/05 12:32 PM, "Marielle Lange" <[EMAIL PROTECTED]> wrote: > go stack url > "http://revolution.lexicall.org/stacks/education/presentation_tools/tree_struc > ture.rev" ||| )_) )_) )_) )___))___))___)\ )))_)\\ _|||\\\__ ---\ /- http://www.bluewatermaritime.com ^ ^ ^^^^^ ^^^ 24 hour cell: (787) 378-6190 fax: (787) 809-8426 Blue Water Maritime P.O. Box 91 Puerto Real, PR 00740 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: cgi timeout ?
On 27 May 2005, at 18:59, jbv wrote: Hi list, Although I make heavy use of Rev cgi on some projects, I'm far from being an expert on cgi / Apache / Linux / server administration... In some situations (mainly development & debugging), Rev cgi is asked to perform quite complex tasks, and sometimes the execution of a script can take up to 8 or 9 or 10 seconds (I know : it's prohibitive, but in the development process you don't always know in advance if your approach will lead to fast execution or not)... And I noticed that when a task (script execution) reaches the 9 to 11 seconds limit, it doesn't return anything, or IOW it seems to just stop & vanish... So I was wondering if there was a timeout of some sort in the Apache / Linux configuration, and what was the best way to deal with it... The 9-11 seconds sounds suspiciously like Rev's default socketTimeoutInterval of 10 seconds. Does it help if you increase the value? Cheers Dave ___ 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 ofCODE
Ben- Monday, May 30, 2005, 2:29:28 AM, you wrote: Vac> People will attempt to make similar projects when they can Vac> see what just 18 lines of code can achieve. This is my point Vac> here. Something looking simple and then working correctlyis Vac> the key for progamming hobby'ists and professionals alike. Exactly! -- -Mark Wieder [EMAIL PROTECTED] ___ 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 May 30, 2005, at 10:22 AM, Geoff Canyon wrote: send "setTime" to me in (1 - (the long seconds mod 1)) seconds Very nice. If I ever get around to updating the Primer on Message Mechanics, this should go in there. At first I thought this might need a little fudge value added, but now I think not. 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
Revolution and Microsoft Access
Hello: Can Revolution read datas from a Microsoft Access Database?. (¿Puede Revolution leer datos de una Base de Datos Access de Microsoft?) Un saludo Joseba Aguayo Fernández ([EMAIL PROTECTED]) ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Tree-structure display
Dear all, I needed a way to organise keywords I use to organize my bookmarks. It didn't take me more than an afternoon (very long afternoon) to come up with: go stack url "http://revolution.lexicall.org/stacks/education/presentation_tools/tree_structure.rev"; The complexity is in the organization (using principles discovered in books about relational databases like mysql), the coding was suprisingly easy. Gee, I wouldn't even have thought of starting to code this with any other language. On the education list, Judy mentioned some were predicting a chip to directly connect to your brain in 2014. Well, I teach in cognitive neurosciences, that may have to wait longer (I mean, a chip that "understand" your thoughts). Still, revolution is the closest I know from this chip... once you have identified the solution to your problem in your mind it's only a matter of hours (rather than days or weeks) to have that solution implemented as a computer program. If you notice any problem, feel free to fix it (I am not a professional, I develop tools useful to me; I cannot really afford the time it would take to make it 100% reliable for users other than myself). Feel free to use it for the design of an outliner tool or whatever else you facny. (The stack is distributed as share alike). Marielle ___ 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
I had just finished swapping out my clunky send...in loop code for something similar to yours when I checked mail and saw yours. I took two steps: put the long seconds into t send in (something based on t - trunc(t) Your method of the long seconds mod 1 is of course much better. But you don't have to convert to ticks. Sending in a fraction of a second works fine and reads better imho. So here's what I have up now. This generally hits within a thousandth of a second: on openCard setTime end openCard on setTime put word 1 of the long time into T put T && the long seconds into fld "time" set the itemDelimiter to ":" set the startangle of grc "hour" to 90 - (30 * item 1 of T) - (item 2 of T) / 2 set the startangle of grc "minute" to 90 - (6 * item 2 of T) - (item 3 of T) / 10 set the startangle of grc "second" to 90 - (6 * item 3 of T) send "setTime" to me in (1 - (the long seconds mod 1)) seconds end setTime As before, the stack is available by executing this in the message box: go stack url "http://www.inspiredlogic.com/rev/clock.rev"; On May 30, 2005, at 9:01 AM, Dennis Brown wrote: I love this clock example. Just so simple. You guys are great! I could not resist seeing how the thinking was progressing and took it to the next step. Fewer lines, more accuracy (I have often noted that the simplest most elegant solutions take the most time to create and the least time to understand). As Ben suggested, this clock should be a standard example for new users to look at. I will also add it to my revOnline user area (see3d) as soon as today's connect problem is fixed. ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: cgi timeout ?
On May 27, 2005, at 11:59 AM, jbv wrote: And I noticed that when a task (script execution) reaches the 9 to 11 seconds limit, it doesn't return anything, or IOW it seems to just stop & vanish... So I was wondering if there was a timeout of some sort in the Apache / Linux configuration, and what was the best way to deal with it... I don't know much abut Apache, but ignorance usually doesn't stop me. Maybe you can avoid a timeout if you provide a tiny bit of data at the start. 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
I love this clock example. Just so simple. You guys are great! I could not resist seeing how the thinking was progressing and took it to the next step. Fewer lines, more accuracy (I have often noted that the simplest most elegant solutions take the most time to create and the least time to understand). As Ben suggested, this clock should be a standard example for new users to look at. I will also add it to my revOnline user area (see3d) as soon as today's connect problem is fixed. on openCard setTime end openCard on setTime set the itemDelimiter to ":" get word 1 of the long time --8:13:15 put it & char 2 to 5 of (the long seconds mod 1) into fld "Time" set the startangle of grc "hour" to 90 - (30 * item 1 of it) - (item 2 of it) / 2 set the startangle of grc "minute" to 90 - (6 * item 2 of it) - (item 3 of it) / 10 set the startangle of grc "second" to 90 - (6 * item 3 of it) send "setTime" to me in 60-(the long seconds mod 1)*60 ticks end setTime Dennis - On May 30, 2005, at 3:03 AM, Geoff Canyon wrote: I originally went with polygon graphics, which put me at about twenty lines of code by your way of counting (including "on" and "end" statements). Switching to oval graphics I got it down to 11 lines, which sweep both the hour and minute hands. But the second hand is jumpy. Simply using send...in just about always results in the second hand either taking noticeably too long or too short to measure a second here or there. So I added code to time seconds more finely. This results in the second hand always ticking when it's supposed to. The display shows the long seconds, and you can watch the updates hit consistently in the first tenth of a second or so. It puts me up at 18 lines of code, but the result is worth it I think: on openCard setTime end openCard local sTime on setTime put word 1 of the long time into tTime if tTime is sTime then send "setTime" to me in 5 ticks exit setTime end if put tTime into sTime put sTime && the long seconds into fld "time" set the itemDelimiter to ":" set the startangle of grc "hour" to 90 - (30 * item 1 of sTime) - (item 2 of sTime) / 2 set the startangle of grc "minute" to 90 - (6 * item 2 of sTime) - (item 3 of sTime) / 10 set the startangle of grc "second" to 90 - (6 * item 3 of sTime) send "setTime" to me in 50 ticks end setTime The stack is available by executing this in the message box: go stack url "http://www.inspiredlogic.com/rev/clock.rev"; On May 27, 2005, at 4:08 PM, Malte Brill wrote: Sorry, couldn´t resist on mouseUp if the flag of me is empty then set the flag of me to false set the flag of me to not the flag of me if the flag of me then startClock end mouseUp on startclock put the long time into myTime put myTime into fld 1 set the itemdel to ":" put char 1 to 2 of item 3 of myTime into daSecs set the startAngle of grc "seconds" to 90-dasecs*6 put item 2 of myTime into daMinutes set the startangle of grc minutes to 90-daminutes*6 put item 1 of myTime into daHours set the startAngle of grc "hours" to 90-dahours*30-daminutes*30/60 if the flag of me then send startClock to me in 500 milliseconds end startclock Cheers, Malte Create 3 oval graphics set arcangle of each graphic to zero loc of all 3 needs to be the same 1 field to put the time in Cheers, Malte ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: get URL
> Thanks for the help with the get URL. I'm VERY impressed with the > support/community built around RR. As a longtime user of Director, it's so > refreshing to get quick and helpful advice--and to be able to implement a > function with a couple simple, intuitive commands. > do you mean there's no such mailing list for Director developpers ? JB (who dropped Director around version 4.0) ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
cgi timeout ?
Hi list, Although I make heavy use of Rev cgi on some projects, I'm far from being an expert on cgi / Apache / Linux / server administration... In some situations (mainly development & debugging), Rev cgi is asked to perform quite complex tasks, and sometimes the execution of a script can take up to 8 or 9 or 10 seconds (I know : it's prohibitive, but in the development process you don't always know in advance if your approach will lead to fast execution or not)... And I noticed that when a task (script execution) reaches the 9 to 11 seconds limit, it doesn't return anything, or IOW it seems to just stop & vanish... So I was wondering if there was a timeout of some sort in the Apache / Linux configuration, and what was the best way to deal with it... Thanks, JB ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Menubar on mac os x
I just deleted a menu button that was incorrect and now when I open the stack there is no menus. How do I get it to return to the default development menus (when in user mode)? ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Beware the webnotes
On May 29, 2005, at 9:30 PM, Monte Goulding wrote: Web notes do not accumulate. There is only one entry editable by all. Cheers Monte Who miss designed that? Shouldn't it just append? That way it would become more like a short history log. Rick ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Table Problems
Hi Len, What you need is not so hard. 6 columns = 1-6 fields... Just make a number of fields in the fashion of columns. Each should be scrolling (you can align the text left or right). Have the leftmost fields scrollbar be at a lower layer than the right most so the scrollbar can be hidden and you have a nice table... Then you need to auto-hilite and scroll the fields together which is quite easy with scrollbardrag and mouseup events... cheers Xavier On 30.05.2005 14:11:56 use-revolution-bounces wrote: >I'm trying to get a simple table of data from a database to display like >a table object "should" and I can't seem to figure it out. The data >consists of both text items and dollar amounts. Some of the text items >are left aligned and some are centered in their column. The dollar >amounts are supposed to be right aligned (better still, decimal >aligned). I can make every cell left OR right OR centered but I can't >make individual columns align each in their own way. > >What am I missing? I had to resort to an individual field for each cell >in one part of the app but in that case I knew there would never be more >than 6 columns and 5 rows. The data I'm trying to do now could have a >hundred rows in it (although the column widths would be fixed) and will >need a scrollbar to move through the entire list. > >Is this something Revolution can do? If not, is this basic control >planned for some future version? Can I somehow create my own table >widget (say using TkTable as a starting point) and have it integrated >into Revolution? This seems like a very basic capability for a GUI/RAD >system. > >Thank you, > >Len Morgan >___ >use-revolution mailing list >use-revolution@lists.runrev.com >http://lists.runrev.com/mailman/listinfo/use-revolution - Visit us at http://www.clearstream.com IMPORTANT MESSAGEInternet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message.The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries.END OF DISCLAIMER ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Table Problems
I'm trying to get a simple table of data from a database to display like a table object "should" and I can't seem to figure it out. The data consists of both text items and dollar amounts. Some of the text items are left aligned and some are centered in their column. The dollar amounts are supposed to be right aligned (better still, decimal aligned). I can make every cell left OR right OR centered but I can't make individual columns align each in their own way. What am I missing? I had to resort to an individual field for each cell in one part of the app but in that case I knew there would never be more than 6 columns and 5 rows. The data I'm trying to do now could have a hundred rows in it (although the column widths would be fixed) and will need a scrollbar to move through the entire list. Is this something Revolution can do? If not, is this basic control planned for some future version? Can I somehow create my own table widget (say using TkTable as a starting point) and have it integrated into Revolution? This seems like a very basic capability for a GUI/RAD system. Thank you, Len Morgan ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
answer file as sheet changes edit menu
I used RevZilla and 4WListSearch but was unable to find any mention of this phenomena. When I use "answer file as sheet" this seems to disable some of the edit menu. The pull down buttons on the menubar stack window continue to show correctly but the Mac menuBar does not. It seems to alter the IDE edit menu as well. Removing the "as sheet" fixes things. (ask file as sheet seems to mostly set it aright!) Is this old news? It shows up in the IDE and my standalones. Am I the only one... it is late. Rev 2.5.1 &OSX 10.3.9 -Scott Morrow Elementary Software (Now with 20% less chalk dust !) web http://elementarysoftware.com/ email [EMAIL PROTECTED] - ___ 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 ofCODE
Hello, The clock face seams excellent. Exactly how it would be most efficient to draw and get the moving graphics. It looks like a cirle with 4 guidesand 3 graphics for hands. It is amazing that you can code something like that clock in 3 minutes.it would take me a lot lot lot longer to make that code. But the fact that you have got it down to 18 lines of code and the clear clockface image makes the whole project reasonable. People will attempt to make similar projects when they can see what just 18 lines of code can achieve. This is my point here. Something looking simple and then working correctlyis the key for progamming hobby'ists and professionals alike. B ___ 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
Hi all, I wouldn´t have expected so many reactions on the short script I postet. Thanks for the feedback.I should have taken the time to read through the code before posting it and clean it up a bit, though.(You are right DOM, I forgot the quotes around the name of the graphic) And I would have checked every 50 milliseconds instead of 500... :-) Geoff, your changes are excellent. Very clean! I really like it. Actually it was late that night when I tested how fast I could set up a clock and I felt like screaming in the subject after reading a bit in the archives. Never mind. Dom wrote: >now, what about making a rounded window, with the time and the date? Go for it! I would like to see it. Cheers, Malte ___ 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
Geoff Canyon <[EMAIL PROTECTED]> wrote: > go stack url "http://www.inspiredlogic.com/rev/clock.rev"; nice one, too! now, what about making a rounded window, with the time and the date? -- Revolutionario ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
SystemUIServer
Is there anybody who knows a way to place a menu as "system menu", i.e. a global menu that you may access by every open application in the right side of menubar, as those managed by the SystemUIServer? ___ 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
I originally went with polygon graphics, which put me at about twenty lines of code by your way of counting (including "on" and "end" statements). Switching to oval graphics I got it down to 11 lines, which sweep both the hour and minute hands. But the second hand is jumpy. Simply using send...in just about always results in the second hand either taking noticeably too long or too short to measure a second here or there. So I added code to time seconds more finely. This results in the second hand always ticking when it's supposed to. The display shows the long seconds, and you can watch the updates hit consistently in the first tenth of a second or so. It puts me up at 18 lines of code, but the result is worth it I think: on openCard setTime end openCard local sTime on setTime put word 1 of the long time into tTime if tTime is sTime then send "setTime" to me in 5 ticks exit setTime end if put tTime into sTime put sTime && the long seconds into fld "time" set the itemDelimiter to ":" set the startangle of grc "hour" to 90 - (30 * item 1 of sTime) - (item 2 of sTime) / 2 set the startangle of grc "minute" to 90 - (6 * item 2 of sTime) - (item 3 of sTime) / 10 set the startangle of grc "second" to 90 - (6 * item 3 of sTime) send "setTime" to me in 50 ticks end setTime The stack is available by executing this in the message box: go stack url "http://www.inspiredlogic.com/rev/clock.rev"; On May 27, 2005, at 4:08 PM, Malte Brill wrote: Sorry, couldn´t resist on mouseUp if the flag of me is empty then set the flag of me to false set the flag of me to not the flag of me if the flag of me then startClock end mouseUp on startclock put the long time into myTime put myTime into fld 1 set the itemdel to ":" put char 1 to 2 of item 3 of myTime into daSecs set the startAngle of grc "seconds" to 90-dasecs*6 put item 2 of myTime into daMinutes set the startangle of grc minutes to 90-daminutes*6 put item 1 of myTime into daHours set the startAngle of grc "hours" to 90-dahours*30-daminutes*30/60 if the flag of me then send startClock to me in 500 milliseconds end startclock Cheers, Malte Create 3 oval graphics set arcangle of each graphic to zero loc of all 3 needs to be the same 1 field to put the time in Cheers, Malte ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution