[REBOL] Re: Emailing to a server ?

2002-10-03 Thread Mat Bettinson

Hi Jason,

Jason Does anyone have experience/advice/ideas using REBOL [or another scripting
Jason language] for automatic email services to work with a server-side bot?

Sure, it's really easy.

Jason I want [authorized] users to be able to directly email to a server-sde email
Jason address. A bot-script will then parse the email and add content to Vanilla site
Jason [or similar]. Authorization may include appropriate syntax within the email
Jason which the Vanilla site admin can est and edit.

If you take a look at the script library, there's a section on email;

http://www.reboltech.com/library/script-email.html

It's really easy to read mails and you get the relevant fields in a
rebol object such as mail/from mail/subject etc. I actually put an
entire web blogger into my IRC bot and it also periodically checks
e-mail for blogs, SMSes bound for IRC and things like that.

Regards,

Mat.


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Email woes on IBM/AIX Risc 6000

2002-08-02 Thread Mat Bettinson

Hi Ed,

Ed connecting to: smtprelay.avnet.com
Ed ** Access Error: Network timeout
Ed ** Where: confirm
Ed ** Near: smtp-port: open [scheme: 'smtp]
Ed if email?

I had something like this once. The problem was due to the mail server
attempting to do an ident check on the machine which was talking to
it. The timeout period of this on the mail server was longer than the
default timeout period in Rebol.

The solution was to turn the ident request off on the mail server
although if you have no access to that you should be able to increase
the Rebol timeout value instead.

Regards,

Mat.


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: I've had it with email.

2002-07-29 Thread Mat Bettinson

Hi Carl,

Carl At this rate, I think email will be dead in a few years. In
Carl fact, let me go on record saying that. A venture capitalist
Carl recently commented that this was a bold statement... but just
Carl watch. You watch. I'm not saying email will go away permanently.
Carl I'm saying that we'll have much better ways to communicate.

Carl I've said this stuff recently myself (instead of VCs it was work
colleagues that looked at me as if I were insane). I had to turn off my
longest standing email address (remove the alias from my mail server)
because of the monumental amounts of spam it gets. The equivalent of
moving house to get away from pizza flyers.

As someone who uses email rather for work as well, one of the greatest
failings of email is that you just don't know if anyone has read it or
not. You send a letter, you send a fax, people treat this stuff
seriously and in the latter case you get a delivery report and know
they have a paper hardcopy.

People just ignore email and that's such a huge problem that it makes
email useless and forces you to interrupt people by telephoning. This
is a real problem, only certain types of people are happy to conduct
business on the phone and that's an inefficient communications
mechanism at best, being real time and relying on how good people are
at making sure the salient points are all covered.

I think there's lessons to be learnt in the take up of instant
messenger clients. I have no idea how one combats the momentum of
email but at least the instant messenger clients managed to get
installed and find wide use.

Likewise a new email system where it was possible to see delivery
status and see visual, perhaps automatic, status responses to your
email. Having a proper binary transport mechanism that doesn't base86
encode to squeeze 8-bit data into legacy systems wouldn't hurt. But
ultimately some sort of third party mediation may be required just to
authenticate senders and receivers (and clients, since undoubtedly
some will want to override the 'features' which made such a system
attractive in the first place) - that'd be the only true defence
against spammers.

Regards,

Mat.


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: I've had it with email.

2002-07-29 Thread Mat Bettinson

Hi Charles,

 I think there's lessons to be learnt in the take up of instant
 messenger clients. I have no idea how one combats the momentum of
 email but at least the instant messenger clients managed to get
 installed and find wide use.

Charles Getting a shy off topic, I have to disagree there.

I'm not sure what you're disagreeing with exactly. All I said was
there are lessons to be learned from them, I didn't advocate them
blindly nor did I claim they were spam-proof at any stage.

The point I was trying to illustrate was that instant messenger
clients have demonstrated that if a communications system offers
something they need above existing standards, then they can still take
off and become a big thing.

Charles Another problem with IM clients is like phone - you *have* to
Charles deal with the person *now*, or ignore them.

Well I agree it's a problem but it's also a feature and pretty much
why people took to them in the first place. It's a sort of point to
point IRC system. I use MSN Messenger as I find it a fairly light
weight solution that just works. On the other hand, I've turned off
all the 'display alerts' on events stuff to get around being
interrupted.

Charles Email, you can get to it when you have time.

Or not at all. Or they forget. Etc. E-mail with a built-in bugging
system would be quite nice in fact, I guess that's more of a client
issue. I know I'd like my client to bug me that I haven't replied to
stuff. Forcing the issue, delete it, mark it to ignore deliberately or
get reminded to reply.

Of course even if I did that, no one else would use the same system.

Charles Instant messaging leaves a lot to be desired, and I do not
Charles believe should be used as an example of how things should be
Charles done.

Neither was I putting it forward as such, oddly enough.

Regards,

Mat.


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Rebol channel on IRC

2002-07-11 Thread Mat Bettinson

Hi Boleslav,

Boleslav BTW, is there some REBOL IRC client?
Boleslav Or at least protocol?

Protocol might have been nice but it's simple enough with Rebol's TCP
handling. I've written an IRC bot in Rebol. Actually, probably the
most feature-rich IRC bot the world has ever seen given I've been
adding stuff to it for absolutely ages and it's so easy in Rebol. :)
And I actually do it, believe it or not, by opening a TCP/IP socket
and reading in line mode. No fancy buffering, nothing and it works
perfectly.

However someone else wrote a bot which was in 'better' Rebol than mine
(I'm still a crap programmer), particular in the way it handled the
low level stuff. It also did all the sort of channel police type
things where as mine is purely an Infobot. It's also a million times
more suitable for looking at the code than mine is :)

I can't recall who did it, perhaps they'll pipe up now.

Regards,

Mat.

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Block manipulation: help!

2002-06-13 Thread Mat Bettinson

Hello folks,

Here's another newbish type question. I've never really gotten my head
around block/series manipulation in Rebol. As a result of this my code
is full of silly hacks that keep building temporary data structures to
get the results I want.

I was hoping that someone may help my cog drop into place so I can
write some decent Rebol at last.

Here's a typical problem;

Let's say we have a file which is full of cars and the colours they
are available in;

Saloon Red
Coupe Red
Coupe Yellow
Pickup Truck Red
Pickup Truck Yellow
Pickup Truck Orange
Pickup Truck Blue

Now what if I want to scan through this file and build up a list of
cars but then just state which colours they are available in after in
the structure. I'll assuming an elegant format is this;

FinalData: make block! [
   Saloon [Red]
   Coupe [Red Yellow]
   Pickup Truck [Red Yellow Orange Blue]
   ]

So, reading the file is easy enough.

CarLines: read/lines %file

foreach CarLine CarLines [
  Car: pick (parse CarLine none) 1
  Colour: pick (parse CarLine none) 2
  ;
  ; ???
  ;
  ]

The question is, how do I create final data? I can do a find on the
FinalData to see if a car is there already. But all this does is
return the data after. I've always been puzzled about the lack of a
word/function to return the position in a series/block of a find,
if found.

So anyhow, here's the best I can think of;

either found? find FinalData Car [
  ; Already have an entry for this car...
  ; Select at least allows retrieving of the block following our
  ; found element easily...
  ;
  existingcolours: select FinalData Car
  ;
  ; Great so add the new colour to the existing colours
  ;
  append existingcards Car
  ;
  ; But how do we poke it back? We don't have a position to do a poke?
  ;
  
  ][
  ;
  ; Plug in the new car, plug in the block which has the colour in it
  ;
  append FinalData Car
  append FinalData reduce[reduce[Colour]]
  ]

I don't really understand the block navigation issues to solve this
problem or to somehow poke more data in without having a position.

As usual any stupid stuff I've missed and elegant solutions
gratefully received.

Regards,

Mat Bettinson

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Encoded lines in email, parsing/decoding in Rebol?

2002-04-30 Thread Mat Bettinson

Folks,

I got this parsed out of an E-mail as a name. Manually, of course,
since import-email doesn't save the real name.

=?ISO-2022-JP?B?GyRCTlM4NhsoQiAbJEJNNUc3GyhC?=

This appears to be a Japanese name specified on the From: line with a
Japanese character set. I didn't even know you could do this!

For my application I need to display the name on a web page, which is
fine my HTML will select the right character set. But does anyone know
how to turn the above into the real sequence that will be printable
into a HTML page?

Regards,

Mat Bettinson

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: local vars in functions

2002-04-24 Thread Mat Bettinson

Hello Gregg,

GI UNFREEZE context
GI extend context
GI FREEZE context

Actually it would have felt a bit more intuitive for me to actually
specify variables that were global, and not mention variables that are
local specifically. If only because the way I code that would have a
hell of a lot less behind /local :)

Anyhow, I appreciate this isn't going to happen and it's no big deal.

Regards,

Mat Bettinson

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] import-mail

2002-04-22 Thread Mat Bettinson

Folks,

import-mail doesn't actually extract the name from the From: header
field or am I missing something?

Regards,

Mat Bettinson

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Trouble using Rebol/view as a CGI bin

2002-03-28 Thread Mat Bettinson

Folks,

I'll try again to see if anyone has any ideas what could be the
problem here.

I'm using Rebol/command and Rebol/Core just fine in Xitami as a CGI
application for my scripts. Great.

The problem is that one script needs shell access so I need to use
Rebol/view/pro since there's no core/pro. However when Xitami launches
it, absolutely nothing happens. The Rebol tasks is running, I can see
it in the task manager. No work gets done, no GUI appears, eventually
it times out and Xitami kills the task.

The obvious thing would be for Rebol/view to be trying to open a GUI
to get configured. However that just doesn't appear to be the case. I
can drop to the consol and invoke Rebol/view with the -cs switch and
it gracefully starts and exits just as you'd expect.

I'm at a loss to explain this behavior. Has anyone got a suggestion on
what I might to do track down the problem?

Regards,

Mat Bettinson

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Rugby/firewall question

2002-01-18 Thread Mat Bettinson

Guys,

Thought I'd take a look at Rugby to find out what the fuss is about.
It looks quite cool and I can think of some applications.

However I have a showstopping problem.

 test remote function ahoy!
** Access Error: Cannot connect to 192.168.0.2
** Where: rexec
** Near: open/no-wait/direct dest
write-msg msg dest

The key bit here is the ip. That's not a real ip, the server is
behind NAT. It is however the dirty-net of the firewall so a request
to the IP will work.

However I need to get rugby to report some other IP to connect to
rather than the bogus real/local IP which it has sent to my client.

Is this something where I'm going to have to get my hands dirty with
Rugby itself?

Regards,

Mat Bettinson
Codeplay

Tel: +44 (0)20 7482 3382
140-142 Kentish Town Rd, London, NW1 9QB
http://www.codeplay.com

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Rugby/firewall question

2002-01-18 Thread Mat Bettinson

Hello Maarten,

MK The simplest way would be for you to create your own stub functions set
MK using rexec or sexec using the correct ip addresses.

Excellent, cheers for the pointer. I'll check it out.

Regards,

Mat Bettinson
Codeplay

Tel: +44 (0)20 7482 3382
140-142 Kentish Town Rd, London, NW1 9QB
http://www.codeplay.com

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Rebol/view as a CGI app

2002-01-10 Thread Mat Bettinson

Hello Andrew,

AM It sounds like your rebol installation is bad. I think that Rebol/View
AM doesn't like being called %rebolcmd.exe. It's probably trying to install
AM itself when called by Xitami?

No, that's now what I have done. The command line I quoted works;

#!C:\Rebol\rebolcmd.exe --cgi -s

This really IS Rebol/Command. The above also works if I use just plain
rebol.exe, IE Rebol/Core.

What does NOT work is if I do ANYTHING like the following;

#!C:\Rebol\view\rebol.exe --cgi -s

This just doesn't work. It hangs. Doesn't matter what switches I use
either, I've tried dozens of combinations. I can run the exact path
and my Rebol/View just goes straight into the console and doesn't try
to install itself with the nasty pop up GUI thing.

AM If you want to run Rebol/View and Rebol/Core at once, consider doing what
AM I've done, which is to have one directory, like:
AM %/C/Rebol/
AM with two subdirectories, inside it like:
AM %/C/Rebol/View/
AM and:
AM %/C/Rebol/Core/

I just leave Rebol/Core and Rebol/Command in the %/C/Rebol/ dir.

AM Then put Rebol/Core in it's directory and Rebol/View in it's directory.
AM Then check them out to make sure that both work OK, then try them out again.

They all work, I'm not a complete fool. :)

AM Be sure that the REBOL_HOME variable in your autoexec.bat file is changed
AM and that you've rebooted your system. The end result is two Rebol
AM executables which are at:
AM %/C/Rebol/Core/Rebol.exe
AM and:
AM %/C/Rebol/View/Rebol.exe
AM Then in the %/C/Rebol/ directory, you can store your Rebol scripts and
AM it's all tidy and so on.

I didn't know about the REBOL_HOME var actually. Not that it appears
to matter much. I have Rebol/view (pro) registered in the system to
execute scripts without security etc. It works well.

AM I hope that helps! If not, please let me know, or email the list?

The only solution I can think of is to work out what the hell is
happening with Rebol/View when I'm calling it.

Regards,

Mat Bettinson
Codeplay

Tel: +44 (0)20 7482 3382
140-142 Kentish Town Rd, London, NW1 9QB
http://www.codeplay.com

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Rebol/view as a CGI app

2002-01-10 Thread Mat Bettinson

Hi Andrew,

AM You do know that Rebol/View's %User.r and %Rebol.r are different from
AM Rebol/Core's %User.r and %Rebol.r, don't you? It sounds like you've got all
AM the rebol versions using the same versions of these files.

Well not exactly. Rebol/core and Rebol/command are using the user.r
and rebol.r in C:/Rebol/ but Rebol/view uses the files in
C:/Rebol/View/ because that's where's it's installed. Now Rebol/view
when you set it up IE run it for the first time, appears to set up
it's path independently. I'm not sure where, but it works and it's
installed and I don't have to touch it to run scripts. So I fail to
see why it just hangs when called as a CGI app from Xitami.

 I didn't know about the REBOL_HOME var actually.

AM It's recommended to be put into autoexec.bat for Rebol/Core.

I've never needed it on any machine to date.

AM On Windows 95+ systems, edit the C:\autoexec.bat file and add a line such
AM as:

This is a Win2K box.

AM I hope that helps!

Not really but I'm somewhat past caring, the old rebol/command appears
capable of running the scripts I need so I guess I'll have to keep
using that ;)

Regards,

Mat.


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Style R flavour checker ;-)

2002-01-09 Thread Mat Bettinson

Hello,

I'm trying to get Rebol to work with Xitami. I've actually done it
before but the box suffered a melt-down. I'm not really interested in
doing anything fancy like that fast-CGI type implementation. I just
want to do some very simple stuff such as you see in the script
library.

Anyone know exactly what you do? I've tried a load of different
things.

Regards,

Mat Bettinson
Codeplay

Tel: +44 (0)20 7482 3382
140-142 Kentish Town Rd, London, NW1 9QB
http://www.codeplay.com

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Rebol/view as a CGI app

2002-01-09 Thread Mat Bettinson

Hello Mat,

Firstly sorry for not changing the subject.

MB I'm trying to get Rebol to work with Xitami.

Turns out what I was doing wrong was trying to use Rebol/view. This
just doesn't work at all. Rebol/core does of course. However I needed
the shall command so I've had to use the ancient Rebol/command I have.

I assume this is desired behavior and --cgi is disabled on Rebol/view
in some unfathomable marketing/product positioning decision?

Regards,

Mat Bettinson
Codeplay

Tel: +44 (0)20 7482 3382
140-142 Kentish Town Rd, London, NW1 9QB
http://www.codeplay.com

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] How to get a redirected url?

2001-11-22 Thread Mat Bettinson

Hello,

If you have a URL that redirects somewhere, how can you tell where it
is redirecting? IE obtain the URL where you are being redirected.

If you read it, Rebol will display two connecting to: entries in the
console and returns the redirected page but that doesn't help the goal
above.

Regards,

Mat Bettinson
Codeplay

Tel: +44 (0)20 7482 3382
140-142 Kentish Town Rd, London, NW1 9QB
http://www.codeplay.com

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Block/array manipulation

2001-10-15 Thread Mat Bettinson

Folks,

Here's a simple thing which I've needed to do quite a bit of, but
couldn't quite figure out how you'd do it in Rebol so tended to do
things the long way.

Let's take a block of stuff;

Stuff: make block! [fire water air water water air]

Now the object of the excersize is to to build block with all of the
unique values. That bit is easy;

foundstuff: make block! []
foreach bitofstuff stuff [
  if found? find foundstuff bitofstuff [
append foundstuff bitofstuff
]
  ]

After this, all of the unique values are loaded into the 'foundstuff'
block.

The question is, say I wanted to do this but count each instance of
the words as they are subsequently found? IE I could somehow tell that
water was found 3 times and air was found twice.

This is where my rudimentary grasp of Rebol fails me. :)

Regards,

Mat Bettinson
Codeplay

Tel: +44 (0)20 7482 3382
140-142 Kentish Town Rd, London, NW1 9QB
http://www.codeplay.com

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: simple editor for rebol

2001-05-07 Thread Mat Bettinson

Heya CPN,

CPSSCCC I would be glad if you could keep me informed of the course-monography (I
CPSSCCC don't know if it's the right English word for it)

Two words for the content of a class/school subject etc;

syllabus
and
curriculum

In old matters of schooling, English frequently falls back to Latin :)

I believe the former applies more to a single course instead of an
overall content for a school year or or something like that for the
latter.

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Call - setting current directory

2001-04-20 Thread Mat Bettinson

Heya Michal,

MK you can set it directly from REBOL, you don't need a .bat file:

 change-dir %"/C/Program Files/Microsoft Office/Office"

Good lord, I didn't know that. Cheers!

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: View-Pro 1.1 available for more platforms

2001-04-19 Thread Mat Bettinson

Heya Holger,

Carl said;

 That said, even when running on Workbench you see 4megs of memory
 dissapear by just launching the calculator

Hehe. You should render view in a MUI window, just to piss the Amiga
die-hards off even more :)

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Can I Ping in REBOL?

2001-04-17 Thread Mat Bettinson

Heya Geraint,

GJ Now to the problem I have: I am a Computer Technician for a
GJ college in the UK and the Network Administrator here wants to
GJ write a CGI Ping tool.

No. RT hath decreed that there is no use for ICMP in Rebol. So we've
had to use other languages for that task.

GJ will another language do it?

Certainly.

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Can I Ping in REBOL?

2001-04-17 Thread Mat Bettinson

Heya Geraint,

GJ Thanks for the response, but since Perl can't use ICMP without being logged-in as 
the root user and it won't
GJ work properly with other protocols, which CGI language can we use to ping our own 
server periodically where
GJ security is an issue? Or is it possible to code our own ICMP functions in REBOL or 
Perl, and if so, how (bearing
GJ in mind that I am an amateur REBOL programmer but the Network Administrator here 
is fluent in Perl)?

You could always use Rebol/view/pro and call an external application
to do the pinging?

I wrote a whole load of game server polling stuff in Rebol (UDP
funkiness) and then found someone had written a command line
application that did just about every game server under the sun and
also had a funky raw output with your own delimiter chosen.

Threw out all my code and slapped that in. It's currently running
under Rebol/Command but I've just bought view/pro so I'll probably run
that as my other network stuff doesn't work properly under /command.

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Compression

2001-04-17 Thread Mat Bettinson

Heya Paul,

PT Imagine with 400 byes of compressed data (representing a gig or
PT more) what this could mean to handheld devices like portable mp3
PT players or digital cameras. The capablity to store your entire mp3
PT collection in a portable device.

Is it especially good crack where you come from?

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Compression

2001-04-17 Thread Mat Bettinson

Heya Paul,

PT Actually I expected that kind of remark. :)  I also expect more of the same
PT and looked in the mirror several times asking similiar questions.

Don't worry, the effects wear off after awhile.

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Compression

2001-04-17 Thread Mat Bettinson

Heya Paul,

PT I tried talking to math professionals looking for an answer but
PT couldnt get one.

None of them explained the laws of entropy to you then?

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: View/Pro now available.

2001-04-11 Thread Mat Bettinson

Heya Rishi,

RO I don't suppose the key for rebol/view/pro works on
RO all platforms. Is it $49 per platform? Or does $49
RO cover all platforms...in that case i'd pay...

Be a bit of a bargain then wouldn't it! Bloody nice you get the shell
stuff in it for $49. Now for the first time I'm actually looking at
view as something I might want to use.

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: View/Pro now available.

2001-04-11 Thread Mat Bettinson

Heya Holger,

HK $49 for all platforms. The order page does not ask which
HK platform you have, so the same key works on all platforms.

Sold!

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Buffered file reading

2001-04-06 Thread Mat Bettinson

Hi Guys,

I'm making a sort of batch URL mover in Rebol. It will take it's
commands via E-mail and download files from the net and upload them
where specified.

Naturally we need to use some sort of buffered scheme. I asked about
this before and drew a blank but then I found this document on
rebol.com: http://www.rebol.com/docs/network.html

Take a look at the following extract;

-- Cut --

Transferring large files requires special considerations. You may want
to transfer the file in chunks to reduce the memory required by your
computer and to provide user feedback while the transfer is happening.

Here is an example that downloads a very large binary file in chunks.

inp: open/binary/direct ftp://ftp.site.com/big-file.bmp
out: open/binary/new/direct %big-file.bmp
buf-size: 20
buffer: make binary! buf-size + 2
while [not zero? size: read-io inp buffer buf-size][
write-io out buffer size
total: total + size
print ["transferred:" total]
]

-- Cut --

Well no, that code obviously wont ever work. (total not initialised)
But it's probably close.

The odd thing is that it only transfers about 20 and I'm not sure
why that would be. It only seems to read a few K at a time and I've no
idea why size would be zero when the magical number of 20 is hit.

Any ideas?

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Buffered file reading

2001-04-06 Thread Mat Bettinson

Heya Mat,

MB inp: open/binary/direct ftp://ftp.site.com/big-file.bmp
MB out: open/binary/new/direct %big-file.bmp
MB buf-size: 20
MB buffer: make binary! buf-size + 2
MB while [not zero? size: read-io inp buffer buf-size][
MB write-io out buffer size
MB total: total + size
MB print ["transferred:" total]
MB ]

Actually, I got this working;

  inp: open/binary/direct ftp://ftp.site.com/big-file.bmp
  out: open/binary/new/direct %big-file.bmp
  buf-size: 20
  buffer: make binary! buf-size + 2
  total: 0
  while [not zero? size: read-io inp buffer buf-size][
write-io out buffer size
clear buffer
total: total + size
print ["transferred:" total]
  ]
  close inp
  close out

This works. The notable difference being the clear buffer, which was
actually just a guess from me since I don't really know what it does
other than resetting a pointer.
  
-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Parse doing weird things...

2001-03-19 Thread Mat Bettinson

Heya,

While I'm at it;

I've noticed this issue repeatedly in my data mining scripts. The
parse command sometimes just will not work with the following format;

webpage: read http://www.yaddayadda.com
datamine: make string! ""
parse webpage [thru "something" copy datamine to "somethingelse"]

In the vast bulk of cases it works but right now I'm sitting in my
Rebol console with a bag load of HTML fragment in a variable and parse
turns up false every time. Now the rules DO match the content in the
html!

Specifically;

parse tmp/content [thru "Etymology:" copy DictEnty to "br"]

Here's everything I've tried that I can remember.

tmp/content comes from HTTP-TOOLS and I've tried loading it into
another variable, no luck.

Etymology: *does* exist. If I put 'to end' instead of the br tag
then it parses true. Find also turns up Etymology as well.

It doesn't appear to matter WHAT I put in the quotes at the end. IE I
can hunt for a couple of plain letters that are in the string directly
following Etymology. It doesn't appear to make any difference that
this is a tag.

Finally, all of this worked before and now it doesn't. In the past to
cure this random parse blowout, I've had to cut down on the data I'm
trying to parse.

All of the above leads me to think there is some sort of restriction
to how much data can be parsed before some sort of
feature/limitation/bug is run into.

Anyone seen this before? Comments?
 


-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Shell access for Rebol, was: zip file support

2001-03-19 Thread Mat Bettinson

Heya Jamey,

JC Again, RT has the right to do anything they want with Rebol.  Unfortunately, 
JC programmers have the NEED to get their jobs done.  I have already been forced 
JC to scrap one application I was writing for work in Rebol and re-do it in 
JC Tcl/Tk.  Tcl allowed me to do the vital shell access I needed.

I'd just like to add here that I'm going to side with the school of
thought on Core having some sort of shell access.

I've thought a bit about why RT are doing it the current way and I can
see the benefit in having platform independence 100% with Core as it
stands. However to my mind that's just 'nice' balanced against
something which Rebol could *really* use to get a nice hook into the
hobbyist as well as the professional development sectors.

I believe there is a niche in a lovely little language like Rebol
being able to do things on the PC rather like folks used to do things
on the Amiga with Arexx. A powerful, easy to use language that
ultimately had shell access. I know how good it could be because I
have it in Rebol/Command and it's astoundingly useful.

I think there's more than enough differentiation with Rebol/Command
having direct DLL and ODBC access for the higher end developers.
Ultimately a higher user-base would benefit RT more than the
commercial exploitation of Command to those just wanting shell access.

I think we all know folks that have run off to do things in Perl or
TCL purely because they couldn't do things with Rebol. I think this is
a great shame. I've done some amazing things to make my friends and
colleagues go "Oo, I didn't know you were a ninja programmer". Yet
I'd have a hard time evangelising it as it currently stands.

Which is a shame. I like to evangelise things like Rebol because
they're speechlessly cool. But this is a holding it back for much
useful applications and a wider acceptance imo.

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Parse doing weird things...

2001-03-19 Thread Mat Bettinson

Heya Mat,

MB All of the above leads me to think there is some sort of restriction
MB to how much data can be parsed before some sort of
MB feature/limitation/bug is run into.

So I tried to fix this myself;

 parse copy/part find tmp/content "Etymology:" 256 [thru "Etymology:" copy DictEnty 
to "br"]
== false

The above line should limit the parsing to a 256 character length
string starting from exactly where we were going to 'thru' to anyhow.
It *still* doesn't work.

I mean look for yourself!

 print copy/part find tmp/content "Etymology:" 256
Etymology:  
Portugueseipeatilde;o/iamp;Frenchipion,/ifromMedievalLatinipedon-,pedo/ifootsoldier--moreatahref="dicti
onary?book=Dictionaryva=pawn"fontsize="-1"PAWN/font/abrDate:  
1609brb1/bb:/banyofvariousworkersinIndia,SriLa


There's the Etymology: and there's the goddamn br! Why the hell
doesn't it work?! Argh!

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Parse doing weird things...

2001-03-19 Thread Mat Bettinson

Heya jelinem1,


jnc If the problem really is that you are looking for a TRUE return from
jnc 'parse, then the explaination is simple. 'parse will return TRUE only if it
jnc can successfully match the entire string according to the given rules.
jnc Placing "to end" as your final rule should give you the result you desire.

Hmm OK, but it always appeared to return true if it worked. IE there's
the correct value loaded into the var. When it returns false, I
generally get nothing.

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: ftp question

2001-03-15 Thread Mat Bettinson

Heya ryan,

rcic When you use REBOL's built-in FTP protocol, does it send a "bye" command
rcic when it is finished downloading? Or does it just let the FTP connection
rcic time out?

It hangs around for ages on the offchance it might get reused.

I find quite a lot of the FTP behavior quite annoying but Holger wrote
a mail saying why that was all good and so that was that :)

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Ping?

2001-02-09 Thread Mat Bettinson

Heya Holger,

HK Ping is
HK a useful diagnostic tool for net admins, but IMHO has no place in applications
HK or scripting.

Recent application requirement. Ping a load of DSL routers and report
on their status as being up or down. Output to a web page etc.

I thought Rebol, realised it didn't do it. Someone else did it in
another language. No money for me.

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Ping?

2001-02-09 Thread Mat Bettinson

Heya Chris,

C Why not try connecting to a well-known port? auth is often visible even
C through firewalls and AFAIK most systems will allow connections to auth
C - if the connection is made then you know the server is there...

Regular NAT-enabled DSL in the UK provided by British Telecom does
not. Some people have SMTP servers, ftp ports etc but there is no port
you can guarantee. Even telnet, oddly.

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: REBOL Books

2001-01-23 Thread Mat Bettinson

Heya Elan,

E I take it that you mean to make a distinction between a critique, and
E offering your advice. I don't see why this distinction would have any
E relevance regarding the statements you make about my book.

Tim said my earlier post was a critique, it wasn't. This post you replied
obviously was.

 Chapter 1. The Rebol Programming language (because you didn't know
 before you bought the book apparently)

E Thank you. You are very smart! This is part of advice, not of critique,
E yes?

Ahh, I see you've taken this to heart and are charging in blindly in
defence of your book. Why did I get into this? sigh

Tim claimed this book was for an advanced user and I'm replying. Had
you read the thread you would see this - obviously my statements are
not news to you. I said it was not for the advanced user and you are
seemingly agreeing with me. I've covered the critique thing. I notice
you don't quote my line at the end saying "Is that a better critique?"
:)

 Chapter 2. Installing Rebol (yes it's that hard)

E Perhaps not for you.

I would hardly describe myself as an advanced user. I had no problem
with these sections - you are taking my comments out of context.

 Now in *my* opinion there's no way you'd use Rebol for coding a
 database anyhow - it's just not suitable for that sort of thing. 

E Now is *that* so? I guess that's "*my* opinion", is it? Did you EARN the
E starts you use to point at yourself?

I assume this lost something in the typing. I can't exactly see how
you can find fault with me offering an opinion and making it clear
that it is only that. It's probably just easier to call me an arsehole
:)

 It's not a bad book at all, it just wont suffice as an only book.

E shrug It depends on your needs. If it's only going to be one book,
E then I'd say it's a pretty good choice. But, in all fairness, as its
E author, I may be a little biased.

Well quite, so I rather hoped you'd be a little more level headed
about my opinion on the matter. After all I paid cash for it.

To be perfectly frank, I fear for anyone after advice here on what
book(s) to get. IMO it's not optimal having the author's prowling the
list trying to skew the third-party opinion.

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: REBOL Books

2001-01-22 Thread Mat Bettinson

Heya Tim,

TJ I must respectfully differ with Matt's opinion here. His opinion provides
TJ *no* real information as to the content of Elan's book, nor does he do
TJ any credit to the enormous amount of work that went into it.

shrug I wasn't writing a critique. I was writing a recommendation on
what books I think he should buy in order to best learn Rebol.

TJ If you want to learn how to put together a distributed database system
TJ using rebol , AND learn rebol at the same time -  this is for you. But
TJ it will take some time, and is for the serious student of both rebol AND
TJ database programmer.

Well that's true. However it says Rebol the Official Guide on the
cover. It doesn't say Rebol and Distributed Databases. I guess that's
what annoyed me. It has skimpy documentation of network protocols,
pretty much no reference section at all which as an 'Official Guide' I
would have thought mandatory. I bought this before that User Guide PDF
became available.

IE when I wanted to know about X in Rebol, I flipped to the index and
tried to look it up and more often than not it wasn't there at all.

TJ "Rebol the Official Guide" is a book for the advanced and needs advanced
TJ discipline. "Rebol for Dummies" may be for the less adbanced.

The official guide is for the advanced? Now it's my turn to
respectfully differ.

Chapter 1. The Rebol Programming language (because you didn't know
before you bought the book apparently)
Chapter 2. Installing Rebol (yes it's that hard)
Chapter 3. Taking the First Steps (which includes such classics such
as 'Loading Rebol under Windows' and 'Using Print')
Chapter 4. Rebol Basics (etc et etc)

It reads like a highschool guide to BASIC (along with how to complete
your first project) quite frankly. Granted the entire sections on
handling data are good, well that's basically the bulk of the book.

Now in *my* opinion there's no way you'd use Rebol for coding a
database anyhow - it's just not suitable for that sort of thing. What
it *is* good for is advanced data mining of the Web and utility
scripting etc especially the native net support. That's not catered
for very well here at all.

IE it doesn't even tell you how to delete a mail from a pop3 box
except to say that you need to use low-level port functions to do it.

It's not a bad book at all, it just wont suffice as an only book.

Is that a better critique?

TJ If I were to make a recommendation to some who wished to earn money
TJ with rebol, then I would recommend both books above, as well as the
TJ PDF and this mailing list.

Fair comment. For an enthusiast, I recommend Rebol User Guide and this
mailing list and possibly the Rebol for Dummies as the CGI section
example on rebolpress looks good.

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: REBOL Books

2001-01-21 Thread Mat Bettinson

Heya Robert,

RP  Is it better/worse/same as :

RP Rebol : The Offical Guide

Recommend you skip this, it's nasty. The guide you can get in PDF is a
million times better. More of a reference guide, I suppose, but this
is basically what you need in conjunction with snooping readymade
scripts.

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: script library on rebol.com vs rebol.org

2001-01-17 Thread Mat Bettinson

Heya Graham,

GC The more the merrier.  

I'd settle for one that was updated.

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: IRC BOT

2001-01-03 Thread Mat Bettinson

Heya Paul,

PT I know this issue has come up alot with people wanting to create
PT an IRC BOT with REBOL. I have made substanial progress in making
PT one. Now I would like to make it a full fledge project with help
PT from everyone.

I wrote a fully functional one. It's an info bot though, I can't be
bothered doing channel enforcement stuff when Eggdrop does that fine.

Your stuff to do with multiple servers and reconnection etc sounds
pretty good - I do REALLY basic stuff on that front. I find my DSL and
the IRC server I use pretty damn reliable just to retry the same one.

PT What I want to next is expand this bot even greater as I got alot
PT of ideas for it. I would like the initial interface for starting
PT the bot to be in /View gui.

I'm utterly uninterested in a GUI for an IRC bot. It doesn't need one
and I'm not happy with the situation with Rebol/view anyhow.

PT I would like it to become more compatible with other irc clients -
PT Dword limit problem mentioned earlier. I would like someone very
PT familiar with eggdrop to provide input as well.

Look at the Eggdrop source? It's only done in TCL.

PT all conversation in a channel. I will be making alot of error
PT function corrections as well to get much better error handling.

That stuff sounds useful for me.

PT Anyone looking to volunteer to join me and a few others in this effort?

Well I can give you a WHOLE LOAD of nifty functions that I added into
mine. Stuff like translate based on Bablefish. Ping, whois functions.
Dictionary lookup function. Expression Calculation. E-mailing and SMS
gatewaying complete with a CGI script which manages the users of this.
Tagline telling, joke telling (another site), BBC news headlines,
country TLD lookup. Google web search (the most useful by far!) and
FTPsearch (Lycos). I've even got Half-Life game server polling stuff.

All in my quick and dirty ultra-fast code - nasty as hell but they
work.

I'd like to rework by bot's error handling stuff so maybe we can work
something out to share code. Heh, if anyone can stand the sight of
mine :)

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Evaluating a maths expression in a string?

2000-12-29 Thread Mat Bettinson

Hello,

I was just thinking of adding another function to my IRC bot. A
mathematical evaluation expression.

The question is, if I get a string which contains a mathematical
expression - how would you evaluate this and get the result?

Of course some form of error? try [] would be involved in case
something went wrong...

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Evaluating a maths expression in a string?

2000-12-29 Thread Mat Bettinson

Heya Ryan,

RCC Here is something to get you started...

 expression-string: "2 + 2"
RCC == "2 + 2"
 do load expression-string
RCC == 4

Mmm quite obvious really.

expression-string: "2 / 0"

either error? try [expresult: do load expression-string] [
  Print "Bum expression man, get some skillz!"
  ][
  Print rejoin ["The result was: " expresult]
  ]

Sweet!

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Evaluating a maths expression in a string?

2000-12-29 Thread Mat Bettinson

Heya Mat,

MB Mmm quite obvious really.

MB expression-string: "2 / 0"

Next stage, it's natural for folks to enter expressions without white
spaces. As rebol is a somewhat human illogical white-space sensitive
language - this must be worked around.

I was thinking, the easiest hack might be to replace +,-,* and / with
" + ", " - ", " * " etc

Sure it's going to result in redundant spaces if they DO put in spaces
but it should work no?

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Evaluating a maths expression in a string?

2000-12-29 Thread Mat Bettinson

Heya Larry,

 either not error? try[result: do str][result]["code to handle error"]

I've just realised the fatal flaw with this approach. Since I allow
user input to my evaluation string - there's nothing to stop them
typing out rebol code.

Security issue to say the least!

I suppose I could filter to make sure there are only characters that
fit a character set of "0123456789+-*/()" - that might do it?

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Evaluating a maths expression in a string?

2000-12-29 Thread Mat Bettinson

Heya Mike,

MM Following is a calculator in Rebol/View that encountered some of the same 
challenges discussed in this thread - evaluating mathematical strings, 
MM negating, enforcing the separation of tokens with spaces.  It might be of interest 
 or not.

I'm sure it will be! Could you just give us a URL for that, Listar ate
the file attach.

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Network printing

2000-12-19 Thread Mat Bettinson

Heya bo,

brc Some network printers support the FTP protocol.  Perhaps this would be a
brc good method to try.

Don't they operate out of a spool dir? Or at least Epson stuff does.

You could set up FTP and FTP into the spool dir I suppose?

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: creating blocks

2000-12-16 Thread Mat Bettinson

Heya Graham,

GC I have some text with newlines etc that I want to convert to
GC a block of lines.  I could just write it to a temporary
GC file, and then do a read/lines on it, but presumably there's
GC another way ...

Heh, I asked that one didn't I.

parse/all text "^/"



-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Remove quote marks LEFT(), RIGHT() ?

2000-12-16 Thread Mat Bettinson

Heya Donald,

DD Yes, I wanted to use TRIM/WITH, but I didn't see a docs/example of how to do
DD it with escaping a quote mark, until later.

Along these lines, is there a super elegant way to strip off leading
and/or trailing spaces from a string? IE not knowing if they exist
etc.

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Rebol and FTP (recursive stuff in particular)

2000-12-14 Thread Mat Bettinson

Hi folks,

I'd like to write a backup script that backs up the files on an FTP
site. This because my cheap mass hosting has already dumped
everyone's files. :-/

Anyhow, there's no shortage of recursive directory routines lying
around the place. Unfortunately they don't work with web sites. The
reason for that being that Rebol appears to keep trying to open fresh
FTP sessions every time you reference a URL - even if there's a
current session logged into the same site. This seems like stupid
behavior given it doesn't logout any of these threads either.

The solution, I suppose, is to do a low level port-based FTP client
type function that operates intelligently.

I'd really rather not do that!

Does anyone have an idea how to try get the high-level FTP stuff in
Rebol not to be so stupid?

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Rebol and FTP (recursive stuff in particular)

2000-12-14 Thread Mat Bettinson

Heya Holger,

HK No, REBOL caches and reuses the FTP control connection across
HK subsequent accesses to the same host and directory.

But doesn't actually close any. Is there a way of forcing them closed?
How are you supposed to implement some sort of recursive system with
high-level FTP when Rebol tries to open as many threads as their are
directories? Clearly the concurrent user limit for the site will be
hit, to say nothing of the fact this is not efficient to say the
least.

HK A new data
HK connection has to be created for each file being transfered. That
HK is not a limitation of REBOL, but rather a requirement of the FTP
HK protocol.

Indeed, but it's the control connection which is limited on servers.

HK The only situation when REBOL creates a new control
HK connection is when you change directories. That is necessary because
HK FTP provides no standard way to remotely navigate through the
HK directory tree (in particular up the tree) without side effects.

What, other than cd .. ? I don't get it.

Assuming for a second that I buy this argument, and I'm really not
sure I do, then how would you recommend a recursive directory scan be
implemented in Rebol?

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Rebol and FTP (recursive stuff in particular)

2000-12-14 Thread Mat Bettinson

Heya Deryk,

 Assuming for a second that I buy this argument, and I'm really not
 sure I do, then how would you recommend a recursive directory scan be
 implemented in Rebol?

DR You being The Fingers dare doubt the knowledge of The Holger? tsk ;)

Hehe, I removed my brackets "(and I'm sure I'm being deeply foolish in
the process)" :)

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Rebol and FTP (recursive stuff in particular)

2000-12-14 Thread Mat Bettinson

Heya sterling,

src If you are seeing different results... like multiple command ports
src open to the same host, please send as much info as you can into
src feedback as a bug report so we can track down the problem.

If we've established that this is not the proper behavior then
absolutely, I can confirm that it does happen and that I can
demonstrate it.

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Rebol and FTP (recursive stuff in particular)

2000-12-14 Thread Mat Bettinson

Heya Holger,

HK I'll double-check with Sterling, but AFAIK current experimental versions
HK do close the control connection first if another connection to the same
HK host has to be opened. At least that is the behavior I get here. Which
HK version are you using ?

Command, generally.

HK "cd .." does not work if a component in the path is a softlink. E.g. if
HK you have just read "/foo/" and next want to read "/bar/" then "cd .."
HK does not always get you back to "/", because "/foo" might actually point
HK to "/a/b/c/d/", and then "cd .." would only get you to "/a/b/c/".

Yes, I had a good think about it. I see what you mean. It's a real can
of worms. FTP clients even have work-arounds for different servers and
operating systems.

HK "cd ~" works on some servers, but not all, "cd /" works on some servers, but
HK not all :-).

If it supported a couple of the main ones (ServU, IIS, ProFTP etc) -
this would be a start.

 then how would you recommend a recursive directory scan be
 implemented in Rebol?

HK Just do a sequence of reads. 

Well that's the point, it wont close the threads and you get some
arcane internal error the instant your connection is refused because
of too many users logged on. Rather like that internal error FTP
writes started making for no good reason on Serv-U after day or so...

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Enhancement Request - Rebol on new Amiga

2000-12-14 Thread Mat Bettinson

Heya Al,

ABxcn It would be very nice if Rebol ran on the new Amiga:
ABxcn http://www.amiga.com/press/zine/4-17-00/AW7.htm

Call my cynical (I did my stint as an Amiga advocate for a number of
years) but does that page not just seem like the same pile of
enthusiastic idealistic rhetoric that has plagued the Amiga through
it's multiple abortive rebirths?

Words really ARE cheap. IMO there's a hell of a lot of real platforms
right here and now that Rebol out to be running on such as EPOC32!

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] http referrer

2000-12-11 Thread Mat Bettinson

Folks,

I've a need to submit a form in Rebol, using the latest (excellent)
cookie-client.r script.

I find the response I get back demands that I use the form on their
site. I imagine this would be something to do with the http referrer
field? Is there some way of setting this?

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: http referrer

2000-12-11 Thread Mat Bettinson

Heya Ryan,

RCC If you probe the cgi object, you should be able to see all of the cgi 
RCC variables as REBOL understands them in the cgi object. http_referrer 
RCC should be among them. I would guess you could set this variable and 
RCC pass it to the executable.

I think you misunderstood - I needed to tell a CGI script that was not
mine, on a remote machine, what the referer was. This is a http header
element and one that can be slapped into

net-utils/export HTTP-Post-Header "^/"

etc.

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Testing if a string is an integer?

2000-12-08 Thread Mat Bettinson

Heya Philip,

PB Hi Matt,

PB why can you use to-integer

Madness. I tried EXACTLY the same thing but I used
number: make integer! number

Thanks anyhow - at least it'll work this way although it's not the
most elegant :)

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] File association and security

2000-12-06 Thread Mat Bettinson

Wocha,

File associations. How might you set one up that launches rebol.exe on
.r files but with the -s switch?

My Ugly Hack TM for running a Rebol executor machine is to launch .r
files with the execute function of Serv-U.

But many of my scripts require security turned off. Any solutions?

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: File association and security

2000-12-06 Thread Mat Bettinson

Heya Mat,

MB File associations. How might you set one up that launches rebol.exe on
MB .r files but with the -s switch?

I worked it out. Different in different versions of windows, typical eh.

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: RES: Re: File association and security

2000-12-06 Thread Mat Bettinson

Heya Mailbank,

M Sorry for my ignorance but I allways wonder why can't
M security (Windows version) be set from within the script?

Rather defeats the purpose of having security then, doesn't it :)

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Which PDA for Rebol?

2000-12-05 Thread Mat Bettinson

Heya Elan,

E this looks really exciting.

What browser do you think this thing runs? I can't see Netscape in
8MB, can you? :)

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Accessing the Windows Registry from Rebol/Command

2000-12-04 Thread Mat Bettinson

Heya Dan,

DR I realize that this type of work defies the cross-platform philosophy of
DR Rebol, but in order for Rebol to be a practical solution to my everyday
DR scripting needs, I have to be able to play outside the Rebol "sandbox".

If you're using Rebol/Command at all, you've broken cross-platform
philosophy so I wouldn't worry about it.

I foolishly overwrote my release rebol.exe with the current
experimental and started using that to execute scripts. After a few
hours of running my IRC bot - rebol.exe stops working and consumes
staggering amounts of CPU power. It's done this on two different
scripts. Darn.

So I'm using Rebol/Command even to run my core stuff. I hope it
doesn't have any operational differences outside of the new
interfaces...

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Accessing the Windows Registry from Rebol/Command

2000-12-04 Thread Mat Bettinson

Heya jeff,

jrnIf you can cause this leak with a simple chunk of code (or
jrneven a not so simple chunk), please by all means send it
jrnin.  That will help us fix it the fastest! :)

You really don't want to see the code :)

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Which PDA for Rebol?

2000-12-04 Thread Mat Bettinson

Folks,

I mentioned this before, at the bottom of one of my cries for help
that went unanswered :)

Anyhow - I'm looking to pick up a PDA. I have a natural bias to Psion
gear with the proper keyboard and decent OS. Rebol support, however,
is a major factor. I see that there's not any release of Rebol Core
for EPOC ARM? :(

By the looks of it, Win CE machines are the best supported? Ugh. Still
I heard those things are better these days. Anyone got much experience
with Rebol on one?

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Which PDA for Rebol?

2000-12-04 Thread Mat Bettinson

Heya Lorenz,

L My dream is one of these days be surprised by a REBOL version for PalmOS.
L That´s because to me PalmOs is the best plataform to PDAs ever. But it seems
L due to a memory problem with PalmOS REBOL won´t fit PalmOS at all :(

Rebol on a PDA with no keyboard, no thanks.

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Which PDA for Rebol?

2000-12-04 Thread Mat Bettinson

Heya Kolbjørn,

KB But they all have keyboards, and some of them are quite usable, I do plenty
KB of html and script writing on my newton using the stylus, works fine.

I've only seen those 3COM Palm things. I type loads so I need a proper
keyboard and a decent web browser (Opera). That's WinCE or EPOC
as far as I have seen.

I really like the look of the HP Jordana 720 but ... it uses a 200MHz
ARM CPU and beyond - there's no Rebol for ARM WinCE. Sigh.

That said it costs a fortune so the Psion 5mx or Revo Plus look like damn
good units. Oh, but there's no Rebol for EPOC32 *. :(

KB Also, since rebol is multiplatform, platformindependant yada yada you can
KB write things on your desktop or whatever, and copy it over to the pda for
KB use.

It's multiplatform except for any PDA I'm considering :(

No, I intend to actually do a bit of Rebol tinkering on a PDA.

* I have no doubt there will be one day though, a LOAD of future 3G
Mobile/data devices are using EPOC.

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Which PDA for Rebol?

2000-12-04 Thread Mat Bettinson

Heya Holger,

HK We have been looking into WinCE and EPOC-32 a bit recently, and there is
HK a good chance that REBOL (Core at least, in experimentals) will become
HK available in the not-too-distant future both for WinCE 2.x/3.x ARM and for
HK EPOC-32 v5/6 (Psion model 5, 5mx etc).

Good news!

HK Sorry, I cannot be more specific (regarding schedule etc.) at this time.

Or even which will be first? :)

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: /command for AmigaOS ?

2000-11-30 Thread Mat Bettinson

Heya Jean,

HJ I hope you could follow my explanations.

Certainly, very nice workaround. How I wish the Amiga survived
, it was a wonderful thing :)

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Rebot progressing nicely!

2000-11-29 Thread Mat Bettinson

Hi folks,

I've made absolutely fantastic progress with my Rebol IRC bot. It's
fully functional now and it's been amazing people how easily I drop in
new commands that actually DO cool stuff. Like ripping the top 3
BBCnews headlines :)

I found a port combination of /no-wait and /lines made the code really
easy to use, not having to worry about a buffer and ignoring the last
line until it was completed later etc.

Anyhow, the code is turning into something really quite spaghetti
style. I thought making it modular would be best.

IE

/msg rebot command args

Would go off and run rebot-command.r

The question is, would this be relatively quick and how do I parse
args to another rebot script?

I'm amazed I've got this far given how little of the basics I
understand :)

I'm somewhat interested in these new Rebol books that are out now. I
don't consider the official guide to be very conducive to learning the
language at all, unfortunately. It's irritatingly vague on all the
stuff that really matters (and you guys have born the grunt of my
stupid questions as a result).

How do the others rate, anyone seen them?

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Timer fun

2000-11-29 Thread Mat Bettinson

Hola,

I have to implement some timers but... now/precise (which Holger
pointed me at) doesn't exist. Neither in my regular Rebol Core or
Rebol Command *.

Mmm, I need Rebol Command really so I can't go using experimentals. 1
second resolution would be OK even I suppose. Anyone got some regular
timer code by nicking the seconds off now/time or something?

* Actually made Rebol Command crash a few times trying to use a
no-wait port and then copying from it. Weird.

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Timer fun

2000-11-29 Thread Mat Bettinson

Heya Holger,

HK Command features require deep changes within REBOL, e.g. for new datatypes
HK such as struct!. This goes far beyond a simple set of functions.

Ahh. Well I guess so long as the experimental stuff rolls along in a
reasonable time I'll be quite happy.

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: try fails to catch error

2000-11-26 Thread Mat Bettinson

Heya Graham,

GC bademail: make email! "nospam"

GC try [ send bademail {testing} ]

GC Fails in both the current experimental and stable versions
GC of win32.

Does that not depend on whether your relay accepted the mail or not?

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Simple question

2000-11-25 Thread Mat Bettinson

Guys,

I've been trying to get my head around parse, trying to come up with a
way to split a string (a buffer from a port actually) into a block by
newlines.

You can't do IO stuff from port with /lines refinement, so I need a
way to go parsing stuff back from a server from the buffer.

I can rip out the first line easily enough with;

parse test [copy freshline to newline]

But how could I make a block with ALL the lines in the buffer?

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Simple question

2000-11-25 Thread Mat Bettinson

Heya Russ,

R unparsed: copy portname
R parsed: parse/all unparsed "^/"

Heh, I tried exactly the same thing but using newline. Silly of me :)

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Rebol and UDP

2000-11-25 Thread Mat Bettinson

Heya Russ,

R packet gets through to someone who wants it.  If you want guaranteed
R connectivity, use TCP or build your own two-way acknowledgement/retry 
R scheme on top of UDP.

Well that's my point, I don't know if the high level Rebol UDP support
does this for you or not. If it doesn't, it'd be fairless useless as
you can't get access to packet ids like you said.

R some kind of packet ID into the data format of each packet sent... create a
R timeout on the sending end... resend if you didn't receive an 
R acknowledgement from the receiver in time, etc.  Basically, build TCP! 

Quite. The game uses UDP so TCP isn't an option. It's fairly academic
since my use now is to a server on the same box so it's more or less
guaranteed to work.

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Rebol and UDP

2000-11-25 Thread Mat Bettinson

Heya Holger,

HK It is extremely unlikely that any game makes use of this.

Quite, and it's not like I'd use Rebol for anything hard core with
game traffic. I've got my game server RCON script working nicely with
these existing UDP support so I'm happy!

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: More error tracing fun

2000-11-21 Thread Mat Bettinson

Heya Mat,

I said earlier;

MB make object! [
MB code: 303
MB type: 'script
MB id: 'expect-arg
MB arg1: 'find
MB arg2: 'series
MB arg3: [series! port! bitset!]
MB near: [if not find/match/any server-said respons
MB e]
MB where: none
MB ]

I guess no one has much of an idea. Assuming this is some internal
stuff, could it be related to the fact that I have two rebol scripts
working on the same ftp site? Perhaps there's an obscure internal
error there?

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Rebol with Xitami?

2000-11-15 Thread Mat Bettinson

Hello,

Anyone been able to get Rebol scripts to work as CGI's with the Xitami
web server?

I understand you have to put a line in the front of the script, so I
put this;

#! C:\Rebol\rebol.exe --cgi --script

I used Tom's great looking test script, slapped it in cgi-bin -
changed the HTML to simply refer to /cgi-bin/ etc.

Nothing happens. :(

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Newbie getting head around TRY/DISARM

2000-11-14 Thread Mat Bettinson

Hello folks,

I'm new to the list. I've been tinkering with Rebol making some damn
handy scripts. Never done anything this productive since the Amiga!

Anyhow, I've got a damn nice script that automatically uploads me some
game server log files. Unfortunately I'm having trouble trapping
errors. The examples given in the official guide basically seem broken
to me.

For example;

if error? bleet: try [ delete xUploadFile ] [
  print ["* File locked, skipping..." filen]
  probe disarm bleet
  return false
  ][

Quite straight forward you would have thought. Ripped straight from an
example in the official guide. Well, it just doesn't WORK. It blows
out claiming that bleet: must have some value. So does bleet get no
value if there is no error in the try block?

Then why does the official guide have this example;

 if error? error: try [ 1/0 ] [ [probe disarm error ]

Is this not exactly the same as my form?

Previously I had something simply in the format of;

if error? try [ delete file ] [ Whine a bit ]

But suddenly I was getting zillions of errors when there were no
errors (specifically ftp uploading). So I assume I need to disarm it
but now I can't get this form to work at all.

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: YYYYMMDD date format

2000-11-14 Thread Mat Bettinson

Heya Mailbank,

M I was wondering how can I get
M the date formatted as MMDD?

nowdate: rejoin [ now/year now/month now/day ]

?

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Newbie getting head around TRY/DISARM

2000-11-14 Thread Mat Bettinson

Heya Ingo,

[Education on the ways of error disarming]

IH I hope that helps,

Oh yes, you're an scholar and a gentleman!

-- 
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.