config
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 1091
PWC-Config 0.8
PWC-Config is a graphical user interface for configuring all Web cameras supported by the PWC driver. more>>
PWC-Config is a graphical user interface for configuring all Web cameras supported by the PWC driver.
The following cameras are currently supported by this driver:
PCA645VC
PCA646VC
PCVC675K "Vesta"
PCVC680K "Vesta Pro"
PCVC690K "Vesta Scan"
PCVC720K/40 "ToUCam XS" (!)
PCVC730K "ToUCam Fun"
PCVC740K "ToUCam Pro"
PCVC750K "ToUCam Scan"
Askey VC010
Creative Labs Webcam 5
Creative Labs Webcam Pro Ex (soon)
Logitech QuickCam 3000 Pro
Logitech QuickCam 4000 Pro
Logitech QuickCam Notebook Pro
Logitech QuickCam Zoom
Samsung MPC-C10, MPC-C30
Sotec Afina Eye
Visionite VCS UM100, UC300
To install follow these steps:
First, as your normal user, type in the following:
./configure
make
Once that finishes, the program will be installed into the src directory.
Alternatively, by logging in as root you can install it into
/usr/local/bin/cam by typing:
make install
<<lessThe following cameras are currently supported by this driver:
PCA645VC
PCA646VC
PCVC675K "Vesta"
PCVC680K "Vesta Pro"
PCVC690K "Vesta Scan"
PCVC720K/40 "ToUCam XS" (!)
PCVC730K "ToUCam Fun"
PCVC740K "ToUCam Pro"
PCVC750K "ToUCam Scan"
Askey VC010
Creative Labs Webcam 5
Creative Labs Webcam Pro Ex (soon)
Logitech QuickCam 3000 Pro
Logitech QuickCam 4000 Pro
Logitech QuickCam Notebook Pro
Logitech QuickCam Zoom
Samsung MPC-C10, MPC-C30
Sotec Afina Eye
Visionite VCS UM100, UC300
To install follow these steps:
First, as your normal user, type in the following:
./configure
make
Once that finishes, the program will be installed into the src directory.
Alternatively, by logging in as root you can install it into
/usr/local/bin/cam by typing:
make install
Download (0.077MB)
Added: 2006-06-22 License: GPL (GNU General Public License) Price:
711 downloads
Xmms::Config 0.12
Xmms::Config is a Perl Interface to xmms_cfg API. more>>
Xmms::Config is a Perl Interface to xmms_cfg API.
SYNOPSIS
my $file = Xmms::Config->file; #$ENV{HOME}/.xmms/config
my $cfg = Xmms::Config->new($file);
<<lessSYNOPSIS
my $file = Xmms::Config->file; #$ENV{HOME}/.xmms/config
my $cfg = Xmms::Config->new($file);
Download (0.18MB)
Added: 2007-04-23 License: Perl Artistic License Price:
914 downloads
pkg-config 0.20
pkg-config is a system for managing library compile/link flags that works with automake and autoconf. more>>
pkg-config is a helper tool used when compiling applications and libraries. It helps you insert the correct compiler options on the command line so an application can use gcc -o test test.c `pkg-config --libs --cflags glib-2.0` for instance, rather than hard-coding values on where to find glib (or other libraries). It is language-agnostic, so it can be used for defining the location of documentation tools, for instance.
The program free software and licensed under the [WWW]GPL version 2 or any later version (at your option).
pkg-config works on multiple platforms: Linux and other UNIX-like operating systems, Mac OS X and Windows. It does not require anything but a reasonably well working C compiler and a C library, but can use an installed glib if that is present. (A copy of glib 1.2.8 is shipped together with pkg-config and this is sufficient for pkg-config to compile and work properly.)
The first implementation was written in shell, by James Henstridge. Later, it was rewritten in C by Havoc Pennington. It also grew an autoconf macro written by Tim Janik, later rewritten by Scott James Remnant.
Enhancements:
- Segfaults were fixed.
- Win32 fixes were made.
- The --short-errors option was added, and is now used by pkg.m4 if available.
- This gives a better error message if some libraries cant be found.
<<lessThe program free software and licensed under the [WWW]GPL version 2 or any later version (at your option).
pkg-config works on multiple platforms: Linux and other UNIX-like operating systems, Mac OS X and Windows. It does not require anything but a reasonably well working C compiler and a C library, but can use an installed glib if that is present. (A copy of glib 1.2.8 is shipped together with pkg-config and this is sufficient for pkg-config to compile and work properly.)
The first implementation was written in shell, by James Henstridge. Later, it was rewritten in C by Havoc Pennington. It also grew an autoconf macro written by Tim Janik, later rewritten by Scott James Remnant.
Enhancements:
- Segfaults were fixed.
- Win32 fixes were made.
- The --short-errors option was added, and is now used by pkg.m4 if available.
- This gives a better error message if some libraries cant be found.
Download (0.94MB)
Added: 2005-10-26 License: GPL (GNU General Public License) Price:
1462 downloads
Config::YUM 1.8
Config::YUM is a Perl extension for parsing yum.conf. more>>
Config::YUM is a Perl extension for parsing yum.conf.
SYNOPSIS
use Config::YUM;
my $yp = new Config::YUM;
my $yum_conf = $yp->parse();
foreach(keys %{$yum_conf}) {
print "Section: $_ is called " . $yum_conf->{$_}->{name} . "n";
}
$yum_conf will be a a hash, all INI sections are the primary hash keys.
include= will be automatically downloaded merged with the local yum.conf
mirrorlists will also be downloaded and saved as an array in $yum_conf->{somerepo}->{baseurls}
the first url in mirrorlists will be safed as $yum_conf->{somerepo}->{baseurl}.
exclude statements will be splited and safed to $yum_conf->{somerepo}->{exclude_hash}. Note that we
safe a perl regex string as keys here.
To say it with one sentence. Config::YUM automatically parses a yum.conf does the downloading and provides you
with a ready to use perl hash. :-)
You can define a few things @ new:
- use_cache: 0/1 (1 will enable, default: 0; Uses Cache::File)
- yum_conf: path to your yum.conf (default: /etc/yum.conf)
- yum_repos_d: path to your yum.repos.d (default: /etc/yum.repos.d)
- agent: You LWP::UserAgent agent string (default: Config::YUM/$VERSION)
- releasever: Define your RH/FC release version (rpm -qf --queryformat %{VERSION} /etc/redhat-release; Default: automatically queried)
- basearch: Define your basearch (uname -i; Default: automatically discovered)
- download_primary: Define if we should download/parse the primary.xml.gz
These arguments can be specified this way (dont forget the {!)
my $yp = new Config::YUM({
use_cache => 1,
yum_conf => /etc/yum.conf,
yum_repos_d => /etc/yum.repos.d,
agent => MyProgram/$VERSION,
relasever => 4,
basearch => i386,
download_primary => 1
});
This module provides you with a few functions,
parse() will return a hash containing the allready parsed local/remote yum.conf.
yumconf_local() will return a hash containing the allready parsed local yum.conf (Will run parse(), if you didnt yet)
yumconf_remote() will return a hash containing the allready parsed remote yum.conf (Will run parse(), if you didnt yet)
<<lessSYNOPSIS
use Config::YUM;
my $yp = new Config::YUM;
my $yum_conf = $yp->parse();
foreach(keys %{$yum_conf}) {
print "Section: $_ is called " . $yum_conf->{$_}->{name} . "n";
}
$yum_conf will be a a hash, all INI sections are the primary hash keys.
include= will be automatically downloaded merged with the local yum.conf
mirrorlists will also be downloaded and saved as an array in $yum_conf->{somerepo}->{baseurls}
the first url in mirrorlists will be safed as $yum_conf->{somerepo}->{baseurl}.
exclude statements will be splited and safed to $yum_conf->{somerepo}->{exclude_hash}. Note that we
safe a perl regex string as keys here.
To say it with one sentence. Config::YUM automatically parses a yum.conf does the downloading and provides you
with a ready to use perl hash. :-)
You can define a few things @ new:
- use_cache: 0/1 (1 will enable, default: 0; Uses Cache::File)
- yum_conf: path to your yum.conf (default: /etc/yum.conf)
- yum_repos_d: path to your yum.repos.d (default: /etc/yum.repos.d)
- agent: You LWP::UserAgent agent string (default: Config::YUM/$VERSION)
- releasever: Define your RH/FC release version (rpm -qf --queryformat %{VERSION} /etc/redhat-release; Default: automatically queried)
- basearch: Define your basearch (uname -i; Default: automatically discovered)
- download_primary: Define if we should download/parse the primary.xml.gz
These arguments can be specified this way (dont forget the {!)
my $yp = new Config::YUM({
use_cache => 1,
yum_conf => /etc/yum.conf,
yum_repos_d => /etc/yum.repos.d,
agent => MyProgram/$VERSION,
relasever => 4,
basearch => i386,
download_primary => 1
});
This module provides you with a few functions,
parse() will return a hash containing the allready parsed local/remote yum.conf.
yumconf_local() will return a hash containing the allready parsed local yum.conf (Will run parse(), if you didnt yet)
yumconf_remote() will return a hash containing the allready parsed remote yum.conf (Will run parse(), if you didnt yet)
Download (0.007MB)
Added: 2007-04-12 License: Perl Artistic License Price:
926 downloads
Config::Sofu 0.3
Config::Sofu is a simple Sofu configuration file parser. more>>
Config::Sofu is a simple Sofu configuration file parser.
SYNOPSIS
use vars qw/%CONFIG/;
use Config::Sofu "config.sofu";
if ($CONFIG{FOOBAR}) {
...
}
if ($CONFIG{Bar}->[7]->{Foo} eq "Foobar") {
...
}
Save the new configuration:
$CONFIG{FOOBAR}="Bar times Foo";
Config::Sofu::save;
or
Config::Sofu::save(%CompletlyNewConfig)
SYNTAX
This class exports the hash %CONFIG by default which contains all the information of the file which is given to the use statement.
<<lessSYNOPSIS
use vars qw/%CONFIG/;
use Config::Sofu "config.sofu";
if ($CONFIG{FOOBAR}) {
...
}
if ($CONFIG{Bar}->[7]->{Foo} eq "Foobar") {
...
}
Save the new configuration:
$CONFIG{FOOBAR}="Bar times Foo";
Config::Sofu::save;
or
Config::Sofu::save(%CompletlyNewConfig)
SYNTAX
This class exports the hash %CONFIG by default which contains all the information of the file which is given to the use statement.
Download (0.002MB)
Added: 2007-04-12 License: Perl Artistic License Price:
925 downloads
DNS::Config 0.66
DNS::Config is a Perl module with DNS Configuration. more>>
DNS::Config is a Perl module with DNS Configuration.
SYNOPSIS
use DNS::Config;
my $config = new DNS::Config();
$config->debug();
ABSTRACT
This class represents a configuration for a domain name service daemon (DNS).
A domain name service daemon configuration knows about the zone information actively provided to the service users as well as lots of other configuration data.
This class allows to represent this configuration data in a more or less generic way. Another class, the file adaptor, then knows how to write the information to a file in a daemon specific format.
So far this class is strongly related to the ISCs Bind domain name service daemon but it is inteded to get more generic in upcoming releases. Your help is welcome.
<<lessSYNOPSIS
use DNS::Config;
my $config = new DNS::Config();
$config->debug();
ABSTRACT
This class represents a configuration for a domain name service daemon (DNS).
A domain name service daemon configuration knows about the zone information actively provided to the service users as well as lots of other configuration data.
This class allows to represent this configuration data in a more or less generic way. Another class, the file adaptor, then knows how to write the information to a file in a daemon specific format.
So far this class is strongly related to the ISCs Bind domain name service daemon but it is inteded to get more generic in upcoming releases. Your help is welcome.
Download (0.014MB)
Added: 2007-04-16 License: Perl Artistic License Price:
926 downloads
Config::File 1.4
Config::File is a Perl module to parse a simple configuration file. more>>
Config::File is a Perl module to parse a simple configuration file.
SYNOPSIS
use Config::File;
my $config_hash = Config::File::read_config_file($configuration_file);
read_config_file parses a simple configuration file and stores its values in an anonymous hash reference. The syntax of the configuration file is quite simple:
# This is a comment
VALUE_ONE = foo
VALUE_TWO = $VALUE_ONE/bar
VALUE_THREE = The value contains a # (hash). # This is a comment.
Options can be clustered when creating groups:
CLUSTER_ONE[data] = data cluster one
CLUSTER_ONE[value] = value cluster one
CLUSTER_TWO[data] = data cluster two
CLUSTER_TWO[value] = value cluster two
Then values can be fetched using this syntax:
$hash_config->{CLUSTER_ONE}{data};
There can be as many sub-options in a cluster as needed.
BIG_CLUSTER[part1][part2][part3] = data
is fetched by: $hash_config->{BIG_CLUSTER}{part1}{part2}{part3};
There are a couple of restrictions as for the names of the keys. First of all, all the characters should be alphabetic, numeric, underscores or hyphens, with square brackets allowed for the clustering. That is, the keys should conform to /^[A-Za-z0-9_-]+$/
This means also that no space is allowed in the key part of the line.
CLUSTER_ONE[data] = data cluster one # Right
CLUSTER_ONE[ data ] = data cluster one # Wrong
<<lessSYNOPSIS
use Config::File;
my $config_hash = Config::File::read_config_file($configuration_file);
read_config_file parses a simple configuration file and stores its values in an anonymous hash reference. The syntax of the configuration file is quite simple:
# This is a comment
VALUE_ONE = foo
VALUE_TWO = $VALUE_ONE/bar
VALUE_THREE = The value contains a # (hash). # This is a comment.
Options can be clustered when creating groups:
CLUSTER_ONE[data] = data cluster one
CLUSTER_ONE[value] = value cluster one
CLUSTER_TWO[data] = data cluster two
CLUSTER_TWO[value] = value cluster two
Then values can be fetched using this syntax:
$hash_config->{CLUSTER_ONE}{data};
There can be as many sub-options in a cluster as needed.
BIG_CLUSTER[part1][part2][part3] = data
is fetched by: $hash_config->{BIG_CLUSTER}{part1}{part2}{part3};
There are a couple of restrictions as for the names of the keys. First of all, all the characters should be alphabetic, numeric, underscores or hyphens, with square brackets allowed for the clustering. That is, the keys should conform to /^[A-Za-z0-9_-]+$/
This means also that no space is allowed in the key part of the line.
CLUSTER_ONE[data] = data cluster one # Right
CLUSTER_ONE[ data ] = data cluster one # Wrong
Download (0.004MB)
Added: 2007-04-12 License: Perl Artistic License Price:
928 downloads
DOCSIS Config .3
DOCSIS Config provides a PHP library to encode binary configuration files for DOCSIS cable modems. more>>
DOCSIS Config provides a PHP library to encode binary configuration files for DOCSIS cable modems.
<<less Download (0.034MB)
Added: 2007-04-11 License: LGPL (GNU Lesser General Public License) Price:
966 downloads
Config Maker 0.2
Config Maker is a tool to automatically create C++ classes that parse configuration files. more>>
Config Maker is a tool to automatically create C++ classes that parse configuration files.
Only a few lines of text that describe the possible entries in the configuration file are needed, and the complete class will be generated ready for use.
Basic usage
The input files for Config Maker have a very simple structure (in ANTLR/grep like notation):
objectname (configentry)+
Each configentry looks like this
type entryname defaultvalue (comment)?
type
Type of the entry, can be int, double, string or bool. If the basic type is followed by any number, the corresponding c++object variable will be of type vector < basic type > The number is the initial number of elements that are allocated for the vector, but the actual configuration file can contain more components. These are added using the push_back method.
If there are less elements specified in the configuration file, the object variable will still contain the number of elements specified here. No warning will be issued.
configentry
Name of the entry and corresponding variable. Has to be at least two characters long and can contain characters and numbers. Case insensitive.
defaultvalue
Default value for the entry. This is optional.
comment
Each comment starts with // and is completely ignored
<<lessOnly a few lines of text that describe the possible entries in the configuration file are needed, and the complete class will be generated ready for use.
Basic usage
The input files for Config Maker have a very simple structure (in ANTLR/grep like notation):
objectname (configentry)+
Each configentry looks like this
type entryname defaultvalue (comment)?
type
Type of the entry, can be int, double, string or bool. If the basic type is followed by any number, the corresponding c++object variable will be of type vector < basic type > The number is the initial number of elements that are allocated for the vector, but the actual configuration file can contain more components. These are added using the push_back method.
If there are less elements specified in the configuration file, the object variable will still contain the number of elements specified here. No warning will be issued.
configentry
Name of the entry and corresponding variable. Has to be at least two characters long and can contain characters and numbers. Case insensitive.
defaultvalue
Default value for the entry. This is optional.
comment
Each comment starts with // and is completely ignored
Download (0.30MB)
Added: 2007-03-20 License: GPL (GNU General Public License) Price:
955 downloads
Config::Std 0.0.4
Config::Std is a Perl module load and save configuration files in a standard format. more>>
Config::Std is a Perl module load and save configuration files in a standard format.
SYNOPSIS
use Config::Std;
# Load named config file into specified hash...
read_config demo2.cfg => my %config;
# Extract the value of a key/value pair from a specified section...
$config_value = $config{Section_label}{key};
# Change (or create) the value of a key/value pair...
$config{Other_section_label}{other_key} = $new_val;
# Update the config file from which this hash was loaded...
write_config %config;
# Write the config information to another file as well...
write_config %config, $other_file_name;
This module implements yet another damn configuration-file system.
The configuration language is deliberately simple and limited, and the module works hard to preserve as much information (section order, comments, etc.) as possible when a configuration file is updated.
See Chapter 19 of "Perl Best Practices" (OReilly, 2005) for the rationale for this approach.
<<lessSYNOPSIS
use Config::Std;
# Load named config file into specified hash...
read_config demo2.cfg => my %config;
# Extract the value of a key/value pair from a specified section...
$config_value = $config{Section_label}{key};
# Change (or create) the value of a key/value pair...
$config{Other_section_label}{other_key} = $new_val;
# Update the config file from which this hash was loaded...
write_config %config;
# Write the config information to another file as well...
write_config %config, $other_file_name;
This module implements yet another damn configuration-file system.
The configuration language is deliberately simple and limited, and the module works hard to preserve as much information (section order, comments, etc.) as possible when a configuration file is updated.
See Chapter 19 of "Perl Best Practices" (OReilly, 2005) for the rationale for this approach.
Download (0.012MB)
Added: 2007-01-18 License: Perl Artistic License Price:
1009 downloads
MRTG::Config 0.04
MRTG::Config is a Perl module for parsing MRTG configuration files. more>>
MRTG::Config is a Perl module for parsing MRTG configuration files.
WARNING
This module, while reliable right now, is still in ALPHA stages of development... The API/methods may change. Behaviors of methods will almost certainly change. The internal structure of data will change, as will many other things.
I will try to always release working versions, but anyone who expects their code that uses this module to continue working shouldnt... until I remove this warning.
SYNOPSIS
Ever have the need to parse an MRTG config file? I have. I needed to parse lots and lots of them. Using the functions built-in to MRTG_lib was too slow, too complex, and used too much RAM and CPU time for my poor web server to handle - and the data structures MRTG_lib built were way more complex than I needed.
MRTG::Config can load and parse MRTG and MRTG-style confiuguration files very quickly, and the parsed directives, targets and values can be located, extracted, and manipulated through an OO interface.
This module is intended to focus on correctly parsing the format of an MRTG configuration, regardless of whether or not the directives and values, etc. are valid for MRTG. I am using both the parsing behavior of MRTG_libs readcfg() function and the description of the format on the MRTG website as my guidelines on how to correctly parse these configuration files. I am still a short way off that goal, but this module is currently being used in a production environment with great success!
PLEA FOR MERCY
I plan on adding to this documentation and making it better organized soon, but Im willing to answer questions directly in the mean time. Also, this is my first module, written in a hurry to appease some disgruntled engineers. I do plan on continuing to improve it, so any input, positive or negative is certainly welcome!
USAGE EXAMPLE
use MRTG::Config;
my $cfgFile = mrtg.cfg;
my $persist_file = mrtg.cfg.db;
my $mrtgCfg = new MRTG::Config;
$mrtgCfg->loadparse($cfgFile);
# Want to store the parsed data for use later or by
# another program?
$mrtgCfg->persist_file($persist_file);
$mrtgCfg->persist(1);
foreach my $tgtName (@{$mrtgCfg->targets()}) {
my $tgtCfg = $mrtgCfg->target($tgtName);
# Lets assume every target has a Title.
print $tgtCfg->{title} . "n";
}
# globals() has some, um, interesting things you
# should know. Please read about it below...
my $globalCfg = $mrtgCfg->globals();
# Lets assume WorkDir is set.
print $globalCfg->{workdir} . "n";
<<lessWARNING
This module, while reliable right now, is still in ALPHA stages of development... The API/methods may change. Behaviors of methods will almost certainly change. The internal structure of data will change, as will many other things.
I will try to always release working versions, but anyone who expects their code that uses this module to continue working shouldnt... until I remove this warning.
SYNOPSIS
Ever have the need to parse an MRTG config file? I have. I needed to parse lots and lots of them. Using the functions built-in to MRTG_lib was too slow, too complex, and used too much RAM and CPU time for my poor web server to handle - and the data structures MRTG_lib built were way more complex than I needed.
MRTG::Config can load and parse MRTG and MRTG-style confiuguration files very quickly, and the parsed directives, targets and values can be located, extracted, and manipulated through an OO interface.
This module is intended to focus on correctly parsing the format of an MRTG configuration, regardless of whether or not the directives and values, etc. are valid for MRTG. I am using both the parsing behavior of MRTG_libs readcfg() function and the description of the format on the MRTG website as my guidelines on how to correctly parse these configuration files. I am still a short way off that goal, but this module is currently being used in a production environment with great success!
PLEA FOR MERCY
I plan on adding to this documentation and making it better organized soon, but Im willing to answer questions directly in the mean time. Also, this is my first module, written in a hurry to appease some disgruntled engineers. I do plan on continuing to improve it, so any input, positive or negative is certainly welcome!
USAGE EXAMPLE
use MRTG::Config;
my $cfgFile = mrtg.cfg;
my $persist_file = mrtg.cfg.db;
my $mrtgCfg = new MRTG::Config;
$mrtgCfg->loadparse($cfgFile);
# Want to store the parsed data for use later or by
# another program?
$mrtgCfg->persist_file($persist_file);
$mrtgCfg->persist(1);
foreach my $tgtName (@{$mrtgCfg->targets()}) {
my $tgtCfg = $mrtgCfg->target($tgtName);
# Lets assume every target has a Title.
print $tgtCfg->{title} . "n";
}
# globals() has some, um, interesting things you
# should know. Please read about it below...
my $globalCfg = $mrtgCfg->globals();
# Lets assume WorkDir is set.
print $globalCfg->{workdir} . "n";
Download (0.012MB)
Added: 2007-07-26 License: Perl Artistic License Price:
824 downloads
Ntfs-config 1.0.1
Ntfs-config project can enable/disable NTFS write support with a simple click. more>>
Ntfs-config project can enable/disable NTFS write support with a simple click.
After year of developpement, a new NTFS drivers with full safe write capability is coming. Is name : ntfs-3g.
The driver status is still beta, but read/write feature is stable, and it is already use by thousands of people around the world.
The main point people are struggle with, is how configuring their system to be able to use it.
The aim of the ntfs-config project is to make life of people easier, by providing an easy way to enable/disable write capability for all their device, internal or external.
Main features:
- Automatic detection of none yet configure NTFS partition
- Enable/disable write support for internal device
- Enable/disable write support for external device
<<lessAfter year of developpement, a new NTFS drivers with full safe write capability is coming. Is name : ntfs-3g.
The driver status is still beta, but read/write feature is stable, and it is already use by thousands of people around the world.
The main point people are struggle with, is how configuring their system to be able to use it.
The aim of the ntfs-config project is to make life of people easier, by providing an easy way to enable/disable write capability for all their device, internal or external.
Main features:
- Automatic detection of none yet configure NTFS partition
- Enable/disable write support for internal device
- Enable/disable write support for external device
Download (0.037MB)
Added: 2007-07-17 License: GPL (GNU General Public License) Price:
513 downloads
PXP::Config 0.1.2
PXP::Config is a Perl module for PXP configuration. more>>
PXP::Config is a Perl module for PXP configuration.
SYNOPSIS
# do this only once at server initialization:
PXP::Config::init(file=>$finename);
# then from anywhere:
my $global_configuration_hash = PXP::Config::getGlobal();
# only from a plugin class:
my $plugin_configuration_hash = PXP::Config::get();
PXP::Config is a PXP component which provides a unified and simplified API for the PXP server and PXP plugins to read and store there configuration.
PXP::Config uses the XML::Simple module to access a centralized XML configuration file. This file (/opt/etc/imc.xml by default) contains root element named imc which has a global child for the PXP server configuration and a plugins child which has itself a child per plugin configuration (the child name must be the plugin name for this class to automatically retrieve a plugin configuration.
As plugins configurations are retrived by plugin name in a centralized location, the only thing a plugin has to do in order to get its configuration is to call the PXP::Config::get() method which returns a hash convertion of the plugin XML configuration.
Configuring plugins can be made in two manners:
1) the simple way - use it when you dont need to update the configuration from the application itself and when your plugin configuration has a very simple structure:
simply add a tag with the name of your plugin in the etc/imc.xml file, the plugin configuration can then be accessed as a has by calling the PXP::Config::get() method
2) the sophisticated way - use it in other cases:
create a new package in a file MyConfig/PLUGIN_NAME.pm under your plugin directory
in this file, define a package that inherits from PXP::MyConfig class and which overrode the config, loadFile and synchro methods (see plugins/LogViewer/MyConfig/LogViewer.pm for an example)
edit your plugin.xml and add your new package as an extension to the PXP::MyConfig extension point:
< extension
id="MyConfig::LogViewer"
name="Plugin configuration"
version="0.1"
point="IMC::MyConfig"/ >
< file value=/tmp/imc.xml/ >
< /extension >
You can ommit the file tag, configuration file will then default to the main configuration file (the one passed to the server with the -c switch or etc/imc.xml by default).
See the PXP::Config and PXP::MyConfig APIs for using configuration inside plugins.
<<lessSYNOPSIS
# do this only once at server initialization:
PXP::Config::init(file=>$finename);
# then from anywhere:
my $global_configuration_hash = PXP::Config::getGlobal();
# only from a plugin class:
my $plugin_configuration_hash = PXP::Config::get();
PXP::Config is a PXP component which provides a unified and simplified API for the PXP server and PXP plugins to read and store there configuration.
PXP::Config uses the XML::Simple module to access a centralized XML configuration file. This file (/opt/etc/imc.xml by default) contains root element named imc which has a global child for the PXP server configuration and a plugins child which has itself a child per plugin configuration (the child name must be the plugin name for this class to automatically retrieve a plugin configuration.
As plugins configurations are retrived by plugin name in a centralized location, the only thing a plugin has to do in order to get its configuration is to call the PXP::Config::get() method which returns a hash convertion of the plugin XML configuration.
Configuring plugins can be made in two manners:
1) the simple way - use it when you dont need to update the configuration from the application itself and when your plugin configuration has a very simple structure:
simply add a tag with the name of your plugin in the etc/imc.xml file, the plugin configuration can then be accessed as a has by calling the PXP::Config::get() method
2) the sophisticated way - use it in other cases:
create a new package in a file MyConfig/PLUGIN_NAME.pm under your plugin directory
in this file, define a package that inherits from PXP::MyConfig class and which overrode the config, loadFile and synchro methods (see plugins/LogViewer/MyConfig/LogViewer.pm for an example)
edit your plugin.xml and add your new package as an extension to the PXP::MyConfig extension point:
< extension
id="MyConfig::LogViewer"
name="Plugin configuration"
version="0.1"
point="IMC::MyConfig"/ >
< file value=/tmp/imc.xml/ >
< /extension >
You can ommit the file tag, configuration file will then default to the main configuration file (the one passed to the server with the -c switch or etc/imc.xml by default).
See the PXP::Config and PXP::MyConfig APIs for using configuration inside plugins.
Download (0.014MB)
Added: 2006-09-19 License: Perl Artistic License Price:
1134 downloads
Config::Fast 1.07
Config::Fast is an extremely fast configuration file parser. more>>
Config::Fast is an extremely fast configuration file parser.
SYNOPSIS
# default config format is a space-separated file
company "Supercool, Inc."
support nobody@nowhere.com
# and then in Perl
use Config::Fast;
%cf = fastconfig;
print "Thanks for visiting $cf{company}!n";
print "Please contact $cf{support} for support.n";
This module is designed to provide an extremely lightweight way to parse moderately complex configuration files. As such, it exports a single function - fastconfig() - and does not provide any OO access methods. Still, it is fairly full-featured.
Heres how it works:
%cf = fastconfig($file, $delim);
Basically, the fastconfig() function returns a hash of keys and values based on the directives in your configuration file. By default, directives and values are separated by whitespace in the config file, but this can be easily changed with the delimiter argument (see below).
When the configuration file is read, its modification time is first checked and the results cached. On each call to fastconfig(), if the config file has been changed, then the file is reread. Otherwise, the cached results are returned automatically. This makes this module great for mod_perl modules and scripts, one of the primary reasons I wrote it. Simply include this at the top of your script or inside of your constructor function:
my %cf = fastconfig(/path/to/config/file.conf);
If the file argument is omitted, then fastconfig() looks for a file named $0.conf in the ../etc directory relative to the executable. For example, if you ran:
/usr/local/bin/myapp
Then fastconfig() will automatically look for:
/usr/local/etc/myapp.conf
This is great if youre really lazy and always in a hurry, like I am.
If this doesnt work for you, simply supply a filename manually. Note that filename generation does not work in mod_perl, so youll need to supply a filename manually.
<<lessSYNOPSIS
# default config format is a space-separated file
company "Supercool, Inc."
support nobody@nowhere.com
# and then in Perl
use Config::Fast;
%cf = fastconfig;
print "Thanks for visiting $cf{company}!n";
print "Please contact $cf{support} for support.n";
This module is designed to provide an extremely lightweight way to parse moderately complex configuration files. As such, it exports a single function - fastconfig() - and does not provide any OO access methods. Still, it is fairly full-featured.
Heres how it works:
%cf = fastconfig($file, $delim);
Basically, the fastconfig() function returns a hash of keys and values based on the directives in your configuration file. By default, directives and values are separated by whitespace in the config file, but this can be easily changed with the delimiter argument (see below).
When the configuration file is read, its modification time is first checked and the results cached. On each call to fastconfig(), if the config file has been changed, then the file is reread. Otherwise, the cached results are returned automatically. This makes this module great for mod_perl modules and scripts, one of the primary reasons I wrote it. Simply include this at the top of your script or inside of your constructor function:
my %cf = fastconfig(/path/to/config/file.conf);
If the file argument is omitted, then fastconfig() looks for a file named $0.conf in the ../etc directory relative to the executable. For example, if you ran:
/usr/local/bin/myapp
Then fastconfig() will automatically look for:
/usr/local/etc/myapp.conf
This is great if youre really lazy and always in a hurry, like I am.
If this doesnt work for you, simply supply a filename manually. Note that filename generation does not work in mod_perl, so youll need to supply a filename manually.
Download (0.010MB)
Added: 2007-08-11 License: Perl Artistic License Price:
805 downloads
NetCARD Config 1.05
NetCARD Config project helps linux users to configure network cards for two ip one for DSL network one for Local Network. more>>
NetCARD Config project helps linux users to configure network cards for two ip one for DSL network one for Local Network.
<<less Download (0.030MB)
Added: 2006-03-27 License: GPL (GNU General Public License) Price:
1315 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above config search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed