Re: image data

2007-04-09 Thread J. Landman Gay

Jeanne A. E. DeVoto wrote:

At 10:19 PM -0700 4/8/2007, Mark Wieder wrote:

 the text property of an image is the actual image data. So:



 set the text of image "testImage" to tJPGData


This is one of those cases where I feel the language loses its
intuitiveness... I know you have to do this, but it makes absolutely
no sense to me.



It's historical. 


I glanced at this and read "it's hysterical". So it is. :)

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
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


Re: image data

2007-04-09 Thread Jeanne A. E. DeVoto

At 10:19 PM -0700 4/8/2007, Mark Wieder wrote:

 the text property of an image is the actual image data. So:



 set the text of image "testImage" to tJPGData


This is one of those cases where I feel the language loses its
intuitiveness... I know you have to do this, but it makes absolutely
no sense to me.



It's historical. In HyperCard 1.0, only fields had settable contents, 
so the "text" property made perfect sense. When HyperCard 2.0 
introduced buttons with contents, it still used "the text", and of 
course with images we go completely off the rails.


For what it's worth, "put XXX into " does the same thing as 
"set the text of  to XXX", and is considerably more 
intuitive. But I wouldn't object at all to adding a synonymous 
"content" property or something similar.

--
jeanne a. e. devoto ~ [EMAIL PROTECTED]
http://www.jaedworks.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


Re: A string doesn't equal itself

2007-04-09 Thread Mark Wieder
Ken-

Sunday, April 8, 2007, 11:00:24 PM, you wrote:

> Just my 2 cents,

I see your two and raise you a nickle. You're absolutely right about
that. I went back and read it again. This looks quite buggy to me. IMO
the quotes should prevent dereferencing and evaluation as a number.
Yuck!

Of possible interest is that the breakpoint is around 1.796931348E308:

put "1.796931348E308" = "1.796931348E308"
  returns true
put "1.796931349E308" = "1.796931349E308"
  returns false

-- 
-Mark Wieder
 [EMAIL PROTECTED]

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

2007-04-09 Thread Rishi Viner
On Saturday 07 April 2007 09:14, Richard Gaskin wrote:
> I'm aiming to write my own.  So what I'm looking for is info on what
> each of the window managers (KDE, Gnome -- other popular ones?) requires
> for an app to:
>
> - Set up document file type associations
> - Assign icons for the app and the documents
> - Add shortcuts to the Start menu

KDE filesystem hierarchy:
http://techbase.kde.org/SysAdmin/KDE_Filesystem_Hierarchy

KDE development tutorials:
http://techbase.kde.org/Development/Tutorials

Freedesktop.org Specifications:
http://freedesktop.org/wiki/Specifications
(icons, menus applinks etc)

The KDE Kmenu follows this specification:
http://standards.freedesktop.org/menu-spec/menu-spec-1.0.html

A bunch of links on standards and documentation here:
http://vlug.org/linux/links/Documentation/Standards/index.html

-- 
Rishi 
--
___
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: Linux installaton

2007-04-09 Thread Rishi Viner
On Saturday 07 April 2007 02:27, Richard Gaskin wrote:

>
> My understanding is that the various window managers for Linux each have
> their own mechanisms for these, and that they aren't the same.  Is that
> correct?

Yep, afraid so...
BUT there is the Linux Standard Base:
http://www.linux-foundation.org/en/LSB
however this is still filtering through to actual implementation...


>
> Is there a single site you could recommend to get familiar with how to
> write installers for Linux that provide a smooth user experience?

RPM is a very widely used software package delivery system.
http://www.rpm.org/

-- 
Rishi 
--
___
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 data

2007-04-09 Thread Dave Cragg


On 9 Apr 2007, at 18:16, Tereza Snyder wrote:



Wasn't "the contents" the same as "the text" at one time? I was  
sure it was so, but I just tested it and "the contents" of an image  
returns empty, whereas "the text" does not. But I'm sure that once  
upon a time—maybe in Metacard days—it was a synonym. Am I nuts?  
Does anyone else remember this?


Perhaps you're thinking of "put mydata into image 1". This is what  
I've always used. I can't bring myself to use "text". :-)


Cheers
Dave


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


Problem with Imbedded file

2007-04-09 Thread Charles Szasz
I saved a RTF file as a custom property of my app stack with the  
following code:


  answer file "Store which file?" --> I selected the file  
"template.rtf"

  set the customPropertySet of this stack to empty
  set the uRtFile of this stack to url ("file:" & ".rtf")
  set the uShortFilename of this stack to last item of it
  save this stack

This script works. The following script also works. It opens the RTF  
file  to add field information from my card to the fields in the .rtf  
file.


  put the effective filename of this stack into tPath
  set the itemdelimiter to "/"
  put "template.rtf" into last item of tPath
  put URL ("file:"& tPath) into tRTFdata

  -> Code to fill fields.

  if field "vmiFld" of card "index" > ""
  then
replace "(1)" with the rtftext of field "vmiFld" of card "index"  
in tRTFdata   

  else
replace "(1)" with "" in tRTFdata
  end if

  etc.

Then export the RFT file:

  ask file "Save file as:"
  put it into tNewFilePath
  put tRTFdata into URL ("file:" & tNewFilePath & ".rtf")

This export code works in the IDE of Rev 2.7.4 . However, it does NOT  
work in the standalone! I get the message that I cannot open the RTF  
file using TextEdit after I export the file.


I have been working on this for four days with the same results. I  
would appreciate ANY suggestions!



Charles Szasz
[EMAIL PROTECTED]



___
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


HC converted stacks

2007-04-09 Thread Francis Nugent Dixon

Hi from Paris,


Bonjour Francis,
You might want to read the tutorial of HyperActive that is devoted to
translating stack from HyperCard to Revolution.
I used it and saved time thank to this tutorial.


Merci André

-Francis

"Nothing should ever be done for the first time

- But I've spent my life just doing that !"


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


Enteprise Upgrades - Free Vista Upgrade and/or Parallels Offer Running Out

2007-04-09 Thread Lynn Fredricks
http://www.runrev.com/offers/vista/

Hi all,

Ive been contacted by a few folks over the weekend about the special offer
and if its still live - it is! But its going away very likely sometime not
all that long after our European side team members get back from "Easter
Monday".

In a nutshell this is:

With any Enterprise purchase including new licenses, upgrades from Media or
Studio, or update packs, use the code MFVISTAFREE and get Vista upgrade free

Or 

With any Studio purchase over $250, including new purchases, renewal packs
ond upgrades from Media, use the code MFPARALLELSFREE - get Parallels for
free

The Vista upgrade is shipped to you via Amazon, and the Parallels is a
download/serial you get via Parallels.

Folks in the USA: If your Enterprise license especially is going to expire
soon, this is a great deal - the early update for Enterprise is $499, but
the "late" update to Enterprise is $749. An update just stacks on top of
whatever time you have left, so you arent losing anything by buying now -
besides, don't you have a fat tax rebate coming? :-)

Best regards,

Lynn Fredricks
Worldwide Business Operations
Runtime Revolution Ltd
http://www.runrev.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


Re: image data

2007-04-09 Thread Tereza Snyder


On Apr 9, 2007, at 12:19 AM, Mark Wieder wrote:


Trevor wrote:


the text property of an image is the actual image data. So:



set the text of image "testImage" to tJPGData




Then Mark Wieder wrote:


This is one of those cases where I feel the language loses its
intuitiveness... I know you have to do this, but it makes absolutely
no sense to me.



Wasn't "the contents" the same as "the text" at one time? I was sure  
it was so, but I just tested it and "the contents" of an image  
returns empty, whereas "the text" does not. But I'm sure that once  
upon a time—maybe in Metacard days—it was a synonym. Am I nuts? Does  
anyone else remember this?


Even if it wasn't ever the case, it ought to be.

I'm with Mark. Referring to "the text" of an image makes absolutely  
no sense to me.


t


--
Tereza Snyder

   Califex Software, Inc.
   www.califexsoftware.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


Re: A string doesn't equal itself

2007-04-09 Thread J. Landman Gay

Ken Ray wrote:

On Sun, 8 Apr 2007 22:16:32 -0700, Mark Wieder wrote:


string that represented a serial number she allowed the engine to
process the equality operator numerically. And gave it values beyond
those it could be expected to handle with a default margin of error.


Actually, Mark, this was her post:


 put "09114E715806" = "09114E715806"


So she *did* quote it. I'd agree with you if it weren't quoted, but as 
it was, I would expect this to be interpreted as a string and not a 
number.


I'm torn between the two opinions. In a way, I agree with Mark. The 
flexibility of xtalk allows us to be very lax about variable typing -- 
we don't really have to do it at all. I believe the engine evaluates 
even quoted literals to try to type them. For example, this works:


 set the brush to "4"

If the engine were not evaluating the string, this example would fail. 
That means that even quoted literals are not always literals if they are 
numbers. I think it would be difficult to fix this problem without 
severely restricting the flexibility of the engine in general. We would 
be forced into pseudo-typing all variables by only using quotation marks 
when we really do mean exact literals. That wouldn't necessarily be a 
terrible thing, but it would break backward compatibility with 
traditional xtalk. The consequences of the engine change could affect 
lots more than the single, unique problem we're trying to fix. Here's 
another thing that works right now:


  put "4/9/2007" is a date

This isn't just a string. It is a string with numbers in it, and Rev has 
to evaluate them as such. The character "4" is not the number "4", which 
allows Rev to determine that "4/ew/2007" is not a date (an improvement 
over HC, which did think "ew" was a date.) If we remove the ability to 
parse quoted dates as numbers, then how do you solve the issue where 
1/1/2007 becomes an (incorrect) division command?


On the other side, as Richard says, a string should always equal itself. 
And in fact, it does, provided you force the engine to evaluate it as a 
string. I accomplished this by specifically adding quotation marks 
around the variables that contain the so-called "number". Jim points out 
that adding a null character does the same thing.


I think the engine performs flawlessly except in this one, narrow 
circumstance where there is a single "E" inside a group of numbers. I 
would be okay with RR just adding documentation clarifiying the possible 
pitfalls of using numerical strings. On the other hand, this behavior 
could throw people who weren't expecting it (and it threw me until I 
understood what was happening.) On the third hand, I've worked with 
numerical strings in Rev/MC for almost 10 years now and this issue has 
only occured once. It's a minor issue, though significant to the 
developer when it happens.


I guess I'll report it, and let the team figure out the best way to 
handle it.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
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


Vista Question

2007-04-09 Thread Thomas Cole
I haven't been reading all the posts lately, so excuse me if you have
talked this to death and I ask the most basic of questions. Vista is
coming out. Will the software I created on my Mac using the old studio
version of Revolution 2.7.1 have any problems with Vista? I don't have
video or anything -- just a couple of pictures and a lot of sorting and
buttons and stuff to manipulate user input in a grammar game.

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


Problem saving a standalone

2007-04-09 Thread Joe Lewis Wilkins

Hi all,
In my search to find out why my stack is aborting the Save a  
standalone process, it appears that the last thing that is being done  
is copying externals. Since they haven't changed at all since I  
previously compiled the stack, it must be the very next thing that is  
the hang up. Anyone have an ideas as to what that might be. I don't  
have anything else ready to comple so that I can watch the process,  
but maybe one of you do?


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


Re: HC converted stacks

2007-04-09 Thread André.Bisseret

Bonjour Francis,
You might want to read the tutorial of HyperActive that is devoted to  
translating stack from HyperCard to Revolution.

I used it and saved time thank to this tutorial.
The address :
http://www.hyperactivesw.com/mctutorial/rrtutorialtoc.html

Best regards from Grenoble
André

Le 9 avr. 07 à 12:58, Francis Nugent Dixon a écrit :


Hi from Paris,

I will be without Classic on my new iMac G5, so I took the much  
delayed plunge, and in one day, converted my many HC stacks to  
Revolution (2.6.1 Build 152). Things seemed to work quite well,  
although I will have to modify many of my scripts, as I leaned  
heavily on external XCMDs and XFCNs (many thanks to Mr. Rinaldi et  
alia). I will end up rebuilding them all entirely, simply because  
Rev stacks can be so much more "jazzy" to look at. But, until then,  
I want to clean up the scripts a little, so that the stacks execute  
to some degree of efficiency.


However, a few problems are bugging me and I don't know how or why  
they occur. When I open a HC converted stack,  Examples :


1 - When I select a field or button with the pointer tool, the  
"up", "down", "left" and "right" arrows on the keybord don't work  
any more. I can't move my fields/buttons step by step.


2 - I get strange errors flagged, such as "Repeat: error in  
statement" for a script command" "repeat forever", and "Handler:  
error in statement" for a script command "go to card 1". I can find  
NO errors in my scripts.


Can anybody shed any light on either of these problems ? Are there  
any important "Do's" and "Don'ts" for those converting stacks from  
HC ?

___
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


HC converted stacks

2007-04-09 Thread Francis Nugent Dixon

Hi from Paris,

I will be without Classic on my new iMac G5, so I took the much delayed 
plunge, and in one day, converted my many HC stacks to Revolution 
(2.6.1 Build 152). Things seemed to work quite well, although I will 
have to modify many of my scripts, as I leaned heavily on external 
XCMDs and XFCNs (many thanks to Mr. Rinaldi et alia). I will end up 
rebuilding them all entirely, simply because Rev stacks can be so much 
more "jazzy" to look at. But, until then, I want to clean up the 
scripts a little, so that the stacks execute to some degree of 
efficiency.


However, a few problems are bugging me and I don't know how or why they 
occur. When I open a HC converted stack,  Examples :


1 - When I select a field or button with the pointer tool, the "up", 
"down", "left" and "right" arrows on the keybord don't work any more. I 
can't move my fields/buttons step by step.


2 - I get strange errors flagged, such as "Repeat: error in statement" 
for a script command" "repeat forever", and "Handler: error in 
statement" for a script command "go to card 1". I can find NO errors in 
my scripts.


Can anybody shed any light on either of these problems ? Are there any 
important "Do's" and "Don'ts" for those converting stacks from HC ?

___
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: XP and Vista question

2007-04-09 Thread Martin Blackman

Not sure if this link has already been posted but here is a
fascinating analysis of the costs & repercussions of Vista's DRM

http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.html#author

There are many nice quotes in the article, here is just one-
"Because Windows dominates the market and device vendors are unlikely
to design and manufacture two different versions of their products,
non-Windows users will be paying for Windows Vista content-protection
measures in products even if they never run Windows on them."
___
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: A string doesn't equal itself

2007-04-09 Thread Mark Smith

And just for completeness, this also return false:

put "09114E715806" is "09114E715806" (I wondered if 'is' instead of  
'=' might produce a different result).



Best,

Mark


On 9 Apr 2007, at 07:00, Ken Ray wrote:


On Sun, 8 Apr 2007 22:16:32 -0700, Mark Wieder wrote:


string that represented a serial number she allowed the engine to
process the equality operator numerically. And gave it values beyond
those it could be expected to handle with a default margin of error.


Actually, Mark, this was her post:


 put "09114E715806" = "09114E715806"


So she *did* quote it. I'd agree with you if it weren't quoted, but as
it was, I would expect this to be interpreted as a string and not a
number.

Just my 2 cents,

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


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


Re: Problems with passworded stacks?

2007-04-09 Thread Bill Marriott
Tereza,

>>>
Bill, you mean if I unlock the stacks at runtime, the stacks will run
normally? Can I do that just once during execution and they'll be
unlocked in memory for the duration? If so, maybe I can set the
passkey(s) at startup EXCEPT in the presence of the IDE and thereby
deny script-reading. Does that sound as if it would work?
<<<

Yes, exactly. Passwords prevent certain modifications to a stack so you 
either have to come up with a different method of operation, or unlock them 
during runtime the way you describe. Some different approaches would be 
adjusting objects that already exist, or segregating stuff that needs to be 
modified into a sub-stack that is not protected (passwords apply to a 
particular stack, not the whole file). 



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