Cookbooks

From DocBase

Jump to: navigation, search

Cookbook List by DocBase Crew

This is a Reference Recipe

Complete list of Cookbooks Image:Cookbook-level1.png

Add your own Cookbook Recipe

Contents

List of potential REBOL 3 Cookbooks. Most are taken from the R2 cookbook [1]. Please add your own ideas!

List of Cookbooks

Audio Cookbook

  • Playing a sound
  • Adjusting volume
  • Scrubbing in a sound file
  • Displaying a sound waveform
  • FFT analyzer


Console Cookbook

  • Using a serial console on headless R3 host.
  • Write console output to disk
  • Knowing the user.r file
  • Getting Raw Keyboard Characters in the Console


Data Processing Cookbook

  • Convert Text File Formats (Line Terminators)
  • Search a File
  • Replace Text in a File
  • Create HTML Code
  • A Micro Database
  • Creating Text with Form, Mold, Join, etc.
  • Circular Series of Values
  • Reading Delimited Text Files (Like CSV)
  • Lowercase Clipboard
  • HTML Thumbnail Photo Directory Maker
  • Tiny HTML to Text Converter
  • REBOL Parser in 10 Lines (plus Pretty Printer)
  • One Line Network Port Checker
  • DNS and Reverse DNS Lookup
  • Simple TCP Port-Forwarder
  • How to feed DECOMPRESS with correctly compressed data


Dates and Times Cookbook

  • Time and Date Stamps
  • Computing Time Differences
  • Last Modified Date/Time (Within a REBOL Script)
  • Calculate the age of a person
  • A Different Time(r)
  • Unix Date Format Converter


Debugging Cookbook

  • Use TRACE properly
  • PROBE, ??
  • Good debugging techniques
  • Simple Unit Test Tool
  • Stepping through a script


Documentation Cookbook


Embedded Cookbook

  • Restricting memory usage in your scripts


Error Handling Cookbook

  • Trapping Errors
  • Create Errors
  • Create user friendly error requesters


File Management Cookbook

  • Get a Directory File List
  • Copy all Files in a Directory
  • Match File Extensions
  • Writing a Program File (Executable)
  • Retrieve Specific Lines from a File
  • Writing a Log File
  • Search a huge file

Low- and Mid-Level Networking

  • Fetch Web Pages (Web HTTP Files)
  • Write a Protocol
  • TCP Port Examples
  • Two Simple Scripts Talking Over TCP
  • Uploading a File with HTTP (Post)
  • Automated FTP Script
  • Creating a Server Port
  • Simple Web Site Monitor
  • Multiple Web Site Monitor with Email Alerts
  • Fetch All IP Addresses
  • Using HTTP Cookies
  • Tiny Web Server
  • Send Binary (Image) Using a TCP Socket
  • Raw HTTP Web Requests
  • Graphical Internet and Website Server Monitor
  • Telnet protocol
  • Streaming data
  • Simple Stock Ticker
  • Get Dictionary Entry
  • Google Search
  • TCP Port Details

REBOL/Services

Source [2]

Rebcode

  • Optimizing Rebcode
  • Mandelbrot Generator

Low-Level Graphics Cookbook

  • Using DRAW to create math graphs
  • Using DRAW to create 3D vector graphics
  • Simple Animation with View/Draw

VID Cookbook

  • Create a dynamic user interface
  • Write a style
  • Simple Text Form Window
  • Open Two Windows
  • Changing Text Font Attributes
  • Get and Set Text Fields
  • Adding a Scrollbar to Text
  • Getting A Text List Value
  • Scrolling an Image
  • Scrolling a GUI Panel
  • Progress Bar
  • Mouse Move Events - Raw Over and Hover Events

OpenGL Cookbook

  • Creating a First Person View


Security Cookbook

  • Strong Authentication Method
  • Cloaking (Encrypting) Strings
  • RSA Key Encryption over TCP

Scripting Cookbook

  • Running scripts from OS console (not REBOL console)
  • Running scripts from the Gnome desktop
  • Storing Image Files in a Script (Embedded Images)
  • REBOL Scripts Embedded Within Web Pages
  • Good REBOL script headers
  • INCLUDE documentation

Plugin Cookbook

  • Embed a script in a webpage
  • Use Plugin to navigate the DOM

Modules Cookbook

  • Creating a Module

Tasking Cookbook

  • Do's and Don'ts in tasking
  • Sending a Message to a Task


REBOL Internals Cookbook

REBOL Language Cookbook

  • Increment / Decrement a word value
  • Passing Single Values and Blocks to Functions
  • CASE
  • Exploring the SYSTEM object
  • Creating a new datatype
  • R2 vs. R3 Contexts


Numbers and Math Cookbook

  • Explaining Math Precision
  • Using the money! datatype

Mediatypes Cookbook

  • Creating a mediatype

System Cookbook


Windows Cookbook

  • Reading Windows Shortcuts
  • Placing windows on multiple screens
  • Vista compatibility
  • Windows 95/98 compatibility
  • Reading NTFS timestamps
  • Using Network Drives
  • Creating icons for encapsulated R3 scripts

MacOSX Cookbook

  • Using the menubar in your REBOL apps
  • Using LaunchD to make an R3 script into a daemon
  • Understanding Application Packages
  • Sending files to Trash properly
  • MacOSX Panther Compatibility
  • MacOSX Tiger Compatibility
  • MacOSX Leopard Compatibility

Linux Cookbook

  • Start an R3 script as a daemon under Debian
  • Making an RPM package from an R3 script
  • Making an APT package from an R3 script

R2 vs. R3 Cookbook

FAQ Cookbook


RT Developer Cookbook

Cookbook References

Cookbook Reference Page
Class Documents
Usage
Authoring
See Also
Personal tools