Re: Please suggest script

2010-11-17 Thread Devin Asay

On Nov 17, 2010, at 11:30 AM, Timothy Miller wrote:

 Thanks Andre!
 
 I think you might have misunderstood my request. What I want to do is pretty 
 simple. I will manually locate web URLs, and hilite them manually. They are 
 in plain text. Then I want to click a button that will turn the hilited 
 plain-text URL into a clickable link. By clickable link I mean I want it to 
 open the URL in my web browser.
 
 I tried:
 
 get the selectedText
 revGoUrl it
 
 That worked, to my amazement. Cool. Didn't know about RevGoUrl.
 
 OTOH, the docs say revGoUrl is deprecated. I'm not sure what to use instead.
 
 I want the same link to be clickable next time I come across it. I know how 
 to set the textstyle of the selectedText to link, but that doesn't make it 
 a clickable link.
 
 Hope that's clear.

Tim,

It's pretty simple:

The link-making button:

on mouseUp
set the textStyle of the selectedChunk to link
end mouseUp

In the field that has the linked text:

on linkClicked pTxt
launch url pTxt
end linkClicked

That should do what you want.

Regards,

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Windows Version problems

2010-11-17 Thread Devin Asay

On Nov 17, 2010, at 10:52 AM, Joe Lewis Wilkins wrote:

 Hi Dixie,
 
 I guess it IS a little confusing. I have a main-stack and two sub-stacks. The 
 user has to answer questions presented in the Main-stack. The information 
 required to answer the questions is located in one of the sub-stacks - The 
 Reference Stack. When a question is presented in the Main-stack, information 
 that will allow the question to be answered is presented by opening and going 
 to a card in the sub-stack that contains that information. That is done 
 automatically when the user goes to a card in the Main-stack with each 
 question. The user must read the information and then return to the 
 Main-stack to answer the question. The questions and the process are quite 
 complex. Sometimes the user must answer a series of other questions in the 
 sub-stack before s/he can answer the Main-stack question. Those questions are 
 presented in yet a third stack. Based on how each of these questions is 
 answered, eventually a report is generated that tells the user what they must 
 do to their project in order to make it compliant with a set of rules that 
 are outlined in the Reference Sub-stack. As I said, it IS quite complex.
 
 Less confused? Probably not! (smile)

Joe,

It might work to use push card and pop card. The push card list can allow you 
to go several layers in to a series of cards, and then you should be able to 
backtrack out of the series using pop card. You'd have to be scrupulous about 
always matching pushes with pops to end up at the original location, but it 
should work reliably, regardless of whether the 'pushed' cards are in a 
substack, mainstack or even a completely different stack file.

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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


Posting binary data

2010-11-17 Thread Devin Asay
Hi all,

One of my students is doing a Rev project in which he needs to post binary data 
(a .mov file, in this case) to a web server. I've never done this, but I'm told 
that in a standard web form one sets the enctype attribute of a form input to 
indicate that the data being posted is binary.

How would you do this using a Rev--errr--LiveCode post statement?

Thanks

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Posting binary data

2010-11-17 Thread Devin Asay

On Nov 17, 2010, at 12:15 PM, Mark Schonewille wrote:

 Hi Devin,
 
 Before using the post command, execute the following line:
 
 set the httpHeaders to Content-type: application/binary  cr  \
 Content-Transfer-Encoding: binary  cr  \
 Content-Length: length of your data in bytes
 
 Let us know if this works for you.

Thanks, Mark. I'll have my student try that and report back.

Devin

 On 17 nov 2010, at 20:04, Devin Asay wrote:
 
 Hi all,
 
 One of my students is doing a Rev project in which he needs to post binary 
 data (a .mov file, in this case) to a web server. I've never done this, but 
 I'm told that in a standard web form one sets the enctype attribute of a 
 form input to indicate that the data being posted is binary.
 
 How would you do this using a Rev--errr--LiveCode post statement?
 
 Thanks
 
 Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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

2010-11-17 Thread Devin Asay

On Nov 17, 2010, at 12:22 PM, Peter Haworth wrote:

 Thanks.  It will be a huge amount of work for me to change icon  
 numbers everywhere so I guess Stackrunner won't work for me.  Oh well!

Pete,

You could include the Image Library stack with your stack and start using it 
when it's opened by Stack Runner.

Devin


 
 Pete Haworth
 
 On Nov 17, 2010, at 11:02 AM, J. Landman Gay wrote:
 
 On 11/17/10 11:45 AM, Peter Haworth wrote:
 Just started using this and very happy but have come across a problem
 regarding button icons. I imported a set of icons into the image  
 library
 in the IDE and refer to the icon numbers within the Image Library  
 when
 specifying icons for buttons. All works fine in the IDE and  
 standalone
 but in Stackrunner the icons are not displayed and the buttons are
 invisible. I can click on them OK (if I guess where they are!). Any
 ideas as to why this might be happening?
 
 The IDE and the standalones it builds know about the image library,  
 but StackRunner does not. The best way to make your images always  
 available is to import them directly into your stack (the IDs will  
 change) and refer to the embedded image IDs as your icons. Those  
 will work anywhere.
 
 -- 
 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

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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

2010-11-17 Thread Devin Asay

On Nov 17, 2010, at 12:36 PM, Peter Haworth wrote:

 I'm not 100% sure how to do this.  I guess it means finding where the  
 image library stack is then issuing a command of some sort when my app  
 starts up to bring that stack into my stack file?

That's the general idea. You find the stack that contains the images you are 
using as button icons, make a copy of it, then include it with your mainstack. 
You could even make it a substack of your mainstack to keep it in the same 
stack file. Then, in the stack that uses the images, include the statement, 
probably in a preOpenStack handler:

  start using stack myIconStack --or whatever it's called.

Once you do that all images in the used stack are available to be used in the 
calling stack.

Devin


 On Nov 17, 2010, at 11:24 AM, Devin Asay wrote:
 
 
 On Nov 17, 2010, at 12:22 PM, Peter Haworth wrote:
 
 Thanks.  It will be a huge amount of work for me to change icon
 numbers everywhere so I guess Stackrunner won't work for me.  Oh  
 well!
 
 Pete,
 
 You could include the Image Library stack with your stack and start  
 using it when it's opened by Stack Runner.
 
 Devin
 
 
 
 Pete Haworth
 
 On Nov 17, 2010, at 11:02 AM, J. Landman Gay wrote:
 
 On 11/17/10 11:45 AM, Peter Haworth wrote:
 Just started using this and very happy but have come across a  
 problem
 regarding button icons. I imported a set of icons into the image
 library
 in the IDE and refer to the icon numbers within the Image Library
 when
 specifying icons for buttons. All works fine in the IDE and
 standalone
 but in Stackrunner the icons are not displayed and the buttons are
 invisible. I can click on them OK (if I guess where they are!). Any
 ideas as to why this might be happening?
 
 The IDE and the standalones it builds know about the image library,
 but StackRunner does not. The best way to make your images always
 available is to import them directly into your stack (the IDs will
 change) and refer to the embedded image IDs as your icons. Those
 will work anywhere.
 
 -- 
 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
 
 Devin Asay
 Humanities Technology and Research Support Center
 Brigham Young University
 
 ___
 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

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Functions in the on-rev - LC server script

2010-11-16 Thread Devin Asay

On Nov 16, 2010, at 9:40 AM, paolo mazza wrote:

 How can I place a function in a on-rev - CGI server script ?
 I have to port a stack script (with commands and functions) to a .irev text
 file for the  on-rev  server .
 I expected something similar to the following script...
 
 ?rev
   put MyFunction() into tVAR1
   put tVAR1
 
 function MyFunction
   put 1 + 1 into VAR2
   return VAR2
 end MyFunction
 
 ?
 ... but obviously it does not work !!!
 
 Any idea?

Paolo,

In irev scripts you have to declare the function before you call it, so just 
put the function handler at the top:

?rev
function MyFunction
  put 1 + 1 into VAR2
  return VAR2
end MyFunction

  put MyFunction() into tVAR1
  put tVAR1

?

Regards,

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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

2010-11-11 Thread Devin Asay

On Nov 11, 2010, at 12:11 PM, Andrew Kluthe wrote:

 
 Hey all,
 
 I am getting my hands wet for the first time playing with revServer through
 my on-rev account. I couldn't find much information on its features and what
 is and isn't available to revServer on the samples site. This seems to be
 the only documentation I could find. 
 
 Is there a dictionary or a user guide or a different mailing list for
 revServer that I can refer to? Also, are there any good third party hubs for
 revServer articles or samples?

Hi Andrew,

I think you'll enjoy learning irev scripting. It opens up a new world of 
possibilities.

You should have gotten a link to a document from runrev when you signed up for 
your on-rev account, which lists the salient differences between LiveCode 
development and irev scripting. That's a good reference but doesn't give many 
concrete examples. Here are a couple of places to start:

Sarah Reichelt's on-rev links at http://www.troz.net/. She has lots of really 
good, well-documented examples, along with links to other sites.

In my class last winter I taught a module on server-side scripting with Rev. 
You're welcome to peruse the notes and see if they are helpful. Just go to 
http://revolution.byu.edu and click on Introduction to Programming Revolution. 
Then scroll down to the section called Server-side Scripting with revTalk.

Regards,

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Beachball cursor Help

2010-11-09 Thread Devin Asay

On Nov 9, 2010, at 6:38 AM, Peter Brigham MD wrote:

 I'm just fooling around with trying out an animated cursor, and I  
 can't get it to work. I tried importing an animated GIF then setting  
 the cursor to it, but I only get what looks like an opaque white mask  
 of the first frame of the GIF and no animation. Do I conclude that I  
 have to cycle through the frames of the GIF explicitly via script? I  
 would have thought that just setting the cursor to the image id number  
 would take care of that. I can do this with a button icon -- just  
 setting the icon of the button to the image ID of the GIF results in a  
 nice animated button image. Why doesn't his work with a cursor?

Peter,

When I have used animated gifs, I've just shown then hidden an image object. Of 
course, that's not really the same because they don't follow your mouse 
movement like a mouse cursor.

I'm not sure exactly what's going on behind the scenes with the 'busy' cursor. 
I got curious and looked into it. The cursor icons are in a stack called 
revCursors for Windows and *nix, and a stack called revMacCursors for Mac 
OS. They're just image objects. I would think you could just replace the 
existing images with your own colorized ones, making sure the image ids match, 
and it should just work.

That said, LiveCard 4.5 is supposed to have enhanced cursor support, including 
cursors with alpha blending. So it seems like you could just set the cursor to 
the image id of your choosing, and increment it in a repeat loop, just like 
'set cursor to busy'. Not tested:

put 67890,67891,67892,67893,67894,67895,67896,67897 into tAnimCursor
repeat with i = 1 to 100
  put item i wrap (the number of items in tAnimCursor) of tAnimCursor into 
tCurrentCursor
  set the cursor to tCurrentCursor
  wait 10
end repeat

Seems like this ought to work.

Regards,

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Beachball cursor Help

2010-11-09 Thread Devin Asay

On Nov 9, 2010, at 10:33 AM, Peter Brigham MD wrote:

 On Nov 9, 2010, at 10:47 AM, Devin Asay wrote:
 
 So it seems like you could just set the cursor to the image id of  
 your choosing, and increment it in a repeat loop, just like 'set  
 cursor to busy'. Not tested:
 
 put 67890,67891,67892,67893,67894,67895,67896,67897 into tAnimCursor
 repeat with i = 1 to 100
 put item i wrap (the number of items in tAnimCursor) of tAnimCursor  
 into tCurrentCursor
 set the cursor to tCurrentCursor
 wait 10
 end repeat
 
 Seems like this ought to work.
 
 Well, OK, but I went ahead and used the http://ajaxload.info/ site to  
 download a great animated GIF cursor. So what do I do with that to  
 extract the individual images and list them separately in a loop? It  
 does seem that setting a cursor to an animated GIF ought to work out  
 of the box the way setting a button icon to an animated GIF does  
 But if there's a workaround for cursors I'd settle for that for now.

If you open an animated GIF in Preview on OS X it should show each frame 
separately. You could save each frame separately, then import them all into 
rev, give them consecutive IDs and use a routine similar to the one above (or 
the one Richard G. posted) and it ought to work.

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Removing Unwanted Characters From a Web Form Submission

2010-11-08 Thread Devin Asay

On Nov 8, 2010, at 6:00 AM, Gregory Lypny wrote:

 Hello everyone,
 
 I'm building an On-Rev site, and one of the pages will be a form with a field 
 that is intended for the submission of about a page of comments.  I want to 
 gather the submissions and process them as an array in LiveCode with the 
 contents of another form field as the key.  It would look something like
 
   stringKey1 itemDelimiter longStringOfComments1
   stringKey2 itemDelimiter longStringOfComments2
   stringKey3 itemDelimiter longStringOfComments3
 
 and so on.  I need to convert the comments to a string by removing line feeds 
 and perhaps other characters that might cause problems.  Is removing Return 
 and Tab enough?
 
   replace return with space in longStringOfCommentsNum
   replace tab with space in longStringOfCommentsNum
 
 Because it is coming down from a server, I'm not sure whether I should refer 
 to other linefeed characters and what those are.

Gregory,

If you want to be sure of catching all line delimiting characters you could do 
this:

  replace (numToChar(13)  numToChar(10)) with space in tComments
  replace numToChar(13) with space in tComments
  replace numToChar(10) with space in tComments

As far as which other characters you should remove, have you considered just 
using urlEncode/urlDecode? It's not specifically intended for this situation, 
but I would think urlEncode would safely convert any problematic characters, 
then you could urlDecode the string before you display it again.

Regards,

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Beachball cursor Help

2010-11-08 Thread Devin Asay
Joe,

I'd use a spinning daisy cursor. See http://ajaxload.info/ for a slick utility 
that will generate a custom animated gif for you.

Devin


On Nov 8, 2010, at 8:46 AM, Joe Lewis Wilkins wrote:

 Hi all,
 
 Instead of the b/w cursor busy, I'd love to use the more colorful 
 beachball. Anyone know how that is accomplished?
 TIA 
 Joe Wilkins
 
 
 
 
 
 ___
 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

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: standalone image problem

2010-11-07 Thread Devin Asay

On Nov 6, 2010, at 11:29 AM, Richard Gaskin wrote:

 Devin Asay wrote:
 
 The tricky thing about standalone apps on OS X is that, if you
 do not set the defaultFolder in the stack, the defaultFolder
 will be the folder where the .app bundle resides.
 
 For many years the engine used the folder where the executable resides 
 as the defaultFolder, which for Mac was inside the bundle - when did 
 this change?

I do remember it changing, but I don't remember exactly when. It's actually 
really handy, because you can choose to have the .app bundle's parent folder be 
the defaultFolder, or you can set it explicitly and hide all of your resource 
files and stacks inside the .app bundle.

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: standalone image problem

2010-11-06 Thread Devin Asay
Edward,

The tricky thing about standalone apps on OS X is that, if you do not set the 
defaultFolder in the stack, the defaultFolder will be the folder where the .app 
bundle resides. If you do set the defaultfolder to be the folder where the 
stack resides, as John has shown in his example, when you create a standalone 
out of the stack, the defaultFolder is *inside* the .app bundle. See my note in 
the dictionary under defaultFolder for more details.

Regards,

Devin

On Nov 6, 2010, at 4:05 AM, John Dixon wrote:

 
 Hi Edward...
 
 Will this work for you ?
 
 global gtheFolder
 
 on preopenstack
   set itemDel to /
   put item 1 to -2 of (the effective fileName of this stack)  /resources 
 into gtheFolder
   set the defaultfolder to gtheFolder
 
   --set the topleft of this stack to 30,30
   --set the defaultfolder to resources/
   set the decorations of this stack to title,close
   set the topleft of this stack to 0,0
   set the height of this stack to 750
   set the width of this stack to 1280
   set the loc of this stack to 640,400
   hide  menubar
 end preopenstack
 
 on openCard
   global pname
   set the filename of image 1 to ./resources/BKG.paneling.jpg
   set the filename of image 2 to ./resources/deck_animation.gif
   set the currenttime of player 1 to 0
   set the filename of player 1 to ./resources/river1
   start player 1
 end openCard
 
 be well
 
 Dixie
 
 From: etcaw...@fastmail.fm
 Date: Sat, 6 Nov 2010 04:21:14 -0500
 To: use-revolution@lists.runrev.com
 Subject: standalone image problem
 
 
 I'm trying to build for both Mac OS X and windows, but I'm concentrating on 
 Mac until I get it to work. I have Snow Leopard installed.The folder 
 structure is ./Resources/map_animation.gif for a typical file I have 
 included the open stack code and the opencard code for one of the cards. I 
 also will include(attached) screen capture of the folders location . As I 
 said the stack works, ie. clik on the field or button and it will go to the 
 next cd, all the text files are read and shown but the images (gif  jpeg), 
 audio, and one video clip do not show. Since it is showing the files it 
 looks like it is finding the files in the folder but not showing them.
 
 on preopenstack
   --set the topleft of this stack to 30,30
   set the defaultfolder to resources/
   set the decorations of this stack to title,close
   set the topleft of this stack to 0,0
   set the height of this stack to 750
   set the width of this stack to 1280
   set the loc of this stack to 640,400
   hide  menubar
 end preopenstack
 
 on openCard
   global pname
   set the filename of image 1 to resources/BKG.paneling.jpg
   set the filename of image 2 to resources/deck_animation.gif
  set the currenttime of player 1 to 0
  set the filename of player 1 to resources/river1
  start player 1
 end openCard
 
 
 On Nov 5, 2010, at 11:02 AM, use-revolution-requ...@lists.runrev.com wrote:
 
 
 Message: 2
 Date: Thu, 4 Nov 2010 11:36:39 -0600
 From: Devin Asay devin_a...@byu.edu
 Subject: Re: image files in standalone
 To: How to use Revolution use-revolution@lists.runrev.com
 Message-ID: 3b2c6b00-1e04-4fb2-a629-d9a0f3785...@byu.edu
 Content-Type: text/plain; charset=us-ascii
 
 
 On Nov 4, 2010, at 11:07 AM, edward cawley wrote:
 
 
 Hello Edward,
 
 What platform are you building for? What does your folder structure look 
 like? Do you set the defaultFolder in order to locate the resource folder?
 
 Devin
 
 
 
 Devin Asay
 Humanities Technology and Research Support Center
 Brigham Young University
 
 ___
 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

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: image files in standalone

2010-11-04 Thread Devin Asay

On Nov 4, 2010, at 11:07 AM, edward cawley wrote:

 I have an app which has about 100 images and text files which are sent to 16 
 cards. The text image and audio files are all in a resources folder. 
 Everything works fine on my desktop, but when I try to build a desktop it is 
 made and will run but while the text files are read from the resources folder 
 and buttons work fine the images,audio and one video do not show. the image 
 areas show but the images are not loaded. an example of the image files:  
 resources/deck_animation.gif

Hello Edward,

What platform are you building for? What does your folder structure look like? 
Do you set the defaultFolder in order to locate the resource folder?

Devin



Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Where's my keyboard shortcut for import as control?

2010-11-01 Thread Devin Asay

On Nov 1, 2010, at 9:40 AM, tkuyp...@telenet.be wrote:

 Could be me, but I'm missing the keyboard shortcut for importing an image 
 into a stack...
 It was still there in LiveCode 4.5.0 build 1080, but it is gone in the 
 versions after that.
 (at least on my Mac, didn't try Windows...)
 
 Can someone confirm this?
 
 Ton Kuypers

Ton,

I noticed it and reported it:

http://quality.runrev.com/qacenter/show_bug.cgi?id=9160

It's now been confirmed, so I hope it reappears in 4.5.1.

Groetjes,

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Where's my keyboard shortcut for import as control?

2010-11-01 Thread Devin Asay
On Nov 1, 2010, at 11:57 AM, J. Landman Gay wrote:

 On 11/1/10 10:40 AM, tkuyp...@telenet.be wrote:
 Could be me, but I'm missing the keyboard shortcut for importing an image 
 into a stack...
 It was still there in LiveCode 4.5.0 build 1080, but it is gone in the 
 versions after that.
 (at least on my Mac, didn't try Windows...)
 
 Can someone confirm this?
 
 Yes, I miss it too. I used it all the time, so I'm considering hacking 
 the IDE to add it back. :)

Wow, I didn't notice this missing until you guys mentioned it. I've added it to 
the bug report. Also missing are: Shift+Cmd+S and Shift+Cmd+C for opening the 
stack and card scripts, although in the latter two cases the shortcut works, 
but doesn't appear in the menu.

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: LiveCode applications accepted in iOS App Store

2010-10-27 Thread Devin Asay
Seems in line with similar apps. 1 - 2 seconds on my 1st Gen iPod Touch.

Devin


On Oct 27, 2010, at 11:26 AM, Andre Garzia wrote:

 Cool!
 
 Unfortunately for me, the games category is not available here. Can someone
 who installed this version comment on launch times?
 
 Andre
 
 On Wed, Oct 27, 2010 at 3:19 PM, Kevin Miller ke...@runrev.com wrote:
 
 On 27/10/2010 18:14, Colin Holgate co...@verizon.net wrote:
 
 It's a shame that it's not iPad too, because the multitouch works well. I
 got
 41 sheep on my iPhone and 58 on my iPad.
 
 There are lots of things we could add to this game. Really though the
 purpose of the application wasn't to use and support every last feature or
 produce a best seller, it was to get the binaries and associated data into
 the right format so that they would pass the submission process. Which they
 now have. We have another app that's a bit more sophisticated that should
 be
 going live any time now too.
 
 Kind regards,
 
 Kevin
 
 Kevin Miller ~ ke...@runrev.com ~ http://www.runrev.com/
 LiveCode - Realize fast, compile-free coding
 
 
 ___
 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

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: LiveCode applications accepted in iOS App Store

2010-10-26 Thread Devin Asay
Kevin,

Congratulations! 

What is the name of the App? I'd love to download it and have a look!

Devin


On Oct 26, 2010, at 12:56 PM, Kevin Miller wrote:

 Hi Folks,
 
 Some exciting news for you all!
 
 http://www.runrev.com/company/runrev-blog/
 

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: revServer installation issues

2010-10-22 Thread Devin Asay

On Oct 21, 2010, at 8:02 PM, Phil Davis wrote:

 Thanks Andre! This is a crazy problem. I just made the changes you recommend 
 and 
 added the .htaccess back into the mix, but no joy! I'm guessing I made a 
 change 
 to my httpd.conf at some point without commenting it and that's what is 
 keeping 
 your solution from working here. I'll see if I can track it down and post an 
 explanation.
 
 However I am not without a solution: Mike sent me a copy of his httpd.conf, I 
 replaced mine with it and *BAM* my .irev pages are now working!

Can you do a diff on the two conf files and maybe find where yours went wrong?
 
 I am truly amazed at (and grateful for) the level of support provided by you 
 guys, Andre and Mike, and so many other people on this list. It's an honor to 
 be 

Ditto. This list is one of the best things about the LiveCode community.


Regards,

Devin



Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: revServer installation issues

2010-10-21 Thread Devin Asay

On Oct 20, 2010, at 11:01 PM, Phil Davis wrote:

 On 10/20/10 4:57 PM, Devin Asay wrote:
 Phil,
 
 It seems clear that the config file isn't quite right, and that the 
 revServer engine isn't being launched. Where are your revServer files 
 installed,
 
 /Library/WebServer/CGI-Executables
 I copied all the files from the 'revserver' folder into the 'CGI-Executables' 
 folder - without the enclosing 'revserver' folder.
 
 ... and can you post the mods you made to your httpd.conf file?
 
 My mods were applied to the /private/etc/apache2/httpd.conf file, and each 
 changed line has a '## PD 201010xx' tag on the end of it.
 
 First, for the record:
 DocumentRoot /Library/WebServer/Documents
 
 Note - I tried adding some directives in an .htaccess file inside this 
 directory 
 but since removed the file.
 
 
 --- Now the first set of changes -
 
 Directory /Library/WebServer/Documents
 AddHandler irev-script .irev  ## PD 20101018 added
 Action irev-script /cgi-bin/revserver  ## PD 20101018 added

Phil,

I had to do it this way:

Action irev-script /cgi-bin/revserver/revserver

Because I had moved the entire revserver folder into cgi-bin (well, really 
CGI-Executables.) Until I did I was having similar problems to yours. In other 
words the Action had to point to the executable file, not just the enclosing 
folder.

I'm more a blunder-around-in-the-dark guy when it comes to this stuff, so it's 
probably just an accident that I got it to work. :-)

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Tabbing out of a text field

2010-10-21 Thread Devin Asay

On Oct 21, 2010, at 4:02 PM, RevList wrote:

 Craig Newman on October 21, 2010 at 1:45 PM -0700 wrote:
 You could trap the tabKey message.
 
 There has to be something else.  I am looking at an earlier project that I
 developed and I have a field that when I press TAB, I am moved on to the
 next field, just as if I had pressed Return.
 I see no trapping of the TabKey in that project.
 
 What am I missing? Or what should I look for.
 I want to have fields that have one line of entry only and when you press
 Tab, it moves on to the next field.
 I have set the field to be Tab on Return so that traps the return key,
 but pressing TAB, adds a tab to text.
 In my earlier project it just moves on.
 Help :)

Is traversalOn set to true for the fields?

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: revServer installation issues

2010-10-20 Thread Devin Asay
Phil,

It seems clear that the config file isn't quite right, and that the revServer 
engine isn't being launched. Where are your revServer files installed, and can 
you post the mods you made to your httpd.conf file? Also, which OS version are 
you running?

Devin

On Oct 20, 2010, at 5:19 PM, Phil Davis wrote:

 Hey folks -
 
 I'm trying to figure out where I'm going wrong as I try to get revServer 
 going 
 on my Mac Mini. I have followed all the advice (I think) in the great emails 
 from Devin Asay and Mike Bonner from July 20 and I see my test.irev page 
 being 
 served but without the ?rev ... ? stuff being preprocessed - in fact the 
 HTML 
 isn't rendered as HTML either; it all comes into my browser window as text.
 
 Any clues?
 
 Yes, I'm restarting apache after making each carefully-commented-so-I 
 can-back-out change to httpd.conf. My apache logs don't show anything unusual.
 
 My outcomes don't seem any different whether the revserver filess are owned 
 by 
 nobody:wheel or phil:admin.
 
 Thanks for any ideas.
 -- 
 Phil Davis
 
 PDS Labs
 Professional Software Development
 http://pdslabs.net
 
 ___
 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

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: On-Rev Webpage variable posting

2010-10-19 Thread Devin Asay
On Oct 19, 2010, at 9:10 AM, Rick Harrison wrote:

 
 I have a webpage on On-Rev with input fields which are
 posted to another webpage just fine.  
 
 I now want to pass that posted information onto yet another
 webpage before committing any of the data to
 a database using .irev files. What’s the best way to do this?

Rick, 

If you don't want to deal with cookies (I know I don't), what I always do is 
just pass those values along as hidden inputs in a form. Works great.

Devin



Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: On-Rev Webpage variable posting

2010-10-19 Thread Devin Asay

On Oct 19, 2010, at 10:31 AM, Rick Harrison wrote:

 Hi Devin,
 
 Yes, I don't want to use cookies.
 
 I tried the hidden inputs technique without success.
 I'm not sure why it didn't work.  Do you have an example
 of hidden inputs so I could see what I might be doing wrong?

Rick,

Here's a simple example I put together for my class:

http://chum.dev.on-rev.com/teacher/makeReport.irev

This file uses a GET method to send data to a second file, configReport.irev. 
The second file in turn POSTs to a third file, displayReport.irev. File 2 has 
to pass along a value from File 1 to file 3, and uses a hidden input to do the 
job. The only reason I used GET in one form and POST in the other was to show 
my class an example of using each one. You can use all GETs or all POSTs if you 
want.

Here's the relevant section from makeReport.irev:

p
Select the Report Area:

/p
form action=configReport.irev method=get name=choosetable
p
select name=choice
option label=People value=people/People
option label=Departments value=department/Departments
/select
/p
p
input name=Go type=submit /
/p

Here is the relevant stuff from configReport.irev. The choice input is 
hidden, and passes the value along from the form in makeReport.irev.

?rev
set the errormode to inline -- this is useful for debugging
function q pString
   return quote  pString  quote
end q

put $_GET[choice] into tWhich
put pConfigure your   tWhich   report:/p  return
put div  return
put form method=  q(post)   action=  q(displayReport.irev)
return
put pInclude the following information:/p  return
if tWhich is people then
   put pinput name=  q(dept)   type=  q(checkbox)   value=  
q(yes)   /Department /p  return
   put pinput name=  q(phone)   type=  q(checkbox)   value=  
q(yes)   /Phone Number /p  return
   put pinput name=  q(office)   type=  q(checkbox)   value=  
q(yes)   /Office /p  return
else if tWhich is department then
   put pinput name=  q(supervisor)   type=  q(checkbox)   
value=  q(yes)   /Supervisor /p  return
   put pinput name=  q(phone)   type=  q(checkbox)   value=  
q(yes)   /Dept. Phone Number /p  return
   put pinput name=  q(office)   type=  q(checkbox)   value=  
q(yes)   /Office /p  return   
end if
put input name=  q(choice)   type=  q(hidden)   value=  
q(tWhich)   /  return
put pinput name=  q(submit)   type=  q(submit)   value=  
q(Create Report)   /
put /form
put /div
?

Finally, here is the relevant excerpt from displayReport.irev, with database 
login info sanitized:

?rev
set the errormode to inline

function q pString
   return quote  pString  quote
end q

put $_POST[choice] into tWhich
if tWhich is people then
   put $_POST[dept] into tIncludeDept
   put $_POST[phone] into tIncludePhone
   put $_POST[office] into tIncludeOffice
   put SELECT fname,lname into tQuery
   put thFirst name/ththLast name/th into tHeader 
   if tIncludeDept  empty then 
  put comma  dept after tQuery
  put thDepartment/th after tHeader  
   end if
   if tIncludePhone  empty then
  put comma  phone after tQuery
  put thPhone/th after tHeader
   end if
   if tIncludeOffice  empty then
  put comma  office after tQuery
  put thOffice/th after tHeader
   end if
else if tWhich is department then
   put $_POST[supervisor] into tIncludeSuper
   put $_POST[phone] into tIncludePhone
   put $_POST[office] into tIncludeOffice
   put SELECT name into tQuery
   put thDept name/th into tHeader 
   if tIncludeSuper  empty then
  put comma  supervisor after tQuery
  put thSupervisor/th after tHeader
   end if
   if tIncludePhone  empty then
  put comma  phone after tQuery
  put thPhone/th after tHeader
   end if
   if tIncludeOffice  empty then
  put comma  office after tQuery
  put thOffice/th after tHeader
   end if
end if
put  FROM   tWhich after tQuery

# create database connection
put tQuery  br / --debugging
put revOpenDatabase(mysql,my.server.com,acmeco,\
username,password) into tConnID
put revDataFromQuery(,,tConnID,tQuery) into tReport
revCloseDatabase tConnID

put table border='1' cellpadding='4'  return
put tr  tHeader  /tr  return
set the itemDelimiter to tab
repeat for each line tLine in tReport
   replace tab with /tdtd in tLine
   put trtd  tLine  /td/tr  return after tFormattedRept
end repeat
put tFormattedRept
put /table
?

Hope you find this helpful.

Regards,

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: on-rev database help

2010-10-17 Thread Devin Asay

On Oct 16, 2010, at 12:34 PM, Bill Ziegler wrote:

 I'm not even sure if I'm asking the question correctly.
 
 I've made a simple time tracking database for my colleagues. Dates, fill-ins, 
 drop downs etc. I'm not using any of the sophisticated Rev DB tools or SQL. I 
 am just saving each collection of responses in separate fields. I also have a 
 button that exports as a text file all info with records on separate lines, 
 commas between items. Each teacher keeps their own stack on their laptop. 
 When our supervisor needs to do a report for the school districts, each of 
 the 13 teacher/consultants will generate the data-text file and send it to 
 her. She will then import each text file into excel to do her sorts and 
 reports.
 
 Every time she needs to do an update, she'll need to ask us to send our 
 latest data and create a new excel to keep the data correct. I do have an 
 on-rev server account. I did attend and have the dvds for rev-live Las Vegas. 
 I do own the DVDs from the On-Rev Edinburgh conference, but haven't had time 
 to watch them yet. I know RunRev/Live Code fairly well. I do not know SQL.
 
 Questions
 
 1. Can I put my existing stack on my on-rev server account for multiple 
 people to use at one time?
 
 2. Can I put my existing stack on our school server for multiple people to 
 use at one time?
 
 3. Am i up-that-creek for not knowing SQL?
 
 4. If (I) and (2) are possible with or without SQL what's my best option to 
 learn how to do whatever I'll need to do.

Hi Bill,

The basics of SQL are not at all difficult to learn, if you decide to go that 
route. Jacque and I covered them in the Edinburgh conference Day 0 session, 
which should be on the DVD. I also did an expanded version of the same material 
in my class last winter. The notes are still online at 
http://revolution.byu.edu. Just click the Introduction to Programming in Rev 
link, then scroll down to the section on Database Access in Rev. Immediately 
above that section are some links to server-side scripting using Rev. One of 
those links deals with doing database access in irev scripts.

True, there is a bit of a learning curve when using backend databases, but once 
you figure it out, your life will never be the same. Database access opens up a 
whole world of new possibilities.

Good luck!

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Geometry settings...

2010-10-15 Thread Devin Asay

On Oct 15, 2010, at 4:08 PM, John Dixon wrote:

 
 Hi...
 
 Is it possible to set the geometry of an object by script so that the 
 settings are then reflected in that objects' inspector ?
 
 be well

Yes. There are many properties that can be set, like height, width, rectangle, 
left, right, etc. Usually after you've set them by script you have to force the 
property inspector to update itself before the new settings are shown. For 
example, you could close and reopen the inspector, or switch to another pane of 
the inspector then switch back.

Regards,

Devin




Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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-14 Thread Devin Asay

On Oct 14, 2010, at 1:09 PM, J. Landman Gay wrote:

 On 10/14/10 1:29 PM, dunb...@aol.com wrote:
 Richmond.
 
 This is the second time I have done this.
 
 I need more rest.
 
 Or maybe he should just change his name. I know I've asked a few of the 
 Marks on this list to do that. None of them took me up on it.

Whoa! Jacque, Jacque. People who live in adolescent-humor-evoking-last-name 
houses should not throw stones!

Devin



Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Moving 2 object at the same time ...

2010-10-11 Thread Devin Asay

On Oct 11, 2010, at 2:51 PM, Jean-Pierre Soto wrote:

 Hello,
 
 I want to move to image on the screen in the same time. I try to use  
 the lockMove property but the image jump directly from start to end  
 of the move.
 
 Can anyBody help me with that ?

Jean-Pierre,

Add the phrase 'without waiting' after your move command. That should allow you 
to issue two move commands one after another, and both objects will move at the 
same time.

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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] Non-English voices on Mac VoiceOver

2010-10-04 Thread Devin Asay
Sorry for the off-topic post, but I seem to remember that there are folks here 
who have dealt with usability and visual impairment issues. We have a potential 
need to support visually-impaired, non-English speakers in our Mac labs 
(running 10.6) with screen reading technology. Does anyone know good sources 
for non-English synthesized voices, as well as guidance in using them?

TIA,

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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

2010-09-29 Thread Devin Asay

On Sep 28, 2010, at 7:20 PM, Terry Judd wrote:

 The problem of lengthy timeouts when trying to connect to a MSQL server that
 is down/offline is bugging me again. It seems like the default timeout is 60
 seconds which is way too long to wait for a response but there's no obvious
 way to override it. The socketTimeoutInterval has no effect and while I've
 got some old code laying around that suggests setting an environment
 variable ($MYSQL_CLIENT_TIMEOUT) it doesn't work either.
 
 Any ideas?

Terry,

Have you tried this on LiveCard 4.5? According to the release notes, there was 
an engine change that made opening sockets non-blocking, but I don't know 
whether that affects MySQL connections. 

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: What have I done?

2010-09-27 Thread Devin Asay
Luxury! I dream about having a register! All I have is the bottom of a rusty 
soup tin, and I have to scratch tick marks on it with a broken stick! 

On Sep 27, 2010, at 10:40 AM, Andre Garzia wrote:

 at least you got 8k... all I have are a couple registers and a very short
 stack...
 
 On Mon, Sep 27, 2010 at 1:28 PM, James Hurley 
 jhurley0...@sbcglobal.netwrote:
 
 Craig and Mark,
 
 That was the problem. I have a vague recollection  of changing that in the
 preference dialog box just to see what would happen, and then the phone
 rang. By the time I got of the phone my short term memory bank had been
 reprogrammed. I used to have about 68 K short term memory. It has dwindled
 to about 8 k.

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Getting started with databases

2010-09-15 Thread Devin Asay

On Sep 15, 2010, at 4:56 AM, Tim Lambert wrote:

 Hello
 I am a long time user of Rev but have always developed databases with FMPro 
 advanced. Time to try to make the move to Rev. 
 With big amounts of data and lots of tables joining etc, it all looks pretty 
 arcane to me.
 
 Can anyone recommend any aids memoire  or templates or anything to help a 
 database slow-coach along?

Tim,

I created a series of lessons on databases in Rev for my students. You may find 
it helpful. Just go to http://revolution.byu.edu and click on the link 
Introduction to Programming in Revolution. Then look for a section, near the 
bottom called Database Access in Revolution.

Regards,

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Two On-Rev Scripts on One Web Page

2010-09-15 Thread Devin Asay

On Sep 15, 2010, at 10:02 AM, Gregory Lypny wrote:

 Hello everyone,
 
 I have an On-Rev script called from an HTML markup item in a web page.  It 
 works fine in that the information I want generated is displayed.  I call the 
 script like this (thanks for help with the syntax, André):
 
   ?rev include ../myScript.irev ?
 
 The trouble is, if I put the exact same statement in another HTML markup item 
 anywhere else on the page, nothing is displayed and other static text items 
 on the page are blanked out.  The implication seems to be that more than one 
 reference, using Include, to On-Rev scripts cannot exist on the same page.  
 Is that correct or am I doing something wrong (likely)?  If the second item 
 does not use an include statement to reference a script but is a script 
 itself, then there is no problem.  For example,
 
   ?rev put the long date  the long time ?
 
 works fine on the same page with myScript.irev.
 
 Any thoughts?

Gregory,

I'm not the expert on revServer scripting by any means, but as far as I know 
you only need to issue an include statement one time for any given page. The 
included file should then be available to any script segments on the page. I 
find it really helpful during development to enable inline error reporting:

?rev set the errormode to inline ?

That will show any errors generated by your rev code.

HTH

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: on-rev forum

2010-09-14 Thread Devin Asay

On Sep 14, 2010, at 9:09 AM, J. Landman Gay wrote:
 
 
 Wait -- I assumed you meant the regular RR forums. There's an on-rev 
 forum? Did I miss something?

Umm, yes. Have you really never seen it? Go to on-rev.com, then click Support  
Forums.

Hey, everyone! I knew something Jacque didn't know!!

:-)

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: on-rev forum

2010-09-14 Thread Devin Asay

On Sep 14, 2010, at 11:16 AM, J. Landman Gay wrote:

 On 9/14/10 10:31 AM, Devin Asay wrote:
 
 On Sep 14, 2010, at 9:09 AM, J. Landman Gay wrote:
 
 
 Wait -- I assumed you meant the regular RR forums. There's an on-rev
 forum? Did I miss something?
 
 Umm, yes. Have you really never seen it? Go to on-rev.com, then click 
 Support  Forums.
 
 Hey, everyone! I knew something Jacque didn't know!!
 
 The older I get, the more everyone knows stuff I don't know. :) I found 
 it before you posted though -- but it's pretty empty. In fact, there's a 
 checkbox at the bottom that says forum locked. I don't know what 
 that's all about. I didn't look at more than the first screen, since I 
 already suffer from information overload.

It was actually pretty active the first few weeks and months after on-rev was 
introduced. There are some really good posts from last summer, for instance.

IIRC, when you first go there it shows up as locked until you log in with 
your on-rev account info.

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Waiting for DNS to update a new site.

2010-09-14 Thread Devin Asay
Works here.

I notice that sometimes the DNS cache on my Mac needs to be flushed after a DNS 
change. If she's on a mac that might be the issue.

On OS X 10.5 and higher the shell command to do this is:

dscacheutil -flushcache

HTH

Devin


On Sep 14, 2010, at 4:17 PM, Alex Tweedly wrote:

 
 Off-topic - but I could do with a favour.
 
 I'm helping a friend develop a new web site, and although I created it a 
 couple of days ago, it (apparently) isn't yet visible to her. I can't 
 tell whether it's simply a DNS delay - just longer than I'm used to, or 
 some other problem.
 
 So could a few of you let me know whether or not you can reach 
 http://www.melaniechmielewska.co.uk
 (and if you can see it, any other comments are welcome; note the gallery 
 and corbel photos are incomplete, but they will be there tomorrow )
 
 And, to be slightly more general - anyone know of a service / website 
 that will let you check DNS name visibility in a number of locations 
 around the web ?  I tried the one at 
 http://www.mob.net/~ted/tools/dns.php3 but wasn't convinced it is very 
 authoritative.
 
 Thanks
 -- Alex.
 ___
 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

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Ft Gay, GA

2010-09-10 Thread Devin Asay
Hey, it's my democratic right to worship cheeses! It makes me feel gay, in the 
traditional meaning of the term!

(Did I fit in all of the forbidden themes?)

Happy Friday! Except for those of you who are already at Saturday.

Devin

On Sep 10, 2010, at 12:21 PM, Heather Nagey wrote:

 You are Bd people. Tapping desk. Shaking stern finger. Tutting.
 
 lol
 
 What am I to do with you all? Its lucky I'm in an exceptionally good  
 mood since yesterday afternoon!
 
 Heather
 
 On 10 Sep 2010, at 18:55, J. Landman Gay wrote:
 
 On 9/10/10 12:32 PM, Mark Wieder wrote:
 Friday, September 10, 2010, 2:31:58 AM, Heather wrote:
 
 No religion, politics, cheese and sexual preferences.
 
 ...actually, I read that as (cheese and sexual) preferences and then
 my brain got a bit bogged down trying to deal with it...
 
 
 Seems pretty straightforward to me. No sex with cheese. Or at least,  
 keep it to yourself.
 
 Heather is going to have a lot of moderating to do after this...
 
 -- 
 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
 
 Heather Nagey
 Customer Services Manager
 http://www.runrev.com/
 RunRev - Software construction for everyone
 follow me on twitter
 http://www.twitter.com/lainopik
 
 ___
 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

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Accessing custom props using array notation

2010-08-19 Thread Devin Asay

On Aug 19, 2010, at 4:43 AM, Chipp Walters wrote:

 Devin,
 
 Put the custom prop into an array var, then you can access the contents.
 
 put the uMyArray of btn test into tArray
 put tArray[prop1] into tVar

Thanks Chipp. That works if the custom prop is an array to start with, but my 
question is whether it is possible to access all kinds of custom property data 
in the default custom property set using array notation. Here's the situation:

I have an image object that has several different visual states. The state is 
represented by image data stored in custom properties of the image, labeled 
like this: 
state1
state2
state3
state4

When I want to change visual states I simply set the image text to one of the 
custom properties. It would be much easier to do if I could do something like 
this:

  set the text of img myImg to the customKeys[state  currStateNum] of img 
myImg

Instead, I have to construct clumsy do statements to make the changes.

Unfortunately this doesn't work when using properties in the default set. It 
does work when you have created the properties in your own sets:

  set the text of img myImg to the myPropSet[state  currStateNum] of img 
myImg

  (From memory, so I may be missing a detail of the syntax.)

So the question is, can you access non-array data in custom props using array 
syntax when using just the default property set?

Devin

 
 On Wednesday, August 18, 2010, Devin Asay devin_a...@byu.edu wrote:
 Anyone know if it's possible to access custom properties from an objects 
 default custom property set using array notation? This is easy to do for 
 custom property sets you create yourself.
 
 set the myPropSet[prop1] of btn myBtn to foo -- works
 
 But I can't figure out if you can do the same thing with the default set:
 
 put the customKeys[prop1] of img myImg into bar -- doesn't work
 
 If this could be done it would be nice for constructing custom property 
 names dynamically when access custom props, as in a sequence of prop names 
 like prop1, prop2, prop3, etc.
 

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Accessing custom props using array notation

2010-08-19 Thread Devin Asay

On Aug 19, 2010, at 10:00 AM, Kevin Miller wrote:
 
 Can't you do something like this:
 
 put xyz into tVar
 set the tVar of btn 1 to a
 
 You'll end up with a property called xyz that contains a in the default
 set.

True enough, but can you do the opposite? 

put state  1 into tPropName
put the tPropName of image myImg into foo

Unless memory fails, you can't do that--I've tried it; i.e., you can't 
dynamically build property names to access existing custom props.

I would be love to be proven wrong. ;-)

Regards,

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Accessing custom props using array notation

2010-08-19 Thread Devin Asay

On Aug 19, 2010, at 10:25 AM, Kevin Miller wrote:

 On 19/08/2010 17:16, Devin Asay devin_a...@byu.edu wrote:
 
 True enough, but can you do the opposite?
 
 put state  1 into tPropName
 put the tPropName of image myImg into foo
 
 Unless memory fails, you can't do that--I've tried it; i.e., you can't
 dynamically build property names to access existing custom props.
 
 I would be love to be proven wrong. ;-)
 
 Well it should work and it does here.

Well, shut my mouth! That'll teach me to rely on faulty memory! (I blame space 
aliens and nano-brain-implants.) This works perfectly:

  put state  tNum into tMyProp
  set the text of img myImg of me to the tmyProp of img myImg

Jacque, could I get a copy of your time warp stack so I can not write my 
original post yesterday?

Thanks, Kevin!

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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


Accessing custom props using array notation

2010-08-18 Thread Devin Asay
Anyone know if it's possible to access custom properties from an objects 
default custom property set using array notation? This is easy to do for custom 
property sets you create yourself. 

set the myPropSet[prop1] of btn myBtn to foo -- works

But I can't figure out if you can do the same thing with the default set:

put the customKeys[prop1] of img myImg into bar -- doesn't work

If this could be done it would be nice for constructing custom property names 
dynamically when access custom props, as in a sequence of prop names like 
prop1, prop2, prop3, etc.

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: [RevServer tips] Spreading the load or why wise developers use asynchronous workflows

2010-08-04 Thread Devin Asay
Jan, Jeff, Andre,

So is it okay to have irev scripts that are on the same server as the DB make 
the requests? Or are you just saying you should only submit DB queries from 
localhost? (In MySQL terms, the difference between 'localhost' access and '%' 
access, for example.)

Of course, when doing DB access from Rev standalone apps, the only way it can 
be done is if the DB allows non-local access, through some port. If I 
understand you correctly, you're saying it is a Bad Idea to have an irev or php 
script query a DB from another server.

Just trying to make sure I understand the context. I'm a desktop guy who is 
doing more and more with revServer and the web environment, and I'd like to 
avoid having my server nuked.

Regards,

Devin



On Aug 4, 2010, at 2:26 PM, Andre Garzia wrote:

 Jan,
 
 Will write a piece on this shortly, this is a big no no no!
 
 my lib RevSpark was created to serve exactly that situation where you need
 to be able to create simple CGIs that do not require complex views and
 stuff. I created it specifically to serve as an easy way to built RESTful
 services for database interaction.
 
 http://hg.andregarzia.com/revspark
 
 :D
 
 On Wed, Aug 4, 2010 at 5:20 PM, Jeff Massung mass...@gmail.com wrote:
 
 Never, ever, ever do this. ;-)
 
 It's basically asking for someone to hack - and nuke - your database out
 from under you. You never want to connect to it remotely, and you never
 want
 to send SQL commands to it directly. Use an intermediate layer.
 
 For example, have a server process that accepts incoming connections and
 [indirect] commands that will end up modifying the database. But that
 process is capable of doing a lot of security checks:
 
 - Logins + permissions
 - DOS attack checks
 - Ensure validity of actions
 - Much more...
 
 The 3rd one there is probably most important. Instead of having a remote
 app
 send direct SQL commands to a remotely hosted database, you create action
 commands that end up performing the correct SQL under-the-hood.
 
 This has *many* advantages:
 
 - Clients have no direct access to the database (which may hold the data
 for
 many clients)
 - You can change your data schema without a client ever knowing, and no
 application updates are required.
 - The data storage method is hidden from potential hackers.
 - Much more...
 
 Jeff M.
 
 On Wed, Aug 4, 2010 at 3:10 PM, Bob Sneidar b...@twft.com wrote:
 
 Hi Jan.
 
 Is accessing your database directly from a remote location taboo? I'm
 developing an app that does exactly that!
 
 Bob
 
 
 
 ___
 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

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: [RevServer tips] Spreading the load or why wise developers use asynchronous workflows

2010-08-04 Thread Devin Asay
Thanks for the reply, Andre. While I've been doing simple HTML and web stuff 
for years, I'm still relatively new to the world of server-side apps and server 
scripting.

On Aug 4, 2010, at 3:53 PM, Andre Garzia wrote:

 Database communications such as SQL queries and logins should never cross
 networks. If the database server is running at a given host, then use a cgi
 at the same host as middleware to talk to it.

So SQL queries to DB servers, such as you can easily do from Rev stacks are 
inherently insecure? I've been doing this for years, so why am I even still 
alive!? ;-)

Don't get me wrong; I have no reason to doubt your judgment. I'm just surprised 
I've never heard this before. (Or maybe never paid attention.) The ability to 
access online DBs is touted as a major feature of the Rev desktop product, and 
I make heavy use of it.

What is the core issue--that when you send DB queries across network boundaries 
you're sending clear text? Does that mean if I use encryption or SSL in 
conjunction with DB calls I'm okay?

Sorry to belabor the question. I just want to make sure I understand so I can 
limit my exposure to risk. I know how to do DB calls from irev scripts on 
localhost, so I can easily avoid a potential security hole.

Thanks,

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: [RevServer tips] Spreading the load or why wise developers use asynchronous workflows

2010-08-04 Thread Devin Asay

On Aug 4, 2010, at 4:07 PM, Jeff Massung wrote:

 This is a typical, safe setup:
 
 1. Client web browser clicks a button on a web page.
 2. Web server sends a command to a CGI script (running on the server).
 3. CGI script makes a connection to the database and runs a SQL function.
 4. The SQL function executes a transaction on the database.
 
 #1 is executed at some random, remote, external machine.
 #2 is the only socket action that actually takes place.
 #3 is run through the localhost loopback device to gain DB access.
 #4 is entirely done within the database server code.
 
 Something you can usually do as a quick test is to set your database up so
 that it only accepts connections from the localhost. Then run through all
 your tests. If any of them fail, that's a point where you are trying to
 access the database remotely and need to fix it.

Thanks, Jeff! This is a really useful outline that I can easily adapt to my 
work. I assume you'd want to follow this procedure even if you are making the 
db requests directly from a stack? So send a get or post http request to the 
CGI script from the stack and then process the returned data in the stack?

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: ON TOPIC : A REV QUESTION! :-)

2010-07-26 Thread Devin Asay

On Jul 26, 2010, at 12:56 PM, René Micout wrote:

 Hi John,
 
   set the label of btn Cancel of stack ask dialog to Annuler -- 
 francisation dialogue
 
 Bon souvenir de Paris
 René
 
 
 Le 26 juil. 2010 à 20:17, John Dixon a écrit :
 
 
 Hi...
 
 I have put a stack together on a Mac using an 'English' Mac OS... The stack 
 will run in France... I have just realized that there are a couple of 'Ask' 
 commands littered about the stack that have 'Cancel' and 'OK' in the 
 buttons...
 
 Will 'Cancel' be translated into something like 'Effacer' when running under 
 a French Mac OS ?

John,

Profiles work really well for this kind of thing. Just create a new profile for 
each object that needs a French label, in the object's property inspector, 
under the Profile section. Name the profile something obvious like french. 
Make sure the new profile is selected in the inspector, then change the label 
property to the French label. Do this for each object that needs a French 
label. Then use the revSetStackProfile command to switch between the Master 
(default) profile and the French one for all objects in the stack that have the 
french profile:

revSetStackProfile french --switch 

To switch back use:

revSetStackProfile Master

Regards,

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Estimate/Quotation program, help me please.....

2010-07-23 Thread Devin Asay
On Jul 22, 2010, at 7:17 PM, tm274 wrote:

 
 I see a one day training course for a kiosk but it appears to be a web based
 program and I am looking to learn or get help to build a windows executable
 that includes option buttons and combo boxes rather than drag and drop. Any
 other thoughts?

That would be the workshop we taught at RevLive '08, with contributions by 
Kevin Miller, myself, Scott Rossi, Jacque Gay, Andre Garzia and the late Bill 
Marriott. We actually showed a progression of how such a kiosk could be built 
(a very simple one, of course,) including a fully-desktop-centric version (the 
first four phases), plus ways to move parts of it to the web (Andre), and how 
to employ a database to store the merchandise data (Bill.)

The contents of the workshop CD can still be downloaded at 
http://asay.byu.edu/revLive-workshopCD.zip

Given your description of what you want to do, there should be some things 
there that will be helpful to you.

Regards,

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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 Devin Asay
Since this seems to be the day for questions, one more I haven't seen asked:

If I spring for Rodeo (and I'm very close to doing it) am I forever tied to 
dependency on the Rodeo server? What about those of us who have invested in our 
own on-rev account or in revServer? Can we produce code on the Rodeo server, 
then copy it to our own revved servers?

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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

2010-07-20 Thread Devin Asay

On Jul 20, 2010, at 10:58 AM, Gregory Lypny wrote:

 Hello everyone,
 
 Despite having an On-Rev account, I'd like to get revServer running on a 
 machine at work but I don't understand the configuration instructions I found 
 on rev Lessons.  Under the Overview section, am I supposed to set 
 REVSERVER_HOME to some path?  Where is this variable set and where does it 
 reside?  This is followed by the CGI-When-You-Have-Access-to-Apache section, 
 which I presumably do on my Mac, but it doesn't say how to create a handler 
 to do the mapping that is required.  It also states parenthetically that this 
 is not best practice (but not why), although there doesn't appear to be a 
 section that describes what would be better practice.
 
 Is there a revServer Configuration for Dummies document out there?

Gregory,

I struggled at first, too. But finally got it to work. Note I am working on OS 
X Server, so if you are not, the specifics may vary. 

Mike's instructions seem very good; I'll just add my own notes, which I typed 
up for myself to remind me the next time I have to do this. Hopefully, between 
Mike and me you'll get it working.

DNA Notes - June 17, 2010
My first test was to enable revServer only for a specific site. At first I had 
lots of trouble, and I kept messing with the directives for the site to try to 
fix them. I finally ended up copying Mark's example directives directly into my 
site config file. The real problem turned out to be the directory issue, 
described below.

I got this to work after some fiddling. The main problem was I had copied the 
whole revserver folder into the cgi-bin folder, which meant there was an extra 
directory intervening and breaking the path resolution. Once I moved the 
revserver binary and the folders directly into cgi-bin it worked.

June 22, 2010
In order to enable irev scripting for all sites on the server I modified 
/etc/apache2/httpd.conf as follows:

AddHandler type-map var
AddHandler irev-script irev  ## (added line)
Action irev-script /cgi-bin/revserver/revserver  ## (added line)

AddType application/andrew-inset ez

...

IfModule mod_alias.c

# (stuff omitted here for brevity)

 For Mac OS X Server: Uncomment this line to enable web-based 
 configuration of mailman:
##
#   Include /etc/apache2/httpd_mailman.conf
IfModule mod_setenvif.c
IfModule mod_negotiation.c
# Allow convenient access to Apache manual
AliasMatch 
^/manual(?:/(?:de|en|es|fr|ja|ko|pt-br|ru))?(/.*)?$ 
/Library/WebServer/share/httpd/manual$1
Directory /Library/WebServer/share/httpd/manual
Options Indexes
AllowOverride None
Order allow,deny
Allow from all
Files *.html
SetHandler type-map
/Files
SetEnvIf Request_URI 
^/manual/(de|en|es|fr|ja|ko|pt-br|ru)/ prefer-language=$1
RedirectMatch 301 
^/manual(?:/(de|en|es|fr|ja|ko|pt-br|ru)){2,}(/.*)?$ /manual/$1$2
LanguagePriority en de es fr ja ko pt-br ru
ForceLanguagePriority Prefer Fallback
/Directory
/IfModule
/IfModule
 DNA: Since I keep my web server root at a different location than 
the default one, I had to comment out existing ScriptAlias, and add the two 
following
# ScriptAlias /cgi-bin/ /Library/WebServer/CGI-Executables/
ScriptAlias /cgi-bin/ /Volumes/ServerHD2/WebServer/CGI-Executables/
ScriptAlias /cgi-bin/revserver 
/Volumes/ServerHD2/WebServer/CGI-Executables/revserver
/IfModule

# (end quote from httpd.conf)

July 20, 2010
Note: After I ran a system software update from Apple, my revServer stuff 
stopped working. I discovered that Apple's update modified httpd.conf, 
uncommenting the first ScriptAlias line. Once I reestablished my ScriptAlias 
line, and restarted apache, it worked again.

HTH

Regards, 

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: I cannot edit a field although the locktext is set to false

2010-07-19 Thread Devin Asay
On Jul 19, 2010, at 2:43 PM, Reinhold Venzl-Schubert wrote:

 Hi!
 
 On my card there are 10 textfields, one of them ist locked and stay locked.
 The looktext-button in the basic properties is not highlighted.
 I send the message set the locktext of fld FrageR1 to false to the field.
 It stay locked.
 
 What can I do?
 What can be the reason?

Reinhold,

Make sure these two properties are also set as follows for the field:

traversalOn = true
In property inspector:  Focusable

autoHilite = true
In property inspector: autoHilite

Regards,

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: revBrowser + youtube.com = Crashing?

2010-06-24 Thread Devin Asay

On Jun 24, 2010, at 11:10 AM, Scott Rossi wrote:

 Hi List:
 
 I'm wondering if a few folks with Windows systems wouldn't mind doing a
 simple Rev test.  Run the browser sample stack that ships with Rev
 (C/Program Files/Revolution Enterprise/4.0.0-gm-1/Resources/Examples/Browser
 Sampler.rev) launch the demo browser from the button on the first card, and
 navigate to www.youtube.com.  Over here on 3 separate systems, Rev crashes
 when accessing this URL.  The Rev folks are apparently unable to reproduce
 the problem.  Can anyone else?

Yep, crashes here on Win XP with SP3. Rev 4.0 and 4.5-dp-3. IE 8 is installed 
on the system.

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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

2010-06-17 Thread Devin Asay

On Jun 17, 2010, at 7:22 AM, Simon Lord wrote:

 In flash there was the notion of asking for the name of _parent to get
 the ID or name of the container movieClip.  I have a scenario where I
 would like to poll a button within a group to tell me which group it's
 in.
 
 The long way would be to get the long name of target, filter it for a
 string, get the first name in quotes to the right of it etc etc.
 
 But I'm hoping there is something quicker.
 
 Ex:
 
 on mouseDown
  put the short name of parent
 end mouseDown

Hi Simon,

We have a tool to do that; it's just a difference in terminology:

put the owner of object

This will return the name of the group if it's a grouped control, or the name 
of the card if it's not a grouped control.

HTH


Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: [Very OT] Happy and need to share it!

2010-06-15 Thread Devin Asay

On Jun 15, 2010, at 8:56 AM, Jeff Massung wrote:

 http://massj.tumblr.com/
 
 Sorry for the spam (sorta), but I just have to share a very happy moment for
 me.

Yay! Dad rules! (And just in time for Fathers Day.) Thanks for sharing your 
parent payday moment. :-)

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: combo box messages

2010-06-07 Thread Devin Asay

On Jun 5, 2010, at 5:07 PM, David C. wrote:

 A problem was posted to the forums. SomeOne wanted to type text into a
 field, and have that text dynamically located among the lines of another
 scrolling list field such that closer and closer matches are found as the 
 text
 entry gets longer.
 
 
 I put together a very simple stack that kind of does what he was looking 
 for:
 http://www.docstoolchest.com/Predictive.rev
 
 It's a bit hackish with the hidden fields and can probably be coded
 more elegantly, but filtering the text seems to do pretty well in my
 testing with Win 7. Although I haven't done so, you can probably grab
 the coordinates for the cursor position and have it pop up along side
 each time.

I have a stack that does this on revOnline. Look for a stack called Type with 
Filter.

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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] Google Drops Windows

2010-06-04 Thread Devin Asay

On Jun 4, 2010, at 8:10 AM, Richard Gaskin wrote:
 
 It's Aufulich, read Awful Itch - he was the Third Deputy Assistant 
 Undersecretary in the Ministry for Woolen Underwear. :)

As a long-time student of Russian and erstwhile Kremlin-watcher, I have just 
three words:

Flat-out brilliant!

Thanks for sharing this, Richard.

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: never ending scroll?

2010-05-28 Thread Devin Asay

On May 27, 2010, at 4:56 PM, Nicolas Cueto wrote:

 Tom,
 
 The scroll-wheel I've in mind is in the Add alarm section of the
 iPhone's Clock.
 
 Lazily loaded? I guess I'm off to search that.
 
 In the meantime, I'd still welcome example scripts of something that'd
 do an endless scroll of text in a text field, rather than a group, a
 table, a window, etc.

Hi Nicolas,

The relatively new addition to revTalk, 'wrap', might help here. This example 
isn't exactly what you're describing, but I think the same principle could be 
applied. I just tested this script in a LittleArrows style scrollbar, and it 
successfully does an endless loop through the numbers 1 through 12, both 
backward and forward, when you click the increment or decrement arrows. 

Now imagine lines of text stored in a variable that would be shown in the 
field, instead of the numbers.

local sCount

on scrollbarLineInc
put 1,2,3,4,5,6,7,8,9,10,11,12 into tnums
add 1 to sCount
put sCount wrap 12 into fld counter
end scrollbarLineInc

on scrollbarLineDec
put 12,11,10,9,8,7,6,5,4,3,2,1 into tnums
subtract 1 from sCount
if sCount is 0 then put 12 into sCount
put sCount wrap 12 into fld counter
end scrollbarLineDec

HTH,

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: How to hide scroll if field does not require it

2010-05-26 Thread Devin Asay

On May 26, 2010, at 10:37 AM, Sivakatirswami wrote:

 Anyone else wish that fields has a property by which you could turn off 
 the appears of the vertical scroll bar, if the field actually did not 
 have enough text to require it?
 
 In the absence of that feature, what is the best way to program this?
 
 I have a field that is dynamically filled with a listing from folders on 
 the server on the LAN. Sometimes there may only be 1-2 files i the list, 
 other times there are many. I would like the field not to have a 
 vertical scroll bar if there it only has 1-7 lines of text and then if 
 it fills with 8, suddenly the scroll bar appears.
 
 I can think of ways to do this, but How are others doing this?

This handler is in my standard library stack used by most of my projects:

command enableScrollbarIfNeeded pFldName
  if the formattedHeight of fld pFldName  the height of fld pFldName then
set the vScrollbar of fld pFldName to true
  else
set the vScrollbar of fld pFldName to false
  end if
end enableScrollbarIfNeeded

It's worked well for me.

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: revLet: fetching a url

2010-05-20 Thread Devin Asay

On May 20, 2010, at 2:35 PM, David Bovill wrote:

 This really should work - what am I doing wrong?
 
 on mouseUp
   if the optionkey is Down then
  put Hello World! into fld 1
   else
  put url http://www.google.com; into fld 1
   end if
 end mouseUp
 
 
 I create a simple stack with one button and the above script and one field.
 It works fine on the desktop. The application settings for the revLet
 include the internet library and the network access in security settings.
 But no go???
 
 The stack can be found here:
 
 go to stack url http://www.revtalk.org/tests/Test/Test.rev;
 
 and the revLet here:
 
 http://www.revtalk.org/tests/Test/test.html

David,

In the standalone settings Web tab, did you check the Network box? I believe 
that in order to access urls outside of your own domain the user has to grant 
permission.

HTH
Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: searching for a put that opens message box

2010-05-17 Thread Devin Asay

On May 16, 2010, at 1:16 PM, Jim Bufalini wrote:
 
 Here is a small Rev plugin that finds orphaned puts in any open stack you so
 designate. It was written by Eric Chatonet. Offered as is. It will also
 find other lines of code. Please put it in your plugins folder and launch it
 from there. 
 
 www.jimbofhawaii.com/downloads/Smart Search.rev

The link seems to be broken, Jim, although I was able to get it by just listing 
the downloads folder contents.

Thanks for offering this.

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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] 3d flip effect?

2010-05-17 Thread Devin Asay
On May 17, 2010, at 10:43 PM, Nicolas Cueto wrote:

 Hello,
 
 Anyone know how to or what software can create a 3D flip effect of an image?
 
 For example, a coin showing heads flips to show tails, or a navigation
 tile showing a left-arrow flips to show a right-arrow? And all with a
 3D illusion!

Nicolas,

Have you checked QuickTime effects? ('answer effects' in the message box will 
bring up a dialog where you can see them.) Failing that, if you are on Mac OS X 
there may be a Core Image effect that will do it.

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Recording Audio on Windows...?

2010-05-13 Thread Devin Asay

On May 13, 2010, at 2:28 PM, John Patten wrote:

 Hi All...
 
 I'm attempting to move a small stack, which records audio from a OS X  
 computer over to a Windows XP computer.
 
 The OS X stack works fine. When I run it on the Windows XP machine I'm  
 getting an error.
 
 I have installed QT on the Windows XP machine and I appear to have all  
 my paths correct.
 
 i.e. C:\Documents and Settings\the_domain.theUser\Desktop\recordings 
 \nameofRecording
 
 However, when I check the result after giving the record sound file  
 command it reports:
 
 error -220 starting recording
 
 Does anyone have an idea of what I'm missing?

Not sure what the error means. But audio recordings are generally pretty 
reliable on XP. I've got a demo stack that I know works on Win XP and Mac OS X. 
Maybe you could compare it to your own code and see if there are differences. 
If it doesn't work, there might be a problem with your configuration.

Enter in message box:

go stack URL http://asay.byu.edu/AudioJukebox.rev;

HTH

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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


Fwd: OT: Resources for Data Base Design

2010-05-11 Thread Devin Asay
Sivakatirswami,

I sent your message on to a colleague who is an expert in text markup schemes 
and this was his reply. It may imply a slightly different direction from what 
you have started with.

HTH

Devin

Begin forwarded message:

 From: Jarom McDonald 
 Date: May 11, 2010 8:42:40 AM MDT
 To: Devin Asay devin_a...@byu.edu
 Subject: Re: OT: Resources for Data Base Design
 
 Hi Devin,
 
 At least in the world of academia, what he's looking for just isn't done. 
 Whether for philosophical reasons, common practice reasons, or whatever, 
 there is very little work done in decomposing texts for relational models. 
 Rather, texts are kept whole and marked up in XML, which to most people 
 preserves the complexity of the text and facilitates publishing and 
 dissemination.
 
 This isn't to say that relational models can't be useful; I have seen 
 products where texts are marked up in the TEI schema (the standard for XML 
 encoding of text) and then elements are chopped up and put into a DB; 
 however, you can achieve similar levels of performance with an XML database. 
 The most used is called eXist; there are plenty of scripts you can find by 
 googling TEI + eXist that can help in storing XML docs in the XML database, 
 querying with xQuery and XPath to find documents, creating indices, etc.
 
 Of course, this probably doesn't help much, as Revolution has native support 
 for RDBMs but not for XML databases. But for full texts, the relational route 
 just isn't used in academia on any sort of wide scale.
 
 Jarom
 
 On Mon, May 10, 2010 at 9:36 AM, Devin Asay devin_a...@byu.edu wrote:
 Jarom,
 
 This came over the Revolution mail list. Any recommendations I could point 
 him to? The last long paragraph details what he's looking for.
 
 Devin
 
 
 Begin forwarded message:
 
 From: Sivakatirswami ka...@hindu.org
 Date: May 8, 2010 7:53:08 PM MDT
 To: How to use Revolution use-revolution@lists.runrev.com
 Subject: OT: Resources for Data Base Design
 Reply-To: How to use Revolution use-revolution@lists.runrev.com
 
 I'm working on a content management database based on the Dublin Core 
 and the Media Annotation Initiative. Much of the whole mode of discourse 
 and terms translate well into a database scheme but when the discourse 
 starts to talking about fine tuning and switches to an RDF framework it 
 is difficult to grok in terms of translating some of the principles into 
 actual table-field structures in a PostGreSQL dbase. the Dubline Core 
 seems in some respects a very abstract realm... but things are different 
 where rubber hits the road.
 
 I've looked pretty closely at the databases generated by XOOPS, Drupal 
 and Word Press and frankly, they are freaky scary. I see a hodge podge 
 of strategies, each differing -- depends on whose design the module 
 whose tables you are looking at. That's why I want to stay with Dublin 
 Core where the human readability principle is kept in the forefront of 
 design.  I'm pretty close to designing a schema that I think can contain 
 pretty much all the metadata for any video, text or audio, translations 
 pamphlets etc. FAQ  that we have. I supposed we are re-inventing the 
 wheel a bit, but in the end we will get something that is a good match 
 for our needs and we will not be boxed into framework of a monster CMS 
 that we cannot customize without spending huge $ on PHP-module 
 consultants... (been there, done that, nightmare)
 
 Metadata for a video or a sound file or an image is simple enough
 
 The part of the data base I'm unable to finish of is that which deals 
 with text fragments.  I think I posted this before on this list but got 
 no responses. If anyone knows what would be the best list or group I 
 should go to, to get help, let me know. What I'm interested in should be 
 pretty standard stuff in the world of academia: e.g. if you want a data 
 base to contain the most atomic elements of a text resource (one record 
 for every single verse of every single poem from a book where the poems 
 are divided into chapters and the chapters into sections and the 
 sections into parts of a book, and the book is one volume in a 
 series...)   what is the best schema which allows you to query the data 
 base to re-aggregate all those elements into it's original source 
 document, run time (or on a cron or periodically post modifications)  
 AND OR what other approaches might better serve  the end game (be able 
 to query for a single verse with complete citation; be able to query for 
 an entire poem with citation; be able to query for a complete chapter of 
 poems with a citation ... etc.)  I have some solutions in mind, and I 
 may just proceed with those, and refactor later if something better 
 comes along...but I would love to hear from some experts and seem some 
 existing models.
 
 Any ideas of where to go looking for mangos?
 
 

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

Re: Object is not an image when Crop command

2010-05-10 Thread Devin Asay

On May 10, 2010, at 10:22 AM, JosepM wrote:

 
 Hi List,
 
 I try to crop a image with the rect of a graphic.
 
 tObject is a graphic selected by the user.
 img picture is a image loaded by the user from disk
 
 The user move the graphic over the image and crop it, but only I get Error:
 object is not an image??
 The graphic is irregular polygon, I mean that is not a rectangle or a box..
 
 The code:
 
 put the rect of the selectedobject into tObject
 crop img picture to rect tObject
 
 Any idea? :)

Josep,

Are your images referenced to outside image data? The Rev Dictionary says this: 
 The crop command cannot be used on a referenced image. Doing so will cause an 
execution error.

Regards,
Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Object is not an image when Crop command

2010-05-10 Thread Devin Asay

On May 10, 2010, at 10:57 AM, JosepM wrote:

 
 Hi Devin,
 
 Yes, I read the dictionary, but the image is loaded from disk not  
 referenced. What is a image not referenced?

The image would have to be imported, I believe, to be able to use the crop 
command with it.

Devin

 
 El 10/05/2010, a las 18:51, Devin Asay [via Runtime Revolution] 
 ml-node+2172400-329687279-23...@n4.nabble.com 
 escribió:
 
 
 On May 10, 2010, at 10:22 AM, JosepM wrote:
 
 
 Hi List,
 
 I try to crop a image with the rect of a graphic.
 
 tObject is a graphic selected by the user.
 img picture is a image loaded by the user from disk
 
 The user move the graphic over the image and crop it, but only I  
 get Error:
 object is not an image??
 The graphic is irregular polygon, I mean that is not a rectangle  
 or a box..
 
 The code:
 
 put the rect of the selectedobject into tObject
 crop img picture to rect tObject
 
 Any idea? :)
 
 Josep,
 
 Are your images referenced to outside image data? The Rev Dictionary  
 says this:  The crop command cannot be used on a referenced image.  
 Doing so will cause an execution error.
 
 Regards,
 Devin
 
 Devin Asay
 Humanities Technology and Research Support Center
 Brigham Young University
 
 ___
 use-revolution mailing list
 [hidden email]
 Please visit this url to subscribe, unsubscribe and manage your  
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution
 
 
 View message @ 
 http://runtime-revolution.278305.n4.nabble.com/Object-is-not-an-image-when-Crop-command-tp2171784p2172400.html
 To unsubscribe from Object is not an image when Crop command, click  
 here.
 
 
 -- 
 View this message in context: 
 http://runtime-revolution.278305.n4.nabble.com/Object-is-not-an-image-when-Crop-command-tp2171784p2172408.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

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Object is not an image when Crop command

2010-05-10 Thread Devin Asay

On May 10, 2010, at 11:36 AM, JosepM wrote:

 
 OK. Now is imported into imagedata, but now say that is not a rectangle... :( 
 buf...
 
 It's posible to export or copy a portion of the image but with a irregular
 shape? 
 
 Maybe I trying something not posible...

Crop only works with a rectangle. There may be others on the list who have 
figured out how to use an irregular shape as an image mask.

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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

2010-05-04 Thread Devin Asay

On May 4, 2010, at 8:30 AM, Steve Jones wrote:

 Fairly new to RR here, but have used HyperCard and then SuperCard at the 
 amateur level for a while.
 
 I see in RR that you put items in GROUPS to have them appear on every card in 
 a stack as opposed to SC where you put them in the BACKGROUND.  I have a 
 GROUP of items on a single card in a stack.  When the CREATE CARD command is 
 issued in a handler, a new card is created but the GROUP is not on it.  What 
 might I be doing wrong?

Others have answered your basic question, but I can add that the concept of 
groups in Rev is simultaneously one of the more useful things in Rev, while at 
the same time one of the hardest cognitive shifts for people moving to Rev from 
HyperCard or SuperCard. I think that's because in Rev, groups are far more than 
just a replacement for backgrounds. When I introduce groups in my Rev class I 
tell my students that there are two main reasons for using groups:

1. To associate several controls into a single group for ease of formatting or 
rearranging your layout; or because the controls need to interact in some way. 
For example, if you want to have a set of radio-style buttons, which let the 
user make “mutually-exclusive” choices, you need to group them. When you do 
that, Rev will automatically un-highlight previously highlighted buttons in the 
group.

2. To place the same controls on multiple cards. Often, for example, you may 
want to have buttons on every card of your stack that allow you to go to the 
next and previous cards in the stack. In cases like these, it is best to create 
the Previous/Next buttons on a card, group them, then place the group on all of 
the cards in the stack. The main advantage of this approach are obvious: if you 
have buttons that do the same thing on each card, and you use a group, the 
buttons stay in the same location on each card, have the same appearance on 
each card, and if you have to make a change to a button, you only have to do it 
once, instead of once for every card in the stack.

Groups can appear only on one card, or can be placed on as many cards as you 
want, by using Place Group from the Object menu. Once you manually place a 
group on more than one card, Revolution automatically considers it a 
background, and its backgroundBehavior property is automatically set to true. 
If you are not aware of this quirk, it can cause unexpected consequences.

If you want to read more, see http://revolution.byu.edu/groups/Groups.php

When I first switched to Rev from HC, I was completely confused by groups. Once 
I got my head around the concept and figured out how they worked, I was sold 
and would never go back to just card layer vs. background layer.

Anyway, welcome to the revolution. Hope this is useful.

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Unicode and Windows Vista (repost)

2010-05-03 Thread Devin Asay

On May 3, 2010, at 5:51 AM, Richmond Mathewson wrote:

  I am reposting this as it seems to have got lost
 amongst the recent cruft. It actually concerns
 an aspect of RunRev programming!

You should know better; this is the Rant and Rave About All Things 
Peripherally Related to Rev list. What you want is the How to Use Revolution 
list. ;-/
 
   
 
 -
 Yesterday I wrote:
 -
 
 Recently I had a slightly worrying post from a chap
 attempting to use my Devawriter on a computer
 running Windows Vista.
 
 The problem is that when Devawriter calls a Unicode
 character that is not meant to move the cursor/insert place
 forward, merely print something either above or beneath
 the preceding character it does not; while printing the
 character it also moves the insert forward so that
 everything comes out incorrectly.
 
 I tried to duplicate this problem on Mac and Windows XP
 (not having access to Vista) and was unable to. Luckily
 this chap managed to get hold of a machine running XP
 and has had no further problems.
 
 I would be extremely grateful if anybody has any ideas
 and/or advice regarding this problem, as it is a real
 problem. Obviously Vista does not play ball with
 Unicode fonts in RunRev in quite the same way that
 Mac and XP do.

Odd that you just ran into this with Win 7. Because I just noticed exactly the 
same problem in Snow Leopard. I have a stack that lists Russian vocabulary 
words, which has an option of showing the stressed syllables using one of these 
overstrike Unicode characters. Specifically, I use an acute accent from the 
unicode 03 section (Diacriticals, Greek, Coptic), character 0x301, or decimal 
769. It has the effect of placing the accent over the previous character.

But suddenly, in Snow Leopard, what has worked perfectly in Leopard and earlier 
and Win XP now places the accent over the *following*  character, which sounds 
just like what your Win 7 user is experiencing. 

So far this is just another data point that may help you figure out what's 
going on. I haven't come up with a solution yet. I do have a hunch, though. I 
wonder if both SnoLeo and Win 7 have fixed something in their unicode engines 
which slightly breaks Rev's unicode implementation.

I'll let you know if I figure anything out.

Regards,

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Unicode and Windows Vista (repost)

2010-05-03 Thread Devin Asay

On May 3, 2010, at 10:10 AM, Richmond Mathewson wrote:

 
 Thank you very much.  The problem was spotted with Vista; I have had no 
 feedback from a Win 7 user.

Sorry. My mistake. Of course I knew you said Vista, but we're on the brink of a 
pending changeover to Win 7 in our Windows labs and I'm afraid I have 7 on the 
brain. :-p

But that doesn't change the issue, does it? There may have been some change in 
the way both the Mac and Windows OS handle Unicode, which has rippled back into 
Rev's engine.

Do you know if any other of your Devawriter users are on SnoLeo, Vista or Win 
7. If so, are they seeing the same issues?

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Unicode and Windows Vista (repost)

2010-05-03 Thread Devin Asay

On May 3, 2010, at 11:27 AM, Richmond Mathewson wrote:

  On 03/05/2010 19:51, Devin Asay wrote:

snip

 Do you know if any other of your Devawriter users are on SnoLeo, Vista or 
 Win 7. If so, are they seeing the same issues?
 
 I do know that various versions of Devawriter have been downloaded at 
 least 7000 times; how many of those
 are repeats I have no way of knowing; but considering at one time I was 
 popping out upgrades every 2 days
 probably quite a few. I am absolutely sure the vast majority of those 
 downloads were by people who were
 curious to see a 'funny' Indian writing system rather than having an 
 interest in Sanskrit as such (let's face
 it, it is not everybody's cup of tea).
 
 Feedback has been thin; a few nice notes from Profs of Sanskrit who, 
 while being experts at Sanskrit are
 probably not well-versed in computers.
 
 The chap using Vista is the first corresponding critic I have had, and 
 he has proven most informative and
 helpful (especially as he is encoding a fairly large collection of his 
 grandfather's Sanskrit poems, so knows
 what he is doing with the language as well as feeling reasonably 
 comfortable with a PC).
 
 Initially there was some odd feedback on versiontracker:

snip

 they are both from Snow Leopard users; whether they got as far as the 
 Vista chap I don't know: I offered
 off-line correspondence to these 2 and have had nothing back.

Interesting. I only recently switched to Snow Leopard. Out of curiosity I just 
downloaded Devawriter. (Beautifully done, by the way.) Unfortunately my 
knowledge of Sanskrit is nil, so I don't really know what I'm doing. 

However, I can report that Devawriter launched without a hitch. And I had no 
problem at all with the font; the Devanagari characters appear just as they are 
on the virtual keyboard. In addition, the vowel markings on the Vowels keyboard 
seem to insert themselves properly above or beneath the previous character. If 
you know exactly what problem your Vista user was, I'd like to try to duplicate 
it in SnoLeo. At the very least it might be possible to isolate it to Vista.

Incidentally, what method are you using to type the unicode characters into 
the composition field? In my (much more static and rudimentary) Russian vocab 
tutor app, I resorted to using html unicode entities to switch accented 
characters off and on. Essentially I stored the original Cyrillic word lists as 
UTF8, with discrete acute accent chars as place markers for accented 
syllables. Something like this (hope the unicode comes through in email:)

аспи´рант

Then I would convert them to Unicode UTF 16 and store them in a field and grab 
the htmlText. After that I would do a straight replace of a #180; or a acute; 
with a #769;, a unicode char that's supposed to overtype the preceding 
character. My code to switch accents on and off looks like this:

 put the HTMLText of fld pFldName into htmlholder
  
  replace Lucida Grande with Geneva CY in htmlholder
  if the hilite of btn showstress of cd main then
replace /fontacute; with #769;/font in htmlholder ## Could be 
conditionally deleted if want to turn accents off
replace #180; with #769; in htmlholder
  else
replace acute; with  in htmlholder ## Could be conditionally deleted 
if want to turn accents off
replace #180; with  in htmlholder
replace #769; with  in htmlholder
  end if

Clunky-looking, I know. But until Snow Leopard it has worked perfectly, 
overtyping the preceding Cyrillic char with the acute accent. In SnoLeo it 
instead places the accent over the following char. When I saw your post I 
wondered if both your and my issues have the same root cause.

Anyway, hope this might jog something in your brain or mine that could lead to 
a fix.

Regards,

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Changing the Style of Words in Field And Quotation Marks?

2010-05-03 Thread Devin Asay
On May 3, 2010, at 1:22 PM, John Patten wrote:

 Hi All...
 
 I'm working on a little student utility that changes the text color  
 and underlines the individual word in the target field as they hit the  
 space bar. I'm wondering how I should handle passages of text that are  
 surrounded by quotation marks?
 
 I was taking the text passage and stripping out the quotes to get the  
 total number of words in the field. Then using that number and  
 reducing it to target the specific words in the field to modify their  
 text style.
 
 The quotation marks create a single word out of the phrase, and if I  
 attempt to delete a quote and then add it back the total number of  
 words in my variable is off. In any case, everything gets all wonky  
 when there are quotes in the passage...

John, 

You might try simply replacing the quotes with curled quotes, which Rev 
doesn't see as real quote marks. You'd have to account for cross-platform 
differences, however.

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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 rev Oracle support just a joke?

2010-05-01 Thread Devin Asay

On May 1, 2010, at 3:45 AM, Sakari Ruoho wrote:

 I still see that the RunRev website advertises that it works with 
 Oracle. Last time I checked this was far from the thruth. Is this still 
 the case?

What version of Rev do you have? Integrated support for Oracle database 
connectivity is only available in Rev Enterprise. See:

http://www.runrev.com/products/the-rev-platform/editions-comparison/

Regards,

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Card cut off at bottom because of menu

2010-04-30 Thread Devin Asay

On Apr 30, 2010, at 11:50 AM, J. Landman Gay wrote:

 There is one other approach that Chipp suggested a long time ago. I've 
 never used it. Instead of the above, just determine the platform on 
 preOpenStack and hide/show the menu group depending on platform. If it's 
 Mac, you can assign the menubar property to the hidden group so that on 
 Macs it is placed in the system menu position. I don't like this 
 approach as well, because it leaves a blank area at the top of the stack 
 where the menus would be on Windows, but it's another option.

This is what I do, but the blank area at the top of the card doesn't bother me. 
At least not as much as the stack size changing when I set the menubar prop.

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Math Help?

2010-04-30 Thread Devin Asay
Hi Scott,

On Apr 30, 2010, at 1:05 PM, Scott Rossi wrote:

 Hello List:
 
 Was wondering if those with more comprehensive math skills than I know how
 to determine if one point X,Y falls within a triangular region defined by 3
 points X1,Y1, X2,Y2, X3,Y3.  Thanks for any suggestions.

I don't know from math, but I do know you can use the within() function, as 
opposed to the 'is within' operator, to test for within-ness of 
non-rectangular objects. For instance, if you have an opaque, 3-sided polygon 
graphic, within() will only be true if the point you're testing is inside the 
filled part of the triangle.

I'm sure some real math expert would have a real math solution.

HTH,

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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] GameOver Mr. Jobs

2010-04-29 Thread Devin Asay

On Apr 29, 2010, at 12:31 PM, Richmond Mathewson wrote:

  On 29/04/2010 20:20, Bob Sneidar wrote:
 Yes, that was what they called it. I believe that if real Turquoise could 
 speak, it would express vehement dismay for the association with the actual 
 color Apple used. :-)
 
 
 More a virulent, vaguely polluted, tropical lagoon sort of colour.

The official name of the color was Bondi Blue, supposedly named for the color 
of the water at this beach in Oz:

http://www.hempelfamily.com/bondi_to_bronti.htm

And you could even see the computer's innards under the water!

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Video Grabber Audio question

2010-04-28 Thread Devin Asay

On Apr 28, 2010, at 12:06 PM, stephen barncard wrote:

 I posted this on the wrong list a couple of days ago.
 ---
 
 I've gotten the Video grabber to do mostly what I want
 
 - except decide how to control the audio - it always seems to just follow
 the video input
 
 Problems
 1. The audio mutes in record
 2. the audio level is low in preview
 3. Ins and Outs don't switch with default settings
 
 is there a missing audio panel for the grabber?
 Should I be using Trevor's Quicktime External for all of this and forget the
 grabber?
 
 or you can't get there from here   ??
 
 This thing is pretty cool; it 'almost works'.  I'm using it to capture every
 video I've shot since 1971 at full DV resolution  (on one hard drive!). I
 especially like the ability to set the Progressive setting to
 de-interlace, which is not always available in other apps.

Stephen,

I've never found a way to control the audio format  compression while using 
the video grabber. One thing I'm going to try this summer is using a shell call 
the unix utilituy ffmpeg to post-compress video and audio after the initial 
capture. I'll let the list know if I succeed in getting it to work.

Regards,
Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: New to the Revolution

2010-04-26 Thread Devin Asay

On Apr 24, 2010, at 4:59 PM, Mark Maslowski wrote:

 Howdy all!
 
 I am a long-time Director and Flash developer thinking of jumping into the
 Revolution for an upcoming desktop application. Any suggestions of resource
 material to help lessen the learning curve? Books? Tutorials?

MM:

Welcome to the Revolution! In addition to the excellent resources others have 
suggested, may I humbly suggest my web site at http://revolution.byu.edu. It is 
made up of an extensive collection of Rev tutorials and notes that I created 
for Rev programming courses that I teach here at BYU. Much of it may be a 
little elementary, since it's intended for beginning programmers, but there are 
lots of examples sprinkled throughout that you may find helpful.

Regards,

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Bad jokes [was: Re: [OT] GameOver Mr. Jobs]

2010-04-23 Thread Devin Asay

On Apr 23, 2010, at 2:20 PM, J. Landman Gay wrote:
 :) Reminds me of an old soviet joke from some years ago:
 
 Capitalism is the exploitation of one man by another. Communism is 
 exactly the opposite.
 
 Which, in turn, reminds me of yet another soviet joke:
 
 In the Soviet Union we have freedom of speech, freedom of press, and 
 freedom of association. In America, they have freedom *after* speech, 
 freedom after press, and freedom after association.

Ahhh! Old Soviet Union jokes!

Question: How can you tell communism is not based on science?

Answer: If it were based on science they would have tried it out on dogs first.

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: [slightly OT] Off for a couple of days

2010-04-14 Thread Devin Asay
Congratulations, Malte! Hope wife and baby son are doing well.

Regards,

Devin

On Apr 14, 2010, at 9:38 AM, Malte Pfaff-Brill wrote:

 And just after I wrote the mail, my wife went into labour. g I must have 
 felt it in the office. Anyhow...  Thanks for the kind words everyone!
 
 And please welcome the next revolutionary, Hannes Leander Pfaff. :-)

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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

2010-04-14 Thread Devin Asay

On Apr 14, 2010, at 11:12 AM, J. Landman Gay wrote:

 Klaus on-rev wrote:
 
 Rev uses always the SLASH / as a path delimiter internaylly on ALL platforms!
 You only need to use the backslash if you use a pathname inside of a SHELL 
 command on windows.
 
 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?

Don't ask me, my guideline on most things is WWJD? (What Would Jacque Do?).

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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

2010-04-13 Thread Devin Asay
Charles,
On Apr 13, 2010, at 3:02 PM, charles61 wrote:

 
 I just started using specialFolderPath to save documents made with my app. I
 tried the following for the Mac:
 
 ask file My file as:  with specialFolderPath(docs)
 
 which opens up the file dialog box showing Save My File as: Documents
 
 instead of opening the Documents folder with Save My File as: 
 
 What am I missing here?

The trouble is that ask file will assume that the last part of the file path is 
supposed to be the name of the new file. Try this instead:

ask file My file as:  with specialFolderPath(documents)  /untitled.txt

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Implementing the Mac Quick Look type of window

2010-04-12 Thread Devin Asay

On Apr 12, 2010, at 1:43 AM, René Micout wrote:

 Le 9 avr. 2010 à 19:15, Devin Asay a écrit :
 
 put qlmanage -p   theFile into tcmd -- shows it in a black window
 
 Devin,
 When I launch the script above, I have [DEBUG] in the title bar.
 How can I remove it ?
 And where can I find all details about qlmanage fonction (even in Apple 
 documentation I don't find explanations about parameters...) ?

Other more knowledgeable folks have already commented on this in this thread. 
I'm sorry, I don't know the answer. I only just noticed it myself, having 
recently upgraded to 10.6. Everything I know I learned from Jim Sims and Bernd, 
and from reading through the man page. 

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Implementing the Mac Quick Look type of window

2010-04-09 Thread Devin Asay

On Apr 9, 2010, at 11:07 AM, Peter Haworth wrote:

 Not sure the correct term for this but I'm looking for a way to to  
 implement windows that look like the Quick Look windows on a Mac.  
 They explode out from the document icon popup menu that you select  
 the Quick Look function  from.  They have a semi-transparent border  
 around the document they display and a close button at the top left  
 and a vertical scroll bar.
 
 I thought maybe the opaque property of a card might be a starting  
 point but it doesn't seem to affect the appearance of the card at  
 all.  Also tried playing around with the various options of the  
 Blending Properties but they seem to affect the appearance of objects  
 on the card rather than the card itself.
 
 Thanks for any pointers as to how to do this,

Actually, Pete, if you are on a Mac, 10.5 or higher, you can can access the 
QuickLook capability directly. I wrote this script after a discussion on this 
list a few months back. Thanks to Bernd Niggeman and Jim Sims for the ideas:

on mouseUp
  answer file please choose ...
  if it is empty then exit mouseUp
  put it into theFile
  put apostrophe (theFile) into theFile
  --put qlmanage -t   -s 900   theFile into tcmd -- apparently sets it to 
max orig size, white window
  -- put qlmanage -t   -f 5   theFile into tcmd  apparently sets it 
to max orig size, white window
  put qlmanage -p   theFile into tcmd -- shows it in a black window
  get shell  (tCmd)
  if the result is not empty then put the result
end mouseUp

function apostrophe what
  return '  what  '
end apostrophe

Regards,

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Wierd stack behaviour- location is off the planet!

2010-04-05 Thread Devin Asay


On Apr 5, 2010, at 6:02 AM, planix wrote:



Hiya,

RunRev 4 Build 950 on a Windows XP.

I wonder if anyone has seen the following.

I have a stack which fronts a series of sub-stacks. It doesn't have  
any
scripts apart from a menu choice so the user can go from this stack  
to the

other sub-stacks where data is stored and managed.

The problem I have is that suddenly, and for no discernible reason,  
the
front stack disappeared. It seemed to be available and visible was  
set to
true. So, I had a look in size  position properties. There I found  
that the
location of this stack was set at -32165, -31850. Bizarre. I don't  
have any

coding anywhere in my stacks that resets window location or anything.

Ho, hum, thunk I I'll just reset the location manually and viola,  
problem
solved! Hah! No such luck. I can't change the location. Doesn't  
matter what
I type in it sets back to the location described above. Without even  
a mild

attempt to come back to me.

I have no idea how I made this happen. And I have no idea of how to  
make it

come back.

Any thoughts on this? Seems like a bug to me. So, I will report it  
unless I

am just doing something blindingly stupid.


Did you try 'set the lockmessages to true' before changing the loc?  
Don't forget to set it to false when everything's fixed, though.


Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Cross-Platform encoding issues

2010-03-31 Thread Devin Asay


On Mar 31, 2010, at 6:30 AM, Jacopo Lupi wrote:


Hi all,

I'm building a cross-platform application based on an postgresql  
database.


The postgresql database encoding is utf8. The revclient sets the  
client_encoding of the postgres session to latin9 and if it is  
running on mac it translates the data with mactoiso or isotomac  
functions. I need to set the postgres client_encoding to latin9  
otherwise I can't retrive text with accents correctly on the  
macplatform.


Everything seems to work fine exept for the euro symbol. I can find  
no way to type the euro symbol in mac and make it readable under  
windows and viceversa.


Yes, the html entity for the Euro symbol is problematic and  
inconsistent between mac and windows. But this works on both Mac and  
Windows (beware word wrap):


set the unicodeText of fld test to uniencode((numToChar(226)   
numToChar(130)  numToChar(172)),utf8)


Does anybody know a correct implementation to make the euro symbol  
working in the correct way storing data on a sql database?


So as long as you store the characters sequence corresponding to ascii  
226, 130, and 172 in your database you should be able to render them  
successfully.


Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Connecting Rev stack to On-Rev mySQL DB?

2010-03-26 Thread Devin Asay


On Mar 25, 2010, at 2:56 PM, Andre Garzia wrote:


John,

check the allowed hosts on your control panel, add the % wildcard  
there.


Cheers
andre
PS: Power grid failure over here, working on batts, sorry for the  
hushed

reply


This is in fact what I have done on my MySQL account to make db's  
accessible from outside my on-rev domain. Beyond that, the advice from  
Sarah, Andre, Kay, and Jim is valuable with regard to security issues.


BTW, it's not obvious from the on-rev CPanel where to make the change  
to the allowed hosts. Under Databases click Remote MySQL. There you  
can add specific allowed IP addresses, DNS names, or the '%' wildcard.


Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Connecting Rev stack to On-Rev mySQL DB?

2010-03-26 Thread Devin Asay


On Mar 26, 2010, at 11:58 AM, John Patten wrote:


Thanks Sarah and Andre!

I figured out the % wildcard for SQL but I like Sarah's irev strategy
too.  I'm attempting to modify what Sarah describes to include a
search field on card and a WHERE in the SQL.  Having a hard time
getting my head around sending  the POST to the irev script so that I
can search by field in SQL and then returning the data to the stack.

Here's where I'm at:

--On the card-
on mouseUp
put cd fld SearchName into tTeacher
libUrlFormData(name, tTeacher)
post it to url http://jpatten.on-rev.com/readDB.irev;
put http://jpatten.on-rev.com/readDB.irev; into tData
put tData into fld tempdata
...

--in the irev file
put $_POST[name] into tTeacher
( and then everything that Sarah describes below)

My confusion comes from trying to submit two actions to the irev file,
a POST of the card field text and the OpenQuery of the database. What
is the proper way to get the text (POST) included as a WHERE in the
irev SQL action?


John,

A few weeks back I taught a block in my Rev class on creating irev  
scripts that respond to form requests in the context of creating  
custom database queries. I've just posted my class notes, which  
include an example of how this could be done. You may find them  
useful. (Or maybe you'll just find them way too basic. :) ) But it may  
give you some ideas.


Go to http://revolution.byu.edu/indexgeneric.php. Scroll down to the  
section on Internet and Networking and see the links under Web  
Services and Server-side Scripting.


Hope it is helpful.

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Saving files to database

2010-03-15 Thread Devin Asay

On Mar 15, 2010 Andrew Kluthe and...@rjdfarm.com wrote:


I have a need to store image files and document files (reports) to  
my mySQL
database. I know it is arguably unconventional to do this, but the  
need and
requirement is there. Does anyone have any experience doing this  
within rev?

I have seen alot of tutorials documenting this in PHP.

Worst case: I use a php script to handle this process. But, I would  
like to

do this straight from my rev program.



Bob and Slug,

I've been doing this for years, but I have never used base 64 encoding  
and decoding. I've moved multiple gigabytes of binary data back and  
forth between local machine and mySql server without any trouble at  
all. So my question is, why use base 64 encoding if it doesn't make  
any difference?


Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Inserting a photo into a polygon?

2010-03-15 Thread Devin Asay


On Mar 15, 2010, at 4:08 PM, Randall Lee Reetz wrote:


Can I insert a photo or image into a polygon?  How?


Hi Randall,

The only way I know of is to import an image into the stack, hide it,  
then set the backgroundPattern of the graphic object to the id of the  
image. (Make sure the graphic's opaque property is true). Small images  
are tiled, but a larger image will fill up the entire interior space  
of the graphic as long as the graphic is smaller than the image.


Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Stacks and Standalones

2010-03-09 Thread Devin Asay


On Mar 9, 2010, at 10:00 AM, Andrew Kluthe wrote:



I am trying to package up a little preview of my app so far for my  
boss and

am running into a few large snags.

Saving as a stand alone (with all the guides I have been following)  
mangles

the program and it crashes.
Stack runner 2.0 runs the program mostly fine but it cannot find  
substacks

to my Main.rev.


Are you by chance setting the defaultFolder anywhere in any or your  
stacks? The default setting of that property that will change  
depending upon whether you're in the IDE or standalone or launching  
from a stack runner. Another possibility for the standalone: did you  
check the Move substacks to individual stackfiles box in the Stacks  
pane of the standalone builder?


These are off the top of my head, and maybe grasping at straws, but  
I'm trying to think of things that might be different depending on the  
environment you're running in. Normally a standalone runs flawlessly  
if the stack in the IDE is working in the IDE.


Devin


Main.rev has several substacks TopMenu being one of them, but  
stack runner

produces this revError
Executing at 10:36:21 AM on Tuesday, March 9, 2010
Type: Chunk: can't find stack
Object: card id 1002 of stack TopMenu of stack C:/Rev/FOM2/ 
main.rev

Line: put (the height of stack sMainStack + 30) + (the height of stack
TopMenu + 30) + (the height of stack Help + 30) into sReportHeight
Line Num: 4
Hint: buddy

I am a little confused on how to refer to stacks/files/etc within  
rev. My
program works fine within the IDE but is nearly totally broken no  
matter

what stand alone solution I use.

The layout of my app is as follows:

Main.Rev has substacks -- Calendar, Help, libSQLYoga,  
Reports,

Resources, SideMenu, TopMenu


LeaseStack.rev has substacks -- Edit Fields, Edit Lease, Edit
Payments


Setup.rev has substacks -- People Setup

How would I refer to TopMenu? Currently it is 'stack TopMenu'.
How would I refer to Edit Fields of LeaseStack.rev from withing  
main.rev?

currently its stack LeaseStack

Surely my stand alone problems have to do with my code because they  
are so

universal to all the solutions I have tried.

Any help or direction you could provide would be fantastic. If I  
need to

clarify at all, please let me know.



Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: parsing data returned from the foundLine

2010-03-03 Thread Devin Asay


On Mar 3, 2010, at 6:43 AM, David Coker wrote:



Try: get the value of the foundline


That is definitely a step much closer. :)

I usually keep the dictionary open as a reference while I'm working,
but it certainly didn't help in this case.

...I think I'm gonna revisit *all* of the documentation covering
chunking again before I go much further with this little project. It
seems that I am still missing some of the concepts, methods and/or
possibilities that Rev offers when it comes to parsing textual data.


David,

I have an overview of Rev's chunking, text parsing and find tokens at http://revolution.byu.edu/textfind/TextandFind.php 
 .


You may find it useful.

Regards,

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Any recommendations for some Mac OS x Apps?

2010-02-26 Thread Devin Asay

Matthais,

Here's what I use; others will surely have other suggestions.

On Feb 26, 2010, at 9:47 AM, runrev260...@m-r-d.de wrote:


Dear All,

I am looking for some good alternatives for my existing windows  
apps, when switching/extending  to MacOSx.


Under Windows I use

Texteditor  :  Ultraedit

Free TextEdit that comes with OS X
	Free TextWrangler from barebones software (the lite version of  
BBedit.)

BBedit if you want to buy something high-end.


IconEditor : IconWorkshop
 	Free Icon Composer that comes with Apple's free developer tool,  
XCode.



FTP Client  :  WsFTP
	Fetch - free to education users, but I don't know how much  
commercially.



MySQL Frontend: HeidiSQL

I use PHPMyAdmin, a free browser-based interface.


TextureTool  : Texturemaker


No idea.



I am also looking for a free Graphic program and a 3D animation  
program.


I don't use it, but probably Gimp?


So are there any free or at least cheap MacOSx alternatives.


I'll bet Richmond will chime in. He is the champ of finding free  
apps. :-)


Regards,

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: [semi-OT]simulating onSubmit in post

2010-02-24 Thread Devin Asay
Thanks, Graham, Martin and Jim for your thoughtful and most helpful  
replies. Let me respond to a few of your points.


On Feb 24, 2010, at 2:26 AM, Graham Samuel wrote:


I for one don't think this is OT at all: I have struggled to  
understand how to extract stuff from web sites in a more complicated  
way than the simple examples given in the Rev documentation. I got a  
lot of help from this list (especially from SparkOut sparkout...@gmail.com 
) but I still remain profoundly ignorant. For instance, I wanted to  
know in a similar situation if I could effectively by-pass the JS  
function while capturing the web-based data and then replicate its  
functionality within my Rev program. IMHO anything that sheds light  
on the kind of topic would help strengthen the use of Rev in the  
area of interacting with web services, so must be of interest to  
many Revvers.


Since I am teaching my students about this topic this year, I am  
trying to distill what I am learning on my revolution.byu.edu web  
site. I have posted the following inter-linked pages that deal with  
GET and POST and Rev:


http://revolution.byu.edu/internet/webServices.php
http://revolution.byu.edu/internet/webServicesTerms.php
http://revolution.byu.edu/internet/getMethodSteps.php
http://revolution.byu.edu/internet/postMethodSteps.php
http://revolution.byu.edu/internet/aboutForms.php

I hope that others may find them informative (and that others won't be  
shy about pointing out errors if they find them.)


On Feb 24, 2010, at 2:39 AM, Martin Baxter wrote:


In the url instanced below, unless I'm misunderstanding what you are
trying to do, if you make a properly formed POST direct to
someurl.htm?loadpage, direct from a script or a stack for instance,  
the
onSubmit event in the html form is almost certainly irrelevant,  
because

it is only triggered in the browser when the user clicks the submit
element, and wouldn't apply in other cases.

Have you experienced some issue that makes you think it is relevant?


 Comments about JS client-side vs. server-side validation clipped.

Thanks, Martin. That is what I suspected, but being a JS novice, it  
was helpful to have it confirmed. I had thought I had carefully parsed  
the form tag on the page in question and replicated the required  
arguments in my stack. However I still couldn't get the server to  
respond with the desired information. As it turns out then, the  
validation function was a red herring, and I discovered the problem  
after reading Jim Ault's enlightening reply. He gave a very helpful  
summary of various types of validation using server-side forms, client- 
side JavaScript, and AJAX server-side live-typing validation.


But this bit of advice is what helped me find my error:

On Feb 24, 2010, at 3:58 AM, Jim Ault wrote:


server-side FORM
The way I use is to go into FireFox, activate the add-on using menu
Tools:Live HTTP Headers, fill in the form, then capture the headers
that are send by the browser.  The headers will include the GET and
POST data (of course).  Now you can use Rev to manipulate the Headers
(see the Rev dictionary) before submitting a form.


Once I installed Live HTTP Headers in Firefox, I could clearly see  
that I had failed to find some of the required arguments when I first  
looked through the form tag in the page source. I went back to the  
page source, and sure enough, found some hidden inputs that the page  
author had included after the submit input, but before the closing / 
form element. Nearly all of the other forms I've looked at have the  
submit input as the very last element in the form. So what tripped me  
up was a (to me at least) oddly-written form element in the page  
source. Thanks, Jim, for the tip on a very helpful tool.


And thanks again everyone for your help.

Regards,

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Button Icon Placement

2010-02-23 Thread Devin Asay

On Feb 23, 2010, at 10:03 AM, Dan Friedman wrote:


Hello...

Is there a way to have an icon on a button and have the label  
centered, but not under the button?  I know if you set the textStyle  
to left or right, then the icon is centered.  But, if you set the  
textStyle to centered, then the text lies below the icon.


My goal is to use a custom button graphic (up and down states) and  
the button name (label) would display normally, over the icon.


Any insight would be appreciated.



Dan,

Check out this thread from the list from one year ago:

http://n4.nabble.com/Dynamic-labels-for-buttons-with-oddshaped-icon-images-td337687.html#a337687

It dealt with the very issue you're asking about. In essence, you play  
with the margins of the button to move the label over the icon image.


Regards,

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Button Icon Placement

2010-02-23 Thread Devin Asay


On Feb 23, 2010, at 10:23 AM, Devin Asay wrote:


On Feb 23, 2010, at 10:03 AM, Dan Friedman wrote:


Hello...

Is there a way to have an icon on a button and have the label
centered, but not under the button?  I know if you set the textStyle
to left or right, then the icon is centered.  But, if you set the
textStyle to centered, then the text lies below the icon.

My goal is to use a custom button graphic (up and down states) and
the button name (label) would display normally, over the icon.

Any insight would be appreciated.



Dan,

Check out this thread from the list from one year ago:

http://n4.nabble.com/Dynamic-labels-for-buttons-with-oddshaped-icon-images-td337687.html#a337687

It dealt with the very issue you're asking about. In essence, you play
with the margins of the button to move the label over the icon image.


And then, I'd almost forgotten, I played around with the idea and came  
up with the following script. The image I was using was a simple, 3-D- 
looking circle. The script sets the icon and a bunch of properties to  
superimpose the label on the image:


on mouseUp
   put the short name of img redCircle into tTargetIcon
   set the height of btn myBtn to the height of img tTargetIcon
   set the width of btn myBtn to the width of img tTargetIcon
   put the margins of btn myBtn into s
   set the icon of btn myBtn to the ID of img tTargetIcon
   set the showBorder of btn myBtn to false
   set the opaque of btn myBtn to false
   set the textColor of btn myBtn to 220,255,220
   set the textSize of btn myBtn to 14
   set the textStyle of btn myBtn to bold

   # my massaging of Jacque's and Klaus's version
   --put (the height of btn myBtn - the textheight of btn myBtn -  
the effective textsize of btn myBtn) div 2 into tMargin

   --   put the height of btn myBtn div 2 into tTopMarg
   --   put tTopMarg - (the textheight of btn myBtn div 2)- 1 into  
tBottomMarg

   --   set the margins of btn myBtn to 0,tTopMarg,0,tBottomMarg

   # Wilhelm's version
   put the icon of btn myBtn into tID
   put the height of img ID tID into timgheight
   set the height of btn myBtn to (timgheight  + the textHeight of  
btn myBtn)

   put the height of btn myBtn into tBtHeight
   # the line above to simplify the following computations
   put (2* (tBtHeight-(the textHeight of btn myBtn + the effective  
textSize of btn myBtn))) / tBtHeight into tDivFactor
   put (the height of btn myBtn - the textHeight of btn myBtn -  
the effective textSize of btn myBtn) / tdivfactor into tMargin

   set the margins of btn myBtn to 0,tMargin,0,tMargin

end mouseUp

 HTH

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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


[semi-OT]simulating onSubmit in post

2010-02-23 Thread Devin Asay

Hi folks,

I'm trying to teach myself how to GET and POST submissions to URLs  
that provide simple web services, like word lookups and the like. I  
understand the basic concept pretty well and can successfully  
harvest data from various web forms. But I notice that often POST  
method forms use JavaScript calls to validate data in the forms before  
submitting it to the server. It might look like this:
form method=POST action=someurl.htm?loadpage name=formname  
onSubmit=return Validate(this);
In this case the Validate function is defined in the header and  
basically returns true if the submit came from the form formname AND  
all of the fields are filled in. It returns false if either of these  
conditions is not met.


My question: Is it possible to construct a post command and/or header  
combination that simulates this onSubmit event returning true? This is  
basically an academic exercise to help me understand how JS and forms  
work, and how Rev's GET and POST functionality works; I'm not planning  
to distribute stacks that do this in any way.


Regards,

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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]Re: Best Release Practices and the word fortnight

2010-02-19 Thread Devin Asay


On Feb 18, 2010, at 6:08 PM, Kay C Lan wrote:


On Fri, Feb 19, 2010 at 6:54 AM, Luis l...@anachreon.co.uk wrote:


I was reading the list of ingredients on an English bottle of  
ketchup we had

bought in Spain


A free weeks subscription to the Rev Use List for anyone who knows the
origin of the word ketchup without looking it up in the dictionary.


Well, the urban legend I've always heard is that Heinz wanted to  
differentiate themselves from the competition, so invented an  
alternate spelling of 'catsup'.


I also remember a tomato-y sauce in Indonesian restaurants in Holland  
called 'ketjap' (I may be misremembering the spelling.)


Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

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

2010-02-12 Thread Devin Asay


On Feb 12, 2010, at 8:21 AM, Jeff Massung wrote:

snip

If anyone can suggest how I can end up getting the above example to  
work,

I'm all ears... and feet. ;-)



Jeff,
I don't know if you have gotten it working yet, or at what level you  
are with unicode, but a couple of years ago I wrote an article to try  
to unravel some of the confusion surrounding using unicode in Rev. You  
may find it useful. See it at:


http://revolution.byu.edu/unicode/unicodeInRev.php

Regards,

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Why are locking size and position treated as one?

2010-02-05 Thread Devin Asay


On Feb 5, 2010, at 8:35 AM, Mark Swindell wrote:

I asked this a couple of days ago and got no response so I thought  
I'd try again.


Why are locking size and position of an image inextricably linked?   
They seem to me to be two separate entities.  I know how to get  
around the situation via script, but I don't know why there should  
be the inconvenience of having to get around anything.  Is there a  
good reason for this or is it just a legacy reality that could be  
changed?  Why not be able to drag an image around whose size is  
constrained?


Mark,

There is a long-standing enhancement request on this:

http://quality.runrev.com/qacenter/show_bug.cgi?id=2242

Regards,

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Mac OSX Leopard and server connections

2010-02-05 Thread Devin Asay


On Feb 5, 2010, at 2:19 PM, Dan Soneson wrote:


Hi everyone,

I have a rather odd problem using rev applications on Mac OSX  
Leopard, connecting to a server on my network. I connect to a server  
with an Applescript command: do theScript as Applescript. I can do  
this just fine. But if I unmount the server  by dragging it's icon  
to the trash, then remount from within Rev eventually Rev reads the  
name of the server differently. Let's say the name of the server is  
George. I can connect to George several times, but eventually  
Rev or Leopard appends a digit to the name of the mounted volume.


Originally, the path to file Textfile.txt on the server named  
George will be /Volumes/George/Textfile.txt However, after a few  
connections (don't know how many or exactly when this happens), the  
path to the file becomes /Volumes/George-1/Textfile.txt. Oddly  
enough, the icon on the desktop for the volume is still George.  
However, any reference to the file Textfile.txt from within Rev  
now will fail, since Rev reads the connection as /Volumes/George-1/ 
Textfile.txt but is still looking for /Volumes/George/ 
Textfile.txt!  This gets somewhat frustrating, since I never know  
when it will happen, and once it does, I can no longer transfer  
files back and forth between the server and the computer.


Has anyone seen this behavior? Do you have a workaround or a  
suggestion to get around this problem? I never had the problem  
working with pre-Leopard operating systems on the Mac, but it is now  
cropping up since all our computers in a lab are now running Leopard.


Another issue may be that the physical server (now running OSX Snow  
Leopard) has several share points, each of which may be mounted as  
individual volumes, one of which is the aforementioned George.  
Mounting and unmounting several of these share points may bring  
about the re-numbering issue. Rebooting the individual computer  
doesn't seem to help either.


Thanks for any suggestions.



Dan,

Maybe not a complete answer, but a clue: When OS X mounts volumes with  
the same name the way it keeps them separate in the Volumes list is by  
appending a number to the duplicate name. I have sometimes seen cases  
where the OS somehow doesn't get the message that a volume was  
ejected, and if it is remounted the volume name appears with a number  
appended.


Open the terminal and type 'ls /Volumes' to see a list of all mounted  
volumes.


Maybe what you need to do is check for the existence of the volume  
before you try to mount it?


Regards,

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Simple post examples

2010-02-02 Thread Devin Asay


On Feb 1, 2010, Judy Perry and Björnke von Gierke squabbled:


Nah, those'd be what you were busy juggling while I was solving your
problem for you!

On Tue, 2 Feb 2010, Björnke von Gierke wrote:


That's... evil and even cheese, tzz tzz

i'd say you finally lost your bog donkey marbles!


On 2 Feb 2010, at 03:50, Judy Perry wrote:


Nya-nah-nah-nah-nah-nah!

I beat you!

Ha!  take that!!  And, while you're at it, take it with some  
CHEESE! Gruyere!  Swiss!  Ementhaler!  Brie!


Knock it off you two! Don't make me come over there!

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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


  1   2   3   4   5   6   7   8   9   10   >