This probably reflects my complete ignorance, but...

2010-10-29 Thread Vokey, John
All,
  I use RunRev in my lab: indeed, it does everything in my lab: all of my lab 
computers have it, except they have it as Metacard, but that shouldn't be an 
issue (or if it is, then I really have an issue, as it has to be in the 
Metacard IDE!).  I never create standalones (well, I have done so to respond to 
beta-release questions, but that is not my usual use).  I use Metacard to do 
everything: it is the hypercard of now.  So, EVERYTHING I do runs in the IDE.  
I don't want it otherwise (I have self-modifying code and all sorts of horrors 
you don't want to know about), because I like the original hypercard ideal: it 
is how I work and think.

  Ok, that out of the way: I have a simple stack to edit face photographs to 
eye-align them.  That means: simple scaling, rotating, and translating.  
Trivial.  And not a problem.  But, I need to locate the eyes in each photo 
first.  So, I designed a simple stack to have the user *in the Metacard IDE* 
drag a line between the eyes to get the coordinates of the eyes in the 
photograph.  Again, simple.  BUT: in the Metacard IDE, as soon as I 
script-select the line to allow the user to draw the line so my code can get 
the rect, it switches the IDE to edit mode, which means any subsequent clicks 
on buttons (to indicate that the line has been drawn, etc.) put that button (or 
whatever object) into edit mode, so the intent of the object is lost.  
Suggestions?  Remember, they have to work within the Metacard IDE, and I can't 
know ahead of time when the user has finished drawing or adjusting the line.  
Obviously, the Metacard IDE itself has solved the problem (e.g., all of the IDE 
stacks remain in use not edit modes), but I remain baffled.


--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


crop command

2010-10-21 Thread Vokey, John
LiveCode graphics gurus:
  I have to process a few thousand photograph files through a simple set of 
manipulations that scales, translates and rotates the images to a common 
standard, and then crops them to a fixed size.  The code is simple, except 
apparently the crop command doesn't work on file-based image objects.  How do I 
manipulate the file-based image to allow for the crop command?
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: use-revolution Digest, Vol 85, Issue 44

2010-10-21 Thread Vokey, John

On 2010-10-21, at 1:34 PM, use-revolution-requ...@lists.runrev.com wrote:

 Regardless of the method of acquiring, the data has to be put in RAM for any
 kind of manipulation, including cropping or resizing.
 
 sqb

Of course, but that is not the issue: it is *only* the crop command that fails 
on file-sourced image objects.  For example, if you create an image object and 
use the paint tools to create an image, it can be cropped with the crop 
command, but if the image object is sourced to a file, the crop command returns 
an error.
 
 On 21 October 2010 11:11, Vokey, John vo...@uleth.ca wrote:
 
 LiveCode graphics gurus:
 I have to process a few thousand photograph files through a simple set of
 manipulations that scales, translates and rotates the images to a common
 standard, and then crops them to a fixed size.  The code is simple, except
 apparently the crop command doesn't work on file-based image objects.  How
 do I manipulate the file-based image to allow for the crop command?
 --
 Please avoid sending me Word or PowerPoint attachments.
 See http://www.gnu.org/philosophy/no-word-attachments.html
 
 

--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

-Dr. John R. Vokey



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: use-revolution Digest, Vol 85, Issue 31

2010-10-15 Thread Vokey, John
One last change; HP worked hard to find the colours for the keys that would 
work for all, especially those otherwise known as colourblind; hence the, for 
some, odd beige/yellow keys, and the faded cyan keys.  But, in tests, these 
colours really do work for all including monochromats.  Wendy Carlos has a 
nice demo for those not otherwise afflicted: 
http://www.wendycarlos.com/colorvis/color3.html#cblind


On 2010-10-15, at 10:59 AM, use-revolution-requ...@lists.runrev.com wrote:

 Folks,
 
 following Craig advise, I've changed the little RPN calculator stack to be
 more HP like. Now it has four stack registers (X,Y,Z,T). T will roll down as
 expected. There is now a roll down button.
 
 I also made the label on the buttons bigger.
 
 Before this change, the calculator has an infinite stack which mimicked
 the last models of HP calculators, now it has four registers which is like
 earlier models. It is enough for simple calculations.
 
 It might be a toy but it is a fun one.
 
 http://revonline2.runrev.com/stack/518/RPN-Calc

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [ANN] Simple RPN Calculator on RevOnline

2010-10-13 Thread Vokey, John
I still have (and use) my HP-25C and my HP-48G+ .  I prefer the 25C to the 48G+ 
for most simple programming tasks.  I also have a perfect emulator of the 
HP-25C for OS X that I picked up a few years back.  It is my main calculator on 
the mac.  I can't find it on the internet anymore, but I will happily send a 
copy to anyone who emails me privately.


On 2010-10-13, at 3:41 PM, use-revolution-requ...@lists.runrev.com wrote:

 I still have my HP-35. Got it in 1971, I think. I use an HP-41 now. 
 Wouldn't think of anything else.
 
 Craig

--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

-Dr. John R. Vokey



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: [OT-Rodeo] Last minute call to get onboard with pre-realase conditions!

2010-07-20 Thread Vokey, John
Ignoring the repeated spelling error, I chose not to buy-in to the early 
release bargain (and, it is a bargain);  Instead, I want Jerry et al. to be 
able to leverage this thing to the point where it is actually affordable *for 
them*.  So, I will wait and pay the full freight. I am so impressed with what 
they have accomplished to this point that full freight on just that, alone, is 
worth it.


On 2010-07-20, at 2:08 PM, use-revolution-requ...@lists.runrev.com wrote:

 Re: [OT-Rodeo] Last minute call to get onboard with
   pre-realase conditions!

--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Naming Custom Properties

2010-04-16 Thread Vokey, John
If you note in the Dictionary there is a comment from me on this ``hiccup'' of 
the custom properties, and it represents a long-standing complaint of mine 
(i.e., that all custom property names should be quoted literals or the contents 
of some variable).  The problem is this:

if variable fred has not been defined, then 

  set the fred of this stack to myArray

will, of course create the custom property fred with the contents of myArray. 
 However, if fred has the contents mary then the same line

  set the fred of this stack to myArray

will create the custom property mary with the contents of myArray. And this 
latter syntax is very convenient for creating custom properties with custom 
names on the fly.  However, to be consistent, the name of the custom property 
should be a quoted literal when not the contents of a variable name, such that 
the lines:

  set the fred of this stack to myArray
  put fred into mary; set the mary of this stack to myArray

do the same thing.  The line

  set the fred of this stack to myArray

should throw an error if fred is empty.  Unfortunately, nobody at RunRev seems 
to agree with my desire for a consistent syntax.


On 2010-04-16, at 4:51 PM, use-revolution-requ...@lists.runrev.com wrote:

 Hello everyone,
 
 I vaguely, very vaguely, recall that a custom property should have a name 
 that is different from the variable to which it is being set.  So, for 
 example, if myArray is the variable, then
 
   set the myPropArray of this stack to myArray
 
 is fine, but
 
   set the myArray of this stack to myArray
 
 does not set anything apparently.  I waisted a big chunk (no xTalk pun 
 intended) of time rediscovering that, and I'd just like to confirm that that 
 is the case.  I'm also wondering whether anyone can point me to where this 
 convention is discussed in the Users Guide or built-in dictionary.
 
 Regards,
 
   Gregory

--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: use-revolution Digest, Vol 79, Issue 28

2010-04-15 Thread Vokey, John
What do I do?  Rail against the fact that, sensibly, the engine translates all 
file references to one form, but fails to do so for many other utterly trivial 
differences.  So, one is always forced to check for the OS (see the dictionary 
for all the ridiculous exceptions).  Why?  Why doesn't the engine, as with file 
paths, choose one style?  It drives me nuts that in the IDE associated file 
references, for example, are different from that in the standalone, depending 
on the OS.  That is just maddening, and also one reason I rarely produce 
standalones: in the IDE *almost* all remains constant over OSs.  But create 
standalones and one spends way to much time compensating for silly differences 
over OSs that should not matter.

To make the point clear that is is not just RunRev that maintains this 
nonsense.  Take a look at this quintessential cross-platform app, R. You want 
to access text data in a rows by columns format on the clipboard by command in 
Mac OS X, you use: data.dat - read.table(pipe(pbpaste), header = TRUE), but 
on Windose, you use:
data.dat - read.table(file(clipboard), header = TRUE).  Why?  Why wouldn't 
something so primitive be coded in the engine?  Indeed, we all write a function 
in to handle the translation over systems, but, seriously, why should we have 
to?  Same in RunRev.  It it is a RunRev function or command, it should be 
identical over all systems.  Period.  If I see: ``how to do X on system y'' in 
RunRev, it should be followed by a single command for all systems.  I admit, it 
is often no more than a switch command and a 3-line wrapper, but, really, why 
should it be even that? RunRev has probably spent more time writing the damn 
dictionary explanation of the exception than it would take to just make the the 
switch and 3-lines of code inherent in the code.

On 2010-04-14, at 10:23 PM, use-revolution-requ...@lists.runrev.com wrote:

 Which brings up an interface question. My app lets users choose a folder 
 and then displays the folder path in a field. I've never bothered to 
 change it in the past, but now I'm wondering if I should translate all 
 the slashes to backslashes just for display on Windows, and then change 
 them back to regular slashes in the script when I need to work with the 
 path.
 
 What do others do?

--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RunRev and Linux

2010-04-10 Thread Vokey, John
I have been an Apple user since the Apple ][, and have purchased upwards of at 
least 100 machines from Apple in that time; but, lately, I have been playing 
with Ubuntu Linux.  And, I must admit I am impressed.  Most of my work on Macs 
is done with open-source software (mostly LaTeX and R), but I really rely 
otherwise on Matlab and RunRev.  Really: about 90% of the work *in my lab* uses 
those two tools.  Octave (open-source) and R can, combined, do most or what I 
use Matlab for, but there is no open-source replacement for RunRev.  I really 
need it to work.  I don't compile apps, I run everything in the (MetaCard) IDE. 
 So, if I could be assured that the RunRev (especially the Metacard) IDE worked 
adequately in Ubuntu Linux, I would shift to purchasing cheap Intel machines 
for all my work and use Ubuntu Linux.  My lab runs on tax-payer dollars, so any 
savings I can make benefit us all.

Advice, comments?


On 2010-04-10, at 8:44 PM, use-revolution-requ...@lists.runrev.com wrote:

 On Planet Ubuntu 9.10, I just opened Rev, made a stack, opened its 
 script, typed some text, cut it, pasted it, copied it, pasted it -- all 
 good.

--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


[OT] Drifting off topic (was: Re-2: on standalonesaved)

2010-02-22 Thread Vokey, John
I would absolutely loved to have been invited (can you just imagine all the 
amazing insights Jacqueline keeps hidden in there simply because she doesn't 
realize how we would all benefit if she just let it all out?). That said, it 
does seems a bit creepy, and I suspect my wife would have words.


On 2010-02-22, at 9:11 PM, use-revolution-requ...@lists.runrev.com wrote:

 I will have pretty soon. But for now it's mostly a case of Jim joining Sarah
 in my brain, which you'd think I'd notice, but I was obviously elsewhere. I
 hope they're happy in there, it's a bit of a mess from where I stand.
 
 
 Sorry, I just stepped out for a while. You're on your own in there Jim :-)
 
 Sarah

--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Sorting question

2010-02-11 Thread Vokey, John
This function provides for a *truly uniform* random sort:

function scramble x -- scramble lines or items in a row
  put the number of lines of x into z
  if z = 1 then put the number of items of x into n
  else put the number of lines of x into n
  repeat with i=n down to 2
put random(i) into k
if z=1 then put item k of x into t
else put line k of x into t
if z=1 then put item i of x into item k of x
else put line i of x into line k of x
if z=1 then put t into item i of x
else put t into line i of x
  end repeat
  return x
end scramble
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: large-file sharing

2009-12-23 Thread Vokey, John

On 2009-12-23, at 11:00 AM, use-revolution-requ...@lists.runrev.com wrote:

 *** I would like you recommendations of where to upload a free version of a
 150 megabyte program ***



Try Dropbox: https://www.dropbox.com/home#/
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev IDE vs MetaCard IDE

2009-12-13 Thread Vokey, John

On 2009-12-13, at 11:00 AM, use-revolution-requ...@lists.runrev.com wrote:

 Can someone give me a quick summary of why I might want to use the 
 MetaCard IDE instead
 of  RunRev's?  It seems that a lot of users of this group use MC.  Is it 
 just what you were used
 to or is there some feature that Rev's doesn't?
 
 Just curious.
 
 len


Partly, it is because it is what I am familiar with, no doubt.  But, I am not a 
fanatic about it: I encourage all my students to begin with RunRev using the 
RunRev IDE, and I use it on those occasions where I need to develop a 
complicated (read prettified) interface.  However, those who go on to become 
the more proficient programmers seem to drift to the MetaCard IDE as they gain 
experience.

The main difference is that the MC IDE, for the most part, because it is so 
close to the engine, stays out of your way.  So much so, that at least for my 
current and former students and me, we rarely compile standalones, preferring 
to run our stacks in the MC IDE itself.
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution