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
supply exactly 800 bytes of data. That's 4 for each pixel. The first byte is
0, the next three are Red, Green and Blue.

gc

On Wed, Nov 17, 2010 at 12:02 AM, Scott Rossi sc...@tactilemedia.comwrote:

 Hi Marty:

 Maybe this will help -- execute the following in your message box:
 go url 
 http://www.tactilemedia.com/site_files/downloads/pixel_colorize.rev;

 See all tutorial stacks (Web link):
 http://www.tactilemedia.com/site_files/software/tutorials.html

 Regards,

 Scott Rossi
 Creative Director
 Tactile Media, UX Design



 Recently, Marty Billingsley wrote:

  Is it possible to read and set the color of individual pixels in an
  image?  ImageData is a little incomprehensible.
 
  Basically, I'd like to be able to do something like:
  for each pixel in image x,  set the color of that pixel to some
  calculated value (or a value pulled from a pixel of another image)
 
  Thanks for any pointers you can give me!
 
- marty
 
  --
  Marty Billingsley
  Department of Computer Science
  The University of Chicago Laboratory Schools
  ___
  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
 





 ___
 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

___
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], 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 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

___
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], but imagine an iPad Rev...

2010-10-26 Thread Geoff Canyon Rev
Ah -- so something like this using livecode is still forbidden :-/

On Tue, Oct 26, 2010 at 9:42 AM, Andre Garzia an...@andregarzia.com wrote:

 Lua is one of the permitted scripting languages on iOS... many games use it
 so when the great iOSCalypse happened and Lua was one of the first 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 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 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
  
  ___
  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
 



 --
 http://www.andregarzia.com All We Do Is Code.
 ___
 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

___
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: 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


*on* gothere

   *if* the shiftkey is down *then* *exit* gothere -- so I can edit the
opener stack

   *go* stack url http://www.myserver.com/~geoff.canyon/stacks/lola.rev; in
the window of this stack

*end* gothere


On Tue, Sep 28, 2010 at 10:11 PM, Mark Smith mark_sm...@cpe.umanitoba.cawrote:


 Hi Splash, any further thoughts on your last questions and my post. I'm
 sort
 of still trying to figure this compile thing out. Since I want to save the
 notes in the notepad stack does that mean it cannot absolutely ever be
 compiled? I am beginning to think that is my error in thinking. I was
 thinking I could compile my simple Notepad application because it works
 fine
 in the run/edit environment but apparently that does not mean it can
 translate to a compiled environment.

 I created a simple splash program that says:


 on startup
   --   hide this stack
   --   close this stack
--   go to stack the utargetstack of this stack
answer Notepad3-s
   go to stack /Users/Mark/runrev/stacks/Notepad/Notepad3
 end startup


 on preopenstack
   -- lock screen to true
   -- set visible to false
-- hide this stack
   answer Notepad3-p
   go to stack /Users/Mark/runrev/stacks/Notepad/Notepad3
 end preopenstack


 In the interpretive mode I know it is using preopenstack. But not even that
 is working. Any attempt to get this program to load and run the Notepad
 stack ends up doing nothing? I use Meanwhile when I manually load and run
 the notepad program it works just marvellous.

 This does seem to me like such a simple problem (a) I have a perfectly
 functional stack (b) I would like to run it without requiring the editing
 environment (or runtime environment). Compiling it as a standalone seems
 the
 way to go. I have done that but it will not save new notes (into itself).
 This is well documented. Solution is to write a splash program that calls
 Notepad. Not working.

 Also, it would be real nice not to have to hard code the path in case I
 want to change its location. Having to manage two stacks instead of one
 does
 seems like an added burden.

 Stumped. Any help appreciated

 -- Mark
 --
 View this message in context:
 http://runtime-revolution.278305.n4.nabble.com/loading-another-stack-from-splash-tp2547155p2718266.html
 Sent from the Revolution - User mailing list archive at Nabble.com.
 ___
 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

___
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: 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
 it already so if they continue to develop it more will
 likely purchase it and with the right improvements
 it can exceed their sales expectations.


 That would make sense - On-Rev has (commercial) potential, but I don't think
 it is the case. If you look at the Standalone Settings (I am viewing it with
 a trial license) - the Web settings that allow you to create a revWeb plugin
 has the option to purchase a $199 upgrade - I assume this is in order to let
 you make these plugins as this export option has nothing to do with using
 On-Rev. It is not clear, if you can make them for non-commercial use, but it
 looks like the standalone builder will stop making revWeb plugins after the
 trial expires?

 Personally I can (sort of) imagine people paying $30 for the ability to make
 revWeb plugins - I really don't get this $199 pricing. The rest seems
 logical to me, and I do very much like the branding LiveCode, but it seems
 the current pricing strategy will have two clear outcomes:

   1. It will clobber Linux sales - I think the bundles would be better
   Mac+Linux and Windows+Linux.
   2. Deter future revWeb plugin development when it becomes clear how many
   people will pay for it as an isolated feature.
 ___
 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

___
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: revNavigator

2010-08-20 Thread Geoff Canyon Rev
No idea -- I haven't been involved with rev much for many years.

Thanks for the feedback.

On Wed, Aug 18, 2010 at 8:06 AM, Andre Garzia an...@andregarzia.com wrote:
 Geoff,

 I don't think there is competition for RevNavigator right now. There are the
 altPlugins and they are wonderful, been using them since my first Rev
 installation, but they are designed different.

 The application browser is like a Brazilian landlord, it uses an enormous
 real state and does not develop it all. I seldon use the application
 browser.

 tRev has a browser panel that is great but then, when you're back 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 in their install (since they don't use it).

 But as Andre pointed out, there is a more recent version available,
 which is significantly more capable than the original.

 A question to those who still use it: does it still have features that
 make it worthwhile compared to other tools, or do you stay with it out
 of familiarity/inertia? I haven't checked out the competition over the
 last five or six years so I don't know if it has been superseded.

 gc

 On Tue, Aug 17, 2010 at 12:53 PM, stephen barncard
 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.com 
  gcanyon%2b...@gmail.comgcanyon%2b...@gmail.comgcanyon%252b...@gmail.com
 
  wrote:
 
  aw gee, thanks guys -- nice to know it lives on in some people's tool
  boxes.
 
  gc
 
  On Mon, Aug 16, 2010 at 1:30 PM, Mark Talluto 
 use...@canelasoftware.com
  wrote:
   Super tool!  I have been using it for years and I did make my very
  affordable payment back then.  I too could not survive without 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 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.
  
   While I'm thinking about it, I hereby declare revNavigator to be
 free
   for anyone to use.
  
   gc
   ___
   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
  
  ___
  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
 
 
 
 
  --
 
 
 
  Stephen Barncard
  San Francisco Ca. USA
 
  more about sqb  http://www.google.com/profiles/sbarncar
  ___
  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
 
 ___
 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




 --
 http://www.andregarzia.com All We Do Is Code.
 ___
 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

___
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: revNavigator

2010-08-17 Thread Geoff Canyon Rev
aw gee, thanks guys -- nice to know it lives on in some people's tool boxes.

gc

On Mon, Aug 16, 2010 at 1:30 PM, Mark Talluto use...@canelasoftware.com wrote:
 Super tool!  I have been using it for years and I did make my very affordable 
 payment back then.  I too could not survive without 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 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.

 While I'm thinking about it, I hereby declare revNavigator to be free
 for anyone to use.

 gc
 ___
 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

___
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: 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: 
 http://runtime-revolution.278305.n4.nabble.com/SoCal-Rev-User-Group-meeting-Thursday-August-19th-tp2322016p2324475.html
 Sent from the Revolution - User mailing list archive at Nabble.com.
 ___
 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

___
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: 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:

 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: 
 http://runtime-revolution.278305.n4.nabble.com/SoCal-Rev-User-Group-meeting-Thursday-August-19th-tp2322016p2324475.html
 Sent from the Revolution - User mailing list archive at Nabble.com.
 ___
 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


___
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: revNavigator

2010-08-17 Thread Geoff Canyon Rev
I was referring to the fact that for most people revNavigator just
takes up space in their install (since they don't use it).

But as Andre pointed out, there is a more recent version available,
which is significantly more capable than the original.

A question to those who still use it: does it still have features that
make it worthwhile compared to other tools, or do you stay with it out
of familiarity/inertia? I haven't checked out the competition over the
last five or six years so I don't know if it has been superseded.

gc

On Tue, Aug 17, 2010 at 12:53 PM, stephen barncard
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

 On Mon, Aug 16, 2010 at 1:30 PM, Mark Talluto use...@canelasoftware.com
 wrote:
  Super tool!  I have been using it for years and I did make my very
 affordable payment back then.  I too could not survive without 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 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.
 
  While I'm thinking about it, I hereby declare revNavigator to be free
  for anyone to use.
 
  gc
  ___
  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
 
 ___
 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




 --



 Stephen Barncard
 San Francisco Ca. USA

 more about sqb  http://www.google.com/profiles/sbarncar
 ___
 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

___
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: [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.

While I'm thinking about it, I hereby declare revNavigator to be free
for anyone to use.

gc

On Thu, Aug 12, 2010 at 1:40 PM, J. Landman Gay
jac...@hyperactivesw.com wrote:
 On 8/12/10 1:23 PM, Peter Brigham MD wrote:

 On Aug 12, 2010, at 11:28 AM, Peter Haworth wrote:

 Thanks for the tip on revNavigator, just tried it out and seems to
 work most of the time but I did find a few instances of the changes I
 made in it not being reflected in the Application Browser.

 The Application Browser sometimes doesn't update until you click the
 little round circular-arrows button at the bottom of its window. I
 haven't found what the recipe is for when it updates or not -- this is
 not just when using revNavigator -- but if something isn't the way I
 expect it to be in the A.B. I always click the refresh button before
 getting worried.

 It probably relies on certain system messages being sent. If a plugin
 doesn't pass those messages then the app browser won't know anything is
 different and won't update.

 --
 Jacqueline Landman Gay         |     jac...@hyperactivesw.com
 HyperActive Software           |     http://www.hyperactivesw.com
 ___
 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

___
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: 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 believe, I haven't tested all the
variations here). That can cause some unexpected behavior if you're
expecting groups to behave as if their lockloc were true, which allows
them to be sized and positioned as most other controls are (whether
those controls have their lockloc set to true or false).

gc

On Tue, Aug 3, 2010 at 3:21 PM,  dunb...@aol.com wrote:
 Me, too, with a group and an even smaller image.

 If I set the loc of the image to a point outside the group, the group
 expands to contain it, as usual. If I set it to a point anywhere inside the
 group, again, the group extent adjusts.

 On a Mac. Does this matter?

 Craig Newman
 ___
 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

___
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


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 development environment this works fine. When I build a
standalone with just the above and nothing else, and all libraries
included, I get this error message:


error -Error with certificate at depth: 1  issuer   =
/C=US/O=Equifax/OU=Equifax Secure Certificate Authority  subject  =
/C=US/O=Google Inc/CN=Google Internet Authority  err 20:unable to get
local issuer certificate

Obviously I'm missing something obvious?
___
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: 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 have an object moving round a polygon (or along a
 pathway for that matter),
 surely all you have to do is poll the object's position every 2 ticks
 and pop the results into the lines
 of a field?

 I did try that but it seams that the move command is not threaded and can
 not handle other commands while executing.



 Hi Mic,
 if you mean that instead of the corner points of a polygon you want all
 the
 intermediate points also then this came up on the forum a while ago and I
 uploaded a little stack to the forum that does this.
 See:

 http://forums.runrev.com/phpBB2/viewtopic.php?f=9t=5191p=23366hilit=points+of+polygon#p23366
 look for the attachement
 calculate points of polygon.rev.zip

 (I did not have any real use for all the points but once I had a graphic I
 pulled out some points and animated them when one moves the graphic,
 since
 it looked like a bug that is what I called it :) )
 as revlet:
 http://berndniggemann.on-rev.com/bug/


 Thanks Bernd

 That was just what I needed.

 Yet there is a but...

 I put this script in the left polygon and I made it none-opaque:

 on mouseUp
   beep
   put the mouseLoc into x

   repeat with i = 1 to number of lines of fld fAllPoints
      if x = line i of fld fAllPoints then
         put x
         exit repeat
      else
         put M   the mouseLoc
      end if
   end repeat

 end mouseUp


 The beep gives me audio feedback that I clicked the graphic

 In the majority of times the Loc came out with an M in front of it meaning
 that the mouseLoc was not on the pointList

 So what Rev considers ON the graphic is different from your pointlist.

 Tried to replace TRUNC with ROUND in your script, with same result

 Mic


 ___
 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

___
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: 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 you update Geoff Canyon's stack?

 If so, please post a link to download this
 updated version. Recent versions of Rev
 added many new properties to objects.

 Thanks in advance!

 Alejandro
 --
 View this message in context: 
 http://runtime-revolution.278305.n4.nabble.com/That-nice-XML-exporter-for-stacks-tp2172738p2218887.html
 Sent from the Revolution - User mailing list archive at Nabble.com.
 ___
 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

___
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: 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

Content-Type: application/octet-stream

so I tried that, but no change.

Other than that I have no idea what I might be doing wrong. Any ideas?

gc

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 post.

 More complicated than I remember. It doesn't return the data. Instead, you 
 pass in a variable that gets filled in. But it's explained in the link.

 Dave___
 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

___
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: 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 even easier since they just have to go from
bottom to top. I did a quick hack job, cutting the code about in half
and speeding it up significantly. It now handles three enemies and 11
bullets without breaking a sweat on my macbook. Here's the stack:
http://snurl.com/wsclc and here's the article I posted with some
comments: http://gcanyon.posterous.com/a-blast-from-my-programming-past
___
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: 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 work, but it's (much) better than checking each
time you move the ship to see whether any of the shots have hit any of
the enemies.
___
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: 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 as giving Ken Ray credit for the amazing
graphics capabilities of stackrunner (no offense, Ken).

gc

On Tue, May 18, 2010 at 1:36 PM, Richmond Mathewson
richmondmathew...@gmail.com wrote:
  http://www.tigabyte.com/docs/LanguageReference.pdf

 There are five dedicated sound channels and any sound
 or music file must be allocated to a channel.

 The idea of having sound channels so that 2 or more sounds can
 be played simultaneously comes up here from time to time; but
 never seems to get anywhere.

 Now how is it that a RAD developed by 1 person can manage
 sound channels while . . . .  ?
 ___
 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

___
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: 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 visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


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 in a url to upload it to a web server?
___
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: Is there a way to upload files?

2010-05-15 Thread Geoff Canyon Rev
I wasn't implying that this would happen behind the user's back. I'm
trying to interface to Jira. I can create a bug tracking ticket for
the user based on input they've provided, but I don't know how
attachments work.

I can send info using post, but are you saying I would sent the file
contents 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:


 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 in a url to upload it to a web server?

 Technically it is a major security breach to have a file upload occur
 without a use interaction, such as clicking a 'submit' button.
 Otherwise a scoundrel could begin uploading from anywhere on the user's hard
 drive in a steady sequence.

 Assuming you are doing the form correctly with user interaction, you would
 use the POST command in Rev to send one or more variables and their values
 to a URL.

 The basic idea is that you build header lines to control how the server
 script will operate on your data, then append variable=value pairs to the
 single variable.

 in the Rev script, when all the strings have been concatenated, the text is
 sent to the URL of the server script.
 The URL triggers a script that has been programmed to read and work with
 those variables (usually with error checking).

 The file upload is usually stored in a temporary directory on the web server
 with a random temporary name created by the web server, then renamed
 according to the name sent by the POST command.

 Look in the dictionary for specific examples of code that builds the header
 lines the appends the data pairs.

 The GET command does the same thing, except it has a limit of about 1000
 characters.
 A server script that is well-written will check for GET variables and POST
 variables to detect which format has been set.

 Both methods will create an array such as


 http://www.someserver.com/someAction.jspa?type=12summary=this+is+a+testuser=geoff.canyonpassword=test

  ( using PHP syntax for the array )
 $_GET['type']         {which holds '12'}
 $_GET['summary']  {which holds 'this+is+a+test'}
 $_GET['user']         {which holds 'geoff.canyon'}
 $_GET['password']  {which holds 'test'}

 sending the variables as a block to the URL
 http://www.someserver.com/someAction.jspa
 $_POST['type']         {which holds '12'}
 $_POST['summary']  {which holds 'this+is+a+test'}
 $_POST['user']         {which holds 'geoff.canyon'}
 $_POST['password']  {which holds 'test'}

 Obviously, if you accidentally used the same variable name twice, there
 would be data loss, just as with Rev associative arrays.

 Hope this helps you get the idea.


 Jim Ault
 Las Vegas



 ___
 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

___
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: 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 a special $10 10-user license for all their tools, and all the
 proceeds go to fund literacy programs.

 http://www.atlassian.com

 --
 -Mark Wieder
  mwie...@ahsoftware.net

So far I've successfully created tickets in Jira, with several fields
set. I need to figure out updating tickets as well. Then if I could
attach files I'd be done.

gc
___
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: 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 post.

 More complicated than I remember. It doesn't return the data. Instead, you 
 pass in a variable that gets filled in. But it's explained in the link.

 Dave___
 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

___
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: 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

 .??
___
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: 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 an...@andregarzia.com wrote:
 Hello Folks,

 Anyone here remember a sample stack that would export a Rev stack with all
 properties and scripts to an XML file?
___
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: 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
   put ticks() into t1
   repeat 1
  put X into X1
  repeat with i = the number of lines of X1 down to 1
 if char 1 of line i of X1 is f then delete line i of X1
  end repeat
   end repeat
   put ticks() - t1 into t1
   put ticks() into t2
   repeat 100
  put X into X2
  filter X2 without f*
   end repeat
   put ticks() - t2 into t2
   put ticks() into t3
   repeat 100 times
  put empty into X3
  repeat for each line L in X
 if char 1 of L is f then next repeat
 put L  cr after X3
  end repeat
  delete char -1 of X3
   end repeat
   put ticks() - t3 into t3
   put X1 into fld 1
   put X2 into fld 2
   put X3 into fld 3
   put t1  t2  t3  (X1 is X2)  (X2 is X3)
end mouseUp


Note that the filter and repeat for each options each run 100 times,
while the repeat with i = the number of lines of X1 down to 1 example
runs just once. Here are the results:

3096 99 118 true true

So the filter and repeat for each options run in about a sixtieth of a
second (remember, they each ran 100 times), while the repeat with i
=... option takes almost a minute.

The crucial lesson here is avoid expressions like line i of..., but
only slightly less important is the fact that repeat for each works
about as fast as filter. If you have a complex operation to perform on
each line, running multiple filter operations to get it done is likely
not as efficient as a simple repeat for each loop. As a simple
example, repeat for each is faster here:

on mouseUp
   repeat 3
  put any char of abcdefghijklmnopqrstuvwxyz  random(10)  \
 this is a test string for a fixed-record-length
processing test  \
 any char of abcdefghijklmnopqrstuvwxyz  cr after X
   end repeat
   delete char -1 of X
   put ticks() into t2
   repeat 100
  put X into X2
  filter X2 without f*
  filter X2 without *g
   end repeat
   put ticks() - t2 into t2
   put ticks() into t3
   repeat 100 times
  put empty into X3
  repeat for each line L in X
 if char 1 of L is f or char -1 of L is g then next repeat
 put L  cr after X3
  end repeat
  delete char -1 of X3
   end repeat
   put ticks() - t3 into t3
   put X1 into fld 1
   put X2 into fld 2
   put X3 into fld 3
   put t2  t3  (X2 is X3)
end mouseUp
___
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: 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 there isn't another group
called container. When I first wrote this I just referred to it by
name, and then of course I tried it twice in a row and it failed the
second time. This version seems to work fine, ever-more-deeply nesting
button target into groups called container.
___
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


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 graphic over it and
setting the blendlevel on the graphic to 50, or by setting its ink to
blendExclusion.

I can make an area that shows through unmodified by grouping two
graphics: the larger is dark gray and the smaller is black. I set the
ink of the group to blendExclusion and get exactly what I want,
_except_: I want to be able to make multiple holes, and let each hole
have a border, and when two (or more) holes overlap, I want to see the
full border for both of them, even where they overlap. Since I'm
setting the ink on the group and not the individual graphics, when two
graphics overlap, the border on the lower-layered graphic is obscured.
I've tried setting ink values for each of the graphics separately,
which achieves the overlay effect I'm looking for, but I haven't found
any combination that does the overall obscured but with pockets of
the original revealed effect I'm looking for.

I just had a thought -- for each hole, I could have two graphics: one
opaque and one not. They would have the exact same rect, and all the
non-opaque graphics would have a higher layer than all the opaque
graphics. That way I could still set the ink on the group and have it
work. But that would be an ugly hack.

Any better ideas?

gc
___
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] 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 on April 3rd since I ordered it the day it
 was available for ordering. I got the 64GB unit and its an amazing device.

 I think the reviewer I read that said it was the first information consumer
 device had it about right. There is no manual, you just press the big button
 and start poking and sliding your way around it. Its very snappy, the screen
 is beautiful and the ipad apps are very intuitive (but I also have an
 iPhone).

 Instead of keeping my laptop by my TV room chair, I have my iPad on its
 stand. When you want to do that quick email check (or query IMDB.org while
 watching a movie to get the real scoop on it), its perfect. Its not for
 programming or multi-page writing but the touch keyboard when in landscape
 view is almost the size of a mini keyboard.

 It should kill the netbook craze as well as the Kindle (anyone want  to buy
 a used Kindle DX)? The Kindle app on the iPad is really nice and the iBook
 app is even nicer. I wish you could natively read pdf files but that means
 Apple allows Adobe to exist on the same planet and that obviously isn't
 happening.

 My wife is wavering on getting one. She wavered on the iPhone also and now
 things its the best device she has ever seen. I predict my iPad will become
 hers when the next gen comes around.

 Best wishes


 Neal Campbell
 Abroham Neal Software
 www.abrohamnealsoftware.com
 (540) 645 5394 NEW PHONE NUMBER

 Amateur Radio: K3NC
 Blog: http://www.abrohamnealsoftware.com/blog/
 DXBase bug reports: email to ca...@dxbase.fogbugz.com
 Abroham Neal forums: http:/www.abrohamnealsoftware.com/community/





 On Sun, Apr 11, 2010 at 11:49 AM, Richmond Mathewson 
 richmondmathew...@gmail.com wrote:

  My top 3 ideas are:

 1. Swank toy.

 2. Castrated computer for people who don't need laptops or PCs.

 3. Tree-Free book.

 What are yours?  Come on you-all . . .  :0
 ___
 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

 ___
 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

___
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] 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. Swank toy.

 2. Castrated computer for people who don't need laptops or PCs.

 3. Tree-Free book.

 What are yours?  Come on you-all . . .  :0
 ___
 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

___
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: scrolling groups and magic mouse?

2010-02-27 Thread Geoff Canyon Rev
Thanks, I never would have thought that it translated simply as a
keypress. +2 -2 gives unusably slow scrolling on my MacBook. +50 -50
is about fast enough (matches fields roughly) but is very jerky. Then
the weirdness set in. I tried using this routine to scroll a little
bit but more often:

on scrollMe x,y
   set the scroll of me to the scroll of me + y
   if x  0 then send scrollMe   (x - 1),y to me in 0 ticks
end scrollMe

In the rawkeydown handler I used this:

scrollMe 2,20

So that should have scrolled 20 pixels three times as fast as possible
for each time the rawkeydown fires. What I found instead was that it
fired just once (scrolling was slow) but then as soon as a I moved the
pointer normally, the delayed messages kicked in. It doesn't matter
how long I wait; if I scroll down then take my hand off the mouse for
ten seconds, then move the mouse slightly, the queued-up scrolling
happens then. Out of curiosity I tried calling it like this:

 send scrollMe 2,20 to me in 0 ticks

Now the group doesn't scroll at all when I swipe, but as soon as I
move the mouse (again, doesn't seem to matter how long I wait) all the
queued up messages fire and the group scrolls.

Anyone have any ideas?

gc

2010/2/26 Björnke von Gierke b...@mac.com:
 In a field put this script, then swipe away:

 on rawkeydown theKey
   put theKey --a number
   pass rawkeydown
 end rawkeydown


 in your group do this then swipe away:

 on rawkeydown theKey
   if thekey = swipedown number 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 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 manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution

 ___
 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

___
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


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 manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


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
 subtract i^2 from total
 add i to summer
  end repeat
  add summer^2 to total

_That_ said, I believe there is yet a faster way. I believe yours is
O(n^5), mine is O(n^3), but O(n^2) is possible. (If someone
understands big O notation better than I do feel free to jump in here)

gc

On Wed, Feb 24, 2010 at 1:47 PM, Brian Yennie bri...@qldlearning.com wrote:
 No, we're actually talking about #6 =).

 I put them in order of difficulty and this becomes the 3rd one... but it's 
 actually id 6.

 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... 
 scroll down if you want to see. Great site find, Andre!!













































 put 0 into total
 repeat with i=1 to 100
 repeat with j=1 to 100
    if (i=j) then next repeat
    add i*j to total
 end repeat
 end repeat

 _
 ___
 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

___
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: 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 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
         subtract i^2 from total
         add i to summer
      end repeat
      add summer^2 to total

 _That_ said, I believe there is yet a faster way. I believe yours is
 O(n^5), mine is O(n^3), but O(n^2) is possible. (If someone
 understands big O notation better than I do feel free to jump in here)

 gc

 On Wed, Feb 24, 2010 at 1:47 PM, Brian Yennie bri...@qldlearning.com wrote:
 No, we're actually talking about #6 =).

 I put them in order of difficulty and this becomes the 3rd one... but it's 
 actually id 6.

 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... 
 scroll down if you want to see. Great site find, Andre!!













































 put 0 into total
 repeat with i=1 to 100
 repeat with j=1 to 100
    if (i=j) then next repeat
    add i*j to total
 end repeat
 end repeat

 _
 ___
 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


___
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: 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 precision integers).

One thing to consider is that project euler specifically discourages
sharing code before you've come up with your own answer. At the site
you can't get help, or even enter the forum for a problem, until
you've solved it yourself.

gc

On Tue, Feb 23, 2010 at 4:04 PM, Robert Brenstein r...@robelko.com wrote:
 On 23.02.10 at 15:54 -0300 Andre Garzia apparently wrote:

 Done!

 checkout

 http://wecode.org/euler

 you need RevWeb plugin for that.

 Cheers
 andre
 PS: check the source code to see some uberpretty revlet loading
 techniques!



 revlet loading techniques? All I get is plugin not loaded.

 Robert
 ___
 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

___
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: 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... scroll 
 down if you want to see. Great site find, Andre!!













































 put 0 into total
 repeat with i=1 to 100
  repeat with j=1 to 100
     if (i=j) then next repeat
     add i*j to total
  end repeat
 end repeat

 ___
 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

___
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


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 the tool palette? And to set the rect of a browser object, you
have to use

 revBrowserSet the id,rect,the rect you want

And I guess things like the formattedWidth are completely out? Is this
accurate, or am I missing a section of the documentation?
___
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: 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 hoped to see it added as an object
 on the tools pallette just like a player object. I often forget about its
 existence when laying out controls. Out of sight, out of mind.

 Roger Eller roger.e.el...@sealedair.com


 ___
 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

___
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: 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 of this,is,a test,string -- gives you an error
  item 1 of (word 2 of this,is,a test,string) -- gives you test

Likewise, if field 1 contains:

this,is,a
test,string

  item 3 of fld 1 -- gives you a  cr  test
  line 2 of item 3 of fld 1 -- gives you an error
  line 2 of (item 3 of fld 1) -- gives you test

And if you really want to mess with things:

set the linedelimiter to s
  line 2 of (item 3 of (word 4 of this is a crazy,mixedup,test)) --
gives you t

gc
___
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