Re: palette drag region

2001-05-09 Thread Hugh Senior

Hi Richard:

Any way to make a palette in MC with the drag region on the left side rather
than the top?

If not in the box, anyone have a cross-platform external for this?

I cannot help with a true palette, but this may be an option and it is
cross-platform.

Create a graphic as a 'false grab-bar' and set the script to the following:

local tGrab,xOff,yOff

on mouseDown
  put true into tGrab
  put item 1 of the loc of this cd - item 1 of the mouseLoc into xOff
  put item 2 of the loc of this cd - item 2 of the mouseLoc into yOff
end mouseDown

on mouseMove
  if tGrab then
if the mouse is up then
  put false into tGrab
  exit mouseMove
end if
put item 1 of the screenMouseLoc into smLoc1
put item 2 of the screenMouseLoc into smLoc2
set the loc of this stack to smLoc1+xOff,smLoc2+yOff
  end if
end mouseMove


/H

Hugh Senior

The Flexible Learning Company
Consultant Programming  Software Solutions
Fax/Voice: +44 (0)1483.27 87 27
Email: [EMAIL PROTECTED]
Web: www.flexibleLearning.com

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.




mp3 tags

2001-05-09 Thread Klaus Major

Hi folks,

i found a very fine url about my question (15 minutes ago ;-)

If you are interested, check this out

http://albumid.cjb.net/

Looks very useful.

Now i will see, if i understand something of that :-)

If somebody already has some sample-work concerning
mp3 and MetaCard, please drop a line.


Regards

Klaus Major [EMAIL PROTECTED]
MetaScape GmbH


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.




mp3 tags

2001-05-09 Thread Klaus Major

Hi folks,

has anybody on this list experience or can give hint on how
one could possibly extract some MP3 information from the header
of that file?

Any hints are welcome...

This i copied from a fresh iTunes converted mp3-file
(It's the readable part ;-):


ID3HTT2Titel 01TENiTunes
v1.1TRK1/14COMsengiTunes_CDDB_1BD04020E+1028+14+150+5471+11205+16354+22168+
27921+33775+39550+44631+50384+55434+60947+66438+71618COMengiTunes_CDDB_Trac
kNumber1



What i would need is the name and duration of that track.

(Ok, the name will be easy to extract. But what about the duration?
I cannot figure that out by these lines above :-( Stupid me...


Regards

Klaus Major [EMAIL PROTECTED]
MetaScape GmbH


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.




mp3 tags

2001-05-09 Thread Klaus Major

Hi folks,

has anybody on this list experience or can give hint on how
one could possibly extract some MP3 information from the header
of that file?

Any hints are welcome...

This i copied from a fresh iTunes converted mp3-file
(It's the readable part ;-):


ID3HTT2Titel 01TENiTunes
v1.1TRK1/14COMsengiTunes_CDDB_1BD04020E+1028+14+150+5471+11205+16354+22168+
27921+33775+39550+44631+50384+55434+60947+66438+71618COMengiTunes_CDDB_Trac
kNumber1



What i would need is the name and duration of that track.

(Ok, the name will be easy to extract. But what about the duration?
I cannot figure that out by these lines above :-( Stupid me...


Regards

Klaus Major [EMAIL PROTECTED]
MetaScape GmbH


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.




xfcn (as opposed to XFCN)

2001-05-09 Thread Richard Gaskin

Is there a way to use 'xfcn' resources (the PPC code type, not the 69k
version, 'XFCN') in MetaCard?

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Multimedia Design and Development for Mac, Windows, UNIX, and the Web
 _
 [EMAIL PROTECTED] http://www.FourthWorld.com
 Tel: 323-225-3717   ICQ#60248349Fax: 323-225-0716



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: mark cards by finding x in field y

2001-05-09 Thread DVGlasgow


In a message dated 8/5/01 3:41:34 PM, Geoff Canyon [EMAIL PROTECTED]
Subject: Re: mark cards by finding x in field y

Would this work:

mark cards by finding string it in field title

Alternatively, unless you need the marking, you could simply use:

find string it in field title

As a final alternative, you might name the cards with the titles, 
which would allow:

go card it

To do the author and first line searches, you could maintain arrays 
which store the card names based on the first line and/or the author. 
Or just revert to the search for those two.

gc


Thanks Geoff.  I thought I might not get a response because it was such basic 
stuff.  I wrestled with your suggestion find string, but settled on find 
whole (not sure there is any actual difference in this case).  The otherwise 
unchanged scripts now work fine.  I still don't know what the problem was.

Your other suggestions I have already tried in the stack, but thanks anyway.  
The cards are all named after the first n characters of the paper abstract.

Yippee.  Off to the lawyers it goes.

David G

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.




[Fwd: SANS NewsBites] (buffer overflow bugs)

2001-05-09 Thread Scott Raney

Just got the latest SANS newsletter and apparently I'm not
the only one who's dumbfounded by the number of buffer
overflow bugs in server software (Re: my rant to this list
a few months ago suggesting we charge programmers who write
code with these kinds of bugs in them with criminal negligence,
and stating that you're virtually immune from these kinds of
bugs if you write your software in MetaCard).
   Regards,
 Scott

From: Alan for the SANS NewsBites service
Re:   May 9 SANS NewsBites

*

Steve Ballmer, Microsoft's CEO, walked into a meeting with a dozen
customers a few days ago and said disgustedly, You would think we could
figure out how to fix buffer overflows by now.  He was talking about
the latest IIS buffer overflow fiasco through which (SANS has received
reliable confirmation to prove) well over 9,000 Microsoft- powered web
sites have been defaced.  And that pain is nothing compared to the
extortion and reputation damage organizations will soon face in trying
to recover the credit card numbers and other private information of
their clients.

Steve is right about buffer overflows.  Enough is enough.  It is time
to bring accountability to the programming profession.  We hope that
Microsoft will take the lead, guaranteeing all its internal programmers
get basic secure programming skills training and that the company helps
train developers outside of Microsoft.  And if that isn't enough,
perhaps as a security community, we can invite developers of important
code with buffer overflows to come to SANS conferences where they can
tell us all why they are subjecting us to this pain. Programmers have
been taught simple tests to avoid buffer overflows at least since 1960.
Some of them have forgotten the basics.  It's time to give them a reason
to remember.


-- 

Scott Raney  [EMAIL PROTECTED]  http://www.metacard.com
MetaCard: You know, there's an easier way to do that...


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: xfcn (as opposed to XFCN)

2001-05-09 Thread Phil Davis

Hi Richard,

- Original Message -
From: Richard Gaskin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 09, 2001 2:39 AM
Subject: xfcn (as opposed to XFCN)


 Is there a way to use 'xfcn' resources (the PPC code type, not the
69k
 version, 'XFCN') in MetaCard?

69k... Wow! I guess I missed something. And there's a 69k version of
MC too? Hmmm. Is that a 68K chip that's been bored, stroked, ported,
polished and supercharged?

Or maybe it's a Unix thing.

Phil Davis   ;o)

 --
  Richard Gaskin
  Fourth World Media Corporation
  Multimedia Design and Development for Mac, Windows, UNIX, and the
Web

_
  [EMAIL PROTECTED]
http://www.FourthWorld.com
  Tel: 323-225-3717   ICQ#60248349Fax:
323-225-0716



 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.




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.




arrays vs lines

2001-05-09 Thread Michael J. Lew

As an ex-Hypercarder, my natural inclination for arrays is to use item x
of line y of myVar style of arrays. Of course the myVar[x,y] is neater and
allows more ready translation of Fortran code. So I have run some tests in
Revolution rather than MC but I am assuming that the issues are intrinsic
to MC.

Repeat with i= 1 to 1000
  put random(1000) into line i of myLines
  put line i of myLines into myArray[i]
end repeat

put the ticks into tix
repeat with i=1 to 1000
  put line random(1000) of myLines into line i of anotherLines
end repeat
put the ticks-tix into tixForLines

put the ticks into tix
repeat with i=1 to 1000
  put myArray[random(1000)] into anotherArray[i]
end repeat
put the ticks-tix into tixForArrays

The arrays are slower!

Now increase all of the repeat limits to 1 and the arrays become much
faster than the lines.

So, for computer-intensive data manipulation for statistical tests where
computation time is a real limit, how can I decide when to go for arrays
and when to go for lines?
Is there a better way to handle the arrays that makes them faster in all
circumstances?


Michael J. Lew

Senior Lecturer
Department of Pharmacology
The University of Melbourne
Parkville 3010
Victoria
Australia

Phone +613 8344 8304

**
New email address: [EMAIL PROTECTED]
**

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.