Re: Is it possible to access or set individual pixels of an image?

2010-11-17 Thread Geoff Canyon Rev
You should try to do all the updates as one: get the imagedata of the image, make whatever changes you need to, then set the imagedata of the image again. There are a few gotchas when setting the imagedata. Make sure the image is the right size. If you're setting a 10x20 pixel image, you need to

Re: [OT], but imagine an iPad Rev...

2010-10-26 Thread Geoff Canyon Rev
I'm puzzled -- I thought the regulations still prohibited anything that loads executable code? On Mon, Oct 25, 2010 at 10:44 AM, Colin Holgate co...@verizon.net wrote: http://itunes.apple.com/app/iluabox/id398073834 ___ use-revolution mailing

Re: [OT], but imagine an iPad Rev...

2010-10-26 Thread Geoff Canyon Rev
to recover since EA and other big boys use it inside their games. On Tue, Oct 26, 2010 at 11:14 AM, Geoff Canyon Rev gcanyon+...@gmail.com gcanyon%2b...@gmail.comgcanyon%2b...@gmail.comgcanyon%252b...@gmail.com wrote: I'm puzzled -- I thought the regulations still prohibited anything

Re: loading another stack from splash

2010-09-28 Thread Geoff Canyon Rev
You need to specify the filename of the stack, not the stack name. This is simple, but works: *on* preopenstack *set* the loc of this stack to the screenloc *end* preopenstack *on* openStack *send* gothere to me in 2 seconds *end* openStack *on* mouseUp gothere *end* mouseUp

Re: Web Deployment

2010-09-21 Thread Geoff Canyon Rev
Corporate clients might pay for web deployment. On Tue, Sep 21, 2010 at 8:08 AM, David Bovill da...@vaudevillecourt.tv wrote: On 21 September 2010 12:28, -=JB=- sund...@pacifier.com wrote: I think it is the On-Rev package that has been offered for quite some time now and many have purchased

Re: revNavigator

2010-08-20 Thread Geoff Canyon Rev
in the IDE you have no access to it. What more there is in terms of RevNavigator competition? On Tue, Aug 17, 2010 at 10:26 PM, Geoff Canyon Rev gcanyon+...@gmail.comgcanyon%2b...@gmail.com wrote: I was referring to the fact that for most people revNavigator just takes up space

Re: revNavigator

2010-08-17 Thread Geoff Canyon Rev
it. Best regards, Mark Talluto http://www.canelasoftware.com On Aug 13, 2010, at 10:32 PM, Geoff Canyon Rev wrote: revNavigator hasn't been updated for several versions, so it's entirely possible that the dev environment has changed since I wrote it. Or I might just have done a bad job

Re: SoCal Rev User Group meeting: Thursday, August 19th

2010-08-17 Thread Geoff Canyon Rev
I recently moved to St. Louis -- where are you located? gc On Fri, Aug 13, 2010 at 11:37 AM, Andrew Kluthe and...@rjdfarm.com wrote: Hmm. I wonder how many rev users are in the St. Louis-ish area that would be interested in something similar. -- View this message in context:

Re: SoCal Rev User Group meeting: Thursday, August 19th

2010-08-17 Thread Geoff Canyon Rev
Richard, I'm one day off -- I'm flying in on Friday to visit my son. :-( gc On Tue, Aug 17, 2010 at 12:29 PM, Geoff Canyon Rev gcanyon+...@gmail.com wrote: I recently moved to St. Louis -- where are you located? gc On Fri, Aug 13, 2010 at 11:37 AM, Andrew Kluthe and...@rjdfarm.com wrote

Re: revNavigator

2010-08-17 Thread Geoff Canyon Rev
stephenrevoluti...@barncard.com wrote: I thought it shipped in the plugins folder within every new install of Rev! sqb On 17 August 2010 10:27, Geoff Canyon Rev gcanyon+...@gmail.comgcanyon%2b...@gmail.com wrote: aw gee, thanks guys -- nice to know it lives on in some people's tool boxes. gc

Re: [HELP] anyone have a simple handler to add a control to a group programatically?

2010-08-13 Thread Geoff Canyon Rev
revNavigator hasn't been updated for several versions, so it's entirely possible that the dev environment has changed since I wrote it. Or I might just have done a bad job with it ;-) That said it still works -- I don't do much work with Rev anymore, but when I do I couldn't live without it.

Re: Harry Potter's magic button - a solution to another tricky group bug

2010-08-03 Thread Geoff Canyon Rev
Not sure, but I'd guess that the OP is falling afoul of the elastic nature of groups that have lockloc=false. When that is the case, groups automatically snap to the bounds of whatever they contain whenever they get the chance -- i.e. when the things they contain move or are themselves resized (I

problem posting to a secure connection from a standalone?

2010-07-14 Thread Geoff Canyon Rev
I want to post to a secure url like so: on mouseUp post base64encode(email=some...@gmail.compassword=mypass) to url https://simple-note.appspot.com/api/login; if the result is not empty then put the result into fld 1 else put it into fld 1 end if end mouseUp In the

Re: Pointlist from move command?

2010-07-04 Thread Geoff Canyon Rev
I wouldn't recommend the polling solution, but if you want to go with that, add without waiting and you'll be able to get the moving object's position as it moves. On Wed, Jun 30, 2010 at 2:48 AM, Michael Kristensen michael-kristen...@dsa-net.dk wrote: Hi and thanks for replies I dunno: if you

Re: That nice XML exporter for stacks...

2010-06-15 Thread Geoff Canyon Rev
I think I used the properties property, which even then didn't get absolutely everything, but did get nearly all the properties. If it's been kept up to date the stack should already be in sync. gc On Sun, May 16, 2010 at 4:18 PM, Alejandro Tejada capellan2...@gmail.com wrote: Hi Andre, Will

Re: Is there a way to upload files?

2010-06-10 Thread Geoff Canyon Rev
Hey Dave, I finally got around to trying this and had no luck. I'm trying to attach a file to a jira ticket and jira isn't cooperating at all. I'm looking at the headers for a successful file upload using a tool in firefox and noticed that it was using Content-Type: image/png instead of

Re: Galaga 1990

2010-05-26 Thread Geoff Canyon Rev
You definitely don't want to do this by positioning everything every time you update. Instead, the move command is your special friend here. For the enemy, you can plot out a randomized course from the top to the bottom, and then tell it to follow that path in a set amount of time. The bullets are

Re: Galaga 1990

2010-05-26 Thread Geoff Canyon Rev
Since the enemies' paths are pre-determined in this method, you can determine whether a particular shot will hit an enemy at the time the shot is fired. And vice versa, whether an enemy that you are planning the route for will intersect any of the current shots on the screen. It requires a bit of

Re: Reading the HyperNext manual #1

2010-05-19 Thread Geoff Canyon Rev
HyperNext is hardly developed by 1 person. It is based on REALbasic, using RB's scripting language as its programming language. So the fact that it can play multiple sounds, run on multiple platforms, etc., comes courtesy of the hard work of the team at REAL Software. It would be about the same

Re: Reading the Supercard manual #1

2010-05-19 Thread Geoff Canyon Rev
long long ago I wrote a full stack - XML - stack converter. It's been about ten years so I wouldn't be surprised if it's broken, but here: http://inspiredlogic.com/mc/ripper.html ___ use-revolution mailing list use-revolution@lists.runrev.com Please

Is there a way to upload files?

2010-05-15 Thread Geoff Canyon Rev
It's easy enough to look at a web form and convert it to a set of arguments to use in rev, like so: http://www.someserver.com/someAction.jspa?type=12summary=this+is+a+testuser=geoff.canyonpassword=test But what if the form includes file upload? Is there a way to take a local file and include it

Re: Is there a way to upload files?

2010-05-15 Thread Geoff Canyon Rev
themselves as a post argument? That's where I'm unclear. thanks, gc On Sat, May 15, 2010 at 10:45 AM, Jim Ault jimaultw...@yahoo.com wrote: On May 15, 2010, at 8:08 AM, Geoff Canyon Rev wrote: It's easy enough to look at a web form and convert it to a set of arguments to use in rev, like so

Re: Is there a way to upload files?

2010-05-15 Thread Geoff Canyon Rev
On Sat, May 15, 2010 at 1:53 PM, Mark Wieder mwie...@ahsoftware.net wrote: Geoff- !I just started looking into doing an interface to Jira yesterday! ...and btw, Atlassian has *great* licensing if you're interested in professional-quality cross-platform (anywhere java runs) tools. They have

Re: Is there a way to upload files?

2010-05-15 Thread Geoff Canyon Rev
thanks, I'll give it a shot! On Sat, May 15, 2010 at 3:10 PM, Dave Cragg dave.cr...@lacscentre.co.uk wrote: On 15 May 2010, at 21:07, Dave Cragg wrote: The use is a little complicated. You set the httpHeaders to the first line of the returned data, and lines 2 to the end is the data to

Re: group a single object?

2010-05-11 Thread Geoff Canyon Rev
Seemingly only if the item is not already part of a group (no idea why). The code I posted will work at any level of nested groups. gc On Tue, May 11, 2010 at 1:03 AM, Chipp Walters ch...@altuit.com wrote: Can't you also: group  img 1 set the name of it to mySpecialGrp .??

Re: That nice XML exporter for stacks...

2010-05-10 Thread Geoff Canyon Rev
Waay back when I wrote mcRipper: http://inspiredlogic.com/mc/ripper.html It exported to XML, and re-constituted from the XML. I haven't looked at it in about ten years. It never broke anything, but always use it on a copy of your files. gc On Mon, May 10, 2010 at 1:32 PM, Andre Garzia

Re: Strange results in deletion of lines

2010-05-10 Thread Geoff Canyon Rev
Just in case anyone doesn't realize how different the options are, I wrote this code. on mouseUp repeat 3 put any char of abcdefghijklmnopqrstuvwxyz random(10) this is a test string for a fixed-record-length processing test cr after X end repeat delete char -1 of X

Re: group a single object?

2010-05-10 Thread Geoff Canyon Rev
I think this works reasonably well: put the layer of btn target into L set the relayerGroupedControls to true create group container put the long id of it into C set the layer of btn target to the layer of C set the layer of C to L The business with long id is to make sure

Punching holes in a graphic

2010-04-16 Thread Geoff Canyon Rev
Here's the effect I'm trying to achieve: I have an image on the card. I want to partially obscure the image, making it desaturated/darker/something like that, and then have areas of the image that show through unaltered (preferably roundrect areas). I can obscure the image by putting an opaque

Re: [OT] What's an iPad?

2010-04-11 Thread Geoff Canyon Rev
I use Files for PDFs on the iPhone. If you plan to use it much I recommend the full version: it's only a few bucks, and quick navigation through PDFs (among other things) is really useful. On Sun, Apr 11, 2010 at 10:59 AM, Neal Campbell nealk...@gmail.com wrote: I had mine delivered from China

Re: [OT] What's an iPad?

2010-04-11 Thread Geoff Canyon Rev
I think it's going to take a few years, but it's going to replace other ways of using computers: http://gcanyon.wordpress.com/2010/02/04/the-ipad-revolution-its-1984-all-over-again/ On Sun, Apr 11, 2010 at 10:49 AM, Richmond Mathewson richmondmathew...@gmail.com wrote:  My top 3 ideas are: 1.

Re: scrolling groups and magic mouse?

2010-02-27 Thread Geoff Canyon Rev
then      set the scroll of me to the scroll of me +2   else if theKey = swipeup number then      set the scroll of me to the scroll of me -2   end if   put the scroll of me end rawkeydown bjoernke ps: 65308,65309 On 26 Feb 2010, at 15:38, Geoff Canyon Rev wrote: fields seem to respond

scrolling groups and magic mouse?

2010-02-26 Thread Geoff Canyon Rev
fields seem to respond to swipe-scrolling with the magic mouse just fine, but groups with scrollbars don't. Is there a way to fix that? ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and

Re: Project Euler [SPOILER #3]

2010-02-25 Thread Geoff Canyon Rev
It's hurting my head trying to figure out why yours works. ;-) That said, it's very slow. The simple brute force method is roughly 100 times faster (since it doesn't iterate 10,000 times but only 100): put 0 into total put 0 into summer repeat with i = 1 to 100

Re: Project Euler [SPOILER #3]

2010-02-25 Thread Geoff Canyon Rev
Ah, now I understand how yours works -- that _is_ quite clever! gc On Thu, Feb 25, 2010 at 8:21 AM, Geoff Canyon Rev gcanyon+...@gmail.com wrote: It's hurting my head trying to figure out why yours works. ;-) That said, it's very slow. The simple brute force method is roughly 100 times

Re: Project Euler

2010-02-24 Thread Geoff Canyon Rev
I did about eighty project euler problems in rev about three years ago. In the process I wrote my own bignum library and many other utility routines. I don't know that any of it was release-worthy, or if I have the stacks anymore. Then I switched to coding in J (which has built-in unlimited

Re: Project Euler [SPOILER #3]

2010-02-24 Thread Geoff Canyon Rev
Are we talking about the same #3? The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? On Tue, Feb 23, 2010 at 11:04 AM, Brian Yennie bri...@qldlearning.com wrote: I'm pretty proud of this one for #3... SPOILER ALERT SPOILER ALERT...

Browser objects are odd?

2009-12-11 Thread Geoff Canyon Rev
Having not used rev much over the last several years, I never learned about the browser object, and now find myself puzzled. Is it fair to say that the browser object is handled completely differently than other objects? For example, you can't simply drag a browser object into your stack from

Re: Browser objects are odd?

2009-12-11 Thread Geoff Canyon Rev
Thanks for the info! On Fri, Dec 11, 2009 at 11:40 AM, roger.e.el...@sealedair.com wrote: Richard Gaskin wrote: As Trevor pointed out, it's an external (in fact, it started out as a third-party offering from Altuit, acquired by RR a few years ago). And ever since the acquisition, I have

Re: Importing data into RevDB

2009-12-08 Thread Geoff Canyon Rev
A note of caution when using this. The chunking rules for Rev are that a line can contain items, but items cannot contain lines. Lines can contain items, items contain words.  wrong =  line 6 of item 4, no matter the delimiter You can get past this by adding parentheses: item 1 of word 2

Re: Reference Function Name Via Variable?

2009-01-18 Thread Geoff Canyon
A lot of people have made good suggestions, but I think you're looking for first class functions: http://en.wikipedia.org/wiki/First-class_function They're common in functional languages, rare in procedural languages. In particular you're looking for what is commonly called the map

Re: more rev 3.0 woes - losing the will to live

2008-10-08 Thread Geoff Canyon
On Oct 6, 2008, at 4:56 AM, Eric Chatonet wrote: I don't use Geoff plugin but I assume that you'll find a 'save this stack' somewhere in Geoff code when closing or quitting. Checking last modified file date will probably confirm that the stack auto saves. The troll comes out from under

Re: OT: 2D to 3D Tools -- What Happened to Canoma?

2007-01-02 Thread Geoff Canyon
You might take a look here: http://www.cs.cmu.edu/~dhoiem/projects/popup/index.html It's software by a research team that automatically generates a 3D image from a 2D source. As far as I know, it only works with outside scenes. It works by deciding where the horizon is, and figuring out

Re: Good ways to overcomplicate your code and slow down

2006-09-19 Thread Geoff Canyon
On Sep 15, 2006, at 1:37 PM, Robert Sneidar wrote: Actually I use comments in a fairly unique way. I pseudocode what I want to do in comments, and then code around the comments so I can keep track of where I am at and what I am trying to accomplish. This is what Steve McConnell recommends

Re: Can this be done faster ?

2006-07-21 Thread Geoff Canyon
On Jul 20, 2006, at 7:27 PM, John Miller wrote: put 50 into XX put the ticks into timer repeat until listXX is empty put line 1 to XX of listXX into listYY delete line 1 to XX of listXX repeat with x = 1 to (number of lines in listYY) doaction to line x of listYY end repeat end

Re: the long name of me OR the long ID of me?

2006-07-19 Thread Geoff Canyon
On Jul 18, 2006, at 4:46 PM, Josh Mellicker wrote: To easily identify a specific control on a card in a stack, what method do you use? I use the long id every time, because it's guaranteed unique. This has sometimes caused problems, when the engine helpfully de- references the long id,

Re: Personalized Syntax: [was Dependence on Programming Experts]

2006-07-18 Thread Geoff Canyon
On Jul 17, 2006, at 7:23 AM, Rob Cozens wrote: Hi Geoff, I think the key for something like this will be when we move beyond what could be described as keyboard shortcuts, and into something that can only be described as enhanced syntax, i.e. something that actually changes the way you

Re: Personalized Syntax: [was Dependence on Programming Experts]

2006-07-16 Thread Geoff Canyon
I listed many several years back, and implemented about a dozen. I think the key for something like this will be when we move beyond what could be described as keyboard shortcuts, and into something that can only be described as enhanced syntax, i.e. something that actually changes the way

Re: Reordering lists with drag n' drop

2006-06-16 Thread Geoff Canyon
You could look at the code in Navigator, which does this. An older version is in your plugins folder; it implements drag and drop with a line showing where the drag will end up. The latest version implements drag and drop in a different way, making the change immediate as you drag. You can

Re: Script Editor Handler pullDown deficiencies

2006-06-11 Thread Geoff Canyon
On Jun 11, 2006, at 7:56 AM, Rob Cozens wrote: 1. If the first line of a script is a /*Comment*/, the Script Editor's Handler pullDown lists No Handlers 2. If the script has a large number of handlers (eg: Serendipity Library), the Script Editor's Handler pullDown omits some of them

Re: item random() (was Random(3) often returns 1)

2006-06-08 Thread Geoff Canyon
I just ran this code on mouseUp repeat 1000 add 1 to x[random(3)] end repeat put sum(x) into y combine x using cr and tab put x cr cr y end mouseUp and got this: 1 329 2 328 3 328 985 Note that the three numbers don't add up to 1000, but there are no

Re: item random() (was Random(3) often returns 1)

2006-06-08 Thread Geoff Canyon
On Jun 8, 2006, at 4:59 PM, Mark Schonewille wrote: Funny, that's exactly what I demonstrated in a previous e-mail, earlier to/yesterday. Apparently, there is more than one workaround. Maybe a slight pause is all it takes. Looking back I see that -- apparently I didn't read the previous

Re: extract every code out of stack

2006-05-30 Thread Geoff Canyon
On May 30, 2006, at 11:38 AM, Claus Dreischer wrote: It was my understanding, that the preOpenStack message is only sent to the (sub)stack that is going to open, not that it's going to the (main)stack that triggered the opening of the (sub)stack too (and all other substacks without an own

Re: table viewer - SQL - Rev

2006-05-08 Thread Geoff Canyon
Jim Ault wrote: I have used Access and Fox Pro on Windows, and use Excel on the Mac to view tables of data from different sources where I can apply filtering and sorting to find data errors/omissions in a table view. Is there such a program for the Mac that can handle more than 65000 rows

Re: drag a title-less palette stack

2006-05-07 Thread Geoff Canyon
Here's the relevant code from the titlebar of my Navigator palette. local sMoving -- boolean that indicates whether we are dragging or not local sLoc -- the starting loc of the mouse on mouseDown put true into sMoving put the mouseLoc into sLoc end mouseDown on mouseUp put false into

Re: Sort-of OT: Learning Python

2006-05-06 Thread Geoff Canyon
On May 5, 2006, at 2:25 AM, Alex Tweedly wrote: Before I go and read the blog, I'll take a wild guess that you're on a Mac. True, but most of the issues I saw were platform-independent. For example, the latest version of Boa Constructor is 0.4.4-Alpha. Is the alpha release stable? If I

Re: Sort-of OT: Learning Python

2006-05-06 Thread Geoff Canyon
On May 6, 2006, at 4:37 PM, Mark Schonewille wrote: In fact, I can't imagine anything easier than installing Python on Mac OS X. Just install the developemnt tools from your OSX CD. When you write a script and give it a .py extension, double-click it and if you didn't make any mistakes in

Re: Sort-of OT: Learning Python

2006-05-06 Thread Geoff Canyon
On May 6, 2006, at 4:01 PM, Judy Perry wrote: FWIW, my husband is a devoted python user and he's not had any problems with installing or using Python on a Mac in OS X (don't even know if OS 9 is possible...). Is he building double-clickable graphical aqua apps? I can use Python. The

Sort-of OT: Learning Python

2006-05-04 Thread Geoff Canyon
Those of you who know me know that I am always fascinated by different programming languages. I've programmed in more than a few, but read up on dozens. Lately I've been taking a stab at Python. I'm keeping track of progress at http://learningpython.wordpress.com/ So far it's mostly gripes

Re: Absolutely not important ..... but strange !

2006-04-30 Thread Geoff Canyon
Type this in the message box: put the mouseStack Then put your pointer over the square and press return. The message box should get the name of the stack, whatever it is. That should give you an idea of what's going on. regards, Geoff On Apr 29, 2006, at 9:34 AM, Francis Nugent Dixon

Re: Turn Off Double-Entry?

2006-04-26 Thread Geoff Canyon
On Apr 25, 2006, at 10:30 AM, Scott Rossi wrote: I don't suppose there's any way to turn off or otherwise disable the double-entry key sequence to close the script editor? I think you're looking for the script of field script of stack revTemplateScriptEditor It's easy to get at using

Re: Stack file format change in 2.7 - BACK UP!

2006-04-20 Thread Geoff Canyon
I think saving in the pre-2.7 format is available in the upcoming release. gc On Apr 20, 2006, at 2:41 AM, David Burgun wrote: Hi All, I really can't understand all the mystery surrounding this fix to allow backwards compatibility. As far as I understand it, there is a way to tell the

Windowshade control updated, ready to test

2006-04-18 Thread Geoff Canyon
There was a bug in the windowshade control I made available a week ago. There is a new version available to try out that should fix the problem. To test, run this in the message box: go url http://www.inspiredlogic.com/windowshade/windowshade2.rev; I still don't know exactly what the bug

Re: Custom Properties

2006-04-17 Thread Geoff Canyon
On Apr 13, 2006, at 2:15 PM, Chipp Walters wrote: The standalone link for Windows below isn't correct. It downloads the Mac version. You're right. ('Doh!) I've figured out where the problem is happening, and I think I have a fix but it isn't tested yet. The odd part is that the

Re: Save Lives: Debug Code

2006-04-15 Thread Geoff Canyon
On Apr 14, 2006, at 7:54 AM, Rob Cozens wrote: BTW, there is a personal downside to trying to anticipate potential errors: On long motor trips I find myself spending way too much time pondering What would I do if the car broke down here? and not enough time enjoying the scenery. :{`)

Re: table behaviour

2006-04-15 Thread Geoff Canyon
On Apr 15, 2006, at 5:29 AM, Alex Tweedly wrote: Jonathan Lynch wrote an excellent spreadsheet object - can't remember (and can't easily find) his own web site address, but it is available from http://revolution.widged.com/stacks/ - about half-way down the page. This provides all the

Re: Custom Properties

2006-04-13 Thread Geoff Canyon
On Apr 12, 2006, at 10:44 AM, Thomas McGrath III wrote: Does anyone have any examples on the get/setProps in real usage? I have been using custom props but not the setProp etc. I would love some more insightful ideas on it's usage. My new windowshade control does almost all its work

Image Width Limits on Macs?

2006-04-12 Thread Geoff Canyon
The docs say: Cross-platform note: On Mac OS and OS X systems, the maximum width of an image is 16384 divided by the screen's bit depth. (For example, if the number of colors is Millions, the maximum image width is 4096 pixels.) First, how do you divide 16384 by 4096 you get 4.

Re: bugs

2006-04-11 Thread Geoff Canyon
On Apr 10, 2006, at 10:11 PM, Tariel Gogoberidze wrote: On Apr 9, 2006, at 1:00 PM, Geoff Canyon wrote: Here is an example of something slightly larger than a single line (and actually useful) that I think is bug-free: on stableSetSize pID,W,H -- sets the width and height of pID

Re: bugs

2006-04-09 Thread Geoff Canyon
On Apr 8, 2006, at 7:33 PM, Chipp Walters wrote: I don't think anyone is attacking your programming prowess here. It's just that by providing a one line script and calling it a 'program' you invite questions. Am I coming off as defensive? It's not my intent. Based on your post: On Apr 8,

Re: bugs

2006-04-09 Thread Geoff Canyon
On Apr 9, 2006, at 2:04 AM, David Vaughan wrote: As for my posts referring to your code, Geoff, I hoped I had made it sufficiently clear already that I was using it as a jumping off point to elaborate on the issues of what is a bug and differences in user experiences, and nothing at all

Re: bugs

2006-04-09 Thread Geoff Canyon
On Apr 9, 2006, at 9:34 AM, Rob Cozens wrote: Geoff, The thing is, that is not a bug. The programmer did not make any error in his code at all. You've removed the smiley; so I'm taking back some of that slack. The original request was for bug-free SOFTWARE, not a bug-free CODE

Re: bugs

2006-04-09 Thread Geoff Canyon
On Apr 9, 2006, at 1:04 PM, Rob Cozens wrote: Is it a bug that Parameter Setup didn't check for the existence of a COA when it opened? By my definition, yes, even if the specs didn't call for it. The thing is, this calls for common sense, but what is common sense if it isn't specified?

Re: bugs

2006-04-09 Thread Geoff Canyon
On Apr 9, 2006, at 5:21 PM, David Vaughan wrote: On 10/04/2006, at 2:37, Geoff Canyon wrote: The question is this: what do you think is the upper limit for _completely_ bug-free code? Was your code bug-free the first time you wrote it, no typographic errors or any other changes? Do

Re: bugs

2006-04-08 Thread Geoff Canyon
On Apr 7, 2006, at 6:53 AM, Geoff Canyon wrote: How about this code: on mouseUp -- display the date answer the date with OK end mouseUp Just thought I would make your day. ;-) On Apr 7, 2006, at 12:02 PM, Mark Wieder wrote: To be fair, Geoff had a smiley in his post, so I think he

Re: bugs

2006-04-08 Thread Geoff Canyon
agree that this is now a lesson in the nature of both bugs and hubris ;-) regards, Geoff On Apr 8, 2006, at 1:18 AM, David Vaughan wrote: On 08/04/2006, at 16:36, Geoff Canyon [EMAIL PROTECTED] wrote: So tell me what could go wrong? ;-) You are limiting yourself to the code, where bugs can

Re: Revolution is very slow to refresh fields. How can I speed it up?

2006-04-08 Thread Geoff Canyon
On Apr 7, 2006, at 9:31 AM, Rob Cozens wrote: Geoff, et al: I generally check the ticks and update based on that: How do you know in advance the total ticks to complete the operation? The ticks to complete the operation isn't used for anything. Suppose I have to process the elements

Re: bugs

2006-04-08 Thread Geoff Canyon
1. The requirements simply say to display the date -- the date is displayed. If non-modality is needed, that should be in the requirements. 2. It is certainly possible to put the code someplace inappropriate, but I think for the purposes of this assignment we can assume that isn't the

Re: New custom control available -- windowshade

2006-04-07 Thread Geoff Canyon
On Apr 6, 2006, at 8:17 PM, Geoff Canyon wrote: I have a version with built-in testing routines that I've used to run the control through thousands of changes to the hilited pane and the paneCount. I'm going to put in some safeguards and checks on the code, and make that available

Re: bugs

2006-04-07 Thread Geoff Canyon
On Apr 6, 2006, at 8:11 PM, Mark Wieder wrote: As a QA engineer, I'd love to find some bug-free software someday. Doesn't exist. Bug-free is code-free. How about this code: on mouseUp -- display the date answer the date with OK end mouseUp Just thought I would make your day. ;-)

Re: New custom control available -- windowshade

2006-04-06 Thread Geoff Canyon
On Apr 5, 2006, at 5:15 AM, David Burgun wrote: Looks good! I just tried it and it worked for while but then I got a lot recurring execution errors when, when I moved one of the sliders, something to do with cloning objects. Can you send me a copy of the misbehaving stack offlist? One

Re: New custom control available -- windowshade

2006-04-06 Thread Geoff Canyon
Just thought: Did you rename anything? The names of the pane groups are hard-coded, so renaming them would break it. gc On Apr 5, 2006, at 5:15 AM, David Burgun wrote: Looks good! I just tried it and it worked for while but then I got a lot recurring execution errors when, when I moved one

Re: Revolution is very slow to refresh fields. How can I speed it up?

2006-04-06 Thread Geoff Canyon
On Apr 6, 2006, at 8:32 AM, Rob Cozens wrote: Which is why all my progress bars calculate the number of iterations necessary to move the bar one position and update the thumbPosition only when it will change: Interesting. I generally check the ticks and update based on that: put ticks()

Re: New custom control available -- windowshade

2006-04-06 Thread Geoff Canyon
On Apr 6, 2006, at 2:46 PM, Steve Knox wrote: Don't use the top slider. It does not keep track of how many items are in the pane titles field (I suppose it could, but what would be the point). Some of us would call it a bug, but if you were actually using this neat interface thingy in a

New custom control available -- windowshade

2006-04-03 Thread Geoff Canyon
I don't know what to call the thing. I've seen them called navigators, and accordions. I'm calling it a windowshade, since that's what it reminds me of. It's that control that displays a set of titles, each of which is like a separate tab. You click on any of them and the rest slide out of

Re: New custom control available -- windowshade

2006-04-03 Thread Geoff Canyon
, since the windowshade control is just a group of groups, and can hold anything. best, -Chipp Geoff Canyon wrote: I don't know what to call the thing. I've seen them called navigators, and accordions. I'm calling it a windowshade, since that's what it reminds me of. It's that control

Re: Making the move...

2006-03-22 Thread Geoff Canyon
First, this isn't all that long -- 98 lines -- but in any case I'd consider: -- breaking out routines for local vs. server connection -- breaking out a routine for when we're just counting records that match vs. returning data -- breaking out a routine that, given a itemList describing a

Re: How can I pass a handler a long ID as a string?

2006-03-22 Thread Geoff Canyon
I've hit this before. I generally postfix a cr like so: put (the long id of fld myField of cd myCard of stack myStack) cr into tParam myHandler tParam Then in myHandler: on myHandler pID delete char -1 of pID -- ready to go now or if it could be a list: on myHandler pIDList

Re: Making the move...

2006-03-22 Thread Geoff Canyon
On Mar 22, 2006, at 7:34 AM, Rob Cozens wrote: Hi Geoff, -- breaking out routines for local vs. server connection You're ignoring my notes: application requirement: the calling syntax must be identical for client, server, and single user. That's fine -- I'm just saying that the

Re: Making the move...

2006-03-21 Thread Geoff Canyon
On Mar 20, 2006, at 6:20 PM, Sarah Reichelt wrote: I haven't ever really tested it and I have an instinctive feeling that functions should be self-sufficient and shouldn't change anything outside them. Maybe it will suit me better in some circumstances. This is true, but passing by reference

Re: Making the move...

2006-03-21 Thread Geoff Canyon
Wow -- so what does this do? On Mar 20, 2006, at 9:28 AM, Rob Cozens wrote: Hi Geoff, Out of curiosity, do you have an example handy of a long handler that you think makes more sense to keep together than to break up? Or one that you think can't be broken up without significant effort

Re: Making the move...

2006-03-20 Thread Geoff Canyon
Out of curiosity, do you have an example handy of a long handler that you think makes more sense to keep together than to break up? Or one that you think can't be broken up without significant effort to do it? When you think of a long handler, do you generally think of it as having a

Re: Exit Repeat

2006-03-20 Thread Geoff Canyon
On Mar 20, 2006, at 1:08 AM, Mark Smith wrote: In fact, I tested this, and it works. Though it'd still be cleaner, somehow, to be able to test for the exit condition within the loop. Wow, you are so correct. I had thought exit to top would exit the handler it is in and all handlers in the

Re: Exit Repeat

2006-03-20 Thread Geoff Canyon
On Mar 20, 2006, at 1:47 AM, Chipp Walters wrote: put the executioncontexts Thanks, Chipp! Now we have a puzzle (I think) I have a button with this script: on mouseUp set the canInterrupt of this stack to true repeat with i = 1 to 1000 wait 0 ticks with messages put i end

Re: Making the move...

2006-03-20 Thread Geoff Canyon
they form the code of virtually all of my applications, I wanted them to be very easily read, and updated. This worked for me. May not have for you, I don't know. I doubt my brain can grasp thinking in bigger chunks..it's working overtime as it is! -Chipp Geoff Canyon wrote: Out

Re: Making the move...

2006-03-20 Thread Geoff Canyon
Do you have an example? I agree that if you end up passing in a handful of arguments by reference, you haven't accomplished much by breaking out the routine. The question is if there isn't a better way to slice the routine, where that wouldn't be necessary. On Mar 20, 2006, at 4:29 AM,

Re: Get a handler from a script

2006-03-19 Thread Geoff Canyon
On Mar 19, 2006, at 5:18 AM, David Burgun wrote: The problem is that if you are doing something like this: if the script of myObject contains on HandlerName then send HandlerName to myObject end if The code I posted earlier guarantees that on handlername exists in the script, not

Re: Get a handler from a script

2006-03-19 Thread Geoff Canyon
On Mar 19, 2006, at 8:12 AM, Richard Gaskin wrote: Since on or function must be the first word in a line to be an active command or function, you could simply add return to your evaluation to weed out comments: if cron handlerName is in crthe script of myObject then If there is a

Re: Exit Repeat

2006-03-19 Thread Geoff Canyon
On Mar 19, 2006, at 12:04 PM, Mark Smith wrote: Andre, the trouble is that in the case of interrupting a repeat loop, you can't test for whether the escape key is down like you can with control/option/command. So use control/option/command, of course :) But the escape key would be more

Re: Get a handler from a script

2006-03-19 Thread Geoff Canyon
I feel like the harbinger of doom here (with Alex as my able partner in doomsaying) but: This would still be subject to failure if, anywhere in the script, /* or */ appeared _not_ as block comment delimiters, but as part of a string. gc On Mar 19, 2006, at 4:22 PM, Dick Kriesel wrote:

  1   2   3   4   5   6   7   >