config
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 1091
Config::Model::ValueComputer 0.612
Config::Model::ValueComputer is a Perl module that provides configuration value computation. more>>
Config::Model::ValueComputer is a Perl module that provides configuration value computation.
SYNOPSIS
my $model = Config::Model->new() ;
$model ->create_config_class
(
name => "Master",
element
=> [
[qw/av bv/] => {type => leaf,
value_type => integer,
},
compute_int
=> { type => leaf,
value_type => integer,
compute => [ $a + $b, a => - av, b => - bv ],
min => -4,
max => 4,
},
[qw/sav sbv/] => {type => leaf,
value_type => string,
},
compute_string =>
=> { type => leaf,
value_type => string,
compute => [ meet $a and $b, a => - sav, b => - sbv ],
},
]
) ;
<<lessSYNOPSIS
my $model = Config::Model->new() ;
$model ->create_config_class
(
name => "Master",
element
=> [
[qw/av bv/] => {type => leaf,
value_type => integer,
},
compute_int
=> { type => leaf,
value_type => integer,
compute => [ $a + $b, a => - av, b => - bv ],
min => -4,
max => 4,
},
[qw/sav sbv/] => {type => leaf,
value_type => string,
},
compute_string =>
=> { type => leaf,
value_type => string,
compute => [ meet $a and $b, a => - sav, b => - sbv ],
},
]
) ;
Download (0.13MB)
Added: 2007-08-16 License: Perl Artistic License Price:
799 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
system-config-printer 0.7.72
system-config-printer purpose is to configure a CUPS server (often the local machine) using the CUPS API. more>>
system-config-printer purpose is to configure a CUPS server (often the local machine) using the CUPS API. The tool is written in Python, using pygtk for the graphical parts and with some Python bindings (pycups) for the CUPS API.
It is largely the same as using the CUPS web interface for configuring printers, but has the advantage of being a native application rather than a web page. It appears in the Fedora menu under System -> Administration -> Printing.
As a result of using the CUPS API the tool is able to configure remote CUPS instances and is not limited to configuring CUPS on the local machine. The CUPS library providing the API uses HTTP and IPP to communicate with the CUPS server.
Enhancements:
- Several improvements for the new-printer wizard have been made, and assorted bugs have been fixed.
<<lessIt is largely the same as using the CUPS web interface for configuring printers, but has the advantage of being a native application rather than a web page. It appears in the Fedora menu under System -> Administration -> Printing.
As a result of using the CUPS API the tool is able to configure remote CUPS instances and is not limited to configuring CUPS on the local machine. The CUPS library providing the API uses HTTP and IPP to communicate with the CUPS server.
Enhancements:
- Several improvements for the new-printer wizard have been made, and assorted bugs have been fixed.
Download (0.47MB)
Added: 2007-08-09 License: GPL (GNU General Public License) Price:
810 downloads
Other version of system-config-printer
License:GPL (GNU General Public License)
XAO::DO::FS::Config 1.06
XAO::DO::FS::Config is an embeddable configuration object for XAO::FS. more>>
XAO::DO::FS::Config is an embeddable configuration object for XAO::FS.
SYNOPSIS
use XAO::Projects;
use XAO::Objects;
my $config=XAO::Objects->new(objname => Config,
sitename => test);
XAO::Projects::create_project(name => test,
object => $config,
set_current => 1);
my $fsconfig=XAO::Objects->new(objname => FS::Config,
odb_args => {
dsn => OS:MySQL_DBI:test_os
user => test,
password => TeSt,
});
$config->embed(fs => $fsconfig);
my $odb=$config->odb();
The XAO::DO::FS::Config is normally used in larger projects configurations that are persistent in memory. See XAO::DO::Config for more information on how embeddable configuration objects work.
METHODS
cleanup ()
Calls reset() method on the odb to clean up the handler and prepare it for the next session.
disable_special_access ()
Disables use of odb() method to set a new value (this is the default state).
embeddable_methods ()
Used internally by global Config object, returns an array with embeddable method names. Currently there is only one embeddable method -- odb().
enable_special_access ()
Enables use of odb() method to set a new value. Normally you do not need this method.
Example:
$config->enable_special_access();
$config->odb($odb);
$config->disable_special_access();
new ($$)
Creates a new empty configuration object. If odb_args is given then it will connect to a database using these arguments.
Example:
my $fsconfig=XAO::Objects->new(objname => FS::Config,
odb_args => {
dsn => OS:MySQL_DBI:test_os
user => test,
password => TeSt,
});
odb (;$)
Returns current database handler. If called with an argument and speciall access is enabled then replaces database handler.
<<lessSYNOPSIS
use XAO::Projects;
use XAO::Objects;
my $config=XAO::Objects->new(objname => Config,
sitename => test);
XAO::Projects::create_project(name => test,
object => $config,
set_current => 1);
my $fsconfig=XAO::Objects->new(objname => FS::Config,
odb_args => {
dsn => OS:MySQL_DBI:test_os
user => test,
password => TeSt,
});
$config->embed(fs => $fsconfig);
my $odb=$config->odb();
The XAO::DO::FS::Config is normally used in larger projects configurations that are persistent in memory. See XAO::DO::Config for more information on how embeddable configuration objects work.
METHODS
cleanup ()
Calls reset() method on the odb to clean up the handler and prepare it for the next session.
disable_special_access ()
Disables use of odb() method to set a new value (this is the default state).
embeddable_methods ()
Used internally by global Config object, returns an array with embeddable method names. Currently there is only one embeddable method -- odb().
enable_special_access ()
Enables use of odb() method to set a new value. Normally you do not need this method.
Example:
$config->enable_special_access();
$config->odb($odb);
$config->disable_special_access();
new ($$)
Creates a new empty configuration object. If odb_args is given then it will connect to a database using these arguments.
Example:
my $fsconfig=XAO::Objects->new(objname => FS::Config,
odb_args => {
dsn => OS:MySQL_DBI:test_os
user => test,
password => TeSt,
});
odb (;$)
Returns current database handler. If called with an argument and speciall access is enabled then replaces database handler.
Download (0.096MB)
Added: 2007-08-01 License: Perl Artistic License Price:
814 downloads
Perl::Critic::Config 1.061
Perl::Critic::Config is a Perl module to find and load Perl::Critic user-preferences. more>>
Perl::Critic::Config is a Perl module to find and load Perl::Critic user-preferences.
Perl::Critic::Config takes care of finding and processing user-preferences for Perl::Critic. The Config object defines which Policy modules will be loaded into the Perl::Critic engine and how they should be configured. You should never really need to instantiate Perl::Critic::Config directly because the Perl::Critic constructor will do it for you.
CONSTRUCTOR
new( [ -profile => $FILE, -severity => $N, -theme => $string, -include => @PATTERNS, -exclude => @PATTERNS, -single-policy => $PATTERN, -top => $N, -only => $B, -strict-profile => $B, -force => $B, -verbose => $N, -color => $B ] )
new()
Returns a reference to a new Perl::Critic::Config object. The default value for all arguments can be defined in your .perlcriticrc file. See the "CONFIGURATION" section for more information about that. All arguments are optional key-value pairs as follows:
-profile is a path to a configuration file. If $FILE is not defined, Perl::Critic::Config attempts to find a .perlcriticrc configuration file in the current directory, and then in your home directory. Alternatively, you can set the PERLCRITIC environment variable to point to a file in another location. If a configuration file cant be found, or if $FILE is an empty string, then all Policies will be loaded with their default configuration. See "CONFIGURATION" for more information.
-severity is the minimum severity level. Only Policy modules that have a severity greater than $N will be loaded into this Config. Severity values are integers ranging from 1 (least severe) to 5 (most severe). The default is 5. For a given -profile, decreasing the -severity will usually result in more Policy violations. Users can redefine the severity level for any Policy in their .perlcriticrc file. See "CONFIGURATION" for more information.
-theme is special string that defines a set of Policies based on their respective themes. If -theme is given, only policies that are members of that set will be loaded. See the "POLICY THEMES" section for more information about themes. Unless the -severity option is explicitly given, setting -theme causes the -severity to be set to 1.
-include is a reference to a list of string @PATTERNS. Policies that match at least one m/$PATTERN/imx will be loaded into this Config, irrespective of the severity settings. You can use it in conjunction with the -exclude option. Note that -exclude takes precedence over -include when a Policy matches both patterns.
-exclude is a reference to a list of string @PATTERNS. Polices that match at least one m/$PATTERN/imx will not be loaded into this Config, irrespective of the severity settings. You can use it in conjunction with the -include option. Note that -exclude takes precedence over -include when a Policy matches both patterns.
-single-policy is a string PATTERN. Only the policy that matches m/$PATTERN/imx will be used. This value overrides the -severity, -theme, -include, -exclude, and -only options.
-top is the maximum number of Violations to return when ranked by their severity levels. This must be a positive integer. Violations are still returned in the order that they occur within the file. Unless the -severity option is explicitly given, setting -top silently causes the -severity to be set to 1.
-only is a boolean value. If set to a true value, Perl::Critic will only choose from Policies that are mentioned in the users profile. If set to a false value (which is the default), then Perl::Critic chooses from all the Policies that it finds at your site.
-strict-profile is a boolean value. If set to a true value, Perl::Critic will make certain warnings about problems found in a .perlcriticrc or file specified via the -profile option fatal. In particular, Perl::Critic normally only warns about profiles referring to non-existent Policies, but this option makes this situation fatal.
-force controls whether Perl::Critic observes the magical "## no critic" pseudo-pragmas in your code. If set to a true value, Perl::Critic will analyze all code. If set to a false value (which is the default) Perl::Critic will ignore code that is tagged with these comments. See "BENDING THE RULES" for more information.
-verbose can be a positive integer (from 1 to 10), or a literal format specification. See Perl::Critic::Violations for an explanation of format specifications.
-color is not used by Perl::Critic but is provided for the benefit of perlcritic.
<<lessPerl::Critic::Config takes care of finding and processing user-preferences for Perl::Critic. The Config object defines which Policy modules will be loaded into the Perl::Critic engine and how they should be configured. You should never really need to instantiate Perl::Critic::Config directly because the Perl::Critic constructor will do it for you.
CONSTRUCTOR
new( [ -profile => $FILE, -severity => $N, -theme => $string, -include => @PATTERNS, -exclude => @PATTERNS, -single-policy => $PATTERN, -top => $N, -only => $B, -strict-profile => $B, -force => $B, -verbose => $N, -color => $B ] )
new()
Returns a reference to a new Perl::Critic::Config object. The default value for all arguments can be defined in your .perlcriticrc file. See the "CONFIGURATION" section for more information about that. All arguments are optional key-value pairs as follows:
-profile is a path to a configuration file. If $FILE is not defined, Perl::Critic::Config attempts to find a .perlcriticrc configuration file in the current directory, and then in your home directory. Alternatively, you can set the PERLCRITIC environment variable to point to a file in another location. If a configuration file cant be found, or if $FILE is an empty string, then all Policies will be loaded with their default configuration. See "CONFIGURATION" for more information.
-severity is the minimum severity level. Only Policy modules that have a severity greater than $N will be loaded into this Config. Severity values are integers ranging from 1 (least severe) to 5 (most severe). The default is 5. For a given -profile, decreasing the -severity will usually result in more Policy violations. Users can redefine the severity level for any Policy in their .perlcriticrc file. See "CONFIGURATION" for more information.
-theme is special string that defines a set of Policies based on their respective themes. If -theme is given, only policies that are members of that set will be loaded. See the "POLICY THEMES" section for more information about themes. Unless the -severity option is explicitly given, setting -theme causes the -severity to be set to 1.
-include is a reference to a list of string @PATTERNS. Policies that match at least one m/$PATTERN/imx will be loaded into this Config, irrespective of the severity settings. You can use it in conjunction with the -exclude option. Note that -exclude takes precedence over -include when a Policy matches both patterns.
-exclude is a reference to a list of string @PATTERNS. Polices that match at least one m/$PATTERN/imx will not be loaded into this Config, irrespective of the severity settings. You can use it in conjunction with the -include option. Note that -exclude takes precedence over -include when a Policy matches both patterns.
-single-policy is a string PATTERN. Only the policy that matches m/$PATTERN/imx will be used. This value overrides the -severity, -theme, -include, -exclude, and -only options.
-top is the maximum number of Violations to return when ranked by their severity levels. This must be a positive integer. Violations are still returned in the order that they occur within the file. Unless the -severity option is explicitly given, setting -top silently causes the -severity to be set to 1.
-only is a boolean value. If set to a true value, Perl::Critic will only choose from Policies that are mentioned in the users profile. If set to a false value (which is the default), then Perl::Critic chooses from all the Policies that it finds at your site.
-strict-profile is a boolean value. If set to a true value, Perl::Critic will make certain warnings about problems found in a .perlcriticrc or file specified via the -profile option fatal. In particular, Perl::Critic normally only warns about profiles referring to non-existent Policies, but this option makes this situation fatal.
-force controls whether Perl::Critic observes the magical "## no critic" pseudo-pragmas in your code. If set to a true value, Perl::Critic will analyze all code. If set to a false value (which is the default) Perl::Critic will ignore code that is tagged with these comments. See "BENDING THE RULES" for more information.
-verbose can be a positive integer (from 1 to 10), or a literal format specification. See Perl::Critic::Violations for an explanation of format specifications.
-color is not used by Perl::Critic but is provided for the benefit of perlcritic.
Download (0.24MB)
Added: 2007-08-01 License: Perl Artistic License Price:
814 downloads
Config::Model 1.003 (Config::Model::CursesUI)
Config::Model provides a framework to help in validating the semantic content of configuration data. more>>
Config::Model provides a framework to help in validating the semantic content of configuration data. The project can also be used to provide a semantic check of options of a complex program like mplayer or transcode.
For most complex software, configuration upgrade is a difficult task for most people. By using Config::Model, a software can provide a smooth upgrade path for their users.
How does this work ?
Using this project, a typical configuration validation tool will be made of 3 parts :
The user interface
The validation engine which is in charge of validating all the configuration information provided by the user.
The storage facility that store the configuration information
Dont we already have some configuration validation tools ?
Youre probably thinking of tools like webmin. Yes, these tools exist and work fine, but they have their set of drawbacks.
Usually, the validation of configuration data is done with a script which performs semantic validation and often ends up being quite complex (e.g. 2500 lines for Debians xserver-xorg.config script which handles xorg.conf file).
In most cases, the configuration model is expressed in instructions (whatever programming language is used) and interspersed with a lot of processing to handle the actual configuration data.
Whats the advantage of this project ?
The Config::Model projects provide a way to get a validation engine where the configuration model is completely separated from the actual processing instruction.
The configuration model is expressed in a declarative form (i.e. a Perl data structure) which is always easier to maintain than a lot of code.
The declaration specifies:
the structure of the configuration data (which can be queried by generic user interfaces)
the properties of each element (boundaries, check, integer or string, enum like type ...)
the default values of parameters (if any)
mandatory parameters
the targeted audience (intermediate, advance, master)
on-line help (for ach parameter or value of parameter)
the level of expertise of each parameter (to hide expert parameters from newbie eyes)
So, in the end:
maintenance and evolution of the configuration content is easier
user will see a *common* interface for *all* programs using this project.
user will not see advanced parameters
upgrade of configuration data is easier and sanity check is performed
audit of configuration is possible to check what was modified by the user compated to default values
What about the user interface ?
Config::Model will also come with a Curses::UI interface that queries the users model and generate the relevant user screens.
What about data storage ?
Since the syntax of configuration files vary wildly form one program to another, most people who want to use this framework will have to provide a dedicated parser/writer.
Nevertheless, this project can also provide a writer/parser for most common format: like ini style file, or provide an interface to the Elektra or debconf projects. This point is open for discussion.
It is entirely possible for a single configuration model to use several parsers and writers so one model will ensure the consistency of several configuration files together.
Enhancements:
- The Xorg model was updated to Config::model version 0.609.
- Some bugs were fixed.
<<lessFor most complex software, configuration upgrade is a difficult task for most people. By using Config::Model, a software can provide a smooth upgrade path for their users.
How does this work ?
Using this project, a typical configuration validation tool will be made of 3 parts :
The user interface
The validation engine which is in charge of validating all the configuration information provided by the user.
The storage facility that store the configuration information
Dont we already have some configuration validation tools ?
Youre probably thinking of tools like webmin. Yes, these tools exist and work fine, but they have their set of drawbacks.
Usually, the validation of configuration data is done with a script which performs semantic validation and often ends up being quite complex (e.g. 2500 lines for Debians xserver-xorg.config script which handles xorg.conf file).
In most cases, the configuration model is expressed in instructions (whatever programming language is used) and interspersed with a lot of processing to handle the actual configuration data.
Whats the advantage of this project ?
The Config::Model projects provide a way to get a validation engine where the configuration model is completely separated from the actual processing instruction.
The configuration model is expressed in a declarative form (i.e. a Perl data structure) which is always easier to maintain than a lot of code.
The declaration specifies:
the structure of the configuration data (which can be queried by generic user interfaces)
the properties of each element (boundaries, check, integer or string, enum like type ...)
the default values of parameters (if any)
mandatory parameters
the targeted audience (intermediate, advance, master)
on-line help (for ach parameter or value of parameter)
the level of expertise of each parameter (to hide expert parameters from newbie eyes)
So, in the end:
maintenance and evolution of the configuration content is easier
user will see a *common* interface for *all* programs using this project.
user will not see advanced parameters
upgrade of configuration data is easier and sanity check is performed
audit of configuration is possible to check what was modified by the user compated to default values
What about the user interface ?
Config::Model will also come with a Curses::UI interface that queries the users model and generate the relevant user screens.
What about data storage ?
Since the syntax of configuration files vary wildly form one program to another, most people who want to use this framework will have to provide a dedicated parser/writer.
Nevertheless, this project can also provide a writer/parser for most common format: like ini style file, or provide an interface to the Elektra or debconf projects. This point is open for discussion.
It is entirely possible for a single configuration model to use several parsers and writers so one model will ensure the consistency of several configuration files together.
Enhancements:
- The Xorg model was updated to Config::model version 0.609.
- Some bugs were fixed.
Download (0.015MB)
Added: 2007-05-22 License: LGPL (GNU Lesser General Public License) Price:
886 downloads
Other version of Config::Model
License:LGPL (GNU Lesser General Public License)
License:GPL (GNU General Public License)
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
Edit Config Files 1.7.5 for Firefox
Edit Config Files is an extension that allows you to edit config files. more>>
Edit Config Files is an extension that allows you to edit config files.
Edit configuration files with your favorite editor from Toolbar or Tools menu.
Remove the menu icon
Add the following to userChrome.css:
#editconfigfiles-menu
{
list-style-image:none !important;
}
<<lessEdit configuration files with your favorite editor from Toolbar or Tools menu.
Remove the menu icon
Add the following to userChrome.css:
#editconfigfiles-menu
{
list-style-image:none !important;
}
Download (0.031MB)
Added: 2007-07-16 License: MPL (Mozilla Public License) Price:
842 downloads
Generic PHP plugins and config system 0.85
Generic PHP plugins and config system can be utilized for human-friendly .php script descriptions. more>>
PHP plugin meta data specification can be utilized in multiple ways, especially just for human-friendly .php script descriptions. So the following implementation is just one possible way to utilize the plugin meta data scheme.
Generic PHP plugins and config system project has is GNU GPL / PD dual-licensed.
Main features:
- Read meta infos from .php plugins.
- Present them in a nice UI, which allows to enable/disable plugins.
- Non-destructively edit a "config.php" settings script.
- Resolve plugin dependencies.
Enhancements:
- A few changes in libconfig now provide better plugin dependency resolution.
- Default values for configuration settings are taken into account better, and so variable assignments get added less often.
- The plugin meta data reading now detects and converts the old WordPress plugin description format.
<<lessGeneric PHP plugins and config system project has is GNU GPL / PD dual-licensed.
Main features:
- Read meta infos from .php plugins.
- Present them in a nice UI, which allows to enable/disable plugins.
- Non-destructively edit a "config.php" settings script.
- Resolve plugin dependencies.
Enhancements:
- A few changes in libconfig now provide better plugin dependency resolution.
- Default values for configuration settings are taken into account better, and so variable assignments get added less often.
- The plugin meta data reading now detects and converts the old WordPress plugin description format.
Download (0.060MB)
Added: 2007-07-16 License: GPL (GNU General Public License) Price:
831 downloads
Config::Model::WarpedThing 0.611
Config::Model::WarpedThing is a base class for warped classes. more>>
Config::Model::WarpedThing is a base class for warped classes.
SYNOPSIS
use base qw/Config::Model::WarpedThing/ ;
This class must be inherited by all classes that can be warped by Config::Model::Value. This class provides a set of methods that are expected by a warp master from a warped class.
Currently this class is inherited by Config::Model::Value, Config::Model::AnyId and Config::Model::WarpedNode.
WarpThing does not provide a constructor.
<<lessSYNOPSIS
use base qw/Config::Model::WarpedThing/ ;
This class must be inherited by all classes that can be warped by Config::Model::Value. This class provides a set of methods that are expected by a warp master from a warped class.
Currently this class is inherited by Config::Model::Value, Config::Model::AnyId and Config::Model::WarpedNode.
WarpThing does not provide a constructor.
Download (0.12MB)
Added: 2007-07-06 License: Perl Artistic License Price:
840 downloads
HH::Unispool::Config::File::Token::Unnumbered::Bcs 0.3
HH::Unispool::Config::File::Token::Unnumbered::Bcs is a Perl class for BCS B tokens. more>>
HH::Unispool::Config::File::Token::Unnumbered::Bcs is a Perl class for BCS B tokens.
SYNOPSIS
Application programmers dont need to use this class and API programmers read code.
ABSTRACT
class for BCS B tokens
HH::Unispool::Config::File::Token::Unnumbered::Bcs is a class for BCS B tokens.
CONSTRUCTOR
new(OPT_HASH_REF)
Creates a new HH::Unispool::Config::File::Token::Unnumbered::Bcs object. OPT_HASH_REF is a hash reference used to pass initialization options. OPT_HASH_REF is mandatory. On error an exception Error::Simple is thrown.
Options for OPT_HASH_REF inherited through package HH::Unispool::Config::File::Token may include:
input_line_number
Passed to set_input_line_number().
Options for OPT_HASH_REF inherited through package HH::Unispool::Config::File::Token::Unnumbered::CsBcs may include:
hostname
Passed to set_hostname(). Mandatory option.
new_from_string(LINE)
Creates a new object from the specified Unispool config file line string.
METHODS
get_hostname()
This method is inherited from package HH::Unispool::Config::File::Token::Unnumbered::CsBcs. Returns the host name in the comment.
get_input_line_number()
This method is inherited from package HH::Unispool::Config::File::Token. Returns the line number from from which the token is read.
read_string(LINE)
This method is overloaded from package HH::Unispool::Config::File::Token::Unnumbered. Reads the Unispool config file token from a line string. LINE is a plain line string. On error an exception Error::Simple is thrown.
set_hostname(VALUE)
This method is inherited from package HH::Unispool::Config::File::Token::Unnumbered::CsBcs. Set the host name in the comment. VALUE is the value. VALUE may not be undef. On error an exception Error::Simple is thrown.
VALUE must match regular expression:
^.+$
set_input_line_number(VALUE)
This method is inherited from package HH::Unispool::Config::File::Token. Set the line number from from which the token is read. VALUE is the value. On error an exception Error::Simple is thrown.
VALUE must match regular expression:
^d*$
write_string()
This method is overloaded from package HH::Unispool::Config::File::Token::Unnumbered. Returns a Unispool config file token line string.
<<lessSYNOPSIS
Application programmers dont need to use this class and API programmers read code.
ABSTRACT
class for BCS B tokens
HH::Unispool::Config::File::Token::Unnumbered::Bcs is a class for BCS B tokens.
CONSTRUCTOR
new(OPT_HASH_REF)
Creates a new HH::Unispool::Config::File::Token::Unnumbered::Bcs object. OPT_HASH_REF is a hash reference used to pass initialization options. OPT_HASH_REF is mandatory. On error an exception Error::Simple is thrown.
Options for OPT_HASH_REF inherited through package HH::Unispool::Config::File::Token may include:
input_line_number
Passed to set_input_line_number().
Options for OPT_HASH_REF inherited through package HH::Unispool::Config::File::Token::Unnumbered::CsBcs may include:
hostname
Passed to set_hostname(). Mandatory option.
new_from_string(LINE)
Creates a new object from the specified Unispool config file line string.
METHODS
get_hostname()
This method is inherited from package HH::Unispool::Config::File::Token::Unnumbered::CsBcs. Returns the host name in the comment.
get_input_line_number()
This method is inherited from package HH::Unispool::Config::File::Token. Returns the line number from from which the token is read.
read_string(LINE)
This method is overloaded from package HH::Unispool::Config::File::Token::Unnumbered. Reads the Unispool config file token from a line string. LINE is a plain line string. On error an exception Error::Simple is thrown.
set_hostname(VALUE)
This method is inherited from package HH::Unispool::Config::File::Token::Unnumbered::CsBcs. Set the host name in the comment. VALUE is the value. VALUE may not be undef. On error an exception Error::Simple is thrown.
VALUE must match regular expression:
^.+$
set_input_line_number(VALUE)
This method is inherited from package HH::Unispool::Config::File::Token. Set the line number from from which the token is read. VALUE is the value. On error an exception Error::Simple is thrown.
VALUE must match regular expression:
^d*$
write_string()
This method is overloaded from package HH::Unispool::Config::File::Token::Unnumbered. Returns a Unispool config file token line string.
Download (0.13MB)
Added: 2007-06-25 License: GPL (GNU General Public License) Price:
852 downloads
App::Conf::File 0.965
App::Conf::File is a Perl module to load and access configuration data. more>>
App::Conf::File is a Perl module to load and access configuration data.
SYNOPSIS
use App::Conf;
$config = App::Conf->new();
$config = App::Conf->new(configFile => $file);
print $config->dump(), "n"; # use Data::Dumper to spit out the Perl representation
# accessors
$property_value = $config->get($property_name);
$branch = $config->get_branch($branch_name); # get hashref of properties
# on-demand loading helper methods (private methods)
$config->overlay($config2); # merge the two config structures using overlay rules
$config->overlay($config1, $config2); # merge $config2 onto $config1
$config->graft($branch_name, $config2); # graft new config structure onto branch
# By convention, the configurations for each App-Context service will be located
# two levels under the hash ref as shown.
$config->{Conf} # config settings for all Conf services
$config->{Conf}{default} # config settings for the default Conf service
$config->{Security} # config settings for all Security services
$config->{Security}{default} # config settings for the default Security service
$config->{Template}{tt} # config settings for the Template service named "tt"
# The default driver (if "configClass" not supplied) reads in a Perl
# data structure from the file. Alternate drivers can read a Storable,
# unvalidated XML, DTD-validated XML, RDF-validated XML, or any other
# file format or data source anyone cares to write a driver for.
$conf = {
Standard => {
Log-Dispatch => {
logdir => /var/p5ee,
}
},
Authen => {
passwd => /etc/passwd,
seed => 303292,
},
};
# A comparable unvalidating XML file would look like this.
< conf>
< Standard>
< Log-Dispatch logdir="/var/p5ee"/>
< /Standard>
< Authen passwd="/etc/passwd" seed="303292"/>
< /conf>
# A comparable ini file (.ini) would look like this.
[Standard.Log-Dispatch]
logdir = /var/p5ee
[Authen]
passwd = /etc/passwd
seed = 303292
# A comparable Java properties-like file would look like this.
Standard.Log-Dispatch.logdir = /var/p5ee
Authen.passwd = /etc/passwd
Authen.seed = 303292
<<lessSYNOPSIS
use App::Conf;
$config = App::Conf->new();
$config = App::Conf->new(configFile => $file);
print $config->dump(), "n"; # use Data::Dumper to spit out the Perl representation
# accessors
$property_value = $config->get($property_name);
$branch = $config->get_branch($branch_name); # get hashref of properties
# on-demand loading helper methods (private methods)
$config->overlay($config2); # merge the two config structures using overlay rules
$config->overlay($config1, $config2); # merge $config2 onto $config1
$config->graft($branch_name, $config2); # graft new config structure onto branch
# By convention, the configurations for each App-Context service will be located
# two levels under the hash ref as shown.
$config->{Conf} # config settings for all Conf services
$config->{Conf}{default} # config settings for the default Conf service
$config->{Security} # config settings for all Security services
$config->{Security}{default} # config settings for the default Security service
$config->{Template}{tt} # config settings for the Template service named "tt"
# The default driver (if "configClass" not supplied) reads in a Perl
# data structure from the file. Alternate drivers can read a Storable,
# unvalidated XML, DTD-validated XML, RDF-validated XML, or any other
# file format or data source anyone cares to write a driver for.
$conf = {
Standard => {
Log-Dispatch => {
logdir => /var/p5ee,
}
},
Authen => {
passwd => /etc/passwd,
seed => 303292,
},
};
# A comparable unvalidating XML file would look like this.
< conf>
< Standard>
< Log-Dispatch logdir="/var/p5ee"/>
< /Standard>
< Authen passwd="/etc/passwd" seed="303292"/>
< /conf>
# A comparable ini file (.ini) would look like this.
[Standard.Log-Dispatch]
logdir = /var/p5ee
[Authen]
passwd = /etc/passwd
seed = 303292
# A comparable Java properties-like file would look like this.
Standard.Log-Dispatch.logdir = /var/p5ee
Authen.passwd = /etc/passwd
Authen.seed = 303292
Download (0.12MB)
Added: 2007-06-21 License: Perl Artistic License Price:
856 downloads
Log::Dispatch::Config 1.01
Log::Dispatch::Config is a Log4j for Perl. more>>
Log::Dispatch::Config is a Log4j for Perl.
SYNOPSIS
use Log::Dispatch::Config;
Log::Dispatch::Config->configure(/path/to/log.conf);
my $dispatcher = Log::Dispatch::Config->instance;
$dispatcher->debug(this is debug message);
$dispatcher->emergency(something *bad* happened!);
# automatic reloading conf file, when modified
Log::Dispatch::Config->configure_and_watch(/path/to/log.conf);
# or if you write your own config parser:
use Log::Dispatch::Configurator::XMLSimple;
my $config = Log::Dispatch::Configurator::XMLSimple->new(log.xml);
Log::Dispatch::Config->configure($config);
Log::Dispatch::Config is a subclass of Log::Dispatch and provides a way to configure Log::Dispatch object with configulation file (default, in AppConfig format). I mean, this is log4j for Perl, not with all API compatibility though.
METHOD
This module has a class method configure which parses config file for later creation of the Log::Dispatch::Config singleton instance. (Actual construction of the object is done in the first instance call).
So, what you should do is call configure method once in somewhere (like startup.pl in mod_perl), then you can get configured dispatcher instance via Log::Dispatch::Config->instance.
<<lessSYNOPSIS
use Log::Dispatch::Config;
Log::Dispatch::Config->configure(/path/to/log.conf);
my $dispatcher = Log::Dispatch::Config->instance;
$dispatcher->debug(this is debug message);
$dispatcher->emergency(something *bad* happened!);
# automatic reloading conf file, when modified
Log::Dispatch::Config->configure_and_watch(/path/to/log.conf);
# or if you write your own config parser:
use Log::Dispatch::Configurator::XMLSimple;
my $config = Log::Dispatch::Configurator::XMLSimple->new(log.xml);
Log::Dispatch::Config->configure($config);
Log::Dispatch::Config is a subclass of Log::Dispatch and provides a way to configure Log::Dispatch object with configulation file (default, in AppConfig format). I mean, this is log4j for Perl, not with all API compatibility though.
METHOD
This module has a class method configure which parses config file for later creation of the Log::Dispatch::Config singleton instance. (Actual construction of the object is done in the first instance call).
So, what you should do is call configure method once in somewhere (like startup.pl in mod_perl), then you can get configured dispatcher instance via Log::Dispatch::Config->instance.
Download (0.011MB)
Added: 2007-06-12 License: Perl Artistic License Price:
864 downloads
Java::SJ::Config 0.01
Java::SJ::Config is a Perl module that represents SJ Configuration File. more>>
Java::SJ::Config is a Perl module that represents SJ Configuration File.
It uses XML::XPath to parse configuration files and generates objects to represent the directives.
Unless youre working on the module what you really want to know is what directives are allowed and their meaning. Youre in luck, its below.
VARIABLES
The following variables and their relevant defaults are used by the system. These defaults have been chosen to make it as easy as possible to install SJ on a fairly standard UNIX system and have logs, and directories in places that you would expect to find them.
The full paths that will be used if every default is in effect is also shown below.
dir.base - default /usr/local - full /usr/local
The base directory for the system. This directory is used in conjunction with defaults to find directories if they have not been defined elsewhere.
dir.lib - default ${dir.base}/lib/sj - full /usr/local/lib/sj
The directory to find jar files in.
dir.pid - default ${dir.base}/var/run - full /usr/local/var/run
The directory to store PID files in.
dir.log - default ${dir.base}/var/log/sj - full /usr/local/var/log/sj
The directory to store log files in
dir.script - default ${dir.base}/var/sj/script - full /usr/local/var/sj/script
The directory to store generated script files in.
dir.tmp - default &File::Spec::Functions::tmpdir - full N/A (depends on system)
The directory to store temporary files in.
app.name - no default
The name of the application
app.class - no default
The class file for the application
vm.default - Defined by whichever VM has default=true attribute
The default VM tag to use if none supplied by the application
<<lessIt uses XML::XPath to parse configuration files and generates objects to represent the directives.
Unless youre working on the module what you really want to know is what directives are allowed and their meaning. Youre in luck, its below.
VARIABLES
The following variables and their relevant defaults are used by the system. These defaults have been chosen to make it as easy as possible to install SJ on a fairly standard UNIX system and have logs, and directories in places that you would expect to find them.
The full paths that will be used if every default is in effect is also shown below.
dir.base - default /usr/local - full /usr/local
The base directory for the system. This directory is used in conjunction with defaults to find directories if they have not been defined elsewhere.
dir.lib - default ${dir.base}/lib/sj - full /usr/local/lib/sj
The directory to find jar files in.
dir.pid - default ${dir.base}/var/run - full /usr/local/var/run
The directory to store PID files in.
dir.log - default ${dir.base}/var/log/sj - full /usr/local/var/log/sj
The directory to store log files in
dir.script - default ${dir.base}/var/sj/script - full /usr/local/var/sj/script
The directory to store generated script files in.
dir.tmp - default &File::Spec::Functions::tmpdir - full N/A (depends on system)
The directory to store temporary files in.
app.name - no default
The name of the application
app.class - no default
The class file for the application
vm.default - Defined by whichever VM has default=true attribute
The default VM tag to use if none supplied by the application
Download (0.018MB)
Added: 2007-06-05 License: Perl Artistic License Price:
871 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