Re: ColorizeScript challenge

2006-04-27 Thread Geoff Canyon
On Apr 26, 2006, at 2:17 PM, Dave Cragg wrote: On 26 Apr 2006, at 20:06, J. Landman Gay wrote: I played with this for about an hour last night. I was using the same technique, converting the script to htmltext using the replace command. I had it mostly working but got stuck on exactly

Re: ColorizeScript challenge

2006-04-27 Thread Geoff Canyon
On Apr 26, 2006, at 11:46 PM, Brian Yennie wrote: I've been silently following this thread, and one more out-of-the- box idea comes to mind. What about just colorizing the lines of the script currently visible in the editor, and updating when the user scrolls? If that limited the whole job

Re: ColorizeScript challenge

2006-04-27 Thread Geoff Canyon
On Apr 27, 2006, at 6:28 AM, Dave Cragg wrote: On 27 Apr 2006, at 12:31, Geoff Canyon wrote: Attempting to take back the beer (I don't drink, so I'm not sure why I'm bothering...) And I don't colorize my scripts. How pathetic are we? Make sure Richard buys you a nice meal. I don't

Re: ColorizeScript challenge

2006-04-27 Thread Geoff Canyon
On Apr 27, 2006, at 8:31 AM, Richard Gaskin wrote: Here's a tough one: Your script works great in MC (I've had to modify it to use it there, and changed some color assignments while I was at it -- see below), but it doesn't set the color of function names when the function is used in the

Re: ColorizeScript challenge

2006-04-26 Thread Geoff Canyon
On Apr 25, 2006, at 4:00 PM, Richard Gaskin wrote: Anyone have ideas on how to speed up MC's script colorizing? Funny you should ask. I did this once as a thought experiment, with an eye to never storing the colorized version of the script but generating it on the fly. I changed the

Re: ColorizeScript challenge

2006-04-26 Thread Geoff Canyon
On Apr 26, 2006, at 4:34 AM, Dave Cragg wrote: In a bid to steal Geoff's beer, I took a look at using the htmlText to do this. It's certainly much faster. (A first attempt below.) Well, I'll see your colorization and raise you a justification. I've sent it off to Richard. The

Re: ColorizeScript challenge

2006-04-26 Thread Geoff Canyon
On Apr 26, 2006, at 2:17 PM, Dave Cragg wrote: On 26 Apr 2006, at 20:06, J. Landman Gay wrote: I played with this for about an hour last night. I was using the same technique, converting the script to htmltext using the replace command. I had it mostly working but got stuck on exactly

Re: Houston, We Have A Problem

2005-07-13 Thread Geoff Canyon
That's a puzzler. This works in either environment: on mouseUp go stack test1 import snapshot from rect (rect of grc 1) of window (windowID of stack test1) go stack test2 create img -- here's the change: set the rect of the last img of stack test2 to the rect of the last img of

Re: Not only in Houston . . .

2005-07-13 Thread Geoff Canyon
grc is short for graphic, which is different than an image. Create a rectangle or a polygon in stack test1 On Jul 13, 2005, at 4:19 AM, Mathewson wrote: Now this is where I feel I am missing something; can find no reference to 'grc' anywhere in the documentation.

Re: 1000 objects

2005-05-28 Thread Geoff Canyon
I'm assuming you're drawing something like face-down playing cards. If the appearance is always the same, another way to handle something like this would be to have one graphic instead of many, calculate where the click occurred and then do what is appropriate based on that. As far as

Re: 1000 objects

2005-05-28 Thread Geoff Canyon
Two suggestions: Could you group the chips and then move the group? Might be easier/ faster, especially if you have several moves to do over the course of time and can leave the chips grouped. Note that you can move chips into/out of the group by setting their layer. If all you're talking

Re: 1000 objects

2005-05-27 Thread Geoff Canyon
You will probably find Navigator to be much faster, while offering many (most? all? more?) features. You can limit the number of controls Navigator will attempt to display. You can turn off auto- hiliting, so it doesn't update each time you select an object. Generally it's _much_ faster. It

Re: is prime

2004-12-09 Thread Geoff Canyon
On Dec 8, 2004, at 10:39 AM, MisterX wrote: put (x div 2) into xfactors I haven't read through the rest carefully, but shouldn't this be trunc(sqrt(x))? You don't need to check for factors beyond the square root. regards, Geoff Canyon [EMAIL PROTECTED

Re: Can MC drag and drop with a list field?

2004-11-05 Thread Geoff Canyon
. regards, Geoff Canyon [EMAIL PROTECTED] On Nov 5, 2004, at 6:10 AM, Ray Horsley wrote: David, Sure would be nice. I'd like to have a simple way to do this, too. But if nobody responds with an easy solution you might find it not that much harder to create a graphic to highlight the lines (clone

Re: hand cursor

2004-09-17 Thread Geoff Canyon
inserting code into the developer's project at build time, which is something I wanted to avoid completely. regards, Geoff Canyon [EMAIL PROTECTED] ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard

Re: hand cursor

2004-09-17 Thread Geoff Canyon
the hand. If that breaks functionality, how? Apart from the fact that they seem to have used 28 when they should have used an unused ID, have they followed that spec? regards, Geoff Canyon [EMAIL PROTECTED] ___ metacard mailing list [EMAIL PROTECTED] http

Re: hand cursor

2004-09-17 Thread Geoff Canyon
On Sep 17, 2004, at 2:13 PM, Ken Ray wrote: On 9/17/04 11:14 AM, Geoff Canyon [EMAIL PROTECTED] wrote: In Revolution or MetaCard, the default browse tool is the native arrow. This is regardless of the defaultCursor. Setting the defaultCursor to hand would cause the hand cursor to be used. Setting

Re: 10000 fields and crash

2003-10-06 Thread Geoff Canyon
/metacard regards, Geoff Canyon [EMAIL PROTECTED] ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard

Re: MC IDE

2003-08-24 Thread Geoff Canyon
. May be a wacky question, but it just occurred to me so I thought I'd shake up some dust: how do you (anyone) plan on handling documentation? You say you don't have any problems with just dropping in the latest engine -- but that doesn't update the documentation. regards, Geoff Canyon [EMAIL

Re: MC IDE

2003-08-24 Thread Geoff Canyon
before they'd run standalone in MC. regards, Geoff Canyon [EMAIL PROTECTED] ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard

Re: open source (Richard Gaskin)

2003-07-18 Thread Geoff Canyon
reporting database, which IIRC is now open to all comers. Go to www.runrev.com, click Developers, scroll down to Feedback. They use bugzilla - it's hairy but basically great. Warning - doesn't seem to play well with Safari - try iCab or IE if you're on Mac. regards, Geoff Canyon [EMAIL

Re: open source (Richard Gaskin)

2003-07-17 Thread Geoff Canyon
. The larger difference is that the RR IDE will continue to be maintained by Runtime, while the MC IDE will be left to a set of developers to be named later. regards, Geoff Canyon [EMAIL PROTECTED] ___ metacard mailing list [EMAIL PROTECTED] http

Re: open source (Richard Gaskin)

2003-07-17 Thread Geoff Canyon
On Thursday, July 17, 2003, at 07:20 PM, Richard Gaskin wrote: Geoff Canyon wrote: Both IDEs are more or less open source, inasmuch as the source is largely exposed in each, available for modification if you wish. How does one submit bug fixes in the Rev IDE? There is (as yet) no defined policy

Re: Moving the MC IDE forward

2003-07-12 Thread Geoff Canyon
bothered by the palettes in Revolution. Wouldn't it be possible to simply not open/use those palettes? regards, Geoff Canyon [EMAIL PROTECTED] ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard

Re: Moving the MC IDE forward

2003-07-12 Thread Geoff Canyon
with new engines, then that's a minimal task and I don't see any reason not to. regards, Geoff Canyon [EMAIL PROTECTED] ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard

Re: MC Documentation in wiki format...

2003-06-07 Thread Geoff Canyon
I hope this helps. Feel free to contact me if you have any further questions. regards, Geoff Canyon Revolution Support -- Geoff Canyon [EMAIL PROTECTED] http://www.runrev.com/ Runtime Revolution Limited: Software at the Speed of Thought Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707

Re: indexing slow-down (i.e., speeding up programs)

2003-04-12 Thread Geoff Canyon
'---''(_/--' `-'\_) ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard I hope this helps. Feel free to contact me if you have any further questions. regards, Geoff Canyon Revolution Support -- Geoff Canyon

Re: MC 2.5B6 Bug in Cloning

2003-03-29 Thread Geoff Canyon
is issued, but it no longer does this in 2.5B6. I hate to ruin whatever the user may have on the clipboard by using the obvious work around of selecting it and then doing a doMenu Copy. Any comments or insight on this anybody? regards, Geoff Canyon [EMAIL PROTECTED

Re: listBehavior problem

2003-01-12 Thread Geoff Canyon
to 0,0   set the hilitedLines of field fImageList2 to 0,0 end openCard   Thank you.   Nicolas Cueto   P.S. Thanks to Klaus Major for the answer printer fix. I hope this helps. Feel free to contact me if you have any further questions. regards, Geoff Canyon Revolution Support -- Geoff Canyon

Re: Quintessential XCMDs

2002-12-25 Thread Geoff Canyon
, having used most of them myself. Scanning the list, I found only seven that MetaCard could not do natively, and one of those seven I left in the list because I wasn't sure exactly what its purpose was. regards, Geoff Canyon [EMAIL PROTECTED] ___ metacard

Re: Publishing an article on xTalk and JavaScript?

2002-10-10 Thread Geoff Canyon
in your content. If you don't want it changed, you can lock the page(s) with a password. -- regards, Geoff Canyon [EMAIL PROTECTED] ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard

Re: MC Book-other ideas

2002-10-07 Thread Geoff Canyon
At 03:38 PM 10/4/2002 -0500, you wrote: 1. Wouldn't this be a good use of a Wiki? Karl B., are you able to set up a Wiki rather than a website? There is already a Wiki available. Currently it contains the entirety of the Revolution documentation, as well as some other material that has been

Re: MC Book-other ideas

2002-10-07 Thread Geoff Canyon
At 10:52 AM 10/4/2002 -0700, you wrote: One possibility (maybe more easily doable, probably less fraught with ownership issues, and certainly more current, than a book) would be to create a MC documentation site similar to the one for MySQL (see http://www.mysql.com/doc/en/index.html ). In

Book Wiki

2002-10-07 Thread Geoff Canyon
I've put up a possible book outline on the wiki. It's Revolution-centric, but don't let that stop you -- edit it to your taste! As usual, everyone is free to edit/contribute right now, no logins required. http://wiki.macitworks.com/revdocs/2382 regards, Geoff

The Revolution Wiki has moved

2002-09-24 Thread Geoff Canyon
. The best part is that anyone with knowledge to contribute can add to an existing page ,or add a whole new page, just by going to the wiki web site and clicking an edit button on the page. No prior authorization or setup is required. -- regards, Geoff Canyon [EMAIL PROTECTED

Re: hide/show menu buttons

2002-09-10 Thread Geoff Canyon
it looks fine on windows. http://macitworks.com:8080/revdocs/aboutMenus Both those links are quoted from the documentation for Revolution, but the concepts are the same. -- regards, Geoff Canyon [EMAIL PROTECTED] ___ metacard mailing list [EMAIL

Re: htmlText

2002-07-18 Thread Geoff Canyon
while it is rendered. If you need that, it's a different kettle of fish. -- regards, Geoff Canyon [EMAIL PROTECTED] ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard

Re: MetaCard is 10

2002-07-07 Thread Geoff Canyon
Hi Everyone, A big round of applause for Scott Raney and his team, as, for those of you who don't know, MetaCard turned ten this weekend. Cheers! Kevin Scott, you rock the world. -- regards, Geoff Canyon [EMAIL PROTECTED] ___ metacard mailing

Re: Synchronous FTP upload?

2002-06-26 Thread Geoff Canyon
At 10:36 PM -0700 6/25/02, Richard Gaskin wrote: Geoff Canyon wrote: At 11:35 PM -0700 6/24/02, Richard Gaskin wrote: I have a fairly complex setup in which I nee to avid race conditions, and using put seems to allow processing of other messages while it's connecting and uploading. Could

Re: MetaCard 2.4.3 alpha 1 release

2002-05-21 Thread Geoff Canyon
9 or 8.6), correct? -- regards, Geoff Canyon [EMAIL PROTECTED] ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard

Re: script limits

2002-05-16 Thread Geoff Canyon
Scott is ready by then ;-) -- regards, Geoff Canyon [EMAIL PROTECTED] ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard

Re: script limits

2002-05-16 Thread Geoff Canyon
thinking ahead, Scott -- I can hardly wait to get started writing systems with multiple gigabyte-plus scripts! ;-) -- regards, Geoff Canyon [EMAIL PROTECTED] ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo

Re: script limits

2002-05-16 Thread Geoff Canyon
. Then if it did, think about trying to scroll through perhaps twenty million lines of code! Or deal with, oh, half a million handlers. It reminds me of the classic Tick comic, Night of a Million Billion Ninjas -- regards, Geoff Canyon [EMAIL PROTECTED

Re: Displaying long lines in 'Don't Wrap' fields

2002-04-26 Thread Geoff Canyon
as well? -- regards, Geoff Canyon [EMAIL PROTECTED] ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard

Re: calling handlers with keys

2002-03-16 Thread Geoff Canyon
At 2:50 PM +0100 3/15/02, Uwe Friese wrote: The problem with the keyDown messages is that I need the rest of the script inside the repeat loop to be executed constantly (to present a stream of objects on the screen). Like this: repeat presentSomeObjects -- this has to be performed

Re: MC2.4.2 beta 1 truncated text

2002-02-14 Thread Geoff Canyon
At 12:10 PM +0100 2/14/02, eugen helbling wrote: When the a field has a vertical grid, text is now truncated within a cell rather than being pushed off to the next tab stop location. just tried to setup a textfield to check this new behavior but do not see any changes to the last version.

Re: Programs on CD

2002-02-14 Thread Geoff Canyon
At 10:39 AM -0500 2/14/02, Shari wrote: As CD's cannot write to themselves, and all of my programs write to themselves, saving user info in fields etc., I am assuming the only way to put a program on CD is to have it write all data to an external file on the user's hard disk. So if a user is

Re: MetaCard 2.4.2 beta 1

2002-02-14 Thread Geoff Canyon
At 4:53 PM + 2/14/02, David Bovill wrote: Holding down the control key (command key on MacOS) while double-clicking on a stack now will start up MetaCard with the full development environment if the engine can find it. Aww go-on - let us have it the other way around - maybe just an

Re: MetaCard 2.4.2 beta 1

2002-02-13 Thread Geoff Canyon
At 12:38 PM -0700 2/13/02, Scott Raney wrote: new regex library From the readme: This release uses a new Perl-compatible regular expression library. This library includes new support for Perl pattern characters and non-greedy matches. Any Perl regular expression reference can be used for

Re: Exemplar: Analogue Clock

2002-02-04 Thread Geoff Canyon
At 12:31 PM -0800 2/4/02, Phil Davis wrote: Another way you can open the clock stack is: - copy the link (http://www.flexiblelearning.com/xtalk/AnalogueClock.mc) - open MC - open the message box - type in msg box (but don't hit enter when done!): go url - paste the link after the quote

Re: Launching a URL in OSX is Cake?

2002-01-24 Thread Geoff Canyon
At 10:31 AM -0800 1/24/02, Scott Rossi wrote: Am I missing something or is the launching URLs and mail links extremely easy in OSX? Using the following seems to launch IE or Mail perfectly: ### tURL is the HTTP or mail address to be launched put open location quote tURL quote into s

Re: Launching a URL in OSX is Cake?

2002-01-24 Thread Geoff Canyon
At 11:40 AM -0800 1/24/02, Scott Rossi wrote: On a related note, I come from a print background where we created page layouts by having type set for us on photo paper and pasting it down onto boards with rubber cement. Making corrections to anything required cutting the paper with an

Re: Launching a URL in OSX is Cake?

2002-01-24 Thread Geoff Canyon
At 4:18 PM -0600 1/24/02, J. Landman Gay wrote: Geoff Canyon wrote: It _is_ slightly more difficult, since you need to watch out for the / character in the legitimate path, which will have been translated to a : You could either escape the : which always gives me a headache, or do

February Programmer's Challenge is open to us

2002-01-16 Thread Geoff Canyon
This month's programmer's challenge in MacTech magazine is open to us, and actually offers some advantage to users of high-level tools: up to a 25% bonus is offered for good presentation of the results and other niceties. I've given a bit of thought to what algorithm might work to solve the

Re: power tools

2002-01-14 Thread Geoff Canyon
At 6:12 PM -0800 1/14/02, erik hansen wrote: in the tutorial i got all my objects grouped, but none of them appeared on my next card. i'll just have to do it again a couple of times and it sold be clear. set the backgroundBehavior of the group to true and then this will work the way you expect.

Re: power tools

2002-01-14 Thread Geoff Canyon
At 7:14 PM -0800 1/14/02, erik hansen wrote: this will get fun when button animation is introduced... Button animation? You should be able to do something like this already -- create an image and reference an animated gif. gc ___ metacard mailing

RE: why metacard?

2002-01-09 Thread Geoff Canyon
At 6:02 PM +0900 1/9/02, cowhead wrote: ?I think I'm stupid. Check that. I know I'm stupid, but I think I've displayed blatantly once again. I just bought Rev. Why? Because I've been a long time hyper/super/meta card user and they had such a good cross-grade deal. I saved 800 bucks. Also, I

Re: ss (searchScript)

2002-01-08 Thread Geoff Canyon
At 3:17 PM -0800 1/8/02, erik hansen wrote: i am trying not to use the list or support until completing the tutorials and at least skimming everything on the Help palette. however... i can't find anything like the HC ss (searchScript) handler to help find expressions like keyboard focus that

Re: why MetaCard?

2002-01-07 Thread Geoff Canyon
I chose Revolution, but one reason to choose MetaCard would be if your development machine isn't recent. Revolution (on a Mac) isn't happy on pretty much anything short of a 128MB machine. The standalones you build will have the same memory appetite as MetaCard standalones, but to develop, you

Re: why MetaCard?

2002-01-07 Thread Geoff Canyon
At 5:13 PM -0800 1/7/02, erik hansen wrote: one of the key questions for me was the restrictions RunRev puts on Rapid Application Development (whatever that is (and as i hear 2nd hand)). this issue does NOT seem to have struck a nerve . The restrictions are much the same, but not quite. Rapid

Re: Stackfile Handler in OS X

2002-01-05 Thread Geoff Canyon
At 10:10 PM -0500 1/4/02, Gregory Lypny wrote: Hi Everyone, I noticed that calls to substacks (e.g. go to stack X) based on the stackfile handler below, that I use in all my older stacks, does not work in OS X unless each of the substacks is opened individually first. Any thoughts on this?

Re: Two handlers sharing time

2001-12-18 Thread Geoff Canyon
At 3:19 PM -0500 12/18/01, Shari wrote: Is it possible to have handlers share time? So that when it is idle, the second handler runs? I have a very lengthy handler, that does certain things, calls other handlers, and they in turn call other handlers. This sets up the data for the user. As

Re: More problem when moving files

2001-12-11 Thread Geoff Canyon
At 5:19 PM +0100 12/11/01, [EMAIL PROTECTED] wrote: put URL \\boldini\e$\apps-prod\Cre-Pro\iml\CRE-TEST-DAT.mdb into URL \\boldini\e$\apps-prod\Cre-Pro\emr\history\test\backup.mdb Of course I tried, put URL e:\test.txt into URL h:\test.txt with the same successful result but no files being

Re: Talk about major speed killer!

2001-12-07 Thread Geoff Canyon
At 9:24 AM -0500 12/7/01, Shari wrote: This script is rather detailed and split into a million pieces. The gist of it is that I locked the screen, moved things around, and then unlocked the screen. In this case it's okay to let the user see the moves. In another part of the script, lock

Re: Talk about major speed killer!

2001-12-06 Thread Geoff Canyon
At 11:30 AM -0500 12/6/01, Shari wrote: I've written the code five different ways looking to increase the speed, as it just crawled. And each time it just got slower. I found the culprit, and I do not understand it... lock screen Can you post the script in question? regards, Geoff

Re: More re: visual effects

2001-12-06 Thread Geoff Canyon
At 8:32 PM -0500 12/6/01, Shari wrote: several examples, and the lockScreen is set to false for all of them (i put an answer lockScreen to test just before the effect, and took it out again) Note that this should be answer the lockScreen MetaCard is more particular about the than HyperCard is.

Re: [Metacard] Good ol' MC

2001-11-27 Thread Geoff Canyon
At 9:30 PM +0100 11/27/01, Eva Isotalo wrote: I have been developing my new game with another, which I thought more game friendly program _Now_ my curiosity is piqued -- what more game friendly program did you try? regards, geoff ___ metacard

[Metacard] Re: CGI under OS X via Darwin Success...

2001-11-26 Thread Geoff Canyon
At 4:24 PM -0500 11/24/01, Richard MacLemale wrote: This unlocks the candy store for me. One thought goes through my mind, though... Suppose an individual were to download the darwin engine, and the home and tools stacks... And suppose they install them and write some neato mt scripts for their

Re: Printing Field Text

2001-11-20 Thread Geoff Canyon
At 10:29 AM +0100 11/20/01, Vinciane BAUDOUX wrote: Yes, this is really a problem. I tried to print an exerpt of the MetaTalk Reference stack because reading the documentation on the screen is a strain to the eyes and you cannot underline important words or, for that matter, go to the cafetaria

Re: Printing Field Text

2001-11-20 Thread Geoff Canyon
At 9:33 PM +0100 11/20/01, Vinciane BAUDOUX wrote: I saw that this is the documentation package for Revolution, not for Metacard. Are they interchangeable ? Arrgh. RTFer won't work in MetaCard. It will open, but the stacks it looks for won't be there. The documentation concerns many of the same

Re: Printing Field Text

2001-11-19 Thread Geoff Canyon
At 5:48 PM -0800 11/19/01, Sadhunathan Nadesan wrote: Hi Geoff, I saw your post, looked at the scripts in the 'print field' stack. Wow, it seems so complicated. From what I could glean, it seems you cannot just print a field, you have to put the stuff into a card, and print the card. So

Re: Printing Field Text

2001-11-19 Thread Geoff Canyon
At 5:48 PM -0800 11/19/01, Sadhunathan Nadesan wrote: Hi Geoff, I saw your post, looked at the scripts in the 'print field' stack. Wow, it seems so complicated. From what I could glean, it seems you cannot just print a field, you have to put the stuff into a card, and print the card. So

Fwd: QA#1 for December Conferences Challenge

2001-11-18 Thread Geoff Canyon
Further info on the challenge -- gc X-Sender: [EMAIL PROTECTED] Date: Sun, 18 Nov 2001 12:42:33 -0500 To: CHALLENGE-A [EMAIL PROTECTED] From: Bob Boonstra [EMAIL PROTECTED] Subject: QA#1 for December Conferences Challenge Sender: [EMAIL PROTECTED] List-Subscribe: mailto:[EMAIL PROTECTED]

Fwd: December 2001 Programmer's Challenge Problem Statement

2001-11-17 Thread Geoff Canyon
In case anyone is interested in entering: X-Sender: [EMAIL PROTECTED] Date: Sat, 17 Nov 2001 10:14:41 -0500 To: CHALLENGE-A [EMAIL PROTECTED] From: Bob Boonstra [EMAIL PROTECTED] Subject: December 2001 Programmer's Challenge Problem Statement Sender: [EMAIL PROTECTED] List-Subscribe:

Re: Fwd: December 2001 Programmer's Challenge Problem Statement

2001-11-17 Thread Geoff Canyon
At 6:35 PM -0500 11/17/01, andu wrote: Test code is not needed for this Challenge, as you will provide a complete application. Test data will be available shortly. Note that we are allowing solutions built using alternative development environments (e.g., REALbasic, MetaCard, Revolution).

Re: Programming language

2001-11-13 Thread Geoff Canyon
At 8:36 PM -0800 11/13/01, Richard Gaskin wrote: Thanks for the input Richard but the problem I have had with MetaCard (which I love!) is that I cannot import or export vector graphics. If you don't need gradients or other such features, and the problem is limited to import/export, writing an

Re: Array Puzzler

2001-11-08 Thread Geoff Canyon
At 8:02 PM -0500 11/8/01, Raymond E. Griffith wrote: To get the results back in numeric order, after the combine try: sort lines of B numeric This won't work. Suppose that that array A is [[ -4 -3 -2 -1 0 1 2 3 ]] and that the operation is put A*A into B Ah -- sorry, I was just

Re: Mac-text

2001-10-31 Thread Geoff Canyon
At 9:54 AM -0600 10/31/01, Ken Ray wrote: This has to do with the fact that the Mac uses a carriage return/line-feed combination (CRLF) at the end of each line, and Windows generally uses just LFs (or is just CRs? I can't remember right now). CRs are ASCII 13, LFs are ASCII 10, BTW. In any event,

Re: wait for moves

2001-10-31 Thread Geoff Canyon
At 7:08 PM +0100 10/31/01, Klaus Major wrote: Hi Michael, I have a script with a repeat loop that causes objects to move around the screen. Depending on user choices, sometimes there are simultaneous moving objects ( because without waiting was used for the objects move). This is the

Re: Arrays! We have arrays?!?

2001-10-31 Thread Geoff Canyon
need to predefine the valid range of numbers, nor do you have to use them consecutively. Again, _anything_ is a valid key. phoneNumbers[Geoff Canyon] is perfectly valid, and could store my phone number. This fact combined with the keys() function can be used in some interesting ways. Have fun

Re: Wrong Path?

2001-10-24 Thread Geoff Canyon
At 10:23 PM +0200 10/24/01, JJB wrote: I've got a problem, probably basic, but annoying for me. I build stacks with images and sounds 16 bit. To prevent my stacks to need too muchm memory, I don't import the sounds. They stay in a folder called Data. My players for the sounds have a path like

Re: Mod function

2001-10-16 Thread Geoff Canyon
Hi Everyone, Just confirming that MC does not have a mod function. Right? So, I would use something like 5/2 - trunc(5/2) = 0.5 Greg Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please

Re: Performance: .mt scripts accessing data outside script

2001-10-13 Thread Geoff Canyon
At 7:39 PM -1000 10/12/01, Sivakatirswami wrote: 2) In terms of speed: We have three options for containers I can use to store the needed data for the different responses and email text that have to be sent out... which of these three will be fastest? I am trying to save some dozen hours of

Re: Scrolling two fields simultaneously

2001-10-11 Thread Geoff Canyon
At 2:06 PM -0700 10/11/01, Kevin Wilson wrote: I am new to meatard, and am hoping that I can get some advise on what I am sure is a simple question. I have two text fields that a side by side and hold related data. I would like to be able to lock them together so that when I scroll in one field

Re: Go to card by its name?

2001-10-09 Thread Geoff Canyon
At 8:42 PM +0200 10/9/01, Domi wrote: I noticed that the index is not refreshed if its window stays opened... A change in the title field or a new card is not immediately acknowledged (I resort to opencard ;-)) You can move the index-building code into another handler, buildIndex for example.

Re: regExp to verify email address

2001-10-04 Thread Geoff Canyon
At 5:19 PM -1000 10/3/01, Sivakatirswami wrote: It appears obvious that at least I have to unspecialize PERL special characters by removing the forward slashes for: @,[ and then the second If I remember correctly, the regEx engine used in MetaCard has a doesn't properly escape square brackets:

Re: Currency format

2001-10-02 Thread Geoff Canyon
At 10:53 AM -0700 10/2/01, F. Ricardo, Ph.D. wrote: Now, it does nothing about the $ prefix, which if absolutely necessary would need implementation in something like the following abominable manner. In apps like Excel, the $ in cells are not part of the data. Rather they are part of the

Re: ImageData help.... getting the rgb value of the first pixel

2001-09-28 Thread Geoff Canyon
At 5:32 PM -0400 9/28/01, Raymond E. Griffith wrote: Now here's my question: What's the most efficient way to parse a chunk of data into every four characters and discard the first one? So many ways to slice that one, and I haven't had time lately to run routines through MetaBench

Re: Cases in the switch statement

2001-09-21 Thread Geoff Canyon
At 2:03 PM -0400 9/21/01, Gregory Lypny wrote: Can the switch control structure handle inequalities in the cases, such as case = 0.235 ? Not as you specified above, but instead of: switch x case 1 break case 2 end switch You can do: switch case x = 1 break case x = 2 break

Re: more quicktime problems

2001-09-18 Thread Geoff Canyon
At 11:06 AM -0700 9/18/01, Jeff Reynolds wrote: any ideas for trying to prevent the flashing while the movie is paused w/o setting its alwaysbuffer to true? I haven't tried this, but is it possible to set the alwaysBuffer to true when pausing the movie, and false when playing the movie? gc

Re: Windows Services

2001-09-14 Thread Geoff Canyon
At 4:07 PM +0200 9/14/01, [EMAIL PROTECTED] wrote: The application runs with a delayed idle message. Are you using idle or send...in messages? Not that idle shouldn't work, but in the minds of the MC developers it's been completely superseded by send...in. (rightly so, by the way) In any case,

Re: File creation date

2001-09-13 Thread Geoff Canyon
At 1:48 PM -0400 9/12/01, [EMAIL PROTECTED] wrote: Is there a way to read the Creation, Modified, or Last Accessed date of a file? Available in 2.4, the detailed files function: The function the detailed files returns a comma-delimited list of file attributes including the urlEncoded file

Re: Quicktime stuttering

2001-09-13 Thread Geoff Canyon
At 12:09 AM -0700 9/13/01, Jeff Reynolds wrote: I'm having some movie stuttering on quicktime player playback in metacard on the mac. The movies are sorenson compressed and 30fps and play fine in apple quicktime player, but in metacard it seems to go at a rate of about 12-15fps. giving the

Re: disabled in 2.4

2001-09-13 Thread Geoff Canyon
At 11:46 AM +0200 9/13/01, Signe Marie Sanne wrote: What happened to the disabled appearance of a button in MC2.4? I have a standard button, with show border,3D, opaque and disabled, white text (255,255,255) on red background. On Mac (8.5) there's no difference in the disabled/enabled states,

Re: Opening substacks as invisible

2001-09-12 Thread Geoff Canyon
At 7:17 AM + 9/12/01, jbv wrote: How can I open a substack, rearrange (by script) various controls on it, and then print it, without ever disokaying it on screen ? go invisible stack somestack Regards, Geoff Archives: http://www.mail-archive.com/metacard@lists.runrev.com/ Info:

Re: Problem with pasting from SimpleText

2001-09-08 Thread Geoff Canyon
At 9:07 PM -0400 9/8/01, Raymond E. Griffith wrote: Copying and pasting within the stack worked, but copying from SimpleText does not work. I just tried BBEdit 6.1 lite. Copying from that program and pasting into MC works. Also works with TexEdit. It's just a guess, but that sounds like a

Re: 'delete' deletes right away... trash?

2001-09-04 Thread Geoff Canyon
At 9:21 PM +0200 9/4/01, Sjoerd Op 't Land wrote: It'd be nice when MetaCard put the files in the trash when using the 'delete' command, because then there still was a way to recover the files. On a Mac, at least, with the new AppleScript support: tell application finder to move file tFilePath

Re: Julian Dates

2001-08-31 Thread Geoff Canyon
At 4:55 PM -0700 8/30/01, Richard Gaskin wrote: This raises a question: Wouldn't it be cool if there were some repository of such snippets, like a code stream we could dip into when we're thirsty for knowledge? I don't know how such a thing could work, or how folks would submit contributions,

Re: A little troublesome script

2001-08-22 Thread Geoff Canyon
At 8:04 AM +0200 8/22/01, MisterX wrote: on mouseUp put fld HistoryChanges into HC -- ;) put the short date into todaysdate put line 3 of HC into lastDateEntry if lastDateEntry is not todaysdate then type todaysdate return return before line 3 of fld HistoryChanges else type

Re: Interconnecting Metacard apps via sockets...

2001-08-15 Thread Geoff Canyon
At 10:04 PM +0100 8/14/01, David Bovill wrote: I am looking for a way to interconnect apps running on the same machine (on any platform), and thinking of using sockets. I will be programming the basic modules in MC, but want to leave the door open for modules to be coded in other languages,

  1   2   >