Ask as Sheet - Problem

2003-09-25 Thread Gregory Lypny
Hello Everyone,

	I'm getting strange behaviour with the Ask command combined with the 
as sheet option in OS X.

	My stack Y has a button that opens stack X as modal.  Stack X has a 
button with an Ask-as-sheet handler.  The trouble is, the sheet is not 
attached to the stack, but appears by itself partly off the screen!  
However, if I open stack X without the modal option, Ask-as-sheet works 
fine.  It was working fine for weeks, now the modal option seems to be 
the problem.

	Any thoughts?  A fix?

		Greg

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Finishing Touches for a Standalone

2003-09-25 Thread Gregory Lypny
Hello Everyone,

	Two quick questions about standalones, neither of which I could find 
in the archives.

	(1)  How do I change the name in the MetaCard menu from MetaCard to 
the name of my application?

	(2) How do I change the application icon.  I created a PDF of my icon 
and simply pasted it into the Get Info window in OS X.  Looks good, but 
I understand that there's more to it than that.

	Regards,

		Greg

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Invoking default browser

2003-09-12 Thread Gregory Lypny
Hello everyone,

	How can I invoke the default browser in OS X and go to a web site when 
I user clicks on an URL in a field in MC?

		Regards,

			Greg

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Writing files

2003-09-03 Thread Gregory Lypny
Hello everyone,

	I return to a question I posted some time ago.  I received excellent 
responses then, and I'm hoping to further my understanding of writing 
files.

	Suppose I have a 450 MB text file named X, and I want to tack 500 
lines of data, Y, onto the end of it.  Which of the following is the 
best way, if any, and why?  (Sounds like an exam question.  Sorry, it's 
an occupational thing.)

1.
put Y after url (file:  X)
2.
open file X for write
write Y to file X at eof
close file X
3.  (I don't have any experience with this one.)
open file X for append
write Y to file X
close file X
	Regards,

		Greg

Gregory Lypny
Associate Professor
John Molson School of Business
Concordia University
_
Absence of evidence is not evidence of absence.
- Anonymous
	http://pareto.concordia.ca

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


htmlText property

2003-07-31 Thread Gregory Lypny
Hello Everyone,

	Can setting the htmlText property in an MC stack field affect the way 
text is displayed in other applications running under OS X?

		Greg

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Limits on array dimensions

2003-07-30 Thread Gregory Lypny
Thanks.  I'm not a programmer, so please pardon my incorrect 
terminology.  I find arrays to be invaluable, especially when creating 
utilities that index large (300 MB and up) flat-file databases (what 
I'm doing).  However, once the number of array elements exceeds about 
150,000 (for example, to keep track of record ID's while indexing), 
processing gets progressively slower and eventually stalls even if the 
contents of the elements are small.  This does not appear to be a 
memory constraint.  My fix is to dump critical array variables to a 
file from time to time, delete the variable to free space, and recreate 
the array with new observations.  The difference in speed is remarkable.

	Greg

Gregory Lypny
Associate Professor
Concordia University
___
Out of the blue,
  and into the black.
  You paid for this,
  but they gave you that.
		Neil Young

	http://pareto.concordia.ca



On Wednesday, July 30, 2003, at 12:02  PM, 
[EMAIL PROTECTED] wrote:

Message: 5
Date: Wed, 30 Jul 2003 08:22:36 +0800
Subject: Re: Limits on array dimensions
From: LiangTyan Fui [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
On 7/30/03 1:11 AM, Gregory Lypny [EMAIL PROTECTED] wrote:

Wanna give me a hint as to which of the dozens of properties I should
be looking at?
No information on array, but it should be at least comparable to custom
property. So that gives 4 GB limit on what you can store in array, and
nothing else is using the same RAM, including other variables and apps.
Sorry, still no answer to your question. I assume 4 GB limit on the 
array
storage includes the overhead of array index (or a separated RAM space,
still limit by 4 GB).
Given all the limits MetaCard imposed on other objects, it is safe to 
assume
that the number of element (index) of an array is limited by the 
machine
memory, or up to 4 GB, if you have stored nothing in the array.

Don't take my words for it though. I'll be happy if someone else can 
prove
me wrong.


___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Limits on array dimensions

2003-07-29 Thread Gregory Lypny
Hello everyone,

	Is there a limit on the number of elements that an indexed array can 
hold?

		Greg

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Limits on array dimensions

2003-07-29 Thread Gregory Lypny
Wanna give me a hint as to which of the dozens of properties I should 
be looking at?

Gregory Lypny
Associate professor
Concordia University
___
Better for us if you don't understand.
The Tragically Hip
	http://pareto.concordia.ca



On Tuesday, July 29, 2003, at 12:02  PM, 
[EMAIL PROTECTED] wrote:

Message: 6
Date: Tue, 29 Jul 2003 22:40:39 +0800
Subject: Re: Limits on array dimensions
From: LiangTyan Fui [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
On 7/29/03 9:07 PM, Gregory Lypny [EMAIL PROTECTED] wrote:

Hello everyone,

Is there a limit on the number of elements that an indexed array can
hold?
go card 900 of stack MetaTalk Reference

--

Greg


	G

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


imageSource syntax

2003-07-29 Thread Gregory Lypny
Hello everyone,

	What is the correct syntax of the image source property?  Suppose I 
want an image, x.jpg to appear in a field wherever the letter z 
appears.

	set the imageSource of ??? to ??? in fld ???

	Regards,

		Greg

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Dumb TAB question

2003-07-18 Thread Gregory Lypny
Hello everyone,

	Setting a field's Auto Tab to true causes the cursor to move to the 
next field when the Return or Enter key is pressed.  I want the same to 
happen when the Tab key is pressed.  How can I do that?

	Greg

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Flagging Letters and Numbers

2003-07-15 Thread Gregory Lypny
Hello everyone,

	What's the best way to flag a character as a letter or number 
(a,b,c,...,z,0,1,2,3,...) but nothing else?

		Regards,

			Greg

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


File Permissions

2003-07-10 Thread Gregory Lypny
Hello everyone,

	Is there any way to set a file's permissions (e.g., locked, read only) 
on Mac OS X from within MC?

		Regards,

			Greg

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Saving scripts

2003-07-08 Thread Gregory Lypny
Hello Everyone,

	Is there a way to save scripts while you're working without having to 
close, and then reopen, the current script window in Mac OS X?

	Greg

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Reading files and memory

2003-07-04 Thread Gregory Lypny
Hello Everyone,

	I recently learned from Xavier that using Open File for Read and the 
Read command places less demand on memory than Put url (file: etc...) 
because the latter reads the entire file into memory.

	Is the same true when writing data to a file?  I mean, is it better to 
use

Open File X for write
Write etc.
Close file X
	than

		Put stuff after url (file:  X) ?

		Regards,

			Greg

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Files function and Convert command

2003-07-03 Thread Gregory Lypny
Hello Everyone,

	I'm using the detailed form of the Files function to extract creation 
and modification dates of files, but when I use the Convert command to 
get the date and time, the result it gives me is earlier than what Mac 
OS X indicates.  For example, Mac OS X shows a creation date of Fri 3 
Jan 2003 at 12:38 a.m., but converting the creation date from the 
detailed files result in MC gives Thu 2 Jan 2003 at 7:38 p.m.

	Any thoughts on this?  (By the way, I get the same result regardless 
of whether I set useSystemDate to true.)

		Regards,

			Greg

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Extracting a subset of lines from a large file

2003-07-02 Thread Gregory Lypny
Thanks Xavier,

	That's what I suspected after doing some primitive experiments.  I'll 
try your buffer idea.

		Gregory

I wrote:

Message: 1
Date: Tue, 01 Jul 2003 16:43:44 -0400
From: Gregory Lypny [EMAIL PROTECTED]
Subject: Extracting a subset of lines from a large file
To: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Hello everyone,

I want to take a chunk of 1000 lines at a time out of a text file and
display it in a field.  Some of the text files are big, 200 MB and up.
	Is one of the following approaches preferred?

[1]	put line 1 to 1000 of url (file:  filePath) into field X

[2] read from file filePath from line 1 for 1000 lines
put it into field X
	Regards,

		Gregory
On Wednesday, July 2, 2003, at 12:03  PM, Xavier replied:

From: MisterX [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Extracting a subset of lines from a large file
Date: Wed, 2 Jul 2003 06:57:42 +0200
Reply-To: [EMAIL PROTECTED]
Gregory,

the url will force the file to be read completely.
for those cases (but not for over 30MB's) it's better to store the 
data into
a variable and
treat it in a loop after.

In your case, read the file using the read file command. Try to 
optimize a
buffer for your
reading (32-64K's may be best... but experiment!)

Stocking the data temporarily in a field will definitely slow down 
things...
try to keep that
for last... Memory is the fastest you got!

cheers
Xavier
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Extracting a subset of lines from a large file

2003-07-01 Thread Gregory Lypny
Hello everyone,

	I want to take a chunk of 1000 lines at a time out of a text file and 
display it in a field.  Some of the text files are big, 200 MB and up.

	Is one of the following approaches preferred?

[1]	put line 1 to 1000 of url (file:  filePath) into field X

[2] read from file filePath from line 1 for 1000 lines
put it into field X
	Regards,

		Gregory

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: POST Command (It worked!!!)

2003-02-03 Thread Gregory Lypny
Thanks Dave Cragg and Tariel Gogoberidze,

Setting the socketTimeOutInterval to 3 allowed me to download all 
of the records from my FM database in one shot.  Why it is required for 
this particular database and not other, bigger ones I'm running, I 
don't know.  But it works, by golly!

	Thanks again,

		Greg



On Saturday, February 1, 2003, at 01:07  AM, 
[EMAIL PROTECTED] wrote:

Message: 2
Date: Fri, 31 Jan 2003 17:11:51 +
To: [EMAIL PROTECTED]
From: Dave Cragg [EMAIL PROTECTED]
Subject: Re: POST Command
Reply-To: [EMAIL PROTECTED]

At 11:42 am -0500 31/1/03, Gregory Lypny wrote:

Hi Dave,

	Thanks for responding.  Yes, I have checked the result
function after the post, and it is always empty.  If I omit the CDML
tag -Max=All from my post, I immediately get the default 25 records
returned.  And curiously, when I transfer the database to my local
Mac and post to localhost, as I mentioned, all records are, in fact,
returned.


To check if it's just a timeout, try increasing the
socketTimeoutInterval. The default is 1 (milliseconds). Try
setting it to 3.


___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



POST Command

2003-01-31 Thread Gregory Lypny
Hello Everyone,

	I'm using the POST command to download records from an online 
FileMaker database.  The problem I'm having is that no data is returned 
in the variable *it* when I specify *all* (for finding all records) in 
my url expression.  This doesn't happen with all my FM databases, and 
I'm usually able to download all records, often in the hundreds, 
without a glitch.  For the problem databases, I can specify a specific 
number, say, ten, and it works; after that, 20 will work, then 30.  But 
won't return any data when I specify more than 40 (and there are, in 
fact, about 150 records).  I'm guessing that FileMaker delays returning 
any data if it has to do some indexing first, MC then pulls down 
nothing, and the handler runs through much more quickly then when there 
is data returned.

	Is there a command or setting I can use that will cause MC to wait 
longer for FileMaker to respond?  I've tried to use libUrlSetLogField 
to get more information but I'm not sure what I should be looking for.


	Regards,

		Greg





	Gregory Lypny
	Associate Professor
	John Molson School of Business
	Concordia University
	_
	A hard C is better than a soft A.
 	   - Bill Cosby

	http://pareto.concordia.ca

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


POST Command (another bit)

2003-01-31 Thread Gregory Lypny
Hi again everyone,

	I had just sent the message below concerning the POST command and 
FileMaker.  I forgot to mention that when I transfer the database to my 
local machine and post to localhost, there's no problem.  Again, as I 
discuss below, I wonder whether MC is not jumping the gun and returning 
no data before FileMaker has had a chance to feed it any.

	Greg


Hello Everyone,

	I'm using the POST command to download records from an online 
FileMaker database.  The problem I'm having is that no data is 
returned in the variable *it* when I specify *all* (for finding all 
records) in my url expression.  This doesn't happen with all my FM 
databases, and I'm usually able to download all records, often in the 
hundreds, without a glitch.  For the problem databases, I can specify 
a specific number, say, ten, and it works; after that, 20 will work, 
then 30.  But won't return any data when I specify more than 40 (and 
there are, in fact, about 150 records).  I'm guessing that FileMaker 
delays returning any data if it has to do some indexing first, MC then 
pulls down nothing, and the handler runs through much more quickly 
then when there is data returned.

	Is there a command or setting I can use that will cause MC to wait 
longer for FileMaker to respond?  I've tried to use libUrlSetLogField 
to get more information but I'm not sure what I should be looking for.


	Regards,

		Greg

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: POST Command

2003-01-31 Thread Gregory Lypny
Hi Dave,

	Thanks for responding.  Yes, I have checked the result function after 
the post, and it is always empty.  If I omit the CDML tag -Max=All from 
my post, I immediately get the default 25 records returned.  And 
curiously, when I transfer the database to my local Mac and post to 
localhost, as I mentioned, all records are, in fact, returned.

	Regards,

		Greg

	


On Friday, January 31, 2003, at 09:11  AM, 
[EMAIL PROTECTED] wrote:

Message: 12
Date: Fri, 31 Jan 2003 14:05:29 +
To: [EMAIL PROTECTED]
From: Dave Cragg [EMAIL PROTECTED]
Subject: Re: POST Command
Reply-To: [EMAIL PROTECTED]

At 8:28 am -0500 31/1/03, Gregory Lypny wrote:

Hello Everyone,

	I'm using the POST command to download records from an online
FileMaker database.  The problem I'm having is that no data is
returned in the variable *it* when I specify *all* (for finding all
records) in my url expression.  This doesn't happen with all my FM
databases, and I'm usually able to download all records, often in
the hundreds, without a glitch.  For the problem databases, I can
specify a specific number, say, ten, and it works; after that, 20
will work, then 30.  But won't return any data when I specify more
than 40 (and there are, in fact, about 150 records).  I'm guessing
that FileMaker delays returning any data if it has to do some
indexing first, MC then pulls down nothing, and the handler runs
through much more quickly then when there is data returned.

	Is there a command or setting I can use that will cause MC to
wait longer for FileMaker to respond?  I've tried to use
libUrlSetLogField to get more information but I'm not sure what I
should be looking for.


Did you check the result function after the post command? This should
give you a hint if the problem is on the server end.

e.g

post whatever to url whatever
if the result is not empty then answer the result

If the result is empty, then it looks like the problem is at the 
client end.

Before speculating on possible causes, can you confirm that the
result is in fact empty?

Cheers
Dave

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



What to expect when memory's running low

2002-12-24 Thread Gregory Lypny
Hello everyone,

I'm working on a stack that indexes big (15 to 200 MB) text files and 
breaks them into smaller files with similar information.  This is done 
by reading the source file into an array whose elements get written to 
their own output file.  The output files are tab-delimited text, 
between 500 KB and 3 MB, and typically have 100,000 lines (each line 
represents  information from a variable or field from one record of the 
source file, so you can think of the source file as being a database 
with 100,000 records).

My stack works fine (surprisingly so for me...) as long as I don't mess 
with more than 90,000 records,  I can hardcode a read of about 90,000 
lines into various array elements and then dump them to their own 
files.  However, when I let the stack run through the entire source 
file of about 104,000 records (letting it read until an eof is 
reached), it hangs (spinning coloured beach ball in Mac OS X) when 
writing the very last array element to its own file.  If I force quit 
MetaCard, and check the individual output files, it turns out that all 
of the data is, in fact, written successfully, so the main handler is 
doing its job, but there isn't enough juice to refresh the stack window 
(for instance, to display a status field that indicates that the 
process has been completed, the time, number of records, etc.) or give 
control back to MC (beach ball to pointer).  I've tried to minimize 
memory usage by putting empty into array elements or deleting them 
entirely once they are no longer needed.

I guess my question (sorry for the diatribe) is this:  Am I dealing 
with a memory problem?  And, if so, what's the best way around it?  I'm 
considering writing to files repeatedly rather than once at the end, or 
running the handler two or more times, effectively breaking up the 
reading of the source files into many parts.

	Greg

	Happy X-Mas



Gregory Lypny
Associate Professor
John Molson School of Business
Concordia University
_
Absence of evidence is not evidence of absence.
- Anonymous

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Free Up Memory

2002-12-22 Thread Gregory Lypny
Thanks, Hugh and Monte, for your replies on this one.

	Greg

On Sunday, December 22, 2002, at 10:00  PM, 
[EMAIL PROTECTED] wrote:

Does closing a big stack (of a multi-stack project) free up memory?

Yes it will... but only if you set the destroyStack and destroyWindow
properties to true (see the check-box in Edit/Stack properties).


___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Freeing Up Memory

2002-12-21 Thread Gregory Lypny
Hello everyone,

	Does closing a big stack (of a multi-stack project) free up memory?

	Greg



Gregory Lypny
Associate Professor
John Molson School of Business
Concordia University
_
I am just going outside and may be some time.
   - Captain Lawrence Oates, 17 March 1912, Scott Expedition

http://rubbersoul.concordia.ca

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Listing Files Within a Folder

2002-12-18 Thread Gregory Lypny
Hello everyone,

	What's the best way of getting a list of files that reside in a number 
of subfolders within a parent folder?  What I've done is establish the 
path to the parent folder.  I then use  the Directories command to get 
a list of subfolders, and by setting the directory property to each 
subfolder in a repeat loop, I obtain files lists using the Files.

	Greg





Gregory Lypny
Concordia University
___
Better for us if you don't understand.
	The Tragically Hip

http://rubbersoul.concordia.ca

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Answer File Command

2002-12-07 Thread Gregory Lypny
Hello Richard,

	Downloaded from a repository of scientific data, I believe they are 
Unix text files, but I don't know which application created them.  How 
would I find out?

	Greg

On Saturday, December 7, 2002, at 12:03  PM,  Richard Gaskin wrote:

Message: 2
Date: Fri, 06 Dec 2002 11:43:01 -0800
Subject: Re: Answer File Command
From: Richard Gaskin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]

Gregory Lypny wrote:


Answer File of type TEXT   - displays Appleworks but dims plain text
Answer File of type TEXT   - displays Appleworks but dims plain text


What is the file type of these plain text files?  And which 
application
created them?

--
 Richard Gaskin
 Fourth World Media Corporation
 Developer of WebMerge 2.1: Publish any database on any site

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Answer File Command

2002-12-06 Thread Gregory Lypny
Thanks Andu, Richard, Jacqueline, Monte, and Dar:

	I'll go back and retry some of these suggestions for the Answer File 
command.  I actually experimented with variations of what you've 
suggested, but the problem was usually that all files were eligible 
(not dimmed) for selection; that's a big problem because the utility 
stack I'm developing indexes big (15 to 220 MB) text files, and opening 
the wrong one would result in endless churning as MC looks for stuff 
that isn't there.  But as I say, I'll give your variations a shot, and 
send up a flag if it works.

	Thanks,

		Greg



	Gregory Lypny
	Associate Professor
	John Molson School of Business
	Concordia University
	_
	Absence of evidence is not evidence of absence.
	- Anonymous

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Answer File Command

2002-12-06 Thread Gregory Lypny
Hello again,

	In response to my question about filtering out text files with Answer 
File, there was some suggestion that Mac OS X is a bit quirky in 
displaying files.  Based on some of your suggestions, here's what I got 
with OS X (Jaguar) and two types of text files (Appleworks and plain 
text).  In the first four cases below, which differ from one another 
only in the use of the words type or filter and quotation marks, 
AppleWorks text files are displayed but plain text are dimmed (bad).  
The fifth case, based on Andu's suggestion resulted in all files in the 
folder being dimmed!  In other words, it does the opposite of what I 
understood it would do.

Answer File of type TEXT   - displays Appleworks but dims plain text
Answer File of type TEXT   - displays Appleworks but dims plain text
Answer File with filter TEXT   - displays Appleworks but dims plain text
Answer File with filter TEXT   - displays Appleworks but dims plain 
text
Answer File with filter *.txt   - dims everything!

	Greg

P.S.  What is the convention for putting quotations around a word or 
phrase in an email to ensure something reasonable is displayed?  Should 
I use the asterik?



___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Answer File Command

2002-12-05 Thread Gregory Lypny
My apologies for the last message; I forgot to include a subject.  Let 
me try again…

Hello everyone,

I'm writing a handler to open files and restrict the choices to text 
files.

 answer file Choose your data file… with filter TEXT

When I use the filter above in OS X, AppleWorks text files are 
recognized but plain text files are not (they're dimmed).  I'd like to 
be able to choose among all files with a .txt extension.  What am I 
doing wrong?

	Greg

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: pList File

2002-11-23 Thread Gregory Lypny
Hi Shari,

	I know there was a thread on this topic some time ago, but I didn't 
pick up on it.  Is the pList file the one that should be edited to 
change the MetaCard menu in our standalones to some other name?

	Greg

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Can't Build Standalones in OS X

2002-11-07 Thread Gregory Lypny
Thanks everyone for the flood of suggestions!  Just got back from an 
academic disaster and put your adive into practice pronto.

	Greg



On Thursday, November 7, 2002, at 12:06  PM, 
[EMAIL PROTECTED] wrote:

Send metacard mailing list submissions to
	[EMAIL PROTECTED]

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.runrev.com/mailman/listinfo/metacard
or, via email, send a message with subject or body 'help' to
	[EMAIL PROTECTED]

You can reach the person managing the list at
	[EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than Re: Contents of metacard digest...


This is the Metacard mailing list.

Today's Topics:

   1. Can't Build Standalones in OS X (Gregory Lypny)
   2. Re: Can't Build Standalones in OS X (J. Landman Gay)
   3. Re: Can't Build Standalones in OS X (Simon Lord)
   4. Re: Can't Build Standalones in OS X (Herve Proudhon)
   5. Re: Can't Build Standalones in OS X (Shari)
   6. Re: Can't Build Standalones in OS X ([EMAIL PROTECTED])
   7. Standalone icons (Shari)

--__--__--

Message: 1
Date: Wed, 06 Nov 2002 12:20:41 -0500
From: Gregory Lypny [EMAIL PROTECTED]
Subject: Can't Build Standalones in OS X
To: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]

Hi Everyone,

	Using MC 2.4.3 to build a standalone.  I moved resources and followed
the steps in the standalone builder, but whenever I double-click the
standalone, it opens, its window appears for a fraction of a second,
and then disappears.  What am I doing wrong?

	Greg



	Gregory Lypny
	Associate Professor
	John Molson School of Business
	Concordia University
	_
	I am just going outside and may be some time.
  	  - Captain Lawrence Oates, 17 March 1912, Scott Expedition


--__--__--

Message: 2
Date: Wed, 06 Nov 2002 11:33:00 -0600
From: J. Landman Gay [EMAIL PROTECTED]
Organization: HyperActive Software
To: [EMAIL PROTECTED]
Subject: Re: Can't Build Standalones in OS X
Reply-To: [EMAIL PROTECTED]

On 11/6/02 11:20 AM, Gregory Lypny wrote:

Hi Everyone,

Using MC 2.4.3 to build a standalone.  I moved resources and
followed the steps in the standalone builder, but whenever I
double-click the standalone, it opens, its window appears for a 
fraction
of a second, and then disappears.  What am I doing wrong?

What engine are you embedding? I had the same problem trying to build a
PPC app while running the OS X version. Actually, I can't open the PPC
engine under Classic at all, it does exactly what you describe.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com


--__--__--

Message: 3
Date: Wed, 06 Nov 2002 12:37:26 -0500
From: Simon Lord [EMAIL PROTECTED]
Subject: Re: Can't Build Standalones in OS X
To: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]

Verify your startup and open stack scripts.  Sometimes a runtime will
hang on something you have there.  For a quick test, comment out those
scripts that do something on startup or on open etc.  If your stack
does not immediately quit then it's likely something in the boot script
it does not like.

On Wednesday, November 6, 2002, at 12:20  PM, Gregory Lypny wrote:


Hi Everyone,

	Using MC 2.4.3 to build a standalone.  I moved resources and followed
the steps in the standalone builder, but whenever I double-click the
standalone, it opens, its window appears for a fraction of a second,
and then disappears.  What am I doing wrong?

	Greg



	Gregory Lypny
	Associate Professor
	John Molson School of Business
	Concordia University
	_
	I am just going outside and may be some time.
 	  - Captain Lawrence Oates, 17 March 1912, Scott Expedition

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Sincerely,
Simon


--__--__--

Message: 4
Date: Wed, 6 Nov 2002 19:54:52 +0100
Subject: Re: Can't Build Standalones in OS X
From: Herve Proudhon [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]



Hi Everyone,

	Using MC 2.4.3 to build a standalone.  I moved resources and followed
the steps in the standalone builder, but whenever I double-click the
standalone, it opens, its window appears for a fraction of a second,
and then disappears.  What am I doing wrong?

	Greg


When you ask the system to open a stack with a specific engine, a
usro resource is created. This resource is copied into the standalone
; so the system tries to open the standalone with an other one !
Simply delete this resource with resedit. This works with OsX and
Classic.

Best regards

Herve Proudhon


Diondine, a nutrition software.
http://www.diondine.com


--__--__--

Message: 5
Date: Wed, 6 Nov 2002 14:27:12 -0500
To: [EMAIL PROTECTED]
From: Shari [EMAIL PROTECTED]
Subject: Re: Can't Build Standalones in OS X
Reply-To: [EMAIL PROTECTED]


Hi Everyone,

	Using MC 2.4.3 to build a standalone.  I moved

Re: Weird URL thing

2002-10-31 Thread Gregory Lypny
Hi Dave,

	Thanks for responding.  The result is always empty and so is the  
container it.  All of the information about the local host is identical  
to the remote host, even the port number.

	I have a guess about the source of the problem which I'm going to look  
at.  The FileMaker portal that I tested on the local host had only four  
records in it, but the portal on the remote host had about 160.  It  
appears that accessing records in a portal and generating the  
corresponding web page through FM's Web Companion is considerable  
slower than accessing the records in the master file directly.  Doing  
so in a browser takes more than thirty seconds for the portal (closer  
to fifty seconds, actually) versus three or four seconds for the master  
file, and I'm wondering if MC is not somehow timing out before it gets  
any of the data.  I think I can test  this by bringing the big portal  
file over to the local host to see if I can access the records.  If the  
problem is repeated, then I'd keep trying with fewer and fewer records.  
 If timing out is, in fact,  the problem, perhaps there is a way to  
make MC wait longer.  Does that sound like a reasonable approach?

	Greg

	Gregory Lypny
	Associate Professor
	John Molson School of Business
	Concordia University
	_
	I am just going outside and may be some time.
 	  - Captain Lawrence Oates, 17 March 1912, Scott Expedition

	http://pareto.concordia.ca




On Thursday, October 31, 2002, at 12:03  PM, Dave Cragg wrote:

Message: 1
Date: Wed, 30 Oct 2002 22:35:17 +
To: [EMAIL PROTECTED]
From: Dave Cragg [EMAIL PROTECTED]
Subject: Re: Weird URL thing
Reply-To: [EMAIL PROTECTED]

At 12:01 pm -0500 30/10/02, Gregory Lypny wrote:


It works fine when I test it on localhost using the MC post command as

username:password@localhost/path/FMPro?-db=dbName.fp5- 
lay=layoutName-format=fileName.txt-findAll

and the container it returns all of the records I want.

But when I test it on the remote machine (simply replacing localhost
with the remote host address, and all files the same), the variable
it is returned empty --- no data!  I confirmed that it is not a
problem with FileMaker because I'm able to type the above command
string into a browser URL field and the remote host will generate a
web page with all the data.  All of my other types of MC posts to
FileMaker on the remote host work wonderfully and those include
accessing portal fields (thanks to the thoughtful suggestions of
members of this list).

Some quick thoughts ...

Did you check the result following the post call? Was any error  
returned?

What happens if you use get instead of post? (I'm assuming the
browser uses get and not post.)

Did you include http://; at the front of your url?

Do you have the correct port number (if it's not 80) for the remote  
host?

Cheers
Dave



___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Weird URL thing

2002-10-30 Thread Gregory Lypny
Hi Everyone,

	Having trouble with a post to FileMaker (again --- sigh).  I'm trying  
to extract the portal fields from a file that has only one record, but  
in that record is a portal that displays fields from a master file.   
(I'm using a portal to get at the records because I've disabled  
searches in the master file to prevent students from snooping where  
they shouldn't.)  The HTML format file looks like this:

[FMP-Portal: relationshipName][FMP-field:  
relationshipName::field1],[FMP-field: relationshipName::field2], etc...
[/FMP-Portal]

where the [FMP-Portal: relationshipName] tag tells FileMaker to display  
all records in the portal.

It works fine when I test it on localhost using the MC post command as

username:password@localhost/path/FMPro?-db=dbName.fp5-lay=layoutName- 
format=fileName.txt-findAll

and the container it returns all of the records I want.

But when I test it on the remote machine (simply replacing localhost  
with the remote host address, and all files the same), the variable  
it is returned empty --- no data!  I confirmed that it is not a  
problem with FileMaker because I'm able to type the above command  
string into a browser URL field and the remote host will generate a web  
page with all the data.  All of my other types of MC posts to FileMaker  
on the remote host work wonderfully and those include accessing portal  
fields (thanks to the thoughtful suggestions of members of this list).

Any thoughts on this glitch?  Incidentally, the remote host is a Mac  
running Jaguar and I'm using MC 2.4.3 build number 4.

	Greg

P.S.  If MC-FileMaker related stuff is not of interest to the list,   
don't be shy to say so, and I won't post these kinds of questions.



	Gregory Lypny
	Concordia University
	___
	Better for us if you don't understand.
		The Tragically Hip

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Put URL - getting files from a remote computer

2002-10-11 Thread Gregory Lypny
Hi Everyone,

	Is there a way to use Put URL to get a file from a remote Mac (OS X)  
that has FTP access turned on?  I've tried

	put url  
(file:username:password@address/hardDrive/users/myAccount/filePath/ 
fileName) into fld X

	but perhaps I have the syntax wrong.

		Greg

	Gregory Lypny
	Concordia University
	___
	Better for us if you don't understand.
		The Tragically Hip

	http://pareto.concordia.ca

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Standalone Trouble

2002-10-07 Thread Gregory Lypny

Hi Everyone,

I have an MC project created in 2.4.2 that consists of a 
startup/splash screen stack that accesses other stacks via Stack Files. 
  I turned the splash screen stack into a standalone, and everything 
works fine.  Now I want to rebuild that same splash screen stack into a 
standalone again in order to upgrade it to 2.4.3.  When I do, the 
splash screen stack opens, but buttons are missing, and none of the 
other stacks open.  I moved resources prior to building the standalone. 
  What am I doing wrong?  Was I to remove 2.4.2 resources first, then 
move 2.4.3 resources?

Much obliged for any advice.

Greg


Gregory Lypny
Concordia University
___
Better for us if you don't understand.
The Tragically Hip

http://pareto.concordia.ca

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Need help with an MC post to FileMaker question

2002-10-04 Thread Gregory Lypny

Hi Everyone,

I'm kind of desperate on this one.  In an MC post to a web-enabled FM 
database, is there any way to include my FM username and password that 
would otherwise by requested by a browser?  Any advice would be most 
appreciated.

Greg



Gregory Lypny
Associate Professor
John Molson School of Business
Concordia University
_
I am just going outside and may be some time.
  - Captain Lawrence Oates, 17 March 1912, Scott Expedition

http://pareto.concordia.ca

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



MC Book - Other Ideas

2002-10-04 Thread Gregory Lypny

Hi Everyone,

I've always found the HyperCard Script Language Guide helpful and easy 
to read, particularly the examples.  Would it make sense to build on 
the Guide with MC's commands, functions, and selected examples, perhaps 
submitted by users?

Greg

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Print stack as PDF in OS 10.2

2002-09-21 Thread Gregory Lypny

Thanks Mark,

And no need to apologize.  I guess I can turn some stacks into 
standalones for the purpose of creating PDF's.

Regards,

Greg

On Saturday, September 21, 2002, at 12:01  PM, 
[EMAIL PROTECTED] wrote:

 Greg,

 I see.  I thought you were using referring to an app you created.  I
 have not used the print feature from the development tools that come
 with MC.  Sorry, did not read carefully.

 All apps I create in MC work just fine in this regard.

 -Mark

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Print stack as PDF in OS 10.2

2002-09-20 Thread Gregory Lypny

Hi Everyone,

How can I get MC to print a stack as PDF in OS X?

Greg

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Print stack as PDF in OS 10.2

2002-09-20 Thread Gregory Lypny

Hi Mark,

That's true for most applications in OS X, but it doesn't appear to be 
true for MetaCard.  The File menu in MetaCard has a Print Card item and 
the Tools menu has a Print Field item, but neither invokes the OS X 
print dialog that gives me the Preview or Save as PDF... choice.

Greg



On Friday, September 20, 2002, at 12:06  PM, 
[EMAIL PROTECTED] wrote:

 Message: 9
 Date: Fri, 20 Sep 2002 09:21:16 -0700
 Subject: Re: Print stack as PDF in OS 10.2
 From: [EMAIL PROTECTED] [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]


 On Friday, September 20, 2002, at 08:58 AM, Gregory Lypny wrote:

 Hi Everyone,

  How can I get MC to print a stack as PDF in OS X?

  Greg

 This is controlled by the print driver in os x.  When a user from you
 app hits the print button, there is an option to save as .pdf in the
 driver window.

 Too bad the other OS have not made it this easy yet.


 Best regards,
 Mark Talluto

 http://www.canelasoftware.com


___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



MC Posts to a web-enabled FileMaker Database

2002-09-18 Thread Gregory Lypny

Hello Everyone,

I'm using MC to management some of my web-enabled FileMaker databases, 
mostly to download information.  I'd also like to be create new records 
in FileMaker by posting (using the Filemaker -new tag) but I'm not sure 
how to do this if the database requires a username and password.  If I 
were doing this in a browser, a dialog box would prompt me for that 
information.  Any suggestions?

Regards,

Greg



Gregory Lypny
Concordia University
___
Here lies
  PROTECTION
  It lied throughout its life
  And now
  Lies still
- Douglas Jerrold

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Unhilite all tabs in a tabbed button

2002-08-09 Thread Gregory Lypny

On reflection, I agreed totally.  Thanks for your insight.

Greg

On Friday, August 9, 2002, at 12:01  PM, metacard-
[EMAIL PROTECTED] wrote:

 Message: 2
 From: Ken Ray [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: Unhilite all tabs in a tabbed button
 Date: Thu, 8 Aug 2002 13:43:46 -0500
 Reply-To: [EMAIL PROTECTED]

 Greg,

 This is really counter to the UI of a tab button, which indicates that 
 at
 least one tab is selected. It would be like having three radio buttons, 
 none
 of which are hilited. If you need something like this, you should make 
 the
 tab control itself completely disabled and subject to a control (a 
 checkbox
 for example) that would alter the disabled state of the tab control. 
 That
 is, if everything in the tab control does not apply, it would be 
 disabled.
 If something in the tab control *could* apply, it is enabled with one 
 of the
 tabs selected.

 Ken Ray
 Sons of Thunder Software
 Email: [EMAIL PROTECTED]
 Web Site: http://www.sonsothunder.com/

 - Original Message -
 From: Gregory Lypny [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, August 08, 2002 11:17 AM
 Subject: Unhilite all tabs in a tabbed button


 Hi Everyone,

 When a tabbed button is created, the first tab is automatically
 hilited.  Is there any way to unhilite all tabs in such a button?

 Greg



___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



MC 2.4.3 Final Build Number

2002-08-01 Thread Gregory Lypny

Hi Everyone,

Where do I find the build number of an MC release?

Greg



Gregory Lypny
Associate Professor
John Molson School of Business
Concordia University
_
Take chances, make mistakes.
   - Ms Frizzle, The Magic School Bus

http://rubbersoul.concordia.ca

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



matrixMultiply returns a new array named what?

2002-07-29 Thread Gregory Lypny

Hi Everyone,

The MC Reference says that matrixMultiply returns a new array.  
What is the name of that array?

Regards,

Greg

Gregory Lypny
Concordia University
___
Better for us if you don't understand.
- The Tragically Hip

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Nested Arrays

2002-07-25 Thread Gregory Lypny
Hi Everyone,

I think this came up before but I haven't been able to find it in the archives: does MC do nested arrays of the type array[x[y]].  For example, can I use

put "Start" into array[state[1]]
put 'Stop" into array[state[2]]
put "Abort" into array[error[1]]
put "Continue" into array[error[2]] ?  If so, how would I extract the keys?

Greg




	Gregory Lypny
Concordia University
___
"Better for us if you don't understand."
The Tragically Hip

http://rubbersoul.concordia.ca

matrixMultiply

2002-07-23 Thread Gregory Lypny

Hi Everyone,

I'm  having trouble with matrixMultiply.  I've created two 1 x 20 
vectors (arrays) named Prob and V.  I want to compute the dot product 
(for example, the expected value of V in statistics), which is

prob[1] x V[1] + prob[2] x V[2] + ... + prob[20] x V[20]

but it's not clear whether MetaCard treats vectors as columns or 
rows by default.  All of the following result in error messages:

matrixMultiply(prob,V)  

matrixMultiply(transpose(prob),V)

matrixMultiply(prob,transpose(V))

Any help would be much appreciated.

Regards,

Greg




Gregory Lypny
Concordia University
___
Better for us if you don't understand.
The Tragically Hip

http://rubbersoul.concordia.ca

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Lining up numbers in columns

2002-07-15 Thread Gregory Lypny

Hi Everyone,

I'm having trouble formatting numbers in a field so that the ones, tens, 
one hundreds, etc. are properly right-aligned in a column.  I've 
formatted the field to be right-aligned with a tabstop of 200.  I then 
generated two columns of numbers, x= (90, 91, ..., 110) and y=(50,000, 
51,000, ..., 100,000).  I put x and y into the field using a repeat loop:

repeat with i=1 to 21
put line i of x  tab  line i of y  return after fld Number Table
end repeat

The y column (50,000 to 100,000) is correctly aligned but the x column 
isn't.  Any suggestions?

Regards,

Greg

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Check-As-You-Type

2002-07-11 Thread Gregory Lypny

Hi Everyone,

I'm using keyUp at the card level to invoke a handler that checks 
whether entries into a number of fields are  valid.  If they are, a Next 
button is enabled.  Everything works fine except that keyUp does not 
capture deletions using the Delete key.  Any suggestions?

Greg


Gregory Lypny
Concordia University
___
Better for us if you don't understand.
The Tragically Hip

http://rubbersoul.concordia.ca

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Naming Conventions

2002-07-08 Thread Gregory Lypny

Hi Everyone,

I have a  multi-stack project with a number of information stacks 
that are very similar in structure, for example, a title field, text 
body field, and card navigation buttons.  Is it a problem if these 
controls have the same names in the different stacks?

Regards,

Greg

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Primer on MetaCard as CGI

2002-07-04 Thread Gregory Lypny

Hi Everyone,

Can anyone recommend a primer (for dummies) for using MetaCard as a 
CGI?

Greg


Gregory Lypny
Concordia University
___
Better for us if you don't understand.
The Tragically Hip

http://rubbersoul.concordia.ca

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Script Security

2002-05-29 Thread Gregory Lypny

Hi Everyone,

Is there a way to keep users from peeking at scripts in a 
standalone that has stack files?

Regards,

Greg


Gregory Lypny
Concordia University
___
Better for us if you don't understand.
The Tragically Hip

http://rubbersoul.concordia.ca

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Comparing Big Lists

2002-04-29 Thread Gregory Lypny

Thanks Dave,

You put a lot of work into your example, and I appreciate it.  
Sorry, I didn't look at it sooner.

I suspect Dave's approach below (which is what I suspect Scott was 
suggesting as well, although I misunderstood it) will be fastest.  To 
make it more general, I might have to nest another 'repeat for...' loop 
to capture cases where the item to compared to in tLargeList is not 
always located in item 3.

For those curious, I'm helping a colleague search through the file 
pertaining to the human genome database.  It's about 80 MB.


Regards,

Greg

Gregory Lypny
Associate Professor
John Molson School of Business
Concordia University
_
Absence of evidence is not evidence of absence.
 - Anonymous

http://rubbersoul.concordia.ca


-- a snip from Dave Cragg's test...
repeat for each line tLine in tLargeList
  if tArray[item 3 of tLine]  empty then
put tArray[item 3 of tLine]  :  tLine  cr after tMergeList2
  end if
end repeat

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Comparing big lists

2002-04-27 Thread Gregory Lypny

Thanks for the suggestion, Scott.  I'll give it a shot.  I've also tried 
looping over the lines of bigList (i.e., a nested repeat), simply using 
the 'in' operator:  if x is in y, then...  It takes about 6 minutes on a 
modest (300 mHz) iBook running OS X, but I'm hoping for an improvement,

 Regards,

  Greg

On 27/4/2002 12:08 PM, [EMAIL PROTECTED] wrote: 

Message: 2
Date: Fri, 26 Apr 2002 12:48:53 -0600 (MDT)
From: Scott Raney [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Comparing big lists
Reply-To: [EMAIL PROTECTED]

On: Thu, 25 Apr 2002 Gregory Lypny [EMAIL PROTECTED] wrote:

   Thought I would pick your brains on the topic of comparing two big
 lists.  Both are tab delimited.  bigList has about 100,000 lines and
 6 items (columns) per line.  smallList is about 15,000 lines and 2
 items per line.  I want to identify the lines in bigList in which
 the third item is the same as the second item in a line in
 smallList, and then pull out the intersection.  I used something
 like this, which works fine.

 set the itemDelimiter to tab
   repeat for each line j of smallList
put lineOffset(item 2 of j, bigList) into thisLine
if thisLine is not 0 then put j  tab  \
 line thisLine of bigList   return after mergedList
   end repeat
 delete last character of mergedList  -- Get rid of the trailing Return

 Using the lineOffset function seemed the obvious choice to me, but I'm
 also interested in other approaches.

LineOffset on such a big variable is going to be pretty expensive.
Another option would be to us split to build an array out of smallList
and the loop over each line in big list and see if there is an array
index for it.  Split takes awhile and will use up a good bit of
memory, but makes the lookups *much* faster.  You could save some of
that space by building up an array of just the relevant items in one
list or the other by looping over the lines and creating one array
index for each.
  Regards,
Scott

 Regards,
 Greg


Scott Raney  [EMAIL PROTECTED]  http://www.metacard.com
MetaCard: You know, there's an easier way to do that...
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Dragging Lines in a Field

2002-04-21 Thread Gregory Lypny

Posts like this are invaluable, Scott.  They're keepers.

Greg

Gregory Lypny
Concordia University
___
Better for us if you don't understand.
The Tragically Hip

http://rubbersoul.concordia.ca

On Sunday, April 21, 2002, at 12:02  PM, Scott wrote:

 Message: 1
 Date: Sat, 20 Apr 2002 11:31:53 -0600 (MDT)
 From: Scott Raney [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: Dragging Lines in a Field
 Reply-To: [EMAIL PROTECTED]

 On Fri, 19 Apr 2002  Tariel Gogoberidze [EMAIL PROTECTED] wrote:

 So,  I modified  script  a little (see below) and now it seems to be
 stable in  all versions of MC.
 note:  I'm sure  it can be done in more efficient way, but I cooked it
 very  quickly and  my  goal was  to just stabilize the script in MC  
 2.4.2

 Broken record time:

 1) Never use repeat until the mouse is whatever
 2) Never use idle, mouseStillDown, or mouseWithin messages

 Think of it like going for a long drive after the oil pressure light
 in your car's dashboard goes on.  You'll learn the lesson the next day
 when your car starts smoking profusely and burning a quart of oil
 every 10 miles.  Not to mention what your friends and other fellow
 drivers will think of your automotive skills.
   Regards,
 Scott

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Read Command with Offset specified

2002-04-12 Thread Gregory Lypny

Hi everyone,

I'm working on a utility that filters data in text files of more 
than 100 MB.  I want to read chunks of text from certain points in the 
file without running out of memory, so I was wondering whether using the 
Read-from-file-XXX-at-offset form of the Read command would actually 
read from the offset without loading all data before the read into 
memory.  If so, then it should be pretty easy to index key words in a 
first pass of the file before embarking on more intensive searches.

Greg

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Dumb Question About Variables (Revisited) Plus Matrices, Good Golly

2002-03-27 Thread Gregory Lypny

 Thanks, Raymond, Pierre, and others for responding to my question.

 Both Raymond (quoted below) and Pierre Sahores suggest the use of 
arrays (vectors) for my problem.  That was my first inclination, but I 
ran into a bit of a glitch when I tried to create vectors out of the 
columns of a matrix.  I don't want to be long-winded here, but maybe my 
problem is of interest to others, so here goes.

 I'm developing a simple statistics stack.  It reads in a 
tab-delimited text file of numbers that has N rows of records and K 
columns of variables.  My sample data is N=1,000 and K=10, so each column 
contains 1,000 observations for a variable.

 The first thing that my stack does is load the data into an NxK 
matrix (array) called X with each element indexed by (i,j), so X[3,4] 
becomes the third observation for the fourth variable.  Matrix X will be 
useful for computing covariance and correlation matrices as well as 
simple linear regressions (line fitting).  But it will also be important 
to be able to transform or do computations on each column (i.e., 
variable) separately, for example, to compute the average of variable 7.  
Apparently, MC doesn't have a command or function to extract or refer to 
individual columns of numerically indexed arrays (e.g., pull out column 4 
by referring to X[*,4]), so I just figured I'd create a separate array 
(or vector) for each variable.  That can be done easily in MC by 
transposing X and dumping each row into a separate single-indexed array 
called v like this:

put tranpose(x) into XT  -- KxN matrix, where each row has N=1,000 
observations
  repeat with j=1 to N
repeat with i= 1 to K
  put XT[j,i]  , after v[i]
  -- v[1] is a comma-delimited list of N observations on variable 1
  -- v[2] is a comma-delimited list of N observation on variable 2
  -- and so on
end repeat
delete last character of v[i]  -- get rid of the trailing comma
  end repeat

This appears to solve the variable-naming problem that Raymond and Pierre 
(and others) have kindly be helping me with because now I have K separate 
vectors (v[1], v[2], ... , v[K]) within an umbrella array called v.  And 
this is fine because most statistics can be computed using 
comma-delimited lists as input, but, unfortunately, I can't do matrix 
math on these lists.  It would be elegant (for what it's worth) and 
useful if each element of v referred to a single-index associative array, 
so that v[1] = (d[1], d[2],..., d[N]) for variable 1 and likewise for the 
other variables.  MC can do arrays within arrays (very, very cool), but 
wouldn't I get into a naming problem again because the elements in v[1] 
are named as d, and so would the elements of v[2].   That's what I'm 
tinkering with now.

 Greg


On 26/3/2002 8:33 PM, Raymond E. Griffith wrote: 

Hmmm. Here is where an array structure would really shine.

repeat with i = 1 to 10
 put i+10 into H[i]
end repeat

It is easy to use, and avoids the problems you note.

Cheers!

Raymond


on Tue, 26 Mar 2002 10:33:43 Gregory Lypny [EMAIL PROTECTED]
wrote:

 
 Hi Everyone,
 
 A few days ago I asked about creating variables on the fly.  It was
 suggested that I enclose the unchanging part of the variable name in
 quotations.  So I tried the repeat loop below as an experiment, hoping to
 generate H1 = 11, H2, =12, and so on, up to H10 =20.
 
 repeat with i = 1 to 10
 put i+10 into (H  i)
 end repeat
 

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Dumb Question About Variables (Revisited)

2002-03-26 Thread Gregory Lypny

Hi Everyone,

 A few days ago I asked about creating variables on the fly.  It was 
suggested that I enclose the unchanging part of the variable name in 
quotations.  So I tried the repeat loop below as an experiment, hoping to 
generate H1 = 11, H2, =12, and so on, up to H10 =20.

 repeat with i = 1 to 10
put i+10 into (H  i)
 end repeat

 It doesn't fly, unfortunately, and the error message I get is bad 
chunk and a reference to the left parenthesis.  Removing the parenthesis 
doesn't help, but makes H the bad chunk.  However, I remember being able 
to do this in HyperCard.  Any thoughts?

 By the way, the technique above (as I think everyone knows) works if 
the container is a field rather than a variable.

 put i+10 into fld (H + i)   -- not a problem


 Greg



_
Gregory Lypny
Associate Professor of Finance
John Molson School of Business
Concordia University

_
Absence of evidence is not evidence of absence.
   - Anonymous

E-mail forum:   [EMAIL PROTECTED]
Visit Pareto at http://rubbersoul.concordia.ca
Visit Borsa at http://rubbersoul.concordia.ca/Borsa_Classroom
Crash site for notes and quizzes at
http://homepage.mac.com/gregorylypny/FileSharing1.html

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Dumb Question About Variables

2002-03-23 Thread Gregory Lypny

Thanks, everyone.  Treat variable as a literal and use quotation marks.  
Excellent.

 Greg

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Split Command

2002-03-22 Thread Gregory Lypny

Hi Everyone,

I'm wondering whether the Split command can be used to create a 
numerical matrix from a tab-delimited field of numbers.  Example:  I 
have a field named X with N=1000 rows and K=10 columns for 10,000 
observations in total.  The data is tab-delimited, and each line ends 
with the Return character.  If I put field X into variable X and use

split X by tab

I get a single vector instead of a matrix (which I expected because 
that's how the command is defined), but the dimension of the vector is 1 
x 9,001 rather than 1 x 10,000 because the first element of each row is 
skipped during the indexing process (999 rows), being delimited by 
Return rather than Tab.  I would like to be able to create an NxK matrix 
where each element is X[i,j]  (i=row and j=column) and be able to 
extract single-indexed Nx1 column vectors of the form X[j] --- X[1], 
X[2], ..., X[10] in my example here.  I know that I can build these 
easily using the repeat control structure, but I thought that a command 
like Split, or something similar, may already exist for this purpose.

Regards,

Greg

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Dumb Question About Variables

2002-03-22 Thread Gregory Lypny

Hi again everyone,

I can't seem to create a series of variables whose names are 
identical except for a numerical prefix, such as H1, H2, H3, ... (and 
this is not an associate array).

I tried

repeat with i=1 to 10
Put stuff into (H  i)
end repeat

but MetaCard doesn't like that.

Greg

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: metacard digest, Vol 1 #133 - 9 msgs

2002-03-18 Thread Gregory Lypny

Thanks for the response.  But, actually, my question was whether MC 
treats numerically-indexed arrays in the usual row-column sense that's 
used for matrix math.  As for the question of buying MC or Revolution, 
there is nothing about Revolution (as appealing as the face lift is) 
that can justify a switch from MC for me.

Greg



On Monday, March 18, 2002, at 12:04  PM, metacard-
[EMAIL PROTECTED] wrote:

 To: [EMAIL PROTECTED]
 From: crob [EMAIL PROTECTED]
 Subject: Re: Arrays and Matrix Algebra
 Reply-To: [EMAIL PROTECTED]

 original message:
 Arrays and Matrix Algebra
 Date: Thu, 14 Mar 2002 11:51:31 -0500
 From: Gregory Lypny [EMAIL PROTECTED]
 To: MetaCard List [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]

 Hi Everyone,

  Just wanted to confirm the correct way to set up arrays to be able
 to do matrix math.  If I have an array named X, does MetaCard treat
 x[3,4] as the fourth element in the third row of X and x[8,2] as the
 second element in the eigth row?


 yes: if you put something into X[n], you can retrieve X[n], if you
 put something into X[m,n],  you can retrieve X[m,n], both with
 MetaCard 2.4.1 and with Revolution 1.1.
 The problem is: which to buy? (my subscription to MetaCard has 
 expired :(( )

 greets
 crob

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Jeanne's book

2002-03-16 Thread Gregory Lypny

I'd snap up a MetaCard book in a second!  I haven't read Jeanne's 
HyperTalk book, but anything with examples that extends the original 
HyperCard Reference by Apple to the realm of MetaCard would be great.

Greg

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Arrays and Matrix Algebra

2002-03-15 Thread Gregory Lypny

I guess we'll have to experiment with some actual calculations.  Any 
word on this, Scott?

Greg


On Friday, March 15, 2002, at 12:03  PM, metacard-
[EMAIL PROTECTED] wrote:

 Message: 2
 Date: Thu, 14 Mar 2002 23:39:39 +0100
 Subject: Re: Arrays and Matrix Algebra
 From: [EMAIL PROTECTED] (Dr. Wolfgang Rost)
 To: [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]

 am 14.03.2002 17:51 Uhr schrieb Gregory Lypny unter
 [EMAIL PROTECTED]:

 Hi Everyone,

 Just wanted to confirm the correct way to set up arrays to be able
 to do matrix math.  If I have an array named X, does MetaCard treat
 x[3,4] as the fourth element in the third row of X and x[8,2] as the
 second element in the eigth row?

 Regards,

 Greg



 
 Gregory Lypny
 Associate Professor
 Concordia University
 
 They had the best selection,
 The were poisoned by protection,
 There was nothing that they needed,
 They had nothing left to find.
 - Neil Young


 E-mail forum:   [EMAIL PROTECTED]
 Visit Pareto at http://rubbersoul.concordia.ca
 Visit Borsa at http://rubbersoul.concordia.ca/Borsa_Classroom
 Crash site for notes and quizzes at
 http://homepage.mac.com/gregorylypny/FileSharing1.html


 ___
 metacard mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/metacard
 Hi Greg,

 I think so, but the worse (sorry, my English is very poor, I'm a 
 German, or
 so?) is, that, how Scott me just mailed, you can't adress row's and 
 column's
 in array's. So I think, a 2-dimensional array brings no advantage and 
 must
 just be handled like a 1-dimensional one. Is it right?

 Regards

Wolfgang

 Dr. Wolfgang Rost, Psychologist and Software-Developer, Germany


___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Arrays and Matrix Algebra

2002-03-14 Thread Gregory Lypny

Hi Everyone,

 Just wanted to confirm the correct way to set up arrays to be able 
to do matrix math.  If I have an array named X, does MetaCard treat 
x[3,4] as the fourth element in the third row of X and x[8,2] as the 
second element in the eigth row?

 Regards,

  Greg




Gregory Lypny
Associate Professor
Concordia University

They had the best selection,
 The were poisoned by protection,
 There was nothing that they needed,
 They had nothing left to find.
   - Neil Young


E-mail forum:   [EMAIL PROTECTED]
Visit Pareto at http://rubbersoul.concordia.ca
Visit Borsa at http://rubbersoul.concordia.ca/Borsa_Classroom
Crash site for notes and quizzes at 
http://homepage.mac.com/gregorylypny/FileSharing1.html


___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



MC 2.4.2 Wish --- Graphing Object

2002-02-27 Thread Gregory Lypny

Hi Everyone,

 My other feature wish (the first was scrolling fields with a lock 
title column and row) for the next version of MC: a graphing object.  
Something to spit out simple line and, perhaps, bar graphs; no need for 
the tacky pie charts and 3D stuff found in Excel.  This would be, I 
think, indispensible to researchers and academics.

 Cheers,

  Greg






Gregory Lypny
Associate Professor
John Molson School of Business
Concordia University
Montreal, Canada


I am just going outside and may be some time.
   - Captain Lawrence Oates, 17 March 1912, Scott Expedition


E-mail forum:   [EMAIL PROTECTED]
Visit Pareto at http://rubbersoul.concordia.ca
Visit Borsa at http://rubbersoul.concordia.ca/Borsa_Classroom
Crash site for notes and quizzes at 
http://homepage.mac.com/gregorylypny/FileSharing1.html


___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



OS Background Pattern (Sigh...)

2002-02-17 Thread Gregory Lypny

Hi,

I know I've asked this before, and so have others, but I can't get 
the striped background in OS X.  This is what I've done:

I turned off the Can't Modify of the Home stack.  Then in the Message 
Box, I issued each of these four commands.

set the backgroundcolor of stack home to empty
set the backgroundpattern of stack home to empty
set the backgroundcolor of cd 1 of stack home to empty
set the backgroundpattern of cd 1 of stack home to empty

What am I missing?

Greg

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



MC 2.4.2 Feature Wish

2002-02-15 Thread Gregory Lypny

Hi Everyone,

I've noticed some discussion on the 2.4.2 beta lately.  A feature 
I'd like to see in MC is the ability to lock the first row and column in 
a scrolling field much like can be done in spreadsheets.  (I know that 
it's possible to script multiple scrolling fields, but I've never been 
successful doing it for horizontal scrolls --- the column data in the 
two fields never align.)  Presenting data in tables and graphs is an 
important part of my research, and being able to easily and dynamically 
reset column and row titles in a scrolling field would be a big plus.

MC is one of the best tools I have.  Good work Scott and company.

Greg


Gregory Lypny
Concordia University
___
Better for us if you don't understand.
The Tragically Hip

http://rubbersoul.concordia.ca

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Option buttons under OS X

2002-01-24 Thread Gregory Lypny
Hi Everyone,

Awhile ago I asked a question about option buttons under OS X, but never got a response, so I thought I'd take another kick at the cat.  When an item in an option button --- also popup or pulldown buttons ---  is selected, the label of the button is set to the item selected.  I was hoping that I coulod make them behave like checkboxes with their Shared Hilite off, where the same checkbox can be checked on one card and unchecked on another when it is part of a background.  This would make option buttons much more useful as containers, and a good example of this appears in Apple's Address Book application where the label of a phone number field (e.g., Work, Home, Mobile, Fax, etc.) can be set using an option button and, of course, can be different for each entry in the address book.  Is there anyway to do this in MetaCard?

Regards,

Greg


Gregory Lypny
Concordia University
___
"Better for us if you don't understand."
The Tragically Hip

http://rubbersoul.concordia.ca

Option Buttons in OS X

2002-01-04 Thread Gregory Lypny

Hi Everyone,

Is there some way to configure an option button in OS X so that the 
button line selected is not shared across cards when the button is part 
of a background?

Greg

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Stackfile Handler in OS X

2002-01-04 Thread Gregory Lypny

Hi Everyone,

I noticed that calls to substacks (e.g. go to stack X) based on the 
stackfile handler below, that I use in all my older stacks, does not 
work in OS X unless each of the substacks is opened individually first.  
Any thoughts on this?

-- script in main stack ---
on preOpenStack
   get the effective fileName of this stack
   set the itemDelimiter to /
   put empty into last item of it
   set the directory to it
   set the itemDelimiter to comma
end preOpenStack
--- end --

Greg

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: How to get striped OS X background

2002-01-02 Thread Gregory Lypny

Thanks for the info.  I'll give it a shot.

 Greg





Gregory Lypny
Associate Professor
John Molson School of Business
Concordia University
Montreal, Canada


I am just going outside and may be some time.
   - Captain Lawrence Oates, 17 March 1912, Scott Expedition


E-mail forum:   [EMAIL PROTECTED]
Visit Pareto at http://rubbersoul.concordia.ca
Visit Borsa at http://rubbersoul.concordia.ca/Borsa_Classroom
Crash site for notes and quizzes at 
http://homepage.mac.com/gregorylypny/FileSharing1.html


___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Option buttons in OS X

2002-01-01 Thread Gregory Lypny

Hi Everyone,

Are option buttons located in a background restricted to displaying 
the same item on every card?  For example, I find that if the contents 
of the button are A, B and C then if C is selected on one card, it will 
also appear on all other cards, which is not what I have in mind.

Greg

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: POST Woes (a.k.a. Posting w/MC 2.4.1)

2001-11-13 Thread Gregory Lypny

On 13/11/2001 8:22 AM, Andu wrote in part: 

When in situations like this, best thing is to post to the list or bug
report to MetaCard.
Things can only be fixed if people report them.

 Actually, I did post to this list back on November 5th (titled POST 
Question) when I first discovered the problem, but didn't get anything 
back that would suggest that the problem is with libURL.  I then started 
tinkering as best as a novice could, thinking I was doing something 
wrong, and that clearly gobbled up lots of time.

 Since the problem won't be fixed this release, I'm faced with a bit 
of a dilemma since I have a large project already started in 2.4.1, and 
it doesn't seem to make sense spending valuable time learning about 
hacking libURL or the undocumented intricacies of socket scripting in MC 
when I have to produce project content and research.  I suppose I could 
create an Internet component as a separate application written in 2.3.  
But don't get me wrong: I'm not ticked off; I guess I'm expressing the 
distinction between those who've adopted MC as a valuable tool for their 
own professions (in my case, financial economics) and those who are 
full-time programmers.  And while I want to learn as much as possible 
about MC, time forces me to do it as part of my experience as the former 
and not the latter.

 Regards,

  Greg





Gregory Lypny
Associate Professor
Concordia University

Better for us if you don't understand.
   - The Tragically Hip


E-mail forum:   [EMAIL PROTECTED]
Visit Pareto at http://rubbersoul.concordia.ca
Visit Borsa at http://rubbersoul.concordia.ca/Borsa_Classroom
Crash site for notes and quizzes at 
http://homepage.mac.com/gregorylypny/FileSharing1.html



Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: POST Woes (a.k.a. Posting w/MC 2.4.1)

2001-11-12 Thread Gregory Lypny

Hi Everyone,

 The problem that Kevin James describes below is one that I've been 
trying desperately to resolve for two weeks now (with the very kind help 
of another list member).

THE SKINNY:

 Using MC's POST command to post to a web-served FileMaker database 
doesn't work in MC 2.4.1B2 but does in 2.3.  In an example similar to 
Kevin's, if you paste the following URL and FileMaker tags into a browser 
address field, you'll get a list of student serial numbers that I used in 
a now defunct class game:

http://rubbersoul.concordia.ca/registration/FMPro?-db=Registration-lay=Lis
t-format=reg_admin_search_results.html-findAll

 However, the button script below, does not work.  

-Button Script---
on mouseUp
  put http://rubbersoul.concordia.ca/registration/FMPro; into theURL
  post 
-db=Registration-lay=List-format=reg_admin_search_results.html-findAll
 \
  to url theURL
  if the result is not empty
  then
put the result
  else
put urlDecode(it) into postText
put postText into fld Output
if HTML is in fld Output then set the htmlText of fld Output 
to fld Registration
  end if
  put I'm done  the ticks
end mouseUp
-End of Button Script--

THE FAT

 The script does not complete or goes into an infinite loop.  For Mac 
users, the watch cursor will appear if you open the script editor window 
after clicking the button, and, if you try to close the script editor, 
you'll get an error message saying that you can't set the script while 
it's running.

 It was suggested to me that the on postHTTP x handler in libURL 
may be going into an infinite loop when it reaches

 repeat while zStatus[tURL[x]] is empty
  wait for messages
 end repeat

although I'm a novice, so I'd defer to your take on the problem.

 The fix that was suggested to me was to ambush libURL to keep it 
from interfering by placing the following handler in the card script.

 on postURL
  stop using stack libURL
 end postURL

 
 That appeared to work for the person helping me out on this problem, 
but unfortunately it hasn't work for me.  When I invoke the 
stop-using-libURL script above, the POST script in my button runs to 
completion, but no data is placed in the Output field that I created for 
the purpose and which, consistent with Kevin's description, implies that 
data is not being placed in the local variable it.

 As an aside, I should note that I'm running MC 2.4.1B2 on a Mac with 
OS 9.2.  I also tried this on a Mac running MC Carbon, and the problem is 
a little different: the button script does not hang or go into an 
infinite loop, but the local variable it is empty.

 I'm terribly stuck at this point.  Anyone interested, can contact me 
off-list, and I'll send them a copy of the very simply stack that has the 
post button.

 Regards,

  Greg






On 12/11/2001 7:00 AM, Kevin James wrote: 

From: Kevin James [EMAIL PROTECTED]
Subject: Posting w/MC 2.4.1
Date: Sun, 11 Nov 2001 15:18:10 -0500
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii ; format=flowed

I'm having trouble posting with MC 2.4.1.  Specifically, the reply 
from the server does not get put into the local variable it ... the 
socket remains open and MC hangs.

My particular scenario is posting to a FileMaker database, but the 
same behavior occurs sometimes ... but not always ... when I post to 
other cgis.

Data is posted to the server without a problem ... and if you observe 
things with a session watcher, the server does send a reply to MC ... 
but MC doesn't seem to be able to discern when the server has 
finished sending its reply.

Interested?  Have a go at it ... example stack at

http://www.hwbf.org/pub/incoming/post_2_4_1.zip

Webserved view of what I'm posting to:

http://160.129.74.247/FMRes/FMPro?-DB=employees.fp3-Lay=Summary-Token=25
-Format=TableVw.htm-Error=Err.htm-Findall


Kevin



Gregory Lypny
Associate Professor
Concordia University

Better for us if you don't understand.
   - The Tragically Hip


E-mail forum:   [EMAIL PROTECTED]
Visit Pareto at http://rubbersoul.concordia.ca
Visit Borsa at http://rubbersoul.concordia.ca/Borsa_Classroom
Crash site for notes and quizzes at 
http://homepage.mac.com/gregorylypny/FileSharing1.html



Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Fonts

2001-10-31 Thread Gregory Lypny

Hi Everyone,

 I'm working on a Mac, creating my first cross-platform stack, and 
I've read in the archives that Arial, Time New Roman and Helvetica are 
fairly safe fonts to use.  Any others?

 Regards,

  Greg




Gregory Lypny
Associate Professor
John Molson School of Business
Concordia University
Montreal, Canada


It's not dark yet,
 But it's gettin' there.
   - Bob Dylan


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Fonts

2001-10-31 Thread Gregory Lypny

Thanks,

 Nicholas and Scott for the font advice.

  Greg



_
Gregory Lypny
Associate Professor of Finance
John Molson School of Business
Concordia University

_
Take chances, make mistakes!
   - Ms Frizzle, The Magic School Bus


E-mail forum:   [EMAIL PROTECTED]
Visit Pareto at http://rubbersoul.concordia.ca
Visit Borsa at http://rubbersoul.concordia.ca/Borsa_Classroom
Crash site for notes and quizzes at
http://homepage.mac.com/gregorylypny/FileSharing1.html



Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




An MC Carbon Observation

2001-10-25 Thread Gregory Lypny
Hi Everyone,

I've noticed that the line "go to next card" placed in a button under MC 2.4 Carbon takes me to the next card as expected, but it also causes the next stack to be placed on top of the one I'm navigating.  Any thoughts?

Greg



Gregory Lypny
Associate Professor
John Molson School of Business
Concordia University
_
"The key to a great solution is really mixing it up."
- Ms Frizzle, The Magic School Bus

http://rubbersoul.concordia.ca

MC Carbon 2.4 and MC PPC 2.4

2001-10-22 Thread Gregory Lypny

Hi Everyone,

 I've got an MC 2.3.2 stack that I want work on under 2.4.  I noticed 
that when I open it under MC PPC 2.4 everything is fine, but when I open 
it with MC Carbon under OS X, most of the fields are not there, although 
they do register in the Control Browser.

 Any thoughts?

  Regards,

   Greg



Gregory Lypny
Associate Professor
John Molson School of Business
Concordia University
Montreal, Canada


It's not dark yet,
 But it's gettin' there.
   - Bob Dylan


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Mod function

2001-10-16 Thread Gregory Lypny

Hi Everyone,

Just confirming that MC does not have a mod function.  Right?  So, 
I would use something like

5/2 - trunc(5/2) = 0.5

Greg

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




MC as CGI

2001-10-04 Thread Gregory Lypny

Where can I get inforomation and examples of using MC as a CGI?

 Regards,

  Greg

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Currency format Draws from a Normal Distribution

2001-10-03 Thread Gregory Lypny

 Thanks everyone for the suggestion about the format() function to 
get currency formats.  I never thought that such a seemingly small issue 
would generate such big response.

 Thanks too for the script for drawing from a Normal Distribution.

  Greg




_
Gregory Lypny
Associate Professor of Finance
John Molson School of Business
Concordia University

_
A hard C is better than a soft A.
   - Bill Cosby

E-mail forum:   [EMAIL PROTECTED]
Visit Pareto at http://rubbersoul.concordia.ca
Visit Borsa at http://rubbersoul.concordia.ca/Borsa_Classroom
Crash site for notes and quizzes at http://homepage.mac.com/gregorylypny/




Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Currency format

2001-10-01 Thread Gregory Lypny

Hi,

 Is it possible to use MC's numberFormat function to display numbers 
in currency format, e.g., $23.87?

 Greg

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Writing a file remotely

2001-09-26 Thread Gregory Lypny

 Thanks Andu and Ricardo for your advice on Mac-to-Mac file writing 
over TCP/IP.  But how would it work, or could it work, for WinTel users 
with an MC stack writing to the Mac.  (I think that rhymes.)

 Greg

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Writing a file remotely

2001-09-24 Thread Gregory Lypny
Hi Everyone,

I'm tinkering with a stack that I hope will write data from one Mac to another.

I thought I should be using

put fld "Data To Be Sent" into \  
URL "file://domain.name.ca/Distant Drive Name/Desktop Folder/Drop Box/fileName"

where Drop Box is a folder on the receiving Mac with read and write file sharing privileges enabled over TCP/IP.  I'm obviously doing something wrong in my muddling, and I imagine I have to establish a connection between the two machines first, but I'm not sure how.  Any suggestions?

Cheers,

Greg



Gregory Lypny
Associate Professor
John Molson School of Business
Concordia University
_
"The key to a great solution is really mixing it up."
- Ms Frizzle, The Magic School Bus



Cases in the switch statement

2001-09-21 Thread Gregory Lypny

Hi Everyone,

 Can the switch control structure handle inequalities in the cases, 
such as

  case  = 0.235  ?

  Greg

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Sockets

2001-09-18 Thread Gregory Lypny

Thanks for the socket references.  I've got some homework to do.

 Greg

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Sockets

2001-09-17 Thread Gregory Lypny
Hi Everyone,

Where can I find a primer on sockets, something like "Sockets for Dummies" with lots of MetaCard examples.

Regards,

Greg



Gregory Lypny
Associate Professor
John Molson School of Business
Concordia University
_
"Absence of evidence is not evidence of absence."
- Anonymous

Re: PreOpenStack Handler Interferes with Message Box

2001-07-09 Thread Gregory Lypny
Hi John,

Andu's solution appears to be working for me.  In response to your question, my project consists of a main stack, which is essentially a splash screen for the purposes of creating a standalone, and a substack, which does all of the work and saves data.  However, I have set up the substack using the stackFiles property.  I'm bewildered that your solution using "exit preOpenStack" does not work. 

Greg

Gregory Lypny
Associate Professor
John Molson School of Business
Concordia University
_
"Absence of evidence is not evidence of absence."
- Anonymous


From: John Kiltinen [EMAIL PROTECTED]>
Subject: Re: PreOpenStack Handler Interferes with Message Box
Date: Sat, 7 Jul 2001 22:42:30 -0400
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
In-Reply-To: [EMAIL PROTECTED]>

Andu wrote:

Use:

on preopenstack
if the name of this stack is X then...[prompt me for the password]
end preopenstack

in reply to this from Gregory Lypny:

Hi Everyone,

I have a stack with a PreOpenStack handler that prompts the user for
a password before the stack opens the first card.  Very often when I'm
editing the stack, my use of the Message Box causes the handler to be
invoked inexplicably, prompting me for the password.  I'd like to stop
this.  Any thoughts?

Gregory's problem sounds very similar to one I had recently.  In my case,
the problem was that when substacks of a main stack are opened, they cause
the messages preopenStack, openStack, openCard, etc. to be sent, and these
get caught and processed by handlers of the main stack.  (Gregory, is the
message box you were working with one that was cloned and made a substack
of your main stack.  If so, your problem is exactly like mine.)

I tried a solution of the sort that Andu proposes, but wasn't getting it to
work.  What finally did work was to put do-nothing handlers in the scripts
for my substacks, such as:

on preopenStack
exit preopenStack
end preopenStack

on openStack
exit openStack
end openStack

John Kiltinen



John Kiltinen ([EMAIL PROTECTED])Home  Office
Professor, Dept. of Math.  CS   Tel.(906) 228-8035 or (906) 227-1600
Northern Michigan University Fax (906) 228-4667 or (906) 2272010
Marquette, MI 49855 USA





--- END metacard.v004.n385 ---





PreOpenStack Handler Interferes with Message Box

2001-07-06 Thread Gregory Lypny

Hi Everyone,

 I have a stack with a PreOpenStack handler that prompts the user for 
a password before the stack opens the first card.  Very often when I'm 
editing the stack, my use of the Message Box causes the handler to be 
invoked inexplicably, prompting me for the password.  I'd like to stop 
this.  Any thoughts?

 Regards,

  Greg




_
Gregory Lypny
Associate Professor of Finance
John Molson School of Business
Concordia University

_
A hard C is better than a soft A.
   - Bill Cosby


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Scrolling Many Fields

2001-07-06 Thread Gregory Lypny

Hi Everyone,

 I'm trying to create a handler to synchronize the horizontal 
scrolling of two fields.  I've written the following handler based on the 
online example to initialize the scrollbar.  This works right up to the 
far right (end of the scrollbar) where the last column of data in the 
two fields is out of alignment.  Any thoughts?

on mouseUp
  set the endValue of scrollbar X to the formattedWidth of fld Y
  set the thumbSize of scrollbar X to the width of fld Y
  set the lineInc of scrollbar X to the effective width of fld Y
  set the pageInc of scrollbar X to the effective width of fld Y
  set the thumbPos of scrollbar X to 0
end mouseUp

 Regards,

  Greg




Gregory Lypny
Associate Professor
John Molson School of Business
Concordia University
Montreal, Canada


It's not dark yet,
 But it's gettin' there.
   - Bob Dylan


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: PreOpenStack Handler Interferes with Message Box

2001-07-06 Thread Gregory Lypny

Thanks Andu,

Sometimes the simplest solutions are the least obvious.

Greg

Gregory Lypny
Associate Professor
John Molson School of Business
Concordia University
_
I am just going outside and may be some time.
- Captain Lawrence Oates, 17 March 1912, Scott Expedition



On Saturday, July 7, 2001, at 05:02  AM, [EMAIL PROTECTED] 
wrote:

 From: andu [EMAIL PROTECTED]
 Subject: Re: PreOpenStack Handler Interferes with Message Box
 Date: Fri, 06 Jul 2001 15:09:41 -0400
 MIME-Version: 1.0
 Content-Type: text/plain; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 References: [EMAIL PROTECTED]



 Gregory Lypny wrote:

 Hi Everyone,

  I have a stack with a PreOpenStack handler that prompts the user 
 for
 a password before the stack opens the first card.  Very often when I'm
 editing the stack, my use of the Message Box causes the handler to be
 invoked inexplicably, prompting me for the password.  I'd like to stop
 this.  Any thoughts?

 Use:

 on preopenstack
 if the name of this stack is X then...[prompt me for the password]
 end preopenstack


  Regards,

   Greg


 Andu





Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Sorting a subset of lines in a field

2001-07-05 Thread Gregory Lypny

Thanks for the good advice on the sort question.  I've got it working 
like a charm.

Greg

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Sorting a subset of lines in a field

2001-07-04 Thread Gregory Lypny
Hi everyone,

How do I sort a subset of lines in a a field?  I've tried the handler below, but it gives an error.

on mouseUp
set the itemDelimiter to tab
sort lines 2 to 5 of fld "merged results" by item 3 of each
end mouseUp

Regards,

Greg



Gregory Lypny
Associate Professor
John Molson School of Business
Concordia University
_
"I am just going outside and may be some time."
- Captain Lawrence Oates, 17 March 1912, Scott Expedition


Re: Family Behaviour for A Group of Buttons

2001-06-21 Thread Gregory Lypny

Thanks Mattias Alveteg and Dave Cragg for your suggestions.  What I'm 
trying to do is along the lines of what you responded to, Dave.  I've 
implemented a similar script, but your is neater, so I'll borrow a bit 
of it.

Regards,

Greg


Gregory Lypny
Associate Professor
John Molson School of Business
Concordia University
_
The key to a great solution is really mixing it up.
 - Ms Frizzle, The Magic School Bus

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Getting file information

2001-06-11 Thread Gregory Lypny

Hi Everyone,

 Does MetaCard have functions that get information about text files 
being read?  I'm interested in knowing the size of files being opened.

 Regards,

  Greg



_
Gregory Lypny
Associate Professor of Finance
John Molson School of Business
Concordia University

_
Absence of evidence is not evidence of absence.
   - Anonymous


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Using URL to work with files

2001-06-05 Thread Gregory Lypny

Hi Everyone,

I discovered the URL method of file manipulation (yes, I'm a little 
slow).  If I put a file into a container as in

put URL (file:  tPath) into tVariable

do I need to close the file in a subsequent statement?

Regards,

Greg

Gregory Lypny
Associate Professor
John Molson School of Business
Concordia University
_
We live in a political world,
  Under the microscope,
  You can travel anywhere,
  Hang yourself there,
  You've always got more than enough rope.
- Bob Dylan

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Basic graphics questions

2001-03-21 Thread Gregory Lypny

Hi Everyone,

 Can I set the icon of a button to a graphics object which I've 
created with MetaCard's draw tools?  That is, this is an object of type 
"graphic" and not of type "image".  I've noticed that the statement

 Set the icon of button "X" to graphic "Y"

does nothing.

 I'm a beginner (obviously) in the graphics-in-MetaCard arena.  I've 
imported a number of graphics created in Adobe Illustrator, but I'm not 
getting the quality I'd like to have.  For example, I've imported 
graphics as JPEG, which were created at a "high" quality setting and a 
resolution equal to the screen depth.  These appear in MetaCard as nice 
crisp images, but they are bounded by a white rectangle, which is a 
problem on non-white backgrounds.  If I use MetaCard's colour tools and 
set the image's ink to transparent, the white rectangle is largely 
removed but some annoying white pixels remain on the perimeter of the 
image.

 Is there a best format for imported images?  

  Regards,

   Greg




_
Gregory Lypny
Associate Professor of Finance
Concordia University

_
"Take chances, make mistakes!"
   - Ms Frizzle, The Magic School Bus



Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




When was the last digest sent out?

2001-03-15 Thread Gregory Lypny

Hi Everyone,

 Weird things afoot with my lists.  Haven't received a posting in a 
couple of days.  When did the last one go out?

 Greg


_
Gregory Lypny
Associate Professor of Finance
Concordia University

_
"Take chances, make mistakes!"
   - Ms Frizzle, The Magic School Bus



Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




MetaCard Posting to FileMaker Web Forms

2001-02-22 Thread Gregory Lypny

Hi Everyone,

 Big thanks to Tariel Gogoberidze for a lucid example of how to use 
MetaCard to post to a FileMaker web form.

 Best regards,

  Greg




_
Gregory Lypny
Associate Professor of Finance
John Molson School of Business
Concordia University

_
"Take chances, make mistakes!"
   - Ms Frizzle, The Magic School Bus



Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




MetaCard Posting to a Web Form

2001-02-17 Thread Gregory Lypny

Hi Everyone,

 Is there an example script or stack I can look at to learn how use 
MetaCard as a helper application that will post information to a web form 
and submit the form, and also to get information from a web page (past 
postings to this list from Kevin suggested I use "get URL..." for the 
latter, which I've since tried successfully)?

 I serve some FileMaker databases (you can see them at 
http://rubbersoul.concordia.ca/pareto); but, while FileMaker is handy for 
simple database tasks on the web, like creating, finding, and viewing 
records, it's scripting capabilities are limited, and it makes more sense 
to use MetaCard as a "client-side" helper that would get updates from and 
post new information to the server (FileMaker).  MetaCard would do all of 
the important data handling offline very effectively.  Any suggestions 
would be appreciated.

 Regards,

  Greg



________
Gregory Lypny
Associate Professor
John Molson School of Business
Concordia University
Montreal, Canada


"It's not dark yet,
 But it's gettin' there."
   - Bob Dylan


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




  1   2   >