REBOL Library REBOL

Utility Functions

Updated: 29-May-2003

Return to main library index

Non-echoing Input

inhide.r

15-Sep-1999

Hide input for passwords (no echo characters)

1 line

200 bytes

 
CLS

cls.r

3-Jul-2002

Clears the console screeen.

1 line

295 bytes

 
Protecting Passwords

passprotect.r

15-Sep-1999

Prompt for password to use before transfer.

2 lines

270 bytes

 
ConsoleIO

consoleio.r

1-Aug-2002

Console prompt output save,saves all console input to history.log file when in console mode.

2 lines

527 bytes

 
Encoding Binary Data in REBOL Scripts

bin-save.r

30-May-2000

Example of how to save base-64 encoded binary data in REBOL scripts. (See bin-data.r as an example of how to decode the data.)

3 lines

396 bytes

 
Prompt for User and Password

userprotect.r

15-Sep-1999

Prompt for username and password to use for a transfer.

3 lines

317 bytes

 
Send Message to GSM Cellphone

cellphone.r

16-Jun-2000

To post a message via MTN's SMS gateway to a GSM phone

4 lines

1677 bytes

 
Comma-Seperated-Values to REBOL converter

convert-csv.r

16-Jun-1999

Convert CSV files to REBOL blocks

5 lines

529 bytes

 
Keep an ISP Connection Alive

keep-alive.r

16-Sep-1999

This script can be used to keep an ISP connection alive by accessing the net every so often.

5 lines

622 bytes

 
Check for REBOL Pro Features

licensed.r

18-May-2001

An example of how to detect View/Pro and Command special features.

5 lines

456 bytes

 
REBOL Prompt Setter

set-prompt.r

16-Jun-1999

Demonstrates how to set the prompt in REBOL

6 lines

433 bytes

 
Fahrenheit

fahrenheit.r

3-Jul-2002

Converts Temperature in Celcius to Fahrenheit.

6 lines

552 bytes

 
Source

source.r

3-Jul-2002

Prints the script source code for a word.

6 lines

446 bytes

 
Total Size of .r Files

sizedir.r

24-Apr-1999

Print the total size of all .r files in the current directory.

7 lines

352 bytes

 
Input via CGI

input-cgi.r

20-Jul-1999

Get CGI input with either POST or GET

9 lines

547 bytes

 
Tiny REBOL Server

rebserver.r

11-Oct-1999

The distributed REBOL server that builds the REBOL system.

9 lines

786 bytes

 
File Compress and Decompress

compress.r

16-May-2001

An example file compression utility.

9 lines

604 bytes

 
Image to binary

img-to-bin.r

26-Mar-2002

To return binary representation of the image.

9 lines

481 bytes

 
Object Cloner

cloneobj.r

30-Jun-2000

Clone objects recursively. This way the objects inside are copies instead of references.

10 lines

656 bytes

 
Get All Library Scripts

weblib.r

20-May-1999

Downloads all scripts from the REBOL script library

10 lines

543 bytes

 
Itemize

itemize.r

3-Jul-2002

Appends Value to Values, if Value not all ready in block.

10 lines

541 bytes

 
Pop

pop.r

3-Jul-2002

Returns the first value in a series and removes it from the series.

10 lines

556 bytes

 
CopyCon

copycon.r

25-Aug-2001

Inline Line-Editor for Rebol Console mode, you can extent by loading/saving/exeucting the buffer

10 lines

662 bytes

 
Push

push.r

3-Jul-2002

Inserts a value into a series and returns the series head.

11 lines

624 bytes

 
Dictionary Lookup

dict.r

12-Jun-2001

Uses the Merriam-Webster website for dictionary and thesaurus lookups, without using their form. Just a small utility really.

12 lines

722 bytes

 
Include Files

include.r

5-Nov-1997

A useful function for "including" a single file or a block of files. Web and other file paths are allowed.

13 lines

680 bytes

 
REBOL Random Password Generator

rand-pass.r

16-Jun-1999

To use the system password file to generate a random set of passwords for every user on the system.

13 lines

842 bytes

 
Rot-13

rot-13.r

21-Oct-1999

To Encode and Decode Rot-13 strings

13 lines

1030 bytes

 
Leap-Year

leap-year.r

3-Jul-2002

Returns true for a leap year.

13 lines

594 bytes

 
Interweave

interweave.r

18-Jul-2002

Combines two series into one series by interleaving their values.

13 lines

813 bytes

 
keyboard input sequencer

keyb.r

3-Aug-2002

a replacement for the missing keyboard input sequences table in REBOL/Core User Guide Version 2.3, Appendix C-4

13 lines

743 bytes

 
Increment and Decrement

incdec.r

24-Apr-1999

Increment and decrement a variable by one.

14 lines

462 bytes

 
Time a Block

timeblk.r

28-Oct-1998

Times the execution of a REBOL block.

14 lines

725 bytes

 
Decode Charset Function

decode-charset.r

23-Aug-2001

Converts 'charset values to something readable

14 lines

718 bytes

 
Round

round.r

3-Jul-2002

Rounds a number at any given place.

14 lines

1091 bytes

 
Parse REBOL Source - Recent!

parse-code.r

29-May-2003

An example of how to parse REBOL source code.

15 lines

745 bytes

 
Arguments

arguments.r

22-Mar-2002

Returns the arguments of the function.

15 lines

632 bytes

 
Month

month.r

3-Jul-2002

Creates Month routines.

15 lines

747 bytes

 
Printer

printer.r

3-Jul-2002

Sends text to printer on //prn.

15 lines

853 bytes

 
Data formatter

align.r

20-Jul-1999

Create text columns

16 lines

938 bytes

 
Days-Per-Month

days-per-month.r

3-Jul-2002

Adds Days per Month to system/locale.

16 lines

654 bytes

 
Weekday

weekday.r

31-Aug-2002

Creates Weekday routines.

16 lines

868 bytes

 
uncomment

uncomment.r

23-Jul-2002

uncomment Java or C++ sources

16 lines

747 bytes

 
mp3tool

mp3tool.r

15-May-2002

I have seen an ID3 reader in every language (C, Perl, Python, PHP), and decided I might as well write one for REBOL. It is very simplistic at the moment

17 lines

1217 bytes

 
Find-Block

find-block.r

3-Jul-2002

Finds a tuple in a block or tuple-space.

17 lines

754 bytes

 
Greek

greek.r

3-Jul-2002

Greek changes all upper and lower case letters to random letters, preserving their case, and changes digits to random digits as well.

17 lines

914 bytes

 
Tally

tally.r

3-Jul-2002

Tallies up the values in a series, producing a block of [Value Count] pairs.

17 lines

802 bytes

 
Date and time in digits

time-in-digits.r

12-Jun-2000

Convert the date and time into a string of digits.

18 lines

1558 bytes

 
Time-It Function

timeit.r

3-Jun-1999

Creates a simple timer function for timing in REBOL.

18 lines

679 bytes

 
Console capture

capture.r

31-Jul-2001

Capture console output in a string!

18 lines

1019 bytes

 
Time Web Pages

timewebs.r

18-Dec-1997

Time how long it takes to get each of the web pages listed in a block.

19 lines

942 bytes

 
VT100 Functions

vt100.r

4-Sep-1999

Examples of VT100 screen functions

19 lines

881 bytes

 
Delete-Dir

delete-dir.r

3-Jul-2002

Deletes the specified files(s) or directory.

19 lines

792 bytes

 
Transpose

transpose.r

3-Jul-2002

Transposes a Matrix's rows and columns.

19 lines

1016 bytes

 
Search Mailbox

mbxfind.r

4-Jun-1999

Search a Eudora mailbox file and output a file with all the messages that contain a given string.

20 lines

979 bytes

 
Sort Library Files by Category

sort-lib-files.r

2-Jun-2000

Copies REBOL script library files into subdirectories under the primary categories.

20 lines

922 bytes

 
Rebol date to-timestamp

to-timestamp.r

18-Jul-2001

For better date storage (in large date databases)

20 lines

820 bytes

 
msdate-to-date

msdate-to-date.r

3-Dec-2001

Converts standard MS DOS binary time to Rebol's one

20 lines

959 bytes

 
CSV

csv.r

3-Jul-2002

.CSV file manipulation functions.

20 lines

1038 bytes

 
Diff compare

diff.r

20-Jul-1999

See the differences between two files. Only provides basic DIFF functionality. Shows lines which don't exist in other file.

21 lines

986 bytes

 
Iota

iota.r

3-Jul-2002

Makes a block containing a range of values, from Start to End.

21 lines

948 bytes

 
get-fonts-amiga

get-fonts-amiga.r

19-Oct-2002

To grab the names of the fonts available on AmigaOS and save them as objects in a block for use by the request-font the request-font.r script.

21 lines

4112 bytes

 
Search Mail for REBOL Scripts

mbxscripts.r

30-May-2000

Search a mailbox file (e.g. Eudora) for email messages containing REBOL scripts.

23 lines

1074 bytes

 
Word Wrap Text

wraptext.r

18-Jun-1999

Handy function to fill and wrap a text paragraph.

23 lines

701 bytes

 
Dice Roller

roll.r

14-Oct-2002

A general purpose dice roller, supports custom dice and roll-and-keep highest or lowest dice.

24 lines

1316 bytes

 
Fun

fun.r

3-Jul-2002

Automatic local word generation for a function.

25 lines

1137 bytes

 
Script

script.r

3-Jul-2002

Returns the script source code for a word.

25 lines

973 bytes

 
dir-tree

dir-tree.r

20-Jun-1999

Recursively build a rebol and human readable tree from a directory or a ftp site. Maximum depth can be set.

26 lines

1651 bytes

 
Raging Bull page downloader

raging-bull.r

16-Sep-1999

This script reads sequential pages from the Raging-Bull on-line bulletin board.

27 lines

2342 bytes

 
Autoextracting REBOL file creator

autoextract.r

16-Jun-1999

Send files via email which can be decompressed simply by executing the contents of the message when it is received.

28 lines

1370 bytes

 
Delete Files by Suffix

delete-suffix.r

7-Jul-2000

Delete files based on their suffixes. Can also delete deeply through all subdirectories.

28 lines

1596 bytes

 
Dice

dice.r

3-Jul-2002

Dice.

29 lines

944 bytes

 
Clone

clone.r

3-Jul-2002

Clone objects by copying objects inside.

31 lines

1435 bytes

 
Library history - console version

lib-history.r

12-Jul-2001

To display recent Rebol library uploads

34 lines

1992 bytes

 
Melt

melt.r

3-Jul-2002

Melts object ice into fluid Rebol script.

34 lines

1344 bytes

 
Indent {}

indent.r

24-Jan-2003

This utility is to indent programs using {} as blocks like CPP or Java. Almost a one-liner !!

35 lines

1537 bytes

 
REBOL Script Cleaner - Recent!

clean-script.r

29-May-2003

Cleans REBOL scripts by parsing the REBOL code and supplying standard indentation and spacing.

36 lines

2134 bytes

 
Download and Extract REBOL Library

copy-lib.r

28-May-2001

Download REBOL library and extract all its files.

37 lines

1476 bytes

 
Build a Program Package

build-pack.r

6-Jul-2001

Creates a single compressed REBOL program from a list of file modules. Modules can include binary data files such as images.

38 lines

1988 bytes

 
disable face

disable-face.r

12-Dec-2001

disable and enable face

38 lines

1586 bytes

 
URI

uri.r

3-Jul-2002

URI parse rules.

38 lines

1703 bytes

 
Values

values.r

3-Jul-2002

Loads Values into Rebol. Interprets 'Needs field in header.

38 lines

1515 bytes

 
Map

map.r

3-Jul-2002

Maps or applies the function to all elements of the series.

40 lines

1863 bytes

 
Refine

refine.r

21-Dec-2001

"Add refinement(s) to a word/path"

41 lines

1472 bytes

 
Build-Tag

build-tag.r

3-Jul-2002

Build-Tag is a replacement Build-Tag that handles XML attributes.

42 lines

1554 bytes

 
Pack

pack.r

3-Jul-2002

Self-extracting file packer & unpacker.

42 lines

1614 bytes

 
REBOL Locking System

lock-file.r

23-Jun-1999

To provide functions for voluntary resource locking in rebol

43 lines

2612 bytes

 
File Encryption and Decryption Utility

crypt.r

29-Jun-2001

An example utility that encrypts and decrypts files using a highly secure form of encryption (the Blowfish algorithm with 128 bits). Requires REBOL/View/Pro or REBOL/Command to run.

43 lines

1791 bytes

 
Replace-in-all-files

replace-in-all-files.r

12-Jul-2001

To do recursive replace in all files in the directory

44 lines

1851 bytes

 
REBOL Web Crawler

webcrawler.r

16-Sep-1999

To crawl the web starting from any site. Does not record duplicate visits. Saves all links found in 'newlinks.

45 lines

1774 bytes

 
REBOL Standard Colors

color-names.r

31-Mar-2001

Displays the official built-in REBOL named colors.

47 lines

1739 bytes

 
En-/decryption Functions

encrypt.r

20-Jul-1999

A basic encryption scheme.

48 lines

2038 bytes

 
Untitled

hashtable.r

12-Nov-2002

Very simple Hashtable object, but usefull!

49 lines

1329 bytes

 
Save email attachments to disk

detach.r

9-Jun-1999

Detach mail attachments

50 lines

2236 bytes

 
Associate

associate.r

3-Jul-2002

Provides an associative memory store.

52 lines

1602 bytes

 
Permute

permute.r

3-Jul-2002

Permutes a matrix.

52 lines

2379 bytes

 
Load-ini

ini.r

9-Apr-2002

Tries to load ini-structured file to Rebol

53 lines

2169 bytes

 
REBOL Memory Stats

mem-stats.r

21-Jun-2000

Print out statistics for memory usage. (Command only.)

55 lines

1711 bytes

 
navigator

navigator.r

13-Aug-2002

to navigate throw files, next versions will include web and ftp navigation

58 lines

1908 bytes

 
XPM parser

xpm.r

26-Mar-2002

Convert XPM image file to rebol image! datatype

59 lines

2091 bytes

 
Find Non-local Variables

nonlocal.r

25-May-2000

Provides an way to find local variables that have not been declared as locals.

60 lines

2387 bytes

 
HTML Rainbow generator for Rebol/View

view-rainbow.r

31-May-2001

Create HTML color fade effects. Places output on the clipboard

61 lines

2357 bytes

 
Auction Site Scanner

auction-scan.r

1-Oct-1999

Harvest search results from any number of auction sites for a given search.

61 lines

2991 bytes

 
Freeze

freeze.r

3-Jul-2002

Freezes an object sea.

62 lines

2316 bytes

 
Dump-Style

dump-style.r

11-Jun-2002

Dump style facets and returns a block which can be passed to stylize to create a clone of the style.

63 lines

2504 bytes

 
Quick Email Sender

emailer.r

2-Apr-2001

A simple GUI example of an email sender.

64 lines

2166 bytes

 
Roman

roman.r

3-Jul-2002

Converts a Roman numeral to Arabic and reverse!

64 lines

2776 bytes

 
Library History

history.r

27-May-2001

Show file change dates for the REBOL public library. Click on a file to view it.

65 lines

2051 bytes

 
Age

age.r

5-Jul-2002

Calulates Age in Years, Months & Days.

65 lines

2260 bytes

 
Email attachments

attach.r

20-Jul-1999

Send email with base64 encoded attachments

67 lines

2521 bytes

 
ASCII Info

ascii-info.r

12-Oct-2001

Basically an ASCII chart.

67 lines

1869 bytes

 
Downloader

downloader.r

23-May-2002

To download multiple remote files and show the progress

67 lines

2707 bytes

 
Paint

paint.r

22-May-2001

The world's smallest paint program.

69 lines

2454 bytes

 
Rebocalc

rebocalc.r

19-Jun-2001

The world's smallest spreadsheet program, but very powerful.

69 lines

2582 bytes

 
Dump-Face

dump-face.r

4-Jun-2002

Dump a face and its subfaces and deep find shared faces in a pane (for debugging) Returns the face itself, so can be used like probe. Overwrite the standard Rebol function.

70 lines

2964 bytes

 
RIP - Standard File Archiver

rip.r

23-Jun-2000

A file archiver that works across 37 platforms. Compresses all files and subdirectories into a single binary, self-extracting archive file. (Similar to ZIP programs, but only 3KB.)

72 lines

3299 bytes

 
Wikipedia Library

wikilib.r

2-Jan-2003

Provide tools in Rebol to interact with Wikipedia

75 lines

3240 bytes

 
Color REBOL Code in HTML - Recent!

color-code.r

29-May-2003

Colorize source code based on datatype. Result is HTML. This script is used to syntax color the library scripts.

78 lines

3189 bytes

 
Font Lab

font-lab.r

31-Mar-2001

A tool for experimenting with fonts.

79 lines

2972 bytes

 
Julian Calendar Converter

julian.r

8-Nov-1999

To provide conversions to/from julian day numbers/dates.

84 lines

4743 bytes

 
Messenger

messenger.r

25-May-2001

Display a Reminder at a specified time

85 lines

2527 bytes

 
Directory Mapper

dir-mapper.r

18-Jul-2001

Recursively builds a dir-structure map of the directory with file/dir informations as size and dates

92 lines

4994 bytes

 
Web Site Checker

site-check.r

16-May-2001

Scan a web site looking for missing pages, remote links, email links, etc. Helps with clean up sites.

93 lines

3223 bytes

 
Soundex

soundex.r

17-Jul-1999

Soundex Encoding returns similar codes for similar sounding words or names. eg Stephens, Stevens are both S315, Smith and Smythe are both S53. Useful for adding Sounds-like searching to databases

95 lines

5589 bytes

 
ico-parser

ico-parser.r

31-Jul-2001

To get data from the windows *.ico files

95 lines

5403 bytes

 
error-logger

error-logger.r

10-Dec-2001

give better error feedback. logs a kind of stack-trace on error.

95 lines

5297 bytes

 
Condense Data

condense.r

18-Feb-2002

Provide a series of functions for aggregating data. Specifically designed for taking daily stock data and condensing it into weekly or monthly data series, but flexible enough for most data aggregation tasks.

97 lines

5310 bytes

 
REBOL Directory Services Lookup

lookup.r

1-Jun-2001

Provides a simple but effective directory server for peer-to-peer and other types of REBOL applications. Can be installed on any CGI webserver.

98 lines

3672 bytes

 
Simple HTTP POST

http-post.r

30-Jun-1999

This script sends a "form" to a webserver using the POST method. The included example translates a string in English to German by posting the data to AltaVista's translation web page and then parsing the reply.

105 lines

3585 bytes

 
Little-bell

little-bell.r

8-Jul-1999

Rudimentary Telnet client written in REBOL.

108 lines

4732 bytes

 
Cellphone reminder

remind.r

16-Jun-2000

Reads a file 'data.txt' containing appointment data, and sends my cell phone a text message 5 minutes before the appointment.

110 lines

5436 bytes

 
Image Sorter

image-sort.r

30-May-2001

A handy tool for sorting images into separate directories or deleting images. Includes scrolling list of image files with highlight and scrolling list of target directories. Also uses cursor keys, space, and backspace for navigation.

113 lines

4076 bytes

 
REBOL Document Generator

rebdoc.r

18-May-2001

Generates an HTML formatted document of all REBOL defined words (from the information found within the REBOL program itself). The output file is rebdoc.html.

113 lines

3880 bytes

 
Script Library Submission Processor (CGI side)

post-script.r

17-May-2001

Accepts a new or changed script for the script Library. Inspects the script's header first. Updates all related library index files.

120 lines

4083 bytes

 
REBOL Face Effect Lab

effect-lab.r

2-Apr-2001

Show combinations of effects.

2 pages

5470 bytes

 
JPG analyse

jpg-analyse.r

4-Jan-2002

To remove some data from the JPG files to make them smaller. For example files from Adobe contains so many other informations that the file is twice bigger than may be.

2 pages

5068 bytes

 
Http tools

http-tools.r

14-Dec-2000

To grab cookies from the server and post form data.

2 pages

6469 bytes

 
Window maker

win-maker.r

21-Aug-2001

Adds title with any buttons to any face (useful for windows without standard system title)

2 pages

5112 bytes

 
error-message-finder

error-message-finder.r

6-Dec-2001

find a text in all %.r fi