Home Blog Page 278

Resolving Variables from a Property File in Spring

When writing the configuration in a Spring file, sometimes it is desirable to maintain a list of properties external to the Spring configuration. This list of properties can be edited and the updated values will be picked up by the Spring configuration. This tech-recipe will show you how it is done.

JSP: Grab Form Data Using getparamter

Introduction to using the Java getparamter() to grab data from an HTML form.

Blackberry OS 10: How to Take a Screenshot

0

Blackberry OS 10 is the latest mobile operating system from the company previously known as Research In Motion. The Z10 phone was just released in the last few months along with the new operating system. Both the device and the software are still very new and are quite different from previous Blackberry mobile phone operating systems.  This tech-recipe will explain how to use the built-in screenshot features on the Z10 and other future Blackberry 10 devices.

Assembly: Bit Rotating

0

This tutorial describes shifting bits left or right by a desired number of places with a wrap around to the other side.

Assembly: Division

0

The following tutorial explains how to divide large numbers with assembly language and where the results end up.

ZFS: Create a Writable Clone of a Filesystem

A ZFS clone is a writable copy of a snapshot of a filesystem. Fortunately, a ZFS clone is much simpler than its definition sounds. While a filesystem snapshot is read-only, a writable version can be created through cloning. Just like snapshots, clones are quick to create and use no additional space when they are created.

ZFS: Restore a Filesystem from a Snapshot Backup

ZFS snapshots provide point-in-time backups of filesystems which utilize minimal disk space and CPU load. This, combined with the fact that you can make billions of billions of snapshots, makes taking frequent backups of filesystems a realistic possibility. This tech-recipe describes restoring a filesystem from a snapshot.

ZFS: Create a Snapshot of a Filesystem

Of the many cool features of the new ZFS filesystems, one of the coolest is taking snapshots of a live filesystem. This provides a read-only, point-in-time copy of the whole filesystem. While this sounds slow and expensive in disk usage, ZFS makes snapshots efficient in time and space.

Configure Cisco Router to Send Messages to Remote Syslog Server

Centralizing log messages to a syslog server can improve the manageability of any size network and can decrease response times to resolve problems. Sending router log messages to a remote server also allows longer archiving of messages than in a router’s limited storage. Messages stored by syslog have permanence that a router does not. When a router is reloaded or power cycled, the messages in its log are erased. This tech-recipe describes the configuration steps required to make a router send messages to a remote syslog server.

Clear or Erase Cisco Router Log

A router’s log can save your life. Well, at the least, it can save you time and headaches when troubleshooting problems. However, in the heat of battle, old messages in the log can get in the way. After making a change to the router’s configuration, for instance, it is easier to monitor only subsequent messages in the log. Clearing the log is simple.

Increase or Change Cisco Router Log Size

Messages logged by a router can make troubleshooting problems substantially easier. However, the default size of most Cisco routers is 4096 bytes which typically accommodates fewer than 60 messages. While this may help in many situations, adding some additional space can save the day when a router generates frequent error messages as when an interface state cycles up and down. This tech-recipe describes the simple configuration to increase the size of the router log.

Copy Cisco Router Config into Flash to Back Up or Replace Hardware

When replacing a faulty router that is not completely dead, it may be possible to copy the startup configuration to the removable flash memory and swap the flash to get the new router up and configured in as short a time as possible. Without this procedure, manually copying the old configuration to the new router will be necessary. This simple command also provides a local backup copy of the router’s config which can save hours of work when replacing a dead router.