Tải bản đầy đủ (.pdf) (5 trang)

Professional Information Technology-Programming Book part 121 pdf

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (33.49 KB, 5 trang )

Regular expressions are not an application—you can't just click an icon and use
them. Rather, they require that you write regular expression code or use an
application with regular expression support built in.
And so, to assist readers in their quest for regular expression mastery, a simple
Web-based application has been created that can be used to test and experiment
with regular expressions using a Web browser.
The application itself is a single page, containing a self-posting HTML form and
all regular expression processing. As such, it can be used as is; just drop the file on
your computer and you'll be good to go. Multiple versions of the application are
available, including versions for Microsoft ASP and ASP.NET and Macromedia
ColdFusion (both of which will require access to the appropriate server software)
and a client-only JavaScript version.
Tip
Using multiple versions is a good way to test pattern compatibility.


Note
The intent is to provide additional versions for other platforms as
needed or requested. To obtain a copy, or to see the available
versions, visit the URL referenced at the end of this appendix.

Performing Find Operations
The application supports both find and replace operations. To perform a find
search, follow these steps:
1. Load the application page in your browser.
2. Check the Find option button.
3. Enter the regular expression into the top field.
4. Check the Case Sensitive check box, if needed.
5. Type (or paste) the text to search for into the large text box.
6. Click the Match Now button.
Results will be displayed in a tabular form below the form.


Performing Replace Operations
Replace operations require that two patterns be specified. To perform a replace
operation, follow these steps:
1. Load the application page in your browser.
2. Check the Replace option button.
3. Enter the search regular expression into the top field.
4. Enter the replace regular expression into the second field.
5. Check the Case Sensitive check box, if needed.
6. Type (or paste) the text to search for into the large text box.
7. Click the Match Now button.
The modified string (with replacements made) will be displayed below the form.
Obtaining a Copy of the Application
To obtain a copy of the application, visit the book's Web page at

Page contents include the following:
 Download any of the available versions.
 Test expressions using online versions of the applications.
 Find links to other regular expression resources.
 An errata (if one should be needed).
 And if you'd like to contribute a ported version of the application, you'll find
contact information there, too.
Enjoy!


The OpenBSD 4.0 Crash Course

By Jem Matzan

Publisher:
O'Reilly


Pub Date:
January 01, 2007

ISBN-10:
0
-
596
-
51015
-
2

ISBN-13:
978
-
0
-
596
-
51015
-
2

Pages:
64







Table of Contents

OpenBSD is a Unix-like computer operating system that is widely regarded for its
excellent documentation and its fanatical focus on security. "The OpenBSD Crash
Course" Short Cut will help you get an x86 or AMD64/EM64T server, desktop, or
network appliance up and running quickly with OpenBSD. You'll learn how to
install or upgrade OpenBSD on x86 and AMD64 machines, how to configure it for
server or workstation use, and how to properly maintain it until the next release.

The OpenBSD 4.0 Crash
Course

By Jem Matzan


Publisher:
O'Reilly

Pub Date:
January 01, 2007

ISBN-10:
0
-
596
-
51015
-

2

ISBN-13:
978
-
0
-
596
-
51015
-
2

Pages:
64






Table of Contents



Copyright


Chapter 1. Learn OpenBSD Quickly



Chapter 2. Understanding OpenBSD 4.0




Section 2.1. What Is OpenBSD?




Section 2.2. What Is OpenBSD Good For?




Section 2.3. Supported Architectures and Hardware


Chapter 3. Installing OpenBSD 4.0




Section 3.1. Installation Methods




Section 3.2. Booting from the Installation Disc





Section 3.3. Installation Walkthrough


Chapter 4. Upgrading from OpenBSD 3.9




Section 4.1. Upgrading the Base System and Package Sets




Section 4.2. Post-Installation Upgrading


Chapter 5. Post-Install Configuration




Section 5.1. First Boot in OpenBSD 4.0





Section 5.2. Creating User Accounts




Section 5.3. A Quick Introduction to the vi Editor




Section 5.4. Customizing the Terminal




Section 5.5. CD/DVD Mounting Made Easy




Section 5.6. Installing the Ports Tree and the Base System Source Code




Section 5.7. Using the OpenBSD Package Tools





Section 5.8. Custom Kernel Configurations




Section 5.9. Enabling Binary Compatibility with Other OSes




Section 5.10. Shutting Down and Restarting the Computer


Chapter 6. OpenBSD as a Desktop Operating System




Section 6.1. Configuring X.org




Section 6.2. Installing a Desktop Environment or Window Manager




Section 6.3. Starting X.org





Section 6.4. Finding and Installing Desktop-Oriented Programs




Section 6.5. Font Configuration


Chapter 7. Server Installation and Service Configuration




Section 7.1. The inetd Internet Super-Server




Section 7.2. Apache




Section 7.3. Databases





Section 7.4. Mail Transfer Agents




Section 7.5. Mail Delivery Agents




Section 7.6. OpenLDAP




Section 7.7. NFS




Section 7.8. NIS




Section 7.9. BIND





Section 7.10. CARP




Section 7.11. Basic Packet Filter Setup




Section 7.12. Enabling and Configuring OpenNTPD


Chapter 8. Installing the Languages of the Web




Section 8.1. Java




Section 8.2. PHP




Section 8.3. Perl





Section 8.4. Ruby




Section 8.5. Python


Chapter 9. Automation and Reporting




Section 9.1. The Cron Daemon




Section 9.2. Insecurity Reports




Section 9.3. Syslog



Chapter 10. Keeping OpenBSD Up-to-Date




Section 10.1. Staying Up-to-Date with Ports and Packages




Section 10.2. Switching to the OpenBSD 4.0-STABLE Branch




Section 10.3. Switching to OpenBSD-CURRENT


Chapter 11. Where to Go for Help




Section 11.1. Commercial Support for OpenBSD




Section 11.2. Further Reading
Copyright

Copyright © 2007, O'Reilly Media, Inc All rights reserved.
Chapter 1. Learn OpenBSD Quickly
OpenBSD has some of the industry's finest integrated documentation, but it can
take a long time to figure out which packages you need to get certain services
running, and how to configure them once installed. If you are totally new to Unix-
like operating environments, this guide could be a little over your head in some
places, but if you read it from start to finish and stick with it when things get
difficult, you'll end up with a functional and useful operating system. If you
already have some experience with any Unix-like operating system, you'll probably
feel right at home with OpenBSD and may want to skip ahead to the sections that
apply to you.
While there are some suggestions and system administration tips sprinkled
throughout "The OpenBSD Crash Course," it is not designed to teach you how to
administer a server. It's impossible to anticipate each reader's hardware
configuration and goals for working with OpenBSD, so instead of telling you how
to set up your machine to perform specific tasks, this guide will show you how to
install and configure various services and programs. This Short Cut is organized
into two sections: desktop and server. From those two starting points, you can
customize OpenBSD to meet nearly any need.
If you're new to OpenBSD, start at the beginning and skip ahead when you hit a
section that isn't relevant to what you need to do. If you just want to get a system
up and running quickly, skip ahead to the sections that apply to your situation.
Chapter 2. Understanding OpenBSD 4.0
This section will briefly introduce you to OpenBSD and its capabilities and ideal
uses.

×