Re: Quicktime Player

2001-09-28 Thread Richard Gaskin

Mark Luetzelschwab wrote:

> 1. Step forward one frame in a player

Ah, this is a thorny one.  QT is not frame-based; everything is done with
timecode integers.  You can coerce an emulation of a frame-based system by
using the movie's timescale function.

These two functions may help get you started:

--
-- TimeCode2Time
--
function TimeCode2Time pTimeCode, pTimeScale
  set the itemDelimiter to ":"
  if the number of items of pTimeCode < 3 then
answer "Error: invalid time code format"
exit to MetaCard
  end if
  put item 1 of pTimeCode into tHours
  put item 2 of pTimeCode into tMins
  put item 3 of pTimeCode into tSecs
  if item 4 of pTimeCode is not empty then -- support older frame-based
format:
set the numberformat to "00.000"
add (item 4 of pTimeCode / 30) to tSecs
  end if
  put (tSecs * pTimeScale) into tInt
  add (tMins*60*pTimeScale) to tInt
  add (tHours*3600*pTimeScale) to tInt
  return round(tInt)
end TimeCode2Time


--
-- Time2TimeCode
--
function Time2TimeCode pInt, pTimeScale
  if pInt = 0 then put 1 into pInt
  if pTimeScale = 0 then put 1 into pTimeScale
  put pInt / pTimeScale into tSecs
  set the numberformat to "00"
  put tSecs div 3600 &":" into tHrs
  put tSecs mod 3600 into tSecs
  put tSecs div 60   &":" into tMins
  set the numberformat to 00.000
  put tSecs mod 60 into tSecs
  return tHrs & tMins &tSecs
end Time2TimeCode


One method might be to increment your own timecode, and use timecode2time to
get an integer value that you can set the player's currenttime property to.

Of course, the easiest way is to use the controller's Step buttons. :)


> 2. Tell if a movie has completely downloaded (after setting the
> fileName to a URL?).  I think I can get around it by forcing the
> movie to play (these are very short clips) and waiting for a
> playStopped message at the duration...but there might be a better way
> to do this.

Check the UrlStatus function.  Typically you would use "load...with
message", and then in the handler for that message use a timer to check its
status periodically.

See the urlDownload stack in mctools.com for a great implementation.

> 3. Save a movie in a player to a file.

Hmmm... that's an interesting one.  Rather than use a URL in a player,
perhaps you could treat it as a data file and write it out as it comes in,
then assign it to a player when you're done.  I'm sure there's a better way,
though, and with QT's "quick start" option it'd be a shame not to take
advantage of near-immediate playback while downloading.

Anyone else know a good method for this?


-- 
 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-3717AIM: FourthWorldIncFax: 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.




Quicktime Player

2001-09-28 Thread Mark Luetzelschwab

Hi y'all

Does anyone know how to :

1. Step forward one frame in a player
2. Tell if a movie has completely downloaded (after setting the 
fileName to a URL?).  I think I can get around it by forcing the 
movie to play (these are very short clips) and waiting for a 
playStopped message at the duration...but there might be a better way 
to do this.
3. Save a movie in a player to a file.

Thanks!

-ml


-- 

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: tabbed button question

2001-09-28 Thread Mark Luetzelschwab

Turn on the sharedHilite property of the tabbed button.

You can set the menuHistory to an integer to select the tab

set the menuHistory of button "my_tab" to 2

selects the second tab (and will go to that card).

If you want to dress up the tabs, you can get the same behavior with 
radio buttons in a group, with the added advantage that you can set 
the icon/hilitedIcon of the radio buttons to some images..it hides 
the OS radio button and just displays the image.


-ml


>
>From: Rodney Tamblyn <[EMAIL PROTECTED]>
>Subject: tabbed button question
>Date: Sat, 29 Sep 2001 14:02:16 +1200
>MIME-Version: 1.0
>Content-Type: text/plain; charset="us-ascii"
>References: <[EMAIL PROTECTED]>
>In-Reply-To: <[EMAIL PROTECTED]>
>
>How do you get the tab hilight to be shared when a tabbed button is 
>placed in a stack background on multiple cards?
>
>Experiment:
>
>Make a tabbed button with three tabs
>
>Add a script:
>on menuPick what
>go card what
>end menuPick
>
>Put into a stack background and place on three cards named the same 
>as the tabs.
>
>When you click on the tabs you will jump to the named cards.  The 
>hilighed tab of the button will show whatever tab was last hilighted 
>on this card (rather than the name of the card being displayed) ie 
>the hilighted/selected tab is not shared...
>
>Is there a syntax to select a tab of a tabbed button 
>programmatically? Something along the lines of: select tab/line 
> of button  ?
>
>Rodney
>--
>--
>Rodney Tamblyn
>Educational Media group
>Higher Education Development Centre, 75 Union Place
>University of Otago, PO Box 56, Dunedin, New Zealand
>ph +64 3 479 7580 Fax +64 3 479 8362
>http://hedc.otago.ac.nz ~ http://rodney.weblogs.com
>
>
>--- END metacard.v004.n473 ---


-- 

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: tabbed button question

2001-09-28 Thread Richard Gaskin

Rodney Tamblyn wrote:

> Is there a syntax to select a tab of a tabbed button programmatically?
> Something along the lines of: select tab/line  of button  ?

It's the menuhistory property:

  set the menuhistory of  to 


-- 
 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-3717AIM: FourthWorldIncFax: 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.




tabbed button question

2001-09-28 Thread Rodney Tamblyn

How do you get the tab hilight to be shared when a tabbed button is placed in a stack 
background on multiple cards?

Experiment:

Make a tabbed button with three tabs

Add a script:
on menuPick what
go card what
end menuPick

Put into a stack background and place on three cards named the same as the tabs.

When you click on the tabs you will jump to the named cards.  The hilighed tab of the 
button will show whatever tab was last hilighted on this card (rather than the name of 
the card being displayed) ie the hilighted/selected tab is not shared...

Is there a syntax to select a tab of a tabbed button programmatically? Something along 
the lines of: select tab/line  of button  ?

Rodney
-- 
--
Rodney Tamblyn
Educational Media group
Higher Education Development Centre, 75 Union Place
University of Otago, PO Box 56, Dunedin, New Zealand
ph +64 3 479 7580 Fax +64 3 479 8362
http://hedc.otago.ac.nz ~ http://rodney.weblogs.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.




Re: Testing Keys

2001-09-28 Thread Karl Becker

>I'm wondering if I'm missing something with regard to the ability to test
>the state of keypresses in MC.  On Mac systems, a keyUp message is sent when
>a key is pressed down.  On Windows, if a key is held down for what I'm
>guessing is the repeatDelay, a keyUp message is sent.  It seems to be
>impossible to truly test for states of keys on these systems.

2.4 introduced a new function, keysDown()  (can also be called by the 
keysDown) , which returns a comma-delimited list of keys pressed on 
the keyboard.  It uses an id number, so you can't simply query for 
the "a" key, for instance, but once you know the id of the key you 
want, it's really a super-useful function.

-- 
Karl Becker, KB Productions - http://www.karlbecker.com
Featuring:New Tricks, Tiger's Eye Pub, and The Fishin' Hole

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: ImageData help.... getting the rgb value of the first pixel

2001-09-28 Thread Geoff Canyon

At 5:32 PM -0400 9/28/01, Raymond E. Griffith wrote:
>> Now here's my question:  What's the most efficient way to parse a chunk of
>> data into every four characters and discard the first one?   So many ways to
>> slice that one, and I haven't had time lately to run routines through
>> MetaBench
>> 
>
>Hmmm. What about...
>
>repeat with i = 1 to length(tstr) div 4
>  put char 4*i-2 to 4*i of tstr into item i of tparsed
>end repeat  
>
>Raymond

Throwing out another example, how about this -- it's more verbose, but probably a lot 
faster for large inputs:

  put the imagedata of image tSomeImage into tStr
  put 0 into tCharCount
  put empty into tColors
  repeat for each char X in tStr
add 1 to tCharCount
switch tCharCount
case 1
  break
case 4
  put charToNum(X) & cr after tColors
  put 0 into tCharCount
  break
default
  put charToNum(X) & "," after tColors
end switch
  end repeat
  put tColors into fld tSomeField


regards,

geoff


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: ImageData help.... getting the rgb value of the first pixel

2001-09-28 Thread Raymond E. Griffith

on Thu, 27 Sep 2001 12:55:53, Richard Gaskin <[EMAIL PROTECTED]>
wrote:

> The data is very conveniently presented in imagedata:  just get the
> chartonum of every four characters, discared the first one (always zero) and
> you've got an RGB triplet.
> 
> Now here's my question:  What's the most efficient way to parse a chunk of
> data into every four characters and discard the first one?   So many ways to
> slice that one, and I haven't had time lately to run routines through
> MetaBench
> 

Hmmm. What about...

repeat with i = 1 to length(tstr) div 4
  put char 4*i-2 to 4*i of tstr into item i of tparsed
end repeat  

Raymond
> -- 
> 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-3717AIM: FourthWorldIncFax: 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: Writing a file remotely

2001-09-28 Thread F. Ricardo, Ph.D.

One omission that may help: I installed DAVE Sharing
(http://www.thursby.com/products/dave.html) on Macs and PCs and
it helps tremendously, as it enables PC shared volumes to be
mounted on a Mac via the Chooser and, vice versa, Mac shared
volumes are mountable on a PC via Network Neighborhood (or in the
W2K case, "My Network Places"). Once mounted, you access these
via MC the regular way

mounted_volume_logical_name:dir/subdir/subsubdir/file.ext




--- andu <[EMAIL PROTECTED]> wrote:
> Gregory Lypny wrote:
> > 
> >  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.)
> 
> I don't think AppleShare works on windows except NT server. You
> may need
> to use a different protocol, the easiest probably being to make
> your
> own.
> 
> >  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.
> 
> -- 
> Regards, Andu
> ___
> [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.
> 


=
Francisco J. Ricardo, Ph.D.

__
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.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.




Re: Testing Keys

2001-09-28 Thread Scott Rossi

Recently, Scott Raney wrote:

>> I'm wondering if I'm missing something with regard to the ability to test
>> the state of keypresses in MC.  On Mac systems, a keyUp message is sent when
>> a key is pressed down.
> 
> Correct.  This is required because of a design flaw in MacOS: it
> doesn't guarantee that the same process that got the key down event
> will get the key up event.  And in fact this bug showed up with some
> regularity until we hard-coded the keyUp message to the keyDown event,
> ugly as it may be.
> 
>> On Windows, if a key is held down for what I'm
>> guessing is the repeatDelay, a keyUp message is sent.
> 
> True, followed immediately by another keyDown.  You will get an equal
> number of them, though.
> 
>> It seems to be
>> impossible to truly test for states of keys on these systems.
>> 
>> Am I missing something here?
> 
> Methinks you've overlooked the "keysDown" function, which returns
> exactly this information.

OK, I guess that will work.  Thank you.  I wonder if the function should
have been named "keysREALLYDown"...

This is a v2.4 feature only (not present in 2.3)?

Regards,

Scott

_
Scott Rossi   Tactile Media - Multimedia & Design
Creative Director Email: [EMAIL PROTECTED]
  Web: www.tactilemedia.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.




Re: Testing Keys

2001-09-28 Thread Scott Raney

On Thu, 27 Sep 2001 Scott Rossi <[EMAIL PROTECTED]> wrote:
> 
> I'm wondering if I'm missing something with regard to the ability to test
> the state of keypresses in MC.  On Mac systems, a keyUp message is sent when
> a key is pressed down.

Correct.  This is required because of a design flaw in MacOS: it
doesn't guarantee that the same process that got the key down event
will get the key up event.  And in fact this bug showed up with some
regularity until we hard-coded the keyUp message to the keyDown event,
ugly as it may be.

>  On Windows, if a key is held down for what I'm
> guessing is the repeatDelay, a keyUp message is sent.

True, followed immediately by another keyDown.  You will get an equal
number of them, though.

>  It seems to be
> impossible to truly test for states of keys on these systems.
> 
> Am I missing something here?

Methinks you've overlooked the "keysDown" function, which returns
exactly this information.
  Regards,
Scott

> Regards,
> 
> Scott
> 
> _
> Scott Rossi   Tactile Media - Multimedia & Design
> Creative Director Email: [EMAIL PROTECTED]
>   Web: www.tactilemedia.com


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.




Image data help

2001-09-28 Thread diskot123

>If you make any headway with the new image properties, please share with
the
>list.  I've been hoping/begging/pleading for some elaboration here, but
to
>date haven't seen any details posted...
I uploaded a demo stack a while ago to
ftp://members.aol.com/tuvsnyder/mcdemos/imagedata.mc

here's a function to get the color of a pixel in an image using imagedata

function bintorgb trgb
  return chartonum(char 4 of trgb),chartonum(char 3 of
trgb),chartonum(char 2 of trgb)
end bintorgb

function getPixel x,y,imagenum
  put the imagedata of image imagenum into idata
  put the length of idata into idatasize
  put idatasize/height of image imagenum into bytesperline
  put y * bytesperline + (x * 4) into toffset
  return bintorgb(char toffset to toffset+3 of idata)
end  getPixel

To test put the following script into an image:
on mouseUp
  put the mousecolor into mcolor
  put the mouseh - the left of me into xoffset
  put the mousev - the top of me into yoffset
  put getPixel(xoffset,yoffset,1) && "mousecolor:"&mcolor
end mouseUp

Tuviah

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-28 Thread F. Ricardo, Ph.D.

Some context: the proper use of FTP is a bit of a problem in MC.
I've just sent a note to andu requesting that someone create a
FAQ for this problem. 'Best as I can make out, much of the
problem relates to the distinction between file: and file://
where the first returns the file's data and the latter returns
the file's name only. I invite clarification on this, but I've
confirmed it independently.

I'm working on a project that involves sending files from Macs
and Win2000 machines to a Linux server, as well as among each
other. I recommend the use of an FTP server at every transmission
destination; it's much easier than protocol-writing, and
experience in various W3C working groups has shown that
developing a robust protocol is lengthy, error-prone, and
difficult on extensibility grounds. Making a protocol should be
considered only when you can determine that nothing else has the
slightest hope of fulfilling your needs, and with FTP (perhaps
with WebDAV) I find that MC has almost everything you need, short
of streaming capability.

Lastly, there are *many* freeware FTP servers; on the Mac, I've
used NetPresenz, on Windows just go with the built-in (and easy
to configure) IIS 4 or 5. I certainly wouldn't use an HTTP server
of any kind for bidirectional file transfer -- it's more complex
to set up (e.g., the MIME problem), more limited on type, more
prone to hack/virus attacks (e.g., are at least the many
buffer-overflow scenarios anticipated?), and you would likely
want/need session statefulness. The best protocol for file
transfer is FTP :^)

One easy method for me is to upload the file to a target FTP
server, and then to request the file again (securely), running a
checksum-like comparison routine to ensure that its integrity was
preserved on transmission. Does this sound like a constructive
possibility for your project?






--- David Bovill <[EMAIL PROTECTED]> wrote:
> > From: andu <[EMAIL PROTECTED]>
> > Subject: Re: Writing a file remotely
> > 
> > Gregory Lypny wrote:
> >> 
> >> 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.)
> > 
> > I don't think AppleShare works on windows except NT server.
> You may need
> > to use a different protocol, the easiest probably being to
> make your
> > own.
> > 
> 
> You could write your own protocol... it is not the route I
> chose largely as
> I thought the by using HTTP and hacking into Andus's MCHTTP
> server script -
> I'd have a more general solution.
> 
> The way this works is to use MCHTTP to serve up binary files to
> other
> machines on the LAN - it needs to be altered to work with
> LibUrl in 2.4 and
> I am not sure how well it deals with large files - but seems
> more than fine
> with images, HTML and MC stacks of a reasonable size... though
> it hasn't
> been tested with streaming MP3 files yet -:)
> 
> Using TCP/IP and an MC based HTTP server you can also serve up
> files to
> people using browsers - though it would help if they configure
> their MIME
> settings for MC stacks (has someone got a cross platform script
> Windows -
> Mac) for this.
> 
> If you/anyone want to work on this with me - mail me off 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.
> 


=
Francisco J. Ricardo, Ph.D.

__
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.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.




Re: ImageData help.... getting the rgb value of the first pixelof an image.

2001-09-28 Thread David Bovill

Thanks I'll try this...

> From: Richard Gaskin <[EMAIL PROTECTED]>
> Subject: Re: ImageData help getting the rgb value of the first pixel of an
> image.
> 
> 
> The data is very conveniently presented in imagedata:  just get the
> chartonum of every four characters, discared the first one (always zero) and
> you've got an RGB triplet.
> 

OK this sounds simple - remain confuse as to what you can do on binary data
and what you can't - given the "put imageData of image 1" displays nothing
"put char 1 of imageData..." and put charToNum(char 1 of imageData) etc...
 it'll get clear soon... anyway this function now works though it may be
possible to speed up (see below):

function binaryToRGBPixel binaryPixel
  put charToNum(char 2 of binaryPixel) into redBit
  put charToNum(char 3 of binaryPixel) into greenBit
  put charToNum(char 4 of binaryPixel) into blueBit
  put redBit, greenBit, blueBit into rgbTriplet
  return rgbTriplet
end binaryToRGBPixel

> Now here's my question:  What's the most efficient way to parse a chunk of
> data into every four characters and discard the first one?

I'll have a look... I would guess that using the right syntacx of:
  get binaryDecode("b8b8b8b8", binaryPixel, always0, redBit, greenBit,
Would speed things up as well, but there does not seem to be a syntax to
repeat/parse this into and array/arrays which would be very powerful.


> So many ways to
> slice that one, and I haven't had time lately to run routines through
> MetaBench
> 

Can't see any choice but to repeat deleting the first 4 characters as you
go: here is the function I am testing which is not screaming errors at the
moment - though I am thinking there must be a way to determine which line a
pixel is on other than using the image width and height properties?

function makeImageArray imageObject
  put the imageData of imageObject into binaryData
  put the width of imageObject into imagePixelWidth
  put the height of imageObject into imagePixelHeight
  answer the number of chars of binaryData/imagePixelWidth/imagePixelHeight
  answer imagePixelWidth && imagePixelHeight
  put 1 into rowNum
  repeat imagePixelHeight
put empty into rgbRow
repeat imagePixelWidth
  put char 1 to 4 of binaryData into binaryPixel
  if binaryPixel is empty then
answer rowNum
return imageArray
  end if
  put binaryToRGBPixel(binaryPixel) & return after rgbRow
  delete char 1 to 4 of binaryData
end repeat
delete last char of rgbRow
put rgbRow into imageArray[rowNum]
add 1 to rowNum
  end repeat
  return imageArray
end makeImageArray

Problem I am now having is how to write to a given area of an image - I
"seems" to be able to extract and process areas of the image, but how about
if I want to write this data to a new image? In other words how would I copy
a rectangle of an image into a new image? I can get at the data in image 1
but how do i set up the width and height of the new image - set the width of
image 2... set the imagedata of image 2? Does the image data automatically
"wrap" within an image container of a specific width???


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-28 Thread David Bovill

> From: andu <[EMAIL PROTECTED]>
> Subject: Re: Writing a file remotely
> 
> Gregory Lypny wrote:
>> 
>> 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.)
> 
> I don't think AppleShare works on windows except NT server. You may need
> to use a different protocol, the easiest probably being to make your
> own.
> 

You could write your own protocol... it is not the route I chose largely as
I thought the by using HTTP and hacking into Andus's MCHTTP server script -
I'd have a more general solution.

The way this works is to use MCHTTP to serve up binary files to other
machines on the LAN - it needs to be altered to work with LibUrl in 2.4 and
I am not sure how well it deals with large files - but seems more than fine
with images, HTML and MC stacks of a reasonable size... though it hasn't
been tested with streaming MP3 files yet -:)

Using TCP/IP and an MC based HTTP server you can also serve up files to
people using browsers - though it would help if they configure their MIME
settings for MC stacks (has someone got a cross platform script Windows -
Mac) for this.

If you/anyone want to work on this with me - mail me off 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.




Re: setting up linux box for MC

2001-09-28 Thread David Bovill

Only thoughts I have is to ensure the scripts don't have Mac specific
characters "‚" etc and to make sure that a browser on the Linux box can see
servers (MAC) on the network to check the TCP/IP networking.

Linux often installs by default a web server (or other services listening in
on various ports) - this may well conflict with a port you are trying to
connect to (if for instance it is 80). try another port?

Finally it may come down to permissions on Linux - certain processes "Web
servers for instance) require certain permissions to run depending on the
Linux set up. Not really sure exactly how this works yet myself, but you may
be required to run the server as a Super User.

> From: Rodney Tamblyn <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Fri, 28 Sep 2001 13:53:46 +1200
> To: [EMAIL PROTECTED]
> Subject: setting up linux box for MC
> 
> Any thoughts or suggestions most appreciated.
> 
> Rodney
> -- 


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: setting up linux box for MC

2001-09-28 Thread andu

Rodney Tamblyn wrote:
> 
> Today I tried to shift a MC stack I've been developing onto a LinuxPPC box.  I've 
>managed to successfully install LinuxPPC Metacard, and get it to run.  The stack 
>complains about the small size of the x-window (640x480) - but it will still run 
>(I've tried to get the linux box to run at a higher resolution but there are 
>problems, and besides it's just running as a server so it isn't that important).
> 
> My stack makes extensive use of sockets (listening on a particular port and replying 
>with information).  The stack becomes unresponsive when sending/receiving requests.
> 
> My question to those of you who are using MC on linux: are there any special things 
>I need to consider in doing socket communication on a linux box?  The box is running 
>fine otherwise (I can connect to the internet, ssh in etc)

There's nothing specific I'm aware of. I use Linux on a pc without any
problems but in the past I used YellowDogLinux on my macs and everything
worked smooth (MC included). Try running Apache on the same port as your
stack see if it works.

> 
> Any thoughts or suggestions most appreciated.
> 
> Rodney
> --
> --
> Rodney Tamblyn
> Educational Media group
> Higher Education Development Centre, 75 Union Place
> University of Otago, PO Box 56, Dunedin, New Zealand
> ph +64 3 479 7580 Fax +64 3 479 8362
> http://hedc.otago.ac.nz ~ http://rodney.weblogs.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.

-- 
Regards, Andu
___
[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.